NetBSD-Bugs archive

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

Re: kern/52126 (mvsata Marvell 88SX6081 panics on boot)



The following reply was made to PR kern/52126; it has been noted by GNATS.

From: Patrick Welche <prlw1%cam.ac.uk@localhost>
To: gnats-bugs%netbsd.org@localhost
Cc: 
Subject: Re: kern/52126 (mvsata Marvell 88SX6081 panics on boot)
Date: Fri, 1 Nov 2019 17:59:50 +0000

 On Thu, Oct 31, 2019 at 03:25:01PM +0000, Patrick Welche wrote:
 >  include "arch/amd64/conf/GENERIC"
 >  options         DEBUG
 >  options         LOCKDEBUG
 >  options         ATADEBUG
 >  options         ATADEBUG_MASK=0x10
 >  options         MVSATA_DEBUG
 >  options         WDCNDELAY_DEBUG <--------------- !!!!!
 
 The locking issue is caused by WDCNDELAY_DEBUG.
 
 wdcwait() asserts that the channel is locked, and calls __wdcwait.
 Only ifdef WDCNDELAY_DEBUG does __wdcwait call ata_queue_get_active_xfer
 which tries to lock the already locked channel.
 
 https://nxr.netbsd.org/xref/src/sys/dev/ic/wdc.c#1243
 
 Removing WDCNDELAY_DEBUG removes the locking issue.
 
 Any idea where the status values in
 
   __wdcwait: timeout (time=1001), status d0 error 0 (mask 0x40 bits 0x40)
                                   ^^^^^^^^^
 
 are defined?
 


Home | Main Index | Thread Index | Old Index