Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp568233ybp; Wed, 9 Oct 2019 00:15:44 -0700 (PDT) X-Google-Smtp-Source: APXvYqwjZONp0oAE9MuWOJtFNth69MuPGqdVHTfeXFIR7jdJqmsVy7SMhnoo7bNv0jK8RFZGesLA X-Received: by 2002:a17:906:4806:: with SMTP id w6mr1503979ejq.44.1570605344613; Wed, 09 Oct 2019 00:15:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570605344; cv=none; d=google.com; s=arc-20160816; b=Ry3DTrysKavZpkVbtzWCtDQOd4U592RIQ6BiopBMMvCQ02EruqCtPbFUnZMkLDjQ3g Qf5Q0G2cSHlTORvwjodJW7liZOLNJpSh4MZU9CtBaRYgL63zXHQd9kDTTsjreJHDXcpr AKqzxAlPSUOjl83lo95VN+b21xjHXo5adwM6SgL82Gz/aib0XCbLf9DBnyJb4RlZLygQ slkqTTahIjtNLk5z0gnng8WWXflu4DyxtD3Q4GqkK4t+AaRFIiLGsv6lP0mdqYqQvVIc NBc1zJn6xmjeYd0zq6J9kWsHH379c4CsQtZa/WUmAzXNguAU72MNIKSiRSUMRei/aA4b Q3Mg== 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=zf5X2BOp2+egdE7AI2QsP0CKdt0YNu7iahL8fNjOr/E=; b=boQwf8jm1xH/EHohS5EOMrg5gVdxC9MNa7t4pVYcyOuhC5Pipw8OLBmR2efiZuWJLD v8fY/7aHbLN43qV6kkWm2yCGnBTmsKiT1LnzxKG41MpDcWv31nGv3DnGjJFDkCy1nufG TJnAD3/tAjtXtkuyXV1teYkaLca9bdizs5LQINfjl4wCOczB5eZsa2gdKwfxQzcGiZn3 Z5YDsYZ3wGz7WrQK19tzyg9M5x/R4DUlpWm5kwiEvPaRngoO17Ukp/XSYSVdTxEHzz95 /VSUXggMQY3z2PT2L7XarILK2GjyFtrIwREMsh2ttGN7ab5lGWZ3MEhmdLpfhq1naDL8 /fJQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=lOwZrDqh; 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 t18si648583ejr.416.2019.10.09.00.15.21; Wed, 09 Oct 2019 00:15:44 -0700 (PDT) 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=lOwZrDqh; 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 S1727715AbfJIHOl (ORCPT + 99 others); Wed, 9 Oct 2019 03:14:41 -0400 Received: from lelv0143.ext.ti.com ([198.47.23.248]:59340 "EHLO lelv0143.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725440AbfJIHOl (ORCPT ); Wed, 9 Oct 2019 03:14:41 -0400 Received: from fllv0034.itg.ti.com ([10.64.40.246]) by lelv0143.ext.ti.com (8.15.2/8.15.2) with ESMTP id x997EWLO009452; Wed, 9 Oct 2019 02:14:32 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1570605272; bh=zf5X2BOp2+egdE7AI2QsP0CKdt0YNu7iahL8fNjOr/E=; h=Subject:To:CC:References:From:Date:In-Reply-To; b=lOwZrDqhMyVBOcbkKs8knDjA7xQ1ijp3+TkwBRtJyqT97aocD4xDzWiUfRLoejDDI zwPuFkOXfo70N2tvODrW4AoDCsmmj6iTTfhoh9ksH1M5VCcVu7HQA3Ss0j1fTHjPTC O2kTMlxo00bgsMHVhOcBSmXPEJSUREQbZ7E1K3cM= Received: from DLEE101.ent.ti.com (dlee101.ent.ti.com [157.170.170.31]) by fllv0034.itg.ti.com (8.15.2/8.15.2) with ESMTPS id x997EWKu029687 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Wed, 9 Oct 2019 02:14:32 -0500 Received: from DLEE104.ent.ti.com (157.170.170.34) by DLEE101.ent.ti.com (157.170.170.31) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1713.5; Wed, 9 Oct 2019 02:14:26 -0500 Received: from fllv0039.itg.ti.com (10.64.41.19) 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.1713.5 via Frontend Transport; Wed, 9 Oct 2019 02:14:26 -0500 Received: from [127.0.0.1] (ileax41-snat.itg.ti.com [10.172.224.153]) by fllv0039.itg.ti.com (8.15.2/8.15.2) with ESMTP id x997EPXS021356; Wed, 9 Oct 2019 02:14:26 -0500 Subject: Re: [PATCH v3 02/14] soc: ti: k3: add navss ringacc driver To: Peter Ujfalusi , , , , CC: , , , , , , , , References: <20191001061704.2399-1-peter.ujfalusi@ti.com> <20191001061704.2399-3-peter.ujfalusi@ti.com> From: Tero Kristo Message-ID: Date: Wed, 9 Oct 2019 10:14:24 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 MIME-Version: 1.0 In-Reply-To: <20191001061704.2399-3-peter.ujfalusi@ti.com> Content-Type: text/plain; charset="utf-8"; format=flowed 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 01/10/2019 09:16, 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 I-SCI Message You missed fixing the typo above: I-SCI to TI-SCI. However, it is just cosmetic so I don't mind. Reviewed-by: Tero Kristo -- Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki. Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki