lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:	Mon, 27 Oct 2008 00:09:14 -0400
From:	Douglas Gilbert <dgilbert@...erlog.com>
To:	"Miller, Mike (OS Dev)" <Mike.Miller@...com>
CC:	FUJITA Tomonori <fujita.tomonori@....ntt.co.jp>,
	"Lawler, Tom" <Tom.Lawler@...com>,
	"James.Bottomley@...senPartnership.com" 
	<James.Bottomley@...senPartnership.com>,
	"Jens.Axboe@...cle.com" <Jens.Axboe@...cle.com>,
	"linux-scsi@...r.kernel.org" <linux-scsi@...r.kernel.org>,
	"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
	Bruce Allen <ballen@...vity.phys.uwm.edu>
Subject: Re: [RFC PATCH] HP (Compaq) Smart Array 5xxx controller SCSI driver

Miller, Mike (OS Dev) wrote:
> Tomo wrote:
> 
>> My scsi driver is still in an early stage (I tried to keep
>> the changes minimum). I can detect logical units, mount a
>> file system, do lots of I/Os, however, there are lots of
>> TODOs in the management features.
>>
>> If I can get an ACK from HP about the long-term migration of
>> cciss to SCSI, I'm happy to keep working on the SCSI cciss
>> driver and maintain it until HP takes over the driver.
> 
> Just a brief update. HP has developed a scsi version of cciss. It was originally done for another environment but we have decided to use it as the base for Linux. It was authored by Tom Lawler of HP. We are currently in the process of getting the Open Source Review Board approval to release the code to the community.
> 
> It's unclear right now as to who will be the maintainer.
> 
> -- mikem
> 
>>
>> The patch is available at:
>>
>> http://www.kernel.org/pub/linux/kernel/people/tomo/ciss/0001-a
>> dd-HP-Compaq-Smart-Array-5xxx-controller-SCSI-dri.patch
>>
>> clover:/home/fujita# insmod ciss.ko
>> clover:/home/fujita# lsscsi
>> (snip)
>> [1:0:0:0]    disk    HP       LOGICAL VOLUME   1.66  /dev/sde
>> [1:0:0:1]    disk    HP       LOGICAL VOLUME   1.66  /dev/sdf
>> [1:0:0:2]    disk    HP       LOGICAL VOLUME   1.66  /dev/sdg
>> [1:0:0:3]    disk    HP       LOGICAL VOLUME   1.66  /dev/sdh
>>
>> Yeah, it just works as SCSI disk, the dmesg says:
>>
>> sd 1:0:0:0: [sde] Attached SCSI disk
>> sd 1:0:0:1: [sdf] 143305920 512-byte hardware sectors (73373
>> MB) sd 1:0:0:1: [sdf] Write Protect is off sd 1:0:0:1: [sdf]
>> Mode Sense: 5b 00 00 08 sd 1:0:0:1: [sdf] Write cache:
>> disabled, read cache: enabled, doesn't support DPO or FUA
>>
>> I needed a different name and just stole 'ciss' from *BSD.
>> But any names (like hpciss) works for me.

My interest in SAS/SATA RAID controllers (e.g. cciss and megaraid)
is to get to the physical drives and let smartmontools query
them. The first difficulty is addressing physical drives within
the logical drive presented to the OS. Then there are SATA drives:
I have yet to see a SAT implementation good enough to fetch
useful SMART data using "pure" SCSI commands; that leaves the
SAT ATA PASS-THROUGH commands.

Testing I did today on a HP E200 controller with version 1.80
firmware and the cciss driver in lk 2.6.27 showed this command
failed (as it has in the past):
     smartctl -a -d cciss,0 /dev/cciss/c0d0
when c0d0 was a SATA disk.

Yes, I know the documentation says it won't work and I've been told
not to hold my breadth.
So if a true SCSI cciss driver might appear, could SAT with
ATA pass-through support be added to the wish list?


BTW We now have the equivalent working on megaraid controllers.
Whether to let "SCSI" commands through that alter the state
of a SATA disk is an interesting dilemma for the driver.
WRITEs are obviously a no-no but the current megaraid/smartctl
code ignored my attempts to do a self-test.

Doug Gilbert

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ