From: Wolfgang Denk Date: Thu, 21 Oct 2010 13:36:05 +0200 Subject: [U-Boot] ELF_RELOC causes strange I-cache issues In-Reply-To: <4CC01C6B.9090904@free.fr> References: <20101020184930.E89F7136320@gemini.denx.de> <4CBF4D17.6020403@free.fr> <20101020205401.39B4D1359B3@gemini.denx.de> <1287652681-4085-1-git-send-email-albert.aribaud@free.fr> <4CC00D3D.2090700@denx.de> <4CC01C6B.9090904@free.fr> Message-ID: <20101021113605.A85D61359B7@gemini.denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Dear Albert ARIBAUD, In message <4CC01C6B.9090904@free.fr> you wrote: > > Wolfgang/other testers, can you do the following three tests? Will do asap, but first I want to share Heiko's latest findings: With this patch all problems go away, too: diff --git a/drivers/usb/host/ehci-hcd.c b/drivers/usb/host/ehci-hcd.c index f44fc4e..64b8012 100644 --- a/drivers/usb/host/ehci-hcd.c +++ b/drivers/usb/host/ehci-hcd.c @@ -205,12 +205,12 @@ static int handshake(uint32_t *ptr, uint32_t mask, uint32_t done, int usec) uint32_t result; do { result = ehci_readl(ptr); + udelay(1); if (result == ~(uint32_t)0) return -1; result &= mask; if (result == done) return 0; - udelay(1); usec--; } while (usec > 0); return -1; diff --git a/drivers/usb/host/ehci.h b/drivers/usb/host/ehci.h index d3aa55b..945ab64 100644 --- a/drivers/usb/host/ehci.h +++ b/drivers/usb/host/ehci.h @@ -175,7 +175,7 @@ struct qTD { uint32_t qt_buffer_hi[5]; /* Appendix B */ /* pad struct for 32 byte alignment */ uint32_t unused[3]; -} __attribute__ ((aligned (32))); +}; /* Queue Head (QH). */ struct QH { I have not the slightest idea ho to interpret this, though. Best regards, 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 What is tolerance? -- it is the consequence of humanity. We are all formed of frailty and error; let us pardon reciprocally each other's folly -- that is the first law of nature. - Voltaire