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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Comment # 7 on bug 98505 from
Created attachment 127678 [details] [review]
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:
_______________________________________________
dri-devel mailing list
dri-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/dri-devel

[Index of Archives]     [Linux DRI Users]     [Linux Intel Graphics]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux