Re: PCI bug in 2.6.13

From: Linus Torvalds
Date: Sun Sep 11 2005 - 06:54:57 EST




On Sun, 11 Sep 2005, Vojtech Pavlik wrote:
>
> This is interesting. The 0x00000001 means that it's supposed to be an
> unassigned I/O (!) space resource ... which obviously fools the if()
> statement.

No. ROM resources really are special. They are always MMIO, and the low
bit is used to specify whether they are "enabled" or not.

Yes, it's ugly as hell. Total special case.

Anyway, the resource value of 0x00000001 shouldn't fool the if-statement
at all, because when we fill in the resource "start" values, we correctly
mask off the status bits, and save those into the resource "flags". So
the PCI resource start should be 0, and that if-statement shouldn't have
triggered.

Linus
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/