Received: by 2002:a89:d88:0:b0:1fa:5c73:8e2d with SMTP id eb8csp184368lqb; Thu, 23 May 2024 14:59:15 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUEdEJN+qUx8XNZMaZny8Jp2hBIUyQtWiOhY2RiwWqABEo1UwGfCoGCq2Y6c0yvHIjsI9RxBNnkRd0N8rksnJgYDx8rU/tMrAtdKZ/E0g== X-Google-Smtp-Source: AGHT+IFjRLrZLNQl0pptvL5FK6uApl+dJ6+kq7lt+NbdCdbrqXDJoM92mLkshE+K+dcX99Poie82 X-Received: by 2002:a05:6214:4518:b0:6a0:b19d:e0a3 with SMTP id 6a1803df08f44-6abcd180c4fmr4120746d6.55.1716501555727; Thu, 23 May 2024 14:59:15 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716501555; cv=pass; d=google.com; s=arc-20160816; b=gjkzJw5gxUrHBpW9sPSR3vhstz46RBBEQ5wJfZR8isbSw6N3tK/Zi03TBENTsAeTKH uZmDDu3AH1rZdmptfKux7Ju/IQ8B5lb1sNfrokee9VQqJasdmqRVkN4cuhDL7VmlwSed tV/VYRGpxUiro4AGmIPJ8bMpwX50ARs0IG32yOEWdGcKw57Kbk0IoDC7gMHK4oVOniz1 xqXWcLwgsL7OkhX25S8dGaaa7RpvaUwYQHS9dzHk67K3rYlxWSzN0CIll9b6PhZ9CpGn xA2Er6k0DQZrVRzKGOiUB2i0/A9e2ttkY2+i1HQ5rHAJfdxid8OrJUJ/H3vRtHNd6OMe 7v+Q== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:subject:cc:to:from :date:dkim-signature; bh=+Q7rDBmSGz99s2kkv7Om1NhSEVbr4kNtCqNI3J8edgE=; fh=1DdxyNsa7QMNoGwW4PLKqSFWwXuMw3O/pLyZ19avGgU=; b=EzHuarPtApj1VmcuafMFIOWSorzq3KmwseXdgFdAtbeFfCdVs84HswngmRU3H7LXcB T3DJ/LVMrUQ3AZbLttEMkbc+05SJdxAt8TEK7w0oWBktzSymOav8FOts7w6TLct84wkC 7zxpIYCze29OBOVE/uESHWBFNVXY91lPjQRXycvHuxAaW3MpGwND77hSZdE8wOdWBJXz NeKcEbRPmx5+JsvktDOvqxJvlUU8dcbcexQd/m4SzagqAyEn65nQjRl4gcnOx+ganxRB MBgZrfyYz6b1QKB+BBqk8u9JCYhs2OkF4eMD0e0yWsRkKzXiNQ2xqiLK4S5dyBYdlhVd NDjg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=rlf+g2x0; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-188063-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-188063-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id 6a1803df08f44-6ac162d9c45si1803696d6.571.2024.05.23.14.59.15 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 May 2024 14:59:15 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-188063-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=rlf+g2x0; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-188063-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-188063-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 6BBB41C238FB for ; Thu, 23 May 2024 21:59:15 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C58FF12836A; Thu, 23 May 2024 21:59:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="rlf+g2x0" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D9CA1B662; Thu, 23 May 2024 21:59:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716501546; cv=none; b=BWwCEyteqtuROFugrLSgEtv9fTBAbXTAdS5TTWf2DMrfdWcTgldpQe7Wp8VKNfjr9LTUjMpIOajkMQZFyjlfQTh1JreuMlCLBPAa6ZmEmMzYjGdMDRnJLR/JbDi1+F8g658Tgf63Bc/L9WaXMLZJRP/lLou4UgBun3Rg3fYrAts= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716501546; c=relaxed/simple; bh=QZ7Ne6Y6VxRzARq/sM9xQGLKOxgu4KxELYwAPQWlY/o=; h=Date:From:To:Cc:Subject:Message-ID:MIME-Version:Content-Type: Content-Disposition:In-Reply-To; b=kWnxK99MvQrXDr7LJEugONkFj0AFNF0VbPK0hlBjIyT8DhkNssG6ZLu+/Akx5MEvs8RotyJ1hLwx0FRrYBI8ynfFj0xhKOFsVofE6v6XEAtkuJLspv8PN+Zj0JObfDylYKHDaD/+424N5yU56MUaNaFV4jtgEt34I1PeYbuDkJQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=rlf+g2x0; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 346A9C2BD10; Thu, 23 May 2024 21:59:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1716501545; bh=QZ7Ne6Y6VxRzARq/sM9xQGLKOxgu4KxELYwAPQWlY/o=; h=Date:From:To:Cc:Subject:In-Reply-To:From; b=rlf+g2x0my/tsSc572EXkgu9g5zzNMzCe1Um7GaPWPhja1AdmVcvHfJ5JFWWXo5Kl DyCOt/h5cmh09lihD9eOwLfZtmJX08u9JSM6g8APDYjLueOGZIH7LkztD0Y3K/QX/O otr708MxWtJNd4mrV0gKGNxLgtB8nAEWdACtUFkQ/3Lltvl88JxF0vSAYYCBVDrsk/ 7bmzPYpBa/kaRVXRoiGWS7wOjysFJQh1z4WOCmjhJ8ymFqfWDb7mN6lYnhRPf4FJYG lnhd4c/KRzpPVGeZscRsYjWLBTRznptGmkCQQQgislE8Vk0xUyGRjZ2LnxSs2acNAm 4Fm9PNLsPbUig== Date: Thu, 23 May 2024 16:59:03 -0500 From: Bjorn Helgaas To: Sunil V L Cc: 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, linux-serial@vger.kernel.org, acpica-devel@lists.linux.dev, Catalin Marinas , Will Deacon , Paul Walmsley , Albert Ou , "Rafael J . Wysocki" , Len Brown , Bjorn Helgaas , Anup Patel , Thomas Gleixner , Samuel Holland , Greg Kroah-Hartman , Jiri Slaby , Robert Moore , Conor Dooley , Andrew Jones , Andy Shevchenko , Marc Zyngier , Atish Kumar Patra , Andrei Warkentin , Haibo1 Xu , =?utf-8?B?QmrDtnJuIFTDtnBlbA==?= Subject: Re: [PATCH v5 07/17] ACPI: bus: Add RINTC IRQ model for RISC-V Message-ID: <20240523215903.GA138985@bhelgaas> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240501121742.1215792-8-sunilvl@ventanamicro.com> On Wed, May 01, 2024 at 05:47:32PM +0530, Sunil V L wrote: > 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 17ee483c3bf4..6739db258a95 100644 > --- a/drivers/acpi/bus.c > +++ b/drivers/acpi/bus.c > @@ -1190,6 +1190,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 846a4001b5e0..c1a01fd02873 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, Is the ACPI_IRQ_MODEL_RINTC value documented somewhere? Maybe an ECR for the ACPI spec? acpi_bus_init_irq() is going to pass ACPI_IRQ_MODEL_RINTC to _PIC, and ACPI r6.5, sec 5.8.1 only mentions the ACPI_IRQ_MODEL_PIC, ACPI_IRQ_MODEL_IOAPIC, and ACPI_IRQ_MODEL_IOSAPIC values. Even the existing ACPI_IRQ_MODEL_PLATFORM, ACPI_IRQ_MODEL_GIC, and ACPI_IRQ_MODEL_LPIC values aren't mentioned in ACPI r6.5. > ACPI_IRQ_MODEL_COUNT > }; > > -- > 2.40.1 >