Re: [RFC PATCH 1/7] drm/i915/selftests: Use drm_* prints in mock selftests

Krzysztof Karas <[email protected]>
Newsgroups org.freedesktop.lists.intel-gfx,org.freedesktop.lists.dri-devel
Message-ID <cboq45kuykc7hmcd4u52jjghd4t5dtvgokjn4u5gjchteqp635@2nmtfo6aje3b>
On 2026-08-11 at 20:19:25 +0300, Jani Nikula wrote:
> On Tue, 11 Aug 2026, Krzysztof Karas <[email protected]> wrote:
> > Move away from generic pr prints to device context aware drm
> > versions.
> 
> Hmm, aren't these selftests independent of i915 (mock or real) and the
> hardware, and could, in theory, be converted to kunit?
> 
> Does it make sense to introduce a dependency on mock i915 here? There's
> no device context to begin with, why introduce one?
It may be an overkill. I wanted to make the change uniform
across the tests, but since you mention kunit testing it might
be a good idea to do that instead of mocking devices.
> 
> (For the tests that do have a device context, the case is completely
> different, of course.)
Mhm, I'll shrink this series to contain only the changes, where
device context is available.

-- 
Best Regards,
Krzysztof
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.