* 2.6.12-mm1 breaks Toshiba laptop yenta cardbus
@ 2005-06-20 9:15 Grant Coady
2005-06-21 22:01 ` Alexey Dobriyan
2005-06-22 12:11 ` Ivan Kokshaysky
0 siblings, 2 replies; 4+ messages in thread
From: Grant Coady @ 2005-06-20 9:15 UTC (permalink / raw)
To: linux-kernel
Hi there,
Yenta: CardBus bridge found at 0000:00:0b.0 [1179:0001]
yenta 0000:00:0b.0: Preassigned resource 0 busy, reconfiguring...
yenta 0000:00:0b.0: Preassigned resource 1 busy, reconfiguring...
yenta 0000:00:0b.0: Preassigned resource 1 busy, reconfiguring...
yenta 0000:00:0b.0: no resource of type 200 available, trying to continue...
yenta 0000:00:0b.0: Preassigned resource 2 busy, reconfiguring...
yenta 0000:00:0b.0: Preassigned resource 2 busy, reconfiguring...
yenta 0000:00:0b.0: no resource of type 100 available, trying to continue...
yenta 0000:00:0b.0: Preassigned resource 3 busy, reconfiguring...
yenta 0000:00:0b.0: Preassigned resource 3 busy, reconfiguring...
yenta 0000:00:0b.0: no resource of type 100 available, trying to continue...
Yenta: ISA IRQ mask 0x04b8, PCI irq 11
Socket status: 30000020
2.6.12 okay
See:
http://scatter.mine.nu/test/linux-2.6/tosh/
for config, dmesg, cpu, mem, ioports, etc
--Grant.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: 2.6.12-mm1 breaks Toshiba laptop yenta cardbus
2005-06-20 9:15 2.6.12-mm1 breaks Toshiba laptop yenta cardbus Grant Coady
@ 2005-06-21 22:01 ` Alexey Dobriyan
2005-06-22 12:11 ` Ivan Kokshaysky
1 sibling, 0 replies; 4+ messages in thread
From: Alexey Dobriyan @ 2005-06-21 22:01 UTC (permalink / raw)
To: Grant Coady; +Cc: linux-kernel
On Monday 20 June 2005 13:15, Grant Coady wrote:
> Yenta: CardBus bridge found at 0000:00:0b.0 [1179:0001]
> yenta 0000:00:0b.0: Preassigned resource 0 busy, reconfiguring...
> yenta 0000:00:0b.0: Preassigned resource 1 busy, reconfiguring...
> yenta 0000:00:0b.0: Preassigned resource 1 busy, reconfiguring...
> yenta 0000:00:0b.0: no resource of type 200 available, trying to continue...
> yenta 0000:00:0b.0: Preassigned resource 2 busy, reconfiguring...
> yenta 0000:00:0b.0: Preassigned resource 2 busy, reconfiguring...
> yenta 0000:00:0b.0: no resource of type 100 available, trying to continue...
> yenta 0000:00:0b.0: Preassigned resource 3 busy, reconfiguring...
> yenta 0000:00:0b.0: Preassigned resource 3 busy, reconfiguring...
> yenta 0000:00:0b.0: no resource of type 100 available, trying to continue...
> Yenta: ISA IRQ mask 0x04b8, PCI irq 11
> Socket status: 30000020
>
> 2.6.12 okay
>
> See:
> http://scatter.mine.nu/test/linux-2.6/tosh/
> for config, dmesg, cpu, mem, ioports, etc
I've filed a bug at kernel bugzilla, so your report won't be lost.
See http://bugme.osdl.org/show_bug.cgi?id=4775
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: 2.6.12-mm1 breaks Toshiba laptop yenta cardbus
2005-06-20 9:15 2.6.12-mm1 breaks Toshiba laptop yenta cardbus Grant Coady
2005-06-21 22:01 ` Alexey Dobriyan
@ 2005-06-22 12:11 ` Ivan Kokshaysky
2005-06-22 16:56 ` Grant Coady
1 sibling, 1 reply; 4+ messages in thread
From: Ivan Kokshaysky @ 2005-06-22 12:11 UTC (permalink / raw)
To: Grant Coady; +Cc: Andrew Morton, linux-kernel
On Mon, Jun 20, 2005 at 07:15:34PM +1000, Grant Coady wrote:
> Yenta: CardBus bridge found at 0000:00:0b.0 [1179:0001]
> yenta 0000:00:0b.0: Preassigned resource 0 busy, reconfiguring...
In -mm1 the cardbus resources might be assigned in
pci_assign_unassigned_resources() pass. From your dmesg:
PCI: Bus 2, cardbus bridge: 0000:00:0b.0
IO window: 00002000-00002fff
IO window: 00003000-00003fff
PREFETCH window: 12000000-13ffffff
MEM window: 14000000-15ffffff
Then yenta_allocate_res() tries to assign these resources again and,
naturally, fails.
This adds check for already assigned cardbus resources.
Ivan.
--- 2.6.12-mm1/drivers/pcmcia/yenta_socket.c Wed Jun 22 15:56:20 2005
+++ linux/drivers/pcmcia/yenta_socket.c Wed Jun 22 16:01:40 2005
@@ -553,6 +553,11 @@ static int yenta_try_allocate_res(struct
unsigned offset;
unsigned mask;
+ res = socket->dev->resource + PCI_BRIDGE_RESOURCES + nr;
+ /* Already allocated? */
+ if (res->parent)
+ return 0;
+
/* The granularity of the memory limit is 4kB, on IO it's 4 bytes */
mask = ~0xfff;
if (type & IORESOURCE_IO)
@@ -560,7 +565,6 @@ static int yenta_try_allocate_res(struct
offset = 0x1c + 8*nr;
bus = socket->dev->subordinate;
- res = socket->dev->resource + PCI_BRIDGE_RESOURCES + nr;
res->name = bus->name;
res->flags = type;
res->start = 0;
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: 2.6.12-mm1 breaks Toshiba laptop yenta cardbus
2005-06-22 12:11 ` Ivan Kokshaysky
@ 2005-06-22 16:56 ` Grant Coady
0 siblings, 0 replies; 4+ messages in thread
From: Grant Coady @ 2005-06-22 16:56 UTC (permalink / raw)
To: Ivan Kokshaysky; +Cc: Andrew Morton, linux-kernel
On Wed, 22 Jun 2005 16:11:42 +0400, Ivan Kokshaysky <ink@jurassic.park.msu.ru> wrote:
>
>Then yenta_allocate_res() tries to assign these resources again and,
>naturally, fails.
>
>This adds check for already assigned cardbus resources.
>
>Ivan.
>
>--- 2.6.12-mm1/drivers/pcmcia/yenta_socket.c Wed Jun 22 15:56:20 2005
>+++ linux/drivers/pcmcia/yenta_socket.c Wed Jun 22 16:01:40 2005
>@@ -553,6 +553,11 @@ static int yenta_try_allocate_res(struct
> unsigned offset;
> unsigned mask;
>
>+ res = socket->dev->resource + PCI_BRIDGE_RESOURCES + nr;
>+ /* Already allocated? */
>+ if (res->parent)
>+ return 0;
>+
> /* The granularity of the memory limit is 4kB, on IO it's 4 bytes */
> mask = ~0xfff;
> if (type & IORESOURCE_IO)
>@@ -560,7 +565,6 @@ static int yenta_try_allocate_res(struct
>
> offset = 0x1c + 8*nr;
> bus = socket->dev->subordinate;
>- res = socket->dev->resource + PCI_BRIDGE_RESOURCES + nr;
> res->name = bus->name;
> res->flags = type;
> res->start = 0;
Ivan,
Thank you, it worked.
I have my cardbus + network connection back! But I still get the
swag of error messages in syslog. From cardmgr? So I mark rc.pcmcia
non-execute (Slackware) and reboot, I still have cardbus NIC.
Remove user-space cardmgr, that's what this work was about? I'll try
with 16-bit stuff daytime.
syslog:
Jun 23 02:46:52 tosh kernel: PCI: Probing PCI hardware (bus 00)
Jun 23 02:46:52 tosh kernel: PCI: Bus 2, cardbus bridge: 0000:00:0b.0
Jun 23 02:46:52 tosh kernel: IO window: 00002000-00002fff
Jun 23 02:46:52 tosh kernel: IO window: 00003000-00003fff
Jun 23 02:46:52 tosh kernel: PREFETCH window: 12000000-13ffffff
Jun 23 02:46:52 tosh kernel: MEM window: 14000000-15ffffff
Jun 23 02:46:52 tosh kernel: PCI: Enabling device 0000:00:0b.0 (0000 -> 0003)
Jun 23 02:46:52 tosh kernel: ACPI: PCI Interrupt Link [LNKA] enabled at IRQ 11
Jun 23 02:46:52 tosh kernel: PCI: setting IRQ 11 as level-triggered
Jun 23 02:46:52 tosh kernel: Console: switching to colour frame buffer device 100x37
Jun 23 02:46:52 tosh kernel: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
Jun 23 02:46:52 tosh kernel: hda: SAMSUNG MP0402H, ATA DISK drive
Jun 23 02:46:52 tosh kernel: ide0 at 0x1f0-0x1f7,0x3f6 on irq 14
Jun 23 02:46:52 tosh kernel: hdc: CD-224E-B, ATAPI CD/DVD-ROM drive
Jun 23 02:46:52 tosh kernel: ide1 at 0x170-0x177,0x376 on irq 15
Jun 23 02:46:52 tosh kernel: ACPI: PCI Interrupt Link [LNKD] enabled at IRQ 11
Jun 23 02:46:52 tosh kernel: ACPI: PCI Interrupt Link [LNKB] enabled at IRQ 11
Jun 23 02:46:52 tosh kernel: TCP established hash table entries: 8192 (order: 4, 65536 bytes)
Jun 23 02:46:52 tosh kernel: TCP bind hash table entries: 8192 (order: 3, 32768 bytes)
Jun 23 02:46:52 tosh kernel: Using IPI Shortcut mode
Jun 23 02:46:52 tosh kernel: VFS: Mounted root (reiserfs filesystem) readonly.
Jun 23 02:46:52 tosh kernel: PCI: Enabling device 0000:02:00.0 (0000 -> 0003)
--Grant.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2005-06-22 17:04 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-06-20 9:15 2.6.12-mm1 breaks Toshiba laptop yenta cardbus Grant Coady
2005-06-21 22:01 ` Alexey Dobriyan
2005-06-22 12:11 ` Ivan Kokshaysky
2005-06-22 16:56 ` Grant Coady
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox