Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp26052pxk; Tue, 1 Sep 2020 15:09:50 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyWVdRqPaneKAOLoNt2hs4Cgh744281vELGLyWYZlMTV4OGW7tUVVW09mqPFxMBFjT4PJNj X-Received: by 2002:aa7:cd06:: with SMTP id b6mr3591681edw.196.1598998189975; Tue, 01 Sep 2020 15:09:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598998189; cv=none; d=google.com; s=arc-20160816; b=qUd1+oZVoM4xzI5Ax5xBB/X4TtlJyaHdnnUPBAf+WqILkOmtLOkjXp/vlyFMuN8s27 UXEgJObNbfVgWqWnb7Lgzz9Hkgls9U3NGUFPQiZ2poKyhJ3H7Uv1ZgtiHsVxJXn0js8S ZBxhRag+8FAqZ7ROtaWRf9OVXXi/L1F6XzFyUk++gN2ZXXITWrFTyI3DXfboVDbHPFxJ XD2jrF3OKnEFchcbQ4FaoS2XbvSBBnNWda3zrBzWOsGlnS/bACOCxuMVGK4JwZVea4US gFrveGz8MY5i6uYqcT5XgUvy04fjOnPkExFKqF23MX5EsUp7mzSf/wvleRBlgDfG0NnE Fqnw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=QmRQ0CWOdYSr3JJU7Ljb0Td0mDAoy48JJtlYjX1PJ+k=; b=ytyzyhpH8uoZeiPpon9zrdz665v91nrFir1NjcSfVgT3JkVVN/+kgR6JJjJhEL7nGZ arxaLeqfujYEnntTMIqXMv+MzGWb0qPkg5NwuN3i4TsYB0exg3h/sPxVAoBDm3VPwhvs N7F6odAMqNWjhhrEmI9PATBRN8kMuqNSFwylxK4tfAQJ2KVaX6iaycidpsPAxXI++uEG nzLhqGqE5IMalTu9zQALRzXI+xu2XgeyKBLAWJdxRvQm6E4Ed2LnDnq90BHecRRuUe73 nnA2s8bvfBlJFPBYzLx7wWePjKm/yvlGddScSzFGSiVWwxSxLoH4HkCjMVFGiX8v7u/L t5Zw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=B36Jbkkq; 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=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i11si1675686edb.127.2020.09.01.15.09.25; Tue, 01 Sep 2020 15:09:49 -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=@linaro.org header.s=google header.b=B36Jbkkq; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729673AbgIAWFs (ORCPT + 99 others); Tue, 1 Sep 2020 18:05:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58918 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727946AbgIAWFq (ORCPT ); Tue, 1 Sep 2020 18:05:46 -0400 Received: from mail-pj1-x1044.google.com (mail-pj1-x1044.google.com [IPv6:2607:f8b0:4864:20::1044]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0A582C061245 for ; Tue, 1 Sep 2020 15:05:45 -0700 (PDT) Received: by mail-pj1-x1044.google.com with SMTP id n3so1205789pjq.1 for ; Tue, 01 Sep 2020 15:05:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=QmRQ0CWOdYSr3JJU7Ljb0Td0mDAoy48JJtlYjX1PJ+k=; b=B36JbkkquXk9bR5sDsF4SEnQZ8roTgYDa5LDi5ceGOo0WD5C980r6+n5x4/kY+Ibfv JeNKfH1EtTnY33O8RWjF3MjuBQMncOwDRf3sVrUhzoC8uDZMoxZdDEKE+b8WZM8Vo/x4 27DW4qaD0UDajwWJxhFrP6i6aVEpv1gwlu52TfynE6ZcYag8FDhkErZC05NN5ovU/iOE /qupB7MXI4H/AU5Fi1N0JcVIbgOEWX32ZO+b/p7Cm+ayKe0HIPFpDxpSjPGxO/QOEiGI yrdsmA6w1fbWxZdU2TGaV2CeUHJCwoouqkVe04C7i9RRg1e94zo4NI3dUBxgXiXcf4Kl IYgg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=QmRQ0CWOdYSr3JJU7Ljb0Td0mDAoy48JJtlYjX1PJ+k=; b=sA7kUZOBe3Nti/NY/gEwzrIG+GFMZkbhsaGTcJn4M8BFvhs+da1QSV56ibN4Kz4QYg bKqOyp9KDZio6zUr8N0cor/i9zqPvBspEawOtVGso8HstYTI2BMEDiRupOOFhrhvuuO3 ZgkITuwJyNVBpfRxqCGQlLDPheGkQee5NxLSKPuclkVcNWBOCBKoFK0knbTe1kfjwYJQ LVWIfkqGamQRAsjGNWdMDohJrOmh/iLyo+ZY5XiIn3+S9TodQCmXrqnqDUoZKcZr1US9 LZeu5OeaCqfoMXA1hyGHCk72PWPytcwcJD+4VN7Roozv7CRcab4y1dvezWmp6DQGV4MZ BilQ== X-Gm-Message-State: AOAM533Ei4ihgvliKA1+tVIcUBCX2igSaC/CNDwCANCMmrNf0s0aZ4IQ SNPUpXO8SMX2rsbXghItgYK9kw== X-Received: by 2002:a17:90a:d18f:: with SMTP id fu15mr2566918pjb.133.1598997945220; Tue, 01 Sep 2020 15:05:45 -0700 (PDT) Received: from xps15 (S0106002369de4dac.cg.shawcable.net. [68.147.8.254]) by smtp.gmail.com with ESMTPSA id o63sm2933682pfb.190.2020.09.01.15.05.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 01 Sep 2020 15:05:44 -0700 (PDT) Date: Tue, 1 Sep 2020 16:05:42 -0600 From: Mathieu Poirier To: Rishabh Bhatnagar Cc: linux-remoteproc@vger.kernel.org, linux-kernel@vger.kernel.org, bjorn.andersson@linaro.org, tsoni@codeaurora.org, psodagud@codeaurora.org, sidgup@codeaurora.org Subject: Re: [PATCH v2 0/3] Expose recovery/coredump configuration from sysfs Message-ID: <20200901220542.GA121362@xps15> References: <1598557731-1566-1-git-send-email-rishabhb@codeaurora.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1598557731-1566-1-git-send-email-rishabhb@codeaurora.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Rishabh, On Thu, Aug 27, 2020 at 12:48:48PM -0700, Rishabh Bhatnagar wrote: > 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. What I meant wast to move the coredump entry from debugfs to sysfs and from there make it available to user space using a kernel config. But thinking further on this it may be better to simply provide an API to set the coredump mode from the platform driver, the same way rproc_coredump_set_elf_info() works. That will prevent breaking a fair amount of user space code... Let me know if that can work for you. Thanks, Mathieu > '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 >