Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.223.131]) (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 131E57261E for ; Wed, 1 Oct 2025 07:06:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=195.135.223.131 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1759302390; cv=none; b=FVE4kw/EBitWi8zIKmmlQHOZ20sYw13ATVDjAIonU81hWxFX0YxzPD8Dd8rTlvvB3XB7lR/pWRtf/xOBSagdiS6atOV5zJs23rIgYgp0jKRTBGeAWOpd7OAzUrs2GjDXLACTmx8OrvCKDBaulug5sbEC5nKjJKrfwgS+h7DzyBc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1759302390; c=relaxed/simple; bh=1wQ01rw+ci93T1E+w5+JOZT16AfZ968Sqtz4AFj/8o8=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=RalGUjzr3X/8t+eS/zVxoALnl2yrEXl7cjXHBlDQPJm3OVOr1cNx4SIV51oLuat9/GWIoVtH2+KvciXF4j7gkLT7IvdNvpiBxkHmXHki6IkhQxRoQQDmshS3kn1+gfzw6vCYlrYnx3uWWCLSWvoNCOeVIQJQv1aFXzL89gQXOd0= 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; dkim=pass (1024-bit key) header.d=suse.de header.i=@suse.de header.b=nu7oe/ke; dkim=permerror (0-bit key) header.d=suse.de header.i=@suse.de header.b=J5qgauTu; dkim=pass (1024-bit key) header.d=suse.de header.i=@suse.de header.b=nu7oe/ke; dkim=permerror (0-bit key) header.d=suse.de header.i=@suse.de header.b=J5qgauTu; arc=none smtp.client-ip=195.135.223.131 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=suse.de header.i=@suse.de header.b="nu7oe/ke"; dkim=permerror (0-bit key) header.d=suse.de header.i=@suse.de header.b="J5qgauTu"; dkim=pass (1024-bit key) header.d=suse.de header.i=@suse.de header.b="nu7oe/ke"; dkim=permerror (0-bit key) header.d=suse.de header.i=@suse.de header.b="J5qgauTu" Received: from imap1.dmz-prg2.suse.org (unknown [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-out2.suse.de (Postfix) with ESMTPS id D8FF51F7C1; Wed, 1 Oct 2025 07:06:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1759302386; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:autocrypt:autocrypt; bh=v/Sq/hMRs9lW5pGrE1UTXj9Tcba3cKS5UpaXIA2CGaw=; b=nu7oe/ke/UQW7tzomiRIBDpJVSSIS3zpUt0I9JJ4WbX8eDnDTC2Juxr2BNk6Ura9ComsdK UUEueLdUsA5hcfmFd35geL9bu6h7XKHPyLpuVJxOAxbYvUwcXygVEEYgk2OASZULCrZVla Kll0GUPv1s/hEjyRjtQUgw3VPWKKeXk= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1759302386; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:autocrypt:autocrypt; bh=v/Sq/hMRs9lW5pGrE1UTXj9Tcba3cKS5UpaXIA2CGaw=; b=J5qgauTuXkQAjUzu7wE+ZMCWbynCtBYnLWdKTww0zHLyfHZJUlMB3vs6pxYThkcm6o07Jz 2Q0lB2eJ4nO4wEBg== Authentication-Results: smtp-out2.suse.de; none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1759302386; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:autocrypt:autocrypt; bh=v/Sq/hMRs9lW5pGrE1UTXj9Tcba3cKS5UpaXIA2CGaw=; b=nu7oe/ke/UQW7tzomiRIBDpJVSSIS3zpUt0I9JJ4WbX8eDnDTC2Juxr2BNk6Ura9ComsdK UUEueLdUsA5hcfmFd35geL9bu6h7XKHPyLpuVJxOAxbYvUwcXygVEEYgk2OASZULCrZVla Kll0GUPv1s/hEjyRjtQUgw3VPWKKeXk= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1759302386; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:autocrypt:autocrypt; bh=v/Sq/hMRs9lW5pGrE1UTXj9Tcba3cKS5UpaXIA2CGaw=; b=J5qgauTuXkQAjUzu7wE+ZMCWbynCtBYnLWdKTww0zHLyfHZJUlMB3vs6pxYThkcm6o07Jz 2Q0lB2eJ4nO4wEBg== 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 877C813ADE; Wed, 1 Oct 2025 07:06: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 E/ncH/LS3GghFwAAD6G6ig (envelope-from ); Wed, 01 Oct 2025 07:06:26 +0000 Message-ID: Date: Wed, 1 Oct 2025 09:06:26 +0200 Precedence: bulk X-Mailing-List: linux-hyperv@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v3 0/4] drm: Add vblank timers for devices without interrupts To: Michael Kelley , "louis.chauvet@bootlin.com" , "drawat.floss@gmail.com" , "hamohammed.sa@gmail.com" , "melissa.srw@gmail.com" , "simona@ffwll.ch" , "airlied@gmail.com" , "maarten.lankhorst@linux.intel.com" , "ville.syrjala@linux.intel.com" , "lyude@redhat.com" , "javierm@redhat.com" Cc: "dri-devel@lists.freedesktop.org" , "linux-hyperv@vger.kernel.org" References: <20250904145806.430568-1-tzimmermann@suse.de> Content-Language: en-US From: Thomas Zimmermann Autocrypt: addr=tzimmermann@suse.de; keydata= xsBNBFs50uABCADEHPidWt974CaxBVbrIBwqcq/WURinJ3+2WlIrKWspiP83vfZKaXhFYsdg XH47fDVbPPj+d6tQrw5lPQCyqjwrCPYnq3WlIBnGPJ4/jreTL6V+qfKRDlGLWFjZcsrPJGE0 BeB5BbqP5erN1qylK9i3gPoQjXGhpBpQYwRrEyQyjuvk+Ev0K1Jc5tVDeJAuau3TGNgah4Yc hdHm3bkPjz9EErV85RwvImQ1dptvx6s7xzwXTgGAsaYZsL8WCwDaTuqFa1d1jjlaxg6+tZsB 9GluwvIhSezPgnEmimZDkGnZRRSFiGP8yjqTjjWuf0bSj5rUnTGiyLyRZRNGcXmu6hjlABEB AAHNJ1Rob21hcyBaaW1tZXJtYW5uIDx0emltbWVybWFubkBzdXNlLmRlPsLAjgQTAQgAOAIb AwULCQgHAgYVCgkICwIEFgIDAQIeAQIXgBYhBHIX+6yM6c9jRKFo5WgNwR1TC3ojBQJftODH AAoJEGgNwR1TC3ojx1wH/0hKGWugiq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aNe52tkKAvMevcGdt38H4KSVXAylqyQOW5zvPc4/sq9c= In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Level: X-Spamd-Result: default: False [-2.80 / 50.00]; BAYES_HAM(-3.00)[100.00%]; SUSPICIOUS_RECIPS(1.50)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_SHORT(-0.20)[-1.000]; MIME_GOOD(-0.10)[text/plain]; TAGGED_RCPT(0.00)[]; FUZZY_RATELIMITED(0.00)[rspamd.com]; TO_DN_EQ_ADDR_SOME(0.00)[]; MIME_TRACE(0.00)[0:+]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; FREEMAIL_TO(0.00)[outlook.com,bootlin.com,gmail.com,ffwll.ch,linux.intel.com,redhat.com]; FREEMAIL_ENVRCPT(0.00)[gmail.com,outlook.com]; RCPT_COUNT_TWELVE(0.00)[13]; FROM_EQ_ENVFROM(0.00)[]; FROM_HAS_DN(0.00)[]; MID_RHS_MATCH_FROM(0.00)[]; RCVD_TLS_ALL(0.00)[]; RCVD_COUNT_TWO(0.00)[2]; TO_MATCH_ENVRCPT_ALL(0.00)[]; DKIM_SIGNED(0.00)[suse.de:s=susede2_rsa,suse.de:s=susede2_ed25519]; TO_DN_SOME(0.00)[] X-Spam-Flag: NO X-Spam-Score: -2.80 Hi Am 30.09.25 um 17:18 schrieb Michael Kelley: > From: Thomas Zimmermann Sent: Tuesday, September 30, 2025 8:04 AM >> Hi >> >> Am 16.09.25 um 17:00 schrieb Michael Kelley: >>> From: Thomas Zimmermann Sent: Tuesday, September 16, 2025 1:31 AM >>>> Hi >>>> >>>> Am 09.09.25 um 05:29 schrieb Michael Kelley: >>>>> From: Michael Kelley Sent: Thursday, September 4, 2025 10:36 PM >>>>>> From: Thomas Zimmermann Sent: Thursday, September 4, 2025 7:56 AM >>>>>>> Compositors often depend on vblanks to limit their display-update >>>>>>> rate. Without, they see vblank events ASAP, which breaks the rate- >>>>>>> limit feature. This creates high CPU overhead. It is especially a >>>>>>> problem with virtual devices with fast framebuffer access. >>>>>>> >>>>>>> The series moves vkms' vblank timer to DRM and converts the hyperv >>>>>>> DRM driver. An earlier version of this series contains examples of >>>>>>> other updated drivers. In principle, any DRM driver without vblank >>>>>>> hardware can use the timer. >>>>>> I've tested this patch set in a Hyper-V guest against the linux-next20250829 >>>>>> kernel. All looks good. Results and perf are the same as reported here [4]. >>>>>> So far I haven't seen the "vblank timer overrun" error, which is consistent >>>>>> with the changes you made since my earlier testing. I'll keep running this >>>>>> test kernel for a while to see if anything anomalous occurs. >>>>> As I continued to run with this patch set, I got a single occurrence of this >>>>> WARN_ON. I can't associate it with any particular action as I didn't notice >>>>> it until well after it occurred. >>>> I've investigated. The stack trace comes from the kernel console's >>>> display update. It runs concurrently to the vblank timeout. What likely >>>> happens here is that the update code reads two values and in between, >>>> the vblank timeout updates them. So the update then compares an old and >>>> a new value; leading to an incorrect result with triggers the warning. >>>> >>>> I'll include a fix in the series' next iteration. But I also think that >>>> it's not critical. DRM's vblank helpers can usually deal with such problems. >>> Thanks! I'm giving your v4 series a try now. Good that the underlying >>> problem is not critical. But I was seeing the WARN_ON() output in >>> dmesg every few days (a total of 4 times now), and that's not really >>> acceptable even if everything continues to work correctly. >> So it's probably a good sign that I haven't heard from you recently. :) >> If you haven't seen any warnings with v4, I'd like to merge the series soon. >> >> Best regards >> Thomas >> > Yes, all is good. I was delayed a bit due to some travel, but the test > system has been running for a week now with no warnings or other > issues. From my standpoint, the patch series is good to merge. That's great news. I've now added the series to our drm-misc-next branch and it should reach upstream in v6.19. Best regards Thomas > > Michael -- -- Thomas Zimmermann Graphics Driver Developer SUSE Software Solutions Germany GmbH Frankenstrasse 146, 90461 Nuernberg, Germany GF: Ivo Totev, Andrew Myers, Andrew McDonald, Boudien Moerman HRB 36809 (AG Nuernberg)