Author Topic: USB 3 and AMD Ryzen third gen processors.  (Read 2189 times)

ivan

  • Hero Member
  • *****
  • Thank You
  • -Given: 2
  • -Receive: 52
  • Posts: 1327
  • Karma: +13/-0
    • View Profile
USB 3 and AMD Ryzen third gen processors.
« on: March 06, 2021, 06:06:57 pm »
This is more of an observation but... On my MSI B550 motherboard with a Ryzen 3 third gen processor I have noticed an anomaly now that I have been able to switch off the SMT, hyperthreading 'feature' on the MB.

If I plug in a USB stick and start to copy anything to or from it, and I try to use the USB trackball, or a mouse, the pointer freezes in place and it requires a CAD restart to get motion back.

Now I am wondering if this is a problem with our USB 3 driver not being able to do more than one thing at once or do I have to look for something else in the UEFI bios.

Any ideas?

Andreas Schnellbacher

  • Hero Member
  • *****
  • Thank You
  • -Given: 1
  • -Receive: 40
  • Posts: 733
  • Karma: +13/-0
    • View Profile
Re: USB 3 and AMD Ryzen third gen processors.
« Reply #1 on: March 06, 2021, 07:18:27 pm »
If I remember, hyperthreading 'feature' was always told not been well supported...
"Supported" are only Intel systems with deactivated HT. But Ivan wrote that he has already switched HT off.

Dave Yeo

  • Hero Member
  • *****
  • Thank You
  • -Given: 13
  • -Receive: 229
  • Posts: 3216
  • Karma: +62/-0
    • View Profile
Re: USB 3 and AMD Ryzen third gen processors.
« Reply #2 on: March 06, 2021, 08:06:47 pm »
Hi Ivan, testing by plugging in a second mouse into my USB3.1 card and USB3 drive also into the card, as soon as I started copying files to the USB HD, the second mouse seized up. First mouse and keyboard plugged into USB2 keeps working fine.
After stopping the copy and ejecting the USB drive, mouse still didn't work. Unplugging and replugging in the mouse brought it back to life.
Hmm, further testing shows the mouse only freezes when actually transferring files, not simply reading and as soon as the copy is over, with the drive still plugged in, unplugging and plugging the mouse back in brings it back to life.
So yes, copying files does seem to screw up the mouse, freezing it, but simply unplugging and plugging back in fixes it here. Never noticed before as I usually use the built in USB2 for most everything.
Do you have one controller or more? If more, using a different port might help and replugging it might be better then CAD.
Tests done with unified wireless mouse + keyboard, only mouse hooked up to the receiver plugged into the USB3.1 port.
Edit, I asked about this on the testers list.
« Last Edit: March 06, 2021, 08:15:59 pm by Dave Yeo »

Lars

  • Hero Member
  • *****
  • Thank You
  • -Given: 2
  • -Receive: 80
  • Posts: 855
  • Karma: +27/-0
    • View Profile
Re: USB 3 and AMD Ryzen third gen processors.
« Reply #3 on: March 06, 2021, 08:55:35 pm »
This usually indicates a stalled pipe (of one device) that is not properly cleared. That's typically an error in the class driver, I'd suspect USBMSD.ADD. But it could also be USBMOUSE.SYS.

ivan

  • Hero Member
  • *****
  • Thank You
  • -Given: 2
  • -Receive: 52
  • Posts: 1327
  • Karma: +13/-0
    • View Profile
Re: USB 3 and AMD Ryzen third gen processors.
« Reply #4 on: March 06, 2021, 10:06:02 pm »
Hi Dave,

I have tried the 'plug in another USB mouse' on joy although it works on all my other Ryzen gen 1 and gen 2 based systems.  Looking at the block diagram for the MB it would appear there are a number of USB 2 ports as well as the USB 3 ones but the message I am getting from the UFEI bios is that those USB 2 ports work through a USB 3 passthrough, so I am back to wondering why this is happening.  BTW, there is no problem when I run a live linux DVD on that board and copy files to/from a USB stick to a plug in SATA drive.

Thank Lars for your thoughts - any ideas on how to test?

Edit: Just thought I should add the block diagram.
« Last Edit: March 06, 2021, 11:38:40 pm by ivan »

Lars

  • Hero Member
  • *****
  • Thank You
  • -Given: 2
  • -Receive: 80
  • Posts: 855
  • Karma: +27/-0
    • View Profile
Re: USB 3 and AMD Ryzen third gen processors.
« Reply #5 on: March 07, 2021, 12:57:12 am »
If you need USB3, then maybe you can replace USBMSD.ADD against my driver (as a test). However, I don't know if the AN stack will still allow that. Just give it a try.
If you do not need USB3, you can try my complete USB Stack.
Eventually you might need to raise a bug report with AN.

Dave Yeo

  • Hero Member
  • *****
  • Thank You
  • -Given: 13
  • -Receive: 229
  • Posts: 3216
  • Karma: +62/-0
    • View Profile
Re: USB 3 and AMD Ryzen third gen processors.
« Reply #6 on: March 07, 2021, 01:30:09 am »
David A. had this to say on the testers list after I posted about this issue,
Quote
I noticed this behavior on one of my systems yesterday. The USB mouse driver is notoriously
bad at handling unexpected things. It's already on my list of things to look at.

So no need to file an issue at this time.
Have you tried simply unplugging and replugging in the mouse?

Sean Casey

  • Jr. Member
  • **
  • Thank You
  • -Given: 12
  • -Receive: 7
  • Posts: 93
  • Karma: +2/-0
    • View Profile
Re: USB 3 and AMD Ryzen third gen processors.
« Reply #7 on: March 08, 2021, 12:52:50 am »
This is more of an observation but... On my MSI B550 motherboard with a Ryzen 3 third gen processor....

Have you seen the following article that describes USB disconnects with the B550 mobo?   AMD is "actively investigating the issue with high priority".

https://www.techspot.com/news/88845-amd-follow-reddit-advice-if-youve-got-usb

- Sean


ivan

  • Hero Member
  • *****
  • Thank You
  • -Given: 2
  • -Receive: 52
  • Posts: 1327
  • Karma: +13/-0
    • View Profile
Re: USB 3 and AMD Ryzen third gen processors.
« Reply #8 on: March 08, 2021, 11:09:34 pm »
Hi Sean,

I had seen that but couldn't help wondering how much win 10 was causing the problem especially since the new bios updated seem to aimed towards a shortfall in win 10 code.

Matt Walsh

  • Jr. Member
  • **
  • Thank You
  • -Given: 3
  • -Receive: 2
  • Posts: 56
  • Karma: +0/-0
    • View Profile
Re: USB 3 and AMD Ryzen third gen processors.
« Reply #9 on: March 12, 2021, 04:34:09 pm »
AMD now promising new BIOS, which should work for Arca, OS/2, and eCS
https://www.tomshardware.com/news/amd-issuing-usb-fix-for-ryzen-chips-bios-patch-coming-in-early-april

Hope this helps.
Matt W

Dave Yeo

  • Hero Member
  • *****
  • Thank You
  • -Given: 13
  • -Receive: 229
  • Posts: 3216
  • Karma: +62/-0
    • View Profile
Re: USB 3 and AMD Ryzen third gen processors.
« Reply #10 on: March 12, 2021, 04:41:56 pm »
In my case it is an Intel board with an Asmedia add-on USB3 card, so a different problem, along with Ivan's sounding like the same problem as mine, only affecting the mouse rather then most USB peripherals.

ivan

  • Hero Member
  • *****
  • Thank You
  • -Given: 2
  • -Receive: 52
  • Posts: 1327
  • Karma: +13/-0
    • View Profile
Re: USB 3 and AMD Ryzen third gen processors.
« Reply #11 on: March 12, 2021, 07:46:57 pm »
Hi Matt,

Not sure it will. 

As Dave says the problem is only with the mouse.  In the example I gave, the file transfer continued without any problems and the USB keyboard also continued working, even the stupid LED lights in the cpu cooling fan kept on dancing.

I think I will give the bios update a miss because I don't need to go through the curffel of trying to switch off SMT (hyperthreading) again.