Received: by 2002:a25:31c3:0:0:0:0:0 with SMTP id x186csp82651ybx; Thu, 31 Oct 2019 23:28:33 -0700 (PDT) X-Google-Smtp-Source: APXvYqzNrfgbB/GAKlvlV/h31Isefb5ns5SLW56yWPjOqwS8qqtUKX37Oh4u7+cg5VEScvMDMMHk X-Received: by 2002:a50:c30d:: with SMTP id a13mr7514440edb.177.1572589713081; Thu, 31 Oct 2019 23:28:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1572589713; cv=none; d=google.com; s=arc-20160816; b=ADt4jd9o34wn6XijYvWkcdacNCz1SgWBRR5dCmuLC35TKkpB5QbSOgdn5Bch3pqyHo Vy6B2AF24AGCjuvbBNuu4a/pLawrQdHscwUfxqEcTvdtCBi8t5xLu7wBQGLb1YpvPjTY rSlWwaOCy/jLkRR9dFV3WwwESDdyocqHyUcpBJMVKqUY1SpCt1H1mQY0/hjrKs5r0cHJ kwxlsIFzZRNVbHHJtMA5zTv1JXWglfdFBV6tLNRzUOJAVWc++T/YL19DmS/JNtN3fpMN xLKrJToW1UanbOHOB9cJXNmPeXCCOckq9lh4lI0NUbr6Ne8+NxXRszjLdlgNm6mrrICM P4Eg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=HpS7M3wugMxRqvwJlP7zk8Xh32CVSZbs51QsUAEIzfw=; b=h/qr5M375dZd7P3vWRVptSdSsyh/HpCPgDY/y7FRGMaMHyvHXWyV3+vXzoepw5caDV bK2u8SRkh0mztHF+DREpaN1yFFfaIjb8l5vo63aN529sIkZDEBSb2WIN2fLt3dzJXrbW EFhMQvQJPdrsktq27es9cu60QED2yU4Ql64gHWuhAswwYb6jZtBDQJf1XXKCoA+Hak9g bDR+N/FOMZIwriQdcDfnzzsz9Ng0KA3g2e2qrf1MbaUdVWZQvDTTOU9LBEPncVF/8Llj JyCB58l/yL5u2zb/XiVvwjv8MUcyoMkHv6B6p4ZaXtLLlYXucLlTgE+lBZ09cXfJ/MB8 9qZw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=eYOl9Xry; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id ol21si5175929ejb.248.2019.10.31.23.28.06; Thu, 31 Oct 2019 23:28:33 -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=@gmail.com header.s=20161025 header.b=eYOl9Xry; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729737AbfKAE1R (ORCPT + 99 others); Fri, 1 Nov 2019 00:27:17 -0400 Received: from mail-qt1-f193.google.com ([209.85.160.193]:36026 "EHLO mail-qt1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726169AbfKAE1R (ORCPT ); Fri, 1 Nov 2019 00:27:17 -0400 Received: by mail-qt1-f193.google.com with SMTP id y10so4716603qto.3; Thu, 31 Oct 2019 21:27:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=HpS7M3wugMxRqvwJlP7zk8Xh32CVSZbs51QsUAEIzfw=; b=eYOl9Xry51JB4XOdcoO0HKnLb5V3OO+fyyZXo3Gyk4O17pxoDfoSvQUCR7XNoasLmn 1JpmLWlUEimCevap83AXVIUpMM4tmRf7BrH/H9HZPBHebQwP4EUXbC7Mpu/iAUjg9bx4 K/Gnk0D2Xoe4iTxrsIsps+Z1VX4K2XAEJQe1EY4qUmWUkm2MDrHWhRSkW90OsfNKH+at djFMIo9+Ypc0/PLBXNAydL8HRDa6ovC53rdB2Yv+9dgU30Jc9nGMQ7WSDhRJ/YdLkB8p 3j//UCXEPr/yf2jxd3nXQKS5QarHMHlwIztXZJv9pIM9MK5iHpry0oPwBnaUJMvVUwNU kw+Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=HpS7M3wugMxRqvwJlP7zk8Xh32CVSZbs51QsUAEIzfw=; b=N91QzoSS/abK2ji31eRuffUFElvEa2Oq/4PV3xIchIlOf/IynP0YR+INXpmLpab37I Rcsgb2HNJ39Ik3nfApTtrtt9UkHbzO3UJkuysLEVBIfsm/l8YFlpOFFTTXalItUXO/z5 AefvspVkQqDbrVzsFzxk6JvuzMzN4xrDR/F7d4ZmCn7Z0ttZhIztAlOw/9TtWY4puehC Fvb5f1m0pcExu2TlR7sJUxF5hmOFREEbMiSmTCbf5PfORWKo8B8EcZgRHCSRFpH/643l 9y3fx96AubvKNP/sJ4/ubUm95EWE29RvjrWDU9V1YPw2xZNqwg2vb7+R5MFRU0CA7T93 oymw== X-Gm-Message-State: APjAAAXMvcAK7l9+lECUU+/GD6WbzNY+lDoC6dHMmSf3dLD46scYKcNe Acdbmm9h2kIbhdkLEW5+zOs= X-Received: by 2002:aed:24af:: with SMTP id t44mr1230263qtc.135.1572582435878; Thu, 31 Oct 2019 21:27:15 -0700 (PDT) Received: from localhost.localdomain ([187.106.44.83]) by smtp.gmail.com with ESMTPSA id w24sm3719838qta.44.2019.10.31.21.27.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 31 Oct 2019 21:27:15 -0700 (PDT) From: Gabriela Bittencourt To: 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 Cc: Gabriela Bittencourt Subject: [PATCH] drm/doc: Adding VKMS module description and use to "Testing and Validation" Date: Fri, 1 Nov 2019 01:27:06 -0300 Message-Id: <20191101042706.2602-1-gabrielabittencourt00@gmail.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. --- 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