1. 09 2月, 2023 2 次提交
  2. 21 11月, 2022 1 次提交
  3. 18 11月, 2022 4 次提交
  4. 27 10月, 2022 3 次提交
  5. 19 10月, 2022 2 次提交
  6. 29 9月, 2022 1 次提交
  7. 04 8月, 2022 4 次提交
  8. 18 7月, 2022 1 次提交
  9. 06 7月, 2022 4 次提交
  10. 07 6月, 2022 1 次提交
  11. 26 5月, 2022 2 次提交
  12. 10 5月, 2022 1 次提交
    • F
      usb: xhci-plat: fix crash when suspend if remote wake enable · 7690e355
      Frank Li 提交于
      stable inclusion
      from stable-v5.10.96
      commit 20c51a4c52208f98e27308c456a1951778f41fa5
      bugzilla: https://gitee.com/openeuler/kernel/issues/I55NWB
      
      Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=20c51a4c52208f98e27308c456a1951778f41fa5
      
      --------------------------------
      
      commit 9df47846 upstream.
      
      Crashed at i.mx8qm platform when suspend if enable remote wakeup
      
      Internal error: synchronous external abort: 96000210 [#1] PREEMPT SMP
      Modules linked in:
      CPU: 2 PID: 244 Comm: kworker/u12:6 Not tainted 5.15.5-dirty #12
      Hardware name: Freescale i.MX8QM MEK (DT)
      Workqueue: events_unbound async_run_entry_fn
      pstate: 600000c5 (nZCv daIF -PAN -UAO -TCO -DIT -SSBS BTYPE=--)
      pc : xhci_disable_hub_port_wake.isra.62+0x60/0xf8
      lr : xhci_disable_hub_port_wake.isra.62+0x34/0xf8
      sp : ffff80001394bbf0
      x29: ffff80001394bbf0 x28: 0000000000000000 x27: ffff00081193b578
      x26: ffff00081193b570 x25: 0000000000000000 x24: 0000000000000000
      x23: ffff00081193a29c x22: 0000000000020001 x21: 0000000000000001
      x20: 0000000000000000 x19: ffff800014e90490 x18: 0000000000000000
      x17: 0000000000000000 x16: 0000000000000000 x15: 0000000000000000
      x14: 0000000000000000 x13: 0000000000000002 x12: 0000000000000000
      x11: 0000000000000000 x10: 0000000000000960 x9 : ffff80001394baa0
      x8 : ffff0008145d1780 x7 : ffff0008f95b8e80 x6 : 000000001853b453
      x5 : 0000000000000496 x4 : 0000000000000000 x3 : ffff00081193a29c
      x2 : 0000000000000001 x1 : 0000000000000000 x0 : ffff000814591620
      Call trace:
       xhci_disable_hub_port_wake.isra.62+0x60/0xf8
       xhci_suspend+0x58/0x510
       xhci_plat_suspend+0x50/0x78
       platform_pm_suspend+0x2c/0x78
       dpm_run_callback.isra.25+0x50/0xe8
       __device_suspend+0x108/0x3c0
      
      The basic flow:
      	1. run time suspend call xhci_suspend, xhci parent devices gate the clock.
              2. echo mem >/sys/power/state, system _device_suspend call xhci_suspend
              3. xhci_suspend call xhci_disable_hub_port_wake, which access register,
      	   but clock already gated by run time suspend.
      
      This problem was hidden by power domain driver, which call run time resume before it.
      
      But the below commit remove it and make this issue happen.
      	commit c1df456d ("PM: domains: Don't runtime resume devices at genpd_prepare()")
      
      This patch call run time resume before suspend to make sure clock is on
      before access register.
      Reviewed-by: NPeter Chen <peter.chen@kernel.org>
      Cc: stable <stable@vger.kernel.org>
      Signed-off-by: NFrank Li <Frank.Li@nxp.com>
      Testeb-by: NAbel Vesa <abel.vesa@nxp.com>
      Link: https://lore.kernel.org/r/20220110172738.31686-1-Frank.Li@nxp.comSigned-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      Signed-off-by: NYu Liao <liaoyu15@huawei.com>
      Reviewed-by: NWei Li <liwei391@huawei.com>
      Signed-off-by: NZheng Zengkai <zhengzengkai@huawei.com>
      7690e355
  13. 27 4月, 2022 1 次提交
  14. 23 2月, 2022 2 次提交
    • L
      EHCI: Clear wakeup signal locked in S0 state when device plug in · 7d2f5624
      LeoLiu-oc 提交于
      zhaoxin inclusion
      category: bugfix
      bugzilla: https://gitee.com/openeuler/kernel/issues/I40QDN
      CVE: NA
      
      ----------------------------------------------------------------
      
      If we plug in a LS/FS device on USB2 port of EHCI, it will latch a wakeup
      signal in EHCI internal. This is a bug of EHCI for Some project of
      ZhaoXin. If enable EHCI runtime suspend and no device attach.
      PM core will let EHCI go to D3 to save power. However, once EHCI go to D3,
      it will release wakeup signal that latched on device connect to port
      during S0. Which will generate a SCI interrupt and bring EHCI to D0.
      But without device connect, EHCI will go to D3 again.
      So, there is suspend-resume loop and generate SCI interrupt Continuously.
      
      In order to fix this issues, we need to clear the wakeup signal latched
      in EHCI when EHCI suspend function is called.
      Signed-off-by: NLeoLiu-oc <LeoLiu-oc@zhaoxin.com>
      Signed-off-by: NZheng Zengkai <zhengzengkai@huawei.com>
      Reviewed-by: NXiongfeng Wang <wangxiongfeng2@huawei.com>
      7d2f5624
    • L
      XHCI: Fix some device identify fail when enable xHCI runtime suspend · b2d2a169
      LeoLiu-oc 提交于
      zhaoxin inclusion
      category: bugfix
      bugzilla: https://gitee.com/openeuler/kernel/issues/I40QDN
      CVE: NA
      
      ----------------------------------------------------------------
      
      If plug out device form xhci with runtime suspend enabled.
      On the one hand, driver will disconnect this device and send disabled
      slot command to xhci.
      On the other hand, without no device connect to xhci, PM core will
      call xhci suspend function to let xhci go to D3 to save power.
      However there is a temporal competition to get xhci lock between
      disable slot command interrupt and xhci suspend.
      If xhci suspend function get xhci lock first, then this function will
      clear xhci command ring. It will get error command trb when driver to
      handle disable slot command interrupt. This is a serious error for
      driver and driver will cleanup xhci. So,any device connect to this
      xhci port again will not be recognized.
      
      In order to fix this issues, we let disable slot command interrupt ISR
      to get xhci lock first. So, add a delay in xhci suspend function before
      to get xhci lock.
      Signed-off-by: NLeoLiu-oc <LeoLiu-oc@zhaoxin.com>
      Signed-off-by: NZheng Zengkai <zhengzengkai@huawei.com>
      Reviewed-by: NJackie Liu <liuyun01@kylinos.cn>
      Reviewed-by: NXiongfeng Wang <wangxiongfeng2@huawei.com>
      b2d2a169
  15. 22 2月, 2022 1 次提交
  16. 28 1月, 2022 1 次提交
  17. 14 1月, 2022 6 次提交
  18. 06 12月, 2021 2 次提交
  19. 30 11月, 2021 1 次提交