<div dir="ltr"><div>Let's drop this patch. Mesa will use family_id.<br></div><div><br></div><div>Marek<br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Sep 18, 2019 at 4:10 PM Marek Olšák <<a href="mailto:maraeo@gmail.com">maraeo@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Sep 18, 2019 at 10:03 AM Michel Dänzer <<a href="mailto:michel@daenzer.net" target="_blank">michel@daenzer.net</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On 2019-09-18 1:41 a.m., Marek Olšák wrote:<br>
> drmVersion::name = amdgpu, radeon, intel, etc.<br>
> drmVersion::desc = vega10, vega12, vega20, ...<br>
> <br>
> The common Mesa code will use name and desc to select the driver.<br>
<br>
Like the Xorg modesetting driver, that code doesn't need this kernel<br>
functionality or new PCI IDs. It can just select the current driver for<br>
all devices which aren't supported by older drivers (which is a fixed<br>
set at this point).<br>
<br>
<br>
> The AMD-specific Mesa code will use desc to identify the chip.<br>
<br>
Doesn't libdrm_amdgpu's struct amdgpu_gpu_info::family_id provide the<br>
same information?<br></blockquote><div><br></div><div>Not for the common code, though I guess common Mesa code could use the INFO ioctl. Is that what you mean?<br></div><div><br></div><div>Marek</div></div></div>
</blockquote></div></div>