Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1577323
| From | Lu Baolu <baolu.lu@linux.intel.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH v5 1/4] usb: dbc: early driver for xhci debug capability |
| Date | 2017-02-09 07:00 +0100 |
| Message-ID | <t8PVT-21u-3@gated-at.bofh.it> (permalink) |
| References | (6 earlier) <t3wTT-2VB-9@gated-at.bofh.it> <t3y9k-3Do-25@gated-at.bofh.it> <t3ysF-403-7@gated-at.bofh.it> <t3J4J-2h2-5@gated-at.bofh.it> <t3MvD-4pB-5@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
Hi Ingo, On 01/26/2017 03:19 PM, Ingo Molnar wrote: > * Lu Baolu <baolu.lu@linux.intel.com> wrote: > >> Fair enough. >> >> USB connection is stable enough, unless the user unplugs the >> USB cable during debugging. > What does the hardware do in this case? The XHCI registers are in the host > hardware, so they won't disappear, right? Is there some cable connection status > bit we can extract without interrupts? The hardware has a register for the debug port status. Software is able to check cable unplugging through this register. > > I.e. if there's any polling component then it would be reasonable to add an error > component: poll the status and if it goes 'disconnected' then disable early-printk > altogether in this case and trigger an emergency printk() so that there's chance > that the user notices [if the system does not misbehave otherwise]. Sure. I will add a kernel thread to polling the errors. I will show you the code in the new upcoming version. Best regards, Lu Baolu > > I.e. try to be as robust and informative as lockdep - yet don't lock up the host > kernel: lockdep too is called from very deep internals, there are various > conditions where it sees corrupt data structures (i.e. a 'disconnect' - a system > environment outside the normal bounds of operation), yet of the kernel and over > the last 10+ years of lockdep's existence we had very, very few cases of lockdep > itself locking up and behaving unpredictably. > > Thanks, > > Ingo >
Back to linux.kernel | Previous | Next | Find similar | Unroll thread
Re: [PATCH v5 1/4] usb: dbc: early driver for xhci debug capability Lu Baolu <baolu.lu@linux.intel.com> - 2017-02-09 07:00 +0100
csiph-web