Received: by 2002:a05:6a10:6006:0:0:0:0 with SMTP id w6csp682600pxa; Thu, 27 Aug 2020 12:51:20 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzs5QW+C4yECP9krECz+etUwU2WLzbzn2AE09QXpx/GyeU1xSD25eAM4A90Tfciz1RbTgCg X-Received: by 2002:a17:906:a1c2:: with SMTP id bx2mr20576903ejb.426.1598557880386; Thu, 27 Aug 2020 12:51:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598557880; cv=none; d=google.com; s=arc-20160816; b=tcg3GzSxEkIuLoI6rkt4TvSRbG7bXP7kEdA3O8odMPmsKK96TlUD+9W+V5Wh4YtnDx a8pPdAWpkAdx4LI8ZtFZDsKVXeGCQNFlV4lIZw12plSnQoDpZZ4rX+xdj5SUM0XJmJ5s EoqVcDGAh2rpQTa/wqWK0DDzBVRFCC8r8O3KB9xBuTRsSYnyhqx6wtjtpQczLRm6dH/s MU21U8sxg1g33/e05E1jYGlxejyZS620ADishiAqvrV0dOY2BEEehpwO9XB+nZaG1q3Z jpRvfLEndrQ1pvkXGzZOGbUcTWXOfQMZUEsccV/gTQMBWvy2VnOm8t/exKw++Z7GbPJf ulcw== 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=IMap5XyQVfizux80ReEpV+zbu+JIgjieu55JC8XmOQ0=; b=Eh0g+0khwqzOWH5Bu6goZ56Or9EgbTQO4QeYg8ZjOX0KIJI3sk0HArlmx9+7Q+1E+h 6Ja2CUl0DCU9JLYRyYB9o1ltkI7UwUoVEaFaF/prcek9mXa7xPwluOUOloEEI9DVj1j9 vQkixg9+m1NBdmOME9k/qUSQnwsujf6Gdjv4NroMm2Q7RjVejwzvULqUhhxV3yljxkJN heFXsmU84a0HUlGCGJaWylhdsdt+M1QxZinOahYEA5sNDkvvuBb3+vf0sQJj2BcAJa3o 9TPORj4V43f1Kb3sLCPw8F+fGqsHwvtgvbteJoF458fgVUB78yy+7c4cHgFC5TtBAR88 OKXg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@mg.codeaurora.org header.s=smtp header.b=uL8bySI0; 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 a15si1867961edn.264.2020.08.27.12.50.57; Thu, 27 Aug 2020 12:51:20 -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=uL8bySI0; 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 S1728043AbgH0Ttx (ORCPT + 99 others); Thu, 27 Aug 2020 15:49:53 -0400 Received: from mail29.static.mailgun.info ([104.130.122.29]:51487 "EHLO mail29.static.mailgun.info" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727813AbgH0Ttr (ORCPT ); Thu, 27 Aug 2020 15:49:47 -0400 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.codeaurora.org; q=dns/txt; s=smtp; t=1598557787; h=Message-Id: Date: Subject: Cc: To: From: Sender; bh=IMap5XyQVfizux80ReEpV+zbu+JIgjieu55JC8XmOQ0=; b=uL8bySI0n/8rYXjPYBS52x2DQu0hLxb4vPCY+VIftA3tifYmyPbC6ctQSAXSMIV95SWEoe0h D1iD9SCXpuyPZZ+et/SZz+C2SA8h11jpB+5cEvJlzCsiilkN++KwYIjoj54wF2np559SM/WC YBFSIcjU5x7Zfz2wUixtBM2DOUw= 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 5f480e4215988fabe05f27de (version=TLS1.2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256); Thu, 27 Aug 2020 19:49:22 GMT Received: by smtp.codeaurora.org (Postfix, from userid 1001) id 53DC1C43387; Thu, 27 Aug 2020 19:49:22 +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=ham 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 A6B2DC433C6; Thu, 27 Aug 2020 19:49:21 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org A6B2DC433C6 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 v2 0/3] Expose recovery/coredump configuration from sysfs Date: Thu, 27 Aug 2020 12:48:48 -0700 Message-Id: <1598557731-1566-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 adds a configurable option to move the recovery/coredump interfaces to sysfs. If the feature flag is selected it would move these interfaces to sysfs and remove the equivalent debugfs interface. '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: 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