public inbox for linux-pm@vger.kernel.org
 help / color / mirror / Atom feed
* Behavior of the PM framework w.r.t the parent-child relationship
@ 2024-04-22 10:00 Krishna Chaitanya Chundru
  2024-05-21 15:40 ` Manivannan Sadhasivam
  0 siblings, 1 reply; 2+ messages in thread
From: Krishna Chaitanya Chundru @ 2024-04-22 10:00 UTC (permalink / raw)
  To: rafael; +Cc: linux-pm, Bjorn Helgaas, Manivannan Sadhasivam

Hi Rafael,

We are planning to add runtime PM support to the PCIe controller driver
and facing some issues with runtime PM. These are the details.

PCIe controller is a parent of the PCIe bridge dev node and PCIe
endpoint driver as shown below

PCIe controller(Top level parent & parent of host bridge)
                         |
                         v
         PCIe Host bridge(Parent of PCI-PCI bridge driver)
                         |
                         v
         PCI-PCI bridge(Parent of endpoint driver)
                         |
                         v
                PCIe endpoint driver

There is no driver associated with the PCIe Host bridge device node.
And the runtime pm for the bridge node is not enabled explicitly.

we are seeing PCIe controller driver is getting runtime suspended even
when the PCI-PCI bridge and PCIe endpoint driver are active.
Our expectation is controller driver runtime suspend will be called only
when the child drivers went to the runtime suspend as the controller
is parent device.

For the things to work properly we are calling pm_runtime_set_active() &
pm_runtime_enable() in [1]

As bridge device node doesn't have driver associated and it is kind of
integrated with the controller, So we are expecting when the controller
driver enables its runtime pm it should enable the bridge runtime pm
also and vice versa.

Can you please check this behavior and see if it is something which
needs to be fixed at the PM framework.

You can find more discussions on thread[1]

[1] 
https://lore.kernel.org/all/20240305-runtime_pm_enable-v2-1-a849b74091d1@quicinc.com/T/

Thanks & Regards,
Krishna Chaitanya.

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Behavior of the PM framework w.r.t the parent-child relationship
  2024-04-22 10:00 Behavior of the PM framework w.r.t the parent-child relationship Krishna Chaitanya Chundru
@ 2024-05-21 15:40 ` Manivannan Sadhasivam
  0 siblings, 0 replies; 2+ messages in thread
From: Manivannan Sadhasivam @ 2024-05-21 15:40 UTC (permalink / raw)
  To: rafael
  Cc: linux-pm, linux-pci@vger.kernel.org Bjorn Helgaas,
	Krishna Chaitanya Chundru

+ linux-pci

On Mon, Apr 22, 2024 at 03:30:18PM +0530, Krishna Chaitanya Chundru wrote:
> Hi Rafael,
> 
> We are planning to add runtime PM support to the PCIe controller driver
> and facing some issues with runtime PM. These are the details.
> 
> PCIe controller is a parent of the PCIe bridge dev node and PCIe
> endpoint driver as shown below
> 
> PCIe controller(Top level parent & parent of host bridge)
>                         |
>                         v
>         PCIe Host bridge(Parent of PCI-PCI bridge driver)
>                         |
>                         v
>         PCI-PCI bridge(Parent of endpoint driver)
>                         |
>                         v
>                PCIe endpoint driver
> 
> There is no driver associated with the PCIe Host bridge device node.
> And the runtime pm for the bridge node is not enabled explicitly.
> 
> we are seeing PCIe controller driver is getting runtime suspended even
> when the PCI-PCI bridge and PCIe endpoint driver are active.
> Our expectation is controller driver runtime suspend will be called only
> when the child drivers went to the runtime suspend as the controller
> is parent device.
> 
> For the things to work properly we are calling pm_runtime_set_active() &
> pm_runtime_enable() in [1]
> 
> As bridge device node doesn't have driver associated and it is kind of
> integrated with the controller, So we are expecting when the controller
> driver enables its runtime pm it should enable the bridge runtime pm
> also and vice versa.
> 
> Can you please check this behavior and see if it is something which
> needs to be fixed at the PM framework.
> 

Hi Rafael,

Gentle ping on this thread!

- Mani

-- 
மணிவண்ணன் சதாசிவம்

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2024-05-21 15:40 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-04-22 10:00 Behavior of the PM framework w.r.t the parent-child relationship Krishna Chaitanya Chundru
2024-05-21 15:40 ` Manivannan Sadhasivam

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