Subject: Re: kern/33742: Multiple bktr cards and changing PCI latency.
To: None <kern-bug-people@netbsd.org, gnats-admin@netbsd.org,>
From: Scott Presnell <srp@tworoads.net>
List: netbsd-bugs
Date: 06/15/2006 21:30:02
The following reply was made to PR kern/33742; it has been noted by GNATS.

From: Scott Presnell <srp@tworoads.net>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: kern/33742: Multiple bktr cards and changing PCI latency.
Date: Thu, 15 Jun 2006 12:52:33 -0700

 Christos Zoulas wrote:
 > The following reply was made to PR kern/33742; it has been noted by GNATS.
 > 
 > From: christos@zoulas.com (Christos Zoulas)
 > To: gnats-bugs@NetBSD.org, kern-bug-people@netbsd.org,
 > 	gnats-admin@netbsd.org, netbsd-bugs@netbsd.org
 > Cc: 
 > Subject: Re: kern/33742: Multiple bktr cards and changing PCI latency.
 > Date: Thu, 15 Jun 2006 15:36:52 -0400
 > 
 >  On Jun 15,  7:25pm, srp@tworoads.net (srp@tworoads.net) wrote:
 >  -- Subject: kern/33742: Multiple bktr cards and changing PCI latency.
 >  
 >  
 >  What are the valid values of latency? Shouldn't the driver check for those?
 >  
 >  christos
 >  
 
 (I am at the edge of my understanding).
 
 To the best of my knowledge the driver does not check except for the
 case of !latency.
 
 pcictl shows the following for a similar card but in a very different
 machine. (can't get to the machine in question at this time)
 
 PCI configuration registers:
   Common header:
     0x00: 0x036e109e 0x02800106 0x04000002 0x00804000
 
     Vendor Name: Brooktree (0x109e)
     Device Name: Bt878 Video Capture (0x036e)
     Command register: 0x0106
       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): on
       Fast back-to-back transactions: off
     Status register: 0x0280
       Capability List support: off
       66 MHz capable: off
       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: multimedia (0x04)
     Subclass Name: video (0x00)
     Interface: 0x00
     Revision ID: 0x02
     BIST: 0x00
     Header Type: 0x00+multifunction (0x80)
     Latency Timer: 0x40
     Cache Line Size: 0x00
 
   Type 0 ("normal" device) header:
     0x10: 0xf2001008 0x00000000 0x00000000 0x00000000
     0x20: 0x00000000 0x00000000 0x00000000 0x13eb0070
     0x30: 0x00000000 0x00000000 0x00000000 0x2810010a
 
     Base address register at 0x10
       type: 32-bit prefetchable memory
       base: 0xf2001000, not sized
     Base address register at 0x14
       not implemented(?)
     Base address register at 0x18
       not implemented(?)
     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: 0x0070
     Subsystem ID: 0x13eb
     Expansion ROM Base Address: 0x00000000
     Reserved @ 0x34: 0x00000000
     Reserved @ 0x38: 0x00000000
     Maximum Latency: 0x28
     Minimum Grant: 0x10
     Interrupt pin: 0x01 (pin A)
     Interrupt line: 0x0a
 
   Device-dependent header:
     0x40: 0x00000000 0x00000000 0x00000000 0x00000000
     0x50: 0x00000000 0x00000000 0x00000000 0x00000000
     0x60: 0x00000000 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