-
Notifications
You must be signed in to change notification settings - Fork 5k
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
system freeze while unplug r8152 usb2network card #1219
Comments
Do you get a kernel panic/backtrace output to display? |
no, I got nothing display and nothing valuable information in dmesg or messages or other log, the system just lost response. |
Can you explain exactly what you see? |
this is the log from messages, it records the hang & reboot process, but no any information related with the hang reason
|
Does the pi hang and need rebooting before you see the messages? How are you viewing them? |
Are you starting from initial console (i.e. not desktop). Are you interacting with keyboard/display? After the crash does the display appears exactly as it did before or does it blank? Does the pi hang and need rebooting before you see the messages? How are you viewing them? |
Can you add |
I just tried it, but there is no use with dwc_otg.fiq_enable=0 dwc_otg.fiq_fsm_enable=0. Also, I tried to add max_usb_current=1 to /boot/config.txt, issue remains. |
Just to confirm, you should see:
in log. |
Yes, confirmed
|
@P33M any ideas? |
Where can I buy one of these devices? |
could you give me your address, so I can mail you some r8152s, my mailbox is huangjiansword@hotmail.com and also you can buy it from here: the chip is RTL8152 |
Another finding, I tried the same device with RPI2 model B V 1.1, it works no hang no crash! |
I can replicate the issue. 1 in 5 hot-unplugs on a Pi 1 B+ cause a crash. So far 20+ hot-unplugs on a Pi 2B = no crash. |
Yes, the same phenomena as me. |
@P33M @popcornmix, any suggestion about this issue? I think maybe 8152 driver should be fixed, but the guys from realtek said it's not 8152 issue but host controller's issue. but I can not reproduce the issue if I unload the 8152 driver. |
What's curious is the fact that it crashes on a Pi 1 (single-processor) but apparently doesn't on Pi 2 (multiprocessor). The Pi just hard-freezes without printing a stacktrace which is most unusual. |
What's the difference between Pi1 and Pi2 concerning USB controller?On what condition will the core print no any stacktrace or dmesg message? |
On 3.12.20+, unplug 8152 will not freeze system, but on 3.18.7+, the issue appears, I think maybe some hub or host controller's modification cause this issue. |
@popcornmix @P33M I also tried with Jessie and r8152, the same issue remains. |
The r8152 driver has been broken since (approx) 3.16.xx This does not work on the VER_02 dongle I have here So, disable hardware rx checksum for VER_02, and fix Patch submitted upstream for this today: https://lkml.org/lkml/2016/10/26/1167 |
@mlord thanks for info. Let us know when the patch is merged upstream and we can cherry pick it. |
Fixed upstream in -stable: https://lkml.org/lkml/2017/1/11/759 |
hi there,
I have a raspberry pi model A+ running linux 3.18.7+, and raspberry pi B running linux 4.1.7.I found a issue about r8152 driver in the image.
steps below:
1, attach a usb hub(self-powered usb hub is better, otherwise the pi'll reboot when you plug usb2network in) on the pi's usb port
2, attach a usb2network card (chip ID is 0bda:8152 Realtek Semiconductor Corp.) device on the usb hub
3, connect network wire to r8152 network card and a router
4, run ifconfig to monitor eth0's status(eth1 in raspberry model B, which is the usb2network's ethnet port)
5, when eth0's status changed to running or got ip address, unplug the r8152 device, the raspberry pi has a large probability to stop response
you may try serveral times to reappear this issue.
I use several other usb2network cards(chip ID is 0b95:772b ASIX Electronics Corp. and ), the same operation, It works, no crash.
BTW, I try the latest driver 2.05.0 from realteck website, problem remains.
My power supply is 5V 2A, the power is good enough for raspberry pi.
I don't think the freeze is related with the usb hub, I tried many hub chip such as 05e3:0608(GL850G) or 05e3:0610(GL852G) from Genesys logic or 1a40:0101or 1a40:0201 Terminus Technology Inc. or 0424:9512 from Standard Microsystems Corp. which is the original hub of raspberry model B
And I can not get any related log from dmesg or other log.
If attached the r8152 directly with the Pi's USB port, no such issue.
I have contacted with the engineer of REALTEK, the conclusion from REALTEK is:
"If hub is involved to the issue, it could be a timing compatibility issue between usb host controller and genesis chip."
How can I fix the issue?
Thank you in advance!
The text was updated successfully, but these errors were encountered: