[Intel-gfx] Build broken in drm-tip

Borah, Chaitanya Kumar chaitanya.kumar.borah at intel.com
Tue Oct 31 05:08:49 UTC 2023


Hello Mario,

This is Chaitanya from the Linux graphics team in Intel.

We are seeing a build issue in drm-tip[1]

``````````````````````````````````````````````````````````````````````````````````````````````````````````
  CALL    scripts/checksyscalls.sh
  DESCEND objtool
  INSTALL libsubcmd_headers
  CC [M]  drivers/gpu/drm/amd/amdgpu/vi.o
drivers/gpu/drm/amd/amdgpu/vi.c: In function ‘vi_program_aspm’:
drivers/gpu/drm/amd/amdgpu/vi.c:1127:47: error: implicit declaration of function ‘amdgpu_device_pcie_dynamic_switching_supported’ [-Werror=implicit-function-declaration]
 1127 |  if (!amdgpu_device_should_use_aspm(adev) || !amdgpu_device_pcie_dynamic_switching_supported())
      |                                               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
make[6]: *** [scripts/Makefile.build:243: drivers/gpu/drm/amd/amdgpu/vi.o] Error 1
make[5]: *** [scripts/Makefile.build:480: drivers/gpu/drm/amd/amdgpu] Error 2
make[4]: *** [scripts/Makefile.build:480: drivers/gpu/drm] Error 2
make[3]: *** [scripts/Makefile.build:480: drivers/gpu] Error 2
make[2]: *** [scripts/Makefile.build:480: drivers] Error 2
make[1]: *** [/home/kbuild2/kernel/Makefile:1913: .] Error 2
make: *** [Makefile:234: __sub-make] Error 2
``````````````````````````````````````````````````````````````````````````````````````````````````````````

It seems to be caused by the following commit [2]

“drm/amd: Explicitly disable ASPM when dynamic switching disabled”

Could you please check and provide a fix if necessary?

[1] https://cgit.freedesktop.org/drm-tip/tree/
[2] https://cgit.freedesktop.org/drm-tip/commit/?id=2757a848cb0f1



More information about the Intel-gfx mailing list