From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pf1-f173.google.com (mail-pf1-f173.google.com [209.85.210.173]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 005EB190666 for ; Thu, 29 Aug 2024 11:05:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.173 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1724929523; cv=none; b=YFzUz34cYPb0fVLkU61zWhrP+tD7JCZi5N6fx28BqBd6B1bXN0bsj5dYlrC8Z6Oe0Zw5d43m32ZJ15RMNvhu4a94Pn3FgW366Q/IWwQR2NYPcZQ1ADwPHZOhNxqfGSTvGjrAwwbF2jaLTwFV1Ibm0KRhpAl4LdHSK++/A6SNe6c= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1724929523; c=relaxed/simple; bh=ANsBIa2TdUYJmIfErVq94w5VFjOAUaSvlwr8O3efTQM=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=kZOj0NaU0kaQapNNuiH6OrgU7ujjF/TUFBj3bSVCWdlWHN61rnOQi9pZtvxyUfWYHr0keWAqyF5ykElWyq6yUxaXYEeB2cOt20z1uPtYsxgd0d/HglT73JMxK27JXsYdAIPyhfQvLr8a4442ktlkSWkMhMsfZ7rEhLT/BnGaa+c= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=dsGyIccY; arc=none smtp.client-ip=209.85.210.173 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="dsGyIccY" Received: by mail-pf1-f173.google.com with SMTP id d2e1a72fcca58-7141e20e31cso437886b3a.3 for ; Thu, 29 Aug 2024 04:05:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1724929521; x=1725534321; darn=lists.linux.dev; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=gsCX4I75Bt35ZXKA3R7bksaicVq4gEOUFqU0ER8sKQo=; b=dsGyIccYrXDJBEqKcYoFWRvJ0vl135o6mgme3Yxcx9f2cMAsB4J6DNle36z23mK0X+ BjfFupq87/yqJkxoH4TksReIGzFpc1w3rjKmdVRbFYzKCZYsOQcYAcjynhNEa+bSxa2S +JANDDOre9ADSz+PwFqgf52dsyHkzu2ibJHkwRiJf/njfImKEE4UY4zHrt034S7MY31l yO5enccXpY2Xrwvmuc4QbnwUzM6k0nqfjPPEG+whH6adXQocbCkCoP4nIXs962CkY01T SMK4iNyFjfwmgwbRfkzEvrihgikbEGcTmD+IKxicd+ZoP1yeJ0NklIklBDGMZ9R8UeEe K60g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1724929521; x=1725534321; 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=gsCX4I75Bt35ZXKA3R7bksaicVq4gEOUFqU0ER8sKQo=; b=flGuSRMJ1cyM8Np42KE7Okk+KOSSGXF0N5NcRKAxoxF7LZ0EH+Zg9JkjfKZEYw8H4/ OM02mD/KEWCx3U/yGCI/PC2s7JDDNjvp82OwVxfpcmgQXJEc6BnDCk7xbQgyJUpc63+s uGYFbWOpF9u9Rtvo7L6ToifVVrbBPYV92fApT/qilTCx2vnIlGppMs6mQBc5Z9XPedy0 MFUmVJsMAJmMndROCB1T+92xunH24UWAl51lHUvB/xALW67m+fMwSzcXVG+//t5e96/g kAxWEuPNulCZncyoF7/joD36pda2oMXx7O5fYMKumlrBndQcF+bux5pis2mzETJPzkkO M7VA== X-Forwarded-Encrypted: i=1; AJvYcCWWlaauarlEToJPZO8M/+zf7YtBo91fSOFOzrN7HFpF9gdTlWvB12YVYSkZLRUueHSzHIT5SA==@lists.linux.dev X-Gm-Message-State: AOJu0Yy/PgzAUh+YkhrffUfnwx5pDsxJBhIn9Ebf2yLAOIrgalS/54ii OXtJB5r2iLrAPeoTWHXFmgAH2TkFvpDfvMXq0+t0Ktc1Wxm9nC3N X-Google-Smtp-Source: AGHT+IG5uHzBuuTpBUgVsDRXpGnCV/Y6SAkTlghqjk76zLB5VEdpH82AMuT/Q0uG81tPW1Uzq1lrfA== X-Received: by 2002:a05:6a00:1806:b0:714:2069:d90e with SMTP id d2e1a72fcca58-715dfc7a4fbmr3076028b3a.26.1724929521137; Thu, 29 Aug 2024 04:05:21 -0700 (PDT) Received: from localhost.localdomain ([59.188.211.160]) by smtp.googlemail.com with ESMTPSA id d2e1a72fcca58-715e5576cc7sm906671b3a.32.2024.08.29.04.05.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 29 Aug 2024 04:05:20 -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, Nick Chan Subject: [PATCH RESEND 0/3] Add AIC support for A7-A11 SoCs Date: Thu, 29 Aug 2024 19:02:14 +0800 Message-ID: <20240829110436.46052-1-towinchenmi@gmail.com> X-Mailer: git-send-email 2.46.0 Precedence: bulk X-Mailing-List: asahi@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Resend to correct dt-bindings issues pointed out by Rob. Hi, This series is a second attempt at adding support for A7-A11 SoCs to Linux, it is based on a previous attempt, which you can find at [1]. However, there have been quite a bit of changes. First, the boot process has changed, now, the boot process includes a "1337" version of checkra1n [2], a custom PongoOS binary [3], and a modified version of m1n1 [4]. The kernel is appended to m1n1 and loaded by it. This attempt also supports SMP, which has uncovered some differences in the A7-A11 AIC. Namely, although A11 supported fast IPI, it only supported "global" fast IPIs via SYS_IMP_APL_IPI_RR_GLOBAL_EL1, and SYS_IMP_APL_IPI_RR_LOCAL_EL1 does not exist on A11. As a result, there are now three feature levels: A7 - A10: No fast IPI A11: "Global" fast IPI M1: Global and Local fast IPI Each feature level is strictly an extension of the previous, for example, M1 will also work with the A7-A10 compatible. As a result, the modifications only includes if'ing out of features, in order to make the existing driver work on older SoCs. The A10(X) contains P-core and E-core pairs where only one core in each pair may be active at one time, controlled by CPU frequency. A RFC patch will be posted to disable 32-bit executable support on A10(X), as it only supported 16KB page size anyways. However, such a patch is not required to run AArch64 Linux on A10. At worst, any attempt to run 32-bit executables will result in the process crashing. Initial device trees will be posted in a later patch series, likely when the AIC modifications are accepted. Asahi Linux downstream kernel note: These patches will not work with the Asahi Linux downstream kernel, as these earlier SoCs do not support state retention across deep WFI, which results in the CPUs going back to RVBAR on cpuidle. [1]: https://lore.kernel.org/asahi/20221007200022.22844-1-konrad.dybcio@somainline.org/ [2]: https://checkra.in/1337 [3]: https://github.com/asdfugil/pongoOS/tree/mini [4]: https://github.com/asdfugil/m1n1-idevice Nick Chan (3): dt-bindings: apple,aic: Document A7-A11 compatibles irqchip/apple-aic: Only access IPI sysregs when use_fast_ipi is true irqchip/apple-aic: Add a new "Global fast IPIs only" feature level .../interrupt-controller/apple,aic.yaml | 8 ++- drivers/irqchip/irq-apple-aic.c | 49 ++++++++++++++----- 2 files changed, 43 insertions(+), 14 deletions(-) -- 2.46.0