Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp3024010pxu; Tue, 8 Dec 2020 01:09:24 -0800 (PST) X-Google-Smtp-Source: ABdhPJwrWqpcmh2yyuAuvyyG3pkmM/yzD7Thx3omPPKi+ORDvyzD0zFOd+ZAybwayx1MNTkv9Nn8 X-Received: by 2002:a50:d2c8:: with SMTP id q8mr22706543edg.375.1607418564227; Tue, 08 Dec 2020 01:09:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607418564; cv=none; d=google.com; s=arc-20160816; b=dZjneMoUwE+L/sgHRGArfZTBjeZSb/oU+gIAKPq3Gkbx1U8uyvtBnqGS9vrhKNJUpT DWO7RA1NGHVAzVGzWo/DnfKbfgzju9pJLFRBelV05TQ1MZVJF8v8wb4DlY9rn3MvMpSc DIxGXykt2J2KJEmWvtOUtQqyvZ9/5/jnRUH6Fm0FziKECOcEeWSOZrn8pwRFnGj+n3Tg 5PPrCu10nXH/baDFx+CxZkXHocdxFc81kxuUjR4IO8l4vyk8nd09oGL0ws66NrlXqdMS Pl3D+9DGO5sC7kQ2ludwQPF9sO6Uk+kffcGk1PBc2qpf9ol0R05JdzjuRzraW8ePr7zj O25A== 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=EDpxYtXYTAe9K0kDsVCCy6GsADve4p1cCi/+sFnd2wGiF6j0GmKSXbR53SKB3uky6X SmEwfMgaxVDq1UuLckLjF8s1CI5RwRupTqdKKG4rkZVc4pkDdrfTxKMFIz8/uPq4YGgS N74U8oVhmdvLipjEglZBmDWj/OL5E5af89f0D8bTECDsPqUu6U11xay2XYBL6LQq89+c tfknrLz8zHWWvNT6jvq8b527OjFpScxqMul31PsNf7tP22iWfpG/mrpsmFeznzmDX+on W2nVgtr9hlohn5QWMlyiG1eOz+kXz3oXp4ybDITGdeJa+7TgLXer6IskbaWv7ctJYtqT qTsA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=tO64pWxr; 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 m8si9503228edp.82.2020.12.08.01.09.01; Tue, 08 Dec 2020 01:09:24 -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=tO64pWxr; 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 S1728906AbgLHJGQ (ORCPT + 99 others); Tue, 8 Dec 2020 04:06:16 -0500 Received: from fllv0015.ext.ti.com ([198.47.19.141]:34564 "EHLO fllv0015.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728875AbgLHJGO (ORCPT ); Tue, 8 Dec 2020 04:06:14 -0500 Received: from fllv0035.itg.ti.com ([10.64.41.0]) by fllv0015.ext.ti.com (8.15.2/8.15.2) with ESMTP id 0B894YOB002979; Tue, 8 Dec 2020 03:04:34 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1607418274; bh=KrUTk8ul87troFJrpjX2nEBHGpMAgPlBoUHLfqkKttI=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=tO64pWxrnaKCcYKXhA7FGr5IpijsrYqVwy573KRFOqo9CJsw8XfDJucoqtw4UnLsb 8Ghhz8FMJokFAFE2cuKP/oLw8OanF5APgbTAxAi6BIoJYZoylOxDoQq/13kvg7/tJ4 YDRCG7IS3nL8tWHcWe0JhktedT308zSaO8UrOcwQ= Received: from DLEE109.ent.ti.com (dlee109.ent.ti.com [157.170.170.41]) by fllv0035.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 0B894YCg095817 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Tue, 8 Dec 2020 03:04:34 -0600 Received: from DLEE108.ent.ti.com (157.170.170.38) by DLEE109.ent.ti.com (157.170.170.41) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1979.3; Tue, 8 Dec 2020 03:04:34 -0600 Received: from fllv0040.itg.ti.com (10.64.41.20) by DLEE108.ent.ti.com (157.170.170.38) 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; Tue, 8 Dec 2020 03:04:34 -0600 Received: from feketebors.ti.com (ileax41-snat.itg.ti.com [10.172.224.153]) by fllv0040.itg.ti.com (8.15.2/8.15.2) with ESMTP id 0B893dcI120112; Tue, 8 Dec 2020 03:04:29 -0600 From: Peter Ujfalusi To: , , , CC: , , , , , , , Subject: [PATCH v3 13/20] dmaengine: ti: k3-psil: Extend psil_endpoint_config for K3 PKTDMA Date: Tue, 8 Dec 2020 11:04:33 +0200 Message-ID: <20201208090440.31792-14-peter.ujfalusi@ti.com> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20201208090440.31792-1-peter.ujfalusi@ti.com> References: <20201208090440.31792-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