Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp3479143pxb; Mon, 4 Apr 2022 18:17:09 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzb52SIGHebz/PqcQdkWO9PXorrKBy+obNqYrcPIoMNuU26TCdompkRS2XcVpt1z7n5OaDf X-Received: by 2002:a17:90b:4f4d:b0:1c7:467c:e24e with SMTP id pj13-20020a17090b4f4d00b001c7467ce24emr1151825pjb.102.1649121429390; Mon, 04 Apr 2022 18:17:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649121429; cv=none; d=google.com; s=arc-20160816; b=vbg3eopBfL6PdavClXbqJF6uRT2wow9YL0bQ3fiGoDc8w8Tj1zUTIrWu+rUgUJp9Ak ZiPc8eUtHRnxZjxo0Y1+s/bD2crfGGfAxWewhi1B5/5m3SuMwyTg1BlT1DgBrY+YqkUx J901Zz2JqUPqB94oUqz+l0yevYfu3BK7iXLCgxyXMFSEMD+OSHcm3v9G0m2HmjQzhrwP dFxHTmucx2okw1+opjG/Kx8m/i5prDKDvzJ3QCxLSsH1JDtgcJhphtwIQ58eXT9Nqbk7 2ShSeA2GkRN4s2R7hwvQHufUGtzzUqSeHnIm2eH4j8NQJ0QyCpfrmGUtKteAajFMRDAU Yk8Q== 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:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=7yYtWMHnK6AVMZOBHrVxK81UGFtO3CpC0uUtw1WFFkw=; b=QtyLLeWhXPQui7UaJ9+6odpiqayHiuqO181GU7IAosCmllygTPayDIgm0/UhJSJx/x aN+ik71GsTY7mMTjBgfOIrn4mdUMwnokl/Ls+1qHDygtuPD5XQOWt8b7HNa1s9TmOuUs slOoKNcgCgrPIRDDxIIbiCfGLIM4gsgdI8+vA9fzR9YY13yPac742K5i8HYmZUTeEFvT Rk+4AcwVz/6kyJtXZTcrQ4XOamMAi4yJClCCvcXyQM06tI/ryQDwH7MmlaD967IO5bK8 WLT4doSn3zgWLd/aWwv/KoozIJ3wo9SXZLGwc+zEYu3XfqA8X5yrpn/P+t7hgdx4B3pc AwIg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmx.net header.s=badeba3b8450 header.b=hrVLRcJM; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=gmx.de Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id c8-20020a656188000000b0038288abe171si10901349pgv.446.2022.04.04.18.17.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Apr 2022 18:17:09 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmx.net header.s=badeba3b8450 header.b=hrVLRcJM; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=gmx.de Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id E80C41BA6A5; Mon, 4 Apr 2022 17:19:55 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241151AbiDBVbZ (ORCPT + 99 others); Sat, 2 Apr 2022 17:31:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35676 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243844AbiDBVbX (ORCPT ); Sat, 2 Apr 2022 17:31:23 -0400 Received: from mout.gmx.net (mout.gmx.net [212.227.17.22]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 364571DA44; Sat, 2 Apr 2022 14:29:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1648934951; bh=7yYtWMHnK6AVMZOBHrVxK81UGFtO3CpC0uUtw1WFFkw=; h=X-UI-Sender-Class:Date:Subject:To:Cc:References:From:In-Reply-To; b=hrVLRcJMX46o3hSrAMCOqLtAUECGQfibzskxQteSecownJnqZWbxJvKexs2G3kvU1 0cD4uBQebnO8p0OYkZtwtxpEUPAjpVnQfYLnduQfjaywZA2oLjFI4a95vOz9gkKYo5 PDOmXsHSZF7ND6lXvJnqFS+7J9RLwvuTAR5CNX5g= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from [192.168.20.60] ([92.116.149.42]) by mail.gmx.net (mrgmx104 [212.227.17.168]) with ESMTPSA (Nemesis) id 1M4s51-1nch722iE3-001xuL; Sat, 02 Apr 2022 23:29:11 +0200 Message-ID: Date: Sat, 2 Apr 2022 23:29:08 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.7.0 Subject: Re: [PATCH] parisc: Switch from GENERIC_CPU_DEVICES to GENERIC_ARCH_TOPOLOGY Content-Language: en-US To: Guenter Roeck Cc: James.Bottomley@hansenpartnership.com, linux-parisc@vger.kernel.org, linux-kernel@vger.kernel.org References: <20220401154137.GA3745625@roeck-us.net> <57e79014-25e6-62d3-27de-64797e43992b@gmx.de> <927a54f9-b413-0c71-461d-28ed9d5ece96@roeck-us.net> <6353bc69-901e-32e7-e736-00dd6a09a1ea@roeck-us.net> From: Helge Deller In-Reply-To: <6353bc69-901e-32e7-e736-00dd6a09a1ea@roeck-us.net> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K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6kDBLUiimsarls68/dl8Y fHNTH/21OH0PfvlCS+YRPuxLfj8bfXDnTNqpw5BkLW+KG7Jpg9TEEu1bxbNFTKPTdHdofssmW vJPaeiriyjcyz9t+rKo70q1QBUdrevpAwcHkahjJo2Ui6psQtYHvidgo21/eB7jQoBLhzDcDZ KkZoWFrsqBfhg984+5dZu9VEw68+Q9vGEcf/5lQ7Y60rW++gfc1XsMp99X8iuXUEBxG+Sa1Vu qwG4FUGlZp1dACYi383JySzOR5QIxicTyH8OL54KjkJoe1XRGuPkciq8hquiKsM5p7++qrIsP zATu6ovfvBvZu4= X-Spam-Status: No, score=-2.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,NICE_REPLY_A, RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE 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 4/2/22 23:27, Guenter Roeck wrote: > On 4/1/22 13:35, Helge Deller wrote: >> Hi G=C3=BCnter, >> >> * Guenter Roeck : >>> On 4/1/22 09:47, Helge Deller wrote: >>>> Hi G=C3=BCnter, >>>> >>>> On 4/1/22 17:41, Guenter Roeck wrote: >>>>> On Thu, Mar 24, 2022 at 07:46:50PM +0100, Helge Deller wrote: >>>>>> Switch away from the own cpu topology code to common code which is = used >>>>>> by ARM64 and RISCV. That will allow us to enable CPU hotplug later = on. >>>>>> >>>>>> Signed-off-by: Helge Deller >>>>> >>>>> This patch results in the following traceback when >>>>> booting generic-32bit_defconfig - SMP in qemu. >>>> >>>> That's strange, because I just built this generic-32bit_defconfig mys= elf and >>>> it boots up nicely in qemu for me. The only thing missing is CONFIG_C= GROUPS=3Dy so that >>>> systemd can start. >>>> >>> >>> Did you disable SMP (that is what - SMP was supposed to mean) ? >>> Also, note that the system does boot fine, it just spits out the warni= ng. >> >> The patch below fixes the warning for me. >> Could you try? >> > > I did, and it fixes the problem. I just sent a Tested-by: in response to > your patch. Thanks for testing !! Helge > > Guenter > >> Helge >> >> >> From: Helge Deller >> Subject: [PATCH] parisc: Re-enable GENERIC_CPU_DEVICES for !SMP >> >> In commit 62773112acc5 ("parisc: Switch from GENERIC_CPU_DEVICES to >> GENERIC_ARCH_TOPOLOGY") GENERIC_CPU_DEVICES was unconditionally turned >> off, but this triggers a warning in topology_add_dev(). Turning it back >> on for the !SMP case avoids this warning. >> >> Reported-by: Guenter Roeck >> Fixes: 62773112acc5 ("parisc: Switch from GENERIC_CPU_DEVICES to GENERI= C_ARCH_TOPOLOGY") >> Signed-off-by: Helge Deller >> >> diff --git a/arch/parisc/Kconfig b/arch/parisc/Kconfig >> index 52e550b45692..bd22578859d0 100644 >> --- a/arch/parisc/Kconfig >> +++ b/arch/parisc/Kconfig >> @@ -38,6 +38,7 @@ config PARISC >> =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 select ARCH_HAVE_NMI_SAFE_CMPXCHG >> =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 select GENERIC_SMP_IDLE_THREAD >> =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 select GENERIC_ARCH_TOPOLOGY if SMP >> +=C2=A0=C2=A0=C2=A0 select GENERIC_CPU_DEVICES if !SMP >> =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 select GENERIC_LIB_DEVMEM_IS_ALLOWED >> =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 select SYSCTL_ARCH_UNALIGN_ALLOW >> =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 select SYSCTL_EXCEPTION_TRACE >