From nobody Fri Oct 3 23:06:00 2025 Received: from fout-b3-smtp.messagingengine.com (fout-b3-smtp.messagingengine.com [202.12.124.146]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 0D1E221CA10; Sat, 23 Aug 2025 09:49:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=202.12.124.146 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1755942594; cv=none; b=k0ls0Rh/CcHC6xSjr3/NyztBlIgzjsfgt81PvDGbJOZNZHnDET0/oZBymNEbnsF2NR0zIeVoHpE1AcW0Y5sMgg9nKlrjsQ/Z9UCb01kTbV7Blz6ZMKCMTaTnsLNKzRyewAoYYiJI/spNwpE4wxjts403py78pDj/cW7QfPdxn5g= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1755942594; c=relaxed/simple; bh=XWIZbXwdxDJd23FH6/oKGvuq/lQptExK9nszv65rwJI=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=Pci8zSIYAbUD2iq60+XiYNVRM83EBJMic8tj5Syt5VkO+5uphHKcmWF1FkTgdAK9mNzV+gIDx7o27DNnTlqZ4HVM7ecoWgWyk/tI/WQ1sgP8BzcxbwOeJgAxnfZ28IIiz4O12/6fRF4vf3hSn5guOa3uRQ8ipAbkNxMURvtVwzA= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=jannau.net; spf=pass smtp.mailfrom=jannau.net; dkim=pass (2048-bit key) header.d=jannau.net header.i=@jannau.net header.b=PsmckjTl; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b=ALLfk5Ui; arc=none smtp.client-ip=202.12.124.146 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=jannau.net Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=jannau.net Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=jannau.net header.i=@jannau.net header.b="PsmckjTl"; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b="ALLfk5Ui" Received: from phl-compute-04.internal (phl-compute-04.internal [10.202.2.44]) by mailfout.stl.internal (Postfix) with ESMTP id E5D731D0008C; Sat, 23 Aug 2025 05:49:51 -0400 (EDT) Received: from phl-mailfrontend-01 ([10.202.2.162]) by phl-compute-04.internal (MEProxy); Sat, 23 Aug 2025 05:49:52 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=jannau.net; h=cc :cc:content-transfer-encoding:content-type:content-type:date :date:from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to; s=fm2; t=1755942591; x=1756028991; bh=oT5aGklpLSOry0yNA9sTS19R2dJWWLhIf5yLUeAuuD0=; b= PsmckjTlqae1lzwYkRfHYHvkr1cUa9njigPTloF8nOtyz/B4Ttuv113Kjzr6kGcI vK0OH+ogsVQvJoFKT8qFq6x8eSwoprY35gR3Eteerv8VaSGIYDKa6Hjg5Y3+qo70 tsWaX0QLrgeW+ldCjjr25SdI5GUHvPJidTY47odLmciBuHZ5dKH1Fi3ghz5/HyQA /gAhMMwicQP8XFWpFdgsy8jJ8wfEbJ+v3Ex3cw4+r7wSHlz9WCzrTPOmvGx5j9HG iEl9I+62zsSMsbNS6mwiKpuo8XgRj14G1JORPth0VEe9ZJ6A803YkVzh3GEEIH3m Z75PHMOjhBVijvaR72hpXA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm3; t=1755942591; x= 1756028991; bh=oT5aGklpLSOry0yNA9sTS19R2dJWWLhIf5yLUeAuuD0=; b=A LLfk5UiO+4wciDQXn8d1rsxQHnKNXs0ZY7x3Jbzu558TTwrrUF50VESKq8EiAwLv 7B4Z3Z9uH6hRtZu+CPQiUmiIEFDJyGYdJOYCUvCLKXHJ3j7C2H5Pc62JOL+ed3Zh 8Sg/d5OBbGlmhwFEi4e48y2I2ylUv1YfYNmgcvAOxCeOFop3rXbA8woQgjEJydmW UlYOePR9YYTpCriRRtYSBjUc6W04wqInkXR3h36sBuFvTFpw2RkRDujuXDkl5VAa 8UzAbwXtoZqWSl8LyuVRcLKIOTVtjsFRIj8+gj8zLF3DT9BUjKRF4498uuyKmZWg 3MfY1gw9QFdeU96TKHc8w== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeffedrtdefgdduieeifedvucetufdoteggodetrf dotffvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfurfetoffkrfgpnffqhgenuceu rghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmnecujf gurhephfffufggtgfgkfhfjgfvvefosehtjeertdertdejnecuhfhrohhmpeflrghnnhgv ucfirhhunhgruhcuoehjsehjrghnnhgruhdrnhgvtheqnecuggftrfgrthhtvghrnhepfe ehheeileduffehteeihfdvtdelffdutdeludduiedutedvfeffheekhefgtedtnecuvehl uhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepjhesjhgrnhhnrg hurdhnvghtpdhnsggprhgtphhtthhopedufedpmhhouggvpehsmhhtphhouhhtpdhrtghp thhtohepuggvvhhitggvthhrvggvsehvghgvrhdrkhgvrhhnvghlrdhorhhgpdhrtghpth htohepkhgvthhtvghnihhssehophgvnhgsshgurdhorhhgpdhrtghpthhtoheprhhosghh sehkvghrnhgvlhdrohhrghdprhgtphhtthhopehkrhiikhdoughtsehkvghrnhgvlhdroh hrghdprhgtphhtthhopegtohhnohhrodgutheskhgvrhhnvghlrdhorhhgpdhrtghpthht oheprghsrghhiheslhhishhtshdrlhhinhhugidruggvvhdprhgtphhtthhopehlihhnuh igqdhkvghrnhgvlhesvhhgvghrrdhkvghrnhgvlhdrohhrghdprhgtphhtthhopehlihhn uhigqdgrrhhmqdhkvghrnhgvlheslhhishhtshdrihhnfhhrrgguvggrugdrohhrghdprh gtphhtthhopehmrghrtggrnhesmhgrrhgtrghnrdhsth X-ME-Proxy: Feedback-ID: i47b949f6:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sat, 23 Aug 2025 05:49:51 -0400 (EDT) From: Janne Grunau Date: Sat, 23 Aug 2025 11:49:44 +0200 Subject: [PATCH v2 1/5] arm64: dts: apple: t8103-j457: Fix PCIe ethernet iommu-map Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20250823-apple-dt-sync-6-17-v2-1-6dc0daeb4786@jannau.net> References: <20250823-apple-dt-sync-6-17-v2-0-6dc0daeb4786@jannau.net> In-Reply-To: <20250823-apple-dt-sync-6-17-v2-0-6dc0daeb4786@jannau.net> To: Sven Peter , Alyssa Rosenzweig , Neal Gompa , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Mark Kettenis , Hector Martin Cc: asahi@lists.linux.dev, linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Janne Grunau X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=openpgp-sha256; l=1730; i=j@jannau.net; s=yk2024; h=from:subject:message-id; bh=XWIZbXwdxDJd23FH6/oKGvuq/lQptExK9nszv65rwJI=; b=owGbwMvMwCW2UNrmdq9+ahrjabUkhoyVfTuvnRMX2tB3Sq7zV2rls5l2B/wZZFXY5rpVecpsq NmrFpnaUcrCIMbFICumyJKk/bKDYXWNYkztgzCYOaxMIEMYuDgFYCI3Ixn+2eca3eDfwuYy51u3 vaTXxjWJrPzTkuff1t7RE3tGsrWpiJFhWt3/gr/uj5rqGUq2J/9fdSnzZbFyfF55pU+Cfv+Ui4U MAA== X-Developer-Key: i=j@jannau.net; a=openpgp; fpr=8B336A6BE4E5695E89B8532B81E806F586338419 PCIe `port01` of t8103-j457 (iMac, M1, 2 USB-C ports, 2021) is unused and disabled. Linux' PCI subsystem assigns the ethernet nic from `port02` to bus 02. This results into assigning `pcie0_dart_1` from the disabled port as iommu. The `pcie0_dart_1` instance is disabled and probably fused off (it is on the M2 Pro Mac mini which has a disabled PCIe port as well). Without iommu the ethernet nic is not expected work. Adjusts the "bus-range" and the PCIe devices "reg" property to PCI subsystem's bus number. Fixes: 7c77ab91b33d ("arm64: dts: apple: Add missing M1 (t8103) devices") Reviewed-by: Neal Gompa Reviewed-by: Sven Peter Signed-off-by: Janne Grunau --- arch/arm64/boot/dts/apple/t8103-j457.dts | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/arch/arm64/boot/dts/apple/t8103-j457.dts b/arch/arm64/boot/dts= /apple/t8103-j457.dts index 152f95fd49a2118093396838fbd8b6bd1b518f81..7089ccf3ce55661f3f83810496d= aed40c8199189 100644 --- a/arch/arm64/boot/dts/apple/t8103-j457.dts +++ b/arch/arm64/boot/dts/apple/t8103-j457.dts @@ -21,6 +21,14 @@ aliases { }; }; =20 +/* + * Adjust pcie0's iommu-map to account for the disabled port01. + */ +&pcie0 { + iommu-map =3D <0x100 &pcie0_dart_0 1 1>, + <0x200 &pcie0_dart_2 1 1>; +}; + &bluetooth0 { brcm,board-type =3D "apple,santorini"; }; @@ -36,10 +44,10 @@ &wifi0 { */ =20 &port02 { - bus-range =3D <3 3>; + bus-range =3D <2 2>; status =3D "okay"; ethernet0: ethernet@0,0 { - reg =3D <0x30000 0x0 0x0 0x0 0x0>; + reg =3D <0x20000 0x0 0x0 0x0 0x0>; /* To be filled by the loader */ local-mac-address =3D [00 10 18 00 00 00]; }; --=20 2.50.1