Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp812652pxu; Thu, 3 Dec 2020 13:20:21 -0800 (PST) X-Google-Smtp-Source: ABdhPJxftYaUKHpfahmXO6MmnDyIKNdwQzIUyOKMxQ0QRwOGNpccHJEDkUX7NUOfhGBFV1wwBeWH X-Received: by 2002:a50:9b58:: with SMTP id a24mr4574140edj.22.1607030421193; Thu, 03 Dec 2020 13:20:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607030421; cv=none; d=google.com; s=arc-20160816; b=lcj4iBmoKlZjMNJintfWCwC/y9VbYcYNhLBj+JlSqKT2MUwubywlJVkdJq3m3ohFta 6tSvke2xr4k4OsC5/mS4BRtneufiAHfdnI6S01pkockhmv4D+B2Q4epUC3jy5L8S1lyd RYdUYYUBQCiMulzwO8F6mWJtd2W5oy89KNbMtukZnWi9hujeSnxoEhARKhhNODk3vFWu tHcFcehuqFLozISaG23I6dol2KrQAoUyh6xuHcptyU2As3BLhwVB12JOheFT2cjqiRb8 VtfkR9VJX3lztFx32dkE01c0K03yIsCey5oQ+6mV7/8UTa2xMlfpVuA5ccuaH+O3pAAO 8OZQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=zE2K/CILOD7x/mQFo0Rz+6Lwz9iUEQy1K2ey3j7mIvY=; b=eStkz0dTeeXiJar8foWB0Kpmoq0miieoQuC25tYPnEps3sbNcx+ub2oQPPbwXY5Ivt hrojGiEWOyDhmq4FdtL880rsIu6xcZg1CNHpAGJJrCGBr2YzVBnWXhQ5+0xQyWN6hHIK YIVqu3Jwhy/eS4ddnYVuHPpIvDLUJmsrEH5q3u8NpgIdu0ybGElppTfAzhnae+gsTDtc f/kwUAIYx1SD9U2BZlwNxmhuq9pnTJwVJhCb7muZjXVPT8WZTXgB4lyx7wx3SsZRibd8 p6dPv73GudLnaYgzVloSBsmgPRgHVBbUIHKxKvMXca5mDPAo1W6e98Af2OiUXMO2e6/y 7MnA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ffwll.ch header.s=google header.b=RJvFpvNV; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id rp28si159357ejb.10.2020.12.03.13.19.58; Thu, 03 Dec 2020 13:20:21 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@ffwll.ch header.s=google header.b=RJvFpvNV; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726761AbgLCVQw (ORCPT + 99 others); Thu, 3 Dec 2020 16:16:52 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46926 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726071AbgLCVQv (ORCPT ); Thu, 3 Dec 2020 16:16:51 -0500 Received: from mail-ot1-x344.google.com (mail-ot1-x344.google.com [IPv6:2607:f8b0:4864:20::344]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id ADFF9C061A51 for ; Thu, 3 Dec 2020 13:16:05 -0800 (PST) Received: by mail-ot1-x344.google.com with SMTP id b18so3208343ots.0 for ; Thu, 03 Dec 2020 13:16:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ffwll.ch; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=zE2K/CILOD7x/mQFo0Rz+6Lwz9iUEQy1K2ey3j7mIvY=; b=RJvFpvNVdQHgoMCdGEJOrXTglxIdvZWaCGMEkkFNj5+/KVvxUKXNczdE5ARGh/r+X9 kRN9dZlFLDoQIULz9HzkGbo0WG33na8+2Az/iu3B5aSisUYemDodBckMjlQMW0Hul9u9 vDvOMQ7yewLVQhXF0RNF7q6iKv9e8vGalRbQg= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=zE2K/CILOD7x/mQFo0Rz+6Lwz9iUEQy1K2ey3j7mIvY=; b=R9d/0WAGyVwIw+aCPNJMU6X6RsrrqK4xUv+jv3EZ/Cg0Og6KukqbUwAyG8sXRRL9Qp p4FofvuH/porWRs+7GlweYbsvI2WN8165BHM3CBmcrLAuXgZW7tlsKc/Efl0FGhsvAuW uo7KIs9BvGKBgsljOqqWB+yU7AUdzxTcAvmWiAI2zjIe7yIQq2itMdUBi0RQZHeiA/iU ONTtJkcentOuRej3lxUmsQqTZqrd0POrKK5y74h7IxUPLQKqqx3KbVmb8ycgxlc9Gz/R Cj3n5ZUz10RsPeD+EL1Pz/mfqKRbrB4h2ZRo+wblmf0oiJOhzjLsmQlYcGOqQTUhiJec 4snQ== X-Gm-Message-State: AOAM531HJ1jakYsNf6gzvLnXjJkF15F5VIU6nHJSGc1s0OSHELQKKxoJ uvERtZY23MkVm+m/bdxGQQXGop66UAmZCEgqqo1+7w== X-Received: by 2002:a9d:23ca:: with SMTP id t68mr978736otb.281.1607030164448; Thu, 03 Dec 2020 13:16:04 -0800 (PST) MIME-Version: 1.0 References: <20201203191339.u5hfwy6ycrrzeb3z@adolin> In-Reply-To: <20201203191339.u5hfwy6ycrrzeb3z@adolin> From: Daniel Vetter Date: Thu, 3 Dec 2020 22:15:53 +0100 Message-ID: Subject: Re: [PATCH] drm/vkms: Add setup and testing information To: Sumera Priyadarsini Cc: Melissa Wen , Haneen Mohammed , Rodrigo Siqueira , Dave Airlie , Maxime Ripard , Maarten Lankhorst , Thomas Zimmermann , Jonathan Corbet , dri-devel , Linux Doc Mailing List , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Dec 3, 2020 at 8:13 PM Sumera Priyadarsini wrote: > > Update the vkms documentation to contain steps to: > > - setup the vkms driver > - run tests using igt > > Signed-off-by: Sumera Priyadarsini > --- > Documentation/gpu/vkms.rst | 47 ++++++++++++++++++++++++++++++++++++++ > 1 file changed, 47 insertions(+) > > diff --git a/Documentation/gpu/vkms.rst b/Documentation/gpu/vkms.rst > index 13bab1d93bb3..d6782174d23f 100644 > --- a/Documentation/gpu/vkms.rst > +++ b/Documentation/gpu/vkms.rst > @@ -7,6 +7,53 @@ > .. kernel-doc:: drivers/gpu/drm/vkms/vkms_drv.c > :doc: vkms (Virtual Kernel Modesetting) > > +SETUP Absolute bikeshed, but we generally stick to titlecase for titles, so just "Setup" and "Testing with IGT". > +===== > + > +The VKMS driver can be setup with the following steps: > + > +To check if VKMS is loaded, run:: > + > + lsmod | grep vkms > + > +This should list the VKMS driver. If no output is obtained, then > +you need to enable and/or load the VKMS driver. > +Ensure that the VKMS driver has been set as a loadable module in your > +kernel config file. The following line should be present in the .config > +file in your kernel root:: > + > + CONFIG_DRM_VKMS=m > + > +Compile and build the kernel for the changes to get reflected. > +If your existing config already has VKMS available as a loadable module, > +then there is no need to build the kernel again. > +Now, to load the driver, use:: > + > + sudo modprobe vkms > + > +On running the lsmod command now, the VKMS driver will appear listed. > +You can also observe the driver being loaded in the dmesg logs. > + > +To disable the driver, use :: > + > + sudo modprobe -r vkms > + > +TESTING WITH IGT > +================ > + > +The IGT GPU Tools is a test suite used specifically for debugging and > +development of the DRM drivers. > +The IGT Tools can be installed from > +`here `_ . > +Once you have installed IGT, you can run tests using:: > + > + ./scripts/run-tests.sh -t > + > +For example, to test the functionality of the igt_draw library, > +we can run the kms_draw_crc test:: > + > + ./scripts/run-tests.sh -t kms_draw_crc If we run igt tests directly, there's an option to select the right device. This is important if you have more than one gpu driver (usually the case if you run this directly, but even on virtual machines there should usually be a drm driver around). E.g. when I run a test directly: # tests/kms_flip --device drm:/dev/dri/card0 I'm not sure whether there's an option that's always going to select the vkms device. I'm also not sure you can pass these options to run-tests.sh, I kinda don't use that one myself ... Aside from that looks all good to me. -Daniel > + > TODO > ==== > > -- > 2.25.1 > -- Daniel Vetter Software Engineer, Intel Corporation http://blog.ffwll.ch