From: Jeff Garzik <jeff@garzik.org>
To: Tejun Heo <htejun@gmail.com>
Cc: IDE/ATA development list <linux-ide@vger.kernel.org>,
Jan Beulich <jbeulich@novell.com>
Subject: Re: [PATCH] ahci: fix CAP.NP and PI handling
Date: Wed, 06 Feb 2008 07:03:37 -0500 [thread overview]
Message-ID: <47A9A219.8060303@garzik.org> (raw)
In-Reply-To: <47A9501F.5020501@gmail.com>
Tejun Heo wrote:
> AHCI uses CAP.NP to indicate the number of ports and PI to tell which
> ports are enabled. The only requirement is that the number of ports
> indicated by CAP.NP should equal or be higher than the number of
> enabled ports in PI.
>
> CAP.NP and PI carry duplicate information and there have been some
> interesting cases. Some early AHCI controllers didn't set PI at all
> and just implement from port 0 to CAP.NP. An ICH8 board which wired
> four out of six available ports had 3 (4 ports) for CAP.NP and 0x33
> for PI. While ESB2 has less bits set in PI than the value in CAP.NP.
>
> Till now, ahci driver assumed that PI is invalid if it doesn't match
> CAP.NP exactly. This violates AHCI standard and the driver ends up
> accessing unmimplemented ports on ESB2.
>
> This patch updates CAP.NP and PI handling such that PI can have less
> number of bits set than indicated in CAP.NP and the highest port is
> determined as the maximum port of what CAP.NP and PI indicate.
>
> Signed-off-by: Tejun Heo <htejun@gmail.com>
> Cc: Jan Beulich <jbeulich@novell.com>
applied
prev parent reply other threads:[~2008-02-06 12:03 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-02-06 6:13 [PATCH] ahci: fix CAP.NP and PI handling Tejun Heo
2008-02-06 12:03 ` Jeff Garzik [this message]
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=47A9A219.8060303@garzik.org \
--to=jeff@garzik.org \
--cc=htejun@gmail.com \
--cc=jbeulich@novell.com \
--cc=linux-ide@vger.kernel.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.