From patchwork Mon May 15 05:49:12 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sunil V L X-Patchwork-Id: 93871 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp6695989vqo; Sun, 14 May 2023 23:08:41 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6bW2cGS/S4TfjA/2whZgiRpLzHIBUf79KTDFi5on6DcKaThiWkspfOzi7cApYD7QLmFhzk X-Received: by 2002:a17:90a:bf16:b0:252:7f17:b0e9 with SMTP id c22-20020a17090abf1600b002527f17b0e9mr14564901pjs.41.1684130921015; Sun, 14 May 2023 23:08:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684130920; cv=none; d=google.com; s=arc-20160816; b=0Ncj5rIt1c8I8ThdoxkDOARaezLhrdVG9fjJXeOzzIC3Gnm1XuUp9fegnTQZttuE66 0iPCK6N01s4LX1bHtmd6wf/opp9yJ70lFgPRL+CUMlxTCOCPEbRUUnwmMjFHyXeq6nKa NGaF9rXcN/L7QY7h9b3J5LvQVtjbKSkCWkRGJQKN7mfmpuTKdj61p1JWc1F1Mc099oPI X0Wm7xSxQjeCPEzmlNSa6k9HE8xfJ26Gbdxkfux8nZPouKoGZDwSNshGV6BOYpfh9p4C t1gDhGW+Nl5ldFxCXjdOjq1Z8VaFj48O87K/ew6ulLnGcYrpCw7I32wYmqKIO9YtSwPB eBiw== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=g9sxg5LZ/1sJSiDItv56ESM72UWoohRRXZed1vK0StQ=; b=DPFSru+uVxBiVWFx0YETQ9QNlVdB35MT35DfOi3K2UvloU8+F1uU5R0gIhj7TPuqoX Y2KjiKzVV29f767pW3jFpe8ox4O+VmQjGesFAu6/tU8qQSOkfSe01SobtZacUUy6IrQW 9P14EiGxCYWW1Q0DFwX/Uj7CpWMdaiZj8MSNNdFPUSMzG0K0exllal3mTlwO/czDklMO oia0vuWzLEf26dWpmPvsmjMIhG/sixO2IOIEHsOeT9dZzxXFDxeReRAvfHzsd7+3zYVW a8gW+Qh812wQo1iNf5khdoqFG8bHd/mXCwnhWVgPMV9c00LeBT5fq8SyVz76ohrfaXfF yNkA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ventanamicro.com header.s=google header.b=kaAUDpih; 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: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id c19-20020a637253000000b0051aed25131asi15525349pgn.252.2023.05.14.23.08.08; Sun, 14 May 2023 23:08:40 -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=kaAUDpih; 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 S238699AbjEOFvb (ORCPT + 99 others); Mon, 15 May 2023 01:51:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56526 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237865AbjEOFuw (ORCPT ); Mon, 15 May 2023 01:50:52 -0400 Received: from mail-pg1-x534.google.com (mail-pg1-x534.google.com [IPv6:2607:f8b0:4864:20::534]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0DBB830E3 for ; Sun, 14 May 2023 22:50:10 -0700 (PDT) Received: by mail-pg1-x534.google.com with SMTP id 41be03b00d2f7-51f1b6e8179so8651975a12.3 for ; Sun, 14 May 2023 22:50:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ventanamicro.com; s=google; t=1684129810; x=1686721810; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=g9sxg5LZ/1sJSiDItv56ESM72UWoohRRXZed1vK0StQ=; b=kaAUDpih0jUhuzYDaFUs796OI6OybZW4z1nZqfRrHyrOXA+SPlupF/HJwn/i2GenOO MzyPPOY4cGJe4KaAehRUscWd+g2qgi8mDJQ9bV0QRIy55KGVkS+5Wk9vi6J00+PhKh1u N13JLuabsr15XiNoT3fNj0HSUfjN+FKWcifF7TyTZk9aAkXAbQ8gkFXOZBmwSAAvKCTL 3MYAgN0dA6NXMFKHeV4RfH99zIFnQR+6KkKrPs+T9iojC+ZpnXnY93sTEa2NEpBYdBce P9i55KrjWZeJfCegm9P77kc0uLXvZQKRDHAALHHW7sYc2vBxeu+5x3taTtSMYGVDdqR5 dNWw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684129810; x=1686721810; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=g9sxg5LZ/1sJSiDItv56ESM72UWoohRRXZed1vK0StQ=; b=kJKabr9bGX++5+aVEzxe7fUXYGeiD12trGiU+3gRHdCYqdLeOgyzaQHcziMZpITLm7 h44lfMkS7VgofkcSdFXrQvP6m5DawOsScMEYHnxFe8zHXYQnSTB8IsGXsKfvRVl8qSOi MQr5PpkdP2CX+TTAvVLxpsNIyUoxD2ZxQp6i3258gYGxw27IPEJctlanyW/acsne1w7m WWFDkTn5szxQy3sH66f/yKYsPlNZ0hBR6ML1RZOLAtqSPCE+YVkiK7K47NWasdH2CzC0 brVY8Bfm34kC8mw/QZkiUSHH+FvcZBQcUeImkuVU0Rku/gPPXfnP4i53sebTuu8gEdX3 7TWg== X-Gm-Message-State: AC+VfDxGDLWDZayVakKvpedyCmxCaTgkBMBNaMDGUvghxWXJKNW+lHMl dzo5Yn+ufXvROG4n8uaG1ytm4Q== X-Received: by 2002:a17:902:db02:b0:1ae:89a:9e with SMTP id m2-20020a170902db0200b001ae089a009emr5693741plx.61.1684129810542; Sun, 14 May 2023 22:50:10 -0700 (PDT) Received: from localhost.localdomain ([106.51.191.118]) by smtp.gmail.com with ESMTPSA id f10-20020a17090274ca00b001ab28f620d0sm12423277plt.290.2023.05.14.22.50.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 14 May 2023 22:50:10 -0700 (PDT) From: Sunil V L To: 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 , "Rafael J . Wysocki" , Len Brown , Sunil V L , Daniel Lezcano , Thomas Gleixner , Weili Qian , Zhou Wang , Herbert Xu , "David S . Miller" , Marc Zyngier , Maximilian Luz , Hans de Goede , Mark Gross , Nathan Chancellor , Nick Desaulniers , Tom Rix , "Rafael J . Wysocki" Subject: [PATCH V6 05/21] ACPI: OSL: Make should_use_kmap() 0 for RISC-V Date: Mon, 15 May 2023 11:19:12 +0530 Message-Id: <20230515054928.2079268-6-sunilvl@ventanamicro.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230515054928.2079268-1-sunilvl@ventanamicro.com> References: <20230515054928.2079268-1-sunilvl@ventanamicro.com> MIME-Version: 1.0 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-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1765939264823579970?= X-GMAIL-MSGID: =?utf-8?q?1765939264823579970?= 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 #else