From: Etaoin Shrdlu <shrdlu@unlimitedmail.org>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] Re: New kernel 2.6.20-r6
Date: Thu, 19 Apr 2007 11:00:25 +0200 [thread overview]
Message-ID: <200704191100.25500.shrdlu@unlimitedmail.org> (raw)
In-Reply-To: <1176947626.12627.211.camel@orpheus>
On Thursday 19 April 2007 03:53, Iain Buchanan wrote:
> > > hda: 39070080 sectors (20003 MB) w/1740KiB Cache,
> > > CHS=16383/255/63<6>hda: hw_config=600d, UDMA(100)
> > >
> > > What's the hw_config part?
> >
> > Any more (useful) ideas on this?
Seems a kind of hardware config register (part of a struct hd_driveid
object), whose value is used by the ide drivers to adjust the drive
speed, depending on the type of cable used. The function that checks its
value (and prints the "hda: hw_config=600d" message you are seeing)
seems to be in drivers/ide/ide-iops.c, and is defined as follows:
/*
* All hosts that use the 80c ribbon must use!
* The name is derived from upper byte of word 93 and the 80c ribbon.
*/
u8 eighty_ninty_three (ide_drive_t *drive)
That function is called from various pci ide drivers code (for example
drivers/ide/pci/it821x.c, drivers/ide/pci/siimage.c,
drivers/ide/pci/piix.c, drivers/ide/pci/sis5513.c), from a function
whose name is composed appending "_ratemask" to the driver name (eg,
piix_ratemask, sis5513_ratemask, etc.) in a way similar to this:
if (!eighty_ninty_three(drive))
mode = min(mode, (u8)1);
So, if eighty_ninty_three returns 0, "mode" (which I suppose indicates
the DMA/UDMA mode) is set to 1 if it wasn't already.
This value is then used as an argument to the ide_rate_filter function
(along with the xferspeed). The comments in the code for ide_rate_filter
are as follows (drivers/ide/ide-lib.c):
/**
* ide_rate_filter - return best speed for mode
* @mode: modes available
* @speed: desired speed
*
* Given the available DMA/UDMA mode this function returns
* the best available speed at or below the speed requested.
*/
Bottom line: the message you see is an informational message printed
during ide initialization, and the value of hw_config is used by the
kernel to set drive speed.
Keep in mind that I'm definitely no kernel guru, and did my searches by
simply grepping through the code, so something might be wrong in what I
said. Anyway, I think the general idea is correct.
But don't worry, because your value for hw_config is "600d"! :)
--
gentoo-user@gentoo.org mailing list
next prev parent reply other threads:[~2007-04-19 8:36 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-04-18 18:37 [gentoo-user] New kernel 2.6.20-r6 Mick
2007-04-18 19:17 ` Benno Schulenberg
2007-04-18 21:18 ` Dan Cowsill
2007-04-18 22:15 ` Arturo 'Buanzo' Busleiman
2007-04-18 22:29 ` Guillermo A. Amaral
2007-04-18 21:58 ` [gentoo-user] " Mick
2007-04-19 1:53 ` Iain Buchanan
2007-04-19 9:00 ` Etaoin Shrdlu [this message]
2007-04-19 9:03 ` Etaoin Shrdlu
2007-04-19 8:42 ` Mick
2007-04-19 22:28 ` James
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=200704191100.25500.shrdlu@unlimitedmail.org \
--to=shrdlu@unlimitedmail.org \
--cc=gentoo-user@lists.gentoo.org \
/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