OSDN Git Service

drm/amdgpu: use processed values for counting
authorA. Wilcox <AWilcox@Wilcox-Tech.com>
Mon, 2 Jul 2018 03:44:52 +0000 (22:44 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 19 Sep 2018 17:37:10 +0000 (12:37 -0500)
commit066689161a481db3940f445b34b9dd543cb8799a
tree782882245bb96ae6ca9c4ac15d628e9bff42acf2
parentddaf501347e21a19d15977029af1d229cd800379
drm/amdgpu: use processed values for counting

adev->gfx.rlc has the values from rlc_hdr already processed by
le32_to_cpu.  Using the rlc_hdr values on big-endian machines causes
a kernel Oops due to writing well outside of the array (0x24000000
instead of 0x24).

Signed-off-by: A. Wilcox <AWilcox@Wilcox-Tech.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c
drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c