Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp1086128rwr; Wed, 26 Apr 2023 09:55:09 -0700 (PDT) X-Google-Smtp-Source: AKy350aDZr8kWNo70wb7o9MzBB0jVdV5NrWVROhs/LyMduS1k+PRZNLSrKDYOcHhlq/Wi7+9wnLL X-Received: by 2002:a17:90a:48:b0:249:64da:2f41 with SMTP id 8-20020a17090a004800b0024964da2f41mr17345751pjb.4.1682528109562; Wed, 26 Apr 2023 09:55:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682528109; cv=none; d=google.com; s=arc-20160816; b=oZ6VyeBVeqjPKBB9U6UB2UZwcJ0KMO6qJbDcqCVCcmpuNq7EG2QQEFKuNHeTLQsus5 SN/WArzhiIOB7/vz+rLx6oSvZjY0POMv9fRKVn24vQTyWw/LC91pagiLyLXinObVT+HO 1Q6f5WMWWGxLsLBTqIGvi9pTuhn4uBLaSfZC4NlvvDK8tiAyXOxvsoSk0IfReyEczhyU PMFzDr08tvgw4izyrXeJNHhSqpIb0DvixYzPLnFVQdmIjFy+fxI1tlUR0HC5Gbe0MzV5 64kfCEOiXVlZnIyQk5uh/Jv/q1MjH/zSZ4x8PVc1qrIANE7UL/jL/EUo5b2ZdQw3HKG0 5aXA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:references:in-reply-to:subject:cc:to:from :dkim-signature; bh=OZ3KopB9rWj+lfmvDSD3SbibAAsFSLAL0z1nIy2Q/V4=; b=QUkskNsUBdWU3dr7Ty7osa2dEM8ZtKh/ms+P9VBAESn7lwJWZ6PKfRataTnQ//jayK uXZX656NkNHmmu1ppjFEjS3UOFmOKTNYLwRCuzgZ8JCJb8JyG9w9Djzt/hIRmA1uzNe2 mCSBHyPrWKwKadYp0MwvIiPqNgwtgjbKU95Ijl34vQHgv0gxlsro5IcKCX4/VqMbO1wl 0CUu9BkKmA15jsT2GEw3NGoFB0bcDvryUCqYNW3eFqy9mp/1gmnDWvQTPh40j+81Kxte GwRtWANl9+Zk1ZQzIbNRktT59Qe3sLaRS03gRFOlTTZ64oEcWA+KPFZx3GkMX9ZfhrsL 3WEg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=sKZvNect; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 23-20020a17090a0a9700b0024b25bc9cc2si15929736pjw.50.2023.04.26.09.54.51; Wed, 26 Apr 2023 09:55:09 -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=@kernel.org header.s=k20201202 header.b=sKZvNect; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231735AbjDZQr0 (ORCPT + 99 others); Wed, 26 Apr 2023 12:47:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49632 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231137AbjDZQrZ (ORCPT ); Wed, 26 Apr 2023 12:47:25 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F09153599; Wed, 26 Apr 2023 09:47:24 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 8C11E63787; Wed, 26 Apr 2023 16:47:24 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 60921C433EF; Wed, 26 Apr 2023 16:47:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1682527644; bh=LQIlZBXyvbpRW/w7bY9aSuiYQzw21Inh3Gti8/6IHO0=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=sKZvNectox1rW/0Kt+dYBwGPPJyiXg/4k6NvGpRI/m3H/I1ZyTCgo54bLncGXM15x 1AQ5mmloG8jT8XJd8KasLmwdRAm0lFLwFMG9Io4HoxUyA0rqXdOlBXI2zrxNazX81q WKgBJBQ6k/Peg/xD7UpueXtlG1s4ySQovbI/kAsmeZAOEU2+nZQBXhZJPyj4ph2Sfe ajKQQm31OtiPNfdz33ot6Y5A8HBt3UNngT3WVqjDNLSpv0L7cYv8dJhTI+f7bqnZZ6 DLunByvUsKVa91qD51NoR05GAJDp/UH86hcoNCzQYq4g6dMPlRBqmsSU8gSMCH5uPM G4gwU3FQgRP/w== From: =?utf-8?B?QmrDtnJuIFTDtnBlbA==?= To: 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 Cc: 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" , Sunil V L , "Rafael J . Wysocki" Subject: Re: [PATCH V4 05/23] ACPI: OSL: Make should_use_kmap() 0 for RISC-V In-Reply-To: <20230404182037.863533-6-sunilvl@ventanamicro.com> References: <20230404182037.863533-1-sunilvl@ventanamicro.com> <20230404182037.863533-6-sunilvl@ventanamicro.com> Date: Wed, 26 Apr 2023 18:47:20 +0200 Message-ID: <87a5yua8vb.fsf@all.your.base.are.belong.to.us> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-4.6 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, 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 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 si= ze) > return NULL; > } >=20=20 > -#if defined(CONFIG_IA64) || defined(CONFIG_ARM64) > +#if defined(CONFIG_IA64) || defined(CONFIG_ARM64) || defined(CONFIG_RISC= V) > /* 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. Bj=C3=B6rn