All of lore.kernel.org
 help / color / mirror / Atom feed
From: RISKO Gergely <risko@risko.hu>
To: linux-kernel@vger.kernel.org
Subject: [PATCH] VT6410 on ASUS P4P800 Deluxe for 2.4.24
Date: Thu, 22 Jan 2004 16:04:35 +0100	[thread overview]
Message-ID: <84llo058jg.fsf@risko.hu> (raw)

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

Hello!

I've got a new ASUS P4P800 Deluxe with 2 SATA port and 4 IDE port (2
software raid, with via vt6410). The 2 SATA port and first 2 IDE port
work nice out of the box with the 2.4.24. But the via vt6410 is not
recognized at all:

portion of /proc/pci:
  Bus  2, device   4, function  0:
    RAID bus controller: PCI device 1106:3164 (VIA Technologies, Inc.)
  (rev 6).
      IRQ 23.
      Master Capable.  Latency=64.  
      I/O at 0xdfe0 [0xdfe7].
      I/O at 0xdfac [0xdfaf].
      I/O at 0xdfa0 [0xdfa7].
      I/O at 0xdfa8 [0xdfab].
      I/O at 0xdf90 [0xdf9f].

After applying the attached patch everything work nice. Can you apply
it to the 2.4 and 2.6 tree?

Patch from: http://robertk.com/source/

Thanks,
Gergely


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: VT6410.patch --]
[-- Type: text/x-patch, Size: 1878 bytes --]

--- linux/drivers/ide/pci/generic.h	Mon Aug 25 13:44:41 2003
+++ linux-2.4.22.2/drivers/ide/pci/generic.h	Mon Sep 22 20:36:26 2003
@@ -140,6 +140,19 @@
 		.enablebits	= {{0x00,0x00,0x00}, {0x00,0x00,0x00}},
 		.bootable	= ON_BOARD,
 		.extra		= 0,
+	},{	/* 10 */
+		.vendor		= PCI_VENDOR_ID_VIA,
+		.device		= PCI_DEVICE_ID_VIA_610,
+		.name		= "VIA_610",
+		.init_chipset	= init_chipset_generic,
+		.init_iops	= NULL,
+		.init_hwif	= init_hwif_generic,
+		.init_dma	= init_dma_generic,
+		.channels	= 2,
+		.autodma	= AUTODMA,
+		.enablebits	= {{0x00,0x00,0x00}, {0x00,0x00,0x00}},
+		.bootable	= ON_BOARD,
+		.extra		= 0,
 	},{
 		.vendor		= 0,
 		.device		= 0,
--- linux/drivers/ide/pci/generic.c	Mon Aug 25 13:44:41 2003
+++ linux-2.4.22.2/drivers/ide/pci/generic.c	Mon Sep 22 20:42:48 2003
@@ -65,6 +65,8 @@
 	hwif->ultra_mask = 0x7f;
 	hwif->mwdma_mask = 0x07;
 	hwif->swdma_mask = 0x07;
+ if (hwif->pci_dev->device == PCI_DEVICE_ID_VIA_610) 
+   hwif->udma_four = 1; /* mj */
 
 	if (!noautodma)
 		hwif->autodma = 1;
@@ -141,6 +143,7 @@
 	{ PCI_VENDOR_ID_VIA,    PCI_DEVICE_ID_VIA_82C561,          PCI_ANY_ID, PCI_ANY_ID, 0, 0, 7},
 	{ PCI_VENDOR_ID_OPTI,   PCI_DEVICE_ID_OPTI_82C558,         PCI_ANY_ID, PCI_ANY_ID, 0, 0, 8},
 	{ PCI_VENDOR_ID_TOSHIBA, PCI_DEVICE_ID_TOSHIBA_PICCOLO,	   PCI_ANY_ID, PCI_ANY_ID, 0, 0, 9},
+	{ PCI_VENDOR_ID_VIA,    PCI_DEVICE_ID_VIA_610,             PCI_ANY_ID, PCI_ANY_ID, 0, 0, 10},
 	{ 0, },
 };
 
--- linux/include/linux/pci_ids.h	Mon Aug 25 13:44:44 2003
+++ linux-2.4.22.2/include/linux/pci_ids.h	Mon Sep 22 20:36:13 2003
@@ -1085,6 +1085,7 @@
 #define PCI_DEVICE_ID_VIA_8233A		0x3147
 #define PCI_DEVICE_ID_VIA_P4M266	0x3148
 #define PCI_DEVICE_ID_VIA_8237_SATA	0x3149
+#define PCI_DEVICE_ID_VIA_610		0x3164
 #define PCI_DEVICE_ID_VIA_P4X333	0x3168
 #define PCI_DEVICE_ID_VIA_8235		0x3177
 #define PCI_DEVICE_ID_VIA_8377_0	0x3189

                 reply	other threads:[~2004-01-22 16:10 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=84llo058jg.fsf@risko.hu \
    --to=risko@risko.hu \
    --cc=linux-kernel@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.