From patchwork Sun Sep 1 03:40:03 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nick Chan X-Patchwork-Id: 13786244 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 5EC26CA101E for ; Sun, 1 Sep 2024 03:43:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: MIME-Version:Message-ID:Date:Subject:Cc:To:From:Reply-To:Content-Type: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=9gYVZX9F0tsvEizawck6Gs6K9CkXboSi1RjrBxnHjqQ=; b=xmYcXn/enrP7nUl9Z8ExMJXacs +3TiRfMfDE5KrBdWmzPZ9YNNteo7eecz7bmcGjwcXIOzzzjEsEg8CVd7xWhbDBtJvQJPjn5O9rwV9 MX8gDcn3/0INvV1fDUGAMLAbZCO9FnG+gzQPgyD+D/zWBksq/TwKGf+2Kr02MVunZfLGuG+VBNoIA 9qhYZUvMo1citpx+Sww6wzL4PeygLJjWHmCzNaNsyU1hPwVFR5dS1ZCbL5T775nMzskEA9EOATbtL rbudV70Nvn94Uu8wmdlEDdOYOoZAuGSDSA8pFDctYjm64N1E3k4+YsjRwcnpqqRL+C7/415fFzgnM H1UuQ57A==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1skbUf-0000000AkWd-0a1s; Sun, 01 Sep 2024 03:43:13 +0000 Received: from mail-pf1-x432.google.com ([2607:f8b0:4864:20::432]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1skbTl-0000000AkJc-3CWs for linux-arm-kernel@lists.infradead.org; Sun, 01 Sep 2024 03:42:19 +0000 Received: by mail-pf1-x432.google.com with SMTP id d2e1a72fcca58-7141285db14so2754093b3a.1 for ; Sat, 31 Aug 2024 20:42:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1725162137; x=1725766937; darn=lists.infradead.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=9gYVZX9F0tsvEizawck6Gs6K9CkXboSi1RjrBxnHjqQ=; b=Ew2q+e6bhLxYg1oG/U6PkDm0LGDUv6S8LY42tEkIa94WCykTifO9M1JOANn72QpC8y XenGEOUvQDZPtD1jy0V7PwJell7Qx7flSZ1bTp5ZingCJksVeF6gSjU3df6Ox04+JAJ9 pxDdYmA2MQsi8h0sLQmShnDxHqYZT62WXMEFbaww79Pex0W76z5zmvNLwlqN4sSvcKBA p7E20+gN2SFRjXGJmesjKDIRK3xe8D3M7pBNATI/8yVi1r9liXRTqbAxCnLd8mfIM9qG mnAFlhD3NdqCTXGlX4cKFygmwZ625WRPtm6Dc+SUnHI4BnOFHvGSYhhz115hJLFi+Ged hO5Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1725162137; x=1725766937; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=9gYVZX9F0tsvEizawck6Gs6K9CkXboSi1RjrBxnHjqQ=; b=cdNeeB1xwyOY4T6X90MP7bYR3/Sst1kLepVadtMcdx0RzwNiEN+rlZNQaNR88Vu/Qi k8rqhwK+c9O7hWYo+8XOb+KhhjEMJnnA4sBWIZzGucwJiACZwzY920Ib4A3ixn5uoyIY jWTAtCSId/bYXDb8mVo+T923QKK4GJRK1djEElTw/fQYHvFtFpwePTKqIOiWlyI3PNqT BHsYcZfLe6l4N7K5pBIEoR6EhAXQPUbgjDQ+lBXLwFFGUagP+W91fqiJlogfRQfgnach 4ZrNQeEdgXsPNdBcIKgERL1r4921AhB1fJtPitZavx5TkF3t4DkoTZ/Xz6ZwpIpTEaH3 +x8w== X-Forwarded-Encrypted: i=1; AJvYcCUZecpclILKSR1wI27qcRWnOC7LPEbCyfjeDPmoe9ahALOYm9V1uuqPExLG1YRXwAG4odyiiTUfoWDl2xDNEPCl@lists.infradead.org X-Gm-Message-State: AOJu0YxaHDVYwf95ykpi3Rvjp7pRxwNGK5Frc11SzzNPBB0fyi3r3Oc1 cOo3Gd6bKsDRc5WhhMO9BXq/2Rwt+dtfiIXSzp/LW7OKxjDtTReP X-Google-Smtp-Source: AGHT+IFPTZn+Qx6Y7uy1KDmqweQR1DLiZyvrq+mdNBFj8DsOiSWLbxltzHOIzgIY1JSGFgGkZe/9gw== X-Received: by 2002:a05:6a00:813:b0:714:389d:6e6e with SMTP id d2e1a72fcca58-7173b690c10mr5859132b3a.21.1725162136682; Sat, 31 Aug 2024 20:42:16 -0700 (PDT) Received: from localhost.localdomain ([49.130.72.113]) by smtp.googlemail.com with ESMTPSA id d2e1a72fcca58-715e55771ccsm4826767b3a.43.2024.08.31.20.42.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 31 Aug 2024 20:42:16 -0700 (PDT) From: Nick Chan To: Hector Martin , Sven Peter , Alyssa Rosenzweig , Thomas Gleixner , Rob Herring , Krzysztof Kozlowski , Conor Dooley , asahi@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org Cc: ~postmarketos/upstreaming@lists.sr.ht, konrad.dybcio@somainline.org, Nick Chan Subject: [PATCH v3 0/4] Add support for A7-A11 AIC Date: Sun, 1 Sep 2024 11:40:03 +0800 Message-ID: <20240901034143.12731-1-towinchenmi@gmail.com> X-Mailer: git-send-email 2.46.0 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240831_204217_822778_6D0DD5DE X-CRM114-Status: GOOD ( 15.44 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Hi, This patch series introduce support for A7-A11 SoCs into the AIC driver by if'ing out some features unavailable on them. For background information about these SoCs, see v1. Changes since v2: - Removed mention of the IPI-always-ack code path in aic_handle_fiq(). The patch to enable A7-A10 SoC to work is a bug fix to avoid accessing sysregs on configurations that do not provide them, and the rest of the message already explains what's going on. Changes since v1: - Corrected dt-binding issues pointed out by Rob, all of A7-M1 gets its own SoC compat, as well as the "apple,aic" generic fallback. - Order the AIC dt-bindings of the SoCs by release dates instead of alphabetical order: 's5l8960x' (A7) -> 't7000' (A8) -> 's8000' (A9) -> 't8010' (A10) -> 't8015' (A11) -> 't8103' (M1) - The patch to disallow local fast IPI on A11 now comes before the patch that enables to AIC driver to work on slow IPI systems. This ensures all IPI-always-ack code path in aic_handle_fiq() is removed by the slow IPI patch. - Keep local fast IPI enabled on AIC2, mistake in V1 - Describe the feature levels in the description of AIC. - Add new patch to remove unneccessary enablement of use_fast_ipi. - Do not try to enable use_local_fast_ipi, because it is enabled by default. In theory M1 can also get the apple,t8015-aic (A11) compatible. However, I do not see a point in doing that. Previous versions: v1: https://lore.kernel.org/asahi/20240829092610.89731-1-towinchenmi@gmail.com v2: https://lore.kernel.org/asahi/20240831055605.3542-1-towinchenmi@gmail.com Nick Chan Konrad Dybcio (1): irqchip/apple-aic: Only access system registers on SoCs which provide them Nick Chan (3): dt-bindings: apple,aic: Document A7-A11 compatibles irqchip/apple-aic: Skip unnecessary setting of use_fast_ipi irqchip/apple-aic: Add a new "Global fast IPIs only" feature level .../interrupt-controller/apple,aic.yaml | 14 ++++- drivers/irqchip/irq-apple-aic.c | 53 +++++++++++++------ 2 files changed, 49 insertions(+), 18 deletions(-) base-commit: 985bf40edf4343dcb04c33f58b40b4a85c1776d4