NetBSD Problem Report #35299

From jakllsch@kirkkit.kollasch.net  Wed Dec 20 18:41:36 2006
Return-Path: <jakllsch@kirkkit.kollasch.net>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
	by narn.NetBSD.org (Postfix) with ESMTP id 3C19D63BA73
	for <gnats-bugs@gnats.NetBSD.org>; Wed, 20 Dec 2006 18:41:36 +0000 (UTC)
Message-Id: <200612201841.kBKIfWT9021923@kirkkit.kollasch.net>
Date: Wed, 20 Dec 2006 18:41:32 GMT
From: jakllsch@kollasch.net
Reply-To: jakllsch@kollasch.net
To: gnats-bugs@NetBSD.org
Subject: sbp(4) on sparc64
X-Send-Pr-Version: 3.95

>Number:         35299
>Category:       port-sparc64
>Synopsis:       large reads of a Firewire HDD on sparc64 panic the kernel
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    nakayama
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Dec 20 18:45:00 +0000 2006
>Closed-Date:    Thu Dec 10 22:24:07 +0000 2009
>Last-Modified:  Thu Dec 10 22:24:07 +0000 2009
>Originator:     Jonathan A. Kollasch
>Release:        NetBSD 4.99.6, a day or so old
>Organization:

>Environment:
>Description:

one of these:

panic("ds_len > SBP_SEG_MAX, fix busdma code");

lines in sbp.c is getting executed.

>How-To-Repeat:

attach firewire hdd, then

dd if=/dev/rsd0c of=/dev/null bs=64k count=64k

and see the lovely panic message come up :[

This works for .5KiB blocks FWIW, but that is slower.

>Fix:

unknown.

>Release-Note:

>Audit-Trail:
From: "Jonathan A. Kollasch" <jakllsch@kollasch.net>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: port-sparc64/35299: sbp(4) on sparc64
Date: Sat, 7 Mar 2009 02:00:14 +0000

 Afte some additional investigation, it appears that this issue is caused
 by the sparc64 iommu code apparently not implementing checks that prevent
 DMA segments from being larger than dm_maxsegsz.

Responsible-Changed-From-To: port-sparc64-maintainer->nakayama
Responsible-Changed-By: nakayama@NetBSD.org
Responsible-Changed-When: Thu, 10 Dec 2009 12:32:37 +0000
Responsible-Changed-Why:
I just committed the fix.


State-Changed-From-To: open->feedback
State-Changed-By: nakayama@NetBSD.org
State-Changed-When: Thu, 10 Dec 2009 12:33:35 +0000
State-Changed-Why:
Please try rev. 1.96 of iommu.c.


From: "Jonathan A. Kollasch" <jakllsch@kollasch.net>
To: gnats-bugs@NetBSD.org
Cc: nakayama@NetBSD.org, netbsd-bugs@netbsd.org, gnats-admin@netbsd.org
Subject: Re: port-sparc64/35299 (large reads of a Firewire HDD on sparc64
 panic the kernel)
Date: Thu, 10 Dec 2009 15:39:48 +0000

 New iommu.c fixes this issue.  Thanks.

State-Changed-From-To: feedback->closed
State-Changed-By: nakayama@NetBSD.org
State-Changed-When: Thu, 10 Dec 2009 22:24:07 +0000
State-Changed-Why:
Submitter confirmed the fix.


>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.