Page MenuHomeFreeBSD
Feed Advanced Search

Feb 9 2024

pldrouin_gmail.com updated the diff for D43811: Revamping the existing Vybrid I2C Controller Driver to Include Support for the QorIQ LX2160A Controller.
Feb 9 2024, 10:09 PM · arm64, ARM
pldrouin_gmail.com requested review of D43811: Revamping the existing Vybrid I2C Controller Driver to Include Support for the QorIQ LX2160A Controller.
Feb 9 2024, 10:08 PM · arm64, ARM

Feb 7 2024

pldrouin_gmail.com added a comment to D43746: Adding Support for QorIQ LX2160A I2C Controller.

Note: lx2160a_i2c_fdt should not be loaded along with vf_i2c, as they share the same FDT ID. What is the best way to handle this?

Can you merge the two drivers?

Feb 7 2024, 1:47 PM · arm64, ARM
pldrouin_gmail.com updated subscribers of D43746: Adding Support for QorIQ LX2160A I2C Controller.
Feb 7 2024, 1:51 AM · arm64, ARM
pldrouin_gmail.com added a comment to D43746: Adding Support for QorIQ LX2160A I2C Controller.

The main issue I have for the FDT driver, is the following couple of lines in vf_i2c.c:

Feb 7 2024, 1:46 AM · arm64, ARM
pldrouin_gmail.com added a comment to D43746: Adding Support for QorIQ LX2160A I2C Controller.

So I looked at the VFXXX controller reference manual (https://www.nxp.com/docs/en/reference-manual/VFXXXRM.pdf), and the specs for the I2C controller look almost identical to the ones for the LX2160A I2C controller, except mostly for the clock divider table. Based on this information, I do not see why the new implementation could not work for the VFXXX controller. I would have to reintroduce the code by @dgr_semihalf.com to do the clock divider calculations for the devices that differ from the LX2160A though.

Feb 7 2024, 1:25 AM · arm64, ARM

Feb 6 2024

pldrouin_gmail.com added a comment to D43746: Adding Support for QorIQ LX2160A I2C Controller.

Note: lx2160a_i2c_fdt should not be loaded along with vf_i2c, as they share the same FDT ID. What is the best way to handle this?

Can you merge the two drivers?

Feb 6 2024, 9:38 PM · arm64, ARM
pldrouin_gmail.com updated the diff for D43746: Adding Support for QorIQ LX2160A I2C Controller.

Fixing /sys/arm64/conf/std.nxp and sys/conf/files.arm64

Feb 6 2024, 9:10 PM · arm64, ARM
andrew added a comment to D43746: Adding Support for QorIQ LX2160A I2C Controller.

Note: lx2160a_i2c_fdt should not be loaded along with vf_i2c, as they share the same FDT ID. What is the best way to handle this?

Feb 6 2024, 9:05 PM · arm64, ARM
pldrouin_gmail.com added a comment to D43746: Adding Support for QorIQ LX2160A I2C Controller.

Last diff is broken. Will investigate...

Feb 6 2024, 8:53 PM · arm64, ARM
pldrouin_gmail.com updated the diff for D43746: Adding Support for QorIQ LX2160A I2C Controller.

Adding devices to sys/arm64/conf/std.nxp . The driver should work for LX2160A, LX2120A, LX2080A, LS1046A and LS1026A based on their respective reference manuals. The ACPI driver could be included in GENERIC. However as previously mentioned, I think including the FDT version along with vf_i2c could be problematic due to them sharing the same ID, so I commented out the lx2160a_i2c_fdt device.

Feb 6 2024, 8:51 PM · arm64, ARM
markmi_dsl-only.net added a comment to D43746: Adding Support for QorIQ LX2160A I2C Controller.

Revised version with all requested changes

Feb 6 2024, 7:12 PM · arm64, ARM
pldrouin_gmail.com updated the diff for D43746: Adding Support for QorIQ LX2160A I2C Controller.

Fixing a few typos in debug print statements. Adding also one debug print statement.

Feb 6 2024, 7:06 PM · arm64, ARM
pldrouin_gmail.com updated the diff for D43746: Adding Support for QorIQ LX2160A I2C Controller.

Revised version with all requested changes

Feb 6 2024, 5:06 PM · arm64, ARM
manu requested changes to D43746: Adding Support for QorIQ LX2160A I2C Controller.

Just basic style(9) review.
Also you should add the devices in sys/arm64/conf/std.nxp

Feb 6 2024, 4:44 PM · arm64, ARM
pldrouin_gmail.com added a comment to D43746: Adding Support for QorIQ LX2160A I2C Controller.

I think this is now ready for review.

Feb 6 2024, 12:40 PM · arm64, ARM

Feb 5 2024

pldrouin_gmail.com updated the diff for D43746: Adding Support for QorIQ LX2160A I2C Controller.

modules/Makefile: Moving _lx2160a_i2c_fdt inside the nested condition on OPT_FDT

Feb 5 2024, 9:33 PM · arm64, ARM
pldrouin_gmail.com updated the diff for D43746: Adding Support for QorIQ LX2160A I2C Controller.

modules/Makefile: The modules are now only enabled for arm64/aarch64

Feb 5 2024, 9:07 PM · arm64, ARM
pldrouin_gmail.com updated the diff for D43746: Adding Support for QorIQ LX2160A I2C Controller.

Removing the verification of IBSR_IBB in i2c_stop. It was most likely potentially problematic and should have not been used.

Feb 5 2024, 5:23 PM · arm64, ARM
pldrouin_gmail.com updated the diff for D43746: Adding Support for QorIQ LX2160A I2C Controller.

Adding blank line to copyright notice

Feb 5 2024, 5:05 PM · arm64, ARM
markmi_dsl-only.net added a comment to D43746: Adding Support for QorIQ LX2160A I2C Controller.

The templates shown at https://www.freebsd.org/internal/software-license/ have a (nearly) blank line after the Copyright . . . line:

* Copyright (c) [year] [your name]
*
* Redistribution and use in source and binary forms, with or without

In general it is a good place to look at for comparisons.

Feb 5 2024, 5:01 PM · arm64, ARM
pldrouin_gmail.com updated the diff for D43746: Adding Support for QorIQ LX2160A I2C Controller.

Updating the copyright notice as recommended.

Feb 5 2024, 4:44 PM · arm64, ARM
markmi_dsl-only.net added a comment to D43746: Adding Support for QorIQ LX2160A I2C Controller.

Avoid use of "All rights reserved." in copyright notices? https://www.freebsd.org/internal/software-license/ reports:

With the ratification of the Berne Convention in 2000, it became obsolete. As such, the FreeBSD project recommends that new code omit the phrase and encourages existing copyright holders to remove it. In 2018, the project updated its templates to remove it.
Feb 5 2024, 4:37 PM · arm64, ARM
pldrouin_gmail.com updated the diff for D43746: Adding Support for QorIQ LX2160A I2C Controller.

-The logic in wait_for_icf was not quite right. It is now fixed.

Feb 5 2024, 4:00 PM · arm64, ARM
pldrouin_gmail.com updated the diff for D43746: Adding Support for QorIQ LX2160A I2C Controller.

Removing unnecessary small delay in i2c_stop. It had been introduced earlier as an attempt to fix the issue which was resolved by using wait_for_nibb in i2c_start.

Feb 5 2024, 3:46 PM · arm64, ARM
pldrouin_gmail.com updated the diff for D43746: Adding Support for QorIQ LX2160A I2C Controller.

Removing an unused define in lx2160a_i2c.h

Feb 5 2024, 3:33 PM · arm64, ARM
pldrouin_gmail.com updated the test plan for D43746: Adding Support for QorIQ LX2160A I2C Controller.
Feb 5 2024, 3:28 PM · arm64, ARM
pldrouin_gmail.com updated the test plan for D43746: Adding Support for QorIQ LX2160A I2C Controller.
Feb 5 2024, 2:36 PM · arm64, ARM
pldrouin_gmail.com updated the diff for D43746: Adding Support for QorIQ LX2160A I2C Controller.

-Moved the source files to sys/dev/iicbus/controller/qoriq
-Removed lx2160a_common.h
-Renamed the driver modules to separate names
-Now using wait_for_nibb in i2c_start so it works reliably after a reset
-Added the drivers to files.arm64
-Updated the copyright notice, and added credits.

Feb 5 2024, 2:32 PM · arm64, ARM
pldrouin_gmail.com added a comment to D43746: Adding Support for QorIQ LX2160A I2C Controller.

Thanks, I will make these changes. I also have to tweak some delay that should apply when a start follows a reset.

Feb 5 2024, 1:04 PM · arm64, ARM
manu requested changes to D43746: Adding Support for QorIQ LX2160A I2C Controller.
Feb 5 2024, 6:45 AM · arm64, ARM
manu added a comment to D43746: Adding Support for QorIQ LX2160A I2C Controller.

We have a new-ish directory sys/dev/iicbus/controller/ for i2c controllers, it should go there.

Feb 5 2024, 6:45 AM · arm64, ARM
pldrouin_gmail.com added a comment to D43746: Adding Support for QorIQ LX2160A I2C Controller.

Ok I have found a few things to change. It looks like some extra delays might be required when the module is not run in DEBUG mode.

Feb 5 2024, 4:47 AM · arm64, ARM
pldrouin_gmail.com added a comment to D43746: Adding Support for QorIQ LX2160A I2C Controller.

I currently have it configured as a pair of modules. One weird thing I noticed is that I could kldload and kldunload them just fine when I was building the modules manually and before I included them in sys/modules/Makefile and I rebuilt the kernel. After adding them to sys/modules/Makefile, rebuilding and installing the kernel, I can only load them through /boot/loader.conf, otherwise it complains the modules are already loaded in the kernel, although kldstat -v and grep -R lx2160a_i2c /boot/kernel say otherwise. How can this be fixed? Thanks

Feb 5 2024, 4:13 AM · arm64, ARM
pldrouin_gmail.com updated the test plan for D43746: Adding Support for QorIQ LX2160A I2C Controller.
Feb 5 2024, 4:02 AM · arm64, ARM
pldrouin_gmail.com updated the test plan for D43746: Adding Support for QorIQ LX2160A I2C Controller.
Feb 5 2024, 4:01 AM · arm64, ARM
pldrouin_gmail.com requested review of D43746: Adding Support for QorIQ LX2160A I2C Controller.
Feb 5 2024, 4:00 AM · arm64, ARM

Feb 4 2024

pldrouin_gmail.com added a comment to D24917: Add ACPI attachment for the Vybrid VF610 I2C controller.

I wrote a FDT/ACPI split driver for the LX2160A I2C controller based on the work started by Val, and the LX2160A I2C controller documentation. It deviates significantly from the Vybrid driver as the way the original driver was handling the controller's registers was not quite compatible with the LX2160A I2C controller. Should I start a new diff with my driver and link to it from here? It seems to work well so far based on the (limited) tests I made. I can scan the bus and get the correct output. I am able to query the MUX's register and the fan controller's ID.

Feb 4 2024, 6:30 PM · arm64, ARM

Jan 20 2024

fred_thegalacticzoo.com added a comment to D43399: VCHIQ HDMI AUDIO 64 bits BCM2835, BCM2711 Raspberry Pi 4B; correct minor compile errors. bcm2835_audio.c.

Is this patch based on the three preceding patches? Were there compilation warnings (or errors) encountered when applying those three patches, leading to the creation of this patch to address those issues?

image.png (128×848 px, 36 KB)

Happy to have your testing and participation in getting Marcos VCHIQ HDMI audio sound patch reviewed. I post many URL links below to share ideas for further reading and learning.. YES, this is first a FreeBSD code review and not related to other BSD and URL links. So the point is to specifically comment about using FreeBSD source code. Sorry for the overload, but I wanted a good post to answer your question and share links for the background information.

Jan 20 2024, 12:22 AM · arm64, ARM

Jan 18 2024

bses30074_gmail.com added a comment to D43399: VCHIQ HDMI AUDIO 64 bits BCM2835, BCM2711 Raspberry Pi 4B; correct minor compile errors. bcm2835_audio.c.

Is this patch based on the three preceding patches? Were there compilation warnings (or errors) encountered when applying those three patches, leading to the creation of this patch to address those issues?

image.png (128×848 px, 36 KB)

Jan 18 2024, 9:35 PM · arm64, ARM
markmi_dsl-only.net added a comment to D24917: Add ACPI attachment for the Vybrid VF610 I2C controller.

Looks like this needs to wait until there's some way to get the clock without devicetree (I guess Linux runs with fdt+acpi both to make it work..)

Jan 18 2024, 8:11 PM · arm64, ARM

Jan 17 2024

Herald added a reviewer for D24917: Add ACPI attachment for the Vybrid VF610 I2C controller: andrew.

FYI: https://uefi.org/specs/ACPI/6.5/19_ASL_Reference.html#clock-input-resource-descriptor-macro reports:

Jan 17 2024, 4:15 AM · arm64, ARM

Jan 13 2024

fred_thegalacticzoo.com updated the diff for D43399: VCHIQ HDMI AUDIO 64 bits BCM2835, BCM2711 Raspberry Pi 4B; correct minor compile errors. bcm2835_audio.c.

Concatenated 7 git diff -u patch files into one_large_vchiq_freebsd_patch_file.patch and updated this diff. I see that the FreeBSD (src) does not yet contain Marcos Devesas Campos VCHIQ revision D378378 https://reviews.freebsd.org/D37878. So make a decision to use or not use that code before incorporating this D43399 revision.

Jan 13 2024, 11:06 PM · arm64, ARM

Jan 11 2024

fred_thegalacticzoo.com added a comment to D43399: VCHIQ HDMI AUDIO 64 bits BCM2835, BCM2711 Raspberry Pi 4B; correct minor compile errors. bcm2835_audio.c.

I do not know how to add the 5 other patch files to be included in this diff comparision. Seems like 132598, got over written with this "update diff" instead of being added. Time for me to read and study hand book. okay

Jan 11 2024, 10:55 AM · arm64, ARM
fred_thegalacticzoo.com updated the diff for D43399: VCHIQ HDMI AUDIO 64 bits BCM2835, BCM2711 Raspberry Pi 4B; correct minor compile errors. bcm2835_audio.c.

add file vchiq_2835_arm_.c.patch to diff section

Jan 11 2024, 10:48 AM · arm64, ARM
fred_thegalacticzoo.com requested review of D43399: VCHIQ HDMI AUDIO 64 bits BCM2835, BCM2711 Raspberry Pi 4B; correct minor compile errors. bcm2835_audio.c.
Jan 11 2024, 10:32 AM · arm64, ARM

Oct 31 2023

rcm added a member for arm64: rcm.
Oct 31 2023, 7:18 PM

Jul 19 2023

christos closed D40337: kinst: port to arm64.
Jul 19 2023, 3:01 PM · arm64, DTrace
christos added inline comments to D40337: kinst: port to arm64.
Jul 19 2023, 2:11 PM · arm64, DTrace
markj accepted D40337: kinst: port to arm64.

Approved.

Jul 19 2023, 1:47 PM · arm64, DTrace

Jul 16 2023

christos updated the diff for D40337: kinst: port to arm64.

Address comments, fix stuff that was also fixed in riscv.

Jul 16 2023, 4:28 PM · arm64, DTrace

Jul 14 2023

markj added inline comments to D40337: kinst: port to arm64.
Jul 14 2023, 2:03 PM · arm64, DTrace

Jul 13 2023

christos updated the summary of D40337: kinst: port to arm64.
Jul 13 2023, 10:11 PM · arm64, DTrace
christos updated the diff for D40337: kinst: port to arm64.

Address Mark's comments. Depends on D40962.

Jul 13 2023, 10:11 PM · arm64, DTrace
markj added inline comments to D40337: kinst: port to arm64.
Jul 13 2023, 6:34 PM · arm64, DTrace
christos added inline comments to D40337: kinst: port to arm64.
Jul 13 2023, 6:12 PM · arm64, DTrace
markj added inline comments to D40337: kinst: port to arm64.
Jul 13 2023, 5:50 PM · arm64, DTrace

Jul 12 2023

christos updated the diff for D40337: kinst: port to arm64.

Disable adr/adrp emulation.

Jul 12 2023, 12:38 PM · arm64, DTrace

Jul 10 2023

christos updated the diff for D40337: kinst: port to arm64.

Use per-probe trampolines. Depends on D40962

Jul 10 2023, 8:42 PM · arm64, DTrace

Jul 7 2023

christos updated the diff for D40337: kinst: port to arm64.

Updated description, still some unsolved bugs, but mostly done.

Jul 7 2023, 5:36 PM · arm64, DTrace

Jul 4 2023

christos updated the diff for D40337: kinst: port to arm64.

WIP.

Jul 4 2023, 9:43 AM · arm64, DTrace

Jul 2 2023

dchagin removed a member for arm64: dchagin.
Jul 2 2023, 11:18 AM

Jun 26 2023

dchagin closed D40277: arm64: Add unwind information to _start.

https://reviews.freebsd.org/D40623

Jun 26 2023, 12:19 PM · arm64

Jun 20 2023

emaste updated subscribers of D40277: arm64: Add unwind information to _start.
Jun 20 2023, 1:56 PM · arm64
dchagin added inline comments to D40277: arm64: Add unwind information to _start.
Jun 20 2023, 1:02 PM · arm64
emaste added inline comments to D40277: arm64: Add unwind information to _start.
Jun 20 2023, 12:37 PM · arm64
emaste accepted D40277: arm64: Add unwind information to _start.
Jun 20 2023, 12:36 PM · arm64
dchagin updated the summary of D40277: arm64: Add unwind information to _start.
Jun 20 2023, 12:33 PM · arm64

Jun 17 2023

dchagin added a comment to D40277: arm64: Add unwind information to _start.
In D40277#924038, @imp wrote:

I thought the kernel zeroed these... but I have no objections since my aarch64 fu is weak

Jun 17 2023, 4:35 PM · arm64
imp added a comment to D40277: arm64: Add unwind information to _start.

I thought the kernel zeroed these... but I have no objections since my aarch64 fu is weak

Jun 17 2023, 2:39 PM · arm64
dchagin added a comment to D40277: arm64: Add unwind information to _start.

I plan to commit this soon, any objections?

Jun 17 2023, 10:13 AM · arm64

May 31 2023

christos retitled D40337: kinst: port to arm64 from kinst: port to ARM64 to kinst: port to arm64.
May 31 2023, 8:24 PM · arm64, DTrace
christos updated the diff for D40337: kinst: port to arm64.

Address comments.

May 31 2023, 8:19 PM · arm64, DTrace
christos added inline comments to D40337: kinst: port to arm64.
May 31 2023, 7:56 PM · arm64, DTrace
christos added inline comments to D40337: kinst: port to arm64.
May 31 2023, 6:39 PM · arm64, DTrace
markj added inline comments to D40337: kinst: port to arm64.
May 31 2023, 2:12 PM · arm64, DTrace

May 30 2023

christos updated the summary of D40337: kinst: port to arm64.
May 30 2023, 3:43 PM · arm64, DTrace
christos requested review of D40337: kinst: port to arm64.
May 30 2023, 3:40 PM · arm64, DTrace
dchagin closed D40309: avx_sig: Adapt avx_sig test for Aarch64.
May 30 2023, 8:20 AM · arm64

May 29 2023

kib accepted D40309: avx_sig: Adapt avx_sig test for Aarch64.
May 29 2023, 9:54 AM · arm64

May 28 2023

dchagin updated the diff for D40309: avx_sig: Adapt avx_sig test for Aarch64.

Rebase to D40312

May 28 2023, 10:35 PM · arm64
dchagin added a comment to D40309: avx_sig: Adapt avx_sig test for Aarch64.
In D40309#917796, @kib wrote:

There are no XMM regs on aarch64.

May 28 2023, 5:39 PM · arm64
kib added a comment to D40309: avx_sig: Adapt avx_sig test for Aarch64.

There are no XMM regs on aarch64.

May 28 2023, 4:56 PM · arm64
dchagin added a comment to D40309: avx_sig: Adapt avx_sig test for Aarch64.

For now test succeed on Linux, fails on native and in the Linuxulator

May 28 2023, 12:32 PM · arm64
dchagin added reviewers for D40309: avx_sig: Adapt avx_sig test for Aarch64: kib, arm64.
May 28 2023, 12:29 PM · arm64

May 26 2023

dchagin added a reviewer for D40277: arm64: Add unwind information to _start: arm64.
May 26 2023, 8:42 AM · arm64

Mar 3 2023

zachary.leaf_arm.com added a member for arm64: zachary.leaf_arm.com.
Mar 3 2023, 2:04 PM

Feb 12 2023

dchagin added a member for arm64: dchagin.
Feb 12 2023, 7:36 PM

Jan 12 2023

kevans added a member for arm64: kevans.
Jan 12 2023, 8:04 PM

Oct 14 2022

dsl closed D36638: Initial DPAA2 support.
Oct 14 2022, 8:53 PM · arm64
bz added a comment to D36638: Initial DPAA2 support.

Thanks @andrew ; I came across some of that the other day when I tried to make LINT-FDT compile but I postponed "fixing proper" to after the import. That okay with you?

Oct 14 2022, 2:18 PM · arm64
andrew added inline comments to D36638: Initial DPAA2 support.
Oct 14 2022, 11:39 AM · arm64

Oct 13 2022

dsl updated the diff for D36638: Initial DPAA2 support.
  • dpaa2_mc.c patched to fix LINT-FDT build (discovered and fixed by @bz, thanks!);
  • copyrights of dpaa2_ni_dpkg.h and dpaa2_swc.c updated to include copyright notices from the original files together with the updated SPDX license identifiers.
Oct 13 2022, 7:32 PM · arm64

Oct 11 2022

dsl updated the diff for D36638: Initial DPAA2 support.

Whitespace changes in sys/arm64/conf/std.nxp removed

Oct 11 2022, 9:00 AM · arm64

Oct 10 2022

dsl updated the diff for D36638: Initial DPAA2 support.
  • DPAA2 files were placed between dev/cpufreq and dev/dwc in sys/conf/files.arm64;
  • Copyrights were added to sys/dev/dpaa2/dpaa2_ni_dpkg.h (drivers/net/ethernet/freescale/dpaa2/dpkg.h) and sys/dev/dpaa2/dpaa2_swp.c (drivers/soc/fsl/dpio/qbman-portal.c) as their significant parts were copy-pasted from the Linux drivers.
Oct 10 2022, 8:37 AM · arm64
dsl added inline comments to D36638: Initial DPAA2 support.
Oct 10 2022, 7:08 AM · arm64

Oct 9 2022

bz added inline comments to D36638: Initial DPAA2 support.
Oct 9 2022, 11:33 PM · arm64

Oct 6 2022

dsl updated the diff for D36638: Initial DPAA2 support.

SOC_NXP_LS to lower case

Oct 6 2022, 4:06 PM · arm64

Oct 5 2022

dsl updated the diff for D36638: Initial DPAA2 support.

Obtain DEVICE_PROP_HANDLE properties using new API (as @bz suggested in https://reviews.freebsd.org/D36793#837246)

Oct 5 2022, 7:48 PM · arm64

Sep 30 2022

dsl added inline comments to D36638: Initial DPAA2 support.
Sep 30 2022, 6:43 AM · arm64