From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D54DE40911F for ; Tue, 30 Jun 2026 13:21:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.140.110.172 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1782825666; cv=none; b=HBvSHyrFaXZZoLtumEbF7Jyqfb71gEFuafo705EkcmVHtPj6x7Q4oyc4YR0V8FtJN/uSrRVyZYr/vH8TFdcbYoAWtQ4+cT/BeLgEelllHIvYMA4vHSNlPVYf7Qq1xpK8gODxY9qGEmTclnYOfvGf1As2zAUYoANgdR+JihX9Rg0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1782825666; c=relaxed/simple; bh=AUW140M7pPSScS+h1z4tF9OaZG7H6Ra98dGhhECl/TY=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=Ag8U1Fu+Ir1Z1lQkYggG/M81QN2UnhbeikY7/bK/yNupN8LwenjYfrg06wQUjVjEsXfSMuklZ2GWsm46e58GkSyC2Y0GNYy7jz0F3dLR7llH8UZDvUv1CEXdQD6CWZGy32uhCzVdBD4KmSPJav/10v4ykGtT3t9eXX/o8vQv7uk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com; spf=pass smtp.mailfrom=arm.com; dkim=pass (1024-bit key) header.d=arm.com header.i=@arm.com header.b=JCOzbceK; arc=none smtp.client-ip=217.140.110.172 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=arm.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=arm.com header.i=@arm.com header.b="JCOzbceK" Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 738842ED2 for ; Tue, 30 Jun 2026 06:20:58 -0700 (PDT) Received: from [192.168.0.1] (usa-sjc-imap-foss1.foss.arm.com [10.121.207.14]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id AC28A3F673 for ; Tue, 30 Jun 2026 06:21:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=arm.com; s=foss; t=1782825662; bh=AUW140M7pPSScS+h1z4tF9OaZG7H6Ra98dGhhECl/TY=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=JCOzbceK41eTrpp2qBGGJSl1Id0umnbBxS2ldwn6m1CMRnX3j6U6YmfY56YD3baes usO4IkivFv+A4RGh/9AQCJjGZ0e7SWgqbmyNyzNkrexdoALV0kVVhxO/BbhPQu8DP/ qowQY6X6a0qSSZMEEMUeYH0vtaVzkAvZNc0RCw3A= Date: Tue, 30 Jun 2026 14:20:51 +0100 From: Liviu Dudau To: Boris Brezillon Cc: Steven Price , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Simona Vetter , Nicolas Frattaroli , Chia-I Wu , Karunika Choo , dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, sashiko-bot@kernel.org Subject: Re: [PATCH 06/11] drm/panthor: Don't overrule pending immediate ticks in sched_resume_tick() Message-ID: References: <20260625-panthor-misc-fixes-v1-0-b67ed973fea6@collabora.com> <20260625-panthor-misc-fixes-v1-6-b67ed973fea6@collabora.com> 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=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20260625-panthor-misc-fixes-v1-6-b67ed973fea6@collabora.com> On Thu, Jun 25, 2026 at 02:40:32PM +0200, Boris Brezillon wrote: > We schedule immediate ticks when we need to process events on CSGs, > but those immediate ticks don't change the resched_target because we > want the other groups to stay scheduled for the remaining of the GPU > timeslot they were given. Make sure these immediate ticks don't get > overruled by a sched_queue_delayed_work() that would delay the tick > execution. > > Fixes: 99820b4b7e50 ("drm/panthor: Make sure we resume the tick when new jobs are submitted") > Reported-by: sashiko-bot@kernel.org > Closes: https://sashiko.dev/#/patchset/20260625-panthor-signal-from-irq-v4-0-3d2908912afa@collabora.com?part=9 > Signed-off-by: Boris Brezillon Reviewed-by: Liviu Dudau Best regards, Liviu > --- > drivers/gpu/drm/panthor/panthor_sched.c | 9 ++++++++- > 1 file changed, 8 insertions(+), 1 deletion(-) > > diff --git a/drivers/gpu/drm/panthor/panthor_sched.c b/drivers/gpu/drm/panthor/panthor_sched.c > index 8fd4d97b062e..ab3e13e44a26 100644 > --- a/drivers/gpu/drm/panthor/panthor_sched.c > +++ b/drivers/gpu/drm/panthor/panthor_sched.c > @@ -2667,7 +2667,14 @@ static void sched_resume_tick(struct panthor_device *ptdev) > else > delay_jiffies = 0; > > - sched_queue_delayed_work(sched, tick, delay_jiffies); > + /* We schedule immediate ticks when we need to process events on CSGs, > + * but those don't change the resched_target because we want the other > + * groups to stay scheduled for the remaining of the GPU timeslot they > + * were given. Make sure those immediate ticks don't get overruled by > + * a sched_queue_delayed_work() that would delay the tick execution. > + */ > + if (!delayed_work_pending(&sched->tick_work)) > + sched_queue_delayed_work(sched, tick, delay_jiffies); > } > > static void group_schedule_locked(struct panthor_group *group, u32 queue_mask) > > -- > 2.54.0 > -- ==================== | I would like to | | fix the world, | | but they're not | | giving me the | \ source code! / --------------- ¯\_(ツ)_/¯