Re: [osol-discuss] IDE driver attach to pseudo RAID-Controller

2006-07-01 Thread Daniel Rock

Daniel Rock schrieb:

Hi,

I try to install Solaris on a new machine. This machine contains an

 IDE controller with some Host-RAID controller - besides that you
 normally can still access the controller as a plain old IDE controller.


PCI class 01-04-00 (Mass storage RAID controller)
instead of
PCI class 01-01-00 (Mass storage IDE controller)


I have patched the pci_autoconfig kernel module, so that it also accepts 
pciclass,0104 as a valid PCI IDE driver.


http://cvs.opensolaris.org/source/xref/on/usr/src/uts/i86pc/io/pci/pci_boot.c#is_pciide

With this modification the system boots and is able to see at least one of the 
two disks attached to the SATA controller:


  IDE device at targ 0, lun 0 lastlun 0x0
  model ExcelStor Technology J880S
  ATA/ATAPI-7 supported, majver 0xfc minver 0x1a
PCI-device: [EMAIL PROTECTED], ata0
ata0 is /[EMAIL PROTECTED],0/pci1166,[EMAIL PROTECTED]/[EMAIL PROTECTED]/[EMAIL 
PROTECTED]
  UltraDMA mode 5 selected
Disk0:  Vendor 'Gen-ATA ' Product 'ExcelStor Techno'


pci-ide, instance #0
Driver properties:
name='class-code' type=int items=1 dev=none
value=00010485
Hardware properties:
name='#size-cells' type=int items=1
value=
name='#address-cells' type=int items=1
value=0001
name='device_type' type=string items=1
value='pci-ide'
[...]
name='compatible' type=string items=7
value='pci1166,240.1166.24a.0' + 
pci1166,240.1166.24a' + 'pci1166,24a' + 'pci1166,240.0' + 'pci1166,240' + 
'pciclass,010400' +  'pciclass,0104'

name='model' type=string items=1
value='RAID controller'
[...]
ide, instance #0
System software properties:
name='device_type' type=string items=1
value='ide'
name='flow_control' type=string items=1
value='dmult'
name='queue' type=string items=1
value='qfifo'
name='max_transfer' type=int items=1
value=0100
name='ata-options' type=int items=1
value=0001
[...]
ide (driver not attached)
Hardware properties:
name='reg' type=int items=1
value=0001

But attached are two disks (below are the boot messages of a Linux boot - but 
I want to get rid of Linux):


Loading sata_svw
ACPI: PCI Interrupt :01:0e.0[A] - GSI 11 (level, low) - IRQ 11
ata1: SATA max UDMA/133 cmd 0xC2004000 ctl 0xC2004020 bmdma 
0xC2004030 irq 11
ata2: SATA max UDMA/133 cmd 0xC2004100 ctl 0xC2004120 bmdma 
0xC2004130 irq 11
ata3: SATA max UDMA/133 cmd 0xC2004200 ctl 0xC2004220 bmdma 
0xC2004230 irq 11
ata4: SATA max UDMA/133 cmd 0xC2004300 ctl 0xC2004320 bmdma 
0xC2004330 irq 11

ata1: dev 0 ATA, max UDMA/133, 160836480 sectors: lba48
ata1: dev 0 configured for UDMA/133
scsi0 : sata_svw
ata2: dev 0 ATA, max UDMA/133, 160836480 sectors: lba48
ata2: dev 0 configured for UDMA/133
scsi1 : sata_svw
ata3: no device found (phy stat 0004)
scsi2 : sata_svw
ata4: no device found (phy stat 0004)
scsi3 : sata_svw
  Vendor: ATA   Model: ExcelStor Techno  Rev: PF2O
  Type:   Direct-Access  ANSI SCSI revision: 05
SCSI device sda: 160836480 512-byte hdwr sectors (82348 MB)
SCSI device sda: drive cache: write back
SCSI device sda: 160836480 512-byte hdwr sectors (82348 MB)
SCSI device sda: drive cache: write back
 sda: sda1 sda2 sda3
 sda2: solaris: [s0] sda5 [s2] sda6 
Attached scsi disk sda at scsi0, channel 0, id 0, lun 0
  Vendor: ATA   Model: ExcelStor Techno  Rev: PF2O
  Type:   Direct-Access  ANSI SCSI revision: 05
SCSI device sdb: 160836480 512-byte hdwr sectors (82348 MB)
SCSI device sdb: drive cache: write back
Attached scsi generic sg0 at scsi0, channel 0, id 0, lun 0,  type 0
SCSI device sdb: 160836480 512-byte hdwr sectors (82348 MB)
SCSI device sdb: drive cache: write back
 sdb: sdb1 sdb2 sdb3
 sdb2: solaris: [s0] sdb5 [s2] sdb6 
Attached scsi disk sdb at scsi1, channel 0, id 0, lun 0
Attached scsi generic sg1 at scsi1, channel 0, id 0, lun 0,  type 0


Any more ideas?


Daniel

___
opensolaris-discuss mailing list
opensolaris-discuss@opensolaris.org


[osol-discuss] IDE driver attach to pseudo RAID-Controller

2006-06-30 Thread Daniel Rock
Hi,

I try to install Solaris on a new machine. This machine contains an IDE 
controller with some Host-RAID controller - besides that you normally can still 
access the controller as a plain old IDE controller.

But the BIOS has been set to enable RAID functionality (I am not able to change 
the BIOS settings). So the IDE controller identifies itself as

PCI class 01-04-00 (Mass storage RAID controller)
instead of
PCI class 01-01-00 (Mass storage IDE controller)

Excerpt from pciconf -v:

pci1166,24a (driver not attached)
Hardware properties:
name='assigned-addresses' type=int items=30

value=81017010..bc00..0008.81017014..b880..0004.81017018..b800..0008.8101701c..b480..0004.81017020..b400..0020.82017024..fcafe000..2000
name='reg' type=int items=35

value=00017000.....01017010....0008.01017014....0004.01017018....0008.0101701c....0004.01017020....0020.02017024....2000
name='compatible' type=string items=7
value='pci1166,240.1166.24a.0' + 'pci1166,240.1166.24a' 
+ 'pci1166,24a' + 'pci1166,240.0' + 'pci1166,240' + 'pciclass,010400' + 
'pciclass,0104'
name='model' type=string items=1
value='RAID controller'


Is it possible for the Solaris ide driver to still attach to this device?
 
 
This message posted from opensolaris.org
___
opensolaris-discuss mailing list
opensolaris-discuss@opensolaris.org