ALCHEMY: AU1200 USB Host Controller (OHCI/EHCI)
Subsystems (4)
Ok, here we go. I give you the OHCI/EHCI host controller support for the Alchemy AU1200 processor. I'm sending this up, partly because I have it ready to go, but also because it seems that enough folks are getting their hands on AU1200 parts to make this a hot topic.
Special thanks to Pete Popov and his merry band of kernel hackers for paving the way by pushing to seperate EHCI and PCI in the USB subsystem. Note that the AU1200 does support UDC/OTG as well, but thats another patch for another day. :)
Jordan
ALCHEMY: Add Au1200 support for OHCI and EHCI
Add the Au1200 platform to the alchemy OHCI and EHCI drivers.
---
arch/mips/au1000/common/cputable.c | 2 arch/mips/au1000/common/platform.c | 4 drivers/usb/Kconfig | 8 - drivers/usb/Makefile | 7 drivers/usb/core/Kconfig | 5 drivers/usb/core/hcd.c | 13 + drivers/usb/core/hcd.h | 4 drivers/usb/core/hub.c | 76 ++++- drivers/usb/core/usb.c | 63 ++++ drivers/usb/host/Kconfig | 2 drivers/usb/host/ehci-au1xxx.c | 304 ++++++++++++++++++++ drivers/usb/host/ehci-hcd.c | 81 +++++ drivers/usb/host/ehci-hub.c | 74 +++++ drivers/usb/host/ehci.h | 8 + drivers/usb/host/ohci-au1xxx.c | 109 ++++++- drivers/usb/host/ohci-hcd.c | 73 +++++ drivers/usb/host/ohci-hub.c | 56 ++++ drivers/usb/host/ohci-pci.c | 4 drivers/usb/host/ohci.h | 1 include/asm-mips/mach-mips/cpu-feature-overrides.h | 4 include/linux/usb.h | 7 21 files changed, 861 insertions(+), 44 deletions(-)
arch/mips/au1000/common/cputable.c +1 -1
@@ -38,7 +38,7 @@ struct cpu_spec cpu_specs[] = { { 0xffffffff, 0x02030204, "Au1100 BE", 0, 1 }, { 0xffffffff, 0x03030200, "Au1550 AA", 0, 1 }, { 0xffffffff, 0x04030200, "Au1200 AB", 0, 0 }, - { 0xffffffff, 0x04030201, "Au1200 AC", 0, 1 }, + { 0xffffffff, 0x04030201, "Au1200 AC", 1, 0 }, { 0x00000000, 0x00000000, "Unknown Au1xxx", 1, 0 }, };
arch/mips/au1000/common/platform.c +1 -3
@@ -20,7 +20,7 @@static struct resource au1xxx_usb_ohci_resources[] = { [0 ] = { .start =USB_OHCI_BASE , - .end =USB_OHCI_BASE +USB_OHCI_LEN , + .end =USB_OHCI_BASE +USB_OHCI_LEN -1 , .flags =IORESOURCE_MEM , }, [1 ] = {
@@ -278,9 +278,7 @@ static struct platform_device *au1xxx_pl &au1100_lcd_device,#endif #ifdef CONFIG_SOC_AU1200 -#if 0 /* fixme */ &au1xxx_usb_ehci_device, -#endif &au1xxx_usb_gdt_device, &au1xxx_usb_otg_device, &au1200_lcd_device,
drivers/usb/Kconfig +7 -1
@@ -9,10 +9,16 @@ menu "USB support" # NOTE: SL-811 option should be board-specific ... config USB_ARCH_HAS_HCD boolean - default y if USB_ARCH_HAS_OHCI + default y if USB_ARCH_HAS_OHCI || USB_ARCH_HAS_EHCI default y if ARM # SL-811 default PCI +# some non-PCI hcds implement EHCI +config USB_ARCH_HAS_EHCI + boolean + default y if SOC_AU1200 + default PCI + # many non-PCI SOC chips embed OHCI config USB_ARCH_HAS_OHCI boolean
drivers/usb/Makefile +7 -0
@@ -76,3 +76,10 @@ obj-$(CONFIG_USB_SISUSBVGA) += misc/ obj-$(CONFIG_USB_ATM) += atm/ obj-$(CONFIG_USB_SPEEDTOUCH) += atm/ + + +ifneq ($(CONFIG_USB_GADGET_AMD5536UDC),y) +ifeq ($(CONFIG_USB_PORT_AMD5536OTG),y) +obj-$(CONFIG_USB) += gadget/ +endif +endif
drivers/usb/core/Kconfig +5 -0
@@ -82,6 +82,11 @@ config USB_OTG select USB_SUSPEND default n +config USB_OTG_HIGHSPEED + bool + depends on USB_OTG + default n + config USB_OTG_WHITELIST bool "Rely on OTG Targeted Peripherals List"
drivers/usb/core/hcd.c +13 -0
@@ -714,6 +714,7 @@ static void usb_bus_init (struct usb_bus bus->root_hub =NULL ; bus->hcpriv =NULL ; bus->busnum =-1 ; + bus->otg_port =0 ; bus->bandwidth_allocated =0 ; bus->bandwidth_int_reqs =0 ; bus->bandwidth_isoc_reqs =0 ;
@@ -1830,6 +1831,12 @@ int usb_add_hcd(struct usb_hcd *hcd, rhdev->speed = (hcd->driver->flags &HCD_USB2 ) ?USB_SPEED_HIGH :USB_SPEED_FULL ; +#if defined(CONFIG_USB_OTG ) && defined(CONFIG_USB_PORT_AMD5536OTG ) +if ((retval = hcd->driver->start_otg (hcd)) <0 ) { +dev_warn (hcd->self.controller,"OTG init error %d\n" , retval); + goto err_hcd_driver_start; + } +#endif /* Although in principle hcd->driver->start() might need to use rhdev, * none of the current drivers do. */
@@ -1855,6 +1862,9 @@ int usb_add_hcd(struct usb_hcd *hcd, err_register_root_hub: hcd->driver->stop (hcd); +#if defined(CONFIG_USB_OTG ) && defined(CONFIG_USB_PORT_AMD5536OTG ) + hcd->driver->stop_otg (hcd); +#endif err_hcd_driver_start:usb_put_dev (rhdev);
@@ -1897,6 +1907,9 @@ void usb_remove_hcd(struct usb_hcd *hcd)del_timer_sync (&hcd->rh_timer); hcd->driver->stop (hcd); +#if defined(CONFIG_USB_OTG ) && defined(CONFIG_USB_PORT_AMD5536OTG ) + hcd->driver->stop_otg (hcd); +#endif hcd->state =HC_STATE_HALT ;if (hcd->irq >=0 )
drivers/usb/core/hcd.h +4 -0
@@ -216,6 +216,10 @@ struct hc_driver {int (*bus_suspend)(struct usb_hcd *);int (*bus_resume)(struct usb_hcd *);int (*start_port_reset)(struct usb_hcd *,unsigned port_num); +#if defined(CONFIG_USB_OTG ) && defined(CONFIG_USB_PORT_AMD5536OTG ) +int (*start_otg)(struct usb_hcd *); +void (*stop_otg)(struct usb_hcd *); +#endif void (*hub_irq_enable)(struct usb_hcd *);/* Needed only if port-change IRQs are level-triggered */ };
drivers/usb/core/hub.c +61 -15
134 lines not on this page · raw message
drivers/usb/core/usb.c +63 -0
79 lines not on this page · raw message
drivers/usb/host/Kconfig +1 -1
@@ -6,7 +6,7 @@ comment "USB Host Controller Drivers" config USB_EHCI_HCD tristate "EHCI HCD (USB 2.0) support" - depends on USB && PCI + depends on USB && USB_ARCH_HAS_EHCI ---help--- The Enhanced Host Controller Interface (EHCI) is standard for USB 2.0 "high speed" (480 Mbit/sec, 60 Mbyte/sec) host controller hardware.
drivers/usb/host/ehci-au1xxx.c new file +304 -0
304 lines not on this page · raw message
drivers/usb/host/ehci-hcd.c +75 -6
120 lines not on this page · raw message
drivers/usb/host/ehci-hub.c +74 -0
96 lines not on this page · raw message
drivers/usb/host/ehci.h +8 -0
@@ -75,6 +75,14 @@ struct ehci_hcd { /* one per controlle/* per root hub port */ unsigned long reset_done [EHCI_MAX_ROOT_PORTS ]; +#ifdef CONFIG_USB_OTG_HIGHSPEED +/* +* OTG controller needs software interaction +*/ +struct otg_transceiver *transceiver; +unsigned power_budget; +#endif +/* per-HC memory pools (could be per-bus, but ...) */ struct dma_pool *qh_pool;/* qh per active urb */ struct dma_pool *qtd_pool;/* one or more per qh */
drivers/usb/host/ohci-au1xxx.c +92 -17
212 lines not on this page · raw message
drivers/usb/host/ohci-hcd.c +73 -0
79 lines not on this page · raw message
drivers/usb/host/ohci-hub.c +56 -0
87 lines not on this page · raw message
drivers/usb/host/ohci-pci.c +4 -0
@@ -188,6 +188,10 @@ static const struct hc_driver ohci_pci_h .bus_resume = ohci_bus_resume, #endif .start_port_reset = ohci_start_port_reset, +#if defined(CONFIG_USB_OTG) && defined(CONFIG_USB_PORT_AMD5536OTG) + .start_otg = ohci_start_otg, + .stop_otg = ohci_stop_otg, +#endif }; /*-------------------------------------------------------------------------*/
drivers/usb/host/ohci.h +1 -0
@@ -371,6 +371,7 @@ struct ohci_hcd {* other external transceivers should be software-transparent */ struct otg_transceiver *transceiver; +unsigned power_budget;/* * memory management for queue data structures
include/asm-mips/mach-mips/cpu-feature-overrides.h +4 -0
@@ -29,7 +29,11 @@/* #define cpu_has_prefetch ? */ #define cpu_has_mcheck 1/* #define cpu_has_ejtag ? */ +#ifdef CONFIG_CPU_HAS_LLSC #define cpu_has_llsc 1 +#else +#define cpu_has_llsc 0 +#endif /* #define cpu_has_vtag_icache ? */ /* #define cpu_has_dc_aliases ? */ /* #define cpu_has_ic_fills_f_dc ? */
include/linux/usb.h +7 -0
@@ -270,6 +270,7 @@ struct usb_bus {u8 otg_port;/* 0, or number of OTG/HNP port */ unsigned is_b_host:1; /* true during some HNP roleswitches */ unsigned b_hnp_enable:1; /* OTG: did A-Host enable HNP? */ + unsigned hand_over:1; /* HS controller detected FS device */int devnum_next;/* Next open device number in * round-robin allocation */
@@ -1015,6 +1016,12 @@ extern int usb_clear_halt(struct usb_devextern int usb_reset_configuration (struct usb_device *dev);extern int usb_set_interface (struct usb_device *dev,int ifnum,int alternate); +#if defined(CONFIG_USB_OTG ) && defined(CONFIG_USB_PORT_AMD5536OTG ) +extern struct otg_transceiver * (*usb_otg_get_transceiver)(void ); +extern int usb_host_register_otg (struct otg_transceiver * (*get_transceiver)(void )); +extern void usb_host_deregister_otg (void ); +#endif +/* * timeouts, in milliseconds, used for sending/receiving control messages * they typically complete within a few frames (msec) after they're issued
Quoted 4 lines · Jordan Crouse
Ok, here we go. I give you the OHCI/EHCI host controller support for the Alchemy AU1200 processor. I'm sending this up, partly because I have it ready to go, but also because it seems that enough folks are getting their hands on AU1200 parts to make this a hot topic.
Interesting. This is actually a couple different things ... the OTG related bits would IMO be good to split out from the EHCI ones, and from the OHCI ones.
Maybe once 2.6.15 gets out you'd split these out a bit?
Quoted 2 lines
Special thanks to Pete Popov and his merry band of kernel hackers for paving the way by pushing to seperate EHCI and PCI in the USB subsystem.
Actually that patch started with Matt Porter, although some earlier non-mergeable versions came from ARC (now TDI). And splitting it out turned up a bunch of problems, mostly now fixed.
Quoted 2 lines
Note that the AU1200 does support UDC/OTG as well, but thats another patch for another day. :)
Actually you included a preview in this patch. Interesting ... that makes three OTG implementations I've seen on Linux ... the second highspeed one, too.
I think you shouldn't need that OTG_HIGHSPEED symbol, given there's already USB_OTG and USB_GADGET_DUALSPEED, that's implicit. And in fact, it'd be implicit inside EHCI given just USB_OTG!
That OTG stuff needs work yet. No <linux/usb.h> changes should be needed, and I'm not sure what this "relaxed whitelist" is for. But by the time those answers are apparent, I expect you'll have give us mergeable patches for OHCI, EHCI, and the UDC. ;)
- Dave
Quoted 7 lines
Quoted 3 lines
Special thanks to Pete Popov and his merry band of kernel hackers for paving the way by pushing to seperate EHCI and PCI in the USB subsystem.
Actually that patch started with Matt Porter, although some earlier non-mergeable versions came from ARC (now TDI). And splitting it out turned up a bunch of problems, mostly now fixed.
Matt Porter is included in the 'merry band' :) He's a partner at Embedded Alley.
Pete
Hi,
Thursday, December 8, 2005, 11:00:42 PM, you wrote:
Jordan> Ok, here we go. I give you the OHCI/EHCI host controller support for Jordan> the Alchemy AU1200 processor. I'm sending this up, partly because I Jordan> have it ready to go, but also because it seems that enough folks are Jordan> getting their hands on AU1200 parts to make this a hot topic.
Especially, it's high time to me... :-)
Jordan> Special thanks to Pete Popov and his merry band of kernel hackers for Jordan> paving the way by pushing to seperate EHCI and PCI in the USB subsystem.
Me to...
I have a few comments related to the OHCI part of it...
drivers/usb/host/ohci-au1xxx.c +0 -0
+#else /* Au1200 */
+
+#define USB_HOST_CONFIG (USB_MSR_BASE + USB_MSR_MCFG)
+#define USB_MCFG_PFEN (1<<31) +#define USB_MCFG_RDCOMB (1<<30) +#define USB_MCFG_SSDEN (1<<23) +#define USB_MCFG_OHCCLKEN (1<<16) +#define USB_MCFG_UCAM (1<<7) +#define USB_MCFG_OBMEN (1<<1) +#define USB_MCFG_OMEMEN (1<<0)
Maybe, the place where to put those defines is include/asm-mips/mach-au1x00/au1000.h? Because there are some similar defines in that file, actually shift values. For consistency, are they used?..
+#define USBH_ENABLE_CE USB_MCFG_OHCCLKEN
+#ifdef CONFIG_DMA_COHERENT
+#define USBH_ENABLE_INIT (USB_MCFG_OHCCLKEN \
+ | USB_MCFG_PFEN | USB_MCFG_RDCOMB \
+ | USB_MCFG_SSDEN | USB_MCFG_UCAM \
Aha! What I was lacking in my patch was USB_MCFG_UCAM! For test, I added it to my patch, and it worked! Reserved in the doc. So do USB_MCFG_PFEN and USB_MCFG_RDCOMB. What's the meaning of that fields?
+#else /* Au1200 */
+
+ /* write HW defaults again in case Yamon cleared them */
+ if (au_readl(USB_HOST_CONFIG) == 0) {
+ au_writel(0x00d02000, USB_HOST_CONFIG);
+ au_readl(USB_HOST_CONFIG);
+ udelay(1000);
+ }
+ au_writel(USBH_ENABLE_CE | au_readl(USB_HOST_CONFIG), USB_HOST_CONFIG);
+ au_readl(USB_HOST_CONFIG);
+ udelay(1000);
+ au_writel(USBH_ENABLE_INIT | au_readl(USB_HOST_CONFIG), USB_HOST_CONFIG);
+ au_readl(USB_HOST_CONFIG);
+ udelay(1000);Are au_readl() and udelay() necessary between the two au_writel()? Just for curiosity, I tried it without them and as it seems, it worked!
Signature · 1 line
Bora SAHIN
Hi
Quoted 4 lines
Ok, here we go. I give you the OHCI/EHCI host controller support for the Alchemy AU1200 processor. I'm sending this up, partly because I have it ready to go, but also because it seems that enough folks are getting their hands on AU1200 parts to make this a hot topic.
I tried you patch, and this is what I get on 2.6.16-rc5:
[4294668.576000] Creating 3 MTD partitions on "Db1200 Flash": [4294668.581000] 0x00000000-0x03c00000 : "User FS" [4294668.587000] 0x03c00000-0x03d00000 : "YAMON" [4294668.593000] 0x03d00000-0x03fc0000 : "raw kernel" [4294668.602000] CPU 0 Unable to handle kernel paging request at virtual address 00000008, epc == 80350764, ra == 80350760 [4294668.613000] Oops[#1]: [4294668.613000] Cpu 0 [4294668.613000] $ 0 : 00000000 1000fc00 8054a000 00000000 [4294668.613000] $ 4 : 8054b000 00000000 00000000 8107d530 [4294668.613000] $ 8 : 00000000 802a4030 8107d520 8053d57c [4294668.613000] $12 : ffffffff ffffffff 00100100 00200200 [4294668.613000] $16 : 8053c0d0 8053c000 00001000 80460000 [4294668.613000] $20 : 8041dcb0 00000000 00000000 00000000 [4294668.613000] $24 : 00000008 00000000 [4294668.613000] $28 : 804f2000 804f3e58 00000000 80350760 [4294668.613000] Hi : 00000000 [4294668.613000] Lo : 00000000 [4294668.613000] epc : 80350764 ehci_init+0x190/0x2c0 Not tainted [4294668.613000] ra : 80350760 ehci_init+0x18c/0x2c0 [4294668.613000] Status: 1000fc03 KERNEL EXL IE [4294668.613000] Cause : 00800008 [4294668.613000] BadVA : 00000008 [4294668.613000] PrId : 04030201 [4294668.613000] Modules linked in: [4294668.613000] Process swapper (pid: 1, threadinfo=804f2000, task=804eec00) [4294668.613000] Stack : 8013044c 8033e100 804f2000 804f3e88 00001000 80352018 1000fc03 000301ff [4294668.613000] 8053c000 fffffff4 8045e138 803520bc 804f3e78 804689e0 804f3ef8 811bb5c0 [4294668.613000] 00000010 00000000 8045e138 8045e140 80471cfc 8045e204 00000000 803521e0 [4294668.613000] 804f3e88 810756a0 00000000 00000000 00000000 00000000 00000000 802e3cd0 [4294668.613000] 8045e18c 804f3f30 8045e18c 8040d780 8045e140 804c0000 80471cfc 802e40a0 [4294668.613000] ... [4294668.613000] Call Trace: [4294668.613000] [<8013044c>] __request_region+0x38/0xb4 [4294668.613000] [<8033e100>] usb_create_hcd+0x4c/0xc8 [4294668.613000] [<80352018>] usb_ehci_au1xxx_probe+0xc0/0x1f8 [4294668.613000] [<803520bc>] usb_ehci_au1xxx_probe+0x164/0x1f8 [4294668.613000] [<803521e0>] ehci_hcd_au1xxx_drv_probe+0x38/0x50 [4294668.613000] [<802e3cd0>] driver_probe_device+0x4c/0xe8 [4294668.613000] [<8040d780>] klist_next+0x40/0x70 [4294668.613000] [<802e40a0>] __driver_attach+0x178/0x1a0 [4294668.613000] [<802e3f28>] __driver_attach+0x0/0x1a0 [4294668.613000] [<802e3024>] next_device+0x10/0x28 [4294668.613000] [<802e3f28>] __driver_attach+0x0/0x1a0 [4294668.613000] [<802e3090>] bus_for_each_dev+0x54/0x90 [4294668.613000] [<8029e468>] kobject_register+0x4c/0x8c [4294668.613000] [<802e374c>] bus_add_driver+0xa8/0x18c [4294668.613000] [<8027bb80>] debugfs_create_dir+0x1c/0x28 [4294668.613000] [<802e47a4>] driver_register+0x40/0x50 [4294668.613000] [<80100510>] init+0xac/0x2dc [4294668.613000] [<80105ee0>] kernel_thread_helper+0x10/0x18 [4294668.613000] [<80105ed0>] kernel_thread_helper+0x0/0x18 [4294668.613000] [4294668.613000] [4294668.613000] Code: 0c0a8fd0 00063080 8e030000 <8c660008> 7000003f 10400046 00061102 24020008 ae020028 [4294668.866000] Kernel panic - not syncing: Attempted to kill init!
Any ideas?
BR,
Matej
Quoted 1 line
I tried you patch, and this is what I get on 2.6.16-rc5:
Well, thats a fun one. I'm assuming you tried to boot with a device plugged in. I'm a bit confused by the __reqest_region coming from usb_create_hcd - I quickly glanced at the function, and I don't see anything that would have called request_region / request_mem_region. However, there *is* a request_mem_region call immediately after the usb_create_hcd call in usb_ehci_au1xxx_probe, and I wonder that might be the guilty party.
Matthias, any thoughts?
Jordan
--
Jordan Crouse
Senior Linux Engineer
AMD - Personal Connectivity Solutions Group
<www.amd.com/embeddedprocessors>
Hi
Quoted 1 line
Quoted 1 line
I tried you patch, and this is what I get on 2.6.16-rc5:
I meant, 2.5.15-rc5 of course, and NOT 2.6.15-rc5. Sorry.
Quoted 6 lines
Well, thats a fun one. I'm assuming you tried to boot with a device plugged in. I'm a bit confused by the
__reqest_regioncoming fromusb_create_hcd- I quickly glanced at the function, and I don't see anything that would have calledrequest_region/request_mem_region. However, there *is* arequest_mem_regioncall immediately after theusb_create_hcdcall inusb_ehci_au1xxx_probe, and I wonder that might be the guilty party.
I set up my BDI and tried to debug this. This is what I can tell you, and maybe you can then be able to help me:
I get past the request_mem_region and ioremap in ehci-au1xxx.c. I get to line 144:
if ((retval = driver->reset (hcd)) < 0) {
now, driver->reset points to the
(gdb) p driver->reset
$6 = (int (*)(struct usb_hcd *)) 0x803505d4 <ehci_init>
I step into the call and I get to ehci_init indrivers/usb/host/ehci-hcd.c.
If I continue, i get to the ehci_mem_init in thedrivers/usb/host/ehci-mem.c
On line:
228 memset (ehci->pshadow, 0, ehci->periodic_size * sizeof (void *));
If I do next in gdb, I end up in include/asm-mips/io.h, line 425 BUILDIO_MEM(l, u32)
(Well, I am lost here now)
Now if I disassemble at $pc:
(gdb) x/20i $pc
0x80350760 <ehci_init+396>: lw v1,0(s0) 0x80350764 <ehci_init+400>: lw a2,8(v1) 0x80350768 <ehci_init+404>: andi v0,a2,0x80 0x8035076c <ehci_init+408>: beqz v0,0x80350888 <ehci_init+692> 0x80350770 <ehci_init+412>: srl v0,a2,0x4 0x80350774 <ehci_init+416>: li v0,8 0x80350778 <ehci_init+420>: sw v0,40(s0) 0x8035077c <ehci_init+424>: lw v0,24(s0) 0x80350780 <ehci_init+428>: lw a1,16(s0) 0x80350784 <ehci_init+432>: li v1,-2 0x80350788 <ehci_init+436>: and v0,v0,v1 0x8035078c <ehci_init+440>: li v1,-1 0x80350790 <ehci_init+444>: sw v1,48(s0) 0x80350794 <ehci_init+448>: sw v0,24(s0) 0x80350798 <ehci_init+452>: sw zero,20(s0) 0x8035079c <ehci_init+456>: sw zero,72(a1) 0x803507a0 <ehci_init+460>: lw a0,16(s0) 0x803507a4 <ehci_init+464>: li v1,-32 0x803507a8 <ehci_init+468>: li a1,1 0x803507ac <ehci_init+472>: lw v0,68(a0)
(gdb) p $s0
$9 = 0x8053c0d0
(gdb) x/x $s00x8053c0d0: 0x00000000
So I guess, that the instruction at 0x80350764 is loading from location 0 and offset 8, which can be seen also in the original post:
[4294668.602000] CPU 0 Unable to handle kernel paging request at virtual
address 00000008, epc == 80350764, ra == 80350760
What is going on here?
Is this some stack corruption, because of all this strange jumps over the source code (I know optimisation is turned on, but still).
I hope this can help someone, I still have a lot of learning to do to figure this out.
BR,
Matej
Signature · 2 lines
Matej Kupljen <[email protected]> Ultra d.o.o.
Hi
Quoted 3 lines
Quoted 1 line
Quoted 1 line
I tried you patch, and this is what I get on 2.6.16-rc5:
I meant, 2.5.15-rc5 of course, and NOT 2.6.15-rc5. Sorry.
Wov, I did it again :(
Now I said 2.5.15-rc5 :( :(
The version I am testing this on is:
2.6.15-rc5.
Sorry for all this.
BR,
Matej
Hi
(After some confusion about kernel version, I think I found the problem, sorry about that).
I used binutils 2.15 and 2.16.1, but did not work.
The code in the ehci-hcd.c looks like this:
----------------------------------------------------------------------------
ehci->periodic_size = DEFAULT_I_TDPS; if ((retval = ehci_mem_init(ehci, GFP_KERNEL)) < 0) return retval; /* controllers may cache some of the periodic schedule ... */ hcc_params = readl(&ehci->caps->hcc_params); if (HCC_ISOC_CACHE(hcc_params)) // full frame cache ehci->i_thresh = 8; else // N microframes cached ehci->i_thresh = 2 + HCC_ISOC_THRES(hcc_params);
----------------------------------------------------------------------------
The problem is *AFTER* the call to ehci_mem_init, where a read from ehci->caps->hcc_params is attempted, but caps is NULL.
This can be seen by this assembly code form Insight:
----------------------------------------------------------------------------0x80350758 jal 0x802a3f40 <memset>0x8035075c sll a2,a2,0x20x80350760 lw v1,0(s0)0x80350764 lw a2,8(v1)
s0 points to ehci
at offset 0 from ehci is caps
and at offset 8 from caps is hcc_params
----------------------------------------------------------------------------
Where should the caps be initialized?
The only place, where it is set in drivers/usb/ is in drivers/usb/host/ehci-pci.c:
----------------------------------------------------------------------------
/* called during probe() after chip reset completes */ static int ehci_pci_setup(struct usb_hcd *hcd) {
struct ehci_hcd *ehci = hcd_to_ehci(hcd);
struct pci_dev *pdev =
to_pci_dev(hcd->self.controller);
u32 temp;
int retval;
ehci->caps = hcd->regs;----------------------------------------------------------------------------
But the ehci-pci.c is not included in the compilation, because at the end of ehci-hcd.c we find:
----------------------------------------------------------------------------
#if defined(CONFIG_SOC_AU1X00)
#include "ehci-au1xxx.c"
#elif defined(CONFIG_PCI)
#include "ehci-pci.c"
#else
#error "missing bus glue for ehci-hcd"
#endif
----------------------------------------------------------------------------
What should be done?
I hope this helps.
BR,
Matej
Hi Matej ,
I looked into the issue and came to the same conclusions as you. Something significant has changed from 2.6.15rc2 (what the patch was made for) to 2.6.15rc5. I added the initialization of the caps and regs fields of the ehci structure to the probe function in ehci-au1xxx.c. The driver doesn't crash anymore but does not work either.
I also tried the Au1xxx OHCI and it hangs while loading the module with rc7. So it'll probably take some time to port the Au1200 EHCI and OHCI drivers to 2.6.15rc7 (again!).
Any hints on what has changed are appreciated.
Thanks,
Matthias
Quoted 71 lines · Matej Kupljen
Hi
(After some confusion about kernel version, I think I found the problem, sorry about that).
I used binutils 2.15 and 2.16.1, but did not work.
The code in the
ehci-hcd.clooks like this:
---------------------------------------------------------------------------- ehci->periodic_size = DEFAULT_I_TDPS; if ((retval = ehci_mem_init(ehci, GFP_KERNEL)) < 0) return retval; /* controllers may cache some of the periodic schedule ... */ hcc_params = readl(&ehci->caps->hcc_params); if (HCC_ISOC_CACHE(hcc_params)) // full frame cache ehci->i_thresh = 8; else // N microframes cached ehci->i_thresh = 2 + HCC_ISOC_THRES(hcc_params);---------------------------------------------------------------------------
-The problem is *AFTER* the call to
ehci_mem_init, where a read fromehci->caps->hcc_paramsis attempted, but caps is NULL.This can be seen by this assembly code form Insight:
---------------------------------------------------------------------------
-0x80350758jal0x802a3f40<memset>0x8035075csll a2,a2,0x20x80350760lw v1,0(s0)0x80350764lw a2,8(v1)s0 points to ehci
at offset 0 from ehci is caps
and at offset 8 from caps ishcc_params
---------------------------------------------------------------------------
-Where should the caps be initialized?
The only place, where it is set indrivers/usb/is indrivers/usb/host/ehci-pci.c:
---------------------------------------------------------------------------
- /* called duringprobe()after chip reset completes */ static intehci_pci_setup(struct usb_hcd *hcd){
structehci_hcd*ehci =hcd_to_ehci(hcd);
structpci_dev*pdev =to_pci_dev(hcd->self.controller); u32 temp; int retval; ehci->caps = hcd->regs;---------------------------------------------------------------------------
- But theehci-pci.cis not included in the compilation, because at the end ofehci-hcd.cwe find:
---------------------------------------------------------------------------
- #ifdefined(CONFIG_SOC_AU1X00)
#include "ehci-au1xxx.c"
#elifdefined(CONFIG_PCI)
#include "ehci-pci.c"
#else
#error "missing bus glue for ehci-hcd"
#endif
---------------------------------------------------------------------------
-What should be done?
I hope this helps.BR,
Matej
Hi,
We have ported linux-2.6.12 kernel onto MIPS processor (LX4189) and the
processor speed is 200Mhz.
By default Linux-2.6.12 kernel comes with HZ value 1000.Will this HZ value cause an overhead on the 200MHZ CPU.Can someone advise me on whether going back to HZ vaule of 100 like Linux-2.4 will reduce the overhead on this CPU.What are the side effects this change can cause?.
Regards,
Sathesh
Re:
Quoted 9 lines · Sathesh Babu Edara
Hi,
We have ported linux-2.6.12 kernel onto MIPS processor (LX4189) and the
processor speed is 200Mhz.
By default Linux-2.6.12 kernel comes with HZ value 1000.Will this HZ value cause an overhead on the 200MHZ CPU.Can someone advise me on whether going back to HZ vaule of 100 like Linux-2.4 will reduce the overhead on this CPU.What are the side effects this change can cause?.
The 1000Hz clock should not actually cause any problems with a 200MHz CPU, but it will suck up an annoyingly high percentage of available cycles. Backing off to 100Hz may cause some degradation of some real-time/interactive response times, but the improved overall performance will probably more than make up for it. I never build with a HZ value greater than 100 these days, but then again, I'm mostly running on FPGAs and other hardware emulators where the CPU clock frequencies may be less than 1MHz, and are never more than 33MHz. Note that a HZ value of less than 100 may cause some kernel macros to generate divide-by-zero operations/exceptions.
Regards,
Kevin K.
Hi
Quoted 5 lines
I looked into the issue and came to the same conclusions as you. Something significant has changed from 2.6.15rc2 (what the patch was made for) to 2.6.15rc5. I added the initialization of the caps and regs fields of the ehci structure to the probe function in
ehci-au1xxx.c. The driver doesn't crash anymore but does not work either.
Where did you put it?
I don't know much about USB, but by looking into the ehci-pci.c I added this to the ehci-au1xxx.c, after ioremap of hcd->regs:
ehci = hcd_to_ehci(hcd);ehci->caps = hcd->regs;ehci->regs = hcd->regs + HC_LENGTH(readl(&ehci->caps->hc_capbase));
Is this O.K.?
Now, with this I get:
[4294668.620000] au1xxx-ehci au1xxx-ehci.0: Au1xxx EHCI [4294668.626000] au1xxx-ehci au1xxx-ehci.0: new USB bus registered, assigned bus number 1 [4294668.634000] au1xxx-ehci au1xxx-ehci.0: irq 29, io mem 0x14020200 [4294668.640000] au1xxx-ehci au1xxx-ehci.0: USB 0.0 started, EHCI 1.00, driver 10 Dec 2004 [4294668.649000] hub 1-0:1.0: USB hub found [4294668.653000] hub 1-0:1.0: 0 ports detected [4294668.762000] au1xxx-ohci au1xxx-ohci.0: Au1xxx OHCI [4294668.767000] au1xxx-ohci au1xxx-ohci.0: new USB bus registered, assigned bus number 2 [4294668.775000] au1xxx-ohci au1xxx-ohci.0: irq 29, io mem 0x14020100 [4294678.361000] BUG: soft lockup detected on CPU#0! [4294678.361000] Cpu 0 [4294678.361000] $ 0 : 00000000 1000fc01 807c856c 807c856c [4294678.361000] $ 4 : 807c8570 80721710 00000000 b4020100 [4294678.361000] $ 8 : 80000000 802a4030 00000000 8045a000 [4294678.361000] $12 : 80721108 fffffffb ffffffff 0000000a [4294678.361000] $16 : 807214d0 80721400 80721400 80470000 [4294678.361000] $20 : 00000002 804c0000 24000000 0000001d [4294678.361000] $24 : 00000018 81281d51 [4294678.361000] $28 : 81280000 81281e28 00000000 80355484 [4294678.361000] Hi : 000301ff [4294678.361000] Lo : fc85b000 [4294678.361000] epc : 80139c78 notifier_chain_register+0x18/0x54 Not tainted [4294678.361000] ra : 80355484 ohci_au1xxx_start+0x644/0x678 [4294678.361000] Status: 1000fc03 KERNEL EXL IE [4294678.361000] Cause : 00808000 [4294678.361000] PrId : 04030201
Well, a little further :(
Quoted 3 lines
I also tried the Au1xxx OHCI and it hangs while loading the module with rc7. So it'll probably take some time to port the Au1200 EHCI and OHCI drivers to 2.6.15rc7 (again!).
I think Bora Sahin said he used OHCI successfully on 2.5.15-rc4. Bora, can you confirm this?
Quoted 1 line
Any hints on what has changed are appreciated.
I disabled EHCI in .config and tried again. This is what I got:
[4294668.621000] au1xxx-ohci au1xxx-ohci.0: Au1xxx OHCI [4294668.626000] au1xxx-ohci au1xxx-ohci.0: new USB bus registered, assigned bus number 1 [4294668.635000] au1xxx-ohci au1xxx-ohci.0: irq 29, io mem 0x14020100 [4294668.725000] hub 1-0:1.0: USB hub found [4294668.729000] hub 1-0:1.0: 2 ports detected
When I plug in USB 2.0 Flash key (with the vfat module lodaed):
/root # [4294868.810000] usb 1-1: new full speed USB device using au1xxx-ohci and address 2
[4294877.045000] kobject_register failed for usbcore (-17) [4294877.050000] Call Trace: [4294877.053000] [<8029e490>] kobject_register+0x74/0x8c [4294877.058000] [<8029e440>] kobject_register+0x24/0x8c [4294877.063000] [<8014c070>] load_module+0xec4/0x1810 [4294877.068000] [<8014c04c>] load_module+0xea0/0x1810 [4294877.073000] [<80206ed4>] do_setlk+0x1cc/0x40c [4294877.078000] [<801640f8>] vma_prio_tree_insert+0x28/0x5c [4294877.084000] [<8016ae64>] __vma_link+0x34/0x80 [4294877.089000] [<801533d8>] generic_file_mmap+0x68/0x70 [4294877.094000] [<8016af40>] vma_link+0x90/0x160 [4294877.099000] [<8016aef0>] vma_link+0x40/0x160 [4294877.103000] [<8014cab4>] sys_init_module+0xd0/0x890 [4294877.108000] [<8010daac>] stack_done+0x20/0x40 [4294877.113000] [4294878.449000] Initializing USB Mass Storage driver... [4294878.508000] scsi0 : SCSI emulation for USB Mass Storage devices [4294878.606000] usbcore: registered new driver usb-storage [4294878.612000] USB Mass Storage support registered. [4294883.623000] Vendor: Generic Model: STORAGE DEVICE Rev: 1.04 [4294883.630000] Type: Direct-Access ANSI SCSI revision: 00 [4294883.913000] SCSI device sda: 256000 512-byte hdwr sectors (131 MB) [4294883.928000] sda: Write Protect is on [4294883.932000] sda: assuming drive cache: write through [4294883.965000] SCSI device sda: 256000 512-byte hdwr sectors (131 MB) [4294883.980000] sda: Write Protect is on [4294883.984000] sda: assuming drive cache: write through [4294883.989000] sda: sda1 [4294884.005000] sd 0:0:0:0: Attached scsi removable disk sda [4294884.028000] sd 0:0:0:0: Attached scsi generic sg0 type 0
And I can mount /dev/sda1.
I'll try with only EHCI now, then I'll look into this kobject_register.
BR,
Matej
Hi,
Quoted 2 lines
I think Bora Sahin said he used OHCI successfully on 2.5.15-rc4. Bora, can you confirm this?
Yes, it works both in my version of patch and Jordan's...
But my kernel version is
#define UTS_RELEASE "2.6.15-rc4-g2b269cc6"
not 2.5.15-rc4
--
Bora SAHIN
Hi
Quoted 8 lines
Quoted 2 lines
I think Bora Sahin said he used OHCI successfully on 2.5.15-rc4. Bora, can you confirm this?
Yes, it works both in my version of patch and Jordan's...
But my kernel version is
#define UTS_RELEASE "2.6.15-rc4-g2b269cc6"not 2.5.15-rc4
Yes, I meant the right one: 2.6.15-rc4
(I don't know what is wrong with me and those kernel versions).
So, there was some change between rc4 and rc5, that broke USB on Alchemey?
BR,
Matej
LL and SC instruction simulation
In reply to Kevin D. KissellHi,
We have ported linux-2.4.18 and linux-2-6.12 kernel (mips.org)onto MIPS
processor (CPU type lx4189).
We observed that on 2.4 kernel,ll and sc instruction exception handlers
hitting very often.
Where as on linux-2.6.12 this is not happening.
Can anybody have idea why this instructions are hitting on 2.4.18 kernel and not on 2-6.12 kernel.
What is the significance of these instructions?.
Note :
For linux-2.4.18 : We use GCC version -3.3.4 binutils version -2.15 and
uClibc version -0.9.26
For linux-2.6.12 : We use GCC version -3.4.3 binutils version -2.15 and uClibc version -0.9.28.
Thanks in advance.
Regards,
Sathesh
RE:
In reply to Kevin D. KissellHi,
Appreciate your response .
What is the ideal HZ value if the processor speed is 200Mhz?.
Regards,
Sathesh
-----Original Message-----
From: Kevin D. Kissell [mailto:[email protected]]
Sent: Wednesday, January 04, 2006 6:37 PM
To: Sathesh Babu Edara
Cc: [email protected]; [email protected]
Subject: Re:
Quoted 9 lines · Sathesh Babu Edara
Hi,
We have ported linux-2.6.12 kernel onto MIPS processor (LX4189) and
the processor speed is 200Mhz.
By default Linux-2.6.12 kernel comes with HZ value 1000.Will this HZ value cause an overhead on the 200MHZ CPU.Can someone advise me on whether going back to HZ vaule of 100 like Linux-2.4 will reduce the overhead on this CPU.What are the side effects this change can cause?.
The 1000Hz clock should not actually cause any problems with a 200MHz CPU, but it will suck up an annoyingly high percentage of available cycles. Backing off to 100Hz may cause some degradation of some real-time/interactive response times, but the improved overall performance will probably more than make up for it. I never build with a HZ value greater than 100 these days, but then again, I'm mostly running on FPGAs and other hardware emulators where the CPU clock frequencies may be less than 1MHz, and are never more than 33MHz.
Note that a HZ value of less than 100 may cause some kernel macros to generate divide-by-zero operations/exceptions.
Regards,
Kevin K.
LL and SC instruction simulation
Hi,
We have ported linux-2.4.18 and linux-2-6.12 kernel (mips.org)onto MIPS
processor (CPU type lx4189).
We observed that on 2.4 kernel,ll and sc instruction exception handlers
hitting very often.
Where as on linux-2.6.12 this is not happening.
Can anybody have idea why this instructions are hitting on 2.4.18 kernel and not on 2-6.12 kernel.
What is the significance of these instructions?.
Note :
For linux-2.4.18 : We use GCC version -3.3.4 binutils version -2.15 and
uClibc version -0.9.26 For linux-2.6.12 : We use GCC version -3.4.3 binutils version -2.15 and uClibc version -0.9.28.
Thanks in advance.
Regards,
Sathesh
Re:
In reply to Sathesh Babu EdaraThere is no "ideal" value for a given processor frequency. The lower the value, the less interrupt processing overhead, but the slower the response time to events that are detected or serviced during clock interrupts. 1000 HZ *may* be a sensible value (I have my doubts, personally) for 2+ GHz PC processors, but it's excessive (IMHO) for a 200MHz processor and unworkable for a 20MHz CPU. I think that 100HZ is still a reasonable value for an embedded RISC CPU, but the "ideal" value is going to be a function of the application.
Regards,
Kevin K.
----- Original Message -----
From: "Sathesh Babu Edara" <[email protected]>
To: "'Kevin D. Kissell'" <[email protected]>; <[email protected]>; <[email protected]>
Sent: Monday, January 09, 2006 8:43 AM
Subject: RE:
Quoted 43 lines
Hi,
Appreciate your response .What is the ideal HZ value if the processor speed is 200Mhz?.
Regards,
Sathesh
-----Original Message-----
From: Kevin D. Kissell [mailto:[email protected]]
Sent: Wednesday, January 04, 2006 6:37 PM
To: Sathesh Babu Edara
Cc: [email protected]; [email protected]
Subject: Re:Quoted 9 lines · Sathesh Babu Edara
Hi,
We have ported linux-2.6.12 kernel onto MIPS processor (LX4189) and
the processor speed is 200Mhz.
By default Linux-2.6.12 kernel comes with HZ value 1000.Will this HZ value cause an overhead on the 200MHZ CPU.Can someone advise me on whether going back to HZ vaule of 100 like Linux-2.4 will reduce the overhead on this CPU.What are the side effects this change can cause?.The 1000Hz clock should not actually cause any problems with a 200MHz CPU, but it will suck up an annoyingly high percentage of available cycles. Backing off to 100Hz may cause some degradation of some real-time/interactive response times, but the improved overall performance will probably more than make up for it. I never build with a HZ value greater than 100 these days, but then again, I'm mostly running on FPGAs and other hardware emulators where the CPU clock frequencies may be less than 1MHz, and are never more than 33MHz.
Note that a HZ value of less than 100 may cause some kernel macros to generate divide-by-zero operations/exceptions.Regards,
Kevin K.
Re: LL and SC instruction simulation
In reply to Sathesh Babu EdaraQuoted 9 lines · Sathesh Babu Edara
We have ported linux-2.4.18 and linux-2-6.12 kernel (mips.org)onto MIPS
processor (CPU type lx4189).We observed that on 2.4 kernel,ll and sc instruction exception handlers
hitting very often.
Where as on linux-2.6.12 this is not happening.Can anybody have idea why this instructions are hitting on 2.4.18 kernel and not on 2-6.12 kernel.
Only ll/sc instructions in application software can be emulated, so it would seem your application is behaving different on 2.4 and 2.6 kernels.
Quoted 1 line
What is the significance of these instructions?.
All sorts of atomic operations. I suggest you read up on them in See MIPS Run or short of that in the MIPS32/64 specification.
Ralf
Re: LL and SC instruction simulation
Quoted 9 lines · Ralf
Quoted 6 lines · Sathesh Babu Edara
We have ported linux-2.4.18 and linux-2-6.12 kernel (mips.org)onto MIPS
processor (CPU type lx4189).We observed that on 2.4 kernel,ll and sc instruction exception handlers
hitting very often.
Where as on linux-2.6.12 this is not happening.
Quoted 5 lines
Quoted 2 lines
Can anybody have idea why this instructions are hitting on 2.4.18 kernel and not on 2-6.12 kernel.
Only ll/sc instructions in application software can be emulated, so it would seem your application is behaving different on 2.4 and 2.6 kernels.
Is there an interface where 2.6 might be telling library code to use system calls instead LL/SC, where the 2.4 kernel didn't?
Regards,
Kevin K.
Re: LL and SC instruction simulation
Quoted 5 lines · Kevin D. Kissell
Quoted 2 lines
Only ll/sc instructions in application software can be emulated, so it would seem your application is behaving different on 2.4 and 2.6 kernels.
Is there an interface where 2.6 might be telling library code to use system calls instead LL/SC, where the 2.4 kernel didn't?
No.
Ralf
Re: LL and SC instruction simulation
Quoted 7 lines · Ralf Baechle
Quoted 5 lines
Quoted 2 lines
Only ll/sc instructions in application software can be emulated, so it would seem your application is behaving different on 2.4 and 2.6 kernels.
Is there an interface where 2.6 might be telling library code to use system calls instead LL/SC, where the 2.4 kernel didn't?
No.
And I think it's not really worth it. MIPS II did introduce ll/sc in 1991 and it was becoming widely available with MIPS III and some pseudo- MIPS II R3000 variants also in the embedded markets and MIPS32/MIPS64 were based on that. So ll/sc-less processors are a very small part of the market of Linux/MIPS these days, not really worth to optimize for.
Ralf
Re: LL and SC instruction simulation
Quoted 10 lines
Quoted 4 lines
Quoted 2 lines
Is there an interface where 2.6 might be telling library code to use system calls instead LL/SC, where the 2.4 kernel didn't?
No.
And I think it's not really worth it. MIPS II did introduce ll/sc in 1991 and it was becoming widely available with MIPS III and some pseudo- MIPS II R3000 variants also in the embedded markets and MIPS32/MIPS64 were based on that. So ll/sc-less processors are a very small part of the market of Linux/MIPS these days, not really worth to optimize for.
Hmm. I can think of at least one *very* high volume MIPS Linux platform still manufactured by a very large Japanese electronics company where LL/SC either isn't implemented or doesn't work...
Regards,
Kevin K.
Re: LL and SC instruction simulation
Quoted 3 lines · Kevin D. Kissell
Hmm. I can think of at least one *very* high volume MIPS Linux platform still manufactured by a very large Japanese electronics company where LL/SC either isn't implemented or doesn't work...
The user community of that platform of that four letter vendor still hasn't managed to upgrade their kernels to something that would even be remotely contemporary, so any 2.6 questions don't apply ...
Ralf
Re: [processor frequency]
In reply to Kevin D. KissellQuoted 9 lines · In message <005a01c614fb$2fe76b00$10eca8c0@grendel> you wrote:
There is no "ideal" value for a given processor frequency. The lower the value, the less interrupt processing overhead, but the slower the response time to events that are detected or serviced during clock interrupts. 1000 HZ *may* be a sensible value (I have my doubts, personally) for 2+ GHz PC processors, but it's excessive (IMHO) for a 200MHz processor and unworkable for a 20MHz CPU. I think that 100HZ is still a reasonable value for an embedded RISC CPU, but the "ideal" value is going to be a function of the application.
We did some tests of the performance impact of 100 vs. 1000 Hz clock frequency on low end systems (50 MHz PowerPC); for details please see
http://www.denx.de/wiki/view/Know/Clock100vs1000Hz
Best regards,
Wolfgang Denk
Signature · 5 lines
Software Engineering: Embedded and Realtime Systems, Embedded Linux Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: [email protected] Our missions are peaceful -- not for conquest. When we do battle, it is only because we have no choice. -- Kirk, "The Squire of Gothos", stardate 2124.5
Re: [processor frequency]
Quoted 9 lines · Wolfgang Denk
Quoted 7 lines · In message <005a01c614fb$2fe76b00$10eca8c0@grendel> you wrote:
There is no "ideal" value for a given processor frequency.
The lower the value, the less interrupt processing overhead,
but the slower the response time to events that are detected
or serviced during clock interrupts. 1000 HZ *may* be a sensible
value (I have my doubts, personally) for 2+ GHz PC processors, but it's excessive (IMHO) for a 200MHz processor and unworkable for a 20MHz CPU. I think that 100HZ is still a reasonable value for an embedded RISC CPU, but the "ideal" value is going to
be a function of the application.
Quoted 3 lines
We did some tests of the performance impact of 100 vs. 1000 Hz clock frequency on low end systems (50 MHz PowerPC); for details please see
http://www.denx.de/wiki/view/Know/Clock100vs1000Hz
My own results, on an SMP 2.6 kernel (as opposed to the uniprocessor 2.4 kernel used for the experiments reported) have been rather different. Certainly the degradations I observed were far worse than the 5-10% reported in the document you cite. I'll try to repeat your experiment when I get the time.
BTW, I'm puzzled by the "context switch" benchmark test results. By what mechanism - or by what definition of "context switch" - can having more frequent interrupts make context switches happen more quickly? It seems to me that those results must be due to a systematic measurement error being added/removed.
Regards,
Kevin K
Re: [processor frequency]
Quoted 6 lines · In message <[email protected]> you wrote:
BTW, I'm puzzled by the "context switch" benchmark test results. By what mechanism - or by what definition of "context switch" - can having more frequent interrupts make context switches happen more quickly? It seems to me that those results must be due to a systematic measurement error being added/removed.
I have to admit that I don't have a good explanation for this either. It's what I got with (repeated) measurements. Cache (flush) issues might play a role here - but without closer analysis this is just speculation.
Best regards,
Wolfgang Denk
Signature · 4 lines
Software Engineering: Embedded and Realtime Systems, Embedded Linux Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: [email protected] If you can't beat it or corrupt it, you pretend it was your idea in the first place. - Terry Pratchett, _Guards! Guards!_