Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Amdgpu compile failure
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
djdunn
l33t
l33t


Joined: 26 Dec 2004
Posts: 812

PostPosted: Mon Aug 09, 2021 12:06 am    Post subject: Amdgpu compile failure Reply with quote

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
View user's profile Send private message
Hu
Administrator
Administrator


Joined: 06 Mar 2007
Posts: 23062

PostPosted: Mon Aug 09, 2021 12:29 am    Post subject: Reply with quote

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
View user's profile Send private message
djdunn
l33t
l33t


Joined: 26 Dec 2004
Posts: 812

PostPosted: Mon Aug 09, 2021 12:34 am    Post subject: Reply with quote

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
View user's profile Send private message
djdunn
l33t
l33t


Joined: 26 Dec 2004
Posts: 812

PostPosted: Mon Aug 09, 2021 12:35 am    Post subject: Reply with quote

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
View user's profile Send private message
mike155
Advocate
Advocate


Joined: 17 Sep 2010
Posts: 4438
Location: Frankfurt, Germany

PostPosted: Mon Aug 09, 2021 2:11 am    Post subject: Reply with quote

Randy Dunlap posted a patch: https://lore.kernel.org/dri-devel/CADnq5_PPYtdb17WLtgjeS3THXBeHw_DyMKueZ4LP8cVS1G8Tcw@mail.gmail.com/T/
Back to top
View user's profile Send private message
Hu
Administrator
Administrator


Joined: 06 Mar 2007
Posts: 23062

PostPosted: Mon Aug 09, 2021 3:11 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum