From: Matej Kupljen <matej.kupljen@ultra.si>
To: matthias.lenk@amd.com
Cc: Jordan Crouse <jordan.crouse@amd.com>,
linux-mips@linux-mips.org, linux-usb-devel@lists.sourceforge.net
Subject: Re: ALCHEMY: AU1200 USB Host Controller (OHCI/EHCI)
Date: Wed, 04 Jan 2006 14:07:51 +0100 [thread overview]
Message-ID: <1136380071.27748.49.camel@localhost.localdomain> (raw)
In-Reply-To: <200601041332.16043.matthias.lenk@amd.com>
Hi
> 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 :(
> 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?
> 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
next prev parent reply other threads:[~2006-01-04 13:05 UTC|newest]
Thread overview: 35+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-12-08 21:00 ALCHEMY: AU1200 USB Host Controller (OHCI/EHCI) Jordan Crouse
2005-12-10 5:13 ` [linux-usb-devel] " David Brownell
2005-12-10 6:42 ` Pete Popov
2005-12-12 10:51 ` Bora Sahin
2006-01-03 14:25 ` Matej Kupljen
2006-01-03 15:54 ` Jordan Crouse
2006-01-03 21:45 ` Matej Kupljen
2006-01-04 7:18 ` Matej Kupljen
2006-01-04 12:50 ` Sathesh Babu Edara
2006-01-04 12:50 ` Sathesh Babu Edara
2006-01-04 13:06 ` Kevin D. Kissell
2006-01-09 4:54 ` LL and SC instruction simulation Sathesh Babu Edara
2006-01-09 4:54 ` Sathesh Babu Edara
2006-01-09 7:43 ` Sathesh Babu Edara
2006-01-09 7:43 ` RE: Sathesh Babu Edara
2006-01-09 7:49 ` LL and SC instruction simulation Sathesh Babu Edara
2006-01-09 7:49 ` Sathesh Babu Edara
2006-01-09 14:54 ` Ralf Baechle
2006-01-09 15:17 ` Kevin D. Kissell
2006-01-09 15:17 ` Kevin D. Kissell
2006-01-09 15:21 ` Ralf Baechle
2006-01-09 15:30 ` Ralf Baechle
2006-01-09 15:47 ` Kevin D. Kissell
2006-01-09 15:47 ` Kevin D. Kissell
2006-01-09 15:51 ` Ralf Baechle
2006-01-09 9:00 ` Kevin D. Kissell
2006-01-09 9:00 ` Re: Kevin D. Kissell
2006-01-09 21:23 ` [processor frequency] Wolfgang Denk
2006-01-09 21:53 ` Kevin D. Kissell
2006-01-09 23:01 ` Wolfgang Denk
2006-01-04 12:12 ` ALCHEMY: AU1200 USB Host Controller (OHCI/EHCI) Matej Kupljen
2006-01-04 12:32 ` Matthias Lenk
2006-01-04 13:07 ` Matej Kupljen [this message]
2006-01-04 13:54 ` bora.sahin
2006-01-04 14:17 ` Matej Kupljen
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=1136380071.27748.49.camel@localhost.localdomain \
--to=matej.kupljen@ultra.si \
--cc=jordan.crouse@amd.com \
--cc=linux-mips@linux-mips.org \
--cc=linux-usb-devel@lists.sourceforge.net \
--cc=matthias.lenk@amd.com \
/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