Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp903181pxk; Thu, 3 Sep 2020 16:06:42 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyM3JKfU2w6b0R2vDe3fJldcr51EBlrA1n4e53H/xvv0v0bSmYIadwN7GmW+oPf7T6ZjJ5+ X-Received: by 2002:a17:906:e8f:: with SMTP id p15mr4791060ejf.290.1599174402087; Thu, 03 Sep 2020 16:06:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599174402; cv=none; d=google.com; s=arc-20160816; b=J5j3vTlCLLSHAAlWDLcVNZ+VKTbkZE476dBakUDA5GUnw7KV6bn7SLpzHe9oRiHc8V k5OzqBtUX3PY8K6kyFDHIYiyNqVxbQA3Ju0mV4wL/iT3DKQWplUxzOABOQhcbr++elhY SYVBTLBnAjultQAFtKSHqs0quFozFSEZlpm1Yv9e1V6kwVrc2sahpUuuh10zQfz8Y9ov LzrB2ClMS2UpvNzhqzABnerG4fGtTbd2bpJDYxlvBZcumlkLdbkde6yDSoY1EOaWUjtT ZiSJ8Qd6klAUj6PZ1qy1hOEkW8eaBpDFOpnhDR6CC4AA/0QRPFFaO9rYqlC/kP7CbLc9 wqvQ== 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=hDpiCErf5Pq+wUXV3mxX7j9jGGSRA8i/72xM+93TfzU=; b=wGbG1mx7RuElw7WkSOktWi3ZycCUC8miNFX/lCHYPc/GuJm/Pkwpf0jshRcrCbvoGn jse1zntXxZ8i7FUXphPROSlhuaYB3DYTsWOVb7m05b6xStwLcj0SoVp3OzFL6U+zXS4b /FYgjo7di6bHYsogsCORPDPwBTX05ygycigm9Jxx5+9/dPFOHEpiEZf5aGXZD3X3fqk2 bjKkJe3oBiKjbCCipou4KB5CVBiuSd0jpImK/yDCWgDz6/Dx5DxTgBD8p6BoYhvBPeEz jOQab0TA9QgSHS/0xEa+/9/lE1+E2sKF+EjJi+RidYY1YRjiWLlytBlLJFIUnBu59XK+ bshg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@mg.codeaurora.org header.s=smtp header.b=ZK3J+IDm; 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 25si3750057ejl.76.2020.09.03.16.06.19; Thu, 03 Sep 2020 16:06:42 -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=ZK3J+IDm; 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 S1729311AbgICXFj (ORCPT + 99 others); Thu, 3 Sep 2020 19:05:39 -0400 Received: from mail29.static.mailgun.info ([104.130.122.29]:38573 "EHLO mail29.static.mailgun.info" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727804AbgICXEz (ORCPT ); Thu, 3 Sep 2020 19:04:55 -0400 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.codeaurora.org; q=dns/txt; s=smtp; t=1599174294; h=Message-Id: Date: Subject: Cc: To: From: Sender; bh=hDpiCErf5Pq+wUXV3mxX7j9jGGSRA8i/72xM+93TfzU=; b=ZK3J+IDmULOrFxNB4C8OLXHI8wKWoqP8ZRKBXcN2qv9z26eYtEnqtymJrw9fOYyx6atp4R8K 3asL1HOkwJz7EK/P4mXA22Cr4RwE1Oj3Xg+KYSXJqEfUn3sQ1W+D8TXvvrZTERMI69IQDx+o cYu9FIhKnT1mn9wGgfTcsfXVhlo= 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-n07.prod.us-west-2.postgun.com with SMTP id 5f51767b25e1ee7586181bf5 (version=TLS1.2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256); Thu, 03 Sep 2020 23:04:27 GMT Received: by smtp.codeaurora.org (Postfix, from userid 1001) id A9BBEC43391; Thu, 3 Sep 2020 23:04:26 +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 92482C433C9; Thu, 3 Sep 2020 23:04:25 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 92482C433C9 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, tsoni@codeaurora.org, psodagud@codeaurora.org, sidgup@codeaurora.org, Rishabh Bhatnagar Subject: [PATCH v3 0/3] Expose recovery/coredump configuration from sysfs Date: Thu, 3 Sep 2020 16:03:42 -0700 Message-Id: <1599174226-2307-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. This patch series removes the recovery/coredump entries from debugfs and adds a configurable option to expose these interfaces from sysfs. '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 build and "disabled" in production builds. Whereas recovery needs to be "disabled" for debugging purposes and "enabled" on production builds. Changelog: v3 -> v2: - Remove the coredump/recovery entries from debugfs - Expose recovery/coredump from sysfs under a feature flag v1 -> v2: - Correct the contact name in the sysfs documentation. - Remove the redundant write documentation for coredump/recovery sysfs - Add a feature flag to make this interface switch configurable. Rishabh Bhatnagar (3): remoteproc: Expose remoteproc configuration through sysfs remoteproc: Add coredump configuration to sysfs remoteproc: Add recovery configuration to sysfs Documentation/ABI/testing/sysfs-class-remoteproc | 44 ++++++++ drivers/remoteproc/Kconfig | 12 +++ drivers/remoteproc/remoteproc_debugfs.c | 10 +- drivers/remoteproc/remoteproc_sysfs.c | 126 +++++++++++++++++++++++ 4 files changed, 190 insertions(+), 2 deletions(-) -- The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum, a Linux Foundation Collaborative Project