From owner-freebsd-mips@freebsd.org Fri Mar 4 08:56:16 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 C72C89D99EA for ; Fri, 4 Mar 2016 08:56:16 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-io0-x22a.google.com (mail-io0-x22a.google.com [IPv6:2607:f8b0:4001:c06::22a]) (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 93BD5C4D for ; Fri, 4 Mar 2016 08:56:16 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: by mail-io0-x22a.google.com with SMTP id l127so55919318iof.3 for ; Fri, 04 Mar 2016 00:56:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc; bh=/aGpGTqDeU0TXkGMenVcqhgSa2z2gacxbPUzY6znZM4=; b=KhSzSypAAEQOnnO/yJ54aWE9RbKqwKWvlH1CYgGTA0DRiFFv4DTmSAldLGf3/M+ujD 5tkFIcQtLzSTTLlRJ2u8WfL1td87VVHRdV1QQ+d5y0WDMblllCpOY+9cSXlMe1ceN9dJ wGZ0T7hs9V7opOns46I9aqpKILDQ4h5xtPN+kDfvlGJPo5jHOjtU9ebwDlo9CduApfbO BYxe1Zs9VrTfPPe3pXTGY7MntT8GttQ14tx5VyLhZGllLLLDQw2GBKib1dXc0APKu8nW XW5WRJ0jhe+Mcur98VTEb+YjAlOPvZ5RwEkoVUX0TYxOmS/WRuCERUNbYAXciTcQuIF0 H4zw== 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:date :message-id:subject:from:to:cc; bh=/aGpGTqDeU0TXkGMenVcqhgSa2z2gacxbPUzY6znZM4=; b=XcuwbTTYLh7EisX8Us+8JBMgPnB4Er31R2kuk3faArPeS5wpJu+kkQWl5GsnHKkie+ mH1JB4Sai2gZLtw8FKiFvywjsxCiwBBXKCrTTxO00HO0GIvXvF7dDdAjC14yroBJW6Zk KKlI8JgX2cGNtI0ppiHton4uF75VnwJRp+teqvt1oY6xeN1LOL6KuUYH5l6E4JWmRXwl 2P1RMCk6VOKUNpqNj0agptNYku7u5h/KKAmNh7RjC6ZwP0A1ukymI5bffpWw+ptOV+EY rt6UI8Mk19JXuXRDtdCMCp/aVefMm7qjyfjQoFKqmDOtVyXYmaua/amrgCQoFFecdpAm reUw== X-Gm-Message-State: AD7BkJL7JncRbe2l4wkP/bRzAfRUvwmppKQdVo6nM4YIMCh53HLJEyzEApbtCDZ1fCVdFtFXK9heLRIJEQ0QqQ== MIME-Version: 1.0 X-Received: by 10.107.11.162 with SMTP id 34mr1857945iol.165.1457081775957; Fri, 04 Mar 2016 00:56:15 -0800 (PST) Received: by 10.36.14.19 with HTTP; Fri, 4 Mar 2016 00:56:15 -0800 (PST) In-Reply-To: References: Date: Fri, 4 Mar 2016 00:56:15 -0800 Message-ID: Subject: Re: [BCM4718] Broken interrupts From: Adrian Chadd To: Michael Zhilin Cc: "freebsd-mips@freebsd.org" Content-Type: text/plain; charset=UTF-8 X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 04 Mar 2016 08:56:17 -0000 hm, does kdb work (ie ,break to debugger at that point), or is the system hosed? is it something silly like it getting stuck servicing interrupts because they're not being correctly ACKed? -a On 3 March 2016 at 12:22, Michael Zhilin wrote: > Hi, > > I'm trying to load FreeBSD kernel on Broadcom MIPS router (ASUS RT-N16). > Here is actual dmesg: http://pastebin.com/AtEz6kc9 . But my actual problem > is broken interrupts. After enabling of interrupts in > autoconf.c:configure_final the MipsException code is called, it works fine > (including INTRNG), but cpu doesn't return to main thread (suprise!). > > I can see printf from clockintr, i.e. there are regular timer requests. But > there is no printf from main thread (autoconf.c) after enabling of > interrupts. > > Also I've tried to simplify MipsException to avoid any issue with > saving/restoring registers: > mfc0 k0, MIPS_COP_0_EXC_PC > rfe > jr k0 > > but still there is no return to main thread. > > I'm not familiar with JTAG and have no JTAG adapter for debugging. :( To be > honest, I've lost hope. > > What could possibly be wrong? Here is github branch for reference: > https://github.com/Cka3o4Huk/freebsd/tree/user/mizhka/bcm471x > > Thank you in advance, > Michael > _______________________________________________ > 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"