Received: by 2002:a25:31c3:0:0:0:0:0 with SMTP id x186csp461673ybx; Fri, 1 Nov 2019 06:18:03 -0700 (PDT) X-Google-Smtp-Source: APXvYqxTlofDBF1EhBMZ/jcBZHAhlTOwmk/aswD4tD8AQMFgpuSKtuXAg3eiOmsjdTzIx8+8Yh1R X-Received: by 2002:a05:6402:60d:: with SMTP id n13mr12510659edv.218.1572614282916; Fri, 01 Nov 2019 06:18:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1572614282; cv=none; d=google.com; s=arc-20160816; b=P+QsgbAwD6iy2IofHERUUted7tGijcuk6MRBkOvlqcBpFReQp3NJWeehS88WergM7J 0ZPbt8JW0lQlplaz/brdcdwU50NpXuuLIR2oBVvwlCAgKO5QCaaI4fmzlprErgiA1kzr MQ0r91pXy5NjWxPJBeV6oYRXn3Dyg+w4ppoGVE6cNSFgr4xPxlRau8uZIP75yO0jxavr HXvfw2iF89dE6fPrHDBRDp0VLKb1/pNF/xLYI3Wdat9tZCqN3ZJxjVWUW8B1BN4f1/ju XWixkzHkL/CYyEvtG7NdZt8olECiY8Og18a4mdWj3ehQbIHCqoekZdMnWcwRVFr+KYY9 OZ+g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-language :content-transfer-encoding:in-reply-to:mime-version:date:message-id :subject:autocrypt:from:references:to:dkim-signature; bh=vAqDpounhHkMRiyyED/9BaqJKuYlml73Vg/WJvMAnbo=; b=q5TEsuPeA1zzozTrbUkzBTcVbqcTXwix5sE0So8AoaK1n+WBNbQQl5t3S05C5ypSrD 5q2f0hKivnvU+yXbgzj1ykDIgqmENNp9XN16/XOHEcwdElOxYBD4MjfI6OgYy/vE2L4Y hOibO+kCFDpkYTwIg/xYdVjibNkr04+Ycd9r4AYy3j8d00N/Z3XNxhXf6fcC3rKD9Znn 9LzdGJK5J5plgUSK51SJ0iVkmr0lC/K/FrHH3WowrWZkYQJfmA5EijMQ3invQg5y2k26 5mH2CyxRZA/EqTnTTIr6PRB1/HeLh/WnDoxg3JXe40sqVUtyP0f0tbIymgQN6sgTK+VG 9V/A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@riseup.net header.s=squak header.b=MQLCFnGx; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=riseup.net Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e47si331373eda.73.2019.11.01.06.17.39; Fri, 01 Nov 2019 06:18:02 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@riseup.net header.s=squak header.b=MQLCFnGx; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=riseup.net Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726952AbfKANQb (ORCPT + 99 others); Fri, 1 Nov 2019 09:16:31 -0400 Received: from mx1.riseup.net ([198.252.153.129]:57026 "EHLO mx1.riseup.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726554AbfKANQb (ORCPT ); Fri, 1 Nov 2019 09:16:31 -0400 Received: from capuchin.riseup.net (capuchin-pn.riseup.net [10.0.1.176]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (Client CN "*.riseup.net", Issuer "Sectigo RSA Domain Validation Secure Server CA" (not verified)) by mx1.riseup.net (Postfix) with ESMTPS id 474N4T6P5nzFcJ6; Fri, 1 Nov 2019 06:16:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=riseup.net; s=squak; t=1572614189; bh=FgBE6xxqMnDh8R5p+eGsaBsU02MatiZtn1CIEGmCCdk=; h=To:References:From:Subject:Date:In-Reply-To:From; b=MQLCFnGxI+2Kcv9mQ8qKQCKYjkOtbQUe/E3W53TrWo/sa/YGOQXdlcBWTTMNCQlFW cf6kZdnPGUZ7WGY6Tyvsmt41tcUqVMFiZyTnJUGwvWd+wTUMRVnBJxgxJaGCs6+Srs PSTzTl/hhCzchvUks27Pi5q8ETFAPHErOx/T4XFE= X-Riseup-User-ID: A77413114152033575A26406B4726DBADAD7B718E316A6CE1F36915C1855729C Received: from [127.0.0.1] (localhost [127.0.0.1]) by capuchin.riseup.net (Postfix) with ESMTPSA id 474N445NyFz8tVk; Fri, 1 Nov 2019 06:16:04 -0700 (PDT) To: Gabriela Bittencourt , outreachy-kernel@googlegroups.com, manasi.d.navare@intel.com, rodrigosiqueiramelo@gmail.com, maarten.lankhorst@linux.intel.com, mripard@kernel.org, sean@poorly.run, airlied@linux.ie, daniel@ffwll.ch, corbet@lwn.net, dri-devel@lists.freedesktop.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, lkcamp@lists.libreplanetbr.org References: <20191101042706.2602-1-gabrielabittencourt00@gmail.com> From: =?UTF-8?Q?Andr=c3=a9_Almeida?= Autocrypt: addr=andrealmeida@riseup.net; keydata= mQINBFrwru4BEACZLF/qyqGfv9PT1Q5P8UIlAyVh/8dBiWW52Albfpa3g8OgWub2duegAHtT VLCLOeyRY+7clUyIU7gK5N15EQxfViOuk44js6ut4sCsXPK3nUEjvGAXDaxl5Kq1SST78xn/ ocm2e11Q/uE14mbN08kUI1TM9yzV9huv+cnEmUDrvMI0iISnDQddD7mxP61DSn52XFYJDy+W Cl0A4Eh9VvFdDwUJIBoFTFnInTv4zq+ath+oIJjrBo2l6atvY+l7Kf49kZ0E6Lxr/pWp9Snh 2QnsUDN7TxZQ58Oj8ZyFjamVRM4zUSjp3KwJ+jS5Xr9/MrtjLOJsvFrPs1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385Vu+fICwvuVaKK3YPnkY5owKhfbj+r5a/rCBz8VgXmGe 6kcwNOjdoDdY1W51TbmxZKl+4hXaBPw2FGPEN/qVViRAmNVWDNfHUG5F1N1aRyTn+tzuufyK EYCkbeCOhG9MJx38XQIBXZ20D4+prvm4NjgvrsbQHpPrCDV/dvBAINoe+oa+/M3OxldgeNIO jn2tUheD5pUEFJ07zBxrzZwbnG5h7WhEaavRlUcTqdz6hvlN0yexEuMbd1XYO+mCkZF/tz3g 7Tpil4t+NBEYEm6t7Wj0Nncl4ZSE0gz2lF1BVS0np0K3btmppAGHr6pgim9jNf7kkL0fuOVV e6t0pb7rwfqpUWeVy4dOPpj+05n+HYKRWw5Y8h5EfAE7KbukG9Nks+8OU/4KSF+pvvVQt6Yb pGoXTEbOwpkhKmmcaYNAFFemKe+5a2jtlGxJGATq4ByeGouu1npudHIqhQ8rYb2FILazCL+3 nMzqjfWsfg20IotAXDtPqR7B00dLHxhifoorQc2cFr3CgIwAuXRZoHwhKNKhgO3gyOnVSyZd mNGb Subject: Re: [Lkcamp] [PATCH] drm/doc: Adding VKMS module description and use to "Testing and Validation" Message-ID: Date: Fri, 1 Nov 2019 10:14:39 -0300 MIME-Version: 1.0 In-Reply-To: <20191101042706.2602-1-gabrielabittencourt00@gmail.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Content-Language: en-US Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Gabriela! On 11/1/19 1:27 AM, Gabriela Bittencourt wrote: > Add a description on VKMS module and the cases in which it should be us= ed. > There's a brief explanation on how to set it and use it in a VM, along = with > an example of running an igt-test. > > Signed-off-by: Gabriela Bittencourt > > --- > > Hi DRM-community, > this is my first (of many, I hope) patch in this subsystem. I hope to = have > a lot of learning (and fun :)) working with you guys. > I'm starting by documenting the VKMS driver in "Userland interfaces", i= f I > have been inaccurate in my description or if I misunderstood some conce= pt, > please let me know. Cool! It would be nice also to know if you have tested this patch and checked the output .html file. > --- > Documentation/gpu/drm-uapi.rst | 38 ++++++++++++++++++++++++++++++++++= > 1 file changed, 38 insertions(+) > > diff --git a/Documentation/gpu/drm-uapi.rst b/Documentation/gpu/drm-uap= i.rst > index 94f90521f58c..7d6c86b7af76 100644 > --- a/Documentation/gpu/drm-uapi.rst > +++ b/Documentation/gpu/drm-uapi.rst > @@ -285,6 +285,44 @@ run-tests.sh is a wrapper around piglit that will = execute the tests matching > the -t options. A report in HTML format will be available in > ./results/html/index.html. Results can be compared with piglit. > =20 > +Using VKMS to test DRM API > +-------------------------- > + > +VKMS is a software-only model of a KMS driver that is useful for testi= ng > +and for running compositors. VKMS aims to enable a virtual display wit= hout > +the need for a hardware display capability. These characteristics made= VKMS > +a perfect tool for validating the DRM core behavior and also support t= he > +compositor developer. VKMS helps us to test DRM core function in a vir= tual > +machine, which makes it easy to test some of the core changes. "test DRM core function" ... "test some of the core changes", maybe this can be reworded to avoid repetition. > + > +To Validate changes in DRM API with VKMS, start setting the kernel. Th= e > +VKMS module is not enabled by defaut, so enable it in the menuconfig::= > + > + $ make menuconfig > + Not sure if we need to teach people how to enable a module. > +Compile the kernel with the VKMS enabled and install it in the target > +machine. VKMS can be run in a Virtual Machine (QEMU, virtme or similar= ). > +It's recommended the use of KVM with the minimum of 1GB of RAM and fou= r > +cores. > + > +It's possible to run the IGT-tests in a VM in two ways: > +1. Use IGT inside a VM > +2. Use IGT from the host machine and write the results in a shared dir= ectory. > + > +As follow, there is an example of using a VM with a shared directory w= ith > +the host machine to run igt-tests. As example it's used virtme:: > + > + $ virtme-run --rwdir /path/for/shared_dir --kdir=3Dpath/for/kernel/di= rectory --mods=3Dauto > + > +Run the igt-tests, as example it's ran the 'kms_flip' tests:: > + > + $ /path/for/igt-gpu-tools/scripts/run-tests.sh -p -s -t "kms_flip.*" = -v Should we run this command at the host or guest? > + > +In this example instead of build the igt_runner it's used Piglit I'm feeling that there should be more commas in this sentence. How about "In this example, instead of building igt_runner, Piglit is used" > +(-p option); it's created html summary of the tests results and it's s= aved > +in the folder "igt-gpu-tools/results"; it's executed only the igt-test= s > +matching the -t option. > + > Display CRC Support > ------------------- > =20 Thanks, =C2=A0=C2=A0=C2=A0 Andr=C3=A9