]> www.infradead.org Git - users/hch/misc.git/commit
drm/amdgpu: fix invadate operation for pg_flags
authorJesse Zhang <jesse.zhang@amd.com>
Tue, 21 May 2024 07:02:54 +0000 (15:02 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 23 May 2024 19:09:50 +0000 (15:09 -0400)
commit806e8c5579405a1920902ae58bd7907341a37f7d
tree965bf549f7c2c856b3285c32427af77bf763849c
parentfa1040811678afc0fad043d7be1de252de74a035
drm/amdgpu: fix invadate operation for pg_flags

Since the type of pg_flags is u32, adev->pg_flags >> 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/amdgpu_debugfs.c