Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753939AbdFSHbQ (ORCPT ); Mon, 19 Jun 2017 03:31:16 -0400 Received: from metis.ext.4.pengutronix.de ([92.198.50.35]:55489 "EHLO metis.ext.4.pengutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751089AbdFSHbO (ORCPT ); Mon, 19 Jun 2017 03:31:14 -0400 Subject: Re: [RFC PATCH 0/3] provide imx rproc driver To: Sanchayan , Oleksij Rempel References: <20170614204855.18347-1-o.rempel@pengutronix.de> <20170619051338.GA3064@Sanchayan-Arch> Cc: devicetree@vger.kernel.org, kernel@pengutronix.de, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Rob Herring , Mark Rutland , Russell King , Shawn Guo , Fabio Estevam , Ohad Ben-Cohen , Bjorn Andersson , linux-remoteproc@vger.kernel.org From: Oleksij Rempel Message-ID: <544aa538-b9b6-1ed5-ffea-919fa4ebd644@pengutronix.de> Date: Mon, 19 Jun 2017 09:31:03 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 MIME-Version: 1.0 In-Reply-To: <20170619051338.GA3064@Sanchayan-Arch> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-SA-Exim-Connect-IP: 2001:67c:670:100:3ad5:47ff:feaf:13da X-SA-Exim-Mail-From: ore@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1722 Lines: 53 Hi Sanchayan, On 19.06.2017 07:13, Sanchayan wrote: > Hello Oleksij, > > On 17-06-14 22:48:52, Oleksij Rempel wrote: >> Hallo all, >> >> this is RFC patchset to provide remoteproc functionality on >> imx7d SoC. >> Since current kernel do not have devicetrees for board which >> I used for testing, this RFC patchset includes this too. >> >> For testing I used this simple counter written in ASM: >> ====================================== >> .syntax unified >> .text >> .thumb >> .int 0x10020000 @ Initial SP value >> .int reset + 1 >> >> reset: >> >> mov r0, #0x55 >> ldr r1, =(0x40) >> 1: >> str r0, [r1] >> add r0, 1 >> b 1b >> >> /* Dummy data, required by remoteproc loader */ >> /* Please FIXME, this part seem to be incorrect */ >> .data >> .section .resource_table, "aw" >> .word 1, 0, 0, 0 /* struct resource_table base */ >> .word 0 /* uint32_t offset[1] */ >> ============================================================ >> compiled with: >> ${CROSS}as -o imx7m4.o imx7m4.S >> ${CROSS}ld -Ttext=0x0 -o imx7m4.elf imx7m4.o >> cp imx7m4.elf /srv/nfs/sid-armhf/lib/firmware/rproc-imx_rproc-fw >> >> Functionality was confirmed with current OpenOCD master. >> OpenOCD cfg file can be found here: >> https://github.com/olerem/openocd/blob/imx7-2017.06.14/tcl/target/imx7.cfg >> >> Comment and suggestions are welcome. > > Have you by chance also tried testing this with FreeRTOS code running on the > M4 side? no, currently my priority is to provide basic functionality with easy understandable target code and dependencies.