Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

drm/amdgpu: fix wrong APU judgement

Fix the APU judgement to make it really work as expected.

Signed-off-by: Evan Quan <evan.quan@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>

authored by

Evan Quan and committed by
Alex Deucher
0208a105 3680b2a5

+2 -2
+2 -2
drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c
··· 2429 2429 return ret; 2430 2430 } 2431 2431 /* PCIe Perf counters won't work on APU nodes */ 2432 - if (adev->flags & !AMD_IS_APU) { 2432 + if (!(adev->flags & AMD_IS_APU)) { 2433 2433 ret = device_create_file(adev->dev, &dev_attr_pcie_bw); 2434 2434 if (ret) { 2435 2435 DRM_ERROR("failed to create device file pcie_bw\n"); ··· 2492 2492 device_remove_file(adev->dev, 2493 2493 &dev_attr_pp_od_clk_voltage); 2494 2494 device_remove_file(adev->dev, &dev_attr_gpu_busy_percent); 2495 - if (adev->flags & !AMD_IS_APU) 2495 + if (!(adev->flags & AMD_IS_APU)) 2496 2496 device_remove_file(adev->dev, &dev_attr_pcie_bw); 2497 2497 if ((adev->asic_type >= CHIP_VEGA10) && 2498 2498 !(adev->flags & AMD_IS_APU))