Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp1633340ybf; Sun, 1 Mar 2020 14:20:16 -0800 (PST) X-Google-Smtp-Source: APXvYqxoB4n2C8y4lfWgj1AdFcKCSkFqM0Q3di6fGdhLp06LuNpNm0qrrN+yMkQlBzvO3MqwJ0GW X-Received: by 2002:a05:6808:983:: with SMTP id a3mr4038452oic.172.1583101216281; Sun, 01 Mar 2020 14:20:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1583101216; cv=none; d=google.com; s=arc-20160816; b=Omq2NzcOssLXeI5uvoCTPPl5438xi0GtIkJi73iSZ4DwSlMbfgFqY1UBIc9qoXxMRO ekK3QDxOzW/saNESCMBEm0lU1iuI+V6agAZ+PyJlMUGV+4tLMZkvhPKZ7XbUCDRF+hCT +UpdHIPOTB6QnTwsHttjdXrbl7MQjVzmvQWnVQ8Pv2X1u3xqZjtY9IxHAm7R3lUTtEXK JGt7YG53Av0wCsFtBxnHD4n+Pm47OwwjQhtmFFnZrLz7sUH8Pb3NpawLcne2Y5rXuSh4 KPA0xY7+qBJR5n4nQtISfCvcjrwAUH7G7e+UrCxYilRQTpzl7WOS/T+mikVXh5w6dvV+ ltkQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=idl6CAZ4ITJuBYPn9L4mQrfqGQ3iPRLrH1VIVeU0Djc=; b=bl8adzf+gKEhBgg2Qd4IWuLfqy/zfekhSzIo4t8Mxidwo3U5ZKIsUEiGhqS1u3vBC7 JhCSvLFnEgPBQvxODQOf8S4MCp8xHqyNKeWUmrbiasb7JHIVJBB836KeK8QQbAjN4Tah miaiv9ri0zeOVg5kkYe15idJxCdXXOi9gfZg6YCjzy5TVcpBpDItPFhxzye4BEVn5Ylt YHkPc0ewYIowktcF7x/Jg9fbTVzorpdDxUBfTfRkOLoG3F4lExouj40Dpvo9noRhFnch shyQBAhHtbq1NLGNXpsYbOiIi5ynFqvqulVTqbxgFV1E84jl2S5rjguWL+u8srW9zizH nCMQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@joelfernandes.org header.s=google header.b=f02XpK2e; 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 h17si5376031oib.234.2020.03.01.14.19.50; Sun, 01 Mar 2020 14:20:16 -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; dkim=pass header.i=@joelfernandes.org header.s=google header.b=f02XpK2e; 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 S1726562AbgCAWSs (ORCPT + 99 others); Sun, 1 Mar 2020 17:18:48 -0500 Received: from mail-il1-f195.google.com ([209.85.166.195]:38233 "EHLO mail-il1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726465AbgCAWSr (ORCPT ); Sun, 1 Mar 2020 17:18:47 -0500 Received: by mail-il1-f195.google.com with SMTP id f5so7658132ilq.5 for ; Sun, 01 Mar 2020 14:18:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=joelfernandes.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=idl6CAZ4ITJuBYPn9L4mQrfqGQ3iPRLrH1VIVeU0Djc=; b=f02XpK2ejCZoNah0VS/D/BTPPXjnnwlxaKHbPLZ1gNzdM8WoIRfmLM97gRYrrkNYzb /4UEOO6pkK9VGFzE/xMp8jBkDU7yhZBwVQMTYnUPS6N5I0l3ISvaWhDH1glPSAAsCRCS 8YaVQcO/YyHQfzdaQOdKtLXt4hhcm3zjX+xPo= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=idl6CAZ4ITJuBYPn9L4mQrfqGQ3iPRLrH1VIVeU0Djc=; b=anhPt8Du0jylS7ZAgCtrDhs/2t97CvMXhjbBX6TZuEDqCMGM1U/7zdGRI25ic+sw/F WK91E7iLqURFt/+Jzd+KC0SID/fUYnq0kn4/GwRF9oqn0hrNQ6gASTXPYrrp5aMnGSAH nUYehWZVFW8MuZO6OuPgq5BzArZgs+ydmIhkaokkxhUPSCdxsU518LvbKI+baX2ivqgH kXHCUbzn0n97ZhFL7CA3GREbWV2bp1KVHukwnYfQA1RUryhC1YHZBpMEPTuaB9yB8HgV ve7/xCTrlLGMJWR7cBQXQV9FESabsTCBFeLfk/ksLwxVnAnkx/Naw8tRxU7PxPPHMjha inLA== X-Gm-Message-State: APjAAAU9Du8pEuOlklHG7EWurvzkd6m9+TM5ptKBmrLWGC/sQHevAucu ZDCD+/TALsQJt05uxugT9qAwJ2fM9e6jboUgpof83w== X-Received: by 2002:a92:3cd7:: with SMTP id j84mr15067873ilf.176.1583101127203; Sun, 01 Mar 2020 14:18:47 -0800 (PST) MIME-Version: 1.0 References: <20200228174630.8989-1-madhuparnabhowmik10@gmail.com> In-Reply-To: From: Joel Fernandes Date: Sun, 1 Mar 2020 17:18:36 -0500 Message-ID: Subject: Re: [PATCH 1/2] drivers: base: power: main: Use built-in RCU list checking To: "Rafael J. Wysocki" Cc: Madhuparna Bhowmik , "Rafael J. Wysocki" , Pavel Machek , Len Brown , Greg Kroah-Hartman , Linux PM , Linux Kernel Mailing List , Amol Grover , linux-kernel-mentees@lists.linuxfoundation.org, "Paul E. McKenney" Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Mar 1, 2020 at 4:23 PM Rafael J. Wysocki wrote: > > On Sun, Mar 1, 2020 at 9:53 PM wrote: > > > > > > > > On March 1, 2020 3:12:53 PM EST, "Rafael J. Wysocki" wrote: > > >On Fri, Feb 28, 2020 at 6:47 PM wrote: > > >> > > >> From: Madhuparna Bhowmik > > >> > > >> This patch passes the cond argument to list_for_each_entry_rcu() > > >> to fix the following false-positive lockdep warnings: > > >> > > >> [ 330.302784] ============================= > > >> [ 330.302789] WARNING: suspicious RCU usage > > >> [ 330.302796] 5.6.0-rc1+ #5 Not tainted > > >> [ 330.302801] ----------------------------- > > >> [ 330.302808] drivers/base/power/main.c:326 RCU-list traversed in > > >non-reader section!! > > >> > > >> [ 330.303303] ============================= > > >> [ 330.303307] WARNING: suspicious RCU usage > > >> [ 330.303311] 5.6.0-rc1+ #5 Not tainted > > >> [ 330.303315] ----------------------------- > > >> [ 330.303319] drivers/base/power/main.c:1698 RCU-list traversed in > > >non-reader section!! > > >> > > >> [ 331.934969] ============================= > > >> [ 331.934971] WARNING: suspicious RCU usage > > >> [ 331.934973] 5.6.0-rc1+ #5 Not tainted > > >> [ 331.934975] ----------------------------- > > >> [ 331.934977] drivers/base/power/main.c:1238 RCU-list traversed in > > >non-reader section!! > > >> > > >> [ 332.467772] WARNING: suspicious RCU usage > > >> [ 332.467775] 5.6.0-rc1+ #5 Not tainted > > >> [ 332.467775] ----------------------------- > > >> [ 332.467778] drivers/base/power/main.c:269 RCU-list traversed in > > >non-reader section!! > > > > > >I don't see these warnings in the kernels run locally here. > > > > > >What do you do to get them? > > > > > >Joel, any comments here? > > > > You have to enable lockdep in your config. Does your setup have that? > > CONFIG_LOCK_DEBUGGING_SUPPORT=y > CONFIG_PROVE_LOCKING=y > CONFIG_DEBUG_SPINLOCK=y > CONFIG_DEBUG_LOCK_ALLOC=y > CONFIG_LOCKDEP=y This should be it. I am not sure what else Madhuparna did to trigger it. Madhuparna, could you elaborate? thanks, - Joel