Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp1506713pxk; Fri, 2 Oct 2020 11:11:32 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz0sryh3oHbn/JuM1QR2CPRZDKd4lac8bbUnF0tBA9E5el672XWuw5mIEEzjx5hJvB0NNLR X-Received: by 2002:a17:906:56c2:: with SMTP id an2mr3590844ejc.118.1601662292254; Fri, 02 Oct 2020 11:11:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1601662292; cv=none; d=google.com; s=arc-20160816; b=e+BGimKdyeR/y8jl8iX6UX2LoVxytL3uMnR+X7nMYUI2GYdSl92MPsVa1qg7GW/di4 mXWaCxpBEpRac/nujWHdK6SNxnVR4AjqLLeTPpeP3x694+vUYAFbnGomufZ8yj8T85TA IzdL4AvMy7JuSci6Smkr/wvBHNAyxm0Z5Kit+H7wq2nHzEHfbrdB1v2bi+PCA9J+z+3Z 9NIEL4I+IFwpDoPGiWduz7u+2BD2CqAV2rMvupUWdz98Nkc/fE4MYzBDsrY5g3LbSC+a 8vkLeldFisVDHqj+l98TJ/KmLcJJJnBYprRIpUywlfJMgy6nvBCPa0UzwlUey4I/tMPi Rnfg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:subject:cc:to:from:dmarc-filter :sender:dkim-signature; bh=od5LaKRmM42JWD19DdHvMTEP5SzyF0vvOZwnJgv40vI=; b=MO6UiO56Qr/R0AEq/vRFQnqtnkef2nW/ET58DYu8md1REJueRIz93UTxO3lnVad8T+ BoH+pSV0ujXLvJaS3PxkQW9lYmUnsY1pcd2PGZtY0aDqZeKtIa/N+9UGM9e8Dv4XQX56 5J4cvzT4za7uQSWo+uxLxs661zpWLMfKVbozFKm1PlELcFj9F8aGlG7vz6CnYjEIN01h 9cD9BpU4qiLx+AiVPxDkpyGH9WWdV20MXfbvNugem+IUp6p1GihMLYRDma4NN8yWu9pS otIcnsB7fZDDMmu4YG8nnZr7su3+nlRaHxJFXGc3ieCk3RVS9ghkiVY9SHpOKlhKUZxF vxsQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mg.codeaurora.org header.s=smtp header.b=WyH9D0l0; 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 lj15si1086646ejb.612.2020.10.02.11.11.09; Fri, 02 Oct 2020 11:11:32 -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=@mg.codeaurora.org header.s=smtp header.b=WyH9D0l0; 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 S2388389AbgJBSJd (ORCPT + 99 others); Fri, 2 Oct 2020 14:09:33 -0400 Received: from m42-4.mailgun.net ([69.72.42.4]:40609 "EHLO m42-4.mailgun.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388034AbgJBSJd (ORCPT ); Fri, 2 Oct 2020 14:09:33 -0400 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.codeaurora.org; q=dns/txt; s=smtp; t=1601662172; h=Message-Id: Date: Subject: Cc: To: From: Sender; bh=od5LaKRmM42JWD19DdHvMTEP5SzyF0vvOZwnJgv40vI=; b=WyH9D0l0J9loxSc7uwdt1POOTujHiUsTNuuo5g2RCPhUxXxxFYvF5drfLiNuF6rP0tUKAcIS MEbVq5BMLN0LA1Ws6zcl88+3Klxfwkq5v/byev1E5gpmcI5qzS31olQnI77NNtJcZxlEx6Xt ETGD0/VtCGU96QFgtA1harwt8wM= X-Mailgun-Sending-Ip: 69.72.42.4 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-n03.prod.us-west-2.postgun.com with SMTP id 5f776cd9f9168450eaa7a953 (version=TLS1.2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256); Fri, 02 Oct 2020 18:09:29 GMT Sender: rishabhb=codeaurora.org@mg.codeaurora.org Received: by smtp.codeaurora.org (Postfix, from userid 1001) id 58579C433FF; Fri, 2 Oct 2020 18:09:29 +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=-2.9 required=2.0 tests=ALL_TRUSTED,BAYES_00,SPF_FAIL autolearn=no 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 78C8DC433C8; Fri, 2 Oct 2020 18:09:28 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 78C8DC433C8 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=fail smtp.mailfrom=rishabhb@codeaurora.org From: Rishabh Bhatnagar To: linux-remoteproc@vger.kernel.org, linux-kernel@vger.kernel.org, bjorn.andersson@linaro.org Cc: tsoni@codeaurora.org, psodagud@codeaurora.org, sidgup@codeaurora.org, Rishabh Bhatnagar Subject: [PATCH v7 0/3] Move recovery/coredump configuration to sysfs Date: Fri, 2 Oct 2020 11:09:01 -0700 Message-Id: <1601662144-5964-1-git-send-email-rishabhb@codeaurora.org> X-Mailer: git-send-email 2.7.4 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. This patch series adds recovery/coredump configuration to sysfs interface and disables coredump collection by default. Having coredump disabled by default on production devices makes sense. Changelog: v7 -> v6: - Keep the debugfs entries intact for now. - Reorder the patches to have a consistent sysfs interface. v6 -> v5: - Disable coredump collection by default - Rename the "default" configuration to "enabled" to avoid confusion v5 -> v4: - Fix the cover-letter of tha patch series. v4 -> v3: - Remove the feature flag to expose recovery/coredump 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: Change default dump configuration to "disabled" remoteproc: Add coredump as part of sysfs interface remoteproc: Add recovery configuration to the sysfs interface Documentation/ABI/testing/sysfs-class-remoteproc | 44 +++++++++ drivers/remoteproc/remoteproc_coredump.c | 6 +- drivers/remoteproc/remoteproc_debugfs.c | 23 +++-- drivers/remoteproc/remoteproc_sysfs.c | 119 +++++++++++++++++++++++ include/linux/remoteproc.h | 8 +- 5 files changed, 181 insertions(+), 19 deletions(-) -- The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum, a Linux Foundation Collaborative Project