* Re: A question about shpcp.
@ 2019-07-02 13:14 linmiaohe
0 siblings, 0 replies; 2+ messages in thread
From: linmiaohe @ 2019-07-02 13:14 UTC (permalink / raw)
To: Lukas Wunner
Cc: bhelgaas, andy.shevchenko, rafael.j.wysocki, linux-pci,
linux-kernel, Mingfangsen
On Thu, July 2, 2019 at 20:21:18PM +0000, Lukas wrote:
> On Thu, Jun 27, 2019 at 12:16:18PM +0000, linmiaohe wrote:
> > It's very nice of you if you could tell me why is 5*HZ there and if
> > this delay can be reduced?
>
> According to Table 2-4 of the PCI Standard Hot-Plug Controller and Subsystem Specification, "System software is waiting 5 seconds to provide the user with an opportunity to cancel the hot-plug operation."
> (http://drydkim.com/MyDocuments/PCI%20Spec/specifications/shpc1_0.pdf)
>
> So the reason the delay can't be reduced or removed is because the spec mandates it.
>
> Thanks,
>
> Lukas
Many thanks for explaining this. Thanks a lot.
Have a nice day.
Best wishes.
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: A question about shpcp.
[not found] <d87dfa281d0d4e7da3f6bf714a7c2e5a@huawei.com>
@ 2019-07-02 12:21 ` Lukas Wunner
0 siblings, 0 replies; 2+ messages in thread
From: Lukas Wunner @ 2019-07-02 12:21 UTC (permalink / raw)
To: linmiaohe
Cc: bhelgaas, andy.shevchenko, rafael.j.wysocki, linux-pci,
linux-kernel, Mingfangsen
On Thu, Jun 27, 2019 at 12:16:18PM +0000, linmiaohe wrote:
> In qemu+shpcp+pcie scene, hotplug a network card(virtio) would take more
> than 5 seconds. It's because 5 seconds delayed_work in func
> handle_button_press_event with case STATIC_STATE. And this will break some
> protocols with timeout within 5 seconds.
> It's very nice of you if you could tell me why is 5*HZ there and if this
> delay can be reduced?
According to Table 2-4 of the PCI Standard Hot-Plug Controller and
Subsystem Specification, "System software is waiting 5 seconds to
provide the user with an opportunity to cancel the hot-plug operation."
(http://drydkim.com/MyDocuments/PCI%20Spec/specifications/shpc1_0.pdf)
So the reason the delay can't be reduced or removed is because the spec
mandates it.
Thanks,
Lukas
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2019-07-02 13:14 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-07-02 13:14 A question about shpcp linmiaohe
[not found] <d87dfa281d0d4e7da3f6bf714a7c2e5a@huawei.com>
2019-07-02 12:21 ` Lukas Wunner
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®