[Bug 98505] [Topaz] Regression introduces in 4.8-rc3

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Tue Nov 1 23:31:40 UTC 2016


https://bugs.freedesktop.org/show_bug.cgi?id=98505

--- Comment #7 from Peter Wu <peter at lekensteyn.nl> ---
Created attachment 127678
  --> https://bugs.freedesktop.org/attachment.cgi?id=127678&action=edit
amdgpu patch that checks whether the new interface can be used for PM

PCIe port PM is not enabled because this BIOS is pre-2015: 12/04/2014
The BIOS seems to be able to report support for lots of things (can you post a
fuller dmesg that include the supported functions?):

    Scope (\_SB.PCI0.GFX0) {
        Method (ATPX, 2, Serialized) {
            // ...
            If (Arg0 == One) {
                Name (TMP2, Buffer (0x0100) { 0x00 })
                CreateWordField (TMP2, Zero, F1SS)
                CreateDWordField (TMP2, 0x02, F1VM)
                CreateDWordField (TMP2, 0x06, F1FG)
                F1SS = 0x0A
                F1VM = 0x7FC0
                If ((\_SB.PCI0.RP05.PXSX.SGMD & 0x0F) == 0x02) {
                    // ...
                    If (\_SB.PCI0.RP05.PXSX.PXDY == One) {
                        F1FG |= 0x80 /* ATPX_DYNAMIC_PX_SUPPORTED */
                        F1VM |= 0x80
                    }
                    //
                    If (\_SB.PCI0.RP05.PXSX.FDPD == One) {
                        F1FG |= 0x0400 /* ATPX_DYNAMIC_DGPU_POWER_OFF_SUPPORTED
*/
                        F1VM |= 0x0400
                        If (OSYS >= 0x07DC) {
                            F1FG |= 0x0800 /* ATPX_DGPU_REQ_POWER_FOR_DISPLAYS
*/
                            F1VM |= 0x0800
                        }
                    }
                    // ...
                    If (OSYS >= 0x07DD) {
                        F1FG |= 0x4000 /* ATPX_MS_HYBRID_GFX_SUPPORTED */ 
                        F1VM |= 0x4000
                    }

amdgpu (and radeon) needs to check whether PCIe port PM is really supported.
Possible patch is attached (there should probably be a pci_d3cold_disable call
somewhere, see commit 279cf3f23870f7eb8ca071115e06d3d5ca0a2b9e for nouveau).

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/dri-devel/attachments/20161101/3075b07c/attachment-0001.html>


More information about the dri-devel mailing list