OSDN Git Service

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)
commit94a47c49fe5dc0c4d1e56bc1286623df3ea53b23
treecab942bf28b7a4e3b1fe5b6f98e1ff2abb485fba
parentdbfb00c3e7e18439f2ebf67fe99bf7a50b5bae1e
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