public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] AMDGPU: computer won't shut down
@ 2020-06-09 21:53 n952162
  2020-06-09 22:20 ` Ashley Dixon
  2020-06-10 11:48 ` [gentoo-user] AMDGPU: computer won't shut down [UPDATE] n952162
  0 siblings, 2 replies; 7+ messages in thread
From: n952162 @ 2020-06-09 21:53 UTC (permalink / raw
  To: gentoo-user

I posted about this problem perhaps a year ago - when running with
AMDGPU, my system won't turn off, I have to hold the power button down
for a long time, forcing it down.

At that time, various people commented. but AMDGPU didn't work at all
for me in the end, didn't talk to my HDMI display.

I gave up on it.

Thanks to all the great help here, I finally got my system properly
updated and AMDGPU working, and it  finally talks to my HDMI display. 
But, it still doesn't shut down.

Is it a bug?  Is my system still not right?  Is there something I have
to do yet?



^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [gentoo-user] AMDGPU: computer won't shut down
  2020-06-09 21:53 [gentoo-user] AMDGPU: computer won't shut down n952162
@ 2020-06-09 22:20 ` Ashley Dixon
  2020-06-10  6:06   ` n952162
  2020-06-10 11:48 ` [gentoo-user] AMDGPU: computer won't shut down [UPDATE] n952162
  1 sibling, 1 reply; 7+ messages in thread
From: Ashley Dixon @ 2020-06-09 22:20 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 953 bytes --]

On Tue, Jun 09, 2020 at 11:53:55PM +0200, n952162 wrote:
> I posted about this problem perhaps a year ago - when running with
> AMDGPU, my system won't turn off, I have to hold the power button down
> for a long time, forcing it down.
> 
> Thanks to all the great help here, I finally got my system properly
> updated and AMDGPU working, and it  finally talks to my HDMI display. 
> But, it still doesn't shut down.

I assume you are using the AMDGPU drivers [1], but are you also using AMDGPU-PRO
(closed-source accelerator) [2] ?  Also, are you loading the  firmware  directly
into the kernel, or as kernel modules ?

Which GPU series/firmware do you have installed [3] ?

[1] https://wiki.gentoo.org/wiki/AMDGPU
[2] https://wiki.gentoo.org/wiki/AMDGPU-PRO
[3] https://wiki.gentoo.org/wiki/AMDGPU#Incorporating_firmware (see the table)

-- 

Ashley Dixon
suugaku.co.uk

2A9A 4117
DA96 D18A
8A7B B0D2
A30E BF25
F290 A8AA


[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [gentoo-user] AMDGPU: computer won't shut down
  2020-06-09 22:20 ` Ashley Dixon
@ 2020-06-10  6:06   ` n952162
  0 siblings, 0 replies; 7+ messages in thread
From: n952162 @ 2020-06-10  6:06 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 3160 bytes --]

On 2020-06-10 00:20, Ashley Dixon wrote:
> On Tue, Jun 09, 2020 at 11:53:55PM +0200, n952162 wrote:
>> I posted about this problem perhaps a year ago - when running with
>> AMDGPU, my system won't turn off, I have to hold the power button down
>> for a long time, forcing it down.
>>
>> Thanks to all the great help here, I finally got my system properly
>> updated and AMDGPU working, and it  finally talks to my HDMI display.
>> But, it still doesn't shut down.
> I assume you are using the AMDGPU drivers [1], but are you also using AMDGPU-PRO
> (closed-source accelerator) [2] ?


AMDGPU yes

AMDGPU-PRO no.

> Also, are you loading the  firmware  directly
> into the kernel, or as kernel modules ?

#
# Firmware loader
#
CONFIG_FW_LOADER=y
CONFIG_EXTRA_FIRMWARE="amdgpu/stoney_ce.bin amdgpu/stoney_me.bin
amdgpu/stoney_mec.bin amdgpu/stoney_pfp.bin amdgpu/stoney_rlc.bin
amdgpu/stoney_sdma.bin amdgpu/stoney_uvd.bin amdgpu/stoney_vce.bin"
CONFIG_EXTRA_FIRMWARE_DIR="/lib/firmware"
# CONFIG_FW_LOADER_USER_HELPER is not set
CONFIG_WANT_DEV_COREDUMP=y
CONFIG_ALLOW_DEV_COREDUMP=y
CONFIG_DEV_COREDUMP=y
# CONFIG_DEBUG_DRIVER is not set
# CONFIG_DEBUG_DEVRES is not set
# CONFIG_DEBUG_TEST_DRIVER_REMOVE is not set
# CONFIG_TEST_ASYNC_DRIVER_PROBE is not set
CONFIG_GENERIC_CPU_AUTOPROBE=y
CONFIG_GENERIC_CPU_VULNERABILITIES=y
CONFIG_REGMAP=y
CONFIG_REGMAP_I2C=m
CONFIG_DMA_SHARED_BUFFER=y
# CONFIG_DMA_FENCE_TRACE is not set


>
> Which GPU series/firmware do you have installed [3] ?

----------------------------------------------------------------------

     00~>lspci | grep -i vga
     00:01.0 VGA compatible controller: Advanced Micro Devices, Inc. 
[AMD/ATI] Stoney [Radeon R2/R3/R4/R5 Graphics] (rev da)

----------------------------------------------------------------------

         Volcanic Islands
         CARRIZO, FIJI, STONEY, TONGA, TOPAZ, WANI
         GCN3.x
         R9 285, R9 380, R9 380X, R9 Fury, R9 Nano, R9 Fury X, Pro Duo
         4.5
         3.2
         amdgpu radeonsi

----------------------------------------------------------------------

     drwxr-xr-x 2 root root 4096 Dec 15 16:50
/var/db/pkg/sys-kernel/linux-firmware-20191022

----------------------------------------------------------------------

     00~>equery uses sys-kernel/linux-firmware-20191022
     [ Legend : U - final flag setting for installation]
     [        : I - package is installed with flag     ]
     [ Colors : set, unset                             ]
      * Found these USE flags for sys-kernel/linux-firmware-20191022:
      U I
      - - initramfs       : Create and install initramfs for early
microcode loading in /boot (only AMD for now)
      + + redistributable : Install also non-free (but redistributable)
firmware files
      - - savedconfig     : Allows individual selection of firmware files

----------------------------------------------------------------------


>
> [1] https://wiki.gentoo.org/wiki/AMDGPU
> [2] https://wiki.gentoo.org/wiki/AMDGPU-PRO
> [3] https://wiki.gentoo.org/wiki/AMDGPU#Incorporating_firmware (see the table)
>

[-- Attachment #2: Type: text/html, Size: 6075 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [gentoo-user] AMDGPU: computer won't shut down [UPDATE]
  2020-06-09 21:53 [gentoo-user] AMDGPU: computer won't shut down n952162
  2020-06-09 22:20 ` Ashley Dixon
@ 2020-06-10 11:48 ` n952162
  2020-06-10 16:23   ` n952162
  1 sibling, 1 reply; 7+ messages in thread
From: n952162 @ 2020-06-10 11:48 UTC (permalink / raw
  To: gentoo-user

On 2020-06-09 23:53, n952162 wrote:
> I posted about this problem perhaps a year ago - when running with
> AMDGPU, my system won't turn off, I have to hold the power button down
> for a long time, forcing it down.
>
> At that time, various people commented. but AMDGPU didn't work at all
> for me in the end, didn't talk to my HDMI display.
>
> I gave up on it.
>
> Thanks to all the great help here, I finally got my system properly
> updated and AMDGPU working, and it  finally talks to my HDMI display.
> But, it still doesn't shut down.
>
> Is it a bug?  Is my system still not right?  Is there something I have
> to do yet?
>
>

The following assignment is on the linux line when booting in grub:

amdgpu.dc=1

When I make that 0, the system shuts down properly when the power button
is pressed.

When it's 1, the system hangs after blank screen  when that button is
pressed.





^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [gentoo-user] AMDGPU: computer won't shut down [UPDATE]
  2020-06-10 11:48 ` [gentoo-user] AMDGPU: computer won't shut down [UPDATE] n952162
@ 2020-06-10 16:23   ` n952162
  2020-06-10 21:18     ` [gentoo-user] AMDGPU: computer won't shut down [RESOLVED, kinda] n952162
  2020-06-10 22:39     ` [gentoo-user] AMDGPU: computer won't shut down [UPDATE] Adam Carter
  0 siblings, 2 replies; 7+ messages in thread
From: n952162 @ 2020-06-10 16:23 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 2085 bytes --]

On 2020-06-10 13:48, n952162 wrote:
> On 2020-06-09 23:53, n952162 wrote:
>> I posted about this problem perhaps a year ago - when running with
>> AMDGPU, my system won't turn off, I have to hold the power button down
>> for a long time, forcing it down.
>>
>> At that time, various people commented. but AMDGPU didn't work at all
>> for me in the end, didn't talk to my HDMI display.
>>
>> I gave up on it.
>>
>> Thanks to all the great help here, I finally got my system properly
>> updated and AMDGPU working, and it  finally talks to my HDMI display.
>> But, it still doesn't shut down.
>>
>> Is it a bug?  Is my system still not right?  Is there something I have
>> to do yet?
>>
>>
>
> The following assignment is on the linux line when booting in grub:
>
> amdgpu.dc=1
>
> When I make that 0, the system shuts down properly when the power button
> is pressed.
>
> When it's 1, the system hangs after blank screen  when that button is
> pressed.
>
>
>

I found this in the AMDGPU webpage:

    /AMDGPU with Display Core was first implemented for VEGA10 (GCN5.0)
    and RAVEN (with DCN 1.0) GPUs/APUs. Kernels before version 4.17 have
    (experimental) DC support for older cards (GCN1.1 and newer) via
    command line option /amdgpu.dc=1/, which may work better than the
    older radeon kernel module. Likewise, if DC needs to be disabled for
    any particular reason, option /amdgpu.dc=0/can be used on the kernel
    command line.
    /

It's not clear to me if  DC serves a function in kernels >= 4.17 or why
it's installed as default by grub ...

I don't see anything similar in the new kernel parameters I posted to
this topic, but I do find this in my .config file:

#
# Display Engine Configuration
#
CONFIG_DRM_AMD_DC=y
CONFIG_DRM_AMD_DC_DCN1_0=y
# CONFIG_DEBUG_KERNEL_DC is not set

Was this left over from an earlier configuration and not properly
cleaned out, or is it necessary, for some reason?

Can someone explain how the amdgpu.dc=1 parameter gets passed to grub?

Thanks in advance.
//


[-- Attachment #2: Type: text/html, Size: 3373 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [gentoo-user] AMDGPU: computer won't shut down [RESOLVED, kinda]
  2020-06-10 16:23   ` n952162
@ 2020-06-10 21:18     ` n952162
  2020-06-10 22:39     ` [gentoo-user] AMDGPU: computer won't shut down [UPDATE] Adam Carter
  1 sibling, 0 replies; 7+ messages in thread
From: n952162 @ 2020-06-10 21:18 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 2716 bytes --]

On 2020-06-10 18:23, n952162 wrote:
> On 2020-06-10 13:48, n952162 wrote:
>> On 2020-06-09 23:53, n952162 wrote:
>>> I posted about this problem perhaps a year ago - when running with
>>> AMDGPU, my system won't turn off, I have to hold the power button down
>>> for a long time, forcing it down.
>>>
>>> At that time, various people commented. but AMDGPU didn't work at all
>>> for me in the end, didn't talk to my HDMI display.
>>>
>>> I gave up on it.
>>>
>>> Thanks to all the great help here, I finally got my system properly
>>> updated and AMDGPU working, and it  finally talks to my HDMI display.
>>> But, it still doesn't shut down.
>>>
>>> Is it a bug?  Is my system still not right?  Is there something I have
>>> to do yet?
>>>
>>>
>>
>> The following assignment is on the linux line when booting in grub:
>>
>> amdgpu.dc=1
>>
>> When I make that 0, the system shuts down properly when the power button
>> is pressed.
>>
>> When it's 1, the system hangs after blank screen  when that button is
>> pressed.
>>
>>
>>
>
> I found this in the AMDGPU webpage:
>
>     /AMDGPU with Display Core was first implemented for VEGA10
>     (GCN5.0) and RAVEN (with DCN 1.0) GPUs/APUs. Kernels before
>     version 4.17 have (experimental) DC support for older cards
>     (GCN1.1 and newer) via command line option /amdgpu.dc=1/, which
>     may work better than the older radeon kernel module. Likewise, if
>     DC needs to be disabled for any particular reason, option
>     /amdgpu.dc=0/can be used on the kernel command line.
>     /
>
> It's not clear to me if  DC serves a function in kernels >= 4.17 or
> why it's installed as default by grub ...
>
> I don't see anything similar in the new kernel parameters I posted to
> this topic, but I do find this in my .config file:
>
> #
> # Display Engine Configuration
> #
> CONFIG_DRM_AMD_DC=y
> CONFIG_DRM_AMD_DC_DCN1_0=y
> # CONFIG_DEBUG_KERNEL_DC is not set
>
> Was this left over from an earlier configuration and not properly
> cleaned out, or is it necessary, for some reason?
>
> Can someone explain how the amdgpu.dc=1 parameter gets passed to grub?
>
>

Okay, I found out how amdgpu.dc=1 gets into grub - via
/etc/default/grub.  I'm not sure who put it there - was it the kernel
make process?

Note that even with amdgpu.dc=0, I still have (finally!) HDMI output to
my monitor.  There's a lot of talk on the internet about whether
amdgpu.dc=1 is good or bad, but nobody seems to know or explain what
it's about, or the role of Display Core WRT to AMDGPU.

The only important thing unresolved for me now is whether I still need
those DRM_AMD_DC kernel variables, above.


[-- Attachment #2: Type: text/html, Size: 4257 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [gentoo-user] AMDGPU: computer won't shut down [UPDATE]
  2020-06-10 16:23   ` n952162
  2020-06-10 21:18     ` [gentoo-user] AMDGPU: computer won't shut down [RESOLVED, kinda] n952162
@ 2020-06-10 22:39     ` Adam Carter
  1 sibling, 0 replies; 7+ messages in thread
From: Adam Carter @ 2020-06-10 22:39 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 243 bytes --]

>
> Can someone explain how the amdgpu.dc=1 parameter gets passed to grub?
>
> Thanks in advance.
>
Is it in /etc/default/grub's GRUB_CMDLINE_LINUX_DEFAULT=?

If the question is how it got there, maybe the timestamp on the file offers
a hint?

[-- Attachment #2: Type: text/html, Size: 500 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2020-06-10 22:40 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-06-09 21:53 [gentoo-user] AMDGPU: computer won't shut down n952162
2020-06-09 22:20 ` Ashley Dixon
2020-06-10  6:06   ` n952162
2020-06-10 11:48 ` [gentoo-user] AMDGPU: computer won't shut down [UPDATE] n952162
2020-06-10 16:23   ` n952162
2020-06-10 21:18     ` [gentoo-user] AMDGPU: computer won't shut down [RESOLVED, kinda] n952162
2020-06-10 22:39     ` [gentoo-user] AMDGPU: computer won't shut down [UPDATE] Adam Carter

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox