From: Gabor Juhos <juhosg@openwrt.org>
To: Alan Stern <stern@rowland.harvard.edu>
Cc: Ralf Baechle <ralf@linux-mips.org>,
linux-mips@linux-mips.org, Greg Kroah-Hartman <gregkh@suse.de>,
linux-usb@vger.kernel.org
Subject: Re: [PATCH 2/3] USB: ehci: add workaround for Synopsys HC bug
Date: Mon, 11 Apr 2011 21:42:24 +0200 [thread overview]
Message-ID: <4DA359A0.5020503@openwrt.org> (raw)
In-Reply-To: <Pine.LNX.4.44L0.1104111452040.1975-100000@iolanthe.rowland.org>
2011.04.11. 20:53 keltezéssel, Alan Stern írta:
> On Sun, 10 Apr 2011, Gabor Juhos wrote:
>
>> A Synopsys USB core used in various SoCs has a bug which might cause
>> that the host controller not issuing ping.
>>
>> When software uses the Doorbell mechanism to remove queue heads, the
>> host controller still has references to the removed queue head even
>> after indicating an Interrupt on Async Advance. This happens if the last
>> executed queue head's Next Link queue head is removed.
>>
>> Consequences of the defect:
>> The Host controller fetches the removed queue head, using memory that
>> would otherwise be deallocated.This results in incorrect transactions on
>> both the USB and system memory. This may result in undefined behavior.
>
>> --- a/drivers/usb/host/ehci-q.c
>> +++ b/drivers/usb/host/ehci-q.c
>> @@ -1183,6 +1183,9 @@ static void end_unlink_async (struct ehci_hcd *ehci)
>> ehci->reclaim = NULL;
>> start_unlink_async (ehci, next);
>> }
>> +
>> + if (ehci->has_synopsys_hc_bug)
>> + writel((u32)ehci->async->qh_dma, &ehci->regs->async_next);
>> }
>
> This should be ehci_writel(ehci, ...).
You are right, I will change that.
Thanks,
Gabor
next prev parent reply other threads:[~2011-04-11 19:42 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-04-10 20:04 [PATCH 1/3] USB: ehci: add bus glue for the Atheros AR7XXX/AR9XXX SoCs Gabor Juhos
2011-04-10 20:04 ` [PATCH 2/3] USB: ehci: add workaround for Synopsys HC bug Gabor Juhos
2011-04-11 18:53 ` Alan Stern
2011-04-11 18:53 ` Alan Stern
2011-04-11 19:42 ` Gabor Juhos [this message]
2011-04-10 20:05 ` [PATCH 3/3] USB: ohci: add bus glue for the Atheros AR71XX/AR7240 SoCs Gabor Juhos
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=4DA359A0.5020503@openwrt.org \
--to=juhosg@openwrt.org \
--cc=gregkh@suse.de \
--cc=linux-mips@linux-mips.org \
--cc=linux-usb@vger.kernel.org \
--cc=ralf@linux-mips.org \
--cc=stern@rowland.harvard.edu \
/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