From patchwork Wed Jun 7 11:24:15 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: 13270482 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 9A2ACC7EE29 for ; Wed, 7 Jun 2023 11:24:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=nufWXbYW09YqgKnbT16yBxfMmTmxL+DTk9IYqwH7y6M=; b=dJ8wjxnN0/XNFI PS1OsONa0gt5AhptcXc4mocLSrcWUHM2fv4mx6UKec18JdCgtwF3Z2R1I3sjus1zcbZSdQTIuPADX eUN1fak1+G2nr0B7rjqzehgT4cxHDCJfSNQfE2+ZSbqFC/OapEF3bPJYryQhKXvir9JtOPjM8ZQpe c0zMuXvUoNZ8wYVdBoAxjDMhuvn1aMTUH0IET8EuORBTvBjypv7SI4JEG7GMe6QkAW+eHtbKlXMHz 0c/7czbtTKgphQsbcjvASZo8rg6FyKRo08/+n5kUvyXs6mahSO/HKBP826T2NEoFDw3zM5Ib/fFo5 1fI6U/KFNVUmo2SsGVbQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1q6rHB-005dWI-1R; Wed, 07 Jun 2023 11:24:29 +0000 Received: from mail-pl1-x636.google.com ([2607:f8b0:4864:20::636]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1q6rH8-005dUj-1i for linux-arm-kernel@lists.infradead.org; Wed, 07 Jun 2023 11:24:27 +0000 Received: by mail-pl1-x636.google.com with SMTP id d9443c01a7336-1b0218c979cso41094105ad.3 for ; Wed, 07 Jun 2023 04:24:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ventanamicro.com; s=google; t=1686137063; x=1688729063; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=LGtnZpGFXHvJErq+5YtK1G5nmM14Ut0VvzTCKEVh8OU=; b=ZXPfj0MjALIQxgTK4JMLeMGsSYfskXD1OL6gUULavvmiWhruVGK1X8iKTKU6aNcHP9 3NWAxVHqevzhgKtq+ae3/t5C9/Z2I+XpNDQRCQrXRK/IFlaqRP7V9MEbZrFik+2cFfnl Xyn84fjufio8oQyAYrL2hA3FA2Y+7P/ysZUh+RbuxHgaUkrcwil4OgygZnnrOFV+FG3+ lQ/xYEGfobGRRaIJaKfs0Af4uMIyN7FszS2vRzyyGBSpoK/seZMDQ/BiCjnt555O2QnF s9bAoTVhBwbtnGALpC5Ka065glKJpymS7Rvp7kxFCP+ZFnBqqNNiGzpFp5UtHvimg0Fk hhqA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1686137063; x=1688729063; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=LGtnZpGFXHvJErq+5YtK1G5nmM14Ut0VvzTCKEVh8OU=; b=MZWPwNlX6t5OCPGli5zgCBkvxLGc5v3BE4VTkyMVXqcY84pe68tHL4m6NhxLkF30i8 ZuzEEowTbgPnJbijcClujevxLOmFbGGZgkxFgYOOFPnT4Bw+f4N/ciSZploO6oKkVAQH 661m81jVguaiMDl0nT2kVHHAwO79se6J9wkskm/eBg+VuyuwP9Lj9+8NQXvJLIdkI0mH gJltlqWZ2SjtxF1g8aC0ISa/JgiQ/8A9K5SNK5jlzt/rvsarDD0Bj2XeISJLhvUHQ3Rz PFyvg3BlFPiyUhFszLxyHCJc3ZyTXHHpt2A9/COuZCd3U5I7aeXs5+UeRpf9KtlrToHW Knrg== X-Gm-Message-State: AC+VfDxttHRkaDwA5S6TL2AVyqm1M/35vwvJldft8FUY6syZJCfLKq6b U84TufSKI1cCaWAfUBW/Fc6ijg== X-Google-Smtp-Source: ACHHUZ6sATbQ1FwH9mwZ+Uz3V2RuFwNAayVWtafoqJ/+rV7t5PghA8X7YA8QPjBsx5ZhRGEhLUrqKg== X-Received: by 2002:a17:902:f802:b0:1b1:8900:5211 with SMTP id ix2-20020a170902f80200b001b189005211mr2983874plb.28.1686137063635; Wed, 07 Jun 2023 04:24:23 -0700 (PDT) Received: from kerodi.Dlink ([106.51.186.3]) by smtp.gmail.com with ESMTPSA id o10-20020a1709026b0a00b001b2069072ccsm6228322plk.18.2023.06.07.04.24.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 07 Jun 2023 04:24:23 -0700 (PDT) From: Sunil V L To: linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Cc: Paul Walmsley , Palmer Dabbelt , Albert Ou , Atish Patra , Anup Patel , Will Deacon , Mark Rutland , Sunil V L Subject: [PATCH v2 -next 0/2] RISC-V ACPI: Assorted fixes Date: Wed, 7 Jun 2023 16:54:15 +0530 Message-Id: <20230607112417.782085-1-sunilvl@ventanamicro.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230607_042426_581460_055005F9 X-CRM114-Status: GOOD ( 11.85 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org This series fixes couple of issues required to complete the previously merged basic ACPI support series. 1) Kernel test bot has found a new warning using the sparse tool. Though I believe this warning exists for other architectures also, I don't see an issue fixing this for RISC-V. 2) When sscofpmf extension is enabled, the perf driver tries to find out the root INTC domain to register the over flow interrupt handler. However, this function is DT based and needs to be enhanced to work on ACPI based systems. Changes since v1: 1) Added "Fixes:" tag 2) Added RB tag from Conor Sunil V L (2): RISC-V: ACPI : Fix for usage of pointers in different address space RISC-V/perf: Use standard interface to get INTC domain arch/riscv/kernel/acpi.c | 4 ++-- drivers/perf/riscv_pmu_sbi.c | 17 ++--------------- 2 files changed, 4 insertions(+), 17 deletions(-)