From patchwork Thu Feb 16 18:20:28 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: 58187 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp456873wrn; Thu, 16 Feb 2023 10:23:10 -0800 (PST) X-Google-Smtp-Source: AK7set/Y2VxHSNB2WfS+avnpQC03XoXhlKfaTspaBZLG6ZVrkcHLWu/NyBVNhsMYqGBveMVcIQfU X-Received: by 2002:a17:902:d4c8:b0:198:e4a2:f88c with SMTP id o8-20020a170902d4c800b00198e4a2f88cmr3120634plg.11.1676571789752; Thu, 16 Feb 2023 10:23:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1676571789; cv=none; d=google.com; s=arc-20160816; b=JwpMg3om/H6PIejyt98stjNSkMTCMS39Vf/Zg+pV0XD8SHQfPxqavavD13jdI6Gw+/ u977f+0v2gYftY96STm+JbG6iZqMrayRkar2PwWlz9YIDL7L+FvAscCn17Nia6tAvvEv 6IeHVsEqJLAqjm8dabyjPU4jpxEV6Tp5fOYTwjUC9R05RgInQr5JTNQMbSaNMSX4jdQP bQQqkJ2bYdv0iRucIHRiG2ZGtH9JbGqPfbHaDZcAi9eKMYCQhIsZF1MelCMijNP31EcE gpqJMEXVS61WA2Bn2GLkpQZWmEY9jtOkF99bjLxrUD6met+hFSUvXWRQKaMNrW87Thbz 4/JA== 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=FiunIY+3rfBaUknl4RAm2RM2rp3wEzbW0ok0UcpbGVczvOJkV8bq5nB1AjEU7t60Hy 3NbPPwgjwfGJjw9uxxrJeLUOMkTUEYpKTRLQFuU2nWsndPoUqiK4JxuS/yxzYMrCqCCR agLRiXQe0qSQ9RpOPuykxaoSGcY8OT6XzlcMxXP2Z+cfa2yTDBH+CsEqUGx2NLeftD/C ebpodJVT2SVcKsp92ZEw+uzY1uK3WdfJbQSWebLUIfjj5DPzu3SyFlPkF+CrzhdTdibf vP0VtQ7TlUVP/R/tb6uvaejXtE3a+378gSsXcawFHyMJdle3WCCkznZI/Y0/Xm7f9y5F Sbtg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ventanamicro.com header.s=google header.b=I5b4Vocr; 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 u3-20020a170902e80300b0019a9726391bsi856541plg.78.2023.02.16.10.22.56; Thu, 16 Feb 2023 10:23:09 -0800 (PST) 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=I5b4Vocr; 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 S230193AbjBPSV6 (ORCPT + 99 others); Thu, 16 Feb 2023 13:21:58 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55878 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229460AbjBPSVy (ORCPT ); Thu, 16 Feb 2023 13:21:54 -0500 Received: from mail-pj1-x1036.google.com (mail-pj1-x1036.google.com [IPv6:2607:f8b0:4864:20::1036]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CC6CA5036D for ; Thu, 16 Feb 2023 10:21:24 -0800 (PST) Received: by mail-pj1-x1036.google.com with SMTP id fu4-20020a17090ad18400b002341fadc370so6734661pjb.1 for ; Thu, 16 Feb 2023 10:21:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ventanamicro.com; s=google; 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=I5b4VocraQIzy74N6/WkUSoEflR7yik4OQfTnlBnTTAhyc9/7L7kZrDieGxf5g+3nm 8jov6jOgh5KiNaZd5Eaa7Vfd+keKgSYotzhC6UN9lRBO7zglAi7u1MIu4JtEtffb1qC4 dtXduPqacGJKwS4he3LX/xaSnKLvpeDfpeAtrCDtAUe5w4SXN4V3liCjE7jYSJxAhPp8 DASKy2oFicLS4SBOSKLvGzogHewOZG+O+NkMXBohSjcp/cq1irt5j+D1lDQxPVx9M2Ni dBAbL6WViE6T6Vldp2yhiqPJLShLBhApPxCeMBFjOnsg9MH8T1AV3a3db480pdXDA4YB xymw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; 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=nn1anCpd5wvzEuu/x1OtzAF2x7+zDXke8M3AC2XxHvs877ZccirYaphDCLvI8BPNcs 0VwCHFUThv/KRGMwHtXJNX7t2QvFum0+YtsF2mwzCHmKo1ypWG3BOPyvIJfdj7XjCYM6 iQobls4Z9cwTnitdCL1CQ9JhN8SlnK7txmTunEICvLDBz1aMCkCpnmNCrbMe+Yup7fiP uKb+h/EI2fmHi/jL1NZRxUtUXcK9H5/oJiEuwf+hvdqJB6BY3sGcgrjOK4E3PDpJmK3C xsckZqooHh4hCkSLOXOHirCqi4l7QNECIaXrp0fj4KlIhhPXmQe7si4s4fi6xCZHsiKI TCnw== X-Gm-Message-State: AO0yUKUDr3I5pAb0y2f771tzzVHxjy0tr4pbUqe6l2uj+crXqiL6QNI7 D79+bgJU2Wwd3A+1GCwBaEgrWw== X-Received: by 2002:a17:902:c943:b0:199:1f42:8bed with SMTP id i3-20020a170902c94300b001991f428bedmr3110483pla.12.1676571681615; Thu, 16 Feb 2023 10:21:21 -0800 (PST) Received: from kerodi.Dlink ([49.206.14.226]) by smtp.gmail.com with ESMTPSA id n21-20020a637215000000b004dff15fc121sm1517574pgc.36.2023.02.16.10.21.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 16 Feb 2023 10:21:21 -0800 (PST) From: Sunil V L To: Palmer Dabbelt , Albert Ou , Paul Walmsley , "Rafael J . Wysocki" , Len Brown , Thomas Gleixner , Marc Zyngier , Jonathan Corbet Cc: linux-riscv@lists.infradead.org, linux-acpi@vger.kernel.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, Conor Dooley , Andrew Jones , Anup Patel , Atish Patra , Sunil V L , "Rafael J . Wysocki" Subject: [PATCH V2 06/21] ACPI: OSL: Make should_use_kmap() 0 for RISC-V. Date: Thu, 16 Feb 2023 23:50:28 +0530 Message-Id: <20230216182043.1946553-7-sunilvl@ventanamicro.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230216182043.1946553-1-sunilvl@ventanamicro.com> References: <20230216182043.1946553-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 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?1758012940731510745?= X-GMAIL-MSGID: =?utf-8?q?1758012940731510745?= 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