[Support] ich777 - AMD Vendor Reset, CoralTPU, hpsahba,...


Recommended Posts

6 minutes ago, hammsandwich said:

Thanks! I can't wait to give this a shot!

If you experience any crashes or something like that please make a short post in the support thread of the plugin with the Diagnostics attached, got a few reports of crashes.

 

I run this on two machines and haven't got any crashes yet.

Link to comment

I am unable to access the GUI on my server using a ryzen processor with no video card. Someone recommended I try downloading this plugin to fix the issue but the plugin fails with the errors below whenever I try to install it.

 

+==============================================================================
| Installing new package /boot/config/plugins/radeontop/radeontop-2021.03.15.txz
+==============================================================================

Verifying package radeontop-2021.03.15.txz.
Installing package radeontop-2021.03.15.txz:
PACKAGE DESCRIPTION:
Executing install script for radeontop-2021.03.15.txz.
Package radeontop-2021.03.15.txz installed.

---------Enabling AMDGPU Kernel Module---------

------Something went wrong! Can't enable-------
----AMDGPU Kernel Module, removing package!----
Removing package: radeontop-2021.03.15
Removing files:
--> Deleting symlink /usr/local/emhttp/plugins/radeontop/lib/libdrm.so.2
--> Deleting symlink /usr/local/emhttp/plugins/radeontop/lib/libdrm_amdgpu.so.1
--> Deleting symlink /usr/local/emhttp/plugins/radeontop/lib/libncursesw.so.6
--> Deleting symlink /usr/local/emhttp/plugins/radeontop/lib/libtinfo.so.6
--> Deleting /usr/bin/radeontop
--> Deleting /usr/local/emhttp/plugins/radeontop/bin/radeontop
--> Deleting /usr/local/emhttp/plugins/radeontop/images/radeontop.png
--> Deleting /usr/local/emhttp/plugins/radeontop/lib/libdrm.so.2.4.0
--> Deleting /usr/local/emhttp/plugins/radeontop/lib/libdrm_amdgpu.so.1.0.0
--> Deleting /usr/local/emhttp/plugins/radeontop/lib/libncursesw.so.6.2
--> Deleting /usr/local/emhttp/plugins/radeontop/lib/libtinfo.so.6.2
--> Deleting /usr/share/libdrm/amdgpu.ids
--> Deleting empty directory /usr/share/libdrm/
--> Deleting empty directory /usr/local/emhttp/plugins/radeontop/lib/
--> Deleting empty directory /usr/local/emhttp/plugins/radeontop/images/
--> Deleting empty directory /usr/local/emhttp/plugins/radeontop/bin/
WARNING: Unique directory /usr/local/emhttp/plugins/radeontop/ contains new files
plugin: run failed: /bin/bash retval: 1

Updating Support Links

Finished Installing. If the DONE button did not appear, then you will need to click the red X in the top right corner

+==============================================================================

 

Can someone please help me figure out what's going on?

 

Thanks

Link to comment
4 hours ago, sunbear said:

 

AMD A10-7800 Radeon R7

Can you open up a terminal from Unraid and see what the output of 'modprobe -v amdgpu' is?

If the above command fails or you get an error try to do 'modprobe -v radeon' and see what the output is.

Link to comment
On 6/10/2021 at 11:11 PM, ich777 said:

Can you open up a terminal from Unraid and see what the output of 'modprobe -v amdgpu' is?

If the above command fails or you get an error try to do 'modprobe -v radeon' and see what the output is.

 

root@REDACTED:~# modprobe -v amdgpu
insmod /lib/modules/5.10.28-Unraid/kernel/drivers/video/fbdev/core/fb_sys_fops.ko.xz
insmod /lib/modules/5.10.28-Unraid/kernel/drivers/video/fbdev/core/sysimgblt.ko.xz
insmod /lib/modules/5.10.28-Unraid/kernel/drivers/video/fbdev/core/sysfillrect.ko.xz
insmod /lib/modules/5.10.28-Unraid/kernel/drivers/video/fbdev/core/syscopyarea.ko.xz
insmod /lib/modules/5.10.28-Unraid/kernel/drivers/char/agp/agpgart.ko.xz
insmod /lib/modules/5.10.28-Unraid/kernel/drivers/gpu/drm/drm.ko.xz
insmod /lib/modules/5.10.28-Unraid/kernel/drivers/gpu/drm/ttm/ttm.ko.xz
insmod /lib/modules/5.10.28-Unraid/kernel/drivers/gpu/drm/drm_kms_helper.ko.xz
insmod /lib/modules/5.10.28-Unraid/kernel/drivers/i2c/algos/i2c-algo-bit.ko.xz
insmod /lib/modules/5.10.28-Unraid/kernel/drivers/gpu/drm/scheduler/gpu-sched.ko.xz
insmod /lib/modules/5.10.28-Unraid/kernel/drivers/gpu/drm/amd/amdgpu/amdgpu.ko.xz

Link to comment
2 hours ago, ich777 said:

This seems perfectly fine, can you now try to install the Radeon-TOP plugin?

It just should say that the amdgpu module is enabled.

Quote

 

+==============================================================================
| Installing new package /boot/config/plugins/radeontop/radeontop-2021.03.15.txz
+==============================================================================

Verifying package radeontop-2021.03.15.txz.
Installing package radeontop-2021.03.15.txz:
PACKAGE DESCRIPTION:
Executing install script for radeontop-2021.03.15.txz.
Package radeontop-2021.03.15.txz installed.

-----AMDGPU Kernel Module already enabled!-----

----Installation of radeontop complete-----
plugin: radeontop.plg installed


Finished Installing. If the DONE button did not appear, then you will need to click the red X in the top right corner

 

 

Well that's embarrassing. I don't know what I changed but it looks like it installed. Been screwing with this thing for days.

 

I will have to see if my GUI works now whenever I get the opportunity to reboot.

 

Thanks!

Link to comment
1 hour ago, sunbear said:

Well that's embarrassing. I don't know what I changed but it looks like it installed. Been screwing with this thing for days.

It installed because you manually loaded the amdgpu module and on install it detected that it's loaded already.

What's suspicious to me is that it won't load the module on plugin installation that shouldn't happen and if it's happens then something went wrong with the load of the module itself.

 

1 hour ago, sunbear said:

I will have to see if my GUI works now whenever I get the opportunity to reboot.

Please report back what happens if you rebooted, if the plugin stays installed or if it's removed and if the module is loaded.

You can check if the module is loaded by typing in the Unraid console:

lsmod | grep "amdgpu"

If the output is empty it isn't loaded if you get a line then it's loaded successfully.

 

If the plugin isn't there after the reboot and the module isn't loaded please go to Tool -> Diagnostics -> Download and drop the downloaded zip file here in the text box for further investigation.

Link to comment

I found a small error in the build script, when enabling docker options to build sound kernel modules and install ALSA.

 

The filename that is created to download the ALSA tar file is different than the filename that is passed to the untar command, causing the file to not be found and fail to copy ALSA to the correct location.

 

Once I fixed up that build script, it managed to build the sound kernel modules, install ALSA and work perfectly on my machine, allowing local sound output from a docker container, nice work!

 

PS: I was going to just make a pull request to fix this, but I couldn't find a github repo for it - is there a public repo for this container?

 

Link to comment
43 minutes ago, gwz said:

I found a small error in the build script, when enabling docker options to build sound kernel modules and install ALSA.

This was only implemented quick and dirty and never tested because I want to move away from the Unraid-Kernel-Helper and the implementation of ALSA and the sound output is also not good as it should and you have not much benefit on Unraid with the sound drivers... :P

 

44 minutes ago, gwz said:

PS: I was going to just make a pull request to fix this, but I couldn't find a github repo for it - is there a public repo for this container?

Had some problems in the past where people gave me some hate about the Kernel-Helper because I only support "recent" versions from Unraid and not older ones and told me I'm like Apple or Microsoft, so I removed the source from Github.

I do this for fun and to help people and not to get hate from other people... :P

 

But I think if you know what you need to fix it is no problem for you to run the Kernel-Helper in Custom mode and execute the script by hand. :)

 

If you want to try the plugin feel free to write me a PM. :)

Link to comment
1 minute ago, ich777 said:

This was only implemented quick and dirty and never tested because I want to move away from the Unraid-Kernel-Helper and the implementation of ALSA and the sound output is also not good as it should and you have not much benefit on Unraid with the sound drivers... :P

 

My unraid install acts as both a file / app server and also a media player attached to our sound system, so it's very helpful for me :)

 

1 minute ago, ich777 said:

Had some problems in the past where people gave me some hate about the Kernel-Helper because I only support "recent" versions from Unraid and not older ones and told me I'm like Apple or Microsoft, so I removed the source from Github.

I do this for fun and to help people and not to get hate from other people... :P

 

Fair enough, that must be annoying!

 

1 minute ago, ich777 said:

But I think if you know what you need to fix it is no problem for you to run the Kernel-Helper in Custom mode and execute the script by hand. :)

 

If you want to try the plugin feel free to write me a PM. :)

 

Yes, I can just use the custom mode and patch in the sound and ALSA drivers based on your initial work, it's no problem. Hopefully unraid kernel updates are rare enough I don't need to do this too often! (new to unraid, not sure how often they update kernel).

 

Thanks for your work anyway!

 

  • Like 1
Link to comment

Are kernels built with the kernel helper docker compatible with the "regular" nvidia plugin?  In other words, if I want to build a kernel with support for some unrelated feature and I want my Nvidia card to keep working, do I have to set BUILD_NVIDIA to true, or can I set it to false and keep using the plugin?

 

Also, I too am interested in getting sound drivers working on Unraid, so I'll send a quick PM about that.

Link to comment
16 minutes ago, forty2 said:

Are kernels built with the kernel helper docker compatible with the "regular" nvidia plugin?  In other words, if I want to build a kernel with support for some unrelated feature and I want my Nvidia card to keep working, do I have to set BUILD_NVIDIA to true, or can I set it to false and keep using the plugin?

Yes, but I try to move slowly away from custom Unraid builds and try to create as much plugins for the things that are integrated in the Kernel-Helper as possible and move to the plugins instead.

 

I also would recommend to use the plugins and not the Kernel-Helper.

 

Only if you install the gnif/vendor-reset you have to build everything into the images because the loading of plugins would fail.

Link to comment

Great, thank you! What I'm trying to get working right now is joystick/gamepad input support.  If it is possible to do that with a plugin, that would obviously be preferable. I have a fair amount of experience building custom kernels and modules on other platforms, but I've never done it on Unraid before the last couple of days, and I also have no plugin dev experience.  So right now I'm just trying to muddle my way through and see what I can get working 🙂

Link to comment
8 hours ago, forty2 said:

What I'm trying to get working right now is joystick/gamepad input support.

Why do you need joystick/gamepad support?

If you want to have joystick/gamepad support you can already create a custom Kernel for that with the Kernel-Helper but keep in mind that the UDEV rules are missing.

Link to comment
On 6/13/2021 at 4:14 AM, ich777 said:

It installed because you manually loaded the amdgpu module and on install it detected that it's loaded already.

What's suspicious to me is that it won't load the module on plugin installation that shouldn't happen and if it's happens then something went wrong with the load of the module itself.

 

Please report back what happens if you rebooted, if the plugin stays installed or if it's removed and if the module is loaded.

You can check if the module is loaded by typing in the Unraid console:



lsmod | grep "amdgpu"

If the output is empty it isn't loaded if you get a line then it's loaded successfully.

 

If the plugin isn't there after the reboot and the module isn't loaded please go to Tool -> Diagnostics -> Download and drop the downloaded zip file here in the text box for further investigation.


GUI still doesn't work.


Modules don't seem to be loaded.


I've attached my diagnostics. Thanks for the help.

minint-petb45-diagnostics-20210620-1538.zip

Edited by sunbear
Link to comment
  • ich777 changed the title to [Support] ich777 - AMD Vendor Reset, CoralTPU, hpsahba,...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.