linux/drivers/gpu/drm/radeon/reg_srcs
Jerome Glisse 961fb597c1 drm/radeon/kms: r600/r700 command stream checker
This patch add cs checker to r600/r700 hw. Command stream checking
will rewrite some of the cs value in order to restrict GPU access
to BO size. This doesn't break old userspace but just enforce safe
value. It should break any things that was using the r600/r700 cs
ioctl to do forbidden things (malicious software), though we are
not aware of such things.

Here is the list of thing we check :
- enforcing resource size
- enforcing color buffer slice tile max, will restrict cb access
- enforcing db buffer slice tile max, will restrict db access

We don't check for shader bigger than the BO in which they are
supposed to be, such use would lead to GPU lockup and is harmless
from security POV, as far as we can tell (note that even checking
for this wouldn't prevent someone to write bogus shader that lead
to lockup).

This patch has received as much testing as humanly possible with
old userspace to check that it didn't break such configuration.
However not all the applications out there were tested, thus it
might broke some odd, rare applications.

[airlied: fix rules for cs checker for parallel builds]

Signed-off-by: Jerome Glisse <jglisse@redhat.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
2010-02-11 19:03:45 +10:00
..
r100 drm/radeon/kms: add rn50/r100/r200 CS tracker. 2009-09-08 08:54:31 +10:00
r200 drm/radeon/kms/r200: fix bug in CS parser 2010-01-21 08:17:27 +10:00
r300 drm/radeon/kms: add updated registers from drm-fixes. 2009-09-07 13:49:07 +10:00
r420 drm/radeon/kms: add additional safe regs for r4xx/rs6xx and r5xx 2010-01-11 13:42:27 +10:00
r600 drm/radeon/kms: r600/r700 command stream checker 2010-02-11 19:03:45 +10:00
rn50 drm/radeon/kms: add rn50/r100/r200 CS tracker. 2009-09-08 08:54:31 +10:00
rs600 drm/radeon/kms: add additional safe regs for r4xx/rs6xx and r5xx 2010-01-11 13:42:27 +10:00
rv515 drm/radeon/kms: add additional safe regs for r4xx/rs6xx and r5xx 2010-01-11 13:42:27 +10:00