Received: by 2002:ab2:620c:0:b0:1ef:ffd0:ce49 with SMTP id o12csp1593431lqt; Wed, 20 Mar 2024 08:26:19 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCU3qqR6qvsjy4r7qJRSSNG5vbOg8lrgvs2pvcTykXQ2RtbdONje5hjmT5VwvXk/d8qZ2bS0peoBg4T7o66Pxtbwvtv/9SooQHxCV7SzQQ== X-Google-Smtp-Source: AGHT+IGymnwbJOsu2Dz4kuh89gM8hXP6hw6AWUcE43uNWBhZxPbBiC/2YpJOIHWm4/x7hGmJHE7D X-Received: by 2002:a50:bb65:0:b0:568:335d:1192 with SMTP id y92-20020a50bb65000000b00568335d1192mr124779ede.13.1710948379511; Wed, 20 Mar 2024 08:26:19 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710948379; cv=pass; d=google.com; s=arc-20160816; b=RPu6kwMyElcVIOfhIk8V27vEnLKtIMDzehq31o7ZCYtHxQHcwa9LuU3ORgNksHVczH 7PLNwWN1xqTh/e1GzG/vawa6ibFYlhUrfRCGyKvtb6tjOsVhEv9KfEjzeAx1PfJ40zup wwWW/21b+W0BxRaAPg3VURNHoD8aezJztj2VsnO1LZNpF3gyB4hJYbNEadhU2xx0OJIr AsTGbEYpT+aBeQQjJIQYz/jKay6dR1x9A/3r4eJSu0VgUZT4U+woDxNBGzt8SdbtX/oz d9uZFF9H7oTEzoZLEgA8+9KlrXpFZ5WFIPy+JkAeM+2sN3W1Sa1irDeOhV3fVh2CTax5 0LEA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:reply-to:from:references:cc :to:content-language:subject:user-agent:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:date:message-id :dkim-signature; bh=/EpaCQTpGqGU5ULt8qAmE+s8SSReKSogNzvd/au7Mjs=; fh=R1dffkFQbvZ1/HY2cr/rWpISP48DwZl5nOV4h/5avus=; b=l1jNZ/mmODoPmtqaYEH3eza/mI5KGJ85KtcA5uv1pzsmojk+8zGagnltuJUFWb5b/A zvwwxjJU4v+fSpvjA/x/o2XoUbG/XrR3X0xs8EbBlUi3UCEI1IJvfz16eeQVcDIqxpuT DWC+qhc/XcRgvBUgLxScbNioCKzrWLXPiki58XxfgRj+Ce/bI0/BScwC0pvvUfEICFBq ifJQCrnzCr4r/XO90PEdId2kDpimRCOcgHox8hSkbPIp9QqBdR6oScxEPxI5+Mg1BD4H 2RRkKrx+oCAQxx1nm4oQ449nTGDhEw7evw6u/qUitdcD3F4Cr4+IvFx0NKWxJ4rHsKa2 HgOQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@leemhuis.info header.s=he214686 header.b=aEEEM0p7; arc=pass (i=1 spf=pass spfdomain=leemhuis.info dkim=pass dkdomain=leemhuis.info); spf=pass (google.com: domain of linux-kernel+bounces-109089-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-109089-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id e19-20020a50fb93000000b0056b9ca6e9d5si1539348edq.477.2024.03.20.08.26.19 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 Mar 2024 08:26:19 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-109089-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@leemhuis.info header.s=he214686 header.b=aEEEM0p7; arc=pass (i=1 spf=pass spfdomain=leemhuis.info dkim=pass dkdomain=leemhuis.info); spf=pass (google.com: domain of linux-kernel+bounces-109089-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-109089-linux.lists.archive=gmail.com@vger.kernel.org" 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 am.mirrors.kernel.org (Postfix) with ESMTPS id 176911F22B39 for ; Wed, 20 Mar 2024 15:26:19 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D1FD354661; Wed, 20 Mar 2024 15:26:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=leemhuis.info header.i=@leemhuis.info header.b="aEEEM0p7" Received: from wp530.webpack.hosteurope.de (wp530.webpack.hosteurope.de [80.237.130.52]) (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 C1B8F53E12; Wed, 20 Mar 2024 15:25:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=80.237.130.52 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710948362; cv=none; b=BTZfgIcUZwoy9YJ8T5A56tj5YS2adKrhHAxJzOUrq2ldtt5rs1Z1rdN3Th8ZoCDNxEYa8RD6+45H4IZVVDv6/KBO29kQUTjo6RCGztHU+Wdh4u5u0lJfLxui47YEORznjd44XyncOAWofgu6qs+7P1APOksbfYqP1arflu1Lx4U= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710948362; c=relaxed/simple; bh=zR+ah/AZybH8jZSLZxrEDknNvOMLtHTgIU4u4ltErhk=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=Nid56izkehyOkBKHVyGdGQdse8boxtpmm+REBOzJN6nLYH+9IoTsWujaTzYJI4Wwh9mmqprZjuipNsGa18q3zH/Yt/xvg6MURuJVcT4r7H+j3QMlgviOqfrqqeUN38jrcYSrul+FAP87n1oS9jL4FrdYqs0tT1FE4+WdQgnStxU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=leemhuis.info; spf=pass smtp.mailfrom=leemhuis.info; dkim=pass (2048-bit key) header.d=leemhuis.info header.i=@leemhuis.info header.b=aEEEM0p7; arc=none smtp.client-ip=80.237.130.52 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=leemhuis.info Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=leemhuis.info DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=leemhuis.info; s=he214686; h=Content-Transfer-Encoding:Content-Type: In-Reply-To:Reply-To:From:References:Cc:To:Subject:MIME-Version:Date: Message-ID:From:Sender:Reply-To:Subject:Date:Message-ID:To:Cc:MIME-Version: Content-Type:Content-Transfer-Encoding:Content-ID:Content-Description: In-Reply-To:References; bh=/EpaCQTpGqGU5ULt8qAmE+s8SSReKSogNzvd/au7Mjs=; t=1710948359; x=1711380359; b=aEEEM0p7s17EwmLjSOM6aJGjCpI3t4WfBnkIqt0HSK1doXv FJdYNQgIkX3PfQQhw5p/zKZet62Vejar9cEv8dfDfHDaZpkWW0MwFgG2nyuq25KqcgdUq1v0jp8pu 9SZ2sAH7N63C/Jy67R2y1PNev3BZjK2nniABPOlbypWZg935cspcVqjGytErp2b9BdkMlB+TR62Z7 dWAR/Rdm8z61S7p+UPs6TxwaeI2wjtpIEPxd9A1Id2HSkb1f7lmptlp1HiYLqvPwFhq66U0NGLvR4 mIJGa4HUTVXCW44ZMXzM7Dlxa3dvZRrxi64zEE131NtEg2Obh018gjTuWSWQ70dw==; Received: from [2a02:8108:8980:2478:8cde:aa2c:f324:937e]; authenticated by wp530.webpack.hosteurope.de running ExIM with esmtpsa (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) id 1rmxp7-0004iK-29; Wed, 20 Mar 2024 16:25:49 +0100 Message-ID: Date: Wed, 20 Mar 2024 16:25:48 +0100 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 1/1] drm/qxl: fixes qxl_fence_wait Content-Language: en-US, de-DE To: Alex Constantino Cc: 1054514@bugs.debian.org, airlied@redhat.com, carnil@debian.org, daniel@ffwll.ch, dri-devel@lists.freedesktop.org, kraxel@redhat.com, linux-kernel@vger.kernel.org, regressions@lists.linux.dev, spice-devel@lists.freedesktop.org, timo.lindfors@iki.fi, tzimmermann@suse.de, virtualization@lists.linux-foundation.org, Maarten Lankhorst , Maxime Ripard References: <20240308010851.17104-1-dreaming.about.electric.sheep@gmail.com> <20240308010851.17104-2-dreaming.about.electric.sheep@gmail.com> From: "Linux regression tracking (Thorsten Leemhuis)" Reply-To: Linux regressions mailing list In-Reply-To: <20240308010851.17104-2-dreaming.about.electric.sheep@gmail.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-bounce-key: webpack.hosteurope.de;regressions@leemhuis.info;1710948359;70f82cbe; X-HE-SMSGID: 1rmxp7-0004iK-29 On 08.03.24 02:08, Alex Constantino wrote: > Fix OOM scenario by doing multiple notifications to the OOM handler through > a busy wait logic. > Changes from commit 5a838e5d5825 ("drm/qxl: simplify qxl_fence_wait") would > result in a '[TTM] Buffer eviction failed' exception whenever it reached a > timeout. > > Fixes: 5a838e5d5825 ("drm/qxl: simplify qxl_fence_wait") > Link: https://lore.kernel.org/regressions/fb0fda6a-3750-4e1b-893f-97a3e402b9af@leemhuis.info > Reported-by: Timo Lindfors > Closes: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1054514 > Signed-off-by: Alex Constantino > --- > drivers/gpu/drm/qxl/qxl_release.c | 20 ++++++++++++++------ > 1 file changed, 14 insertions(+), 6 deletions(-) Hey Dave and Gerd as well as Thomas, Maarten and Maxime (the latter two I just added to the CC), it seems to me this regression fix did not maybe any progress since it was posted. Did I miss something, is it just "we are busy with the merge window", or is there some other a reason? Just wondering, I just saw someone on a Fedora IRC channel complaining about the regression, that's why I'm asking. Would be really good to finally get this resolved... Ciao, Thorsten (wearing his 'the Linux kernel's regression tracker' hat) -- Everything you wanna know about Linux kernel regression tracking: https://linux-regtracking.leemhuis.info/about/#tldr If I did something stupid, please tell me, as explained on that page. #regzbot poke > diff --git a/drivers/gpu/drm/qxl/qxl_release.c b/drivers/gpu/drm/qxl/qxl_release.c > index 368d26da0d6a..51c22e7f9647 100644 > --- a/drivers/gpu/drm/qxl/qxl_release.c > +++ b/drivers/gpu/drm/qxl/qxl_release.c > @@ -20,8 +20,6 @@ > * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. > */ > > -#include > - > #include > > #include "qxl_drv.h" > @@ -59,14 +57,24 @@ static long qxl_fence_wait(struct dma_fence *fence, bool intr, > { > struct qxl_device *qdev; > unsigned long cur, end = jiffies + timeout; > + signed long iterations = 1; > + signed long timeout_fraction = timeout; > > qdev = container_of(fence->lock, struct qxl_device, release_lock); > > - if (!wait_event_timeout(qdev->release_event, > + // using HZ as a factor since it is used in ttm_bo_wait_ctx too > + if (timeout_fraction > HZ) { > + iterations = timeout_fraction / HZ; > + timeout_fraction = HZ; > + } > + for (int i = 0; i < iterations; i++) { > + if (wait_event_timeout( > + qdev->release_event, > (dma_fence_is_signaled(fence) || > - (qxl_io_notify_oom(qdev), 0)), > - timeout)) > - return 0; > + (qxl_io_notify_oom(qdev), 0)), > + timeout_fraction)) > + break; > + } > > cur = jiffies; > if (time_after(cur, end))