From patchwork Mon Jan 30 18:22:10 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: 50404 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp2331252wrn; Mon, 30 Jan 2023 10:27:07 -0800 (PST) X-Google-Smtp-Source: AK7set8uRg1xbHesIy9rKiOcGQV3IR38ZFQlBrstL1L0TqUwJoFHa5Zh23F7VwxPJeAqG/mKPnl8 X-Received: by 2002:a17:907:75ed:b0:88a:a09d:e64a with SMTP id jz13-20020a17090775ed00b0088aa09de64amr2544408ejc.60.1675103226948; Mon, 30 Jan 2023 10:27:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1675103226; cv=none; d=google.com; s=arc-20160816; b=Jr4KJrG2TOUy554bM/7yRELdAfQB9K7WzqBffUGHwwMuzD5qw/pTfYcgNyTVs7eZqX 0Q7sf8eOExK6qw8ZZ4gR5TygTx7ng/SFb7BtJWrK3A16W7NkrkPfuQW62I4uFKmje/x4 ANK2jziw16qkKeYQZNCR2/yjkPes5Mcz74+/rTHZvNBpCGEcIc7+rNXNKoivdUzq3FeN GfocCGTVEMtO0eHyEcVJvMRymIJzjdr3O4mBlA4mgc1PhLN2Xj/wGydiwinyCXuEQ8bS eFlEpWu69ndpcgEZ7ekoeD3Rzh56gEVKTGIcv+ariy3LlO9LpAH6+E2U4ECrCluJbXFp dlFQ== 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=Civb8WSgZLaGjy3GsEK+VfCJoO5XDczMEZxaUDDoy9s=; b=xEvFR5ZZ4NV1pitcJHzQ9nk/+ryRPepRkBRz2Rx18uCWj4mUxLhV9ZnEC2+7r1Ppr3 CRcWrkwhrdUFXlFJS/pr/BBw6DP6jRJE1sUZMRrSVkdR5+598J6rUVao4v4h598ShR9Y D73hkbXfVCv7oiF2OW+XFedzBWjyMsE5jD/JHkF2Wy+juIKYK3Qm45x7eZ6U8fA/6U9p Hcz4fMiuScyN/bdQkqmn7s0DVmcTs/q0Q8NFn+EVAUk9Vn5D0N7pzBc/lgc77NpLdNBK Oa6ILqnumfJoYa7RUTRo4dTspUHrI/7IG0MKeQhrTYnfn5JcwCYCHqQIndASMt8821bo 61Gg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ventanamicro.com header.s=google header.b=PSgeKdeh; 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 13-20020a170906224d00b0086f510007e6si15251334ejr.908.2023.01.30.10.26.42; Mon, 30 Jan 2023 10:27:06 -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=PSgeKdeh; 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 S238036AbjA3SYU (ORCPT + 99 others); Mon, 30 Jan 2023 13:24:20 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56884 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238035AbjA3SXz (ORCPT ); Mon, 30 Jan 2023 13:23:55 -0500 Received: from mail-pj1-x1035.google.com (mail-pj1-x1035.google.com [IPv6:2607:f8b0:4864:20::1035]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0D3F44589C for ; Mon, 30 Jan 2023 10:23:16 -0800 (PST) Received: by mail-pj1-x1035.google.com with SMTP id 88so11871066pjo.3 for ; Mon, 30 Jan 2023 10:23:16 -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=Civb8WSgZLaGjy3GsEK+VfCJoO5XDczMEZxaUDDoy9s=; b=PSgeKdehYrE+PafjRwikFSIdgqSVP/6Dwf+FS0bio9ay+kO8Iq/DP55UzLxJ/0teml mvq507l+RrqXXtGjCegq0g7TLBJjmbSWhdM5dgwY0v649xk++pdojRYRpi6srgODCEX8 Uo9mPJiNfw2KG4leBHKApLZ0vCIAGbEaAh8W/xor1x+Q+a1Lfuh10l47pj75siTlDsbn eb7CTrsgaQM3o3V7ixmkkhz+3jXqGMGxOBTq3bjtqGeqQ2LRHByk7Bu5QeGzR6FsK4b9 YFzRilzo9k2a2ZEB3Su60FmyHlwt8/pzExTf+irfPULv2+5xGuGMe/aasN/pJ2aP1S95 itrg== 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=Civb8WSgZLaGjy3GsEK+VfCJoO5XDczMEZxaUDDoy9s=; b=th2GL9d+qi9agNuaDTks8eYQdenMU55Np6DHhlYHJFHznROrNBUh1uY9o+I4VyxCSu G22zhMALVkLBR4J5FxObA4OJa+F46eic1ocsWyqa3PgKPhrrZuu+pstDMmU6pEz/Z+EX NM65ApF+YeokPmGTvjRGfeNt2bI40GMMiJUyM5M219byZcOGgclD54rxYjw3VDWOl5lk toRuE4hC1c2hKs7weG544qZP1iW18cjyoXdcKgDRLFglcdClhn1RmZa2/jcrZcKYhHrO R4Ip5OYOrlR5m6QUaDls3h/n60UtiI/QdgveRweTYsx1Edo7pyD84Cnw8nSKi4YEMUpc +GKA== X-Gm-Message-State: AO0yUKVNRFBuiJ0jYYWxIJ/u0uDcGc9kgIUBM1xBFJlVbbHFeejrreQt U8aoyybFViZj/+hWM43LV37R3Q== X-Received: by 2002:a17:90b:3e81:b0:22c:b70d:45fb with SMTP id rj1-20020a17090b3e8100b0022cb70d45fbmr3191564pjb.23.1675102995734; Mon, 30 Jan 2023 10:23:15 -0800 (PST) Received: from kerodipc.Dlink ([49.206.9.96]) by smtp.gmail.com with ESMTPSA id j193-20020a638bca000000b00478162d9923sm7000291pge.13.2023.01.30.10.23.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 30 Jan 2023 10:23:15 -0800 (PST) From: Sunil V L To: Palmer Dabbelt , Albert Ou , "Rafael J . Wysocki" , Len Brown , Thomas Gleixner , Marc Zyngier , Daniel Lezcano , Jonathan Corbet Cc: linux-riscv@lists.infradead.org, linux-acpi@vger.kernel.org, linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org, Anup Patel , Andrew Jones , Atish Patra , Sunil V L Subject: [PATCH 09/24] ACPI: OSL: Make should_use_kmap() 0 for RISC-V. Date: Mon, 30 Jan 2023 23:52:10 +0530 Message-Id: <20230130182225.2471414-10-sunilvl@ventanamicro.com> X-Mailer: git-send-email 2.38.0 In-Reply-To: <20230130182225.2471414-1-sunilvl@ventanamicro.com> References: <20230130182225.2471414-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=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?1756473041620586278?= X-GMAIL-MSGID: =?utf-8?q?1756473041620586278?= Without this, if the tables are larger than 4K, acpi_map() will fail. Signed-off-by: Sunil V L --- 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