Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp249954ybv; Thu, 6 Feb 2020 22:15:47 -0800 (PST) X-Google-Smtp-Source: APXvYqzxkD7t/dAvV5Y5ux1e8CdYXbydQjVwZgsO68+M3c72cBW7ux9bFN1IGfiNGvh6VmHb+QwL X-Received: by 2002:a05:6808:84:: with SMTP id s4mr1074149oic.147.1581056147319; Thu, 06 Feb 2020 22:15:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1581056147; cv=none; d=google.com; s=arc-20160816; b=rhoQjGxzcJNSiK7IRBOMnfx2vNIw43snU8Y99BItMU86Z60m0Cmp394h2zdR1aUZB3 C9VhpLgWt2P5Xet3ezpDroF3r28IB9cy+WPvr9irmRCwls4+CA06yh79ZNP3LpM3hVz5 UTlyILHAfahjwt0b3qQhzCKzn3I0cfyuZeY91LnIGVKemWiTSHELvFRHZZKg5oxwSDdF I1/rr1ekjTidNA9ZxIrLbLPtuEO4YbSi1PCHtwkPQ6ugVwC8pFG5vWki5Ojl9eGLVlwJ ymSAJZb0GIyZqLjMtjYNaoWimKunMCgJyHAdxiA899+yitvF3zyDfWpDbsTF8vXHOptR abfg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:to:subject:cc; bh=AS10K+9hrVmKcERJrYdKi65XeaD3FztrLLmQc+huAyw=; b=rPiQDM8V+CSkUSZsnu8gf3dH7rRh/0/cY/cpg1FVE6dvpTeTBybr1tJLYGXVSToT0k Y4XgDPU8PQnHVcoY8PbPub/KQ7aCIbCNgtHGtVIbtJgORwjPYsUhPYaiYewrLbAY9OAK eXJecbXe24J9zALwVwWV+A2ji8hzijFJCq5wCdZKWyVidmJ9fMT3h0oAPF+XOg0jpGMH 8mt41CWujZOxW5wsb8htAE+yle6cH9xBzP+c8gWTOJaSU4DTVB7fCvUwcIf2x1WcvSsc bDSvBskzkOCY7gH6o5aqZZeMHBDFonYk569g0PP5Lpvgw6zw8srODChUEcaAp8JUac9J CMcg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u1si1152146otg.113.2020.02.06.22.15.35; Thu, 06 Feb 2020 22:15:47 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726936AbgBGGO0 (ORCPT + 99 others); Fri, 7 Feb 2020 01:14:26 -0500 Received: from mx0a-00000d04.pphosted.com ([148.163.149.245]:23154 "EHLO mx0a-00000d04.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726465AbgBGGO0 (ORCPT ); Fri, 7 Feb 2020 01:14:26 -0500 Received: from pps.filterd (m0102889.ppops.net [127.0.0.1]) by mx0a-00000d04.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id 01769SvB029538; Thu, 6 Feb 2020 22:13:51 -0800 Received: from mx0a-00000d03.pphosted.com (mx0a-00000d03.pphosted.com [148.163.149.244]) by mx0a-00000d04.pphosted.com with ESMTP id 2xyhq04jry-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 06 Feb 2020 22:13:51 -0800 Received: from pps.filterd (m0190089.ppops.net [127.0.0.1]) by mx0a-00000d03.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id 0176DCBr002116; Thu, 6 Feb 2020 22:13:50 -0800 Received: from codegreen8.stanford.edu (codegreen8.stanford.edu [171.67.224.10]) by mx0a-00000d03.pphosted.com with ESMTP id 2xyhngvb42-1 (version=TLSv1 cipher=AES256-SHA bits=256 verify=NOT); Thu, 06 Feb 2020 22:13:50 -0800 Received: from codegreen8.stanford.edu (localhost.localdomain [127.0.0.1]) by codegreen8.stanford.edu (Postfix) with ESMTP id 93E2678; Thu, 6 Feb 2020 22:13:49 -0800 (PST) Received: from smtp.stanford.edu (smtp4.stanford.edu [171.67.219.72]) by codegreen8.stanford.edu (Postfix) with ESMTP id 8489878; Thu, 6 Feb 2020 22:13:49 -0800 (PST) Received: from cm-mail.stanford.edu (cm-mail.stanford.edu [171.64.197.135]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.stanford.edu (Postfix) with ESMTPS id 7D8BF21D0F; Thu, 6 Feb 2020 22:13:49 -0800 (PST) Received: from localhost.localdomain (c-73-189-214-134.hsd1.ca.comcast.net [73.189.214.134]) (authenticated bits=0) by cm-mail.stanford.edu (8.14.4/8.14.4) with ESMTP id 0176DkPJ003086 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO); Thu, 6 Feb 2020 22:13:48 -0800 Cc: nando@ccrma.Stanford.EDU, LKML , linux-rt-users , Steven Rostedt Subject: Re: [ANNOUNCE] v5.4.17-rt9 To: Mike Galbraith , Sebastian Andrzej Siewior , Thomas Gleixner References: <20200204165811.imc5lvs3wt3soaw2@linutronix.de> <1581055866.25780.7.camel@gmx.de> From: Fernando Lopez-Lezcano Message-ID: Date: Thu, 6 Feb 2020 22:13:46 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.2.2 MIME-Version: 1.0 In-Reply-To: <1581055866.25780.7.camel@gmx.de> Content-Type: text/plain; charset=iso-8859-15; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on cm-mail.stanford.edu x-proofpoint-stanford-dir: outbound X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.138,18.0.572 definitions=2020-02-06_04:2020-02-06,2020-02-06 signatures=0 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.138,18.0.572 definitions=2020-02-06_04:2020-02-06,2020-02-06 signatures=0 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 bulkscore=0 phishscore=0 mlxlogscore=999 priorityscore=1501 mlxscore=0 clxscore=1011 malwarescore=0 spamscore=0 impostorscore=0 adultscore=100 suspectscore=0 lowpriorityscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2001150001 definitions=main-2002070044 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2/6/20 10:11 PM, Mike Galbraith wrote: > On Thu, 2020-02-06 at 15:59 -0800, Fernando Lopez-Lezcano wrote: >> On 2/4/20 8:58 AM, Sebastian Andrzej Siewior wrote: >>> Dear RT folks! >>> >>> I'm pleased to announce the v5.4.17-rt9 patch set. >> >> Thanks! >> I see a continuous stream of these: > > (snips gripage) > > Yup, d67739268cf0 annoys RT locking if lockdep is enabled. The below > shut it up for my i915 equipped lappy. Wow, Mike, thanks!, will try it out and report... (might take me a couple of days) -- Fernando > drm/i915/gt: use a LOCAL_IRQ_LOCK in __timeline_mark_lock() > > Quoting drm/i915/gt: Mark up the nested engine-pm timeline lock as irqsafe > > We use a fake timeline->mutex lock to reassure lockdep that the timeline > is always locked when emitting requests. However, the use inside > __engine_park() may be inside hardirq and so lockdep now complains about > the mixed irq-state of the nested locked. Disable irqs around the > lockdep tracking to keep it happy. > > This lockdep appeasement breaks RT because we take sleeping locks between > __timeline_mark_lock()/unlock(). Use a LOCAL_IRQ_LOCK instead. > > Signed-off-by: Mike Galbraith > --- > drivers/gpu/drm/i915/gt/intel_engine_pm.c | 7 +++++-- > 1 file changed, 5 insertions(+), 2 deletions(-) > > --- a/drivers/gpu/drm/i915/gt/intel_engine_pm.c > +++ b/drivers/gpu/drm/i915/gt/intel_engine_pm.c > @@ -38,12 +38,15 @@ static int __engine_unpark(struct intel_ > } > > #if IS_ENABLED(CONFIG_LOCKDEP) > +#include > + > +static DEFINE_LOCAL_IRQ_LOCK(timeline_lock); > > static inline unsigned long __timeline_mark_lock(struct intel_context *ce) > { > unsigned long flags; > > - local_irq_save(flags); > + local_lock_irqsave(timeline_lock, flags); > mutex_acquire(&ce->timeline->mutex.dep_map, 2, 0, _THIS_IP_); > > return flags; > @@ -53,7 +56,7 @@ static inline void __timeline_mark_unloc > unsigned long flags) > { > mutex_release(&ce->timeline->mutex.dep_map, 0, _THIS_IP_); > - local_irq_restore(flags); > + local_unlock_irqrestore(timeline_lock, flags); > } > > #else > >