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?