Received: by 2002:a05:6359:6284:b0:131:369:b2a3 with SMTP id se4csp162049rwb; Fri, 4 Aug 2023 10:36:15 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFD/ABekPk7CYzsXd4cVDUppdNVihHX/CYklJDefmZ0ZKf9aCquiNYMa281Iife3A+8ThZS X-Received: by 2002:a05:6808:5d6:b0:3a7:5e46:484d with SMTP id d22-20020a05680805d600b003a75e46484dmr2871794oij.57.1691170575740; Fri, 04 Aug 2023 10:36:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691170575; cv=none; d=google.com; s=arc-20160816; b=sAUqr3ehQQnlap8tD9H7leULTTa06T1poC2VI1F2SgqVCsnf/PwnrZ52ESve2XzNLs rMdL1FYJ2biPzCWx+lP3nW9lq3Xtff6i6uDXdarwzqK6lWeYb7uX6b8Wj63SaRh5F/6F rsKKV2bMKC5afsYtWpVT0gPpKA6g7uS1xfYgzV3Ft+X7yoKdmMFXC8oCGPTn2CfkQrl1 oD2p07Gy8q9Gw0grFUHyBwuAhFfI57CspYKeMm5qzwSrlqhnRYLeWRn+dXf/U8D4oLK7 C9uZmzRnz+ptTC+apJjmifkvo2mWyEIGmbbLJkrcHqJiMzAZN7GzVGsporrqd9r1PNIP fClA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:organization:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=e4ukGre4kg84OtpVVIwCLklBVToO6AxciBI78qtzzCI=; fh=WXOQx4QTC6MHZZDUpT0FK5PicoIZPa2PQZeHQlhoLIs=; b=DKw4pKEtSL+kzmzPd2ox4fxLlcn0EP++XwjqzR1tqg3eS8GMlLWHn3vMe0kh4RqMNx Zwl0ELcvunqIBfEK/wgmrSI9wb/yuWxcP785H+84BM8G6QZBAjlHMh6WWDc2kiI1YKfS o+A/1vqmShlUifkqS4lCwdgn3YY2ael14GbN1UQafwNfp9ZssX/k07cYCZHuWSQm/Sfk iHB1k4z4pO0lHz7gu7SFXt87frnmeKU/CIQU7U7hiHs8mYPz7rJ9+Omj6WbKq8o5kUa8 SekQ/fnCuBirm1LcU3queWyUn4Gmx3c4coIR1YDV2ix82IYoXhOyhy6sb1M7Q22jzDWa R9rQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=nVAj6Ki+; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id v10-20020a63610a000000b00563e1deea74si2037206pgb.319.2023.08.04.10.35.58; Fri, 04 Aug 2023 10:36:15 -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=@intel.com header.s=Intel header.b=nVAj6Ki+; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231326AbjHDQ4j (ORCPT + 99 others); Fri, 4 Aug 2023 12:56:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33504 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229675AbjHDQ4i (ORCPT ); Fri, 4 Aug 2023 12:56:38 -0400 Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.88]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4C4A31994; Fri, 4 Aug 2023 09:56:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1691168197; x=1722704197; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=gpDidnsvALbETLwYUDIaqkBOrRmLDkWhHtFiUIEPsrc=; b=nVAj6Ki+r/HOcAoZl0tVkX9yVOmFL5BwoY+SdflYbP2ebK9ZRyGrXPZh RfbKMEZq/ugTq+c0ZNTRmaUxXtqX1UKQEUdcV32RgNgC8Yf83AaP1GL8j AysF0YJXaxTD5IL+bLG+cv8YSXOXz5z9QDKTJgCUV6zae6V3fbDEeD8n3 AUsrfCG9K5ziIqYePqtB8fiCLqul/dBUPxiEWasTqcdDcoGayXVm4T/Zn rJtUHHEfX+ZlWR783UV+MoDwcAnWo+7yXzJfxjQCe9wgL1rQRNQy7h37P zZBDRqk+nspXIDyCzN7ndZh+OlYrRaqRasaUysLRwsyzVPHG5IUnkbjCD g==; X-IronPort-AV: E=McAfee;i="6600,9927,10792"; a="401156666" X-IronPort-AV: E=Sophos;i="6.01,255,1684825200"; d="scan'208";a="401156666" Received: from orsmga007.jf.intel.com ([10.7.209.58]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Aug 2023 09:56:36 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10792"; a="723705867" X-IronPort-AV: E=Sophos;i="6.01,255,1684825200"; d="scan'208";a="723705867" Received: from smile.fi.intel.com ([10.237.72.54]) by orsmga007.jf.intel.com with ESMTP; 04 Aug 2023 09:56:29 -0700 Received: from andy by smile.fi.intel.com with local (Exim 4.96) (envelope-from ) id 1qRy6E-00HEmR-1a; Fri, 04 Aug 2023 19:56:26 +0300 Date: Fri, 4 Aug 2023 19:56:26 +0300 From: Andy Shevchenko To: Conor Dooley Cc: Sunil V L , linux-doc@vger.kernel.org, linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-acpi@vger.kernel.org, linux-pci@vger.kernel.org, Jonathan Corbet , Paul Walmsley , Palmer Dabbelt , Albert Ou , Catalin Marinas , Will Deacon , "Rafael J . Wysocki" , Len Brown , Daniel Scally , Heikki Krogerus , Sakari Ailus , Greg Kroah-Hartman , Daniel Lezcano , Thomas Gleixner , Anup Patel , Marc Zyngier , Bjorn Helgaas , Robert Moore , Haibo Xu , Andrew Jones , Conor Dooley , Atish Kumar Patra Subject: Re: [RFC PATCH v1 09/21] RISC-V: cacheflush: Initialize CBO variables on ACPI systems Message-ID: References: <20230803175916.3174453-1-sunilvl@ventanamicro.com> <20230803175916.3174453-10-sunilvl@ventanamicro.com> <20230804-dreamy-unharmed-a502d02af35a@spud> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_NONE, URIBL_BLOCKED autolearn=ham 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 Fri, Aug 04, 2023 at 07:52:56PM +0300, Andy Shevchenko wrote: > On Fri, Aug 04, 2023 at 04:19:27PM +0100, Conor Dooley wrote: > > On Fri, Aug 04, 2023 at 05:59:51PM +0300, Andy Shevchenko wrote: > > > On Fri, Aug 04, 2023 at 02:50:34PM +0530, Sunil V L wrote: > > > > On Fri, Aug 04, 2023 at 08:56:29AM +0300, Andy Shevchenko wrote: > > > > > On Thu, Aug 03, 2023 at 11:29:04PM +0530, Sunil V L wrote: ... > > > > > > +#include > > > > > > > > > > What do you need this for? > > > > > > > > > > > #include > > > > > > > > > When CONFIG_ACPI is disabled, this include is required to get > > > > acpi_get_cbo_block_size(). > > > > > > How is it useful without ACPI being enabled? > > > > It is not, as evidenced by the `return -EINVAL;`. > > > > > If it's indeed > > > (in which I do not believe), better to make sure you have it > > > avaiable independently on CONFIG_ACPI. Otherwise, just put > > > #ifdef CONFIG_ACPI around the call. > > > > Let's not litter the code with ifdeffery please where it can be easily > > avoided. > > Including asm/acpi.h looks to me as a "let's avoid it with a hack that it > is uglier than ifdeffery". Sorry, but ifdeffery for ACPI, with all my full > agreement with the statement that it's not good, is the correct way to fix > this. On the other hand this is an arch code and I see precedents of using the headers together, alas, it seems not better to me that ugly ifdeffery. So, I leave it to the respective maintainers to decide. -- With Best Regards, Andy Shevchenko