Re: [PATCH v4 4/7] drm: nova: Add a GPU info ioctl

John Hubbard <[email protected]>
Newsgroups org.kernel.vger.rust-for-linux,dev.linux.lists.nova-gpu,org.freedesktop.lists.dri-devel,org.kernel.vger.linux-kernel
Message-ID <[email protected]>
On 8/24/26 12:34 PM, Danilo Krummrich wrote:
> On Tue Aug 11, 2026 at 7:06 AM CEST, Alistair Popple wrote:
>>  include/uapi/drm/nova_drm.h    | 27 +++++++++++++++++++++++++++
> 
> Btw. I think it would be nice to have project to play around with and write
> tests directly on top of the uAPI before we can run the big test suites.

Yes, I think it's reasonable to do something like that. Seeing a new API
from both sides, caller and callee, is always illuminating during review,
for one thing.

> 
> When I implemented the VM_BIND uAPI for nouveau I used IGT for this (but didn't
> enjoy it too much). It turned out to be very useful to test and benchmark the
> implementation before being able to complete VK CTS.
> 
> When I sent the first nova-drm skeleton, I also submitted [1]; maybe we can
> extend this further accordingly?
> 
> I'm also open for other ideas, but I'd really like to have something like this
> as we develop nova-drm.
> 
> [1] https://gitlab.freedesktop.org/dakr/drm-test

I was thinking about where this sort of thing should go, and this
location seems as good, or slightly better than the main alternatives,
to get started anyway.

Alternatives include:

1) The kernel's kselftests (tools/testings/selftests). These are
helpful in many cases, but some minor issues include:

    a) Oddly tight coupling to kernel code, even though the whole
       point of these is to exercise the kernel from user space.
       (Otherwise, these days one would use KUnit.) I've personally
       working on mitigating the coupling-induced problems and 
       ran into other, bigger problems along the way, such as:

   b) Confused build system and an arguably wrong way of invoking
      the tests (from Make(1) !).

2) Some other github-like location to host user space tests for
   nova. The idea is, do we want to set up a well-known location
   that people should keep updated? Or let a thousand github
   small test sites bloom? 


thanks,
-- 
John Hubbard
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.