Received: by 2002:a05:6358:700f:b0:131:369:b2a3 with SMTP id 15csp2614218rwo; Thu, 3 Aug 2023 12:03:19 -0700 (PDT) X-Google-Smtp-Source: APBJJlEcZJd5vsw4wHF2r9F2MyFiLMlCgbrBKQX+IjbD210MfSVZV2NanZMAlnkPaY3ddJrufzk1 X-Received: by 2002:a05:6a21:6da3:b0:13f:7c0e:dc74 with SMTP id wl35-20020a056a216da300b0013f7c0edc74mr2271726pzb.55.1691089398945; Thu, 03 Aug 2023 12:03:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691089398; cv=none; d=google.com; s=arc-20160816; b=Jtpc2w95FaQx/u9Hj0x2/HCF1+7rtLhmkHee7KTcr5yGtkIGlr2JD2gVVqdVgs7K26 90XlKd5DH2UomHjsx8pTnAIoziqHCzNAZOUcJOumD2xXotS2hQpfBPaUVPLUkz05kHeH YffJ5H6PF8mgtgD6kxzuN9D9Pn9/vb+H/o9Ucu66RjSp+SmFLgknvuMElKWpiOoVMLsD s664O1wboknZ5ayR/FECZcM6MSnQS+8kZuzvQ+oJueQgvQgxdB6LwVP62zVxmz8ToThW eh6RW6r4KM1070s7T0UIBZTC0eTv6PJi5qOy/2kbus8C3LlAQiPjSsAhVK8aSNN0NiKf N0EA== 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=oa5JuUdn7+qjYPf/m5YirkX0l5WPw2pxjpAQ3vHoF5I=; fh=dzn7FZXuyjRD/SsADoLVmv8ajN6bypv0shpvYBNDmUc=; b=u0aA68fZbr2kARVMqI9IWx/eapEIco3Jvj7VoVAjQBda2fTnV2PmebkhO7JU8eGUQP I0g41rleZTuD4+TWjT0+wNSZTNZ9Esy9mIb8F9IPg5jaOeGZf1qlKVdlgc4AljWaeuCV u41GJTTUh3/7NRCpROjxdRudPOGPFZ2rsn352aCY3GLkATWT1K/bBiY6MXExjUlW8eCU /MyQzrBIcDnM12wmGouH/biS9kXGytWsUOyAk9Vewgkw7/GEQdDJygBrRLsndwVNiFAD kytLKdFJSO0NvIcA4RlzQP/q3atj07IMzp5zAQhu4ku9N4MfRQxCVms7aLZy6CYVIzGv U1hA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ventanamicro.com header.s=google header.b=KQbJbLeA; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id v15-20020a63f20f000000b0056499cf2149si457649pgh.65.2023.08.03.12.03.05; Thu, 03 Aug 2023 12:03:18 -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=KQbJbLeA; 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 S235328AbjHCSD5 (ORCPT + 99 others); Thu, 3 Aug 2023 14:03:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:32810 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235743AbjHCSDN (ORCPT ); Thu, 3 Aug 2023 14:03:13 -0400 Received: from mail-pf1-x430.google.com (mail-pf1-x430.google.com [IPv6:2607:f8b0:4864:20::430]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AA4F83C31 for ; Thu, 3 Aug 2023 11:02:03 -0700 (PDT) Received: by mail-pf1-x430.google.com with SMTP id d2e1a72fcca58-686c06b806cso867549b3a.2 for ; Thu, 03 Aug 2023 11:02:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ventanamicro.com; s=google; t=1691085716; x=1691690516; 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=oa5JuUdn7+qjYPf/m5YirkX0l5WPw2pxjpAQ3vHoF5I=; b=KQbJbLeA4TGtIxIuFW6WC8NJApS9TUoRPunkwh/7C0r1L0sLBDwJGs8OUTxRfQN8yL IZgS1FD+/A7me33MFHYJD0l0yTtrtfiDYXF3e8iNfPm93ITz3TvFfxLpZrkvFjfajmGf EMdRXrFFA3X7X7YRRnEWo+UPpR2JQ9GgdKaKpv9xyaKOqY2AwIvxxCCF7PewHi3Faua6 jFe8/UkDo4eFfqQ4KvSjqlO/i1RJALvToWFdrastu4Qw7KsNlgXKVspIMSkXJgK5IbJo eJSEBF9ZP7B5NkjyH0BsRNEDtOJgtdIONOGak2Or0tgEW0/gVlXNtRRwCRBHdYyNBhLJ 6pIg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691085716; x=1691690516; 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=oa5JuUdn7+qjYPf/m5YirkX0l5WPw2pxjpAQ3vHoF5I=; b=cxFN8J4FgPNV5aYQOikA9UzvcdMmsf5D3e6LOPKqLqGdp+7d+KhvadYimWC9NMzruC HNgCXUuIVANaTYXRq4cRZ/haB6lH1liy/ORRMEbe76bWpF0Df/Txufu/lrMoQpOX3Yt7 NzXEDq8XLuV+uC7upr2GO41hrPLvx8Tk1/s82HJPBWOsivUUX4Hri0eW2+96/+an5gTq Ox88UguyXq7NRUBZr7eVwLe21w2XZ70AoIMiaAi/Sog2lf25DvuiDbk4vCk0uyRfsHi6 4w2Tae5eJO01I+wNYzlOPdXfELfety76/UW6st+NXAs/3dd2/MsbhOoc27W9rRJ4j4CW +gHQ== X-Gm-Message-State: ABy/qLZZX9FlJw9C+RI/KWdG3H/c7yK1OPyCLuaVgOrF7MFjtyRPwCKw +jXYjEzX2xfGe9oqcFwJB1/kLQ== X-Received: by 2002:a05:6a20:191:b0:12f:c61e:7cac with SMTP id 17-20020a056a20019100b0012fc61e7cacmr16449922pzy.31.1691085716659; Thu, 03 Aug 2023 11:01:56 -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.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 03 Aug 2023 11:01:56 -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 19/21] ACPI: bus: Add PLIC IRQ model Date: Thu, 3 Aug 2023 23:29:14 +0530 Message-Id: <20230803175916.3174453-20-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 Content-Transfer-Encoding: 8bit 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 Add the IRQ model for RISC-V PLIC so that acpi_set_irq_model can use this for RISC-V. Signed-off-by: Haibo Xu 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 dd9d80630bf6..68b8d38ec48a 100644 --- a/drivers/acpi/bus.c +++ b/drivers/acpi/bus.c @@ -1135,6 +1135,9 @@ static int __init acpi_bus_init_irq(void) case ACPI_IRQ_MODEL_APLIC: message = "APLIC"; break; + case ACPI_IRQ_MODEL_PLIC: + message = "PLIC"; + break; default: pr_info("Unknown interrupt routing model\n"); return -ENODEV; diff --git a/include/linux/acpi.h b/include/linux/acpi.h index 698d120a1bd2..31f080df179d 100644 --- a/include/linux/acpi.h +++ b/include/linux/acpi.h @@ -96,6 +96,7 @@ enum acpi_irq_model_id { ACPI_IRQ_MODEL_GIC, ACPI_IRQ_MODEL_LPIC, ACPI_IRQ_MODEL_APLIC, + ACPI_IRQ_MODEL_PLIC, ACPI_IRQ_MODEL_COUNT }; -- 2.39.2