Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp862002rwl; Wed, 5 Apr 2023 08:38:06 -0700 (PDT) X-Google-Smtp-Source: AKy350b3YuTJZnfI9aRCNL+vZlQtnvYBfoRNxLPmC89LueE1lp72ScwUOUB21ceSxH9xUQj5Ir05 X-Received: by 2002:a17:906:a04c:b0:931:75f5:36db with SMTP id bg12-20020a170906a04c00b0093175f536dbmr3126477ejb.11.1680709085952; Wed, 05 Apr 2023 08:38:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680709085; cv=none; d=google.com; s=arc-20160816; b=wHUKy5EgJGRBTc7kjf4F2qQlFM8AKDjkITM14Vf27ZgoBNn3WJ+koydGMBLwZffCS3 5cY+UgY2+GXTr6N6jeM3H4m1Yaqxo00zd3DHEbChZ/tB93wC6J1BccTz7XPrbDJPMCWG gsvswt+kon8gvwwX+kXHllLPtxiEXbEilDyronTs4mA6Gccl+Z8KmR/RxxTxWAUI/uSH 2w3AOzGkJsVsvMcI2D/NILgdrTPrYdYnt3Y81z/5aqovRFIcExNRlSjKCDFo5Nlys6WX J8abBk+wrjvFkwIsTlv/KS47h8UNzs5T+ft9cOTci7ZmMCJ5venYI4dV8tfWNAvlz8ba wY5w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=T5c+mNA6XY8wWRzkfZN072IgeaVS0xxX0AuG9Rc8s3Y=; b=icHr3JDwb8DonNc10OO2BU4K00vy66AwsJ49y00FMTpyVpU0Xec6OTLjYhvcGD69FZ Ootau8yNLRkFWsblsPjBzMeyslmfe0BPSsCEH91rTAkKNE+ZkTT1LNCq3EX5dYXUrkgw Mz/HSqJhnZtvJq18nM280mGxqXihn4CiHtAoW+vK2+4xKq093A8PUp6QfmhmkzEd0dJX rGpS+l6o5sum2cjXSy117N6jlByK+sOYdU6N3pov8WaYIE8l/f3DuZ8nbFezkqeEiE3T 9Fo6aDByAN1gZQq/WJMIWBz+d1fOv2TSzjDCWVLBvzsSTGWqVpofl0/jKL+A9jfR6laZ iMCQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ventanamicro.com header.s=google header.b=hxKiJK15; 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 i19-20020a17090685d300b008d6385c40c4si1717746ejy.696.2023.04.05.08.37.41; Wed, 05 Apr 2023 08:38:05 -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=@ventanamicro.com header.s=google header.b=hxKiJK15; 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 S231799AbjDEPhH (ORCPT + 99 others); Wed, 5 Apr 2023 11:37:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41612 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237845AbjDEPhF (ORCPT ); Wed, 5 Apr 2023 11:37:05 -0400 Received: from mail-wm1-x332.google.com (mail-wm1-x332.google.com [IPv6:2a00:1450:4864:20::332]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0AC5D5BB1 for ; Wed, 5 Apr 2023 08:37:04 -0700 (PDT) Received: by mail-wm1-x332.google.com with SMTP id i5-20020a05600c354500b003edd24054e0so23992353wmq.4 for ; Wed, 05 Apr 2023 08:37:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ventanamicro.com; s=google; t=1680709022; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=T5c+mNA6XY8wWRzkfZN072IgeaVS0xxX0AuG9Rc8s3Y=; b=hxKiJK155vYGbPwdzRmDCUiWyNZbG3wukTsi0I6XWU1DKdfAnkq5nWIAm3DB4EHZU1 hirqMIbrtM5n61hEYk2ikAcX1fckKmRWVnKXogyDi7RnUYcodZWpte/nbyhVpCDMzzXU /QcLUWksBNjDMT8zYtMqtFv0QPFkZiqzGEI6fjgwWIURijiUBJUIdp5eJVEqIUh6ADuU 8qBGePxy0bgwur+kNXliiyRCD9so9ZDfN7yG+Le+ZkUPJ/iPAGYbbT7ufog5IAKFtaKE crVgIE49ef3OQ4wz2me77wt9zM9ZryNZw+pXCpIiFaWduEdNywug/sDDujT48AXZN0P+ JPyA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680709022; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=T5c+mNA6XY8wWRzkfZN072IgeaVS0xxX0AuG9Rc8s3Y=; b=u9MvXWMDFehyk1YyL+Fpnx7thpoNvG9di0VDVNBWiY1IOGP4A7+ki5aZ1IspNfiiaD 9cZ6Gj1Bpp4oHtHcX+cPQLvZac4SxUclYcVWDEtV03OrbNOCi8B8NnVPiA8lSmHd22ul E5TNj/X6wsBOaW1YHLLXz9ltkhglWf/CwwBT1J4VE2RktJvk8akahfEvDuEb1fC5ZIrE xxTh5srEZ1WesP7Nq0IDR0hUlxiEHuqua90iMPjQnGk3cl0Q0BpdlwX3z4M/qqWYPk+x ALCbcgYkT+CpI4CGKNUOn1uthpj5qTHkHRURemQ4WldLusP5a5EaSoqW/dZkU/c/Jz94 HYjA== X-Gm-Message-State: AAQBX9csomndNfPCU3Re0Zr86yan/3JjpMlH7qNkIJjqKv4wLt6TIG7L zIhe4KoYaLzQCBJQk5cyVlwzyA== X-Received: by 2002:a1c:7501:0:b0:3dc:433a:e952 with SMTP id o1-20020a1c7501000000b003dc433ae952mr4664257wmc.33.1680709022536; Wed, 05 Apr 2023 08:37:02 -0700 (PDT) Received: from localhost (2001-1ae9-1c2-4c00-20f-c6b4-1e57-7965.ip6.tmcz.cz. [2001:1ae9:1c2:4c00:20f:c6b4:1e57:7965]) by smtp.gmail.com with ESMTPSA id r6-20020a05600c35c600b003ede03e4369sm2582875wmq.33.2023.04.05.08.37.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 05 Apr 2023 08:37:02 -0700 (PDT) Date: Wed, 5 Apr 2023 17:37:01 +0200 From: Andrew Jones To: Conor Dooley Cc: Sunil V L , linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org, linux-acpi@vger.kernel.org, linux-crypto@vger.kernel.org, platform-driver-x86@vger.kernel.org, llvm@lists.linux.dev, "Rafael J . Wysocki" , "Rafael J . Wysocki" , Tom Rix , Weili Qian , Herbert Xu , Jonathan Corbet , Marc Zyngier , Daniel Lezcano , Albert Ou , Mark Gross , Hans de Goede , Paul Walmsley , Thomas Gleixner , Nathan Chancellor , Nick Desaulniers , Zhou Wang , Palmer Dabbelt , Len Brown , Maximilian Luz , "David S . Miller" Subject: Re: [PATCH V4 13/23] RISC-V: cpufeature: Add ACPI support in riscv_fill_hwcap() Message-ID: References: <20230404182037.863533-1-sunilvl@ventanamicro.com> <20230404182037.863533-14-sunilvl@ventanamicro.com> <20230404-promotion-scarce-7c69ff7e5f99@spud> <20230405-compel-slinky-2fe11b4bf0b3@spud> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230405-compel-slinky-2fe11b4bf0b3@spud> X-Spam-Status: No, score=-0.2 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS autolearn=unavailable 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 Wed, Apr 05, 2023 at 03:31:24PM +0100, Conor Dooley wrote: > On Wed, Apr 05, 2023 at 07:05:42PM +0530, Sunil V L wrote: > > On Tue, Apr 04, 2023 at 09:57:19PM +0100, Conor Dooley wrote: > > > On Tue, Apr 04, 2023 at 11:50:27PM +0530, Sunil V L wrote: ... > > > > - if (of_property_read_string(node, "riscv,isa", &isa)) { > > > > - pr_warn("Unable to find \"riscv,isa\" devicetree entry\n"); > > > > - continue; > > > > + if (acpi_disabled) { > > > > + node = of_cpu_device_node_get(cpu); > > > > + if (node) { > > > > + rc = of_property_read_string(node, "riscv,isa", &isa); > > > > > > Hmm, after digging in the previous patch, I think this is actually not > > > possible to fail? We already validated it when setting up the mask of > > > possible cpus, but I think leaving the error handling here makes things > > > a lot more obvious. > > > > > Yeah, do you prefer to merge these patches again since only in this > > patch, we change the loop to for_each_possible_cpu() from > > for_each_of_cpu_node() which actually makes riscv_of_processor_hartid() > > not useful? > > Yah, all 3 of us mistakenly thought that that was an unrelated cleanup > on the last revision, but clearly it is not. > Squash it back IMO, sorry for my part in the extra work generated. Yup, please squash back in. Sorry about that, Sunil! drew