Received: by 2002:a25:b794:0:0:0:0:0 with SMTP id n20csp6821706ybh; Thu, 8 Aug 2019 06:14:39 -0700 (PDT) X-Google-Smtp-Source: APXvYqyr0hIZJt+2uTR6GiEOgHzWnVvjD1EUAHlJ7iRnSmZqRbj+kEKRrdT+bd1a9mH5/TpaJVZS X-Received: by 2002:a65:4948:: with SMTP id q8mr12574413pgs.214.1565270079473; Thu, 08 Aug 2019 06:14:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565270079; cv=none; d=google.com; s=arc-20160816; b=A5NW9Qfw1hjwHsH6VeyuJ6cp6HMuhXaBQ8lfrRxj6gSNKQh32tpAvzQ1PQbApetSOK QfquAx8DO+rxfluUI9pZ0OTS+MZN1M9aiP9/8LjKUxgcSgf4Y2X/qrpC94D/nqSXWhAY N7dwMsKqFamTjqmL3uaqC+/vKeM+g7LGvzQlpFfwilzWGUn3hKoQqcdQFRb6TcJh40tf 4iD74Qh6dsqUoaOYJPV7HiuyaGntuzM240Kt6Lwhjfi8DkpdF1TWHTGnTcRVZsU3w6QQ m/qqWPhlKTGtg2du7Wx/cGoUTRRW440UJgyVmPc9s3H1/2VqZ0YkDvamkb29xEyCeLxc 7OEw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=FoHJwwJIf4eVtKRsj+ocx2lFK0iueulXt5jhefTGvrU=; b=qT001LFpgkSnPfdE1Q5kcsoaQkE2GaxprvVV57PjiL8eFpBEn2Obb3+ZgZe43zZDdc h6nK4PbwH62P6PgBwb5xaZi3pkdk1KMpigAvMZFayjRsHH5ZtidIZR/GT8LEh+1NwCnz KXPe2hnVtgfWodRtRSsIv/oR+lxbbt9TZai2zr1tNCaQC8G7pxRi2mo6vv56dk/9ifCP w5Qzk4SDEv0JTpalKQaFKvXIVqYddMz351BXtQkE3aAv5+HkTQwlNc45gPOSt+T4YVjq J624v0cri3b4FuT5hsx1IJXPDGSasFvZ/P4TdqduduwdZWSTVxhbjL8X9I7xE+rFooSz jHDQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@c-s.fr header.s=mail header.b=LBJgE3sr; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c16si2019140pjq.20.2019.08.08.06.14.22; Thu, 08 Aug 2019 06:14:39 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@c-s.fr header.s=mail header.b=LBJgE3sr; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732885AbfHHNMG (ORCPT + 99 others); Thu, 8 Aug 2019 09:12:06 -0400 Received: from pegase1.c-s.fr ([93.17.236.30]:13801 "EHLO pegase1.c-s.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732645AbfHHNMG (ORCPT ); Thu, 8 Aug 2019 09:12:06 -0400 Received: from localhost (mailhub1-int [192.168.12.234]) by localhost (Postfix) with ESMTP id 46480f6DSMz9v099; Thu, 8 Aug 2019 15:12:02 +0200 (CEST) Authentication-Results: localhost; dkim=pass reason="1024-bit key; insecure key" header.d=c-s.fr header.i=@c-s.fr header.b=LBJgE3sr; dkim-adsp=pass; dkim-atps=neutral X-Virus-Scanned: Debian amavisd-new at c-s.fr Received: from pegase1.c-s.fr ([192.168.12.234]) by localhost (pegase1.c-s.fr [192.168.12.234]) (amavisd-new, port 10024) with ESMTP id eJxpUM1MSBdv; Thu, 8 Aug 2019 15:12:02 +0200 (CEST) Received: from messagerie.si.c-s.fr (messagerie.si.c-s.fr [192.168.25.192]) by pegase1.c-s.fr (Postfix) with ESMTP id 46480f51jZz9v098; Thu, 8 Aug 2019 15:12:02 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=c-s.fr; s=mail; t=1565269922; bh=FoHJwwJIf4eVtKRsj+ocx2lFK0iueulXt5jhefTGvrU=; h=Subject:To:Cc:References:From:Date:In-Reply-To:From; b=LBJgE3srgUmBzFYk/pZ6HqRFwW3ks9q0Y2eM2QmvCKlPCgNbkteSOS0Is5Oz/OjDy wCt6V7EHscK4nxegfqG4DJ1kDEjwk9jj7U7nZWsrumbkSQtOGfX+SRiMAiiDEs0SiD 4H/ySf6RP0IhzJ9joCLbrWkLXBFerpG9pzHFkOGc= Received: from localhost (localhost [127.0.0.1]) by messagerie.si.c-s.fr (Postfix) with ESMTP id 44F928B872; Thu, 8 Aug 2019 15:12:04 +0200 (CEST) X-Virus-Scanned: amavisd-new at c-s.fr Received: from messagerie.si.c-s.fr ([127.0.0.1]) by localhost (messagerie.si.c-s.fr [127.0.0.1]) (amavisd-new, port 10023) with ESMTP id Lj3Hc9lCWXDo; Thu, 8 Aug 2019 15:12:04 +0200 (CEST) Received: from [192.168.4.90] (unknown [192.168.4.90]) by messagerie.si.c-s.fr (Postfix) with ESMTP id D32478B870; Thu, 8 Aug 2019 15:12:03 +0200 (CEST) Subject: Re: SMP lockup at boot on Freescale/NXP T2080 (powerpc 64) To: Chris Packham , "linuxppc-dev@lists.ozlabs.org" , "mpe@ellerman.id.au" , "npiggin@gmail.com" Cc: "linux-kernel@vger.kernel.org" , Grant McEwan References: <1564970785.27215.29.camel@alliedtelesis.co.nz> <4525a16cd3e65f89741b50daf2ec259b6baaab78.camel@alliedtelesis.co.nz> <87wofqv8a0.fsf@concordia.ellerman.id.au> <1565135404.16914.5.camel@alliedtelesis.co.nz> <87o911vktx.fsf@concordia.ellerman.id.au> <1565141097.19352.12.camel@alliedtelesis.co.nz> From: Christophe Leroy Message-ID: Date: Thu, 8 Aug 2019 15:12:03 +0200 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: fr Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Le 08/08/2019 à 10:46, Christophe Leroy a écrit : > > > Le 07/08/2019 à 03:24, Chris Packham a écrit : >> On Wed, 2019-08-07 at 11:13 +1000, Michael Ellerman wrote: >>> Chris Packham writes: >>>> >>>> On Tue, 2019-08-06 at 21:32 +1000, Michael Ellerman wrote: >>>> The difference between a working and non working defconfig is >>>> CONFIG_PREEMPT specifically CONFIG_PREEMPT=y makes my system hang >>>> at >>>> boot. >>>> >>>> Is that now intentionally prohibited on 64-bit powerpc? >>> It's not prohibitied, but it probably should be because no one really >>> tests it properly. I have a handful of IBM machines where I boot a >>> PREEMPT kernel but that's about it. >>> >>> The corenet configs don't have PREEMPT enabled, which suggests it was >>> never really supported on those machines. >>> >>> But maybe someone from NXP can tell me otherwise. >>> >> >> I think our workloads need CONFIG_PREEMPT=y because our systems have >> switch ASIC drivers implemented in userland and we need to be able to >> react quickly to network events in order to prevent loops. We have seen >> instances of this not happening simply because some other process is in >> the middle of a syscall. >> >> One thing I am working on here is a setup with a few vendor boards and >> some of our own kit that we can test the upstream kernels on. Hopefully >> that'd make these kinds of reports more timely rather than just >> whenever we decide to move to a new kernel version. >> >> > > > The defconfig also sets CONFIG_DEBUG_PREEMPT. Have you tried without > CONFIG_DEBUG_PREEMPT ? > Reproduced on QEMU. CONFIG_DEBUG_PREEMPT is the trigger. Due to smp_processor_id() being called from early_init_this_mmu(), when CONFIG_DEBUG_PREEMPT is set debug_smp_processor_id() is called instead of raw_smp_processor_id(), but this is too early for debug_smp_processor_id() As this call is useless, just drop it. Can you test patch at https://patchwork.ozlabs.org/patch/1144005/ ? Thanks Christophe