From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 219BBC3DA4A for ; Mon, 19 Aug 2024 08:33:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: Content-Type:In-Reply-To:From:References:CC:To:Subject:MIME-Version:Date: Message-ID:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=7iEMJxVgqEWFaX/As9NKzd3hIp1ICaM4bk9aNoBrD80=; b=078ERMO1pMonfZtQg2TyYdyTH0 DRL5y9XdbXIM0PScahLplkLbvqfbPV1A0FLno2840LyK4oTkxN1AUxKfVvPVpxiWBnnhgCS7Rm42J bxYRt4eX7JTxGp+gGE+Cw47XLqKfB8aGNhGFMxlQdh9VewXlakNTTee4Vk05mXBcxgzmAOgdGfVN9 6aFSRTVmcrXJVJEYLmWhA6XRNJEBv70KRnXGJBeMARS6/+CVfb3BSSiD/8hdZf43Vl2VlYhU5LXDn +mjMXJj7a9I4Mju1hG5IgXqKdVsRGicEu4q45uGj04NhIIuHpBX2s2MXt3InO2nKg/RRrJImdOwX6 9LSw8U7w==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sfxpN-00000000mmW-0M2O; Mon, 19 Aug 2024 08:33:25 +0000 Received: from fllv0016.ext.ti.com ([198.47.19.142]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sfxoh-00000000mfk-1JDr for linux-arm-kernel@lists.infradead.org; Mon, 19 Aug 2024 08:32:45 +0000 Received: from fllv0034.itg.ti.com ([10.64.40.246]) by fllv0016.ext.ti.com (8.15.2/8.15.2) with ESMTP id 47J8WbTS085474; Mon, 19 Aug 2024 03:32:37 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1724056357; bh=7iEMJxVgqEWFaX/As9NKzd3hIp1ICaM4bk9aNoBrD80=; h=Date:Subject:To:CC:References:From:In-Reply-To; b=Qheoh0jrH1RmQ5TvN9yRyarDXGOlMZrkvrDZyA09M/Pf9X1MbiIKWrSIwioRbHNfb gFT/rr5WPiLwiBtvsWiNjd1QagmjtQ8I0e8HHmns1L/ofKTgtRZnBI3I7Gu+BeVQCg KSW0Go6u3MjfAHK7yl10XpdJpGivPIVTja/d7qGs= Received: from DLEE105.ent.ti.com (dlee105.ent.ti.com [157.170.170.35]) by fllv0034.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 47J8WbVa039098 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Mon, 19 Aug 2024 03:32:37 -0500 Received: from DLEE113.ent.ti.com (157.170.170.24) by DLEE105.ent.ti.com (157.170.170.35) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23; Mon, 19 Aug 2024 03:32:36 -0500 Received: from lelvsmtp6.itg.ti.com (10.180.75.249) by DLEE113.ent.ti.com (157.170.170.24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23 via Frontend Transport; Mon, 19 Aug 2024 03:32:36 -0500 Received: from [172.24.227.94] (uda0132425.dhcp.ti.com [172.24.227.94]) by lelvsmtp6.itg.ti.com (8.15.2/8.15.2) with ESMTP id 47J8WWjI119145; Mon, 19 Aug 2024 03:32:32 -0500 Message-ID: Date: Mon, 19 Aug 2024 14:02:31 +0530 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v11 3/9] remoteproc: k3-m4: Add a remoteproc driver for M4F subsystem To: Mathieu Poirier , Andrew Davis CC: Bjorn Andersson , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Nishanth Menon , Tero Kristo , Philipp Zabel , Hari Nagalla , , , , References: <20240802152109.137243-1-afd@ti.com> <20240802152109.137243-4-afd@ti.com> Content-Language: en-US From: Vignesh Raghavendra In-Reply-To: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240819_013243_578259_D42DE5FE X-CRM114-Status: GOOD ( 14.81 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org [...] Hi Mathieu On 16/08/24 20:06, Mathieu Poirier wrote: >>> +/* >>> + * Attach to a running M4 remote processor (IPC-only mode) >>> + * >>> + * The remote processor is already booted, so there is no need to issue any >>> + * TI-SCI commands to boot the M4 core. This callback is used only in IPC-only >>> + * mode. >>> + */ >>> +static int k3_m4_rproc_attach(struct rproc *rproc) >>> +{ >>> + struct k3_m4_rproc *kproc = rproc->priv; >>> + int ret; >>> + >>> + ret = k3_m4_rproc_ping_mbox(kproc); >>> + if (ret) >>> + return ret; >>> + >>> + return 0; >>> +} >>> + >>> +/* >>> + * Detach from a running M4 remote processor (IPC-only mode) >>> + * >>> + * This rproc detach callback performs the opposite operation to attach >>> + * callback, the M4 core is not stopped and will be left to continue to >>> + * run its booted firmware. This callback is invoked only in IPC-only mode. >>> + */ >>> +static int k3_m4_rproc_detach(struct rproc *rproc) >>> +{ >>> + return 0; >>> +} >> Please remove. > Forget this comment since it would cause an error in __rproc_detach(). > >> Other than the above I'm good with this driver. That said I can't move forward >> without a nod from the DT crew. I also noticed a fair amount of code >> duplication with the k3_r5 and k3_dsp drivers. Dealing with that should not be >> part of the current work but will need to be done before another k3 driver can >> be merged. >> > The above still apply though. Me or Nishanth will pick up the SoC DT patches via TI SoC tree, once the driver patches are merged. Feel free to ignore those but queue dt-bindings (already has DT maintainers ack) and driver patches via rproc tree. -- Regards Vignesh