From patchwork Tue Mar 10 21:05:52 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Suman Anna X-Patchwork-Id: 1252423 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=85.214.62.61; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dmarc=pass (p=quarantine dis=none) header.from=ti.com Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=ti.com header.i=@ti.com header.a=rsa-sha256 header.s=ti-com-17Q1 header.b=ytqVzBgT; dkim-atps=neutral Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 48cSM102yMz9sPJ for ; Wed, 11 Mar 2020 08:06:25 +1100 (AEDT) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id EA857812DC; Tue, 10 Mar 2020 22:06:11 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=quarantine dis=none) header.from=ti.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=ti.com header.i=@ti.com header.b="ytqVzBgT"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id F0E518133A; Tue, 10 Mar 2020 22:06:08 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,SPF_HELO_NONE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.2 Received: from fllv0016.ext.ti.com (fllv0016.ext.ti.com [198.47.19.142]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id C38A8812D3 for ; Tue, 10 Mar 2020 22:06:02 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=quarantine dis=none) header.from=ti.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=s-anna@ti.com Received: from fllv0034.itg.ti.com ([10.64.40.246]) by fllv0016.ext.ti.com (8.15.2/8.15.2) with ESMTP id 02AL60Ef102285; Tue, 10 Mar 2020 16:06:00 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1583874360; bh=JioMWWBi5BSjAlseBY5eu4fwTuKNYSyVQEMmERkZcv0=; h=From:To:CC:Subject:Date; b=ytqVzBgTFgQ/lsmERJyVEIGqPOx2vPoqK22e/OATvzfRija7Ozb94TqqFJ0Lopjwq WOLRr1HaEYD9N+nBYhKRF7RNUHKT2E8xiuFRSbd5dljjnQ6DznGFMA11mbutI1ixNJ 51N1GX7GO37IqVpu5dsy2A1Aoddqdkw4F7gOR4jE= 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 02AL606b006135 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Tue, 10 Mar 2020 16:06:00 -0500 Received: from DLEE114.ent.ti.com (157.170.170.25) 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.1847.3; Tue, 10 Mar 2020 16:05:59 -0500 Received: from lelv0327.itg.ti.com (10.180.67.183) by DLEE114.ent.ti.com (157.170.170.25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1847.3 via Frontend Transport; Tue, 10 Mar 2020 16:05:59 -0500 Received: from fllv0103.dal.design.ti.com (fllv0103.dal.design.ti.com [10.247.120.73]) by lelv0327.itg.ti.com (8.15.2/8.15.2) with ESMTP id 02AL5xxB101965; Tue, 10 Mar 2020 16:05:59 -0500 Received: from localhost (irmo.dhcp.ti.com [128.247.81.254]) by fllv0103.dal.design.ti.com (8.14.7/8.14.7) with ESMTP id 02AL5xVW117134; Tue, 10 Mar 2020 16:05:59 -0500 From: Suman Anna To: Lokesh Vutla CC: Tom Rini , , Suman Anna Subject: [PATCH 0/4] TI K3 DSP remoteproc fixes/enhancements Date: Tue, 10 Mar 2020 16:05:52 -0500 Message-ID: <20200310210556.9053-1-s-anna@ti.com> X-Mailer: git-send-email 2.23.0 MIME-Version: 1.0 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.30rc1 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.102.2 at phobos.denx.de X-Virus-Status: Clean Hi All, The following series updates the K3 DSP remoteproc driver to fix couple of issues, and add the internal memory loading support on C66x DSPs. Patches are on top of latest master branch. Following is the patch summary: - Patch 1 fixes a minor issue with the existing driver - Patch 2 is a minor improvement to sanity check the boot addresses used with the DSPs within the U-Boot driver code itself. - Patches 3 and 4 enhance the driver to support internal memory loading support by re-ordering the reset sequences. Patch 3 updates the MMU tables, without which the memcpy results in a data abort, and patch 4 adds the logic to the driver. regards Suman Suman Anna (4): remoteproc: k3-dsp: Fix unbalanced state machine in k3_dsp_start remoteproc: k3-dsp: Add a sanity check for DSP boot address alignment armv8: K3: j721e: Add DSP internal memory regions in MMU table remoteproc: k3-dsp: Add support for L2RAM loading on C66x DSPs arch/arm/mach-k3/arm64-mmu.c | 8 +- drivers/remoteproc/ti_k3_dsp_rproc.c | 128 ++++++++++++++++++++++++--- 2 files changed, 122 insertions(+), 14 deletions(-)