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 X-Spam-Level: X-Spam-Status: No, score=-15.7 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id C0111C4361A for ; Thu, 3 Dec 2020 18:54:16 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 4FD6C207AD for ; Thu, 3 Dec 2020 18:54:16 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728314AbgLCSyP (ORCPT ); Thu, 3 Dec 2020 13:54:15 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53060 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727156AbgLCSyP (ORCPT ); Thu, 3 Dec 2020 13:54:15 -0500 Received: from mail-pg1-x543.google.com (mail-pg1-x543.google.com [IPv6:2607:f8b0:4864:20::543]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 13B62C061A4E for ; Thu, 3 Dec 2020 10:53:35 -0800 (PST) Received: by mail-pg1-x543.google.com with SMTP id g18so1971433pgk.1 for ; Thu, 03 Dec 2020 10:53:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=EE5mMvmXrxXfB4VeSZLs7H6jR6pEvdX9Wrji0Qr5SPY=; b=YxGDh8Kyih68g640dh1sCWyrR96R29Pes5pSYET8gCr/BYmJ2n0Ul0U232/U/ZHvOZ T5/ymRdWa54KSSgyFjLr3gShxL3i4BmFXbonKFqW6yD3Qbd+PSTkO2Q0x68SXOL8i3C5 1JzNWr8XGWr8W8pz+ZZ2yzV7qyXnZ1V1vanh3dZb9ZAz02Ymae/971r7DnbW/Xfae6R/ /xBLexklnQEfz3SDZWdgtjJ+RzjkucE9To0SXRE+TRA5q9jZzoLwmf864VVemeeQEGxm s2/rS34GDB5z+R/fV9aczjw1lW7JMmyF2EZK5ioTzzIK2vwvwWQ+hrySnD4PTFRddNuJ qwjQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=EE5mMvmXrxXfB4VeSZLs7H6jR6pEvdX9Wrji0Qr5SPY=; b=HrvvrhmJEl/DUsAxrIkwUipBLI5i7OsanGZeegMGQX/gOw3k1A2rJ+g59kRjzeM+q5 WKFD7bP54CIE8F5zbtNWwoP3inU5qwiLWUW0iOH7z6yl52B8fp48phFQ2YPVE9Aqda26 OOI8B5m4Eiv3Tk+0l7lDFUfyV5gjEijgHiMCURC+FKk7++yWW0o0g9sMIaCAXWx82UYz C4beTNeg4wwdWzcC/lAiYBllZTslz3x6CTQrMGnM8WBFoIOGucKMnQInxNGAvu6E7o1d ujnwTCyuhjPnMlMYnBnbFunE7Xh6Yx3uWr1pmAwl4qvLQ+mAyw2oiYBlYaMu6vJwd1Ce P4/Q== X-Gm-Message-State: AOAM5335SGUB6TJsCP/rjBjdtJHpQ9x5cIQUNlly2ySpNs9SB8kvffIo BEXAIlaVMOCaTVSW+/H0tcsGGg== X-Google-Smtp-Source: ABdhPJx9xxTOoz62oEKCZ/qgOAVgYq/TOGPogPwYNJwQRwFa3NbTz668JDWHoyyAiOT3mH++W6cCOg== X-Received: by 2002:a63:e44:: with SMTP id 4mr4161760pgo.162.1607021614654; Thu, 03 Dec 2020 10:53:34 -0800 (PST) Received: from xps15 (S0106889e681aac74.cg.shawcable.net. [68.147.0.187]) by smtp.gmail.com with ESMTPSA id m77sm2513701pfd.105.2020.12.03.10.53.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 03 Dec 2020 10:53:34 -0800 (PST) Date: Thu, 3 Dec 2020 11:53:32 -0700 From: Mathieu Poirier To: Grzegorz Jaszczyk Cc: ohad@wizery.com, bjorn.andersson@linaro.org, s-anna@ti.com, linux-remoteproc@vger.kernel.org, robh+dt@kernel.org, lee.jones@linaro.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-omap@vger.kernel.org, linux-arm-kernel@lists.infradead.org, praneeth@ti.com, rogerq@ti.com Subject: Re: [PATCH v2 6/6] remoteproc/pru: Add support for various PRU cores on K3 J721E SoCs Message-ID: <20201203185332.GC1392978@xps15> References: <20201119140850.12268-1-grzegorz.jaszczyk@linaro.org> <20201119140850.12268-7-grzegorz.jaszczyk@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20201119140850.12268-7-grzegorz.jaszczyk@linaro.org> Precedence: bulk List-ID: X-Mailing-List: linux-remoteproc@vger.kernel.org On Thu, Nov 19, 2020 at 03:08:50PM +0100, Grzegorz Jaszczyk wrote: > From: Suman Anna > > The K3 J721E family of SoCs have a revised version of the AM65x ICSSG IP > and contains two instances of this newer ICSSG IP. Each ICSSG processor > subsystem contains 2 primary PRU cores, 2 auxiliary PRU cores called RTUs, > and 2 new auxiliary cores called Transmit PRUs (Tx_PRUs). > > Enhance the existing PRU remoteproc driver to support these new PRU > and RTU cores by using specific compatibles. The cores have the same > memory copying limitations as on AM65x, so reuses the custom memcpy > function within the driver's ELF loader implementation. The initial > names for the firmware images for each PRU core are retrieved from > DT nodes, and can be adjusted through sysfs if required. > > Signed-off-by: Suman Anna > Co-developed-by: Grzegorz Jaszczyk > Signed-off-by: Grzegorz Jaszczyk Reviewed-by: Mathieu Poirier > --- > drivers/remoteproc/pru_rproc.c | 3 +++ > 1 file changed, 3 insertions(+) > > diff --git a/drivers/remoteproc/pru_rproc.c b/drivers/remoteproc/pru_rproc.c > index 48c1c51e0d42..96f689283a8b 100644 > --- a/drivers/remoteproc/pru_rproc.c > +++ b/drivers/remoteproc/pru_rproc.c > @@ -852,6 +852,9 @@ static const struct of_device_id pru_rproc_match[] = { > { .compatible = "ti,am654-pru", .data = &k3_pru_data }, > { .compatible = "ti,am654-rtu", .data = &k3_rtu_data }, > { .compatible = "ti,am654-tx-pru", .data = &k3_tx_pru_data }, > + { .compatible = "ti,j721e-pru", .data = &k3_pru_data }, > + { .compatible = "ti,j721e-rtu", .data = &k3_rtu_data }, > + { .compatible = "ti,j721e-tx-pru", .data = &k3_tx_pru_data }, > {}, > }; > MODULE_DEVICE_TABLE(of, pru_rproc_match); > -- > 2.29.0 > 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 X-Spam-Level: X-Spam-Status: No, score=-15.2 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 96E85C433FE for ; Thu, 3 Dec 2020 18:54:50 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 26D1A207AD for ; Thu, 3 Dec 2020 18:54:50 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 26D1A207AD Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=linaro.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References:Message-ID: Subject:To:From:Date:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=lFpFN0ByAKv+ds0HRDEdrRIZVSQblkKlMxiBN1K9kL0=; b=oT29GkAKwc/l+hcYUWs5oKTKj ipFLt6qBfg1S39TB8OKPr1iEYp98JrWz6CO5FYLFzeZeIDCmC85eHm32Lnjxp3dbVsUA/qCp28JrF KsdpDfve5OUvlhCrMfB4JEAq1BEG25imY7sr+zlaR38AqXhKpYfVT3pPFIrWdZwZ+pxRCgR++T7I9 a4nJ4p8zrOgl2bOWDe9E0jirkhuYDcX3VFihr0FxSRoFHqzYd8wwTB103keZRb1NZwpzPiCAQtCqn pA+j9B/xGz4AMQolysSTN1zn51K9QPoq9xNLMa6M2gjjR2ZWOf6teEpIqSFwyfcmBGblOZUQa33jl t79jgs3OA==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kktjY-0005Kn-Kj; Thu, 03 Dec 2020 18:53:40 +0000 Received: from mail-pf1-x443.google.com ([2607:f8b0:4864:20::443]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kktjV-0005KC-AJ for linux-arm-kernel@lists.infradead.org; Thu, 03 Dec 2020 18:53:38 +0000 Received: by mail-pf1-x443.google.com with SMTP id x24so1900212pfn.6 for ; Thu, 03 Dec 2020 10:53:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=EE5mMvmXrxXfB4VeSZLs7H6jR6pEvdX9Wrji0Qr5SPY=; b=YxGDh8Kyih68g640dh1sCWyrR96R29Pes5pSYET8gCr/BYmJ2n0Ul0U232/U/ZHvOZ T5/ymRdWa54KSSgyFjLr3gShxL3i4BmFXbonKFqW6yD3Qbd+PSTkO2Q0x68SXOL8i3C5 1JzNWr8XGWr8W8pz+ZZ2yzV7qyXnZ1V1vanh3dZb9ZAz02Ymae/971r7DnbW/Xfae6R/ /xBLexklnQEfz3SDZWdgtjJ+RzjkucE9To0SXRE+TRA5q9jZzoLwmf864VVemeeQEGxm s2/rS34GDB5z+R/fV9aczjw1lW7JMmyF2EZK5ioTzzIK2vwvwWQ+hrySnD4PTFRddNuJ qwjQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=EE5mMvmXrxXfB4VeSZLs7H6jR6pEvdX9Wrji0Qr5SPY=; b=ey/Z76RVL+ylvQnW5GKNbGhMkMh/S7Pr8d/BL2y769A23sLblRCqBCy83x9e9eyO4c cAt5OzclmbEoIN71Sm7iv30kd13vPttmHobQqWcDCVOyj9oJEqxkYkqdfMSV0WTIom5h B8yU8FUS5mpQQD8mx+3oWPYKeI9KRSEwPuyKVEXalI0g5C7Jy0u3pY5gAR88R5sA30yt du+mXF/qEYBu3r4WQQlYx2lA/yd9GOI3jOi5WXMGgYwY2WLlgFTur3k/kCCMVVgJLfb6 uLAlw6DinANUQ8NdAihSmdOln4FMRMIV8B/MqPPGgFZbBZiB+kLhsddEZjtoulFn0bJq s4eA== X-Gm-Message-State: AOAM530/kBkcK0GZkG22JtU8WdbdUcHIZgv52lijWgR31QRlkZU6+8eD KgoZmsniwSIltlNx0Q3KDe/wOg== X-Google-Smtp-Source: ABdhPJx9xxTOoz62oEKCZ/qgOAVgYq/TOGPogPwYNJwQRwFa3NbTz668JDWHoyyAiOT3mH++W6cCOg== X-Received: by 2002:a63:e44:: with SMTP id 4mr4161760pgo.162.1607021614654; Thu, 03 Dec 2020 10:53:34 -0800 (PST) Received: from xps15 (S0106889e681aac74.cg.shawcable.net. [68.147.0.187]) by smtp.gmail.com with ESMTPSA id m77sm2513701pfd.105.2020.12.03.10.53.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 03 Dec 2020 10:53:34 -0800 (PST) Date: Thu, 3 Dec 2020 11:53:32 -0700 From: Mathieu Poirier To: Grzegorz Jaszczyk Subject: Re: [PATCH v2 6/6] remoteproc/pru: Add support for various PRU cores on K3 J721E SoCs Message-ID: <20201203185332.GC1392978@xps15> References: <20201119140850.12268-1-grzegorz.jaszczyk@linaro.org> <20201119140850.12268-7-grzegorz.jaszczyk@linaro.org> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20201119140850.12268-7-grzegorz.jaszczyk@linaro.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20201203_135337_646343_35D8085E X-CRM114-Status: GOOD ( 20.13 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: ohad@wizery.com, devicetree@vger.kernel.org, linux-omap@vger.kernel.org, praneeth@ti.com, linux-remoteproc@vger.kernel.org, linux-kernel@vger.kernel.org, bjorn.andersson@linaro.org, robh+dt@kernel.org, lee.jones@linaro.org, linux-arm-kernel@lists.infradead.org, rogerq@ti.com Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Thu, Nov 19, 2020 at 03:08:50PM +0100, Grzegorz Jaszczyk wrote: > From: Suman Anna > > The K3 J721E family of SoCs have a revised version of the AM65x ICSSG IP > and contains two instances of this newer ICSSG IP. Each ICSSG processor > subsystem contains 2 primary PRU cores, 2 auxiliary PRU cores called RTUs, > and 2 new auxiliary cores called Transmit PRUs (Tx_PRUs). > > Enhance the existing PRU remoteproc driver to support these new PRU > and RTU cores by using specific compatibles. The cores have the same > memory copying limitations as on AM65x, so reuses the custom memcpy > function within the driver's ELF loader implementation. The initial > names for the firmware images for each PRU core are retrieved from > DT nodes, and can be adjusted through sysfs if required. > > Signed-off-by: Suman Anna > Co-developed-by: Grzegorz Jaszczyk > Signed-off-by: Grzegorz Jaszczyk Reviewed-by: Mathieu Poirier > --- > drivers/remoteproc/pru_rproc.c | 3 +++ > 1 file changed, 3 insertions(+) > > diff --git a/drivers/remoteproc/pru_rproc.c b/drivers/remoteproc/pru_rproc.c > index 48c1c51e0d42..96f689283a8b 100644 > --- a/drivers/remoteproc/pru_rproc.c > +++ b/drivers/remoteproc/pru_rproc.c > @@ -852,6 +852,9 @@ static const struct of_device_id pru_rproc_match[] = { > { .compatible = "ti,am654-pru", .data = &k3_pru_data }, > { .compatible = "ti,am654-rtu", .data = &k3_rtu_data }, > { .compatible = "ti,am654-tx-pru", .data = &k3_tx_pru_data }, > + { .compatible = "ti,j721e-pru", .data = &k3_pru_data }, > + { .compatible = "ti,j721e-rtu", .data = &k3_rtu_data }, > + { .compatible = "ti,j721e-tx-pru", .data = &k3_tx_pru_data }, > {}, > }; > MODULE_DEVICE_TABLE(of, pru_rproc_match); > -- > 2.29.0 > _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel