From nobody Sun Mar 30 06:22:13 2025 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 4ZQPLg04pkz5rc0w for ; Sun, 30 Mar 2025 06:22:19 +0000 (UTC) (envelope-from rdunkle@smallcatbrain.com) Received: from outbound5i.eu.mailhop.org (outbound5i.eu.mailhop.org [35.156.234.212]) (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 4ZQPLd37r8z4NKS for ; Sun, 30 Mar 2025 06:22:17 +0000 (UTC) (envelope-from rdunkle@smallcatbrain.com) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=outbound.mailhop.org header.s=dkim-high header.b=BKxN0DSI; dmarc=none; spf=pass (mx1.freebsd.org: domain of rdunkle@smallcatbrain.com designates 35.156.234.212 as permitted sender) smtp.mailfrom=rdunkle@smallcatbrain.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=outbound.mailhop.org; s=dkim-high; h=content-transfer-encoding:content-type:subject:from:to:mime-version:date: message-id:cfbl-address:cfbl-feedback-id:from; bh=Rv1I+PSlSZGDpeXK9LkmaKdzURXot+nhpnhYGigSCwM=; b=BKxN0DSIqCZ+FP9lYk/0VZ1ds9SRPc8f/rEe32DGTFQCpfZB6IDK9tBZfsnyqyjFCuitgI/IfQ8Nu NfduD1eLhC1ZIyYeLAkqHz2u1WegI9LZ0sATZbQ+p2/yFRFwVew7U6Nz2J9ZvFnJgJW+bN+N84CH5U jx/iHrwVkcqWfsvhSRJnCPDuD2Hk9XjIGhrMwWOSXh+t4SroroPlgGgYEibnnm0WLTkHMtfjqcKvR/ 660ZDS5JNahfjXHlvm3IInfg5ZZx0Tzmy0GmegnAGVcdcvhbKM3JShGyCS4VYqMGLFBTglg2pWwlgh tQDdB0dh3NMGDq5l/ITkoFEHrnXrZtQ== X-Originating-IP: 185.209.57.35 X-MHO-RoutePath: cmR1bmtsZQ== X-MHO-User: 5235e6f4-0d2f-11f0-9993-eb1d40c36193 X-Report-Abuse-To: https://support.duocircle.com/support/solutions/articles/5000540958-duocircle-standard-smtp-abuse-information X-Mail-Handler: DuoCircle Outbound SMTP CFBL-Feedback-ID: 5235e6f4-0d2f-11f0-9993-eb1d40c36193:1 CFBL-Address: prvs=01841dd02c=abuse@outbound.mailhop.org; report=arf Received: from [192.168.2.159] (smp5.smallcatbrain.com [185.209.57.35]) by outbound2.eu.mailhop.org (Halon) with ESMTPSA id 5235e6f4-0d2f-11f0-9993-eb1d40c36193; Sun, 30 Mar 2025 06:22:14 +0000 (UTC) Message-ID: Date: Sun, 30 Mar 2025 09:22:13 +0300 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 User-Agent: Mozilla Thunderbird Content-Language: en-US To: freebsd-riscv@freebsd.org From: Rich Dunkle Subject: JH7110 dwc-eqos MAC support Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spamd-Result: default: False [-4.04 / 15.00]; RBL_SENDERSCORE_REPUT_9(-1.00)[35.156.234.212:from]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-0.999]; NEURAL_HAM_MEDIUM(-0.54)[-0.538]; R_DKIM_ALLOW(-0.20)[outbound.mailhop.org:s=dkim-high]; R_SPF_ALLOW(-0.20)[+ip4:35.156.234.212]; MIME_GOOD(-0.10)[text/plain]; RCVD_TLS_ALL(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; DMARC_NA(0.00)[smallcatbrain.com]; SUSPICIOUS_AUTH_ORIGIN(0.00)[]; MIME_TRACE(0.00)[0:+]; DKIM_TRACE(0.00)[outbound.mailhop.org:+]; ARC_NA(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; FROM_HAS_DN(0.00)[]; ASN(0.00)[asn:16509, ipnet:35.156.0.0/14, country:US]; DWL_DNSWL_NONE(0.00)[mailhop.org:dkim]; HAS_XOIP(0.00)[]; TO_DN_NONE(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; RCVD_COUNT_ONE(0.00)[1]; MLMMJ_DEST(0.00)[freebsd-riscv@freebsd.org]; RWL_MAILSPIKE_POSSIBLE(0.00)[35.156.234.212:from]; MID_RHS_MATCH_FROM(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[35.156.234.212:from] X-Rspamd-Queue-Id: 4ZQPLd37r8z4NKS X-Spamd-Bar: ---- I was wondering about support for this eqos ethernet driver on the JH7110. I see there is a review:  https://reviews.freebsd.org/D45600 --but appears stalled. I was studying the code in the review and cannot find one include: sys/riscv/starfive/starfive_if_eqos.c line 34:   #include "if_eqos_if.h" From nobody Sun Mar 30 09:08:41 2025 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 4ZQT2j55sTz5rqCD for ; Sun, 30 Mar 2025 09:08:45 +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 (prime256v1) server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (3072 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 4ZQT2g41Jpz3wFs for ; Sun, 30 Mar 2025 09:08:43 +0000 (UTC) (envelope-from jsihv@gmx.com) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmx.com header.s=s31663417 header.b=kFpANSKN; 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=1743325721; x=1743930521; i=jsihv@gmx.com; bh=MInhBnMACPnLIcu1w1J6GvJ/7Fy0rFqN2wMwp+Ck36w=; h=X-UI-Sender-Class:MIME-Version:Message-ID:From:To:Subject: Content-Type:Date:References:Content-Transfer-Encoding:cc: content-transfer-encoding:content-type:date:from:message-id: mime-version:reply-to:subject:to; b=kFpANSKNHPCv24+ov5HS41JcJnkK57ylCN5ti4bDp/jEQ/35uEg7e3f925Gi2jOM fKBS1EJsRfhEMbFxcTm9C4ngPivOm4n0a2ct1NXGrIkqqJ8Xl1NHV11niIoCoTo9y PA4BtZKB1yr2L0Htv/K+aFHKvHNOn0XW8BDlL5NsiRW+mPkNJXLW6ndfW8L4Y7IHa WcAqXA4RPcYi9l7Q/8/XmEISw+/cKEjAu3i9+SIzc0nwrelm6M2TXRqRVwiuhEc90 cxRteB8m4R8MH0DuRJ3pejf2RDzLpIqxUCT5Tb4WFQe72EFTJt0k2OQkwosGzQRi+ h/0NsRCm2l5AWLSaMg== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Received: from [84.249.138.26] ([84.249.138.26]) by web-mail.gmx.net (3c-app-mailcom-bs15.server.lan [172.19.170.183]) (via HTTP); Sun, 30 Mar 2025 11:08:41 +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: Fw: Re: JH7110 dwc-eqos MAC support Content-Type: text/plain; charset=UTF-8 Date: Sun, 30 Mar 2025 11:08:41 +0200 Importance: normal Sensitivity: Normal References: Content-Transfer-Encoding: quoted-printable X-UI-Message-Type: mail X-Priority: 3 X-Provags-ID: V03:K1:jAopH4lwzp/Hsp6fjd7XexG0vxUTIRMIwyj2wz3sSHMyuuT70U79UwLAcoAF61gqkfese bqSELlj98LvA0cCh0wtd/zwp9JtTLjtiWhFfEAfMhWmxqjWq4eJhCyu4+Bf8jHajxpQy8e/ZFu0r 4SJBQDT4Kqa0URfLWr4Eb8AB9AKLWEgpVB3+1gSAFY9hXCIuf/8OFFpYj9BnOG9/u0QJCqh3eNJP WvYvIwC0fT17gPSCzrrCxPsd8CkwOF5O6q7b7kWwclbr7sB/mDmVXiQGyOP3FNR3gn7fpv6DCpcj vY= X-Spam-Flag: NO UI-OutboundReport: notjunk:1;M01:P0:Jo0g3/xQUaM=;wydgXGcJwO34+apjchy9u1Gm62m /+LRfJKQE3TyDVFBa7H+Orq9tlNoB3jGlrULmV5XJ9fR+SHzumUdI2TzHNu/ywse3sJAYls6t nMX240+5DsaSpkcvrIebUbsuVxQV8HwpFNH+EiG8KfVHyhR6Z4BDpyH/RhbswmfvSyiHCv05i vo5yeiYS8iB9k075JWTnYrFBDnVMlzaarf3IXH390yCtCAGpDZ6+lXSczrks2C+EHk2Aka+2V NGKnwCLEi/x+45Z40Kr07f9M9Nbd41oYPNVX9x8iHHPO7d61S28Lk3ZFkBMIv2tnZ8XBBJg6R GKXY1SLjg2tUcw2vm0c9bW1pHhKHA5A9c5wwO1KIlnjPlCF2GZAc8MKJMzfwwPC+JhgNDVQ2c gvnl0MnCXZK5Lqp3S0F7+2n+ORvve4KW43xhHmi1coOhqzVSMdoHSGxYOeIEjD1dPocOcDHHe XD2u8LHCfkEaElaVx110HLgOWpmNAuXXeHiNbzbBhStARd9hvYQxyrvSRkxHhC2CUtzZpayIr knKQ0LHFWCB6YbJaScJm8vGQ+zH4pm8flQ8O87H0tNtdwruXUIG/LtmiDQwTBFtiEUfZS81WC +XFjFHikB1OF07XY7F4S2Xv1ahkhuuv8T3YhsqcUQ4daBwEGonkv+QlmumSqv4LEO8J36zpAS AaT+PGEGH5wd4wrOs5ZHRCKkvPdFbcLNU4xVkkt9PGu3509SIBYLB2z20WghqotRgD+w7hqCA fTczBYD3kSVaEztSy45lKz1Um66tNQPNr6kqsM7w+XUlUq0NGG1TmmliO1bsDHQbfucjvEPj5 AcYxMgGWgrAqWtqtVUSCcbEg2sFwY3HSaIPcHqqOOoF4/sulXSue9n9/nAQ6Ekps+99Y4fSJ8 YHCIVVcey5SlRYwMI0yHNybaGvGjzINBSDVtRK8wR+RHc7cCkh+XY0vPUtR6kBzaz02XnjeKT aFvBy1LkyM/uBoApVgVeJInSGYxSA5psVTXxWNUqrxjzXQAPf8XB70g5r77x2tkaPPE2OlC0Q UZnAU7Q0VeNXtEYr7mC+Gh2R3GnCs++yFtdbNKmWeX67gPhbnLmurhVlE5ABrDZ9xEFlXNvx6 wIUzanlm4wPcb5GNPkAfR+HASmHvGaJpJl1ZsLp02PYVQrbDH+H0H5G9atuDhUi9bseVTY18w qyC6MExDAwF8kCa9Kw2Kbz4k+l6z2ajCdKk+HczCScMhxI7dF00WWvCati+K1efkJ2HNTIsPy 46mq6FE/jV66rJZR/DRoaRmz27gBbelA3w== X-Spamd-Result: default: False [2.08 / 15.00]; RBL_SENDERSCORE_REPUT_5(1.50)[212.227.15.18:from]; DWL_DNSWL_LOW(-1.00)[gmx.com:dkim]; NEURAL_SPAM_LONG(1.00)[1.000]; NEURAL_HAM_SHORT(-1.00)[-0.998]; NEURAL_SPAM_MEDIUM(0.98)[0.980]; MID_RHS_NOT_FQDN(0.50)[]; ONCE_RECEIVED(0.20)[]; RCVD_IN_DNSWL_LOW(-0.10)[212.227.15.18:from]; BAD_REP_POLICIES(0.10)[]; MIME_GOOD(-0.10)[text/plain]; RCVD_COUNT_ONE(0.00)[1]; FROM_EQ_ENVFROM(0.00)[]; RCVD_TLS_LAST(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; R_DKIM_ALLOW(0.00)[gmx.com:s=s31663417]; ARC_NA(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; FREEMAIL_FROM(0.00)[gmx.com]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:8560, ipnet:212.227.0.0/16, country:DE]; TO_DN_NONE(0.00)[]; DKIM_TRACE(0.00)[gmx.com:+]; R_SPF_ALLOW(0.00)[+a:mout.gmx.net]; RWL_MAILSPIKE_POSSIBLE(0.00)[212.227.15.18:from]; HAS_X_PRIO_THREE(0.00)[3]; MLMMJ_DEST(0.00)[freebsd-riscv@freebsd.org]; FREEMAIL_ENVFROM(0.00)[gmx.com]; MISSING_XM_UA(0.00)[]; DMARC_POLICY_ALLOW(0.00)[gmx.com,quarantine]; FROM_HAS_DN(0.00)[] X-Rspamd-Queue-Id: 4ZQT2g41Jpz3wFs X-Spamd-Bar: ++ > Sent: Sunday, March 30, 2025 at 10:04 AM > From: "JMT Sihvola" > To: "Rich Dunkle" > Subject: Re: JH7110 dwc-eqos MAC support > > > Sent: Sunday, March 30, 2025 at 7:22 AM > > From: "Rich Dunkle" > > To: freebsd-riscv@freebsd=2Eorg > > Subject: JH7110 dwc-eqos MAC support > > > > I was wondering about support for this eqos ethernet driver on the JH7= 110=2E > > I see there is a review:=C2=A0 https://reviews=2Efreebsd=2Eorg/D45600 > > --but appears stalled=2E > > I was studying the code in the review and cannot find one include: > > sys/riscv/starfive/starfive_if_eqos=2Ec > > line 34:=C2=A0=C2=A0 #include "if_eqos_if=2Eh" >=20 =20 Yes, JH7110 is my first kernel project and I didn't add those files for some reason=2E =20 I realized this mistake some time ago but I haven't updated the patch since I thought it's probably not the only thing that needs to be changed if the patch gets reviewed one day=2E =20 But now when somebody got interested I could update the patch next week=2E =20 the ethernet patch requires these lines to sys/riscv/starfive/files=2Estar= five: riscv/starfive/starfive_if_eqos=2Ec optional eqos=20 dev/eqos/if_eqos=2Ec optional eqos=20 dev/eqos/if_eqos_if=2Em optional eqos=20 =20 and these lines to sys/riscv/conf/GENERIC or sys/riscv/conf/std=2Estarfive= : device mcommphy device eqos =20 The pending GPIO patch is likely to be required first =20 -j=2E sihvola