Received: by 2002:a5d:9c59:0:0:0:0:0 with SMTP id 25csp1804572iof; Tue, 7 Jun 2022 11:36:48 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw97EYeX1jHkP4iCUAh64XArvdZBLjj1FqvzY10b+QXA6ZcA2bMxXpL9qbb49CVPITXhhUI X-Received: by 2002:a17:906:c154:b0:711:ce44:a0a0 with SMTP id dp20-20020a170906c15400b00711ce44a0a0mr12115022ejc.420.1654626505863; Tue, 07 Jun 2022 11:28:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654626505; cv=none; d=google.com; s=arc-20160816; b=q8raMIgzbP/zwkzJ8NPfATNwjgghtJhl1Om/pjwobl/hd+Tq2AAXsseKEBab274eFa ycoF1IRETnv48YszvoEFY+l+pwpuPGXZocMWzZF7Q6/en33yV4F3w/z8Dj/XUJx3MhTx Tjyj8h9YH+l67h+B3RmcpBjspbhiYGSR7jMxmrbFAhet0M2LRN3GUlTNx/yO0W+kELq1 aI67KNaik8wZXz7nDtC6JY2jCAceyye3/jtZRqfOUgv061DS2DSilncur7nMpbbpzCFk bQcEMVhjhzXti+snexN4/oGXE57VGkeH7UB63OuyXyY4dw68+D9/NHv1tzZefW9gIpiD Hk7w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent:message-id:in-reply-to :date:references:subject:cc:to:from; bh=mDQDEBDGT4u+GxBKZM2DM7LDOSqm9pivaFPsrzrsGHM=; b=Lj6U5zfu06WScWZRjY9C6koil3QjSaMhqrvicP+vMfHWpueimH8usSWcA6Ypo7wWd9 C/GRYQYSJFdCqoyx9IxCdq+CXZQQV9SbHQ1iQpISMM221HKcpt7EJbeSe9xJXP9zi6gX VU7j2UDWaDZMMBP0hshlflVWmcZoKpN4lnYII13N8pejnULGmZ/5q1ICgWRWZPUpRCAt w5EBaQki0NLVGJfIZ6Hoe3P4Lq+ywadz6s++ya2/HmS8q1mMHSPEvKxknvQ4eQwwxps7 tFt4Nc5JNpkl20hTL5yUFjbcLlK3k2y8Jlc8ubsCejPrJErrOGW+5lfl7vnb1fo7TR+I CbjQ== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id by6-20020a0564021b0600b0042df8161c98si457882edb.244.2022.06.07.11.27.56; Tue, 07 Jun 2022 11:28:25 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S244820AbiFGNgE (ORCPT + 99 others); Tue, 7 Jun 2022 09:36:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51744 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244804AbiFGNgA (ORCPT ); Tue, 7 Jun 2022 09:36:00 -0400 Received: from relay2-d.mail.gandi.net (relay2-d.mail.gandi.net [217.70.183.194]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C4988C6847; Tue, 7 Jun 2022 06:35:57 -0700 (PDT) Received: (Authenticated sender: peter@korsgaard.com) by mail.gandi.net (Postfix) with ESMTPSA id 9D8144000A; Tue, 7 Jun 2022 13:35:54 +0000 (UTC) Received: from peko by dell.be.48ers.dk with local (Exim 4.94.2) (envelope-from ) id 1nyYrp-00058v-Gr; Tue, 07 Jun 2022 15:03:29 +0200 From: Peter Korsgaard To: Tanmay Shah Cc: , , , , , , , , , , Subject: Re: [PATCH v8 6/6] drivers: remoteproc: Add Xilinx r5 remoteproc driver References: <20220602203834.3675160-1-tanmay.shah@xilinx.com> <20220602203834.3675160-7-tanmay.shah@xilinx.com> Date: Tue, 07 Jun 2022 15:03:29 +0200 In-Reply-To: <20220602203834.3675160-7-tanmay.shah@xilinx.com> (Tanmay Shah's message of "Thu, 2 Jun 2022 13:38:34 -0700") Message-ID: <87pmjkwrq6.fsf@dell.be.48ers.dk> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,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 >>>>> "Tanmay" == Tanmay Shah writes: Hi, > This driver enables r5f dual core Real time Processing Unit subsystem > available on Xilinx Zynq Ultrascale MPSoC Platform. RPU subsystem > (cluster) can be configured in different modes e.g. split mode in which > two r5f cores work independent of each other and lock-step mode in which > both r5f cores execute same code clock-for-clock and notify if the > result is different. > The Xilinx r5 Remoteproc Driver boots the RPU cores via calls to the Xilinx > Platform Management Unit that handles the R5 configuration, memory access > and R5 lifecycle management. The interface to this manager is done in this > driver via zynqmp_pm_* function calls. > Signed-off-by: Ben Levinsky > Signed-off-by: Tanmay Shah > + * zynqmp_r5_set_mode - set RPU operation mode > + * > + * set RPU operation mode > + * > + * Return: 0 for success, negative value for failure > + */ > +static int zynqmp_r5_set_mode(struct zynqmp_r5_core *r5_core, > + enum rpu_oper_mode fw_reg_val, > + enum rpu_tcm_comb tcm_mode) > +{ NIT: That is an odd name for the lockstep/split argument. Why do you need to specify both R5F mode and TCM configuration, isn't the TCM mode implied by the R5F mode? -- Bye, Peter Korsgaard