linux-sh.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Ben Dooks <ben.dooks@codethink.co.uk>
To: linux-sh@vger.kernel.org
Subject: Re: [PATCH V3 0/3] ARM: shmobile: lager: Add USB support
Date: Mon, 27 Jan 2014 10:24:53 +0000	[thread overview]
Message-ID: <52E633F5.3060404@codethink.co.uk> (raw)
In-Reply-To: <1390602529-11867-1-git-send-email-valentine.barshak@cogentembedded.com>

On 27/01/14 10:19, Magnus Damm wrote:
> Hi Valentine,
>
> On Mon, Jan 27, 2014 at 7:02 PM, Valentine
> <valentine.barshak@cogentembedded.com> wrote:
>> On 01/27/2014 01:59 PM, Ben Dooks wrote:
>>>
>>> On 24/01/14 22:28, Valentine Barshak wrote:
>>>>
>>>> The first patch adds USBHS device and the rest add PCI USB host support
>>>> to Lager board.
>>>> The patches depend on the following commits:
>>>> USBHS and PCI USB host:
>>>> *
>>>> http://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?idÈba8115a21226fba3211085f570b128fa271e31
>>>> *
>>>> http://git.kernel.org/cgit/linux/kernel/git/balbi/usb.git/commit/?idÃe5d2985ef720cbbdc63546a5c545ac4450d96e
>>>> PCI USB host:
>>>> *
>>>> http://git.kernel.org/cgit/linux/kernel/git/gregkh/usb.git/commit/?h=usb-next&id\x103e127d1f8f985e8a662da6537ebc5e08902ee3
>>>> *
>>>> http://git.kernel.org/cgit/linux/kernel/git/gregkh/usb.git/commit/?h=usb-next&id\x1ae5799ef63176cc75ec10e545cb65f620a82747
>>>> *
>>>> http://git.kernel.org/cgit/linux/kernel/git/helgaas/pci.git/commit/?h=pci/host-rcar&idû178d8b2fab3f2a9f203c13ffe80cfd6e01bdf1
>>>
>>>
>>> Hi, when doing this have you come across a problem where the OHCI
>>> controller on USB0 fails to start with an initialisation error? I
>>> think it is something to do with the bridge setup but have yet to
>>> have enough time to look into this issue.
>>>
>>
>> All PCI ports have worked fine for me.
>> Please, check that the SW5/SW6 pins are set correctly on your board.
>
> Thanks for your recommendation. From my side I must say that I
> recommend against using USB0 for USB host unless you're sure about
> your hardware settings. This to prevent driving VBUS incorrectly from
> two hosts with the wrong cable. Normally micro type of connector is
> used for USB Function, and on Lager the cable detection functionality
> is missing. So due to missing cable detection implementation it is
> probably much safer to just use USB0 for Function.
>
> If I may jump to a slightly different topic, but still USB PCI, then
> let me ask if USB PCI been tested with LPAE enabled? I am asking
> because Lager has 4 GiB or RAM over 40 bits of physical address space,
> but the PCI host controller probably only allows for up to 1 GiB
> physical address space.
>
> I suspect that this physical address space mismatch means that bounce
> buffers will be needed for correct operation, but those seem to be
> lacking from the upstream driver unless I'm mistaken. I believe USB
> storage will be busted on Lager with LPAE enabled unless bounce
> buffers are implemented. For a reference implementation, please grep
> for "ixp4xx_needs_bounce".

The host bridge cannot cope with all the memory in the normal
address space, let alone the extended 40bit addressing. There
needs to be something done about (a) iommu support and (b) if
there is no iommu available limiting the DMA pool available for
the OHCI and EHCI drivers.


-- 
Ben Dooks				http://www.codethink.co.uk/
Senior Engineer				Codethink - Providing Genius

  parent reply	other threads:[~2014-01-27 10:24 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-01-24 22:28 [PATCH V3 0/3] ARM: shmobile: lager: Add USB support Valentine Barshak
2014-01-27  9:59 ` Ben Dooks
2014-01-27 10:02 ` Valentine
2014-01-27 10:19 ` Magnus Damm
2014-01-27 10:24 ` Ben Dooks [this message]
2014-01-27 10:31 ` Magnus Damm
2014-01-27 10:34 ` Magnus Damm
2014-01-27 10:45 ` Valentine
2014-01-27 10:51 ` Ben Dooks
2014-01-27 11:25 ` Magnus Damm
2014-01-27 12:17 ` Ben Dooks
2014-01-28 18:34 ` Valentine
2014-01-28 21:37 ` Valentine
2014-01-29  8:40 ` Ben Dooks
2014-01-29  9:36 ` Valentine
2014-01-29 23:39 ` Magnus Damm
2014-01-30  0:08 ` Valentine
2014-02-05  7:23 ` Magnus Damm
2014-02-05  9:31 ` Ben Dooks
2014-02-18  3:42 ` Magnus Damm

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=52E633F5.3060404@codethink.co.uk \
    --to=ben.dooks@codethink.co.uk \
    --cc=linux-sh@vger.kernel.org \
    /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).