Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp4930491ybl; Tue, 14 Jan 2020 00:12:39 -0800 (PST) X-Google-Smtp-Source: APXvYqzTq7P+0/x1vm/gPHCmW94Eum/aDK4Mb7LCIBCB8dnWcc9id97ICUysxIrHkCn0/0gOnwri X-Received: by 2002:a9d:66ca:: with SMTP id t10mr15971777otm.352.1578989559273; Tue, 14 Jan 2020 00:12:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1578989559; cv=none; d=google.com; s=arc-20160816; b=0KbZBpNbx8+YbU2jgRuULlbn+hMkH1/oRRONKhgWbdZITQMnYD6lDCl/zR2gnF35d0 PIjZ8Rh00usYNllaVra9zHUBWQxFXl3cRYNnr25EgusbRyvEbJLD+x28i1Rz065YhyDu 9Pd6sLNKAllqTyU3zdGNWgBeoZN0UjIZgyL9LNsJoCNOcERdPOnGb6+Fe3ApSzqANCWe Nf2BIaRjEIlIKa+F8RtmTQXB3OpaDPfLAr6EvF2Z0tELlhXhB5VXswFVCOsOt+lTZrlt jAbInmpthGefJ5hlAPgckVS43FgeLG7SD2beLRotbjF+NcIVWSJbLGmtulv1q9MgIXv7 YRaw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=OXgw5jVtI/P8lq90Ajh5uW2OyAX5bZNN5cmbnuabCec=; b=bH/ryoLmMfk/ao2jcoN9mSY9V5bKCCwYtmIRbGYIsgSDmUAzmHIfmJNzR5rK+AUBQY OFK8OqVengk+scqkOa8U/EEET0FqHOhETRyje/uUfzuPh+qqlKJYEwIUmMVDtXgL4lAG nMi6+iNJfOSIOMamIw8Rvtk08oHyMnT2WW9HvMVJS3q6WhABbb06NW6KOhRtcNH1WhJP qmmkYHBTnGB//PqNOzs0y+VKsi0Ehj/QMYlShxSvprcsGm++ex55pVtlFFJwFnY4wYmU ZZlZwl27WqIimzE3NeEZOxgZ7ey5Lmx4SEEjZBRwlldqYTDmmVBVNx0RtdkuE3lSggYF +glA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=lSkH2eFW; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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. [209.132.180.67]) by mx.google.com with ESMTP id q3si8335445otc.243.2020.01.14.00.12.27; Tue, 14 Jan 2020 00:12:39 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=lSkH2eFW; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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 S1729279AbgANILg (ORCPT + 99 others); Tue, 14 Jan 2020 03:11:36 -0500 Received: from fllv0016.ext.ti.com ([198.47.19.142]:43462 "EHLO fllv0016.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725956AbgANILf (ORCPT ); Tue, 14 Jan 2020 03:11:35 -0500 Received: from lelv0265.itg.ti.com ([10.180.67.224]) by fllv0016.ext.ti.com (8.15.2/8.15.2) with ESMTP id 00E8BNXc111226; Tue, 14 Jan 2020 02:11:23 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1578989483; bh=OXgw5jVtI/P8lq90Ajh5uW2OyAX5bZNN5cmbnuabCec=; h=Subject:To:CC:References:From:Date:In-Reply-To; b=lSkH2eFWkfeoKXLvH8m9BL6PJIVxyND0b2PDvvSWCvc6AmTrP8EkrYHWbizr4Uh3U JVv+2AFLRMJj8+obgV7Uk4gxbH8g0OgqDiPFhM+NtqxxAb1yVtKGwkHaerfaZL+1FN LrUTSzHksvbzuGgY75fOE1sG8yzira/dqDplrJy8= Received: from DLEE100.ent.ti.com (dlee100.ent.ti.com [157.170.170.30]) by lelv0265.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 00E8BNHU078292 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Tue, 14 Jan 2020 02:11:23 -0600 Received: from DLEE110.ent.ti.com (157.170.170.21) by DLEE100.ent.ti.com (157.170.170.30) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1847.3; Tue, 14 Jan 2020 02:11:23 -0600 Received: from fllv0039.itg.ti.com (10.64.41.19) by DLEE110.ent.ti.com (157.170.170.21) 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, 14 Jan 2020 02:11:23 -0600 Received: from [172.24.145.246] (ileax41-snat.itg.ti.com [10.172.224.153]) by fllv0039.itg.ti.com (8.15.2/8.15.2) with ESMTP id 00E8BHg1063367; Tue, 14 Jan 2020 02:11:18 -0600 Subject: Re: [PATCH v8 02/18] soc: ti: k3: add navss ringacc driver To: Peter Ujfalusi , , , , , CC: , , , , , , , , , , , References: <20191223110458.30766-1-peter.ujfalusi@ti.com> <20191223110458.30766-3-peter.ujfalusi@ti.com> <6d70686b-a94e-18d1-7b33-ff9df7176089@ti.com> <900c2f21-22bf-47f9-5c3c-0a3d95a5d645@oracle.com> From: Sekhar Nori Message-ID: Date: Tue, 14 Jan 2020 13:41:17 +0530 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.9.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset="utf-8" Content-Language: en-US Content-Transfer-Encoding: 7bit X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 14/01/20 12:28 PM, Peter Ujfalusi wrote: > Hi Santosh, > > On 13/01/2020 23.28, santosh.shilimkar@oracle.com wrote: >> >> >> On 12/23/19 3:38 AM, Peter Ujfalusi wrote: >>> Hi Santosh, >>> >>> On 23/12/2019 13.04, Peter Ujfalusi wrote: >>>> From: Grygorii Strashko >>>> >>>> The Ring Accelerator (RINGACC or RA) provides hardware acceleration to >>>> enable straightforward passing of work between a producer and a >>>> consumer. >>>> There is one RINGACC module per NAVSS on TI AM65x SoCs. >>>> >>>> The RINGACC converts constant-address read and write accesses to >>>> equivalent >>>> read or write accesses to a circular data structure in memory. The >>>> RINGACC >>>> eliminates the need for each DMA controller which needs to access ring >>>> elements from having to know the current state of the ring (base >>>> address, >>>> current offset). The DMA controller performs a read or write access to a >>>> specific address range (which maps to the source interface on the >>>> RINGACC) >>>> and the RINGACC replaces the address for the transaction with a new >>>> address >>>> which corresponds to the head or tail element of the ring (head for >>>> reads, >>>> tail for writes). Since the RINGACC maintains the state, multiple DMA >>>> controllers or channels are allowed to coherently share the same >>>> rings as >>>> applicable. The RINGACC is able to place data which is destined towards >>>> software into cached memory directly. >>>> >>>> Supported ring modes: >>>> - Ring Mode >>>> - Messaging Mode >>>> - Credentials Mode >>>> - Queue Manager Mode >>>> >>>> TI-SCI integration: >>>> >>>> Texas Instrument's System Control Interface (TI-SCI) Message Protocol >>>> now >>>> has control over Ringacc module resources management (RM) and Rings >>>> configuration. >>>> >>>> The corresponding support of TI-SCI Ringacc module RM protocol >>>> introduced as option through DT parameters: >>>> - ti,sci: phandle on TI-SCI firmware controller DT node >>>> - ti,sci-dev-id: TI-SCI device identifier as per TI-SCI firmware spec >>>> >>>> if both parameters present - Ringacc driver will configure/free/reset >>>> Rings >>>> using TI-SCI Message Ringacc RM Protocol. >>>> >>>> The Ringacc driver manages Rings allocation by itself now and requests >>>> TI-SCI firmware to allocate and configure specific Rings only. It's done >>>> this way because, Linux driver implements two stage Rings allocation and >>>> configuration (allocate ring and configure ring) while TI-SCI Message >>>> Protocol supports only one combined operation (allocate+configure). >>>> >>>> Signed-off-by: Grygorii Strashko >>>> Signed-off-by: Peter Ujfalusi >>>> Reviewed-by: Tero Kristo >>>> Tested-by: Keerthy >>> >>> Can you please giver your Acked-by for the ringacc patches if they are >>> still OK from your point of view as you had offered to take them before >>> I got comments from Lokesh. >>> >> Sure. But you really need to split the series so that dma engine and >> soc driver patches can be applied independently. > > The ringacc is a build and runtime dependency for the DMA. I have hoped > that all of them can go via DMAengine (hence asking for your ACK on the > drivers/soc/ti/ patches) for 5.6. > >> Can you please do that? > > This late in the merge window that would really mean that I will miss > another release for the KS3 DMA... > I can live with that if you can pick the ringacc for 5.6 and if Vinod > takes the DMAengine core changes as well. > > That would leave only the DMA drivers for 5.7 and we can also queue up > changes for 5.7 which depends on the DMAengine API (ASoC changes, UART, > sa2ul, etc). > > If they go independently and nothing makes it to 5.6 then 5.8 is the > realistic target for the DMA support for the KS3 family of devices... Thats too many kernel versions to get this important piece in. Santosh, if you do not have anything else queued up that clashes with this, can the whole series be picked up by Vinod with your ack on the drivers/soc/ti/ pieces? Vinod could also perhaps setup an immutable branch based on v5.5-rc1 with just the drivers/soc/ti parts applied so you can merge that branch in case you end up having to send up anything that conflicts. Thanks, Sekhar