Page MenuHomeFreeBSD

arm64Project
ActivePublic

Details

Description

FreeBSD/arm64

Recent Activity

Tue, Sep 29

rcm removed a member for arm64: rcm.
Tue, Sep 29, 3:34 PM
mmel added a comment to D58812: arm64: mediatek: add initial MT7622/Banana Pi R64 support (revised).
  • Added simplebus_driver as a base class of all mt_clk based drivers.

Why to all? What about all the other objections?

Tue, Sep 29, 2:36 PM · arm64
freebsd_sysctl.cz updated the diff for D58812: arm64: mediatek: add initial MT7622/Banana Pi R64 support (revised).
  • Added simplebus_driver as a base class of all mt_clk based drivers.
  • Used simplebus_attach_impl(dev, SB_FLAG_NO_RANGES, node) instead of open-coding simplebus_init() and the child enumeration loop. None of the clock controller nodes have a "ranges" property.
  • Droped the embedded struct simplebus_softc from struct mt_clk_softc
Tue, Sep 29, 2:11 PM · arm64
freebsd_sysctl.cz updated the diff for D58812: arm64: mediatek: add initial MT7622/Banana Pi R64 support (revised).
Tue, Sep 29, 8:04 AM · arm64

Sun, Sep 27

yarshure_gmail.com updated the diff for D58258: dpaa2: read SFP+ module EEPROM through SIOCGI2C.

Reworked along the lines @bz asked for, and split into a stack so each piece can
be read on its own. This revision is now only the consumer -- the SIOCGI2C
handler -- and the tunables are gone.

Sun, Sep 27, 1:38 PM · network, drivers, arm64

Tue, Sep 15

ziaee closed D59644: bcm2835_pwm: Fix dev.pwm.0.ratio2 register.
Tue, Sep 15, 9:01 PM · arm64, ARM

Sun, Sep 13

seuros added a project to D57082: arm64: review MT7622 support sysirq: drivers.
Sun, Sep 13, 8:50 PM · drivers, arm64, ARM
adrian added projects to D59644: bcm2835_pwm: Fix dev.pwm.0.ratio2 register: ARM, arm64.
Sun, Sep 13, 5:44 PM · arm64, ARM

Sat, Sep 12

yarshure_gmail.com added a comment to D58258: dpaa2: read SFP+ module EEPROM through SIOCGI2C.

@dsl @adrian — I took D58258#1368055 literally and built MACLINK, then ran it on
an LX2160A (SolidRun CEX7, UEFI/ACPI; dpni0 = dpmac.17 RGMII, dpni1 = dpmac.8 and
dpni2 = dpmac.9, both 10G SFP+ with modules in).

Sat, Sep 12, 9:17 PM · network, drivers, arm64
adrian added a comment to D58258: dpaa2: read SFP+ module EEPROM through SIOCGI2C.
In D58258#1367937, @dsl wrote:
In D58258#1367549, @dsl wrote:

@adrian well, I'm not sure that the contributor actually understands the code. It seems AI/ML generated to me and isn't aligned with the idea of mine about maclink. I'm against the changes.

What do you mean by "maclink" ? They said they used AI assistance in developing it, but it seems mostly simple enough:

  • sfp is an i2c device on a bus;
  • the i2c bus doesn't HAVE to be hooked up to the MAC in any way; it in theory could be hanging off of some other i2c controller in the system;
  • there's information about where said bus is linked to in FDT;
  • some simple shenanigans are required to be able to talk to it and fetch configuration parameters.

What doesn't quite jive with your assumptions of stuff?

MACLINK is supposed to be an abstraction which hides possibly complex topology of the devices and their interconnections which constitute a multi-gigabit link between the MAC (which is a part of a SoC usually) and a PHY/SFP+ on a PCB. This is the best explanation I've to date: https://github.com/mcusim/freebsd-src/blob/dpaa2/sys/dev/maclink/maclink.c#L31. All of the existing MACLINK bits live in https://github.com/mcusim/freebsd-src/tree/dpaa2/sys/dev/maclink, but haven't been tested yet.

Personally, I'd like a proper abstraction to be introduced first with a clear understanding how a maclink_bus can be attached by the network interface drivers and introduce new (specific?) maclink adapters which will be incapsulating all of the complex logic to discover PHYs, SFF/SFPs, PCSs, etc. and let the maclink bus (and the attaching network interface) know about high-level events, e.g. state changes, link's up/down, etc.

Sat, Sep 12, 4:54 PM · network, drivers, arm64
dsl added a comment to D58258: dpaa2: read SFP+ module EEPROM through SIOCGI2C.
In D58258#1367549, @dsl wrote:

@adrian well, I'm not sure that the contributor actually understands the code. It seems AI/ML generated to me and isn't aligned with the idea of mine about maclink. I'm against the changes.

What do you mean by "maclink" ? They said they used AI assistance in developing it, but it seems mostly simple enough:

  • sfp is an i2c device on a bus;
  • the i2c bus doesn't HAVE to be hooked up to the MAC in any way; it in theory could be hanging off of some other i2c controller in the system;
  • there's information about where said bus is linked to in FDT;
  • some simple shenanigans are required to be able to talk to it and fetch configuration parameters.

What doesn't quite jive with your assumptions of stuff?

Sat, Sep 12, 1:59 PM · network, drivers, arm64
yarshure_gmail.com updated the diff for D58259: sdhci_fsl: add ACPI front-end for NXP Layerscape eSDHC (NXP0003).

Thanks for the accept.

Sat, Sep 12, 5:49 AM · arm64, drivers
bz added a comment to D58258: dpaa2: read SFP+ module EEPROM through SIOCGI2C.

.. My reading is that you have in mind a MAC-link layer
for dpaa2 along the lines of Linux's phylink: one place that owns link state for a
DPMAC and drives it from whatever is attached - a PHY via MDIO, a fixed-link, or an
SFP cage - so that module presence/LOS, TX_DISABLE and rate selection are handled
there rather than in each consumer. If that is roughly it, please correct the
details and I will work to it.

Sat, Sep 12, 1:56 AM · network, drivers, arm64
bz added a comment to D58258: dpaa2: read SFP+ module EEPROM through SIOCGI2C.

I believe the ACPI path was never tested on main - or we haven't flipped the defaults yet -- but for sure it'll fail to link modules due to unresolved symbols (in the future).

Sat, Sep 12, 1:27 AM · network, drivers, arm64
yarshure_gmail.com added a comment to D58258: dpaa2: read SFP+ module EEPROM through SIOCGI2C.

@dsl - on maclink: I want to make sure I am answering the right objection, because
I cannot find maclink in the tree (only enum dpaa2_mac_link_type in dpaa2_mac.h),
so I am guessing at its shape. My reading is that you have in mind a MAC-link layer
for dpaa2 along the lines of Linux's phylink: one place that owns link state for a
DPMAC and drives it from whatever is attached - a PHY via MDIO, a fixed-link, or an
SFP cage - so that module presence/LOS, TX_DISABLE and rate selection are handled
there rather than in each consumer. If that is roughly it, please correct the
details and I will work to it.

Sat, Sep 12, 12:18 AM · network, drivers, arm64
yarshure_gmail.com updated the diff for D58258: dpaa2: read SFP+ module EEPROM through SIOCGI2C.

v3 addresses @adrian's two points:

Sat, Sep 12, 12:18 AM · network, drivers, arm64

Fri, Sep 11

adrian added a comment to D58258: dpaa2: read SFP+ module EEPROM through SIOCGI2C.
In D58258#1367549, @dsl wrote:

@adrian well, I'm not sure that the contributor actually understands the code. It seems AI/ML generated to me and isn't aligned with the idea of mine about maclink. I'm against the changes.

Fri, Sep 11, 9:38 PM · network, drivers, arm64
dsl added a comment to D58258: dpaa2: read SFP+ module EEPROM through SIOCGI2C.

@adrian well, I'm not sure that the contributor actually understands the code. It seems AI/ML generated to me and isn't aligned with the idea of mine about maclink. I'm against the changes.

Fri, Sep 11, 8:16 PM · network, drivers, arm64
adrian added inline comments to D58258: dpaa2: read SFP+ module EEPROM through SIOCGI2C.
Fri, Sep 11, 6:40 PM · network, drivers, arm64
adrian added a comment to D58258: dpaa2: read SFP+ module EEPROM through SIOCGI2C.

this looks fine; please just remove teh BSD copyright text itself as the SPDX + your copyright name/email is enough. Then we should be fine for landing it!

Fri, Sep 11, 6:39 PM · network, drivers, arm64
adrian added a comment to D58259: sdhci_fsl: add ACPI front-end for NXP Layerscape eSDHC (NXP0003).

looking good, please keep it up!

Fri, Sep 11, 5:40 AM · arm64, drivers
adrian accepted D58259: sdhci_fsl: add ACPI front-end for NXP Layerscape eSDHC (NXP0003).
Fri, Sep 11, 5:37 AM · arm64, drivers
yarshure_gmail.com updated the diff for D58258: dpaa2: read SFP+ module EEPROM through SIOCGI2C.
Fri, Sep 11, 4:59 AM · network, drivers, arm64
yarshure_gmail.com updated the diff for D58259: sdhci_fsl: add ACPI front-end for NXP Layerscape eSDHC (NXP0003).

Done, thanks — new diff uploaded.

Fri, Sep 11, 4:57 AM · arm64, drivers
adrian added a comment to D58259: sdhci_fsl: add ACPI front-end for NXP Layerscape eSDHC (NXP0003).

I believe you need to add your name / email address in the copyright for the new files you've written. Would you mind doing that please?

Fri, Sep 11, 4:23 AM · arm64, drivers
adrian added projects to D58259: sdhci_fsl: add ACPI front-end for NXP Layerscape eSDHC (NXP0003): drivers, arm64.
Fri, Sep 11, 4:23 AM · arm64, drivers
adrian edited projects for D58258: dpaa2: read SFP+ module EEPROM through SIOCGI2C, added: drivers, network; removed ARM.
Fri, Sep 11, 4:22 AM · network, drivers, arm64
adrian added projects to D58258: dpaa2: read SFP+ module EEPROM through SIOCGI2C: arm64, ARM.
Fri, Sep 11, 4:21 AM · network, drivers, arm64

Aug 18 2026

freebsd_sysctl.cz updated the diff for D58812: arm64: mediatek: add initial MT7622/Banana Pi R64 support (revised).
Aug 18 2026, 2:23 PM · arm64

Aug 17 2026

mmel added a comment to D58812: arm64: mediatek: add initial MT7622/Banana Pi R64 support (revised).

Not exactly. The D57176 has nothing to do with simplebus; all of its clock nodes in the DT are leaf nodes.

Aug 17 2026, 5:49 AM · arm64

Aug 16 2026

adrian added a comment to D58812: arm64: mediatek: add initial MT7622/Banana Pi R64 support (revised).

Sorry, I was too brief. In the past, Martin gave me many versions of the clock code for pre-review, so I have a tendency to respond briefly.
The issue is the audsys/audiosys driver (at least, I didn't check the other clocks). It is not a leaf node, but it has subnodes, so it must implement the simplebus class together with the MT_CLK class. This is impossible in the current situation because both classes have their own softc.
The audsys driver version in review only derives simplebus, which means it cannot work at all. It doesn't have a method for physical access to clock related registers or locking functions (CLKDEV interface).

Aug 16 2026, 8:29 PM · arm64
adrian added a comment to D58812: arm64: mediatek: add initial MT7622/Banana Pi R64 support (revised).

Sorry, I was too brief. In the past, Martin gave me many versions of the clock code for pre-review, so I have a tendency to respond briefly.
The issue is the audsys/audiosys driver (at least, I didn't check the other clocks). It is not a leaf node, but it has subnodes, so it must implement the simplebus class together with the MT_CLK class. This is impossible in the current situation because both classes have their own softc.
The audsys driver version in review only derives simplebus, which means it cannot work at all. It doesn't have a method for physical access to clock related registers or locking functions (CLKDEV interface).

Aug 16 2026, 5:54 PM · arm64
mmel added a comment to D58812: arm64: mediatek: add initial MT7622/Banana Pi R64 support (revised).

Sorry, I was too brief. In the past, Martin gave me many versions of the clock code for pre-review, so I have a tendency to respond briefly.
The issue is the audsys/audiosys driver (at least, I didn't check the other clocks). It is not a leaf node, but it has subnodes, so it must implement the simplebus class together with the MT_CLK class. This is impossible in the current situation because both classes have their own softc.
The audsys driver version in review only derives simplebus, which means it cannot work at all. It doesn't have a method for physical access to clock related registers or locking functions (CLKDEV interface).

Aug 16 2026, 5:02 AM · arm64

Aug 15 2026

adrian added a comment to D58812: arm64: mediatek: add initial MT7622/Banana Pi R64 support (revised).

This code is fundamentally incomplete and unusable in its current state.

  • All PLL clocks are crudely faked with fixed clock events instead of being dynamic, without any check.
  • The UART silently accepts and programs invalid baud rates without any error reporting.
    • pinctrl implements barely ~10% of the properties defined in the bindings, rendering it effectively useless. -Several clock driver nodes (simplebus being a clear example) lack required functionality and must be rewritten from scratch.

This code is nowhere near ready and demands substantial rework. I'm sorry, but the quality of this AI slope is significantly below my acceptance limit.

Aug 15 2026, 11:36 PM · arm64
mmel requested changes to D58812: arm64: mediatek: add initial MT7622/Banana Pi R64 support (revised).

This code is fundamentally incomplete and unusable in its current state.

  • All PLL clocks are crudely faked with fixed clock events instead of being dynamic, without any check.
  • The UART silently accepts and programs invalid baud rates without any error reporting.
    • pinctrl implements barely ~10% of the properties defined in the bindings, rendering it effectively useless. -Several clock driver nodes (simplebus being a clear example) lack required functionality and must be rewritten from scratch.

This code is nowhere near ready and demands substantial rework. I'm sorry, but the quality of this AI slope is significantly below my acceptance limit.

Aug 15 2026, 8:25 PM · arm64
adrian accepted D58812: arm64: mediatek: add initial MT7622/Banana Pi R64 support (revised).

This in general looks fine. I'll go try building it in a day or two. thanks!

Aug 15 2026, 6:49 PM · arm64
freebsd_sysctl.cz updated the diff for D58812: arm64: mediatek: add initial MT7622/Banana Pi R64 support (revised).

Fix the review and remove foreign code

Aug 15 2026, 6:29 PM · arm64
freebsd_sysctl.cz updated the diff for D58812: arm64: mediatek: add initial MT7622/Banana Pi R64 support (revised).

I removed panic() functions

Aug 15 2026, 6:26 PM · arm64

Aug 13 2026

bnovkov added a reviewer for D58812: arm64: mediatek: add initial MT7622/Banana Pi R64 support (revised): mmel.
Aug 13 2026, 11:28 AM · arm64
bnovkov added inline comments to D58812: arm64: mediatek: add initial MT7622/Banana Pi R64 support (revised).
Aug 13 2026, 11:27 AM · arm64
freebsd_sysctl.cz requested review of D58812: arm64: mediatek: add initial MT7622/Banana Pi R64 support (revised).
Aug 13 2026, 5:24 AM · arm64

Jun 27 2026

ziaee added a comment to D57732: arm64: mediatek: add initial MT7622/Banana Pi R64 support.

Hi! Can we have a little skeleton manpage in this commit? Here is an example of a minimum implementation that is enormously useful, just 40 lines: https://freshbsd.org/freebsd/src/commit/fd1ee28bd01429aa8c38199d5fc069e8b0b75442

Jun 27 2026, 8:16 PM · arm64

Jun 25 2026

mmel requested changes to D57732: arm64: mediatek: add initial MT7622/Banana Pi R64 support.

All of these clock drivers share too much common code. Firstly, why don't you subclass these from the base class in mdtk_clk.c? If that's not sufficient, why don't you use a new base class that implements all this glue and subclass it?

Jun 25 2026, 10:54 AM · arm64
freebsd_sysctl.cz updated the diff for D57732: arm64: mediatek: add initial MT7622/Banana Pi R64 support.

I fixed style(9) issues.

Jun 25 2026, 9:29 AM · arm64
freebsd_sysctl.cz updated the diff for D57732: arm64: mediatek: add initial MT7622/Banana Pi R64 support.

I fixed the copyright in the source code.

Jun 25 2026, 8:28 AM · arm64
seuros updated subscribers of D57732: arm64: mediatek: add initial MT7622/Banana Pi R64 support.
Jun 25 2026, 8:00 AM · arm64

Jun 24 2026

freebsd_sysctl.cz updated the diff for D57732: arm64: mediatek: add initial MT7622/Banana Pi R64 support.

I fixed 8 space tabs.

Jun 24 2026, 7:38 AM · arm64
freebsd_sysctl.cz updated the diff for D57732: arm64: mediatek: add initial MT7622/Banana Pi R64 support.
Jun 24 2026, 6:51 AM · arm64

Jun 23 2026

imp added a comment to D57732: arm64: mediatek: add initial MT7622/Banana Pi R64 support.

This looks fairly good, modulo the style issues.

Jun 23 2026, 11:38 PM · arm64
freebsd_sysctl.cz updated the summary of D57732: arm64: mediatek: add initial MT7622/Banana Pi R64 support.
Jun 23 2026, 4:08 PM · arm64