From owner-freebsd-arm@freebsd.org Wed Aug 19 14:42:57 2015 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 2E7929BC164 for ; Wed, 19 Aug 2015 14:42:57 +0000 (UTC) (envelope-from onwahe@gmail.com) Received: from mail-ig0-x231.google.com (mail-ig0-x231.google.com [IPv6:2607:f8b0:4001:c05::231]) (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 E98986B1; Wed, 19 Aug 2015 14:42:56 +0000 (UTC) (envelope-from onwahe@gmail.com) Received: by igxp17 with SMTP id p17so106953221igx.1; Wed, 19 Aug 2015 07:42:56 -0700 (PDT) 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:content-type; bh=PD9S4stf+LYwjC9X2MX8R/zClFU0ngmrPf1Um8ik6gk=; b=rTYOwgDpoRkQ4kG7FXfb6Mt2wYYqAPWNvL2TfqhPvo2jL3M9SFDxCEmuw41b8JH/bs jGkILPxbh5S1uEU8UbjBf6hZWa5zYpv/vO/OqmUmsINm1SQ1r8PHDf2BbW84j8De21xV AzcKfVJsJ/FUls7PW31pmCkw8BCxX21ZIkeZHR4BeQ7H77Iiu9uLnFyrWa9pr6wIowDr g4Qwr/cmu3LKanNtHYmY9nODfNU5BIJf+xh3glkXlTAK0w+Kk/xjMWSfoZYVjhQlSdUG GVaaV7mIqX47PXVCGgyDhZuaRqLbl6x/P5KamMUBa8I5n5q3QSrEhRoF5dTmHVZXvrht Qz5w== MIME-Version: 1.0 X-Received: by 10.50.66.166 with SMTP id g6mr26620585igt.19.1439995376266; Wed, 19 Aug 2015 07:42:56 -0700 (PDT) Received: by 10.64.239.196 with HTTP; Wed, 19 Aug 2015 07:42:56 -0700 (PDT) In-Reply-To: <20150819134708.GJ79354@hades.panopticon> References: <20150819002103.GC79354@hades.panopticon> <1439944961.242.150.camel@freebsd.org> <20150819013834.GD79354@hades.panopticon> <20150819120753.GH79354@hades.panopticon> <20150819134708.GJ79354@hades.panopticon> Date: Wed, 19 Aug 2015 16:42:56 +0200 Message-ID: Subject: Re: Instability likely related to new pmap on Cubieboard A10 From: Svatopluk Kraus To: Dmitry Marakasov Cc: Adrian Chadd , "freebsd-arm@FreeBSD.org" , Ian Lepore Content-Type: multipart/mixed; boundary=047d7bd6b082e211da051dab0ccd X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 19 Aug 2015 14:42:57 -0000 --047d7bd6b082e211da051dab0ccd Content-Type: text/plain; charset=UTF-8 On Wed, Aug 19, 2015 at 3:47 PM, Dmitry Marakasov wrote: > * Svatopluk Kraus (onwahe@gmail.com) wrote: > >> Great! I'm hunting this kind of panic for long time, but it never was >> so stable. Can you send me "show pmap addr" output from kdb after >> panic - pmap address is in panic message. > > https://people.freebsd.org/~amdmi3/pmap.log > Can you apply debug patch I'm attaching, enable KTR in your config with KTR_PMAP mask at least, and send me output of the following commands after panic : show ktr show pmap Output from ktr should be scrolled until a line like "pmap_remove_page - pmap xxx" will be in there. Thanks, Svata --047d7bd6b082e211da051dab0ccd Content-Type: text/plain; charset=US-ASCII; name="pmap_debug1.diff" Content-Disposition: attachment; filename="pmap_debug1.diff" Content-Transfer-Encoding: base64 X-Attachment-Id: f_idiw1cca0 SW5kZXg6IHN5cy9hcm0vYXJtL3BtYXAtdjYtbmV3LmMKPT09PT09PT09PT09PT09PT09PT09PT09 PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PQotLS0gc3lzL2FybS9h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