Re: Msg "PM: pci_pm_suspend(): ast_pm_suspend+0x0/0x40 [ast] returns -22" after migrating to V5.6.7 kernel from v5.5.10.

2020-05-01 Thread Cary Garrett
Hello Thomas,

Yes, you have my OK on the Reporting/Testing tags.

Thanks, Cary Garrett

On Thu, 2020-04-30 at 10:35 +0200, Thomas Zimmermann wrote:
> Hi Cary
> 
> Am 29.04.20 um 20:26 schrieb Cary Garrett:
> > Hello Thomas,
> > 
> > Good news! After applying the patch and regenerating the ast kernel module, 
> > the system will
> > successfully go into suspend state.
> > 
> > Thanks for the fast turnaround. Glad I could help.
> 
> Great. Can I add your Reported-by and Tested-by tags to the patch?
> 
> Best regards
> Thomas
> 
> > Regards, Cary.
> > 
> > On Wed, 2020-04-29 at 11:14 +0200, Thomas Zimmermann wrote:
> > > Hi Cary,
> > > 
> > > thanks for reporting the bug.
> > > 
> > > Am 28.04.20 um 22:32 schrieb Cary Garrett:
> > > > Hello Dave,
> > > > 
> > > > Generating & booting v5.5.19 kernel, system will successfully enter 
> > > > suspend state.
> > > > 
> > > > Generating & booting v5.6.0  kernel, system fails to enter suspend 
> > > > state.
> > > 
> > > It's related to
> > > 
> > >  4961eb60f145 ("drm/ast: Enable atomic modesetting")
> > > 
> > > Cary, attached is a patch that fixes the problem on my system. Are you
> > > in a position to build and test your own kernels? If so, could you test
> > > the attached patch and report back? Thanks!
> > > 
> > > Best regards
> > > Thomas
> > > 
> > > > v5.5.19 "lspci - -s 00:04:00" output:
> > > > 
> > > > 04:00.0 VGA compatible controller: ASPEED Technology, Inc. ASPEED 
> > > > Graphics Family (rev 30)
> > > > (prog-if
> > > > 00 [VGA controller])
> > > > DeviceName: Onboard VGA
> > > > Subsystem: Super Micro Computer Inc ASPEED Graphics Family
> > > > Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- 
> > > > ParErr- Stepping- SERR-
> > > > FastB2B-
> > > > DisINTx-
> > > > Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=medium 
> > > > >TAbort-  > > > >SERR-
> > > >  > > > Latency: 0
> > > > Interrupt: pin A routed to IRQ 16
> > > > Region 0: Memory at f600 (32-bit, non-prefetchable) 
> > > > [size=16M]
> > > > Region 1: Memory at f700 (32-bit, non-prefetchable) 
> > > > [size=128K]
> > > > Region 2: I/O ports at d000 [size=128]
> > > > Expansion ROM at 000c [virtual] [disabled] [size=128K]
> > > > Capabilities: [40] Power Management version 3
> > > > Flags: PMEClk- DSI- D1+ D2+ AuxCurrent=375mA 
> > > > PME(D0+,D1+,D2+,D3hot+,D3cold+)
> > > > Status: D0 NoSoftRst- PME-Enable- DSel=0 DScale=0 PME-
> > > > Capabilities: [50] MSI: Enable- Count=1/4 Maskable- 64bit+
> > > > Address:   Data: 
> > > > Kernel driver in use: ast
> > > > Kernel modules: ast
> > > > 
> > > > v5.6.0 "lspci - -s 00:04:00" output:
> > > > 
> > > > 04:00.0 VGA compatible controller: ASPEED Technology, Inc. ASPEED 
> > > > Graphics Family (rev 30)
> > > > (prog-if
> > > > 00 [VGA controller])
> > > > DeviceName: Onboard VGA
> > > > Subsystem: Super Micro Computer Inc ASPEED Graphics Family
> > > > Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- 
> > > > ParErr- Stepping- SERR-
> > > > FastB2B-
> > > > DisINTx-
> > > > Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=medium 
> > > > >TAbort-  > > > >SERR-
> > > >  > > > Latency: 0
> > > > Interrupt: pin A routed to IRQ 16
> > > > Region 0: Memory at f600 (32-bit, non-prefetchable) 
> > > > [size=16M]
> > > > Region 1: Memory at f700 (32-bit, non-prefetchable) 
> > > > [size=128K]
> > > > Region 2: I/O ports at d000 [size=128]
> > > > Expansion ROM at 000c [virtual] [disabled] [size=128K]
> > > > Capabilities: [40] Power Management version 3
> > > > Flags: PMEClk- DSI- D1+ D2+ AuxCurrent=375mA 
> > > > PME(D0+,D1+,D2+,D3hot+,D3cold+)
> > > > Status: D0 NoSoftRst- PME-Enable- DSel=0 DScale=0 PME-
> > > > Capabilities: [50] MSI: Enable- Count=1/4 Maskable- 64bit+
> > > > Address:   Data: 
> > > > Kernel driver in use: ast
> > > > Kernel modules: ast
> > > > 
> > > > 
> > > > v5.5.19 "modinfo ast" output:
> > > > 
> > > > filename:   /lib/modules/5.5.19/kernel/drivers/gpu/drm/ast/ast.ko.xz
> > > > license:GPL and additional rights
> > > > description:AST
> > > > author: Dave Airlie
> > > > firmware:   ast_dp501_fw.bin
> > > > srcversion: ABBD643B3936ECA879F0CE8
> > > > alias:  pci:v1A03d2010sv*sd*bc03sc*i*
> > > > alias:  pci:v1A03d2000sv*sd*bc03sc*i*
> > > > depends:drm,drm_kms_helper,drm_vram_helper,i2c-algo-bit
> > > > retpoline:  Y
> > > > intree: Y
> > > > name:   ast
> > > > vermagic:   5.5.19 SMP preempt mod_unload 
> > > > sig_id: PKCS#7
> > > > signer: Build time autogenerated kernel key
> > > > sig_key:   

Re: Msg "PM: pci_pm_suspend(): ast_pm_suspend+0x0/0x40 [ast] returns -22" after migrating to V5.6.7 kernel from v5.5.10.

2020-04-30 Thread Thomas Zimmermann
Hi Cary

Am 29.04.20 um 20:26 schrieb Cary Garrett:
> Hello Thomas,
> 
> Good news! After applying the patch and regenerating the ast kernel module, 
> the system will
> successfully go into suspend state.
> 
> Thanks for the fast turnaround. Glad I could help.

Great. Can I add your Reported-by and Tested-by tags to the patch?

Best regards
Thomas

> 
> Regards, Cary.
> 
> On Wed, 2020-04-29 at 11:14 +0200, Thomas Zimmermann wrote:
>> Hi Cary,
>>
>> thanks for reporting the bug.
>>
>> Am 28.04.20 um 22:32 schrieb Cary Garrett:
>>> Hello Dave,
>>>
>>> Generating & booting v5.5.19 kernel, system will successfully enter suspend 
>>> state.
>>>
>>> Generating & booting v5.6.0  kernel, system fails to enter suspend state.
>>
>> It's related to
>>
>>  4961eb60f145 ("drm/ast: Enable atomic modesetting")
>>
>> Cary, attached is a patch that fixes the problem on my system. Are you
>> in a position to build and test your own kernels? If so, could you test
>> the attached patch and report back? Thanks!
>>
>> Best regards
>> Thomas
>>
>>> v5.5.19 "lspci - -s 00:04:00" output:
>>>
>>> 04:00.0 VGA compatible controller: ASPEED Technology, Inc. ASPEED Graphics 
>>> Family (rev 30)
>>> (prog-if
>>> 00 [VGA controller])
>>> DeviceName: Onboard VGA
>>> Subsystem: Super Micro Computer Inc ASPEED Graphics Family
>>> Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- 
>>> Stepping- SERR- FastB2B-
>>> DisINTx-
>>> Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=medium >TAbort- 
>>> SERR-
>>> >> Latency: 0
>>> Interrupt: pin A routed to IRQ 16
>>> Region 0: Memory at f600 (32-bit, non-prefetchable) [size=16M]
>>> Region 1: Memory at f700 (32-bit, non-prefetchable) [size=128K]
>>> Region 2: I/O ports at d000 [size=128]
>>> Expansion ROM at 000c [virtual] [disabled] [size=128K]
>>> Capabilities: [40] Power Management version 3
>>> Flags: PMEClk- DSI- D1+ D2+ AuxCurrent=375mA 
>>> PME(D0+,D1+,D2+,D3hot+,D3cold+)
>>> Status: D0 NoSoftRst- PME-Enable- DSel=0 DScale=0 PME-
>>> Capabilities: [50] MSI: Enable- Count=1/4 Maskable- 64bit+
>>> Address:   Data: 
>>> Kernel driver in use: ast
>>> Kernel modules: ast
>>>
>>> v5.6.0 "lspci - -s 00:04:00" output:
>>>
>>> 04:00.0 VGA compatible controller: ASPEED Technology, Inc. ASPEED Graphics 
>>> Family (rev 30)
>>> (prog-if
>>> 00 [VGA controller])
>>> DeviceName: Onboard VGA
>>> Subsystem: Super Micro Computer Inc ASPEED Graphics Family
>>> Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- 
>>> Stepping- SERR- FastB2B-
>>> DisINTx-
>>> Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=medium >TAbort- 
>>> SERR-
>>> >> Latency: 0
>>> Interrupt: pin A routed to IRQ 16
>>> Region 0: Memory at f600 (32-bit, non-prefetchable) [size=16M]
>>> Region 1: Memory at f700 (32-bit, non-prefetchable) [size=128K]
>>> Region 2: I/O ports at d000 [size=128]
>>> Expansion ROM at 000c [virtual] [disabled] [size=128K]
>>> Capabilities: [40] Power Management version 3
>>> Flags: PMEClk- DSI- D1+ D2+ AuxCurrent=375mA 
>>> PME(D0+,D1+,D2+,D3hot+,D3cold+)
>>> Status: D0 NoSoftRst- PME-Enable- DSel=0 DScale=0 PME-
>>> Capabilities: [50] MSI: Enable- Count=1/4 Maskable- 64bit+
>>> Address:   Data: 
>>> Kernel driver in use: ast
>>> Kernel modules: ast
>>>
>>>
>>> v5.5.19 "modinfo ast" output:
>>>
>>> filename:   /lib/modules/5.5.19/kernel/drivers/gpu/drm/ast/ast.ko.xz
>>> license:GPL and additional rights
>>> description:AST
>>> author: Dave Airlie
>>> firmware:   ast_dp501_fw.bin
>>> srcversion: ABBD643B3936ECA879F0CE8
>>> alias:  pci:v1A03d2010sv*sd*bc03sc*i*
>>> alias:  pci:v1A03d2000sv*sd*bc03sc*i*
>>> depends:drm,drm_kms_helper,drm_vram_helper,i2c-algo-bit
>>> retpoline:  Y
>>> intree: Y
>>> name:   ast
>>> vermagic:   5.5.19 SMP preempt mod_unload 
>>> sig_id: PKCS#7
>>> signer: Build time autogenerated kernel key
>>> sig_key:1F:7D:19:82:14:6F:30:FF:FD:11:EF:72:8D:00:41:52:AA:7E:C7:26
>>> sig_hashalgo:   sha512
>>> signature:  A6:B0:FE:86:CD:71:93:67:1B:13:7B:C8:F7:4F:06:19:83:DA:0A:B3:
>>> 04:3A:F9:84:AA:84:BB:A1:86:A0:E6:94:03:EA:95:70:0A:D4:08:5E:
>>> 37:C6:8A:E0:4C:A9:09:E9:F0:F1:16:A9:7B:08:BD:B5:99:F1:4E:99:
>>> 3D:BF:78:37:54:90:6A:DF:8C:E8:AD:08:75:17:38:94:02:24:2F:27:
>>> 74:D7:F6:8D:0A:14:70:98:5C:95:3D:7F:D6:9A:38:39:DC:70:CF:37:
>>> EB:E5:06:88:92:31:84:CF:AD:E8:E2:94:77:69:7B:66:01:55:C6:B7:
>>> 20:21:B5:CB:89:84:97:FB:27:FF:65:D2:DD:EF:74:DC:6A:4A:68:72:
>>> 3A:2C:C9:CD:E6:62:0D:8F:FA:74:ED:C6:5E:F3:C8:52:19:23:66:9B:
>>> B5:56:98:78:C0:4A:3E:ED:6D:FF:E5:71:58:2E:0E:E0:EC:AD:19:62:
>>>   

Re: Msg "PM: pci_pm_suspend(): ast_pm_suspend+0x0/0x40 [ast] returns -22" after migrating to V5.6.7 kernel from v5.5.10.

2020-04-30 Thread Cary Garrett
Hello Thomas,

Good news! After applying the patch and regenerating the ast kernel module, the 
system will
successfully go into suspend state.

Thanks for the fast turnaround. Glad I could help.

Regards, Cary.

On Wed, 2020-04-29 at 11:14 +0200, Thomas Zimmermann wrote:
> Hi Cary,
> 
> thanks for reporting the bug.
> 
> Am 28.04.20 um 22:32 schrieb Cary Garrett:
> > Hello Dave,
> > 
> > Generating & booting v5.5.19 kernel, system will successfully enter suspend 
> > state.
> > 
> > Generating & booting v5.6.0  kernel, system fails to enter suspend state.
> 
> It's related to
> 
>  4961eb60f145 ("drm/ast: Enable atomic modesetting")
> 
> Cary, attached is a patch that fixes the problem on my system. Are you
> in a position to build and test your own kernels? If so, could you test
> the attached patch and report back? Thanks!
> 
> Best regards
> Thomas
> 
> > v5.5.19 "lspci - -s 00:04:00" output:
> > 
> > 04:00.0 VGA compatible controller: ASPEED Technology, Inc. ASPEED Graphics 
> > Family (rev 30)
> > (prog-if
> > 00 [VGA controller])
> > DeviceName: Onboard VGA
> > Subsystem: Super Micro Computer Inc ASPEED Graphics Family
> > Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- 
> > Stepping- SERR- FastB2B-
> > DisINTx-
> > Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=medium >TAbort- 
> > SERR-
> >  > Latency: 0
> > Interrupt: pin A routed to IRQ 16
> > Region 0: Memory at f600 (32-bit, non-prefetchable) [size=16M]
> > Region 1: Memory at f700 (32-bit, non-prefetchable) [size=128K]
> > Region 2: I/O ports at d000 [size=128]
> > Expansion ROM at 000c [virtual] [disabled] [size=128K]
> > Capabilities: [40] Power Management version 3
> > Flags: PMEClk- DSI- D1+ D2+ AuxCurrent=375mA 
> > PME(D0+,D1+,D2+,D3hot+,D3cold+)
> > Status: D0 NoSoftRst- PME-Enable- DSel=0 DScale=0 PME-
> > Capabilities: [50] MSI: Enable- Count=1/4 Maskable- 64bit+
> > Address:   Data: 
> > Kernel driver in use: ast
> > Kernel modules: ast
> > 
> > v5.6.0 "lspci - -s 00:04:00" output:
> > 
> > 04:00.0 VGA compatible controller: ASPEED Technology, Inc. ASPEED Graphics 
> > Family (rev 30)
> > (prog-if
> > 00 [VGA controller])
> > DeviceName: Onboard VGA
> > Subsystem: Super Micro Computer Inc ASPEED Graphics Family
> > Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- 
> > Stepping- SERR- FastB2B-
> > DisINTx-
> > Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=medium >TAbort- 
> > SERR-
> >  > Latency: 0
> > Interrupt: pin A routed to IRQ 16
> > Region 0: Memory at f600 (32-bit, non-prefetchable) [size=16M]
> > Region 1: Memory at f700 (32-bit, non-prefetchable) [size=128K]
> > Region 2: I/O ports at d000 [size=128]
> > Expansion ROM at 000c [virtual] [disabled] [size=128K]
> > Capabilities: [40] Power Management version 3
> > Flags: PMEClk- DSI- D1+ D2+ AuxCurrent=375mA 
> > PME(D0+,D1+,D2+,D3hot+,D3cold+)
> > Status: D0 NoSoftRst- PME-Enable- DSel=0 DScale=0 PME-
> > Capabilities: [50] MSI: Enable- Count=1/4 Maskable- 64bit+
> > Address:   Data: 
> > Kernel driver in use: ast
> > Kernel modules: ast
> > 
> > 
> > v5.5.19 "modinfo ast" output:
> > 
> > filename:   /lib/modules/5.5.19/kernel/drivers/gpu/drm/ast/ast.ko.xz
> > license:GPL and additional rights
> > description:AST
> > author: Dave Airlie
> > firmware:   ast_dp501_fw.bin
> > srcversion: ABBD643B3936ECA879F0CE8
> > alias:  pci:v1A03d2010sv*sd*bc03sc*i*
> > alias:  pci:v1A03d2000sv*sd*bc03sc*i*
> > depends:drm,drm_kms_helper,drm_vram_helper,i2c-algo-bit
> > retpoline:  Y
> > intree: Y
> > name:   ast
> > vermagic:   5.5.19 SMP preempt mod_unload 
> > sig_id: PKCS#7
> > signer: Build time autogenerated kernel key
> > sig_key:1F:7D:19:82:14:6F:30:FF:FD:11:EF:72:8D:00:41:52:AA:7E:C7:26
> > sig_hashalgo:   sha512
> > signature:  A6:B0:FE:86:CD:71:93:67:1B:13:7B:C8:F7:4F:06:19:83:DA:0A:B3:
> > 04:3A:F9:84:AA:84:BB:A1:86:A0:E6:94:03:EA:95:70:0A:D4:08:5E:
> > 37:C6:8A:E0:4C:A9:09:E9:F0:F1:16:A9:7B:08:BD:B5:99:F1:4E:99:
> > 3D:BF:78:37:54:90:6A:DF:8C:E8:AD:08:75:17:38:94:02:24:2F:27:
> > 74:D7:F6:8D:0A:14:70:98:5C:95:3D:7F:D6:9A:38:39:DC:70:CF:37:
> > EB:E5:06:88:92:31:84:CF:AD:E8:E2:94:77:69:7B:66:01:55:C6:B7:
> > 20:21:B5:CB:89:84:97:FB:27:FF:65:D2:DD:EF:74:DC:6A:4A:68:72:
> > 3A:2C:C9:CD:E6:62:0D:8F:FA:74:ED:C6:5E:F3:C8:52:19:23:66:9B:
> > B5:56:98:78:C0:4A:3E:ED:6D:FF:E5:71:58:2E:0E:E0:EC:AD:19:62:
> > 22:87:60:D8:F2:D2:9E:15:7F:4F:2C:AB:F6:CE:76:2B:A1:CA:86:67:
> > E8:B3:3A:9C:47:B0:B4:46:2D:2A:80:05:F1:73:C9:63:DE:49:48:C5:
> > 

Re: Msg "PM: pci_pm_suspend(): ast_pm_suspend+0x0/0x40 [ast] returns -22" after migrating to V5.6.7 kernel from v5.5.10.

2020-04-29 Thread Thomas Zimmermann
Hi Cary,

thanks for reporting the bug.

Am 28.04.20 um 22:32 schrieb Cary Garrett:
> Hello Dave,
> 
> Generating & booting v5.5.19 kernel, system will successfully enter suspend 
> state.
> 
> Generating & booting v5.6.0  kernel, system fails to enter suspend state.

It's related to

 4961eb60f145 ("drm/ast: Enable atomic modesetting")

Cary, attached is a patch that fixes the problem on my system. Are you
in a position to build and test your own kernels? If so, could you test
the attached patch and report back? Thanks!

Best regards
Thomas

> 
> v5.5.19 "lspci - -s 00:04:00" output:
> 
> 04:00.0 VGA compatible controller: ASPEED Technology, Inc. ASPEED Graphics 
> Family (rev 30) (prog-if
> 00 [VGA controller])
>   DeviceName: Onboard VGA
>   Subsystem: Super Micro Computer Inc ASPEED Graphics Family
>   Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- 
> Stepping- SERR- FastB2B-
> DisINTx-
>   Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=medium >TAbort- 
> SERR-
>Latency: 0
>   Interrupt: pin A routed to IRQ 16
>   Region 0: Memory at f600 (32-bit, non-prefetchable) [size=16M]
>   Region 1: Memory at f700 (32-bit, non-prefetchable) [size=128K]
>   Region 2: I/O ports at d000 [size=128]
>   Expansion ROM at 000c [virtual] [disabled] [size=128K]
>   Capabilities: [40] Power Management version 3
>   Flags: PMEClk- DSI- D1+ D2+ AuxCurrent=375mA 
> PME(D0+,D1+,D2+,D3hot+,D3cold+)
>   Status: D0 NoSoftRst- PME-Enable- DSel=0 DScale=0 PME-
>   Capabilities: [50] MSI: Enable- Count=1/4 Maskable- 64bit+
>   Address:   Data: 
>   Kernel driver in use: ast
>   Kernel modules: ast
> 
> v5.6.0 "lspci - -s 00:04:00" output:
> 
> 04:00.0 VGA compatible controller: ASPEED Technology, Inc. ASPEED Graphics 
> Family (rev 30) (prog-if
> 00 [VGA controller])
>   DeviceName: Onboard VGA
>   Subsystem: Super Micro Computer Inc ASPEED Graphics Family
>   Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- 
> Stepping- SERR- FastB2B-
> DisINTx-
>   Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=medium >TAbort- 
> SERR-
>Latency: 0
>   Interrupt: pin A routed to IRQ 16
>   Region 0: Memory at f600 (32-bit, non-prefetchable) [size=16M]
>   Region 1: Memory at f700 (32-bit, non-prefetchable) [size=128K]
>   Region 2: I/O ports at d000 [size=128]
>   Expansion ROM at 000c [virtual] [disabled] [size=128K]
>   Capabilities: [40] Power Management version 3
>   Flags: PMEClk- DSI- D1+ D2+ AuxCurrent=375mA 
> PME(D0+,D1+,D2+,D3hot+,D3cold+)
>   Status: D0 NoSoftRst- PME-Enable- DSel=0 DScale=0 PME-
>   Capabilities: [50] MSI: Enable- Count=1/4 Maskable- 64bit+
>   Address:   Data: 
>   Kernel driver in use: ast
>   Kernel modules: ast
> 
> 
> v5.5.19 "modinfo ast" output:
> 
> filename:   /lib/modules/5.5.19/kernel/drivers/gpu/drm/ast/ast.ko.xz
> license:GPL and additional rights
> description:AST
> author: Dave Airlie
> firmware:   ast_dp501_fw.bin
> srcversion: ABBD643B3936ECA879F0CE8
> alias:  pci:v1A03d2010sv*sd*bc03sc*i*
> alias:  pci:v1A03d2000sv*sd*bc03sc*i*
> depends:drm,drm_kms_helper,drm_vram_helper,i2c-algo-bit
> retpoline:  Y
> intree: Y
> name:   ast
> vermagic:   5.5.19 SMP preempt mod_unload 
> sig_id: PKCS#7
> signer: Build time autogenerated kernel key
> sig_key:1F:7D:19:82:14:6F:30:FF:FD:11:EF:72:8D:00:41:52:AA:7E:C7:26
> sig_hashalgo:   sha512
> signature:  A6:B0:FE:86:CD:71:93:67:1B:13:7B:C8:F7:4F:06:19:83:DA:0A:B3:
>   04:3A:F9:84:AA:84:BB:A1:86:A0:E6:94:03:EA:95:70:0A:D4:08:5E:
>   37:C6:8A:E0:4C:A9:09:E9:F0:F1:16:A9:7B:08:BD:B5:99:F1:4E:99:
>   3D:BF:78:37:54:90:6A:DF:8C:E8:AD:08:75:17:38:94:02:24:2F:27:
>   74:D7:F6:8D:0A:14:70:98:5C:95:3D:7F:D6:9A:38:39:DC:70:CF:37:
>   EB:E5:06:88:92:31:84:CF:AD:E8:E2:94:77:69:7B:66:01:55:C6:B7:
>   20:21:B5:CB:89:84:97:FB:27:FF:65:D2:DD:EF:74:DC:6A:4A:68:72:
>   3A:2C:C9:CD:E6:62:0D:8F:FA:74:ED:C6:5E:F3:C8:52:19:23:66:9B:
>   B5:56:98:78:C0:4A:3E:ED:6D:FF:E5:71:58:2E:0E:E0:EC:AD:19:62:
>   22:87:60:D8:F2:D2:9E:15:7F:4F:2C:AB:F6:CE:76:2B:A1:CA:86:67:
>   E8:B3:3A:9C:47:B0:B4:46:2D:2A:80:05:F1:73:C9:63:DE:49:48:C5:
>   AE:C2:21:2B:CB:CD:63:AB:06:F1:EF:1D:27:8E:C5:E1:8E:9A:49:6B:
>   F3:90:39:6C:01:C4:F4:E4:C4:E4:0C:F7:32:D6:A2:AA:46:C4:A7:B2:
>   C3:D9:0B:BC:79:A5:7B:2D:6C:58:AD:4A:41:FD:8F:F4:DF:C9:D3:D4:
>   51:12:E9:16:FC:53:C4:C7:4E:63:19:6B:A6:B4:63:37:52:E2:60:AD:
>   B3:57:43:AD:3B:A9:8E:11:83:68:8C:CE:23:8A:AE:75:6C:C7:3F:40:
>   

Re: Msg "PM: pci_pm_suspend(): ast_pm_suspend+0x0/0x40 [ast] returns -22" after migrating to V5.6.7 kernel from v5.5.10.

2020-04-29 Thread Cary Garrett
Hello Dave,

Generating & booting v5.5.19 kernel, system will successfully enter suspend 
state.

Generating & booting v5.6.0  kernel, system fails to enter suspend state.

v5.5.19 "lspci - -s 00:04:00" output:

04:00.0 VGA compatible controller: ASPEED Technology, Inc. ASPEED Graphics 
Family (rev 30) (prog-if
00 [VGA controller])
DeviceName: Onboard VGA
Subsystem: Super Micro Computer Inc ASPEED Graphics Family
Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- 
Stepping- SERR- FastB2B-
DisINTx-
Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=medium >TAbort- 
SERR-
TAbort- 
SERR-
 Adding dri-devel.
> 
> This might need a bisect to work out where it went wrong,
> 
> Dave.
> 
> On Tue, Apr 28, 2020 at 7:48 AM Cary Garrett  wrote:
> > Hello,
> > 
> > System won't go into suspend state after migrating to V5.6.7 kernel. 
> > Working in V5.5.10.
> > 
> > Journal showing following:
> > 
> > Apr 27 16:07:54 kernel: PM: pci_pm_suspend(): ast_pm_suspend+0x0/0x40 [ast] 
> > returns -22
> > Apr 27 16:07:54 kernel: PM: dpm_run_callback(): pci_pm_suspend+0x0/0x160 
> > returns -22
> > Apr 27 16:07:54 kernel: PM: Device :04:00.0 failed to suspend async: 
> > error -22
> > 
> > Journalctl output at time of failure:
> > 
> > -- Logs begin at Tue 2020-04-21 17:10:11 CDT, end at Mon 2020-04-27 
> > 16:23:33 CDT. --
> > Apr 27 16:07:54 systemd[1]: Reached target Sleep.
> > Apr 27 16:07:54 systemd[1]: Starting Suspend...
> > Apr 27 16:07:54 systemd-sleep[1104]: Suspending system...
> > Apr 27 16:07:54 kernel: PM: suspend entry (deep)
> > Apr 27 16:07:54 kernel: Filesystems sync: 0.091 seconds
> > Apr 27 16:07:54 kernel: Freezing user space processes ... (elapsed 0.001 
> > seconds) done.
> > Apr 27 16:07:54 kernel: OOM killer disabled.
> > Apr 27 16:07:54 kernel: Freezing remaining freezable tasks ... (elapsed 
> > 0.001 seconds) done.
> > Apr 27 16:07:54 kernel: printk: Suspending console(s) (use 
> > no_console_suspend to debug)
> > Apr 27 16:07:54 kernel: sd 6:0:1:0: [sdc] Synchronizing SCSI cache
> > Apr 27 16:07:54 kernel: sd 6:0:0:0: [sdb] Synchronizing SCSI cache
> > Apr 27 16:07:54 kernel: serial 00:09: disabled
> > Apr 27 16:07:54 kernel: serial 00:06: disabled
> > Apr 27 16:07:54 kernel: serial 00:05: disabled
> > Apr 27 16:07:54 kernel: PM: pci_pm_suspend(): ast_pm_suspend+0x0/0x40 [ast] 
> > returns -22
> > Apr 27 16:07:54 kernel: PM: dpm_run_callback(): pci_pm_suspend+0x0/0x160 
> > returns -22
> > Apr 27 16:07:54 kernel: PM: Device :04:00.0 failed to suspend async: 
> > error -22
> > Apr 27 16:07:54 kernel: sd 0:0:0:0: [sda] Synchronizing SCSI cache
> > Apr 27 16:07:54 kernel: sd 0:0:0:0: [sda] Stopping disk
> > Apr 27 16:07:54 kernel: PM: Some devices failed to suspend, or early wake 
> > event detected
> > Apr 27 16:07:54 kernel: sd 0:0:0:0: [sda] Starting disk
> > Apr 27 16:07:54 kernel: serial 00:05: activated
> > Apr 27 16:07:54 kernel: serial 00:06: activated
> > Apr 27 16:07:54 kernel: serial 00:09: activated
> > Apr 27 16:07:54 kernel: OOM killer enabled.
> > Apr 27 16:07:54 kernel: Restarting tasks ... done.
> > Apr 27 16:07:54 kernel: PM: suspend exit
> > Apr 27 16:07:54 kernel: PM: suspend entry (s2idle)
> > Apr 27 16:07:55 kernel: Filesystems sync: 0.078 seconds
> > Apr 27 16:07:55 kernel: Freezing user space processes ... (elapsed 0.001 
> > seconds) done.
> > Apr 27 16:07:55 kernel: OOM killer disabled.
> > Apr 27 16:07:55 kernel: Freezing remaining freezable tasks ... (elapsed 
> > 0.001 seconds) done.
> > Apr 27 16:07:55 kernel: printk: Suspending console(s) (use 
> > no_console_suspend to debug)
> > Apr 27 16:07:55 kernel: sd 6:0:0:0: [sdb] Synchronizing SCSI cache
> > Apr 27 16:07:55 kernel: sd 6:0:1:0: [sdc] Synchronizing SCSI cache
> > Apr 27 16:07:55 kernel: serial 00:09: disabled
> > Apr 27 16:07:55 kernel: serial 00:06: disabled
> > Apr 27 16:07:55 kernel: serial 00:05: disabled
> > Apr 27 16:07:55 kernel: PM: pci_pm_suspend(): ast_pm_suspend+0x0/0x40 [ast] 
> > returns -22
> > Apr 27 16:07:55 kernel: PM: dpm_run_callback(): pci_pm_suspend+0x0/0x160 
> > returns -22
> > Apr 27 16:07:55 kernel: PM: Device :04:00.0 failed to suspend async: 
> > error -22
> > Apr 27 16:07:55 kernel: mpt2sas_cm0: pdev=0x03c9e977, 
> > slot=:02:00.0, entering
> > operating
> > state [D4]
> > Apr 27 16:07:55 kernel: mpt2sas_cm0: sending message unit reset !!
> > Apr 27 16:07:55 kernel: mpt2sas_cm0: message unit reset: SUCCESS
> > Apr 27 16:07:55 kernel: sd 0:0:0:0: [sda] Synchronizing SCSI cache
> > Apr 27 16:07:55 kernel: sd 0:0:0:0: [sda] Stopping disk
> > Apr 27 16:07:55 kernel: ata3: SATA link down (SStatus 0 SControl 300)
> > Apr 27 16:07:55 kernel: ata2: SATA link down (SStatus 0 SControl 300)
> > Apr 27 16:07:55 kernel: ata4: SATA link down (SStatus 0 SControl 300)
> > Apr 27 16:07:55 kernel: ata6: SATA link down (SStatus 0 SControl 300)
> > Apr 27 16:07:55 kernel: ata5: SATA link down (SStatus 0 SControl 300)
> > Apr 27 

Re: Msg "PM: pci_pm_suspend(): ast_pm_suspend+0x0/0x40 [ast] returns -22" after migrating to V5.6.7 kernel from v5.5.10.

2020-04-28 Thread David Airlie
On Wed, Apr 29, 2020 at 6:38 AM Cary Garrett  wrote:
>
> Hello Dave,
>
> Generating & booting v5.5.19 kernel, system will successfully enter suspend 
> state.
>
> Generating & booting v5.6.0  kernel, system fails to enter suspend state.
>

Thomas, do you have ast hw, care to help track it down, I suspect one
of the ast changes in 5.6 did it.

Dave.

> v5.5.19 "lspci - -s 00:04:00" output:
>
> 04:00.0 VGA compatible controller: ASPEED Technology, Inc. ASPEED Graphics 
> Family (rev 30) (prog-if
> 00 [VGA controller])
> DeviceName: Onboard VGA
> Subsystem: Super Micro Computer Inc ASPEED Graphics Family
> Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- 
> Stepping- SERR- FastB2B-
> DisINTx-
> Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=medium >TAbort- 
> SERR-
>  Latency: 0
> Interrupt: pin A routed to IRQ 16
> Region 0: Memory at f600 (32-bit, non-prefetchable) [size=16M]
> Region 1: Memory at f700 (32-bit, non-prefetchable) [size=128K]
> Region 2: I/O ports at d000 [size=128]
> Expansion ROM at 000c [virtual] [disabled] [size=128K]
> Capabilities: [40] Power Management version 3
> Flags: PMEClk- DSI- D1+ D2+ AuxCurrent=375mA 
> PME(D0+,D1+,D2+,D3hot+,D3cold+)
> Status: D0 NoSoftRst- PME-Enable- DSel=0 DScale=0 PME-
> Capabilities: [50] MSI: Enable- Count=1/4 Maskable- 64bit+
> Address:   Data: 
> Kernel driver in use: ast
> Kernel modules: ast
>
> v5.6.0 "lspci - -s 00:04:00" output:
>
> 04:00.0 VGA compatible controller: ASPEED Technology, Inc. ASPEED Graphics 
> Family (rev 30) (prog-if
> 00 [VGA controller])
> DeviceName: Onboard VGA
> Subsystem: Super Micro Computer Inc ASPEED Graphics Family
> Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- 
> Stepping- SERR- FastB2B-
> DisINTx-
> Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=medium >TAbort- 
> SERR-
>  Latency: 0
> Interrupt: pin A routed to IRQ 16
> Region 0: Memory at f600 (32-bit, non-prefetchable) [size=16M]
> Region 1: Memory at f700 (32-bit, non-prefetchable) [size=128K]
> Region 2: I/O ports at d000 [size=128]
> Expansion ROM at 000c [virtual] [disabled] [size=128K]
> Capabilities: [40] Power Management version 3
> Flags: PMEClk- DSI- D1+ D2+ AuxCurrent=375mA 
> PME(D0+,D1+,D2+,D3hot+,D3cold+)
> Status: D0 NoSoftRst- PME-Enable- DSel=0 DScale=0 PME-
> Capabilities: [50] MSI: Enable- Count=1/4 Maskable- 64bit+
> Address:   Data: 
> Kernel driver in use: ast
> Kernel modules: ast
>
>
> v5.5.19 "modinfo ast" output:
>
> filename:   /lib/modules/5.5.19/kernel/drivers/gpu/drm/ast/ast.ko.xz
> license:GPL and additional rights
> description:AST
> author: Dave Airlie
> firmware:   ast_dp501_fw.bin
> srcversion: ABBD643B3936ECA879F0CE8
> alias:  pci:v1A03d2010sv*sd*bc03sc*i*
> alias:  pci:v1A03d2000sv*sd*bc03sc*i*
> depends:drm,drm_kms_helper,drm_vram_helper,i2c-algo-bit
> retpoline:  Y
> intree: Y
> name:   ast
> vermagic:   5.5.19 SMP preempt mod_unload
> sig_id: PKCS#7
> signer: Build time autogenerated kernel key
> sig_key:1F:7D:19:82:14:6F:30:FF:FD:11:EF:72:8D:00:41:52:AA:7E:C7:26
> sig_hashalgo:   sha512
> signature:  A6:B0:FE:86:CD:71:93:67:1B:13:7B:C8:F7:4F:06:19:83:DA:0A:B3:
> 04:3A:F9:84:AA:84:BB:A1:86:A0:E6:94:03:EA:95:70:0A:D4:08:5E:
> 37:C6:8A:E0:4C:A9:09:E9:F0:F1:16:A9:7B:08:BD:B5:99:F1:4E:99:
> 3D:BF:78:37:54:90:6A:DF:8C:E8:AD:08:75:17:38:94:02:24:2F:27:
> 74:D7:F6:8D:0A:14:70:98:5C:95:3D:7F:D6:9A:38:39:DC:70:CF:37:
> EB:E5:06:88:92:31:84:CF:AD:E8:E2:94:77:69:7B:66:01:55:C6:B7:
> 20:21:B5:CB:89:84:97:FB:27:FF:65:D2:DD:EF:74:DC:6A:4A:68:72:
> 3A:2C:C9:CD:E6:62:0D:8F:FA:74:ED:C6:5E:F3:C8:52:19:23:66:9B:
> B5:56:98:78:C0:4A:3E:ED:6D:FF:E5:71:58:2E:0E:E0:EC:AD:19:62:
> 22:87:60:D8:F2:D2:9E:15:7F:4F:2C:AB:F6:CE:76:2B:A1:CA:86:67:
> E8:B3:3A:9C:47:B0:B4:46:2D:2A:80:05:F1:73:C9:63:DE:49:48:C5:
> AE:C2:21:2B:CB:CD:63:AB:06:F1:EF:1D:27:8E:C5:E1:8E:9A:49:6B:
> F3:90:39:6C:01:C4:F4:E4:C4:E4:0C:F7:32:D6:A2:AA:46:C4:A7:B2:
> C3:D9:0B:BC:79:A5:7B:2D:6C:58:AD:4A:41:FD:8F:F4:DF:C9:D3:D4:
> 51:12:E9:16:FC:53:C4:C7:4E:63:19:6B:A6:B4:63:37:52:E2:60:AD:
> B3:57:43:AD:3B:A9:8E:11:83:68:8C:CE:23:8A:AE:75:6C:C7:3F:40:
> 61:5E:70:C9:78:75:6E:D0:5A:48:DB:47:35:6C:50:F5:D0:E0:54:B5:
> 

Re: Msg "PM: pci_pm_suspend(): ast_pm_suspend+0x0/0x40 [ast] returns -22" after migrating to V5.6.7 kernel from v5.5.10.

2020-04-27 Thread David Airlie
Adding dri-devel.

This might need a bisect to work out where it went wrong,

Dave.

On Tue, Apr 28, 2020 at 7:48 AM Cary Garrett  wrote:
>
> Hello,
>
> System won't go into suspend state after migrating to V5.6.7 kernel. Working 
> in V5.5.10.
>
> Journal showing following:
>
> Apr 27 16:07:54 kernel: PM: pci_pm_suspend(): ast_pm_suspend+0x0/0x40 [ast] 
> returns -22
> Apr 27 16:07:54 kernel: PM: dpm_run_callback(): pci_pm_suspend+0x0/0x160 
> returns -22
> Apr 27 16:07:54 kernel: PM: Device :04:00.0 failed to suspend async: 
> error -22
>
> Journalctl output at time of failure:
>
> -- Logs begin at Tue 2020-04-21 17:10:11 CDT, end at Mon 2020-04-27 16:23:33 
> CDT. --
> Apr 27 16:07:54 systemd[1]: Reached target Sleep.
> Apr 27 16:07:54 systemd[1]: Starting Suspend...
> Apr 27 16:07:54 systemd-sleep[1104]: Suspending system...
> Apr 27 16:07:54 kernel: PM: suspend entry (deep)
> Apr 27 16:07:54 kernel: Filesystems sync: 0.091 seconds
> Apr 27 16:07:54 kernel: Freezing user space processes ... (elapsed 0.001 
> seconds) done.
> Apr 27 16:07:54 kernel: OOM killer disabled.
> Apr 27 16:07:54 kernel: Freezing remaining freezable tasks ... (elapsed 0.001 
> seconds) done.
> Apr 27 16:07:54 kernel: printk: Suspending console(s) (use no_console_suspend 
> to debug)
> Apr 27 16:07:54 kernel: sd 6:0:1:0: [sdc] Synchronizing SCSI cache
> Apr 27 16:07:54 kernel: sd 6:0:0:0: [sdb] Synchronizing SCSI cache
> Apr 27 16:07:54 kernel: serial 00:09: disabled
> Apr 27 16:07:54 kernel: serial 00:06: disabled
> Apr 27 16:07:54 kernel: serial 00:05: disabled
> Apr 27 16:07:54 kernel: PM: pci_pm_suspend(): ast_pm_suspend+0x0/0x40 [ast] 
> returns -22
> Apr 27 16:07:54 kernel: PM: dpm_run_callback(): pci_pm_suspend+0x0/0x160 
> returns -22
> Apr 27 16:07:54 kernel: PM: Device :04:00.0 failed to suspend async: 
> error -22
> Apr 27 16:07:54 kernel: sd 0:0:0:0: [sda] Synchronizing SCSI cache
> Apr 27 16:07:54 kernel: sd 0:0:0:0: [sda] Stopping disk
> Apr 27 16:07:54 kernel: PM: Some devices failed to suspend, or early wake 
> event detected
> Apr 27 16:07:54 kernel: sd 0:0:0:0: [sda] Starting disk
> Apr 27 16:07:54 kernel: serial 00:05: activated
> Apr 27 16:07:54 kernel: serial 00:06: activated
> Apr 27 16:07:54 kernel: serial 00:09: activated
> Apr 27 16:07:54 kernel: OOM killer enabled.
> Apr 27 16:07:54 kernel: Restarting tasks ... done.
> Apr 27 16:07:54 kernel: PM: suspend exit
> Apr 27 16:07:54 kernel: PM: suspend entry (s2idle)
> Apr 27 16:07:55 kernel: Filesystems sync: 0.078 seconds
> Apr 27 16:07:55 kernel: Freezing user space processes ... (elapsed 0.001 
> seconds) done.
> Apr 27 16:07:55 kernel: OOM killer disabled.
> Apr 27 16:07:55 kernel: Freezing remaining freezable tasks ... (elapsed 0.001 
> seconds) done.
> Apr 27 16:07:55 kernel: printk: Suspending console(s) (use no_console_suspend 
> to debug)
> Apr 27 16:07:55 kernel: sd 6:0:0:0: [sdb] Synchronizing SCSI cache
> Apr 27 16:07:55 kernel: sd 6:0:1:0: [sdc] Synchronizing SCSI cache
> Apr 27 16:07:55 kernel: serial 00:09: disabled
> Apr 27 16:07:55 kernel: serial 00:06: disabled
> Apr 27 16:07:55 kernel: serial 00:05: disabled
> Apr 27 16:07:55 kernel: PM: pci_pm_suspend(): ast_pm_suspend+0x0/0x40 [ast] 
> returns -22
> Apr 27 16:07:55 kernel: PM: dpm_run_callback(): pci_pm_suspend+0x0/0x160 
> returns -22
> Apr 27 16:07:55 kernel: PM: Device :04:00.0 failed to suspend async: 
> error -22
> Apr 27 16:07:55 kernel: mpt2sas_cm0: pdev=0x03c9e977, 
> slot=:02:00.0, entering operating
> state [D4]
> Apr 27 16:07:55 kernel: mpt2sas_cm0: sending message unit reset !!
> Apr 27 16:07:55 kernel: mpt2sas_cm0: message unit reset: SUCCESS
> Apr 27 16:07:55 kernel: sd 0:0:0:0: [sda] Synchronizing SCSI cache
> Apr 27 16:07:55 kernel: sd 0:0:0:0: [sda] Stopping disk
> Apr 27 16:07:55 kernel: ata3: SATA link down (SStatus 0 SControl 300)
> Apr 27 16:07:55 kernel: ata2: SATA link down (SStatus 0 SControl 300)
> Apr 27 16:07:55 kernel: ata4: SATA link down (SStatus 0 SControl 300)
> Apr 27 16:07:55 kernel: ata6: SATA link down (SStatus 0 SControl 300)
> Apr 27 16:07:55 kernel: ata5: SATA link down (SStatus 0 SControl 300)
> Apr 27 16:07:55 kernel: PM: Some devices failed to suspend, or early wake 
> event detected
> Apr 27 16:07:55 kernel: sd 0:0:0:0: [sda] Starting disk
> Apr 27 16:07:55 kernel: serial 00:05: activated
> Apr 27 16:07:55 kernel: serial 00:06: activated
> Apr 27 16:07:55 kernel: serial 00:09: activated
> Apr 27 16:07:55 kernel: mpt2sas_cm0: pdev=0x03c9e977, 
> slot=:02:00.0, previous operating
> state [D0]
> Apr 27 16:07:55 kernel: mpt2sas_cm0: 64 BIT PCI BUS DMA ADDRESSING SUPPORTED, 
> total mem (16354848
> kB)
> Apr 27 16:07:55 kernel: mpt2sas_cm0: CurrentHostPageSize is 0: Setting 
> default host page size to 4k
> Apr 27 16:07:55 kernel: mpt2sas_cm0: MSI-X vectors supported: 16
> Apr 27 16:07:55 kernel:  no of cores: 8, max_msix_vectors: -1
> Apr 27 16:07:55 kernel: mpt2sas_cm0:  0 8
> Apr 27 16:07:55 kernel: