The Linux Kernel Mailing List
 help / color / mirror / Atom feed
  • * Re: [PATCH v5 4/5] remoteproc: qcom: pas: Add late attach support for subsystems
           [not found]   ` <adm37MruBfXAjLpZ@baldur>
           [not found]     ` <7bd01424-e611-449f-b5e0-7c823ad3b978@oss.qualcomm.com>
    @ 2026-05-13 12:51     ` Shawn Guo
      1 sibling, 0 replies; 2+ messages in thread
    From: Shawn Guo @ 2026-05-13 12:51 UTC (permalink / raw)
      To: Bjorn Andersson
      Cc: Jingyi Wang, Mathieu Poirier, Rob Herring, Krzysztof Kozlowski,
    	Conor Dooley, Manivannan Sadhasivam, Luca Weiss,
    	Bartosz Golaszewski, Konrad Dybcio, aiqun.yu, tingwei.zhang,
    	trilok.soni, yijie.yang, linux-arm-msm, linux-remoteproc,
    	devicetree, linux-kernel, Gokul Krishna Krishnakumar
    
    On Fri, Apr 10, 2026 at 09:59:44PM -0500, Bjorn Andersson wrote:
    > On Thu, Apr 09, 2026 at 01:52:27AM -0700, Jingyi Wang wrote:
    > > Subsystems can be brought out of reset by entities such as bootloaders.
    > > As the irq enablement could be later than subsystem bring up, the state
    > > of subsystem should be checked by reading SMP2P bits and performing ping
    > > test.
    > > 
    > 
    > I still don't understand.
    > 
    > Are you saying that devm_request_threaded_irq() will succeed and then
    > calling irq_get_irqchip_state() will not work? Or are you saying that
    > SMP2P driver isn't reliable and we're loosing the ready or fatal bits?
    
    Hi Bjorn,
    
    After an offline discussion with Jingyi, I understand that we are trying
    to provide a stronger check (ping-pong) than SMP2P ready bit to make sure
    the subsystem is alive. SMP2P ready bit is a pending state which is not
    necessarily reflecting the current subsystem state. There was ever some
    corner case seen on production environment (with downstream kernel),
    where ready bit is seen but the subsystem is in an abnormal state, where
    the subsystem still feeds watchdog but stops responding to any SMP2P
    request. A ping-pong test could help detect that.
    
    But since "pong" is not supported by every subsystem, e.g. ADSPs on
    Nord, we should do the test only for subsystems that support "pong".
    
    Shawn
    
    ^ permalink raw reply	[flat|nested] 2+ messages in thread

  • end of thread, other threads:[~2026-05-13 12:51 UTC | newest]
    
    Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
    -- links below jump to the message on this page --
         [not found] <20260409-knp-soccp-v5-0-805a492124da@oss.qualcomm.com>
         [not found] ` <20260409-knp-soccp-v5-4-805a492124da@oss.qualcomm.com>
         [not found]   ` <adm37MruBfXAjLpZ@baldur>
         [not found]     ` <7bd01424-e611-449f-b5e0-7c823ad3b978@oss.qualcomm.com>
    2026-05-07  5:04       ` [PATCH v5 4/5] remoteproc: qcom: pas: Add late attach support for subsystems Shawn Guo
    2026-05-13 12:51     ` Shawn Guo
    

    This is a public inbox, see mirroring instructions
    for how to clone and mirror all data and code used for this inbox