Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1578390pxb; Thu, 4 Mar 2021 15:20:17 -0800 (PST) X-Google-Smtp-Source: ABdhPJzPX3XQ9DTDFmIx/XxPDlUAEfF87+0C15nqZPRK8RQCxn5L15oYxQ1DkXsoQ7u+Vomq8QJ5 X-Received: by 2002:a05:6602:3314:: with SMTP id b20mr5735819ioz.78.1614900017622; Thu, 04 Mar 2021 15:20:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614900017; cv=none; d=google.com; s=arc-20160816; b=PZmq1Z/L9i6KQwxj9o/QRRCgXJ6XZDWzMoBDLdhj0/j3jBmeDz6dBVvUiHsk4DjlJV cpDRgvIjl02GDeTxcAyjCZQJ1IGkHwGy9ZD21lQfdrdbMES2LfsIv8Bko1w5wN9hN/qT LCDFqa2dLEiHw6DFo7ai0TzQ2285MdRhxTB+GT6ZF7p2hZmD95vs4NToIkOdTQ5IOkUU wEyZLuFcMFGmvZEYVD6FadyHFt+NP9f6erjqwdI0xrGJntZXJ6uUGECGe+9Iq8EP5YBH 3Yl25XD6A6jRJBgC6adW6ZDi+altviMC3VbBvNqsq4Xs+k+458u0UCJVWokMAJsqO7hv qTrQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-disposition:mime-version:message-id :subject:cc:to:from:date:dkim-signature; bh=UENSETCCSEDGxjTkQmqskiUgabV6KTJ5GVCGqRR2WeU=; b=mY9gMYZ3IV11e9EAvTFEAxmMPxtWNOjlHWAl3l0zU+yKJ8gwkKikOcyTDEJnnaU6jW fO8gcIMqs2lTMioLKwZX8C61Zp8p3YEpt5br5NGlzt+it9sdG0wVh19smtb7xCTM8K+2 E6ct8QES33SOZER5wp7kIsKaQzEhgBRoDivBvOLAzW4VFSuXNf9mCfXhEKNI/WW91KMm Z0cnXNL10JWoYvv6GbwR8AeBcLt6y7wmr1eZAzMBTF3aJHgPjY9EuCFJQRZX0S8sUhkW HJ9PTBlO0nkGI0idUzQFCgxlzhfPoC6TY8H/Z3F2aQr8nSbWFsUOX1s760/WEQqnKWJ0 DT7w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=FCtkSXDE; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id x8si682925ioj.36.2021.03.04.15.20.04; Thu, 04 Mar 2021 15:20:17 -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=@gmail.com header.s=20161025 header.b=FCtkSXDE; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1385178AbhCCRIr (ORCPT + 99 others); Wed, 3 Mar 2021 12:08:47 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41488 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238550AbhCCMvz (ORCPT ); Wed, 3 Mar 2021 07:51:55 -0500 Received: from mail-pj1-x1029.google.com (mail-pj1-x1029.google.com [IPv6:2607:f8b0:4864:20::1029]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3C566C06178C for ; Wed, 3 Mar 2021 04:49:56 -0800 (PST) Received: by mail-pj1-x1029.google.com with SMTP id c19so4090243pjq.3 for ; Wed, 03 Mar 2021 04:49:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:mime-version:content-disposition; bh=UENSETCCSEDGxjTkQmqskiUgabV6KTJ5GVCGqRR2WeU=; b=FCtkSXDEcxgX1TqpqqdTnD8DMSoRVbK1hEuV3/IhT/lllSVvPuEtO4J4uGFDBefbOj ImvnczGzv+lY/tPJLrhxQqyNFK9mB8S3WK430mXnkWSTY+HNP7JVFga5xneXH4SoIGru Kmi5BFYtY69xEBr6B8BJKuGTMT6yC3GpB43G0lds2vOPR7/yhALobcKNHJmM2yFdRtfS 5y07AutoWsGjS+sPh+dcj1S4kddIUpMNDre6Yc1WxKKbXKJbrOvitFaPQGawApqRNxY4 bCU5QJszHbPbysh8ofYcOsDuCSMuQa4pBYJ5z+IJSpJTltnwvNfxfArSO+Qk9vmFGSzY gePw== 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:mime-version :content-disposition; bh=UENSETCCSEDGxjTkQmqskiUgabV6KTJ5GVCGqRR2WeU=; b=DW3OujNubgW0h69sJXA66w0Cu9L/G9Uwp3ZyyWJAuxNCVH4Yl5csO5Cn9X5tzFwPJ7 iF9acNqtUGV32CGHbHTY7Yhqjy8SGOrpYDFczH23CqOms39zNeCh2qLritLbHfj38gjO Roqs2xL+EaOXL1ENlHl8RenSu2ASxmln25WTh3pi2E3cnYngy5oDTzHurNrAhI1YC7qH Zp+Lbuhu2HgsgwJGM29hL226k71GvD7TcxuxsOq1Sf1UEIylR77OYqKFbmyA58cUgKa0 klg3k4MFDIeFCPjkChALPRlmxYJRA9iWXvWViYF0niKAumAQeBUjfwHWBi2OiB83UTlt eOjQ== X-Gm-Message-State: AOAM5315M1H/sq5h3XaSg3LraGfcQjHxzV3HlYUywVoxSHl6LviCxTrf 2x4dIEqcUu9MgLRCGUM4Ltw= X-Received: by 2002:a17:90a:5887:: with SMTP id j7mr9143604pji.178.1614775795754; Wed, 03 Mar 2021 04:49:55 -0800 (PST) Received: from adolin ([49.207.223.176]) by smtp.gmail.com with ESMTPSA id q192sm24878430pfc.85.2021.03.03.04.49.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Mar 2021 04:49:55 -0800 (PST) Date: Wed, 3 Mar 2021 18:19:50 +0530 From: Sumera Priyadarsini To: melissa.srw@gmail.com Cc: rodrigosiqueiramelo@gmail.com, hamohammed.sa@gmail.com, daniel@ffwll.ch, airlied@linux.ie, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Subject: [PATCH V2 0/2] Add virtual hardware module Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patchset adds support for emulating virtual hardware with VKMS. The virtual hardware mode can be enabled by using the following command while loading the module: sudo modprobe vkms enable_virtual_hw=1 The first patch adds virtual hardware support as a module option. The second patch adds new atomic helper functions for the virtual mode and modifies the existing atomic helpers for usage by the vblank mode This gives us two sets of drm_crtc_helper_funcs struct for both modes, making the code flow cleaner and easier to debug. This patchset has been tested with the igt tests, kms_writeback, kms_atomic, kms_lease, kms_flip, kms_pipe_get_crc and preserves results except for subtests related to crc reads and skips tests that rely on vertical blanking. This patchset must be tested after incorporating the igt-tests patch: https://lists.freedesktop.org/archives/igt-dev/2021-February/029355.html . Sumera Priyadarsini (2): drm/vkms: Add support for virtual hardware mode drm/vkms: Add crtc atomic helper functions for virtual mode drivers/gpu/drm/vkms/vkms_composer.c | 88 +++++++++++++++++----------- drivers/gpu/drm/vkms/vkms_crtc.c | 45 ++++++++++---- drivers/gpu/drm/vkms/vkms_drv.c | 18 ++++-- drivers/gpu/drm/vkms/vkms_drv.h | 4 ++ 4 files changed, 106 insertions(+), 49 deletions(-) -- 2.25.1