Thxsedorox wrote: If you want I can post exact specs for this box later so you can keep a eye on things, along with the config I used (which may include a lotta extra crap :p )
Thanks Tiger!! Great job as always!

Actally it's not the only one. Since 2.6.15.3 or so I have a hdd spindown during suspend. I think it has to do with one of those sata patches... I filed a bug at kernel.org because it also happens with latest vanilla. If you are interested look here .Tiger683 wrote:Thxsedorox wrote: If you want I can post exact specs for this box later so you can keep a eye on things, along with the config I used (which may include a lotta extra crap :p )
Thanks Tiger!! Great job as always!
Specs of your box would be nice, the config is not necessary as long as we don't have a problem
The only bug still left to fix is apparently the bloody libata bug with slave devices on ata controller....grrr...
T


Code: Select all
ata1: dev 0 configured for UDMA/100
pata_get_dev_handle: ENTER: dev->bus_id='0000:00:1f.2'
pata_get_dev_handle: dev_handle: 0xdbed37e0, parent_handle: 0xdbec7b20
pata_get_dev_handle: for dev=0x1f.2, addr=0x1f0002, parent=0xdbd36800, *handle=0xdbed37e0
do_drive_set_taskfiles: skipping non-SATA drive
Code: Select all
libata.atapi_enabled=1

I have. I just double checked...Tiger683 wrote:Make sure you haveIn kernel boot options.Code: Select all
libata.atapi_enabled=1
Code: Select all
gcc -m32 -Wp,-MD,/var/tmp/portage/qc-usb-0.6.3/work/qc-usb-0.6.3/.qc-vv6410.o.d -nostdinc -isystem /usr/lib/gcc/i686-pc-linux-gnu/3.4.5/include -D__KERNEL__ -Iinclude -include include/linux/autoconf.h -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -ffreestanding -Os -fomit-frame-pointer -pipe -msoft-float -mpreferred-stack-boundary=2 -fno-unit-at-a-time -march=athlon -Iinclude/asm-i386/mach-default -Wdeclaration-after-statement -DNOKERNEL -DMODULE -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(qc_vv6410)" -D"KBUILD_MODNAME=KBUILD_STR(quickcam)" -c -o /var/tmp/portage/qc-usb-0.6.3/work/qc-usb-0.6.3/qc-vv6410.o /var/tmp/portage/qc-usb-0.6.3/work/qc-usb-0.6.3/qc-vv6410.c
/var/tmp/portage/qc-usb-0.6.3/work/qc-usb-0.6.3/qc-driver.c:3031: error: unknown field `owner' specified in initializer
/var/tmp/portage/qc-usb-0.6.3/work/qc-usb-0.6.3/qc-driver.c:3031: warning: initialization from incompatible pointer type
make[2]: *** [/var/tmp/portage/qc-usb-0.6.3/work/qc-usb-0.6.3/qc-driver.o] Error 1
Code: Select all
make -f scripts/Makefile.build obj=/var/tmp/portage/lirc-0.8.0/work/lirc-0.8.0/drivers/lirc_i2c
gcc -m32 -Wp,-MD,/var/tmp/portage/lirc-0.8.0/work/lirc-0.8.0/drivers/lirc_i2c/.lirc_i2c.o.d -nostdinc -isystem /usr/lib/gcc/i686-pc-linux-gnu/3.4.5/include -D__KERNEL__ -Iinclude -include include/linux/autoconf.h -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -ffreestanding -Os -fomit-frame-pointer -pipe -msoft-float -mpreferred-stack-boundary=2 -fno-unit-at-a-time -march=athlon -Iinclude/asm-i386/mach-default -Wdeclaration-after-statement -DIRCTL_DEV_MAJOR=61 -DEXPORT_SYMTAB -DHAVE_CONFIG_H -I. -I. -I../.. -I/var/tmp/portage/lirc-0.8.0/work/lirc-0.8.0/drivers/lirc_i2c/../.. -I/usr/src/linux//include/ -DMODULE -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(lirc_i2c)" -D"KBUILD_MODNAME=KBUILD_STR(lirc_i2c)" -c -o /var/tmp/portage/lirc-0.8.0/work/lirc-0.8.0/drivers/lirc_i2c/lirc_i2c.o /var/tmp/portage/lirc-0.8.0/work/lirc-0.8.0/drivers/lirc_i2c/lirc_i2c.c
/var/tmp/portage/lirc-0.8.0/work/lirc-0.8.0/drivers/lirc_i2c/lirc_i2c.c:363: error: unknown field `name' specified in initializer
/var/tmp/portage/lirc-0.8.0/work/lirc-0.8.0/drivers/lirc_i2c/lirc_i2c.c:363: warning: initialization makes integer from pointer without a cast
/var/tmp/portage/lirc-0.8.0/work/lirc-0.8.0/drivers/lirc_i2c/lirc_i2c.c:364: error: `I2C_DRIVERID_EXP3' undeclared here (not in a function)
/var/tmp/portage/lirc-0.8.0/work/lirc-0.8.0/drivers/lirc_i2c/lirc_i2c.c:364: error: initializer element is not constant
/var/tmp/portage/lirc-0.8.0/work/lirc-0.8.0/drivers/lirc_i2c/lirc_i2c.c:364: error: (near initialization for `driver.id')
/var/tmp/portage/lirc-0.8.0/work/lirc-0.8.0/drivers/lirc_i2c/lirc_i2c.c:365: error: unknown field `flags' specified in initializer
/var/tmp/portage/lirc-0.8.0/work/lirc-0.8.0/drivers/lirc_i2c/lirc_i2c.c:365: error: `I2C_DF_NOTIFY' undeclared here (not in a function)
/var/tmp/portage/lirc-0.8.0/work/lirc-0.8.0/drivers/lirc_i2c/lirc_i2c.c:365: error: initializer element is not constant
/var/tmp/portage/lirc-0.8.0/work/lirc-0.8.0/drivers/lirc_i2c/lirc_i2c.c:365: error: (near initialization for `driver.class')
make[5]: *** [/var/tmp/portage/lirc-0.8.0/work/lirc-0.8.0/drivers/lirc_i2c/lirc_i2c.o] Error 1
Code: Select all
static struct usb_driver qc_usb_driver = {
name: qc_name,
probe: qc_usb_probe,
disconnect: qc_usb_disconnect,
#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,0)
// <-- THIS IS WHAT I ADDED owner : THIS_MODULE,
#endif
#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,4,0)
id_table: qc_device_table,
#endif
};

Just to confirm I am having the pata issue on two nForce (a 2 and a 3) boards, i've had to revert back to 2.6.16-git3 since my / is on my slave hdd.Tiger683 wrote: I have doublechecked and the problem is not related to pata_via itself, so should be present in all
pata drivers i guess
Code: Select all
samuel@stradivari ~ $ uname -a
Linux stradivari 2.6.16-nitro_git3 #1 Thu Mar 23 11:48:58 CET 2006 i686 AMD Athlon(tm) XP 1600+ AuthenticAMD GNU/LinuxSince when is adaptive-readahead in your kernel, aaaand does it need to be activated ? I cant remember to see such an option.Tiger683 wrote:This is probably due to adaptive-readahead added in ck. It preloads files into memory when it can be estimated that
they'll be used in a moment
For some reason the llibata.atapi_enabled=1 option doesnt work for some people. Theres a patch which forces it on, which seems to work better:Phlogiston wrote:Hmm I didn't check sata yet, but thats the problem you're talking about:My dvd drive is missing... Do I need to change some boot options?Code: Select all
ata1: dev 0 configured for UDMA/100 pata_get_dev_handle: ENTER: dev->bus_id='0000:00:1f.2' pata_get_dev_handle: dev_handle: 0xdbed37e0, parent_handle: 0xdbec7b20 pata_get_dev_handle: for dev=0x1f.2, addr=0x1f0002, parent=0xdbd36800, *handle=0xdbed37e0 do_drive_set_taskfiles: skipping non-SATA drive
Thanks!

Ok I changed that integer in libata-core.c and I think I come closer to the solution:iphitus wrote:
For some reason the llibata.atapi_enabled=1 option doesnt work for some people. Theres a patch which forces it on, which seems to work better:
http://cvs.archlinux.org/cgi-bin/viewcv ... text/plain
iphitus
Code: Select all
libata version 1.20 loaded.
ahci 0000:00:1f.2: version 1.2
ACPI (acpi_bus-0199): Device is not power manageable [20060210]
ahci: probe of 0000:00:1f.2 failed with error -12
ata_piix 0000:00:1f.2: version 1.05-ac1
ata_pci_init_one: pci_dev class+intf: 0x10180
ata_pci_init_one: NO_LEGACY == 0
PCI: Setting latency timer of device 0000:00:1f.2 to 64
ata1: SATA max UDMA/133 cmd 0x1F0 ctl 0x3F6 bmdma 0x18C0 irq 14
ata1: dev 0 cfg 00:045a 49:2b00 82:346b 83:5b29 84:6003 85:3469 86:9a09 87:6003 88:203f 93:600b
ata1: dev 0 ATA-6, max UDMA/100, 117210240 sectors: LBA
ata1(0): applying bridge limits
ata_acpi_push_id: skipping for PATA mode
ata1: dev 0 configured for UDMA/100
pata_get_dev_handle: ENTER: dev->bus_id='0000:00:1f.2'
pata_get_dev_handle: dev_handle: 0xdbed37e0, parent_handle: 0xdbec7b20
pata_get_dev_handle: for dev=0x1f.2, addr=0x1f0002, parent=0xdbd36800, *handle=0xdbed37e0
do_drive_get_GTF: drive w/ adr=0: v: 0xdbed3c80
do_drive_set_taskfiles: skipping non-SATA drive
scsi0 : ata_piix
Vendor: ATA Model: FUJITSU MHV2060A Rev: 0084
Type: Direct-Access ANSI SCSI revision: 05
pata_get_dev_handle: ENTER: dev->bus_id='0000:00:1f.2'
pata_get_dev_handle: dev_handle: 0xdbed37e0, parent_handle: 0xdbec7b20
pata_get_dev_handle: for dev=0x1f.2, addr=0x1f0002, parent=0xdbd36800, *handle=0xdbed37e0
ata2: SATA max UDMA/133 cmd 0x170 ctl 0x376 bmdma 0x18C8 irq 15
ata2: SATA port has no device.
scsi1 : ata_piix
pata_get_dev_handle: ENTER: dev->bus_id='0000:00:1f.2'
pata_get_dev_handle: dev_handle: 0xdbed37e0, parent_handle: 0xdbec7b20
pata_get_dev_handle: for dev=0x1f.2, addr=0x1f0002, parent=0xdbd36800, *handle=0xdbed37e0
ata2: SATA port has no device.
SCSI device sda: 117210240 512-byte hdwr sectors (60012 MB)
sda: Write Protect is off
sda: Mode Sense: 00 3a 00 00
SCSI device sda: drive cache: write back
SCSI device sda: 117210240 512-byte hdwr sectors (60012 MB)
sda: Write Protect is off
sda: Mode Sense: 00 3a 00 00
SCSI device sda: drive cache: write back
sda: sda1 sda2 sda3 sda4 < sda5 sda6 sda7 sda8 sda9 sda10 sda11 sda12 >
sd 0:0:0:0: Attached scsi disk sda
sd 0:0:0:0: Attached scsi generic sg0 type 0