From: Joe M <joe9mail@gmail.com>
To: 9front@9front.org
Subject: Avoid treating the SB7x0/SB8x0/SB9x0 SATA Controller as an SB600
Date: Wed, 17 Oct 2018 13:28:55 -0700 [thread overview]
Message-ID: <20181017202855.GA15127@master> (raw)
Hello,
This patch avoids the SB600 errata fix when dealing with the later
SATA controllers.
0.17.0: disk 01.06.01 1002/4391 11 0:0000b001 16 1:0000a001 16 2:00009001 16 3:00008001 16 4:00007001 16 5:fdcffc00 1024
Advanced Micro Devices, Inc. [AMD/ATI] SB7x0/SB8x0/SB9x0 SATA Controller [AHCI mode]
# HG changeset patch
# User joe
# Date 1539807714 25200
# Wed Oct 17 13:21:54 2018 -0700
# Node ID 855645ff928b86129a314a0e7380cebe74eb4c14
# Parent 4c1c90cb3a47f8cc9414f6165b4bc957c07b0b51
recognise SB7x0/SB8x0/SB9x0 SATA Controller [AHCI mode] as an AHCI controller
it does not need the 255 max packets errata fix too
diff -r 4c1c90cb3a47 -r 855645ff928b sys/src/9/pc/sdiahci.c
--- a/sys/src/9/pc/sdiahci.c Tue Oct 16 12:53:55 2018 -0700
+++ b/sys/src/9/pc/sdiahci.c Wed Oct 17 13:21:54 2018 -0700
@@ -2088,8 +2088,12 @@
break;
case 0x1002:
if(p->ccru == 1 || p->ccrp != 1)
- if(p->did == 0x4380 || p->did == 0x4390)
- sbsetupahci(p);
+ if(p->did == 0x4380 || p->did == 0x4390)
+ sbsetupahci(p);
+ if(p->did == 0x4391 || p->did == 0x4394) {
+ type = Tahci;
+ break;
+ }
type = Tsb600;
break;
case 0x1106:
Thanks
reply other threads:[~2018-10-17 20:28 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=20181017202855.GA15127@master \
--to=joe9mail@gmail.com \
--cc=9front@9front.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;
as well as URLs for NNTP newsgroup(s).