From patchwork Mon Oct 3 06:20:15 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mathew McBride X-Patchwork-Id: 15 Return-Path: Received: from mail01.ipfire.org (mail01.haj.ipfire.org [172.28.1.202]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) client-signature ECDSA (P-384)) (Client CN "mail01.haj.ipfire.org", Issuer "R3" (verified OK)) by web04.haj.ipfire.org (Postfix) with ESMTPS id 4MgrSV6vXvz3wgq for ; Mon, 3 Oct 2022 06:26:02 +0000 (UTC) Received: from mail02.haj.ipfire.org (mail02.haj.ipfire.org [172.28.1.201]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) client-signature ECDSA (P-384)) (Client CN "mail02.haj.ipfire.org", Issuer "R3" (verified OK)) by mail01.ipfire.org (Postfix) with ESMTPS id 4MgrSS2x7Qz2RQ; Mon, 3 Oct 2022 06:26:00 +0000 (UTC) Received: from mail02.haj.ipfire.org (localhost [127.0.0.1]) by mail02.haj.ipfire.org (Postfix) with ESMTP id 4MgrSS0l4tz2ysT; Mon, 3 Oct 2022 06:26:00 +0000 (UTC) Received: from mail01.ipfire.org (mail01.haj.ipfire.org [172.28.1.202]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) client-signature ECDSA (P-384)) (Client CN "mail01.haj.ipfire.org", Issuer "R3" (verified OK)) by mail02.haj.ipfire.org (Postfix) with ESMTPS id 4MgrSQ5Stkz2xHF for ; Mon, 3 Oct 2022 06:25:58 +0000 (UTC) Received: from out4-smtp.messagingengine.com (out4-smtp.messagingengine.com [66.111.4.28]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384)) (Client did not present a certificate) by mail01.ipfire.org (Postfix) with ESMTPS id 4MgrSP5vydzWy for ; Mon, 3 Oct 2022 06:25:57 +0000 (UTC) Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.nyi.internal (Postfix) with ESMTP id 5D8B75C008F; Mon, 3 Oct 2022 02:20:28 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute3.internal (MEProxy); Mon, 03 Oct 2022 02:20:28 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=traverse.com.au; h=cc:cc:content-transfer-encoding:date:date:from:from :in-reply-to:message-id:mime-version:reply-to:sender:subject :subject:to:to; s=fm1; t=1664778028; x=1664864428; bh=f6v3lJSd1I zuioxSrK5Wkch2Tm96o+NigSV5XER7m38=; b=GflXtQ1DxOvN9YNeE86zffmTOB CnqRydxI9sDHzJS5Ad/XXeD+WnCdPRijzOAx1CIW9ZIyC/3oJl2Sy6LItdbATfly GgocQ8guCsi6Qj+aBEitFB23tuCpT/rGoz+Pa7lLE/tir5ScuxldH0GfKTVGsgUE F+wFwR8WEYLiYiB3ZQWXFjsRPOUwAawSd56lGUU8kGOvQgzVVlvNgy7GDIn4xPSf vrUEXdFWaHN9JceAmkfzwhRxx9n/WgwgtFgVW5oLKnd1mhYlZj6jjP3dDARsPxh1 bq1RjftUFL/8S8Px7MYVIEnh4lg46+9VTv7zYeWYQwkjiX46nFVXt83gYoSQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding:date:date :feedback-id:feedback-id:from:from:in-reply-to:message-id :mime-version:reply-to:sender:subject:subject:to:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; t= 1664778028; x=1664864428; bh=f6v3lJSd1IzuioxSrK5Wkch2Tm96o+NigSV 5XER7m38=; b=ayCSwSwpM7nnMWYA7Z7xCxzqSLNA9oPp3J9eic29LxL1mbq7c1u BMInl2wfKlDSNTonXQVVoTbZCIk/0NwpagQ6oTPWXndQcHmtKYKjIOmIyKy+3RtM Eungzo/Icj0kREKdV21+LBRjcPF+joRiYG9FR2bCMCIgUUMffWtutTogJjnyQ821 lQFhJR6xhLwE+GptsxV0d0/cND1t6E+Ct0MsIGyUMZlXHkllQvI0a4YxBRreRVPw J681rX3SFniDVfU5OFqG4RFKjvExHu6XnhydF6HuDwmuRmr7+i9rRnTbKeCLxMC3 272rlL7UC9OsYw9FqArtkaR9ACxe26voWEQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrfeehkedguddtkecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecunecujfgurhephffvvefufffkofgggfestdekre dtredttdenucfhrhhomhepofgrthhhvgifucfotgeurhhiuggvuceomhgrthhtsehtrhgr vhgvrhhsvgdrtghomhdrrghuqeenucggtffrrghtthgvrhhnpedutdehvdehieeujedvud ekudegheelhedtudehfedtteevkeeiieeiteefffeiveenucffohhmrghinhepthhrrghv vghrshgvrdgtohhmrdgruhdpihhpfhhirhgvrdhorhhgnecuvehluhhsthgvrhfuihiivg eptdenucfrrghrrghmpehmrghilhhfrhhomhepmhgrthhtsehtrhgrvhgvrhhsvgdrtgho mhdrrghu X-ME-Proxy: Feedback-ID: i426947f3:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 3 Oct 2022 02:20:26 -0400 (EDT) From: Mathew McBride To: development@lists.ipfire.org Subject: [PATCH 0/4] kernel: aarch64: Add support for Traverse Ten64 board Date: Mon, 3 Oct 2022 06:20:15 +0000 Message-Id: <20221003062019.19636-1-matt@traverse.com.au> X-Mailer: git-send-email 2.30.1 MIME-Version: 1.0 ARC-Seal: i=1; s=202003rsa; d=lists.ipfire.org; t=1664778358; a=rsa-sha256; cv=none; b=MudybPsl9FLio7tso4qnzgst24nEY+q78jzX9K0wEVYbU1qkseHBbQyzeB8U9cgjNQElH2 BJjO8VsjHu6gov1FFlrw5/8HNP+d30ubFZ8lW+b/vcfJHg64DvsR2w5QM9wFYipybYl3Yo WqAJkENGyLk2GyCtcYHhN9NvsVvipFfS1tqyiB5T6X58F1PcdYXA8PBJ90ZjylsA5gWAQ7 fSOIx7wFZv3dPlczLaeTXRfPxnxpc0CNGv4yhaKfV8mUooM7hOie1xhFaCmWRa0rkgv6BG xqJ6hkFL3V7+otV66V4U8feGHSD6ilM41OpYr54xrwKuzI43jPPR2eLOTkP9xA== ARC-Authentication-Results: i=1; mail01.ipfire.org; dkim=pass header.d=traverse.com.au header.s=fm1 header.b=GflXtQ1D; dkim=pass header.d=messagingengine.com header.s=fm2 header.b=ayCSwSwp; spf=pass (mail01.ipfire.org: domain of matt@traverse.com.au designates 66.111.4.28 as permitted sender) smtp.mailfrom=matt@traverse.com.au; dmarc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=lists.ipfire.org; s=202003rsa; t=1664778358; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding:dkim-signature; bh=f6v3lJSd1IzuioxSrK5Wkch2Tm96o+NigSV5XER7m38=; b=DB/pNrf0yBRURXe9GigjR2aQr5/eZara+TaYLDwfqy3v2dIGVzZOi14LGq5y6M/1CpKRKU ekI3XFaSpFE9VB2vETuw1Ykc/GSI72jvIdSgs90rHA9yY1HMPYGhbkSHuoWPWvWdE9ySWk bQkreVq4JPMbsrVpphLLmy01GDTPtOsU6si5phbPWC8ZWRKmuIfFLCt1e4/KqqFrZoNmeo L6tNswmA5HSlq4rFT9mQyWCh2NotXSWJQZ8EcsxTEk6XgYVkLoJhCtW5waFb4dD1WBXtWg zJbBuFhPU+fcCRRDLtNl0Y0z9aXWGBThhXe+PhOZPpeBniza9Iy1iKZuH47ZLg== Authentication-Results: mail01.ipfire.org; dkim=pass header.d=traverse.com.au header.s=fm1 header.b=GflXtQ1D; dkim=pass header.d=messagingengine.com header.s=fm2 header.b=ayCSwSwp; spf=pass (mail01.ipfire.org: domain of matt@traverse.com.au designates 66.111.4.28 as permitted sender) smtp.mailfrom=matt@traverse.com.au; dmarc=none X-Rspamd-Server: mail01.haj.ipfire.org X-Spamd-Result: default: False [-2.06 / 11.00]; DWL_DNSWL_LOW(-1.00)[messagingengine.com:dkim]; MID_CONTAINS_FROM(1.00)[]; NEURAL_HAM(-1.00)[-0.998]; DKIM_REPUTATION(-0.93)[-0.92939736037945]; R_MISSING_CHARSET(0.50)[]; IP_REPUTATION_HAM(-0.38)[asn: 19151(-0.38), country: US(-0.01), ip: 66.111.4.28(0.00)]; R_DKIM_ALLOW(0.29)[traverse.com.au:s=fm1,messagingengine.com:s=fm2]; R_SPF_ALLOW(-0.20)[+ip4:66.111.4.28]; MIME_GOOD(-0.10)[text/plain]; RCVD_IN_DNSWL_LOW(-0.10)[66.111.4.28:from]; RWL_MAILSPIKE_GOOD(-0.10)[66.111.4.28:from]; BAYES_HAM(-0.03)[56.35%]; MX_GOOD(-0.01)[]; FROM_HAS_DN(0.00)[]; ARC_NA(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DMARC_NA(0.00)[traverse.com.au]; MIME_TRACE(0.00)[0:+]; RCVD_TLS_LAST(0.00)[]; ARC_SIGNED(0.00)[lists.ipfire.org:s=202003rsa:i=1]; TO_DN_SOME(0.00)[]; ASN(0.00)[asn:19151, ipnet:66.111.4.0/24, country:US]; RCVD_COUNT_THREE(0.00)[4]; RCPT_COUNT_TWO(0.00)[2]; DKIM_TRACE(0.00)[traverse.com.au:+,messagingengine.com:+]; FROM_EQ_ENVFROM(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[] X-Rspamd-Queue-Id: 4MgrSP5vydzWy X-BeenThere: development@lists.ipfire.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: IPFire development talk List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: development-bounces@lists.ipfire.org Sender: "Development" Hi all, This patchset adds support for our (Traverse) Ten64 board, which is an ARM64 networking board using NXP's LS1088A SoC. I have been intending to do this for a very long time but was waiting for the kernel version to be upgraded to 5.10 or above given the significant amount of work that has been done upstream for this hardware in recent times. There are four components to this patch: 1: Enable the relevant kernel options for our box This follows our doc at https://ten64doc.traverse.com.au/kernel/ 2: Add patches to fully support SFP+ One of these patches came in after 5.15+, while the other fixes a deadlock issue that occurs when detaching/unloading the SFP+ ports (such as rebooting the system). Unfortunately this issue has been stalled upstream without resolution for a while now. 3: Fix our real time clock (rtc-rx8025) not being modprobed I haven't been able to figure out why our RTC driver does not get loaded, given every other relevant module (like GPIO, I2C) does get loaded. If there is a better way to do this, feel free to NAK and suggest a better method. 4: Bypass the u-boot bootscript on Ten64 The Ten64 uses u-boot which has both EFI and classic 'distroboot' support. We much prefer to boot EFI as this provides some benefits, such as not having to supply your own device tree. A quirk of the Ten64 implementation (related to how the IOMMU hardware is configured) is that a "failed" bootscript will block the boot of other types (like EFI), so detect if we are on a Ten64 and jump straight to GRUB. My intention is to prioritize EFI always in a future Ten64 firmware release so this doesn't happen, at which point this hack can be removed. (Removing boot.scr does the same thing, but I prefer that it will boot out of the box without modification) Here is the fireinfo from a Ten64: https://fireinfo.ipfire.org/profile/97f7fd96a529ca2e5488ab095b7d9effe67d0ef3 (Note to self: I should figure out how to improve the fireinfo output on ARM platforms) I have also tested this on an AWS Graviton (ARM64) instance to verify there are no regressions on other "standard" (EFI-capable) ARM64 systems. Mathew McBride (4): linux: enable options for NXP Layerscape kernel: add patches for SFP support on NXP Layerscape/DPAA2 (arm64) config: u-boot: bypass the u-boot script on Traverse Ten64 initscripts: load RTC module (RX8025) for Ten64 board:w config/kernel/kernel.config.aarch64-ipfire | 76 +++++++++++++---- config/u-boot/boot.cmd | 9 +++ lfs/linux | 3 + src/initscripts/system/setclock | 8 ++ ...rm64-dpaa2-add-support-for-10g-modes.patch | 39 +++++++++ ...inux-5.15-arm64-dpaa2-fix-lock-issue.patch | 81 +++++++++++++++++++ 6 files changed, 202 insertions(+), 14 deletions(-) create mode 100644 src/patches/linux/linux-5-15-arm64-dpaa2-add-support-for-10g-modes.patch create mode 100644 src/patches/linux/linux-5.15-arm64-dpaa2-fix-lock-issue.patch