Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp2172402pxu; Sun, 6 Dec 2020 22:20:04 -0800 (PST) X-Google-Smtp-Source: ABdhPJwcoku0+4xe2FUZqJI+MiASPtg1Vqxxw1/R5fZmwrGQK+mKzbkBUp4MGoUJSidzrBQQePDq X-Received: by 2002:a05:6402:3c3:: with SMTP id t3mr18726024edw.86.1607322003843; Sun, 06 Dec 2020 22:20:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607322003; cv=none; d=google.com; s=arc-20160816; b=JHNhxb2zOifI9MbqcqcgAPhWfSFxv9YFm8SIYoOz0rfJfMJ9lFh1EHqsHKqdfH6Dmo 2ELxHSUTgurTnli1kCqPKI3g2jBCDGZDjpC4ch+ZPQlrft/eME8KGzExOdabtqPJ+lLZ knR0Q1xLgg2Vn4jN7A0YYbkGZRfZQu/lkmBvuaYL9R1RCmdfGIqNLV3GuDM07ag6U6Qo 6afFM8AdpIykUbZluTma1Q6YxETNo+hTa6GTd/Py31XabKjZJyF0zYzbJTN/Is1ubCQO Ip81yfLfOeUxCdBRN7x6eT/P81xicBnuf/fIfEMxPrgpT602GQBJ9YXsjg5e57AqAK5o Fq/Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=UEC9Ey1YiH340yAKzQI3EtE+5vtsPcOD/FPejTWMx7w=; b=NbjfxuXheDu2EKDXmEXTt2+k/vNtKJRfWsDFlPcDBGswtK+ZSY8dLsJO0lgHThgAty bD6Om0zqvChjYV0TmhozCNolNvm9jyur7lH/B7pc0aPHW7bJnAyTDPjdTdrHZzxIgqLa FqJrPxLXfVMlb0W0/udyj2sJNHHzKRxn8HSaLnAqN01kDXmkKW1+undnDJJcWrHBmaij SBeFiTjAAPl6U7WyI3wHZF89wog0iYJFBho+C5WnUgFIA/HJK3kIJzORfdo6n/rY7/qx 8+e5QCY4IPJayQdAeN4HNAwn3OrGaOJMxVgSf8oSzcwDwxwN7toNwpmT2tAzWDZVDbEY iwHA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=o2XJfSqz; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id e10si3538513edk.554.2020.12.06.22.19.40; Sun, 06 Dec 2020 22:20:03 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=o2XJfSqz; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725960AbgLGGRj (ORCPT + 99 others); Mon, 7 Dec 2020 01:17:39 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48536 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725799AbgLGGRj (ORCPT ); Mon, 7 Dec 2020 01:17:39 -0500 Received: from mail-pf1-x441.google.com (mail-pf1-x441.google.com [IPv6:2607:f8b0:4864:20::441]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0159DC0613D2 for ; Sun, 6 Dec 2020 22:16:59 -0800 (PST) Received: by mail-pf1-x441.google.com with SMTP id p4so2884205pfg.0 for ; Sun, 06 Dec 2020 22:16:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=UEC9Ey1YiH340yAKzQI3EtE+5vtsPcOD/FPejTWMx7w=; b=o2XJfSqzzn/rOiBwbGH3UlxuQOAZHr1UBqmeed/0e1fhHWgdPw6g+ghmTazVGrsStv xkevCH2AQ7+K/XZLzzcsjSvlO0O7DLennpdrtQrst0GNuG2SDEQzN8OagNsOcQ2iHC7V mJcdwfJfIDeOfJ21ncaNFhmUpNXUGGJvMjH00MOIjG1GofWmdRrnx3Q5MwsmYJ7/iY9V t7gJLYvSQdLwijIivyfKz2E+YVr2QP0DavK6leUlPvH5LydY+s2kK9SNDVC14Sx4+jja gJgaYojnzfDgCp9o7J8KP+Ip67NP1k/O7pj+e1AtktY7/ujymtidRkxNl2Y0sVymBZM/ qMqQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=UEC9Ey1YiH340yAKzQI3EtE+5vtsPcOD/FPejTWMx7w=; b=EOz1UNTmCOpsA5/4bNFGzhbP0RTjPr2wH1R5cgYuNe5G6eFQZGZlUcJ8qJe2BoRv3n i8zqFk73MNTJ107D3eXBIs8kx+ORiNxvPRoe2D1BQYp5uM+7U+C0K21ua9UyCDA7MGfA LlfiaGQTI8eZdNTBWgZBfmSETod6TVMGTG6moKN0h+FS2x7lZMLMeefh40GLpAdrKfMy 6jADfLGQFXAK+7stLuqXoxlA8DSSBIIIcowpzaFJev3fG0m1hOELpE5+tW+o+6YH4EbX HQnyk5TVnh4svoyL8pK77gevNBee2RIJfItzdIdU6gdlo/7/Bx0r7taSzB+aucqtPRKA wnzQ== X-Gm-Message-State: AOAM530sMUXzc5qVQxEUPclEGDvCF156Axyjjf8Rgqnhd4y0vDd20666 kGTodfFnvLyWttH1fYTBkBvY1w== X-Received: by 2002:a63:b910:: with SMTP id z16mr7549604pge.358.1607321818276; Sun, 06 Dec 2020 22:16:58 -0800 (PST) Received: from localhost ([122.172.136.109]) by smtp.gmail.com with ESMTPSA id a12sm9089777pjm.44.2020.12.06.22.16.56 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sun, 06 Dec 2020 22:16:57 -0800 (PST) Date: Mon, 7 Dec 2020 11:46:54 +0530 From: Viresh Kumar To: Rob Clark Cc: Daniel Vetter , dri-devel , Rob Clark , Sean Paul , David Airlie , "open list:DRM DRIVER FOR MSM ADRENO GPU" , "open list:DRM DRIVER FOR MSM ADRENO GPU" , open list , "Menon, Nishanth" Subject: Re: [PATCH v2 07/22] drm/msm: Do rpm get sooner in the submit path Message-ID: <20201207061654.btlgobmsljdqbb2u@vireshk-i7> References: <20201027113532.nriqqws7gdcu5su6@vireshk-i7> <20201103054715.4l5j57pyjz6zd6ed@vireshk-i7> <20201104030353.ny7zvakgb4fsye6r@vireshk-i7> <20201106071621.j732gt4nqifjrccd@vireshk-i7> <20201118052829.ugt7i7ac6eqsj4l6@vireshk-i7> <20201119060528.qscedvc4jlmxakqo@vireshk-i7> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20201119060528.qscedvc4jlmxakqo@vireshk-i7> User-Agent: NeoMutt/20180716-391-311a52 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 19-11-20, 11:35, Viresh Kumar wrote: > On 18-11-20, 08:53, Rob Clark wrote: > > On Tue, Nov 17, 2020 at 9:28 PM Viresh Kumar wrote: > > > > > > On 17-11-20, 09:02, Rob Clark wrote: > > > > With that on top of the previous patch, > > > > > > Don't you still have this ? Which fixed the lockdep in the remove path. > > > > > > https://lore.kernel.org/lkml/20201022080644.2ck4okrxygmkuatn@vireshk-i7/ > > > > > > To make it clear you need these patches to fix the OPP stuff: > > > > > > //From 5.10-rc3 (the one from the above link). > > > commit e0df59de670b ("opp: Reduce the size of critical section in _opp_table_kref_release()") > > This fixes debugfs stuff while the OPP table is removed. > > > > //Below two from linux-next > > > commit ef43f01ac069 ("opp: Always add entries in dev_list with opp_table->lock held") > > > commit 27c09484dd3d ("opp: Allocate the OPP table outside of opp_table_lock") > > This fixes debugfs stuff while the OPP table is added. > > > > This matches the diff I gave you earlier. > > > > > > > no, I did not have all three, only "opp: Allocate the OPP table > > outside of opp_table_lock" plus the fixup. But with all three: > > And looking at the lockdep you gave now, it looks like we have a > problem with OPP table's internal lock (opp_table->lock) as well apart > from the global opp_table_lock. > > I wish there was a way for me to reproduce the lockdep :( > > I know this is exhausting for both of us and I really want to be over > with it as soon as possible, this really should be the last patch > here, please try this along with other two. This fixes the debugfs > thing while the OPPs in the OPP table are removed (they are already > added without a lock around debugfs stuff). > > AFAIU, there is no further debugfs stuff that happens from within the > locks and so this really should be the last patch unless I missed > something. Rob, were you able to test this patch ? -- viresh