* Quick question about libata and hdparm
@ 2009-04-19 0:22 Rogério Brito
2009-04-19 6:31 ` Robert Hancock
2009-04-19 12:33 ` Mark Lord
0 siblings, 2 replies; 30+ messages in thread
From: Rogério Brito @ 2009-04-19 0:22 UTC (permalink / raw)
To: linux-kernel
Dear people,
I have one small question regarding the libata drivers and the
interaction with hdparm.
I am presently using PATA/IDE devices only, but some distributions
provide kernels with libata by default (and some defconfigs also use
libata even for IDE devices).
Using the usual IDE drivers, I can use/query various parameters with
hdparm, like, for instance, the -m option, the -c option or even
disabling DMA. With the libata drivers, this is all that I get:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
lutz:~# hdparm /dev/sda
/dev/sda:
IO_support = 0 (default)
readonly = 0 (off)
readahead = 256 (on)
geometry = 48641/255/63, sectors = 781420655, start = 0
lutz:~# hdparm -c 1 /dev/sda
/dev/sda:
setting 32-bit IO_support flag to 1
HDIO_SET_32BIT failed: Invalid argument
IO_support = 0 (default)
lutz:~# hdparm -m 16 /dev/sda
/dev/sda:
setting multcount to 16
HDIO_SET_MULTCOUNT failed: Inappropriate ioctl for device
HDIO_GET_MULTCOUNT failed: Inappropriate ioctl for device
lutz:~#
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Am I doing something incorrectly? I would like at least to understand
what is happening and, if possible, to fine-tune some settings.
If necessary, please let me know and I will provide any further
information that may be needed.
Thanks in advance, Rogério Brito.
^ permalink raw reply [flat|nested] 30+ messages in thread
* Re: Quick question about libata and hdparm
2009-04-19 0:22 Quick question about libata and hdparm Rogério Brito
@ 2009-04-19 6:31 ` Robert Hancock
2009-04-19 12:33 ` Mark Lord
1 sibling, 0 replies; 30+ messages in thread
From: Robert Hancock @ 2009-04-19 6:31 UTC (permalink / raw)
To: Rogério Brito; +Cc: linux-kernel
Rogério Brito wrote:
> Dear people,
>
> I have one small question regarding the libata drivers and the
> interaction with hdparm.
>
> I am presently using PATA/IDE devices only, but some distributions
> provide kernels with libata by default (and some defconfigs also use
> libata even for IDE devices).
>
> Using the usual IDE drivers, I can use/query various parameters with
> hdparm, like, for instance, the -m option, the -c option or even
> disabling DMA. With the libata drivers, this is all that I get:
>
> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
> lutz:~# hdparm /dev/sda
>
> /dev/sda:
> IO_support = 0 (default)
> readonly = 0 (off)
> readahead = 256 (on)
> geometry = 48641/255/63, sectors = 781420655, start = 0
> lutz:~# hdparm -c 1 /dev/sda
>
> /dev/sda:
> setting 32-bit IO_support flag to 1
> HDIO_SET_32BIT failed: Invalid argument
> IO_support = 0 (default)
> lutz:~# hdparm -m 16 /dev/sda
>
> /dev/sda:
> setting multcount to 16
> HDIO_SET_MULTCOUNT failed: Inappropriate ioctl for device
> HDIO_GET_MULTCOUNT failed: Inappropriate ioctl for device
> lutz:~#
> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
>
> Am I doing something incorrectly? I would like at least to understand
> what is happening and, if possible, to fine-tune some settings.
>
> If necessary, please let me know and I will provide any further
> information that may be needed.
libata doesn't support many of the ioctls used by hdparm to control
these options. The idea is that the user shouldn't have to mess with
them. They were more necessary with old IDE in some cases as it could
sometimes end up with brain-dead settings..
The set 32-bit IO support only recently got added in 2.6.30-rc kernels.
However, it already defaults to enabled on all controllers where it's
supported currently.
^ permalink raw reply [flat|nested] 30+ messages in thread
* Re: Quick question about libata and hdparm
2009-04-19 0:22 Quick question about libata and hdparm Rogério Brito
2009-04-19 6:31 ` Robert Hancock
@ 2009-04-19 12:33 ` Mark Lord
2009-04-19 12:44 ` Michael Tokarev
2009-04-19 20:03 ` Rogério Brito
1 sibling, 2 replies; 30+ messages in thread
From: Mark Lord @ 2009-04-19 12:33 UTC (permalink / raw)
To: Rogério Brito; +Cc: linux-kernel
Rogério Brito wrote:
> Dear people,
>
> I have one small question regarding the libata drivers and the
> interaction with hdparm.
>
> I am presently using PATA/IDE devices only, but some distributions
> provide kernels with libata by default (and some defconfigs also use
> libata even for IDE devices).
>
> Using the usual IDE drivers, I can use/query various parameters with
> hdparm, like, for instance, the -m option, the -c option or even
> disabling DMA. With the libata drivers, this is all that I get:
..
> Am I doing something incorrectly? I would like at least to understand
> what is happening and, if possible, to fine-tune some settings.
..
Nearly all of the hdparm flags work fine with libata and SATA/PATA drives.
Among the *very few* that do not, are the -m and -d flags. -c will be working
in the newest kernels, but not yet in most distro kernels.
The -d flag is not permitted by libata, as the kernel prefers to completely
dictate DMA / PIO, and it does do a rather good job of it.
The -m flag could be done, and I even have code in hdparm to do it,
but libata is very buggy with multi-sector I/O, so -m is currently is disallowed.
Cheers
^ permalink raw reply [flat|nested] 30+ messages in thread
* Re: Quick question about libata and hdparm
2009-04-19 12:33 ` Mark Lord
@ 2009-04-19 12:44 ` Michael Tokarev
2009-04-19 12:57 ` Jeff Garzik
2009-04-19 20:03 ` Rogério Brito
1 sibling, 1 reply; 30+ messages in thread
From: Michael Tokarev @ 2009-04-19 12:44 UTC (permalink / raw)
To: Mark Lord; +Cc: Rogério Brito, linux-kernel
Mark Lord wrote:
[]
> Nearly all of the hdparm flags work fine with libata and SATA/PATA drives.
> Among the *very few* that do not, are the -m and -d flags. -c will be
> working
> in the newest kernels, but not yet in most distro kernels.
>
> The -d flag is not permitted by libata, as the kernel prefers to completely
> dictate DMA / PIO, and it does do a rather good job of it.
Well, the kernel does a good job here in *almost* all cases.
The problematic case is when a device has some bad/unreadable
blocks/sectors. When such a place occurs on read, libata
(or whatever it is) performs several retries, each time
using "less aggressive" settings - like reducing UDMA and
PIO mode till the lowest possible PIO/33. And the device
stays in that mode until reboot, even if the problematic
sector has been relocated. So it'd be nice to be able to
reset the mode back in such cases.
/mjt
^ permalink raw reply [flat|nested] 30+ messages in thread
* Re: Quick question about libata and hdparm
2009-04-19 12:44 ` Michael Tokarev
@ 2009-04-19 12:57 ` Jeff Garzik
2009-04-19 13:06 ` Michael Tokarev
2009-04-19 20:11 ` Rogério Brito
0 siblings, 2 replies; 30+ messages in thread
From: Jeff Garzik @ 2009-04-19 12:57 UTC (permalink / raw)
To: Michael Tokarev; +Cc: Mark Lord, Rogério Brito, linux-kernel
Michael Tokarev wrote:
> Mark Lord wrote:
> []
>> Nearly all of the hdparm flags work fine with libata and SATA/PATA
>> drives.
>> Among the *very few* that do not, are the -m and -d flags. -c will be
>> working
>> in the newest kernels, but not yet in most distro kernels.
>>
>> The -d flag is not permitted by libata, as the kernel prefers to
>> completely
>> dictate DMA / PIO, and it does do a rather good job of it.
>
> Well, the kernel does a good job here in *almost* all cases.
> The problematic case is when a device has some bad/unreadable
> blocks/sectors. When such a place occurs on read, libata
> (or whatever it is) performs several retries, each time
> using "less aggressive" settings - like reducing UDMA and
> PIO mode till the lowest possible PIO/33. And the device
> stays in that mode until reboot, even if the problematic
> sector has been relocated. So it'd be nice to be able to
> reset the mode back in such cases.
Do you have a log?
libata worries about speed changes for CRC errors and the like, not for
media errors that involve sector relocation.
Jeff
^ permalink raw reply [flat|nested] 30+ messages in thread
* Re: Quick question about libata and hdparm
2009-04-19 12:57 ` Jeff Garzik
@ 2009-04-19 13:06 ` Michael Tokarev
2009-04-19 20:11 ` Rogério Brito
1 sibling, 0 replies; 30+ messages in thread
From: Michael Tokarev @ 2009-04-19 13:06 UTC (permalink / raw)
To: Jeff Garzik; +Cc: Mark Lord, Rogério Brito, linux-kernel
Jeff Garzik wrote:
> Michael Tokarev wrote:
>> Mark Lord wrote:
>> []
>>> Nearly all of the hdparm flags work fine with libata and SATA/PATA
>>> drives.
>>> Among the *very few* that do not, are the -m and -d flags. -c will
>>> be working
>>> in the newest kernels, but not yet in most distro kernels.
>>>
>>> The -d flag is not permitted by libata, as the kernel prefers to
>>> completely
>>> dictate DMA / PIO, and it does do a rather good job of it.
>>
>> Well, the kernel does a good job here in *almost* all cases.
>> The problematic case is when a device has some bad/unreadable
>> blocks/sectors. When such a place occurs on read, libata
>> (or whatever it is) performs several retries, each time
>> using "less aggressive" settings - like reducing UDMA and
>> PIO mode till the lowest possible PIO/33. And the device
>> stays in that mode until reboot, even if the problematic
>> sector has been relocated. So it'd be nice to be able to
>> reset the mode back in such cases.
>
> Do you have a log?
Hmm. Just a week ago I were reading several bad disks - one
dying drive from a laptop with many bad blocks on it and several
scsi drives that were in a server room where an airconditioner
failed and ambient temp were as high as 78C. Ran that off an
rescue cd, without any permanent storage to save logs. It was
quite time-consuming process - I had to use ddrescue to recover
data, and I had to reboot several times to get the (sata) disk
to work in UDMA6 mode again (ddrescue saves state and resumes
from place it were stopped before). So no - I don't have logs
right now even if I saw it very recently.
> libata worries about speed changes for CRC errors and the like, not for
> media errors that involve sector relocation.
Maybe I were not clear enough. The relocation event were triggered
especially *after* failure to read the bad block(s). I tried to
read the bad blocks with ddrescue, during which drive returned
"media error" (in case of scsi drives) and - probably, but i'm
not sure - crc errors in case of sata, and libata (in case of
sata) reduced the mode the drive is working at and retried.
Later on I just wrote something to the problematic place to
trigger relocation and continued, but the drive (now reading
good portions) stays in PIO/33 mode anyway, which is slow and
I had to reboot to speed it up again.
So it seems there's no disagreement - the drive actually returned
something similar to CRC errors, and it has nothing to do with
sector relocation.
What I mean by mentioning relocated sectors is that the drive
stays in "lower" mode after - even if the problematic sector
is fixed already.
But this is not something you encounter 20 times a day, hopefully :)
/mjt
^ permalink raw reply [flat|nested] 30+ messages in thread
* Re: Quick question about libata and hdparm
2009-04-19 12:33 ` Mark Lord
2009-04-19 12:44 ` Michael Tokarev
@ 2009-04-19 20:03 ` Rogério Brito
2009-04-19 23:41 ` Mark Lord
1 sibling, 1 reply; 30+ messages in thread
From: Rogério Brito @ 2009-04-19 20:03 UTC (permalink / raw)
To: Mark Lord; +Cc: linux-kernel
On Apr 19 2009, Mark Lord wrote:
> Rogério Brito wrote:
>> Using the usual IDE drivers, I can use/query various parameters with
>> hdparm, like, for instance, the -m option, the -c option or even
>> disabling DMA. With the libata drivers, this is all that I get:
(...)
>
> Nearly all of the hdparm flags work fine with libata and SATA/PATA
> drives. Among the *very few* that do not, are the -m and -d flags.
Hummm, the -m switch would be very important in the case of a slow ppc
based NAS that I have here.
> -c will be working in the newest kernels, but not yet in most distro
> kernels.
As another person replied, you meant in the 30-rc kernels? I can test
that, but the .29 kernels stopped working with the MTD devices on the
NAS cited above.
With .28 kernels, I can access all the partitions of the MTD devices,
which I can't with kernels .29 (that is, the .29 kernels lost
functionality).
I guess that I will reopen the bugzilla bug-report that I wrote before
and try the newer .30-rc kernels, then. Squeezing performance out of
this little machine is quite important in my case.
> The -d flag is not permitted by libata, as the kernel prefers to
> completely dictate DMA / PIO, and it does do a rather good job of it.
And what about corner cases like the ones that happen sometimes?
> The -m flag could be done, and I even have code in hdparm to do it,
> but libata is very buggy with multi-sector I/O, so -m is currently is
> disallowed.
I would be interested in putting in a new drive in the NAS and testing
your patch to debug things, if that would help with multi-sector I/O
getting fixed with libata.
Thanks,
--
Rogério Brito : rbrito@{mackenzie,ime.usp}.br : GPG key 1024D/7C2CAEB8
http://www.ime.usp.br/~rbrito : http://meusite.mackenzie.com.br/rbrito
Projects: algorithms.berlios.de : lame.sf.net : vrms.alioth.debian.org
^ permalink raw reply [flat|nested] 30+ messages in thread
* Re: Quick question about libata and hdparm
2009-04-19 12:57 ` Jeff Garzik
2009-04-19 13:06 ` Michael Tokarev
@ 2009-04-19 20:11 ` Rogério Brito
2009-04-19 21:27 ` Jeff Garzik
1 sibling, 1 reply; 30+ messages in thread
From: Rogério Brito @ 2009-04-19 20:11 UTC (permalink / raw)
To: Jeff Garzik; +Cc: Michael Tokarev, Mark Lord, linux-kernel
Hi, Jeff.
On Apr 19 2009, Jeff Garzik wrote:
> Michael Tokarev wrote:
>> Well, the kernel does a good job here in *almost* all cases.
>> The problematic case is when a device has some bad/unreadable
>> blocks/sectors. When such a place occurs on read, libata
>> (or whatever it is) performs several retries, each time
>> using "less aggressive" settings - like reducing UDMA and
>> PIO mode till the lowest possible PIO/33. And the device
>> stays in that mode until reboot, even if the problematic
>> sector has been relocated. So it'd be nice to be able to
>> reset the mode back in such cases.
>
> Do you have a log?
I have a log here of libata reducing UDMA speed. I don't know if this is
any hardware problem or not (I think not), but I do see libata
complaining and reducing the speed of the drive.
Would you like it?
Thanks,
--
Rogério Brito : rbrito@{mackenzie,ime.usp}.br : GPG key 1024D/7C2CAEB8
http://www.ime.usp.br/~rbrito : http://meusite.mackenzie.com.br/rbrito
Projects: algorithms.berlios.de : lame.sf.net : vrms.alioth.debian.org
^ permalink raw reply [flat|nested] 30+ messages in thread
* Re: Quick question about libata and hdparm
2009-04-19 20:11 ` Rogério Brito
@ 2009-04-19 21:27 ` Jeff Garzik
2009-04-20 17:35 ` Rogério Brito
0 siblings, 1 reply; 30+ messages in thread
From: Jeff Garzik @ 2009-04-19 21:27 UTC (permalink / raw)
To: Rogério Brito; +Cc: Michael Tokarev, Mark Lord, linux-kernel
Rogério Brito wrote:
> Hi, Jeff.
>
> On Apr 19 2009, Jeff Garzik wrote:
>> Michael Tokarev wrote:
>>> Well, the kernel does a good job here in *almost* all cases.
>>> The problematic case is when a device has some bad/unreadable
>>> blocks/sectors. When such a place occurs on read, libata
>>> (or whatever it is) performs several retries, each time
>>> using "less aggressive" settings - like reducing UDMA and
>>> PIO mode till the lowest possible PIO/33. And the device
>>> stays in that mode until reboot, even if the problematic
>>> sector has been relocated. So it'd be nice to be able to
>>> reset the mode back in such cases.
>> Do you have a log?
>
> I have a log here of libata reducing UDMA speed. I don't know if this is
> any hardware problem or not (I think not), but I do see libata
> complaining and reducing the speed of the drive.
Well, it's supposed to reduce speed in several circumstances... just not
Michael's. :)
Jeff
^ permalink raw reply [flat|nested] 30+ messages in thread
* Re: Quick question about libata and hdparm
2009-04-19 20:03 ` Rogério Brito
@ 2009-04-19 23:41 ` Mark Lord
0 siblings, 0 replies; 30+ messages in thread
From: Mark Lord @ 2009-04-19 23:41 UTC (permalink / raw)
To: Rogério Brito; +Cc: linux-kernel, Tejun Heo
Rogério Brito wrote:
> On Apr 19 2009, Mark Lord wrote:
..
>> The -m flag could be done, and I even have code in hdparm to do it,
>> but libata is very buggy with multi-sector I/O, so -m is currently is
>> disallowed.
>
> I would be interested in putting in a new drive in the NAS and testing
> your patch to debug things, if that would help with multi-sector I/O
> getting fixed with libata.
..
It just needs someone to patch libata to sniff out "SET MULTIPLE" commands
from SG_IO, and perform drive revalidation afterwards. Very similar to
how it currently sniffs "SET FEATURES XFERMODE" commands.
If libata did that, then "hdparm -m" would become safe to use with it.
Cheers
^ permalink raw reply [flat|nested] 30+ messages in thread
* Re: Quick question about libata and hdparm
2009-04-19 21:27 ` Jeff Garzik
@ 2009-04-20 17:35 ` Rogério Brito
2009-04-20 18:40 ` Alan Cox
2009-04-20 20:31 ` Bartlomiej Zolnierkiewicz
0 siblings, 2 replies; 30+ messages in thread
From: Rogério Brito @ 2009-04-20 17:35 UTC (permalink / raw)
To: Jeff Garzik; +Cc: Michael Tokarev, Mark Lord, linux-kernel
[-- Attachment #1: Type: text/plain, Size: 1141 bytes --]
Hi, Jeff.
On Apr 19 2009, Jeff Garzik wrote:
> Well, it's supposed to reduce speed in several circumstances... just
> not Michael's. :)
Well, I'll take that as a yes. :-)
Can you comment on the dmesg log attached? I'd like to, at least,
understand what is happening, since I'm starting to consider using
libata with all my computers.
This computer, in particular, uses an IDE drive with a 40 ribbon cable
(and, thus, no UDMA/66). The cable is well put (checked two times
already) and I believe that everything is OK with this cable, since I
substituted it was already substituting one that gave me the same
results.
I can post any information that is desired about this machine (but the
dmesg talks a lot about it, of course).
(Yes, this dmesg is from Ubuntu, and, yes, I can use a vanilla kernel
from kernel.org--just let me know if it is necessary to change anything
and I will do just that).
Thanks, Rogério.
--
Rogério Brito : rbrito@{mackenzie,ime.usp}.br : GPG key 1024D/7C2CAEB8
http://www.ime.usp.br/~rbrito : http://meusite.mackenzie.com.br/rbrito
Projects: algorithms.berlios.de : lame.sf.net : vrms.alioth.debian.org
[-- Attachment #2: dmesg-dumont.txt --]
[-- Type: text/plain, Size: 32123 bytes --]
[ 0.000000] Initializing cgroup subsys cpuset
[ 0.000000] Initializing cgroup subsys cpu
[ 0.000000] Linux version 2.6.27-14-generic (buildd@palmer) (gcc version 4.3.2 (Ubuntu 4.3.2-1ubuntu12) ) #1 SMP Fri Mar 13 18:00:20 UTC 2009 (Ubuntu 2.6.27-14.30-generic)
[ 0.000000] BIOS-provided physical RAM map:
[ 0.000000] BIOS-e820: 0000000000000000 - 000000000009f000 (usable)
[ 0.000000] BIOS-e820: 000000000009f000 - 00000000000a0000 (reserved)
[ 0.000000] BIOS-e820: 00000000000f0000 - 0000000000100000 (reserved)
[ 0.000000] BIOS-e820: 0000000000100000 - 000000001ffec000 (usable)
[ 0.000000] BIOS-e820: 000000001ffec000 - 000000001ffef000 (ACPI data)
[ 0.000000] BIOS-e820: 000000001ffef000 - 000000001ffff000 (reserved)
[ 0.000000] BIOS-e820: 000000001ffff000 - 0000000020000000 (ACPI NVS)
[ 0.000000] BIOS-e820: 00000000ffff0000 - 0000000100000000 (reserved)
[ 0.000000] DMI 2.3 present.
[ 0.000000] last_pfn = 0x1ffec max_arch_pfn = 0x100000
[ 0.000000] kernel direct mapping tables up to 1ffec000 @ 7000-d000
[ 0.000000] RAMDISK: 1f817000 - 1ffdbc0d
[ 0.000000] ACPI: RSDP 000F6A90, 0014 (r0 ASUS )
[ 0.000000] ACPI: RSDT 1FFEC000, 002C (r1 ASUS A7V 30303031 MSFT 31313031)
[ 0.000000] ACPI: FACP 1FFEC080, 0074 (r1 ASUS A7V 30303031 MSFT 31313031)
[ 0.000000] ACPI: DSDT 1FFEC100, 2CE1 (r1 ASUS A7V 1000 MSFT 100000B)
[ 0.000000] ACPI: FACS 1FFFF000, 0040
[ 0.000000] ACPI: BOOT 1FFEC040, 0028 (r1 ASUS A7V 30303031 MSFT 31313031)
[ 0.000000] 0MB HIGHMEM available.
[ 0.000000] 511MB LOWMEM available.
[ 0.000000] mapped low ram: 0 - 1ffec000
[ 0.000000] low ram: 00000000 - 1ffec000
[ 0.000000] bootmap 00002000 - 00006000
[ 0.000000] (9 early reservations) ==> bootmem [0000000000 - 001ffec000]
[ 0.000000] #0 [0000000000 - 0000001000] BIOS data page ==> [0000000000 - 0000001000]
[ 0.000000] #1 [0000001000 - 0000002000] EX TRAMPOLINE ==> [0000001000 - 0000002000]
[ 0.000000] #2 [0000006000 - 0000007000] TRAMPOLINE ==> [0000006000 - 0000007000]
[ 0.000000] #3 [0000100000 - 00005c39e0] TEXT DATA BSS ==> [0000100000 - 00005c39e0]
[ 0.000000] #4 [001f817000 - 001ffdbc0d] RAMDISK ==> [001f817000 - 001ffdbc0d]
[ 0.000000] #5 [00005c4000 - 00005c7000] INIT_PG_TABLE ==> [00005c4000 - 00005c7000]
[ 0.000000] #6 [000009f000 - 0000100000] BIOS reserved ==> [000009f000 - 0000100000]
[ 0.000000] #7 [0000007000 - 0000009000] PGTABLE ==> [0000007000 - 0000009000]
[ 0.000000] #8 [0000002000 - 0000006000] BOOTMAP ==> [0000002000 - 0000006000]
[ 0.000000] Zone PFN ranges:
[ 0.000000] DMA 0x00000000 -> 0x00001000
[ 0.000000] Normal 0x00001000 -> 0x0001ffec
[ 0.000000] HighMem 0x0001ffec -> 0x0001ffec
[ 0.000000] Movable zone start PFN for each node
[ 0.000000] early_node_map[2] active PFN ranges
[ 0.000000] 0: 0x00000000 -> 0x0000009f
[ 0.000000] 0: 0x00000100 -> 0x0001ffec
[ 0.000000] On node 0 totalpages: 130955
[ 0.000000] free_area_init_node: node 0, pgdat c048c700, node_mem_map c1000000
[ 0.000000] DMA zone: 3963 pages, LIFO batch:0
[ 0.000000] Normal zone: 125840 pages, LIFO batch:31
[ 0.000000] ACPI: PM-Timer IO Port: 0xe408
[ 0.000000] SMP: Allowing 1 CPUs, 0 hotplug CPUs
[ 0.000000] Local APIC disabled by BIOS -- you can enable it with "lapic"
[ 0.000000] mapped APIC to ffffb000 (01482000)
[ 0.000000] PM: Registered nosave memory: 000000000009f000 - 00000000000a0000
[ 0.000000] PM: Registered nosave memory: 00000000000a0000 - 00000000000f0000
[ 0.000000] PM: Registered nosave memory: 00000000000f0000 - 0000000000100000
[ 0.000000] Allocating PCI resources starting at 30000000 (gap: 20000000:dfff0000)
[ 0.000000] PERCPU: Allocating 41628 bytes of per cpu data
[ 0.000000] NR_CPUS: 64, nr_cpu_ids: 1, nr_node_ids 1
[ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 129803
[ 0.000000] Kernel command line: root=UUID=283b17d2-52e3-4a81-ab2d-c1ace5ecd06c ro quiet splash locale=pt_BR
[ 0.000000] Enabling fast FPU save and restore... done.
[ 0.000000] Enabling unmasked SIMD FPU exception support... done.
[ 0.000000] Initializing CPU#0
[ 0.000000] PID hash table entries: 2048 (order: 11, 8192 bytes)
[ 0.000000] TSC: PIT calibration confirmed by PMTIMER.
[ 0.000000] TSC: using PIT calibration value
[ 0.000000] Detected 1049.982 MHz processor.
[ 0.004000] Console: colour VGA+ 80x25
[ 0.004000] console [tty0] enabled
[ 0.004000] Dentry cache hash table entries: 65536 (order: 6, 262144 bytes)
[ 0.004000] Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)
[ 0.004000] Memory: 505656k/524208k available (2577k kernel code, 17948k reserved, 1163k data, 428k init, 0k highmem)
[ 0.004000] virtual kernel memory layout:
[ 0.004000] fixmap : 0xffc77000 - 0xfffff000 (3616 kB)
[ 0.004000] pkmap : 0xff400000 - 0xff800000 (4096 kB)
[ 0.004000] vmalloc : 0xe0800000 - 0xff3fe000 ( 491 MB)
[ 0.004000] lowmem : 0xc0000000 - 0xdffec000 ( 511 MB)
[ 0.004000] .init : 0xc04ad000 - 0xc0518000 ( 428 kB)
[ 0.004000] .data : 0xc038473a - 0xc04a7680 (1163 kB)
[ 0.004000] .text : 0xc0100000 - 0xc038473a (2577 kB)
[ 0.004000] Checking if this processor honours the WP bit even in supervisor mode...Ok.
[ 0.004000] CPA: page pool initialized 1 of 1 pages preallocated
[ 0.004000] SLUB: Genslabs=12, HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[ 0.004020] Calibrating delay loop (skipped), value calculated using timer frequency.. 2099.96 BogoMIPS (lpj=4199928)
[ 0.004066] Security Framework initialized
[ 0.004082] SELinux: Disabled at boot.
[ 0.004135] AppArmor: AppArmor initialized
[ 0.004154] Mount-cache hash table entries: 512
[ 0.004516] Initializing cgroup subsys ns
[ 0.004529] Initializing cgroup subsys cpuacct
[ 0.004534] Initializing cgroup subsys memory
[ 0.004567] CPU: L1 I Cache: 64K (64 bytes/line), D cache 64K (64 bytes/line)
[ 0.004573] CPU: L2 Cache: 64K (64 bytes/line)
[ 0.004606] Checking 'hlt' instruction... OK.
[ 0.020591] SMP alternatives: switching to UP code
[ 0.031087] Freeing SMP alternatives: 11k freed
[ 0.031096] ACPI: Core revision 20080609
[ 0.033428] ACPI: Checking initramfs for custom DSDT
[ 0.660833] ACPI: setting ELCR to 0200 (from 0e20)
[ 0.661062] weird, boot CPU (#0) not listedby the BIOS.
[ 0.661068] SMP motherboard not detected.
[ 0.661075] Local APIC not detected. Using dummy APIC emulation.
[ 0.661080] SMP disabled
[ 0.661237] Brought up 1 CPUs
[ 0.661242] Total of 1 processors activated (2099.96 BogoMIPS).
[ 0.661272] CPU0 attaching NULL sched-domain.
[ 0.661848] net_namespace: 840 bytes
[ 0.661870] Booting paravirtualized kernel on bare hardware
[ 0.662281] Time: 5:43:06 Date: 04/20/09
[ 0.662360] NET: Registered protocol family 16
[ 0.663250] EISA bus registered
[ 0.663312] ACPI: bus type pci registered
[ 0.665971] PCI: PCI BIOS revision 2.10 entry at 0xf1180, last bus=1
[ 0.665978] PCI: Using configuration type 1 for base access
[ 0.669224] ACPI: EC: Look up EC in DSDT
[ 0.676577] ACPI: Interpreter enabled
[ 0.676594] ACPI: (supports S0 S1 S4 S5)
[ 0.676628] ACPI: Using PIC for interrupt routing
[ 0.694151] ACPI: PCI Root Bridge [PCI0] (0000:00)
[ 0.694353] PCI: 0000:00:00.0 reg 10 32bit mmio: [e6000000, e7ffffff]
[ 0.694395] pci 0000:00:00.0: Disabling VIA memory write queue (PCI ID 0305, rev 02): [55] 89 & 1f -> 09
[ 0.694460] pci 0000:00:01.0: supports D1
[ 0.694557] PCI: 0000:00:04.1 reg 20 io port: [d800, d80f]
[ 0.694628] PCI: 0000:00:04.2 reg 20 io port: [d400, d41f]
[ 0.694696] PCI: 0000:00:04.3 reg 20 io port: [d000, d01f]
[ 0.694787] pci 0000:00:04.4: quirk: region e400-e4ff claimed by vt82c586 ACPI
[ 0.694794] pci 0000:00:04.4: quirk: region e200-e27f claimed by vt82c686 HW-mon
[ 0.694802] pci 0000:00:04.4: quirk: region e800-e80f claimed by vt82c686 SMB
[ 0.694850] PCI: 0000:00:09.0 reg 10 io port: [a400, a4ff]
[ 0.694860] PCI: 0000:00:09.0 reg 14 32bit mmio: [e2000000, e20000ff]
[ 0.694902] pci 0000:00:09.0: supports D1
[ 0.694906] pci 0000:00:09.0: supports D2
[ 0.694911] pci 0000:00:09.0: PME# supported from D1 D2 D3hot
[ 0.694918] pci 0000:00:09.0: PME# disabled
[ 0.694949] PCI: 0000:00:0a.0 reg 10 io port: [a000, a03f]
[ 0.694995] pci 0000:00:0a.0: supports D2
[ 0.695023] PCI: 0000:00:0b.0 reg 10 32bit mmio: [e1800000, e18007ff]
[ 0.695033] PCI: 0000:00:0b.0 reg 14 io port: [9800, 987f]
[ 0.695076] pci 0000:00:0b.0: supports D2
[ 0.695081] pci 0000:00:0b.0: PME# supported from D2 D3hot D3cold
[ 0.695087] pci 0000:00:0b.0: PME# disabled
[ 0.695114] PCI: 0000:00:0c.0 reg 10 io port: [9400, 9407]
[ 0.695158] pci 0000:00:0c.0: supports D2
[ 0.695163] pci 0000:00:0c.0: PME# supported from D0 D2 D3hot D3cold
[ 0.695170] pci 0000:00:0c.0: PME# disabled
[ 0.695211] PCI: 0000:00:0d.0 reg 20 io port: [9000, 901f]
[ 0.695241] pci 0000:00:0d.0: supports D1
[ 0.695245] pci 0000:00:0d.0: supports D2
[ 0.695249] pci 0000:00:0d.0: PME# supported from D0 D1 D2 D3hot
[ 0.695256] pci 0000:00:0d.0: PME# disabled
[ 0.695297] PCI: 0000:00:0d.1 reg 20 io port: [8800, 881f]
[ 0.695327] pci 0000:00:0d.1: supports D1
[ 0.695331] pci 0000:00:0d.1: supports D2
[ 0.695335] pci 0000:00:0d.1: PME# supported from D0 D1 D2 D3hot
[ 0.695342] pci 0000:00:0d.1: PME# disabled
[ 0.695369] PCI: 0000:00:0d.2 reg 10 32bit mmio: [e1000000, e10000ff]
[ 0.695414] pci 0000:00:0d.2: supports D1
[ 0.695418] pci 0000:00:0d.2: supports D2
[ 0.695422] pci 0000:00:0d.2: PME# supported from D0 D1 D2 D3hot
[ 0.695429] pci 0000:00:0d.2: PME# disabled
[ 0.695464] PCI: 0000:00:11.0 reg 10 io port: [8400, 8407]
[ 0.695472] PCI: 0000:00:11.0 reg 14 io port: [8000, 8003]
[ 0.695481] PCI: 0000:00:11.0 reg 18 io port: [7800, 7807]
[ 0.695490] PCI: 0000:00:11.0 reg 1c io port: [7400, 7403]
[ 0.695499] PCI: 0000:00:11.0 reg 20 io port: [7000, 703f]
[ 0.695508] PCI: 0000:00:11.0 reg 24 32bit mmio: [e0800000, e081ffff]
[ 0.695517] PCI: 0000:00:11.0 reg 30 32bit mmio: [0, ffff]
[ 0.695589] PCI: 0000:01:00.0 reg 10 32bit mmio: [e4000000, e5ffffff]
[ 0.695598] PCI: 0000:01:00.0 reg 14 32bit mmio: [e3000000, e3003fff]
[ 0.695607] PCI: 0000:01:00.0 reg 18 32bit mmio: [e2800000, e2ffffff]
[ 0.695627] PCI: 0000:01:00.0 reg 30 32bit mmio: [e3ff0000, e3ffffff]
[ 0.695687] PCI: bridge 0000:00:01.0 32bit mmio: [e2800000, e3dfffff]
[ 0.695695] PCI: bridge 0000:00:01.0 32bit mmio pref: [e3f00000, e5ffffff]
[ 0.695705] bus 00 -> node 0
[ 0.695729] ACPI: PCI Interrupt Routing Table [\_SB_.PCI0._PRT]
[ 0.822288] ACPI: PCI Interrupt Link [LNKA] (IRQs 3 4 5 6 7 9 10 *11 12 14 15)
[ 0.822521] ACPI: PCI Interrupt Link [LNKB] (IRQs 3 4 5 6 7 9 *10 11 12 14 15)
[ 0.822741] ACPI: PCI Interrupt Link [LNKC] (IRQs 3 4 *5 6 7 9 10 11 12 14 15)
[ 0.822959] ACPI: PCI Interrupt Link [LNKD] (IRQs 3 4 5 6 7 *9 10 11 12 14 15)
[ 0.823438] Linux Plug and Play Support v0.97 (c) Adam Belay
[ 0.823536] pnp: PnP ACPI init
[ 0.823564] ACPI: bus type pnp registered
[ 0.825584] pnp 00:03: io resource (0xe400-0xe47f) overlaps 0000:00:04.4 BAR 7 (0xe400-0xe4ff), disabling
[ 0.832140] pnp: PnP ACPI: found 14 devices
[ 0.832150] ACPI: ACPI bus type pnp unregistered
[ 0.832160] PnPBIOS: Disabled by ACPI PNP
[ 0.833233] PCI: Using ACPI for IRQ routing
[ 0.833518] NET: Registered protocol family 8
[ 0.833518] NET: Registered protocol family 20
[ 0.833518] NetLabel: Initializing
[ 0.833518] NetLabel: domain hash size = 128
[ 0.833518] NetLabel: protocols = UNLABELED CIPSOv4
[ 0.833518] NetLabel: unlabeled traffic allowed by default
[ 0.833518] tracer: 772 pages allocated for 65536 entries of 48 bytes
[ 0.833518] actual entries 65620
[ 0.833518] AppArmor: AppArmor Filesystem Enabled
[ 0.833518] ACPI: RTC can wake from S4
[ 0.833518] system 00:00: iomem range 0x0-0x9ffff could not be reserved
[ 0.833518] system 00:00: iomem range 0xf0000-0xfffff could not be reserved
[ 0.833518] system 00:00: iomem range 0x100000-0x1fffffff could not be reserved
[ 0.833518] system 00:00: iomem range 0xfffe0000-0xffffffff could not be reserved
[ 0.833518] system 00:02: ioport range 0x3f0-0x3f1 has been reserved
[ 0.833518] system 00:02: ioport range 0x4d0-0x4d1 has been reserved
[ 0.833518] system 00:03: ioport range 0xe800-0xe80f has been reserved
[ 0.871391] pci 0000:00:01.0: PCI bridge, secondary bus 0000:01
[ 0.871400] pci 0000:00:01.0: IO window: disabled
[ 0.871409] pci 0000:00:01.0: MEM window: 0xe2800000-0xe3dfffff
[ 0.871417] pci 0000:00:01.0: PREFETCH window: 0x000000e3f00000-0x000000e5ffffff
[ 0.871439] pci 0000:00:01.0: setting latency timer to 64
[ 0.871447] bus: 00 index 0 io port: [0, ffff]
[ 0.871451] bus: 00 index 1 mmio: [0, ffffffff]
[ 0.871456] bus: 01 index 0 mmio: [0, 0]
[ 0.871460] bus: 01 index 1 mmio: [e2800000, e3dfffff]
[ 0.871465] bus: 01 index 2 mmio: [e3f00000, e5ffffff]
[ 0.871469] bus: 01 index 3 mmio: [0, 0]
[ 0.871501] NET: Registered protocol family 2
[ 0.871800] IP route cache hash table entries: 4096 (order: 2, 16384 bytes)
[ 0.872354] TCP established hash table entries: 16384 (order: 5, 131072 bytes)
[ 0.872745] TCP bind hash table entries: 16384 (order: 5, 131072 bytes)
[ 0.873117] TCP: Hash tables configured (established 16384 bind 16384)
[ 0.873126] TCP reno registered
[ 0.873377] NET: Registered protocol family 1
[ 0.873653] checking if image is initramfs...<7>Switched to high resolution mode on CPU 0
[ 1.498603] it is
[ 2.268393] Freeing initrd memory: 7955k freed
[ 2.268760] Simple Boot Flag at 0x3a set to 0x1
[ 2.270099] audit: initializing netlink socket (disabled)
[ 2.270139] type=2000 audit(1240206187.268:1): initialized
[ 2.281418] HugeTLB registered 4 MB page size, pre-allocated 0 pages
[ 2.287248] VFS: Disk quotas dquot_6.5.1
[ 2.287534] Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[ 2.287868] msgmni has been set to 1003
[ 2.289029] io scheduler noop registered
[ 2.289039] io scheduler anticipatory registered
[ 2.289044] io scheduler deadline registered
[ 2.289106] io scheduler cfq registered (default)
[ 2.289134] PCI: VIA PCI bridge detected.Disabling DAC.
[ 2.289144] pci 0000:00:04.0: Disabling VIA external APIC routing
[ 2.289256] pci 0000:01:00.0: Boot video device
[ 2.290222] isapnp: Scanning for PnP cards...
[ 2.644393] isapnp: No Plug & Play device found
[ 2.862309] Serial: 8250/16550 driver4 ports, IRQ sharing enabled
[ 2.862571] serial8250: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
[ 2.863212] serial8250: ttyS1 at I/O 0x2f8 (irq = 3) is a 16550A
[ 2.865958] 00:0a: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
[ 2.867313] 00:0b: ttyS1 at I/O 0x2f8 (irq = 3) is a 16550A
[ 2.868884] ACPI: PCI Interrupt Link [LNKA] enabled at IRQ 11
[ 2.868896] PCI: setting IRQ 11 as level-triggered
[ 2.868907] serial 0000:00:0c.0: PCI INT A -> Link[LNKA] -> GSI 11 (level, low) -> IRQ 11
[ 2.869738] 0000:00:0c.0: ttyS2 at I/O 0x9400 (irq = 11) is a 16550A
[ 2.874849] brd: module loaded
[ 2.875061] input: Macintosh mouse button emulation as /devices/virtual/input/input0
[ 2.875396] PNP: PS/2 Controller [PNP0303:PS2K,PNP0f13:PS2M] at 0x60,0x64 irq 1,12
[ 2.875903] serio: i8042 KBD port at 0x60,0x64 irq 1
[ 2.875917] serio: i8042 AUX port at 0x60,0x64 irq 12
[ 2.877653] mice: PS/2 mouse device common for all mice
[ 2.878224] rtc_cmos 00:05: rtc core: registered rtc_cmos as rtc0
[ 2.878263] rtc0: alarms up to one year
[ 2.878635] EISA: Probing bus 0 at eisa.0
[ 2.878682] Cannot allocate resource for EISA slot 7
[ 2.878687] Cannot allocate resource for EISA slot 8
[ 2.878692] EISA: Detected 0 cards.
[ 2.878698] cpuidle: using governor ladder
[ 2.878703] cpuidle: using governor menu
[ 2.879916] TCP cubic registered
[ 2.879990] Using IPI No-Shortcut mode
[ 2.881130] registered taskstats version 1
[ 2.881388] Magic number: 5:701:719
[ 2.881737] rtc_cmos 00:05: setting system clock to 2009-04-20 05:43:08 UTC (1240206188)
[ 2.881745] BIOS EDD facility v0.16 2004-Jun-25, 0 devices found
[ 2.881750] EDD information not available.
[ 2.882876] Freeing unused kernel memory: 428k freed
[ 2.882993] Write protecting the kernel text: 2580k
[ 2.883065] Write protecting the kernel read-only data: 940k
[ 2.898724] input: AT Translated Set 2 keyboard as /devices/platform/i8042/serio0/input/input1
[ 3.380128] fuse init (API version 7.9)
[ 3.457280] ACPI: CPU0 (power states: C1[C1] C2[C2])
[ 3.457444] processor ACPI0007:00: registered as cooling_device0
[ 3.457455] ACPI: Processor [CPU0] (supports 16 throttling states)
[ 4.704358] Floppy drive(s): fd0 is 1.44M
[ 4.723794] FDC 0 is a post-1991 82077
[ 4.979347] No dock devices found.
[ 5.207381] SCSI subsystem initialized
[ 5.213563] 8139cp: 10/100 PCI Ethernet driver v1.3 (Mar 22, 2004)
[ 5.213611] 8139cp 0000:00:09.0: This (id 10ec:8139 rev 10) is not an 8139C+ compatible chip
[ 5.213621] 8139cp 0000:00:09.0: Try the "8139too" driver instead.
[ 5.244329] 8139too Fast Ethernet driver 0.9.28
[ 5.272089] ACPI: PCI Interrupt Link [LNKD] enabled at IRQ 9
[ 5.272101] PCI: setting IRQ 9 as level-triggered
[ 5.272111] 8139too 0000:00:09.0: PCI INT A -> Link[LNKD] -> GSI 9 (level, low) -> IRQ 9
[ 5.272974] eth0: RealTek RTL8139 at 0xa400, 00:e0:7d:96:28:8f, IRQ 9
[ 5.272981] eth0: Identified 8139 chip type 'RTL-8139C'
[ 5.366397] usbcore: registered new interface driver usbfs
[ 5.366478] usbcore: registered new interface driver hub
[ 5.452225] usbcore: registered new device driver usb
[ 5.540734] ACPI: PCI Interrupt Link [LNKB] enabled at IRQ 10
[ 5.540747] PCI: setting IRQ 10 as level-triggered
[ 5.540758] ohci1394 0000:00:0b.0: PCI INT A -> Link[LNKB] -> GSI 10 (level, low) -> IRQ 10
[ 5.593721] ohci1394: fw-host0: OHCI-1394 1.0 (PCI): IRQ=[10] MMIO=[e1800000-e18007ff] Max Packet=[2048] IR/IT contexts=[8/8]
[ 5.623739] libata version 3.00 loaded.
[ 5.626074] USB Universal Host Controller Interface driver v3.0
[ 5.639906] uhci_hcd 0000:00:04.2: PCI INT D -> Link[LNKD] -> GSI 9 (level, low) -> IRQ 9
[ 5.639926] uhci_hcd 0000:00:04.2: UHCI Host Controller
[ 5.640171] uhci_hcd 0000:00:04.2: new USB bus registered, assigned bus number 1
[ 5.640214] uhci_hcd 0000:00:04.2: irq 9, io base 0x0000d400
[ 5.640636] usb usb1: configuration #1 chosen from 1 choice
[ 5.640706] hub 1-0:1.0: USB hub found
[ 5.640735] hub 1-0:1.0: 2 ports detected
[ 5.849622] uhci_hcd 0000:00:04.3: PCI INT D -> Link[LNKD] -> GSI 9 (level, low) -> IRQ 9
[ 5.849650] uhci_hcd 0000:00:04.3: UHCI Host Controller
[ 5.849758] uhci_hcd 0000:00:04.3: new USB bus registered, assigned bus number 2
[ 5.849799] uhci_hcd 0000:00:04.3: irq 9, io base 0x0000d000
[ 5.850233] usb usb2: configuration #1 chosen from 1 choice
[ 5.850297] hub 2-0:1.0: USB hub found
[ 5.850322] hub 2-0:1.0: 2 ports detected
[ 6.056809] uhci_hcd 0000:00:0d.0: PCI INT A -> Link[LNKD] -> GSI 9 (level, low) -> IRQ 9
[ 6.056832] uhci_hcd 0000:00:0d.0: UHCI Host Controller
[ 6.056900] uhci_hcd 0000:00:0d.0: new USB bus registered, assigned bus number 3
[ 6.056940] uhci_hcd 0000:00:0d.0: irq 9, io base 0x00009000
[ 6.057329] usb usb3: configuration #1 chosen from 1 choice
[ 6.057396] hub 3-0:1.0: USB hub found
[ 6.057421] hub 3-0:1.0: 2 ports detected
[ 6.168164] usb 2-2: new full speed USB device using uhci_hcd and address 2
[ 6.264778] uhci_hcd 0000:00:0d.1: PCI INT B -> Link[LNKA] -> GSI 11 (level, low) -> IRQ 11
[ 6.264801] uhci_hcd 0000:00:0d.1: UHCI Host Controller
[ 6.264869] uhci_hcd 0000:00:0d.1: new USB bus registered, assigned bus number 4
[ 6.264910] uhci_hcd 0000:00:0d.1: irq 11, io base 0x00008800
[ 6.265289] usb usb4: configuration #1 chosen from 1 choice
[ 6.265355] hub 4-0:1.0: USB hub found
[ 6.265384] hub 4-0:1.0: 2 ports detected
[ 6.334247] usb 2-2: configuration #1 chosen from 1 choice
[ 6.335986] hub 2-2:1.0: USB hub found
[ 6.337894] hub 2-2:1.0: 4 ports detected
[ 6.472804] ehci_hcd 0000:00:0d.2: PCI INT C -> Link[LNKB] -> GSI 10 (level, low) -> IRQ 10
[ 6.472835] ehci_hcd 0000:00:0d.2: EHCI Host Controller
[ 6.472904] ehci_hcd 0000:00:0d.2: new USB bus registered, assigned bus number 5
[ 6.472991] ehci_hcd 0000:00:0d.2: irq 10, io mem 0xe1000000
[ 6.484097] ehci_hcd 0000:00:0d.2: USB 2.0 started, EHCI 1.00, driver 10 Dec 2004
[ 6.484508] usb usb5: configuration #1 chosen from 1 choice
[ 6.484599] hub 5-0:1.0: USB hub found
[ 6.484625] hub 5-0:1.0: 4 ports detected
[ 6.596262] pata_pdc202xx_old 0000:00:11.0: PCI INT A -> Link[LNKB] -> GSI 10 (level, low) -> IRQ 10
[ 6.601095] scsi0 : pata_pdc202xx_old
[ 6.601478] scsi1 : pata_pdc202xx_old
[ 6.601566] ata1: PATA max UDMA/100 cmd 0x8400 ctl 0x8000 bmdma 0x7000 irq 10
[ 6.601573] ata2: PATA max UDMA/100 cmd 0x7800 ctl 0x7400 bmdma 0x7008 irq 10
[ 6.764700] ata1.00: ATA-4: QUANTUM FIREBALL CX13.0A, A3F.0B00, max UDMA/66
[ 6.764711] ata1.00: 25429824 sectors, multi 16: LBA
[ 6.764742] ata1.00: limited to UDMA/33 due to 40-wire cable
[ 6.780633] ata1.00: configured for UDMA/33
[ 6.908403] ieee1394: Host added: ID:BUS[0-00:1023] GUID[0011066645555ead]
[ 7.563172] scsi 0:0:0:0: Direct-Access ATA QUANTUM FIREBALL A3F. PQ: 0 ANSI: 5
[ 7.572736] pata_via 0000:00:04.1: version 0.3.3
[ 7.573864] scsi2 : pata_via
[ 7.574105] scsi3 : pata_via
[ 7.575268] ata3: PATA max UDMA/66 cmd 0x1f0 ctl 0x3f6 bmdma 0xd800 irq 14
[ 7.575278] ata4: PATA max UDMA/66 cmd 0x170 ctl 0x376 bmdma 0xd808 irq 15
[ 7.603620] scsi 0:0:0:0: Attached scsi generic sg0 type 0
[ 7.647415] Driver 'sd' needs updating - please use bus_type methods
[ 7.647699] sd 0:0:0:0: [sda] 25429824 512-byte hardware sectors (13020 MB)
[ 7.647739] sd 0:0:0:0: [sda] Write Protect is off
[ 7.647746] sd 0:0:0:0: [sda] Mode Sense: 00 3a 00 00
[ 7.647806] sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[ 7.647977] sd 0:0:0:0: [sda] 25429824 512-byte hardware sectors (13020 MB)
[ 7.648099] sd 0:0:0:0: [sda] Write Protect is off
[ 7.648105] sd 0:0:0:0: [sda] Mode Sense: 00 3a 00 00
[ 7.648171] sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[ 7.648183] sda: sda1 sda2 <Marking TSC unstable due to TSC halts in idle
[ 7.684853] sda5 >
[ 7.685287] sd 0:0:0:0: [sda] Attached SCSI disk
[ 7.736331] ata3.00: ATAPI: HL-DT-ST DVDRAM GSA-4160B, A306, max UDMA/66
[ 7.752267] ata3.00: configured for UDMA/66
[ 7.916361] ata4.00: ATAPI: CREATIVE CD5230E, C1.01, max MWDMA2
[ 7.924287] ata4.00: configured for MWDMA2
[ 7.928186] scsi 2:0:0:0: CD-ROM HL-DT-ST DVDRAM GSA-4160B A306 PQ: 0 ANSI: 5
[ 7.929311] scsi 2:0:0:0: Attached scsi generic sg1 type 5
[ 7.931396] scsi 3:0:0:0: CD-ROM CREATIVE CD5230E 1.01 PQ: 0 ANSI: 5
[ 7.931847] scsi 3:0:0:0: Attached scsi generic sg2 type 5
[ 8.067355] Driver 'sr' needs updating - please use bus_type methods
[ 8.081595] sr0: scsi3-mmc drive: 40x/40x writer dvd-ram cd/rw xa/form2 cdda tray
[ 8.081608] Uniform CD-ROM driver Revision: 3.20
[ 8.081853] sr 2:0:0:0: Attached scsi CD-ROM sr0
[ 8.085161] sr1: scsi3-mmc drive: 0x/52x cd/rw xa/form2 cdda tray
[ 8.085419] sr 3:0:0:0: Attached scsi CD-ROM sr1
[ 8.534715] PM: Starting manual resume from disk
[ 8.534729] PM: Resume from partition 8:5
[ 8.534733] PM: Checking hibernation image.
[ 8.535247] PM: Resume from disk failed.
[ 8.586541] EXT3-fs: INFO: recovery required on readonly filesystem.
[ 8.586551] EXT3-fs: write access will be enabled during recovery.
[ 8.861821] kjournald starting. Commit interval 5 seconds
[ 8.861867] EXT3-fs: recovery complete.
[ 8.872729] EXT3-fs: mounted filesystem with ordered data mode.
[ 19.648753] udevd version 124 started
[ 21.485339] Linux agpgart interface v0.103
[ 21.836447] agpgart: Detected VIA Twister-K/KT133x/KM133 chipset
[ 21.841619] agpgart-via 0000:00:00.0: AGP aperture is 32M @ 0xe6000000
[ 21.924428] pci_hotplug: PCI Hot Plug PCI Core version: 0.5
[ 22.004489] parport_pc: VIA 686A/8231 detected
[ 22.004497] parport_pc: probing current configuration
[ 22.004517] parport_pc: Current parallel port base: 0x378
[ 22.004594] parport0: PC-style at 0x378 (0x778), irq 7, using FIFO [PCSPP,TRISTATE,COMPAT,ECP]
[ 22.100280] parport_pc: VIA parallel port: io=0x378, irq=7
[ 22.266742] shpchp: Standard Hot Plug PCI Controller Driver version: 0.4
[ 22.353567] ACPI: I/O resource vt596_smbus [0xe800-0xe807] conflicts with ACPI region SM00 [0xe800-0xe806]
[ 22.353579] ACPI: Device needs an ACPI driver
[ 22.692437] via686a 0000:00:04.4: Sensors disabled, enable with force_addr=0xe200
[ 22.944622] input: Power Button (FF) as /devices/LNXSYSTM:00/LNXPWRBN:00/input/input2
[ 22.956597] ACPI: Power Button (FF) [PWRF]
[ 22.956922] input: Power Button (CM) as /devices/LNXSYSTM:00/device:00/PNP0C0C:00/input/input3
[ 22.975502] ACPI: Power Button (CM) [PWRB]
[ 23.772430] Driver for 1-wire Dallas network protocol.
[ 23.912118] matrox_w1 0000:01:00.0: Matrox G400 GPIO transport layer for 1-wire.
[ 26.354879] input: PC Speaker as /devices/platform/pcspkr/input/input4
[ 26.685658] ACPI: PCI Interrupt Link [LNKC] enabled at IRQ 5
[ 26.685670] PCI: setting IRQ 5 as level-triggered
[ 26.685681] ENS1371 0000:00:0a.0: PCI INT A -> Link[LNKC] -> GSI 5 (level, low) -> IRQ 5
[ 27.010477] input: ImPS/2 Generic Wheel Mouse as /devices/platform/i8042/serio1/input/input5
[ 32.634809] lp0: using parport0 (interrupt-driven).
[ 32.975798] Adding 578300k swap on /dev/sda5. Priority:-1 extents:1 across:578300k
[ 33.631980] EXT3 FS on sda1, internal journal
[ 35.131415] type=1505 audit(1240206220.754:2): operation="profile_load" name="/usr/share/gdm/guest-session/Xsession" name2="default" pid=3840
[ 35.620313] type=1505 audit(1240206221.246:3): operation="profile_load" name="/usr/lib/cups/backend/cups-pdf" name2="default" pid=3845
[ 35.621177] type=1505 audit(1240206221.246:4): operation="profile_load" name="/usr/sbin/cupsd" name2="default" pid=3845
[ 35.885678] ip_tables: (C) 2000-2006 Netfilter Core Team
[ 37.836238] ACPI: WMI: Mapper loaded
[ 40.016509] warning: `avahi-daemon' uses 32-bit capabilities (legacy support in use)
[ 40.149297] apm: BIOS version 1.2 Flags 0x03 (Driver version 1.16ac)
[ 40.149312] apm: overridden by ACPI.
[ 40.423183] ppdev: user-space parallel port driver
[ 43.377269] Bluetooth: Core ver 2.13
[ 43.381449] NET: Registered protocol family 31
[ 43.381461] Bluetooth: HCI device and connection manager initialized
[ 43.381469] Bluetooth: HCI socket layer initialized
[ 43.445015] Bluetooth: L2CAP ver 2.11
[ 43.445027] Bluetooth: L2CAP socket layer initialized
[ 43.469147] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
[ 43.469160] Bluetooth: BNEP filters: protocol multicast
[ 43.530784] Bridge firewalling registered
[ 43.563298] Bluetooth: SCO (Voice Link) ver 0.6
[ 43.563311] Bluetooth: SCO socket layer initialized
[ 43.614114] Bluetooth: RFCOMM socket layer initialized
[ 43.614750] Bluetooth: RFCOMM TTY layer initialized
[ 43.614769] Bluetooth: RFCOMM ver 1.10
[ 47.872800] eth0: link up, 100Mbps, full-duplex, lpa 0x45E1
[ 48.215997] NET: Registered protocol family 17
[ 50.408613] NET: Registered protocol family 10
[ 50.410304] lo: Disabled Privacy Extensions
[ 54.190994] [drm] Initialized drm 1.1.0 20060810
[ 54.224680] matrox_w1 0000:01:00.0: PCI INT A -> Link[LNKA] -> GSI 11 (level, low) -> IRQ 11
[ 54.226987] [drm] Initialized mga 3.2.1 20051102 on minor 0
[ 54.230213] agpgart-via 0000:00:00.0: AGP 2.0 bridge
[ 54.230267] agpgart-via 0000:00:00.0: putting AGP V2 device into 4x mode
[ 54.230346] matrox_w1 0000:01:00.0: putting AGP V2 device into 4x mode
[ 54.394749] [drm] Initialized card for AGP DMA.
[ 61.132050] eth0: no IPv6 routers present
[ 82.048531] ata1.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x6
[ 82.048548] ata1.00: BMDMA stat 0x4
[ 82.048563] ata1.00: cmd c8/00:00:5f:9e:f6/00:00:00:00:00/e0 tag 0 dma 131072 in
[ 82.048567] res 51/84:00:5e:9f:f6/00:00:00:00:00/e0 Emask 0x10 (ATA bus error)
[ 82.048574] ata1.00: status: { DRDY ERR }
[ 82.048579] ata1.00: error: { ICRC ABRT }
[ 82.048607] ata1: soft resetting link
[ 82.228457] ata1.00: configured for UDMA/33
[ 82.228494] ata1: EH complete
[ 82.248586] sd 0:0:0:0: [sda] 25429824 512-byte hardware sectors (13020 MB)
[ 82.249335] sd 0:0:0:0: [sda] Write Protect is off
[ 82.249350] sd 0:0:0:0: [sda] Mode Sense: 00 3a 00 00
[ 82.250199] sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[ 94.419694] ata1.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x6
[ 94.419713] ata1.00: BMDMA stat 0x4
[ 94.419727] ata1.00: cmd c8/00:08:b7:d3:e6/00:00:00:00:00/e0 tag 0 dma 4096 in
[ 94.419730] res 51/84:00:be:d3:e6/00:00:00:00:00/e0 Emask 0x10 (ATA bus error)
[ 94.419738] ata1.00: status: { DRDY ERR }
[ 94.419743] ata1.00: error: { ICRC ABRT }
[ 94.419770] ata1: soft resetting link
[ 94.591544] ata1.00: configured for UDMA/33
[ 94.591590] ata1: EH complete
[ 94.598347] sd 0:0:0:0: [sda] 25429824 512-byte hardware sectors (13020 MB)
[ 94.606879] sd 0:0:0:0: [sda] Write Protect is off
[ 94.606897] sd 0:0:0:0: [sda] Mode Sense: 00 3a 00 00
[ 94.607929] sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[ 175.060580] ppdev0: registered pardevice
[ 175.108608] ppdev0: unregistered pardevice
[ 176.500239] ppdev0: registered pardevice
[ 176.548075] ppdev0: unregistered pardevice
[ 178.176484] ppdev0: registered pardevice
[ 178.224825] ppdev0: unregistered pardevice
[ 1115.090911] ata1.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x6
[ 1115.090928] ata1.00: BMDMA stat 0x4
[ 1115.090943] ata1.00: cmd ca/00:00:a7:6d:19/00:00:00:00:00/e0 tag 0 dma 131072 out
[ 1115.090947] res 51/84:00:a6:6e:19/00:00:00:00:00/e0 Emask 0x10 (ATA bus error)
[ 1115.090955] ata1.00: status: { DRDY ERR }
[ 1115.090960] ata1.00: error: { ICRC ABRT }
[ 1115.090985] ata1: soft resetting link
[ 1115.268520] ata1.00: configured for UDMA/33
[ 1115.268566] ata1: EH complete
[ 1115.276740] sd 0:0:0:0: [sda] 25429824 512-byte hardware sectors (13020 MB)
[ 1115.278856] sd 0:0:0:0: [sda] Write Protect is off
[ 1115.278874] sd 0:0:0:0: [sda] Mode Sense: 00 3a 00 00
[ 1115.286662] sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[ 1421.998585] ata1.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x6
[ 1421.998602] ata1.00: BMDMA stat 0x4
[ 1421.998617] ata1.00: cmd ca/00:08:77:8d:d7/00:00:00:00:00/e0 tag 0 dma 4096 out
[ 1421.998621] res 51/84:00:7e:8d:d7/00:00:00:00:00/e0 Emask 0x10 (ATA bus error)
[ 1421.998629] ata1.00: status: { DRDY ERR }
[ 1421.998633] ata1.00: error: { ICRC ABRT }
[ 1421.998661] ata1: soft resetting link
[ 1422.288427] ata1.00: configured for UDMA/33
[ 1422.288460] ata1: EH complete
[ 1422.289509] sd 0:0:0:0: [sda] 25429824 512-byte hardware sectors (13020 MB)
[ 1422.290149] sd 0:0:0:0: [sda] Write Protect is off
[ 1422.290171] sd 0:0:0:0: [sda] Mode Sense: 00 3a 00 00
[ 1422.291549] sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
^ permalink raw reply [flat|nested] 30+ messages in thread
* Re: Quick question about libata and hdparm
2009-04-20 17:35 ` Rogério Brito
@ 2009-04-20 18:40 ` Alan Cox
2009-04-20 20:41 ` Rogério Brito
2009-04-20 20:31 ` Bartlomiej Zolnierkiewicz
1 sibling, 1 reply; 30+ messages in thread
From: Alan Cox @ 2009-04-20 18:40 UTC (permalink / raw)
To: Rogério Brito; +Cc: Jeff Garzik, Michael Tokarev, Mark Lord, linux-kernel
> Can you comment on the dmesg log attached? I'd like to, at least,
> understand what is happening, since I'm starting to consider using
> libata with all my computers.
Its logging a couple of transmission errors. The CRC is computed by
hardware each end and compared (by hardware).
> This computer, in particular, uses an IDE drive with a 40 ribbon cable
> (and, thus, no UDMA/66). The cable is well put (checked two times
> already) and I believe that everything is OK with this cable, since I
> substituted it was already substituting one that gave me the same
> results.
It's tuned down to UDMA33 which looks correct.
If I saw a lot of these I'd suspect something like a controller timing
setup error, but you seem to just have occasional ones in the log which
really does look like genuine CRC errors from electrical noise or similar.
You don't happen to have any amateur radio transmitters or telsa coils in
the room with it ;) ?
^ permalink raw reply [flat|nested] 30+ messages in thread
* Re: Quick question about libata and hdparm
2009-04-20 17:35 ` Rogério Brito
2009-04-20 18:40 ` Alan Cox
@ 2009-04-20 20:31 ` Bartlomiej Zolnierkiewicz
2009-04-20 20:45 ` Rogério Brito
` (2 more replies)
1 sibling, 3 replies; 30+ messages in thread
From: Bartlomiej Zolnierkiewicz @ 2009-04-20 20:31 UTC (permalink / raw)
To: Rogério Brito
Cc: Jeff Garzik, Michael Tokarev, Mark Lord, linux-kernel, Alan Cox
On Monday 20 April 2009 19:35:27 Rogério Brito wrote:
> Hi, Jeff.
>
> On Apr 19 2009, Jeff Garzik wrote:
> > Well, it's supposed to reduce speed in several circumstances... just
> > not Michael's. :)
>
> Well, I'll take that as a yes. :-)
>
> Can you comment on the dmesg log attached? I'd like to, at least,
> understand what is happening, since I'm starting to consider using
> libata with all my computers.
>
> This computer, in particular, uses an IDE drive with a 40 ribbon cable
> (and, thus, no UDMA/66). The cable is well put (checked two times
> already) and I believe that everything is OK with this cable, since I
> substituted it was already substituting one that gave me the same
> results.
DISCLAIMER: I'm not handling this bugreport, this is best
done by pata_pdc202xx_old Maintainer or libata Maintainer.
Rogério, if the issue is reproducible you can give this patch a try...
From: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Subject: [PATCH] pata_pdc202xx_old: fix UDMA33 handling
The original driver doesn't use 66 MHz clock for UDMA33.
[ The alternative solution would be to adjust UDMA33 timings
for 66 MHz clock but I think that it is safer to stick with
old & tested behavior for now. ]
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
---
drivers/ata/pata_pdc202xx_old.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
Index: b/drivers/ata/pata_pdc202xx_old.c
===================================================================
--- a/drivers/ata/pata_pdc202xx_old.c
+++ b/drivers/ata/pata_pdc202xx_old.c
@@ -2,7 +2,7 @@
* pata_pdc202xx_old.c - Promise PDC202xx PATA for new ATA layer
* (C) 2005 Red Hat Inc
* Alan Cox <alan@lxorguk.ukuu.org.uk>
- * (C) 2007 Bartlomiej Zolnierkiewicz
+ * (C) 2007,2009 Bartlomiej Zolnierkiewicz
*
* Based in part on linux/drivers/ide/pci/pdc202xx_old.c
*
@@ -158,7 +158,7 @@ static void pdc2026x_bmdma_start(struct
u32 len;
/* Check we keep host level locking here */
- if (adev->dma_mode >= XFER_UDMA_2)
+ if (adev->dma_mode > XFER_UDMA_2)
iowrite8(ioread8(clock) | sel66, clock);
else
iowrite8(ioread8(clock) & ~sel66, clock);
@@ -212,7 +212,7 @@ static void pdc2026x_bmdma_stop(struct a
iowrite8(ioread8(clock) & ~sel66, clock);
}
/* Flip back to 33Mhz for PIO */
- if (adev->dma_mode >= XFER_UDMA_2)
+ if (adev->dma_mode > XFER_UDMA_2)
iowrite8(ioread8(clock) & ~sel66, clock);
ata_bmdma_stop(qc);
pdc202xx_set_piomode(ap, adev);
^ permalink raw reply [flat|nested] 30+ messages in thread
* Re: Quick question about libata and hdparm
2009-04-20 18:40 ` Alan Cox
@ 2009-04-20 20:41 ` Rogério Brito
2009-04-20 21:16 ` Alan Cox
0 siblings, 1 reply; 30+ messages in thread
From: Rogério Brito @ 2009-04-20 20:41 UTC (permalink / raw)
To: Alan Cox; +Cc: Jeff Garzik, Michael Tokarev, Mark Lord, linux-kernel
Hi, Alan. Thanks for your mail.
On Apr 20 2009, Alan Cox wrote:
> > Can you comment on the dmesg log attached? I'd like to, at least,
> > understand what is happening, since I'm starting to consider using
> > libata with all my computers.
>
> Its logging a couple of transmission errors. The CRC is computed by
> hardware each end and compared (by hardware).
Right. I don't remember the kernel logging out errors when I was using a
custom kernel and pure Debian userland with the promise IDE controller
on this ASUS K7V motherboard (which has a VIA KT-133 chipset, not a
KT-133A).
I can try to test that again, but now I have installed Ubuntu for my
girlfriend. I have two spare IDE HDs here that I can use for testing
purposes and trash everything. If more testing is desired, please let me
know.
> > This computer, in particular, uses an IDE drive with a 40 ribbon
> > cable (and, thus, no UDMA/66). The cable is well put (checked two
> > times already) and I believe that everything is OK with this cable,
> > since I substituted it was already substituting one that gave me the
> > same results.
>
> It's tuned down to UDMA33 which looks correct.
Yes, that looks fine, as I only have the 40 ribbon cable.
> If I saw a lot of these I'd suspect something like a controller timing
> setup error, but you seem to just have occasional ones in the log which
> really does look like genuine CRC errors from electrical noise or
> similar.
Hummm, now that you mention it, I will see if the loudspeakers installed
may have any impact on it.
> You don't happen to have any amateur radio transmitters or telsa coils in
> the room with it ;) ?
No, I don't. :-) But I do have an open embedded computer (with its own
IDE HD) at less than 10cm of this desktop and said speakers. I will try
to find any other source of electromagnetic noise.
I can try many things here to try to fix that. I want libata to not have
that experimental warning for IDE devices.
Thanks, Rogério Brito.
--
Rogério Brito : rbrito@{mackenzie,ime.usp}.br : GPG key 1024D/7C2CAEB8
http://www.ime.usp.br/~rbrito : http://meusite.mackenzie.com.br/rbrito
Projects: algorithms.berlios.de : lame.sf.net : vrms.alioth.debian.org
^ permalink raw reply [flat|nested] 30+ messages in thread
* Re: Quick question about libata and hdparm
2009-04-20 20:31 ` Bartlomiej Zolnierkiewicz
@ 2009-04-20 20:45 ` Rogério Brito
2009-04-20 21:19 ` Alan Cox
2009-05-11 18:34 ` Jeff Garzik
2 siblings, 0 replies; 30+ messages in thread
From: Rogério Brito @ 2009-04-20 20:45 UTC (permalink / raw)
To: Bartlomiej Zolnierkiewicz
Cc: Jeff Garzik, Michael Tokarev, Mark Lord, linux-kernel, Alan Cox
On Apr 20 2009, Bartlomiej Zolnierkiewicz wrote:
> DISCLAIMER: I'm not handling this bugreport, this is best
> done by pata_pdc202xx_old Maintainer or libata Maintainer.
Right.
> Rogério, if the issue is reproducible you can give this patch a try...
100% reproducible at each and every boot.
> From: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
> Subject: [PATCH] pata_pdc202xx_old: fix UDMA33 handling
>
> The original driver doesn't use 66 MHz clock for UDMA33.
>
> [ The alternative solution would be to adjust UDMA33 timings
> for 66 MHz clock but I think that it is safer to stick with
> old & tested behavior for now. ]
Untarring the kernel right now. Will report back in a few minutes.
Thanks, Rogério Brito.
--
Rogério Brito : rbrito@{mackenzie,ime.usp}.br : GPG key 1024D/7C2CAEB8
http://www.ime.usp.br/~rbrito : http://meusite.mackenzie.com.br/rbrito
Projects: algorithms.berlios.de : lame.sf.net : vrms.alioth.debian.org
^ permalink raw reply [flat|nested] 30+ messages in thread
* Re: Quick question about libata and hdparm
2009-04-20 20:41 ` Rogério Brito
@ 2009-04-20 21:16 ` Alan Cox
0 siblings, 0 replies; 30+ messages in thread
From: Alan Cox @ 2009-04-20 21:16 UTC (permalink / raw)
To: Rogério Brito; +Cc: Jeff Garzik, Michael Tokarev, Mark Lord, linux-kernel
> Right. I don't remember the kernel logging out errors when I was using a
> custom kernel and pure Debian userland with the promise IDE controller
> on this ASUS K7V motherboard (which has a VIA KT-133 chipset, not a
> KT-133A).
That strongly suggests its a software bug, probably misprogramming the
timing in UDMA33 mode.
> Hummm, now that you mention it, I will see if the loudspeakers installed
> may have any impact on it.
Would take a bit more than that I think
Alan
^ permalink raw reply [flat|nested] 30+ messages in thread
* Re: Quick question about libata and hdparm
2009-04-20 20:31 ` Bartlomiej Zolnierkiewicz
2009-04-20 20:45 ` Rogério Brito
@ 2009-04-20 21:19 ` Alan Cox
2009-04-20 22:57 ` Rogério Brito
2009-04-21 5:32 ` Rogério Brito
2009-05-11 18:34 ` Jeff Garzik
2 siblings, 2 replies; 30+ messages in thread
From: Alan Cox @ 2009-04-20 21:19 UTC (permalink / raw)
To: Bartlomiej Zolnierkiewicz
Cc: Rogério Brito, Jeff Garzik, Michael Tokarev, Mark Lord,
linux-kernel
> DISCLAIMER: I'm not handling this bugreport, this is best
> done by pata_pdc202xx_old Maintainer or libata Maintainer.
Be that as it may thanks - thats well spotted and definitely a bug.
^ permalink raw reply [flat|nested] 30+ messages in thread
* Re: Quick question about libata and hdparm
2009-04-20 21:19 ` Alan Cox
@ 2009-04-20 22:57 ` Rogério Brito
2009-04-21 5:32 ` Rogério Brito
1 sibling, 0 replies; 30+ messages in thread
From: Rogério Brito @ 2009-04-20 22:57 UTC (permalink / raw)
To: Alan Cox
Cc: Bartlomiej Zolnierkiewicz, Jeff Garzik, Michael Tokarev,
Mark Lord, linux-kernel
On Apr 20 2009, Alan Cox wrote:
> > DISCLAIMER: I'm not handling this bugreport, this is best
> > done by pata_pdc202xx_old Maintainer or libata Maintainer.
>
> Be that as it may thanks - thats well spotted and definitely a bug.
Ok, I patched the 30-rc2 tarball. It is taking a looong time to compile
(even with very few components selected).
But I will report how things go "in a few moments" (for some values of
"few moments"). :-)
Thanks for all the attention. You guys rock.
--
Rogério Brito : rbrito@{mackenzie,ime.usp}.br : GPG key 1024D/7C2CAEB8
http://www.ime.usp.br/~rbrito : http://meusite.mackenzie.com.br/rbrito
Projects: algorithms.berlios.de : lame.sf.net : vrms.alioth.debian.org
^ permalink raw reply [flat|nested] 30+ messages in thread
* Re: Quick question about libata and hdparm
2009-04-20 21:19 ` Alan Cox
2009-04-20 22:57 ` Rogério Brito
@ 2009-04-21 5:32 ` Rogério Brito
2009-04-21 12:59 ` Bartlomiej Zolnierkiewicz
1 sibling, 1 reply; 30+ messages in thread
From: Rogério Brito @ 2009-04-21 5:32 UTC (permalink / raw)
To: Alan Cox
Cc: Bartlomiej Zolnierkiewicz, Jeff Garzik, Michael Tokarev,
Mark Lord, linux-kernel
[-- Attachment #1: Type: text/plain, Size: 1129 bytes --]
Hi Alan, Bart and Co.
On Apr 20 2009, Alan Cox wrote:
> > DISCLAIMER: I'm not handling this bugreport, this is best
> > done by pata_pdc202xx_old Maintainer or libata Maintainer.
>
> Be that as it may thanks - thats well spotted and definitely a bug.
Well, I just compiled the kernel both with libata and with the usual IDE
drivers.
Unfortunately, it seems that Bart's patch isn't enough. OTOH, when I use
the older IDE drive, it seems to work OK, as the attached dmesgs show
(BTW, you may notice that there's something fishy with X, but that's
another story).
Oh, just one observation: I tried to compile a 2.6.30-rc2 kernel, but I
only got errors during the compilation. This is why I used a 2.6.29
kernel.
Actually, I also had a compilation problem with the 2.6.30-rc2 kernel on
another box running x86_64. I can post them separately if needed.
Thanks for your valuable help so far, Rogério Brito.
--
Rogério Brito : rbrito@{mackenzie,ime.usp}.br : GPG key 1024D/7C2CAEB8
http://www.ime.usp.br/~rbrito : http://meusite.mackenzie.com.br/rbrito
Projects: algorithms.berlios.de : lame.sf.net : vrms.alioth.debian.org
[-- Attachment #2: dmesg-2.6.29-with-libata-patched.txt.bz2 --]
[-- Type: application/octet-stream, Size: 9881 bytes --]
[-- Attachment #3: dmesg-2.6.29-with-common-ide.txt.bz2 --]
[-- Type: application/octet-stream, Size: 9413 bytes --]
^ permalink raw reply [flat|nested] 30+ messages in thread
* Re: Quick question about libata and hdparm
2009-04-21 5:32 ` Rogério Brito
@ 2009-04-21 12:59 ` Bartlomiej Zolnierkiewicz
2009-04-23 5:56 ` Rogério Brito
0 siblings, 1 reply; 30+ messages in thread
From: Bartlomiej Zolnierkiewicz @ 2009-04-21 12:59 UTC (permalink / raw)
To: Rogério Brito
Cc: Alan Cox, Jeff Garzik, Michael Tokarev, Mark Lord, linux-kernel
On Tuesday 21 April 2009 07:32:58 Rogério Brito wrote:
> Hi Alan, Bart and Co.
>
> On Apr 20 2009, Alan Cox wrote:
> > > DISCLAIMER: I'm not handling this bugreport, this is best
> > > done by pata_pdc202xx_old Maintainer or libata Maintainer.
> >
> > Be that as it may thanks - thats well spotted and definitely a bug.
>
> Well, I just compiled the kernel both with libata and with the usual IDE
> drivers.
>
> Unfortunately, it seems that Bart's patch isn't enough. OTOH, when I use
> the older IDE drive, it seems to work OK, as the attached dmesgs show
> (BTW, you may notice that there's something fishy with X, but that's
> another story).
Incremental patch (a certain theory to verify).
---
drivers/ata/pata_pdc202xx_old.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
Index: b/drivers/ata/pata_pdc202xx_old.c
===================================================================
--- a/drivers/ata/pata_pdc202xx_old.c
+++ b/drivers/ata/pata_pdc202xx_old.c
@@ -163,9 +163,11 @@ static void pdc2026x_bmdma_start(struct
else
iowrite8(ioread8(clock) & ~sel66, clock);
+ /* FIXME: this thrashes internal UDMA timings previously set by
+ controller on SET FEATURES - XFER MODE command "snooping" */
/* The DMA clocks may have been trashed by a reset. FIXME: make conditional
and move to qc_issue ? */
- pdc202xx_set_dmamode(ap, qc->dev);
+ /* pdc202xx_set_dmamode(ap, qc->dev); */
/* Cases the state machine will not complete correctly without help */
if ((tf->flags & ATA_TFLAG_LBA48) || tf->protocol == ATAPI_PROT_DMA) {
^ permalink raw reply [flat|nested] 30+ messages in thread
* Re: Quick question about libata and hdparm
2009-04-21 12:59 ` Bartlomiej Zolnierkiewicz
@ 2009-04-23 5:56 ` Rogério Brito
2009-04-23 21:31 ` Bartlomiej Zolnierkiewicz
0 siblings, 1 reply; 30+ messages in thread
From: Rogério Brito @ 2009-04-23 5:56 UTC (permalink / raw)
To: Bartlomiej Zolnierkiewicz
Cc: Alan Cox, Jeff Garzik, Michael Tokarev, Mark Lord, linux-kernel
Hi, Bart, Alan.
On Apr 21 2009, Bartlomiej Zolnierkiewicz wrote:
> Incremental patch (a certain theory to verify).
(...)
> + /* FIXME: this thrashes internal UDMA timings previously set by
> + controller on SET FEATURES - XFER MODE command "snooping" */
> /* The DMA clocks may have been trashed by a reset. FIXME: make conditional
> and move to qc_issue ? */
> - pdc202xx_set_dmamode(ap, qc->dev);
> + /* pdc202xx_set_dmamode(ap, qc->dev); */
This didn't work. I still get those same messages. If you want, I can try
compiling the 2.6.30-rc3 kernel that was released now (as I mentioned
before, I was using 2.6.29).
I can test whatever you want me to.
Thanks,
--
Rogério Brito : rbrito@{mackenzie,ime.usp}.br : GPG key 1024D/7C2CAEB8
http://www.ime.usp.br/~rbrito : http://meusite.mackenzie.com.br/rbrito
Projects: algorithms.berlios.de : lame.sf.net : vrms.alioth.debian.org
^ permalink raw reply [flat|nested] 30+ messages in thread
* Re: Quick question about libata and hdparm
2009-04-23 5:56 ` Rogério Brito
@ 2009-04-23 21:31 ` Bartlomiej Zolnierkiewicz
2009-04-24 3:00 ` Rogério Brito
0 siblings, 1 reply; 30+ messages in thread
From: Bartlomiej Zolnierkiewicz @ 2009-04-23 21:31 UTC (permalink / raw)
To: Rogério Brito
Cc: Alan Cox, Jeff Garzik, Michael Tokarev, Mark Lord, linux-kernel
On Thursday 23 April 2009 07:56:19 Rogério Brito wrote:
> Hi, Bart, Alan.
>
> On Apr 21 2009, Bartlomiej Zolnierkiewicz wrote:
> > Incremental patch (a certain theory to verify).
> (...)
> > + /* FIXME: this thrashes internal UDMA timings previously set by
> > + controller on SET FEATURES - XFER MODE command "snooping" */
> > /* The DMA clocks may have been trashed by a reset. FIXME: make conditional
> > and move to qc_issue ? */
> > - pdc202xx_set_dmamode(ap, qc->dev);
> > + /* pdc202xx_set_dmamode(ap, qc->dev); */
>
> This didn't work. I still get those same messages. If you want, I can try
> compiling the 2.6.30-rc3 kernel that was released now (as I mentioned
> before, I was using 2.6.29).
I think that testing -rc3 won't hurt but don't get your hopes too high. ;)
> I can test whatever you want me to.
You can try booting with "libata.force=1.00:mwdma2" kernel paramater to
force use of "regular" MWDMA2 transfer mode instead of UDMA ones so we are
sure that the issue is specific to pata_pdc202xx_old + UDMA.
Other than that I'm out of ideas, though the hint that the original driver
works just fine should help driver's maintainer in fixing this regression.
Thanks,
Bart
^ permalink raw reply [flat|nested] 30+ messages in thread
* Re: Quick question about libata and hdparm
2009-04-23 21:31 ` Bartlomiej Zolnierkiewicz
@ 2009-04-24 3:00 ` Rogério Brito
2009-05-01 9:18 ` Rogério Brito
0 siblings, 1 reply; 30+ messages in thread
From: Rogério Brito @ 2009-04-24 3:00 UTC (permalink / raw)
To: Bartlomiej Zolnierkiewicz
Cc: Alan Cox, Jeff Garzik, Michael Tokarev, Mark Lord, linux-kernel
[-- Attachment #1: Type: text/plain, Size: 1035 bytes --]
Hi, Bart, Alan & Co.
On 4/23/09, Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> wrote:
> You can try booting with "libata.force=1.00:mwdma2" kernel paramater to
> force use of "regular" MWDMA2 transfer mode instead of UDMA ones so we are
> sure that the issue is specific to pata_pdc202xx_old + UDMA.
This *did* work. I see no other error messages, while using multword
dma. So I think that this serves for us to rule out some unknown
variables.
> Other than that I'm out of ideas, though the hint that the original driver
> works just fine should help driver's maintainer in fixing this regression.
Well, it worked now. I'm attaching what I see now.
Thanks, Rogério Brito.
P.S.: This is still with kernel 2.6.29, since compiling a new kernel
in this computer takes a lot of time.
--
Rogério Brito : rbrito@{mackenzie,ime.usp}.br : GPG key 1024D/7C2CAEB8
http://www.ime.usp.br/~rbrito : http://meusite.mackenzie.com.br/rbrito
Projects: algorithms.berlios.de : lame.sf.net : vrms.alioth.debian.org
[-- Attachment #2: dmesg-2.6.29-with-force-mwdma2.txt --]
[-- Type: text/plain, Size: 5942 bytes --]
[ 3.042985] scsi0 : pata_pdc202xx_old
[ 3.049769] scsi1 : pata_pdc202xx_old
[ 3.049917] ata1: PATA max UDMA/100 cmd 0x8400 ctl 0x8000 bmdma 0x7000 irq 10
[ 3.049924] ata2: PATA max UDMA/100 cmd 0x7800 ctl 0x7400 bmdma 0x7008 irq 10
[ 3.204710] ata1.00: ATA-4: QUANTUM FIREBALL CX13.0A, A3F.0B00, max UDMA/66
[ 3.204720] ata1.00: 25429824 sectors, multi 16: LBA
[ 3.204768] ata1.00: limited to UDMA/33 due to 40-wire cable
[ 3.204773] ata1.00: FORCE: xfer_mask set to mwdma2
[ 3.210517] ata1.00: configured for MWDMA2
[ 3.222238] scsi 0:0:0:0: Direct-Access ATA QUANTUM FIREBALL A3F. PQ: 0 ANSI: 5
[ 3.257094] usb 2-2: new full speed USB device using uhci_hcd and address 2
[ 3.393400] pata_via 0000:00:04.1: version 0.3.3
[ 3.393824] scsi2 : pata_via
[ 3.399945] scsi3 : pata_via
[ 3.401284] ata3: PATA max UDMA/66 cmd 0x1f0 ctl 0x3f6 bmdma 0xd800 irq 14
[ 3.401293] ata4: PATA max UDMA/66 cmd 0x170 ctl 0x376 bmdma 0xd808 irq 15
[ 3.571391] ata3.00: ATAPI: HL-DT-ST DVDRAM GSA-4160B, A306, max UDMA/66
[ 3.593370] ata3.00: configured for UDMA/66
[ 3.610758] scsi 2:0:0:0: CD-ROM HL-DT-ST DVDRAM GSA-4160B A306 PQ: 0 ANSI: 5
[ 3.765416] ata4.00: ATAPI: CREATIVE CD5230E, C1.01, max MWDMA2
[ 3.768371] ata4.00: configured for MWDMA2
[ 3.779676] scsi 3:0:0:0: CD-ROM CREATIVE CD5230E 1.01 PQ: 0 ANSI: 5
[ 4.426707] scsi 0:0:0:0: Attached scsi generic sg0 type 0
[ 4.426811] scsi 2:0:0:0: Attached scsi generic sg1 type 5
[ 4.426899] scsi 3:0:0:0: Attached scsi generic sg2 type 5
[ 4.459519] Driver 'sd' needs updating - please use bus_type methods
[ 4.459763] sd 0:0:0:0: [sda] 25429824 512-byte hardware sectors: (13.0 GB/12.1 GiB)
[ 4.459799] sd 0:0:0:0: [sda] Write Protect is off
[ 4.459805] sd 0:0:0:0: [sda] Mode Sense: 00 3a 00 00
[ 4.459846] sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[ 4.459982] sd 0:0:0:0: [sda] 25429824 512-byte hardware sectors: (13.0 GB/12.1 GiB)
[ 4.460049] sd 0:0:0:0: [sda] Write Protect is off
[ 4.460055] sd 0:0:0:0: [sda] Mode Sense: 00 3a 00 00
[ 4.460098] sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[ 4.460109] sda: sda1 sda2 < sda5 >
[ 4.505341] sd 0:0:0:0: [sda] Attached SCSI disk
[ 4.558488] Driver 'sr' needs updating - please use bus_type methods
[ 4.572956] sr0: scsi3-mmc drive: 40x/40x writer dvd-ram cd/rw xa/form2 cdda tray
[ 4.572970] Uniform CD-ROM driver Revision: 3.20
[ 4.573226] sr 2:0:0:0: Attached scsi CD-ROM sr0
[ 4.575548] sr1: scsi3-mmc drive: 0x/52x cd/rw xa/form2 cdda tray
[ 4.575751] sr 3:0:0:0: Attached scsi CD-ROM sr1
[ 4.660014] Marking TSC unstable due to TSC halts in idle
[ 5.031887] PM: Starting manual resume from disk
[ 5.031899] PM: Resume from partition 8:5
[ 5.031903] PM: Checking hibernation image.
[ 5.032434] PM: Resume from disk failed.
[ 5.111748] kjournald starting. Commit interval 5 seconds
[ 5.111788] EXT3-fs: mounted filesystem with ordered data mode.
[ 16.546749] udevd version 124 started
[ 17.043653] Linux agpgart interface v0.103
[ 17.090217] agpgart: Detected VIA Twister-K/KT133x/KM133 chipset
[ 17.093874] agpgart-via 0000:00:00.0: AGP aperture is 32M @ 0xe6000000
[ 17.117426] parport_pc: VIA 686A/8231 detected
[ 17.117439] parport_pc: probing current configuration
[ 17.117459] parport_pc: Current parallel port base: 0x378
[ 17.117541] parport0: PC-style at 0x378 (0x778), irq 7, using FIFO [PCSPP,TRISTATE,COMPAT,ECP]
[ 17.141798] ACPI: I/O resource vt596_smbus [0xe800-0xe807] conflicts with ACPI region SM00 [0xe800-0xe806]
[ 17.141808] ACPI: Device needs an ACPI driver
[ 17.163695] via686a 0000:00:04.4: Sensors disabled, enable with force_addr=0xe200
[ 17.201098] parport_pc: VIA parallel port: io=0x378, irq=7
[ 17.359855] Driver for 1-wire Dallas network protocol.
[ 17.400630] matrox_w1 0000:01:00.0: Matrox G400 GPIO transport layer for 1-wire.
[ 17.454571] Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
[ 17.454907] serial8250: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
[ 17.455589] serial8250: ttyS1 at I/O 0x2f8 (irq = 3) is a 16550A
[ 17.466315] 00:0a: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
[ 17.467572] 00:0b: ttyS1 at I/O 0x2f8 (irq = 3) is a 16550A
[ 17.884699] serial 0000:00:0c.0: PCI INT A -> Link[LNKA] -> GSI 11 (level, low) -> IRQ 11
[ 17.891435] 0000:00:0c.0: ttyS2 at I/O 0x9400 (irq = 11) is a 16550A
[ 18.223869] ACPI: PCI Interrupt Link [LNKC] enabled at IRQ 5
[ 18.223879] PCI: setting IRQ 5 as level-triggered
[ 18.223889] ENS1371 0000:00:0a.0: PCI INT A -> Link[LNKC] -> GSI 5 (level, low) -> IRQ 5
[ 18.269807] input: PC Speaker as /devices/platform/pcspkr/input/input1
[ 19.087211] input: ImPS/2 Generic Wheel Mouse as /devices/platform/i8042/serio1/input/input2
[ 19.857611] Control name 'Sigmatel Surround Phase Inversion Playback Switch' truncated to 'Sigmatel Surround Phase Inversion Playback '
[ 22.474492] lp0: using parport0 (interrupt-driven).
[ 22.751582] Adding 578300k swap on /dev/sda5. Priority:-1 extents:1 across:578300k
[ 23.349525] EXT3 FS on sda1, internal journal
[ 28.532730] warning: `avahi-daemon' uses 32-bit capabilities (legacy support in use)
[ 35.731706] eth0: link up, 100Mbps, full-duplex, lpa 0x45E1
[ 36.066003] NET: Registered protocol family 17
[ 41.746538] [drm] Initialized drm 1.1.0 20060810
[ 41.758178] matrox_w1 0000:01:00.0: PCI INT A -> Link[LNKA] -> GSI 11 (level, low) -> IRQ 11
[ 41.758595] [drm] Initialized mga 3.2.1 20051102 on minor 0
[ 41.760282] agpgart-via 0000:00:00.0: AGP 2.0 bridge
[ 41.760318] agpgart-via 0000:00:00.0: putting AGP V2 device into 4x mode
[ 41.760387] matrox_w1 0000:01:00.0: putting AGP V2 device into 4x mode
[ 41.764735] [drm] Initialized card for AGP DMA.
^ permalink raw reply [flat|nested] 30+ messages in thread
* Re: Quick question about libata and hdparm
2009-04-24 3:00 ` Rogério Brito
@ 2009-05-01 9:18 ` Rogério Brito
2009-05-01 10:31 ` Alan Cox
2009-05-01 11:20 ` Bartlomiej Zolnierkiewicz
0 siblings, 2 replies; 30+ messages in thread
From: Rogério Brito @ 2009-05-01 9:18 UTC (permalink / raw)
To: Bartlomiej Zolnierkiewicz
Cc: Alan Cox, Jeff Garzik, Michael Tokarev, Mark Lord, linux-kernel
Hi, Bart and other people.
On Apr 24 2009, Rogério Brito wrote:
> On 4/23/09, Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> wrote:
> > You can try booting with "libata.force=1.00:mwdma2" kernel paramater
> > to force use of "regular" MWDMA2 transfer mode instead of UDMA ones
> > so we are sure that the issue is specific to pata_pdc202xx_old +
> > UDMA.
>
> This *did* work. I see no other error messages, while using multword
> dma. So I think that this serves for us to rule out some unknown
> variables.
Is there anything that I can do right now? Just to remember, the
original IDE driver works without any problems, but I would like to
migrate everything to libata (and many distributions are already using
libata by default, even with IDE devices).
Thanks, Rogério Brito.
--
Rogério Brito : rbrito@{mackenzie,ime.usp}.br : GPG key 1024D/7C2CAEB8
http://www.ime.usp.br/~rbrito : http://meusite.mackenzie.com.br/rbrito
Projects: algorithms.berlios.de : lame.sf.net : vrms.alioth.debian.org
^ permalink raw reply [flat|nested] 30+ messages in thread
* Re: Quick question about libata and hdparm
2009-05-01 9:18 ` Rogério Brito
@ 2009-05-01 10:31 ` Alan Cox
2009-05-01 11:50 ` Rogério Brito
2009-05-01 11:20 ` Bartlomiej Zolnierkiewicz
1 sibling, 1 reply; 30+ messages in thread
From: Alan Cox @ 2009-05-01 10:31 UTC (permalink / raw)
To: Rogério Brito
Cc: Bartlomiej Zolnierkiewicz, Jeff Garzik, Michael Tokarev,
Mark Lord, linux-kernel
> Is there anything that I can do right now? Just to remember, the
> original IDE driver works without any problems, but I would like to
> migrate everything to libata (and many distributions are already using
> libata by default, even with IDE devices).
At the moment I've not found a way to duplicate your specific problem.
Bartlomiej has certainly found one bug that needs fixing. I've actually
been working remotely on another box that had problems with the driver but
those seem different to yours and once I've run a couple of final tests
I'll need to talk to Tejun about some EH tweaks. That bug however appears
specific to a faulty disk and while it looks similar I see no evidence of
you having any bad sectors.
^ permalink raw reply [flat|nested] 30+ messages in thread
* Re: Quick question about libata and hdparm
2009-05-01 9:18 ` Rogério Brito
2009-05-01 10:31 ` Alan Cox
@ 2009-05-01 11:20 ` Bartlomiej Zolnierkiewicz
1 sibling, 0 replies; 30+ messages in thread
From: Bartlomiej Zolnierkiewicz @ 2009-05-01 11:20 UTC (permalink / raw)
To: Rogério Brito
Cc: Alan Cox, Jeff Garzik, Michael Tokarev, Mark Lord, linux-kernel
On Friday 01 May 2009 11:18:04 Rogério Brito wrote:
> Hi, Bart and other people.
>
> On Apr 24 2009, Rogério Brito wrote:
> > On 4/23/09, Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> wrote:
> > > You can try booting with "libata.force=1.00:mwdma2" kernel paramater
> > > to force use of "regular" MWDMA2 transfer mode instead of UDMA ones
> > > so we are sure that the issue is specific to pata_pdc202xx_old +
> > > UDMA.
> >
> > This *did* work. I see no other error messages, while using multword
> > dma. So I think that this serves for us to rule out some unknown
> > variables.
>
> Is there anything that I can do right now? Just to remember, the
> original IDE driver works without any problems, but I would like to
> migrate everything to libata (and many distributions are already using
> libata by default, even with IDE devices).
DISCLAIMER was there for a reason...
Please ping pata_pdc202xx_old maintainer, libata maintainer or said
distributions about it, not me.
Don't get me wrong. I would like to help but such problems usually
take really long time to debug (you have to know both stacks, both
drivers and be able to track subtle differences between all of them)
and you have absolutely no guarantee that it will yield any results.
[ Tejun has spent few days on trying to fix pata_ali MWDMA regression
and he is one of people who really know what they are doing. ]
I don't have such time and my motivation to help is seriously effected
by behaviors like that seen in:
http://bugzilla.kernel.org/show_bug.cgi?id=12734
Thanks,
Bart
^ permalink raw reply [flat|nested] 30+ messages in thread
* Re: Quick question about libata and hdparm
2009-05-01 10:31 ` Alan Cox
@ 2009-05-01 11:50 ` Rogério Brito
2009-05-01 13:16 ` Alan Cox
2009-05-01 14:19 ` Rogério Brito
0 siblings, 2 replies; 30+ messages in thread
From: Rogério Brito @ 2009-05-01 11:50 UTC (permalink / raw)
To: Alan Cox
Cc: Bartlomiej Zolnierkiewicz, Jeff Garzik, Michael Tokarev,
Mark Lord, linux-kernel
Hi, Alan.
On May 01 2009, Alan Cox wrote:
> At the moment I've not found a way to duplicate your specific problem.
Would a remote access be useful in any way, Alan? I can give you access
here without any problems.
Thanks, Rogério Brito.
--
Rogério Brito : rbrito@{mackenzie,ime.usp}.br : GPG key 1024D/7C2CAEB8
http://www.ime.usp.br/~rbrito : http://meusite.mackenzie.com.br/rbrito
Projects: algorithms.berlios.de : lame.sf.net : vrms.alioth.debian.org
^ permalink raw reply [flat|nested] 30+ messages in thread
* Re: Quick question about libata and hdparm
2009-05-01 11:50 ` Rogério Brito
@ 2009-05-01 13:16 ` Alan Cox
2009-05-01 14:19 ` Rogério Brito
1 sibling, 0 replies; 30+ messages in thread
From: Alan Cox @ 2009-05-01 13:16 UTC (permalink / raw)
To: Rogério Brito
Cc: Bartlomiej Zolnierkiewicz, Jeff Garzik, Michael Tokarev,
Mark Lord, linux-kernel
On Fri, 1 May 2009 08:50:48 -0300
Rogério Brito <rbrito@ime.usp.br> wrote:
> Hi, Alan.
>
> On May 01 2009, Alan Cox wrote:
> > At the moment I've not found a way to duplicate your specific problem.
>
> Would a remote access be useful in any way, Alan? I can give you access
> here without any problems.
Possibly yes when I have a bit of time to look at it. Especially if the
box can be set up so its booting off another device to the one that is a
problem and has the build tree for the kernel it is using on it so it can
be rebuilt with small tweaks to test stuff.
Alan
^ permalink raw reply [flat|nested] 30+ messages in thread
* Re: Quick question about libata and hdparm
2009-05-01 11:50 ` Rogério Brito
2009-05-01 13:16 ` Alan Cox
@ 2009-05-01 14:19 ` Rogério Brito
1 sibling, 0 replies; 30+ messages in thread
From: Rogério Brito @ 2009-05-01 14:19 UTC (permalink / raw)
To: Alan Cox
Cc: Bartlomiej Zolnierkiewicz, Jeff Garzik, Michael Tokarev,
Mark Lord, linux-kernel
Hi again, Alan.
On May 01 2009, Rogério Brito wrote:
> Hi, Alan.
>
> On May 01 2009, Alan Cox wrote:
> > At the moment I've not found a way to duplicate your specific problem.
>
> Would a remote access be useful in any way, Alan? I can give you access
> here without any problems.
Unfortunately, my usual account seems to be dead at the moment (it is on
a server with a mounted NFS home, but I don't have administrative rights
there). So, I would kindly ask you to use this e-mail for the time
being.
And, again, if you would like to inspect the machine, I can create you
an account without any problems so that you can get the driver in
shape.
Thanks, Rogério Brito.
--
Rogério Brito : rbrito@{mackenzie,ime.usp}.br : GPG key 1024D/7C2CAEB8
http://www.ime.usp.br/~rbrito : http://meusite.mackenzie.com.br/rbrito
Projects: algorithms.berlios.de : lame.sf.net : vrms.alioth.debian.org
^ permalink raw reply [flat|nested] 30+ messages in thread
* Re: Quick question about libata and hdparm
2009-04-20 20:31 ` Bartlomiej Zolnierkiewicz
2009-04-20 20:45 ` Rogério Brito
2009-04-20 21:19 ` Alan Cox
@ 2009-05-11 18:34 ` Jeff Garzik
2 siblings, 0 replies; 30+ messages in thread
From: Jeff Garzik @ 2009-05-11 18:34 UTC (permalink / raw)
To: Bartlomiej Zolnierkiewicz
Cc: Rogério Brito, Michael Tokarev, Mark Lord, linux-kernel,
Alan Cox
Bartlomiej Zolnierkiewicz wrote:
> From: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
> Subject: [PATCH] pata_pdc202xx_old: fix UDMA33 handling
>
> The original driver doesn't use 66 MHz clock for UDMA33.
>
> [ The alternative solution would be to adjust UDMA33 timings
> for 66 MHz clock but I think that it is safer to stick with
> old & tested behavior for now. ]
>
> Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
> ---
> drivers/ata/pata_pdc202xx_old.c | 6 +++---
> 1 file changed, 3 insertions(+), 3 deletions(-)
>
> Index: b/drivers/ata/pata_pdc202xx_old.c
> ===================================================================
> --- a/drivers/ata/pata_pdc202xx_old.c
> +++ b/drivers/ata/pata_pdc202xx_old.c
> @@ -2,7 +2,7 @@
> * pata_pdc202xx_old.c - Promise PDC202xx PATA for new ATA layer
> * (C) 2005 Red Hat Inc
> * Alan Cox <alan@lxorguk.ukuu.org.uk>
> - * (C) 2007 Bartlomiej Zolnierkiewicz
> + * (C) 2007,2009 Bartlomiej Zolnierkiewicz
> *
> * Based in part on linux/drivers/ide/pci/pdc202xx_old.c
> *
> @@ -158,7 +158,7 @@ static void pdc2026x_bmdma_start(struct
> u32 len;
>
> /* Check we keep host level locking here */
> - if (adev->dma_mode >= XFER_UDMA_2)
> + if (adev->dma_mode > XFER_UDMA_2)
> iowrite8(ioread8(clock) | sel66, clock);
> else
> iowrite8(ioread8(clock) & ~sel66, clock);
> @@ -212,7 +212,7 @@ static void pdc2026x_bmdma_stop(struct a
> iowrite8(ioread8(clock) & ~sel66, clock);
> }
> /* Flip back to 33Mhz for PIO */
> - if (adev->dma_mode >= XFER_UDMA_2)
> + if (adev->dma_mode > XFER_UDMA_2)
> iowrite8(ioread8(clock) & ~sel66, clock);
applied
^ permalink raw reply [flat|nested] 30+ messages in thread
end of thread, other threads:[~2009-05-11 18:35 UTC | newest]
Thread overview: 30+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-04-19 0:22 Quick question about libata and hdparm Rogério Brito
2009-04-19 6:31 ` Robert Hancock
2009-04-19 12:33 ` Mark Lord
2009-04-19 12:44 ` Michael Tokarev
2009-04-19 12:57 ` Jeff Garzik
2009-04-19 13:06 ` Michael Tokarev
2009-04-19 20:11 ` Rogério Brito
2009-04-19 21:27 ` Jeff Garzik
2009-04-20 17:35 ` Rogério Brito
2009-04-20 18:40 ` Alan Cox
2009-04-20 20:41 ` Rogério Brito
2009-04-20 21:16 ` Alan Cox
2009-04-20 20:31 ` Bartlomiej Zolnierkiewicz
2009-04-20 20:45 ` Rogério Brito
2009-04-20 21:19 ` Alan Cox
2009-04-20 22:57 ` Rogério Brito
2009-04-21 5:32 ` Rogério Brito
2009-04-21 12:59 ` Bartlomiej Zolnierkiewicz
2009-04-23 5:56 ` Rogério Brito
2009-04-23 21:31 ` Bartlomiej Zolnierkiewicz
2009-04-24 3:00 ` Rogério Brito
2009-05-01 9:18 ` Rogério Brito
2009-05-01 10:31 ` Alan Cox
2009-05-01 11:50 ` Rogério Brito
2009-05-01 13:16 ` Alan Cox
2009-05-01 14:19 ` Rogério Brito
2009-05-01 11:20 ` Bartlomiej Zolnierkiewicz
2009-05-11 18:34 ` Jeff Garzik
2009-04-19 20:03 ` Rogério Brito
2009-04-19 23:41 ` Mark Lord
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox