Re: Problem setting dma using pata_it821x driver in vanilla 2.6.23.12 and gentoo-sources 2.6.23-r3

2008-01-13 Thread Marc Howard Zuckman

On Sun, 13 Jan 2008, Alan Cox wrote:




$ hdparm --Istdin  hdparm.out
ATA device, with non-removable media
Model Number:   Integrated Technology Express Inc
Serial Number: G!
Standards:
Likely used: 1
Configuration:
Logical max current
cylinders   0   0
heads   0   0
sectors/track   0   0
--
device size with M = 1024*1024:   0 MBytes
device size with M = 1000*1000:   0 MBytes
Capabilities:
IORDY not likely
Cannot perform double-word IO
R/W multiple sector transfer: not supported
DMA: not supported
PIO: pio0

The only thing which matches the number of sectors is at word 100 which
is in reserved area.  What's going on here?


Looks totally corrupt. Functioning ITE firmware RAID produces a fairly
poor response which is why we fix up the DMA flag but does report the
volume size correctly.

What firmware rev is this mess coming from ?


The firmware revision was 1.7.1.93
I have the capacity to boot with firmware version 1.41.  I did this with
the 2.6.20 kernel and hdparm --Istdout /dev/hde produced this:


/dev/hde:
       
  2008 1301 1501 1701 0101 0005
       
   496e 7465 6772 6174 6564
2054 6563 686e 6f6c 6f67 7920 4578 7072
6573 7320 496e 6320 2020 2020 2020 
       
     0fff  0007
       
       
       
003f       
    9eae 12a1  
       
       
       
 0001 0003 3133 2121 9111 0091 3266
0021 0021 0001 0505 0005 0500  0005
0005 0005 0040     
  0001     
       
       
       
       
       
       
       
       
       
       
       
       

Interpreted by hdparm --Istdin, the meaning is the same.

Marc H. Zuckman
-
To unsubscribe from this list: send the line unsubscribe linux-ide in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: Problem setting dma using pata_it821x driver in vanilla 2.6.23.12 and gentoo-sources 2.6.23-r3

2008-01-12 Thread Marc Howard Zuckman

On Sun, 13 Jan 2008, Tejun Heo wrote:



Does this change anything?  And, yeah, I really wanna see the hdparm
--Istdout too.


I applied the patch to libata-core.c.

A scsi device, /dev/sdb, was recognized, but partition /dev/sdb1 (where
all the data resides) is not seen.  Boot log messages and hdparm output
follow:

Linux version 2.6.23.12 ([EMAIL PROTECTED]) (gcc version 4.1.1 (Gentoo 
4.1.1-r3)) #5 SMP Sun Jan 13 01:07:07 EST 2008
BIOS-provided physical RAM map:
 BIOS-e820:  - 0009f800 (usable)
 BIOS-e820: 0009f800 - 000a (reserved)
 BIOS-e820: 000f - 0010 (reserved)
 BIOS-e820: 0010 - 5fff (usable)
 BIOS-e820: 5fff - 5fff3000 (ACPI NVS)
 BIOS-e820: 5fff3000 - 6000 (ACPI data)
 BIOS-e820: fec0 - 0001 (reserved)
639MB HIGHMEM available.
896MB LOWMEM available.
found SMP MP-table at 000f5320
Entering add_active_range(0, 0, 393200) 0 entries of 256 used
Zone PFN ranges:
  DMA 0 - 4096
  Normal   4096 -   229376
  HighMem229376 -   393200
Movable zone start PFN for each node
early_node_map[1] active PFN ranges
0:0 -   393200
On node 0 totalpages: 393200
  DMA zone: 32 pages used for memmap
  DMA zone: 0 pages reserved
  DMA zone: 4064 pages, LIFO batch:0
  Normal zone: 1760 pages used for memmap
  Normal zone: 223520 pages, LIFO batch:31
  HighMem zone: 1279 pages used for memmap
  HighMem zone: 162545 pages, LIFO batch:31
  Movable zone: 0 pages used for memmap
DMI 2.3 present.
Intel MultiProcessor Specification v1.4
Virtual Wire compatibility mode.
OEM ID: OEM0 Product ID: PROD APIC at: 0xFEE0
Processor #0 15:2 APIC version 17
I/O APIC #2 Version 17 at 0xFEC0.
Enabling APIC mode:  Flat.  Using 1 I/O APICs
Processors: 1
Allocating PCI resources starting at 7000 (gap: 6000:9ec0)
Built 1 zonelists in Zone order.  Total pages: 390129
Kernel command line: BOOT_IMAGE=p1ata2.6.23 ro root=307 ide0=ata66 ide2=ata66
ide_setup: ide0=ata66 -- OBSOLETE OPTION, WILL BE REMOVED SOON!
ide_setup: ide2=ata66 -- OBSOLETE OPTION, WILL BE REMOVED SOON!
mapped APIC to b000 (fee0)
mapped IOAPIC to a000 (fec0)
Enabling fast FPU save and restore... done.
Enabling unmasked SIMD FPU exception support... done.
Initializing CPU#0
PID hash table entries: 4096 (order: 12, 16384 bytes)
Detected 2813.563 MHz processor.
Console: colour VGA+ 80x25
console [tty0] enabled
Dentry cache hash table entries: 131072 (order: 7, 524288 bytes)
Inode-cache hash table entries: 65536 (order: 6, 262144 bytes)
Memory: 1552764k/1572800k available (3124k kernel code, 18908k reserved, 1707k 
data, 256k init, 655296k highmem)
virtual kernel memory layout:
fixmap  : 0xffe1a000 - 0xf000   (1940 kB)
pkmap   : 0xff80 - 0xffc0   (4096 kB)
vmalloc : 0xf880 - 0xff7fe000   ( 111 MB)
lowmem  : 0xc000 - 0xf800   ( 896 MB)
  .init : 0xc05bf000 - 0xc05ff000   ( 256 kB)
  .data : 0xc040d037 - 0xc05b7ebc   (1707 kB)
  .text : 0xc010 - 0xc040d037   (3124 kB)
Checking if this processor honours the WP bit even in supervisor mode... Ok.
Calibrating delay using timer specific routine.. 5631.42 BogoMIPS (lpj=11262850)
Mount-cache hash table entries: 512
CPU: After generic identify, caps: bfebfbff    4400 
  
CPU: Trace cache: 12K uops, L1 D cache: 8K
CPU: L2 cache: 512K
CPU: Physical Processor ID: 0
CPU: After all inits, caps: bfebfbff   b080 4400 
  
Intel machine check architecture supported.
Intel machine check reporting enabled on CPU#0.
CPU0: Intel P4/Xeon Extended MCE MSRs (12) available
CPU0: Thermal monitoring enabled
Compat vDSO mapped to e000.
Checking 'hlt' instruction... OK.
SMP alternatives: switching to UP code
Freeing SMP alternatives: 17k freed
CPU0: Intel(R) Pentium(R) 4 CPU 2.80GHz stepping 09
Total of 1 processors activated (5631.42 BogoMIPS).
ExtINT not setup in hardware but reported by MP table
ENABLING IO-APIC IRQs
..TIMER: vector=0x31 apic1=0 pin1=2 apic2=0 pin2=0
Brought up 1 CPUs
NET: Registered protocol family 16
PCI: PCI BIOS revision 2.10 entry at 0xfb640, last bus=3
PCI: Using configuration type 1
Setting up standard PCI resources
SCSI subsystem initialized
libata version 2.21 loaded.
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
PCI: Probing PCI hardware
PCI: Probing PCI hardware (bus 00)
PCI quirk: region 1000-107f claimed by ICH4 ACPI/GPIO/TCO
PCI quirk: region 1080-10bf claimed by ICH4 GPIO
PCI: Transparent bridge - :00:1e.0
PCI: Using IRQ router PIIX/ICH [8086/24d0] at :00:1f.0
PCI-APIC IRQ transform: :00:1d.0[A] - IRQ 16
PCI-APIC IRQ transform: :00:1d.1[B] - IRQ 19
PCI-APIC IRQ transform: :00:1d.2[C] - IRQ 18
PCI-APIC IRQ transform: 

Re: Problem setting dma using pata_it821x driver in vanilla 2.6.23.12 and gentoo-sources 2.6.23-r3

2008-01-10 Thread Marc Howard Zuckman

On Wed, 9 Jan 2008, Tejun Heo wrote:


hdparm -d1 isn't supported (yet).  pata_it821x will configure DMA
automatically.

OK.  So prior to rebooting 2.3.23.12 (boot log attached), I disabled
hdparm for my hde raid array during the boot process.  However, after
booting, hdparm still shows that dma is not set on the array and the
drive behaviour matches that.


Can you post full boot log?


With apologies if this was supposed to be an attachment:

Linux version 2.6.23.12 ([EMAIL PROTECTED]) (gcc version 4.1.1 (Gentoo 
4.1.1-r3)) #3 SMP Sat Jan 5 10:52:37 EST 2008
BIOS-provided physical RAM map:
 BIOS-e820:  - 0009f800 (usable)
 BIOS-e820: 0009f800 - 000a (reserved)
 BIOS-e820: 000f - 0010 (reserved)
 BIOS-e820: 0010 - 5fff (usable)
 BIOS-e820: 5fff - 5fff3000 (ACPI NVS)
 BIOS-e820: 5fff3000 - 6000 (ACPI data)
 BIOS-e820: fec0 - 0001 (reserved)
639MB HIGHMEM available.
896MB LOWMEM available.
found SMP MP-table at 000f5320
Entering add_active_range(0, 0, 393200) 0 entries of 256 used
Zone PFN ranges:
  DMA 0 - 4096
  Normal   4096 -   229376
  HighMem229376 -   393200
Movable zone start PFN for each node
early_node_map[1] active PFN ranges
0:0 -   393200
On node 0 totalpages: 393200
  DMA zone: 32 pages used for memmap
  DMA zone: 0 pages reserved
  DMA zone: 4064 pages, LIFO batch:0
  Normal zone: 1760 pages used for memmap
  Normal zone: 223520 pages, LIFO batch:31
  HighMem zone: 1279 pages used for memmap
  HighMem zone: 162545 pages, LIFO batch:31
  Movable zone: 0 pages used for memmap
DMI 2.3 present.
Intel MultiProcessor Specification v1.4
Virtual Wire compatibility mode.
OEM ID: OEM0 Product ID: PROD APIC at: 0xFEE0
Processor #0 15:2 APIC version 17
I/O APIC #2 Version 17 at 0xFEC0.
Enabling APIC mode:  Flat.  Using 1 I/O APICs
Processors: 1
Allocating PCI resources starting at 7000 (gap: 6000:9ec0)
Built 1 zonelists in Zone order.  Total pages: 390129
Kernel command line: BOOT_IMAGE=vanilla2.6.23 ro root=307 ide0=ata66 ide2=ata66
ide_setup: ide0=ata66 -- OBSOLETE OPTION, WILL BE REMOVED SOON!
ide_setup: ide2=ata66 -- OBSOLETE OPTION, WILL BE REMOVED SOON!
mapped APIC to b000 (fee0)
mapped IOAPIC to a000 (fec0)
Enabling fast FPU save and restore... done.
Enabling unmasked SIMD FPU exception support... done.
Initializing CPU#0
PID hash table entries: 4096 (order: 12, 16384 bytes)
Detected 2813.584 MHz processor.
Console: colour VGA+ 80x25
console [tty0] enabled
Dentry cache hash table entries: 131072 (order: 7, 524288 bytes)
Inode-cache hash table entries: 65536 (order: 6, 262144 bytes)
Memory: 1552844k/1572800k available (3074k kernel code, 18828k reserved, 1677k 
data, 256k init, 655296k highmem)
virtual kernel memory layout:
fixmap  : 0xffe1a000 - 0xf000   (1940 kB)
pkmap   : 0xff80 - 0xffc0   (4096 kB)
vmalloc : 0xf880 - 0xff7fe000   ( 111 MB)
lowmem  : 0xc000 - 0xf800   ( 896 MB)
  .init : 0xc05ab000 - 0xc05eb000   ( 256 kB)
  .data : 0xc040099f - 0xc05a3ebc   (1677 kB)
  .text : 0xc010 - 0xc040099f   (3074 kB)
Checking if this processor honours the WP bit even in supervisor mode... Ok.
Calibrating delay using timer specific routine.. 5631.53 BogoMIPS (lpj=11263073)
Mount-cache hash table entries: 512
CPU: After generic identify, caps: bfebfbff    4400 
  
CPU: Trace cache: 12K uops, L1 D cache: 8K
CPU: L2 cache: 512K
CPU: Physical Processor ID: 0
CPU: After all inits, caps: bfebfbff   b080 4400 
  
Intel machine check architecture supported.
Intel machine check reporting enabled on CPU#0.
CPU0: Intel P4/Xeon Extended MCE MSRs (12) available
CPU0: Thermal monitoring enabled
Compat vDSO mapped to e000.
Checking 'hlt' instruction... OK.
SMP alternatives: switching to UP code
Freeing SMP alternatives: 17k freed
CPU0: Intel(R) Pentium(R) 4 CPU 2.80GHz stepping 09
Total of 1 processors activated (5631.53 BogoMIPS).
ExtINT not setup in hardware but reported by MP table
ENABLING IO-APIC IRQs
..TIMER: vector=0x31 apic1=0 pin1=2 apic2=0 pin2=0
Brought up 1 CPUs
NET: Registered protocol family 16
PCI: PCI BIOS revision 2.10 entry at 0xfb640, last bus=3
PCI: Using configuration type 1
Setting up standard PCI resources
SCSI subsystem initialized
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
PCI: Probing PCI hardware
PCI: Probing PCI hardware (bus 00)
PCI quirk: region 1000-107f claimed by ICH4 ACPI/GPIO/TCO
PCI quirk: region 1080-10bf claimed by ICH4 GPIO
PCI: Transparent bridge - :00:1e.0
PCI: Using IRQ router PIIX/ICH [8086/24d0] at :00:1f.0
PCI-APIC IRQ transform: :00:1d.0[A] - IRQ 16
PCI-APIC IRQ transform: