Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp4415408pxk; Wed, 30 Sep 2020 02:16:26 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw3pyFuwQkD3uzg7uIaE3AYEz4h11MS9o1YY4UiUKzRaI6WJwLGWZG8AZVXXhWAsm86fefA X-Received: by 2002:aa7:de91:: with SMTP id j17mr1666875edv.85.1601457386645; Wed, 30 Sep 2020 02:16:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1601457386; cv=none; d=google.com; s=arc-20160816; b=Tw+ZcJKrlGKgdSAOvRvbSsaV5twEPVYHzLRMNfNO4R153Q9y0KJUNqIg6EHIdlU5ff 4i54NYBxGgf/qR7pgaOJEfuaUcK1dWllIU65scKu21QNSZ4EYqq+rha0PSnCx2RRLUBA e824EjiIkiAdZw4s3VMlMLIjuIVy69DePEprcFcb40CnuJOELmKk6uOSmcFyo+TkyqOF TYY7Sj4VJNEte83pAXg0NTlUUen+jKSIXmBR8mDt1r/7DYBWWE9I+7+dRK52DTh0/GzL //B0jwzngaCnD/m+G23k7XnG7rx54qKpYIn24evBRFGLYbxoGF00LelSN1HdSS+iyQg7 W1uw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=KrUTk8ul87troFJrpjX2nEBHGpMAgPlBoUHLfqkKttI=; b=leqfO6P4CZO5Eey5w/0E3P/CYnV4FxXm1D1FqbfchPPVd4VMe7w2uqbIaNoNoeh2Jx xTWgnPMymSGaGtBu38pWCm9a1UwHu78WV+YFGOwWeM8QZy8X/xvIQtS6EJIV6FPMER/i lfkHwF39bjYV43ks2ObzWycubkKPJKbNAK0raXg31DS74nMw/QbRW2T2n0nqrbPEcHIc 7QKmSPzSmyIaWfEe3qZ0M23nIiY2FejLa0xpY5v7VnL0rq526k09YxYNIaIDR0EgkTZj HpmmGtdIN9b34KX3TWVQykG2wWGKIfFz3V8GMTdSSw4nO86qvMnu3Z2i1GUxayOItcot dVDA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=erhe2dmh; 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 a25si790530ejx.145.2020.09.30.02.16.03; Wed, 30 Sep 2020 02:16:26 -0700 (PDT) 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=erhe2dmh; 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 S1729195AbgI3JOn (ORCPT + 99 others); Wed, 30 Sep 2020 05:14:43 -0400 Received: from fllv0015.ext.ti.com ([198.47.19.141]:35182 "EHLO fllv0015.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729053AbgI3JOh (ORCPT ); Wed, 30 Sep 2020 05:14:37 -0400 Received: from fllv0035.itg.ti.com ([10.64.41.0]) by fllv0015.ext.ti.com (8.15.2/8.15.2) with ESMTP id 08U9EWkf035089; Wed, 30 Sep 2020 04:14:32 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1601457272; bh=KrUTk8ul87troFJrpjX2nEBHGpMAgPlBoUHLfqkKttI=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=erhe2dmhTBg6xdtP29WtORaC141HNSk954n2A6GFkVMAvz2YRhMEHqxrel6QgsYAb 6eZpfianipRCucVy3eYFSyTxB+UuYx75spzg33QobGQgBoOZSReQ6egF3Klk9hUW9h YurHoRMUmBd5i3j20AjyZ73I5VpAEm83KKPTA4cQ= Received: from DFLE103.ent.ti.com (dfle103.ent.ti.com [10.64.6.24]) by fllv0035.itg.ti.com (8.15.2/8.15.2) with ESMTP id 08U9EWnu122272; Wed, 30 Sep 2020 04:14:32 -0500 Received: from DFLE101.ent.ti.com (10.64.6.22) by DFLE103.ent.ti.com (10.64.6.24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1979.3; Wed, 30 Sep 2020 04:14:31 -0500 Received: from fllv0039.itg.ti.com (10.64.41.19) by DFLE101.ent.ti.com (10.64.6.22) 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; Wed, 30 Sep 2020 04:14:31 -0500 Received: from feketebors.ti.com (ileax41-snat.itg.ti.com [10.172.224.153]) by fllv0039.itg.ti.com (8.15.2/8.15.2) with ESMTP id 08U9DuJi116385; Wed, 30 Sep 2020 04:14:29 -0500 From: Peter Ujfalusi To: , , , , CC: , , , , , , Subject: [PATCH 11/18] dmaengine: ti: k3-psil: Extend psil_endpoint_config for K3 PKTDMA Date: Wed, 30 Sep 2020 12:14:05 +0300 Message-ID: <20200930091412.8020-12-peter.ujfalusi@ti.com> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20200930091412.8020-1-peter.ujfalusi@ti.com> References: <20200930091412.8020-1-peter.ujfalusi@ti.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Additional fields needed for K3 PKTDMA to be able to handle the mapped channels (channels are locked to handle specific threads) and flow ranges for these mapped threads. PKTDMA also introduces tflow for tx channels which can not be found in K3 UDMA architecture. Signed-off-by: Peter Ujfalusi --- include/linux/dma/k3-psil.h | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/include/linux/dma/k3-psil.h b/include/linux/dma/k3-psil.h index 1962f75fa2d3..36e22c5a0f29 100644 --- a/include/linux/dma/k3-psil.h +++ b/include/linux/dma/k3-psil.h @@ -50,6 +50,15 @@ enum psil_endpoint_type { * @channel_tpl: Desired throughput level for the channel * @pdma_acc32: ACC32 must be enabled on the PDMA side * @pdma_burst: BURST must be enabled on the PDMA side + * @mapped_channel_id: PKTDMA thread to channel mapping for mapped channels. + * The thread must be serviced by the specified channel if + * mapped_channel_id is >= 0 in case of PKTDMA + * @flow_start: PKDMA flow range start of mapped channel. Unmapped + * channels use flow_id == chan_id + * @flow_num: PKDMA flow count of mapped channel. Unmapped channels + * use flow_id == chan_id + * @default_flow_id: PKDMA default (r)flow index of mapped channel. + * Must be within the flow range of the mapped channel. */ struct psil_endpoint_config { enum psil_endpoint_type ep_type; @@ -63,6 +72,13 @@ struct psil_endpoint_config { /* PDMA properties, valid for PSIL_EP_PDMA_* */ unsigned pdma_acc32:1; unsigned pdma_burst:1; + + /* PKDMA mapped channel */ + int mapped_channel_id; + /* PKTDMA tflow and rflow ranges for mapped channel */ + u16 flow_start; + u16 flow_num; + u16 default_flow_id; }; int psil_set_new_ep_config(struct device *dev, const char *name, -- Peter Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki. Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki