2003-11-08 23:38:32

by Alexander ZVYAGIN

[permalink] [raw]
Subject: PCI with SiS: Cannot allocate resource.

Hello,

I tried 2.6.0-test9 kernel on my 3-years old laptop and it seems I have
exactly the same problems which I had 3 years ago....
There are mainly three of them
- graphics framebuffer mode does not work
- strange messages from the IRQ router
- sound does not work

The problem with my graphic card is a driver, I think. I overcame it once with
the help of patches from Thomas Winischhofer
(http://www.winischhofer.net/linuxsisvga.shtml) and I hope I can do this
again. So we can forget about it. But the two others are more intresting. May
be they are important for the kernel...

PCI: IRQ 0 for device 0000:00:01.3 doesn't match PIRQ mask - try
pci=usepirqmask
PCI: Cannot allocate resource region 0 of device 0000:00:01.4
....
ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx
SIS5513: IDE controller at PCI slot 0000:00:00.1
SIS5513: chipset revision 208
SIS5513: not 100% native mode: will probe irqs later
SIS5513: SiS630 ATA 66 controller

I did not try to provide these "idebus=xx" and "pci=usepirqmask" yet... I have
no idea what should I do... May be the kernel is right by complaining?
If I am supposed to have a reduced performance of my HD with 33MHz bus, then I
am not sure: Linux definitely works much faster with I/O then Windows on my
laptop.

If I try to load the sound module, I get the following (from 'dmesg'):
unable to register timer device (-16)
PCI: Found IRQ 5 for device 0000:00:01.4
PCI: Sharing IRQ 5 with 0000:00:01.6
PCI: Sharing IRQ 5 with 0000:00:0c.1
AC'97 0:0 does not respond - RESET
AC'97 0:0 does not respond - RESET
AC'97 0:0 does not respond - RESET
Trident4DWaveAudio: probe of 0000:00:01.4 failed with error -5

And this is exactly for the device 0000:00:01.4 the kernel was not able to
allocate something...

More information in the attached files. I survived without sound (under Linux)
on my laptop for 3 years, but now I need it! :)

Any help is deeeeeply appreciated!
Thanks a lot in advance!

PS. Please CC me, I am not a kernel hacker...

Alexander Zvyagin.


Attachments:
(No filename) (2.00 kB)
config.gz (5.03 kB)
lspci.gz (1.03 kB)
dmesg.gz (3.39 kB)
Download all attachments

2003-11-09 00:46:39

by Davide Libenzi

[permalink] [raw]
Subject: Re: PCI with SiS: Cannot allocate resource.

On Sun, 9 Nov 2003, Alexander ZVYAGIN wrote:

> I tried 2.6.0-test9 kernel on my 3-years old laptop and it seems I have
> exactly the same problems which I had 3 years ago....
> There are mainly three of them
> - graphics framebuffer mode does not work
> - strange messages from the IRQ router
> - sound does not work
>
> The problem with my graphic card is a driver, I think. I overcame it once with
> the help of patches from Thomas Winischhofer
> (http://www.winischhofer.net/linuxsisvga.shtml) and I hope I can do this
> again. So we can forget about it. But the two others are more intresting. May
> be they are important for the kernel...
>
> PCI: IRQ 0 for device 0000:00:01.3 doesn't match PIRQ mask - try
> pci=usepirqmask
> PCI: Cannot allocate resource region 0 of device 0000:00:01.4
> ....
> ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx
> SIS5513: IDE controller at PCI slot 0000:00:00.1
> SIS5513: chipset revision 208
> SIS5513: not 100% native mode: will probe irqs later
> SIS5513: SiS630 ATA 66 controller
>
> I did not try to provide these "idebus=xx" and "pci=usepirqmask" yet... I have
> no idea what should I do... May be the kernel is right by complaining?
> If I am supposed to have a reduced performance of my HD with 33MHz bus, then I
> am not sure: Linux definitely works much faster with I/O then Windows on my
> laptop.

Can you try to apply this over test9:

http://www.kernel.org/pub/linux/kernel/v2.6/snapshots/patch-2.6.0-test9-bk13.bz2

Also the output of "lspci -vv -xxx" (from root) would help. Don't worry
about the "pci=usepirqmask" thing. The default value in the IRQ routing
table is 0x80 (disabled) and this will make the warning message to show
up, since the irq_router->get() return 0 on 0x80.



- Davide






2003-11-09 15:09:18

by Alexander ZVYAGIN

[permalink] [raw]
Subject: Re: PCI with SiS: Cannot allocate resource.

Hello Davide,

and thanks for the answer.

> Can you try to apply this over test9:
>
> http://www.kernel.org/pub/linux/kernel/v2.6/snapshots/patch-2.6.0-test9-bk1
>3.bz2

I see the same messages...

Alexander.


Attachments:
(No filename) (210.00 B)
config.gz (5.03 kB)
dmesg.gz (3.32 kB)
lspci.gz (2.58 kB)
Download all attachments

2003-11-09 15:45:12

by Davide Libenzi

[permalink] [raw]
Subject: Re: PCI with SiS: Cannot allocate resource.

On Sun, 9 Nov 2003, Alexander ZVYAGIN wrote:

> Hello Davide,
>
> and thanks for the answer.
>
> > Can you try to apply this over test9:
> >
> > http://www.kernel.org/pub/linux/kernel/v2.6/snapshots/patch-2.6.0-test9-bk1
> >3.bz2
>
> I see the same messages...

$ cat /proc/interrupts

Also you can try to disable:

CONFIG_X86_UP_APIC
CONFIG_X86_UP_IOAPIC
CONFIG_X86_LOCAL_APIC
CONFIG_X86_IO_APIC



- Davide


2003-11-10 17:47:18

by Alexander ZVYAGIN

[permalink] [raw]
Subject: Re: PCI with SiS: Cannot allocate resource.

Hello Davide,

On Sunday 09 November 2003 16:45, Davide Libenzi wrote:
> On Sun, 9 Nov 2003, Alexander ZVYAGIN wrote:
> > > Can you try to apply this over test9:
> > >
> > > http://www.kernel.org/pub/linux/kernel/v2.6/snapshots/patch-2.6.0-test9
> > >-bk1 3.bz2
> >
> > I see the same messages...
>
> $ cat /proc/interrupts
>
> Also you can try to disable:
>
> CONFIG_X86_UP_APIC
> CONFIG_X86_UP_IOAPIC
> CONFIG_X86_LOCAL_APIC
> CONFIG_X86_IO_APIC

Still the same.... See the attachments.

Thanks,
Alexander.


Attachments:
(No filename) (509.00 B)
config.gz (4.85 kB)
dmesg.gz (2.96 kB)
interrupts (375.00 B)
iomem (959.00 B)
Download all attachments

2003-11-11 03:48:38

by Davide Libenzi

[permalink] [raw]
Subject: Re: PCI with SiS: Cannot allocate resource.

On Mon, 10 Nov 2003, Alexander ZVYAGIN wrote:

> Hello Davide,
>
> On Sunday 09 November 2003 16:45, Davide Libenzi wrote:
> > On Sun, 9 Nov 2003, Alexander ZVYAGIN wrote:
> > > > Can you try to apply this over test9:
> > > >
> > > > http://www.kernel.org/pub/linux/kernel/v2.6/snapshots/patch-2.6.0-test9
> > > >-bk1 3.bz2
> > >
> > > I see the same messages...
> >
> > $ cat /proc/interrupts
> >
> > Also you can try to disable:
> >
> > CONFIG_X86_UP_APIC
> > CONFIG_X86_UP_IOAPIC
> > CONFIG_X86_LOCAL_APIC
> > CONFIG_X86_IO_APIC
>
> Still the same.... See the attachments.

Running really out of options here. The dmesg shows that you're sharing
the IRQ5 but it does not even show up in your int list. Your card seems to
be sharing IRQ 5 with:

PCI: Sharing IRQ 5 with 0000:00:01.6
PCI: Sharing IRQ 5 with 0000:00:0c.1

IIRC one is the modem, and I do not remember the other one. If your BIOS
has the option to shut those device off, you can try that. Also you can
try (if you can) to change the interrupt pin.



- Davide



2003-11-11 09:48:34

by Alexander ZVYAGIN

[permalink] [raw]
Subject: Re: PCI with SiS: Cannot allocate resource.

Hello again,

On Tuesday 11 November 2003 04:48, Davide Libenzi wrote:
>
> Running really out of options here. The dmesg shows that you're sharing
> the IRQ5 but it does not even show up in your int list. Your card seems to
> be sharing IRQ 5 with:
>
> PCI: Sharing IRQ 5 with 0000:00:01.6
> PCI: Sharing IRQ 5 with 0000:00:0c.1
>
> IIRC one is the modem, and I do not remember the other one. If your BIOS
> has the option to shut those device off, you can try that. Also you can
> try (if you can) to change the interrupt pin.

Two 'no'. I can not disable it in BIOS. And I will not touch the hardware!

Is it really nothing can be done? I can apply debug patches, if somebody will
provide them...

Thanks for your time anyway!
A bit disappointed Alexander.