In D32905#743481, @donner wrote:If I understand correctly, the requirement is to align the IP header unconditional.
So there is no need for an extra message, but all other nodes might be urged to add this, too.
- Queries
- All Stories
- Search
- Advanced Search
- Transactions
- Transaction Logs
Feed Advanced Search
Advanced Search
Advanced Search
Nov 10 2021
Nov 10 2021
In D32905#742921, @afedorov wrote:I don't understand what the alignment does in this case.
Does it fix a bug or is it an optimization?
What part of the code requires this alignment, is it the TCP/IP stack?
Because not only ng_eiface(4) can inject Ethernet packets into the network stack.Just some other examples of unalligned packets with netgraph:
ng_device(4) -> ng_ether::upper(4) -> TCP/IP stack
ng_socket(4) -> ng_eiface -> TCP/IP stackAs I can see, ETHER_ALIGN is only used by network drivers. Is there any alignment requirement for network drivers or TCP/IP stack?
Other changes, I think you can commit:
- Support of the "getdevname".
- Automatically give the node name same as device name.
Oct 21 2021
Oct 21 2021
Before these changes, ofw_bus was a simplebus that also did a bit of resource management. With the rman stuff gone, is there any difference at all between ofw_bus and simplebus?
In D32357#735518, @ehem_freebsd_m5p.com wrote:You already know I really dislike the default range, but I have no reason its use causes actual harm. For the moment, things need to go this way.
Oct 17 2021
Oct 17 2021
Oct 6 2021
Oct 6 2021
Fix busdma resource leak on usb device detach.
Fix busdma resource leak on usb device detach.
Sep 28 2021
Sep 28 2021
Fix busdma resource leak on usb device detach.
• ian committed rG1acf73d54412: qoriq_therm.c: avoid a segfault on the error exit path. (authored by • ian).
qoriq_therm.c: avoid a segfault on the error exit path.
• ian committed rGea5c0b7b140b: Add the clock for the imx8 thermal monitoring unit. (authored by • ian).
Add the clock for the imx8 thermal monitoring unit.
Add ethernet to the standard drivers for imx8.
Sep 1 2021
Sep 1 2021
I would be a bit more wordy in the commit, something like;
Aug 18 2021
Aug 18 2021
I suspect these stats aren't much-used in the real world, and can't think of any reason not to do this.
Jul 21 2021
Jul 21 2021
In D31244#703740, @imp wrote:In D31244#703722, @kbowling wrote:In D31244#703721, @imp wrote:ZFS is useful on these small memory beasts?
Unsure, @cem laid out some other real problems with the small stack size in the referenced commit https://reviews.freebsd.org/R10:3f6867ef6386435a52ec564780b91a47dd948b0c. Is there a significant drawback here versus the safety of a larger stack?
I don't believe there is a huge drawback, I just hit a big wall trying to set ZFS up years ago on older V7 gear and was wondering if things had changed with OpenZFS. This change would be a problem on the older armv5 gear due to its limitations on RAM. The v6/v7 machines start at 512MB and go up from there. They aren't memory constrained. The only detail I hesitate on would be if this increases overhead on context switches or something like that. I don't believe it will, so the change is fine, but I'd love to see what others say before making the change.
This has been on my to-do list for ages. Several people who use zfs on 32-bit arm have requested it over the years.
Mar 22 2021
Mar 22 2021
• ian added a comment to D29369: Teach DTrace that unaligned accesses are allowed on aarch64, not just x86..
In D29369#657802, @rwatson wrote:In D29369#657694, @andrew wrote:I wonder if we should be checking for __NO_STRICT_ALIGNMENT (and defining it for architectures other than x86)
Hmm. I didn't know that existed.
I think it is the right goal, but I don't think we should aim for it in this patch. Not least, I'm not easily set up to test the various other cases covered by that define currently.
Mar 18 2021
Mar 18 2021
I don't understand the need to add new methods to ofw_if. The new methods are just extracting standard properties from a standard dtb in memory; if new functions are needed at all, why aren't they just a couple new convenience functions in ofw_subr.{c,h}?
Feb 26 2021
Feb 26 2021
Dec 16 2020
Dec 16 2020
Dec 12 2020
Dec 12 2020
• ian committed rS368585: Provide userland notification of gpio pin changes ("userland gpio interrupts")..
Provide userland notification of gpio pin changes ("userland gpio interrupts").
• 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.
Nov 30 2020
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 28 2020
Nov 28 2020
• ian added inline comments to D27398: Provide userland notification of gpio pin changes (aka "userland gpio interrupts")..
Nov 27 2020
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.
• 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.
• 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.
• 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 26 2020
Nov 26 2020
Add the firmware blob required to use the sdma hardware in the imx6
Nov 25 2020
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
• 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.
Add the standard extres pseudo devices to the IMX6 kernel config.
A couple small fixes for the imx6_sdma driver...
• 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 18 2020
Nov 18 2020
Nov 15 2020
Nov 15 2020
Oct 12 2020
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
Sep 22 2020
Sep 22 2020
Sep 14 2020
Sep 14 2020
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.
Add product ID strings for a couple Microchip usb hubs. Also, update the
Sep 3 2020
Sep 3 2020
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 2 2020
Sep 2 2020
So, what prevents "kldunload icee" while someone has the cdev open?
• 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 1 2020
Sep 1 2020
Document the fact that you must set an i2c slave address as well as the
Jul 26 2020
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
• 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 19 2020
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,
Jun 18 2020
Jun 18 2020
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.
Apr 2 2020
Apr 2 2020
Add the Cadence GEM ethernet driver to NOTES so that it gets built with
Cadence GEM ethernet driver style clean-up, no functional changes.
Mar 29 2020
Mar 29 2020
Add a missing suffix that was causing a whole word to get loaded instead
Mar 6 2020
Mar 6 2020
Feb 29 2020
Feb 29 2020
Feb 10 2020
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 1 2020
Feb 1 2020
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.
Jan 17 2020
Jan 17 2020
MFC r356086, r356278, r356294, r356519, r356521-r356522, r356525-r356526
MFC r354709-r354710, r355069, r355439, r355780, r356273, r356472
Jan 16 2020
Jan 16 2020
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 15 2020
Jan 15 2020
Jan 14 2020
Jan 14 2020
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 9 2020
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
• 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 8 2020
Jan 8 2020
Remove some trailing whitespace; no functional changes.
Split the code to find and add iicbus children out to its own function.
Change some KASSERT to device_printf + return EINVAL. There's no need to
Init sc->maxbus to -1, not 0. It represents the highest array index that
Ensure any reserved gpio pins get released if an early exit is taken
Jan 7 2020
Jan 7 2020
Add #ifdef option-test wrappers around another call to an arm/unwind.c
Jan 2 2020
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.
Explicitly include sys/rman.h instead of relying on getting it via some
Committed (forgot to link to phab) as r356278.
Add support for i2c bus mux hardware.
Since arm/unwind.c s conditionally compiled, only call functions in it
Jan 1 2020
Jan 1 2020
Remove the bus_select callback pointer and instead create an iicmux_if.m to define a bus_select method.
Dec 31 2019
Dec 31 2019
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 30 2019
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 29 2019
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
• 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 26 2019
Dec 26 2019
Doh! I totally missed that, thanks.
Uploaded a new diff with proper context.
Add comments to a couple i2c device lines.
Dec 25 2019
Dec 25 2019
• 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...