[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#246782: [davem@redhat.com: Fw: Re: Kernel 2.6.x breaks X on blade 100]



severity 225526 important
severity 246782 important
merge 225526 246782
tag 225526 upstream patch
thanks

On Tue, May 25, 2004 at 04:35:40PM -0400, Ben Collins wrote:
> Could you include this patch in the next X release so that mach64 cards
> work again with 2.6.x and XFree86?

Fabio Massimo di Nitto is now the package release manager, but I'll
certainly add this to the TODO list.

Thanks for the patch.

> ----- Forwarded message from "David S. Miller" <davem@redhat.com> -----
[...]
> 
> Just making sure you saw this.  Might be better to do this than hack
> the kernel bits.
> 
> Also, my creator3d X server update seems to still be in limbo?

[[ Note to self: Bug #245246 ]]

Last month, BenC and I had the following exchange:

  On Thu, Apr 29, 2004 at 02:02:42PM -0400, Ben Collins wrote:
  > On Thu, Apr 29, 2004 at 11:57:42AM -0500, Branden Robinson wrote:
  > > tag 245246 - moreinfo
  > > tag 245246 + help
  > > thanks
  > >
  > > On Thu, Apr 29, 2004 at 03:24:31PM +0200, Joerg Friedrich wrote:
  > > > Branden Robinson schrieb am Mittwoch, 28. April 2004 um 02:49:07 -0500:
  > > > >
  > > > > Does the X server stay up if you give it no clients to run?
  > > > >
  > > > > One way to test this is simply to run "X" as root.
  > > >
  > > > definitly X, I tried to run 'X' as root, the result is the same.
  > >
  > > Okay, it looks like the sunffb driver is definitely busted in testing
  > > and unstable.
  >
  > Is this minus the patches that I sent you?

  It's minus the one that wouldn't compile.

  The other one is part of the package version the submitter is using:

    * Apply patch by David S. Miller to implement support for RGB->BGR
      colorspace conversion in the X server's fb layer.
      - debian/patches/072_Xserver_fb_convert_RGB_to_BGR.diff

  A few weeks ago, I asked for an updated version of the other patch:

    * Apply patch by David S. Miller to implement XAA and Render support
      in the sunffb driver.
      - debian/patches/073_sunffb_xaa_render_fb_support.diff

  If you could get a version to me that will build I'd be happy to apply
  it.

  However, the missing symbols that are being complained have to do with
  DRI and drm, not XAA or Render.

Since then, I haven't heard anything more.

[[ Note to self: Bug #225526 / #246782 ]]

> Begin forwarded message:
> 
> Date: Wed, 19 May 2004 15:02:50 -0500
> From: "Tom 'spot' Callaway" <tcallawa@redhat.com>
> To: debian-sparc@lists.debian.org
> Subject: Re: Kernel 2.6.x breaks X on blade 100
> 
> 
> On Wed, 2004-05-19 at 09:49 +0200, Admar Schoonen wrote:
> > On Wed, May 19, 2004 at 08:53:04AM +0200, Elie De Brauwer wrote:
> > > I've been trying to install 2.6.6 (and 2.6.5) on my Sun Blade 100,
> > > everything boots well but X won't work, in my 2.4.x I got a working 
> > 
> > You'll have to apply a small patch for 2.6 kernels:
> > http://lists.debian.org/debian-sparc/2004/02/msg00013.html
> 
> Or, you could fix X. Patch attached (originally done by the Gentoo SPARC
> folks).
> 
> ~spot
> ---
> Tom "spot" Callaway <tcallawa(a)redhat*com> LCA, RHCE 
> Red Hat Sales Engineer || Aurora SPARC Linux Project Leader
> 
> "If you are going through hell, keep going."
> - Sir Winston Churchill
> 
> 
> --- xc/programs/Xserver/hw/xfree86/os-support/bus/linuxPci.c.BAD	2004-04-09 14:50:59.000000000 -0500
> +++ xc/programs/Xserver/hw/xfree86/os-support/bus/linuxPci.c	2004-04-09 14:54:14.000000000 -0500
> @@ -104,6 +104,7 @@
>  	static int	lbus,ldev,lfunc,fd = -1;
>  	int		bus, dev, func;
>  	char		file[32];
> +	struct stat	ignored;
>  
>  	bus  = PCI_BUS_FROM_TAG(tag);
>  	dev  = PCI_DEV_FROM_TAG(tag);
> @@ -111,12 +112,21 @@
>  	if (fd == -1 || bus != lbus || dev != ldev || func != lfunc) {
>  		if (fd != -1)
>  			close(fd);
> -		if (bus < 256)
> -			sprintf(file, "/proc/bus/pci/%02x/%02x.%1x",
> -				bus, dev, func);
> -		else
> -			sprintf(file, "/proc/bus/pci/%04x/%02x.%1x",
> -				bus, dev, func);
> +		if (bus < 256) {
> +			if (stat("/proc/bus/pci/00", &ignored) < 0)
> +				sprintf(file, "/proc/bus/pci/0000:%02x/%02x.%1x",
> +					bus, dev, func);
> +			else
> +				sprintf(file, "/proc/bus/pci/%02x/%02x.%1x",
> +					bus, dev, func);
> +		} else {
> +			if (stat("/proc/bus/pci/00", &ignored) < 0)
> +				sprintf(file, "/proc/bus/pci/0000:%04x/%02x.%1x",
> +					bus, dev, func);
> +			else
> +				sprintf(file, "/proc/bus/pci/%04x/%02x.%1x",
> +					bus, dev, func);
> +		}
>  		fd = open(file,O_RDWR);
>  		lbus  = bus;
>  		ldev  = dev;
> 
> 
> 
> ----- End forwarded message -----
> 
> -- 
> Debian     - http://www.debian.org/
> Linux 1394 - http://www.linux1394.org/
> Subversion - http://subversion.tigris.org/
> WatchGuard - http://www.watchguard.com/

-- 
G. Branden Robinson                |       Yesterday upon the stair,
Debian GNU/Linux                   |       I met a man who wasn't there.
branden@debian.org                 |       He wasn't there again today,
http://people.debian.org/~branden/ |       I think he's from the CIA.

Attachment: signature.asc
Description: Digital signature


Reply to: