Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp3611131pxu; Tue, 8 Dec 2020 17:16:10 -0800 (PST) X-Google-Smtp-Source: ABdhPJw/holhzoiwPudmY72CveJ80YPu4WWO6bEv+khxxOj08ymUbaXaqCk9E0+6hw9gLu7qgqIM X-Received: by 2002:aa7:d94e:: with SMTP id l14mr627602eds.98.1607476570692; Tue, 08 Dec 2020 17:16:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607476570; cv=none; d=google.com; s=arc-20160816; b=NXQj+W+89wmtd5RjlL5452xTrMrQoeQ8j/zytVBHzek1gElhUAB7UMoeOCt9ENBJbm B2Hm354fAhrAbWtz0IjBq1Bl5uEB4jcKDH34S6bzxSNH2CTihC/SKCyLfyn8AUXhlMiU nfXYEfopNNf/Kx7IQYIFpGS3b+fgcJdiWvpvNm62zvpx8Sfx+nRHqnpRKc15vVyZEeJ1 j5FUoI4mq95W/92vi7ZQ54ochSCNZTgqff6vlf+GqwLzR09NK0Fvwkcvt0Iy1imPOUU2 cFPblNFREuQ6uvgkyxWBYVljFRzaytYifgCNnxndlVOHfYCLaliwpjHQy2cNZ2+zoUpL fn/g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:mail-followup-to:message-id:subject:cc:to:from:date :dkim-signature; bh=l5gzTC7AC2N1XraPt/fdhIFbZxuzybNPj/HRm5T2Z3w=; b=iF8lyIx0MfJnLY/uM7DIggxAxiVZ0p5K6RuLmy0i6LKORk2sHFY/Bj8tSBLqiJQlL2 04s91Gs3Y3Pafm8RTD0X0s1JC5lIeQz+y3qqdWG8LoTIm1HQOJ8HCgeGlkfuwvULpAwM wsAIxyCRx70hdUYytrfHDX8Qm3yF5KX1wmeSHcrcM9KGh6Zfn/Sq8xLaaVL5MCqr7L/a w4KKN3+2N8T6s8YgypKxnRUHgRB/ez8PkM0fZmCasDblTUrqdoVQlSsd16XUVJzhNC5O OSmAHLcFCyI6FCx2Lp5S68K9a9yx/CWMIp0W7S922BfSRPjU6S9ha14cYWXNf1sOt+82 BQlg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ffwll.ch header.s=google header.b=ip3kTggH; 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 s16si126671edt.488.2020.12.08.17.15.48; Tue, 08 Dec 2020 17:16:10 -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=ip3kTggH; 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 S1725791AbgLIAyx (ORCPT + 99 others); Tue, 8 Dec 2020 19:54:53 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52454 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725789AbgLIAyx (ORCPT ); Tue, 8 Dec 2020 19:54:53 -0500 Received: from mail-wm1-x343.google.com (mail-wm1-x343.google.com [IPv6:2a00:1450:4864:20::343]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9E334C0613CF for ; Tue, 8 Dec 2020 16:54:12 -0800 (PST) Received: by mail-wm1-x343.google.com with SMTP id 3so26973wmg.4 for ; Tue, 08 Dec 2020 16:54:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ffwll.ch; s=google; h=date:from:to:cc:subject:message-id:mail-followup-to:references :mime-version:content-disposition:in-reply-to; bh=l5gzTC7AC2N1XraPt/fdhIFbZxuzybNPj/HRm5T2Z3w=; b=ip3kTggH1oiJ0wlJxFia9JdGxaEVCC9zJudD3Jmy8dZGbiHuDlBmGaqpaqSbcIEW/c 5F8KBzJANmrqbj9I8gkfG+q81tlyVstdY0EI5gQh6XcZjkRF0X18MZBX1dlEDrB4Uu3A sVRAViWMntuyTkWnhwrDXMFA1pk24Im5G09bg= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id :mail-followup-to:references:mime-version:content-disposition :in-reply-to; bh=l5gzTC7AC2N1XraPt/fdhIFbZxuzybNPj/HRm5T2Z3w=; b=oehLZRC7zGBhiPRbYlVG1Qgx2yF2jz/Wx/Kv7eqOW7hy8PU6TrPQ2H7NHlK7wgXGwl /wDeAeVG4rdcxzmhmfAvjRUa+klygOiVxm1PAG6irJB2yzVpASZUoJoOkDIeIhd2r3w+ o6S+KrEw13Z1taJP5exoRwVKC8e5lDxVMhbdTc6dA23U4n53/7KKl+dqLffX8VpuHQ9B xAHpL7g877ZVLbUuOtyuUQOErp5IaNnZv9dZ711iQr193eiKqPe4OoBiew6Iv5NUlgH1 Hzh4/6x9lA48qq4BttRb6fy6IkQbDeW5zm2dcX0/fiN7DexGMM2OYrcLiEKgokwzpZ8z dMBQ== X-Gm-Message-State: AOAM530bO4JGepU1PF8g901BOvSLJERAHG2/AzT3AzOAmvOg6kCtn1Kk SabCUXZeHfWTHkx2ccRlczomcg== X-Received: by 2002:a1c:e445:: with SMTP id b66mr36663wmh.187.1607475251414; Tue, 08 Dec 2020 16:54:11 -0800 (PST) Received: from phenom.ffwll.local ([2a02:168:57f4:0:efd0:b9e5:5ae6:c2fa]) by smtp.gmail.com with ESMTPSA id j15sm1048145wrr.85.2020.12.08.16.54.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 08 Dec 2020 16:54:10 -0800 (PST) Date: Wed, 9 Dec 2020 01:54:08 +0100 From: Daniel Vetter To: Sumera Priyadarsini Cc: melissa.srw@gmail.com, daniel@ffwll.ch, hamohammed.sa@gmail.com, rodrigosiqueiramelo@gmail.com, airlied@linux.ie, mripard@kernel.org, maarten.lankhorst@linux.intel.com, tzimmermann@suse.de, corbet@lwn.net, dri-devel@lists.freedesktop.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH V2] drm/vkms: Add setup and testing information Message-ID: <20201209005408.GP401619@phenom.ffwll.local> Mail-Followup-To: Sumera Priyadarsini , melissa.srw@gmail.com, hamohammed.sa@gmail.com, rodrigosiqueiramelo@gmail.com, airlied@linux.ie, mripard@kernel.org, maarten.lankhorst@linux.intel.com, tzimmermann@suse.de, corbet@lwn.net, dri-devel@lists.freedesktop.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org References: <20201208203735.ukqrgjmlntbvxc7e@adolin> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20201208203735.ukqrgjmlntbvxc7e@adolin> X-Operating-System: Linux phenom 5.7.0-1-amd64 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Dec 09, 2020 at 02:07:35AM +0530, Sumera Priyadarsini wrote: > Update the vkms documentation to contain steps to: > > - setup the vkms driver > - run tests using igt > > Signed-off-by: Sumera Priyadarsini > ___ > Changes in v2: > - Change heading to title case (Daniel) > - Add examples to run tests directly (Daniel) > - Add examples to run subtests (Melissa) > --- > Documentation/gpu/vkms.rst | 67 ++++++++++++++++++++++++++++++++++++++ > 1 file changed, 67 insertions(+) > > diff --git a/Documentation/gpu/vkms.rst b/Documentation/gpu/vkms.rst > index 13bab1d93bb3..d6739fbbe503 100644 > --- a/Documentation/gpu/vkms.rst > +++ b/Documentation/gpu/vkms.rst > @@ -7,6 +7,73 @@ > .. kernel-doc:: drivers/gpu/drm/vkms/vkms_drv.c > :doc: vkms (Virtual Kernel Modesetting) > > +Setup > +===== > + > +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. Do:: > + > + make nconfig > + > + Go to `Device Drivers> Graphics support` > + > + Enable `Virtual KMS (EXPERIMENTAL)` > + > +Compile and build the kernel for the changes to get reflected. > +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 `_ . > + > +The tests need to be run without a compositor, so you need to switch to text > +only mode. You can do this by:: > + > + sudo systemctl isolate multi-user.target > + > +To return to graphical mode, do:: > + > + sudo systemctl isolate graphical.target > + > +Once you are in text only mode, you can run tests using the --device switch > +or IGT_DEVICE variable to specify the device filter for the driver we want > +to test:: > + > + sudo ./build/tests/ --device "sys:/sys/devices/platform/vkms" > + sudo IGT_DEVICE="sys:/sys/devices/platform/vkms" ./build/tests/ > + > +For example, to test the functionality of the writeback library, > +we can run the kms_writeback test:: > + > + sudo ./build/tests/kms_writeback --device "sys:/sys/devices/platform/vkms" > + sudo IGT_DEVICE="sys:/sys/devices/platform/vkms" ./build/tests/kms_writeback > + > +You can also run subtests if you do not want to run the entire test:: > + > + sudo ./build/tests/kms_flip --run-subtest basic-plain-flip --device "sys:/sys/devices/platform/vkms" > + sudo IGT_DEVICE="sys:/sys/devices/platform/vkms" ./build/tests/kms_flip --run-subtest basic-plain-flip Does IGT_DEVICE also work with run-tests.sh? Aside from my curious question, patch looks good to me, thanks a lot. Reviewed-by: Daniel Vetter > + > TODO > ==== > > -- > 2.25.1 > -- Daniel Vetter Software Engineer, Intel Corporation http://blog.ffwll.ch