Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp1347530ybi; Tue, 16 Jul 2019 13:32:49 -0700 (PDT) X-Google-Smtp-Source: APXvYqxPutwqqw5rFPxZZN328NVTBaXobOtUMf4otgKAWdQLuWu23BvvI55Yu/F1+JuPNvlsYm4q X-Received: by 2002:a65:6108:: with SMTP id z8mr5223998pgu.289.1563309169073; Tue, 16 Jul 2019 13:32:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1563309169; cv=none; d=google.com; s=arc-20160816; b=zQ7GyIM6yVpcrYgTTn68mvFRWr+YppVmty2TaSEQ/+krUc79d+ZbTtB9TEGdjFF6+9 890nJArOKheob6fSub7HPmGUkwMXa+unN0IQ2iKEhUWRCcOqO3qoBuFs6CinlxD8T6Yk U+3JtPUiH1sduvwXkilyTvuHXz8bqWlvZCvCTZesWaXjImfwvg5KABcj/5UawUCak2iV Fw2Os+0hdLlYS7ZzP/SBvxWI/lpRELY2fcD2aag3yXMQ3OJFmqu6hdBZumZvbVD0YvX9 ej4pFx4ZBnH1j02n3PcA+RKhAQZpwnB6bPoQwIRNItAWtXEYZIR/T6YBvV/ozWqlGw5P 7PCw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :message-id:in-reply-to:subject:cc:to:from:date; bh=uT0xgpirpQg4SxIDFGVI81fITlksAqNQpt40GlDSlt4=; b=HNTBpaEBPZkldmSXRnhYwgO0g7djFKSidMT791N5PxJzr87+Ce6dzxXosO/NFwWRi7 Vx/P1K61NjQDdf6ewdl2FZ6dRotyN/LdByvKQP+NF5sF9crzvLwQUPTHYw4uqF54WCzy Kvi0WpL41luMyxSGmiBNwjKa/NNIubqan05BSTl5Mc71RMReqANSrLcs3nrZyu5jTWyv rnyf2H5fYadjiR3bx8lqd4x2s4BIhrZcvibA6y8FZ53ihKwkW8KdWnkAi7qA1MamRM6d hZp9wkBv385FHS+5UEV19stYJOaFiRlS7GoX/aj5mMiY0qaEfX3ifqbVKwh32mMYovWj I/Uw== 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 c19si11133232pfi.256.2019.07.16.13.32.31; Tue, 16 Jul 2019 13:32:49 -0700 (PDT) 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 S2388727AbfGPU34 (ORCPT + 99 others); Tue, 16 Jul 2019 16:29:56 -0400 Received: from Galois.linutronix.de ([193.142.43.55]:51073 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728340AbfGPU34 (ORCPT ); Tue, 16 Jul 2019 16:29:56 -0400 Received: from pd9ef1cb8.dip0.t-ipconnect.de ([217.239.28.184] helo=nanos) by Galois.linutronix.de with esmtpsa (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1hnU5B-0003QB-QZ; Tue, 16 Jul 2019 22:29:54 +0200 Date: Tue, 16 Jul 2019 22:29:53 +0200 (CEST) From: Thomas Gleixner To: Clark Williams cc: Sebastian Andrzej Siewior , RT , LKML Subject: Re: [PREEMPT_RT] bogus lockdep assert from i915 on v5.2-rt1 In-Reply-To: <20190716145043.1929f50e@torg> Message-ID: References: <20190716145043.1929f50e@torg> User-Agent: Alpine 2.21 (DEB 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-Linutronix-Spam-Score: -1.0 X-Linutronix-Spam-Level: - X-Linutronix-Spam-Status: No , -1.0 points, 5.0 required, ALL_TRUSTED=-1,SHORTCIRCUIT=-0.0001 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Clark, On Tue, 16 Jul 2019, Clark Williams wrote: > Thomas, > > When looking at a problem on v5.2-rt1, I turned on lockdep and started getting warnings > from lockdep_assert_irqs_disabled() in the i915 driver. They're making these calls inside > a spin_lock_irqsave/spin_lock_irqrestore block, which of course doesn't fiddle with IRQs > when PREEMPT_RT is configured. The attached patch places the three calls inside > if (!IS_ENABLED(CONFIG_PREEMPT_RT_FULL)) blocks, so should avoid the bogus warning on RT. AFAICT, all three asserts are pointless because there are already the lock held asserts and lockdep will warn anyway when these locks are taken with interrupts enabled. Thanks, tglx