From nobody Wed Feb 26 17:39:41 2025 X-Original-To: freebsd-arm@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 4Z31v144BNz52lFn for ; Wed, 26 Feb 2025 17:39:41 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (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-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Z31v139tlz3gFB for ; Wed, 26 Feb 2025 17:39:41 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1740591581; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=D+LcRSoi92BqLave9Nr210MBGbPpqeREevVyCdPu4Kc=; b=FZYOcvJxjhSI0hLfM8Wy8YsIgtNzkIYwJXCMfh0HXBo9/ttI197Z9s4YHWF2z/juF+AxQG qXp+lwW5O6ifKch+t5/hOmnnGu9RtDZzys1/O3Mmi7tl6LohlayL0Ziec4AnqsvQFgIg67 rixQt74hB0Cbhh3gFwF1/4ceK2lNToWleBefOpa3xth439XFec4nDCdGXhaWZZsM523vKK 1Uop3L3JpHZMcgMg+kUwzldcg7SdM1QfcCGucSTjLtuYq7DZi+15OYwbKeJhOnq3sytAwo fHWQEasJ14KO9yFjf5805a6lAnTQ9HT6rJ8R/9rn2xS+jriQL1srGL3ctc+RJw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1740591581; a=rsa-sha256; cv=none; b=qJ0be/fU0znibiac6wtipXXRpWWWD1hTMRREnDEK3p4nh8wHVIetgWyXzVoehD/sIagGhq zWyd4l71b0+MNkRaj5KqFxPy+03xXqIyZR2O6XQvlvpxJ/BBaU1B4bRhExbAaIJvZExbPM ixHH9AEJG3k+IRp8GjdqT+5BwdvUycanTXdSABYhrkz/yTtnwcfKXo0ythgYLSaYuIeCE3 HVPY4ArWT8iwDkSyNI6uynuhiT3r7YC4I2JACT3BUD9gXro8duAy8493/d2dLdZJjMxNrt xD+Gp+8o7bGYHOi6hNQ8xpODFO5tNNnreIIHno6iqMCNL2b/MwbsBVWUIFxhJw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1740591581; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=D+LcRSoi92BqLave9Nr210MBGbPpqeREevVyCdPu4Kc=; b=bmLArWfFXRSy6T3SuS8IQ3X0gpYdaVdyHZTph+eWfywLjZpbjrW8A8YhrNXB3keu0vwosw wRt2Z6O+FsmofjNlsxh5WwM3BG/K7240hcQ9csZ4uWe4CiAj6elNtRq1oeZcyURvi6gPTi 4fmCJ+P6/M3nxv4j4qnyLEZTVHjtLybbKGem/udllLTZpz5VICA816849BgxU+vfqJErIu JVHxoELyYxb0s0+dClR+YJNPvSB28oGD8ty7uYuPv5+YAF2/Hz7U0MHBz4Wppt0RyZugki o/neNibY3NIhB5JhKZF3b1Ofy8I0SNwzvoExHHQUWgd8hgkGj6UlvJWZUVQsSA== Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (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 mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4Z31v123Pkz1LJd for ; Wed, 26 Feb 2025 17:39:41 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 51QHdfwF037499 for ; Wed, 26 Feb 2025 17:39:41 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 51QHdffR037498 for freebsd-arm@FreeBSD.org; Wed, 26 Feb 2025 17:39:41 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: freebsd-arm@FreeBSD.org Subject: [Bug 285054] Cubieboard broken by 9ddd516b886218af809dbf40eeda1ed388e2879c Date: Wed, 26 Feb 2025 17:39:41 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: arm X-Bugzilla-Version: 15.0-CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: freebsd@dev.thsi.be X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-arm@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter attachments.created Message-ID: Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="UTF-8" X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Porting FreeBSD to ARM processors List-Archive: https://lists.freebsd.org/archives/freebsd-arm List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-arm@FreeBSD.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D285054 Bug ID: 285054 Summary: Cubieboard broken by 9ddd516b886218af809dbf40eeda1ed388e2879c Product: Base System Version: 15.0-CURRENT Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: arm Assignee: freebsd-arm@FreeBSD.org Reporter: freebsd@dev.thsi.be Created attachment 257998 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D257998&action= =3Dedit fix-and-debug-a10.patch Hi, Commit 9ddd516b886218af809dbf40eeda1ed388e2879c] riscv: enable allwinner RTC broke support for the cubieboard: ... openfirm: sound_global_init: snd_unit=3D-1 snd_maxautovchans=3D16 latency=3D2 feeder_= rate_min=3D1 feeder_rate_max=3D2016000 feeder_rate_round=3D25 crypto: ofwbus0: ofw_clkbus0: on ofwbus0 clk_fixed0: on ofw_clkbus0 Clock: osc24M, parent: none, freq: 24000000 clk_fixed1: on ofw_clkbus0 Clock: osc32k, parent: none, freq: 32768 simplebus0: on ofwbus0 regfix0: on ofwbus0 regfix1: on ofwbus0 regfix2: on ofwbus0 regfix3: on ofwbus0 regfix4: on ofwbus0 regfix5: on ofwbus0 rtc0: mem 0x1c20d00-0x1c20d1f irq 32 on simplebus0 rtc0: Using internal oscillator panic: Duplicated clock registration: osc32k ... Previous to this commit, the aw_rtc driver did not try to register clocks, as the fdt rtc node for the A10 does not have the "clock-output-names" property (sun4i-a10.dtsi). Same for sun7i-a20.dtsi. I can confirm this hypothesis with the patch attached. The mentioned commit made the aw_rtc driver disregard the absence of "clock-output-names" to always register some clocks, because the riscv board that this commit is made to support doesn't have such property defined and because, according to the commit message, it is fine to hardcode that behaviour because all the device supported do have the property (until a new one comes...). The logic of that seems wrong to me, because it hardcodes a behaviour assum= ing that the FDT may be wrong. And maybe a future board might do it like the a10/a20 did ? Would be possible to support the sun20i riscv in another way and to restore support for the A10/A20? Like maybe instead do, either: - special casing the behaviour change only for the intended boards having a= bad fdt/dts - or fixing the dts file - or special-casing the a10/a20 cases (seems wrong since their dts were fine...) - or something else Please let me know if I can help. Thanks --=20 You are receiving this mail because: You are the assignee for the bug.=