From nobody Fri Jun 14 15:06:10 2024 X-Original-To: freebsd-riscv@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4W12fd6n74z5P1jf for ; Fri, 14 Jun 2024 15:06:17 +0000 (UTC) (envelope-from jfc@mit.edu) Received: from NAM12-DM6-obe.outbound.protection.outlook.com (mail-dm6nam12on20701.outbound.protection.outlook.com [IPv6:2a01:111:f403:2417::701]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mail.protection.outlook.com", Issuer "DigiCert Cloud Services CA-1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4W12fc6Sdjz4gr9 for ; Fri, 14 Jun 2024 15:06:16 +0000 (UTC) (envelope-from jfc@mit.edu) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=mit.edu header.s=selector2 header.b=fuc8pEKD; dmarc=pass (policy=none) header.from=mit.edu; spf=pass (mx1.freebsd.org: domain of jfc@mit.edu designates 2a01:111:f403:2417::701 as permitted sender) smtp.mailfrom=jfc@mit.edu; arc=pass ("microsoft.com:s=arcselector9901:i=1") ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=DDL5i9tUzIlv4HXF5uu2nJVykqUp3J03yM4c5DA/tliVvQZ+BMhFyGtuQWAwHpVf8Yz7f9+KdAzbohhLhteho5UUznaWeqPAPLF44Tr0OZqS8toKJtT+9S8sFPosQNlYelo4ZPvu0Dn7mzUQVsZ6pTuj9rG/x6RZEnM9ngrJR+nDIF8/i4lXJVzZu7p9QSzZyBNuf6FyYAhxzZXQM09Z8JqlJNd+G1lolvNLBf97wnscmO3R8Tsr08a2qtU9PgPostE2YF7yY/9BUj85TUyB6zMqibOE4Llq3vMM+K4VvI1OgV6uj6TTF5VYeXBbXg7TgZ2MrT7LpxIhIkGDBNHi4Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=3LMW97EK52sw5wsIZ9rkFttscjpxbCIiPAW4YyoaDSc=; b=TUFermhJXyT9RfGhRO2Hm0f/MSfPgEBdyViru+hM9a8LbS4/kYPkC+jepECvUoz2/IJhnXYs1NmmJNQ/CKyq72dvhV//fdm/kcRIiJ5w3XWQV05cDC7xNl6bKv38H0d/muBfYQQ0+8ygGfRw9EYkkmTnHmonXQc2Lrnd5+ugqqIoy100ncD1A2ZcH7128hGupcMr6OnoNzp6GVhyBIGiknxHQIGBOpKIaV759UCRoaht8RUQGyNRzvvM/V4sLQUEpTt3r68E/amm4YS1jytqrtoOzv7GEG6+i7RKZjBsMelyOp6Z+t9NgcK++QrkLOURmO43zZPxaGVh7Eqzuj3VUg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=mit.edu; dmarc=pass action=none header.from=mit.edu; dkim=pass header.d=mit.edu; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mit.edu; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=3LMW97EK52sw5wsIZ9rkFttscjpxbCIiPAW4YyoaDSc=; b=fuc8pEKDiLfwlJRutMgGIU5gKjJqpwXUucsZ4SnCvRyp5ZgryAIqCYE1uQo6Jq5MA8idhfF0Pg5NITHSnRpoZRql4B/1VJWsZdYo0zeloyLS2GBCKw1mASbsyugtcs8NQ8DJb3YxX0tbHwHBN5UbFOE8uz6WgFc/HggizvLU/aY= Received: from SA3PR01MB8450.prod.exchangelabs.com (2603:10b6:806:382::17) by MW6PR01MB8341.prod.exchangelabs.com (2603:10b6:303:239::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7677.20; Fri, 14 Jun 2024 15:06:11 +0000 Received: from SA3PR01MB8450.prod.exchangelabs.com ([fe80::bb39:d8c:f575:6b9d]) by SA3PR01MB8450.prod.exchangelabs.com ([fe80::bb39:d8c:f575:6b9d%5]) with mapi id 15.20.7677.024; Fri, 14 Jun 2024 15:06:10 +0000 From: John F Carr To: "freebsd-riscv@freebsd.org" Subject: JH7110 dwc MAC support Thread-Topic: JH7110 dwc MAC support Thread-Index: AQHavmxktDt0umeSY06lLWBbOd9E1Q== Date: Fri, 14 Jun 2024 15:06:10 +0000 Message-ID: <7E28ED97-DD4B-40AA-91FB-DB3982042265@mit.edu> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-publictraffictype: Email x-ms-traffictypediagnostic: SA3PR01MB8450:EE_|MW6PR01MB8341:EE_ x-ms-office365-filtering-correlation-id: 1d4d059a-1044-4ac3-9fd0-08dc8c838680 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0;ARA:13230037|366013|376011|1800799021|38070700015; x-microsoft-antispam-message-info: =?us-ascii?Q?KoP5FFsQ+b/5YYFQsB8ws6tYFNOOlitNfupUHzhS3hzkZ/9gkwj9oCyjp0If?= =?us-ascii?Q?hAPGm/mXF7UUpIeT4Tz+mnwC9Gne6mQjbKQ1xEKiVnxpdkXJUbM16SMufm21?= =?us-ascii?Q?hRTI/8jZrO5nFn0Z/BELhqJ0K0tZazp2L61ldrnNaAYQwa3OTZeY9FbSC2MG?= =?us-ascii?Q?FjT6Ec1pRJhckLteZCroGL/P6y9zxBqvF6HlA9wIxXXh2F7Rm5Oy2LmN8EfP?= =?us-ascii?Q?rq8ATpsJ6HitaI+PSpQ9ztI1Dr9UQU6MJQ8LBftK/2sxurfBv+RrXqzFrRGd?= =?us-ascii?Q?jbLaz3xtIgm4d219QoT6olRif+LSq6lPH/3V2Os2CT6WX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EDMl/NOB52EkEDdVaDEFvsgqXng03U?= =?us-ascii?Q?4rQj4v+uv3bRoc7xIwTgy9Ydf97S4xLWSGZwsnndi8Zt1oYqOXEcSUVIg9AF?= =?us-ascii?Q?gBCkVFjjkdRQU+iYUVVSw4leYrn06MaHTmcDPiNSG4GU/4Fyx3R+sCrCpKN3?= =?us-ascii?Q?uqu1EBs=3D?= x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:SA3PR01MB8450.prod.exchangelabs.com;PTR:;CAT:NONE;SFS:(13230037)(366013)(376011)(1800799021)(38070700015);DIR:OUT;SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?fdLj8SPSuD/u+jRY9M5My2E/np/I/91tE+4LtBkC9EXEo9kOSHdhz4LP3iRw?= =?us-ascii?Q?JamvMjOoyZ7Qq/Rak+UNf/hGS6LSV7kLaAemwXQr7ZLqJSLJlWINpD+YjVWh?= =?us-ascii?Q?7i3W5kKpqy6WWmNv1W1O8cOquYClB1xTvbjtIAOym1PcxsMceFj7TqlRxLGX?= =?us-ascii?Q?/Yy87CnE6TlF1j1DlA2l2AmNGVMbuVaXL3xQlNVHN7hdSiaOZS4Srpm9J4zU?= =?us-ascii?Q?SG8ZXk1V6QpwrZOG9RYuCiDw1pqBR6Mkv7wmDWA07G3hXhMetx1TJ+lh9Bp0?= =?us-ascii?Q?YX7CSs68Y25bRMm5mGAH5Q7CI12YaxbrA8lD4FCTZh+xxdP79YO/IKcbWwcV?= =?us-ascii?Q?QSdz446kDWnSE/NIbH00z5EIBVET3YCANha3jO9Fd0nCWeID17IyWXOu3V1R?= =?us-ascii?Q?KzrPEENqk5GMBt0MTn1WfTwVySkBCdFjaiFXWxOc8m0bav4OagT8TbKlsNYj?= =?us-ascii?Q?CzKbnBiTdFAmCVzL8vJnairIPxH98ZmDMRPhVlPy/YtWOR3xpg7BDTjIp7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KJfc31bXG1A1hG4xYsNnz0aE+fNLWt?= =?us-ascii?Q?Ouf0d5W3q5yy7HPkS6l+qHbSWE+47XC6WeHTGmed5pNdtBsXBamzU2gkBTBI?= =?us-ascii?Q?BG/B3GRahzrDX18afgLJ0gjXK8wIWM2VA0m2aDOEyx6Bl43OELYPyPf7SVnQ?= =?us-ascii?Q?SXezNQh4V7cBHlg8ijKZnZX2KLR9L/sX+oKKgMohVSjWRvIGwtsXcTTzbx/l?= =?us-ascii?Q?YBixZI0Ok8IlzfJz0MviPuDSbrtlOdOkH2MMkQavD2cg?= Content-Type: text/plain; charset="us-ascii" Content-ID: Content-Transfer-Encoding: quoted-printable List-Id: FreeBSD on the RISC-V instruction set architecture List-Archive: https://lists.freebsd.org/archives/freebsd-riscv List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: freebsd-riscv@freebsd.org Sender: owner-freebsd-riscv@FreeBSD.org MIME-Version: 1.0 X-OriginatorOrg: mit.edu X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: SA3PR01MB8450.prod.exchangelabs.com X-MS-Exchange-CrossTenant-Network-Message-Id: 1d4d059a-1044-4ac3-9fd0-08dc8c838680 X-MS-Exchange-CrossTenant-originalarrivaltime: 14 Jun 2024 15:06:10.4902 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 64afd9ba-0ecf-4acf-bc36-935f6235ba8b X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: 2qe7b/rEp4ugv+L0s/+47el4yOSmR1dGz+scEvcdC7aV1fTEHjNG2F6uBvxPos3G X-MS-Exchange-Transport-CrossTenantHeadersStamped: MW6PR01MB8341 X-Spamd-Bar: ---- X-Spamd-Result: default: False [-4.98 / 15.00]; ARC_ALLOW(-1.00)[microsoft.com:s=arcselector9901:i=1]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_SHORT(-0.98)[-0.977]; DMARC_POLICY_ALLOW(-0.50)[mit.edu,none]; R_DKIM_ALLOW(-0.20)[mit.edu:s=selector2]; R_SPF_ALLOW(-0.20)[+ip6:2a01:111:f403::/49]; MIME_GOOD(-0.10)[text/plain]; RCPT_COUNT_ONE(0.00)[1]; MIME_TRACE(0.00)[0:+]; MISSING_XM_UA(0.00)[]; ASN(0.00)[asn:8075, ipnet:2a01:111:f000::/36, country:US]; MLMMJ_DEST(0.00)[freebsd-riscv@FreeBSD.org]; DWL_DNSWL_NONE(0.00)[mit.edu:dkim]; FROM_EQ_ENVFROM(0.00)[]; FROM_HAS_DN(0.00)[]; MID_RHS_MATCH_FROM(0.00)[]; RCVD_COUNT_TWO(0.00)[2]; TO_MATCH_ENVRCPT_ALL(0.00)[]; TO_DN_EQ_ADDR_ALL(0.00)[]; RCVD_TLS_LAST(0.00)[]; DKIM_TRACE(0.00)[mit.edu:+] X-Rspamd-Queue-Id: 4W12fc6Sdjz4gr9 I am trying to run FreeBSD on the Star64 SBC with JH7110 SOC. Has anybody gotten the ethernet driver working on this chip? It's a DesignWare MAC according to the device tree so if_dwc.c should be the starting point. The driver does not work simply by changing the "compatible" string. It can't find the PHY because all the register reads come back 0. The only documentation I can find is the Linux driver source code. I can try updating register offsets and command bit patterns to match what the Linux driver does with "snps,dwmac-5.20". I loaded the LUA loader and FreeBSD kernel over the network so all the boot code is happy with the MAC+PHY combination. It's the kernel that doesn't work. John Carr From nobody Fri Jun 14 15:40:39 2024 X-Original-To: freebsd-riscv@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4W13QM0gDtz5P4BC for ; Fri, 14 Jun 2024 15:40:43 +0000 (UTC) (envelope-from jsihv@gmx.com) Received: from mout.gmx.net (mout.gmx.net [212.227.15.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "mout.gmx.net", Issuer "Telekom Security ServerID OV Class 2 CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4W13QK6lsHz4mKv for ; Fri, 14 Jun 2024 15:40:41 +0000 (UTC) (envelope-from jsihv@gmx.com) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmx.com header.s=s31663417 header.b=KX3lwT4o; dmarc=pass (policy=quarantine) header.from=gmx.com; spf=pass (mx1.freebsd.org: domain of jsihv@gmx.com designates 212.227.15.18 as permitted sender) smtp.mailfrom=jsihv@gmx.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmx.com; s=s31663417; t=1718379640; x=1718984440; i=jsihv@gmx.com; bh=q+Hlq+pAQyujw9WSERGxWqQo/06RLpNPFnFLPn9kSFI=; h=X-UI-Sender-Class:MIME-Version:Message-ID:From:To:Subject: Content-Type:Date:In-Reply-To:References:cc: content-transfer-encoding:content-type:date:from:message-id: mime-version:reply-to:subject:to; b=KX3lwT4oXm8E/h4nGePILrVRDTkIfuuEkl3jNt4wPJN41lapL0DO+4W7mUg7Du3N 901m/Pz91BmQpavdc6ze1r5qt8/XyGa4qtdV4fjmgPiGEpYCC6Tyhg1RcaMoZoUAW 3aT6Ib8TyWFop4NgIbES2AUHCRa2rR06lKJFEC8zw6H/Cu2BL+R6+k8Aa4WxPCXgh +lRYCaVxGcaLigSW13ydkmGJIzz8zIknwxpelBVhzCKaM8e7ymw8fpQFwTan12+DS 28Uegmeykz2yVw/VGpncO1iBg0Dm/ZrIi8umsk7bGBHfqWl38LWPcT4xryNO7D+jl aZn38avm3Xnn5+56Hw== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Received: from [84.248.222.67] ([84.248.222.67]) by web-mail.gmx.net (3c-app-mailcom-bs01.server.lan [172.19.170.58]) (via HTTP); Fri, 14 Jun 2024 17:40:39 +0200 List-Id: FreeBSD on the RISC-V instruction set architecture List-Archive: https://lists.freebsd.org/archives/freebsd-riscv List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: freebsd-riscv@freebsd.org Sender: owner-freebsd-riscv@FreeBSD.org MIME-Version: 1.0 Message-ID: From: JMT Sihvola To: freebsd-riscv@freebsd.org Subject: Re: JH7110 dwc MAC support Content-Type: text/plain; charset=UTF-8 Date: Fri, 14 Jun 2024 17:40:39 +0200 Importance: normal Sensitivity: Normal In-Reply-To: <7E28ED97-DD4B-40AA-91FB-DB3982042265@mit.edu> References: <7E28ED97-DD4B-40AA-91FB-DB3982042265@mit.edu> X-UI-Message-Type: mail X-Priority: 3 X-Provags-ID: V03:K1:h9mjFqRJVET0uPmH9HRvGPUpOZDISbZ2mwOCup2BTA8420Z8L7IeUZiNTljWFFNBv5c4c KC9h44t1pIh1ZL/gHuJD7Oy0Glqh8x9vcQP5OVTk76Qd1J5HsG0GEbnPx7MvzWuTccSI9+MXkaiT DQwL8CS6Wdm0isQWc1b3dIloRZfvYW2bDm84uZTZA4Zi74lVIfLFwaIvOP13QDPmE3jFBDbeUqHG CVO+LIEe0yB8ljFNPIZi5CUN7GrZ/U3Wjgsrtqe8JjWQdXUN8B6phUFKF8QlZO6k3PsHpuXt5z0h n4= X-Spam-Flag: NO UI-OutboundReport: notjunk:1;M01:P0:G8smQafthGI=;DomVVesSqRHf6Nxvn85g3LjyLkK geSulOUVKTLjkOgafOr88vurL1JYSJHFecBJVbnpquIeopSlLvcrwGgudQa3sk6XEwPV3SGvk aQA5K91smNRR7Eq6Fmb+4I/ike21p58hYC8LF0zEJjfQo4JWbpinxTgw0prrEOAcSDNcZEUUc mGsr49ZdLemOUI+hx+6dnB4/8DlhlKF4Ohp4s42lXfISa0xAT45WMdpc0Mpyk56aqYsvWDXvD UDxZXqJFPBGBB79sYVWUGZg8TKgTBOryGa9FCWQptpME+Bgkk6KLLlLThQBlJdwMoo+G+b4E6 s/hCAbOuUjVJ7+r4tYOuCCc53705+mxbSxpWf/Dtbe9fJQzejb6R2DmrOjNz7ZqAiFdGeC5jl YFTL/AesFywiHzcsVxSFzOwbhuFKrxoR/2V8LAD3PC8uP4erEbbW+zOz+IyOTqudips75mf6z qzfgtBuom07DLyV1+Ch3kkIzn/zUXW5wLPyR0CIfyLkd7+n4Pfp2B80/32S0KR3g+SEbwMof9 fEKgMhs1zPKBZrx3cIZYtUL0fXvvsWmQRCbdc0qb/QAF1Q9qXnJHSdZ1qA8Il/tr1ZK2VpaOw HSAvi8HqZAQ1VlBkNXTygdVROLvte6aEywqiZ9yKrPRdXEWDCRTdmlOe8bZs/PYB5OlHBNyrd sRxDElhhJo/jyt1K7ixh6rJ9+PrvMskTXQaYJwUsWGSemDBSQMRPUWTkSOWShxg= X-Spamd-Bar: ---- X-Spamd-Result: default: False [-4.58 / 15.00]; DWL_DNSWL_LOW(-1.00)[gmx.com:dkim]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_SHORT(-0.88)[-0.883]; MID_RHS_NOT_FQDN(0.50)[]; DMARC_POLICY_ALLOW(-0.50)[gmx.com,quarantine]; R_SPF_ALLOW(-0.20)[+a:mout.gmx.net]; R_DKIM_ALLOW(-0.20)[gmx.com:s=s31663417]; RWL_MAILSPIKE_VERYGOOD(-0.20)[212.227.15.18:from]; ONCE_RECEIVED(0.10)[]; MIME_GOOD(-0.10)[text/plain]; RCVD_IN_DNSWL_LOW(-0.10)[212.227.15.18:from]; TO_MATCH_ENVRCPT_ALL(0.00)[]; RCVD_TLS_LAST(0.00)[]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; ARC_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; HAS_X_PRIO_THREE(0.00)[3]; MISSING_XM_UA(0.00)[]; FREEMAIL_FROM(0.00)[gmx.com]; TO_DN_NONE(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; DKIM_TRACE(0.00)[gmx.com:+]; MLMMJ_DEST(0.00)[freebsd-riscv@freebsd.org]; RCVD_COUNT_ONE(0.00)[1]; ASN(0.00)[asn:8560, ipnet:212.227.0.0/16, country:DE]; FREEMAIL_ENVFROM(0.00)[gmx.com] X-Rspamd-Queue-Id: 4W13QK6lsHz4mKv > Sent: Friday, June 14, 2024 at 6:06 PM > From: "John F Carr" > To: "freebsd-riscv@freebsd.org" > Subject: JH7110 dwc MAC support > > Has anybody gotten the ethernet driver working on this chip? > It's a DesignWare MAC according to the device tree so if_dwc.c > should be the starting point. The driver does not work > simply by changing the "compatible" string. It can't find > the PHY because all the register reads come back 0. The > only documentation I can find is the Linux driver source code. > I can try updating register offsets and command bit patterns > to match what the Linux driver does with "snps,dwmac-5.20". JH7110 uses dwmac version 5.2. FreeBSD has codes for 4.x (which is almost similar) in sys/dev/eqos. JH7110 also uses Motorcomm's Ethernet-phy version 8531 which currently isn't supported. I have updated those codes to get network working on JH7110 but I have not yet submitted them because there is a problem which prevents changing the Ethernet port on fly. It's possible that this problem is caused by a bug outside of these drivers. It has been difficult to track it down but I keep working on with the issue. I have those updated driver codes in my personal github: https://github.com/jsihvola/freebsd-src/ See the last commit (otherwise this repository is not up-to-date). So if you can live with the port switching issue, those codes should make it possible to get JH7110 online. Also, eqos driver has some shortcomings, making network speed slower than what it could be. JH7110 clocks required by Ethernet are available in FreeBSD repository. GPIO & MMC have been submitted. USB & pinctrl are being worked on. -jari sihvola From nobody Fri Jun 14 19:11:14 2024 X-Original-To: freebsd-riscv@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4W185K6j89z5PLwJ for ; Fri, 14 Jun 2024 19:11:17 +0000 (UTC) (envelope-from jfc@mit.edu) Received: from NAM11-BN8-obe.outbound.protection.outlook.com (mail-bn8nam11on20717.outbound.protection.outlook.com [IPv6:2a01:111:f403:2414::717]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mail.protection.outlook.com", Issuer "DigiCert Cloud Services CA-1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4W185K2Cgxz4Lgr for ; Fri, 14 Jun 2024 19:11:17 +0000 (UTC) (envelope-from jfc@mit.edu) Authentication-Results: mx1.freebsd.org; none ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=m4y0sqMJq+kO+PYvxmajMjR/jwo1yGtUW/RR3Ggd/+jo0pStWgd7D6c1ykW8psBUgqlkRC05zTgsAs+wNOVbTzegTeDz1pZgQR7WMfqre+BqPUSEUUnfa/zYcNk3CPtwN9KlmlhF/PBpUHIDwt6J7AtKnhTLZCNeDQ6PnTWNK0ndjSiSpz+1dMxvx7DOdDVHBn4CG1+Doe5z8T9y5mYwyNH07rt7zN6+X3fP8fRqKxBOIauY6KOcGAnsZdwrmD9YdVI0EHyDPBnfcQGKzwQ5i1TMu1C2/0gK+9Ja3ylHxf+WvvomnEgs5qp2CzSJL2uKWgLqGu1YPmG6t+5HW+ZA2Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=f2cwk8Fze2PSANhj+irOWBGFFtmSUVTBpaTLBTwMhZ0=; b=SJFu51owKQNGKaNOUeor9yS1bb+Ucj7+k4nLQ5P871pG53EgzZe9uJ4yIcPW6NNOKpv8yACw77ZVhM8snIHyoktVM/vXagYmrVMAiWei6EoLSM7YiuYb3jDAP7C1/MrHp66KohLMP+pSiH4ghbXT7pgSxRVO0nMWc3ghzYAG5H+nzL+FWbJ6DOsyw+AIHou3ijt7r9G73J459swx1ErTgJY5xTktTQh6Dd5PfzlsnFbFBmuHG6JtKNPR5LJoarsesr3mzaSbbDup1N9cV5RBYZQUt3ZYdWef3VM9rB7m0ZsVwkKdIb7PPjK9E0wMAgfAvIy7Yu0M4gzLVxBbtJhrDA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=mit.edu; dmarc=pass action=none header.from=mit.edu; dkim=pass header.d=mit.edu; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mit.edu; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=f2cwk8Fze2PSANhj+irOWBGFFtmSUVTBpaTLBTwMhZ0=; b=hOditowYtrqpCyuk05sQIiLRj4FXuCRQEmtV8iY6ta435NymBtKfRqPTG/qAZyI2+q1RskRDvETDRkuwZEDrlnEaSIr/YOLjUQ8RS/5jydusUuoLFVCXbTW8b1X76GGD3nzMt6ptnt9Ft0iE7Df8X67fUQ+9MIZCwdB13C/l+U0= Received: from SA3PR01MB8450.prod.exchangelabs.com (2603:10b6:806:382::17) by BL3PR01MB7180.prod.exchangelabs.com (2603:10b6:208:347::24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7677.25; Fri, 14 Jun 2024 19:11:14 +0000 Received: from SA3PR01MB8450.prod.exchangelabs.com ([fe80::bb39:d8c:f575:6b9d]) by SA3PR01MB8450.prod.exchangelabs.com ([fe80::bb39:d8c:f575:6b9d%5]) with mapi id 15.20.7677.024; Fri, 14 Jun 2024 19:11:14 +0000 From: John F Carr To: JMT Sihvola CC: "freebsd-riscv@freebsd.org" Subject: Re: JH7110 dwc MAC support Thread-Topic: JH7110 dwc MAC support Thread-Index: AQHavmxklaE67+/slUqx6/WUYdjI/bHHZZGAgAA6ygA= Date: Fri, 14 Jun 2024 19:11:14 +0000 Message-ID: References: <7E28ED97-DD4B-40AA-91FB-DB3982042265@mit.edu> In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-publictraffictype: Email x-ms-traffictypediagnostic: SA3PR01MB8450:EE_|BL3PR01MB7180:EE_ x-ms-office365-filtering-correlation-id: 26f23870-b628-4563-0bc5-08dc8ca5c2d3 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0;ARA:13230037|1800799021|366013|376011|38070700015; x-microsoft-antispam-message-info: =?us-ascii?Q?U2BnYSjzcGYC5167zZQysctTQD/eTb9X3j3uejMwB/GgsGnIS/31hPqImqSn?= =?us-ascii?Q?CHNrduJZurKAb7GkNoph56RUMnpUqZV0t/huAVos08k8z/opeLfGPPPac2D5?= =?us-ascii?Q?llandGUKbUwHCS9VUdoplq9RGRZY69hd4AcA9Ae7wm6jBLS+P9LNYW91B4JB?= =?us-ascii?Q?ASVgxw1oZlx0a52fyVM5SW+eDJyRitLi2EU9LKg4C3mE2+ixPcO62hoGIRwr?= =?us-ascii?Q?xhVpxmkHyfl/OS1utLKWR6OVu/03tzS5QvrbRTQspaliRzyWiTIHa2gSN9P6?= =?us-ascii?Q?f71tjIXZb/GmX7jvup5B+DSwHKaoo/PgLJg4uDFMMc39vZqlE8qNihT5h8VL?= =?us-ascii?Q?V9j8P1xFmfi5cAog/p2DDekjd08PRxvMWFab9AkMHtxfMIu/s6PbzR20erDW?= =?us-ascii?Q?ynghvDzFV+fOPRwOVEuAD63vU0ppQ4A5bb68KwntG4PBPhZKRxONZQu+ueCY?= =?us-ascii?Q?eZtBwuQy1avJPf2zulpSaEJEYNpQJXT9fEOPgnlp/Uvqr1kQ10UQUJ+LL9Be?= =?us-ascii?Q?Dj/KqYszlixUlQBfgBx1hGBPI/lfQQdG4sK2WBv6xUZKCOBKT7Nm74JROF62?= =?us-ascii?Q?ZClHJXnPmJAzcAkvy8l1fa2PB3GGPNwjUesFBSm8JoTSw81PZXwkijmuOLMt?= =?us-ascii?Q?kS0V7PY5BuwzOLmprPLsSki3U0jWEbFf+BD83AMwsP73A2jmPsGfAT+k2eon?= =?us-ascii?Q?PJPu8tismzIHjdJGw8gKQges/llWX5Z31rjZzee5RBXHz2Les3EiXLKe5aCo?= =?us-ascii?Q?6t2qrtPnd6y7sOBhj7D4loV+UB8Zwj+mByDkTB7qTW38OV/Yt33OJWZ8tLlC?= =?us-ascii?Q?RlQycnVvQU0DGfK9mgZq9M5EI9nixUr/NTtUCecgAgiZrR8MHEAcG98f1zLb?= =?us-ascii?Q?ZPQDZuc8JAwxhdtY4uXzkHF8bVNo+68zbCMFsV2NaaEfcYuxD4eYh4peOBPV?= =?us-ascii?Q?DPqHg3OIy1Cl4ZMLvjNlyCM/TwFf/2V338Di+RroNyR2lVy7ckA9oaLMJNH4?= =?us-ascii?Q?8iagQL2Wawrp0KMuCK36cXMVV1XSQIP9DuPfu41c26Wf3DoW2aZ54bHOq9K3?= =?us-ascii?Q?bfEidurqfHXQaK1QcZhdCR0GyXgUjEXFk7R0OE+2x89ME+O28Dtris1drelj?= =?us-ascii?Q?jSwfqfw7j4RafH/+JlbOO8OPxqDJA46ArQpdpizVqWHoVMR14S0yzxsYvUwY?= =?us-ascii?Q?cWVDL1liein8q5Z8AZd4vK+OxHRuS6pYKDUkLU2dX/p5byKogJ5fWtEzhpDj?= =?us-ascii?Q?qnQFhfp9ErmhZdR55Q66aiEXAGV7Dl4E/fxAAe00wmDVOFboL+8/lAGiHskL?= =?us-ascii?Q?fLHvjeuK3XTFydChg2RCQbkfdpMZZYmnVWmiP8pISZgoIss9fwykG8g9Unb+?= =?us-ascii?Q?GgD0vBo=3D?= x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:SA3PR01MB8450.prod.exchangelabs.com;PTR:;CAT:NONE;SFS:(13230037)(1800799021)(366013)(376011)(38070700015);DIR:OUT;SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-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TAn9cQe26dxPnHRaoAUK+ibTA8N9UZw?= =?us-ascii?Q?s1qdIQVi99WV/K2Tg/2c+JD6byIcpDI/Im9ABIUCmhoQCLzCC0OWlWbUwkag?= =?us-ascii?Q?1kz4XwZe43PibnUZj8o9HWQ/QzidAejFBxI9WusCFQB928Q0RzaRHPdx8Bxp?= =?us-ascii?Q?AgGZKZ4g+SvVICUKT5ajfQXAQYBNDvzzwEjH9BoGoR7iGuywJcKvMnBRnU8h?= =?us-ascii?Q?J4piVCcFBP00q5R48cAzFYcki9NngapINABCZ0oRZQKxP+mt7ld5bhXuvex3?= =?us-ascii?Q?1/I1josDviyMH/FEtjh21EzqD5PrybDrNVhEkuZArykp1l//kYsjDoF5rxf/?= =?us-ascii?Q?AMl5I7d2Ajo543ilK4l0dl/4pM9YXHaSu6t64Xee59H5zHzL3vVS+D0Dtd6I?= =?us-ascii?Q?DdWcF6JPBTH2vzQnMOad3t+APJUPlb+TlKW0cIid/BeM2hEVuDEubFP3+N8T?= =?us-ascii?Q?8t8jZPqWT+V/We5eWKX9ngjq+xpxLicT8i2wnvAx5V/99nKnJETNm199hs2r?= =?us-ascii?Q?LwtuLPrOLvi/Ky7yBiIPT2w87dkKSnosyHRWP9IAVhrOAOcENKNoXo5Q2chd?= =?us-ascii?Q?Rw5YiDcTJxZmMw5ctM1AeZH3y/0/0RO1GUuBWK2KA5irIzMvbSJJ79iFCfgW?= =?us-ascii?Q?DNMFuw/vaKU2uIYxFZZRZwkVOn8r8nqO9xv7OIY/2kqB7f+4Ko8vTm/4jhyq?= =?us-ascii?Q?WYORWzuXk0BbtJSxkRuf+AWF2ZZH1vFM1x/VseEt7CBRU/v8pkGR+NS2re9H?= =?us-ascii?Q?y+SKRTt13aEGVBPFaLNJ0wtBW18gWnywKN2gsx08m85E?= Content-Type: text/plain; charset="us-ascii" Content-ID: <75DF5562D709CC4E93BE7FF89D4E4A8A@prod.exchangelabs.com> Content-Transfer-Encoding: quoted-printable List-Id: FreeBSD on the RISC-V instruction set architecture List-Archive: https://lists.freebsd.org/archives/freebsd-riscv List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: freebsd-riscv@freebsd.org Sender: owner-freebsd-riscv@FreeBSD.org MIME-Version: 1.0 X-OriginatorOrg: mit.edu X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: SA3PR01MB8450.prod.exchangelabs.com X-MS-Exchange-CrossTenant-Network-Message-Id: 26f23870-b628-4563-0bc5-08dc8ca5c2d3 X-MS-Exchange-CrossTenant-originalarrivaltime: 14 Jun 2024 19:11:14.5818 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 64afd9ba-0ecf-4acf-bc36-935f6235ba8b X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: p3JRa2J5ZaOu98Nt0U1lhnT4LLYgEW07sQnzy94L1N0wE6cF61tVZ1LXq9/Ni3B2 X-MS-Exchange-Transport-CrossTenantHeadersStamped: BL3PR01MB7180 X-Spamd-Bar: ---- X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:8075, ipnet:2a01:111:f000::/36, country:US] X-Rspamd-Queue-Id: 4W185K2Cgxz4Lgr > On Jun 14, 2024, at 11:40, JMT Sihvola wrote: >=20 >=20 >=20 >> Sent: Friday, June 14, 2024 at 6:06 PM >> From: "John F Carr" >> To: "freebsd-riscv@freebsd.org" >> Subject: JH7110 dwc MAC support >>=20 >> Has anybody gotten the ethernet driver working on this chip? >> It's a DesignWare MAC according to the device tree so if_dwc.c >> should be the starting point. The driver does not work >> simply by changing the "compatible" string. It can't find >> the PHY because all the register reads come back 0. The >> only documentation I can find is the Linux driver source code. >> I can try updating register offsets and command bit patterns >> to match what the Linux driver does with "snps,dwmac-5.20". >=20 > JH7110 uses dwmac version 5.2. FreeBSD has codes for 4.x (which is > almost similar) in sys/dev/eqos. JH7110 also uses Motorcomm's > Ethernet-phy version 8531 which currently isn't supported. >=20 > I have updated those codes to get network working on JH7110 but > I have not yet submitted them because there is a problem which prevents > changing the Ethernet port on fly. It's possible that this problem is cau= sed > by a bug outside of these drivers. It has been difficult to track it down > but I keep working on with the issue. >=20 > I have those updated driver codes in my personal github: > https://github.com/jsihvola/freebsd-src/ > See the last commit (otherwise this repository is not up-to-date). >=20 > So if you can live with the port switching issue, those codes > should make it possible to get JH7110 online. Also, eqos driver > has some shortcomings, making network speed slower than what it could be. >=20 > JH7110 clocks required by Ethernet are available in FreeBSD repository. > GPIO & MMC have been submitted. USB & pinctrl are being worked on. >=20 > -jari sihvola >=20 >=20 Thanks. I tried putting your driver on the main (15-CURRENT) branch. It attaches but does not seem to put anything on the wire. I will try building your 14-based branch next. Is it correct to see a total of four PHYs in the dmesg output below? eqos0: mem 0x16030000-0x1603f= fff irq 62,63,64 on simplebus0 eqos0: DesignWare EQOS ver 0x52 (0x41) eqos0: hw features 1a2173f7 09845904 01000000 00000000 eqos0: Ethernet address f2:00:25:43:09:d6 eqos0: TX ring @ 0x41ede000, RX ring @ 0x42fdf000 miibus0: on eqos0 mcommphy0: PHY 0 on miibus0 mcommphy0: OUI 0xc82b5e, model 0x0011, rev. 11 mcommphy0: none, 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT= -FDX, 1000baseT-FDX-master, auto mcommphy1: PHY 1 on miibus0 mcommphy1: OUI 0xc82b5e, model 0x0011, rev. 11 mcommphy1: none, 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT= -FDX, 1000baseT-FDX-master, auto eqos0: bpf attached eqos0: Ethernet address: f2:00:25:43:09:d6 eqos1: mem 0x16040000-0x1604f= fff irq 65,66,67 on simplebus0 eqos1: DesignWare EQOS ver 0x52 (0x41) eqos1: hw features 1a2173f7 09845904 01000000 00000000 eqos1: Ethernet address f2:00:6a:9e:95:8b eqos1: TX ring @ 0x42fe5000, RX ring @ 0x439e7000 miibus1: on eqos1 mcommphy2: PHY 0 on miibus1 mcommphy2: OUI 0xc82b5e, model 0x0011, rev. 11 mcommphy2: none, 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT= -FDX, 1000baseT-FDX-master, auto mcommphy3: PHY 1 on miibus1 mcommphy3: OUI 0xc82b5e, model 0x0011, rev. 11 mcommphy3: none, 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT= -FDX, 1000baseT-FDX-master, auto eqos1: bpf attached eqos1: Ethernet address: f2:00:6a:9e:95:8b From nobody Fri Jun 14 20:00:01 2024 X-Original-To: freebsd-riscv@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4W199g0QfXz5PQdd for ; Fri, 14 Jun 2024 20:00:07 +0000 (UTC) (envelope-from jsihv@gmx.com) Received: from mout.gmx.net (mout.gmx.net [212.227.15.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "mout.gmx.net", Issuer "Telekom Security ServerID OV Class 2 CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4W199f43Jtz4QYR for ; Fri, 14 Jun 2024 20:00:06 +0000 (UTC) (envelope-from jsihv@gmx.com) Authentication-Results: mx1.freebsd.org; none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmx.com; s=s31663417; t=1718395201; x=1719000001; i=jsihv@gmx.com; bh=VWZy2qlkk89YIYh0yVTZvn+T06YccO5FH1Gm0JxDkPQ=; h=X-UI-Sender-Class:MIME-Version:Message-ID:From:To:Cc:Subject: Content-Type:Date:In-Reply-To:References: Content-Transfer-Encoding:cc:content-transfer-encoding: content-type:date:from:message-id:mime-version:reply-to:subject: to; b=GrsQGXaDyumLgYHbl8phWAzBGolBK/w/aZj9czSiEzml/lou0/KRfYLreCkQ/QF7 kbpxpOxyMwQ0EPxOnpa88Bl2fS2z4NFlTLgol0a2YNVP0nOcKqzreoz0DFVBWZIR2 PiSSh5INkxBcdpkpunt3tKmItP4R0hHzcPEQg5iLjnR3tGiZ30UeKs3D9Tu6PVMBl RqS/apLsQV51LJ2GlBY0YocFiQo1t6V6MAoh+AVzxt/Z2nMZx7NzM5aR5VQBhQyPB 8fbWatb5j79HAi9mlwFvbSY2JPD7KkpZIYFkB4bVKwgHVpTnToZHMWXYiUwnO8lSl jIDsubnDwxLuo0rwHA== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Received: from [84.248.222.67] ([84.248.222.67]) by web-mail.gmx.net (3c-app-mailcom-bs13.server.lan [172.19.170.181]) (via HTTP); Fri, 14 Jun 2024 22:00:01 +0200 List-Id: FreeBSD on the RISC-V instruction set architecture List-Archive: https://lists.freebsd.org/archives/freebsd-riscv List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: freebsd-riscv@freebsd.org Sender: owner-freebsd-riscv@FreeBSD.org MIME-Version: 1.0 Message-ID: From: JMT Sihvola To: John F Carr Cc: freebsd-riscv@freebsd.org Subject: Re: JH7110 dwc MAC support Content-Type: text/plain; charset=UTF-8 Date: Fri, 14 Jun 2024 22:00:01 +0200 Importance: normal Sensitivity: Normal In-Reply-To: References: <7E28ED97-DD4B-40AA-91FB-DB3982042265@mit.edu> X-UI-Message-Type: mail X-Priority: 3 X-Provags-ID: V03:K1:xkpvBbeM0ezYTpQx6lnQ36JyjqYUCCqwIZZNzSNTGE3Tj4yDwR08WFzXXbrA/TXGPQfR6 9DAUUn/H2YZ7tW8/McDiLTj9pKzOrwh/AdFJl4swwC0dwc5ige7V8TvdwJkoCt9tSispHnl5tDQp AsW37+Y9DzeE8tCLgivPyCl7UbluU4rqP+lFEL4iPay2eNW5SLzVfi3Foe6JmzR/eEIhwslu2V2/ ss875YXnUI8oR6P+xOQuQmwXDBMu02z8QEBLD1oE3TArNYwtrVmwWkOhubb2ZkADS2P+SW5eRkVm zc= X-Spam-Flag: NO UI-OutboundReport: notjunk:1;M01:P0:6meqAMUBSHc=;Ce27NLZxcbPW/vvM/DWcVx/I0IX Nn2exQKLMOR9Y6khMchV2KRcQ8bekVHEgwxlFIkcUDc17FXlSJa4MV2bbdsnJ7IMaee0XUj9W 6YluDOiB5tnqD7NYpn76gXQs6Gp8uk1d2LowJzuIkddjbCWvrl6YLtxXX9MLH0uGXtD6BT/hB 5W+R8C8dTK/irZ5ITluQl6BGh7W48OYG0Ty19GxBkvxfKqQt5+GhCedcqCUqnd5QeDVlbmzIF IQGaFboHCV3TODY3/uCul9dOe4NU51v9vqlBlQVzZlB9idkcwYnGVeBcOwGls+SXBHfxzLAur 6BoRNqa2jz664au7GmSLK8juM4nY6zBqjf2ugO0UUCQMM6gFwNDi26pK4LApWYpKy7SADq0NL zOwub9tJXACR39nPOtFKq92iFNZ53dfjjLC9iRNK3zIeuG3w+l4Q7dYYyxPXtr0pKuJVfNgVE EmDkNF2tRIFJpgh9vkqkDifG1ddtUKP6I1D3X8weH2pCVYGPG3ttt4s3Q+Wz+92cBjRZI7gLh EMBDCLuSDDDRDQM+r937hR77bffb+CYfpXENHfAoY9N6R/CLwnGwX+OCZbXLjjMcM725hLPo/ FTI/30DJzGGPpaKS9XFaK57xp/EWgzsVVA/vMgJcIajqT/xPdR7VYZguG5OOtH/IEaIHZRE5T b5UXjmtnWJHj7JhGv7aMdOXhILEwYLyboXZiDExRoSp8Tc0xkNapnUS8/ZjLEgM= Content-Transfer-Encoding: quoted-printable X-Spamd-Bar: ---- X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:8560, ipnet:212.227.0.0/16, country:DE] X-Rspamd-Queue-Id: 4W199f43Jtz4QYR John F Carr wrote: > Thanks. I tried putting your driver on the main (15-CURRENT) branch. > It attaches but does not seem to put anything on the wire. > I will try building your 14-based branch next. I use it with 15 branch myself. That github of mine is probably not in a coherent state. I recommend not using it for anything except for grabbing these network related files. > Is it correct to see a total of four PHYs in the dmesg output below? Yes, it is seen like that also on vendor's OS. Probably some sort of error message should appear somewhere during the boot if it's not working. One of the several things needed is the code for syscon pseudo device (starfive_syscon.c) that is used for the device memory access. It's already added to the mainline repository. It may be challenging to get it working at this stage since things needed are a bit scattered now, but network codes will hopefully be added to CURRENT after a little while. -jari s. From nobody Sat Jun 15 08:51:13 2024 X-Original-To: freebsd-riscv@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4W1VHY50Hzz5Ndbb for ; Sat, 15 Jun 2024 08:51:21 +0000 (UTC) (envelope-from sreenathbh@rocketmail.com) Received: from sonic301-31.consmr.mail.ne1.yahoo.com (sonic301-31.consmr.mail.ne1.yahoo.com [66.163.184.200]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4W1VHX6G8jz4jcV for ; Sat, 15 Jun 2024 08:51:20 +0000 (UTC) (envelope-from sreenathbh@rocketmail.com) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=rocketmail.com header.s=s2048 header.b=I35LWN7E; dmarc=pass (policy=reject) header.from=rocketmail.com; spf=pass (mx1.freebsd.org: domain of sreenathbh@rocketmail.com designates 66.163.184.200 as permitted sender) smtp.mailfrom=sreenathbh@rocketmail.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rocketmail.com; s=s2048; t=1718441477; bh=KyFWowe1W0CjAxJSvcwrwi0rXHysUazFTu8iL0Kll7k=; h=Date:From:To:Subject:References:From:Subject:Reply-To; b=I35LWN7EwPb+svdG7Y4b6uR5EIhAN1FtKkJfpvoGsr337aUhh+9+DThZp5EkN77Uc+aXcQeJ8mh5WDyu+Ed9gct3p1agzMMzmBFl80yT0Au9kQ6Tdyr8DMWwTYQCffYoTpZp0nIElig4+NG5yhKKwtEAsqhhGVzD7uwWklSACNSQ7fSxSQMtsCDclflOyZKZO5Ha00GiILlvZE7vsrHfsquqp6H+OqEqyvWw/Gaxhn2Y65v3e0TS9MS4xSnWWvLnADjjknQbwdPII8rrWTfY4NDmW/Do1Q5NMC0LsWpUaB5MR+N4+wJdkPu6mKIQ5kW+4GLpOrtv6JdnpvvRXBCbYg== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1718441477; bh=bqPY4J0hF901xolP/NEYxfl0Jbg56Ml8VbWyidUVXRr=; h=X-Sonic-MF:Date:From:To:Subject:From:Subject; b=UdtIsVlKrSOFRy5m+yCbKrtlz342od8pZhmkOE8NjcpQC1GHjJEIAcuvlbFrFIbMPeq2IzOMJwVN6MIdrcXe4Jf7H4gyHB/qCAnjQKtK4TzjNqHaw06Q74phVPrs3zYfcwbJgIkMvNB6XlwVx2TLUKPtK/mpcig7/aeMLTb11JnUH3HwQPdpP2LkhbbV8jWpg1goWiMAV8npGZhsYbhWI7i9LhKZ4PQTvLvQDnJtlSvfW+M50+2BOukD0ksmZed+U0t1QN47q5C2aLND1NVy+8EuKINK30kwZasvybC0/OLjuX9hVG9VCpEcJIR8mCDmoSDtb85FZZezAYBE59oT9g== X-YMail-OSG: qulBzZ8VM1kmNnQIYDcajJ2225URjl7qtB4O.UouJjYZYrVU2J5M93Atwx8OOvr Q8TsGc8TdCpCaEhWR9kyMp40JtqKv_sA017QcvPiSVZEo3TuXlfXOi32ll3F6v8t8CMSH0ABRMVY wSgiAD3wiqk.lVUSNiBk2r.PtuqjBBcFDo4GNUMgW0wZFGb9dX6JB2fp5UK0uFPGH6P6P3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L3VdaNlR2eKVyIUEl0ltM4FNw9JqWNWYZOx69Di05nVzqVW4vGfWqPBYouWI4OUPbMa11ZXCEHp x5ILz3_p6xFZs2jilljAKYu5jSv6mVYAgva0joGaPhaEsldbuhSNNIycLRIH.5sQ.MwsdJH2I4EP VWie43Z_Kuxa6x1xCFSw4sSzpBC_xFHF76qaPzmfsMeZRuuNBlz2qxFSthRRPewGXKIHwGFmW23x Zou0LNSII2F6y2ogoFFEyzGEs2GcVwIhJNIADWcalFPz5Blj0OhzuchsOeSI_e3m07SMw49y_LDw rdz.68DwQi1E1B5xsktWrrJzq6dTT5rOPD_uJBBK5nenJ2It8pZjYifBtSa8rmJXhADj1Sv1If_A 12h_KuosSI8dcY9z72.CpIHQPxXGFvcebl2_zw5LE2obYTPschMCmyFLvzHwHVIR9Ndk1RcCGjo5 P5TRKXa01.nElnmtPzywqe2mBpRlwUrdbl7Q6pVlayGAzbtIbv8aArrt9kZ2__Mub6.1fbsZBlwI Z9T1JV08WSw3KAYJYvwkoX1J25Cfs9d96mP2ErpwfhWyIG3NBLz3RS.IPIyVGWFAY9KyVDkLMh_r Uzvf6zeizx_WF4DdFszEkx8Ii0nm6CBsuThjmuYmVeF29vjdFRkwMzz2zZ0FASiHwfyUCnvyTxUZ HeYXr6.tZiKLtgZXwfSxUV6E07bF622AUNXSaF2P1lWAkRlya4GUYFKoEqn5AMrTYFA8oQ089bxW qTDFH1MCwlGH8d1558D1L8mqm6qAol6efauqtJdr18MGbFSLDSDeyQ7djwGkfI0yIkHx912slN25 vAuQ3Yp1CYrlS07PpdsseeWLYm_rFllUWSxFdinfMzaiynoZbuA7SQxImIH5gT6XHnNpa.F3eL0x LGxuqAulueo4Yif9ev1O4g.bdkcQCBy0dmdDgpuFtDQVfkBGLvMU- X-Sonic-MF: X-Sonic-ID: 15b1c8bb-2ad8-4b1f-92e1-e9f73f2c8c63 Received: from sonic.gate.mail.ne1.yahoo.com by sonic301.consmr.mail.ne1.yahoo.com with HTTP; Sat, 15 Jun 2024 08:51:17 +0000 Date: Sat, 15 Jun 2024 08:51:13 +0000 (UTC) From: Sreenath Battalahalli To: freebsd-riscv@freebsd.org Message-ID: <850956704.6229741.1718441473612@mail.yahoo.com> Subject: FreeBSD on milk-v duo with CV1800B SOC List-Id: FreeBSD on the RISC-V instruction set architecture List-Archive: https://lists.freebsd.org/archives/freebsd-riscv List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: freebsd-riscv@freebsd.org Sender: owner-freebsd-riscv@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit References: <850956704.6229741.1718441473612.ref@mail.yahoo.com> X-Mailer: WebService/1.1.22407 YMailNodin X-Spamd-Bar: --- X-Spamd-Result: default: False [-3.99 / 15.00]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_LONG(-1.00)[-0.999]; NEURAL_HAM_SHORT(-1.00)[-0.996]; DMARC_POLICY_ALLOW(-0.50)[rocketmail.com,reject]; R_DKIM_ALLOW(-0.20)[rocketmail.com:s=s2048]; R_SPF_ALLOW(-0.20)[+ptr:yahoo.com]; MIME_GOOD(-0.10)[text/plain]; ASN(0.00)[asn:36646, ipnet:66.163.184.0/21, country:US]; RCVD_IN_DNSWL_NONE(0.00)[66.163.184.200:from]; FREEMAIL_FROM(0.00)[rocketmail.com]; RCPT_COUNT_ONE(0.00)[1]; RCVD_COUNT_ONE(0.00)[1]; FREEMAIL_ENVFROM(0.00)[rocketmail.com]; MIME_TRACE(0.00)[0:+]; ARC_NA(0.00)[]; MLMMJ_DEST(0.00)[freebsd-riscv@freebsd.org]; FROM_EQ_ENVFROM(0.00)[]; FROM_HAS_DN(0.00)[]; RWL_MAILSPIKE_POSSIBLE(0.00)[66.163.184.200:from]; TO_DN_NONE(0.00)[]; RCVD_TLS_LAST(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; DKIM_TRACE(0.00)[rocketmail.com:+] X-Rspamd-Queue-Id: 4W1VHX6G8jz4jcV Hi all, has anyone tried freebsd on milk-v duo board? It has CV1800B SOC which has two C906 cores. It has 64 MB Ram. There are versions of Linux that run on this SOC. thanks, Sreenath From nobody Sat Jun 15 14:03:54 2024 X-Original-To: freebsd-riscv@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4W1dF76rNlz5NrZV for ; Sat, 15 Jun 2024 14:04:43 +0000 (UTC) (envelope-from br@bsdpad.com) Received: from mail.bsdpad.com (mail.bsdpad.com [116.202.106.248]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4W1dF74YxPz4HgQ for ; Sat, 15 Jun 2024 14:04:43 +0000 (UTC) (envelope-from br@bsdpad.com) Authentication-Results: mx1.freebsd.org; none DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=bsdpad.com; s=20201212; h=Subject:To:From; bh=G80VfiWRiSl/TOfCBXLjoLVOlHVUOGJtLBWKP2jJWjQ=; b=nIa9vYGENsyqfMLbvCrf1W8Czg 4gKAMq2WR3F7fFDpmciBHho9jy9C15xtGZynMzzxSaPTIoP7J83V8H/2hogSX79hzjKyYrSHJFbei 7Nubyhd0b5951PIF1ur5TPQaPOCZqL2/xxvEKNOcFp954pvgBVv06wcHWnVWE35Gx5Ks9FlWCMUyG flzzEpLkPWgHUozz7AqbVUa+SpYG69Qaaxrmo+lMMg0Bx6HeTBSw4KkBizoBRQeopISKwAVWNg+V3 caorxef3YKao7qM+W8YzGIUQ6c+vs4xrU/EwlWPNqUs4JtxZZoYshFUjQme+xZyAefQdIPeh85kUU pyMIiGgg==; Received: from localhost ([127.0.0.1] helo=bsdpad.com) by mail.bsdpad.com with smtp (Exim 4.94 (FreeBSD)) (envelope-from ) id 1sIU0Y-000GXc-7O; Sat, 15 Jun 2024 15:03:54 +0100 Received: by bsdpad.com (nbSMTP-1.00) for uid 1001 br@bsdpad.com; Sat, 15 Jun 2024 15:03:54 +0100 (BST) Date: Sat, 15 Jun 2024 15:03:54 +0100 From: Ruslan Bukin To: Sreenath Battalahalli Cc: freebsd-riscv@freebsd.org Subject: Re: FreeBSD on milk-v duo with CV1800B SOC Message-ID: References: <850956704.6229741.1718441473612.ref@mail.yahoo.com> <850956704.6229741.1718441473612@mail.yahoo.com> List-Id: FreeBSD on the RISC-V instruction set architecture List-Archive: https://lists.freebsd.org/archives/freebsd-riscv List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: freebsd-riscv@freebsd.org Sender: owner-freebsd-riscv@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <850956704.6229741.1718441473612@mail.yahoo.com> X-Spamd-Bar: ---- X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:24940, ipnet:116.202.0.0/16, country:DE] X-Rspamd-Queue-Id: 4W1dF74YxPz4HgQ Hi Sreenath, The work for C906 is in progress. There are plenty chinese chips with c906 core available (e.g. Allwinner D1, ArtInChip D21x, Cvitek etc) so we would like eventually to have some support for them. Note there are newer C907 and C908, example Kendryte K230 with AI accelerator which might be similar in terms of support needed (?). Main issue is that these T-Head cores implement non-standard extensions like non-standard control status registers (e.g. mxstatus), page table entry bits and a cache management subsystem. Ruslan On Sat, Jun 15, 2024 at 08:51:13AM +0000, Sreenath Battalahalli wrote: > Hi all, > has anyone tried freebsd on milk-v duo board? It has CV1800B SOC which has two C906 cores. It has 64 MB Ram. > There are versions of Linux that run on this SOC. > > thanks, > Sreenath > From nobody Sat Jun 15 21:39:12 2024 X-Original-To: freebsd-riscv@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4W1qKm23DNz5PTv0 for ; Sat, 15 Jun 2024 21:39:24 +0000 (UTC) (envelope-from bzeeb-lists@lists.zabbadoz.net) Received: from mx1.sbone.de (cross.sbone.de [195.201.62.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mx1.sbone.de", Issuer "SBone.DE Root Certificate Authority" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4W1qKk2zNyz4vxK for ; Sat, 15 Jun 2024 21:39:22 +0000 (UTC) (envelope-from bzeeb-lists@lists.zabbadoz.net) Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of bzeeb-lists@lists.zabbadoz.net designates 195.201.62.131 as permitted sender) smtp.mailfrom=bzeeb-lists@lists.zabbadoz.net Received: from mail.sbone.de (mail.sbone.de [IPv6:fde9:577b:c1a9:4902:0:7404:2:1025]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.sbone.de (Postfix) with ESMTPS id 8BE218D4A126 for ; Sat, 15 Jun 2024 21:39:15 +0000 (UTC) Received: from content-filter.t4-02.sbone.de (content-filter.t4-02.sbone.de [IPv6:fde9:577b:c1a9:4902:0:7404:2:2742]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mail.sbone.de (Postfix) with ESMTPS id AC0BA2D029D8 for ; Sat, 15 Jun 2024 21:39:14 +0000 (UTC) X-Virus-Scanned: amavisd-new at sbone.de Received: from mail.sbone.de ([IPv6:fde9:577b:c1a9:4902:0:7404:2:1025]) by content-filter.t4-02.sbone.de (content-filter.t4-02.sbone.de [IPv6:fde9:577b:c1a9:4902:0:7404:2:2742]) (amavisd-new, port 10024) with ESMTP id eNgwSBTYTOlk for ; Sat, 15 Jun 2024 21:39:13 +0000 (UTC) Received: from strong-iwl0.sbone.de (strong-iwl0.sbone.de [IPv6:fde9:577b:c1a9:4902:b66b:fcff:fef3:e3d2]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mail.sbone.de (Postfix) with ESMTPSA id 6BC132D029D2 for ; Sat, 15 Jun 2024 21:39:12 +0000 (UTC) Date: Sat, 15 Jun 2024 21:39:12 +0000 (UTC) From: "Bjoern A. Zeeb" To: freebsd-riscv@freebsd.org Subject: DC-ROMA RISC-V LAPTOP II Message-ID: <557op2n4-59rp-3s55-4204-98837850o64o@yvfgf.mnoonqbm.arg> X-OpenPGP-Key-Id: 0x14003F198FEFA3E77207EE8D2B58B8F83CCF1842 List-Id: FreeBSD on the RISC-V instruction set architecture List-Archive: https://lists.freebsd.org/archives/freebsd-riscv List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: freebsd-riscv@freebsd.org Sender: owner-freebsd-riscv@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset=US-ASCII X-Spamd-Bar: - X-Spamd-Result: default: False [-1.49 / 15.00]; SUBJ_ALL_CAPS(1.80)[24]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_SHORT(-0.99)[-0.995]; R_SPF_ALLOW(-0.20)[+ip4:195.201.62.131]; MIME_GOOD(-0.10)[text/plain]; RCVD_VIA_SMTP_AUTH(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; MISSING_XM_UA(0.00)[]; ASN(0.00)[asn:24940, ipnet:195.201.0.0/16, country:DE]; MIME_TRACE(0.00)[0:+]; R_DKIM_NA(0.00)[]; RCVD_COUNT_THREE(0.00)[4]; DMARC_NA(0.00)[zabbadoz.net]; FROM_EQ_ENVFROM(0.00)[]; FROM_HAS_DN(0.00)[]; MLMMJ_DEST(0.00)[freebsd-riscv@freebsd.org]; TO_DN_NONE(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[freebsd-riscv@freebsd.org]; TO_MATCH_ENVRCPT_ALL(0.00)[]; RCVD_TLS_LAST(0.00)[]; ARC_NA(0.00)[] X-Rspamd-Queue-Id: 4W1qKk2zNyz4vxK Hi, what do people think of: https://deepcomputing.io/product/dc-roma-risc-v-laptop-ii/ Could FreeBSD (sooner or later) boot on that? I know the specs are sparse but maybe some of you have heard some more already? /bz -- Bjoern A. Zeeb r15:7 From nobody Sun Jun 16 06:54:23 2024 X-Original-To: freebsd-riscv@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4W23fV313pz5NQZj for ; Sun, 16 Jun 2024 06:54:42 +0000 (UTC) (envelope-from freebsd-riscv@dino.sk) Received: from cm0.netlabit.sk (mailhost.netlabit.sk [84.245.65.72]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4W23fT2wkwz4QMC for ; Sun, 16 Jun 2024 06:54:41 +0000 (UTC) (envelope-from freebsd-riscv@dino.sk) Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of freebsd-riscv@dino.sk designates 84.245.65.72 as permitted sender) smtp.mailfrom=freebsd-riscv@dino.sk Received: from zeta.dino.sk ([84.245.95.254]) (AUTH: LOGIN milan, TLS: TLSv1.3,256bits,TLS_AES_256_GCM_SHA384) by cm0.netlabit.sk with ESMTPSA id 0000000000CA1891.00000000666E8C28.00014938; Sun, 16 Jun 2024 08:54:32 +0200 Date: Sun, 16 Jun 2024 08:54:23 +0200 From: Milan Obuch To: freebsd-riscv@freebsd.org Subject: Re: FreeBSD on milk-v duo with CV1800B SOC Message-ID: <20240616085423.62cf3eeb@zeta.dino.sk> In-Reply-To: References: <850956704.6229741.1718441473612.ref@mail.yahoo.com> <850956704.6229741.1718441473612@mail.yahoo.com> X-Mailer: Claws Mail 3.21.0 (GTK+ 2.24.33; amd64-portbld-freebsd13.3) List-Id: FreeBSD on the RISC-V instruction set architecture List-Archive: https://lists.freebsd.org/archives/freebsd-riscv List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: freebsd-riscv@freebsd.org Sender: owner-freebsd-riscv@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spamd-Bar: --- X-Spamd-Result: default: False [-3.28 / 15.00]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_SHORT(-0.98)[-0.983]; R_SPF_ALLOW(-0.20)[+mx]; MIME_GOOD(-0.10)[text/plain]; RCVD_VIA_SMTP_AUTH(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; RCVD_COUNT_ONE(0.00)[1]; ASN(0.00)[asn:5578, ipnet:84.245.64.0/18, country:SK]; MIME_TRACE(0.00)[0:+]; RCVD_TLS_ALL(0.00)[]; MLMMJ_DEST(0.00)[freebsd-riscv@freebsd.org]; MID_RHS_MATCH_FROMTLD(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; FROM_HAS_DN(0.00)[]; R_DKIM_NA(0.00)[]; TO_DN_NONE(0.00)[]; DMARC_NA(0.00)[dino.sk]; TO_MATCH_ENVRCPT_ALL(0.00)[]; ARC_NA(0.00)[] X-Rspamd-Queue-Id: 4W23fT2wkwz4QMC On Sat, 15 Jun 2024 15:03:54 +0100 Ruslan Bukin wrote: > Hi Sreenath, > > The work for C906 is in progress. There are plenty chinese chips with > c906 core available (e.g. Allwinner D1, ArtInChip D21x, Cvitek etc) > so we would like eventually to have some support for them. Note there > are newer C907 and C908, example Kendryte K230 with AI accelerator > which might be similar in terms of support needed (?). Main issue is > that these T-Head cores implement non-standard extensions like > non-standard control status registers (e.g. mxstatus), page table > entry bits and a cache management subsystem. > Hi, is there a place someone interested in the subject could check to see the progress? Regards, Milan From nobody Sun Jun 16 07:58:56 2024 X-Original-To: freebsd-riscv@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4W254j152bz5NWQm for ; Sun, 16 Jun 2024 07:59:01 +0000 (UTC) (envelope-from sreenathbh@rocketmail.com) Received: from sonic301-30.consmr.mail.ne1.yahoo.com (sonic301-30.consmr.mail.ne1.yahoo.com [66.163.184.199]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4W254h3Zw9z4Th2 for ; Sun, 16 Jun 2024 07:59:00 +0000 (UTC) (envelope-from sreenathbh@rocketmail.com) Authentication-Results: mx1.freebsd.org; none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rocketmail.com; s=s2048; t=1718524738; bh=FhqOWdfJE2PD8eQ/888xudopw5q418/3PuQLbjTB64E=; h=Date:From:To:Cc:In-Reply-To:References:Subject:From:Subject:Reply-To; b=jOleMQzYQyTEC/Q5kaabpAghqmfKMK+YwG5CiK+E+MJ8czSMg5ljJFEjS9dKGODUDm+fRwd+eNahaMZnAFozgt8q1mZEhNM9BtBzd1mu+2BZt8N9ZGlSr86Erujz1hl2XuGPoXZz3km8Shf+reGZdQUqouCcXQPBNquyrjkxyQ4ysn0uXyF6oqNr8K9NxaLzKkriqHL/nJYs9jPGnFjc326YWgqQ7GPJiv43bT9g720ocqLY14yaAU2WEyjqLVUyxfWe/ImDs7F0McxIi15xgykrAwIJmOgYJlnwdlivhTGBRZEEFkpKdlS/FGUaecrcb4kNOebNIhrq39bNKdnTxQ== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1718524738; bh=TzYKWzod88w6fpWRKnf1zrJs9xBf2yf7N77tEY9jEW6=; h=X-Sonic-MF:Date:From:To:Subject:From:Subject; b=telEMymUekY4tD6GTZfWXjsd6wikbyr3DQWWPd4zNckOfDvyA8SqPzFOjcymOvx+ovRZfp3ff1IYJHORn9aLy3lHLDGupGC1y3l6OCd/fC48C8U1a2cDoZ+i8eoRVkP0JpuV7pC6hnmof8IcR/qplQcv1IAIwYwBhPYV6dMzvbNVIoGotmuXzlBe21SKZzt2hzZ4c6gR95MScioJSz6hMK7uuWIQON6OwV5lfpbmfRI7kyE4w+qnAPu2H2qa4p3Ace/iLQh98wbDEdGaXx3+VP7EwbublbYZ+AvupYzaxYTXPLg5Nq3kbGcgPu6EwnVs5+WNTz/KEVJlEg5Zxt67mA== X-YMail-OSG: UEaaCWAVM1nLCi8WM3dlASMoZJ6MpPVOI6aw7xv34YugNaDufGktAhzAIQp5qUH EVWmqZamrdEp2erhvVRcP8pXI3V.KUwT8a6MJTfFW6ZL9uUwv3LpKlkgvtlrn4IuZgGkEdhty5Qd Sy68bBuZcS85Ukd8yb7Muu6pa6OAnMbB3XZqknkTKGmBena2llDC6CybDo8IbDE_xPhmcuzKjZE0 OTKHLUCR4WSFTndKV6wfNly.F7zhXlxz6324b.GmqQzxL2Hs6D7isSFg4B885AVPqYngpa7CofIp AYVOIBi2cbHCZn4IeC5Z5vfM8bPqNKy3Dg1pY2AEDn_5slAuvniWWJKfKFGQiKDgSKu0x2zYmWZo W7258isQoT5mhVZ.VirO379RGgCe02uuDUkIGiU9ix1w_CbVpHEQlcD.kvN9linCu0qicBVWBNrc wRiQR5jKm0QTAKQK0RJlVnKbVEoxV7MeY9Kst3_i7kOwLQj_E7ZEqmeJTOz3Ifi3jv1RioqH8zEP aCPbFl7VN07J0NRwoYS6LPm_I9_cbddVHEPCZLHhNgGhSLCNo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FyOeT_c_SiUFFBBbqWcGFA0 K5OkTqA91qr.SIQfrAgjffZzrllWiX7bSTq3KgsMnIEbywU2HH11.dD80AHrPAo0nQnJjBPvBAOq 21WTeYkXSCARHJ6.iJI2UJTRzbqQws82dlRbz8Gvr8Rcwc5nARgmo7lRNAJiQNgN62uJ3XOeVzjg 2quI23WI68VWJqWzZjqfiIof8iEju1L4qlYfQe9mO3s.932_0VMI8Dym0HAXfZRItoeMQEJnUKRH byUWJbCS7fUQeM.GOgeGPTkQaVo89le.4cmLAKofw6tnsO1W0rHYdFfKO0z2V5lpXUT6SGOVOypB WW4ggdasEmZpR2TGu5D9aXKAQwTLbkYtCwn1on5jA5elk4EiDL8XHLIXwad_mPjgOvcBExF4feEi 7_igu0xmehPAa3GDr2oHsYBY5nUG_8WS_N9a4ZlSOy_P1MbYZ5MkYYzDgRQZxJubfBuXGigGwadq qaXPbgb.a1EzN28zJlNgnIE_VZF1eCPqgVvUjhIGz2Y4LQ7lTdjkxry9m6l8AuCTQGlWD1ynLMzm 097MmfynGt4sbh4jORDbJPNOWrnPqHKh7oUuUPU4eTBNuDMAJdb8St4BssiqmASp.BS7Qum97kvf qGU4KIuT0n.lNSUJuZbpyi_wUHAp.OCQ- X-Sonic-MF: X-Sonic-ID: 73392d0b-8745-4198-b9c0-6b4366f613c3 Received: from sonic.gate.mail.ne1.yahoo.com by sonic301.consmr.mail.ne1.yahoo.com with HTTP; Sun, 16 Jun 2024 07:58:58 +0000 Date: Sun, 16 Jun 2024 07:58:56 +0000 (UTC) From: Sreenath Battalahalli To: Ruslan Bukin Cc: freebsd-riscv@freebsd.org Message-ID: <1248675086.6427895.1718524736955@mail.yahoo.com> In-Reply-To: References: <850956704.6229741.1718441473612.ref@mail.yahoo.com> <850956704.6229741.1718441473612@mail.yahoo.com> Subject: Re: FreeBSD on milk-v duo with CV1800B SOC List-Id: FreeBSD on the RISC-V instruction set architecture List-Archive: https://lists.freebsd.org/archives/freebsd-riscv List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: freebsd-riscv@freebsd.org Sender: owner-freebsd-riscv@FreeBSD.org MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_6427894_1354015896.1718524736954" X-Mailer: WebService/1.1.22407 YMailNodin X-Spamd-Bar: ---- X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:36646, ipnet:66.163.184.0/21, country:US] X-Rspamd-Queue-Id: 4W254h3Zw9z4Th2 ------=_Part_6427894_1354015896.1718524736954 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi Ruslan, Thanks for your response. Is there an image that we can put on a SD card and try? Or instructions to build the latest code that might work? thanks, Sreenath On Saturday, June 15, 2024 at 07:34:47 PM GMT+5:30, Ruslan Bukin wrote: Hi Sreenath, The work for C906 is in progress. There are plenty chinese chips with c906 core available (e.g. Allwinner D1, ArtInChip D21x, Cvitek etc) so we would like eventually to have some support for them. Note there are newer C907 and C908, example Kendryte K230 with AI accelerator which might be similar in terms of support needed (?). Main issue is that these T-Head cores implement non-standard extensions like non-standard control status registers (e.g. mxstatus), page table entry bits and a cache management subsystem. Ruslan On Sat, Jun 15, 2024 at 08:51:13AM +0000, Sreenath Battalahalli wrote: > Hi all, > has anyone tried freebsd on milk-v duo board? It has CV1800B SOC which has two C906 cores. It has 64 MB Ram. > There are versions of Linux that run on this SOC. > > thanks, > Sreenath > ------=_Part_6427894_1354015896.1718524736954 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hi Ruslan,

Thanks for your response.

Is = there an image that we can put on a SD card and try? Or instructions to bui= ld the latest code that might work?


thanks,
Sreenath

=
=
On Saturday, June 15, 2024 at 07:34:47 PM GMT+5:= 30, Ruslan Bukin <br@bsdpad.com> wrote:
=


=
Hi Sreenath,
=
The work for C906 is in progress. There are plenty chine= se chips with c906 core available (e.g. Allwinner D1, ArtInChip D21x, Cvite= k etc) so we would like eventually to have some support for them.
Note there are newer C907 and C908, example Kendryte K230 with AI= accelerator which might be similar in terms of support needed (?). Main is= sue is that these T-Head cores implement non-standard extensions like non-s= tandard control status registers (e.g. mxstatus), page table entry bits and= a cache management subsystem.

Ruslan<= br clear=3D"none">

On Sat, Jun 15, 2024 at 08:51:13AM +0000, Sreenath Battalahalli w= rote:
> Hi all,
> has anyone trie= d freebsd on milk-v duo board? It has CV1800B SOC which has two C906 cores.= It has 64 MB Ram.
> There are versions of Linux that = run on this SOC.
>
> thanks,
> Sreenath
>

= ------=_Part_6427894_1354015896.1718524736954--