mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Bjorn Helgaas <bjorn.helgaas@hp.com>
To: Dave Airlie <airlied@linux.ie>
Cc: dri-devel@lists.sourceforge.net, Andrew Morton <akpm@osdl.org>,
	Evan Paul Fletcher <evanpaul@gmail.com>,
	linux-kernel@vger.kernel.org
Subject: Re: [PATCH] DRM: add missing pci_enable_device()
Date: Tue, 14 Sep 2004 08:45:59 -0600	[thread overview]
Message-ID: <200409140845.59389.bjorn.helgaas@hp.com> (raw)
In-Reply-To: <Pine.LNX.4.58.0409140026430.15167@skynet>

On Monday 13 September 2004 5:28 pm, Dave Airlie wrote:
> This causes problems when DRI and fb are loaded and you unload dri.. guess
> what happens your fb??, or it does in theory I might have time to practice
> later,
> 
> now the quick fix is to take the stealth/non-stealth code from CVS which
> we know works or we wait for Alan to finish his vga device code and we fix
> up the DRM and fb to use it ... this patch won't help anyways...

OK, I'll assume you understand the issue and will resolve it.  In the
meantime, users of DRM will have to supply "pci=routeirq".

> On Mon, 13 Sep 2004, Bjorn Helgaas wrote:
> 
> > Add pci_enable_device()/pci_disable_device.  In the past, drivers often worked
> > without this, but it is now required in order to route PCI interrupts
> > correctly.
> >
> > Evan Paul Fletcher found this problem with 2.6.9-rc1-mm4 and X.org 6.8.0
> > and verified that this patch fixes it.
> >
> > Signed-off-by: Bjorn Helgaas <bjorn.helgaas@hp.com>
> >
> > ===== drivers/char/drm/drm_drv.h 1.47 vs edited =====
> > --- 1.47/drivers/char/drm/drm_drv.h	2004-09-08 03:41:23 -06:00
> > +++ edited/drivers/char/drm/drm_drv.h	2004-09-13 12:27:16 -06:00
> > @@ -443,6 +443,8 @@
> >  	}
> >  	up( &dev->struct_sem );
> >
> > +	pci_disable_device( dev->pdev );
> > +
> >  	return 0;
> >  }
> >
> > @@ -492,6 +494,9 @@
> >  		return -EPERM;
> >  	dev->device = MKDEV(DRM_MAJOR, dev->minor );
> >  	dev->name   = DRIVER_NAME;
> > +
> > +	if ((retcode = pci_enable_device(pdev)))
> > +		return retcode;
> >
> >  	dev->pdev   = pdev;
> >  #ifdef __alpha__
> >
> 
> -- 
> David Airlie, Software Engineer
> http://www.skynet.ie/~airlied / airlied at skynet.ie
> pam_smb / Linux DECstation / Linux VAX / ILUG person
> 
> 

  reply	other threads:[~2004-09-14 14:47 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <200409131651.05059.bjorn.helgaas@hp.com>
2004-09-13 23:28 ` Dave Airlie
2004-09-14 14:45   ` Bjorn Helgaas [this message]
2004-09-14 23:12     ` Dave Airlie
2004-09-14 23:27       ` Bjorn Helgaas
2004-09-14 23:41       ` Jon Smirl
2004-09-15 12:22         ` Alan Cox
2004-09-15 15:35           ` Jon Smirl
2004-09-15 17:07             ` 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=200409140845.59389.bjorn.helgaas@hp.com \
    --to=bjorn.helgaas@hp.com \
    --cc=airlied@linux.ie \
    --cc=akpm@osdl.org \
    --cc=dri-devel@lists.sourceforge.net \
    --cc=evanpaul@gmail.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

all inboxes | Powered by JetHome®