NetBSD Problem Report #40674

From ignatios@laplace.cs.uni-bonn.de  Tue Feb 17 14:19:40 2009
Return-Path: <ignatios@laplace.cs.uni-bonn.de>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
	by narn.NetBSD.org (Postfix) with ESMTP id 3BB9163B8C3
	for <gnats-bugs@gnats.NetBSD.org>; Tue, 17 Feb 2009 14:19:40 +0000 (UTC)
Message-Id: <1234875803.035494.974.nullmailer@me>
Date: Tue, 17 Feb 2009 14:03:23 +0100
From: ignatios@cs.uni-bonn.de
Reply-To: ignatios@cs.uni-bonn.de
To: gnats-bugs@gnats.NetBSD.org
Subject: Ricoh 5C478 PCI-CardBus bridge gets bad Vcc request
X-Send-Pr-Version: 3.95

>Number:         40674
>Category:       kern
>Synopsis:       Ricoh 5C478 PCI-CardBus bridge gets bad Vcc request
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Feb 17 14:20:09 +0000 2009
>Closed-Date:    
>Last-Modified:  Fri Feb 20 22:01:12 +0000 2009
>Originator:     ignatios@cs.uni-bonn.de
>Release:        NetBSD 5.0_RC2
>Organization:
	Univ. of Bonn, CS dept.
>Environment:
System: NetBSD laplace1 5.0_RC2 NetBSD 5.0_RC2 (GENERIC) #0: Fri Feb 13 10:12:38 CET 2009 ignatios@random86:/var/itch/sources/5/oi386/sys/arch/i386/compile/GENERIC i386
Architecture: i386
Machine: i386
>Description:

The Cardbus Adapter in the Sony VAIO PCG-F807K gets a bad VCC request,
and is switched off:

  cbb0 at pci0 dev 12 function 0: vendor 0x1180 product 0x0478 (rev. 0x80)
  cbb1 at pci0 dev 12 function 1: vendor 0x1180 product 0x0478 (rev. 0x80)
! cbb0: bad Vcc request. sock_ctrl 0xf000ff00, sock_status 0xf000e2c3
! cbb0: disabling socket
  cbb0: cacheline 0x0 lattimer 0x10
  cbb0: bhlc 0x821000
  cbb0: secondary bus number uninitialized; try PCI_BUS_FIXUP
  cbb0: interrupting at irq 9
  cardslot0 at cbb0
  pcmcia0 at cardslot0
! cbb1: bad Vcc request. sock_ctrl 0xf000ff00, sock_status 0xf000e2c3
! cbb1: disabling socket
  cbb1: cacheline 0x0 lattimer 0x10
  cbb1: bhlc 0x821000
  cbb1: secondary bus number uninitialized; try PCI_BUS_FIXUP
  cbb1: interrupting at irq 9
  cardslot1 at cbb1
  pcmcia1 at cardslot1

The slots are completely inoperative after that - including PCMCIA
operation.

This used to work with NetBSD-4.0, NetBSD-4.0.1, NetBSD-4.0_STABLE as
of late January 2009 (and I think, with NetBSD-3).

Further information:

000:12:0: Ricoh 5C478 PCI-CardBus bridge (CardBus bridge, revision 0x80)
000:12:1: Ricoh 5C478 PCI-CardBus bridge (CardBus bridge, revision 0x80)

>How-To-Repeat:
	Boot netbsd5.0_RC2 (or RC1) kernel.
>Fix:
	unknown.

>Release-Note:

>Audit-Trail:
From: Ignatios Souvatzis <ignatios@cs.uni-bonn.de>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: kern/40674: Ricoh 5C478 PCI-CardBus bridge gets bad Vcc request
Date: Tue, 17 Feb 2009 16:24:53 +0100

 The above cbb0: bad Vcc request happens after midi2 - like this:

 |cbb0 at pci0 dev 12 function 0: vendor 0x1180 product 0x0478 (rev. 0x80)
 |cbb1 at pci0 dev 12 function 1: vendor 0x1180 product 0x0478 (rev. 0x80)
 |isa0 at pcib0
 |com0 at isa0 port 0x3f8-0x3ff irq 4: ns16550a, working fifo
 |isapnp0 at isa0 port 0x279: ISA Plug 'n Play device support
 |fdc0 at isa0 port 0x3f0-0x3f7 irq 6 drq 2
 |isapnp0: no ISA Plug 'n Play devices found
 |opl0 at yds0: model OPL3
 |midi1 at opl0: DS-1 integrated Yamaha OPL3 (CPU-intensive output)
 |mpu0 at yds0
 |midi2 at mpu0: Yamaha DS-1 MIDI UART (CPU-intensive output)
 |cbb0: bad Vcc request. sock_ctrl 0xf000ff00, sock_status 0xf000e2c3
 |cbb0: disabling socket
 |new status 0xf000e2c3
 |cbb0: cacheline 0x0 lattimer 0x10
 |...

 When I reboot from netbsd4 into netbsd5, I get a NMI instead:

 |mpu0 at yds0
 |midi2 at mpu0: Yamaha DS-1 MIDI UART (CPU-intensive output)
 |NMI ... going to debugger
 |Stopped in pid 0.1 (system) at  netbsd:bus_space_write_1+0x15:  ret
 |db{0}> t
 |bus_space_write_1(8,80006000,10,40000000,10000,0,c0c44b38,cb199624,cae87e58,c0a56d70) at netbsd:bus_space_write_1+0x15
 |pccbb_pci_callback(cb199748,10,c0a68f54,c0a58f78,c09d2a31,0,c0c44b98,c0473423,cae8fc30,cae8fc30) at netbsd:pccbb_pci_callback+0xd1
 |config_process_deferred(cae8fc30,cae8fc30,c0c44bdc,0,c0c44bdc,c0c44ba8,cae8fc30,cacafcd8,1,c0c44c00) at netbsd:config_process_deferred+0x44
 |config_attach_loc(cacafcd8,c0a57538,0,c0c44bdc,c05708a0,0,c0c44c28,c056c291,cacafcd8,c09d2c95) at netbsd:config_attach_loc+0x193
 |config_found_ia(cacafcd8,c09d2c95,c0c44bdc,c05708a0,ca94ef50,c0c44bdc,0,0,0,1) at netbsd:config_found_ia+0x32
 |mainbus_attach(0,cacafcd8,0,c047207e,c09d20fb,c09d20fb,cacafcd8,0,c09d20fb,c4a000) at netbsd:mainbus_attach+0x3a1
 |config_attach_loc(0,c0a57520,0,0,0,c4a000,c0c44c98,c0473644,0,c0a57520) at netbsd:config_attach_loc+0x163
 |config_attach(0,c0a57520,0,0,c0c41014,c41000,c0c44cb8,c0534268,c09d20fb,0) at netbsd:config_attach+0x2c
 |config_rootfound(c09d20fb,0,0,c0c41014,c41000,c0c41014,c0c44ce8,c04737ed,c0a65720,c4a000) at netbsd:config_rootfound+0x44
 |cpu_configure(c0a65720,c4a000,c0c44ce8,c04236f4,c0b02384,c0c41014,c0c44ce8,c04d4133,c0b1cda0,c0c41014) at netbsd:cpu_configure+0x28
 |configure(c0b01400,a,14,f9300,0,0,0,0,0,0) at netbsd:configure+0x3d
 |main(0,c01002cd,0,0,0,0,0,0,0,0) at netbsd:main+0x1aa
 |db{0}>

 I've been told that this suggests an uninitialized bus_space_tag in the
 cbb driver.

 Regards,
 	-is

State-Changed-From-To: open->closed
State-Changed-By: is@NetBSD.org
State-Changed-When: Fri, 20 Feb 2009 21:56:40 +0000
State-Changed-Why:
apparently the errors go away when PCI_*_FIXUP is added to the kernel,
which were in 4.0.1 GENERIC but aren't in 5 GENERIC.


State-Changed-From-To: closed->open
State-Changed-By: is@NetBSD.org
State-Changed-When: Fri, 20 Feb 2009 22:01:12 +0000
State-Changed-Why:
this shouldn't happen


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.