Bug 32649 - amdgpupro-opencl-orca not download the AMD's rpm
Summary: amdgpupro-opencl-orca not download the AMD's rpm
Status: RESOLVED FIXED
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: 9
Hardware: All Linux
Priority: Normal normal
Target Milestone: ---
Assignee: QA Team
QA Contact:
URL:
Whiteboard: MGA9-64-OK
Keywords: advisory, validated_update
Depends on:
Blocks:
 
Reported: 2023-12-23 03:24 CET by katnatek
Modified: 2024-01-08 11:14 CET (History)
4 users (show)

See Also:
Source RPM: amdgpupro-opencl-orca
CVE:
Status comment:


Attachments

Description katnatek 2023-12-23 03:24:42 CET
Description of problem:

Install current version of  amdgpupro-opencl-orca fail
LC_ALL=C urpmi amdgpupro-opencl-orca 


    https://mirrors.kernel.org/mageia/distrib/9/x86_64/media/nonfree/updates/amdgpupro-opencl-orca-23.20-0.1654522.2.mga9.nonfree.x86_64.rpm
installing amdgpupro-opencl-orca-23.20-0.1654522.2.mga9.nonfree.x86_64.rpm from /var/cache/urpmi/rpms                                
Preparing...                     ###############################################################################

###############################################################################
Note that by downloading the AMD OpenCL library you indicate your acceptance of
the AMD License Agreement, available at https://www.amd.com/en/support/linux-eula
###############################################################################
Downloading from https://repo.radeon.com/amdgpu/latest/rhel/9.2/proprietary/x86_64/opencl-legacy-amdgpu-pro-icd-23.20-1654522.el9.x86_64.rpm. Be patient....
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   548    0   548    0     0   1740      0 --:--:-- --:--:-- --:--:--  1739
      1/1: amdgpupro-opencl-orca ##################################################################################

Check downloaded package signature....
---AMD package signature check failed---
Extract libraries
rpm2cpio: ../amdgpu-pro.rpm: No such file or directory
cpio: premature end of archive
Warning: opt/amdgpu-pro/lib64/libamdocl-orca64.so not found in the AMDGPUPRO archive,
 skipping installation of /usr/lib64/libamdocl-orca64.so.
 Please file a bug report at https://bugs.mageia.org/ .
Warning: opt/amdgpu-pro/share/licenses/opencl-legacy-amdgpu-pro-icd/AMDGPUPROEULA not found in the AMDGPUPRO archive,
 skipping installation of /usr/share/licenses/amdgpupro-opencl-orca/AMDGPUPROEULA.
 Please file a bug report at https://bugs.mageia.org/ .
Warning: etc/OpenCL/vendors/amdocl-orca64.icd not found in the AMDGPUPRO archive,
 skipping installation of /etc/OpenCL/vendors/amdocl-orca64.icd.
 Please file a bug report at https://bugs.mageia.org/ .

clinfo -l
----------------------------------------------------------------------
More information on package amdgpupro-opencl-orca-23.20-0.1654522.2.mga9.nonfree.x86_64
This package does not contain the AMD OpenCL library itself. The software is
automatically downloaded from AMD official website during package installation.
= Be Patient While Downloading...
It implies your acceptance of the AMD License Agreement,
available at https://www.amd.com/en/support/linux-eula and at
/usr/share/licenses/amdgpupro-opencl-orca/AMDGPUPROEULA after installation.

After see in the spec , disable the check_sig function and test the file type downloaded I see is detected as html file.

I go to https://www.amd.com/en/support/linux-drivers and see new release is available
katnatek 2023-12-23 03:25:15 CET

Whiteboard: (none) => MGA9TOO

katnatek 2023-12-23 04:13:52 CET

Summary: amdgpupro-opencl-orca need to be updated to 23.30 => amdgpupro-opencl-orca need to be reworked

Comment 1 katnatek 2023-12-23 04:22:01 CET
I find this url https://repo.radeon.com/amdgpu/23.20/amdgpu/rhel/9.2/proprietary/x86_64/ and now contain more than one package

This mean we need to rework the support to this or teawk https://repo.radeon.com/amdgpu-install/23.20/rhel/9.2/amdgpu-install-5.7.50700-1.el9.noarch.rpm, to mageia and recommend dnf for this
Comment 2 katnatek 2023-12-23 04:58:40 CET
opencl-legacy-amdgpu-pro-icd-23.20-1646757.el9.x86_64.rpm  need package(s) for this repo https://repo.radeon.com/amdgpu/23.20/amdgpu/rhel/9.2/main/x86_64/
Comment 3 christian barranco 2023-12-23 09:16:25 CET
Hi. It might be a signature issue. I will have a look.
Meanwhile, could you try to install rocm-amd-opencl from core/updates_testing and check whether it brings OpenCL support?
https://bugs.mageia.org/show_bug.cgi?id=32580
Comment 4 christian barranco 2023-12-23 13:46:22 CET
The issue is AMD has removed the package to be downloaded from the url I had specified.
Found it into another archive, which should be more stable, hopefully.
Fix is building.
katnatek 2023-12-24 21:22:26 CET

Summary: amdgpupro-opencl-orca need to be reworked => amdgpupro-opencl-orca not download the AMD's rpm

Comment 5 katnatek 2023-12-24 21:25:41 CET
I see you update the package in Cauldron, I rebuild for Mageia 9 and confirm that works again

LC_ALL=C urpmi RPMS/x86_64/amdgpupro-opencl-orca-23.20-0.16467570.1.mga9.x86_64.rpm 


SECURITY: The following package is _NOT_ signed (OK ((none))): RPMS/x86_64/amdgpupro-opencl-orca-23.20-0.16467570.1.mga9.x86_64.rpm
installing amdgpupro-opencl-orca-23.20-0.16467570.1.mga9.x86_64.rpm from RPMS/x86_64
Preparing...                     ###################################################################################################

###############################################################################
Note that by downloading the AMD OpenCL library you indicate your acceptance of
the AMD License Agreement, available at https://www.amd.com/en/support/linux-eula
###############################################################################
Downloading from https://repo.radeon.com/amdgpu/23.20/amdgpu/rhel/9.2/proprietary/x86_64/opencl-legacy-amdgpu-pro-icd-23.20-1646757.el9.x86_64.rpm. Be patient....
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 23.8M  100 23.8M    0     0  6002k      0  0:00:04  0:00:04 --:--:-- 6003k
      1/1: amdgpupro-opencl-orca ###################################################################################################

Check downloaded package signature....
Valid signature and Installation can continue
Extract libraries
./etc/OpenCL
./etc/OpenCL/vendors
./etc/OpenCL/vendors/amdocl-orca64.icd
./opt/amdgpu-pro/lib64/libamdocl-orca64.so
./opt/amdgpu-pro/share/licenses/opencl-legacy-amdgpu-pro-icd
./opt/amdgpu-pro/share/licenses/opencl-legacy-amdgpu-pro-icd/AMDGPUPROEULA
186893 blocks

clinfo -l
Platform #0: AMD Accelerated Parallel Processing
----------------------------------------------------------------------
More information on package amdgpupro-opencl-orca-23.20-0.16467570.1.mga9.x86_64
This package does not contain the AMD OpenCL library itself. The software is
automatically downloaded from AMD official website during package installation.
= Be Patient While Downloading...
It implies your acceptance of the AMD License Agreement,
available at https://www.amd.com/en/support/linux-eula and at
/usr/share/licenses/amdgpupro-opencl-orca/AMDGPUPROEULA after installation.

----------------------------------------------------------------------
Comment 6 christian barranco 2023-12-27 22:24:32 CET Comment hidden (obsolete)

Assignee: chb0 => qa-bugs
CC: (none) => joselp

Comment 7 katnatek 2023-12-27 22:57:49 CET
(In reply to christian squidf from comment #6)
> Ready for QA. 
> If katnatek succeeds to download it, it is enough. I have succeed on my side.
> To be extra safe, katnatek, could you test on a machine you know it has
> worked already?
I can't because I not have compatible hardware, I test this for curiosity and find the bug
Comment 8 Marja Van Waes 2023-12-27 23:14:50 CET
Advisory from comment 6 added to SVN. Please remove the "advisory" keyword if it needs to be changed. It also helps when obsolete advisories are tagged as "obsolete"

Keywords: (none) => advisory
CC: (none) => marja11

Comment 9 Marja Van Waes 2024-01-02 12:26:40 CET
(In reply to christian squidf from comment #4)
> The issue is AMD has removed the package to be downloaded from the url I had
> specified.
> Found it into another archive, which should be more stable, hopefully.
> Fix is building.

Thanks for fixing it.

amdgpupro-opencl-orca-23.20-0.16467570.1.mga10 was pushed to cauldron on the same day as 
amdgpupro-opencl-orca-23.20-0.16467570.2.mga9.nonfree... so it is fixed in cauldron, too, but release in Mageia 9 is higher than in cauldron.

Can you please correct that?

CC: (none) => chb0
Whiteboard: MGA9TOO => (none)
Version: Cauldron => 9

Comment 10 katnatek 2024-01-06 03:52:50 CET
What is the status?
Comment 11 Jose Manuel López 2024-01-06 17:04:00 CET
Hello everyone,

I can't test this package. My computer has hardware compatible with the "pal" package.

Greetings!
Comment 12 christian barranco 2024-01-06 20:17:57 CET
Hi. Everything should be good to go now, both in Cauldron and MGA9.

While testing rocm-amd-opencl, it has been noticed that this opensource can replace the proprietary drivers for many GPU (at least the one compatible with opencl 2.0 and beyond).
It is better then to make sure only one AMD OpenCL package is install at a time. 
 I have added conflicts in the spec file to do so.

Who would like to Validate the update?


ADVISORY NOTICE PROPOSAL (final)
========================

Url update for AMD OpenCL proprietary driver "orca".


Description
AMD has changed the location of the driver to be downloaded. This release uses another url, which should be more stable going forward.
It is also made sure only one AMD OpenCL package is install at a time.

As before, this package does not contain the AMD OpenCL library itself.
The software is automatically downloaded from AMD official website during package installation.

Installing this package indicates acceptance of the AMD License Agreement, available at https://www.amd.com/en/support/linux-eula


References
https://bugs.mageia.org/show_bug.cgi?id=32649
https://www.amd.com/en/support/linux-drivers

SRPMS
9/nonfree
amdgpupro-opencl-orca-23.20-0.16467570.2.1.mga9.nonfree.src.rpm



PACKAGES FOR QA TESTING
=======================
x86_64:
amdgpupro-opencl-orca-23.20-0.16467570.2.1.mga9.nonfree.x86_64.rpm
christian barranco 2024-01-06 20:18:31 CET

Keywords: advisory => (none)

Comment 13 katnatek 2024-01-06 20:48:53 CET
Tested in Real Hardware Mageia 9 x86_64
The package install , and make the expected work and can confirm that if you install rocm-amd-opencl , the package is uninstalled, and if you have rocm-amd-opencl and install amdgpupro-opencl-orca then rocm-amd-opencl is uninstalled

This is all the test I can do because my card is not compatible
Comment 14 christian barranco 2024-01-07 00:02:39 CET
Thanks, IMHO, we can push it now.
Comment 15 katnatek 2024-01-07 01:32:47 CET
Marja please update the advisory

Whiteboard: (none) => MGA9-64-OK

Comment 16 Marja Van Waes 2024-01-07 22:32:26 CET
(In reply to katnatek from comment #15)
> Marja please update the advisory

Done.

Keywords: (none) => advisory

Comment 17 katnatek 2024-01-07 22:57:45 CET
(In reply to Marja Van Waes from comment #16)
> (In reply to katnatek from comment #15)
> > Marja please update the advisory
> 
> Done.

Thank you

Keywords: (none) => validated_update
CC: (none) => sysadmin-bugs

Comment 18 Mageia Robot 2024-01-08 11:14:13 CET
An update for this issue has been pushed to the Mageia Updates repository.

https://advisories.mageia.org/MGAA-2024-0002.html

Status: NEW => RESOLVED
Resolution: (none) => FIXED


Note You need to log in before you can comment on or make changes to this bug.