Received: by 2002:a89:d88:0:b0:1fa:5c73:8e2d with SMTP id eb8csp2133582lqb; Mon, 27 May 2024 08:54:15 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCV93/nag/UXxpLzvWgbEk54XM2TG7vDf54joGq1Bif7UC7qE2/xoMHioIEvl1qCCfvsoQItv7hBixUmvrKkUYmdJH+0fkkauk+eOQky7g== X-Google-Smtp-Source: AGHT+IFwax/ZZLvtQ3/chmu3oE4WV3iweKj3KXZVQKVd4/+FOhL/GREGnnINSMwgS1h868zr+wi4 X-Received: by 2002:a05:6870:709f:b0:250:13d4:f5d6 with SMTP id 586e51a60fabf-25013d568ddmr965728fac.27.1716825254851; Mon, 27 May 2024 08:54:14 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716825254; cv=pass; d=google.com; s=arc-20160816; b=syL5fqdWdRGQ3gVSEtfoJiKx2g64O9WPJfbOTKS6tId3HGi9q7z8VhznYGCvNGm05W HfJPfeTiCrdYDFUjSd0mQNfdGjXm3yE4EYY9bGDsT452s80TLtgwbpBR/a2Xoby4JNEb YmF0tpb7GMrOe7J/QWBPEaFfoD2vOXaoDCFEZwypnwZ9vI9s6zTASI0jko6GH7wuB0qs KkqwA7UR9YHPTxRF6QR3ge/04VKH2GoV9VimxoSwdAsmfN5Ss5qC97Go+EQUNfPkm2MJ UgEIlU9c+Y5mChjJ0RBNA/SxaWqjBijU8lVbaBG7oARuiSsQx+KwapXTvxaJAUZm08NC QFRg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=9DaupyoECU1yDtV8pzA9/sOsCZwZ2UrVCveJrQQlp3o=; fh=tsf/+3RY3twcGDw1y8pCRmIcT1Rw3jCoda8z5R4ZTxw=; b=t4n2OqDUYNi4iArTPMZmJy/2kO0/ofUqSbcYVZ+Sb469+ap+IzmVQ2+9bjqPYu9Ea4 /LhCmAgwY77XjkXQ5budqy/JMpiN5gZwdx8aCSj65BFarijj4CYpXXz77cMEVLVOadYf M+dSyHI+Gm8XpSBi6DtOBEn2eyVoP7seDGtNDa8gAyGGCAMqipRXL27myVHFGh0TqAA1 0G5zzZn2MCRVGiD3g6vIeA0TRlXqWm6vDoR6UT6OCMINuoN8sU0BkSkirhG0U3wLRI7L BDOmQU9fEHvcmbFQg5RFDsulTNbfBSIEqHndWvgpTHP4thD4AjvDzUp05+6qHkeLq5+o vVYw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=P8oHOD+a; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-191110-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-191110-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id 6a1803df08f44-6ac162a5233si83706196d6.426.2024.05.27.08.54.14 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 May 2024 08:54:14 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-191110-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=P8oHOD+a; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-191110-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-191110-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 5D2C51C224F0 for ; Mon, 27 May 2024 15:54:02 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9584015F3FA; Mon, 27 May 2024 15:52:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="P8oHOD+a" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 BDEF513A248; Mon, 27 May 2024 15:52:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716825135; cv=none; b=EKMuUFeK2+70GykTGlFMMW55zYF9YvlqkEAt4T1v/Z38DZRQn/uKLa6Z+Dmz4JbghIkZyugBZHGEs6A17mjqH2s3/Zu6IDWbbL7h3OtVx+nMeKi2yTjNE0/Cxl8PbKWKCFxXcLWIw7d81efV2DVQPucKHHJQwGEOsOpcGdZpQ4o= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716825135; c=relaxed/simple; bh=w3cDm44p+/3gFORFyqiEPB8zQtnbKhxFtPfevHoWq1U=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=aw/CQ4HqHzIE8Ls34cTZyN3C+8fIpyzYQRzUv7t6U4jy3TXLTj8fpVz/ta8d9IGcO3Un4JKBlCJqZ65qvFvG06SAPws81I+lRS06aPQNZKWAz9/HVmMMN5eMEQzV90kt25/ra9MYF+z/IuUZiwGo00nClhOEfMofLhD2g1LzG8s= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=P8oHOD+a; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 51318C4AF09; Mon, 27 May 2024 15:52:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1716825135; bh=w3cDm44p+/3gFORFyqiEPB8zQtnbKhxFtPfevHoWq1U=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=P8oHOD+aBvz81B890q1lztYM+7YI4WilCxlmwpDwp9gdiFqXT8H/FiZEfr05Frrxc IWKJTgoDS0Hy7a7n6datgXPktgKrIfQwG103JO5qUE2LFa9Gr3Ht4eZbcUBMffjx6E UX9OZ1lvy3a6urD+zzVGV5RZ9wGnbSmOgxdhPqFEZY1U0BhIRLtvurxUTmEgKsf/wo tWctBkkgMTXL2bmoo3ecwzmLIwG1KTbwDPwPa1re7WbLwtX+TepSoN0eGvmTOD+ipm G0Bwa+DrKDMH+XtIKVbbcGTY/6aKq6uV2Dy8mQafZjHMzG2xA8sWw3FF53PeCEA6nZ +Xbm3Zo/L8tIA== From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Erico Nunes , Qiang Yu , Sasha Levin , maarten.lankhorst@linux.intel.com, mripard@kernel.org, tzimmermann@suse.de, airlied@gmail.com, daniel@ffwll.ch, dri-devel@lists.freedesktop.org, lima@lists.freedesktop.org Subject: [PATCH AUTOSEL 6.9 11/23] drm/lima: include pp bcast irq in timeout handler check Date: Mon, 27 May 2024 11:50:12 -0400 Message-ID: <20240527155123.3863983-11-sashal@kernel.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240527155123.3863983-1-sashal@kernel.org> References: <20240527155123.3863983-1-sashal@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore X-stable-base: Linux 6.9.2 Content-Transfer-Encoding: 8bit From: Erico Nunes [ Upstream commit d8100caf40a35904d27ce446fb2088b54277997a ] In commit 53cb55b20208 ("drm/lima: handle spurious timeouts due to high irq latency") a check was added to detect an unexpectedly high interrupt latency timeout. With further investigation it was noted that on Mali-450 the pp bcast irq may also be a trigger of race conditions against the timeout handler, so add it to this check too. Signed-off-by: Erico Nunes Signed-off-by: Qiang Yu Link: https://patchwork.freedesktop.org/patch/msgid/20240405152951.1531555-3-nunes.erico@gmail.com Signed-off-by: Sasha Levin --- drivers/gpu/drm/lima/lima_sched.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/gpu/drm/lima/lima_sched.c b/drivers/gpu/drm/lima/lima_sched.c index 00b19adfc8881..66841503a6183 100644 --- a/drivers/gpu/drm/lima/lima_sched.c +++ b/drivers/gpu/drm/lima/lima_sched.c @@ -422,6 +422,8 @@ static enum drm_gpu_sched_stat lima_sched_timedout_job(struct drm_sched_job *job */ for (i = 0; i < pipe->num_processor; i++) synchronize_irq(pipe->processor[i]->irq); + if (pipe->bcast_processor) + synchronize_irq(pipe->bcast_processor->irq); if (dma_fence_is_signaled(task->fence)) { DRM_WARN("%s unexpectedly high interrupt latency\n", lima_ip_name(ip)); -- 2.43.0