Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
From: Matt Wilson <msw@redhat.com>
To: axp-list@redhat.com
Subject: Re: X4.0.1 on an XP1000
Date: Mon, 28 Aug 2000 15:03:19 -0400	[thread overview]
Message-ID: <20000828150319.P18147@devserv.devel.redhat.com> (raw)
In-Reply-To: <200008222054.QAA02500@penguin.mr.picker.com>; from don.russell@marconi.com on Tue, Aug 22, 2000 at 04:54:06PM -0400

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

The attached patch should fix it.

Cheers,

Matt

On Tue, Aug 22, 2000 at 04:54:06PM -0400, Don Russell wrote:
> 
>   Am I the only one who can't get xfree 4.0.1 to run on an XP1000?
> 
>   Out of the box it segvs in scanpci. I found a bandaid in
>   linux.debian.alpha from Thomas Weyergraf (thank you) that avoids the
>   segv by forcing the number of PCI busses two 2, but then I get
>   a system that will not run two screen (trap 4) 
> 
>   The machines are XP1000s with two elsa gloria (permidia2) cards running
>   either 2.2.13 or pre-patch-2.2.17-16. 

[-- Attachment #2: XFree86-4.0.1-alpha-pci.patch --]
[-- Type: text/plain, Size: 777 bytes --]

*** axpPci.c    2000/04/10 13:13:36     1.1.1.1
--- axpPci.c    2000/07/06 08:48:56
***************
*** 101,108 ****
        CARD32 val = 0xffffffff;
 
        bus = PCI_BUS_FROM_TAG(tag);
        dfn = PCI_DFN_FROM_TAG(tag);
!
        syscall(__NR_pciconfig_read, bus, dfn, off, 4, &val);
        return(val);
  }
--- 101,114 ----
        CARD32 val = 0xffffffff;
 
        bus = PCI_BUS_FROM_TAG(tag);
+       /*
+        * Workaround for kernel bug
+        * triggered when probing for PCI devices
+        */
+       if (bus >= pciNumBuses)
+           return (val);
        dfn = PCI_DFN_FROM_TAG(tag);
!
        syscall(__NR_pciconfig_read, bus, dfn, off, 4, &val);
        return(val);
  }                                                                              


  reply	other threads:[~2000-08-28 19:03 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-08-22 20:36 unsubscribe Vivek Bhatia
2000-08-22 20:54 ` X4.0.1 on an XP1000 Don Russell
2000-08-28 19:03   ` Matt Wilson [this message]
2000-08-28 20:03     ` Matt Wilson
  -- strict thread matches above, loose matches on Subject: below --
2000-08-28 17:54 Champigny, Michael
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox