From owner-freebsd-mips@FreeBSD.ORG Thu May 7 18:57:43 2009 Return-Path: Delivered-To: freebsd-mips@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id CE42B1065673 for ; Thu, 7 May 2009 18:57:43 +0000 (UTC) (envelope-from gonzo@freebsd.org) Received: from core.tav.kiev.ua (tavex.colocall.com [62.149.10.42]) by mx1.freebsd.org (Postfix) with ESMTP id 5B8458FC08 for ; Thu, 7 May 2009 18:57:43 +0000 (UTC) (envelope-from gonzo@freebsd.org) Received: from [76.77.86.2] (helo=[10.80.5.136]) by core.tav.kiev.ua with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.52 (FreeBSD)) id 1M28K7-000OLo-FJ; Thu, 07 May 2009 21:28:00 +0300 Message-ID: <4A032821.1040800@freebsd.org> Date: Thu, 07 May 2009 11:27:45 -0700 From: Oleksandr Tymoshenko User-Agent: Thunderbird 2.0.0.21 (Windows/20090302) MIME-Version: 1.0 To: Alexandr Rybalko References: <20090506141208.9ea79d6a.ray@dlink.ua> In-Reply-To: <20090506141208.9ea79d6a.ray@dlink.ua> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Core-Spam-Level: / X-Core-Spam-Report: Spam detection software, running on the system "core.tav.kiev.ua", has identified this incoming email as possible spam. The original message has been attached to this so you can view it (if it isn't spam) or label similar future email. If you have any questions, see The administrator of that system for details. Content preview: Alexandr Rybalko wrote: > Good day to all! > > bfe driver ported as client of siba bus, it`s worked, but work not done. > To dirty code :) > > Question to FreeBSD MIPS guru: > Maybe problem in me low experience in FreeBSD internals, but I thing bus_dmamem_alloc and bus_dmamem_load > ignore "alignment" attribute passed to bus_dma_tag_create. Yes, looks like it. I just skimmed the code and will confirm/test it a bit later. [...] Content analysis details: (0.3 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.8 ALL_TRUSTED Passed through trusted hosts only via SMTP 0.0 BAYES_50 BODY: Bayesian spam probability is 40 to 60% [score: 0.5001] 2.1 AWL AWL: From: address is in the auto white-list Cc: freebsd-mips@freebsd.org Subject: Re: BCM5354 D-Link DIR-320 X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 07 May 2009 18:57:44 -0000 Alexandr Rybalko wrote: > Good day to all! > > bfe driver ported as client of siba bus, it`s worked, but work not done. > To dirty code :) > > Question to FreeBSD MIPS guru: > Maybe problem in me low experience in FreeBSD internals, but I thing bus_dmamem_alloc and bus_dmamem_load > ignore "alignment" attribute passed to bus_dma_tag_create. Yes, looks like it. I just skimmed the code and will confirm/test it a bit later. > > BFE need DMA descriptors page to be aligned to 4096, but I done this alignment only with set descriptors count from 128 to 512 > > Next question, how I can start init (without "write fault at 0x2003821"), if someone know > start_init: trying /sbin/init > trap type 3 (TLB miss (store) - kernel mode) > badaddr = 0x7fffefff, pc = 0x80243400, ra = 0x800bdc2c, sp = 0xc0659e00, sr = 0xff03, pid = 1, ASID = 0x2 > trap type 3 (TLB miss (store) - kernel mode) > badaddr = 0xc36f4000, pc = 0x80243060, ra = 0x80243208, sp = 0xc0659d60, sr = 0xff03, pid = 1, ASID = 0x2 > trap type 3 (TLB miss (store) - kernel mode) > badaddr = 0xc36b4000, pc = 0x80243060, ra = 0x80243208, sp = 0xc0659d60, sr = 0xff03, pid = 1, ASID = 0x2 > trap type 3 (TLB miss (store) - kernel mode) > badaddr = 0x10004000, pc = 0x802435c8, ra = 0x802432cc, sp = 0xc0659b28, sr = 0xff03, pid = 1, ASID = 0x2 > trap type 3 (TLB miss (store) - kernel mode) > badaddr = 0x7fffefe0, pc = 0x802435c8, ra = 0x802432cc, sp = 0xc0659bc8, sr = 0xff03, pid = 1, ASID = 0x2 > trap type 3 (TLB miss (store) - kernel mode) > badaddr = 0x7fffdfc4, pc = 0x802435c8, ra = 0x802432cc, sp = 0xc0659bc8, sr = 0xff03, pid = 1, ASID = 0x2 > trap type 25 (address error (store) - user mode) > badaddr = 0x2003821, pc = 0x4001b4, ra = 0, sp = 0x7fffded8, sr = 0x12, pid = 1, ASID = 0x2 .. skipped .. These faults should not happen. I think pmap internal data is messed in some way. So there is no simple answer, this problem requires more debugging