Received: by 2002:a25:31c3:0:0:0:0:0 with SMTP id x186csp4263502ybx; Mon, 4 Nov 2019 10:22:12 -0800 (PST) X-Google-Smtp-Source: APXvYqyr3vcwot0reEgCc5EiTL47fOstSapMxUw7FG3h7gK1wEQGmS9coUXQ6kVTwo8sV1T9d/+i X-Received: by 2002:a17:906:6451:: with SMTP id l17mr25147623ejn.114.1572891732637; Mon, 04 Nov 2019 10:22:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1572891732; cv=none; d=google.com; s=arc-20160816; b=krSuD73dZu6qKssJWZMtyA2NbVBH0CHiqBSHsGIJWzu6S1nHytmbIyReQFxx9/iGKL Ul+I2Pwq6hu3P0zZfUo0BXPrvRu9SLWEB9Cv3oAtxFQKmT93nFRAnAFdVI08mUThr++2 bd4l9xLuLvusbXuho6ZjzwFMthn9QJ+EXAX/rVBy1CRo2ZEgI6OqDopmVfYO6iOvFtSp 7YtOPzkH4zfzLI0jQK6Vaquvx9oQCZFiToohwzfSzm7mO6tgL3ZuqQa1uwpbkXgpGu+p hKuO+ErlkqAo0f4gwGrW9quAhA2OJqzMXR+nBe5kfNApfFpPIv//T6/rO0ICY88dgxne Fv6w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:mail-followup-to :message-id:subject:cc:to:from:date:dkim-signature; bh=Qfg3/OhENOhgHzvHvbxDHTYQ7dgyHpgpR3Q3h/hLkOE=; b=Lx7L+s+ioQWEaVFGG1HlVbgfmzJWckG9UL/9sOxTr0TBTV2+sBEZQ3as3U6XGgpfJn Ph8S3eVRCoa2LJiXrZ9Z58QL5Az+mWiPmB0M4ZyaYBiw2ENxrlW9ncaLXPtVWpC3CY1S 3OEBl6UNICQK7QFzfCRYS5Dkwue/1zCd5Oe2MAhyrMhRezb//QulP2A48f8Hbgk7oZVg 5Ut7UXm76RhxzzR8ijFZZdJdcvHENG/JA/vBFwz/Vl6Jc4ZhwwMA9CXMwiXplHzN5PS1 pM3v7sDL/KMpmaLlJcuJ7TwtE6WnMIHOdoXNJ/fOGCT0pjZC1KBX869uyUFJ8+Pzj9/u UB1w== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@ffwll.ch header.s=google header.b=fn+K0Jeb; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l8si7314387edb.234.2019.11.04.10.21.48; Mon, 04 Nov 2019 10:22:12 -0800 (PST) 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=fail header.i=@ffwll.ch header.s=google header.b=fn+K0Jeb; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729562AbfKDSTj (ORCPT + 99 others); Mon, 4 Nov 2019 13:19:39 -0500 Received: from mail-wr1-f68.google.com ([209.85.221.68]:43408 "EHLO mail-wr1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728336AbfKDSTj (ORCPT ); Mon, 4 Nov 2019 13:19:39 -0500 Received: by mail-wr1-f68.google.com with SMTP id n1so18248139wra.10 for ; Mon, 04 Nov 2019 10:19:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ffwll.ch; s=google; h=sender:date:from:to:cc:subject:message-id:mail-followup-to :references:mime-version:content-disposition:in-reply-to:user-agent; bh=Qfg3/OhENOhgHzvHvbxDHTYQ7dgyHpgpR3Q3h/hLkOE=; b=fn+K0JebeyPggpWIrakbcYMmMywkz8WCAdLPRUAUoAtqIBUspiPN7tD3QProjEFSDP nLRQVnCWYlJKioXnZylDFjZ9CvozxWOKgd65NLtZqd17WmgPpSzRe+AzdbWMQMwiKEAh Qm0FkocWIVWPD+J6wOxMRhwzLkNS66oy4IFOE= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:date:from:to:cc:subject:message-id :mail-followup-to:references:mime-version:content-disposition :in-reply-to:user-agent; bh=Qfg3/OhENOhgHzvHvbxDHTYQ7dgyHpgpR3Q3h/hLkOE=; b=i3xalsiqDZAeRcuV+lsGuGz1qBNAjO4TK+3MX60GIrMzPr62Y7m/bxSzsgU72yxvbZ jYrrtqzMSZLvyTKTR6WModuAuJz5B8JnxAQB6dbVmYRtMvPzis014Y52b5aiQnYQAsxq B0xBUc2RFJetGZoXZKGUPt4mRHP8NmACVz6Jun6CJpm55EGGF5/rUMKJqKwvEQ4g/fOd FcLJagohgRT/Y6UXsl2PC0EGFL3GREGTbKK2V0DeIeAMRYSbAAy/k6KsDrwATovrP6Hk JvTOYKvrR44JRlb3WE7ViDlAqJwoQ9fQwVlz5O26i0DxluRLLLlRh5tYo7/aeMFLOIEd ydvw== X-Gm-Message-State: APjAAAX0DwkvG3SH9Virlf7ppcgbseSywrGWAmu4nypg19LU+vTGQfHV F+gmv8TGqhBcv4rK3sr1qMl+mQ== X-Received: by 2002:adf:f70f:: with SMTP id r15mr25585980wrp.262.1572891576303; Mon, 04 Nov 2019 10:19:36 -0800 (PST) Received: from phenom.ffwll.local (212-51-149-96.fiber7.init7.net. [212.51.149.96]) by smtp.gmail.com with ESMTPSA id p12sm19639397wrm.62.2019.11.04.10.19.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Nov 2019 10:19:35 -0800 (PST) Date: Mon, 4 Nov 2019 19:19:33 +0100 From: Daniel Vetter To: Gabriela Bittencourt Cc: 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 Subject: Re: [PATCH] drm/doc: Adding VKMS module description and use to "Testing and Validation" Message-ID: <20191104181933.GR10326@phenom.ffwll.local> Mail-Followup-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, 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> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20191101042706.2602-1-gabrielabittencourt00@gmail.com> X-Operating-System: Linux phenom 5.2.0-3-amd64 User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Nov 01, 2019 at 01:27:06AM -0300, Gabriela Bittencourt wrote: > Add a description on VKMS module and the cases in which it should be used. > 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", if I > have been inaccurate in my description or if I misunderstood some concept, > please let me know. Oh awesome, this sounds great, really looking for more people hacking on vkms. Docs lgtm, but I'll let Siqueira have a look and merge it. Pls ping in case this patch gets lost. -Daniel > --- > Documentation/gpu/drm-uapi.rst | 38 ++++++++++++++++++++++++++++++++++ > 1 file changed, 38 insertions(+) > > diff --git a/Documentation/gpu/drm-uapi.rst b/Documentation/gpu/drm-uapi.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. > > +Using VKMS to test DRM API > +-------------------------- > + > +VKMS is a software-only model of a KMS driver that is useful for testing > +and for running compositors. VKMS aims to enable a virtual display without > +the need for a hardware display capability. These characteristics made VKMS > +a perfect tool for validating the DRM core behavior and also support the > +compositor developer. VKMS helps us to test DRM core function in a virtual > +machine, which makes it easy to test some of the core changes. > + > +To Validate changes in DRM API with VKMS, start setting the kernel. The > +VKMS module is not enabled by defaut, so enable it in the menuconfig:: > + > + $ make menuconfig > + > +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 four > +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 directory. > + > +As follow, there is an example of using a VM with a shared directory with > +the host machine to run igt-tests. As example it's used virtme:: > + > + $ virtme-run --rwdir /path/for/shared_dir --kdir=path/for/kernel/directory --mods=auto > + > +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 > + > +In this example instead of build the igt_runner it's used Piglit > +(-p option); it's created html summary of the tests results and it's saved > +in the folder "igt-gpu-tools/results"; it's executed only the igt-tests > +matching the -t option. > + > Display CRC Support > ------------------- > > -- > 2.20.1 > -- Daniel Vetter Software Engineer, Intel Corporation http://blog.ffwll.ch