Received: by 2002:a05:6358:c692:b0:131:369:b2a3 with SMTP id fe18csp4139567rwb; Mon, 31 Jul 2023 01:54:37 -0700 (PDT) X-Google-Smtp-Source: APBJJlHwJp62O03j3dKJ8rlfjWFc4J1p40f7IO50LyGcggGL/f7TkyPIMqCSktz/zGV5zVVJjL/u X-Received: by 2002:a17:90b:1114:b0:268:4142:2ee1 with SMTP id gi20-20020a17090b111400b0026841422ee1mr8465338pjb.11.1690793677560; Mon, 31 Jul 2023 01:54:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690793677; cv=none; d=google.com; s=arc-20160816; b=GdFspPrVh9SuOGzROdv9651XT7r+2/3Vm78azBJwsN7FLknPu4FgM0N6b7Z6bJpgcc X6Ac50iuGjkGmIVt9KME6cIFCueVr5MSckLbpxy4eMmVOl++h0poHmudB8tOx6KEcXfJ V6x+WnPIsv1Nlv+FLjd5HmeSNFVQo0HJweQvrz9Mr+dBVNQzY+HJDWXvKJECu52oSAa8 p3OM+o9hxYNPv0xXVFUs1bY3czdngtxDUgIwB4VIyBS10lXEwNiHAKDaM2jyxamMEr9X OzBS6GDmq3JsC5uMYwCz4yzs5hgsqITJGXwaUIdjypwan1xS8w/NrSdrfm/XceK8Xp5k 4gUg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=EOe+l+7kjl+7rypw1+iLV+opzi+FSFKtYOJlcbNHKRQ=; fh=mtdQ59qYqATJb4gPphme4tGaDwiPyxQYR7F/rZgivog=; b=IeKYH9RROCwlWyjUsoCQqS+U0DLNIf/bueDo0Ly9yReVX4N9YyOoPi4QB/AMm/PdD+ s0CK5p+XAZxe8OWJCkUSAAsSZl1djnqkEZeExgQBr49olZ/7Wwd5AGcsTgmD3S8t+oOJ f+J3+56dy8Tomj/7xUaVWsoShldkHCKxSLpA75nT1/RKihi49SbAUmIXokJGTFyvUPtj rLRuk07Hvm84t4cvYNoFlK1qLptfCbjEQQX2tjIhSsN55iHAnu0WoF/E1XkvEQPrQ51Z PmNTK8QDJvK2A3u0gYwFmnUydHLhlZqygKgFeAQHoGZxhLN4PCk4WRFQSE4x2iDl5i0o +Krw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=QAJG2As5; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=lunn.ch Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id n4-20020a170902e54400b001b9e9fa3a38si1690176plf.646.2023.07.31.01.54.26; Mon, 31 Jul 2023 01:54:37 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=QAJG2As5; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=lunn.ch Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231749AbjGaIWk (ORCPT + 99 others); Mon, 31 Jul 2023 04:22:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39286 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231418AbjGaIVq (ORCPT ); Mon, 31 Jul 2023 04:21:46 -0400 Received: from vps0.lunn.ch (vps0.lunn.ch [156.67.10.101]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F3272E41; Mon, 31 Jul 2023 01:21:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lunn.ch; s=20171124; h=In-Reply-To:Content-Disposition:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:From:Sender:Reply-To:Subject: Date:Message-ID:To:Cc:MIME-Version:Content-Type:Content-Transfer-Encoding: Content-ID:Content-Description:Content-Disposition:In-Reply-To:References; bh=EOe+l+7kjl+7rypw1+iLV+opzi+FSFKtYOJlcbNHKRQ=; b=QAJG2As5EfODtDmGp3YKLSIopz nuJjYbHe9Q2SMWsr3P+MfH4u1IH7UPQWj/Q5A6irrs1KijE3KLbbaWhVSA2C6ygK8X2an3lb86lFG dyInNHpSaJ8C1Kqu/8IUxktL461Jn6CW4uWDxMVqi1+mcChjiSxZI0zjxQeDJ/RMSSqY=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1qQO9j-002hJV-PT; Mon, 31 Jul 2023 10:21:31 +0200 Date: Mon, 31 Jul 2023 10:21:31 +0200 From: Andrew Lunn To: Bjorn Andersson Cc: Bjorn Andersson , Konrad Dybcio , Chris Lew , Alex Elder , "David S. Miller" , Jakub Kicinski , Mathieu Poirier , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-remoteproc@vger.kernel.org Subject: Re: [PATCH 2/4] soc: qcom: aoss: Add debugfs interface for sending messages Message-ID: <21dfb855-8f44-4a4c-9dba-52eb5ae46b9b@lunn.ch> References: <20230731041013.2950307-1-quic_bjorande@quicinc.com> <20230731041013.2950307-3-quic_bjorande@quicinc.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230731041013.2950307-3-quic_bjorande@quicinc.com> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_PASS,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Jul 30, 2023 at 09:10:11PM -0700, Bjorn Andersson wrote: > From: Chris Lew > > In addition to the normal runtime commands, the Always On Processor > (AOP) provides a number of debug commands which can be used during > system debugging for things such as preventing power collapse or placing > floor votes for certain resources. Some of these are documented in the > Robotics RB5 "Debug AOP ADB" linked below. > > Provide a debugfs interface for the developer/tester to send these > commands to the AOP. This sort of sending arbitrary binary blob commands is not liked, since it allow user space closed source drivers. At minimum, please provide a file per command, with the kernel marshalling parameters into the binary format, and decoding any returned values. Andrew