From owner-freebsd-current@freebsd.org Sun May 22 07:14:13 2016 Return-Path: <owner-freebsd-current@freebsd.org> 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 3D8BDB44531 for <freebsd-current@mailman.ysv.freebsd.org>; Sun, 22 May 2016 07:14:13 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id 27ECB1BC6 for <freebsd-current@freebsd.org>; Sun, 22 May 2016 07:14:13 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: by mailman.ysv.freebsd.org (Postfix) id 23E01B44530; Sun, 22 May 2016 07:14:13 +0000 (UTC) Delivered-To: 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 211B9B4452D for <current@mailman.ysv.freebsd.org>; Sun, 22 May 2016 07:14:13 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from kib.kiev.ua (kib.kiev.ua [IPv6:2001:470:d5e7:1::1]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 8F8331BC2; Sun, 22 May 2016 07:14:12 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from tom.home (kib@localhost [127.0.0.1]) by kib.kiev.ua (8.15.2/8.15.2) with ESMTPS id u4M7E7Jl094281 (version=TLSv1 cipher=DHE-RSA-CAMELLIA256-SHA bits=256 verify=NO); Sun, 22 May 2016 10:14:07 +0300 (EEST) (envelope-from kostikbel@gmail.com) DKIM-Filter: OpenDKIM Filter v2.10.3 kib.kiev.ua u4M7E7Jl094281 Received: (from kostik@localhost) by tom.home (8.15.2/8.15.2/Submit) id u4M7E7Rl094280; Sun, 22 May 2016 10:14:07 +0300 (EEST) (envelope-from kostikbel@gmail.com) X-Authentication-Warning: tom.home: kostik set sender to kostikbel@gmail.com using -f Date: Sun, 22 May 2016 10:14:07 +0300 From: Konstantin Belousov <kostikbel@gmail.com> To: Andrey Chernov <ache@freebsd.org> Cc: current@freebsd.org Subject: Re: Recent -current cpucontrol panic: [cpuctl, 129]: cannot bind to target cpu 1 Message-ID: <20160522071407.GE89104@kib.kiev.ua> References: <065e93bb-5269-b726-52cc-2f961656e5f9@freebsd.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <065e93bb-5269-b726-52cc-2f961656e5f9@freebsd.org> User-Agent: Mutt/1.6.1 (2016-04-27) X-Spam-Status: No, score=-2.0 required=5.0 tests=ALL_TRUSTED,BAYES_00, DKIM_ADSP_CUSTOM_MED,FREEMAIL_FROM,NML_ADSP_CUSTOM_MED autolearn=no autolearn_force=no version=3.4.1 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on tom.home X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: Discussions about the use of FreeBSD-current <freebsd-current.freebsd.org> List-Unsubscribe: <https://lists.freebsd.org/mailman/options/freebsd-current>, <mailto:freebsd-current-request@freebsd.org?subject=unsubscribe> List-Archive: <http://lists.freebsd.org/pipermail/freebsd-current/> List-Post: <mailto:freebsd-current@freebsd.org> List-Help: <mailto:freebsd-current-request@freebsd.org?subject=help> List-Subscribe: <https://lists.freebsd.org/mailman/listinfo/freebsd-current>, <mailto:freebsd-current-request@freebsd.org?subject=subscribe> X-List-Received-Date: Sun, 22 May 2016 07:14:13 -0000 On Sun, May 22, 2016 at 09:47:08AM +0300, Andrey Chernov wrote: > With microcode_update_enable="YES" in rc.conf: > > db:0:kdb.enter.panic> show pcpu > cpuid = 1 > dynamic pcpu = 0xfffffe02ac1fd300 > curthread = 0xfffff8000ae75a00: pid 736 "cpucontrol" > curpcb = 0xfffffe023754eb80 > fpcurthread = none > idlethread = 0xfffff800022b5000: tid 100003 "idle: cpu1" > curpmap = 0xfffff8000af02138 > tssp = 0xffffffff80c1cf78 > commontssp = 0xffffffff80c1cf78 > rsp0 = 0xfffffe023754eb80 > gs32p = 0xffffffff80c237d0 > ldt = 0xffffffff80c23810 > tss = 0xffffffff80c23800 > db:0:kdb.enter.panic> bt > Tracing pid 736 tid 100121 td 0xfffff8000ae75a00 > kdb_enter() at kdb_enter+0x3b/frame 0xfffffe023754e620 > vpanic() at vpanic+0x19f/frame 0xfffffe023754e6a0 > kassert_panic() at kassert_panic+0x126/frame 0xfffffe023754e710 > cpuctl_do_cpuid_count() at cpuctl_do_cpuid_count+0x85/frame > 0xfffffe023754e750 > cpuctl_ioctl() at cpuctl_ioctl+0x389/frame 0xfffffe023754e800 > devfs_ioctl_f() at devfs_ioctl_f+0x156/frame 0xfffffe023754e860 > kern_ioctl() at kern_ioctl+0x204/frame 0xfffffe023754e8c0 > sys_ioctl() at sys_ioctl+0x171/frame 0xfffffe023754e9a0 > amd64_syscall() at amd64_syscall+0x28e/frame 0xfffffe023754eab0 > Xfast_syscall() at Xfast_syscall+0xfb/frame 0xfffffe023754eab0 > --- syscall (54, FreeBSD ELF64, sys_ioctl), rip = 0x8009778ea, rsp = > 0x7fffffffe788, rbp = 0x7fffffffe7d0 --- Show verbose dmesg of your boot. What scheduler do you use ? In the fired KASSERT, add printout of td->td_oncpu and show the updated panic message.