New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Raspberrypi4-64, usb no power #446
Comments
What power supply are you using? Are you testing it with an official charger? |
Official power source for rpi4. |
That is worrying. Would you be able to give it a try with an older firmware and test that theory? |
Using 8d5fc54 i can attach my Razer Blackwidw Lite keyboard and type. |
The relevant kernel issue is: raspberrypi/linux#3093 |
The PCI controller on the Raspberry Pi 4 acts as a DMA controller and can only address the first 3Gb[1] of the memory space. On 32bit this was addressed by implementing bouncing buffers[2] but this currently has no support for arm64. In order to have working USB, as a workaround, we limit the ram to 3G. Fixes #446 [1] raspberrypi/linux#3093 [2] https://github.com/raspberrypi/linux/blob/rpi-4.19.y/drivers/pci/controller/pcie-brcmstb-bounce.c Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
@iohe if you are willing to compromise on 1Gb of ram, here is a PR ^ |
ok for now, will revisit later for full 4g. |
The PCI controller on the Raspberry Pi 4 acts as a DMA controller and can only address the first 3Gb[1] of the memory space. On 32bit this was addressed by implementing bouncing buffers[2] but this currently has no support for arm64. In order to have working USB, as a workaround, we limit the ram to 3G. Fixes #446 [1] raspberrypi/linux#3093 [2] https://github.com/raspberrypi/linux/blob/rpi-4.19.y/drivers/pci/controller/pcie-brcmstb-bounce.c Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
The PCI controller on the Raspberry Pi 4 acts as a DMA controller and can only address the first 3Gb[1] of the memory space. On 32bit this was addressed by implementing bouncing buffers[2] but this currently has no support for arm64. In order to have working USB, as a workaround, we limit the ram to 3G. Fixes #446 [1] raspberrypi/linux#3093 [2] https://github.com/raspberrypi/linux/blob/rpi-4.19.y/drivers/pci/controller/pcie-brcmstb-bounce.c Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
The PCI controller on the Raspberry Pi 4 acts as a DMA controller and can only address the first 3Gb[1] of the memory space. On 32bit this was addressed by implementing bouncing buffers[2] but this currently has no support for arm64. In order to have working USB, as a workaround, we limit the ram to 3G. Fixes #446 [1] raspberrypi/linux#3093 [2] https://github.com/raspberrypi/linux/blob/rpi-4.19.y/drivers/pci/controller/pcie-brcmstb-bounce.c Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
Description
Keyboard is not powered, kernel reports errors
Steps to reproduce the issue:
Describe the results you received:
Errors encountered in kernel :
[ 2.530074] usb 1-1: new high-speed USB device number 4 using xhci_hcd
[ 2.550489] usb 1-1: device descriptor read/8, error -61
[ 2.678539] usb 1-1: device descriptor read/8, error -61
[ 2.914059] usb 1-1: new high-speed USB device number 5 using xhci_hcd
[ 2.934469] usb 1-1: device descriptor read/8, error -61
[ 3.062515] usb 1-1: device descriptor read/8, error -61
[ 3.170269] usb usb1-port1: unable to enumerate USB device
Describe the results you expected:
Usb keyboard to work.
Additional information you deem important (e.g. issue happens only occasionally):
Always happens.
It did not happen with meta-raspberry@ 1e329d3
Additional details (revisions used, host distro, etc.):
layers used:
-poky@97c5921666
-meta-openembedded@27d1d3dfa
local.conf has:
MACHINE ?= "raspberrypi4-64"
DISTRO_FEATURES_append = " opengl"
DISTRO_FEATURES_append = " polkit"
u-boot is not enabled or used.
-Image : core-image-x11
Other packages in image: xfce4
dmesg.txt
The text was updated successfully, but these errors were encountered: