<div dir="ltr"><div class="gmail_quote gmail_quote_container"><div dir="ltr" class="gmail_attr">On Mon, Mar 17, 2025 at 2:27 PM Alex Deucher <<a href="mailto:alexdeucher@gmail.com">alexdeucher@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">On Mon, Mar 17, 2025 at 1:23 PM Marek Olšák <<a href="mailto:maraeo@gmail.com" target="_blank">maraeo@gmail.com</a>> wrote:<br>
><br>
> Userspace needs a query that a queue IP type is supported. "available_rings" is used for that right now, but if that's 0, something else must indicate IP support.<br>
><br>
> amd_ip_info::num_queues should be non-zero even when user queues are supported. The exact number doesn't matter with user queues.<br>
<br>
How will mesa determine whether kernel queues are supported?  Can mesa<br>
look at amd_ip_info::num_queues and if it's 0, check some new INFO<br>
query to determine if user queues are available?  If<br>
amd_ip_info::num_queues is always non-0, then it would be assumed that<br>
the kernel supports kernel queues, which it may not.<br></blockquote><div><br></div><div>That is to be determined. However, num_queues is also used to indicate whether the IP is supported, so either the meaning of num_queues has to change, or the way num_queues is set has to change.</div><div><br></div><div>Marek</div></div></div>