View previous topic :: View next topic |
Author |
Message |
djdunn l33t
Joined: 26 Dec 2004 Posts: 812
|
Posted: Mon Aug 09, 2021 12:06 am Post subject: Amdgpu compile failure |
|
|
gentoo-sources 5.13.9 and 5.13.8 won't build they both give this error. Vanilla sources-5.13.9 also give error. 5.13.7 worked, using same .config as 5.13.7
# make
CALL scripts/checksyscalls.sh
CALL scripts/atomic/check-atomics.sh
DESCEND objtool
CHK include/generated/compile.h
CC [M] drivers/gpu/drm/amd/amdgpu/amdgpu_acpi.o
drivers/gpu/drm/amd/amdgpu/amdgpu_acpi.c: In function ‘amdgpu_acpi_is_s0ix_supported’:
drivers/gpu/drm/amd/amdgpu/amdgpu_acpi.c:910:32: error: ‘pm_suspend_target_state’ undeclared (first use in this function)
910 | return pm_suspend_target_state == PM_SUSPEND_TO_IDLE;
| ^~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/amd/amdgpu/amdgpu_acpi.c:910:32: note: each undeclared identifier is reported only once for each function it appears in
make[4]: *** [scripts/Makefile.build:273: drivers/gpu/drm/amd/amdgpu/amdgpu_acpi.o] Error 1
make[3]: *** [scripts/Makefile.build:516: drivers/gpu/drm/amd/amdgpu] Error 2
make[2]: *** [scripts/Makefile.build:516: drivers/gpu/drm] Error 2
make[1]: *** [scripts/Makefile.build:516: drivers/gpu] Error 2
make: *** [Makefile:1853: drivers] Error 2 _________________ “Music is a moral law. It gives a soul to the Universe, wings to the mind, flight to the imagination, a charm to sadness, gaiety and life to everything. It is the essence of order, and leads to all that is good and just and beautiful.”
― Plato |
|
Back to top |
|
|
Hu Administrator
Joined: 06 Mar 2007 Posts: 23062
|
Posted: Mon Aug 09, 2021 12:29 am Post subject: |
|
|
This is probably caused by drm/amdgpu: Check pmops for desired suspend state, which was added in v5.13.8. Please check whether the stable maintainer has been advised of this and, if not, report it. It probably does not affect users who enable support for suspend. |
|
Back to top |
|
|
djdunn l33t
Joined: 26 Dec 2004 Posts: 812
|
Posted: Mon Aug 09, 2021 12:34 am Post subject: |
|
|
correct, having CONFIG_SUSPEND allows it to build _________________ “Music is a moral law. It gives a soul to the Universe, wings to the mind, flight to the imagination, a charm to sadness, gaiety and life to everything. It is the essence of order, and leads to all that is good and just and beautiful.”
― Plato |
|
Back to top |
|
|
djdunn l33t
Joined: 26 Dec 2004 Posts: 812
|
Posted: Mon Aug 09, 2021 12:35 am Post subject: |
|
|
Hu wrote: | This is probably caused by drm/amdgpu: Check pmops for desired suspend state, which was added in v5.13.8. Please check whether the stable maintainer has been advised of this and, if not, report it. It probably does not affect users who enable support for suspend. |
our stable or upstream? _________________ “Music is a moral law. It gives a soul to the Universe, wings to the mind, flight to the imagination, a charm to sadness, gaiety and life to everything. It is the essence of order, and leads to all that is good and just and beautiful.”
― Plato |
|
Back to top |
|
|
mike155 Advocate
Joined: 17 Sep 2010 Posts: 4438 Location: Frankfurt, Germany
|
|
Back to top |
|
|
Hu Administrator
Joined: 06 Mar 2007 Posts: 23062
|
Posted: Mon Aug 09, 2021 3:11 am Post subject: |
|
|
djdunn wrote: | our stable or upstream? | Upstream released the kernel with the bad patch, so upstream should be notified to fix it. Happily, as mike155 reports, someone already reported it and it has been fixed. |
|
Back to top |
|
|
|