Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp500277imm; Thu, 13 Sep 2018 03:21:52 -0700 (PDT) X-Google-Smtp-Source: ANB0Vdbt5MxCVxKxRIcdwFah7hlJz21Db3PdYwEqxmpRJKdL+UpLDKUkdrMgz0XkLxlcQeHE6NmI X-Received: by 2002:a63:db4f:: with SMTP id x15-v6mr6209279pgi.214.1536834112573; Thu, 13 Sep 2018 03:21:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536834112; cv=none; d=google.com; s=arc-20160816; b=iGGn+JUqBh9LOoWyOYNZPBUvcjeMgwnd0tTdhClLQArNOzFJJJuPcMGkrcOMjXUNhZ dThHSv0wa5rQ+BP+GZTo8Drb61jUnG01LvfLhJCAsmVn962b/xOpWLA/JQ9VIUqZM3y5 zAtYZz27z/Xvn4zwxLl342Ak0IXKazymtwLp4PVahlBkyhz6GsiY4Md02p0j2Y5BSbK4 3/r/rDZoFyD/TB4zRtXq2rM6AbuE7HR44u1fuB9Wq8G0JsbkNBKIdK3cYvBD35LeJ+HJ t+kLuOgThIQ35hPhSa4nYeKrGKqHar1eMoFFlj4JjEHew3xvq4YpT6lT+z5+raL1aM1F oWrQ== 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:dkim-signature; bh=+hrBtGdAXBLZd2TXIddL4V+8X3o8MCs1FECk1jP34YY=; b=O4E83t009WQyp+iqb/zmQSXTrvIZVo9hAb7Q+rBYIjMTyN4xxgIjrAHo9bKgfiFrG2 3rrA3cHzzy8uPXLMQwzUUTaMf5bPIJjca3VIRCedFc15wDEce6i48Hb0saAOdZx41Zrx cE0cvIGnV8MhVOl6/5sXUXyGRxKG3AT2xbF/a4Za2AHHxGoWzmHBEUe5PTCSVvKmT1Rq ep7VKEnmcc71PqPT7evUoK/82CCR5Ksha8EP3pulD+9pSJfGVO+TDDbYnMccPQY4vsqs CydI7j23VjkCIWuT2wIj4lVDxLcr29sbSLrlMJM8rJ6I1JVj8vKvl82G9uCKJBG9NZoS 1joQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="DJ/YWFtn"; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f10-v6si3835036pgj.397.2018.09.13.03.21.25; Thu, 13 Sep 2018 03:21:52 -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; dkim=pass header.i=@linaro.org header.s=google header.b="DJ/YWFtn"; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727044AbeIMPaH (ORCPT + 99 others); Thu, 13 Sep 2018 11:30:07 -0400 Received: from mail-lj1-f194.google.com ([209.85.208.194]:38389 "EHLO mail-lj1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726818AbeIMPaG (ORCPT ); Thu, 13 Sep 2018 11:30:06 -0400 Received: by mail-lj1-f194.google.com with SMTP id p6-v6so4154161ljc.5 for ; Thu, 13 Sep 2018 03:21:17 -0700 (PDT) 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=+hrBtGdAXBLZd2TXIddL4V+8X3o8MCs1FECk1jP34YY=; b=DJ/YWFtn40j1r3ycfkVRrbj8ItKp+eHiMiF6Hnrp8rkt+GyHaPm/d6H1N8CwQh+1Cp goE8pbbZmquyadlLR74QrVaDbvwUnU60IPjw9ya6JJVLA3i18RB1sjmBGTZ9qkZ9CDTz ye6Q+cxO/pMmneMXNkKiugFhb2tizlejgchT0= 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=+hrBtGdAXBLZd2TXIddL4V+8X3o8MCs1FECk1jP34YY=; b=MVBkwzanhjxoZsw3PwptHwAkzzSaYePtmi4+KoFqBNtfnv2/l0VMmqL4vNlhSJYa9w WHRh1mFwdLjC+o2KJFQzFDn8BVxOVoVQrHejojGQv7x2ofRwU4N6KjFZat66uxRvo9x/ DpqA32fJRF+AhFf/p6DZwX94toFsXcjN5cFEZBLVc+wcjjyivcxPJWO5DcEcYhmvneod fpXd7MNIxEmYSB4w/AlGBX7SAEmtrCVnsrt4uCA+AeybtfRiuys19BPGBAdoNMAEt790 aYtzhdFH/FnCAF4R8sfc0zgxwHq82mWkWNwyqHTzwXWjiCD3znIJ42NSHNWHpm/dNPI6 hipQ== X-Gm-Message-State: APzg51A8Z/XeyZmZSwunoCxOoyMMV70Sh8ptjt9rBDVrZcDX/J/lX5lO DEJao4u+BLXmQJFh78swE4NRRA== X-Received: by 2002:a2e:9f4d:: with SMTP id v13-v6mr3976734ljk.42.1536834076295; Thu, 13 Sep 2018 03:21:16 -0700 (PDT) Received: from centauri.lan (h-229-118.A785.priv.bahnhof.se. [5.150.229.118]) by smtp.gmail.com with ESMTPSA id n3-v6sm613062lji.96.2018.09.13.03.21.14 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 13 Sep 2018 03:21:15 -0700 (PDT) Date: Thu, 13 Sep 2018 12:21:13 +0200 From: Niklas Cassel To: Viresh Kumar Cc: Andrew Lunn , Gregory Clement , Jason Cooper , Nishanth Menon , "Rafael J. Wysocki" , Sebastian Hesselbarth , Stephen Boyd , Viresh Kumar , "linux-pm@vger.kernel.org" , Vincent Guittot , "4.18" , "linux-arm-kernel@lists.infradead.org" , Linux Kernel Mailing List Subject: Re: [PATCH 00/11] OPP: Don't create multiple OPP tables for devices sharing OPP table Message-ID: <20180913102113.GA25222@centauri.lan> References: <20180912135537.GA9985@centauri.ideon.se> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: 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 Thu, Sep 13, 2018 at 01:18:34PM +0530, Viresh Kumar wrote: > On 12 September 2018 at 19:25, Niklas Cassel wrote: > > On Wed, Sep 12, 2018 at 01:58:39PM +0530, Viresh Kumar wrote: > >> Hello, > >> > >> Niklas Cassle recently reported some regressions with his Qcom cpufreq > >> driver where he was getting some errors while creating the OPPs tables. > >> > >> After looking into it I realized that the OPP core incorrectly creates > >> multiple OPP tables for the devices even if they are sharing the OPP > >> table in DT. This happens when the request comes using different CPU > >> devices. For example, dev_pm_opp_set_supported_hw() getting called using > >> CPU0 and dev_pm_opp_of_add_table() getting called using CPU1. > >> > >> This series redesigns the internals of the OPP core to fix that. The > >> redesign has simplified the core itself though. > >> > >> @Niklas: Can you please confirm that this series fixes the issues you > >> have reported ? I have already tested it on Hikey960. > > > > Hello Viresh, > > > > This fixes the OPP error messages that I previously reported. > > > > However, I also tested to add a duplicate OPP to the opp-table. > > > > Before this series, I got the first two error prints. > > After this series, I get the first two error prints + the use after free splat. > > This looks to be an old bug. Can you please try this branch: Hello Viresh, You confused me here, since you did hide the fix for this old bug in the middle of your new patch series :) I think that it would have been more obvious to simply paste the fix/diff in your reply directly, since that is the most common way to post a potential fix. Or, if you are really confident in your fix, post a V2 directly. However, your branch works like a charm, so feel free to add: Tested-by: Niklas Cassel when sending out your branch as a V2. Kind regards, Niklas > > git://git.kernel.org/pub/scm/linux/kernel/git/vireshk/pm.git opp/qcom-fix > > ?