From patchwork Mon May 8 11:52:21 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: 91086 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp2104071vqo; Mon, 8 May 2023 05:10:02 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7bCVeCszBmi7qAtemU3uLSMXCaP4vKG9SrKGq8qPbhTGVDwSOaFB20UNnw/j8nxavXYyxN X-Received: by 2002:a17:902:b696:b0:1a9:bac2:21a2 with SMTP id c22-20020a170902b69600b001a9bac221a2mr9652093pls.21.1683547802577; Mon, 08 May 2023 05:10:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683547802; cv=none; d=google.com; s=arc-20160816; b=RMsG31wGONzBoXd8THA0ZepxrLCGOZGsu28GGaf8k24qs2FQP3yj44JQT/13RL0W2Z MssB0/h8iuWrdkRmSiDyNEHeGLZqy3j8SsdkPrcG6htrisndjrMVPyWaOh4l6AcDhpGZ 6vnlgq4+zOnhbQCX0aIYEWSynQq1zxWsWOU1PYSiydmmSnN8JAPVcQ4RRTJ3KX8IA/sA dE4FolLWHAMzjZNJqzPz45FpS9xtCfsB8vqYaNeGJ8xMhRBKvPta6hC7xxCfdtNFnAEy 0nsBYLhGqTiLG7Kh6iV0RQVz+aOLBniLvzvy9ETuHFp4Oumy2t4EM0uZ7CQVRcNsQe8C Jlbw== 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=n8+Wgi3VcGbj23Nbi9J5ysGzXsJwRjAdl5QmZRQEeVY5lDRemv17X8qBkmhyeFZmdX oRjMh6RrUR3SrzuFdU5bHnabY8oZ/doPrjDZwl4v7XaxuDB+ylM6u+hzRpCKp1De96ng pPgwSCHBMFNaT29idMQ8Z8IKNuNHNRfXeUEwX+ho4UGd/eak7JlEc3XATpStKD06lsVq LkpV6/7UzGPyfAhI7KY77W35sN7VmPRtXEx1mBfhxP7WzvqlMo02ZW6ENrtHqypTlIc/ WeRbmbEpIPqcs5mMF2fGZZtKyDN0VwIiWyfGA1LYwgbkUXE/hXC65G5WG+7lbmyWVu0V 0bLw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ventanamicro.com header.s=google header.b=LI6hJFWM; 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 nv1-20020a17090b1b4100b0024e3527e8f1si15134658pjb.60.2023.05.08.05.09.46; Mon, 08 May 2023 05:10:02 -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=LI6hJFWM; 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 S236456AbjEHLy1 (ORCPT + 99 others); Mon, 8 May 2023 07:54:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56950 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234236AbjEHLxs (ORCPT ); Mon, 8 May 2023 07:53:48 -0400 Received: from mail-pl1-x62c.google.com (mail-pl1-x62c.google.com [IPv6:2607:f8b0:4864:20::62c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1201B431C2 for ; Mon, 8 May 2023 04:53:36 -0700 (PDT) Received: by mail-pl1-x62c.google.com with SMTP id d9443c01a7336-1aafa03f541so43557285ad.0 for ; Mon, 08 May 2023 04:53:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ventanamicro.com; s=google; t=1683546816; x=1686138816; 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=LI6hJFWMPnsAo7nIAUuNh8he07mq1qgBALuGpR9EPgsWn0RuQgqraPJfQDVda1IPzP dxfRnz2+Y1bBoCiW6MOE7juSAhHpWJ5eHqBpRXu6YmP8VojcJM4EoeZQlUqk7qVboH0r A+Q9G5B1hyxCv4ivTDFstBhRFjJb8+NWDTdCrbOGDjkl0MIJm5n95AroRQ88lMxfgPqT JrBnULZUv/fWaGdmODxR/f+VFKjEDxTExcbSfGxpMgB1dt+zxESFqt+Wjv/vLG4AQVAS 35iYEQdCAIV6RHM2AkPKMrGfP5t56Mm4wvj4UplcEL3D8qytkfAH0uRNjcFGeSquvRNo SSAw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1683546816; x=1686138816; 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=EwfDePD0WcdKBPhDJRiIxI3WDUjP2K4sEAj1tZGt9Ipcq6ICzZlb/y/CXvABoHKiM2 BcHoWZjiO63Tczv6/A/2xvLkFRVi323rF4Ia0q+pJds0lAJF7UJJqcb6J3tyV9L74jcD CAHBx+Xf6J+eqQUMIRkCPoeuW6UvMaThX/ynTNkLBAp6Yc3beNk9XtFqQwG5Yw2cVp8Y WthkQTKm1/wGJF+/urq0gsbVbCvHNxPd3wSGjjJYCdtjO+2qpcDAZ5ZgYz2zz1YiZVMQ r/o1fttiVALMvOiXRrggy14Y8caRd+ZjUVdigtm/qJ7ZF5fokxG71JjubPECDDd20Fpx gmtQ== X-Gm-Message-State: AC+VfDwklY/TFvS3Hyvd8x5CjAdnY9t9aqd5TQqCmdUjwF7r9nd8lRCn dZ4W07UbH7miu/bsp8bTGag8WQ== X-Received: by 2002:a17:902:b085:b0:1aa:fdab:24a5 with SMTP id p5-20020a170902b08500b001aafdab24a5mr9199631plr.10.1683546816386; Mon, 08 May 2023 04:53:36 -0700 (PDT) Received: from sunil-laptop.. ([106.51.189.144]) by smtp.gmail.com with ESMTPSA id w9-20020a170902904900b001aaed524541sm7015149plz.227.2023.05.08.04.53.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 08 May 2023 04:53:36 -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 , 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 , Sunil V L , "Rafael J . Wysocki" Subject: [PATCH V5 05/21] ACPI: OSL: Make should_use_kmap() 0 for RISC-V Date: Mon, 8 May 2023 17:22:21 +0530 Message-Id: <20230508115237.216337-6-sunilvl@ventanamicro.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230508115237.216337-1-sunilvl@ventanamicro.com> References: <20230508115237.216337-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?1765327820265308522?= X-GMAIL-MSGID: =?utf-8?q?1765327820265308522?= 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