FastRawViewer on AMD Ryzen hangs and solution (Power Plan related)

abgestumpft

Forum Enthusiast
Messages
436
Reaction score
675
Hi,

I recently upgraded my PC to an AMD Ryzen 3700x with Win 10
Afterwards, when I was quickly scanning my Fotos with FastRawViewer the program was hanging (freezed) from time to time for several seconds. I did not see such behaviour e.g. when working with Lightroom / DXO / ... only with FastRawViewer.

First I thought its an application issue, but when I had Lightroom opened in parallel it also was not able to show the Fotos. I then copied all the Fotos from the HDD to an SSD using different cable & Sata port -> still same issue.

(I have German Windows, so do my best to translate the errors etc.)
I then recognized that everytime there is a freeze I have a warning in Windows Eventvwr.
storahci - ID 129 - Reset to device, \Device\RaidPort3, was issued.

So the disk was reset and during that time not accessible -> FastRawViewer waiting on disk response -> hang
Since I have a dedicated disk for my Fotos Windows itself (and other applications) were running fine during the reset of that disk.

I did some research and found it was related the the AHCI Power Management Options set with the power plan "AMD Ryzen Balanced". Those options are not visible per default, so you first have to enable them via registry:

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Power\PowerSettings\0012ee47-9041-4b5d-9b77-535fba8b1442

0b2d69d7-a2a1-449c-9680-f91c70521c60 -> Attributes: replace 1 with a 2
dab60367-53fe-4fbc-825e-521d069d2456 -> Attributes: replace 1 with a 2



Afterwards you will see two new options in:
Control Panel -> Hardware and Sound -> Power Options
Here select the Power Plan with "Change plan settings" -> "Change advanced power settings"



AMD Ryzen Balanced
AMD Ryzen Balanced





Amd Ryzen High Performance
Amd Ryzen High Performance



The solution is:

a) Change the Power Plan to "AMD Ryzen High Performance" -> this of course has also effect on other Energy Saving options

or

b) Change the two setting for hard disk (after enabling them with registry change as shown above)
- AHCI Link Power Management - HIPM/DIPM = Active
- AHCI Link Power Management - Adaptive = 0 millisecond


After I changed those settings I did not experience any of the hangs anymore, so I hope this information is usefull for others.
 
Thanks so much for this. I was getting constant storahci and freezing issues on a new Ryzen build and this seems to be working so far. Do you know why these settings are causing issues on SSD's?
 
Thanks so much for this. I was getting constant storahci and freezing issues on a new Ryzen build and this seems to be working so far. Do you know why these settings are causing issues on SSD's?
Hi,
I must admit I did not understand the solution to 100%

The parameter "AHCI Link Power Management - HIPM/DIPM" will configure the power management for the SATA AHCI Disk:

https://docs.microsoft.com/en-us/wi...ttings-link-power-management-mode---hipm-dipm

HIPM = Host-Initiated Power Management (HIPM) is used.
Active = Link power management is not used.

But this powermanagement option should only decide when putting the disk into a very low power mode (after some idle time). Since we get a reset of the device (storahci - ID 129 - Reset to device, \Device\RaidPort3, was issued.) during very high read I/O I would expect this option to have no impact, but obviously it does :-)

Could be that during very high I/O load the controller thinks the device is hanging (e.g. no response for a certain time) and therefore issues a reset of the connection.
Might be that this "AHCI Link Power Management - HIPM/DIPM" setting has some impact on this behaviour too. But as said, I don't fully understand it and found the solution by searching a solution for this "Reset to device" error.
 

Keyboard shortcuts

Back
Top