lkml.org 
[lkml]   [2001]   [Feb]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Date
SubjectRe: 2.4.x, drm, g400 and pci_set_master
On  8 Feb 01 at 12:15, Alex Deucher wrote:

> I wasn't talking about the drm driver I was talking about programming
> the PCI controller directly using setpci 1.0.0 .... or some such
> command, I can't remember off hand. Which turns on busmastering if it
> is off for a particular device.

OK.

> Jeff Hartmann wrote:
> >
> > The DRM drivers don't know about the pcidev structure at all. All this
> > is done in the XFree86 ddx driver. You can probably add something like
> > this to MGAPreInit (after pMga->PciTag is set, in my copy its
> > mga_driver.c:1232 yours might be at a slightly different line number
> > depending on the version your using):
> >
> > {
> > CARD32 temp;
> > temp = pciReadLong(pMga->PciTag, PCI_CMD_STAT_REG);
> > pciWriteLong(pMga->PciTag, PCI_CMD_STAT_REG, temp |
> > PCI_CMD_MASTER_ENABLE);
> > }

Jeff, do you say that drm code does not use dynamic DMA mapping, which is
specified as only busmastering interface for kernels 2.4.x, at all? Now
I understand what had one friend in the mind when he laughed when I said
that it must be easy to get it to work on Alpha...
Thanks anyway for all suggestions,
Petr Vandrovec
vandrove@vc.cvut.cz

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:08    [W:0.034 / U:4.068 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site