Star64_linux/drivers/gpu/drm/radeon
Alex Deucher fe725d4f22 drm/radeon/kms: only warn on mipmap size checks in r600 cs checker (v2)
The texture base address registers are in units of 256 bytes.
The original CS checker treated these offsets as bytes, so the
original check was wrong.  I fixed the units in a patch during
the 2.6.36 cycle, but this ended up breaking some existing
userspace (probably due to a bug in either userspace texture allocation
or the drm texture mipmap checker).  So for now, until we come
up with a better fix, just warn if the mipmap size it too large.
This will keep existing userspace working and it should be just
as safe as before when we were checking the wrong units.  These
are GPU MC addresses, so if they fall outside of the VRAM or
GART apertures, they end up at the GPU default page, so this should
be safe from a security perspective.

v2: Just disable the warning.  It just spams the log and there's
nothing the user can do about it.

Signed-off-by: Alex Deucher <alexdeucher@gmail.com>
Cc: Jerome Glisse <glisse@freedesktop.org>
Signed-off-by: Dave Airlie <airlied@redhat.com>
2010-09-15 11:13:09 +10:00
..
reg_srcs drm/radeon/kms: allow FG_ALPHA_VALUE on r5xx 2010-08-12 09:13:36 +10:00
.gitignore
atom-bits.h
atom-names.h
atom-types.h
atom.c drm/radeon/kms: add ioport register access 2010-08-02 10:00:07 +10:00
atom.h drm/radeon/kms: add ioport register access 2010-08-02 10:00:07 +10:00
atombios.h
atombios_crtc.c drm/radeon/kms: force legacy pll algo for RV620 LVDS 2010-09-14 20:56:06 +10:00
atombios_dp.c drm/radeon/kms: rework encoder handling 2010-08-20 08:44:05 +10:00
avivod.h
evergreen.c drm/radeon/kms/evergreen: fix backend setup 2010-09-13 20:29:38 +10:00
evergreen_cs.c
evergreen_reg.h
evergreend.h
Kconfig
Makefile
mkregtable.c
ObjectID.h
r100.c drm/radeon/kms: fix the colorbuffer CS checker for r300-r500 2010-09-13 20:30:18 +10:00
r100_track.h
r100d.h drm/radeon: add basic zmask/hiz support (v4) 2010-08-02 11:54:26 +10:00
r200.c
r300.c drm/radeon: add basic zmask/hiz support (v4) 2010-08-02 11:54:26 +10:00
r300_cmdbuf.c
r300_reg.h
r300d.h drm/radeon: add basic zmask/hiz support (v4) 2010-08-02 11:54:26 +10:00
r420.c drm/radeon/kms: check/restore sanity before doing anything else with GPU. 2010-08-02 10:00:09 +10:00
r420d.h
r500_reg.h
r520.c Merge tag 'v2.6.35-rc6' into drm-radeon-next 2010-08-02 10:05:24 +10:00
r520d.h
r600.c drm/radeon/kms/evergreen: fix gpu hangs in userspace accel code 2010-09-07 08:00:35 +10:00
r600_audio.c drm/radeon/kms: trivial code style fixes for audio 2010-08-02 10:17:10 +10:00
r600_blit.c
r600_blit_kms.c drm/radeon: add some missing copyright headers 2010-09-13 20:26:04 +10:00
r600_blit_shaders.c drm/radeon: remove viewport transform from r6xx/r7xx blit emit 2010-08-02 10:07:48 +10:00
r600_blit_shaders.h drm/radeon: add some missing copyright headers 2010-09-13 20:26:04 +10:00
r600_cp.c drm/radeon: Fix pci_map_page() error checking 2010-08-12 09:38:29 +10:00
r600_cs.c drm/radeon/kms: only warn on mipmap size checks in r600 cs checker (v2) 2010-09-15 11:13:09 +10:00
r600_hdmi.c drm/radeon/kms: enable HDMI audio on RS600/RS690/RS740 2010-08-02 10:00:06 +10:00
r600_reg.h
r600d.h drm/radeon/kms/r7xx: add workaround for hw issue with HDP flush 2010-08-02 10:06:18 +10:00
radeon.h drm/radeon/kms: remove useless clock code 2010-09-02 11:28:52 +10:00
radeon_acpi.c drm/radeon: tone down overchatty acpi debug messages. 2010-08-04 11:16:56 +10:00
radeon_agp.c drm/radeon/kms: fix agp mode setup on cards that use pcie bridges 2010-08-20 08:48:55 +10:00
radeon_asic.c drm/radeon/kms: remove useless clock code 2010-09-02 11:28:52 +10:00
radeon_asic.h drm/radeon/kms: check/restore sanity before doing anything else with GPU. 2010-08-02 10:00:09 +10:00
radeon_atombios.c drm/radeon/kms/evergreen: work around bad data in some i2c tables 2010-09-02 12:45:43 +10:00
radeon_atpx_handler.c
radeon_benchmark.c
radeon_bios.c
radeon_clocks.c drm/radeon/kms: remove useless clock code 2010-09-02 11:28:52 +10:00
radeon_combios.c drm/radeon/kms: add connector table for Mac x800 2010-09-13 20:21:16 +10:00
radeon_connectors.c drm: Use a nondestructive mode for output detect when polling (v2) 2010-09-14 20:38:48 +10:00
radeon_cp.c
radeon_cs.c drm: Use ENOENT consistently for the error return for an unmatched handle. 2010-08-10 10:46:55 +10:00
radeon_cursor.c drm: Use ENOENT consistently for the error return for an unmatched handle. 2010-08-10 10:46:55 +10:00
radeon_device.c drm/radeon/kms: use tracked values for sclk and mclk 2010-08-30 09:51:20 +10:00
radeon_display.c drm/radeon/kms: don't enable underscan with interlaced modes 2010-09-13 20:25:24 +10:00
radeon_drv.c drm/radeon: add basic zmask/hiz support (v4) 2010-08-02 11:54:26 +10:00
radeon_drv.h
radeon_encoders.c drm/radeon/kms: set encoder type to DVI for HDMI on evergreen 2010-08-20 16:06:01 +10:00
radeon_family.h
radeon_fb.c Merge branch 'drm-core-next' of git://git.kernel.org/pub/scm/linux/kernel/git/airlied/drm-2.6 2010-08-23 18:28:03 -07:00
radeon_fence.c
radeon_gart.c
radeon_gem.c drm: Use ENOENT consistently for the error return for an unmatched handle. 2010-08-10 10:46:55 +10:00
radeon_i2c.c drm/radeon/kms: use tracked values for sclk and mclk 2010-08-30 09:51:20 +10:00
radeon_ioc32.c
radeon_irq.c
radeon_irq_kms.c drm/radeon/kms: don't enable MSIs on AGP boards 2010-08-20 08:49:37 +10:00
radeon_kms.c drm/radeon/kms: add back missing break in info ioctl 2010-08-20 08:51:26 +10:00
radeon_legacy_crtc.c drm/radeon/kms: fix typo in radeon_compute_pll_gain 2010-08-23 08:30:14 +10:00
radeon_legacy_encoders.c drm/radeon/kms: rework encoder handling 2010-08-20 08:44:05 +10:00
radeon_legacy_tv.c drm/radeon/kms: move a bunch of modesetting debug to correct debug usage. 2010-08-02 10:47:07 +10:00
radeon_mem.c
radeon_mode.h drm/radeon/kms: add connector table for Mac x800 2010-09-13 20:21:16 +10:00
radeon_object.c drm/radeon: fall back to GTT if bo creation/validation in VRAM fails. 2010-08-02 10:00:08 +10:00
radeon_object.h
radeon_pm.c drm/radeon/kms: remove stray radeon_i2c_destroy 2010-08-27 09:10:22 +10:00
radeon_reg.h
radeon_ring.c
radeon_state.c drm: block userspace under allocating buffer and having drivers overwrite it (v2) 2010-08-17 14:52:25 +10:00
radeon_test.c
radeon_ttm.c drm: move ttm global code to core drm 2010-08-04 09:46:06 +10:00
rs100d.h
rs400.c drm/radeon/kms: remove rs4xx gart limit 2010-08-02 10:06:01 +10:00
rs400d.h
rs600.c drm/radeon/kms/igp: sideport is AMD only 2010-08-04 09:49:35 +10:00
rs600d.h
rs690.c drm/radeon/kms/igp: sideport is AMD only 2010-08-04 09:49:35 +10:00
rs690d.h
rv200d.h
rv250d.h
rv350d.h
rv515.c drm/radeon/kms: handle the case of no active displays properly in the bandwidth code 2010-08-04 09:49:20 +10:00
rv515d.h
rv770.c drm/radeon/kms: remove useless clock code 2010-09-02 11:28:52 +10:00
rv770d.h drm/radeon/kms/r7xx: add workaround for hw issue with HDP flush 2010-08-02 10:06:18 +10:00