Received: by 2002:ab2:6991:0:b0:1f7:f6c3:9cb1 with SMTP id v17csp388244lqo; Wed, 8 May 2024 02:57:53 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUI7enokMlunXWRElSmsrm4JlqIWhYcK+hm++tPHnZ0p6aHa/JBuV5p3HCpFdDNYhigoBASmFkw/yFzCzYJMKhyMC8hW67cHVDwI1Q+eA== X-Google-Smtp-Source: AGHT+IFL+6ZMB1c6CiMrvZ7zecnz3lFjUhk+AP978IUTcmg4RmqE8Ack/+E2khz5B6UiyNfJKP+B X-Received: by 2002:a05:620a:565:b0:792:9d7c:d2b0 with SMTP id af79cd13be357-792b24806f7mr336942685a.15.1715162273216; Wed, 08 May 2024 02:57:53 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715162273; cv=pass; d=google.com; s=arc-20160816; b=cPFoIWHgUXOa4Nn4JTU63zWfm25rzUPOj6zkOusgVlxn5QfjMGB6rUI3axzWGXieS3 VbCXTi90g+uP4+Eb+8br871FRQMNiQ1d+1g8rUkn7i8pnm6GgiMOGoCA6xOyizzeMgNA l0Hf85v8dNd96k3b2MPxkD12vDF7UhxeIKdYf/jdFb96XohjBxv+gF4dsQzDqfdE8BZN aPNPSvq+LI8pLUr6B/YQLesv1dpYzftB3icyV3ZLXPebOxfWUOIaxXQi5tdlSCU10Cjn 3gQYa+JH2KqkAwI2cj4/5Asy6u1xfis36oW6boUiP54KxUD/2cgBfLjlbd0ct5esST3Y JU0w== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=6HilCpQqF5nWfQLfesSgvF2CEj1QWp3oMiTsmW5AIS0=; fh=g20cFsVFro7Bcepr+GKqYTrHuTFpQO9vxmZVuGweDtA=; b=SEA+Svs7LcWvZlIH2HrEb9XxXaY4MMcBz4Oa/U/s0kgpYY6K6rOGd722MloRNy+xeS gU4f+qQHB8EAbVCXfCZ/CWtEWiOVLK6K12t8iS54+ZfxnXtDxkeI3rZhQV5g+eiIbdF4 RMNumkslVKqvOJ/DPg5uXDiHnzSs9TxIzOXdQ2AO/y0JqVQNM9vs3iYy50WyuEYTryfw nuBGPbpIVUHMh9kd9QqD9rBNk6fKGjgt6eJNnLADF5cUJNn1OIXTBzTtgVYnejRmg5eN LVtgzBSDRCDiFttbWl/XapxTaLsxhRt238Z+J0GoYBZfnidS1vejyu1j/rYCIuh+25Ey pdew==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=SO8auOHz; arc=pass (i=1 spf=pass spfdomain=redhat.com dkim=pass dkdomain=redhat.com dmarc=pass fromdomain=redhat.com); spf=pass (google.com: domain of linux-kernel+bounces-173005-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-173005-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id c22-20020a05620a269600b00790f78d2588si14203137qkp.115.2024.05.08.02.57.53 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 08 May 2024 02:57:53 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-173005-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=SO8auOHz; arc=pass (i=1 spf=pass spfdomain=redhat.com dkim=pass dkdomain=redhat.com dmarc=pass fromdomain=redhat.com); spf=pass (google.com: domain of linux-kernel+bounces-173005-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-173005-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id EC9DA1C203B7 for ; Wed, 8 May 2024 09:57:52 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id F0B777A15D; Wed, 8 May 2024 09:56:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="SO8auOHz" Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 7C3B8BA27 for ; Wed, 8 May 2024 09:56:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.129.124 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715162217; cv=none; b=KSmYtrV011O1Gymy3v4JwTrcWXFl7fDe4ylvF6vuVLvvEvucvF03o/JzYC2K99KviKMZer5WvWfp3/HNz7JOWEY5msp2uT+d3QwKy7SSQdbj0qjoNAe0v31PQ+vu7ea3XwsWjKcYOMBsVpCrJvtAN4cgZLl6uxYLyD8y3BkSiWA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715162217; c=relaxed/simple; bh=gWOGj0Cw+EPeFvCPM84I9RZ1xnLNBOxo/kWhfYtd4Y4=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=VB4C/OLDRIWTSO4d698pbNe1xhAVjo6D5c/OD2iqYt7oSr9AFszmmPg1ily7nh9vF5fONUZovPPNQTxpw/xZq6x/I6xDnOQN2rcBE7JjRHbkoMrbJbW1xrZGxwzkpoY3v8+X+mO4yi6sQHsHI89gnCw0Gf7aJ72c5KHYaeBQ9B0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b=SO8auOHz; arc=none smtp.client-ip=170.10.129.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1715162214; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=6HilCpQqF5nWfQLfesSgvF2CEj1QWp3oMiTsmW5AIS0=; b=SO8auOHzoolTspb+kJCR78zi51MNyfksn+muzetM9zXWr5ht9e3RGcTUigMPjI34CNxykM OW4Fb7H1pUbCw8k/kc0dCuz99EyJRmziff2YKervM5NIxTrfy0QldaiFet9ZhpdS+qcDhY C/dhEQlRa0F0i4uyL0cQgq+jVevPqBs= Received: from mimecast-mx02.redhat.com (mx-ext.redhat.com [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-471-Jder783tP7mfKG3-i3lIuw-1; Wed, 08 May 2024 05:56:49 -0400 X-MC-Unique: Jder783tP7mfKG3-i3lIuw-1 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.rdu2.redhat.com [10.11.54.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id AD26E29AB410; Wed, 8 May 2024 09:56:48 +0000 (UTC) Received: from sirius.home.kraxel.org (unknown [10.39.194.74]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 399463C25; Wed, 8 May 2024 09:56:48 +0000 (UTC) Received: by sirius.home.kraxel.org (Postfix, from userid 1000) id E8ACB1800D69; Wed, 8 May 2024 11:56:46 +0200 (CEST) Date: Wed, 8 May 2024 11:56:46 +0200 From: Gerd Hoffmann To: Timo Lindfors Cc: David Airlie , Linus Torvalds , Maxime Ripard , Steven Rostedt , LKML , Alex Constantino , Maarten Lankhorst , Thomas Zimmermann , Daniel Vetter Subject: Re: [BUG][v6.9-rc6] Deadlock with: Revert "drm/qxl: simplify qxl_fence_wait" Message-ID: References: <20240502081641.457aa25f@gandalf.local.home> <20240504043957.417aa98c@rorschach.local.home> <20240506-cuddly-elated-agouti-be981d@houat> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Scanned-By: MIMEDefang 3.4.1 on 10.11.54.1 On Tue, May 07, 2024 at 06:46:41PM GMT, Timo Lindfors wrote: > The qxl + spice + firefox combination scrolls smoothly even if I force > firefox to use wayland. scrolling sending 2d accel bitblits works only when running the xorg xserver with the qxl driver. xwayland wouldn't do that. So that doesn't explain the performance difference. > I suppose I could write a more synthetic test if it would be useful? Well, don't work on qemu graphics any more. So I can't sink much time into this, and my memories on details are starting to fade ... > With systemtap I can trace what happens during a single scroll event. Had a brief look at the driver source code. One possibly important difference is damage tracking. qxl seems to send updates for the list of damaged rectangle to the host (see qxl_draw_dirty_fb). virtio-gpu goes call drm_atomic_helper_damage_merged() to get a single rectangle covering all regions which need updating and works with that. Which could very well explain the performance difference. If you want dig deeper I'd suggest to start there. HTH & take care, Gerd