Page MenuHomeFreeBSD

USBExperimental
ActivePublic

Details

Description

Groups related to USB stuff.

Recent Activity

Mon, Aug 17

guest-seuros abandoned D58869: usb: skip root_mount_hold when root is not on USB.
Mon, Aug 17, 12:49 PM · USB
imp requested changes to D58869: usb: skip root_mount_hold when root is not on USB.

I think this is generally a really bad idea.

> kenv | grep vfs
vfs.root.mountfrom="ufs:/dev/ada0p2"
vfs.root.mountfrom.options="rw"

So we almost always have a : in the path, since the boot loader adds it.
And I think it breaks asking for a root device (say if the root is supposed to be nda0, but that's broken, we may not have the thumb drive you plugged in detected before we get to mountroot prompt).
And many people have zpools on usb, even when booting from ada, so their pools will disappear if the boot path is faster.

Mon, Aug 17, 12:46 PM · USB
guest-seuros added a comment to D58869: usb: skip root_mount_hold when root is not on USB.

the root filesystem is on SATA, NVMe, or ZFS (which are never USB).

That's a bit of a bold claim because ZFS can use USB devices. Is it smart? Hell no. Is it possible? Yes. Also, you would need to deal with all GEOM layers, e.g., graid, gmirror, etc.

I understand what you're trying to solve, but I'm a bit skeptical of the approach being taken given how much things can be stacked on top of one another in FreeBSD from a storage perspective between cam (ctl anyone?), geom, and ZFS.

Mon, Aug 17, 12:16 PM · USB
guest-seuros updated the diff for D58869: usb: skip root_mount_hold when root is not on USB.

adress comments

Mon, Aug 17, 12:13 PM · USB

Sun, Aug 16

ngie added a comment to D58869: usb: skip root_mount_hold when root is not on USB.

Back in the day this also used to be a flat sleep for all of cam.. it was worse than it is currently.
I feel like better dependency tracking needs to be done to avoid this behavior.
Also... this might be deal with/benefit ukbd as back in the good old days (when there was a flat sleep), the mount root prompt would be unusable with USB keyboards, leaving the sysadmin with a wedged computer terminal asking for a root device and not being able to actually input anything on the keyboard to remedy that situation. Wash-rinse-repeat and the reboot cycle increases because power cycling sometimes reinitializes firmware and has to respin up drives in JBODs, etc (especially in the legacy BIOS and old UEFI days).
So yes, this is an inconvenience, but I would temper removing this based only on the names of functions, etc, alone.
Please go through git blame and see whether or not the change that added this code (functionally, not restylized it) was dealing with the case we think it should be dealing with (quiescing USB root devices) instead of dealing with the vfs_mountroot prompt.

Sun, Aug 16, 11:57 PM · USB
ngie added a comment to D58869: usb: skip root_mount_hold when root is not on USB.

Back in the day this also used to be a flat sleep for all of cam.. it was worse than it is currently.
I feel like better dependency tracking needs to be done to avoid this behavior.
Also... this might be deal with/benefit ukbd as back in the good old days (when there was a flat sleep), the mount root prompt would be unusable with USB keyboards, leaving the sysadmin with a wedged computer terminal asking for a root device and not being able to actually input anything on the keyboard to remedy that situation. Wash-rinse-repeat and the reboot cycle increases because power cycling sometimes reinitializes firmware and has to respin up drives in JBODs, etc (especially in the legacy BIOS and old UEFI days).
So yes, this is an inconvenience, but I would temper removing this based only on the names of functions, etc, alone.
Please go through git blame and see whether or not the change that added this code (functionally, not restylized it) was dealing with the case we think it should be dealing with (quiescing USB root devices) instead of dealing with the vfs_mountroot prompt.

Sun, Aug 16, 11:49 PM · USB
ngie added a comment to D58869: usb: skip root_mount_hold when root is not on USB.

the root filesystem is on SATA, NVMe, or ZFS (which are never USB).

Sun, Aug 16, 11:31 PM · USB
guest-seuros added a project to D58869: usb: skip root_mount_hold when root is not on USB: USB.
Sun, Aug 16, 6:34 PM · USB

Thu, Aug 13

emaste added inline comments to D49453: USB4 initial work on suspend routine.
Thu, Aug 13, 6:20 PM · USB
ngie added a comment to D49453: USB4 initial work on suspend routine.

The changes seem reasonable. My general concerns with the change are just related to documentation, follow up and potential future collaboration (especially if I start helping out in this space in the next few months).

Thu, Aug 13, 6:10 PM · USB
obiwac added a reviewer for D49453: USB4 initial work on suspend routine: ngie.
Thu, Aug 13, 6:22 AM · USB
obiwac updated the diff for D49453: USB4 initial work on suspend routine.

Rebase

Thu, Aug 13, 6:20 AM · USB

Wed, Aug 12

obiwac closed D49452: USB4 host reset (& writing to router config space).
Wed, Aug 12, 9:53 PM · drivers, USB
emaste updated subscribers of D49453: USB4 initial work on suspend routine.
Wed, Aug 12, 5:16 PM · USB
emaste updated subscribers of D49452: USB4 host reset (& writing to router config space).
Wed, Aug 12, 5:16 PM · drivers, USB
emaste updated subscribers of D49454: USB4 acknowledge hotplug events.
Wed, Aug 12, 5:16 PM · USB

Tue, Aug 11

guest-seuros added a comment to D58367: video: add generic video(4) capture framework.

We can and should add every format we need.

Tue, Aug 11, 8:34 PM · USB, drivers
monwarez_mailoo.org added a comment to D58367: video: add generic video(4) capture framework.

Will there be more format as those from /usr/local/include/linux/videodev2.h ?

Tue, Aug 11, 8:22 PM · USB, drivers

Sun, Aug 9

adrian closed D58503: uvideo: do not reject unsupported pixel formats.
Sun, Aug 9, 5:02 PM · USB, drivers
adrian closed D58501: uvideo: limit isochronous transfers to 32 frames.
Sun, Aug 9, 5:02 PM · USB, drivers
adrian closed D58367: video: add generic video(4) capture framework.
Sun, Aug 9, 5:02 PM · USB, drivers
adrian closed D58368: uvideo: convert to video(4) framework.
Sun, Aug 9, 5:02 PM · USB, drivers
adrian accepted D58367: video: add generic video(4) capture framework.
Sun, Aug 9, 4:47 PM · USB, drivers
bapt accepted D58503: uvideo: do not reject unsupported pixel formats.
Sun, Aug 9, 1:45 PM · USB, drivers

Tue, Jul 28

guest-seuros added inline comments to D58367: video: add generic video(4) capture framework.
Tue, Jul 28, 9:09 PM · USB, drivers
guest-seuros updated the diff for D58367: video: add generic video(4) capture framework.

address comments

Tue, Jul 28, 9:06 PM · USB, drivers
ziaee added a comment to D58367: video: add generic video(4) capture framework.

Sorry I'm late, thanks for your patience.

Tue, Jul 28, 8:14 PM · USB, drivers
adrian accepted D58503: uvideo: do not reject unsupported pixel formats.
Tue, Jul 28, 7:56 PM · USB, drivers
adrian accepted D58367: video: add generic video(4) capture framework.
Tue, Jul 28, 7:54 PM · USB, drivers
adrian accepted D58368: uvideo: convert to video(4) framework.

tested on my c720 logitech usb camera. it's .. upside down in vlc for some reason, works in browser. i'll test it with other cameras but i think we can / should iterate on this in head post refactor.

Tue, Jul 28, 7:53 PM · USB, drivers
guest-seuros added projects to D58501: uvideo: limit isochronous transfers to 32 frames: drivers, USB.
Tue, Jul 28, 7:34 PM · USB, drivers
guest-seuros added a project to D58503: uvideo: do not reject unsupported pixel formats: USB.
Tue, Jul 28, 7:33 PM · USB, drivers
guest-seuros updated the diff for D58368: uvideo: convert to video(4) framework.

rebase

Tue, Jul 28, 12:04 AM · USB, drivers
guest-seuros updated the diff for D58367: video: add generic video(4) capture framework.

rebase

Tue, Jul 28, 12:03 AM · USB, drivers

Mon, Jul 27

guest-seuros updated the diff for D58368: uvideo: convert to video(4) framework.

rebase

Mon, Jul 27, 4:27 PM · USB, drivers
guest-seuros updated the diff for D58367: video: add generic video(4) capture framework.

use proper device structure

Mon, Jul 27, 4:17 PM · USB, drivers
manu requested changes to D58367: video: add generic video(4) capture framework.
Mon, Jul 27, 10:31 AM · USB, drivers

Sun, Jul 26

guest-seuros updated the diff for D58368: uvideo: convert to video(4) framework.

rebase

Sun, Jul 26, 7:53 PM · USB, drivers
guest-seuros updated the diff for D58367: video: add generic video(4) capture framework.

rebase

Sun, Jul 26, 7:52 PM · USB, drivers

Sat, Jul 25

aokblast added inline comments to D54218: Introduce libusb20_dev_open_with_flags for shared vs. exclusive access..
Sat, Jul 25, 1:37 PM · USB
aokblast added a comment to D54218: Introduce libusb20_dev_open_with_flags for shared vs. exclusive access..

usbconfig stopped reporting my webcam and fingerprint reader. Instead I get 'usbconfig: could not open device: Bad file descriptor'. Problem goes away when these changes are reverted. A very strange side note: libusb20_int.h is missing from base.txz for 15.1-RELEASE (but is in src.txz). I think the problem is I'm testing against 15.1-RELEASE which is too far behind current. I need to find some hardware onto which I can run current.

Sat, Jul 25, 1:37 PM · USB
adrian closed D58432: ietp: guard iicbus_get_addr with devclass check.
Sat, Jul 25, 2:02 AM · drivers, USB

Fri, Jul 24

markj added inline comments to D58367: video: add generic video(4) capture framework.
Fri, Jul 24, 7:17 PM · USB, drivers
adrian added a reviewer for D58432: ietp: guard iicbus_get_addr with devclass check: wulf.
Fri, Jul 24, 2:29 PM · drivers, USB
adrian accepted D58432: ietp: guard iicbus_get_addr with devclass check.
Fri, Jul 24, 2:29 PM · drivers, USB
adrian added projects to D58432: ietp: guard iicbus_get_addr with devclass check: USB, drivers.
Fri, Jul 24, 2:28 PM · drivers, USB
markj added inline comments to D58367: video: add generic video(4) capture framework.
Fri, Jul 24, 2:10 PM · USB, drivers
bapt added a reviewer for D58367: video: add generic video(4) capture framework: manu.
Fri, Jul 24, 5:02 AM · USB, drivers
adrian added a reviewer for D58367: video: add generic video(4) capture framework: markj.

@markj would you mind eyeballing the mmap / pager stuff here? seuros is looking to refactor uvideo into a generic video layer and then drivers that implement this video API. Since uvideo got a bunch of pager/mmap related changes recently I'd like to make sure this gets done too.

Fri, Jul 24, 4:36 AM · USB, drivers
adrian added a reviewer for D58367: video: add generic video(4) capture framework: bapt.
Fri, Jul 24, 4:35 AM · USB, drivers