From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp-out1.suse.de (smtp-out1.suse.de [195.135.223.130]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D0E733C5523 for ; Wed, 27 May 2026 13:40:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=195.135.223.130 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779889222; cv=none; b=pq7pcfaHA1Eex6osuO5JO1SFyBqYRMD9aMzjZcDepgrJxB2qxNERX6MFX8JByex05HIELTqZ/Xeshrs6ac6GDNj7xaL18qIvSj7xmIq8GdhZDEFz/mykJCHR2xrrVN+o3cho0fSu6QIwYIaSUomYAWWuhKpua8FoYGOswB+BOK4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779889222; c=relaxed/simple; bh=VkeK6zTL5qBV+G7fVN8P2rhf4B0YsKLP3wTA1x+gg4E=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=Jxw05vcmHMcEBba6KOkWTdf7Y+TteOlKFTKlOc4u5nhmz5mYmrBVm0IlozVeWJ7JcaBWTeuY1mPsgANyiX1GuKwzzEFuDAnbnkGSRJyBgtM5aKJrcDrg/hKGRQRL8cVHjgcQzL4XmYlDk4hxt+8+5T+W3RZqVtnuNXdBaYL/El4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=suse.de; spf=pass smtp.mailfrom=suse.de; arc=none smtp.client-ip=195.135.223.130 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=suse.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=suse.de Received: from imap1.dmz-prg2.suse.org (imap1.dmz-prg2.suse.org [IPv6:2a07:de40:b281:104:10:150:64:97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp-out1.suse.de (Postfix) with ESMTPS id 5C7AA6BA9B; Wed, 27 May 2026 13:39:27 +0000 (UTC) Authentication-Results: smtp-out1.suse.de; none Received: from imap1.dmz-prg2.suse.org (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by imap1.dmz-prg2.suse.org (Postfix) with ESMTPS id ECB5D5A861; Wed, 27 May 2026 13:39:26 +0000 (UTC) Received: from dovecot-director2.suse.de ([2a07:de40:b281:106:10:150:64:167]) by imap1.dmz-prg2.suse.org with ESMTPSA id YLhZOA70FmrpMQAAD6G6ig (envelope-from ); Wed, 27 May 2026 13:39:26 +0000 From: Thomas Zimmermann To: simona@ffwll.ch, airlied@gmail.com, mdaenzer@redhat.com, pekka.paalanen@collabora.com, jadahl@gmail.com, contact@emersion.fr, maarten.lankhorst@linux.intel.com, mripard@kernel.org, mhklinux@outlook.com Cc: amd-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org, wayland-devel@lists.freedesktop.org, linux-hyperv@vger.kernel.org, virtualization@lists.linux.dev, spice-devel@lists.freedesktop.org, Thomas Zimmermann Subject: [PATCH v2 8/9] drm/virtgpu: Set DRM_VBLANK_FLAG_SIMULATED Date: Wed, 27 May 2026 15:32:49 +0200 Message-ID: <20260527133917.207150-9-tzimmermann@suse.de> X-Mailer: git-send-email 2.54.0 In-Reply-To: <20260527133917.207150-1-tzimmermann@suse.de> References: <20260527133917.207150-1-tzimmermann@suse.de> Precedence: bulk X-Mailing-List: linux-hyperv@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Rspamd-Queue-Id: 5C7AA6BA9B X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Spam-Flag: NO X-Rspamd-Action: no action X-Spam-Level: X-Rspamd-Server: rspamd2.dmz-prg2.suse.org X-Spam-Score: -4.00 X-Spamd-Result: default: False [-4.00 / 50.00]; REPLY(-4.00)[] Mark the vblank event on virtgpu as simulated, so that the WAIT_VBLANK ioctl fails with an error. The ioctl should not be supported because the output is not synchronized to a display refresh. Signed-off-by: Thomas Zimmermann --- drivers/gpu/drm/virtio/virtgpu_display.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/virtio/virtgpu_display.c b/drivers/gpu/drm/virtio/virtgpu_display.c index 44ffffec550f..558d8001c54f 100644 --- a/drivers/gpu/drm/virtio/virtgpu_display.c +++ b/drivers/gpu/drm/virtio/virtgpu_display.c @@ -381,7 +381,7 @@ int virtio_gpu_modeset_init(struct virtio_gpu_device *vgdev) for (i = 0 ; i < vgdev->num_scanouts; ++i) vgdev_output_init(vgdev, i); - ret = drm_vblank_init(vgdev->ddev, vgdev->num_scanouts); + ret = drmm_vblank_init(vgdev->ddev, vgdev->num_scanouts, DRM_VBLANK_FLAG_SIMULATED); if (ret) return ret; -- 2.54.0