]> git.baikalelectronics.ru Git - kernel.git/commit
drm/radeon: fix atom aux payload size check for writes (v2)
authorAlex Deucher <alexander.deucher@amd.com>
Fri, 20 Feb 2015 16:51:38 +0000 (11:51 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 25 Feb 2015 21:06:10 +0000 (16:06 -0500)
commit32e421906dac3bfa63751e6ca82dc3199cb40a3b
treecab942bf28b7a4e3b1fe5b6f98e1ff2abb485fba
parentb439e2cb4b1de184dcb88e62d0021ecf287ced63
drm/radeon: fix atom aux payload size check for writes (v2)

The atom aux param interface only supports 4 bits for
the total write transfer size (header + payload).  This
limits us to 12 bytes of payload rather than 16.  Add a
check for this. Reads are not affected.

v2: switch to WARN_ON_ONCE

Reviewed-by: Michel Dänzer <michel.daenzer@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/radeon/atombios_dp.c