From: Brian Norris <briannorris@chromium.org>
To: Sriram Dash <sriram.dash@nxp.com>
Cc: linux-kernel@vger.kernel.org, linux-usb@vger.kernel.org,
mathias.nyman@intel.com, gregkh@linuxfoundation.org,
suresh.gupta@nxp.com, felipe.balbi@linux.intel.com,
stern@rowland.harvard.edu, pku.leo@gmail.com,
Arnd Bergmann <arnd@arndb.de>,
Grygorii Strashko <grygorii.strashko@ti.com>,
Sinjan Kumar <sinjank@codeaurora.org>,
David Fisher <david.fisher1@synopsys.com>,
Catalin Marinas <catalin.marinas@arm.com>,
"Thang Q. Nguyen" <tqnguyen@apm.com>,
Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>,
Stephen Boyd <sboyd@codeaurora.org>,
Bjorn Andersson <bjorn.andersson@linaro.org>,
Ming Lei <tom.leiming@gmail.com>, Jon Masters <jcm@redhat.com>,
Dann Frazier <dann.frazier@canonical.com>,
Peter Chen <peter.chen@nxp.com>,
linux-rockchip@lists.infradead.org
Subject: Re: [PATCH v5 1/6] usb: separate out sysdev pointer from usb_bus
Date: Fri, 2 Dec 2016 16:19:56 -0800 [thread overview]
Message-ID: <20161203001953.GA123997@google.com> (raw)
In-Reply-To: <1479383028-27701-2-git-send-email-sriram.dash@nxp.com>
Hi all,
On Thu, Nov 17, 2016 at 05:13:43PM +0530, Sriram Dash wrote:
> From: Arnd Bergmann <arnd@arndb.de>
>
> For xhci-hcd platform device, all the DMA parameters are not
> configured properly, notably dma ops for dwc3 devices.
>
> The idea here is that you pass in the parent of_node along with
> the child device pointer, so it would behave exactly like the
> parent already does. The difference is that it also handles all
> the other attributes besides the mask.
>
> sysdev will represent the physical device, as seen from firmware
> or bus.Splitting the usb_bus->controller field into the
> Linux-internal device (used for the sysfs hierarchy, for printks
> and for power management) and a new pointer (used for DMA,
> DT enumeration and phy lookup) probably covers all that we really
> need.
>
> Signed-off-by: Arnd Bergmann <arnd@arndb.de>
> Signed-off-by: Sriram Dash <sriram.dash@nxp.com>
> Tested-by: Baolin Wang <baolin.wang@linaro.org>
> Cc: Felipe Balbi <felipe.balbi@linux.intel.com>
> Cc: Grygorii Strashko <grygorii.strashko@ti.com>
> Cc: Sinjan Kumar <sinjank@codeaurora.org>
> Cc: David Fisher <david.fisher1@synopsys.com>
> Cc: Catalin Marinas <catalin.marinas@arm.com>
> Cc: "Thang Q. Nguyen" <tqnguyen@apm.com>
> Cc: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
> Cc: Stephen Boyd <sboyd@codeaurora.org>
> Cc: Bjorn Andersson <bjorn.andersson@linaro.org>
> Cc: Ming Lei <tom.leiming@gmail.com>
> Cc: Jon Masters <jcm@redhat.com>
> Cc: Dann Frazier <dann.frazier@canonical.com>
> Cc: Peter Chen <peter.chen@nxp.com>
> Cc: Leo Li <pku.leo@gmail.com>
> ---
> Changes in v5:
> - No update
>
> Changes in v4:
> - No update
>
> Changes in v3:
> - usb is_device_dma_capable instead of directly accessing
> dma props.
>
> Changes in v2:
> - Split the patch wrt driver
I didn't notice this series had been reposted a few times. For some
reason, this wasn't that easy to find in search engines... Anyway, when
the whole series is applied, this fixes my XHCI probe issues for DWC3
host mode. Thanks!
Tested-by: Brian Norris <briannorris@chromium.org>
But I noticed that Felipe has applied patches 5 and 6 in -next, while
the rest are still outstanding. That means I hit the dma_mask WARN_ON()
in xhci-plat.c, and it eventually fails to probe with -EIO still:
[ 2.060272] ------------[ cut here ]------------
[ 2.064908] WARNING: CPU: 5 PID: 1 at drivers/usb/host/xhci-plat.c:159 xhci_plat_probe+0x5c/0x444
...
[ 2.288885] [<ffffff80084ed638>] xhci_plat_probe+0x5c/0x444
[ 2.294456] [<ffffff800844519c>] platform_drv_probe+0x60/0xac
[ 2.300200] [<ffffff8008443000>] driver_probe_device+0x12c/0x2a0
[ 2.306204] [<ffffff80084431f8>] __driver_attach+0x84/0xb0
[ 2.311687] [<ffffff8008441eb4>] bus_for_each_dev+0x9c/0xcc
[ 2.317256] [<ffffff80084429fc>] driver_attach+0x2c/0x34
[ 2.322566] [<ffffff800844255c>] bus_add_driver+0xf0/0x1f4
[ 2.328049] [<ffffff8008443ebc>] driver_register+0x9c/0xe8
[ 2.333530] [<ffffff80084450e0>] __platform_driver_register+0x60/0x6c
[ 2.339968] [<ffffff8008c2f1ec>] xhci_plat_init+0x2c/0x34
[ 2.345366] [<ffffff8008083208>] do_one_initcall+0xa4/0x13c
[ 2.350936] [<ffffff8008c00d88>] kernel_init_freeable+0x1bc/0x274
[ 2.357026] [<ffffff800874cce0>] kernel_init+0x18/0x104
[ 2.362247] [<ffffff8008082e80>] ret_from_fork+0x10/0x50
[ 2.374615] xhci-hcd: probe of xhci-hcd.1.auto failed with error -5
[ 2.380962] ------------[ cut here ]------------
[ 2.385588] WARNING: CPU: 4 PID: 1 at drivers/usb/host/xhci-plat.c:159 xhci_plat_probe+0x5c/0x444
...
[ 2.637372] [<ffffff80084ed638>] xhci_plat_probe+0x5c/0x444
[ 2.642941] [<ffffff800844519c>] platform_drv_probe+0x60/0xac
[ 2.648685] [<ffffff8008443000>] driver_probe_device+0x12c/0x2a0
[ 2.654688] [<ffffff80084431f8>] __driver_attach+0x84/0xb0
[ 2.660170] [<ffffff8008441eb4>] bus_for_each_dev+0x9c/0xcc
[ 2.665739] [<ffffff80084429fc>] driver_attach+0x2c/0x34
[ 2.671048] [<ffffff800844255c>] bus_add_driver+0xf0/0x1f4
[ 2.676532] [<ffffff8008443ebc>] driver_register+0x9c/0xe8
[ 2.682012] [<ffffff80084450e0>] __platform_driver_register+0x60/0x6c
[ 2.688450] [<ffffff8008c2f1ec>] xhci_plat_init+0x2c/0x34
[ 2.693845] [<ffffff8008083208>] do_one_initcall+0xa4/0x13c
[ 2.699415] [<ffffff8008c00d88>] kernel_init_freeable+0x1bc/0x274
[ 2.705505] [<ffffff800874cce0>] kernel_init+0x18/0x104
[ 2.710726] [<ffffff8008082e80>] ret_from_fork+0x10/0x50
[ 2.716075] xhci-hcd: probe of xhci-hcd.2.auto failed with error -5
What's happening with patches 1-4?
Regards,
Brian
next prev parent reply other threads:[~2016-12-03 0:20 UTC|newest]
Thread overview: 25+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-11-17 11:43 [PATCH v5 0/6] inherit dma configuration from parent dev Sriram Dash
2016-11-17 11:43 ` [PATCH v5 1/6] usb: separate out sysdev pointer from usb_bus Sriram Dash
2016-12-03 0:19 ` Brian Norris [this message]
2017-01-06 19:33 ` Grygorii Strashko
2016-12-13 16:09 ` [v5,1/6] " Alexander Sverdlin
2016-11-17 11:43 ` [PATCH v5 2/6] usb: chipidea: use bus->sysdev for DMA configuration Sriram Dash
2016-11-17 11:43 ` [PATCH v5 3/6] usb: ehci: fsl: " Sriram Dash
2016-11-17 11:43 ` [PATCH v5 4/6] usb: xhci: " Sriram Dash
2016-12-09 11:56 ` Roger Quadros
2016-12-13 16:09 ` [v5,4/6] " Alexander Sverdlin
2017-01-11 14:21 ` [PATCH v5 4/6] " Mathias Nyman
2017-01-11 15:08 ` Alan Stern
2017-01-12 8:38 ` Roger Quadros
2017-01-18 11:58 ` Mathias Nyman
2017-01-19 9:22 ` Greg KH
2017-01-19 11:33 ` Mathias Nyman
2016-11-17 11:43 ` [PATCH v5 5/6] usb: dwc3: " Sriram Dash
2016-12-13 16:09 ` [v5,5/6] " Alexander Sverdlin
2016-11-17 11:43 ` [PATCH v5 6/6] usb: dwc3: Do not set dma coherent mask Sriram Dash
2016-12-13 16:09 ` [v5,6/6] " Alexander Sverdlin
2016-12-22 6:23 ` [PATCH v5 0/6] inherit dma configuration from parent dev Vivek Gautam
2017-01-05 15:21 ` Roger Quadros
2017-01-05 17:16 ` Greg KH
2017-01-10 12:11 ` Roger Quadros
2017-01-11 21:32 ` Javier Martinez Canillas
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=20161203001953.GA123997@google.com \
--to=briannorris@chromium.org \
--cc=arnd@arndb.de \
--cc=bjorn.andersson@linaro.org \
--cc=catalin.marinas@arm.com \
--cc=dann.frazier@canonical.com \
--cc=david.fisher1@synopsys.com \
--cc=felipe.balbi@linux.intel.com \
--cc=gregkh@linuxfoundation.org \
--cc=grygorii.strashko@ti.com \
--cc=jcm@redhat.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-rockchip@lists.infradead.org \
--cc=linux-usb@vger.kernel.org \
--cc=mathias.nyman@intel.com \
--cc=peter.chen@nxp.com \
--cc=pku.leo@gmail.com \
--cc=sboyd@codeaurora.org \
--cc=sinjank@codeaurora.org \
--cc=sriram.dash@nxp.com \
--cc=stern@rowland.harvard.edu \
--cc=suresh.gupta@nxp.com \
--cc=tom.leiming@gmail.com \
--cc=tqnguyen@apm.com \
--cc=yoshihiro.shimoda.uh@renesas.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).