Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp375589rwr; Thu, 27 Apr 2023 02:34:41 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5jFuu5vQT20/vTuV102F+VeFW/QilF3uOMz/K2R6A01T5fIC44Bc8xLYaFXchwvSM/JW9k X-Received: by 2002:a05:6a20:1616:b0:f0:38a7:dc71 with SMTP id l22-20020a056a20161600b000f038a7dc71mr1418900pzj.4.1682588081434; Thu, 27 Apr 2023 02:34:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682588081; cv=none; d=google.com; s=arc-20160816; b=YQD5/aIarGe3kbgSG9t8nhCXQzCPGnLC7Kb+5CIVJ8flvvOJ//Ogxd/Z+1Jb8ertEN redXQQVAC/lZSfZZY4DZ08rn3hlsdcdhsYHfj/WcWT5fNz+g+eTau1Ks0/UezMDPso9n dV55b/7QLHYrIJRCsU64ad14TOkgs1PW7oJhaZEtnceAvtFCNnUBkJn5dacPeyZlHYi6 D88gGzy00XxoKJrHfe0a/cOIan/ylZA4t/pzk7wk8UGEYHZ0baM7Yv8AgFZzwO2+kzoi wb/HXCTTpMumhmeoig4vbNBfiycGBc1klzYwGFHP889xXUDSj6bLyOml6tLk3DOcFeC9 V1hw== 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-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=oSffrdiQPNNJd53oPjULTxIDSQd1IqHIbkRxrZQ6UwM=; b=sErrNIiK67iOrilKMba3GldVuReA+K48LiL1Es+ajGGtuV/bFexPQWuMnEoJUIXJaK UuYWA81kU+aFEgWd0eMYo3EH25Y2Z0G8XmXGKYtJGcG3xL8D6yVkF51xeZ1nAjZ8T15Q x1nm+c2HN2s+N2upRZvxjf/naxkw1K8E6F1a5ZTQvKM85a0OGht5ud/5sGoDalD9omHS cjs4ToMvdRLNV+fOxq3vCQrQLWOohIgSe5oqDPSWOjNXfwiBypriKPEFuP03oTvEEhpj 7eOUp/lmZV5BYDmbiqwlZX7SaykklAdzQGhbEsc07/d4+s1lJVoRRUEcY6z2N7lcdQ+7 Gfng== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ventanamicro.com header.s=google header.b="F/zn3ER6"; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-crypto-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 g123-20020a636b81000000b00528a9f56705si172637pgc.602.2023.04.27.02.34.28; Thu, 27 Apr 2023 02:34:41 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-crypto-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="F/zn3ER6"; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243331AbjD0J2M (ORCPT + 99 others); Thu, 27 Apr 2023 05:28:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50138 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243068AbjD0J2L (ORCPT ); Thu, 27 Apr 2023 05:28:11 -0400 Received: from mail-pf1-x42a.google.com (mail-pf1-x42a.google.com [IPv6:2607:f8b0:4864:20::42a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 24003C3 for ; Thu, 27 Apr 2023 02:28:10 -0700 (PDT) Received: by mail-pf1-x42a.google.com with SMTP id d2e1a72fcca58-63b5c830d5eso6507805b3a.2 for ; Thu, 27 Apr 2023 02:28:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ventanamicro.com; s=google; t=1682587689; x=1685179689; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date:from:to :cc:subject:date:message-id:reply-to; bh=oSffrdiQPNNJd53oPjULTxIDSQd1IqHIbkRxrZQ6UwM=; b=F/zn3ER6A0Q+l5tyEH+ooDZjeuYDIzMGhQDb6TqHt3Pb0O13tyjs1VtHpjpkprGKJC /mPpOvw/3pTNKBWqGKjLEVbRI8RPP/Nj4drvC53IPKkG8ev41zKBirpKVNnXLxoMRB9x N4I9/LmdwNqmjEa/08JGK62+GkonSU/kkzu5F27X4ZH/dgGROBpCwQoovtDi+cmjaLnV 0O/ST5MVcjhE++RIXI7y4d72DSrmQ4rmb5Ov98XBD3CXVd3UeFqtsk9EM2XuwNkG4PIv PSU/aDUj4zfNd4+hekg0hoGs4VGEhyFLpSNCfFtMQ79ep9TBZYA2xxQFsfX7PCOlSdyn O8aw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1682587689; x=1685179689; h=in-reply-to:content-transfer-encoding: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=oSffrdiQPNNJd53oPjULTxIDSQd1IqHIbkRxrZQ6UwM=; b=kg2XpvKiduBCsE3E5xcq5pQQt6529SX4bVfQrziiL8EL7kGgYe/b3sU+WuJKhU9T8k lpo0yDb0oT1pOqQMk+ah/TqIYucvLqMezt6ZFyowJZfN5EAR+jzHShNC1MRG75eGBVPh X4RmDlW6b2snw2Z/lGgR64g6U6YCNHycZyrt8UPMB/Pw0d8ST1kkdd4YJCfGB0LeNnv5 IKm8PagJwLvg5wHgkPkDsfDj6yC8UeIuA1a1qVwhqe8KyFIW5jcGFPlVfbHDt8Pr1kKT PYSeRuU7dWRyC1Ni6lSYClM59udI5NnTErdmXSK6lmtMD4DpdytHHL5nBWrFtzH9ROSy pJmw== X-Gm-Message-State: AC+VfDx7wJriCoBoFnzhFGgUOsuk/LpS49UHoC/inhPKB930ARFYLWPR PHu6dUxx6EOPYM3FLcYvxqmRDg== X-Received: by 2002:a05:6a00:1515:b0:640:e12a:3a20 with SMTP id q21-20020a056a00151500b00640e12a3a20mr1786945pfu.1.1682587689567; Thu, 27 Apr 2023 02:28:09 -0700 (PDT) Received: from sunil-laptop ([2409:4071:6e90:4e5:b276:2557:8da6:6c7e]) by smtp.gmail.com with ESMTPSA id u10-20020a62d44a000000b00637ca3eada8sm12756319pfl.6.2023.04.27.02.28.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 27 Apr 2023 02:28:09 -0700 (PDT) Date: Thu, 27 Apr 2023 14:57:57 +0530 From: Sunil V L To: =?utf-8?B?QmrDtnJuIFTDtnBlbA==?= Cc: 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, Jonathan Corbet , Paul Walmsley , Palmer Dabbelt , Albert Ou , Len Brown , Daniel Lezcano , Thomas Gleixner , Weili Qian , Zhou Wang , Herbert Xu , Marc Zyngier , Maximilian Luz , Hans de Goede , Mark Gross , Nathan Chancellor , Nick Desaulniers , Tom Rix , "Rafael J . Wysocki" , "David S . Miller" , "Rafael J . Wysocki" Subject: Re: [PATCH V4 05/23] ACPI: OSL: Make should_use_kmap() 0 for RISC-V Message-ID: References: <20230404182037.863533-1-sunilvl@ventanamicro.com> <20230404182037.863533-6-sunilvl@ventanamicro.com> <87a5yua8vb.fsf@all.your.base.are.belong.to.us> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <87a5yua8vb.fsf@all.your.base.are.belong.to.us> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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-crypto@vger.kernel.org Hi Bjorn, On Wed, Apr 26, 2023 at 06:47:20PM +0200, Björn Töpel wrote: > Sunil V L writes: > > > Without this, if the tables are larger than 4K, > > acpi_map() will fail. > > > > Signed-off-by: Sunil V L > > Acked-by: Rafael J. Wysocki > > --- > > drivers/acpi/osl.c | 2 +- > > 1 file changed, 1 insertion(+), 1 deletion(-) > > > > diff --git a/drivers/acpi/osl.c b/drivers/acpi/osl.c > > index 3269a888fb7a..f725813d0cce 100644 > > --- a/drivers/acpi/osl.c > > +++ b/drivers/acpi/osl.c > > @@ -276,7 +276,7 @@ acpi_map_lookup_virt(void __iomem *virt, acpi_size size) > > return NULL; > > } > > > > -#if defined(CONFIG_IA64) || defined(CONFIG_ARM64) > > +#if defined(CONFIG_IA64) || defined(CONFIG_ARM64) || defined(CONFIG_RISCV) > > /* ioremap will take care of cache attributes */ > > #define should_use_kmap(pfn) 0 > > An observation, which can be addressed later; The acpi_os_ioremap() > (called when the config above is enabled for RV), does not have an arch > specific implementation for RISC-V. The generic one calls > ioremap_cached(), which on RISC-V defaults to ioremap() -- caching > disabled/_PAGE_IO. > > That is probably not what we want, but rather something similar that > arm64 does. > Actually, for RISC-V acpi_os_ioremap() is currently a wrapper around memremap(). Sure, this can be enhanced in future if required. Thanks, Sunil