Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp3698290pxv; Mon, 26 Jul 2021 09:39:35 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxdt7J5iVwpEErAq2xAmlx04ka2ka3fM96s1O9yBpXV0MyJO/thfOWH8pCnHmu2p162k4v/ X-Received: by 2002:a92:2010:: with SMTP id j16mr13502444ile.98.1627317575390; Mon, 26 Jul 2021 09:39:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1627317575; cv=none; d=google.com; s=arc-20160816; b=nZY51/w+CsPvIkFJ8s4iQvIfJ/qQQJ03aLYRp6Nc1039acRiz4rgewHrcRpkIg23Uk R3bD3C1edXLczSQ/c4CMx7Z/fqAS0kTUj7KFIlggcIIlgRA5lg/U3KxfvDdyFU+Jf3HD tEThi6ogYsbclUwoeKhZ82dXVxQohxsA7R7o+cUxi424yj5DSdRw3npm0edRlR8w/wFP IcXiFp+kdKTis7x9EbhQqsM73uvYVl3s38KCcQsqelp8SxEchiBrXX8WuZVVWCM7rX8O qWMMx9Y58nIC1fqrAg2TavLaQGTYdEmx69cgTQPuLoIusH6QBqbf26vtK5MKvD4WeZgg eR7g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=WtUArQuv8CsBA1Qj+vhrmvBRh3ZVBqE+J2O75XToP5I=; b=w1L+p4G4fDi90Mte5FGDQfnQGwL7c7l5Fz/GUfm7HEUTjGl3wdwTEALdTrLz9NrskK HveHxWeKG1KsVkefGENR5U6EN3x6VXCtSeU0QL4Qusa+rYFLugUnfnwwlKD/DLvZ7O0P tfE0oX9vlHGuyQCl8altl8lpvgzTvLFOSqo1tD8pg3xhLQSy2M7r7QswoZUxF8aoqz2R v2aYBzlW8papklWrKvH11+CvUsrQdZ19EyNl3QkRHqrfZ8q28+AAWac1+A9EpHG6AtP1 iC2JlD838gEMB8Af6etcWg57LYmWqFNbl7XletoKR04DPkZkFUYvgfNZnJ0oQSPRbTgT oCHA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=NvqEDT0S; 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 i1si332418ils.142.2021.07.26.09.39.24; Mon, 26 Jul 2021 09:39:35 -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=NvqEDT0S; 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 S239823AbhGZP6Q (ORCPT + 99 others); Mon, 26 Jul 2021 11:58:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56794 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231362AbhGZPsl (ORCPT ); Mon, 26 Jul 2021 11:48:41 -0400 Received: from mail-il1-x134.google.com (mail-il1-x134.google.com [IPv6:2607:f8b0:4864:20::134]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D3EDDC061760 for ; Mon, 26 Jul 2021 09:29:08 -0700 (PDT) Received: by mail-il1-x134.google.com with SMTP id a14so9553032ila.1 for ; Mon, 26 Jul 2021 09:29:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=WtUArQuv8CsBA1Qj+vhrmvBRh3ZVBqE+J2O75XToP5I=; b=NvqEDT0SXLhG9MlJik2c0jDD+EwyH7OZixKlqLjLfStoK2bf0aOpqEAIy9nZqUF35b buTN8/lsYHnYGdGNXUezbKINt6VeVKhVWBMelWnzywkouPmnEIMoHyaJmPhObVP0emiV R/aX9BxpmGG4fyNnBvwA+QhN5bh7DvpQgMBpS95y1EBuuGbgyPgXE1t/JtYjYxL/SEyE Fr8fxya9InbqoH2+z+kbcNh3wwmCD6Vl4HN71n7x9UFBc4B5MG/xbAO8uDhl0HzzpATj bA8/GYo0C9WRjjwp3YnPzGr7oU1ZX9WpXR4e+dHbIhcahHCqzd06nXbkUZqGkBHU4IHq ZF0Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=WtUArQuv8CsBA1Qj+vhrmvBRh3ZVBqE+J2O75XToP5I=; b=UHGyBsI5DhnVScZOZ4oqNNhu4RaTdRxtK0d/KxUF22x5p+sXeBKUnnx+OTFMpHyVWl YBCYhU6BQnh5dpmuF7ENNB3Gq1ldLdt+DXoDuHNSrAFYEx8iKXmrRMUzV86egnRRcZtw VdIaGI8fbsEgUxjjyM3b5QkF3rMoKiaySqsIIzZJlVWmWUXeK4YVOqMKdB4LBdRkj79T Q3yFbjVR43NFxeUMfWOdUUbjmz2qtCz56/wrEHBsXZchAp5NpB/O7fMSH1sqHV/CLW0z Z6WY1Uvb3Ls3ahMQfoQBu00RGyZlj/tNR6GAx7mEZz6DBTe7owQ88kmGEpeq6FL6WRqx m/aA== X-Gm-Message-State: AOAM531oxU3+w4QF45dUBxqIr1gkfUVSjXazhYfLdY2MtcgLdRuVhzxl v8rxTNh+/4QYMr/msZN4DuttS0/zYzLlbvF6DIsZ4Q== X-Received: by 2002:a05:6e02:d93:: with SMTP id i19mr13196637ilj.72.1627316948168; Mon, 26 Jul 2021 09:29:08 -0700 (PDT) MIME-Version: 1.0 References: <20210723220248.6554-1-s-anna@ti.com> In-Reply-To: <20210723220248.6554-1-s-anna@ti.com> From: Mathieu Poirier Date: Mon, 26 Jul 2021 10:28:56 -0600 Message-ID: Subject: Re: [PATCH v2 0/5] K3 R5F & DSP IPC-only mode support To: Suman Anna Cc: Bjorn Andersson , Lokesh Vutla , Praneeth Bajjuri , Hari Nagalla , linux-remoteproc , linux-arm-kernel , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Suman, I have added your patchset to my review list. Unfortunately due to an impressive backlog and upcoming vacation won't be able provide feedback for a few weeks. Thanks, Mathieu On Fri, 23 Jul 2021 at 16:03, Suman Anna wrote: > > Hi All, > > The following is a revised version of the series that adds the IPC-only > mode support for the TI K3 R5F and DSP (C66x and C71x) remoteprocs > covering AM65x, J721E, J7200 and AM64x SoCs. Patches are on top of > 5.14-rc1 (the other dependent patches from v1 made it into 5.14-rc1). > > Please see the v1 cover-letter [1] for the design details of the > 'IPC-only' mode functionality. > > The following are the main changes from v1, please see the individual > patches for the exact deltas: > - The first patch in v1 "remoteproc: Introduce rproc_detach_device() > wrapper" is dropped > - Removed the addition of the rproc state flag 'detach_on_shutdown' > and the 'ipc-only' state flag in each of the remoteproc drivers > - IPC-only mode and remoteproc mode are supported by registering only > the appropriate rproc ops. > > The following is a summary of patches in v2: > - Patch 1 enhances the remoteproc core to restrict stop on early-booted > remoteprocs. > - Patches 2 and 4 refactor the mailbox request code out of start > in the K3 R5F and DSP remoteproc drivers for reuse in the new attach > callbacks. > - Patch 3 adds the IPC-only mode support for R5F. > - Patch 5 adds the IPC-only mode support for both K3 C66x and C71x > DSPs. > > I have re-verified the different combinations on J721E, J7200 and AM65x > SoCs. AM64x currently lacks early-boot support, but the logic is ready > for Single-CPU and Split modes that are specific to AM64x SoCs. > > regards > Suman > > [1] https://patchwork.kernel.org/project/linux-remoteproc/cover/20210522000309.26134-1-s-anna@ti.com/ > > Suman Anna (5): > remoteproc: Add support for detach-only during shutdown > remoteproc: k3-r5: Refactor mbox request code in start > remoteproc: k3-r5: Add support for IPC-only mode for all R5Fs > remoteproc: k3-dsp: Refactor mbox request code in start > remoteproc: k3-dsp: Add support for IPC-only mode for all K3 DSPs > > drivers/remoteproc/remoteproc_cdev.c | 7 + > drivers/remoteproc/remoteproc_core.c | 5 +- > drivers/remoteproc/remoteproc_sysfs.c | 6 + > drivers/remoteproc/ti_k3_dsp_remoteproc.c | 197 ++++++++++++---- > drivers/remoteproc/ti_k3_r5_remoteproc.c | 265 +++++++++++++++++++--- > 5 files changed, 407 insertions(+), 73 deletions(-) > > -- > 2.32.0 >