Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp1697038pxv; Fri, 23 Jul 2021 15:04:45 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx1OPqRUiPzRvGUjZmp3zbrzfKyEaUvH+rGFqXelFd0nn3DDFHoeXRIkJK0oyVxNdH9O/iO X-Received: by 2002:a05:6e02:12a4:: with SMTP id f4mr4803838ilr.102.1627077885237; Fri, 23 Jul 2021 15:04:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1627077885; cv=none; d=google.com; s=arc-20160816; b=Eqcyf+uJqYJX6RIIoLN5g0DWWiObBYUrUld4PZ/3ucDooMag9bPhk9HvuJcLoMkUGz i1jsJDHcQ/hsOwLToBRtLP6pR8GrWnBn+jQwi5r/OjCLEio/ZLDjpvKV0S+6KtT7flHC EWqvW6T6WcMJalrBwS9MTpZlivbZzKxBUXwUSuyDcdovOqcmQixOAwsZ0J1Cxd0m2g5Y S67nBCFTrxxR4Xwe3bYwQunTphsTgjwQhNBLLR0x+tPOWHoABFF3EoOE1O/+uE5MEfzE kIu05XO/2gOqx6j9Vbkd/CpXB1Snm9rhCwKZivKnOINigeKhvugOizi4bj18r8yA4bKJ UYxA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=FF7s9FeiE7UAehlY5MJJ2DICyJ0WdcLF7kuc1bEetJ4=; b=CXKVvxb2YKoCCqL0OhqhaqX4U+oaxYv6tXC+k/I6c5601HavkA9Q95ap8G3eBCYjA1 Skqpz8AgoBus+oOPfC9boC6TnoO628nHd3cv9m/+SMCM2QsYTnSfY2K1KiM/4DJ8dGI1 3pTNHDUL+wIlDjRrQOX30eQbBj8l3WeKImrTOldrw6YUK/AP+2NT0QJ4/N3gdSYu0mHv vrrfP7liyWrQXLeYlomZ5C9j/t0KTjct+nnZMwYMvhtNcABpz5WY2E6oRrAJDYL12mGJ POYsn3E1G9mK0nrCzrEVEv9sBppo8Mi2ZbDuK2p/mE+J3oh63y+08idYk0oy9qZ4Qbtd 0fEg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b="U/iVnaYI"; 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=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id r9si26253456jap.26.2021.07.23.15.04.34; Fri, 23 Jul 2021 15:04:45 -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=@ti.com header.s=ti-com-17Q1 header.b="U/iVnaYI"; 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=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232630AbhGWVWk (ORCPT + 99 others); Fri, 23 Jul 2021 17:22:40 -0400 Received: from fllv0016.ext.ti.com ([198.47.19.142]:46638 "EHLO fllv0016.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231742AbhGWVWk (ORCPT ); Fri, 23 Jul 2021 17:22:40 -0400 Received: from fllv0034.itg.ti.com ([10.64.40.246]) by fllv0016.ext.ti.com (8.15.2/8.15.2) with ESMTP id 16NM3AI8056748; Fri, 23 Jul 2021 17:03:10 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1627077790; bh=FF7s9FeiE7UAehlY5MJJ2DICyJ0WdcLF7kuc1bEetJ4=; h=From:To:CC:Subject:Date; b=U/iVnaYIupEZXqALOBvGHTA04H+1+tr9ZUDwZ36pi5d9IbjmdiE/EBXGePHk6dfkh pqSkAYucHyOPbz+ZGVHo7RIdo95vjanDRm2/0sdunca3Hg1/KzbXzDWrlcoKsmnCTk O5qnqgrEGt5twIqIpDEg9OVouy/NguhbNIXQnoKk= Received: from DLEE104.ent.ti.com (dlee104.ent.ti.com [157.170.170.34]) by fllv0034.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 16NM3AOk106128 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Fri, 23 Jul 2021 17:03:10 -0500 Received: from DLEE112.ent.ti.com (157.170.170.23) by DLEE104.ent.ti.com (157.170.170.34) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2176.2; Fri, 23 Jul 2021 17:02:50 -0500 Received: from lelv0326.itg.ti.com (10.180.67.84) by DLEE112.ent.ti.com (157.170.170.23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2176.2 via Frontend Transport; Fri, 23 Jul 2021 17:02:49 -0500 Received: from fllv0103.dal.design.ti.com (fllv0103.dal.design.ti.com [10.247.120.73]) by lelv0326.itg.ti.com (8.15.2/8.15.2) with ESMTP id 16NM2nhY001427; Fri, 23 Jul 2021 17:02:49 -0500 Received: from localhost ([10.250.38.176]) by fllv0103.dal.design.ti.com (8.14.7/8.14.7) with ESMTP id 16NM2n6G126725; Fri, 23 Jul 2021 17:02:49 -0500 From: Suman Anna To: Bjorn Andersson , Mathieu Poirier CC: Lokesh Vutla , Praneeth Bajjuri , Hari Nagalla , , , , Suman Anna Subject: [PATCH v2 0/5] K3 R5F & DSP IPC-only mode support Date: Fri, 23 Jul 2021 17:02:43 -0500 Message-ID: <20210723220248.6554-1-s-anna@ti.com> X-Mailer: git-send-email 2.32.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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