Date: Thu, 07 May 2009 11:27:45 -0700 From: Oleksandr Tymoshenko <gonzo@freebsd.org> To: Alexandr Rybalko <ray@dlink.ua> Cc: freebsd-mips@freebsd.org Subject: Re: BCM5354 D-Link DIR-320 Message-ID: <4A032821.1040800@freebsd.org> In-Reply-To: <20090506141208.9ea79d6a.ray@dlink.ua> References: <20090506141208.9ea79d6a.ray@dlink.ua>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4A032821.1040800>