From nobody Tue Oct 10 15:16:17 2023 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 4S4fck0x6gz4wtbb for ; Tue, 10 Oct 2023 15:16:22 +0000 (UTC) (envelope-from jsihv@gmx.com) Received: from mout.gmx.net (mout.gmx.net [212.227.15.15]) (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 4S4fcj4b8cz4Vwk for ; Tue, 10 Oct 2023 15:16:21 +0000 (UTC) (envelope-from jsihv@gmx.com) Authentication-Results: mx1.freebsd.org; none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.com; s=s31663417; t=1696950977; x=1697555777; i=jsihv@gmx.com; bh=AjrnQSnF8ynjIRnILcTNAprS+k9Rken2w0TISmFYEO4=; h=X-UI-Sender-Class:From:To:Subject:Date:In-Reply-To:References; b=EKFcGG5hovmuI0W1suaONEplZq5hVI9pTzzUGZjlt2zJbb3qFz2cOkOBFQLO0ANMkWXOreBu46E gGAyq8BnYByoKJHg9HRVT3dPkwCLYd4CQbq4zLR5TxrgLvo3xty2JF0wUgAQQCy3cEeDhEODfg3SS j+7UF3OnrHwgNCUGJ9uuN1toKpN1Gp8mbA5D8Dyd28fFbh5TcpQa85qOvoCqs17QPy9quY1RbbDYm XXvoNB8MnkGguhWgq5+1RssBud5cnAVKdi/y/yQZjh6x1xSMT2dWwwlXenQ2fjseh5MwNfZ1c6yQ7 qiYyl7HwaNtznpmtNpFzk/PQJkF6ipvgjtFQ== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Received: from [80.221.188.206] ([80.221.188.206]) by web-mail.gmx.net (3c-app-mailcom-bs09.server.lan [172.19.170.177]) (via HTTP); Tue, 10 Oct 2023 17:16:17 +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: Sender: owner-freebsd-riscv@freebsd.org X-BeenThere: freebsd-riscv@freebsd.org MIME-Version: 1.0 Message-ID: From: JMT Sihvola To: "Colin S. Gordon" , freebsd-riscv@freebsd.org Subject: Re: StarFive VisionFive 2 support Content-Type: text/plain; charset=UTF-8 Date: Tue, 10 Oct 2023 17:16:17 +0200 Importance: normal Sensitivity: Normal In-Reply-To: <7f59abe7-11ee-4efe-9688-28e5722fec9a@app.fastmail.com> References: <55416c03-c838-46d5-8f18-f6eb1657f4a5@app.fastmail.com> <7f59abe7-11ee-4efe-9688-28e5722fec9a@app.fastmail.com> Content-Transfer-Encoding: quoted-printable X-UI-Message-Type: mail X-Priority: 3 X-Provags-ID: V03:K1:hiez6ejIGnAcmrHO/SPR4/ifsfpD5tupbB226iGR3qsR0DWAGhnRVZxeGcegrIstgnrtY AcLyPYYU+eIIuygCtBqdvjdq8NV7En5FxIBUWt4K2GTAFs+nWj3u7vt2OO7WuQMIr6d0AoYm2JX2 qakXqr92KDxDvKgomm4G2pmW4IBN75f1h/Uou4S6DELnegcHR7urxvwpGkKZdD9MOzpmirWBiQj4 0+Uyatv2LSbLGRVqBzEqRksQPQahgJTufRysXcAKicgMYnCs8K95WEO/zPqNyP9Mk6TI42RFBdQh 7Q= X-Spam-Flag: NO UI-OutboundReport: notjunk:1;M01:P0:m1jcqyC3FVI=;IaT3Ph9j/u2zMeKj3xcyaKyLkvs 5EWWd+D1lteBpwZFn1JETxhC/L3pVaGx3FL7w0k9/Jt4fmGaGpXz6/9QotRFPICJ4L/Ab0Dig wM48tsbx2ZJG1e5ugVkXzfA423WiZ92x+UZMuw9lseTCZWFHZUjyE0EujXfxr0q8gio1CE6Cg 1dgcyEmBh587badl7QwDIy8Mg6OGjVqZey20WlT8QVKE23/GXM9I8H1WD9FRY8eR0+7Bnk6jR UcJbYVnOcwDZOG9uGL0qRHHKSvpRwImbP/FzMZZMaE66xXaTpgBPzzJbe7EQ62/gZbwUStbFv jgRe3zHhVzs3VLL3k9kRTQGkFKxfZPKPQF3HSWVRlX7Zdrlrr22vau9oBBIJdFUe0dHay8yxY 26ghdqnHQH4RTy9A60RAavDS/gKmUWNNnK8ILzV50z4aKfQtrARi01Uw/jr7R7Lf6DIY4kJN1 +r2Q/dqUg19LxrZRxD1Uve+zKNUbEqwBEsS9ZxYbVUXpxbRCggMjoW/UxU9dfhWOV77lzeVzs /33p2KBkmT+m/MFPqgNuQ56t3/mCCz/jolUk1t3FxqMSGE1zQyHwqHE52ERSXgZVF768Iw/aR X+ygfFWV03vbMptUmCP4ZhhxrHkmK/qdWi5WiUIkn1mi3QPMySdQoe4711Q766JG97qxn6pFv 09lopb/hR8SqraQ5VNPH5/nscaUEzpdpgRT2UkDpAoaMm3UNrVEK/5Mxs9egjVHx9y991fyW3 ZcY7vKscfSggFdXb3cgtGfRAHMiKEkIuB/bPQ8HC+2Tjky3vQV1WP00Dh4opBkP4LTpxcSnwN yK6P65Yjet3iCZVEnMulRAO1kbGH4oc3C2AhGpum1AlfY= 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: 4S4fcj4b8cz4Vwk Colin S=2E Gordon wrote: >I see some GPL and MIT license headers in your current changes, which I'm= trying to avoid, but I'll gladly build on some of the BSD-licensed changes=2E So far I've not quite grasped what is FreeBSD's stance on this issue=2E Some of my question on IRC have gone unanswered but I've got a picture that some dual-licensed files are used as such=2E I myself extracted some of the most important header code and used it under MIT license (naturally giving credits to the original author)=2E Colin S=2E Gordon wrote: >It looks like I did at least partly duplicate your work with the dwmmc dr= iver(https://github=2Ecom/csgordon/freebsd-starfive2/commit/fd7 >00cd60e466bacfd60c1dcc3b4 [github=2Ecom]), which I mostly adapted from on= e of the existing drivers=2E=C2=A0 I'll also take a look at M=2E Horne's co= de, I wasn't aware of that myself=2E Oddly enough, for me MMC didn't require any additional code beyond offerin= g=20 clocks, (maybe the reset driver) and fixing that DMA bug which was=20 initially reported here: https://reviews=2Efreebsd=2Eorg/D34118 =2E=2E=2Eand which I re-reported here: https://bugs=2Efreebsd=2Eorg/bugzilla/show_bug=2Ecgi?id=3D273694 I don't recall having any issues with biu and ciu clocks, so I'm not sure what that is about=2E -Jari