From patchwork Thu Aug 3 17:59:11 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: 130811 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9f41:0:b0:3e4:2afc:c1 with SMTP id v1csp1348183vqx; Thu, 3 Aug 2023 12:03:53 -0700 (PDT) X-Google-Smtp-Source: APBJJlFhK/wCd9M6wpPynotF/RkotcbyaQDEYfUUyUqRNnQzxn2JsxnlwI8UW7I7HoDweQNbTHSD X-Received: by 2002:a05:6358:998b:b0:134:e3e6:c0bd with SMTP id j11-20020a056358998b00b00134e3e6c0bdmr11217607rwb.32.1691089433313; Thu, 03 Aug 2023 12:03:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691089433; cv=none; d=google.com; s=arc-20160816; b=T5I/rWyUksmFyU1VDLReeCjgKEFnRR7XYo/hRfiuMKVcqQkVCDQR4ceqal1VB8yrjf 6mgFoObLDYtkAcZn74OEy8CwRIkluyaIVgBn/eTUqei9FC4aZzv4HGACPQEivJsgu9J9 G0lmOodbfnOhEtXbiMVwR4kJ/qVkEx1ioBxhhZGPISACtcB6uUm8EFIm7V7TfDjDf/0R 1XhrgksoUBskafWFyirEVXK1dSpspjsrp0zIwcAayvyej23AqaQnuZrHdTRBSFDF5+bD 3DTgPdSZpy8h9HdjS4umAJ81lFQ499IKWQL+bHOftebqU5g8ftanTluXILGR5ZlQGTnE usFw== 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=95yH1ZRY1l5+vMULtm7DKGPnoBqPk/7PEb2F1bhVxfo=; fh=dzn7FZXuyjRD/SsADoLVmv8ajN6bypv0shpvYBNDmUc=; b=FMyIx7U15ACdoUFZNGTvOqPMZyxVlzhvwRcW0LjnDjuun2vvjUuYDW840NTenFOTvL XCYl3d2SOvkUOj2JjHrkNqTYBZ0WjKrmQkpQRQsT0inuCSRrnN2WEMPMgDouqlDHUNCT mrlgE6RBe9DN8l42jBhv1G/fyhitZ5v5eQixcjTOAZo31cK9ZgWoKg7NBUaCgHk1hHDD IZz17CeF+cIF1uOiSQYKR0DYWsEtKJvny1ukfZdBz/xnB82VgE3A67ruDSRq8ZMdhw72 rSGgt+zAJNr5yPy6tmlDN7fxzng64BlhlNLBRW1NSseKqgPw2BvbX8+dC3yQPjk6jb+U eTOg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ventanamicro.com header.s=google header.b=V2wPisBD; 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 s5-20020a637705000000b005649a48340esi388480pgc.797.2023.08.03.12.03.16; Thu, 03 Aug 2023 12:03:53 -0700 (PDT) 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=V2wPisBD; 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 S234493AbjHCSD0 (ORCPT + 99 others); Thu, 3 Aug 2023 14:03:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33010 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230246AbjHCSC3 (ORCPT ); Thu, 3 Aug 2023 14:02:29 -0400 Received: from mail-pf1-x432.google.com (mail-pf1-x432.google.com [IPv6:2607:f8b0:4864:20::432]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D9C4C4C00 for ; Thu, 3 Aug 2023 11:01:36 -0700 (PDT) Received: by mail-pf1-x432.google.com with SMTP id d2e1a72fcca58-686b643df5dso901611b3a.1 for ; Thu, 03 Aug 2023 11:01:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ventanamicro.com; s=google; t=1691085694; x=1691690494; 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=95yH1ZRY1l5+vMULtm7DKGPnoBqPk/7PEb2F1bhVxfo=; b=V2wPisBDGbePHms2A4risrsDPrMUWBaceOkrdFeRUdqmk8sYzA5KDWJo5ROYiF0CjX Z74IQMZ1avQxf45hCxGVP3uqUF/sUXX9QWVu+q4wSB19tXd6YUul2EoHn+erVyy3sXpW Jwz/h2pkxAshzi43we+dfVrIdTOcl++Q/N4ri/20PthUznYPeIaLZpuiw1cnyJwnvSDM pcI9H5/RIULmGhhKhSoYJUA3vVFvfyjZhhZxhPigphk2shP6Errk5T1R3GEjLQvcK1W+ BuCSuJIxsNVj9LrjOIwPOA0PDc0afRT+ExMZ+FldLPxVOWhYHGBeKMhWgQmR5Pe/ln4m 1JKw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691085694; x=1691690494; 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=95yH1ZRY1l5+vMULtm7DKGPnoBqPk/7PEb2F1bhVxfo=; b=DcggyTMhVG8MKHctDeXAbI/t2NGXoGIAtlT9HE9Yi2p6Sqo7BFGlO0VV5f8CRgxMw5 L46H0BrnZSev+ethlGVD3NMZG6cWBPXPLdVV3QfNsu9q15HnCguDE/7AFYEQv88n7L3R FtPp2iMOrA37Ppgw5Pt0L/lQwRTe6H7+v7irIM67dTgLb3n1XnSYKd2aXyPmFtCXkevT F5xYTVaLquue1mAA2DqGEiCCU6CgJACpSR7kNmSW4o7mWi1iohJ7wIQsafeYPFqxw/Er sTYUJ/x+wZruonwQtliEFKtYbXDh8atECFxJiB727WzSz33zxtdSm3NQfhOLrI8lij9x Xnvw== X-Gm-Message-State: ABy/qLbUhFobJjnv0wKF62aaoPvw/B8LQ+2oRDDLtrBixWqHlw5UzpIX f9pZK+ovvBUZp/T7EJIdh1h7tQ== X-Received: by 2002:a05:6a00:843:b0:67a:9208:87a with SMTP id q3-20020a056a00084300b0067a9208087amr21529015pfk.23.1691085693539; Thu, 03 Aug 2023 11:01:33 -0700 (PDT) Received: from sunil-pc.Dlink ([106.51.190.143]) by smtp.gmail.com with ESMTPSA id s8-20020aa78d48000000b0065a1b05193asm134952pfe.185.2023.08.03.11.01.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 03 Aug 2023 11:01:33 -0700 (PDT) From: Sunil V L To: linux-doc@vger.kernel.org, linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-acpi@vger.kernel.org, linux-pci@vger.kernel.org Cc: Jonathan Corbet , Paul Walmsley , Palmer Dabbelt , Albert Ou , Catalin Marinas , Will Deacon , "Rafael J . Wysocki" , Len Brown , Andy Shevchenko , Daniel Scally , Heikki Krogerus , Sakari Ailus , Greg Kroah-Hartman , Daniel Lezcano , Thomas Gleixner , Anup Patel , Marc Zyngier , Bjorn Helgaas , Robert Moore , Haibo Xu , Andrew Jones , Conor Dooley , Atish Kumar Patra , Sunil V L Subject: [RFC PATCH v1 16/21] ACPI: Add APLIC IRQ model for RISC-V Date: Thu, 3 Aug 2023 23:29:11 +0530 Message-Id: <20230803175916.3174453-17-sunilvl@ventanamicro.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230803175916.3174453-1-sunilvl@ventanamicro.com> References: <20230803175916.3174453-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_BLOCKED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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: INBOX X-GMAIL-THRID: 1773235793636436735 X-GMAIL-MSGID: 1773235793636436735 Add the IRQ model for RISC-V APLIC 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 9a8c16170a4b..dd9d80630bf6 100644 --- a/drivers/acpi/bus.c +++ b/drivers/acpi/bus.c @@ -1132,6 +1132,9 @@ static int __init acpi_bus_init_irq(void) case ACPI_IRQ_MODEL_LPIC: message = "LPIC"; break; + case ACPI_IRQ_MODEL_APLIC: + message = "APLIC"; + break; default: pr_info("Unknown interrupt routing model\n"); return -ENODEV; diff --git a/include/linux/acpi.h b/include/linux/acpi.h index d16739928888..698d120a1bd2 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_APLIC, ACPI_IRQ_MODEL_COUNT };