Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp2161221rwb; Fri, 2 Dec 2022 06:20:52 -0800 (PST) X-Google-Smtp-Source: AA0mqf6iFQmwaDaRzUeNFBqpZDMh6GvPuNisJvuHRjxJLXXYGSakbqnLdOCOd2uMuU/jA2rSmU2z X-Received: by 2002:a17:90a:7e8b:b0:213:df24:ed80 with SMTP id j11-20020a17090a7e8b00b00213df24ed80mr80845700pjl.186.1669990852509; Fri, 02 Dec 2022 06:20:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669990852; cv=none; d=google.com; s=arc-20160816; b=J10VT5EL081ZMUdXuQ2O9gZZXmbZTVP1DQIVjLyTqSGoxB/Dq+y1qCAwv4zNUmJOmw WrOq72jefP4BNM/RHuRrebgilA9MQ3TlIjcSoZJlE6WNS7hXs+JLG2NBE/B2ec/byYeX wXWDO0dVTZc9dhgL2LUkv9jsgf+NVxI7BoIZcBiPDRJAqQqsS/4xGe1LVA1+TVYe/TVP aF4kWEvHFGb9WjxmqR5k9w8C5id7gpgIdx3YihQin+eM+P5gHavpWPTXi9weUpwrYjMn 3GxWYZoBFD1UBF/yi9dQWmTVyZA5Pbdbj70NpEZMsr1yeJl6A8Pot5D21AhkZTQZEUZ1 9Asw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:robot-unsubscribe :robot-id:message-id:mime-version:references:in-reply-to:cc:subject :to:reply-to:sender:from:dkim-signature:dkim-signature:date; bh=5rlHz8XlHt/XX0ZCvLXfAi7Gf1XyWML+bixzqO6UKZI=; b=NyJWcX6EBT8RgVr8O3a7GuzWn6pw6gBIUqDVutXDHA5dHEAcal3+au1UvCR2TEaLTR vwS8TihB3jDKQZ8VL15cxSza0SAFiyr0ZdIpuAaAcvcOZalNLPmg1PQ14kSb10CAhVlS R92ok2oaT2buryb0F19CNEvHJMyM2IIrW1CQIWKdjnnTDsCHOUiEZYpCOv2gSvQJmJZu mqIVEQ5sbwx9cLolfASD+n1g2HEoE+IM0dQ7gBDQnFzZcNerU5OVlUWsiUQ9mWomXJw3 yNWnT2bGuagkldIhd4HMGku4nE8jN7mCbo+HlDCcKCcGKTFIJO1fxg8GnJnN9eJRXZ8r Ms3g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=0VbE4Kf8; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e header.b=g3V6xq1m; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l11-20020a056a0016cb00b0056f0d233a56si8228734pfc.235.2022.12.02.06.20.42; Fri, 02 Dec 2022 06:20:52 -0800 (PST) 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=@linutronix.de header.s=2020 header.b=0VbE4Kf8; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e header.b=g3V6xq1m; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233532AbiLBOEJ (ORCPT + 82 others); Fri, 2 Dec 2022 09:04:09 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37076 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233372AbiLBOED (ORCPT ); Fri, 2 Dec 2022 09:04:03 -0500 Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9A294CCFF0; Fri, 2 Dec 2022 06:04:02 -0800 (PST) Date: Fri, 02 Dec 2022 14:03:59 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1669989841; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=5rlHz8XlHt/XX0ZCvLXfAi7Gf1XyWML+bixzqO6UKZI=; b=0VbE4Kf84dWpASqDL85we6j7kF8UWPh8skDDCiKSwi1HNJO9EFUCnl0fLAKMcUQm+DXdIR MVY/NxmTJwZSEro4/GxE42x5CnXuAb5XkiTjCcx0a4z9UBxnY4wOH6tiCtkULxLhEpqFgH EZVs23w/ZohUpCZaGCSMv0NyDiClCpNv68+YsbdsAL9Q5VChUzVRloV3rcFdss5As3m8EB kG5QvC3jLuTcunK/BvD96D1pn8Ar0sLpCXkcXCTu5wgidZpHv0pudOrbBUcSDfdimmyGaN hXro2PER3D6cec37l4QXU2HExJ3AnrEG9ru1QYnEyLVKGTgDdNEtL5cLpiBunw== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1669989841; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=5rlHz8XlHt/XX0ZCvLXfAi7Gf1XyWML+bixzqO6UKZI=; b=g3V6xq1m0v6OI/7hd0eVIiqG9JQ8A1kEgtGL5KvSgXTAa3QK4PNIStMIuCfEJjB54ITW9q cIOqBNHmoByfKRCg== From: "tip-bot2 for Rahul Tanwar" Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: x86/apic] dt-bindings: x86: apic: Introduce new optional bool property for lapic Cc: Andy Shevchenko , Rahul Tanwar , Thomas Gleixner , Rob Herring , x86@kernel.org, linux-kernel@vger.kernel.org In-Reply-To: <20221124084143.21841-3-rtanwar@maxlinear.com> References: <20221124084143.21841-3-rtanwar@maxlinear.com> MIME-Version: 1.0 Message-ID: <166998983993.4906.3074674764241043132.tip-bot2@tip-bot2> Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_PASS 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 The following commit has been merged into the x86/apic branch of tip: Commit-ID: b3a9801cccefda304263b4e84e9dfe49057f3c29 Gitweb: https://git.kernel.org/tip/b3a9801cccefda304263b4e84e9dfe49057f3c29 Author: Rahul Tanwar AuthorDate: Thu, 24 Nov 2022 16:41:41 +08:00 Committer: Thomas Gleixner CommitterDate: Fri, 02 Dec 2022 14:57:14 +01:00 dt-bindings: x86: apic: Introduce new optional bool property for lapic X86 defines a few possible interrupt delivery modes. With respect to boot/init time, mainly two interrupt delivery modes are possible. - PIC Mode: Legacy external 8259 compliant PIC interrupt controller - Virtual Wire Mode: Use lapic as virtual wire interrupt delivery mode ACPI and MPS spec compliant systems provide this information, but for OF based systems, it is by default set to PIC mode. In fact it is hardcoded to legacy PIC mode for OF based x86 systems with no option to choose the configuration between PIC mode & virtual wire mode. For this purpose, introduce a new boolean property for the lapic interrupt controller node which allows to configure it for virtual wire mode as well. Property name: 'intel,virtual-wire-mode' Type: Boolean If not present/not defined, interrupt delivery mode defaults to legacy PIC mode. If present/defined, interrupt delivery mode is set to virtual wire mode. Suggested-by: Andy Shevchenko Signed-off-by: Rahul Tanwar Signed-off-by: Thomas Gleixner Reviewed-by: Rob Herring Link: https://lore.kernel.org/r/20221124084143.21841-3-rtanwar@maxlinear.com --- Documentation/devicetree/bindings/interrupt-controller/intel,ce4100-lapic.yaml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/Documentation/devicetree/bindings/interrupt-controller/intel,ce4100-lapic.yaml b/Documentation/devicetree/bindings/interrupt-controller/intel,ce4100-lapic.yaml index 55184cb..d2d0145 100644 --- a/Documentation/devicetree/bindings/interrupt-controller/intel,ce4100-lapic.yaml +++ b/Documentation/devicetree/bindings/interrupt-controller/intel,ce4100-lapic.yaml @@ -39,6 +39,19 @@ properties: '#interrupt-cells': const: 2 + intel,virtual-wire-mode: + description: Intel defines a few possible interrupt delivery + modes. With respect to boot/init time, mainly two interrupt + delivery modes are possible. + PIC Mode - Legacy external 8259 compliant PIC interrupt controller. + Virtual Wire Mode - use lapic as virtual wire interrupt delivery mode. + For ACPI or MPS spec compliant systems, it is figured out by some read + only bit field/s available in their respective defined data structures. + For OF based systems, it is by default set to PIC mode. + But if this optional boolean property is set, then the interrupt delivery + mode is configured to virtual wire compatibility mode. + type: boolean + required: - compatible - reg @@ -54,4 +67,5 @@ examples: reg = <0xfee00000 0x1000>; interrupt-controller; #interrupt-cells = <2>; + intel,virtual-wire-mode; };