]> www.infradead.org Git - users/jedix/linux-maple.git/commit
drm/amdgpu: fix invadate operation for umsch
authorJesse Zhang <jesse.zhang@amd.com>
Tue, 21 May 2024 06:48:57 +0000 (14:48 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 23 May 2024 19:09:35 +0000 (15:09 -0400)
commit64da71ea76418550aafd85740dfde074c99a3a6c
tree13f7aa4a6f36e3f40bb87564039815bc325106fe
parent030ffd4d43b433bc6671d9ec34fc12c59220b95d
drm/amdgpu: fix invadate operation for umsch

Since the type of data_size is uint32_t, adev->umsch_mm.data_size - 1 >> 16 >> 16 is 0
regardless of the values of its operands

So removing the operations upper_32_bits and lower_32_bits.

Signed-off-by: Jesse Zhang <Jesse.Zhang@amd.com>
Suggested-by: Tim Huang <Tim.Huang@amd.com>
Reviewed-by: Tim Huang <Tim.Huang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/umsch_mm_v4_0.c