linux-ide.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Kernel fix for ICH7M controller
@ 2006-09-03 14:26 Jonathan Dieter
  2006-09-04  2:47 ` Tejun Heo
  0 siblings, 1 reply; 9+ messages in thread
From: Jonathan Dieter @ 2006-09-03 14:26 UTC (permalink / raw)
  To: jeff, linux-ide; +Cc: fedora-devel-list

[-- Attachment #1: Type: text/plain, Size: 991 bytes --]

The ata_piix module doesn't detect that my laptop's disk controller 
(Intel Corporation 82801GBM/GHM - ICH7 Family) is configured to have 
PATA drives in the first two channels.  I looked at Intel's 
documentation and they say that my controller isn't supposed to support 
this configuration, but it's the default setup on this laptop, there's 
no way to change it in the BIOS, and it works in Windows, so I'm 
assuming this is a documentation error.

This patch changes one line in ata_piix.c so that it sees this 
configuration as valid (and therefore recognizes my drives).  I've 
tested it on my laptop and the module is now working perfectly (whereas 
the kernel was using the old IDE driver previously with no DMA enabled).

I'm cc'ing fedora-devel-list because I'm not even sure where this patch 
is supposed to go and I would like it to make it into FC6, as I really 
don't want to have to jump through hoop after hoop just to get FC6 
installed on my hard drive.

Thanks,
Jonathan


[-- Attachment #2: linux-2.6-fix-ich7m-with-pata-on-channel-one.patch --]
[-- Type: text/x-patch, Size: 577 bytes --]

--- linux-2.6.17/drivers/scsi/ata_piix.c	2006-09-03 16:37:16.000000000 +0300
+++ linux-2.6.17-new/drivers/scsi/ata_piix.c	2006-09-03 16:39:14.000000000 +0300
@@ -326,15 +326,15 @@
 static const struct piix_map_db ich6m_map_db = {
 	.mask = 0x3,
 	.port_enable = 0x5,
 	.present_shift = 4,
 	.map = {
 		/* PM   PS   SM   SS       MAP */
 		{  P0,  P2,  RV,  RV }, /* 00b */
-		{  RV,  RV,  RV,  RV },
+		{ IDE, IDE,  P1,  P3 }, /* 01b */
 		{  P0,  P2, IDE, IDE }, /* 10b */
 		{  RV,  RV,  RV,  RV },
 	},
 };
 
 static const struct piix_map_db ich8_map_db = {
 	.mask = 0x3,

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2006-09-10 21:29 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-09-03 14:26 Kernel fix for ICH7M controller Jonathan Dieter
2006-09-04  2:47 ` Tejun Heo
2006-09-04  5:45   ` Jeff Garzik
2006-09-04  7:34     ` Tejun Heo
2006-09-04  6:53   ` Jonathan Dieter
2006-09-04  8:15     ` Tejun Heo
2006-09-04  9:04       ` Jonathan Dieter
2006-09-10 19:54       ` Jonathan Dieter
2006-09-10 21:29         ` [PATCH] ata_piix: add map 01b for ICH7M Tejun Heo

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