From patchwork Mon Aug 12 00:59:19 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Sunil V L X-Patchwork-Id: 13759954 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 647A2C3DA4A for ; Mon, 12 Aug 2024 01:04:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: Content-Type:MIME-Version:References:In-Reply-To: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:List-Owner; bh=pBzMby0USGxgSPaQIBT4AQA8EH7Ak7bVCmTWfoSfRt4=; b=LQPznEwC1gk5XugnjKfgEEKMIx jiLd8oWBzHer5BxyjpEPjac8PtA3bI3L/NfImKTP0tyGrYqV+HrjGgcB6fK4+utMhMzC5QewY5RcI 7lx5uXedU4CV69GWMoAATuGcxAx8mZteV12j1B6Xp0pAtB3UwbR5BkfwbI8u8CAaPnQ8IiCcUxKz8 LKTgCCYgDAGUK7hodHVQlVQp75Jna22GlbLr2+8zy4xT9vHhjn26Llv/gsAfqjd/NEkvZAoy7pWQ0 WHmww51K5zm2o9h1fl2haUbhabaOPYSiZ0DL8stqG8JRes+SWMJ6DmwURzFNrOwCBPHz1ibYHMral hoFTBoBg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sdJUL-0000000GbjA-34Kk; Mon, 12 Aug 2024 01:04:45 +0000 Received: from mail-il1-x134.google.com ([2607:f8b0:4864:20::134]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sdJQB-0000000Ga5A-09ZF for linux-arm-kernel@lists.infradead.org; Mon, 12 Aug 2024 01:00:28 +0000 Received: by mail-il1-x134.google.com with SMTP id e9e14a558f8ab-39b41306b4dso13889705ab.3 for ; Sun, 11 Aug 2024 18:00:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ventanamicro.com; s=google; t=1723424426; x=1724029226; darn=lists.infradead.org; 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=pBzMby0USGxgSPaQIBT4AQA8EH7Ak7bVCmTWfoSfRt4=; b=TwR8wvBOYpvP9grUpBtoUmEyc9Ap1r1qzoemFRki5IV+KYuFi212lSap+ch/0QCnWI Nu0PlMQIzgyizQfYOfSXNKVG8Y6rQ2EfX5QTtLHaFw7eQo8GwN0ApxTbeJNnMDXfm12i b3cXmTy5J5Itg3WF+AlQouzT8Iu5SrusFZkU22IjtgyC3walx58y4H4MsBUrPUyejR1b FylmOpIDSVHHhoZUueicIB4oC9KoKGv60HB0ZdvGKA3qnf0WOG1kpUvvU/8xBKdy78NK On0+YasNegq1r1kZPQED7razlnsvVV+oKla5w7ndPORFE2AYkjjlZ16kuPAwRSyoTx4F BNzA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1723424426; x=1724029226; 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=pBzMby0USGxgSPaQIBT4AQA8EH7Ak7bVCmTWfoSfRt4=; b=biobnuvXuyLNM2fFj/Lu7EAeWiDnq/ihqJIpOHyHqySFEuAGcsV3U2h8iUXOcydfty dBxlGZd9Btr3gSCtjfzngZsVlDdXXQxCxzXD5AOsNHMuejsrnfA3pzR2juSdmLjkv7h9 R1Vmv1ru9Hx+EgG7Z9oA/FCK+S//Tp83E/MuNNdF0EvRcrWh83tmn7vQ/drrz1AuU8KC 1RyOIHsD8IYTDdDXOl/e+JC1rF13DPsNz6dd18gm8BaB3+d40bcOaQ+bH9Y6gBbRgvYM GQJSBNhyBEjgUhQLdbBnw5pdUj6AuByjFNIGSySHTHq5a1AYsNzJ5ArvJYEJqwTQ/2YH 9cDQ== X-Forwarded-Encrypted: i=1; AJvYcCXJOh0iqwf0/ItNxkTGnbzHNJwhk3DawXaxbDR1b5veO3fIQd3jDLK7zzhmtUtqooQXqbWDM4qdUnvZv6FA6G3qxn692sOnrfh0QweHVibgGUQQMps= X-Gm-Message-State: AOJu0Yw0Mc7rbN4Fjdq8R5nhiDHxA0hW8OA6F9wHFH5QxZCliF6aN7MZ 7n/Wt5obA/QbrO6TILOQx9O374ZydxxReDRkDryNb4rnzEffcXUXqZHGlQxs/ZU= X-Google-Smtp-Source: AGHT+IGLgGjZy1f4lXkyD9IeGxkMxZC7bl0GKZ86dlIJhEZNBpnAOTW5ak8/coJIxlUXH7m3lfD9qw== X-Received: by 2002:a05:6e02:20c9:b0:39a:ea4c:8c26 with SMTP id e9e14a558f8ab-39b7a475a0amr105191515ab.1.1723424424986; Sun, 11 Aug 2024 18:00:24 -0700 (PDT) Received: from sunil-pc.tail07344b.ts.net ([106.51.198.16]) by smtp.gmail.com with ESMTPSA id 41be03b00d2f7-7c3dbe8cbdcsm3074062a12.61.2024.08.11.18.00.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 11 Aug 2024 18:00:24 -0700 (PDT) From: Sunil V L To: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-riscv@lists.infradead.org, linux-acpi@vger.kernel.org, acpica-devel@lists.linux.dev Cc: Will Deacon , Paul Walmsley , Palmer Dabbelt , Albert Ou , "Rafael J . Wysocki" , Len Brown , Bjorn Helgaas , Anup Patel , Thomas Gleixner , Samuel Holland , Robert Moore , Conor Dooley , Haibo Xu , Andrew Jones , Atish Kumar Patra , Drew Fustini , Sunil V L , =?utf-8?b?QmrDtnJuIFTDtnBlbA==?= Subject: [PATCH v8 07/17] ACPI: bus: Add RINTC IRQ model for RISC-V Date: Mon, 12 Aug 2024 06:29:19 +0530 Message-ID: <20240812005929.113499-8-sunilvl@ventanamicro.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240812005929.113499-1-sunilvl@ventanamicro.com> References: <20240812005929.113499-1-sunilvl@ventanamicro.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240811_180027_106666_C3EAC98E X-CRM114-Status: GOOD ( 11.77 ) 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 Add the IRQ model for RISC-V INTC so that acpi_set_irq_model can use this for RISC-V. Signed-off-by: Sunil V L Tested-by: Björn Töpel --- drivers/acpi/bus.c | 3 +++ include/linux/acpi.h | 1 + 2 files changed, 4 insertions(+) diff --git a/drivers/acpi/bus.c b/drivers/acpi/bus.c index 48d277657203..16917dc3ad60 100644 --- a/drivers/acpi/bus.c +++ b/drivers/acpi/bus.c @@ -1203,6 +1203,9 @@ static int __init acpi_bus_init_irq(void) case ACPI_IRQ_MODEL_LPIC: message = "LPIC"; break; + case ACPI_IRQ_MODEL_RINTC: + message = "RINTC"; + break; default: pr_info("Unknown interrupt routing model\n"); return -ENODEV; diff --git a/include/linux/acpi.h b/include/linux/acpi.h index 892025d873f0..3a21f1cf126f 100644 --- a/include/linux/acpi.h +++ b/include/linux/acpi.h @@ -107,6 +107,7 @@ enum acpi_irq_model_id { ACPI_IRQ_MODEL_PLATFORM, ACPI_IRQ_MODEL_GIC, ACPI_IRQ_MODEL_LPIC, + ACPI_IRQ_MODEL_RINTC, ACPI_IRQ_MODEL_COUNT };