public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Michael Milligan <milli@acmeps.com>
To: linux-kernel@vger.kernel.org
Subject: 2.4.20: Broken AGP initialization for i845G chipset [patch]
Date: Thu, 19 Dec 2002 16:38:00 -0700	[thread overview]
Message-ID: <3E025858.4000404@acmeps.com> (raw)

Chipset detection for the new Intel i845G chipset was added into the AGPGART
driver, but it appears to call the wrong initialization routine.  Stock 
compile
causes some bad interaction that messes up the PCI bus such that, in my 
case,
the follow on initialization of the Adaptec SCSI card (PCI) hangs the 
box.  Needless
to say, that's very bad since that's where all the hard drives live. 
SCSI driver
initialization happens right after the AGP initialization... from dmesg 
(after my patch):
(without the patch, it would hang before "scsi0: Adaptec ..." or before 
finding
  any drives)
....
Linux video capture interface: v1.00
Linux agpgart interface v0.99 (c) Jeff Hartmann
agpgart: Maximum main memory to use for agp memory: 203M
agpgart: Detected Intel i845G chipset
agpgart: AGP aperture is 256M @ 0xe0000000
SCSI subsystem driver Revision: 1.00
PCI: Found IRQ 9 for device 02:0a.0
PCI: Sharing IRQ 9 with 02:0a.1
PCI: Found IRQ 9 for device 02:0a.1
PCI: Sharing IRQ 9 with 02:0a.0
scsi0 : Adaptec AIC7XXX EISA/VLB/PCI SCSI HBA DRIVER, Rev 6.2.8
         <Adaptec 3950B Ultra2 SCSI adapter>
         aic7896/97: Ultra2 Wide Channel A, SCSI Id=7, 32/253 SCBs

scsi1 : Adaptec AIC7XXX EISA/VLB/PCI SCSI HBA DRIVER, Rev 6.2.8
         <Adaptec 3950B Ultra2 SCSI adapter>
         aic7896/97: Ultra2 Wide Channel B, SCSI Id=7, 32/253 SCBs

   Vendor: IBM       Model: DNES-309170Y      Rev: SAH0
   Type:   Direct-Access                      ANSI SCSI revision: 03
(scsi0:A:0): 80.000MB/s transfers (40.000MHz, offset 30, 16bit)
....

Patch below.  Calls the 845 initialization function instead of the 830MP,
and a small formatting cleanup.  This is verified working.

$ diff -u kernel-source-2.4.20/drivers/char/agp/agpgart_be.c.org 
kernel-source-2.4.20/drivers/char/agp/agpgart_be.c
--- kernel-source-2.4.20/drivers/char/agp/agpgart_be.c.org 2002-11-28 
16:53:12.000000000 -0700
+++ kernel-source-2.4.20/drivers/char/agp/agpgart_be.c  2002-12-08 
20:39:57.000000000 -0700
@@ -4551,12 +4551,12 @@
                 "Intel",
                 "i830M",
                 intel_830mp_setup },
-    { PCI_DEVICE_ID_INTEL_845_G_0,
+       { PCI_DEVICE_ID_INTEL_845_G_0,
                  PCI_VENDOR_ID_INTEL,
                  INTEL_I845_G,
                  "Intel",
                  "i845G",
-                intel_830mp_setup },
+                intel_845_setup },
         { PCI_DEVICE_ID_INTEL_840_0,
                 PCI_VENDOR_ID_INTEL,
                 INTEL_I840,

Please note... kernel version below is that of my development box (where 
kernel was compiled)

-- System Information
Debian Release: testing/unstable
Kernel Version: Linux shadow 2.4.19 #3 SMP Mon Nov 25 20:48:02 MST 2002 
i686 Pentium III (Coppermine) GenuineIntel GNU/Linux

Versions of the packages kernel-source-2.4.20 depends on:
ii  binutils       2.13.90.0.10-1 The GNU assembler, linker and binary 
utiliti
ii  bzip2          1.0.2-1        A high-quality block-sorting file 
compressor
ii  coreutils      4.5.2-1        The GNU core utilities
ii  fileutils      4.5.2-1        GNU file management utilities


Regards,
Mike

-- 
Michael Milligan  --  Free Agent  --  milli@acmeps.com


             reply	other threads:[~2002-12-19 23:30 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-12-19 23:38 Michael Milligan [this message]
2002-12-20  2:43 ` 2.4.20: Broken AGP initialization for i845G chipset [patch] Alan Cox
2002-12-20 10:27 ` Dave Jones
2002-12-20 17:31   ` Michael Milligan

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=3E025858.4000404@acmeps.com \
    --to=milli@acmeps.com \
    --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