linux-usb.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Greg KH <gregkh@linuxfoundation.org>
To: wangwenmei168@163.com
Cc: mathias.nyman@intel.com, linux-usb@vger.kernel.org,
	linux-kernel@vger.kernel.org, gehao <gehao@kylinos.cn>
Subject: Re: [RESEND PATCH] xhci: Fix Renesas PCIe controllers passthrough issue
Date: Thu, 20 Oct 2022 13:11:40 +0200	[thread overview]
Message-ID: <Y1Es7JWPNtcK2Qsu@kroah.com> (raw)
In-Reply-To: <20221020103914.262202-1-wangwenmei168@163.com>

On Thu, Oct 20, 2022 at 06:39:14PM +0800, wangwenmei168@163.com wrote:
> From: gehao <gehao@kylinos.cn>

This does not match your from: line in the email at all, so we can't
take this :(

Please work with your company's email system to make it possible to send
kernel patches if you wish to be able to contribute.

> 
> When we use uPD720201 USB 3.0 Host Controller passthrough to VM
> guest os will report follow errors and it can not working.
> 
> xhci_hcd 0000:09:00.0: Host took too long to start, waited 16000
> microseconds.
> xhci_hcd 0000:09:00.0: startup error -19.
> 
> Because when we passthroug some device to our guest os,
> dev->iommu_group =NULL,so it will return from this function,
> Actually it still control by host os.
> I think that this condition is not necessary.
> 
> For host os with IOMMU,it is safe.
> For host os with noiommu,doing anything when there is no
> iommu is definitely.
> For guest os,the addresses we can access are restricted.
> 
> After add this path,they all work well.

This line isn't needed in a changelog, right?

> 
> Signed-off-by: gehao <gehao@kylinos.cn>
> ---
>  drivers/usb/host/xhci.c | 6 +-----
>  1 file changed, 1 insertion(+), 5 deletions(-)
> 
> diff --git a/drivers/usb/host/xhci.c b/drivers/usb/host/xhci.c
> index 5176765c4013..e8f4c4ee3ea3 100644
> --- a/drivers/usb/host/xhci.c
> +++ b/drivers/usb/host/xhci.c
> @@ -241,12 +241,8 @@ static void xhci_zero_64b_regs(struct xhci_hcd *xhci)
>  	 * changing the programming leads to extra accesses even if the
>  	 * controller is supposed to be halted. The controller ends up with
>  	 * a fatal fault, and is then ripe for being properly reset.
> -	 *
> -	 * Special care is taken to only apply this if the device is behind
> -	 * an iommu. Doing anything when there is no iommu is definitely
> -	 * unsafe...

How many different systems did you test this on to verify that this is
now ok to do?

thanks,

greg k-h

  reply	other threads:[~2022-10-20 11:11 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-10-20 10:39 [RESEND PATCH] xhci: Fix Renesas PCIe controllers passthrough issue wangwenmei168
2022-10-20 11:11 ` Greg KH [this message]
2022-10-20 15:13 ` kernel test robot

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=Y1Es7JWPNtcK2Qsu@kroah.com \
    --to=gregkh@linuxfoundation.org \
    --cc=gehao@kylinos.cn \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-usb@vger.kernel.org \
    --cc=mathias.nyman@intel.com \
    --cc=wangwenmei168@163.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 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).