9front - general discussion about 9front
 help / color / mirror / Atom feed
* Avoid treating the SB7x0/SB8x0/SB9x0 SATA Controller as an SB600
@ 2018-10-17 20:28 Joe M
  0 siblings, 0 replies; only message in thread
From: Joe M @ 2018-10-17 20:28 UTC (permalink / raw)
  To: 9front

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


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2018-10-17 20:28 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-10-17 20:28 Avoid treating the SB7x0/SB8x0/SB9x0 SATA Controller as an SB600 Joe M

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).