Page MenuHomeFreeBSD

ian (Ian Lepore)
User

Projects

User Details

User Since
May 11 2014, 1:02 PM (350 w, 2 d)

Recent Activity

Dec 16 2020

ian committed rS368702: MFC 368585:.
MFC 368585:
Dec 16 2020, 5:09 PM

Dec 12 2020

ian closed D27398: Provide userland notification of gpio pin changes (aka "userland gpio interrupts")..
Dec 12 2020, 6:34 PM
ian committed rS368585: Provide userland notification of gpio pin changes ("userland gpio interrupts")..
Provide userland notification of gpio pin changes ("userland gpio interrupts").
Dec 12 2020, 6:34 PM
ian updated the diff for D27398: Provide userland notification of gpio pin changes (aka "userland gpio interrupts")..

A few last minor tweaks to the test program.

Dec 12 2020, 6:11 PM

Nov 30 2020

ian updated the diff for D27398: Provide userland notification of gpio pin changes (aka "userland gpio interrupts")..

This update adds the option to choose between detailed (the default) and summary reporting, and removes the restriction that only one pin-change event can occur between each call to read(2) without losing data. It also adds a new test/demo program, based on the test code written by Christian for the gsoc project.

Nov 30 2020, 9:27 PM

Nov 28 2020

ian added inline comments to D27398: Provide userland notification of gpio pin changes (aka "userland gpio interrupts")..
Nov 28 2020, 7:08 PM

Nov 27 2020

ian updated the diff for D27398: Provide userland notification of gpio pin changes (aka "userland gpio interrupts")..

Allow only edge-triggered interrupts, and only if they are supported on that pin according to the capabilities flags from the hardware driver.

Nov 27 2020, 7:54 PM
ian added a reviewer for D27398: Provide userland notification of gpio pin changes (aka "userland gpio interrupts").: markm.
Nov 27 2020, 6:06 PM
ian updated the diff for D27398: Provide userland notification of gpio pin changes (aka "userland gpio interrupts")..

Primarily style fixes, mostly reformating block comments to the freebsd standard.

Nov 27 2020, 6:01 PM
ian updated the diff for D27398: Provide userland notification of gpio pin changes (aka "userland gpio interrupts")..

Locking fixes. The original code had several places where an error-handling path would exit a function with a mutex unlocked that would be re-locked on a normal exit. There was also a place where an SLIST was traversed without holding the mutex that protects additions and deletions on that list.

Nov 27 2020, 5:56 PM
ian added a comment to D27398: Provide userland notification of gpio pin changes (aka "userland gpio interrupts")..

Just a note to mention that the initial diff is the exact code from https://github.com/ckraemer/freebsd/tree/gsoc2018, with a couple small tweaks to resolve conflicts due to the freebsd base code having changed a bit over the past two years.

Nov 27 2020, 5:52 PM
ian requested review of D27398: Provide userland notification of gpio pin changes (aka "userland gpio interrupts")..
Nov 27 2020, 5:50 PM

Nov 26 2020

ian committed rS368042: Add the firmware blob required to use the sdma hardware in the imx6.
Add the firmware blob required to use the sdma hardware in the imx6
Nov 26 2020, 1:41 AM

Nov 25 2020

ian committed rS368030: Extend the imx6 gpc->gic interrupt controller fixup of fdt data at runtime.
Extend the imx6 gpc->gic interrupt controller fixup of fdt data at runtime
Nov 25 2020, 8:05 PM
ian committed rS368029: Convert the imx6_snvs RTC driver to access registers via the syscon device..
Convert the imx6_snvs RTC driver to access registers via the syscon device.
Nov 25 2020, 7:10 PM
ian committed rS368028: Add the standard extres pseudo devices to the IMX6 kernel config..
Add the standard extres pseudo devices to the IMX6 kernel config.
Nov 25 2020, 7:08 PM
ian committed rS368026: A couple small fixes for the imx6_sdma driver....
A couple small fixes for the imx6_sdma driver...
Nov 25 2020, 6:09 PM
ian committed rS368021: Only attach the ti_scm_syscon driver when running on a compatible TI chip..
Only attach the ti_scm_syscon driver when running on a compatible TI chip.
Nov 25 2020, 3:45 PM

Nov 18 2020

ian accepted D27270: Remove NO_EVENTTIMERS support.
Nov 18 2020, 4:19 PM

Nov 15 2020

ian accepted D27218: arm: tune vmparam.h towards a little more modern.
Nov 15 2020, 6:21 PM

Oct 12 2020

ian committed rS366652: Bug fixes for the ads111x driver... make configurable gain and sample rate.
Bug fixes for the ads111x driver... make configurable gain and sample rate
Oct 12 2020, 6:03 PM

Sep 22 2020

ian committed rS366001: MFC r365729:.
MFC r365729:
Sep 22 2020, 3:01 PM
ian committed rS366000: MFC r365729:.
MFC r365729:
Sep 22 2020, 2:59 PM

Sep 14 2020

ian accepted D26431: Don't do the busy dance in icee_open/close.

Applied patch to freebsd 8 (which we use at $work but it has the icee.c source from -current) and freebsd 11 and it behaves as expected on our products.

Sep 14 2020, 11:16 PM
ian committed rS365729: Add product ID strings for a couple Microchip usb hubs. Also, update the.
Add product ID strings for a couple Microchip usb hubs. Also, update the
Sep 14 2020, 5:33 PM

Sep 3 2020

ian accepted D26302: Don't do the busy dance in icee_open/close.
In D26302#584718, @imp wrote:
In D26302#584633, @ian wrote:

So, what prevents "kldunload icee" while someone has the cdev open?

Nothing. Just like we don't do it for almost all other devices. If that's really needed, we should do it via the device_quesce mechanism.

Sep 3 2020, 2:54 PM

Sep 2 2020

ian added a comment to D26302: Don't do the busy dance in icee_open/close.

So, what prevents "kldunload icee" while someone has the cdev open?

Sep 2 2020, 7:59 PM
ian committed rS365274: In ltc430x(4), add the ability to configure control register 2 via FDT or.
In ltc430x(4), add the ability to configure control register 2 via FDT or
Sep 2 2020, 7:37 PM

Sep 1 2020

ian committed rS365058: Document the fact that you must set an i2c slave address as well as the.
Document the fact that you must set an i2c slave address as well as the
Sep 1 2020, 7:06 PM

Jul 26 2020

ian committed rS363576: Describe the value in the 're' column of vmstat(8) in terms of freebsd's vm.
Describe the value in the 're' column of vmstat(8) in terms of freebsd's vm
Jul 26 2020, 6:33 PM
ian committed rS363569: Remove commented-out lines describing the old never-implemented -t option..
Remove commented-out lines describing the old never-implemented -t option.
Jul 26 2020, 5:51 PM

Jul 19 2020

ian committed rS363330: The ds3231 RTC chip bitmask values for 12- versus 24-hour mode were reversed,.
The ds3231 RTC chip bitmask values for 12- versus 24-hour mode were reversed,
Jul 19 2020, 6:53 PM

Jun 18 2020

ian accepted D25312: Relax the rule against declaring variables in nested scopes..
In D25312#558270, @kib wrote:

I do not like it.

[...]

The argument that we have around a hundred places where the rule is already broken in fact confirms that most of our code confirms to the style(9) in this regard, since hundred places for several MLoCs of our own code is quite good ratio.

Jun 18 2020, 9:18 AM

Apr 2 2020

ian committed rS359574: Add the Cadence GEM ethernet driver to NOTES so that it gets built with.
Add the Cadence GEM ethernet driver to NOTES so that it gets built with
Apr 2 2020, 7:06 PM
ian closed D24226: Cadence GEM driver style clean-up..
Apr 2 2020, 5:58 PM
ian committed rS359571: Cadence GEM ethernet driver style clean-up, no functional changes..
Cadence GEM ethernet driver style clean-up, no functional changes.
Apr 2 2020, 5:57 PM

Mar 29 2020

ian committed rS359423: Add a missing suffix that was causing a whole word to get loaded instead.
Add a missing suffix that was causing a whole word to get loaded instead
Mar 29 2020, 5:30 PM

Mar 6 2020

ian added inline comments to D22692: Add support for the RK805/RK808 RTC.
Mar 6 2020, 6:38 PM

Feb 29 2020

ian added inline comments to D23894: dwmmc: Rework the DMA engine.
Feb 29 2020, 5:22 PM

Feb 10 2020

ian committed rS357709: Implement atomic_testandclear_{32,int,long} for 32-bit arm. Also, replace.
Implement atomic_testandclear_{32,int,long} for 32-bit arm. Also, replace
Feb 10 2020, 12:05 AM

Feb 1 2020

ian accepted D23392: More Secure Permissions for /root.

I believe 0750 is an ideal mode for the /root dir; it adds some security, and it seems unlikely that existing scripts or other automation people have in use will fail due to the change.

Feb 1 2020, 5:32 PM

Jan 17 2020

ian committed rS356854: MFC r356574:.
MFC r356574:
Jan 17 2020, 10:25 PM
ian committed rS356853: MFC r356295:.
MFC r356295:
Jan 17 2020, 10:21 PM
ian committed rS356838: MFC r356086, r356278, r356294, r356519, r356521-r356522, r356525-r356526.
MFC r356086, r356278, r356294, r356519, r356521-r356522, r356525-r356526
Jan 17 2020, 5:57 PM
ian committed rS356833: MFC r354709-r354710, r355069, r355439, r355780, r356273, r356472.
MFC r354709-r354710, r355069, r355439, r355780, r356273, r356472
Jan 17 2020, 3:55 PM

Jan 16 2020

ian accepted D23093: fdt_pinctrl: Add new methods for gpios.

After some discussion on irc we realized we don't need a get-capabilities interface between gpio and pinctrl, because both are soc-specific drivers, and the gpio driver already "knows" what capabilities the soc has.

Jan 16 2020, 8:55 PM

Jan 15 2020

ian accepted D23192: 2020-02-29 retire in-tree GPL dtc.
Jan 15 2020, 4:14 PM

Jan 14 2020

ian added a comment to D23093: fdt_pinctrl: Add new methods for gpios.

What kind of flags go into the flags arg? I suspect the quick answer is GPIO flags. The more complete answer is probably "some subset of gpio flags which differs from one device to another". That leads to the question of what to do on an attempt to set multiple flags where some are supported and some aren't.

Jan 14 2020, 4:41 AM

Jan 9 2020

ian committed rS356574: Remove scary-looking printf output that happens when you kldload dtrace on.
Remove scary-looking printf output that happens when you kldload dtrace on
Jan 9 2020, 10:52 PM
ian added a comment to D18307: Install llvm-objdump as objdump on Clang-using architectures (RFC review).

When replacing objdump with llvm-objdump came up on a mailing list, there was some opinion expressed that most users don't need objdump at all and should have to install a package to get it. But I find llvm-objdump to be a completely-usable replacement for gnu objdump that we've had in base for years. That leads me to think a knob such as WITH[OUT]_LLVM_OBJDUMP that defaults to WITHOUT might be a good solution for this.

Jan 9 2020, 4:38 PM

Jan 8 2020

ian committed rS356526: Remove some trailing whitespace; no functional changes..
Remove some trailing whitespace; no functional changes.
Jan 8 2020, 11:06 PM
ian committed rS356525: Split the code to find and add iicbus children out to its own function..
Split the code to find and add iicbus children out to its own function.
Jan 8 2020, 11:03 PM
ian committed rS356522: Change some KASSERT to device_printf + return EINVAL. There's no need to.
Change some KASSERT to device_printf + return EINVAL. There's no need to
Jan 8 2020, 10:48 PM
ian committed rS356521: Init sc->maxbus to -1, not 0. It represents the highest array index that.
Init sc->maxbus to -1, not 0. It represents the highest array index that
Jan 8 2020, 10:45 PM
ian committed rS356519: Ensure any reserved gpio pins get released if an early exit is taken.
Ensure any reserved gpio pins get released if an early exit is taken
Jan 8 2020, 10:06 PM

Jan 7 2020

ian committed rS356472: Add #ifdef option-test wrappers around another call to an arm/unwind.c.
Add #ifdef option-test wrappers around another call to an arm/unwind.c
Jan 7 2020, 9:13 PM
ian committed rS356461: MFC r336746, r336779.
MFC r336746, r336779
Jan 7 2020, 6:43 PM

Jan 2 2020

ian committed rS356295: Add the xdma framework and pl330 dma drivers to arm and arm64 lint builds..
Add the xdma framework and pl330 dma drivers to arm and arm64 lint builds.
Jan 2 2020, 10:27 PM
ian committed rS356294: Explicitly include sys/rman.h instead of relying on getting it via some.
Explicitly include sys/rman.h instead of relying on getting it via some
Jan 2 2020, 10:15 PM
ian committed rS356283: MFC r355860:.
MFC r355860:
Jan 2 2020, 7:55 PM
ian committed rS356282: MFC r347828 (by cem):.
MFC r347828 (by cem):
Jan 2 2020, 7:52 PM
ian closed D22891: Add support for i2c bus mux hardware..

Committed (forgot to link to phab) as r356278.

Jan 2 2020, 5:54 PM
ian committed rS356278: Add support for i2c bus mux hardware..
Add support for i2c bus mux hardware.
Jan 2 2020, 5:52 PM
ian committed rS356273: Since arm/unwind.c s conditionally compiled, only call functions in it.
Since arm/unwind.c s conditionally compiled, only call functions in it
Jan 2 2020, 3:38 PM

Jan 1 2020

ian added inline comments to D22891: Add support for i2c bus mux hardware..
Jan 1 2020, 9:48 PM
ian updated the diff for D22891: Add support for i2c bus mux hardware..

Remove the bus_select callback pointer and instead create an iicmux_if.m to define a bus_select method.

Jan 1 2020, 9:41 PM

Dec 31 2019

ian accepted D22945: openfirm: Add OF_device_unregister_xref.
In D22945#502734, @imp wrote:

So devices are just detached on unload, not deleted, so the device_t shouldn't be stale ever...

Of course, it would be better to have a newbus invalidate callback when deleting a device node, but until then, this is fine

Dec 31 2019, 6:00 PM

Dec 30 2019

ian committed rS356211: Set a "kernbase" symbol in 32-bit arm locore.S and use it with ldscript.arm..
Set a "kernbase" symbol in 32-bit arm locore.S and use it with ldscript.arm.
Dec 30 2019, 11:20 PM

Dec 29 2019

ian closed D22922: Eliminate generated ldscript for arm and arm64, and strip $a/$d marker symbols from linked kernel..

Committed as r356180

Dec 29 2019, 6:21 PM
ian committed rS356180: Eliminate the generated ldscript for arm and arm64, and strip $a/$d marker.
Eliminate the generated ldscript for arm and arm64, and strip $a/$d marker
Dec 29 2019, 6:17 PM

Dec 26 2019

ian accepted D22926: [gpioths] Fix GPIOTHS_DEBUG.

Doh! I totally missed that, thanks.

Dec 26 2019, 5:38 AM
ian added inline comments to D22891: Add support for i2c bus mux hardware..
Dec 26 2019, 2:35 AM
ian updated the diff for D22891: Add support for i2c bus mux hardware..

Uploaded a new diff with proper context.

Dec 26 2019, 2:29 AM
ian committed rS356086: Add comments to a couple i2c device lines..
Add comments to a couple i2c device lines.
Dec 26 2019, 2:22 AM
ian added inline comments to D22891: Add support for i2c bus mux hardware..
Dec 26 2019, 2:04 AM

Dec 25 2019

ian added inline comments to D22891: Add support for i2c bus mux hardware..
Dec 25 2019, 11:28 PM
ian added a comment to D22922: Eliminate generated ldscript for arm and arm64, and strip $a/$d marker symbols from linked kernel..
In D22922#502063, @imp wrote:

I like where this is going, and have a couple of questions...

Dec 25 2019, 10:47 PM
ian updated the diff for D22922: Eliminate generated ldscript for arm and arm64, and strip $a/$d marker symbols from linked kernel..

Add arm64; the changes needed are almost identical to armv6/7.

Dec 25 2019, 10:44 PM
ian committed rS356085: In kern.pre.mk, split SYSTEM_LD into two variables to avoid duplication in.
In kern.pre.mk, split SYSTEM_LD into two variables to avoid duplication in
Dec 25 2019, 10:33 PM
ian closed D22921: In kern.pre.mk, split SYSTEM_LD into two variables to avoid duplication in other files..
Dec 25 2019, 10:33 PM
ian added a comment to D22920: For riscv kernel builds, add -N to LDFLAGS instead of replacing the SYSTEM_LD variable..

Just an update to note that the commit for this was reverted in r356078 due to CI build failures. I'm unable to install a working riscv toolchain for building and testing myself, apparently at least in part because I'm still running 12.0-stable (and if I try to upgrade from that my video card turns into a pumpkin).

Dec 25 2019, 6:30 PM
ian committed rS356078: Revert r356077, apparently the change doesn't work after all (failed to.
Revert r356077, apparently the change doesn't work after all (failed to
Dec 25 2019, 6:25 PM
ian committed rS356077: For riscv kernel builds, add -N to LDFLAGS instead of replacing the.
For riscv kernel builds, add -N to LDFLAGS instead of replacing the
Dec 25 2019, 5:27 PM
ian closed D22920: For riscv kernel builds, add -N to LDFLAGS instead of replacing the SYSTEM_LD variable..
Dec 25 2019, 5:27 PM
ian added inline comments to D22922: Eliminate generated ldscript for arm and arm64, and strip $a/$d marker symbols from linked kernel..
Dec 25 2019, 12:31 AM
ian updated the diff for D22922: Eliminate generated ldscript for arm and arm64, and strip $a/$d marker symbols from linked kernel..

Since we don't generate ldscript files anymore, remove the generated files from the CLEAN+= list.

Dec 25 2019, 12:21 AM

Dec 24 2019

ian added a comment to D22921: In kern.pre.mk, split SYSTEM_LD into two variables to avoid duplication in other files..
In D22921#502044, @imp wrote:

Are the Makefile.arm and Makefile.mips changes separate?

Dec 24 2019, 11:53 PM
ian created D22922: Eliminate generated ldscript for arm and arm64, and strip $a/$d marker symbols from linked kernel..
Dec 24 2019, 11:51 PM
ian created D22921: In kern.pre.mk, split SYSTEM_LD into two variables to avoid duplication in other files..
Dec 24 2019, 11:42 PM
ian added a comment to D22920: For riscv kernel builds, add -N to LDFLAGS instead of replacing the SYSTEM_LD variable..

Does anyone know why riscv needs writable text segments? Or if it really does?

Dec 24 2019, 11:17 PM
ian created D22920: For riscv kernel builds, add -N to LDFLAGS instead of replacing the SYSTEM_LD variable..
Dec 24 2019, 11:16 PM

Dec 23 2019

ian added inline comments to D22901: [iicbus] Add support for ACPI-based children enumeration.
Dec 23 2019, 5:15 PM

Dec 22 2019

ian committed rS356031: In gptboot, don't assume a partition number is a single digit, 1-9. GPT.
In gptboot, don't assume a partition number is a single digit, 1-9. GPT
Dec 22 2019, 10:33 PM
ian committed rS356025: MFC r355777:.
MFC r355777:
Dec 22 2019, 8:34 PM
ian committed rS356024: MFC r355685:.
MFC r355685:
Dec 22 2019, 8:06 PM
ian committed rS356023: MFC r355688:.
MFC r355688:
Dec 22 2019, 8:04 PM
ian committed rS356022: MFC r355598, r355727, r355735, r355858.
MFC r355598, r355727, r355735, r355858
Dec 22 2019, 7:30 PM
ian committed rS356019: MFC r355572:.
MFC r355572:
Dec 22 2019, 6:55 PM
ian committed rS356018: MFC r355467, r355499, r355531-r355533, r355535, r355540, r355548-r355551….
MFC r355467, r355499, r355531-r355533, r355535, r355540, r355548-r355551…
Dec 22 2019, 6:51 PM
ian committed rS356017: MFC r355738:.
MFC r355738:
Dec 22 2019, 6:12 PM