Page MenuHomeFreeBSD

jsihv_gmx.com (Jari Sihvola)
User

Projects

User does not belong to any projects.

User Details

User Since
Dec 11 2023, 8:59 PM (82 w, 6 d)

Recent Activity

Fri, Jul 11

jsihv_gmx.com updated the diff for D43034: jh7110_gpio: Add StarFive JH7110 GPIO controller driver.

This small update includes the proposed smaller changes.

Fri, Jul 11, 9:08 PM

Thu, Jul 10

jsihv_gmx.com added a comment to D47919: Add StarFive JH7110's PCIE controller driver.

I tested now with a revised version of the GPIO driver (submitted to this site few days ago) and U-boot which doesn't use its PCIE driver and the problem (PCIB0 not getting the link) does not show up anymore. Probably a mistake in GPIO driver's IO methods had caused the issue which I had described as a U-boot dependency. This PCIE driver's IO methods were much more carefully tested.

Thu, Jul 10, 3:35 PM

Tue, Jul 8

jsihv_gmx.com updated the diff for D43034: jh7110_gpio: Add StarFive JH7110 GPIO controller driver.

Revised and expanded version of the driver. Now contains methods getcaps, getname, toggle and pad configuration RW in setflags.

Tue, Jul 8, 12:37 PM

Wed, Jun 25

jsihv_gmx.com updated the summary of D43034: jh7110_gpio: Add StarFive JH7110 GPIO controller driver.
Wed, Jun 25, 1:30 PM

Apr 30 2025

jsihv_gmx.com accepted D50074: mccomphy: add support for YT8531.
Apr 30 2025, 7:24 PM
jsihv_gmx.com added inline comments to D50074: mccomphy: add support for YT8531.
Apr 30 2025, 2:33 PM

Apr 6 2025

jsihv_gmx.com added a comment to rGe69623451ea6: mccomphy: add support for YT8531.

Behind the link below is a solution which follows an example of vscphy.c. It adds three #if clauses to bypass the FDT code. Functions and return instructions are included also without FDT since they are needed to avoid compiler errors. This solution assumes that functions are only used by computers which use FDT. The devices that use the other Motorcomm YT8511 revision seem to be Rockchip SoCs so the assumption looks safe at this point.
mcommphy.c

Apr 6 2025, 9:03 PM

Apr 3 2025

jsihv_gmx.com added a comment to D47919: Add StarFive JH7110's PCIE controller driver.

More on the dependency issue:
I took my tests later to a point where I discovered that removing any other parts than resets or clocks from u-boot's pcie driver doesn't cause the PCIB0's datalink to disapper (while removing the whole driver causes it). Then removing either clocks or resets causes u-boot to halt after running through the driver code. These outcomes are pretty mysterious because clocks and resets are treated similarly in freebsd's pcie driver and u-boot's driver. Could they nevertheless cause the dependency? Next step might be to investigate if clock rates appear similar for both drivers. But I'm not sure if this is worth the time.

Apr 3 2025, 2:02 PM
jsihv_gmx.com added a comment to D45600: Add StarFive JH7110's Ethernet (eqos & mcommphy modifications, a new board specific file).

(I tried to comment earlier but I had some hassle)

Apr 3 2025, 1:10 PM

Feb 11 2025

jsihv_gmx.com requested review of D48943: Add StarFive JH7110 true random number generator driver.
Feb 11 2025, 4:21 PM · riscv

Jan 16 2025

jsihv_gmx.com updated the diff for D47919: Add StarFive JH7110's PCIE controller driver.

This update fixes small issues mentioned in previous comments and removes KVCO adjustments. I also report here about a U-Boot dependency.

Jan 16 2025, 2:04 PM
jsihv_gmx.com added a comment to D47919: Add StarFive JH7110's PCIE controller driver.

I agree with all the comments.

Jan 16 2025, 1:56 PM

Dec 11 2024

jsihv_gmx.com added a comment to D47919: Add StarFive JH7110's PCIE controller driver.

More about the memory allocation issue: It looks now that in pcib_probe_windows() a wrong value is read to "val" variable from register PCIR_PMBASEL_1. I don't suspect a bug in the PCI code anymore. One developer said it's probably related to U-Boot.

Dec 11 2024, 3:58 PM
jsihv_gmx.com added inline comments to D47920: Add StarFive JH7110's STG clocks.
Dec 11 2024, 3:24 PM
jsihv_gmx.com updated the diff for D47920: Add StarFive JH7110's STG clocks.

RF_SHAREABLE removed, clocks rearranged to header file's order

Dec 11 2024, 3:23 PM

Dec 7 2024

jsihv_gmx.com requested review of D47981: Adding StarFive JH7110 sys clocks for STG & PCIE.
Dec 7 2024, 9:19 PM

Dec 6 2024

jsihv_gmx.com updated the diff for D43034: jh7110_gpio: Add StarFive JH7110 GPIO controller driver.

Updating clk.h's path which has been changed during this year and adding this file to files.starfive

Dec 6 2024, 4:23 PM
jsihv_gmx.com updated the diff for D47919: Add StarFive JH7110's PCIE controller driver.

Now adding this file to files.starfive

Dec 6 2024, 3:51 PM
jsihv_gmx.com updated the diff for D47920: Add StarFive JH7110's STG clocks.

Now adding this file to files.starfive

Dec 6 2024, 3:15 PM

Dec 5 2024

jsihv_gmx.com added inline comments to D47920: Add StarFive JH7110's STG clocks.
Dec 5 2024, 11:29 AM
jsihv_gmx.com added inline comments to D47920: Add StarFive JH7110's STG clocks.
Dec 5 2024, 11:26 AM
jsihv_gmx.com updated the diff for D47920: Add StarFive JH7110's STG clocks.

Redundant credits removed, BUS_PASS_ORDER modified

Dec 5 2024, 11:26 AM

Dec 4 2024

jsihv_gmx.com requested review of D47920: Add StarFive JH7110's STG clocks.
Dec 4 2024, 6:21 PM
jsihv_gmx.com requested review of D47919: Add StarFive JH7110's PCIE controller driver.
Dec 4 2024, 6:14 PM

Sep 26 2024

jsihv_gmx.com added a comment to D45600: Add StarFive JH7110's Ethernet (eqos & mcommphy modifications, a new board specific file).

Some of the issues you described are very similar to what I've encountered a couple of months ago when trying to run FreeBSD on a Orange Pi 3B, sometimes the interface would restart which would lead to an inconsistent state on the TX/RX ring descriptors on if_eqos, you can try to run with my patch too.

Sep 26 2024, 7:49 AM

Jun 21 2024

jsihv_gmx.com added a comment to D45600: Add StarFive JH7110's Ethernet (eqos & mcommphy modifications, a new board specific file).

I investigated the LOR (lock order reversal) issue further by temporarily removing eqos locks entirely. Witness still keeps on talking about eqos lock, so it possibly rightly notices a connection between the eqos driver and callout API linked to its operations. Debugger's lock commands were pretty uninformative but by using printfs I became pretty sure the lock really is located in softclock (callout API) code (while the other lock involved in LOR is in the generic clock code, clk.c).

Jun 21 2024, 7:30 AM

Jun 17 2024

jsihv_gmx.com added a watcher for riscv: jsihv_gmx.com.
Jun 17 2024, 5:41 PM

Jun 16 2024

jsihv_gmx.com updated the diff for D45600: Add StarFive JH7110's Ethernet (eqos & mcommphy modifications, a new board specific file).

Now with the full context and without style corrections for if_eqos.c

Jun 16 2024, 9:43 PM

Jun 15 2024

jsihv_gmx.com requested review of D45600: Add StarFive JH7110's Ethernet (eqos & mcommphy modifications, a new board specific file).
Jun 15 2024, 9:29 PM

Apr 29 2024

jsihv_gmx.com added inline comments to D43037: jh7110_clkgen: Add StarFive JH7110 clock generator driver.
Apr 29 2024, 3:25 PM
jsihv_gmx.com updated the diff for D43037: jh7110_clkgen: Add StarFive JH7110 clock generator driver.

Now the io_assign() function which was used by reset operations is optimized away within the framework of existing driver classes. At this point I don't see a reason to create more classes.

Apr 29 2024, 12:44 PM

Apr 25 2024

jsihv_gmx.com updated the diff for D43037: jh7110_clkgen: Add StarFive JH7110 clock generator driver.

This update fixes smaller issues. The proposal to restructure the reset code by creating a new base class is left for later.

Apr 25 2024, 11:54 AM
jsihv_gmx.com added inline comments to D43037: jh7110_clkgen: Add StarFive JH7110 clock generator driver.
Apr 25 2024, 11:51 AM

Apr 22 2024

jsihv_gmx.com updated the diff for D43037: jh7110_clkgen: Add StarFive JH7110 clock generator driver.

This update includes small changes that were proposed. See comments for the discussion about a new header file and having more static arrays.

Apr 22 2024, 1:02 PM
jsihv_gmx.com added inline comments to D43037: jh7110_clkgen: Add StarFive JH7110 clock generator driver.
Apr 22 2024, 1:01 PM

Mar 9 2024

jsihv_gmx.com updated the diff for D44026: JH7110 MMC driver.

doing it like it should be done

Mar 9 2024, 10:54 PM
jsihv_gmx.com added inline comments to D44026: JH7110 MMC driver.
Mar 9 2024, 10:53 PM

Mar 8 2024

jsihv_gmx.com updated the diff for D43037: jh7110_clkgen: Add StarFive JH7110 clock generator driver.

mhorne's improvements for jh7110_clk_pll.c and files.starfive added
(note: some lines in jh7110_clk_pll.c are over 80 chars)

Mar 8 2024, 11:28 AM

Mar 7 2024

jsihv_gmx.com added inline comments to D44026: JH7110 MMC driver.
Mar 7 2024, 6:35 PM

Mar 1 2024

jsihv_gmx.com updated the diff for D43037: jh7110_clkgen: Add StarFive JH7110 clock generator driver.

This patch update fixes style issues, improves module load scheduling, removes reset timeout polling and UART clk special handling, adds PLL macros. I welcome yet discussion about these issues. I was pretty undecided about reset & UART.

Mar 1 2024, 11:37 AM

Feb 29 2024

jsihv_gmx.com updated the diff for D44026: JH7110 MMC driver.

Fixing obvious style issues

Feb 29 2024, 2:40 PM

Feb 28 2024

jsihv_gmx.com added a comment to D43037: jh7110_clkgen: Add StarFive JH7110 clock generator driver.

Okay, I had still few things to learn about formatting (some things were seen wrongly here because I had relied excessively on using spaces. I will stop that). I agree with almost every formatting related comment and I haven't answered those ones.

Feb 28 2024, 3:55 PM

Feb 22 2024

jsihv_gmx.com added a reviewer for D44026: JH7110 MMC driver: riscv.
Feb 22 2024, 9:12 PM
jsihv_gmx.com requested review of D44026: JH7110 MMC driver.
Feb 22 2024, 8:41 PM
jsihv_gmx.com updated the diff for D43037: jh7110_clkgen: Add StarFive JH7110 clock generator driver.

Restructuring code to the device tree used in Linux, now including separate devices and reset driver's methods.

Feb 22 2024, 7:52 PM
jsihv_gmx.com updated the diff for D43034: jh7110_gpio: Add StarFive JH7110 GPIO controller driver.

Switching to another device tree. Makes no really difference for this file.

Feb 22 2024, 2:53 PM
jsihv_gmx.com abandoned D43036: jh7110_reset: Add StarFive JH7110 reset driver.

When switching to another device tree reset driver will be merged with clockgen driver

Feb 22 2024, 9:36 AM

Jan 31 2024

jsihv_gmx.com planned changes to D43034: jh7110_gpio: Add StarFive JH7110 GPIO controller driver.

This code will be adjusted to support a device tree supplied with U-Boot

Jan 31 2024, 7:33 PM
jsihv_gmx.com planned changes to D43036: jh7110_reset: Add StarFive JH7110 reset driver.

This code will be adjusted to support a device tree supplied with U-Boot (will be probably merged to clkgen code)

Jan 31 2024, 7:33 PM
jsihv_gmx.com planned changes to D43037: jh7110_clkgen: Add StarFive JH7110 clock generator driver.

This code will be adjusted to support a device tree supplied with U-Boot

Jan 31 2024, 7:32 PM

Dec 14 2023

jsihv_gmx.com updated the diff for D43037: jh7110_clkgen: Add StarFive JH7110 clock generator driver.

Fixing style issues

Dec 14 2023, 10:24 PM
jsihv_gmx.com updated the diff for D43036: jh7110_reset: Add StarFive JH7110 reset driver.

Fixing style issues

Dec 14 2023, 10:12 PM
jsihv_gmx.com updated the diff for D43034: jh7110_gpio: Add StarFive JH7110 GPIO controller driver.

I blew up the previous fix. Now fixing the (style) fix.

Dec 14 2023, 9:58 PM
jsihv_gmx.com updated the diff for D43034: jh7110_gpio: Add StarFive JH7110 GPIO controller driver.
  • fixing style issues
Dec 14 2023, 9:30 PM

Dec 13 2023

jsihv_gmx.com requested review of D43037: jh7110_clkgen: Add StarFive JH7110 clock generator driver.
Dec 13 2023, 4:47 PM
jsihv_gmx.com requested review of D43036: jh7110_reset: Add StarFive JH7110 reset driver.
Dec 13 2023, 4:29 PM
jsihv_gmx.com requested review of D43034: jh7110_gpio: Add StarFive JH7110 GPIO controller driver.
Dec 13 2023, 4:14 PM