public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: tstone@t-online.de (Tim Krieglstein)
To: linux-kernel@vger.kernel.org
Subject: [PATCH] nforce2 dma enabled
Date: Thu, 12 Dec 2002 15:06:12 +0100	[thread overview]
Message-ID: <20021212140612.GA543@Timekeeper> (raw)

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

Hi 
I just got a new toy an epox EP-8RDA. Since there is an nforce2 chipset
onboard and only support for the nforce (whithout 2) in the 2.4.20-ac2
kernel. I just concluded that the new ide driver should be pretty
similar to the old one. i had absolutly no documentation! so be
careful! Personally i did an full backup *before* fiddling with the ide
driver :)

The patch just adds the pci id of the nforce ide controller and added a
new information block to the ide_pci_device_t structure. Also i added an
entry to pci_device_id.

This is my first public patch so suggestions or other feedback is very
welcome. I would also like to know why the lspci command still tells me
this is an unknown device after applying my patch seen below. Also if
someone has a hint why the usb-devices have no interrupt assigned and
thus are not available is very welcome (probably disable acpi?).

However currently i am runing with following settings enabled (by hand):
/dev/hda:
 multcount    = 16 (on)
 IO_support   =  1 (32-bit)
 unmaskirq    =  1 (on)
 using_dma    =  1 (on)
 keepsettings =  1 (on)
 readonly     =  0 (off)
 readahead    =  8 (on)
 geometry     = 15505/240/63, sectors = 234441648, start = 0

Have fun
Tim

PS: Please CC me since im am currently not subscribed to the list

[-- Attachment #2: nforce2.patch --]
[-- Type: text/plain, Size: 1751 bytes --]

diff -r -C 2 ../linux-2.4.20/drivers/ide/pci/nvidia.c ./drivers/ide/pci/nvidia.c
*** ../linux-2.4.20/drivers/ide/pci/nvidia.c	Thu Dec 12 14:22:55 2002
--- ./drivers/ide/pci/nvidia.c	Thu Dec 12 13:53:11 2002
***************
*** 342,345 ****
--- 342,346 ----
  static struct pci_device_id nforce_pci_tbl[] __devinitdata = {
  	{ PCI_VENDOR_ID_NVIDIA, PCI_DEVICE_ID_NVIDIA_NFORCE_IDE, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0},
+ 	{ PCI_VENDOR_ID_NVIDIA, PCI_DEVICE_ID_NVIDIA_NFORCE2_IDE, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 1},
  	{ 0, },
  };
diff -r -C 2 ../linux-2.4.20/drivers/ide/pci/nvidia.h ./drivers/ide/pci/nvidia.h
*** ../linux-2.4.20/drivers/ide/pci/nvidia.h	Thu Dec 12 14:22:55 2002
--- ./drivers/ide/pci/nvidia.h	Thu Dec 12 13:55:06 2002
***************
*** 44,47 ****
--- 44,62 ----
  		bootable:	ON_BOARD,
  		extra:		0,
+ 	},
+ 
+ 	{
+ 		vendor:		PCI_VENDOR_ID_NVIDIA,
+ 		device:		PCI_DEVICE_ID_NVIDIA_NFORCE2_IDE,
+ 		name:		"NFORCE2",
+ 		init_chipset:	init_chipset_nforce,
+ 		init_iops:	NULL,
+ 		init_hwif:	init_hwif_nforce,
+ 		init_dma:	init_dma_nforce,
+ 		channels:	2,
+ 		autodma:	AUTODMA,
+ 		enablebits:	{{0x50,0x01,0x01}, {0x50,0x02,0x02}},
+ 		bootable:	ON_BOARD,
+ 		extra:		0,
  	}
  };
Only in ../linux-2.4.20/drivers/net/wan: hdlc.c
diff -r -C 2 ../linux-2.4.20/include/linux/pci_ids.h ./include/linux/pci_ids.h
*** ../linux-2.4.20/include/linux/pci_ids.h	Thu Dec 12 14:22:55 2002
--- ./include/linux/pci_ids.h	Thu Dec 12 13:38:56 2002
***************
*** 914,917 ****
--- 914,918 ----
  #define PCI_DEVICE_ID_NVIDIA_IGEFORCE2		0x01a0
  #define PCI_DEVICE_ID_NVIDIA_NFORCE_IDE		0x01bc
+ #define PCI_DEVICE_ID_NVIDIA_NFORCE2_IDE	0x0065
  #define PCI_DEVICE_ID_NVIDIA_GEFORCE3		0x0200
  #define PCI_DEVICE_ID_NVIDIA_GEFORCE3_1		0x0201

             reply	other threads:[~2002-12-12 14:02 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-12-12 14:06 Tim Krieglstein [this message]
2002-12-12 19:06 ` [PATCH] nforce2 dma enabled Alan Cox

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=20021212140612.GA543@Timekeeper \
    --to=tstone@t-online.de \
    --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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox