linux-usb.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/1] RFC: Make thunderbolt NHI driver work with kexec [RESEND]
@ 2020-05-20 18:52 Maxim Levitsky
  2020-05-20 18:52 ` [PATCH 1/1] thunderbolt: add trivial .shutdown Maxim Levitsky
  0 siblings, 1 reply; 5+ messages in thread
From: Maxim Levitsky @ 2020-05-20 18:52 UTC (permalink / raw)
  To: linux-kernel
  Cc: Andreas Noever, Michael Jamet, Mika Westerberg, Jiri Kosina,
	open list:THUNDERBOLT DRIVER, Yehezkel Bernat, Maxim Levitsky

While trying to use kexec on my desktop,
which has Titan Ridge Thunderbolt add-on card,
I noticed that after a kexec, system hangs
for about a minute in the 'wating for udev devices
to settle' phase of the boot.

I found out that if I unload the thunderbolt driver
prior to the kexec, then it works just fine.

Looking at the code I see that the driver doeesn't
implement .shutdown method, so this on-liner patch
points it to the same method that is used on device removal.

I don't know if this is the right solution,
but it does appear to work just fine with this patch.

What do you think?

Best regards,
	Maxim Levitsky

Maxim Levitsky (1):
  thunderbolt: add trivial .shutdown

 drivers/thunderbolt/nhi.c | 1 +
 1 file changed, 1 insertion(+)

-- 
2.25.4



^ permalink raw reply	[flat|nested] 5+ messages in thread
* [PATCH 0/1] RFC: Make thunderbolt NHI driver work with kexec
@ 2020-05-20 18:12 Maxim Levitsky
  2020-05-20 18:12 ` [PATCH 1/1] thunderbolt: add trivial .shutdown Maxim Levitsky
  0 siblings, 1 reply; 5+ messages in thread
From: Maxim Levitsky @ 2020-05-20 18:12 UTC (permalink / raw)
  To: kvm
  Cc: Michael Jamet, Mika Westerberg, Andreas Noever,
	open list:THUNDERBOLT DRIVER, Yehezkel Bernat, open list,
	Jiri Kosina, Maxim Levitsky

While trying to use kexec on my desktop,
which has Titan Ridge Thunderbolt add-on card,
I noticed that after a kexec, system hangs
for about a minute in the 'wating for udev devices
to settle' phase of the boot.

I found out that if I unload the thunderbolt driver
prior to the kexec, then it works just fine.

Looking at the code I see that the driver doeesn't
implement .shutdown method, so this on-liner patch
points it to the same method that is used on device removal.

I don't know if this is the right solution,
but it does appear to work just fine with this patch.

What do you think?

Best regards,
	Maxim Levitsky

Maxim Levitsky (1):
  thunderbolt: add trivial .shutdown

 drivers/thunderbolt/nhi.c | 1 +
 1 file changed, 1 insertion(+)

-- 
2.25.4



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

end of thread, other threads:[~2020-05-25  8:53 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-05-20 18:52 [PATCH 0/1] RFC: Make thunderbolt NHI driver work with kexec [RESEND] Maxim Levitsky
2020-05-20 18:52 ` [PATCH 1/1] thunderbolt: add trivial .shutdown Maxim Levitsky
2020-05-25  8:53   ` Mika Westerberg
  -- strict thread matches above, loose matches on Subject: below --
2020-05-20 18:12 [PATCH 0/1] RFC: Make thunderbolt NHI driver work with kexec Maxim Levitsky
2020-05-20 18:12 ` [PATCH 1/1] thunderbolt: add trivial .shutdown Maxim Levitsky
2020-05-20 18:45   ` Maxim Levitsky

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).