All of lore.kernel.org
 help / color / mirror / Atom feed
From: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
To: alberto.vignani@fastwebnet.it
Cc: support3@ftdichip.com, kuba@mareimbrium.org, johan@kernel.org,
	linux-usb@vger.kernel.org
Subject: Re: BUG Found, was: USB-Serial FT4232H unusable with kernel 5.9.x
Date: Fri, 30 Oct 2020 15:48:26 +0200	[thread overview]
Message-ID: <20201030134826.GP4077@smile.fi.intel.com> (raw)
In-Reply-To: <21357769.49031603989896975.JavaMail.root@pr006msr>

On Thu, Oct 29, 2020 at 05:44:56PM +0100, alberto.vignani@fastwebnet.it wrote:
> By bisecting the regression I found that the FT4232 was only an innocent bystander. The real culprit was the PCIe-USB adapter that stopped sending interrupts (or sent wrong interrupts) in kernel 5.9. I have just removed the whole patch and my system is working again as in 5.8.I hope that someone will revise this patch considering that the Pericom PI7C9X440SL is affected by it.

Thank you for the report!

Can you share output of

	% lspci -vvv -nk -s <XXX> # where <XXX> is a slot of PCIe USB

for working and non-working cases?


> Here's the commit responsible:

> commit 306c54d0edb6 usb: hcd: Try MSI interrupts on PCI devices

This commit per se should not affect devices which rightfully announce MSI
support. It is possible that I have missed something or above mentioned device
is not MSI compatible.

Btw, can this PCIe-USB be connected to completely different motherboard /
machine for a testing purposes? It might be that PCI host bridge is not
friendly with the device or other way around.

...

> With 5.9 I noticed that these delays are dependent on how the ports are mapped t o linux devices:- if I remove the JTAG
>  quirk and allow all ports to be connected to ttyUSBs, there seems to 
> be no delay before the first message: 33 usec as in linux 5.8.  Of course I cannot then configure the first two ports for JTAG (FTOpen fails).
> - conversely, if I 
> remove the ftdi_sio module (with all ttyUSB devices) the initial delay 
> is even longer (7.6 seconds), and then the (slow) JTAG configuration s ucceeds.
>  Can someone confirm and investigate? Does the same happen with ST Micro Connect Lite?
> And how can I debug this one?

Can you also monitor /proc/interrupts for working and non-working cases?
Simply share its contents as well.

-- 
With Best Regards,
Andy Shevchenko



       reply	other threads:[~2020-10-30 13:47 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <21357769.49031603989896975.JavaMail.root@pr006msr>
2020-10-30 13:48 ` Andy Shevchenko [this message]
2020-10-30 14:04   ` BUG Found, was: USB-Serial FT4232H unusable with kernel 5.9.x Andy Shevchenko

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20201030134826.GP4077@smile.fi.intel.com \
    --to=andriy.shevchenko@linux.intel.com \
    --cc=alberto.vignani@fastwebnet.it \
    --cc=johan@kernel.org \
    --cc=kuba@mareimbrium.org \
    --cc=linux-usb@vger.kernel.org \
    --cc=support3@ftdichip.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.