Page MenuHomeFreeBSD
Feed Search

Apr 30 2023

hselasky committed rG9162793e44f0: mlx5: Remove unused debugfs node pointers..
Apr 30 2023, 7:00 AM
hselasky committed rG4c002f0842e5: mlx5: Implement mlx5_core_modify_cq_by_mask()..
Apr 30 2023, 7:00 AM
hselasky committed rG3d052f97cef5: mlx5: Make MLX5_COMP_EQ_SIZE tunable..
Apr 30 2023, 7:00 AM
hselasky committed rGdecbf52b0b52: xhci: Rework 64-byte context support to avoid pointer abuse (authored by jrtc27).
Apr 30 2023, 7:00 AM
hselasky committed rG0e81f07f3653: USB: adjust the Generic XHCI ACPI probe return value (authored by bz).
Apr 30 2023, 7:00 AM
hselasky committed rG61dd6a2ea1aa: mlx5: Implement diagostic counters as sysctl(8) nodes..
Apr 30 2023, 7:00 AM
hselasky committed rGe8ad47b65447: mlx5en(4): Don't wait for receive queue to fill up with mbufs during open….
Apr 30 2023, 7:00 AM
hselasky committed rG6e21ac722620: Get clocks for Rockchip RK3568. (authored by sos).
Apr 30 2023, 7:00 AM
hselasky committed rGf560d0ead126: bcm5974(4): add Magic Trackpad 2 (USB only) support (authored by val_packett.cool).
Apr 30 2023, 7:00 AM
hselasky committed rGfbedcad985b5: Implement an API for sending a zero-length-packet. The purpose of such a.
Apr 30 2023, 6:59 AM
hselasky committed rG631723ed9788: if_mos: Remove set but unused variable. (authored by jhb).
Apr 30 2023, 6:59 AM
hselasky committed rG6148777d8692: mlx5en(4): Explain why CQE zipping is off..
Apr 30 2023, 6:59 AM
hselasky committed rG633040b8e4df: usb: dwc3: add <sys/mutex.h> (authored by joerg).
Apr 30 2023, 6:59 AM
hselasky committed rG3890a6eb01c1: ulpt(4): Add support for Epson TM-U220B..
Apr 30 2023, 6:59 AM
hselasky committed rGfa65f958847d: Make sure the uftdi(4) driver doesn't start a USB transfer when being cancelled..
Apr 30 2023, 6:59 AM
hselasky committed rG4c57e83e7b6b: usb: dwc3: implement hw.usb.xhci.use_polling (authored by kevans).
Apr 30 2023, 6:59 AM
hselasky committed rG417b350048f5: wmt: purge EOL release compatibility (authored by ehem_freebsd_m5p.com).
Apr 30 2023, 6:59 AM
hselasky committed rGd4a8b3f7cf10: usb: purge EOL release compatibility (authored by ehem_freebsd_m5p.com).
Apr 30 2023, 6:59 AM
hselasky committed rGd5d2838785ff: USB id of yet another Lenovo USB-C ethernet dongle. (authored by phk).
Apr 30 2023, 6:59 AM
hselasky committed rG53e253c7e57f: usb(4): Separate the fast path and the slow path to avoid races and use-after….
Apr 30 2023, 6:59 AM
hselasky committed rGcb68867ec7bb: usb: Respect NO_INQUIRY quirk during device enumeration (authored by kd).
Apr 30 2023, 6:59 AM
hselasky committed rGd9a8025f4849: uhid_snes: Remove USB_ST_TRANSFERRED handling for the status request. (authored by jhb).
Apr 30 2023, 6:59 AM
hselasky committed rGa03d9f263466: libusb: remove use of COMPAT_32BIT (authored by brooks).
Apr 30 2023, 6:59 AM
hselasky committed rG60603f6a5302: usb: remove COMPAT_32BIT ifdefs (authored by brooks).
Apr 30 2023, 6:59 AM
hselasky committed rG3b7149c7c32a: xhci(4): Make sure allocated bandwidth is freed in hardware by unconfiguring… (authored by Cheng, Huiming <Huiming.Cheng@dellteam.com>).
Apr 30 2023, 6:59 AM
hselasky committed rG82acd06d9ce5: usb: add 32-bit compat for FIFOs (authored by brooks).
Apr 30 2023, 6:59 AM
hselasky committed rGc6203b6c00ca: usb(4): Call optional endpoint_uninit() when changing configuration or….
Apr 30 2023, 6:58 AM
hselasky committed rG8ff5099a7932: libusb(3): Implement libusb_init_context() and the needed structures and….
Apr 30 2023, 6:58 AM

Apr 24 2023

hselasky added a comment to D39770: uchcom: Try to fix upload to esp8266.

Just use the existing USB transfers:
UCHCOM_BULK_WR -> UCHCOM_BULK_DT_WR
UCHCOM_BULK_RD -> UCHCOM_BULK_DT_RD

Apr 24 2023, 2:15 PM

Apr 21 2023

hselasky added a comment to D39723: Add a compile time warning for qsort() about issues regarding execution time..
In D39723#904466, @zlei wrote:

I have to admit that I get bitten by the function name. I almost always treat qsort() as quicksort but it is actually a generic interface for sorting.
So it should be treated / named as sort() .

A second thought about this, I think for STD C or POSIX, use an implementation as standard is not scalable, as there're so many sorting algorithms.

From qsort(3):

The qsort() function is a modified partition-exchange sort, or quicksort.

Regardless of the naming, maybe it is right direction to place emphasis about the standard / posix requirement of qsort(). What do you all think ?

Apr 21 2023, 9:31 AM

Apr 20 2023

hselasky added a comment to D39723: Add a compile time warning for qsort() about issues regarding execution time..

No. This is a widely-used ISO C function. If it has poor performance, fix that.

Apr 20 2023, 6:03 PM
hselasky requested review of D39723: Add a compile time warning for qsort() about issues regarding execution time..
Apr 20 2023, 5:39 PM
hselasky added a reverting change for rG8dcf3a82c54c: libc: Implement bsort(3) a bitonic type of sorting algorithm.: rGbb8e8e230d94: Revert "libc: Implement bsort(3) a bitonic type of sorting algorithm.".
Apr 20 2023, 5:18 PM
hselasky added a reverting change for D36493: libc: Implement bsort(3) bitonic sorting algorithm.: rGbb8e8e230d94: Revert "libc: Implement bsort(3) a bitonic type of sorting algorithm.".
Apr 20 2023, 5:18 PM
hselasky added a reverting change for rG7d65a450cdcc: bsort.3: Fix warnings as reported by mandoc -W warning: rGbb8e8e230d94: Revert "libc: Implement bsort(3) a bitonic type of sorting algorithm.".
Apr 20 2023, 5:18 PM
hselasky added a reverting change for rGa7469c9c0a50: libc: bsort_s() requires both __BSD_VISIBLE and __EXT1_VISIBLE: rGbb8e8e230d94: Revert "libc: Implement bsort(3) a bitonic type of sorting algorithm.".
Apr 20 2023, 5:18 PM
hselasky committed rGbb8e8e230d94: Revert "libc: Implement bsort(3) a bitonic type of sorting algorithm.".
Apr 20 2023, 5:17 PM
hselasky added inline comments to D35754: vt(4): Add support for console screen reader using sysctls..
Apr 20 2023, 4:48 PM
hselasky added a reviewer for D39323: vt: avoid using a spinlock: imp.
Apr 20 2023, 7:35 AM
hselasky added a comment to D39323: vt: avoid using a spinlock.

I have a patch to move Giant out of adaptive locking. I wonder if it can help?

Apr 20 2023, 7:35 AM

Apr 19 2023

hselasky accepted D39706: LinuxKPI: fix READ_ONCE() -Wcast-equal warnings.

Looks good!

Apr 19 2023, 9:52 PM
hselasky committed rGa7469c9c0a50: libc: bsort_s() requires both __BSD_VISIBLE and __EXT1_VISIBLE.
Apr 19 2023, 8:13 PM
hselasky closed D39691: libc: Sorting is not needed when there are less than two elements.
Apr 19 2023, 3:19 PM
hselasky committed rGecb2ce3a51e9: libc: Sorting is not needed when there are less than two elements.
Apr 19 2023, 3:19 PM
hselasky added a comment to D36493: libc: Implement bsort(3) bitonic sorting algorithm..

Adding a nice SVG picture showing how the algorithm is sorting data. BSORT_TABLE_MAX=2 and n=16 elements to sort.

Apr 19 2023, 1:41 PM
hselasky requested review of D39691: libc: Sorting is not needed when there are less than two elements.
Apr 19 2023, 1:37 PM
hselasky committed rG27bb0d337c0d: libc: Add missing object size check to qsort_s(3).
Apr 19 2023, 1:37 PM
hselasky closed D39687: libc: Add missing size check to qsort_s(3).
Apr 19 2023, 1:37 PM
hselasky committed rG7d65a450cdcc: bsort.3: Fix warnings as reported by mandoc -W warning.
Apr 19 2023, 1:36 PM
hselasky accepted D39687: libc: Add missing size check to qsort_s(3).

Thank you for your reviews!

Apr 19 2023, 1:26 PM
hselasky added a comment to D39687: libc: Add missing size check to qsort_s(3).

@emaste : "<= 0" is for the future, in case the type changes to be signed.

Apr 19 2023, 1:21 PM
hselasky closed D36493: libc: Implement bsort(3) bitonic sorting algorithm..
Apr 19 2023, 12:07 PM
hselasky committed rG8dcf3a82c54c: libc: Implement bsort(3) a bitonic type of sorting algorithm..
Apr 19 2023, 12:07 PM
hselasky accepted D36493: libc: Implement bsort(3) bitonic sorting algorithm..
Apr 19 2023, 11:58 AM
hselasky updated the diff for D36493: libc: Implement bsort(3) bitonic sorting algorithm..

Add a "case 0:" for the object size.

Apr 19 2023, 11:57 AM
hselasky added a comment to D39638: sysctl(9): Enable vnet sysctl variables be loader tunable.

Maybe add a word about it in UPDATING ?

Apr 19 2023, 11:38 AM
hselasky updated the summary of D39687: libc: Add missing size check to qsort_s(3).
Apr 19 2023, 10:51 AM
hselasky added a comment to D36493: libc: Implement bsort(3) bitonic sorting algorithm..

Doing some test builds, and then I'll push this.

Apr 19 2023, 10:48 AM
hselasky updated the diff for D36493: libc: Implement bsort(3) bitonic sorting algorithm..

Final version (some minor changes and nits)

  • limit on-stack buffer for copying objects to 256 bytes
  • add check for zero object size to bsort_s().
Apr 19 2023, 10:47 AM
hselasky added a reviewer for D39687: libc: Add missing size check to qsort_s(3): emaste.
Apr 19 2023, 10:32 AM
hselasky added a comment to D39687: libc: Add missing size check to qsort_s(3).

The qsort code actually use the object size for advancing for loops, so clearly we should catch this regardless of ISO definitions.

Apr 19 2023, 10:27 AM
hselasky added a comment to D39687: libc: Add missing size check to qsort_s(3).

Can I have a quick go on this one?

Apr 19 2023, 10:24 AM
hselasky requested review of D39687: libc: Add missing size check to qsort_s(3).
Apr 19 2023, 10:24 AM
hselasky added a comment to D35754: vt(4): Add support for console screen reader using sysctls..

Regarding:

Functionality: Control-B still seems to have no effect when displaying ttyv0 and vtspeakd was started on ttyv1. With that same vtspeakd VTY, control-B works on ttyv2. Control-B also has no effect when used on ttyv0 and vtspeakd was started on ttyv0.

Can you explain to me step by step how to reproduce. I don't fully get this. Are you using the serial console. I.E. my patches only support characters going to a real VT console, and that VT console must be selected by using typically ALT+F1 ... F2 ... F3 and so on.

No, using the built-in VTY (but booting with EFI and using a USB keyboard, if that makes a difference; that laptop's builtin keyboard is broken and keeps spewing garbage characters, so I disabled it in devices.hint).

Steps to reproduce:
1- Boot and wait for the ttyv0 login prompt.
2- Using alt-F2, switch to ttyv1.
3- Login as root.
4- At the # prompt, enter "clear; vtspeakd".
5- Switch back to ttyv0 using alt-F1.
6- As vtspeakd starts reading each line, press control-B once per line, a second or two in.
7- When vtspeakd is done reading, switch to ttyv2 using alt-F3.
8- Login as root.
9- As vtspeakd starts reading each line, press control-B once per line, a second or two in.
Expected: at steps 6 and 9, reading each line is aborted on successive control-B presses and vtspeakd skips to the next line.
Observed: at step 6, each line is read out in full (incorrect); at step 9, vtspeak aborts and skips to the next line on every control-B press (correct).

Apr 19 2023, 9:07 AM
hselasky added a comment to D36493: libc: Implement bsort(3) bitonic sorting algorithm..

I will also update the symbol maps file under the 1.7 section.

Apr 19 2023, 9:00 AM
hselasky accepted D36493: libc: Implement bsort(3) bitonic sorting algorithm..

I'll make those changes before commit.

Apr 19 2023, 8:50 AM

Apr 18 2023

hselasky added a comment to D36493: libc: Implement bsort(3) bitonic sorting algorithm..

Can people have a look here? I'd like to get this into FreeBSD-14.

Apr 18 2023, 1:47 PM
hselasky accepted D35754: vt(4): Add support for console screen reader using sysctls..
Apr 18 2023, 1:37 PM
hselasky removed a reviewer for D35754: vt(4): Add support for console screen reader using sysctls.: oskar.holmlund_ohdata.se.
Apr 18 2023, 1:37 PM
hselasky removed a reviewer for D35776: vtspeakd(1): Initial version of console speaker daemon.: oskar.holmlund_ohdata.se.
Apr 18 2023, 1:36 PM
hselasky accepted D35776: vtspeakd(1): Initial version of console speaker daemon..
Apr 18 2023, 1:35 PM
hselasky requested review of D39654: mlx5en(4): Optimize ratelimit support to handle more frequent rate changes..
Apr 18 2023, 1:24 PM
hselasky committed rG1943c40cd655: mlx5en(4): Don't wait for receive queue to fill up with mbufs during open….
Apr 18 2023, 1:03 PM
hselasky committed rGaa7bbdabde89: mlx5: Implement diagostic counters as sysctl(8) nodes..
Apr 18 2023, 1:03 PM
hselasky committed rG80b4ef6d1054: mlx5: Remove unused debugfs node pointers..
Apr 18 2023, 1:03 PM
hselasky committed rG6bd4bb9bdbad: mlx5en(4): Explain why CQE zipping is off..
Apr 18 2023, 1:03 PM
hselasky committed rG95bf70a4bf79: mlx5: Don't give zero number of pages to the firmware..
Apr 18 2023, 1:03 PM
hselasky committed rG273bfac08ff8: mlx5: Implement mlx5_core_modify_cq_by_mask()..
Apr 18 2023, 1:03 PM
hselasky committed rG2f7e9a8a2136: mlx5: Fix duplicate free of default flow rule in error case..
Apr 18 2023, 1:03 PM
hselasky committed rGb0b87d915145: mlx5: Make mlx5_del_flow_rule() NULL safe..
Apr 18 2023, 1:03 PM
hselasky committed rG3bb3e4768ff8: mlx5: Make MLX5_COMP_EQ_SIZE tunable..
Apr 18 2023, 1:02 PM
hselasky accepted D39628: linuxkpi: Fix __sg_alloc_table_from_pages loop.

Looks good!

Apr 18 2023, 9:21 AM
hselasky added inline comments to D39638: sysctl(9): Enable vnet sysctl variables be loader tunable.
Apr 18 2023, 9:19 AM

Apr 12 2023

hselasky added a comment to D39510: net: replace IFF_KNOWSEPOCH with IFF_NEEDSEPOCH.
#define IFCAPBITS \
"\020\1RXCSUM\2TXCSUM\3NETCONS\4VLAN_MTU\5VLAN_HWTAGGING\6JUMBO_MTU\7POLLING" \
"\10VLAN_HWCSUM\11TSO4\12TSO6\13LRO\14WOL_UCAST\15WOL_MCAST\16WOL_MAGIC" \
"\17TOE4\20TOE6\21VLAN_HWFILTER\23VLAN_HWTSO\24LINKSTATE\25NETMAP" \
"\26RXCSUM_IPV6\27TXCSUM_IPV6\31TXRTLMT\32HWRXTSTMP\33NOMAP\34TXTLS4\35TXTLS6" \
"\36VXLAN_HWCSUM\37VXLAN_HWTSO\40TXTLS_RTLMT"
Apr 12 2023, 5:00 PM

Apr 10 2023

hselasky added a comment to D38270: LinuxKPI: add script to find obsolete dummy files.

About the location, maybe linuxkpi/tools would be better? Like tools related to the Linuxkpi. There probably will be more of them as time goes by!

Apr 10 2023, 7:03 PM
hselasky accepted D39491: linuxkpi: Migrate to IfAPI.

When changing structure layouts you need to bump the FreeBSD version.

Apr 10 2023, 7:01 PM

Apr 8 2023

hselasky committed rG9b077d72bcc3: usb(4): Separate the fast path and the slow path to avoid races and use-after….
Apr 8 2023, 3:13 PM
hselasky committed rG03a2e432d5cc: usb(4): Code refactoring as a pre-step for adding missing synchronization….
Apr 8 2023, 3:13 PM
hselasky closed D39373: usb(4): Separate the fast path and the slow path to avoid races and use-after-free for the USB FS interface.
Apr 8 2023, 3:13 PM
hselasky added inline comments to D39373: usb(4): Separate the fast path and the slow path to avoid races and use-after-free for the USB FS interface.
Apr 8 2023, 2:50 PM
hselasky accepted D39466: Use macros CTLFLAG_R[DW]TUN.

Change looks good, but the commit message should be more descriptive:

Apr 8 2023, 2:44 PM

Apr 5 2023

hselasky added a comment to D39406: mlx5ib(4): Mark driver knows net epoch.

@kib : I will sync these changes internally ...

Apr 5 2023, 4:17 PM
hselasky added a comment to D39405: infiniband: Opt-in for net epoch.

Maybe the right approach is moving the needs_epoch check to ipoib_cm_handle_rx_wc() and ipoib_ib_handle_rx_wc().

Apr 5 2023, 3:34 PM
hselasky accepted D39405: infiniband: Opt-in for net epoch.

@zlei : It's ok if this is for mlx5ib currently. You would need to get @np into the loop to test it for chelsio.

Apr 5 2023, 12:11 PM

Apr 4 2023

hselasky added a reviewer for D39406: mlx5ib(4): Mark driver knows net epoch: kib.
Apr 4 2023, 4:25 PM
hselasky accepted D39406: mlx5ib(4): Mark driver knows net epoch.

The mlx5 core IRQ handler grabs the NET EPOCH for all CQEs, so this should be pretty much fine!

Apr 4 2023, 4:24 PM
hselasky accepted D39405: infiniband: Opt-in for net epoch.

Just write:
Suggested by: hselasky@

Apr 4 2023, 4:23 PM
hselasky updated the diff for D39373: usb(4): Separate the fast path and the slow path to avoid races and use-after-free for the USB FS interface.

@emaste : Patch is now split. It won't apply to 14-current, but should be easier to review.

Apr 4 2023, 3:20 PM
hselasky added a comment to D39373: usb(4): Separate the fast path and the slow path to avoid races and use-after-free for the USB FS interface.

@emaste: Yes, I can split the diff into two parts like you suggest.

Apr 4 2023, 2:49 PM
hselasky added inline comments to D39373: usb(4): Separate the fast path and the slow path to avoid races and use-after-free for the USB FS interface.
Apr 4 2023, 2:48 PM