From owner-freebsd-arm@freebsd.org Thu Nov 16 21:45:45 2017 Return-Path: Delivered-To: freebsd-arm@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 B1D0EDEA677 for ; Thu, 16 Nov 2017 21:45:45 +0000 (UTC) (envelope-from hhwang@sent.com) Received: from out4-smtp.messagingengine.com (out4-smtp.messagingengine.com [66.111.4.28]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 833B96C0B7; Thu, 16 Nov 2017 21:45:45 +0000 (UTC) (envelope-from hhwang@sent.com) Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.nyi.internal (Postfix) with ESMTP id AF52220DD9; Thu, 16 Nov 2017 16:45:43 -0500 (EST) Received: from web4 ([10.202.2.214]) by compute3.internal (MEProxy); Thu, 16 Nov 2017 16:45:43 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sent.com; h=cc :content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-sender :x-me-sender:x-sasl-enc; s=fm2; bh=2x7Omx8BDxzcxtDsVggV3QDQyKAux z3lpgDvMcOVP2o=; b=kt2RhGjUg11/rQRF8w2O4UJR7I1ThW0bbCveZ96TNBniY no0qRs/Uqsba1SHsD4QQvCpucDrn/iJlJx5NqPwk8uorFmYaVLHJ0RIGh4dcxrPZ R9mZAnLezeuR1Jvx/U7q/3VsFG91XY7c13tF9ATF5PEmtoMPdXp1ce4hIBingJZq AgWg+pUMtAMZBPU6pY5CBYRPpBldML5/GwFRRroMHUPy05R2TdZKyvxPECGAiP9H 1br/g7kHQtfokaQsJwhrUJ2PYp97WdAEb0faEdJ09jlC32ReQeXpvcdrxSgQGMnX evEJlePTnZauQIg6TS07sqDgLP266/Nbo1PQMPwfg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; bh=2x7Omx 8BDxzcxtDsVggV3QDQyKAuxz3lpgDvMcOVP2o=; b=LH63DNwng3dNs6S1qZX6rO GnUViPSfXxB8pk1BxBtseOQs9RyPXImp8x+EwJ9L4mOcRY22SK1x4ottPKjNErya MyYiRMttE1t3vF8FHHX3DJa53YY+ZDtvzK+kxlDOMteZ9lq7jk4mXmx6jDzq5jZf ziOuygWQJJsh4suAk6xNks7GxU9Ep4jDHsy/0A1sHd7/66HRzEEPpJJ0e1LRTgea Lw2RQlP8N9HO8KHiG1IktcoZ+uvcS9BTnsU4NF8CrsI8+W4NC5Zag8Az6neQSB0F zTnL0A9HeolVY0qbJ1b9+WFGp8lS1jV9mYdVPzswqRRDDlurJnBSML9/Pa3OLZ3w == X-ME-Sender: Received: by mailuser.nyi.internal (Postfix, from userid 99) id 82CDCBAB63; Thu, 16 Nov 2017 16:45:43 -0500 (EST) Message-Id: <1510868743.702301.1175172960.770CBAE8@webmail.messagingengine.com> From: Hyun Hwang To: Ian Lepore Cc: freebsd-arm@freebsd.org MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="utf-8" X-Mailer: MessagingEngine.com Webmail Interface - ajax-4ef04c51 In-Reply-To: <1510852630.99235.381.camel@freebsd.org> Subject: Re: Raspberry Pi 2 - I2C related kpanic @ r324169 Date: Thu, 16 Nov 2017 16:45:43 -0500 References: <1510787451.4128802.1173973544.3E3E0813@webmail.messagingengine.com> <1510852630.99235.381.camel@freebsd.org> X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 16 Nov 2017 21:45:45 -0000 On Thu, Nov 16, 2017, at 12:17, Ian Lepore wrote: > I broke something. :) Please do not take my message was to blame you; I greatly appreciate what you did to support the repeated start condition on RPi. > Is it easily reproducible? This happens quite randomly, but I managed to reproduce it several times more, especially within gdb(1)-ing my application. > I don't expect witness to add anything; given the FAR value, it looks like a NULL pointer problem. With WITNESS (using standard sys/arm/conf/RPI2 kernel configuration), at least the panic gave me the exact instruction as well as additional messages: ``` Kernel page fault with the following non-sleepable locks held: exclusive sleep mutex bcm_bsc (bcm_bsc) r = 0 (0xc3d2f688) locked @ /usr/src/sys/arm/broadcom/bcm2835/bcm2835_bsc.c:480 stack backtrace: Fatal kernel mode data abort: 'Translation Fault (L2)' on read ... snip (very similar to the one in the previous message) ... Stopped at bcm_bsc_fill_tx_fifo+0x74: ldrb r3, [r2] db> ``` Hope this helps a bit more. > could you do a "bt" at the db> propmt and paste that output, please? Unfortunately, when the kernel panics, the USB keyboard stops working so I cannot type anything... I will try to find other means that can give input to the debugger. (maybe UART serial?) Thank you. -- Hyun Hwang