Re: SuSE hwinfo/yast2 still confusing SYM53C8XX, killing tape backups

Matthias Andree
2004-12-03T22:35:13Z

Matthew Wilcox <matthew@wil.cx> writes:

>> 2. is it a kernel bug if reading offset #216 (byte-wise) in the config
>> file in sysfs confuses the hardware?
>
> No, but it does seem to me that we could do better. Unfortunately,
> the obvious thing to do (set the file size to less than 256 bytes) isn't
> really possible in sysfs. But we could use the 'undocumented feature'
> in drivers/pci/pci-sysfs.c:pci_read_config() of setting the pci_dev's
> cfg_size to 128 bytes. This would prevent even root from reading more
> than 128 bytes. That'd be OK -- there's no *PCI* data in this range,
> even on the latest 1010/1030 controllers. The operating registers are
> exposed in the 0x80-0xFF range only up to the 875; the 876 and later
> return only 0 in that range.

Have you had a look at this already? If not, how would I go about
inplementing this?

--
Matthias Andree