Page MenuHomeFreeBSD
Feed Advanced Search

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

Jan 4 2024

oskar.holmlund_ohdata.se requested review of D43321: am335x: ti_adc add possibility to invert x coordinate.
Jan 4 2024, 9:49 PM · ARM
oskar.holmlund_ohdata.se requested review of D43320: DTS: am335x-olimex-som-evb device tree.
Jan 4 2024, 8:32 PM · ARM

Jan 2 2024

oskar.holmlund_ohdata.se added inline comments to D43283: AM335x: Add PWM(9) api to am335x_ecap driver.
Jan 2 2024, 11:31 PM · ARM
oskar.holmlund_ohdata.se added a reviewer for D43280: am335x: am335x_lcd remove backlight code: karels.
Jan 2 2024, 11:22 PM · ARM
oskar.holmlund_ohdata.se requested review of D43283: AM335x: Add PWM(9) api to am335x_ecap driver.
Jan 2 2024, 11:21 PM · ARM
oskar.holmlund_ohdata.se requested review of D43280: am335x: am335x_lcd remove backlight code.
Jan 2 2024, 10:38 PM · ARM

Dec 26 2023

manu added inline comments to D42124: Add pinctrl_single driver.
Dec 26 2023, 8:25 AM · ARM

Dec 25 2023

kevans added inline comments to D42124: Add pinctrl_single driver.
Dec 25 2023, 8:36 PM · ARM
manu updated subscribers of D42124: Add pinctrl_single driver.
Dec 25 2023, 4:58 PM · ARM

Dec 11 2023

allanjude abandoned D41759: arm: Allow in-kernel VFP instructions handling..
Dec 11 2023, 4:19 PM · ARM
allanjude commandeered D41759: arm: Allow in-kernel VFP instructions handling..
Dec 11 2023, 4:19 PM · ARM

Dec 8 2023

markj added a comment to D41759: arm: Allow in-kernel VFP instructions handling..

https://reviews.freebsd.org/D42969 and the rest of the patch series are available for review. They break up this patch into logical commits, plus ensure that we do not erroneously consume an exception if a kernel thread triggers a VFP exception without having entered an FPU section. This lets fpu_kern_enter() work on ARM when a FPU context is supplied by the caller.

Dec 8 2023, 6:05 PM · ARM

Nov 30 2023

oskar.holmlund_ohdata.se added reviewers for D27889: TI SoC rework clk support: karels, to.karlzon_gmail.com.
Nov 30 2023, 10:22 PM · ARM
oskar.holmlund_ohdata.se updated the diff for D27889: TI SoC rework clk support.

Fix up this review to work with DTS import from Linux 6.4

Nov 30 2023, 10:21 PM · ARM
oskar.holmlund_ohdata.se updated the diff for D41888: AM335x: Add ti,clksel driver.

Background why this driver is added:
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/arch/arm/boot/dts/am33xx-clocks.dtsi?h=v6.1.64&id=c2f2646057bcf3f86a75f6a8aa9fbd159a1d4784

Nov 30 2023, 8:52 PM · ARM
oskar.holmlund_ohdata.se added inline comments to D41888: AM335x: Add ti,clksel driver.
Nov 30 2023, 8:47 PM · ARM

Nov 9 2023

kp closed D42445: libc: enable initial-exec (IE) as default thread-local storage model on arm.
Nov 9 2023, 8:24 PM · ARM

Nov 8 2023

oskar.holmlund_ohdata.se added inline comments to D42471: cpufreq_dt: Add interface to support other parse functions for the operating-points table.
Nov 8 2023, 12:22 PM · ARM

Nov 7 2023

karels added inline comments to D42471: cpufreq_dt: Add interface to support other parse functions for the operating-points table.
Nov 7 2023, 10:37 PM · ARM
des added inline comments to D41759: arm: Allow in-kernel VFP instructions handling..
Nov 7 2023, 7:07 PM · ARM

Nov 5 2023

oskar.holmlund_ohdata.se requested review of D42472: cpufreq_dt: Add parse function for operating-points-v2-ti-cpu.
Nov 5 2023, 8:57 PM · ARM
oskar.holmlund_ohdata.se requested review of D42471: cpufreq_dt: Add interface to support other parse functions for the operating-points table.
Nov 5 2023, 8:51 PM · ARM
rcm closed D42415: rtld/arm: fix initial-exec (IE) thread-local storage relocation.

I see you have a reduced test case, would it be possible to turn it into a regression test for in the ld-elf tests?

Nov 5 2023, 1:53 PM · ARM
arichardson added a comment to D42415: rtld/arm: fix initial-exec (IE) thread-local storage relocation.

I see you have a reduced test case, would it be possible to turn it into a regression test for in the ld-elf tests?

Nov 5 2023, 5:45 AM · ARM

Nov 3 2023

kib accepted D42445: libc: enable initial-exec (IE) as default thread-local storage model on arm.
Nov 3 2023, 5:22 AM · ARM
kib accepted D42415: rtld/arm: fix initial-exec (IE) thread-local storage relocation.
Nov 3 2023, 5:22 AM · ARM

Nov 2 2023

rcm updated the diff for D42445: libc: enable initial-exec (IE) as default thread-local storage model on arm.

remove the entire if statement

Nov 2 2023, 3:41 PM · ARM
imp added inline comments to D42445: libc: enable initial-exec (IE) as default thread-local storage model on arm.
Nov 2 2023, 2:36 PM · ARM
rcm requested review of D42445: libc: enable initial-exec (IE) as default thread-local storage model on arm.
Nov 2 2023, 1:52 PM · ARM
rcm added a comment to D42415: rtld/arm: fix initial-exec (IE) thread-local storage relocation.

Thanks for suggestions.

Nov 2 2023, 1:03 PM · ARM
rcm updated the diff for D42415: rtld/arm: fix initial-exec (IE) thread-local storage relocation.
Nov 2 2023, 1:03 PM · ARM
rcm updated the diff for D42415: rtld/arm: fix initial-exec (IE) thread-local storage relocation.

collapse tmp = *where + tmp -> tmp += *where

Nov 2 2023, 1:02 PM · ARM
kib added inline comments to D42415: rtld/arm: fix initial-exec (IE) thread-local storage relocation.
Nov 2 2023, 3:54 AM · ARM

Nov 1 2023

rcm retitled D42415: rtld/arm: fix initial-exec (IE) thread-local storage relocation from rtld/arm: fix thread-local storage relocation to rtld/arm: fix initial-exec (IE) thread-local storage relocation.
Nov 1 2023, 7:59 PM · ARM
rcm added a comment to D42415: rtld/arm: fix initial-exec (IE) thread-local storage relocation.

If IE is fixed then lib/libc/Makefile probably should enable it on arm as a follow-up, which I *think* is the only architecture not covered by that if statement, unless I'm missing something

Nov 1 2023, 7:51 PM · ARM
rcm updated the diff for D42415: rtld/arm: fix initial-exec (IE) thread-local storage relocation.

Ensure we update tmp for dbg output

Nov 1 2023, 7:48 PM · ARM
rcm added inline comments to D42415: rtld/arm: fix initial-exec (IE) thread-local storage relocation.
Nov 1 2023, 7:41 PM · ARM
jrtc27 added inline comments to D42415: rtld/arm: fix initial-exec (IE) thread-local storage relocation.
Nov 1 2023, 7:39 PM · ARM
rcm updated the diff for D42415: rtld/arm: fix initial-exec (IE) thread-local storage relocation.

I have now reduced the diff down to the minimum. Thanks all for your continued comments.

Nov 1 2023, 7:37 PM · ARM
rcm added inline comments to D42415: rtld/arm: fix initial-exec (IE) thread-local storage relocation.
Nov 1 2023, 7:32 PM · ARM
jrtc27 added a comment to D42415: rtld/arm: fix initial-exec (IE) thread-local storage relocation.

If IE is fixed then lib/libc/Makefile probably should enable it on arm as a follow-up, which I *think* is the only architecture not covered by that if statement, unless I'm missing something

Nov 1 2023, 7:15 PM · ARM
jrtc27 added inline comments to D42415: rtld/arm: fix initial-exec (IE) thread-local storage relocation.
Nov 1 2023, 7:13 PM · ARM
rcm updated the diff for D42415: rtld/arm: fix initial-exec (IE) thread-local storage relocation.

I studied what NetBSD is doing here. Here is an updated test program:

Nov 1 2023, 7:10 PM · ARM
rcm added inline comments to D42415: rtld/arm: fix initial-exec (IE) thread-local storage relocation.
Nov 1 2023, 3:55 PM · ARM
rcm added inline comments to D42415: rtld/arm: fix initial-exec (IE) thread-local storage relocation.
Nov 1 2023, 1:25 PM · ARM
andrew added inline comments to D42415: rtld/arm: fix initial-exec (IE) thread-local storage relocation.
Nov 1 2023, 12:31 PM · ARM
kib added a reviewer for D42415: rtld/arm: fix initial-exec (IE) thread-local storage relocation: jrtc27.
Nov 1 2023, 10:48 AM · ARM
kib added inline comments to D42415: rtld/arm: fix initial-exec (IE) thread-local storage relocation.
Nov 1 2023, 10:48 AM · ARM

Oct 31 2023

kp added a reviewer for D42415: rtld/arm: fix initial-exec (IE) thread-local storage relocation: kib.
Oct 31 2023, 8:15 PM · ARM
rcm added a reviewer for D42415: rtld/arm: fix initial-exec (IE) thread-local storage relocation: brd.
Oct 31 2023, 6:53 PM · ARM
rcm requested review of D42415: rtld/arm: fix initial-exec (IE) thread-local storage relocation.
Oct 31 2023, 6:49 PM · ARM

Oct 18 2023

oskar.holmlund_ohdata.se added inline comments to D42124: Add pinctrl_single driver.
Oct 18 2023, 8:35 PM · ARM

Oct 11 2023

oskar.holmlund_ohdata.se updated the diff for D42124: Add pinctrl_single driver.
  • Replaced the DEFINE_CLASS_0 -> struct driver_t
  • removed pinctrl_single_pins_write / read
  • update pinctrl_single_syscon_unlocked_write_4/read_4 to honor pinctrl-single,register-width. (even if the functionnames will be misleading and give the impression its an 4byte version of read/write)
  • removed pinctrl_single_syscon_unlocked_modify_4
  • update error handling after fdt_pinctrl_register() call to release syscon in case of failure.
Oct 11 2023, 7:35 PM · ARM

Oct 10 2023

manu added a comment to D42124: Add pinctrl_single driver.

Looks mostly good to me.

Oct 10 2023, 9:18 AM · ARM

Oct 9 2023

oskar.holmlund_ohdata.se updated the diff for D42124: Add pinctrl_single driver.

Thank you Manu. Followed your advice to move the bus_alloc_resource/syscon interface to the end of the attach function to avoid complicated error paths.

Oct 9 2023, 7:06 PM · ARM
oskar.holmlund_ohdata.se abandoned D41896: AM335x: ti_pinmux.c add pinconf-single to set of compatible strings.

Replaced by D42124

Oct 9 2023, 6:32 PM · ARM

Oct 8 2023

manu requested changes to D42124: Add pinctrl_single driver.
Oct 8 2023, 2:15 PM · ARM
oskar.holmlund_ohdata.se requested review of D42126: AM335x: update ti_gpio & am335x_gpio to use pinctrl-single driver.
Oct 8 2023, 10:13 AM · ARM
oskar.holmlund_ohdata.se requested review of D42124: Add pinctrl_single driver.
Oct 8 2023, 7:50 AM · ARM
manu accepted D42116: remove OMAP4 support.

I'm pretty sure that the last time I've tested my pandaboard (maybe 4-5 years ago) there were already problems.

Oct 8 2023, 6:53 AM · ARM