Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp656068pxu; Thu, 7 Jan 2021 14:52:31 -0800 (PST) X-Google-Smtp-Source: ABdhPJxUELsvvpKwAVoq/lNN2FK6CI3zaZ37nKzCEFjxENRDQIpcKYTgBPIV7D8R29zpCX5Vv+BJ X-Received: by 2002:aa7:dc4b:: with SMTP id g11mr3353113edu.379.1610059951508; Thu, 07 Jan 2021 14:52:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610059951; cv=none; d=google.com; s=arc-20160816; b=Tj537IJDkoE84wlXZ70ZT13bxbb96NReDSiLRFxY1ojvBTApFcpjScIU+VyoG6ZSOp h8Gl5O4lPfZmN0gJ2L9XWxeoqEnv1Ir5YrAy+wCwAG4Elz3yxs39S3HmxAZpTS7ehVvS 98uWnxALyUhLJzpICV2iIlAkgaGPMgZjXoDUBnrC2kQVED8/CA8rLz7765gUJkWZ9CAw ZR5tGWrly0u+aF1wjW43fwChfRJgkCJ6mEnsQx2nZNk0YeJxjobnpbgxiBFHOwidxvp2 wMxsYkpO0pj7Ayez3fg72fuc/7cXo9fCe69O4UdVw+yJOotM3Qf10WHGDhAZL26HX9FZ DSmw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=51yABxhCeAmEePY6q8Lluk9jwTGYnWzQRyoK2i9Ziv8=; b=mmTNxnJJtbq1brIRGu/X94IXr9XaxSwy4+pdFjBhKLZhNhvrexfWtI4C7EA5DuKvkQ kN/buLZ2XrrBwhP01y/+AiImzQdm0QfKcSfH2QJRVmMdVQBptpTYU7ropYASz+imu/pZ vhAW/pzk6e31PV/ReEEKMk+TrKgtITEFCtu1cdbV476MLUc5UiAlRB9+hGPBPk0zqR+/ ir+Cqe8QbBZPmzMCLz6/6QGRQs9qROzwq1Zpe91Y2xkhvwN0gmYX7ei8CkJ1MRQv6Jbf qbTXJMZN3QxHDxemA6X3IGZNsmJrvCitFWLqk62pGeTRoaH/CRrmhbDF/5DB81FR3lCf CeMQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b="d/fCjMt0"; 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 dg4si2796135edb.104.2021.01.07.14.52.07; Thu, 07 Jan 2021 14:52:31 -0800 (PST) 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="d/fCjMt0"; 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 S1728377AbhAGWvN (ORCPT + 99 others); Thu, 7 Jan 2021 17:51:13 -0500 Received: from fllv0016.ext.ti.com ([198.47.19.142]:50948 "EHLO fllv0016.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727722AbhAGWvM (ORCPT ); Thu, 7 Jan 2021 17:51:12 -0500 Received: from fllv0034.itg.ti.com ([10.64.40.246]) by fllv0016.ext.ti.com (8.15.2/8.15.2) with ESMTP id 107MnUtN023753; Thu, 7 Jan 2021 16:49:30 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1610059770; bh=51yABxhCeAmEePY6q8Lluk9jwTGYnWzQRyoK2i9Ziv8=; h=Subject:To:CC:References:From:Date:In-Reply-To; b=d/fCjMt0G30a1P6t/yUjo+j0I6KfhUGU3eixrTlkiNrNIdgH8rWlFHP4ir01EDSsM 6GJeb2hVM4fw61KS4pSpGcgIM0a1BOWb0v+vZtbbYshESRrq8z99p9TvABzRj5myGQ wQUZ+2R2EB5LGsUPUoVIO3TLbTGUDOBVcoaCj4nQ= Received: from DFLE110.ent.ti.com (dfle110.ent.ti.com [10.64.6.31]) by fllv0034.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 107MnUDK083642 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Thu, 7 Jan 2021 16:49:30 -0600 Received: from DFLE106.ent.ti.com (10.64.6.27) by DFLE110.ent.ti.com (10.64.6.31) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1979.3; Thu, 7 Jan 2021 16:49:29 -0600 Received: from lelv0326.itg.ti.com (10.180.67.84) by DFLE106.ent.ti.com (10.64.6.27) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1979.3 via Frontend Transport; Thu, 7 Jan 2021 16:49:29 -0600 Received: from [10.250.33.36] (ileax41-snat.itg.ti.com [10.172.224.153]) by lelv0326.itg.ti.com (8.15.2/8.15.2) with ESMTP id 107MnTKk110118; Thu, 7 Jan 2021 16:49:29 -0600 Subject: Re: [PATCH v2 0/5] Introduce PRU remoteproc consumer API To: Mathieu Poirier CC: Grzegorz Jaszczyk , , , , , , , , , , , , References: <20201216165239.2744-1-grzegorz.jaszczyk@linaro.org> <20210106232704.GE9149@xps15> <11303a1b-5ab4-def5-77b1-c500894c9c87@ti.com> <20210107224448.GB43045@xps15> From: Suman Anna Message-ID: <75365443-57e3-e2e0-5865-f78af9d5890b@ti.com> Date: Thu, 7 Jan 2021 16:49:29 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: <20210107224448.GB43045@xps15> Content-Type: text/plain; charset="utf-8" Content-Language: en-US Content-Transfer-Encoding: 7bit X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 1/7/21 4:44 PM, Mathieu Poirier wrote: > On Wed, Jan 06, 2021 at 06:03:25PM -0600, Suman Anna wrote: >> Hi Mathieu, >> >> On 1/6/21 5:27 PM, Mathieu Poirier wrote: >>> On Wed, Dec 16, 2020 at 05:52:34PM +0100, Grzegorz Jaszczyk wrote: >>>> Hi All, >>>> >>>> The Programmable Real-Time Unit and Industrial Communication Subsystem >>>> (PRU-ICSS or simply PRUSS) on various TI SoCs consists of dual 32-bit >>>> RISC cores (Programmable Real-Time Units, or PRUs) for program execution. >>>> >>>> There are 3 foundation components for PRUSS subsystem: the PRUSS platform >>>> driver, the PRUSS INTC driver and the PRUSS remoteproc driver. All were >>>> already merged and can be found under: >>>> 1) drivers/soc/ti/pruss.c >>>> Documentation/devicetree/bindings/soc/ti/ti,pruss.yaml >>>> 2) drivers/irqchip/irq-pruss-intc.c >>>> Documentation/devicetree/bindings/interrupt-controller/ti,pruss-intc.yaml >>>> 3) drivers/remoteproc/pru_rproc.c >>>> Documentation/devicetree/bindings/remoteproc/ti,pru-rproc.yaml >>>> >>>> The programmable nature of the PRUs provide flexibility to implement custom >>>> peripheral interfaces, fast real-time responses, or specialized data handling. >>>> Example of a PRU consumer drivers will be: >>>> - Software UART over PRUSS >>>> - PRU-ICSS Ethernet EMAC >>>> >>>> In order to make usage of common PRU resources and allow the consumer drivers to >>>> configure the PRU hardware for specific usage the PRU API is introduced. >>>> >>>> Patch #3 of this series depends on one not merged remteproc related patch [1]. >>>> >>>> Please see the individual patches for exact changes in each patch, following is >>>> the only change from v1: >>>> - Change the 'prus' property name to 'ti,prus' as suggested by Rob Herring, >>>> which influences patch #1 and patch #2 >>>> >>>> [1] https://patchwork.kernel.org/project/linux-remoteproc/patch/20201121030156.22857-3-s-anna@ti.com/ >>>> >>>> Best regards, >>>> Grzegorz >>>> >>>> Roger Quadros (1): >>>> remoteproc: pru: Add pru_rproc_set_ctable() function >>>> >>>> Suman Anna (2): >>>> dt-bindings: remoteproc: Add PRU consumer bindings >>>> remoteproc: pru: Deny rproc sysfs ops for PRU client driven boots >>>> >>>> Tero Kristo (2): >>>> remoteproc: pru: Add APIs to get and put the PRU cores >>>> remoteproc: pru: Configure firmware based on client setup >>>> >>>> .../bindings/remoteproc/ti,pru-consumer.yaml | 64 +++++ >>>> drivers/remoteproc/pru_rproc.c | 221 +++++++++++++++++- >>>> include/linux/pruss.h | 78 +++++++ >>> >>> This patchset is giving checkpatch.pl errors and as such will not go further >>> with this revision. >> >> Yeah, I am aware of those. Greg has intentionally skipped the checkpatch >> warnings around ENOTSUPP, based on some similar discussion on a different patch, >> https://lkml.org/lkml/2020/11/10/764. > > I only see input from Andy and Lars in the thread you point out, nothing from > Greg. I have also taken a look at the patch [1] that made checkpatch complain > about ENOTSUPP. From what I see in that commit log the goal is to prevent new > additions of ENOTSUPP to the kernel. > > Please modify and resend, otherwise I'm sure someone will send another patch to > fix it before the end of the cycle. Yeah ok. I will send out a v3. regards Suman > > Thanks, > Mathieu > > [1]. 6b9ea5ff5abd checkpatch: warn about uses of ENOTSUPP >> >> Let me know if you prefer that we change these to EOPNOTSUPP. >> >> regards >> Suman >> >>> >>>> 3 files changed, 360 insertions(+), 3 deletions(-) >>>> create mode 100644 Documentation/devicetree/bindings/remoteproc/ti,pru-consumer.yaml >>>> create mode 100644 include/linux/pruss.h >>>> >>>> -- >>>> 2.29.0 >>>> >>