Closed sibradzic closed 5 years ago
The check_ppfeaturemask() is too strict, it checks for 0xffffffff, but we only need to check for 14th bit, which indicates if OverDrive is enabled (see https://github.com/torvalds/linux/blob/master/drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c#L117-L118).
check_ppfeaturemask()
0xffffffff
The correct check should be: [ "x$(printf '%#x' "$(($CURRENT_INT10_MASK & 0x4000))")" = "x0x4000" ]
[ "x$(printf '%#x' "$(($CURRENT_INT10_MASK & 0x4000))")" = "x0x4000" ]
The
check_ppfeaturemask()
is too strict, it checks for0xffffffff
, but we only need to check for 14th bit, which indicates if OverDrive is enabled (see https://github.com/torvalds/linux/blob/master/drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c#L117-L118).