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-next>] [day] [month] [year] [list]
Message-id: <45CF619D.6000704@shaw.ca>
Date:	Sun, 11 Feb 2007 12:34:05 -0600
From:	Robert Hancock <hancockr@...w.ca>
To:	Patrick Ale <patrick.ale@...il.com>,
	linux-kernel <linux-kernel@...r.kernel.org>
Cc:	Robert Hancock <hancockr@...w.ca>
Subject: Re: libsata doesn't like bus without master

Patrick Ale wrote:
> On 2/11/07, Robert Hancock <hancockr@...w.ca> wrote:
>> Patrick Ale wrote:
>> > Something unrelated to the tests I am doing.
>> >
>> > I found out that the libsata driver doesn't really cope or likes the
>> > idea that you might have a controller without a master drive
>> > configured.
>> >
>> > In this case on ATA2 I have a CDROM drive, connected as slave.
>> > ATA: abnormal status 0x7F on port 0x177
>> > ATA: abnormal status 0x7F on port 0x177
>> > ata2.01: ATAPI, max UDMA/66
>> > ata2.01: configured for UDMA/66
>>
>> Having a single drive on the channel configured as slave is not really a
>> legal configuration. (I believe the ATA standards say that it's
>> something that a host controller/driver/OS is allowed to support, but it
>> is not required to.) A single drive should always be set to master (and
>> connected to the end of the cable and not the middle, by the way).
> 
> It is very legal when one of your harddisks blows out and you take it
> out temporarely and have no money for a replacement IMO. But then
> again, this is probably an abnormality.

Then in that case you should set the remaining drive as master. That's 
just the way PATA is. A lot of BIOSes won't even detect a drive that's 
set as slave with no master present.

> But still, it even complains when no drive is attached to a controller
> at all. Since when you buy an add-on PCI card you get 2 connectors
> even when you want to add one harddisk how does one deal with that?

Yeah, that's a better point. It's not really complaining, but we could 
probably have a better way of suppressing that message. I think it's 
largely there so that we can debug issues with drives not being detected 
when they should.

-- 
Robert Hancock      Saskatoon, SK, Canada
To email, remove "nospam" from hancockr@...pamshaw.ca
Home Page: http://www.roberthancock.com/

-
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