Port-macppc archive

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

Re: X server through the xsrc sets on PowerBook G4 with NVidia card



   Date: Sun, 21 Mar 2010 19:29:35 -0400
   From: Michael <macallan%netbsd.org@localhost>

   Probably Yet Another Dumbass Linuxism - unlike NetBSD Linux lets you  
   map unused PCI space, and apparently the driver doesn't bother  
   checking if the mmap() succeeded. What we need is the pcictl dump  
   output for the graphics chip ( or alternatively, your /var/log/Xorg. 
   0.log, it should provide the relevant information as well ), I'd  
   almost bet the driver tries to map more than the graphic chip's BARs  
   cover.

$ pcictl pci0 list
000:11:0: Apple Computer UniNorth AGP Bridge (host bridge)
000:16:0: NVIDIA product 0x0179 (VGA display, revision 0xa3)
$ pcictl pci0 dump -d 16
PCI configuration registers:
  Common header:
    0x00: 0x017910de 0x02b00006 0x030000a3 0x0000f800

    Vendor Name: NVIDIA (0x10de)
    Device ID: 0x0179
    Command register: 0x0006
      I/O space accesses: off
      Memory space accesses: on
      Bus mastering: on
      Special cycles: off
      MWI transactions: off
      Palette snooping: off
      Parity error checking: off
      Address/data stepping: off
      System error (SERR): off
      Fast back-to-back transactions: off
      Interrupt disable: off
    Status register: 0x02b0
      Capability List support: on
      66 MHz capable: on
      User Definable Features (UDF) support: off
      Fast back-to-back capable: on
      Data parity error detected: off
      DEVSEL timing: medium (0x1)
      Slave signaled Target Abort: off
      Master received Target Abort: off
      Master received Master Abort: off
      Asserted System Error (SERR): off
      Parity error detected: off
    Class Name: display (0x03)
    Subclass Name: VGA (0x00)
    Interface: 0x00
    Revision ID: 0xa3
    BIST: 0x00
    Header Type: 0x00 (0x00)
    Latency Timer: 0xf8
    Cache Line Size: 0x00

  Type 0 ("normal" device) header:
    0x10: 0x91000000 0x94000008 0x00000008 0x00000000
    0x20: 0x00000000 0x00000000 0x00000000 0x001010de
    0x30: 0x90000000 0x00000060 0x00000000 0x01050130

    Base address register at 0x10
      type: 32-bit nonprefetchable memory
      base: 0x91000000, not sized
    Base address register at 0x14
      type: 32-bit prefetchable memory
      base: 0x94000000, not sized
    Base address register at 0x18
      type: 32-bit prefetchable memory
      base: 0x00000000, not sized
    Base address register at 0x1c
      not implemented(?)
    Base address register at 0x20
      not implemented(?)
    Base address register at 0x24
      not implemented(?)
    Cardbus CIS Pointer: 0x00000000
    Subsystem vendor ID: 0x10de
    Subsystem ID: 0x0010
    Expansion ROM Base Address: 0x90000000
    Capability list pointer: 0x60
    Reserved @ 0x38: 0x00000000
    Maximum Latency: 0x01
    Minimum Grant: 0x05
    Interrupt pin: 0x01 (pin A)
    Interrupt line: 0x30

  Capability register at 0x60
    type: 0x01 (Power Management, rev. 1.0)
  Capability register at 0x44
    type: 0x02 (AGP, rev. 2.0)

  PCI Power Management Capabilities Register
    Capabilities register: 0x0002
      Version: 1.1
      PME# clock: off
      Device specific initialization: off
      3.3V auxiliary current: self-powered
      D1 power management state support: off
      D2 power management state support: off
      PME# support: 0x00
    Control/status register: 0x0000
      Power state: D0
      PCI Express reserved: off
      No soft reset: off
      PME# assertion disabled
      PME# status: off

  Device-dependent header:
    0x40: 0x001010de 0x00200002 0x1f000017 0x00000000
    0x50: 0x00000001 0x00000000 0x0023d6ce 0x0000000f
    0x60: 0x00024401 0x00000000 0x00000000 0x00000000
    0x70: 0x00000000 0x00000000 0x00000000 0x00000000
    0x80: 0x00000000 0x00000000 0x00000000 0x00000000
    0x90: 0x00000000 0x00000000 0x00000000 0x00000000
    0xa0: 0x00000000 0x00000000 0x00000000 0x00000000
    0xb0: 0x00000000 0x00000000 0x00000000 0x00000000
    0xc0: 0x00000000 0x00000000 0x00000000 0x00000000
    0xd0: 0x00000000 0x00000000 0x00000000 0x00000000
    0xe0: 0x00000000 0x00000000 0x00000000 0x00000000
    0xf0: 0x00000000 0x00000000 0x00000000 0x00000000


Home | Main Index | Thread Index | Old Index