Re: Minimal kernel version for 7900XT

2023-01-23 Thread Alex Deucher
On Mon, Jan 23, 2023 at 5:11 AM Goran Mekić  wrote:
>
> Hello,
>
> I'm trying to figure out what's the minimal kernel version that supports
> the 7900XT. I found that the driver supports SLES 15:
> https://www.amd.com/en/support/graphics/amd-radeon-rx-7000-series/amd-radeon-rx-7900-series/amd-radeon-rx-7900xt
>
> I also found that SLES 15 SP 4 runs on 5.14:
> https://www.suse.com/support/kb/doc/?id=19587#SLE15SP4

Kernel 6.0 or newer.

>
> The problem I have is that I can't find PCI ID (for my card it's 744c)
> in the list:
> https://github.com/torvalds/linux/blob/master/drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c#L1654
>
> Can you help me understand how this card works with Linux without PCI ID
> anywhere mentioned in the code, please? Thank you!


The driver binds to all 0x1002 vendor ID display class devices.  Once
loaded, the driver parses a data table on the device to enumerate all
of the engines on the GPU.  If they are all supported, the driver
loads.

Alex


Re: Minimal kernel version for 7900XT

2023-01-23 Thread Goran Mekić

On 1/23/23 15:09, Alex Deucher wrote:

On Mon, Jan 23, 2023 at 5:11 AM Goran Mekić  wrote:


Hello,

I'm trying to figure out what's the minimal kernel version that supports
the 7900XT. I found that the driver supports SLES 15:
https://www.amd.com/en/support/graphics/amd-radeon-rx-7000-series/amd-radeon-rx-7900-series/amd-radeon-rx-7900xt

I also found that SLES 15 SP 4 runs on 5.14:
https://www.suse.com/support/kb/doc/?id=19587#SLE15SP4


Kernel 6.0 or newer.



The problem I have is that I can't find PCI ID (for my card it's 744c)
in the list:
https://github.com/torvalds/linux/blob/master/drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c#L1654

Can you help me understand how this card works with Linux without PCI ID
anywhere mentioned in the code, please? Thank you!



The driver binds to all 0x1002 vendor ID display class devices.  Once
loaded, the driver parses a data table on the device to enumerate all
of the engines on the GPU.  If they are all supported, the driver
loads.

Alex

Thank you for the details!

Regards,
meka


Re: Minimal kernel version for 7900XT

2023-01-23 Thread Goran Mekić

On 1/23/23 13:34, Ernst Sjöstrand wrote:
Ah you were looking at the packaged driver installer (usually called 
"Proprietary" even though most of it is not).

It will install extra modules so it works with "any" kernel.

For the upstream Torvalds support I guess you end up in the 
CHIP_IP_DISCOVERY clause, it's a new method for new cards.


//Ernst


Ah, so that's it! Thank you for removing "black magic" bits! Much 
appreciated!


Regards,
meka


Re: Minimal kernel version for 7900XT

2023-01-23 Thread Ernst Sjöstrand
Ah you were looking at the packaged driver installer (usually called
"Proprietary" even though most of it is not).
It will install extra modules so it works with "any" kernel.

For the upstream Torvalds support I guess you end up in the
CHIP_IP_DISCOVERY clause, it's a new method for new cards.

//Ernst

Den mån 23 jan. 2023 kl 12:47 skrev Goran Mekić :

> On 1/23/23 12:28, Ernst Sjöstrand wrote:> 6.0 should be enough:
>  > https://www.phoronix.com/review/rx7900xt-rx7900xtx-linux
>  > 
>  >
>  > The firmware files is maybe the most complicated part right now...
>  >
>  > //Ernst
> I found that article, too, but what is confusing are two things:
> * SLES 15 SP 4 doesn't run on 6.0 but 5.14.21
> * Why is there no PCI ID in the kernel source?
>
> Hence my request for help understanding how it even works.
>
> Regards,
> meka
>


Re: Minimal kernel version for 7900XT

2023-01-23 Thread Goran Mekić

On 1/23/23 12:28, Ernst Sjöstrand wrote:> 6.0 should be enough:
> https://www.phoronix.com/review/rx7900xt-rx7900xtx-linux
> 
>
> The firmware files is maybe the most complicated part right now...
>
> //Ernst
I found that article, too, but what is confusing are two things:
* SLES 15 SP 4 doesn't run on 6.0 but 5.14.21
* Why is there no PCI ID in the kernel source?

Hence my request for help understanding how it even works.

Regards,
meka


Re: Minimal kernel version for 7900XT

2023-01-23 Thread Ernst Sjöstrand
6.0 should be enough:
https://www.phoronix.com/review/rx7900xt-rx7900xtx-linux

The firmware files is maybe the most complicated part right now...

//Ernst

Den mån 23 jan. 2023 kl 11:11 skrev Goran Mekić :

> Hello,
>
> I'm trying to figure out what's the minimal kernel version that supports
> the 7900XT. I found that the driver supports SLES 15:
>
> https://www.amd.com/en/support/graphics/amd-radeon-rx-7000-series/amd-radeon-rx-7900-series/amd-radeon-rx-7900xt
>
> I also found that SLES 15 SP 4 runs on 5.14:
> https://www.suse.com/support/kb/doc/?id=19587#SLE15SP4
>
> The problem I have is that I can't find PCI ID (for my card it's 744c)
> in the list:
>
> https://github.com/torvalds/linux/blob/master/drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c#L1654
>
> Can you help me understand how this card works with Linux without PCI ID
> anywhere mentioned in the code, please? Thank you!
>
> Regards,
> meka
>