From owner-freebsd-current@freebsd.org Fri Apr 15 14:11:58 2016 Return-Path: Delivered-To: freebsd-current@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 5F3AAAED296 for ; Fri, 15 Apr 2016 14:11:58 +0000 (UTC) (envelope-from zakharov.vv@gmail.com) Received: from mail-lf0-x241.google.com (mail-lf0-x241.google.com [IPv6:2a00:1450:4010:c07::241]) (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 D90F9182B for ; Fri, 15 Apr 2016 14:11:57 +0000 (UTC) (envelope-from zakharov.vv@gmail.com) Received: by mail-lf0-x241.google.com with SMTP id o124so16977540lfb.2 for ; Fri, 15 Apr 2016 07:11:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=GGrpKnkR8Hd2MrpGGGKDhaGm4h6JVdt0dorb1iq5c4E=; b=oYYeIsZ2koXeYmbU0ZTW4XGVl1peRdVhX7uYtlLevwXt32FN3KH7eT7V96QMo8bD5j KBQi76+EeHothg+erOBGfmUfXHyh8WQ6k6wK+/YJDVkP5BKAs1Cnv400tlDzsSwyBqM7 bztE+vpuMYtlAyvVEpmR9UR81qYE/En08EY5shQYG1VMdY6DwizLqKnMZFm1Ro06BzsB SgJgz+UZBVvep8eWOaaavsqpJ4IOPDhk/FfUk0EOtlzN4PFg/7gUEZs13m7m4ltUYAH2 +oilvPFK9YLt6lOI7BkzIco3/97TBkYnDOp7JK75Tu6aBoUaH/nHrbtrMqdh90izMuaZ f6Og== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=GGrpKnkR8Hd2MrpGGGKDhaGm4h6JVdt0dorb1iq5c4E=; b=m0OyTnF1l7Z47lVRF3pikHQ/z6T5GqacgEEYW1Zz7YiZmQfDFnKCyp7sCuDu1Dl4fj CUmOnIWQK5xcZlG76t0CQKNnhsEFBBbYvqdXFnAHp7H9mLDkfBWYZc873gQs2tK1Ktbw mWLyqv2PXquLarNfcRb5MEffAu3XpXxMVAz766qi1aQ4GpEgRTnr/nuTLpvLEJ7NHkAx qCNfxna/dWwr0USyR3vOSFa1qcQC6G7YuYPau+viA/yW56boWGdU7feNQ0rb/+TUmFDB QGFDLMLV5iwydEzFh1gCknvLmXqJO0EmvlIn1jS0nySWYsnpAPR2osY1yGSzjiTf1YCq RxWw== X-Gm-Message-State: AOPr4FWFMzRzzVoN4MUusSNiKUgpa+4VjaqUhg60SSB9gzQXkTQJBtOwP5C2hOpUFAt0Cw== X-Received: by 10.25.22.87 with SMTP id m84mr3626857lfi.118.1460729516106; Fri, 15 Apr 2016 07:11:56 -0700 (PDT) Received: from localhost ([81.19.73.103]) by smtp.gmail.com with ESMTPSA id dw3sm5521516lbc.2.2016.04.15.07.11.55 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 15 Apr 2016 07:11:55 -0700 (PDT) Date: Fri, 15 Apr 2016 17:11:54 +0300 From: Vladimir Zakharov To: Konstantin Belousov Cc: freebsd-current@freebsd.org Subject: Re: GENERIC-NODEBUG panics, GENERIC does not Message-ID: <20160415141154.GA1522@vzakharov> References: <20160415102644.GA1380@vzakharov> <20160415105055.GI2422@kib.kiev.ua> <20160415113818.GA1613@vzakharov> <20160415125341.GJ2422@kib.kiev.ua> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20160415125341.GJ2422@kib.kiev.ua> X-Operating-System: FreeBSD 11.0-CURRENT amd64 X-PGP-Key: http://vzakharov.ru/pubkey.asc User-Agent: Mutt/1.6.0 (2016-04-01) X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 15 Apr 2016 14:11:58 -0000 On Fri, Apr 15, 2016, Konstantin Belousov wrote: > On Fri, Apr 15, 2016 at 02:38:18PM +0300, Vladimir Zakharov wrote: > > On Fri, Apr 15, 2016, Konstantin Belousov wrote: > > > On Fri, Apr 15, 2016 at 01:26:44PM +0300, Vladimir Zakharov wrote: > > > > Hello > > > > > > > > Setting 'kern.eventtimer.periodic = 1' in /etc/sysctl.conf leads to > > > > GENERIC-NODEBUG panic. GENERIC loads without problems. > > > > So do GENERIC-NODEBUG as of r297245. > > > > > > > > https://imgur.com/0DtDU3m > > > > > > > > $ uname -a > > > > > > > > FreeBSD vzakharov 11.0-CURRENT FreeBSD 11.0-CURRENT #4 r298037: Fri Apr > > > > 15 12:27:40 MSK 2016 root@vzakharov:/home/obj/usr/src/sys/GENERIC-NODEBUG amd64 > > > > > > > > > > I cannot reproduce it locally. > > > Please provide me verbose dmesg from the successfull boot on your machine. > > > > GENERIC with kern.eventtimer.periodic=1: http://pastebin.com/raw/TB0TKSje > > GENERIC-NODEBUG: http://pastebin.com/raw/05CchraS > I need _verbose_ dmesg. I need the reports about LAPICs initializations, > with register dumps. dmesg before patching (kern.eventtimer.periodic is not set to avoid panic): http://pastebin.com/raw/CnJ911gX dmesg for patched kernel (kern.eventtimer.periodic = 1): http://pastebin.com/raw/9Azz9LxT > > > > > > Also, for the panic, show me the output of the same data as on the > > > screenshot and the output of 'show registers'. > > > > https://imgur.com/pO8Yc3w > Ok, this seems to be yet another case of missed count mode divisor > initialization. Please try the patch at the end of the messasge. Patched kernel doesn't panic anymore. Thanks. > > > Also please load your kernel into kgdb and do > > > list *lapic_et_start+0x281 > By 'your kernel' I mean 'your panicing kernel'. It _was_ panicing kernel. Than not sure what you meant. There is no any dump/core files because dumpdev is not configured yet at the moment of panic. What should I do to retrieve the required information? I've simply run: $ kgdb /boot/kernel/kernel -- Regards, | "In theory there is no difference between theory Vladimir Zakharov | and practice. In practice there is."- Yogi Berra