Re: 2.6.21-rc7-mm1 BUG at kernel/sched-clock.c:175 init_sched_clock()

2007-05-01 Thread Tejun Heo
Hello, Berck E. Nash wrote: Tejun Heo wrote: Hmmm... Once properly initialized, ahci is highly unlikely to cause runaway IRQs which results in nobody cared. It has proper IRQ mask and pending bits allowing the driver to reliably detect when and why the controller is raising interrupt and

[PATCH] libata: ignore EH scheduling during initialization

2007-05-01 Thread Tejun Heo
libata enables SCSI host during ATA host activation which happens after IRQ handler is registered and IRQ is enabled. All ATA ports are in frozen state when IRQ is enabled but frozen ports may raise limited number of IRQs after being frozen - IOW, -freeze() is not responsible for clearing pending

Re: Problems with Linux SATA driver and ARC-770 IDE Bridge chip

2007-05-01 Thread Alan Cox
Jeff, Alan, Mark and Albert, do you have ideas how we should support this one? This thing locks up if nIEN is set in command FIS. For I believe they make a round receptacle for putting them in, along with other rubbish. ahci and sata_sil24, we can and probably should stop setting nIEN when

Re: [git patches] libata updates

2007-05-01 Thread Stephen Clark
Jeff Garzik wrote: Stephen Clark wrote: Yeah the kernel will boot but the hd performance is sh*t on my laptop. I am running FC6 with kernel 2.6.21 and without the combined_mode setting my disk performance goes down to a whopping 1.25mb/sec from 44mb/sec when I boot with

Re: Problems with Linux SATA driver and ARC-770 IDE Bridge chip

2007-05-01 Thread Mark Lord
Tejun Heo wrote: [cc'ing ATA gurus] Hello, again. Okay, there are two different problems here, so I was confused a bit, but now I see what's going on. [EMAIL PROTECTED] wrote: ata2: SATA max UDMA/133 cmd 0xE400 ctl 0xE002 bmdma 0xDC08 irq 10 scsi2 : ata_piix ata1.00: CFA, max PIO4, 8005536

Re: 2.6.20 libata cdrom

2007-05-01 Thread Mark Lord
Tejun Heo wrote: .. scsi1 : ata_piix ata2.00: failed to IDENTIFY (I/O error, err_mask=0x1) .. The err_mask is AC_ERR_DEV indicating that the device raised aborted the IDENTIFY command. I wonder what's going on. Can you change #undef ATA_DEBUG in include/linux/libata.h to #define ATA_DEBUG

Re: 2.6.20 libata cdrom

2007-05-01 Thread Mark Lord
Mark Lord wrote: Tejun Heo wrote: .. scsi1 : ata_piix ata2.00: failed to IDENTIFY (I/O error, err_mask=0x1) .. The err_mask is AC_ERR_DEV indicating that the device raised aborted the IDENTIFY command. I wonder what's going on. Can you change #undef ATA_DEBUG in include/linux/libata.h to

Re: libata fails to recover from HSM violation involving DRQ status

2007-05-01 Thread Mark Lord
Mark Lord wrote: Tejun Heo wrote: So, this is specific to SATA (the host side at least) piix PIO READ, right? I think we can fit this code nicely into piix_sata_error_handler() if we make sure that it triggers under the right condition - after a PIO READ command fails due to HSM violation

Re: 2.6.20 libata cdrom

2007-05-01 Thread William Thompson
On Tue, May 01, 2007 at 06:32:07AM +0200, Tejun Heo wrote: [cc'ing linux-ide and Albert, Hi!] And be sure to keep me in CC, I'm not on any of these lists. William Thompson wrote: On Mon, Apr 30, 2007 at 12:22:21PM +0200, Tejun Heo wrote: William Thompson wrote: I've been playing with

Re: 2.6.20 libata cdrom

2007-05-01 Thread Mark Lord
William Thompson wrote: +scsi2 : ata_piix +ata_port_schedule_eh: port EH scheduled +ata_scsi_error: ENTER +ata_port_flush_task: ENTER +ata_port_flush_task: flush #1 +ata2: ata_port_flush_task: flush #2 +ata2: ata_port_flush_task: EXIT +ata_eh_autopsy: ENTER +ata_eh_recover: ENTER

Re: 2.6.20 libata cdrom

2007-05-01 Thread William Thompson
On Tue, May 01, 2007 at 09:04:46AM -0400, Mark Lord wrote: William Thompson wrote: +scsi2 : ata_piix +ata_port_schedule_eh: port EH scheduled +ata_scsi_error: ENTER +ata_port_flush_task: ENTER +ata_port_flush_task: flush #1 +ata2: ata_port_flush_task: flush #2 +ata2: ata_port_flush_task:

Re: 2.6.20 libata cdrom

2007-05-01 Thread Mark Lord
William Thompson wrote: The one thing I do know, the machine with the non-working libata cdrom also does not work with the ide driver *ONLY IF* DMA is turned on. That's probably because it's a mdma2 device, and not many chipsets seem to do mdma2 correctly. I had a drive like that around

Re: 2.6.20 libata cdrom

2007-05-01 Thread Tejun Heo
Mark Lord wrote: And this is the second one today where it would be very useful to see a tf dump. It's time to add one to that code patch, methinks. Yeah, we have all these fancy ata_msg_() thingies which can be used to provide a lot of debugging info without affecting hot path. We're just

Re: 2.6.20 libata cdrom

2007-05-01 Thread Mark Lord
Tejun Heo wrote: Mark Lord wrote: And this is the second one today where it would be very useful to see a tf dump. It's time to add one to that code patch, methinks. Yeah, we have all these fancy ata_msg_() thingies which can be used to provide a lot of debugging info without affecting hot

Re: 2.6.20 libata cdrom

2007-05-01 Thread Tejun Heo
Hello, William Thompson wrote: On Tue, May 01, 2007 at 09:04:46AM -0400, Mark Lord wrote: +ata_dev_classify: found ATA device by sig +ata_dev_classify: unknown device +ata_std_softreset: EXIT, classes[0]=1 [1]=5 +ata_std_postreset: ENTER +ata_std_postreset: EXIT +ata_eh_thaw_port: ata2

Re: 2.6.20 libata cdrom

2007-05-01 Thread Mark Lord
Gee... Two crazy screwed up devices today. What's going on? libata is finally seeing use by non-kernel developers. Cheers - To unsubscribe from this list: send the line unsubscribe linux-ide in the body of a message to [EMAIL PROTECTED] More majordomo info at

Re: Problems with Linux SATA driver and ARC-770 IDE Bridge chip

2007-05-01 Thread Craig Metz
In message [EMAIL PROTECTED], you write: It would be useful to see the full tf on those errors. My experience with PATA drives and CF cards, it that they default to PIO4 (assuming they report supporting PIO4). So we don't actually need to do a set xfer mode on them. Is the full IDENTIFY data

Re: libata /dev/scd0 problem: mount after burn fails without eject

2007-05-01 Thread Mark Lord
Forwarding to linux-scsi and linux-ide mailing lists. Frank van Maarseveen wrote: Tested on 2.6.20.6 and 2.6.21.1 I decided to swich from the old IDE drivers to libata and now there seems to be a little but annoying problem: cannot mount an ISO image after burning it. May 1 14:32:55 kernel:

Re: 2.6.20 libata cdrom

2007-05-01 Thread Jeff Garzik
Mark Lord wrote: Gee... Two crazy screwed up devices today. What's going on? libata is finally seeing use by non-kernel developers. Amusing but factually incorrect. libata has been shipping in major distros for years, with bazoodles of active users. Jeff - To unsubscribe from

Re: 2.6.20 libata cdrom

2007-05-01 Thread Mark Lord
Jeff Garzik wrote: Mark Lord wrote: Gee... Two crazy screwed up devices today. What's going on? libata is finally seeing use by non-kernel developers. Amusing but factually incorrect. libata has been shipping in major distros for years, with bazoodles of active users. But of course.

Re: 2.6.20 libata cdrom

2007-05-01 Thread Alan Cox
On Tue, 01 May 2007 10:19:33 -0400 Jeff Garzik [EMAIL PROTECTED] wrote: Mark Lord wrote: Gee... Two crazy screwed up devices today. What's going on? libata is finally seeing use by non-kernel developers. Amusing but factually incorrect. libata has been shipping in major distros for

Re: libata /dev/scd0 problem: mount after burn fails without eject

2007-05-01 Thread Michal Piotrowski
On 01/05/07, Mark Lord [EMAIL PROTECTED] wrote: Forwarding to linux-scsi and linux-ide mailing lists. Frank van Maarseveen wrote: Tested on 2.6.20.6 and 2.6.21.1 I decided to swich from the old IDE drivers to libata and now there seems to be a little but annoying problem: cannot mount an

Re: Problems with Linux SATA driver and ARC-770 IDE Bridge chip

2007-05-01 Thread Mark Lord
Craig Metz wrote: What do I need to run in order to extract the full IDENTIFY data for you? Keep in mind that I can't get a kernel booted that will fully see this device. (i.e., no SCSI disk is ever allocated) That's tough, then. Does it behave the same regardless of CF card? Can I get

Re: flushing cache after block io

2007-05-01 Thread Mark Lord
Bahadir Balban wrote: On an ARM core with write-allocate writeback cache, there can be cache inconsistencies when an executable file is read from a block device into memory. On a compact flash block device driver, I got around this problem by flushing the caches for the pages that bio buffers

Re: 2.6.20 libata cdrom

2007-05-01 Thread Bartlomiej Zolnierkiewicz
Hi, On Tuesday 01 May 2007, William Thompson wrote: On Tue, May 01, 2007 at 09:04:46AM -0400, Mark Lord wrote: William Thompson wrote: +scsi2 : ata_piix +ata_port_schedule_eh: port EH scheduled +ata_scsi_error: ENTER +ata_port_flush_task: ENTER +ata_port_flush_task: flush #1

Re: [PATCH 4/4] bidi support: bidirectional request

2007-05-01 Thread Boaz Harrosh
Jens Axboe wrote: On Mon, Apr 30 2007, Douglas Gilbert wrote: Jens Axboe wrote: On Mon, Apr 30 2007, Benny Halevy wrote: Jens Axboe wrote: On Sun, Apr 29 2007, James Bottomley wrote: I'm still not really convinced about this approach. The primary job of the block layer is to manage and

Re: [PATCH 4/4] bidi support: bidirectional request

2007-05-01 Thread Jens Axboe
On Tue, May 01 2007, Boaz Harrosh wrote: Please consider the attached proposal. It is a complete block-level bidi implementation that is, I hope, a middle ground which will keep everyone happy (including Christoph). It is both quite small and not invasive, yet has a full bidi API that is easy

Re: [PATCH 4/4] bidi support: bidirectional request

2007-05-01 Thread FUJITA Tomonori
From: Jens Axboe [EMAIL PROTECTED] Subject: Re: [PATCH 4/4] bidi support: bidirectional request Date: Tue, 1 May 2007 20:57:20 +0200 On Tue, May 01 2007, Boaz Harrosh wrote: Please consider the attached proposal. It is a complete block-level bidi implementation that is, I hope, a middle

Re: [PATCH 4/4] bidi support: bidirectional request

2007-05-01 Thread FUJITA Tomonori
From: Jens Axboe [EMAIL PROTECTED] Subject: Re: [PATCH 4/4] bidi support: bidirectional request Date: Mon, 30 Apr 2007 13:11:57 +0200 On Sun, Apr 29 2007, James Bottomley wrote: On Sun, 2007-04-29 at 18:48 +0300, Boaz Harrosh wrote: FUJITA Tomonori wrote: From: Boaz Harrosh [EMAIL

Re: [git patches] libata updates

2007-05-01 Thread Jesse Barnes
On Sunday, April 29, 2007 9:15 am Jeff Garzik wrote: Noteworthy changes: * remove combined mode PCI quirk. IDE driver selection (libata or old-IDE) is now determined purely by module load order. * new driver API, that is far more like other kernel APIs:

Re: [git patches] libata updates

2007-05-01 Thread Jesse Barnes
On Monday, April 30, 2007 1:22 pm Stephen Clark wrote: Please don't do this! Yeah the kernel will boot but the hd performance is sh*t on my laptop. I am running FC6 with kernel 2.6.21 and without the combined_mode setting my disk performance goes down to a whopping 1.25mb/sec from 44mb/sec

Re: [git patches] libata updates

2007-05-01 Thread Stephen Clark
Jesse Barnes wrote: On Monday, April 30, 2007 1:22 pm Stephen Clark wrote: Please don't do this! Yeah the kernel will boot but the hd performance is sh*t on my laptop. I am running FC6 with kernel 2.6.21 and without the combined_mode setting my disk performance goes down to a whopping

Re: [git patches] libata updates

2007-05-01 Thread Jesse Barnes
On Tuesday, May 1, 2007 3:45 pm Stephen Clark wrote: I'm running fc6 but with kernel 2.6.21 from kernel.org - compiled with the .config file from fc6. My system is a asus laptop with an ich7 chipset which has both sata and pata controllers. My laptop only brings out the pata controller

Re: [git patches] libata updates

2007-05-01 Thread Chuck Ebbert
Stephen Clark wrote: I'm running fc6 but with kernel 2.6.21 from kernel.org - compiled with the .config file from fc6. My system is a asus laptop with an ich7 chipset which has both sata and pata controllers. My laptop only brings out the pata controller interface and both my hd and od

Re: System freezes with kernel 2.6.19 - sata_nv [added crash info kern 2.6.21.1]

2007-05-01 Thread Stefan
Tejun Heo wrote: Robert Hancock wrote: Tejun Heo wrote: Stefan wrote: Hi folks, yesterday I upgraded kernel 2.6.19 to 2.6.20 (gentoo kernel). Now my box locks up about 10 min after boot. After that I tested with a vanilla 2.6.21.1 it shows the same behavior. I'm

Re: System freezes with kernel 2.6.19 - sata_nv [added crash info kern 2.6.21.1]

2007-05-01 Thread Robert Hancock
Stefan wrote: Okay, I had time to set this up. I'm attaching the log messages I got via netconsole. I tested about 20h with adma disabled, the crash won't occur. If I remove sata_nv.adma=0 from boot options again it doesn't take long until my machine locks up. [Attached dmesg output with

Re: [git patches] libata updates

2007-05-01 Thread Stephen Clark
Chuck Ebbert wrote: Stephen Clark wrote: I'm running fc6 but with kernel 2.6.21 from kernel.org - compiled with the .config file from fc6. My system is a asus laptop with an ich7 chipset which has both sata and pata controllers. My laptop only brings out the pata controller interface and