Page MenuHomeFreeBSD
Feed Advanced Search

Jun 28 2019

hselasky added inline comments to D20789: Use DEVICE memory instead of UNCACHEABLE on aarch64 in LinuxKPI ioremap.
Jun 28 2019, 8:48 AM · arm64

Jun 26 2019

hselasky committed rS349410: Only call libusb_hotplug_enumerate() once from libusb_hotplug_register_callback….
Only call libusb_hotplug_enumerate() once from libusb_hotplug_register_callback…
Jun 26 2019, 12:05 PM
hselasky committed rS349409: Fix support for LIBUSB_HOTPLUG_ENUMERATE in libusb. Currently all.
Fix support for LIBUSB_HOTPLUG_ENUMERATE in libusb. Currently all
Jun 26 2019, 11:28 AM

Jun 25 2019

hselasky added a reviewer for D20109: Need to wait for epoch callbacks to complete before detaching network interface: markj.
Jun 25 2019, 9:24 PM
hselasky committed rS349370: Fix parsing of corrupt data in usbdump(8). Check that the transfer.
Fix parsing of corrupt data in usbdump(8). Check that the transfer
Jun 25 2019, 1:15 PM
hselasky committed rS349369: Convert all IPv4 and IPv6 multicast memberships into using a STAILQ.
Convert all IPv4 and IPv6 multicast memberships into using a STAILQ
Jun 25 2019, 11:55 AM
hselasky closed D20080: Convert all IPv4 and IPv6 multicast memberships into using a STAILQ() instead of an array.
Jun 25 2019, 11:54 AM
hselasky committed rS349368: Free all allocated unit IDs in cuse(3) after the client character.
Free all allocated unit IDs in cuse(3) after the client character
Jun 25 2019, 11:46 AM
hselasky committed rS349367: Fix for deadlock situation in cuse(3).
Fix for deadlock situation in cuse(3)
Jun 25 2019, 11:43 AM

Jun 21 2019

D20719: LinuxKPI rcu list additions is now accepted and ready to land.

Looks good.

Jun 21 2019, 6:35 PM
hselasky added inline comments to D20719: LinuxKPI rcu list additions.
Jun 21 2019, 4:41 PM
D20718: Add atomic_long_sub in linuxkpi is now accepted and ready to land.

Don't forget to MFC.

Jun 21 2019, 3:50 PM

Jun 20 2019

hselasky added a comment to D20080: Convert all IPv4 and IPv6 multicast memberships into using a STAILQ() instead of an array.

Remove unused epoch contexts as suggested by @markj .

Jun 20 2019, 5:16 AM

Jun 19 2019

hselasky added a comment to D20080: Convert all IPv4 and IPv6 multicast memberships into using a STAILQ() instead of an array.

Please ACK. Patch will be submitted tomorrow after some additional build testing.

Jun 19 2019, 8:42 PM
D20080: Convert all IPv4 and IPv6 multicast memberships into using a STAILQ() instead of an array now requires review to proceed.

Fix naming of multicast foreach.

Jun 19 2019, 8:41 PM
hselasky added inline comments to D20080: Convert all IPv4 and IPv6 multicast memberships into using a STAILQ() instead of an array.
Jun 19 2019, 8:39 PM

Jun 18 2019

hselasky created D20682: Implement refcounting for lock objects.
Jun 18 2019, 10:47 AM
hselasky added a comment to D20080: Convert all IPv4 and IPv6 multicast memberships into using a STAILQ() instead of an array.

Address comments from @markj .

Jun 18 2019, 7:27 AM
hselasky added a comment to D20080: Convert all IPv4 and IPv6 multicast memberships into using a STAILQ() instead of an array.

Address comments from @markj .

Jun 18 2019, 7:26 AM

Jun 17 2019

D20630: ACPI support for USB , mainly hub. is now accepted and ready to land.

Fix the last few comments I've added and this is ready to go.

Jun 17 2019, 6:58 PM
hselasky added inline comments to D20630: ACPI support for USB , mainly hub..
Jun 17 2019, 6:55 PM

Jun 14 2019

hselasky added inline comments to D20630: ACPI support for USB , mainly hub..
Jun 14 2019, 9:55 AM

Jun 13 2019

hselasky added inline comments to D20630: ACPI support for USB , mainly hub..
Jun 13 2019, 4:22 PM
hselasky added a comment to D20630: ACPI support for USB , mainly hub..

^^^ only .c and .h files

Jun 13 2019, 4:19 PM
hselasky added a comment to D20630: ACPI support for USB , mainly hub..
  1. This script should be run on every USB C- and H- file before
  2. commit to enforce correct style.

#

Jun 13 2019, 4:19 PM

Jun 12 2019

hselasky added a comment to D20080: Convert all IPv4 and IPv6 multicast memberships into using a STAILQ() instead of an array.

@markj : Ping

Jun 12 2019, 12:05 PM

Jun 11 2019

hselasky committed rS348896: MFC r348797:.
MFC r348797:
Jun 11 2019, 8:54 AM
hselasky committed rS348895: MFC r348797:.
MFC r348797:
Jun 11 2019, 8:53 AM
hselasky committed rS348894: MFC r348797:.
MFC r348797:
Jun 11 2019, 8:53 AM
hselasky committed rS348893: MFC r348797:.
MFC r348797:
Jun 11 2019, 8:50 AM

Jun 10 2019

hselasky committed rS348858: MFC r348631:.
MFC r348631:
Jun 10 2019, 1:39 PM
hselasky committed rS348857: MFC r348631:.
MFC r348631:
Jun 10 2019, 1:37 PM
hselasky committed rS348856: MFC r348631:.
MFC r348631:
Jun 10 2019, 1:37 PM
hselasky committed rS348855: MFC r348631:.
MFC r348631:
Jun 10 2019, 1:36 PM
hselasky committed rS348853: MFC r348604:.
MFC r348604:
Jun 10 2019, 1:17 PM
hselasky committed rS348852: MFC r348604:.
MFC r348604:
Jun 10 2019, 1:17 PM
hselasky committed rS348851: MFC r348604:.
MFC r348604:
Jun 10 2019, 1:16 PM

Jun 9 2019

hselasky committed rS348832: MFC r348603:.
MFC r348603:
Jun 9 2019, 8:22 AM
hselasky committed rS348831: MFC r348603:.
MFC r348603:
Jun 9 2019, 8:19 AM
hselasky committed rS348830: MFC r348603:.
MFC r348603:
Jun 9 2019, 8:18 AM

Jun 8 2019

hselasky committed rS348797: Fix for reading the configuration descriptor in libusb. Catch invalid.
Fix for reading the configuration descriptor in libusb. Catch invalid
Jun 8 2019, 9:34 AM

Jun 6 2019

hselasky added inline comments to D20293: ucom(4): synchronously execute param changes.
Jun 6 2019, 6:53 PM
hselasky added a comment to D20293: ucom(4): synchronously execute param changes.
In D20293#443794, @ian wrote:

I understand you want synchronous behaviour, but how about implementing a drain command, which is called unlocked from the TTY layer, just before the end of the IOCTL return. Won't that fix the problems you see?

I don't understand what you're saying at all. It's just a normal sane expectation that open/close/read/write/ioctl calls all behave synchronously, and it's especially imporant in serial comms where there is interaction between the read/write data and the other calls that configure the comms or manipulate line state. Also, I've never seen anything documented in relation to ttydevsw that even hints that it's okay to return before the action is complete.

Jun 6 2019, 6:52 PM
hselasky added a comment to D20293: ucom(4): synchronously execute param changes.

I understand you want synchronous behaviour, but how about implementing a drain command, which is called unlocked from the TTY layer, just before the end of the IOCTL return. Won't that fix the problems you see?

Jun 6 2019, 6:33 PM
hselasky updated the diff for D20080: Convert all IPv4 and IPv6 multicast memberships into using a STAILQ() instead of an array.

Update as per @markj 's comment.

Jun 6 2019, 3:17 PM
hselasky updated the diff for D20080: Convert all IPv4 and IPv6 multicast memberships into using a STAILQ() instead of an array.

Fix for buildworld.

Jun 6 2019, 2:23 PM
hselasky added a comment to D20109: Need to wait for epoch callbacks to complete before detaching network interface.

Ping.

Jun 6 2019, 10:06 AM
hselasky added inline comments to D20080: Convert all IPv4 and IPv6 multicast memberships into using a STAILQ() instead of an array.
Jun 6 2019, 10:02 AM
hselasky updated the diff for D20080: Convert all IPv4 and IPv6 multicast memberships into using a STAILQ() instead of an array.

Fix some style nits pointed out by @markj .

Jun 6 2019, 9:57 AM
hselasky updated the diff for D20080: Convert all IPv4 and IPv6 multicast memberships into using a STAILQ() instead of an array.

Address comments from @markj .

Jun 6 2019, 9:51 AM
hselasky added inline comments to D20080: Convert all IPv4 and IPv6 multicast memberships into using a STAILQ() instead of an array.
Jun 6 2019, 9:47 AM

Jun 5 2019

hselasky added a comment to D20080: Convert all IPv4 and IPv6 multicast memberships into using a STAILQ() instead of an array.

@markj: I will have a look at your comments and respond with a new patch. I'm currently a bit busy.

Jun 5 2019, 11:41 AM

Jun 4 2019

hselasky committed rS348631: In usb(4) fix a lost completion event issue towards libusb(3). It may happen.
In usb(4) fix a lost completion event issue towards libusb(3). It may happen
Jun 4 2019, 4:40 PM
hselasky committed rS348604: In xhci(4) there is no stream ID in the completion TRB..
In xhci(4) there is no stream ID in the completion TRB.
Jun 4 2019, 9:01 AM
hselasky committed rS348603: Make sure the DMA tags get freed in mlx5en(4)..
Make sure the DMA tags get freed in mlx5en(4).
Jun 4 2019, 8:06 AM
hselasky added inline comments to D20080: Convert all IPv4 and IPv6 multicast memberships into using a STAILQ() instead of an array.
Jun 4 2019, 7:04 AM

Jun 3 2019

hselasky accepted D20502: Allocate wired pages in linux_alloc_pages()..

Looks good.

Jun 3 2019, 5:08 PM

May 29 2019

hselasky added a comment to D19622: Fix panic in network stack due memory use after free in relation to fragmented packets.

@jtl: Given that we don't have a significant number of panics in this area, I don't see a problem just freeing the fragments. I.E. the current behaviour leads to a panic if a fragment is leftover from an interface. This is only done when interfaces are destroyed and does not affect LINK-flapping.

May 29 2019, 9:25 AM
hselasky added a comment to D19622: Fix panic in network stack due memory use after free in relation to fragmented packets.

@kbowling : This is what the previous version of this patch does.

May 29 2019, 9:22 AM
hselasky added a comment to D19622: Fix panic in network stack due memory use after free in relation to fragmented packets.

@jtl: Can you please comment?

May 29 2019, 7:34 AM

May 25 2019

hselasky added a comment to D20109: Need to wait for epoch callbacks to complete before detaching network interface.

@jtl: Imagine the following scenario.

May 25 2019, 10:00 AM
hselasky updated the diff for D20080: Convert all IPv4 and IPv6 multicast memberships into using a STAILQ() instead of an array.

Address comment from @markj .

May 25 2019, 9:44 AM
hselasky updated the diff for D20080: Convert all IPv4 and IPv6 multicast memberships into using a STAILQ() instead of an array.

Address comments from @markj .

May 25 2019, 9:41 AM
hselasky added inline comments to D20080: Convert all IPv4 and IPv6 multicast memberships into using a STAILQ() instead of an array.
May 25 2019, 9:40 AM

May 24 2019

hselasky added inline comments to D20080: Convert all IPv4 and IPv6 multicast memberships into using a STAILQ() instead of an array.
May 24 2019, 10:45 PM
hselasky abandoned D18041: LKPI updates for drm-v4.18.

Already committed or no longer applicable.

May 24 2019, 10:42 PM
hselasky commandeered D18041: LKPI updates for drm-v4.18.
May 24 2019, 10:41 PM
hselasky added a comment to D20109: Need to wait for epoch callbacks to complete before detaching network interface.

@jtl: The refcount approach is not insufficient. We can do both ways, only that the synchronous approach is more safe-playing in my opinion and it is not that expensive and doesn't need additional checking in the multicast deferred destruction code-path for NULL pointers and destroyed resources, which the refcount approach will require.

May 24 2019, 10:41 PM
hselasky updated the diff for D19622: Fix panic in network stack due memory use after free in relation to fragmented packets.

Fix according to input from @jtl . Set rcvif to NULL when a network interface vanishes.

May 24 2019, 1:23 PM
hselasky added a comment to D18041: LKPI updates for drm-v4.18.

Is this patch still relevant?

May 24 2019, 12:16 PM
hselasky added a comment to D20293: ucom(4): synchronously execute param changes.

The part that runs off the USB process threads is fine. But what contexts can ucom_param() be called from. Is there any chance of race here?

May 24 2019, 11:44 AM
hselasky added a comment to D20293: ucom(4): synchronously execute param changes.

What happens if there are two threads calling the function where you drop the lock?

May 24 2019, 7:04 AM

May 23 2019

hselasky abandoned D20097: Fix regression issues after r346645 in the LinuxKPI.

Issues appear resolved.

May 23 2019, 2:00 PM

May 22 2019

hselasky accepted D20353: ipheth.4: Exaplain how to manually configure USB tethering on an Apple device.
May 22 2019, 10:38 AM
hselasky added a comment to D20353: ipheth.4: Exaplain how to manually configure USB tethering on an Apple device.

Should you mention something about permanent quirks in /boot/loader.conf via usb_quirk.ko ?

May 22 2019, 10:17 AM
hselasky accepted D20117: Restructure mbuf send tags to provide stronger guarantees..
May 22 2019, 7:41 AM

May 21 2019

hselasky added a comment to D20320: linuxkpi: allow M_EXEC flag for __vmalloc().

The LinuxKPI is there to be able to compile 95% of the linux code :-) The rest must be patched.

May 21 2019, 8:01 AM

May 20 2019

hselasky added a comment to D20320: linuxkpi: allow M_EXEC flag for __vmalloc().

I mean just add a new function for these special allocations and then patch the Linux code. That way we don't need to evaluate the "other" argument for __vmalloc().

May 20 2019, 10:44 AM
hselasky added a comment to D20320: linuxkpi: allow M_EXEC flag for __vmalloc().

Is this variant frequently used? Why not create a new inline function for this: __vmalloc_exec() ?

May 20 2019, 7:45 AM

May 18 2019

hselasky accepted D20293: ucom(4): synchronously execute param changes.

Just make sure that ucom_param() won't race when you drop the lock.

May 18 2019, 10:25 AM

May 17 2019

hselasky added a comment to D20109: Need to wait for epoch callbacks to complete before detaching network interface.

@glebius: Multicast destruction is deferred. When we destroy a multicast address we need to call the if_ioctl of the belonging network interface to remove any multicast addresses. That's the problem. I think draining is a good way to implement a safe solution instead of using refcounts. Then we ensure that the ifnet is in a certain state when the multicast destruction callbacks are invoked.

May 17 2019, 6:14 AM

May 16 2019

hselasky committed rS347883: MFC r347325:.
MFC r347325:
May 16 2019, 6:33 PM
hselasky committed rS347881: MFC r347324:.
MFC r347324:
May 16 2019, 6:29 PM
hselasky committed rS347880: MFC r347323:.
MFC r347323:
May 16 2019, 6:28 PM
hselasky committed rS347879: MFC r347322:.
MFC r347322:
May 16 2019, 6:27 PM
hselasky committed rS347877: MFC r347321:.
MFC r347321:
May 16 2019, 6:26 PM
hselasky committed rS347876: MFC r347320:.
MFC r347320:
May 16 2019, 6:25 PM
hselasky committed rS347875: MFC r347319:.
MFC r347319:
May 16 2019, 6:25 PM
hselasky committed rS347874: MFC r347318:.
MFC r347318:
May 16 2019, 6:24 PM
hselasky committed rS347873: MFC r347317:.
MFC r347317:
May 16 2019, 6:23 PM
hselasky committed rS347872: MFC r347316:.
MFC r347316:
May 16 2019, 6:23 PM
hselasky committed rS347871: MFC r347315:.
MFC r347315:
May 16 2019, 6:22 PM
hselasky committed rS347870: MFC r347314:.
MFC r347314:
May 16 2019, 6:21 PM
hselasky committed rS347869: MFC r347313:.
MFC r347313:
May 16 2019, 6:20 PM
hselasky committed rS347868: MFC r347312:.
MFC r347312:
May 16 2019, 6:19 PM
hselasky committed rS347867: MFC r347311:.
MFC r347311:
May 16 2019, 6:18 PM
hselasky committed rS347866: MFC r347310:.
MFC r347310:
May 16 2019, 6:17 PM
hselasky committed rS347865: MFC r347309:.
MFC r347309:
May 16 2019, 6:17 PM
hselasky committed rS347864: MFC r347308:.
MFC r347308:
May 16 2019, 6:16 PM
hselasky committed rS347863: MFC r347307:.
MFC r347307:
May 16 2019, 6:13 PM