Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp427984rwi; Wed, 12 Oct 2022 23:21:51 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7gsqlUZVrcja2jY+y8k5n9p0j6wGLqcPA1FC5ribN0dMPtIyNG3XRjp6aT055D8PP7GmQZ X-Received: by 2002:a17:907:9707:b0:78d:45d1:487e with SMTP id jg7-20020a170907970700b0078d45d1487emr24820286ejc.566.1665642110948; Wed, 12 Oct 2022 23:21:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665642110; cv=none; d=google.com; s=arc-20160816; b=AVxQ1vOlysQPW0/8LBUXUje1wsvzhsRcmHyNyz3tHhHk0HwXwzh3qET1nchz6hRtDG slIBelqWF3G/0hf72I2gNj7PNSpPPlOoeIo89Xafc3RVSLUThrt/WhjjEO4IE1lKuSkt dU+OWx9uxH/Pu4PhBWVmPLI/4xbKJAOXetkpBY42nIRYtnvb+kfF2qBonnfxh4iHM9oG YlzNt/yqF90q/vsdKjsayL2hwon4tIMQEJYsck630FwE7LPlq5RhmmJmcyI5Jk6Laszs c1r4dojfTgvN/VEHBVU2p/+NJpnuwpoBUX2rcZshUqfQ9uhC1TgfHC7g0TTuLxglqGXF IXRA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:subject :from:references:cc:to:content-language:user-agent:mime-version:date :message-id:sender:dkim-signature; bh=j339I4LKiSmkjT8SwB4/ylltBaTona5Ee0gHV/DqG/M=; b=qbESgGnSbbar3YeLaoukFNno10LLv7NfM3YIZnUv4GqcqOzhEyJJ7YAzUSThkh0Q6a uTkFw8xrQrh8p76n9pF14IR6/wLeQkh08s/RN40fk92Di7FOul3hOcj0YW8CV2QtJNZw J489v9OBVRvhEQHeYJ1/CHqPcGSK89nF/fvgBY6tbIQpIwjlGoXSmwBtA0OQ2AlbtGIT LPPM+vthIE1DDQ+JGMFk3RWV/P6OyCNbhBwfzSgRHJNil5ApGWWQCEA2EuCCrAo4MyLD iGbBEIIaWGfLKodNe+p2AdIBY6vgfjLepm7paa2B0M3xgO1rmUbrHgHg8GcS2V7DuRT2 9pPA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=ZYktr17U; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b3-20020aa7df83000000b00458d23f9fd5si16091247edy.242.2022.10.12.23.21.24; Wed, 12 Oct 2022 23:21:50 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=ZYktr17U; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229661AbiJMFUM (ORCPT + 99 others); Thu, 13 Oct 2022 01:20:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42848 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229591AbiJMFUK (ORCPT ); Thu, 13 Oct 2022 01:20:10 -0400 Received: from mail-pg1-x534.google.com (mail-pg1-x534.google.com [IPv6:2607:f8b0:4864:20::534]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C0E9580EA4 for ; Wed, 12 Oct 2022 22:20:06 -0700 (PDT) Received: by mail-pg1-x534.google.com with SMTP id q9so659929pgq.8 for ; Wed, 12 Oct 2022 22:20:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:in-reply-to:subject:from:references:cc:to :content-language:user-agent:mime-version:date:message-id:sender :from:to:cc:subject:date:message-id:reply-to; bh=j339I4LKiSmkjT8SwB4/ylltBaTona5Ee0gHV/DqG/M=; b=ZYktr17UImf5XPu8Ob2vrY6PSZ0nsHPOPGytdOayvYaZaz2EurrTfnNdPcah4itVBD XSawQ1egXSsmRIC+BJhzuyeCV7qah8VuI6z/mkwBdCgOn36VyhN1FlDv942YS8hJoX2g yzSQ/mM5iuhV2jMB6DPNE8hzN7+fXKwl1i6YbaSn8NFjapLJp/2LRwf/5ejJGtiYJgpA PpAnKmN+PgvogrPmSFWishhpMRNwYLvgk++EB3XxovgnFCDWB0NaB7GsrUQ64fYEhc2q bzGK17CTQUastpx/pIJnS18H1mrLdeLT5oz3b9F/tiMtW8t4lwAbR1yBiTEXVAZcAepM n/pA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:subject:from:references:cc:to :content-language:user-agent:mime-version:date:message-id:sender :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=j339I4LKiSmkjT8SwB4/ylltBaTona5Ee0gHV/DqG/M=; b=geUnz1Tp814V2R7bWDkH36lJGM/zbvnZuS5bOLcAqmqmGXAOoH0Gc6HWkA59Jpcf9B +XKce/eP4szQMEr2RY2Nu49/UXKUl+fyQ35OOy0T6Q9q1aD7nJUsWdy+d5xPBcucESaQ 4wcwPItip0AH68az3CxBZDsbX6j9FlcqP4Ao7twBy3H7prF+fIjdZWmVvyb1BbWp1d6d ZMGWYcoGJ6tM5eKZJ88h50qvnoNlvbsLBA61uS2qpT+t7YGX2g1xE76KAm+nMtTkr0oe 1+J7ckmPovQcHbd27n+4TJYPNKs07e9xCbd0jT80rM/spW5Yv7HfXo2to7Z+Oi8LRwxX 7ixQ== X-Gm-Message-State: ACrzQf1ky56pTM7CHkyXaEK64eIoB3exnBpLysOkHHItKzY8dzs8hRVD jUvXtySELdkq9+A3FkiMacg= X-Received: by 2002:a63:1e0f:0:b0:44b:796c:bc14 with SMTP id e15-20020a631e0f000000b0044b796cbc14mr27981439pge.563.1665638405394; Wed, 12 Oct 2022 22:20:05 -0700 (PDT) Received: from ?IPV6:2600:1700:e321:62f0:329c:23ff:fee3:9d7c? ([2600:1700:e321:62f0:329c:23ff:fee3:9d7c]) by smtp.gmail.com with ESMTPSA id z8-20020a170903018800b00177c488fea5sm11736743plg.12.2022.10.12.22.20.03 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 12 Oct 2022 22:20:04 -0700 (PDT) Sender: Guenter Roeck Message-ID: Date: Wed, 12 Oct 2022 22:20:01 -0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.11.0 Content-Language: en-US To: Nicholas Piggin , Michael Ellerman Cc: "Jason A. Donenfeld" , Linus Torvalds , ajd@linux.ibm.com, aneesh.kumar@linux.ibm.com, atrajeev@linux.vnet.ibm.com, christophe.leroy@csgroup.eu, cuigaosheng1@huawei.com, david@redhat.com, farosas@linux.ibm.com, geoff@infradead.org, gustavoars@kernel.org, haren@linux.ibm.com, hbathini@linux.ibm.com, joel@jms.id.au, lihuafei1@huawei.com, linux-kernel@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, lukas.bulwahn@gmail.com, mikey@neuling.org, nathan@kernel.org, nathanl@linux.ibm.com, nicholas@linux.ibm.com, pali@kernel.org, paul@paul-moore.com, rmclure@linux.ibm.com, ruscur@russell.cc, windhl@126.com, wsa+renesas@sang-engineering.com, ye.xingchen@zte.com.cn, yuanjilin@cdjrlc.com, zhengyongjun3@huawei.com References: <87edvhntv0.fsf@mpe.ellerman.id.au> <20221012141827.GA2405914@roeck-us.net> <20221012164452.GA2990467@roeck-us.net> <20221012221615.GA364143@roeck-us.net> <87bkqgmvxl.fsf@mpe.ellerman.id.au> <20221013002148.GA535574@roeck-us.net> From: Guenter Roeck Subject: Re: [GIT PULL] Please pull powerpc/linux.git powerpc-6.1-1 tag In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-1.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS, NICE_REPLY_A,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 10/12/22 22:03, Nicholas Piggin wrote: > On Thu Oct 13, 2022 at 10:21 AM AEST, Guenter Roeck wrote: >> On Thu, Oct 13, 2022 at 11:03:34AM +1100, Michael Ellerman wrote: >>> Guenter Roeck writes: >>>> On Wed, Oct 12, 2022 at 11:20:38AM -0600, Jason A. Donenfeld wrote: >>>>> >>>>> I've also managed to not hit this bug a few times. When it triggers, >>>>> after "kprobes: kprobe jump-optimization is enabled. All kprobes are >>>>> optimized if possible.", there's a long hang - tens seconds before it >>>>> continues. When it doesn't trigger, there's no hang at that point in the >>>>> boot process. >>>>> >>>> >>>> I managed to bisect the problem. See below for results. Reverting the >>>> offending patch fixes the problem for me. >>> >>> Thanks. >>> >>> This is probably down to me/us not testing with PREEMPT enabled enough. >>> >> Not sure. My configuration has >> >> CONFIG_PREEMPT_NONE=y >> # CONFIG_PREEMPT_VOLUNTARY is not set >> # CONFIG_PREEMPT is not set > > Thanks very much for helping with this. The config snippet you posted here > https://lists.ozlabs.org/pipermail/linuxppc-dev/2022-October/249758.html > has CONFIG_PREEMPT=y. How do you turn that into a .config, olddefconfig? > > I can't reproduce this so far using your config and qemu command line, > but the patch you've bisected it to definitely could cause this. I'll > keep trying... > Uuh, sorry, I think I got confused with running multiple bisects on the same branch, and took the above from a different bisect run. You are correct, PREEMPT is enabled in the configuration. Timing is definitely involved; I see the problem more often on a loaded system. To bisect it, I had to repeat the test for each bisect step several times (I set the limit to 20 retries; that gave me reliable results). Guenter