On Wed, Apr 27, 2005 at 11:50:56PM -0700, David S. Miller wrote:
> > Yes, and I think that pretty much match with PCI devices exposing a
> > "prefetchable" BAR, don't you agree ?
>
> Some scsi controllers have prefetchable set in their normal
> register BARs. The sym53c8xx does if I remember correctly.
None of the ones I have here seem to.
Maybe someone else does?
grundler <504>lspci -vd 1000:
0000:00:01.0 SCSI storage controller: LSI Logic / Symbios Logic 53C896/897 (rev 07)
Flags: bus master, medium devsel, latency 128, IRQ 18
I/O ports at 0100 [size=256]
Memory at f8020000 (64-bit, non-prefetchable) [size=1K]
Memory at f8040000 (64-bit, non-prefetchable) [size=8K]
Capabilities: <available only to root>
0000:00:01.1 SCSI storage controller: LSI Logic / Symbios Logic 53C896/897 (rev 07)
Flags: bus master, medium devsel, latency 128, IRQ 19
I/O ports at 0200 [size=256]
Memory at f8007000 (64-bit, non-prefetchable) [size=1K]
Memory at f8002000 (64-bit, non-prefetchable) [size=8K]
Capabilities: <available only to root>
0000:00:02.0 SCSI storage controller: LSI Logic / Symbios Logic 53c875 (rev 14)
Flags: bus master, medium devsel, latency 128, IRQ 19
I/O ports at 0300 [size=256]
Memory at f8008000 (32-bit, non-prefetchable) [size=256]
Memory at f8001000 (32-bit, non-prefetchable) [size=4K]
0000:00:02.1 SCSI storage controller: LSI Logic / Symbios Logic 53c875 (rev 14)
Flags: bus master, medium devsel, latency 128, IRQ 20
I/O ports at 0400 [size=256]
Memory at f8009000 (32-bit, non-prefetchable) [size=256]
Memory at f8004000 (32-bit, non-prefetchable) [size=4K]
0000:20:00.0 SCSI storage controller: LSI Logic / Symbios Logic 53c1010 66MHz Ultra3 SCSI Adapter (rev 01)
Subsystem: LSI Logic / Symbios Logic: Unknown device 1020
Flags: bus master, 66MHz, medium devsel, latency 128, IRQ 24
I/O ports at 20000 [size=256]
Memory at fa044000 (64-bit, non-prefetchable) [size=1K]
Memory at fa040000 (64-bit, non-prefetchable) [size=8K]
Expansion ROM at fa000000 [disabled] [size=128K]
Capabilities: <available only to root>
0000:20:00.1 SCSI storage controller: LSI Logic / Symbios Logic 53c1010 66MHz Ultra3 SCSI Adapter (rev 01)
Subsystem: LSI Logic / Symbios Logic: Unknown device 1020
Flags: bus master, 66MHz, medium devsel, latency 128, IRQ 25
I/O ports at 20100 [size=256]
Memory at fa045000 (64-bit, non-prefetchable) [size=1K]
Memory at fa042000 (64-bit, non-prefetchable) [size=8K]
Expansion ROM at fa020000 [disabled] [size=128K]
Capabilities: <available only to root>
0000:30:02.0 SCSI storage controller: LSI Logic / Symbios Logic 53c1030 PCI-X Fusion-MPT Dual Ultra320 SCSI (rev 08)
Subsystem: Hewlett-Packard Company: Unknown device 12c5
Flags: 66MHz, medium devsel, IRQ 27
I/O ports at 30000 [disabled] [size=256]
Memory at fb200000 (64-bit, non-prefetchable) [disabled] [size=128K]
Memory at fb220000 (64-bit, non-prefetchable) [disabled] [size=128K]
Expansion ROM at fb000000 [disabled] [size=1M]
Capabilities: <available only to root>
0000:30:02.1 SCSI storage controller: LSI Logic / Symbios Logic 53c1030 PCI-X Fusion-MPT Dual Ultra320 SCSI (rev 08)
Subsystem: Hewlett-Packard Company: Unknown device 12c5
Flags: 66MHz, medium devsel, IRQ 28
I/O ports at 30100 [disabled] [size=256]
Memory at fb240000 (64-bit, non-prefetchable) [disabled] [size=128K]
Memory at fb260000 (64-bit, non-prefetchable) [disabled] [size=128K]
Expansion ROM at fb100000 [disabled] [size=1M]
Capabilities: <available only to root>
> Anyways, what I'm trying to say is that blinding turning prefetchable
> BAR into "don't set side effect bit in PTE" might not be so wise.
>
> I really think it's a userlevel decision. That's where all the ioctl()
> garbage came from for the /proc/bus/pci mmap() stuff. It was for chossing
> IO vs MEM space, and also for setting these kinds of mapping attributes.
Well, if it's a device driver decision, I guess that's ok.
And the primary device driver happens to live in user space in X.org case.
hth,
grant
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
[Index of Archives]
[Kernel Newbies]
[Netfilter]
[Bugtraq]
[Photo]
[Stuff]
[Gimp]
[Yosemite News]
[MIPS Linux]
[ARM Linux]
[Linux Security]
[Linux RAID]
[Video 4 Linux]
[Linux for the blind]
[Linux Resources]