Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp2586447ybt; Mon, 22 Jun 2020 02:05:44 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwLaLkvp5f2ozdDt4jODD201GN3VcAnYeR2D0bE7TMX23FTs3U6ZtAzNJ38rafX7oAzcf6l X-Received: by 2002:a17:906:480f:: with SMTP id w15mr14877899ejq.430.1592816744589; Mon, 22 Jun 2020 02:05:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592816744; cv=none; d=google.com; s=arc-20160816; b=GoXqgr4LEsHk34LAPkC/nZN8VcFcsBGnFncLYsCOfd001rsWBDrou4/7J/Mvgxl2s9 rplf3+wVlpzz1gLJ/xlh0wHZDUJnhLzFaDwIAhhJnjGh6eAFw0gUZ+rKYsZaF6h3qnOn hH5fHS/TCd+Ht5EsrynJDzr+RFq1yttCXj0qwiag466gMnZTao+WO3fA7fQCrA7uM31x CO7oGU89RgGMsZfvDSddKRG0cb5gNbJyo3c4Ffi3j2S791F6gsYza4Sa+vN5Pjq+H56j rlmMI/n69bI2qQxZ4Tm8KWzRZTtDfZXPLh6ZQxoMAvrI6y51PVgl7w3DHR3AUwakFagc ZMtg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:message-id:date:to:cc:from :subject:references:in-reply-to:content-transfer-encoding :mime-version:dkim-signature; bh=VH0r0uZC1wtlOrO1ywGA0KQHRUl0p+vXgdBe48JFKCA=; b=bHrUSFwrOrSCl6DhjMRVbIPLDYFj4HH2gOIFn9B5MBZ0Tn1meOVsdghttydXjbh0ed dTItwwXSx6lZT0i9qNE8sTt6GxSQ4rDvybPEHskNq1ysdJm+Rov7f5iSgb3cfd8mmW1P lnazv79OLGQPKry5IW0RH3AnICs9Gh9vNbKAu14JaKJY9Slxpr/KwfYejv0tkTbhZk2L NlMbMImIEI9a8UiJ1Q6vR+0Y4IoCB4NOv10Ty6A9BDV/Nei9ys0G/m+wp19Wo85REoMV 2vMzYdPOYa5HvuBTF0bUf5k6FEsVeYKzt9wBFacDFb226JYCaZBpG8uO0KjiPfOVkR/F ZDSg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=VAJ7aZcn; 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=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id w23si7809951edv.71.2020.06.22.02.05.22; Mon, 22 Jun 2020 02:05:44 -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=@chromium.org header.s=google header.b=VAJ7aZcn; 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=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726380AbgFVJDN (ORCPT + 99 others); Mon, 22 Jun 2020 05:03:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34762 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725904AbgFVJDM (ORCPT ); Mon, 22 Jun 2020 05:03:12 -0400 Received: from mail-pl1-x642.google.com (mail-pl1-x642.google.com [IPv6:2607:f8b0:4864:20::642]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F073DC061795 for ; Mon, 22 Jun 2020 02:03:11 -0700 (PDT) Received: by mail-pl1-x642.google.com with SMTP id bh7so7295583plb.11 for ; Mon, 22 Jun 2020 02:03:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:content-transfer-encoding:in-reply-to:references :subject:from:cc:to:date:message-id:user-agent; bh=VH0r0uZC1wtlOrO1ywGA0KQHRUl0p+vXgdBe48JFKCA=; b=VAJ7aZcndX+hJj7qt2LQqJg/H6PgLgjWrr+PCPom7NznZZZNa6+M3MJfT3hMhEXSUw 7m4GPLOCCdu4EKKd8h/o2tD8izj8Rc9onLmnG5SJDvEXeU1HJSzMsWXe1k3wPHhJyIis IhDTzKRPLb2s4V9ERRwLXeVVc6sJmklMi1RX0= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:content-transfer-encoding :in-reply-to:references:subject:from:cc:to:date:message-id :user-agent; bh=VH0r0uZC1wtlOrO1ywGA0KQHRUl0p+vXgdBe48JFKCA=; b=F+dfStq3Mxt60DSprHYYM1SrzLK4IMoYF7zGmcK2Rw/3ZUxnVKamW8HxpqAgMeFYr4 BN6LbcDH8d6thYmvAgA7bn6xhABuXfxOk9DnvIjPwkU+b1MUbT1KFfjpbeJQhTEhoG+r pCv9ZXlxfiHkBSP8V/UQ1zP5czOjMjzD97cg/S8wmxSZr0WVVUwv0eLSaTeRRaA1tnOa iqpxiyYEW8W6do/LGmykvAASHGcRACPCx96VMp1veykIwDFY8oEl9I9qcJQ9FOqex8vg 4Wal2bjWWhW6POkk0bG3qlv9HkxqDR3jNzLmUdrr2KT5m9rWfWmqwScFTTo9zIpL8TqU SS6Q== X-Gm-Message-State: AOAM531RKCgR7GCOplXv464iHAM8dhCgUVgjfQdbOujXw315C3yUe43c +9L65fE9r4qOUT2eqXX0Y0xsD97h0gA= X-Received: by 2002:a17:90a:68ca:: with SMTP id q10mr17572752pjj.120.1592816591359; Mon, 22 Jun 2020 02:03:11 -0700 (PDT) Received: from chromium.org ([2620:15c:202:1:fa53:7765:582b:82b9]) by smtp.gmail.com with ESMTPSA id y3sm13650985pff.37.2020.06.22.02.03.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 22 Jun 2020 02:03:10 -0700 (PDT) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable In-Reply-To: <1592808805-2437-1-git-send-email-mkshah@codeaurora.org> References: <1592808805-2437-1-git-send-email-mkshah@codeaurora.org> Subject: Re: [PATCH] soc: qcom: rpmh-rsc: Set suppress_bind_attrs flag From: Stephen Boyd Cc: linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, dianders@chromium.org, rnayak@codeaurora.org, ilina@codeaurora.org, lsrao@codeaurora.org, Maulik Shah , To: Maulik Shah , agross@kernel.org, bjorn.andersson@linaro.org Date: Mon, 22 Jun 2020 02:03:09 -0700 Message-ID: <159281658960.62212.15968925558324290917@swboyd.mtv.corp.google.com> User-Agent: alot/0.9 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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? >=20 > echo 18200000.rsc > /sys/bus/platform/drivers/rpmh/unbind >=20 > 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! >=20 > Signed-off-by: Maulik Shah > --- Reviewed-by: Stephen Boyd