Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp361740imm; Thu, 13 Sep 2018 00:48:58 -0700 (PDT) X-Google-Smtp-Source: ANB0VdbnAEWfZijO8o1ZKmvsyitKVjuthueVyzi4kurx+g5EujZNMA16pkQUYmgUbAJLTdRT83nI X-Received: by 2002:a17:902:6909:: with SMTP id j9-v6mr5961519plk.196.1536824938018; Thu, 13 Sep 2018 00:48:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536824937; cv=none; d=google.com; s=arc-20160816; b=aT8E883v6K6JSBKdGvQCeeVazhHcSx7DoVgONgZopWNMPo8bukbZ5t5NFAMXBbp6KB 5YxuIsbO5gk25i3qYXmsWWqY8B5VIa733Z/wFVdZTRd/Gp3EJ3zxLy3CNUXw5e99Bhv7 b0kFB7eEO+uLBJFlVRLaYym/C8Ye/scBkh2CadchgsN5zSk7fdbVlWTlcnxC6hpmZXzg 7gtbwj8vEt7kqtsq/kK38K0wWVU0x2/HH0xqieD0MaKwOlLT1Y7jaSyG10eceh4CUIIx yfc/kROmI7OeA+65PMKC2q7NmWuIzdvYR4LtdjO8WEj6n3kbuqoA3wiWOuZ69ERRDYpl QigA== 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 :references:in-reply-to:mime-version:dkim-signature; bh=VirJn8KVk0kYx/O9YrzA3qVGDRx5P3AsFNJ6bZ/ZfXA=; b=rYd/jBjIf8D+Gn/VHN4MxHxM5OgcqrpTCPPxwlBXWshv2hYhmQ/MapyokocTcyelYZ DEpDbA8RLybvIQGyyfCo27EpWVJLc+dfnnPh1ZC755Dxqh2Ko4p1HfJ8LhL9cCTHCL9J SigxhFQqAf/Mp6xrd9ARULJUFk0/Ef+W6vAlsP/LgDIJg/mhH/GRT47KUd4ZPAKv5n0F vZ7J0a8rmA1smWvdrzZK078tnKNK6xSiIjFiDba5hjE4yKbtRorY6bYhvnEvn+Y9JLof YtQ9jan594er2o6ZMXqOkBHpjvgooyOLHM+f6vBUeDw6lGxmZiisdUdlxu8gPvJL1PTX ae+g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Mk4VSGv7; 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 n24-v6si3506539pgj.14.2018.09.13.00.48.42; Thu, 13 Sep 2018 00:48:57 -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=Mk4VSGv7; 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 S1726838AbeIMM4x (ORCPT + 99 others); Thu, 13 Sep 2018 08:56:53 -0400 Received: from mail-it0-f68.google.com ([209.85.214.68]:39374 "EHLO mail-it0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726570AbeIMM4x (ORCPT ); Thu, 13 Sep 2018 08:56:53 -0400 Received: by mail-it0-f68.google.com with SMTP id h1-v6so6558323itj.4 for ; Thu, 13 Sep 2018 00:48:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=VirJn8KVk0kYx/O9YrzA3qVGDRx5P3AsFNJ6bZ/ZfXA=; b=Mk4VSGv7NdGNVmHIqoD0DiAZC57qXEcOWvMbMTMxLgxhSGOOA9UIzS65oqCMUltptR la5npJuQOnhhKqKS5tdTckgwD1Mf/nlwxtnmq8V7Lq0VNJia/9LoNPfW264uRQtwMTvH AnjrLYpJuVcPKgPe+xuxI/90qYx1Mlu4x7/H4= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=VirJn8KVk0kYx/O9YrzA3qVGDRx5P3AsFNJ6bZ/ZfXA=; b=ATCYfDn1j5BuOVwOGe4bg8edtYLFvK1nZJF34tqlqlrcBBw3i5f6alGzN97OOn+ue3 xMRqYNA/+XhjzcvP+CRlMqdNRTRuwv+bZ5xYtKZQmizTbS0LCyFBg6v5P4SGzRuLNV7n pn+Tw7llGTlk2ppkGaFtKlGGskpEfwKbecNNnTvG4hz1Zfcag0mvlvArnKDny+RVsek+ hCLZhclsRdFYh+5jywoQMLjca0+7n2NSzvow+VQQmF7RNoDH/V716rqwSdaGOljZ4fkK 2bbKSJOE+hZjMZ7IBQ5NesgKjOu3JRVtur/lasPki7Vqm9YbmfqDLxEQlUVaputfJ9f9 JwrA== X-Gm-Message-State: APzg51AKiTZsZO5rhyKbQKxIkaj9vhXPlOXlO7MW7rD6cDdVbX4n7IS0 8THwC9YFP5plFu1MU6SwXDeoeKw/zG/ko6pE8kZ55g== X-Received: by 2002:a02:9b81:: with SMTP id p1-v6mr5510872jak.125.1536824915405; Thu, 13 Sep 2018 00:48:35 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a02:9823:0:0:0:0:0 with HTTP; Thu, 13 Sep 2018 00:48:34 -0700 (PDT) In-Reply-To: <20180912135537.GA9985@centauri.ideon.se> References: <20180912135537.GA9985@centauri.ideon.se> From: Viresh Kumar Date: Thu, 13 Sep 2018 13:18:34 +0530 Message-ID: Subject: Re: [PATCH 00/11] OPP: Don't create multiple OPP tables for devices sharing OPP table To: Niklas Cassel 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 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 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: git://git.kernel.org/pub/scm/linux/kernel/git/vireshk/pm.git opp/qcom-fix ?