Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp289251ybb; Tue, 7 Apr 2020 23:06:34 -0700 (PDT) X-Google-Smtp-Source: APiQypJ24mrwtC0JFcCVAtqh4ls6QZK0oP7Vj+0vF8X2avJcVEPsMP1mciTr0gH88AsqOboYV6V6 X-Received: by 2002:aca:c4c5:: with SMTP id u188mr1250354oif.139.1586325994460; Tue, 07 Apr 2020 23:06:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586325994; cv=none; d=google.com; s=arc-20160816; b=fenBuAW9c+rzMuKIE4o1iS5B0fpAIgNCpa7wzJZgOnlPFPSgCQuJAD3xvnafYwlEC1 ySp223QsplkMrHdWY8KG3hvGtXs7zvXr6aHPQUiN0uP/P4omRXlFHyiX5G3rQXcNdXNR IifBeFvHVc8OCLWS72oxj+vH6sNVtNKuZW1ELILxJNg5EIJ9IXAAMplFr/075w7yQ+bB TJE/Uex02oVr4GrY3SF/ASVHV6U932g5cJ9FdGhH/VQQblTgYcnS4j+mJD/yQPS//zoS BoVrofqFu5e1iToq9b3Z6EI+fOm7o8/nIg1YHBcXc6/5sBfMAedlidcUcXVjqVHhBwNs KP+A== 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=i3YYftYCfrhJjBZZ31eyPIp2ch2qqn2ebn4+Xy1T8GM=; b=xSRnXe6Gi2xRBXijyHeWYY5q8KsI+hpYBlbuWEkafqMaxVR260JPJKAWjsfDHWzG2Z tiBe6y6vahgJEznd8RyRRlZT5siX2rFVMj1rxodg5055wGGYZ7PYiPDm2Z3/Dt1BTFc5 jaAgv2TbaNDeeVPDkOV2pph2SWax67h8DQ6cNxYCDrPDNxaHy+nLkrgCNjaLpfjca/df 1pIvCqU8khp9yRJ5V94Y3PtxHCKvTbnbug8XDTfgA1HHj7kQ3LylLxEcY/LjhrBuv0EQ /y+0FbOx5DvGgvTpVuyW08hNOZaDr+K/nAmWfOqkNwWdZ0rxgKVoxQtXvgKy+QHvhjx4 tX/A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="mz1/1VoS"; 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 s13si2196910otg.35.2020.04.07.23.06.19; Tue, 07 Apr 2020 23:06:34 -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="mz1/1VoS"; 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 S1726534AbgDHGFm (ORCPT + 99 others); Wed, 8 Apr 2020 02:05:42 -0400 Received: from mail-qk1-f196.google.com ([209.85.222.196]:43047 "EHLO mail-qk1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726492AbgDHGFm (ORCPT ); Wed, 8 Apr 2020 02:05:42 -0400 Received: by mail-qk1-f196.google.com with SMTP id 13so2037108qko.10 for ; Tue, 07 Apr 2020 23:05:41 -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=i3YYftYCfrhJjBZZ31eyPIp2ch2qqn2ebn4+Xy1T8GM=; b=mz1/1VoSkSn8lIOzYyt+hoarBQ1UWUZd5QYpTPClZskcGof5rbMLfBlcO0b6FeThy8 GivJZVp7anhPLhtV99KRCAA2/1kPkMjhIIj23PLzre2mRfXiczXolpQsPmtIUMgLGSUv 72pYMDVrzBTXcE2VpUaKV1VY9AKeus3Q3x8j4regBUXTeZq8Z0IxDyFiZtWlQdPBOB3m Cvb8Kq9ADE4bX3LQCfvrT4qkbalweYD0Mp5geM39vmknMkAlPnGPWqnWNAitM1zB0JQN MAzolMAp3LlMUuEIlHMXS0kWg2IJBwwGgd1G3tlOdN5Z/XiXHlyi/COV0cHnZBYSi4jO M1bw== 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=i3YYftYCfrhJjBZZ31eyPIp2ch2qqn2ebn4+Xy1T8GM=; b=Uf5Dk9x9hzjVYOT5sA82GUp/gxX082satQXtDc8yeXJ1cpTKjAFAnNlNVxQd8Mo1tV n7bIQJOnvJgeMlSJkgO8/AvT/9uZYL2ziAkdCwZTeTSFQGUH9/T+EsJGdXs1ep+DFgze MU85XLHO1R0rIBBRW2ISoVrHVUT1pShIGP1cwJvfqka8dpJ5JQX6p6xAzKDhRmlVy0mn J/CmWjZnj+6AEw5v3c3w4jQb50XIs5QvwDeCRVvt7erh0axoIlR5mhZlt3+P0pZBbVJY MFQWecWBuSy7V5SFNPn+hBF5eYdKjN2nOTIx9Y5RyJU5M7eshxlHTjJWH0pR5vAKmX/v 3B1A== X-Gm-Message-State: AGi0PuarHlT8snrq98wyXkwHZZkT3VRSmfZUt6ZMr67HZKTrGLoIr/c2 4891ynQmtaNSDvOfpNdxhT0= X-Received: by 2002:a37:67c8:: with SMTP id b191mr5720639qkc.166.1586325941141; Tue, 07 Apr 2020 23:05:41 -0700 (PDT) Received: from arch.localdomain (189-69-221-86.dial-up.telesp.net.br. [189.69.221.86]) by smtp.gmail.com with ESMTPSA id w30sm19664170qtw.21.2020.04.07.23.05.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 Apr 2020 23:05:40 -0700 (PDT) From: Gabriela Bittencourt To: rodrigosiqueiramelo@gmail.com, hamohammed.sa@gmail.com, daniel@ffwll.ch, airlied@linux.ie, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, manasi.d.navare@intel.com Cc: Gabriela Bittencourt Subject: [PATCH 0/2] drm/vkms: Add Virtual hardware module option Date: Wed, 8 Apr 2020 03:05:01 -0300 Message-Id: <20200408060503.47709-1-gabrielabittencourt00@gmail.com> X-Mailer: git-send-email 2.25.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 Hi, I'm trying to implement the virtual hardware (virtual_hw) module option on VKMS module. The virtual hardware module option is implemented as an option to skip the timing and vblank subtests. The main idea of virtual_hw is shorten the time used on each period of operation. For this, the timer for counting the period is eliminated and the KMS configurations are implemented along with the standard atomic operations. During the 'atomic_enable' and 'atomic_disable' the vblank is initialized only if the virtual_hw is disabled (and therefore, the vblank is enabled). A kick of crc/vblank is decoupled from vblank_simulate. Case the vblank is disabled (that is, the vblank_simulate will never execute) a vkms_composer_work routine is added to the end of the atomic_flush. The IGT tests used to check the patch were the kms-flip, which kept the same results, with and without my alterations, with the exceptions of the tests that required vblank. The warning message and the related tests are presented below: Test requirement not met in function run_test_on_crtc_set, file ../tests/kms_flip.c:1285: Test requirement: vblank There is no VBlank Last errno: 95, Operation not supported - wf_vblank-ts-check - blocking-wf_vblank - absolute-wf_vblank - blocking-absolute-wf_vblank - busy-flip - plain-flip-ts-check - plain-flip-fb-recreate - flip-vs-expired-vblank - flip-vs-absolute-wf_vblank - basic-flip-vs-wf_vblank - flip-vs-blocking-wf-vblank - dpms-vs-vblank-race - modeset-vs-vblank-race - wf_vblank-ts-check-interruptible - absolute-wf_vblank-interruptible - blocking-absolute-wf_vblank-interruptible - plain-flip-ts-check-interruptible - plain-flip-fb-recreate-interruptible - flip-vs-expired-vblank-interruptible - flip-vs-absolute-wf_vblank-interruptible - flip-vs-wf_vblank-interruptible - dpms-vs-vblank-race-interruptible - modeset-vs-vblank-race-interruptible Any suggestions are very welcome :) Gabriela Bittencourt (2): drm/vkms: Rework vkms_vblank_simulate drm/vkms: Add 'virtual_hw' module option drivers/gpu/drm/vkms/vkms_crtc.c | 42 +++++++++++++++++++++++++++----- drivers/gpu/drm/vkms/vkms_drv.c | 13 ++++++++-- drivers/gpu/drm/vkms/vkms_drv.h | 2 ++ 3 files changed, 49 insertions(+), 8 deletions(-) -- 2.25.1