[Kernel-packages] [Bug 1861070] Re: Raspberry Pi 4B: USB OTG is not working

2022-05-16 Thread LS
Thanks - I thought it was related - I have opened a new ticket:
https://bugs.launchpad.net/ubuntu/+bug/1973648

-- 
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux-raspi2 in Ubuntu.
https://bugs.launchpad.net/bugs/1861070

Title:
  Raspberry Pi 4B: USB OTG is not working

Status in linux-raspi package in Ubuntu:
  Fix Released
Status in linux-raspi2 package in Ubuntu:
  Fix Released
Status in linux-raspi2 source package in Eoan:
  Fix Released
Status in linux-raspi source package in Focal:
  Fix Released

Bug description:
  [Impact]
  On the RPI4B board, the usb-c power port could also work as a USB
  OTG mode, but we set the dwc2 driver to the host mode
  unconditionally, now set it to dual_role mode, then it could work
  in host/otg/peripheal mode.

  [Fix]
  Set USB_DWC2_DUAL_ROLE=y, USB_DWC2_HOST=n

  
  [Test Case]
  set the dtoverlay=dwc2,dr_mode=[otg|peripheral] in the config.txt,
  and isnmod the g_ether or g_cdc, on the host machine, we could see
  RPI4B work as a usb device.

  Because physical port limitation, could test dr_mode=host.

  [Regression Risk]
  Low, our eoan kernel choose dwc_otg driver for this port by default,
  very very few users will choose dwc2 driver, and the dwc2 driver is
  not enabled by default in our kernel.

  And bug reporter and I already tested that the peripheral mode works
  after this change.


  I am using Raspberry Pi 4B (4GB) and want to make use of the OTG
  functionality (g_ether).  I cross checked with Raspbian to make sure
  it is not a hardware issue.  Extract from dmesg of Ubuntu 19.10.1 with
  latest updates applied as of Jan 26th, 2020 via "apt-get update" and
  "apt-get full-upgrade":

  ...
  [1.514262] dwc_otg: version 3.00a 10-AUG-2012 (platform bus)
  [1.517365] dwc_otg: FIQ enabled
  [1.517376] dwc_otg: NAK holdoff enabled
  [1.517386] dwc_otg: FIQ split-transaction FSM enabled
  [1.517399] Module dwc_common_port init
  ...
  [6.358332] dwc2 fe98.usb: fe98.usb supply vusb_d not found, using 
dummy regulator
  [6.358388] dwc2 fe98.usb: fe98.usb supply vusb_a not found, using 
dummy regulator
  [6.358545] dwc2 fe98.usb: Configuration mismatch. dr_mode forced to 
host
  [6.409098] dwc2 fe98.usb: DWC OTG Controller
  [6.409399] dwc2 fe98.usb: new USB bus registered, assigned bus number 
3
  [6.409432] dwc2 fe98.usb: irq 23, io mem 0xfe98
  ...
  [  111.796714] udc-core: couldn't find an available UDC - added [g_ether] to 
list of pending drivers

  I think it is that "Configuration mismatch. dr_mode forced to host"
  log entry telling me that the port is acting as HOST mode instead of
  OTG mode.  I have try putting these in usercfg.txt

  "dtoverlay=dwc2"
  "dtoverlay=dwc2,dr_mode=otg"
  "dtoverlay=dwc2,dr_mode=peripheral"

  and it will give the same result, no OTG functionality.

  On the same hardware running Raspbian Buster, it initialise successfully.  
Corresponding dmesg:
  ...
  [0.567531] dwc_otg: version 3.00a 10-AUG-2012 (platform bus)
  [0.570391] dwc_otg: FIQ enabled
  [0.570400] dwc_otg: NAK holdoff enabled
  [0.570409] dwc_otg: FIQ split-transaction FSM enabled
  [0.570421] Module dwc_common_port init
  ...
  [2.507634] dwc2 fe98.usb: fe98.usb supply vusb_d not found, using 
dummy regulator
  [2.511011] dwc2 fe98.usb: Linked as a consumer to regulator.0
  [2.514450] dwc2 fe98.usb: fe98.usb supply vusb_a not found, using 
dummy regulator
  [2.731860] dwc2 fe98.usb: dwc2_check_params: Invalid parameter lpm=1
  [2.735511] dwc2 fe98.usb: dwc2_check_params: Invalid parameter 
lpm_clock_gating=1
  [2.735522] dwc2 fe98.usb: dwc2_check_params: Invalid parameter besl=1
  [2.735533] dwc2 fe98.usb: dwc2_check_params: Invalid parameter 
hird_threshold_en=1
  [2.735582] dwc2 fe98.usb: EPs: 8, dedicated fifos, 4080 entries in 
SPRAM
  [2.752511] dwc2 fe98.usb: DWC OTG Controller
  [2.752554] dwc2 fe98.usb: new USB bus registered, assigned bus number 
3
  [2.752601] dwc2 fe98.usb: irq 36, io mem 0xfe98
  ...
  [2.848843] g_ether gadget: Ethernet Gadget, version: Memorial Day 2008
  [2.851601] g_ether gadget: g_ether ready
  [2.854580] dwc2 fe98.usb: bound driver g_ether
  [2.998525] dwc2 fe98.usb: new device is high-speed
  [3.075025] dwc2 fe98.usb: new device is high-speed
  [3.139338] dwc2 fe98.usb: new address 10
  [3.154010] g_ether gadget: high-speed config #1: CDC Ethernet (ECM)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux-raspi/+bug/1861070/+subscriptions


-- 
Mailing list: https://launchpad.net/~kernel-packages
Post to : kernel-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~kernel-packages
More help   : https://help.launchpad.net/ListHelp


[Kernel-packages] [Bug 1861070] Re: Raspberry Pi 4B: USB OTG is not working

2022-05-16 Thread LS
Hi

Running RPI4B with Jammy and cannot get the USB Ports to work.

uname -r output:
5.15.0-1006-raspi

dmesg output:

1.842505] dwc2 fe98.usb: supply vusb_d not found, using dummy regulator
[1.842665] dwc2 fe98.usb: supply vusb_a not found, using dummy regulator
[1.895846] dwc2 fe98.usb: DWC OTG Controller
[1.895873] dwc2 fe98.usb: new USB bus registered, assigned bus number 3
[1.895904] dwc2 fe98.usb: irq 21, io mem 0xfe98
[1.896089] usb usb3: Manufacturer: Linux 5.15.0-1006-raspi dwc2_hsotg

-- 
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux-raspi2 in Ubuntu.
https://bugs.launchpad.net/bugs/1861070

Title:
  Raspberry Pi 4B: USB OTG is not working

Status in linux-raspi package in Ubuntu:
  Fix Released
Status in linux-raspi2 package in Ubuntu:
  Fix Released
Status in linux-raspi2 source package in Eoan:
  Fix Released
Status in linux-raspi source package in Focal:
  Fix Released

Bug description:
  [Impact]
  On the RPI4B board, the usb-c power port could also work as a USB
  OTG mode, but we set the dwc2 driver to the host mode
  unconditionally, now set it to dual_role mode, then it could work
  in host/otg/peripheal mode.

  [Fix]
  Set USB_DWC2_DUAL_ROLE=y, USB_DWC2_HOST=n

  
  [Test Case]
  set the dtoverlay=dwc2,dr_mode=[otg|peripheral] in the config.txt,
  and isnmod the g_ether or g_cdc, on the host machine, we could see
  RPI4B work as a usb device.

  Because physical port limitation, could test dr_mode=host.

  [Regression Risk]
  Low, our eoan kernel choose dwc_otg driver for this port by default,
  very very few users will choose dwc2 driver, and the dwc2 driver is
  not enabled by default in our kernel.

  And bug reporter and I already tested that the peripheral mode works
  after this change.


  I am using Raspberry Pi 4B (4GB) and want to make use of the OTG
  functionality (g_ether).  I cross checked with Raspbian to make sure
  it is not a hardware issue.  Extract from dmesg of Ubuntu 19.10.1 with
  latest updates applied as of Jan 26th, 2020 via "apt-get update" and
  "apt-get full-upgrade":

  ...
  [1.514262] dwc_otg: version 3.00a 10-AUG-2012 (platform bus)
  [1.517365] dwc_otg: FIQ enabled
  [1.517376] dwc_otg: NAK holdoff enabled
  [1.517386] dwc_otg: FIQ split-transaction FSM enabled
  [1.517399] Module dwc_common_port init
  ...
  [6.358332] dwc2 fe98.usb: fe98.usb supply vusb_d not found, using 
dummy regulator
  [6.358388] dwc2 fe98.usb: fe98.usb supply vusb_a not found, using 
dummy regulator
  [6.358545] dwc2 fe98.usb: Configuration mismatch. dr_mode forced to 
host
  [6.409098] dwc2 fe98.usb: DWC OTG Controller
  [6.409399] dwc2 fe98.usb: new USB bus registered, assigned bus number 
3
  [6.409432] dwc2 fe98.usb: irq 23, io mem 0xfe98
  ...
  [  111.796714] udc-core: couldn't find an available UDC - added [g_ether] to 
list of pending drivers

  I think it is that "Configuration mismatch. dr_mode forced to host"
  log entry telling me that the port is acting as HOST mode instead of
  OTG mode.  I have try putting these in usercfg.txt

  "dtoverlay=dwc2"
  "dtoverlay=dwc2,dr_mode=otg"
  "dtoverlay=dwc2,dr_mode=peripheral"

  and it will give the same result, no OTG functionality.

  On the same hardware running Raspbian Buster, it initialise successfully.  
Corresponding dmesg:
  ...
  [0.567531] dwc_otg: version 3.00a 10-AUG-2012 (platform bus)
  [0.570391] dwc_otg: FIQ enabled
  [0.570400] dwc_otg: NAK holdoff enabled
  [0.570409] dwc_otg: FIQ split-transaction FSM enabled
  [0.570421] Module dwc_common_port init
  ...
  [2.507634] dwc2 fe98.usb: fe98.usb supply vusb_d not found, using 
dummy regulator
  [2.511011] dwc2 fe98.usb: Linked as a consumer to regulator.0
  [2.514450] dwc2 fe98.usb: fe98.usb supply vusb_a not found, using 
dummy regulator
  [2.731860] dwc2 fe98.usb: dwc2_check_params: Invalid parameter lpm=1
  [2.735511] dwc2 fe98.usb: dwc2_check_params: Invalid parameter 
lpm_clock_gating=1
  [2.735522] dwc2 fe98.usb: dwc2_check_params: Invalid parameter besl=1
  [2.735533] dwc2 fe98.usb: dwc2_check_params: Invalid parameter 
hird_threshold_en=1
  [2.735582] dwc2 fe98.usb: EPs: 8, dedicated fifos, 4080 entries in 
SPRAM
  [2.752511] dwc2 fe98.usb: DWC OTG Controller
  [2.752554] dwc2 fe98.usb: new USB bus registered, assigned bus number 
3
  [2.752601] dwc2 fe98.usb: irq 36, io mem 0xfe98
  ...
  [2.848843] g_ether gadget: Ethernet Gadget, version: Memorial Day 2008
  [2.851601] g_ether gadget: g_ether ready
  [2.854580] dwc2 fe98.usb: bound driver g_ether
  [2.998525] dwc2 fe98.usb: new device is high-speed
  [3.075025] dwc2 fe98.usb: new device is high-speed
  [3.139338] dwc2 fe98.usb: new address 10
  [

[Kernel-packages] [Bug 1956461] Re: Creative HD720p webcam doesn't work

2022-02-27 Thread LS
Can anyone tell me how come the patch is not integrated with the
mainline kernel yet?

-- 
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux in Ubuntu.
https://bugs.launchpad.net/bugs/1956461

Title:
  Creative HD720p webcam doesn't work

Status in linux package in Ubuntu:
  Confirmed

Bug description:
  After installing kernel 5.4.0-92 the webcam Creative HD720p stop to be seen 
by the system. There is no  /dev/vl4/ folder
  --- 
  ProblemType: Bug
  ApportVersion: 2.20.11-0ubuntu27.21
  Architecture: amd64
  AudioDevicesInUse:
   USERPID ACCESS COMMAND
   /dev/snd/controlC2:  piotr  3094 F pulseaudio
   /dev/snd/controlC0:  piotr  3094 F pulseaudio
  CasperMD5CheckResult: skip
  CurrentDesktop: X-Cinnamon
  DistroRelease: Linux Mint 20.2
  InstallationDate: Installed on 2020-06-07 (578 days ago)
  InstallationMedia: Linux Mint 19.3 "Tricia" - Release amd64 20191213
  IwConfig:
   enp3s0no wireless extensions.
   
   lono wireless extensions.
  MachineType: Gigabyte Technology Co., Ltd. H67MA-USB3-B3
  NonfreeKernelModules: nvidia_modeset nvidia
  Package: linux (not installed)
  ProcFB: 0 VESA VGA
  ProcKernelCmdLine: BOOT_IMAGE=/vmlinuz-5.4.0-92-generic 
root=UUID=3bdaa7b0-765c-41ce-b67a-deeeabde9c42 ro quiet splash
  ProcVersionSignature: Ubuntu 5.4.0-92.103-generic 5.4.157
  RelatedPackageVersions:
   linux-restricted-modules-5.4.0-92-generic N/A
   linux-backports-modules-5.4.0-92-generic  N/A
   linux-firmware1.187.24
  RfKill:
   
  Tags:  uma
  Uname: Linux 5.4.0-92-generic x86_64
  UpgradeStatus: No upgrade log present (probably fresh install)
  UserGroups: adm cdrom dip lpadmin plugdev sambashare sudo vboxusers
  _MarkForUpload: True
  dmi.bios.date: 10/27/2011
  dmi.bios.vendor: Award Software International, Inc.
  dmi.bios.version: F4
  dmi.board.name: H67MA-USB3-B3
  dmi.board.vendor: Gigabyte Technology Co., Ltd.
  dmi.board.version: x.x
  dmi.chassis.type: 3
  dmi.chassis.vendor: Gigabyte Technology Co., Ltd.
  dmi.modalias: 
dmi:bvnAwardSoftwareInternational,Inc.:bvrF4:bd10/27/2011:svnGigabyteTechnologyCo.,Ltd.:pnH67MA-USB3-B3:pvr:rvnGigabyteTechnologyCo.,Ltd.:rnH67MA-USB3-B3:rvrx.x:cvnGigabyteTechnologyCo.,Ltd.:ct3:cvr:
  dmi.product.name: H67MA-USB3-B3
  dmi.sys.vendor: Gigabyte Technology Co., Ltd.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1956461/+subscriptions


-- 
Mailing list: https://launchpad.net/~kernel-packages
Post to : kernel-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~kernel-packages
More help   : https://help.launchpad.net/ListHelp


[Kernel-packages] [Bug 1956461] Re: Creative HD720p webcam doesn't work

2022-02-07 Thread LS
@bonej079 I've tried every kernel from the 5.4 line and can confirm that
Creative Live! Cam Sync HD (VF0770) doesn't work on any of them after
5.4.0-91. Once I run the system using 5.4.0-91 it works like a charm so
no hardware failure for sure.

-- 
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux in Ubuntu.
https://bugs.launchpad.net/bugs/1956461

Title:
  Creative HD720p webcam doesn't work

Status in linux package in Ubuntu:
  Confirmed

Bug description:
  After installing kernel 5.4.0-92 the webcam Creative HD720p stop to be seen 
by the system. There is no  /dev/vl4/ folder
  --- 
  ProblemType: Bug
  ApportVersion: 2.20.11-0ubuntu27.21
  Architecture: amd64
  AudioDevicesInUse:
   USERPID ACCESS COMMAND
   /dev/snd/controlC2:  piotr  3094 F pulseaudio
   /dev/snd/controlC0:  piotr  3094 F pulseaudio
  CasperMD5CheckResult: skip
  CurrentDesktop: X-Cinnamon
  DistroRelease: Linux Mint 20.2
  InstallationDate: Installed on 2020-06-07 (578 days ago)
  InstallationMedia: Linux Mint 19.3 "Tricia" - Release amd64 20191213
  IwConfig:
   enp3s0no wireless extensions.
   
   lono wireless extensions.
  MachineType: Gigabyte Technology Co., Ltd. H67MA-USB3-B3
  NonfreeKernelModules: nvidia_modeset nvidia
  Package: linux (not installed)
  ProcFB: 0 VESA VGA
  ProcKernelCmdLine: BOOT_IMAGE=/vmlinuz-5.4.0-92-generic 
root=UUID=3bdaa7b0-765c-41ce-b67a-deeeabde9c42 ro quiet splash
  ProcVersionSignature: Ubuntu 5.4.0-92.103-generic 5.4.157
  RelatedPackageVersions:
   linux-restricted-modules-5.4.0-92-generic N/A
   linux-backports-modules-5.4.0-92-generic  N/A
   linux-firmware1.187.24
  RfKill:
   
  Tags:  uma
  Uname: Linux 5.4.0-92-generic x86_64
  UpgradeStatus: No upgrade log present (probably fresh install)
  UserGroups: adm cdrom dip lpadmin plugdev sambashare sudo vboxusers
  _MarkForUpload: True
  dmi.bios.date: 10/27/2011
  dmi.bios.vendor: Award Software International, Inc.
  dmi.bios.version: F4
  dmi.board.name: H67MA-USB3-B3
  dmi.board.vendor: Gigabyte Technology Co., Ltd.
  dmi.board.version: x.x
  dmi.chassis.type: 3
  dmi.chassis.vendor: Gigabyte Technology Co., Ltd.
  dmi.modalias: 
dmi:bvnAwardSoftwareInternational,Inc.:bvrF4:bd10/27/2011:svnGigabyteTechnologyCo.,Ltd.:pnH67MA-USB3-B3:pvr:rvnGigabyteTechnologyCo.,Ltd.:rnH67MA-USB3-B3:rvrx.x:cvnGigabyteTechnologyCo.,Ltd.:ct3:cvr:
  dmi.product.name: H67MA-USB3-B3
  dmi.sys.vendor: Gigabyte Technology Co., Ltd.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1956461/+subscriptions


-- 
Mailing list: https://launchpad.net/~kernel-packages
Post to : kernel-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~kernel-packages
More help   : https://help.launchpad.net/ListHelp