Received: by 2002:a25:ca44:0:0:0:0:0 with SMTP id a65csp674581ybg; Tue, 28 Jul 2020 16:11:36 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyqIB2eRvP8ld89IpyFmUq8Aciw5jUiMkUBIJAA96Ijkm9HeCHIEnwQBXT9KqngJ6jffmoh X-Received: by 2002:a17:906:ca11:: with SMTP id jt17mr8567248ejb.148.1595977896596; Tue, 28 Jul 2020 16:11:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595977896; cv=none; d=google.com; s=arc-20160816; b=Tv64hvSs1y1gRMuvfC9s/qk9P05/V6BypuNlsvLODpd2I4S2a/J+OYMefKW88dQ51G VGtCXGgVglBCBtf+W5s/ndIIVTrGkVVKk5f3p1ecwc9pw+XxK2ziO9tPulmHDk0Jj4Z+ v35WD+/hf5sT6FgKtPNjBx2l6qBbojbeZ93/iJ979owGXcnaQimi6TCFCLIwoczSYxgw bkEwGubZOIA2vfudoln7kp3vMQEj2QwJfSUW/H3qfx4HYIKctOs9CEfLryZLlATIqNhl 95zeEe4wZdRTjeksgj97WJyEnMnk41lfbBdYXiKfIty2CfElDIaNaxWt/o9OtDPThkgf oBvA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dmarc-filter:dkim-signature; bh=Q+HnYwQcB9HBRz0MWZn6a62rdMMsR2TUvTL+b8IYK4I=; b=rYtN6OD6VQIQJ+ZA7uz6Wwe4t/OlEvrW2kfvvmRJP03AE0Kktccc3DC4C90asJ/GyD useTZzNFhoDck+fG6dBvzoOot6urqG8Jgm3ooa6+K1+NxAaYJ8LNPF9BwbyWJpgSQVVL xRwkrvqH6jp2MibUeY7wKVHaNk5Ddj1FtEkNso+qh8/EQrU87oMXg0Tbf8ZT1S1qXE4c hM6URcMprmdjQIDpC/bKQga0AjMwJIwBrs8EuvLrHATLlIPO7gkChWaKxdPvZ40PckEB fv11XcSe4CzF07rkeL8Lm4E7K1I9I4PlWGHFlBMgqhM+XZtaGGuo9Jb9kVOYBdVyLU4G 7MOg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@mg.codeaurora.org header.s=smtp header.b=GctgKycf; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a18si6486236ejt.742.2020.07.28.16.11.14; Tue, 28 Jul 2020 16:11:36 -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=fail header.i=@mg.codeaurora.org header.s=smtp header.b=GctgKycf; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730154AbgG1XIm (ORCPT + 99 others); Tue, 28 Jul 2020 19:08:42 -0400 Received: from mail29.static.mailgun.info ([104.130.122.29]:24164 "EHLO mail29.static.mailgun.info" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729819AbgG1XIm (ORCPT ); Tue, 28 Jul 2020 19:08:42 -0400 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.codeaurora.org; q=dns/txt; s=smtp; t=1595977721; h=Message-Id: Date: Subject: Cc: To: From: Sender; bh=Q+HnYwQcB9HBRz0MWZn6a62rdMMsR2TUvTL+b8IYK4I=; b=GctgKycf10S0mfFlTRPVdo1/S2X0jTKgB1k/WZGJYAkgpGf945ydhieGPkkj1KAPvQa9aoPx C9k7Mf0tblbfg3eyDhTg+GrswoSfM62FCsSBpWpyK92H4hQLgq0SlKX40xKK1SiSg7+OcqTS L9jgPQTvu4mT2USF69lX+nNDSYw= X-Mailgun-Sending-Ip: 104.130.122.29 X-Mailgun-Sid: WyI0MWYwYSIsICJsaW51eC1rZXJuZWxAdmdlci5rZXJuZWwub3JnIiwgImJlOWU0YSJd Received: from smtp.codeaurora.org (ec2-35-166-182-171.us-west-2.compute.amazonaws.com [35.166.182.171]) by smtp-out-n04.prod.us-west-2.postgun.com with SMTP id 5f20afe998acebb4e93f346d (version=TLS1.2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256); Tue, 28 Jul 2020 23:08:25 GMT Received: by smtp.codeaurora.org (Postfix, from userid 1001) id 24942C433CA; Tue, 28 Jul 2020 23:08:25 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-caf-mail-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.0 required=2.0 tests=ALL_TRUSTED,SPF_NONE autolearn=unavailable autolearn_force=no version=3.4.0 Received: from rishabhb-linux.qualcomm.com (i-global254.qualcomm.com [199.106.103.254]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: rishabhb) by smtp.codeaurora.org (Postfix) with ESMTPSA id A6DC8C433C9; Tue, 28 Jul 2020 23:08:23 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org A6DC8C433C9 Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; spf=none smtp.mailfrom=rishabhb@codeaurora.org From: Rishabh Bhatnagar To: linux-remoteproc@vger.kernel.org, linux-kernel@vger.kernel.org Cc: bjorn.andersson@linaro.org, mathieu.poirier@linaro.org, tsoni@codeaurora.org, psodagud@codeaurora.org, sidgup@codeaurora.org, Rishabh Bhatnagar Subject: [PATCH 0/2] Move recovery and coredump interface to sysfs Date: Tue, 28 Jul 2020 16:08:15 -0700 Message-Id: <1595977697-15389-1-git-send-email-rishabhb@codeaurora.org> X-Mailer: git-send-email 2.7.4 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From Android R onwards Google has restricted access to debugfs in user and user-debug builds. This restricts access to most of the features exposed through debugfs. 'Coredump' and 'Recovery' are critical interfaces that are required for remoteproc to work on Qualcomm Chipsets. Coredump configuration needs to be set to "inline" in debug/test builds and "disabled" in production builds. Whereas recovery needs to be "disabled" for debugging purposes and "enabled" on production builds. Moving these interfaces to sysfs will allow usage for these interfaces for production and debug builds. Rishabh Bhatnagar (2): remoteproc: Move coredump entry from debugfs to sysfs. remoteproc: Move recovery debugfs entry to sysfs Documentation/ABI/testing/sysfs-class-remoteproc | 76 +++++++++++ drivers/remoteproc/remoteproc_debugfs.c | 167 ----------------------- drivers/remoteproc/remoteproc_sysfs.c | 123 +++++++++++++++++ 3 files changed, 199 insertions(+), 167 deletions(-) -- The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum, a Linux Foundation Collaborative Project