Bug 204685

Summary: Sometimes Lenovo Yoga C630 WOS boot is delayed due to UFS initialization error
Product: SCSI Drivers Reporter: RussianNeuroMancer (russianneuromancer)
Component: OtherAssignee: scsi_drivers-other
Status: RESOLVED UNREPRODUCIBLE    
Severity: normal    
Priority: P1    
Hardware: ARM   
OS: Linux   
Kernel Version: 5.2 Subsystem:
Regression: No Bisected commit-id:
Attachments: Linux 5.2.0 dmesg from Lenovo Yoga C630 WOS

Description RussianNeuroMancer 2019-08-24 12:34:56 UTC
Created attachment 284585 [details]
Linux 5.2.0 dmesg from Lenovo Yoga C630 WOS

I noticed that sometimes Linux boot is delayed on Lenovo Yoga C630 WOS by following error:

[   33.772190] ufshcd-qcom 1d84000.ufshc: ufshcd_abort: Device abort task at tag 7
[   33.774946] sd 0:0:0:5: [sdf] tag#7 CDB: Read(10) 28 00 00 00 00 00 00 00 01 00
[   33.777732] host_regs: 00000000: 1587031f 00000000 00000210 00000000
[   33.780508] host_regs: 00000010: 01000000 00010217 00000c96 00000000
[   33.783281] host_regs: 00000020: 00000000 00030e75 00000000 00000000
[   33.786061] host_regs: 00000030: 0000010f 00000001 80000010 00000000
[   33.788842] host_regs: 00000040: 00000000 00000000 00000000 00000000
[   33.791616] host_regs: 00000050: 661cd000 00000002 ab000080 00000000
[   33.794403] host_regs: 00000060: 00000001 ff1fffff 00000000 00000000
[   33.797195] host_regs: 00000070: 661cc000 00000002 00000000 00000000
[   33.799987] host_regs: 00000080: 00000001 00000000 00000000 00000000
[   33.802763] host_regs: 00000090: 00000002 15710000 00000000 00000003
[   33.805525] ufshcd-qcom 1d84000.ufshc: hba->ufs_version = 0x210, hba->capabilities = 0x1587031f
[   33.808338] ufshcd-qcom 1d84000.ufshc: hba->outstanding_reqs = 0xab000080, hba->outstanding_tasks = 0x0
[   33.811144] ufshcd-qcom 1d84000.ufshc: last_hibern8_exit_tstamp at 0 us, hibern8_exit_cnt = 0
[   33.813951] ufshcd-qcom 1d84000.ufshc: No record of pa_err uic errors
[   33.816735] ufshcd-qcom 1d84000.ufshc: No record of dl_err uic errors
[   33.819496] ufshcd-qcom 1d84000.ufshc: No record of nl_err uic errors
[   33.822236] ufshcd-qcom 1d84000.ufshc: No record of tl_err uic errors
[   33.824947] ufshcd-qcom 1d84000.ufshc: No record of dme_err uic errors
[   33.827660] ufshcd-qcom 1d84000.ufshc: clk: core_clk, rate: 200000000
[   33.830371] ufshcd-qcom 1d84000.ufshc: clk: core_clk_unipro, rate: 150000000
[   33.833118] HCI Vendor Specific Registers 00000000: 000000c8 00000000 00000000 00000000
[   33.835858] HCI Vendor Specific Registers 00000010: 00000000 00000000 00000001 5c5c052c
[   33.838566] HCI Vendor Specific Registers 00000020: 3f0113ff 30010001 00000000 00000000
[   33.841258] HCI Vendor Specific Registers 00000030: 00000000 00000000 02500000 00000000

After boot is completion UFS storage is accessible, as you can see in attached Linux 5.2 boot log.
Original bugreport: https://github.com/aarch64-laptops/build/issues/15
If needed there is also Linux 5.3rc1 boot logs attached to this message: https://github.com/aarch64-laptops/build/issues/13#issuecomment-518707493
Comment 1 RussianNeuroMancer 2021-06-19 20:08:55 UTC
Not reproducible anymore on 5.12 and 5.13 (although 5.11 still fail for me with different UFS-related error this is no longer matter).