Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp3012779ybt; Mon, 22 Jun 2020 12:37:33 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyHPcbjOtERV/67FcggYOaOUS9/fujuEvmL4j4yeIiVZ3/qoQmdegWmf2KAzjOqgvm5jLPl X-Received: by 2002:a50:f1d9:: with SMTP id y25mr17891756edl.292.1592854653828; Mon, 22 Jun 2020 12:37:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592854653; cv=none; d=google.com; s=arc-20160816; b=c+GKBVEkWqG0448ZpzZERK0NNArkX8uNXb3R8hjQ1LIF5L3fizhZDQVhHcRH7iuJEV 9U7q0V1VrIca2T5LoY/wdgLvZXGSdx5RInw1PQIbccJDnI/Hg5pIMPH7yMTdXv8yufVy 11JUCs7eReAJrjckty8BQP0v9fbvl7YDJiWO/cV3t6ML5EXbwsS8nO5bbTnaoADYfP2I tM5WSs3BbrciU1xkaZ8ShBmd2dY1GMRiLkWb3cxg08xfcbYT8nrLkLuhAp0409pBBZKh BwsV5Vq9UiH9OVoDdAYxXVnRblhdnKQng5UcILals7PKGKNp6w1LRH6nccgdwqfmofd4 +OLA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=kDvWJFrzfpWbkxz8YXuc2rLUJQ0CoVh8mMluFwhFK9g=; b=iuKBGxDC9E8gBMK9TverktJjEIM5jy3dvWeJzCX1QgDzll5fg7C0qkRjYm8hKR/yxa Z87Laf5mHyhn7mlWz3WqUSA9zeh4D8L1weEAGB0/mvQ5GJc6KYjBTUTyhh8/lhwzt6zR 6hdOA+AgFqkuOTDj73jJ18Pg6ZVpJFpSn1bAs1Hh7c5XLRsIPlKmYt9tSJk8LDHMGnp2 jkJdX9c4mCnm2RRbKY7+gB9VD84MahaOu9kv78RN0gvvk3TlSC15zKLuA8ERfrV5eP6S h0l0LHUL6qaO8ZYe3EMEtgZMcd3CWjub5kn4a/B/M8yaWC7K+maEATXj8LVR2hlCgKss K3mA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=X4t7jax6; 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 eb11si12995359edb.302.2020.06.22.12.37.11; Mon, 22 Jun 2020 12:37:33 -0700 (PDT) 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=X4t7jax6; 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 S1728735AbgFVTcT (ORCPT + 99 others); Mon, 22 Jun 2020 15:32:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47822 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728150AbgFVTcS (ORCPT ); Mon, 22 Jun 2020 15:32:18 -0400 Received: from mail-ot1-x341.google.com (mail-ot1-x341.google.com [IPv6:2607:f8b0:4864:20::341]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 95E60C061573 for ; Mon, 22 Jun 2020 12:32:18 -0700 (PDT) Received: by mail-ot1-x341.google.com with SMTP id t6so14083502otk.9 for ; Mon, 22 Jun 2020 12:32:18 -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; bh=kDvWJFrzfpWbkxz8YXuc2rLUJQ0CoVh8mMluFwhFK9g=; b=X4t7jax66/02t8oexfXxT0PX6kXxK5rECyLccSKXxOoR/BkGQMHjqxEkJEN2Mm/X5C YlhyuvZzjl2K51NtRfnqMTHkwxtI8Uq0QybiLU6lXgXwrWDYh7IL84D9cm5G/+7ATEVl OCOfKFp6jJAOR6rkGn2vefwW2qKFVjRwzEs4z6NnDS7PLZU3CwM5YdQVmZ2xtadDm/Fb vtQUapslp69ZExR2yYVeVqY7DHLy0vGOCzFNzhhDzqVrZRt45QgeZ3lmcFYM8mkvG4JR 5t2QO9VHFSR/CJ0E+pOVnXztmWWnD7FvUKEfCiGiWNgIgeoVy/op0sPXg6XwEFxkZpWB yNMw== 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; bh=kDvWJFrzfpWbkxz8YXuc2rLUJQ0CoVh8mMluFwhFK9g=; b=A0FPX4Fdhu4SNtHXtFqLYDJoUmIZe6XxUS2ScPOi65g7a5h1l5VUAtGLrWqnkwI1PG JoLe28KX27L3QHqQiTYVUa7qZq7uV9S2h/y8z0QLo4SapM9w2cL14veUA7t3bsrWbWc8 MGayeX/Hrcz6lduxq4Gro9OCdP8SKYjsp0c3yFPhLhTBWY42pUN8l51lifF5jAihcJrG mNFriauRFLwaGWWvYO1VeBztPipneA2+o2hLajDPS2cWftxyRJIVmCdvUJ0GKnTXmAja nBbxGv3upE35VlLvwzFu73X9plorxkYAJASXsp3/A7h2Tv4Mni4DuA33Qe/42/aRSNJ0 JWjQ== X-Gm-Message-State: AOAM53194hXHw5aespQXzkXFCZAd5Qq4KXk2ui+MwOB+pOGoCmeQEb1C HwjKro+vgGiDOKjE0PIEAtmUZg== X-Received: by 2002:a9d:67c1:: with SMTP id c1mr14225076otn.27.1592854337928; Mon, 22 Jun 2020 12:32:17 -0700 (PDT) Received: from builder.lan (104-188-17-28.lightspeed.sndgca.sbcglobal.net. [104.188.17.28]) by smtp.gmail.com with ESMTPSA id a10sm3630772ooo.39.2020.06.22.12.32.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 22 Jun 2020 12:32:17 -0700 (PDT) Date: Mon, 22 Jun 2020 12:29:32 -0700 From: Bjorn Andersson To: Stephen Boyd Cc: Maulik Shah , agross@kernel.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, dianders@chromium.org, rnayak@codeaurora.org, ilina@codeaurora.org, lsrao@codeaurora.org, john.stultz@linaro.org Subject: Re: [PATCH] soc: qcom: rpmh-rsc: Set suppress_bind_attrs flag Message-ID: <20200622192932.GV128451@builder.lan> References: <1592808805-2437-1-git-send-email-mkshah@codeaurora.org> <159281658960.62212.15968925558324290917@swboyd.mtv.corp.google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <159281658960.62212.15968925558324290917@swboyd.mtv.corp.google.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon 22 Jun 02:03 PDT 2020, Stephen Boyd wrote: > Quoting Maulik Shah (2020-06-21 23:53:25) > > rpmh-rsc driver is fairly core to system and should not be removable > > once its probed. However it allows to unbind driver from sysfs using > > below command which results into a crash on sc7180. > > What is the crash? The world falls apart because rpmh APIs start > referencing pointers that point to freed memory? > Presumably the devm_of_platform_populate() will cause said drivers to be dismantled as well - but I think it's safe to say that that code path isn't well tested... I've applied the patch, but would have preferred that some time was spent to make sure that things are unloadable as well. Regards, Bjorn > > > > echo 18200000.rsc > /sys/bus/platform/drivers/rpmh/unbind > > > > Lets prevent unbind at runtime by setting suppress_bind_attrs flag. > > Ok. But when the Android module brigade comes knocking they'll have to > revert this change and solve this problem too. Have fun! > > > > > Signed-off-by: Maulik Shah > > --- > > Reviewed-by: Stephen Boyd