From patchwork Tue Apr 4 18:20:19 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: 79333 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp78483vqo; Tue, 4 Apr 2023 11:25:21 -0700 (PDT) X-Google-Smtp-Source: AKy350aH10SSpCYy7F8xYzWuRQ2+YEkfSXJSszRTzEzzz9JjiVa1lo0PrgIz8GRUb8gNiLRRcRnb X-Received: by 2002:a17:90b:4a50:b0:23b:4f2a:8016 with SMTP id lb16-20020a17090b4a5000b0023b4f2a8016mr3888302pjb.3.1680632721017; Tue, 04 Apr 2023 11:25:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680632720; cv=none; d=google.com; s=arc-20160816; b=zCfuqG1Byt3royn9uvSnN4Wh7g3EVpns++G+lBbs54Nbx+EZgI6xjXPjjjVncGsEfC QqrWfIVAGcHxS6A46bSHDHaQdladPPLqd/NdWqkMm2xqXVibbHj5PzwvNKsbHerYrR42 852z2LJLKAgenBb9ePWEGPF5Hbe11FkMEE4d5FYj94++4qtZkL7bNe8axG7YBjBjmmVW QPhxWDSjU5EnyBuYbZzV3gxIojWRYAQbEp6WQzYT4lnnSx57qxGCAoyDMNLZLAmWxyB/ oZCjC4mJshCdo4aCGdSmg/9s0qiHSrWXDvKfyRyHk02ekUOyL5G5NQWnxJtYjKcj0JxL 4RMw== 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=cuz+ui2aGDULX0y9Qrw8PelTEmf7/niISJjIHjw4rAqYKYWyTRlD8jcSXCmFfmjESZ sJTuC1VdijHWgpJrdfS21FpHG3QOLIDgS2XQVZ8IJhE+GkUhNOT322peM2Nc5EoFRyGP 31BOQy7JMEJRh4MXvDmGfUWqqUehEhv0kx+lCjrNdPf0rBFhytJ4myiDGyWwy4RSPqUW iPyS/hFEEFQjH0VIXFumfs9/Z2tsPhshDoaINGGzfRwjb+SQ0YJXomf9WyI7xpPdKaPS atwJDAN0LnjE6aDcw3ysMLjhckbWPRG9RmMWkEL84U4yMq0zjwmSsg2hOTwOS5GTgITY ruyg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ventanamicro.com header.s=google header.b=lS5ulDLp; 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 h15-20020a17090aa88f00b00234362da27bsi14846706pjq.127.2023.04.04.11.25.08; Tue, 04 Apr 2023 11:25:20 -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=lS5ulDLp; 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 S236356AbjDDSWG (ORCPT + 99 others); Tue, 4 Apr 2023 14:22:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38300 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236295AbjDDSVc (ORCPT ); Tue, 4 Apr 2023 14:21:32 -0400 Received: from mail-pj1-x102e.google.com (mail-pj1-x102e.google.com [IPv6:2607:f8b0:4864:20::102e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2B18D46A8 for ; Tue, 4 Apr 2023 11:21:22 -0700 (PDT) Received: by mail-pj1-x102e.google.com with SMTP id o6-20020a17090a9f8600b0023f32869993so37042911pjp.1 for ; Tue, 04 Apr 2023 11:21:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ventanamicro.com; s=google; t=1680632481; 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=lS5ulDLpGTFhacS/vmHeoNrA8WZMS9A1XD0ivXSE8k1m9UibbT/HDIYwmDj5dsTHzm khjVZGw/f+zG21uuCJRZ4P383v2CRWHkitSQ5bFYgsNJvPfImERO9jDlBRkunMUPqiAO 49W+etiQwtzIpjxUIlH2B2LaPlM0qZAlhwE88kXncU/Z/de2KE5mtcuosQjsfjlZUaAs fp6NVPnjuihlvuWzPISUE5kl1VbgFLFjOo5lYVO7n9TJiPFNm/FP+KJDT+bNIGSBwUxj nOphCmWDomst3+OiuuhOSLh6CNn9cz4rDQ9C5FEGUERClo98uzNigXIfvs9y/lcE+KJJ Q6YA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680632481; 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=wZBjWvu6p/UPGlLsRFyt4jpv2PAib8isesZ/dnewnbldL+bkVCW9MzV+/NlJbMQc+I qU3uNYaCRqtrYbDiuFrBJbr+1aaAdpFasdT9t0LD+4HH0wClmHJstQKVz8VuIEyelO6E QOdIypj2CyjS55LUVo5LQwayBT6nm4z7IIgLJ+0E3yqIPsp41J1TeSjGWBcaBMR+3zad kBmYeV6Qix445k/2nWbsD9h1Alc8Y0uNdg3V0mGZd9a54dds4PhqaA/E0r3jcH8xQXHy auS8KtwAlMf1RD87HDghlR2lV4wxUWcXbLDbXaLyDxb87QeiXcmY9S7s8yqV6BHfa7ch /uYA== X-Gm-Message-State: AAQBX9f6tTW6qG757OV7eos5mZMeHYuEgMCtEHUSW2rVnbp6LyZGRus6 DKbe/+tB6j/R9v7TuTkpY1LsuQ== X-Received: by 2002:a05:6a20:b286:b0:d9:237e:9d08 with SMTP id ei6-20020a056a20b28600b000d9237e9d08mr3003165pzb.3.1680632481697; Tue, 04 Apr 2023 11:21:21 -0700 (PDT) Received: from localhost.localdomain ([106.51.184.50]) by smtp.gmail.com with ESMTPSA id o12-20020a056a001bcc00b0062dcf5c01f9sm9018524pfw.36.2023.04.04.11.21.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 04 Apr 2023 11:21:21 -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 , 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: [PATCH V4 05/23] ACPI: OSL: Make should_use_kmap() 0 for RISC-V Date: Tue, 4 Apr 2023 23:50:19 +0530 Message-Id: <20230404182037.863533-6-sunilvl@ventanamicro.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230404182037.863533-1-sunilvl@ventanamicro.com> References: <20230404182037.863533-1-sunilvl@ventanamicro.com> MIME-Version: 1.0 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1762271136018745152?= X-GMAIL-MSGID: =?utf-8?q?1762271136018745152?= 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