From owner-freebsd-sparc64@FreeBSD.ORG Mon Oct 31 11:07:12 2011 Return-Path: Delivered-To: freebsd-sparc64@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id AB4471065673 for ; Mon, 31 Oct 2011 11:07:12 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 9A2AF8FC26 for ; Mon, 31 Oct 2011 11:07:12 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id p9VB7CX3056878 for ; Mon, 31 Oct 2011 11:07:12 GMT (envelope-from owner-bugmaster@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id p9VB7BXo056872 for freebsd-sparc64@FreeBSD.org; Mon, 31 Oct 2011 11:07:11 GMT (envelope-from owner-bugmaster@FreeBSD.org) Date: Mon, 31 Oct 2011 11:07:11 GMT Message-Id: <201110311107.p9VB7BXo056872@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: gnats set sender to owner-bugmaster@FreeBSD.org using -f From: FreeBSD bugmaster To: freebsd-sparc64@FreeBSD.org Cc: Subject: Current problem reports assigned to freebsd-sparc64@FreeBSD.org X-BeenThere: freebsd-sparc64@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the Sparc List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 31 Oct 2011 11:07:12 -0000 Note: to view an individual PR, use: http://www.freebsd.org/cgi/query-pr.cgi?pr=(number). The following is a listing of current problems submitted by FreeBSD users. These represent problem reports covering all versions including experimental development code and obsolete releases. S Tracker Resp. Description -------------------------------------------------------------------------------- f sparc/145211 sparc64 [panic] Memory modified after free o sparc/142102 sparc64 [nfs] [panic] FreeBSD 8.0 kernel panics on sparc64 whe o sparc/141918 sparc64 [ehci] ehci_interrupt: unrecoverable error, controller s sparc/139134 sparc64 kernel output corruption f sparc/108732 sparc64 ping(8) reports 14 digit time on sparc64 s sparc/107087 sparc64 [hang] system is hung during boot from CD o sparc/105048 sparc64 [trm] trm(4) panics on sparc64 o sparc/104428 sparc64 [nullfs] nullfs panics on E4500 (but not E420) o sparc/80890 sparc64 [panic] kmem_malloc(73728): kmem_map too small running o sparc/71729 sparc64 printf in kernel thread causes panic on SPARC 10 problems total. From owner-freebsd-sparc64@FreeBSD.ORG Mon Oct 31 14:26:00 2011 Return-Path: Delivered-To: freebsd-sparc64@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3F12D106566B for ; Mon, 31 Oct 2011 14:26:00 +0000 (UTC) (envelope-from etnapierala@googlemail.com) Received: from mail-ey0-f182.google.com (mail-ey0-f182.google.com [209.85.215.182]) by mx1.freebsd.org (Postfix) with ESMTP id BB9588FC0C for ; Mon, 31 Oct 2011 14:25:59 +0000 (UTC) Received: by eyd10 with SMTP id 10so6801451eyd.13 for ; Mon, 31 Oct 2011 07:25:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=sender:from:content-type:subject:date:message-id:to:mime-version :x-mailer; bh=fkQBMwYfzQlPp58pwvnzwGGr25rZHM92RvphRakhuUE=; b=O9THGE4mRz3pC6xvJkTPHFYBnO/SAUFUPKB6ha8+IuH65obhK/79Gv1Pcx+GCbi21O qhM4BKMpdhndV9MdYqUTjOM+ANzBJASidot5mTzPEpjR6GZoujleY49D0oXBxYESdtf3 mtobTtdGOOEI+CFMUGXtv3FTjX7y1AhobRFuk= Received: by 10.213.28.140 with SMTP id m12mr1257536ebc.73.1320069326742; Mon, 31 Oct 2011 06:55:26 -0700 (PDT) Received: from [192.168.119.8] (gate19.robnet.pl. [194.105.132.219]) by mx.google.com with ESMTPS id q28sm51295496eea.6.2011.10.31.06.55.24 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 31 Oct 2011 06:55:25 -0700 (PDT) Sender: =?UTF-8?Q?Edward_Tomasz_Napiera=C5=82a?= From: =?iso-8859-2?Q?Edward_Tomasz_Napiera=B3a?= Date: Mon, 31 Oct 2011 14:52:58 +0100 Message-Id: <52DDA484-9D3D-4305-9692-ADBD7C68BD0B@FreeBSD.org> To: freebsd-sparc64@freebsd.org Mime-Version: 1.0 (Apple Message framework v1251.1) X-Mailer: Apple Mail (2.1251.1) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: =?windows-1250?b?Rml4aW5nIGJ1c19kbWFfdGFnX2NyZWF0ZShOVUxMLCCF?= =?windows-1250?b?KS4=?= X-BeenThere: freebsd-sparc64@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the Sparc List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 31 Oct 2011 14:26:00 -0000 On sparc64, calling bus_dma_tag_create(9) with NULL tag will result in = instant panic due to KASSERT. Patch below fixes all the instances I could find. = It also fixes several places unrelated to sparc64, just to give a good example. Now, the problem is - the changes are trivial and mechanical, but I have = no way to test most of it, simply because I don't have hardware handled by = these drivers. And I'm not really sure how to proceed from this point. Any ideas? Patch can be found at: http://people.freebsd.org/~trasz/sparc64-bus_dma_tag_create.diff --=20 If you cut off my head, what would I say? Me and my head, or me and my = body? From owner-freebsd-sparc64@FreeBSD.ORG Mon Oct 31 19:45:03 2011 Return-Path: Delivered-To: freebsd-sparc64@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id AE500106564A; Mon, 31 Oct 2011 19:45:03 +0000 (UTC) (envelope-from marius@alchemy.franken.de) Received: from alchemy.franken.de (alchemy.franken.de [194.94.249.214]) by mx1.freebsd.org (Postfix) with ESMTP id 128378FC18; Mon, 31 Oct 2011 19:45:02 +0000 (UTC) Received: from alchemy.franken.de (localhost [127.0.0.1]) by alchemy.franken.de (8.14.4/8.14.4/ALCHEMY.FRANKEN.DE) with ESMTP id p9VJj2Ex034493; Mon, 31 Oct 2011 20:45:02 +0100 (CET) (envelope-from marius@alchemy.franken.de) Received: (from marius@localhost) by alchemy.franken.de (8.14.4/8.14.4/Submit) id p9VJj2V8034492; Mon, 31 Oct 2011 20:45:02 +0100 (CET) (envelope-from marius) Date: Mon, 31 Oct 2011 20:45:02 +0100 From: Marius Strobl To: Edward Tomasz Napiera?a Message-ID: <20111031194501.GA34421@alchemy.franken.de> References: <52DDA484-9D3D-4305-9692-ADBD7C68BD0B@FreeBSD.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <52DDA484-9D3D-4305-9692-ADBD7C68BD0B@FreeBSD.org> User-Agent: Mutt/1.4.2.3i Cc: freebsd-sparc64@freebsd.org Subject: Re: Fixing bus_dma_tag_create(NULL, ?). X-BeenThere: freebsd-sparc64@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the Sparc List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 31 Oct 2011 19:45:03 -0000 On Mon, Oct 31, 2011 at 02:52:58PM +0100, Edward Tomasz Napiera?a wrote: > On sparc64, calling bus_dma_tag_create(9) with NULL tag will result in instant > panic due to KASSERT. Patch below fixes all the instances I could find. It also fixes > several places unrelated to sparc64, just to give a good example. > > Now, the problem is - the changes are trivial and mechanical, but I have no way > to test most of it, simply because I don't have hardware handled by these drivers. > And I'm not really sure how to proceed from this point. Any ideas? > > Patch can be found at: > > http://people.freebsd.org/~trasz/sparc64-bus_dma_tag_create.diff > I prefer to leave the NULL parent tag usage in as a marker that a driver hasn't been reviewed and fixed to also work on !x86 as typically drivers only written with x86 in mind also have other bus_dma(9) and endianness related bugs, miss bus barriers, have alignment issues or even aren't actually 64-bit clean etc. Also I think it's better that a users gets a clean panic when trying to use such a driver than a randomly broken driver that could cause data corruption etc. I won't stop you from committing that patch though. It certainly doesn't matter to commit it untested for asr(4), which likely will be i386-only forever, as well as blkfront(4) and ndis(4). Marius From owner-freebsd-sparc64@FreeBSD.ORG Mon Oct 31 20:15:19 2011 Return-Path: Delivered-To: freebsd-sparc64@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D7B891065670 for ; Mon, 31 Oct 2011 20:15:19 +0000 (UTC) (envelope-from jmg@h2.funkthat.com) Received: from h2.funkthat.com (gate.funkthat.com [70.36.235.232]) by mx1.freebsd.org (Postfix) with ESMTP id B60E88FC15 for ; Mon, 31 Oct 2011 20:15:19 +0000 (UTC) Received: from h2.funkthat.com (localhost [127.0.0.1]) by h2.funkthat.com (8.14.3/8.14.3) with ESMTP id p9VJpFwu083809 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 31 Oct 2011 12:51:15 -0700 (PDT) (envelope-from jmg@h2.funkthat.com) Received: (from jmg@localhost) by h2.funkthat.com (8.14.3/8.14.3/Submit) id p9VJpFME083808; Mon, 31 Oct 2011 12:51:15 -0700 (PDT) (envelope-from jmg) Date: Mon, 31 Oct 2011 12:51:14 -0700 From: John-Mark Gurney To: Edward Tomasz Napiera?a Message-ID: <20111031195114.GU25601@funkthat.com> Mail-Followup-To: Edward Tomasz Napiera?a , freebsd-sparc64@freebsd.org References: <52DDA484-9D3D-4305-9692-ADBD7C68BD0B@FreeBSD.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <52DDA484-9D3D-4305-9692-ADBD7C68BD0B@FreeBSD.org> User-Agent: Mutt/1.4.2.3i X-Operating-System: FreeBSD 7.2-RELEASE i386 X-Files: The truth is out there X-URL: http://resnet.uoregon.edu/~gurney_j/ X-Resume: http://resnet.uoregon.edu/~gurney_j/resume.html X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.2.2 (h2.funkthat.com [127.0.0.1]); Mon, 31 Oct 2011 12:51:15 -0700 (PDT) Cc: freebsd-sparc64@freebsd.org Subject: Re: Fixing bus_dma_tag_create(NULL, ?). X-BeenThere: freebsd-sparc64@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the Sparc List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 31 Oct 2011 20:15:19 -0000 Edward Tomasz Napiera?a wrote this message on Mon, Oct 31, 2011 at 14:52 +0100: > On sparc64, calling bus_dma_tag_create(9) with NULL tag will result in instant > panic due to KASSERT. Patch below fixes all the instances I could find. It also fixes > several places unrelated to sparc64, just to give a good example. > > Now, the problem is - the changes are trivial and mechanical, but I have no way > to test most of it, simply because I don't have hardware handled by these drivers. > And I'm not really sure how to proceed from this point. Any ideas? > > Patch can be found at: > > http://people.freebsd.org/~trasz/sparc64-bus_dma_tag_create.diff Maybe posting this patch to -current and -stable would be best. It would give more people the ability to review and test, and be a good reminder to the others that this is the correct usage. I did take a quick look at the patch, and it does look correct. Thanks. -- John-Mark Gurney Voice: +1 415 225 5579 "All that I will do, has been done, All that I have, has not."