* [U-Boot] 85xx platforms build broken due to flush dcache functions missing
[not found] <3E027F8168735B46AC006B1D0C7BB00207995B05@039-SN2MPN1-011.039d.mgd.msft.net>
@ 2012-06-07 9:34 ` Marek Vasut
2012-06-07 21:22 ` Wolfgang Denk
0 siblings, 1 reply; 2+ messages in thread
From: Marek Vasut @ 2012-06-07 9:34 UTC (permalink / raw)
To: u-boot
Dear Zang Roy-R61911,
The patch "[PATCH V2] MPC8xxx: Define cache ops for USB" wasn't applied yet for
some reason. It fixes the issue.
> Hi, Marek
>
> When I build P5020DS_config with the current u-boot head, I got:
> /home/roy/CVS/upstream/u-boot/drivers/usb/host/ehci-hcd.c:346: undefined
> reference to `flush_dcache_range'
> /home/roy/CVS/upstream/u-boot/drivers/usb/host/ehci-hcd.c:348: undefined
> reference to `flush_dcache_range'
> /home/roy/CVS/upstream/u-boot/drivers/usb/host/ehci-hcd.c:349: undefined
> reference to `flush_dcache_range'
> /home/roy/CVS/upstream/u-boot/drivers/usb/host/ehci-hcd.c:372: undefined
> reference to `invalidate_dcache_range'
> /home/roy/CVS/upstream/u-boot/drivers/usb/host/ehci-hcd.c:374: undefined
> reference to `invalidate_dcache_range'
> /home/roy/CVS/upstream/u-boot/drivers/usb/host/ehci-hcd.c:376: undefined
> reference to `invalidate_dcache_range'
> /home/roy/CVS/upstream/u-boot/drivers/usb/host/ehci-hcd.c:386: undefined
> reference to `invalidate_dcache_range' make: *** [u-boot] Error 1
>
>
> I found it was caused by your commit :
>
> commit b8adb12095814260d2b5edb23663ddf0ab97b877
> Author: Marek Vasut <marex@denx.de>
> Date: Mon Apr 9 04:07:46 2012 +0200
>
> USB: Drop cache flush bloat in EHCI-HCD
>
> Discard the creepy cache flushing mechanisms in ehci-hcd.c and replace
> them more straightforward flushing. In the new approach, the flushing
> takes place directly in ehci_submit_async() call instead of going through
> the QH list an flushing all members and buffers. This discards a lot of
> weird bit operation on the members of QH and qTD structures.
>
> NOTE: Certainly, this flushes even qTDs which are possibly unused in
> some transactions, though the overhead of the previous code was much
> higher than the overhead of flushing two more cache lines (which most
> probably aren't ev cached).
>
> Signed-off-by: Marek Vasut <marek.vasut@gmail.com>
>
> Do you have any comment? Your commit will break all 85xx platforms with USB
> controller. Thanks
> Roy
Best regards,
Marek Vasut
^ permalink raw reply [flat|nested] 2+ messages in thread
* [U-Boot] 85xx platforms build broken due to flush dcache functions missing
2012-06-07 9:34 ` [U-Boot] 85xx platforms build broken due to flush dcache functions missing Marek Vasut
@ 2012-06-07 21:22 ` Wolfgang Denk
0 siblings, 0 replies; 2+ messages in thread
From: Wolfgang Denk @ 2012-06-07 21:22 UTC (permalink / raw)
To: u-boot
Dear Zang Roy-R61911,
In message <201206071134.02455.marex@denx.de> Marek Vasut wrote:
>
> The patch "[PATCH V2] MPC8xxx: Define cache ops for USB" wasn't applied yet for
> some reason. It fixes the issue.
>
> > Hi, Marek
> >
> > When I build P5020DS_config with the current u-boot head, I got:
...
> > Do you have any comment? Your commit will break all 85xx platforms with USB
> > controller. Thanks
I have to commit that I find your comment a bit out of place. Mareks
patch that fixes this issue was posted a long, long time ago. But
nobody complained about all the broken boards, and those who actually
would be in a position to test the patch, to comment on it, and
especially to apply it to the MPC8xxx repository have all been in
Deep Sleep ever since.
Instead of contacting Marek in private (I cannot see any trace of
your original message on the ML), you could try kicking your friends
at FSL...
Thanks.
Wolfgang Denk
--
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
If you're not part of the solution, you're part of the problem.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2012-06-07 21:22 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <3E027F8168735B46AC006B1D0C7BB00207995B05@039-SN2MPN1-011.039d.mgd.msft.net>
2012-06-07 9:34 ` [U-Boot] 85xx platforms build broken due to flush dcache functions missing Marek Vasut
2012-06-07 21:22 ` Wolfgang Denk
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox