From patchwork Tue Dec 19 17:45:22 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: 181170 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:24d3:b0:fb:cd0c:d3e with SMTP id r19csp2112807dyi; Tue, 19 Dec 2023 09:53:18 -0800 (PST) X-Google-Smtp-Source: AGHT+IEqjC6bAtXyjsPDGAqvS1l+bT3maWCJ1PCdRxwRTHF5GKoQeydzRRrpS/WGxSDsFyD3ynv0 X-Received: by 2002:a05:6870:b012:b0:1fa:e471:12f6 with SMTP id y18-20020a056870b01200b001fae47112f6mr21025581oae.51.1703008397973; Tue, 19 Dec 2023 09:53:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703008397; cv=none; d=google.com; s=arc-20160816; b=aSsftto7+MBwZ088JG8TeMvc7nClHa/ESJk/QYQEb+vfTcNEeaXThG3q6jGkFFo3Tv cFsB6kgc2OvS9jQDNUFD0W/F9g3zxfEff6wi/DsoDuUKIShQd//Y2GIc3pp2J1WAT1cr JmtDkAAOD/mQ1G4xGVWYBIP0cHdji2kBxMBIcU5ymhv2Ycqgw7axQwQi0PLUJaww1GjB L2MPIYyK/4TveuFKRbkRb+1Regs6B+eOKCyMYf85vT6s5dOJXy0ItrgrbsZii6CezB6d KVOGG/95rb9A+2yuKU/Eh7Z+GbALOFWQTG1MF3IZsYZWq52e3ZzTjq2Q9pKmroNPT+YV /fWg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=SP5qUoiFDc31MnkvQviOGvw0IT7UG54DgquaP3mAr+M=; fh=G3MkS2cP7FkeH+7kxy0LRzNpJgfwnUWZciURRBohxGI=; b=FAmsJlw9SwYgQNiOOkMgGFVvvHTloIjCdUboppzsKcckBPIRXCqjaNx3dd4NQJpGWJ 43kM9zaA9T0RzCZwj0b48MK6Wbbby+yxt1Xvwe0BrKO7ctN6SPmhgalaf/sT3HE83OZX xZnIXnN9cjFTSkcnu7EA2z4xGBiw+wUU4pdxkOgC2atXpKQmYOK5sfkTMEALBJsDSKcW kJoh5s9HlUgmV3YQ+AWywzOits5ULsNoH5FJJi1gf6FIqUVf1BtVylkO2M7gSw7D0+dS M/fe9k9Uiuq5SzO+nKM6MqHE9Hate1KjuCZcCGsIYVEB9NcS2M5byI0H9bzBDD6ILbGM 1Gmg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ventanamicro.com header.s=google header.b=otrcrHRU; spf=pass (google.com: domain of linux-kernel+bounces-5725-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-5725-ouuuleilei=gmail.com@vger.kernel.org" Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id h10-20020a63e14a000000b005c67bb15866si20378762pgk.52.2023.12.19.09.53.17 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 Dec 2023 09:53:17 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-5725-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@ventanamicro.com header.s=google header.b=otrcrHRU; spf=pass (google.com: domain of linux-kernel+bounces-5725-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-5725-ouuuleilei=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id AE575B25134 for ; Tue, 19 Dec 2023 17:51:24 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A59A440C08; Tue, 19 Dec 2023 17:46:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=ventanamicro.com header.i=@ventanamicro.com header.b="otrcrHRU" X-Original-To: linux-kernel@vger.kernel.org Received: from mail-pl1-f169.google.com (mail-pl1-f169.google.com [209.85.214.169]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B8787405EF for ; Tue, 19 Dec 2023 17:46:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=ventanamicro.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=ventanamicro.com Received: by mail-pl1-f169.google.com with SMTP id d9443c01a7336-1d3e6c86868so4418285ad.1 for ; Tue, 19 Dec 2023 09:46:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ventanamicro.com; s=google; t=1703008008; x=1703612808; darn=vger.kernel.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=SP5qUoiFDc31MnkvQviOGvw0IT7UG54DgquaP3mAr+M=; b=otrcrHRUm9i1fCUkWomPlZqVh49wsH48P/vxeKmchXV38vQQFb39AnQA9jqkicdaYx AWOD6Yz4p2MHlJTYgL8Wy4n28t25Beb3Z/IMTfH8WB4bBD2OS9QEiQTrnLsQkZOWEI+2 r8MVVfF9kvG843l2+1r2SBBEaB+NsyoX1D/i+e/NOCoTISikBWhW5kUPptE7KtGkdQ5Q luaxBstIilprDCAGwUiQ/FCSIhrCTrYmznKD7FDL+lgwH+M0Irpor9IzVj1iYvzJJuW1 /kkwOnsyvBK1sik5iLPvHKVDgoRgaxyZFDI9uXjb/KTNoQ1GgXnrJgcq36toiIsTb4NT 65Qg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1703008008; x=1703612808; 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=SP5qUoiFDc31MnkvQviOGvw0IT7UG54DgquaP3mAr+M=; b=WgEpBg+jXWExlBuN826B17z6h0Qyx43x23oyHPzCLWMH6GIujAMI8Puzp3tHWrQc5C E5cUoNedq4WWrnvAotf5iobuDUB+/sZcUIih++0Uy2msOtmyp/uHBNa3p+4qtHC+zIrD xVfF2ivSXgLeIPowdG7U8YqOAKJ8xPow7tAOTY6ZwBvaRo+QYpLiCRvWT+spl/UXTyer TxmPOxFwboOvT6MX03TSqTZEMbvC7joJMQ40Llp/JIsDh7wRptPmXd3Fe9uVO7hx0/0s 1H915/O48s0TP/xaeg+WjmYHzGPvn3h7iTTp5HmhZXjWmhFzeHrBViJiy/O5hKApGq1L l1TA== X-Gm-Message-State: AOJu0Yzw0Fs6IwiB4UpspMYo1bLImAg4P2+5BpEe0c/7eBGR3rV8oo7n Cy9NhIA7AVTwBajDFinReyza3Q== X-Received: by 2002:a17:902:a3c7:b0:1d3:9d55:3d67 with SMTP id q7-20020a170902a3c700b001d39d553d67mr5367594plb.101.1703008008246; Tue, 19 Dec 2023 09:46:48 -0800 (PST) Received: from sunil-pc.Dlink ([106.51.188.200]) by smtp.gmail.com with ESMTPSA id n16-20020a170903111000b001d3320f6143sm14453015plh.269.2023.12.19.09.46.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 Dec 2023 09:46:47 -0800 (PST) From: Sunil V L To: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org, linux-acpi@vger.kernel.org, linux-pci@vger.kernel.org Cc: Catalin Marinas , Will Deacon , Paul Walmsley , Palmer Dabbelt , Albert Ou , "Rafael J . Wysocki" , Len Brown , Anup Patel , Thomas Gleixner , Bjorn Helgaas , Haibo Xu , Conor Dooley , Andrew Jones , =?utf-8?b?QmrDtnJuIFTDtnBlbA==?= , Marc Zyngier , Sunil V L Subject: [RFC PATCH v3 13/17] ACPI: bus: Add RINTC IRQ model for RISC-V Date: Tue, 19 Dec 2023 23:15:22 +0530 Message-Id: <20231219174526.2235150-14-sunilvl@ventanamicro.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20231219174526.2235150-1-sunilvl@ventanamicro.com> References: <20231219174526.2235150-1-sunilvl@ventanamicro.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1785733733852526803 X-GMAIL-MSGID: 1785733733852526803 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 --- 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 a4aa53b7e2bb..9eace6c7042e 100644 --- a/drivers/acpi/bus.c +++ b/drivers/acpi/bus.c @@ -1158,6 +1158,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 ae045e14126b..b6766bded765 100644 --- a/include/linux/acpi.h +++ b/include/linux/acpi.h @@ -95,6 +95,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 };