Page MenuHomeFreeBSD

mmel (Michal Meloun)
User

Projects (2)

User Details

User Since
Feb 3 2015, 4:54 AM (617 w, 14 h)

Recent Activity

Sun, Nov 29

mmel accepted D61697: nvmem: Add functions to get the provider and the location of a cell.
Sun, Nov 29, 8:22 AM

Sat, Nov 28

mmel accepted D61698: cpufreq_dt: Add a hook for the SoC specific hardware version.
Sat, Nov 28, 9:14 AM
mmel accepted D61700: cpufreq_allwinner: Add the hardware version of the H6.
Sat, Nov 28, 9:13 AM
mmel added inline comments to D61697: nvmem: Add functions to get the provider and the location of a cell.
Sat, Nov 28, 9:11 AM

Fri, Nov 27

mmel accepted D61960: mmc: Add MediaTek MSDC SD/MMC controller driver.
Fri, Nov 27, 11:54 AM
mmel accepted D61960: mmc: Add MediaTek MSDC SD/MMC controller driver.

oups, sent before accepting.

Fri, Nov 27, 10:52 AM
mmel added a comment to D61960: mmc: Add MediaTek MSDC SD/MMC controller driver.

This is the only real objection I have; the rest look very good.

Fri, Nov 27, 10:51 AM
mmel accepted D61701: cpufreq_dt: Only register the first CPU of a group sharing the OPP table.
Fri, Nov 27, 10:42 AM
mmel accepted D61700: cpufreq_allwinner: Add the hardware version of the H6.
Fri, Nov 27, 10:40 AM
mmel accepted D61699: cpufreq_dt: Honor opp-supported-hw and opp-microvolt-<name>.
Fri, Nov 27, 10:40 AM
mmel accepted D61698: cpufreq_dt: Add a hook for the SoC specific hardware version.
Fri, Nov 27, 10:37 AM
mmel added a comment to D61697: nvmem: Add functions to get the provider and the location of a cell.

This should be moved to sys/dev/nvmem as nvmem_cell_get_by_ofw_idx() and vmem_cell_get_by_ofw_name()

Fri, Nov 27, 10:34 AM
mmel accepted D61696: cpufreq_dt: Move the parsing of opp-microvolt in its own function.
Fri, Nov 27, 10:02 AM
mmel accepted D61695: cpufreq_dt: Do not count the OPP table nodes that have no opp-hz.
Fri, Nov 27, 10:01 AM
mmel accepted D61694: cpufreq_dt: Read clock-latency-ns and convert latencies to microseconds.
Fri, Nov 27, 10:00 AM

Wed, Nov 25

mmel added a comment to D61960: mmc: Add MediaTek MSDC SD/MMC controller driver.

Please split the code into common parts and MT7986-specific steps. It should now be trivial (imho), and the Linux driver will help you identify the SoC-specific parts. A newcomer implementing another SoC from the same family is in a much harder situation.
This is the only real objection I have; the rest look very good.

Wed, Nov 25, 2:59 PM

Tue, Nov 24

mmel accepted D61831: dwc: Do not panic when a new RX buffer cannot be mapped.
Tue, Nov 24, 9:05 AM
mmel added a comment to D61832: dwc: Set the speed of the SoC from a task.

Why not? The driver mutex could cover the mii_tick in the same way as it does now. You just have to unlock it in dwc4_miibus_statchg() before IF_DWC_SET_SPEED() and relock it afterwards.

Tue, Nov 24, 8:40 AM
mmel accepted D61830: dwc: Do not stall the transmit of the QoS core when a mapping fails.
Tue, Nov 24, 8:18 AM

Mon, Nov 23

mmel committed rG79fd9bd7d3fd: clk_fixed: partially revert and improve e495998e7c6d.
Mon, Nov 23, 8:28 PM
mmel added inline comments to D61830: dwc: Do not stall the transmit of the QoS core when a mapping fails.
Mon, Nov 23, 9:00 AM
mmel added a comment to D61831: dwc: Do not panic when a new RX buffer cannot be mapped.

I don't understand this—why don't you just use the old mbuf if the allocation or mapping of the new one fails? Isn't all that dance with spare map unnecessary?
Also, this should be done in the dwc100 part as well.

Mon, Nov 23, 7:50 AM
mmel added a comment to D61832: dwc: Set the speed of the SoC from a task.

I don't see any LOR here, but a sleepable lock after a non-sleepable one.
But it should be easier and cleaner to schedule the mii_tick directly to the task queue (without callout to taskqueue transition)
We already do this here: https://cgit.freebsd.org/src/tree/sys/dev/etherswitch/e6000sw/e6000sw.c#n561.

Mon, Nov 23, 7:40 AM
mmel accepted D61829: dwc: rockchip: Do not use a NULL clock in the RMII output mode.
Mon, Nov 23, 7:20 AM

Thu, Nov 19

mmel accepted D61190: clk/mediatek: Add MT7986 INFRACFG clock and reset controller.
Thu, Nov 19, 12:02 PM
mmel accepted D61188: clk/mediatek: Add MT7986 APMIXEDSYS PLL controller.
Thu, Nov 19, 12:02 PM
mmel accepted D61187: clk/mediatek: Add common MediaTek clock and reset support.
Thu, Nov 19, 12:01 PM
mmel added inline comments to D61188: clk/mediatek: Add MT7986 APMIXEDSYS PLL controller.
Thu, Nov 19, 10:05 AM
mmel added inline comments to D61187: clk/mediatek: Add common MediaTek clock and reset support.
Thu, Nov 19, 9:54 AM

Wed, Nov 18

mmel added inline comments to D61187: clk/mediatek: Add common MediaTek clock and reset support.
Wed, Nov 18, 6:46 PM
mmel accepted D61190: clk/mediatek: Add MT7986 INFRACFG clock and reset controller.
Wed, Nov 18, 6:38 PM
mmel accepted D61189: clk/mediatek: Add MT7986 TOPCKGEN clock controller.
Wed, Nov 18, 6:37 PM
mmel added inline comments to D61188: clk/mediatek: Add MT7986 APMIXEDSYS PLL controller.
Wed, Nov 18, 6:34 PM
mmel added inline comments to D61187: clk/mediatek: Add common MediaTek clock and reset support.
Wed, Nov 18, 6:28 PM

Tue, Nov 17

mmel accepted D61191: uart: Add MediaTek UART driver.
Tue, Nov 17, 5:11 PM
mmel added a comment to D61610: uart: Factor out the ns8250 baud rate generator code.

Oups, I take it back, sorry for the noise. My eyes/brain have an extreme tendency to skip the heading line in phabricator, taking only the 'Summary' subframe into account.

Tue, Nov 17, 5:10 PM
mmel accepted D61186: arm64: Add MediaTek SoC support skeleton.

Again, commit message.

Tue, Nov 17, 4:05 PM
mmel accepted D61191: uart: Add MediaTek UART driver.

Please reformat the commit message according to the FreeBSD style.

Tue, Nov 17, 4:03 PM
mmel accepted D61611: uart: Let ns8250 drivers provide their own baud rate generator.

Please reformat the commit message according to the FreeBSD style.

Tue, Nov 17, 3:57 PM
mmel accepted D61610: uart: Factor out the ns8250 baud rate generator code.

Please reformat the commit message according to the FreeBSD style.

Tue, Nov 17, 3:57 PM
mmel accepted D61620: uart: Add a flags field to struct uart_bas.

Please reformat the commit message according to the FreeBSD style.

Tue, Nov 17, 3:56 PM

Mon, Nov 16

mmel added a comment to D61611: uart: Let ns8250 drivers provide their own baud rate generator.
In D61611#1411961, @hayzam_gmail.com wrote:

Yes, that's better than the extra argument. One question: ns8250_get_divisor()
only gets the bas, so outside probe should it reach the hooks with __containerof()
on the softc, or would you rather keep a pointer in the bas (e.g. the existing driver1 field)?

Mon, Nov 16, 12:37 PM
mmel added a comment to D61610: uart: Factor out the ns8250 baud rate generator code.

rest is OK for me

Mon, Nov 16, 12:07 PM
mmel added a comment to D61611: uart: Let ns8250 drivers provide their own baud rate generator.

Instead of adding get_divisor() to lots of functions, can we use the following approach?

Mon, Nov 16, 11:36 AM

Sun, Nov 15

mmel added a comment to D61191: uart: Add MediaTek UART driver.
In D61191#1411524, @hayzam_gmail.com wrote:

Thanks for looking. To make sure I fix the right thing: do you mean the clock handling in uart_dev_mtk.c, or the clock controllers in D61187-D61190 as well?

Only UART, clocks should be discussed in the appropriate reviews. However, I am unable to multitask at this time.

Sun, Nov 15, 4:31 PM
mmel added a comment to D61191: uart: Add MediaTek UART driver.

Sorry, but the whole code relating to clocks is wrong. Why can't you use the standard functions provided by the clk framework? I don't want to continue until we clarify this area.

Sun, Nov 15, 3:34 PM

Wed, Nov 4

mmel accepted D61173: kobj: Avoid initializing pointer from boolean value.

Oh, it was a leftover from an earlier version of the struct kobj layout that I forgot to remove. Thanks for fix.

Wed, Nov 4, 4:34 AM

Tue, Nov 3

mmel committed rGe495998e7c6d: FDT, clk_fixed: add gated-fixed-clock support and deferred initialization.
Tue, Nov 3, 9:34 AM
mmel closed D58103: FDT, clk_fixed: add gated-fixed-clock support and deferred initialization.
Tue, Nov 3, 9:34 AM

Oct 30 2026

mmel added a comment to D61024: mmc: Add a power-up settling delay in mmc_fdt_set_power().

I don't understand why we need this. We already have a delay (2ms) at the right place, at the end of the mmc_power_up(() function. The MMC/SD/SDIO specification requires 1 ms or 64 clock periods (+10 for stabilisation), thus totalling 0.2 ms, after power line is in range(2.7 - 3.3V) Are you sure that the regulators on the given board have the correct startup ramp constant defined?

Oct 30 2026, 5:30 PM

Oct 29 2026

mmel committed rGffcd78861eda: fdt: Support SCMI shared memory under reserved-memory nodes.
Oct 29 2026, 8:42 AM

Oct 20 2026

mmel accepted D60892: clk: rockchip: rk3568: Select the eMMC core clock by rate.
Oct 20 2026, 11:12 AM
mmel accepted D60893: sdhci: rockchip: rk3568: Fix the eMMC card clock.
Oct 20 2026, 11:11 AM
mmel accepted D60890: clk: rockchip: Add a mux flag to select the closest parent.
Oct 20 2026, 11:10 AM
mmel added inline comments to D60888: dwmmc: Add HS200 support.
Oct 20 2026, 11:08 AM
mmel added a comment to D60885: sdhci: Add generic HS200 tuning and clock fixes.

Unfortunately, I know very little about MMC, so I'm not the right person to review this.

Oct 20 2026, 11:01 AM
mmel added inline comments to D60890: clk: rockchip: Add a mux flag to select the closest parent.
Oct 20 2026, 10:47 AM
mmel accepted D60887: clk: rockchip: rk3328: Add the MMC sample and drive clocks.
Oct 20 2026, 10:10 AM
mmel accepted D60886: clk: rockchip: Add the MMC phase clock.
Oct 20 2026, 10:09 AM
mmel accepted D60889: sdhci: rockchip: Enable HS200 on the RK3399.
Oct 20 2026, 9:51 AM
mmel accepted D60883: clk: Add a clknode method to get and set the phase.
Oct 20 2026, 9:49 AM
mmel added inline comments to D60888: dwmmc: Add HS200 support.
Oct 20 2026, 9:46 AM
mmel added inline comments to D60889: sdhci: rockchip: Enable HS200 on the RK3399.
Oct 20 2026, 9:19 AM
mmel added a comment to D60882: [PATCH 7/7] aw_gpio: report pinctrl configuration failures.

otherwise OK

Oct 20 2026, 8:49 AM · arm64
mmel added inline comments to D60881: [PATCH 6/7] aw_pwm: implement pwmbus_channel_set_flags/get_flags.
Oct 20 2026, 8:46 AM · arm64

Oct 19 2026

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

Please take this as an incomplete 'first look' review.

Oct 19 2026, 7:54 PM · arm64

Oct 18 2026

mmel added inline comments to D60802: [PATCH 4/7] aw_mmc: recover a clock update stuck behind an unsolicited data transfer.
Oct 18 2026, 7:43 AM · arm64

Oct 11 2026

mmel added a comment to D59124: arm/ti: attach EDMA3 against the split device tree binding.

Yes, this is definitely a step in the right direction.

Oct 11 2026, 5:41 AM · ARM

Oct 4 2026

mmel added a comment to D46723: update TI clocks.

imho, this is a complete mess with no concept.
At the very least, why do you need these tables at all? What's missing from the DT?

Oct 4 2026, 7:49 AM
mmel added a comment to D59124: arm/ti: attach EDMA3 against the split device tree binding.

I'm sorry, but how does this work? There are multiple instances of 'ti_edma3tc' in the device tree (DT), so which one is stored in the single global softc?

Oct 4 2026, 7:15 AM · ARM

Oct 2 2026

mmel added a comment to D60206: TI AM335x: ti_sysc enable/disable specific clocks.

The clock property is located in the parent node/driver because the parent node provides this clock for all its children. The children have no individual gate functionality, meaning the parent driver must enable the clock for them.

Oct 2 2026, 10:32 AM

Oct 1 2026

mmel added a reviewer for D46703: Add AM335X config file: mmel.
Oct 1 2026, 5:23 PM · ARM
mmel accepted D60201: TI AM335x: ti_sysc simplebus updates.

Sorry again. Would it not be better to connect the TI back to the tinderbox/universe?

Oct 1 2026, 4:32 PM
mmel accepted D60180: TI AM335x: am335x_pwmss fix.

oups, my mistake, sorry

Oct 1 2026, 4:59 AM

Sep 29 2026

mmel accepted D59191: dwc(4): support Synopsys IP version 4 and 5.

perfect, thanks.

Sep 29 2026, 5:29 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?

Sep 29 2026, 2:36 PM · arm64
mmel added a comment to D59191: dwc(4): support Synopsys IP version 4 and 5.

The IFCAP_VLAN_MTU indicates that the hardware can receive and transmit packets of up to 1504 bytes in length, so nothing more is necessary.
So, the only thing missing is the IPv6 CSUM (but it is advertised)

Sep 29 2026, 1:35 PM

Sep 28 2026

mmel requested changes to D60066: sff: add a shared EEPROM read helper and build sff(4) as a module.

This is another gross hack. In theory, we could add read and write functions to this device to access EEPROM context. However, publishing raw EEPROM context outside of this device context would break all layering rules and is therefore nonsense.

Sep 28 2026, 8:25 AM
mmel added a comment to D60060: iicmux: enumerate ACPI child channels symmetrically with FDT.

This is pure hack, imho. The ACPI mux, buses and their devices must be enumerated in exactly the same way as in the FDT case.

Sep 28 2026, 6:18 AM · drivers, ARM

Sep 26 2026

mmel added a comment to D59191: dwc(4): support Synopsys IP version 4 and 5.

The driver advertises the following: IFCAP_VLAN_MTU, IFCAP_HWCSUM and IFCAP_HWCSUM_IPV6. What happens if the user enables one of these? I only see that IFCAP_RXCSUM is implemented, albeit probably only partially. In all other cases, the driver either emits an invalid packet, is unable to receive a valid packet, or it panics.

Sep 26 2026, 11:03 AM
mmel committed rGe2d42b0e6cc2: ofw: Convert simplebus to device_get_softc_class()..
Sep 26 2026, 8:31 AM
mmel committed rG12c300412946: dpaa2: Don't return simplebus devinfo for a non-simplebus child.
Sep 26 2026, 8:31 AM
mmel closed D59837: ofw: Convert simplebus to device_get_softc_class()..
Sep 26 2026, 8:31 AM
mmel closed D59836: dpaa2: Don't return simplebus devinfo for a non-simplebus child.
Sep 26 2026, 8:31 AM

Sep 21 2026

mmel accepted D59813: riscv intc: convert to a bus.
Sep 21 2026, 7:52 PM
mmel added a comment to D59650: trap_cfi(9): introduce arm implementation.

I forgot about it yesterday. At worst, you can use .cfi_escape + DW_CFA_val_expression to select proper LR and SP directly in debugger.

Sep 21 2026, 6:37 AM

Sep 20 2026

mmel added a comment to D59813: riscv intc: convert to a bus.

You're definitely right, from an INTRNG point of view. Thanks.

Sep 20 2026, 8:40 AM
mmel added a comment to D59650: trap_cfi(9): introduce arm implementation.

Of course, I don't know anything about annotating the trap frame.
However, adding instructions to the absolutely hot path(s) in the system to fix the debugger doesn't seem like a good idea to me.

Sep 20 2026, 8:10 AM

Sep 19 2026

mmel committed rG4680109c6bc4: ARMADA 8040: Adapt ICU driver to updated device tree..
Sep 19 2026, 8:52 AM
mmel added reviewers for D59837: ofw: Convert simplebus to device_get_softc_class().: adrian, jhibbits, dsl.
Sep 19 2026, 8:17 AM
mmel added a reviewer for D59836: dpaa2: Don't return simplebus devinfo for a non-simplebus child: dsl.
Sep 19 2026, 8:14 AM
mmel requested review of D59837: ofw: Convert simplebus to device_get_softc_class()..
Sep 19 2026, 8:04 AM
mmel requested review of D59836: dpaa2: Don't return simplebus devinfo for a non-simplebus child.
Sep 19 2026, 8:04 AM

Sep 16 2026

mmel added inline comments to D59191: dwc(4): support Synopsys IP version 4 and 5.
Sep 16 2026, 9:35 AM
mmel added a comment to D59191: dwc(4): support Synopsys IP version 4 and 5.

I still have a personal problem with ops. It looks too fine-grained to me, but this can be solved with the following commit if we find it necessary.

Sep 16 2026, 9:14 AM

Sep 11 2026

mmel committed rG477c594d9063: kobj: allow multiple inheritance with per-class softc.
Sep 11 2026, 2:10 PM
mmel closed D59115: kobj: allow multiple inheritance with per-class softc.
Sep 11 2026, 2:10 PM

Sep 6 2026

mmel added inline comments to D59115: kobj: allow multiple inheritance with per-class softc.
Sep 6 2026, 5:47 PM
mmel updated the diff for D59115: kobj: allow multiple inheritance with per-class softc.

Address objections.

Sep 6 2026, 5:39 PM

Sep 1 2026

mmel updated the summary of D59115: kobj: allow multiple inheritance with per-class softc.
Sep 1 2026, 10:00 AM