Page MenuHomeFreeBSD
Feed Advanced Search

Sep 9 2023

archimedes.gaviola_gmail.com added a comment to D41798: udl(4) patch for SIIG USB 2.0 DVI/VGA Pro support.

Archimedes, can you confirm that desired Git author info is Archimedes Gaviola <archimedes.gaviola@gmail.com>

Sep 9 2023, 5:27 PM
archimedes.gaviola_gmail.com added a comment to D41798: udl(4) patch for SIIG USB 2.0 DVI/VGA Pro support.

The next time you have a patch to upload to Phabricator please generate with full context -- see detailed instructions at https://wiki.freebsd.org/Phabricator

Sep 9 2023, 5:27 PM
archimedes.gaviola_gmail.com added a comment to D41798: udl(4) patch for SIIG USB 2.0 DVI/VGA Pro support.

For review.

Sep 9 2023, 2:43 PM
archimedes.gaviola_gmail.com updated the diff for D41798: udl(4) patch for SIIG USB 2.0 DVI/VGA Pro support.

This patch will add the support of the SIIG USB 2.0 DVI/VGA Pro video device in the udl(4) USB driver and its corresponding manpage. The chipset is based on DisplayLink DL-195. Please see details here https://lists.freebsd.org/archives/freebsd-usb/2023-September/001174.html. This patch has been tested in 14.0-ALPHA4 and 15.0-CURRENT.

Sep 9 2023, 2:41 PM
archimedes.gaviola_gmail.com requested review of D41798: udl(4) patch for SIIG USB 2.0 DVI/VGA Pro support.
Sep 9 2023, 1:59 PM

May 17 2022

archimedes.gaviola_gmail.com added a comment to D35146: USB Hub Overcurrent (usb_hub.c.diff).

I wonder why there is an overcurrent event happening in the first place ....

My theory is that overcurrent occurs due to USB port power pins first contact with the USB device (PL2303) power pins. There is an abrupt outgoing current happening during this first contact of pins and after some period it slows down and normalized since the power pins are already in contact with each other.

As a background, here's the Prolific PL2303 device that I'm talking about https://filebin.net/g8rj54rzkj5q7kd0, the device showing "VFD Display PD220" which is currently connected to one of the USB ports of my RPi 3B.

May 17 2022, 3:49 AM

May 16 2022

archimedes.gaviola_gmail.com added a comment to D35146: USB Hub Overcurrent (usb_hub.c.diff).

Hans, can you further explain this "overcurrent not set"? I'm reading the USB 2.0 specifications here http://sdpha2.ucsd.edu/Lab_Equip_Manuals/usb_20.pdf on the last paragraph on page 339 with continuation on page 340.

Did you find an answer?

May 16 2022, 2:59 PM
archimedes.gaviola_gmail.com added a comment to D35146: USB Hub Overcurrent (usb_hub.c.diff).

I wonder why there is an overcurrent event happening in the first place ....

May 16 2022, 2:44 PM
archimedes.gaviola_gmail.com added a comment to D35146: USB Hub Overcurrent (usb_hub.c.diff).

I see.

Can you upload the patch with context:

diff -U 999999 sys/dev/usb/usb_hub.c.orig sys/dev/usb/usb_hub.c > usb.diff

--HPS

May 16 2022, 2:35 PM
archimedes.gaviola_gmail.com updated the diff for D35146: USB Hub Overcurrent (usb_hub.c.diff).

Changes:

  • usb_pause_mtx() function is placed after UHF_PORT_POWER.
  • diff enabled in more context output (diff -U 999999)
May 16 2022, 2:34 PM
archimedes.gaviola_gmail.com added a comment to D35146: USB Hub Overcurrent (usb_hub.c.diff).

I'll get back to you tomorrow. Not working today :-)

May 16 2022, 12:45 AM

May 13 2022

archimedes.gaviola_gmail.com added inline comments to D35146: USB Hub Overcurrent (usb_hub.c.diff).
May 13 2022, 5:07 AM
archimedes.gaviola_gmail.com added a comment to D35146: USB Hub Overcurrent (usb_hub.c.diff).

I suggest you add a counter which resets on overcurrent not set, and counts to 3 before giving up power on.

May 13 2022, 3:49 AM
archimedes.gaviola_gmail.com added inline comments to D35146: USB Hub Overcurrent (usb_hub.c.diff).
May 13 2022, 3:27 AM

May 10 2022

archimedes.gaviola_gmail.com added a comment to D35146: USB Hub Overcurrent (usb_hub.c.diff).

I suggest you add a counter which resets on overcurrent not set, and counts to 3 before giving up power on.

We don't want to cause a fire :-)

Oh my... this is noted. Let me figure-out the code again and revise.

May 10 2022, 3:13 AM

May 9 2022

archimedes.gaviola_gmail.com added a comment to D35146: USB Hub Overcurrent (usb_hub.c.diff).

I suggest you add a counter which resets on overcurrent not set, and counts to 3 before giving up power on.

We don't want to cause a fire :-)

May 9 2022, 11:30 AM
archimedes.gaviola_gmail.com added a comment to D35146: USB Hub Overcurrent (usb_hub.c.diff).

Please update your patch! There is an "update diff" selection in the "menu".

BTW: You should use:

usb_port_powerup_delay

from

usb_debug.h

And not the XXX_spec value.

May 9 2022, 11:10 AM
archimedes.gaviola_gmail.com updated the diff for D35146: USB Hub Overcurrent (usb_hub.c.diff).

Added sleep in the code before turning-on the power.

May 9 2022, 11:05 AM

May 7 2022

archimedes.gaviola_gmail.com requested review of D35146: USB Hub Overcurrent (usb_hub.c.diff).
May 7 2022, 2:30 PM