Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp2409285ybf; Mon, 2 Mar 2020 08:04:47 -0800 (PST) X-Google-Smtp-Source: APXvYqzPYoR71zy8vyvVBPt1t8yGUyuvqQZ4C3Z3p+7PujpXjczj3dYt/FZrXRnwfM6Ll3eYK6Sf X-Received: by 2002:a9d:20c1:: with SMTP id x59mr14296588ota.286.1583165087240; Mon, 02 Mar 2020 08:04:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1583165087; cv=none; d=google.com; s=arc-20160816; b=JfdCiw0+SE6ZtXpijzjY/xLFWY8kvy9h8nbRYhD8sD67jRnshFbghZ23Uq4maca/t4 +27U+E6E43i/Mse6ojtAVnFMiYl2cc+JHtn6aDMvnCwXi937SGpX0xj6KtdWV6KXog6z qrcOd/TNpu494qQiT6lM9S/UnaRjYqUlBrPnWOyoG/YHa37GqN4ynOgeQoUQyqFHboLd KZFmM9FHgnzQkreRuYaEurSPGZcnNiHoJQQc3z9t3xQKICJJLK3hgyqwM83pPLYGshoI gMl/r6kJI9t7A+6Jw5DmBgKJIjrEq8kq1j5E6yGs5fXBKNgF28IUSULK79HgLaB+w/Fi y/rw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=dwo1kI2R0u8VbxpRry2PqmeDqIs1/OQohFT2eYy6Mk0=; b=tXf/Q09p7NcUTKH3HatmK7kBdR1b/QOYJ8vyMNOSR+If+vnQQHoFHCVs8ThBzFKNkl kMwpD1e8NaTIfs2nxEfogDk2UvvZeZr7VdnI8ElCPAAqWH13jeW6eroe0D0PjC+0BIns /kujbISLXg/ITOaKm3BgZKgUrCK5bEiM33Oa96PRlulfooKEQEPs0P+YbhgkeAGC5R3m 2S7V+c2bGBqkV8jlts18MHxvwf6DgUNJ9ESO5aqnagqxLorjuZuc3Tf5rF1l6WBLQs1X b2cOeXaEAYaAfJEJ222nSfESSyavMBOBLfEoUKSbZUDSBk31q61U70V7LibkPqubva3X 3I8w== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=8bytes.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 26si180064oiz.107.2020.03.02.08.04.32; Mon, 02 Mar 2020 08:04: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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=8bytes.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727121AbgCBQER (ORCPT + 99 others); Mon, 2 Mar 2020 11:04:17 -0500 Received: from 8bytes.org ([81.169.241.247]:49578 "EHLO theia.8bytes.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727030AbgCBQER (ORCPT ); Mon, 2 Mar 2020 11:04:17 -0500 Received: by theia.8bytes.org (Postfix, from userid 1000) id 6CE8E5BC; Mon, 2 Mar 2020 17:04:16 +0100 (CET) Date: Mon, 2 Mar 2020 17:04:13 +0100 From: Joerg Roedel To: Amol Grover Cc: Allison Randal , Greg Kroah-Hartman , Andrew Morton , Lu Baolu , Thomas Gleixner , Qian Cai , Deepa Dinamani , linux-kernel@vger.kernel.org, linux-kernel-mentees@lists.linuxfoundation.org, Joel Fernandes , Madhuparna Bhowmik , "Paul E . McKenney" Subject: Re: [PATCH RESEND] iommu: dmar: Fix RCU list debugging warnings Message-ID: <20200302160412.GA7829@8bytes.org> References: <20200223165538.29870-1-frextrite@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200223165538.29870-1-frextrite@gmail.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Feb 23, 2020 at 10:25:39PM +0530, Amol Grover wrote: > dmar_drhd_units is traversed using list_for_each_entry_rcu() > outside of an RCU read side critical section but under the > protection of dmar_global_lock. Hence add corresponding lockdep > expression to silence the following false-positive warnings: > > [ 1.603975] ============================= > [ 1.603976] WARNING: suspicious RCU usage > [ 1.603977] 5.5.4-stable #17 Not tainted > [ 1.603978] ----------------------------- > [ 1.603980] drivers/iommu/intel-iommu.c:4769 RCU-list traversed in non-reader section!! > > [ 1.603869] ============================= > [ 1.603870] WARNING: suspicious RCU usage > [ 1.603872] 5.5.4-stable #17 Not tainted > [ 1.603874] ----------------------------- > [ 1.603875] drivers/iommu/dmar.c:293 RCU-list traversed in non-reader section!! > > Tested-by: Madhuparna Bhowmik > Signed-off-by: Amol Grover > --- > include/linux/dmar.h | 8 +++++--- > 1 file changed, 5 insertions(+), 3 deletions(-) Applied, thanks.