9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: erik quanstrom <quanstro@quanstro.net>
To: 9fans@9fans.net
Subject: Re: [9fans] the mysterious bios change
Date: Sun, 18 Aug 2013 13:20:19 -0400	[thread overview]
Message-ID: <c3c0f6a4862e41af979f898122cf1a68@brasstown.quanstro.net> (raw)
In-Reply-To: <CAJSxfmJVMk0S5ZgEVawyqRbYhFpYK7B-1K1Z1jGLxsDz9TKpqw@mail.gmail.com>

On Sun Aug 18 12:42:54 EDT 2013, skip.tavakkolian@gmail.com wrote:

> i had a small panic on Friday, when a venti+fossil fs (a supermicro
> 5015A-EHF-D525 box) had an unexplained reboot followed by what appeared to
> be a disk problem. on inspection -- by IL booting it from an un-retired
> kenfs -- i noticed that the sd controller position had changed from sdE0 to
> sdC0.
>
> suspecting the bios setup, i checked the sata settings in bios, and the
> first controller was set to ata rather than ahci.

i suspect that this is caused not by a bios change, but by some subtile confusion.

there are two different ways a drive can show up as sdE0.  first, as an ide driver
that is showing up in pci space, and not the blindly-probed ide addresses and
second as an ahci device.  the hardware supports both modes, so with the right
combination of bios settings and drivers, the same hardware could be used as
either ahci or ide without fiddling bios.  this may have to do with which vids and
dids are in your version of the ahci driver.

we have about 10 of these machines running around running standard 9atom nix
kernels with bios selected to be compatable/ahci.  once booted, the configuration
looks like the following:

consoled; aux/dmi -t 1
1: type sysinfo 1 len 27 handle 1
	mfg         	Supermicro
	product     	X7SPA-HF
	version     	1234567890
	serial      	1234567890
	uuid        	534D434900026490250064902500D660
	waketype    	powersw (0x6)
	sku         	To Be Filled By O.E.M.
	family      	<nil>
consoled; pci|grep disk
0.31.2:	disk 01.06.01 8086/2922  14 0:0000b481 16 1:0000c001 16 2:0000bc01 16 3:0000b881 16 4:0000b801 32 5:febfb000 2048
consoled; cat /dev/sdctl
sdE ahci ahci port 0xfffffe00febfb000: 64a ncq ntf ss alp led clo pmb slum pslum coal ems xs alhd xonly smb elmt iss 2 ncs 31 np 6 ghc 80000002 isr 0 pi 3f 0-5 ver 10200

i hope that helps.  it may be just a matter of commenting out a few lines in the
ide driver, though one could likely solve the issue with a bios change as well.

- erik



  reply	other threads:[~2013-08-18 17:20 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-08-18 16:40 Skip Tavakkolian
2013-08-18 17:20 ` erik quanstrom [this message]
2013-08-19 16:09 ` Anthony Sorace
2013-08-19 16:53   ` erik quanstrom
2013-08-19 18:17     ` Skip Tavakkolian

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=c3c0f6a4862e41af979f898122cf1a68@brasstown.quanstro.net \
    --to=quanstro@quanstro.net \
    --cc=9fans@9fans.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).