Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp2073396ybf; Mon, 2 Mar 2020 01:16:19 -0800 (PST) X-Google-Smtp-Source: APXvYqxTj06yRPvnBLi9EkJY0XBtE8wBc35coUHwqGuo7ZGjkUBVIe2xu4CBCm7uSwaxeW6NocRZ X-Received: by 2002:aca:c6ca:: with SMTP id w193mr10563704oif.165.1583140579613; Mon, 02 Mar 2020 01:16:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1583140579; cv=none; d=google.com; s=arc-20160816; b=D16F4BKTsAhsVr7XaXtiIyUWf/JLN0Yet+9g55zp7KR1NpRchuhiXjSO6gbC86E5v/ R9H4c2YHduyC07xmSFL5vG17KStDl7nXde8ZqxTqZFiBpnT/0WIgiHNA6gXylgUA2zvd keekh4rfHdk96aYFkeIUpqVsqUIICBp7hbF23Kocf8ca6Z1QbtL9Dr7mLKGpvuU9pPHZ vCWxzNOx6zMbkqZRx8j4IzOcnl/74w6WAI5nY1E+RAQSIC1CgQvkzx4JezNE5IC3x8yC 0ABZEflwhijXroHST/4tqwxovQdxWlwFQ/1hDTsX2iPuUCneidxKox4vc6ulXjSutqVh jZ1g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=MoNGN8onXh90EJJW4RB0OF+WAZvWpyYLNfJAAHvKFm0=; b=P2efMt+b9aNEpnhTY0qhRsbszwG64cBqTb+gHKDJ6o0RWzCvm598Ci1gNsKGvjillD R5Kh9ZUnKMMC1nmytrLJmlWPiG1bhsWGPb8G+PcOrvgTxNG4I9UNsyXo4NJXkMrSxpBD ZbDU7MNoK358unYRCuAN9uF9mnENaCifSz49uHlxqwHQmmgpQedN66hGBx/AELVnwm6o izs9MigmcJNu4+DB2lwcOOFSzM7jzKgexnmxbtufFf/g0mErby0uBRPT+A7dH6GxfT4G aNMZUbZ26FillB2YTPWFdLrh59xj+G7AvPjRTqGYrsiZFGVQ+lT2LLcrvfQxUKSQ8UWU wYEg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=Qgl+4iy5; 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=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v92si1870960otb.160.2020.03.02.01.16.07; Mon, 02 Mar 2020 01:16:19 -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=@kernel.org header.s=default header.b=Qgl+4iy5; 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=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727205AbgCBJOe (ORCPT + 99 others); Mon, 2 Mar 2020 04:14:34 -0500 Received: from mail.kernel.org ([198.145.29.99]:41560 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726390AbgCBJOe (ORCPT ); Mon, 2 Mar 2020 04:14:34 -0500 Received: from localhost (unknown [171.76.77.132]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 21AEC246B4; Mon, 2 Mar 2020 09:14:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1583140474; bh=UbuSb7l91NmV7WlYukEACby2rjjpfKz6X4KPoH9f3fM=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Qgl+4iy5i1PreV+s3vnOUafNyOnJ2mw0E8QyGLfSNJMSJuo4NMbEOYYjPOI6l1woL f2z8sROJFu9dxT15jXYC2GIU+tMG+ltGvpFEnQZs5VMiRZ1XzoJfDZhUHHTjAbm0Pe PV7BKBJj8S+f8sIeCAup/0SipYJeeMSiSMeibwH4= Date: Mon, 2 Mar 2020 14:44:28 +0530 From: Vinod Koul To: Peter Ujfalusi Cc: robh+dt@kernel.org, mark.rutland@arm.com, dmaengine@vger.kernel.org, linux-kernel@vger.kernel.org, dan.j.williams@intel.com, grygorii.strashko@ti.com, devicetree@vger.kernel.org Subject: Re: [PATCH 0/2] dmaengine: ti: k3-udma: Support for per channel atype Message-ID: <20200302091428.GI4148@vkoul-mobl> References: <20200218143126.11361-1-peter.ujfalusi@ti.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200218143126.11361-1-peter.ujfalusi@ti.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 18-02-20, 16:31, Peter Ujfalusi wrote: > Hi, > > The series is on top of the 5.6 update patches: > https://lore.kernel.org/lkml/20200214091441.27535-1-peter.ujfalusi@ti.com/ > > UDMA channels have ATYPE property which tells UDMA on how to treat the pointers > within descriptors (and TRs). > The ATYPE defined for j721e are: > 0: pointers are physical addresses (no translation) > 1: pointers are intermediate addresses (PVU) > 2: pointers are virtual addresses (SMMU) > > When Linux is booting within a virtualized environment channels must have the > ATYPE configured correctly to be able to access memory (ATYPE == 0 is not > allowed). > The ATYPE can be different for channels and their ATYPE depends on which > endpoint they are servicing, but it is not hardwired. > > In order to be able to tell the driver the ATYPE for the channel we need to > extend the dma-cells in case the device is going to be used in virtualized > setup. > > Non virtualized setups can still use dma-cells == 1. > > If dma-cells == 2, then the UDMA node must have ti,udma-atype property which > is used for non slave channels (where no DT binding is exist for a channel). Applied, thanks -- ~Vinod