From owner-freebsd-mips@freebsd.org Fri Nov 11 15:21:02 2016 Return-Path: Delivered-To: freebsd-mips@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id CA6EDC3BB84 for ; Fri, 11 Nov 2016 15:21:02 +0000 (UTC) (envelope-from mizhka@gmail.com) Received: from mail-wm0-x22c.google.com (mail-wm0-x22c.google.com [IPv6:2a00:1450:400c:c09::22c]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 6C1971751; Fri, 11 Nov 2016 15:21:02 +0000 (UTC) (envelope-from mizhka@gmail.com) Received: by mail-wm0-x22c.google.com with SMTP id f82so97722693wmf.1; Fri, 11 Nov 2016 07:21:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=n5edTGd80Vj6si/TZHzP0B8Ej+nU1R0EXWfGjju8egg=; b=aDcu5lHKP6rttsqFJib6wamoR+N+1YYsP0aT501Xldfw/+bzfnVFN51j7V22dmInNW sgR1a+V66S5OTKXNWW1kSa9Y/6R02uve549AkyQpFUUk0MCuyvvZxaOfRRTF6V9XohF2 aqePLc3AZ0e0hTKDB6DAoeY3fBdeSBFGQ13curxjdnR6ka11a+FSeABdOEwoQxErNjFm sH732gt3F95Ub+IBqNhFDpHjZ97k2Y3oKUDLSnV1JEQZDTpYkyyg9jiXh5ZiGXrdEspy HF2aKvzz+yJ1RZf8RpQ/MHpGAJ+i5TXC3v3D4rpKictrUnOVGd74vMJh3mo57o5VpA8L pIfg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=n5edTGd80Vj6si/TZHzP0B8Ej+nU1R0EXWfGjju8egg=; b=Q7kbnCilJPBSop0FOsagGmlBhMRthMN+ke8a47NTSsrPUH1H++yGcBnCLXXrBgrem3 VdQq/xftbo0M7oeq21VwmrShfqveVQB/r8GTj0hHyeou5kov4F02DP2C1Ah4evvIAwqx wOJJf+CQ3+75Lj7LdOQQG/c7a9pxRs5yIXbkfDeeHXUSZqpcjOY9QkOeoZ2xaKSt13y3 KIyQqkIYtDoMMvVgaR9fRuQy2Yw7vyQV/R2+NNQMlny6jFCq3Z6/cDtNnik11vIfKHTO ArCukcXOwYnkWbEmGCBFHAoxgwbFVK7xJVQ/xdSLInEcpHSpUKtgYyGa1Rfih/7d/F+R e2lA== X-Gm-Message-State: ABUngvfHEHih76v4sp3Hj4nUW1Q6y+4Vwj7/Hr5SlzZ33f7VgUvMpg3HoTcel9xlN7SJr4dqDAG55NCYLyJD+g== X-Received: by 10.28.221.11 with SMTP id u11mr2036876wmg.91.1478877660792; Fri, 11 Nov 2016 07:21:00 -0800 (PST) MIME-Version: 1.0 Received: by 10.28.152.131 with HTTP; Fri, 11 Nov 2016 07:20:59 -0800 (PST) In-Reply-To: References: From: Michael Zhilin Date: Fri, 11 Nov 2016 18:20:59 +0300 Message-ID: Subject: Re: mips24k (and others?) no longer works To: Adrian Chadd Cc: "freebsd-mips@freebsd.org" , Brooks Davis , Ruslan Bukin Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.23 X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 11 Nov 2016 15:21:02 -0000 Hi, geom is fine. badaddr = 0x533f44, pc = 0x4001e4, ra = 0, sp = 0x7ffeee90, sr = b413, pid = 1, ASID = 3 bio_request(0x809bd240) from 0x80956b00(ffs.ufs/FBSD) to 0x80894900(ufs/FBSD) cmd 1 bio_request(0x809bd120) from 0x80956dc0(flash/spi0s.rootfs.uzip) to 0x80894d80(flash/spi0s.rootfs.uzip) cmd 1 g_io_deliver(0x809bd120) from 0x80956dc0(flash/spi0s.rootfs.uzip) to 0x80894d80(flash/spi0s.rootfs.uzip) cmd 1 error 0 off 19902464 len 4096 g_io_deliver(0x809bd240) from 0x80956b00(ffs.ufs/FBSD) to 0x80894900(ufs/FBSD) cmd 1 error 0 off 19902464 len 4096 vm_fault(0x80852a50 (pmap 0x80852b0c), 0x533000 (0x533f44), 1, 0) -> 0 at pc 0x4001e4 0x533f44: 0 <----- to be 0x00557ee0 trap type 22 (TLB miss (load or instr. fetch) - user mode) badaddr = 0, pc = 0x4001e8, ra = 0, sp = 0x7ffeee90, sr = b413, pid = 1, ASID = 3 ... db> x/wx 0x533f44 0x533f44: 557ee0 My next check will be CPU cache (KSEG0 vs KSEG1). I'll check it tomorrow ;) Thanks! On Fri, Nov 11, 2016 at 5:49 PM, Michael Zhilin wrote: > Hi Adrian, > > I see bad fault a bit earlier: just after dozens of cycles of "init": at > pc = 0x4001e4, but it cou > > What found by me: after page fault on file objects the page content is > filled with small delay, i.e. it results in race. If you add small piece of > work (black-hole-cpu) after fault (or context switch?), then the page is > filled with data (magic). > > I want to find some time this weekend (tomorrow) to trace geom layer > (ktrace?). > > Thanks! > > On Fri, Nov 11, 2016 at 11:07 AM, Adrian Chadd > wrote: > >> Hiya, >> >> So mips on the atheros 24kc and 74kc parts is just completely borked. >> It varies between "this doesn't even boot" to "all I get are spams of >> failure exceptions", and if i back out a variety of hilarity, i end up >> with a userland that just plainly hangs after userland runs for a >> little while. No CTRL-T, nothing obvious in ddb. But hey, 'cont' in >> ddb now works. >> >> The working release for me is 304552, which is when I finished >> updating the atheros config files to use std.XXXX instead of >> ARXXXX_BASE. >> >> It's going to take some time to find the first point where things >> broke. It's likely going to be a combination of everyone's recent mips >> platform changes (most of the exceptions, the not-booting-at-all) and >> other unrelated kernel changes to other areas (likely the hang.) >> >> I ask that people hold off on the MIPS side of work until I figure out >> what's going on here. >> >> Also - I really do suggest you invest $40 in a carambola 2 so you have >> the AR9331 as a reference platform to do MIPS testing on. These >> mips24kc, FPU-less cut down SoCs are in a lot of things and having now >> heavily broken support for them is kinda sad. :( It's also putting a >> cramp on my ability to finish my net80211 and 11ac changes as a whole >> lot of it depends upon working AP hardware to test against. >> >> Thanks, >> >> >> -adrian >> _______________________________________________ >> freebsd-mips@freebsd.org mailing list >> https://lists.freebsd.org/mailman/listinfo/freebsd-mips >> To unsubscribe, send any mail to "freebsd-mips-unsubscribe@freebsd.org" >> > >