public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* 2.4.20-rc1-ac4 HPT374 doesn't find connected ide drives
@ 2002-11-19  8:52 Karsten Desler
  0 siblings, 0 replies; 11+ messages in thread
From: Karsten Desler @ 2002-11-19  8:52 UTC (permalink / raw)
  To: Alan Cox, Andre Hedrick; +Cc: linux-kernel, linux-smp

[CC to linux-smp because of the 'unexpected IO-APIC']

Hi,

Linux detects the two HPT374 controllers, but not the attached drives.

The Mainboard is an EPOX EP-8K5A3+ with 2 VIA vt8235 ide controllers
and 4 Highpoint 374.

I increased the channels: limit for the HPT374 in drivers/ide/pci/hpt366.h
to 4.
--- drivers/ide/pci/hpt366.h.old        2002-11-19 17:41:33.000000000 +0100
+++ drivers/ide/pci/hpt366.h    2002-11-19 17:41:45.000000000 +0100
@@ -508,5 +508,5 @@
		init_hwif:	init_hwif_hpt366,
		init_dma:	init_dma_hpt366,
-               channels:	2,      /* 4 */
+               channels:	4,      /* 2 */
		autodma:	AUTODMA,
		enablebits:	{{0x00,0x00,0x00}, {0x00,0x00,0x00}},

So how do I get Linux to detect the ide2,3,4,5 "devices" and the
attached drives?

dmesg without APIC:
---
Linux version 2.4.20-rc1-ac4 (root@pikelot) (gcc version 2.95.4 20011002 (Debian prerelease)) #2 Tue Nov 19 16:54:44 CET 2002
BIOS-provided physical RAM map:
 BIOS-e820: 0000000000000000 - 000000000009e800 (usable)
 BIOS-e820: 000000000009e800 - 00000000000a0000 (reserved)
 BIOS-e820: 00000000000f0000 - 0000000000100000 (reserved)
 BIOS-e820: 0000000000100000 - 000000001fff0000 (usable)
 BIOS-e820: 000000001fff0000 - 000000001fff3000 (ACPI NVS)
 BIOS-e820: 000000001fff3000 - 0000000020000000 (ACPI data)
 BIOS-e820: 00000000fec00000 - 00000000fec01000 (reserved)
 BIOS-e820: 00000000fee00000 - 00000000fee01000 (reserved)
 BIOS-e820: 00000000ffff0000 - 0000000100000000 (reserved)
511MB LOWMEM available.
On node 0 totalpages: 131056
zone(0): 4096 pages.
zone(1): 126960 pages.
zone(2): 0 pages.
Kernel command line: auto BOOT_IMAGE=Linux ro root=303 pci=biosirq
Initializing CPU#0
Detected 1737.305 MHz processor.
Console: colour VGA+ 80x25
Calibrating delay loop... 3460.30 BogoMIPS
Memory: 513376k/524224k available (917k kernel code, 8280k reserved, 249k data, 220k init, 0k highmem)
Dentry cache hash table entries: 65536 (order: 7, 524288 bytes)
Inode cache hash table entries: 32768 (order: 6, 262144 bytes)
Mount cache hash table entries: 512 (order: 0, 4096 bytes)
ramfs: mounted with options: <defaults>
ramfs: max_pages=64444 max_file_pages=0 max_inodes=0 max_dentries=64444
Buffer cache hash table entries: 32768 (order: 5, 131072 bytes)
Page-cache hash table entries: 131072 (order: 7, 524288 bytes)
CPU: L1 I Cache: 64K (64 bytes/line), D cache 64K (64 bytes/line)
CPU: L2 Cache: 256K (64 bytes/line)
Intel machine check architecture supported.
Intel machine check reporting enabled on CPU#0.
CPU:     After generic, caps: 0383fbff c1c3fbff 00000000 00000000
CPU:             Common caps: 0383fbff c1c3fbff 00000000 00000000
CPU: AMD Athlon(tm) XP 2100+ stepping 02
Enabling fast FPU save and restore... done.
Enabling unmasked SIMD FPU exception support... done.
Checking 'hlt' instruction... OK.
POSIX conformance testing by UNIFIX
mtrr: v1.40 (20010327) Richard Gooch (rgooch@atnf.csiro.au)
mtrr: detected mtrr type: Intel
PCI: PCI BIOS revision 2.10 entry at 0xfb3d0, last bus=1
PCI: Using configuration type 1
PCI: Probing PCI hardware
Scanning bus 00
Found 00:00 [1106/3099] 000600 00
Found 00:08 [1106/b099] 000604 01
Found 00:40 [5333/8811] 000300 00
Found 00:60 [10ec/8139] 000200 00
Found 00:70 [1103/0008] 000104 00
Found 00:71 [1103/0008] 000104 00
Found 00:88 [1106/3177] 000601 00
Found 00:89 [1106/0571] 000101 00
Fixups for bus 00
Scanning behind PCI bridge 00:01.0, config 010100, pass 0
Scanning bus 01
Fixups for bus 01
Bus scan for 01 returning with max=01
Scanning behind PCI bridge 00:01.0, config 010100, pass 1
Bus scan for 00 returning with max=01
PCI: Using IRQ router VIA [1106/3177] at 00:11.0
PCI: Found IRQ 11 for device 00:08.0
Linux NET4.0 for Linux 2.4
Based upon Swansea University Computer Society NET3.039
Initializing RT netlink socket
Starting kswapd
Journalled Block Device driver loaded
pty: 256 Unix98 ptys configured
Uniform Multi-Platform E-IDE driver Revision: 7.00alpha2
ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx
HPT374: IDE controller at PCI slot 00:0e.0
PCI: Found IRQ 10 for device 00:0e.0
PCI: Sharing IRQ 10 with 00:0e.1
HPT374: chipset revision 7
HPT374: not 100% native mode: will probe irqs later
PCI: Found IRQ 10 for device 00:0e.1
PCI: Sharing IRQ 10 with 00:0e.0
VP_IDE: IDE controller at PCI slot 00:11.1
PCI: No IRQ known for interrupt pin A of device 00:11.1.
VP_IDE: chipset revision 6
VP_IDE: not 100% native mode: will probe irqs later
ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx
VP_IDE: VIA vt8235 (rev 00) IDE UDMA133 controller on pci00:11.1
    ide0: BM-DMA at 0xc800-0xc807, BIOS settings: hda:DMA, hdb:pio
    ide1: BM-DMA at 0xc808-0xc80f, BIOS settings: hdc:DMA, hdd:DMA
hda: IBM-DPTA-372050, ATA DISK drive
hda: DMA disabled
blk: queue c02823a0, I/O limit 4095Mb (mask 0xffffffff)
hdc: MAXTOR 4K080H4, ATA DISK drive
hdd: WDC WD800AB-00CBA0, ATA DISK drive
hdc: DMA disabled
blk: queue c028280c, I/O limit 4095Mb (mask 0xffffffff)
hdd: DMA disabled
blk: queue c0282958, I/O limit 4095Mb (mask 0xffffffff)
ide0 at 0x1f0-0x1f7,0x3f6 on irq 14
ide1 at 0x170-0x177,0x376 on irq 15
hda: host protected area => 1
hda: 40088160 sectors (20525 MB) w/1961KiB Cache, CHS=2495/255/63, UDMA(33)
hdc: host protected area => 1
hdc: 156301488 sectors (80026 MB) w/2000KiB Cache, CHS=155061/16/63, UDMA(100)
hdd: host protected area => 1
hdd: 156301488 sectors (80026 MB) w/2048KiB Cache, CHS=155061/16/63, UDMA(100)
[..]
---

dmesg with APIC:
Linux version 2.4.20-rc1-ac4 (root@pikelot) (gcc version 2.95.4 20011002 (Debian prerelease)) #3 Tue Nov 19 17:02:24 CET 2002
BIOS-provided physical RAM map:
 BIOS-e820: 0000000000000000 - 000000000009e800 (usable)
 BIOS-e820: 000000000009e800 - 00000000000a0000 (reserved)
 BIOS-e820: 00000000000f0000 - 0000000000100000 (reserved)
 BIOS-e820: 0000000000100000 - 000000001fff0000 (usable)
 BIOS-e820: 000000001fff0000 - 000000001fff3000 (ACPI NVS)
 BIOS-e820: 000000001fff3000 - 0000000020000000 (ACPI data)
 BIOS-e820: 00000000fec00000 - 00000000fec01000 (reserved)
 BIOS-e820: 00000000fee00000 - 00000000fee01000 (reserved)
 BIOS-e820: 00000000ffff0000 - 0000000100000000 (reserved)
511MB LOWMEM available.
found SMP MP-table at 000f5d50
hm, page 000f5000 reserved twice.
hm, page 000f6000 reserved twice.
hm, page 000f1000 reserved twice.
hm, page 000f2000 reserved twice.
On node 0 totalpages: 131056
zone(0): 4096 pages.
zone(1): 126960 pages.
zone(2): 0 pages.
Intel MultiProcessor Specification v1.4
    Virtual Wire compatibility mode.
OEM ID: OEM00000 Product ID: PROD00000000 APIC at: 0xFEE00000
Processor #0 Pentium(tm) Pro APIC version 17
I/O APIC #2 Version 17 at 0xFEC00000.
Enabling APIC mode:  Flat.  Using 1 I/O APICs
Processors: 1
Kernel command line: auto BOOT_IMAGE=Linux ro root=303 pci=biosirq
Initializing CPU#0
Detected 1737.305 MHz processor.
Console: colour VGA+ 80x25
Calibrating delay loop... 3460.30 BogoMIPS
Memory: 513312k/524224k available (923k kernel code, 8344k reserved,
261k data, 236k init, 0k highmem)
Dentry cache hash table entries: 65536 (order: 7, 524288 bytes)
Inode cache hash table entries: 32768 (order: 6, 262144 bytes)
Mount cache hash table entries: 512 (order: 0, 4096 bytes)
ramfs: mounted with options: <defaults>
ramfs: max_pages=64436 max_file_pages=0 max_inodes=0 max_dentries=64436
Buffer cache hash table entries: 32768 (order: 5, 131072 bytes)
Page-cache hash table entries: 131072 (order: 7, 524288 bytes)
CPU: L1 I Cache: 64K (64 bytes/line), D cache 64K (64 bytes/line)
CPU: L2 Cache: 256K (64 bytes/line)
Intel machine check architecture supported.
Intel machine check reporting enabled on CPU#0.
CPU:     After generic, caps: 0383fbff c1c3fbff 00000000 00000000
CPU:             Common caps: 0383fbff c1c3fbff 00000000 00000000
CPU: AMD Athlon(tm) XP 2100+ stepping 02
Enabling fast FPU save and restore... done.
Enabling unmasked SIMD FPU exception support... done.
Checking 'hlt' instruction... OK.
POSIX conformance testing by UNIFIX
enabled ExtINT on CPU#0
ESR value before enabling vector: 00000000
ESR value after enabling vector: 00000000
ENABLING IO-APIC IRQs
Setting 2 in the phys_id_present_map
...changing IO-APIC physical APIC ID to 2 ... ok.
init IO_APIC IRQs
 IO-APIC (apicid-pin) 2-0, 2-10, 2-11, 2-12, 2-19, 2-20, 2-21, 2-22, 2-23 not connected.
..TIMER: vector=0x31 pin1=2 pin2=0
number of MP IRQ sources: 18.
number of IO-APIC #2 registers: 24.
testing the IO APIC.......................

IO APIC #2......
.... register #00: 02000000
.......    : physical APIC id: 02
.... register #01: 00178003
.......     : max redirection entries: 0017
.......     : PRQ implemented: 1
.......     : IO APIC version: 0003
An unexpected IO-APIC was found. If this kernel release is less than
three months old please report this to linux-smp@vger.kernel.org
.... IRQ redirection table:
 NR Log Phy Mask Trig IRR Pol Stat Dest Deli Vect:
 00 000 00  1    0    0   0   0    0    0    00
 01 001 01  0    0    0   0   0    1    1    39
 02 001 01  0    0    0   0   0    1    1    31
 03 001 01  0    0    0   0   0    1    1    41
 04 001 01  0    0    0   0   0    1    1    49
 05 001 01  0    0    0   0   0    1    1    51
 06 001 01  0    0    0   0   0    1    1    59
 07 001 01  0    0    0   0   0    1    1    61
 08 001 01  0    0    0   0   0    1    1    69
 09 001 01  0    0    0   0   0    1    1    71
 0a 000 00  1    0    0   0   0    0    0    00
 0b 000 00  1    0    0   0   0    0    0    00
 0c 000 00  1    0    0   0   0    0    0    00
 0d 001 01  0    0    0   0   0    1    1    79
 0e 001 01  0    0    0   0   0    1    1    81
 0f 001 01  0    0    0   0   0    1    1    89
 10 001 01  1    1    0   1   0    1    1    91
 11 001 01  1    1    0   1   0    1    1    99
 12 001 01  1    1    0   1   0    1    1    A1
 13 000 00  1    0    0   0   0    0    0    00
 14 000 00  1    0    0   0   0    0    0    00
 15 000 00  1    0    0   0   0    0    0    00
 16 000 00  1    0    0   0   0    0    0    00
 17 000 00  1    0    0   0   0    0    0    00
IRQ to pin mappings:
IRQ0 -> 0:2
IRQ1 -> 0:1
IRQ3 -> 0:3
IRQ4 -> 0:4
IRQ5 -> 0:5
IRQ6 -> 0:6
IRQ7 -> 0:7
IRQ8 -> 0:8
IRQ9 -> 0:9
IRQ13 -> 0:13
IRQ14 -> 0:14
IRQ15 -> 0:15
IRQ16 -> 0:16
IRQ17 -> 0:17
IRQ18 -> 0:18
.................................... done.
Using local APIC timer interrupts.
calibrating APIC timer ...
..... CPU clock speed is 1737.3335 MHz.
..... host bus clock speed is 267.2820 MHz.
cpu: 0, clocks: 2672820, slice: 1336410
CPU0<T0:2672816,T1:1336400,D:6,S:1336410,C:2672820>
mtrr: v1.40 (20010327) Richard Gooch (rgooch@atnf.csiro.au)
mtrr: detected mtrr type: Intel
PCI: PCI BIOS revision 2.10 entry at 0xfb3d0, last bus=1
PCI: Using configuration type 1
PCI: Probing PCI hardware
Scanning bus 00
Found 00:00 [1106/3099] 000600 00
Found 00:08 [1106/b099] 000604 01
Found 00:40 [5333/8811] 000300 00
Found 00:60 [10ec/8139] 000200 00
Found 00:70 [1103/0008] 000104 00
Found 00:71 [1103/0008] 000104 00
Found 00:88 [1106/3177] 000601 00
Found 00:89 [1106/0571] 000101 00
Fixups for bus 00
Scanning behind PCI bridge 00:01.0, config 010100, pass 0
Scanning bus 01
Fixups for bus 01
Bus scan for 01 returning with max=01
Scanning behind PCI bridge 00:01.0, config 010100, pass 1
Bus scan for 00 returning with max=01
PCI: Using IRQ router VIA [1106/3177] at 00:11.0
PCI->APIC IRQ transform: (B0,I12,P0) -> 18
PCI->APIC IRQ transform: (B0,I14,P0) -> 17
PCI->APIC IRQ transform: (B0,I14,P0) -> 17
PCI->APIC IRQ transform: (B0,I17,P0) -> 16
Linux NET4.0 for Linux 2.4
Based upon Swansea University Computer Society NET3.039
Initializing RT netlink socket
Starting kswapd
Journalled Block Device driver loaded
pty: 256 Unix98 ptys configured
Uniform Multi-Platform E-IDE driver Revision: 7.00alpha2
ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx
HPT374: IDE controller at PCI slot 00:0e.0
HPT374: chipset revision 7
HPT374: not 100% native mode: will probe irqs later
VP_IDE: IDE controller at PCI slot 00:11.1
VP_IDE: chipset revision 6
VP_IDE: not 100% native mode: will probe irqs later
ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx
VP_IDE: VIA vt8235 (rev 00) IDE UDMA133 controller on pci00:11.1
    ide0: BM-DMA at 0xc800-0xc807, BIOS settings: hda:DMA, hdb:pio
    ide1: BM-DMA at 0xc808-0xc80f, BIOS settings: hdc:DMA, hdd:DMA
[..]

lspci -vvv (with APIC):
---
00:00.0 Host bridge: VIA Technologies, Inc. VT8367 [KT266]
        Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B-
	Status: Cap+ 66Mhz+ UDF- FastB2B- ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort+ >SERR- <PERR-
	Latency: 0
	Region 0: Memory at e5000000 (32-bit, prefetchable) [size=4M]
	Capabilities: [a0] AGP version 2.0
		Status: RQ=31 SBA+ 64bit- FW- Rate=x1,x2
		Command: RQ=0 SBA- AGP- 64bit- FW- Rate=<none>
	Capabilities: [c0] Power Management version 2
	        Flags: PMEClk- DSI- D1- D2- AuxCurrent=0mA PME(D0-,D1-,D2-,D3hot-,D3cold-)
		Status: D0 PME-Enable- DSel=0 DScale=0 PME-

00:01.0 PCI bridge: VIA Technologies, Inc. VT8367 [KT266 AGP] (prog-if 00 [Normal decode])
	Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR+ FastB2B-
	Status: Cap+ 66Mhz+ UDF- FastB2B- ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort+ >SERR- <PERR-
	Latency: 0
	Bus: primary=00, secondary=01, subordinate=01, sec-latency=0
	I/O behind bridge: 0000f000-00000fff
	Memory behind bridge: fff00000-000fffff
	Prefetchable memory behind bridge: fff00000-000fffff
	BridgeCtl: Parity- SERR- NoISA+ VGA- MAbort- >Reset- FastB2B-
	Capabilities: [80] Power Management version 2
		Flags: PMEClk- DSI- D1+ D2- AuxCurrent=0mA PME(D0-,D1-,D2-,D3hot-,D3cold-)
		Status: D0 PME-Enable- DSel=0 DScale=0 PME-

00:08.0 VGA compatible controller: S3 Inc. 86c764/765 [Trio32/64/64V+] (rev 54) (prog-if 00 [VGA])
	Control: I/O+ Mem+ BusMaster- SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B-
	Status: Cap- 66Mhz- UDF- FastB2B- ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR-
	Interrupt: pin A routed to IRQ 0
	Region 0: Memory at e0000000 (32-bit, non-prefetchable) [size=64M]
	Expansion ROM at <unassigned> [disabled] [size=64K]
	
00:0c.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL-8139/8139C (rev 10)
	Subsystem: Realtek Semiconductor Co., Ltd. RT8139
	Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B-
	Status: Cap+ 66Mhz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR-
	Latency: 32 (8000ns min, 16000ns max)
	Interrupt: pin A routed to IRQ 18
	Region 0: I/O ports at 9000 [size=256]
	Region 1: Memory at e5400000 (32-bit, non-prefetchable) [size=256]
	Expansion ROM at <unassigned> [disabled] [size=64K]
	Capabilities: [50] Power Management version 2
		Flags: PMEClk- DSI- D1+ D2+ AuxCurrent=375mA PME(D0-,D1+,D2+,D3hot+,D3cold+)
		Status: D0 PME-Enable- DSel=0 DScale=0 PME-

00:0e.0 RAID bus controller: Triones Technologies, Inc.: Unknown device 0008 (rev 07)
	Subsystem: Triones Technologies, Inc.: Unknown device 0001
	Control: I/O+ Mem- BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B-
	Status: Cap+ 66Mhz+ UDF- FastB2B- ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR-
	Latency: 120 (2000ns min, 2000ns max)
	Interrupt: pin A routed to IRQ 17
	Region 0: I/O ports at 9400 [size=8]
	Region 1: I/O ports at 9800 [size=4]
	Region 2: I/O ports at 9c00 [size=8]
	Region 3: I/O ports at a000 [size=4]
	Region 4: I/O ports at a400 [size=256]
	Expansion ROM at <unassigned> [disabled] [size=128K]
	Capabilities: [60] Power Management version 2
		Flags: PMEClk- DSI+ D1- D2- AuxCurrent=0mA PME(D0-,D1-,D2-,D3hot-,D3cold-)
		Status: D0 PME-Enable- DSel=0 DScale=0 PME-

00:0e.1 RAID bus controller: Triones Technologies, Inc.: Unknown device 0008 (rev 07)
	Subsystem: Triones Technologies, Inc.: Unknown device 0001
	Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B-
	Status: Cap+ 66Mhz+ UDF- FastB2B- ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR-
	Latency: 120 (2000ns min, 2000ns max)
	Interrupt: pin A routed to IRQ 17
	Region 0: I/O ports at a800 [size=8]
	Region 1: I/O ports at ac00 [size=4]
	Region 2: I/O ports at b000 [size=8]
	Region 3: I/O ports at b400 [size=4]
	Region 4: I/O ports at b800 [size=256]
	Capabilities: [60] Power Management version 2
		Flags: PMEClk- DSI+ D1- D2- AuxCurrent=0mA PME(D0-,D1-,D2-,D3hot-,D3cold-)
		Status: D0 PME-Enable- DSel=0 DScale=0 PME-

00:11.0 ISA bridge: VIA Technologies, Inc. VT8233A ISA Bridge
	Subsystem: VIA Technologies, Inc. VT8233A ISA Bridge
	Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping+ SERR- FastB2B-
	Status: Cap+ 66Mhz- UDF- FastB2B- ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR-
	Latency: 0
	Capabilities: [c0] Power Management version 2 
		Flags: PMEClk- DSI- D1- D2- AuxCurrent=0mA PME(D0-,D1-,D2-,D3hot-,D3cold-)
		Status: D0 PME-Enable- DSel=0 DScale=0 PME-

00:11.1 IDE interface: VIA Technologies, Inc. Bus Master IDE (rev 06) (prog-if 8a [Master SecP PriP])
	Subsystem: VIA Technologies, Inc. Bus Master IDE
	Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B-
	Status: Cap+ 66Mhz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR-
	Latency: 32
	Interrupt: pin A routed to IRQ 16
	Region 4: I/O ports at c800 [size=16]
	Capabilities: [c0] Power Management version 2
		Flags: PMEClk- DSI- D1- D2- AuxCurrent=0mA PME(D0-,D1-,D2-,D3hot-,D3cold-)
		Status: D0 PME-Enable- DSel=0 DScale=0 PME-

Thanks in advance
 Karsten

^ permalink raw reply	[flat|nested] 11+ messages in thread

* 2.4.20-rc1-ac4 HPT374 doesn't find connected ide drives
@ 2002-11-19  9:59 Christian Guggenberger
  2002-11-19 10:23 ` Karsten 'soohrt' Desler
  0 siblings, 1 reply; 11+ messages in thread
From: Christian Guggenberger @ 2002-11-19  9:59 UTC (permalink / raw)
  To: soohrt; +Cc: linux-kernel

> Linux detects the two HPT374 controllers, but not the attached drives.
> 
> The Mainboard is an EPOX EP-8K5A3+ with 2 VIA vt8235 ide controllers
> and 4 Highpoint 374.
> 
> I increased the channels: limit for the HPT374 in drivers/ide/pci/hpt366.h
> to 4.
> --- drivers/ide/pci/hpt366.h.old        2002-11-19 17:41:33.000000000 +0100
> +++ drivers/ide/pci/hpt366.h    2002-11-19 17:41:45.000000000 +0100
> @@ -508,5 +508,5 @@
> 		init_hwif:	init_hwif_hpt366,
> 		init_dma:	init_dma_hpt366,
> -                channels:	2,      /* 4 */
> +                channels:	4,      /* 2 */
> 		autodma:	AUTODMA,
> 		enablebits:	{{0x00,0x00,0x00}, {0x00,0x00,0x00}},
> 

I have the same board, and the controller works fine for me in 2.5.4*, as 
2.4-ac doesn't contain xfs suport. I only have one drive attached, but as I 
remember I first had to configure the (raid) controller' BIOS (Ctrl-H at boot 
time) (even for just a bunch of disks) before using the drives. But I'm not 
100%ly sure.

I don't think there's any need for your patch, cause the hpt374 only has two 
channels, but there are two controllers on that board.

ANother QUestion: Did you ever get the onboard via-rhine NIC working with 
IO-APIC (both BIOS and kernel) enabled?

Christian


^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: 2.4.20-rc1-ac4 HPT374 doesn't find connected ide drives
  2002-11-19  9:59 Christian Guggenberger
@ 2002-11-19 10:23 ` Karsten 'soohrt' Desler
  2002-11-19 10:33   ` Christian Guggenberger
  0 siblings, 1 reply; 11+ messages in thread
From: Karsten 'soohrt' Desler @ 2002-11-19 10:23 UTC (permalink / raw)
  To: Christian Guggenberger; +Cc: linux-kernel

> I have the same board, and the controller works fine for me in 2.5.4*, as 
> 2.4-ac doesn't contain xfs suport. I only have one drive attached, but as I 
> remember I first had to configure the (raid) controller' BIOS (Ctrl-H at boot 
> time) (even for just a bunch of disks) before using the drives. But I'm not 
> 100%ly sure.

I've "been in" the controller BIOS a few times, but never configured
anything because I'm using the linux md driver.

> I don't think there's any need for your patch, cause the hpt374 only has two 
> channels, but there are two controllers on that board.

This patch was just a desperate attempt since it wasn't working before.
I reverted the patch right after I sent the mail to the lkml.

> ANother QUestion: Did you ever get the onboard via-rhine NIC working with 
> IO-APIC (both BIOS and kernel) enabled?

No I didn't.
via-rhine.c:v1.10-LK1.1.14  May-3-2002  Written by Donald Becker
  http://www.scyld.com/network/via-rhine.html
eth1: VIA VT6102 Rhine-II at 0xcc00, 00:04:61:43:88:d9, IRQ 16.
eth1: MII PHY found at address 1, status 0x7849 advertising 05e1 Link 0000.
eth1: Setting full-duplex based on MII #1 link partner capability of 45e1.
...
eth1: Transmit timed out, status 0003, PHY status 786d, resetting...
eth1: reset did not complete in 10 ms.
NETDEV WATCHDOG: eth1: transmit timed out

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: 2.4.20-rc1-ac4 HPT374 doesn't find connected ide drives
  2002-11-19 10:23 ` Karsten 'soohrt' Desler
@ 2002-11-19 10:33   ` Christian Guggenberger
  2002-11-19 13:04     ` Alan Cox
  2002-11-19 15:22     ` Karsten Desler
  0 siblings, 2 replies; 11+ messages in thread
From: Christian Guggenberger @ 2002-11-19 10:33 UTC (permalink / raw)
  To: Karsten 'soohrt' Desler; +Cc: linux-kernel

On 19.11.2002   11:23 Karsten 'soohrt' Desler wrote:
> > I have the same board, and the controller works fine for me in 2.5.4*, as
> > 2.4-ac doesn't contain xfs suport. I only have one drive attached, but as I
> 
> > remember I first had to configure the (raid) controller' BIOS (Ctrl-H at
> boot
> > time) (even for just a bunch of disks) before using the drives. But I'm not
> 
> > 100%ly sure.
> 
> I've "been in" the controller BIOS a few times, but never configured
> anything because I'm using the linux md driver.

Maybe U would try 2.5.48, just to see if it works then.
When I'm back home in about 7 hours, I'll check my bios settings, maybe this 
could help you.
  
> > ANother QUestion: Did you ever get the onboard via-rhine NIC working with
> > IO-APIC (both BIOS and kernel) enabled?
> 
> No I didn't.
> via-rhine.c:v1.10-LK1.1.14  May-3-2002  Written by Donald Becker
>   http://www.scyld.com/network/via-rhine.html
> eth1: VIA VT6102 Rhine-II at 0xcc00, 00:04:61:43:88:d9, IRQ 16.
> eth1: MII PHY found at address 1, status 0x7849 advertising 05e1 Link 0000.
> eth1: Setting full-duplex based on MII #1 link partner capability of 45e1.
> ...
> eth1: Transmit timed out, status 0003, PHY status 786d, resetting...
> eth1: reset did not complete in 10 ms.
> NETDEV WATCHDOG: eth1: transmit timed out
> 

thats just too bad, last I managed to get it working with IO-APICs for the 
first time, but i simply was too tired to remember what things I did. I can't 
reproduce it anymore:( this NIC's driving me crazy.

Christian


^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: 2.4.20-rc1-ac4 HPT374 doesn't find connected ide drives
  2002-11-19 10:33   ` Christian Guggenberger
@ 2002-11-19 13:04     ` Alan Cox
  2002-11-19 15:22     ` Karsten Desler
  1 sibling, 0 replies; 11+ messages in thread
From: Alan Cox @ 2002-11-19 13:04 UTC (permalink / raw)
  To: Christian Guggenberger
  Cc: Karsten 'soohrt' Desler, Linux Kernel Mailing List

On Tue, 2002-11-19 at 10:33, Christian Guggenberger wrote:
> On 19.11.2002   11:23 Karsten 'soohrt' Desler wrote:
> > > I have the same board, and the controller works fine for me in 2.5.4*, as
> > > 2.4-ac doesn't contain xfs suport. I only have one drive attached, but as I
> > 
> > > remember I first had to configure the (raid) controller' BIOS (Ctrl-H at
> > boot
> > > time) (even for just a bunch of disks) before using the drives. But I'm not
> > 
> > > 100%ly sure.
> > 
> > I've "been in" the controller BIOS a few times, but never configured
> > anything because I'm using the linux md driver.
> 
> Maybe U would try 2.5.48, just to see if it works then.
> When I'm back home in about 7 hours, I'll check my bios settings, maybe this 
> could help you.

For IDE 2.5.47-ac is current head. 2.5.48 was just too weird and broken
for me to move to a 2.5.48-ac just yet. I hope to push Linus the next
IDE updates pretty soon


^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: 2.4.20-rc1-ac4 HPT374 doesn't find connected ide drives
  2002-11-19 10:33   ` Christian Guggenberger
  2002-11-19 13:04     ` Alan Cox
@ 2002-11-19 15:22     ` Karsten Desler
  2002-11-19 17:03       ` Christian Guggenberger
  1 sibling, 1 reply; 11+ messages in thread
From: Karsten Desler @ 2002-11-19 15:22 UTC (permalink / raw)
  To: Christian Guggenberger; +Cc: linux-kernel

> Maybe U would try 2.5.48, just to see if it works then.

I tried 2.5.48 but Linux didn't detect ide3,4,5,6.
---
DEV: registering device: ID = '00:0e.0', name = Triones Technologies HPT374
kobject 00:0e.0: registering
  parent is pci0
bus pci: add device 00:0e.0
DEV: registering device: ID = '00:0e.1', name = Triones Technologies HPT374 (#2)
kobject 00:0e.1: registering
  parent is pci0
bus pci: add device 00:0e.1
[..]
bus type 'ide' registered
HPT374: IDE controller at PCI slot 00:0e.0
PCI: Found IRQ 10 for device 00:0e.0
PCI: Sharing IRQ 10 with 00:0e.1
HPT374: chipset revision 7
HPT374: not 100% native mode: will probe irqs later
PCI: Found IRQ 10 for device 00:0e.1
PCI: Sharing IRQ 10 with 00:0e.0
---
2.5.47 won't boot.

2.5.46 is working:
---
Linux version 2.5.46 (root@pikelot) (gcc version 2.95.4 20011002 (Debian prerelease)) #2 Tue Nov 19 15:19:44 CET 2002
ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx
HPT374: IDE controller at PCI slot 00:0e.0
PCI: Found IRQ 10 for device 00:0e.0
PCI: Sharing IRQ 10 with 00:0e.1
HPT374: chipset revision 7
HPT374: not 100%% native mode: will probe irqs later
HPT37X: using 33MHz PCI clock
    ide2: BM-DMA at 0xb400-0xb407, BIOS settings: hde:pio, hdf:pio
    ide3: BM-DMA at 0xb408-0xb40f, BIOS settings: hdg:DMA, hdh:DMA
PCI: Found IRQ 10 for device 00:0e.1
PCI: Sharing IRQ 10 with 00:0e.0
HPT37X: using 33MHz PCI clock
    ide4: BM-DMA at 0xc800-0xc807, BIOS settings: hdi:DMA, hdj:DMA
    ide5: BM-DMA at 0xc808-0xc80f, BIOS settings: hdk:DMA, hdl:DMA
hdg: MAXTOR 4K080H4, ATA DISK drive
hdh: WDC WD800AB-00CBA0, ATA DISK drive
ide3 at 0xac00-0xac07,0xb002 on irq 10
hdi: MAXTOR 4K080H4, ATA DISK drive
hdj: WDC WD800AB-00CBA0, ATA DISK drive
ide4 at 0xb800-0xb807,0xbc02 on irq 10
hdk: MAXTOR 4K080H4, ATA DISK drive
hdl: MAXTOR 4K080H4, ATA DISK drive
ide5 at 0xc000-0xc007,0xc402 on irq 10
---

> When I'm back home in about 7 hours, I'll check my bios settings, maybe this 
> could help you.

That would be great, thanks.

  Karsten

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: 2.4.20-rc1-ac4 HPT374 doesn't find connected ide drives
  2002-11-19 15:22     ` Karsten Desler
@ 2002-11-19 17:03       ` Christian Guggenberger
  2002-11-19 19:35         ` Karsten Desler
  0 siblings, 1 reply; 11+ messages in thread
From: Christian Guggenberger @ 2002-11-19 17:03 UTC (permalink / raw)
  To: Karsten Desler; +Cc: linux-kernel

On 19.11.2002   16:22 Karsten Desler wrote:
> ---
> 
> > When I'm back home in about 7 hours, I'll check my bios settings, maybe
> this
> > could help you.
> 
> That would be great, thanks.
> 
okay, my brain really shrinks; with only one hdd attached, you can't create an 
array. So here it seems to work out of the box. I just tried 2.4.20-rc-ac1, 
which detects my drive connected to that hpt374 (hde).

Maybe you can give this one a try?

Are using the latest BIOS for your mobo? About a week ago there was a new one 
posted, somewhere at epox.com...

Christian

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: 2.4.20-rc1-ac4 HPT374 doesn't find connected ide drives
  2002-11-19 17:03       ` Christian Guggenberger
@ 2002-11-19 19:35         ` Karsten Desler
  2002-11-19 23:39           ` Ulrich Wiederhold
  2002-11-20 16:53           ` Christian Guggenberger
  0 siblings, 2 replies; 11+ messages in thread
From: Karsten Desler @ 2002-11-19 19:35 UTC (permalink / raw)
  To: Christian Guggenberger; +Cc: linux-kernel

> okay, my brain really shrinks; with only one hdd attached, you can't create an 
> array. So here it seems to work out of the box. I just tried 2.4.20-rc-ac1, 
> which detects my drive connected to that hpt374 (hde).
> 
> Maybe you can give this one a try?

It's partially working with 2.4.20-rc2-ac1. Linux detects the HPT 372
controllers /from time to time/.

First (re)boot:
---
Linux version 2.4.20-rc2-ac1 (root@pikelot) (gcc version 2.95.4 20011002 (Debian prerelease)) #2 Tue Nov 19 20:19:24 CET 2002
[..]
PCI: PCI BIOS revision 2.10 entry at 0xfb3d0, last bus=1
PCI: Using configuration type 1
PCI: Probing PCI hardware
Scanning bus 00
Found 00:00 [1106/3099] 000600 00
Found 00:08 [1106/b099] 000604 01
Found 00:40 [5333/8811] 000300 00
Found 00:60 [10ec/8139] 000200 00
Found 00:70 [1103/0008] 000104 00
Found 00:71 [1103/0008] 000104 00
Found 00:88 [1106/3177] 000601 00
Found 00:89 [1106/0571] 000101 00
Found 00:8d [1106/3059] 000401 00
Found 00:90 [1106/3065] 000200 00
Fixups for bus 00
Scanning behind PCI bridge 00:01.0, config 010100, pass 0
Scanning bus 01
Fixups for bus 01
Bus scan for 01 returning with max=01
Scanning behind PCI bridge 00:01.0, config 010100, pass 1
Bus scan for 00 returning with max=01
[..]
ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx
HPT374: IDE controller at PCI slot 00:0e.0
PCI: Found IRQ 10 for device 00:0e.0
PCI: Sharing IRQ 10 with 00:0e.1
HPT374: chipset revision 7
HPT374: not 100%% native mode: will probe irqs later
HPT37X: using 33MHz PCI clock
    ide2: BM-DMA at 0xb400-0xb407, BIOS settings: hde:pio, hdf:pio
    ide3: BM-DMA at 0xb408-0xb40f, BIOS settings: hdg:DMA, hdh:DMA
PCI: Found IRQ 10 for device 00:0e.1
PCI: Sharing IRQ 10 with 00:0e.0
[..]
---

So he did find the first two controllers.
I rebooted the machine after about 3 minutes to attach the drives to
ide2, but Linux didn't find the controllers.

---
Linux version 2.4.20-rc2-ac1 (root@pikelot) (gcc version 2.95.4 20011002 (Debian prerelease)) #2 Tue Nov 19 20:19:24 CET 2002
PCI: PCI BIOS revision 2.10 entry at 0xfb3d0, last bus=1
PCI: Using configuration type 1
PCI: Probing PCI hardware
Scanning bus 00
Found 00:00 [1106/3099] 000600 00
Found 00:08 [1106/b099] 000604 01
Found 00:40 [5333/8811] 000300 00
Found 00:60 [10ec/8139] 000200 00
Found 00:70 [1103/0008] 000104 00
Found 00:71 [1103/0008] 000104 00
Found 00:88 [1106/3177] 000601 00
Found 00:89 [1106/0571] 000101 00
Found 00:8d [1106/3059] 000401 00
Found 00:90 [1106/3065] 000200 00
Fixups for bus 00
Scanning behind PCI bridge 00:01.0, config 010100, pass 0
Scanning bus 01
Fixups for bus 01
Bus scan for 01 returning with max=01
Scanning behind PCI bridge 00:01.0, config 010100, pass 1
Bus scan for 00 returning with max=01
PCI: Using IRQ router VIA [1106/3177] at 00:11.0
PCI: Found IRQ 11 for device 00:08.0
PCI: Sharing IRQ 11 with 00:12.0
ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx
HPT374: IDE controller at PCI slot 00:0e.0
PCI: Found IRQ 10 for device 00:0e.0
PCI: Sharing IRQ 10 with 00:0e.1
HPT374: chipset revision 7
HPT374: not 100%% native mode: will probe irqs later
PCI: Found IRQ 10 for device 00:0e.1
PCI: Sharing IRQ 10 with 00:0e.0
---

So I removed the drives again, but the controllers are still undetected.
(Same dmesg excerpt as above)

I'm confused :-/

  Karsten

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: 2.4.20-rc1-ac4 HPT374 doesn't find connected ide drives
  2002-11-19 19:35         ` Karsten Desler
@ 2002-11-19 23:39           ` Ulrich Wiederhold
  2002-11-20 16:53           ` Christian Guggenberger
  1 sibling, 0 replies; 11+ messages in thread
From: Ulrich Wiederhold @ 2002-11-19 23:39 UTC (permalink / raw)
  To: linux-kernel

Hello,
I had nearly the same problem in april. The linux-kernel found the
raid-controller and detected the devices at startup but I couldn't fdisk
these devices or just find the controller after startup.
It's a HPT372 here.
I couldn't solve the problem but will try it soon again. If you find the
solution, let me know.

Gruß
Uli

-- 
'The box said, 'Requires Windows 95 or better', so I installed Linux - TKK 5

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: 2.4.20-rc1-ac4 HPT374 doesn't find connected ide drives
  2002-11-19 19:35         ` Karsten Desler
  2002-11-19 23:39           ` Ulrich Wiederhold
@ 2002-11-20 16:53           ` Christian Guggenberger
  2002-11-20 19:13             ` Karsten Desler
  1 sibling, 1 reply; 11+ messages in thread
From: Christian Guggenberger @ 2002-11-20 16:53 UTC (permalink / raw)
  To: Karsten Desler; +Cc: u.wiederhold, linux-kernel

On 19.11.2002   20:35 Karsten Desler wrote:
> > okay, my brain really shrinks; with only one hdd attached, you can't create
> an
> > array. So here it seems to work out of the box. I just tried 2.4.20-rc-ac1,
> 
> > which detects my drive connected to that hpt374 (hde).
> >
> > Maybe you can give this one a try?
> 
Karsten,

so today I added 4 more drives to my hpt374, tried 2.5.47-ac6 and works 
flawlessy...
Sorry, but I can't try 2.4-ac-latest, cause of missing xfs support.

There are some things you could be bitten with:
My Distribution (Debian) only ships with device names up to /dev/hdh ...

So, by default, you'll see the drives attached to ide4(hdi,j) and to 
ide5(hdk,l) in the kernel messages, but you can't use 'em...

You have to make device nodes yourself:

mknod /dev/hd* b MAJOR MINOR

where:
hdi : 56 0
hdi1: 56 1
...

hdj : 56 64
hdj1: 56 65
...

hdk : 57 0
hdk1: 57 1
...

hdl : 57 64
hdl1: 57 65
...

see Documentation/devices.txt in the linux kernel sources.

hope this helps for ya!
Good Luck
CHristian






^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: 2.4.20-rc1-ac4 HPT374 doesn't find connected ide drives
  2002-11-20 16:53           ` Christian Guggenberger
@ 2002-11-20 19:13             ` Karsten Desler
  0 siblings, 0 replies; 11+ messages in thread
From: Karsten Desler @ 2002-11-20 19:13 UTC (permalink / raw)
  To: Christian Guggenberger; +Cc: linux-kernel, Ulrich Wiederhold

> so today I added 4 more drives to my hpt374, tried 2.5.47-ac6 and works 
> flawlessy...

Yep, 2.5.46 and 2.5.47-ac6 work for me too.

> [/dev/hd* device creation]

You're right, thanks - but that's not the problem since the md raid
autodetection happenes before / is mounted.

Anyways, I wondered why I couldn't use hdparm on all the raid devices
but haven't tried to solve the problem :-), thanks.

Bye
 Karsten

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2002-11-20 19:07 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-11-19  8:52 2.4.20-rc1-ac4 HPT374 doesn't find connected ide drives Karsten Desler
  -- strict thread matches above, loose matches on Subject: below --
2002-11-19  9:59 Christian Guggenberger
2002-11-19 10:23 ` Karsten 'soohrt' Desler
2002-11-19 10:33   ` Christian Guggenberger
2002-11-19 13:04     ` Alan Cox
2002-11-19 15:22     ` Karsten Desler
2002-11-19 17:03       ` Christian Guggenberger
2002-11-19 19:35         ` Karsten Desler
2002-11-19 23:39           ` Ulrich Wiederhold
2002-11-20 16:53           ` Christian Guggenberger
2002-11-20 19:13             ` Karsten Desler

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox