From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-9.0 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, NICE_REPLY_A,SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_AGENT_SANE_1 autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id F27E8C4727E for ; Wed, 30 Sep 2020 13:59:44 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 9BE2F2071E for ; Wed, 30 Sep 2020 13:59:44 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="O6O4KbCo"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=ti.com header.i=@ti.com header.b="PEvcddil" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 9BE2F2071E Authentication-Results: mail.kernel.org; dmarc=fail (p=quarantine dis=none) header.from=ti.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Type: Content-Transfer-Encoding:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:Date:Message-ID:From: References:To:Subject:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=CPcqiQoCvhcMm0zH+006gm8fdtBwIRjSqYptGfov7T4=; b=O6O4KbCowTKqW14cUtvmQqYuI lV9XIs0099UHOzrDUbYq6CFbYtrs0E6Efkno7sh49B1LiW0pNP29yHuDBJPsWPfohk9tNxnJiZyv2 pKMey3sVy1DKEcDE4ndbagoDz6g4fRJv959UYX8305eMQb0171Cdah8NXEBjMXgw5IHz3ik/YURHJ xEl8wUc/bwrEETzt7/pLbNNsNP/SWzG0MOtE6JdDzqY88GoBEjqm7wLOoIShxT/1y4hzc7TBJZvvB 7xEsyl6ATqOAXfUeXKyLJpSmIDT8YYVxb2odgmbsmUS9/q5Nqo0mvV5kaFL8IlHEMSgM+HwfRI5PL LY0LK+o8g==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kNccn-0000g1-H3; Wed, 30 Sep 2020 13:58:29 +0000 Received: from fllv0015.ext.ti.com ([198.47.19.141]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kNccc-0000cT-Tu for linux-arm-kernel@lists.infradead.org; Wed, 30 Sep 2020 13:58:20 +0000 Received: from lelv0266.itg.ti.com ([10.180.67.225]) by fllv0015.ext.ti.com (8.15.2/8.15.2) with ESMTP id 08UDwHCe003622; Wed, 30 Sep 2020 08:58:17 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1601474297; bh=6Fj7OFueIfHApZmAdzpm3tSO0kawVKtkcyhqkTWeAFs=; h=Subject:To:CC:References:From:Date:In-Reply-To; b=PEvcddilJvb/JfuAfpExQ20uaZLfgNKaTtnj9qboWueVTgMWSIFaz5jYCnYwjrtSz SfOdSYKRALtFks/ikmmu6S2F/Y2yPBsebqREp38hXwBI3iieO7QpI5wdbFY/J8bxeY R9e+TNMtBLfftyo747HlQpIUlcicTa8gspCwZ2ss= Received: from DFLE106.ent.ti.com (dfle106.ent.ti.com [10.64.6.27]) by lelv0266.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 08UDwHXs091308 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Wed, 30 Sep 2020 08:58:17 -0500 Received: from DFLE102.ent.ti.com (10.64.6.23) by DFLE106.ent.ti.com (10.64.6.27) 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 08:58:17 -0500 Received: from lelv0326.itg.ti.com (10.180.67.84) by DFLE102.ent.ti.com (10.64.6.23) 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 08:58:17 -0500 Received: from [10.250.100.73] (ileax41-snat.itg.ti.com [10.172.224.153]) by lelv0326.itg.ti.com (8.15.2/8.15.2) with ESMTP id 08UDwFNo111098; Wed, 30 Sep 2020 08:58:15 -0500 Subject: Re: [PATCH 10/11] soc: ti: k3-ringacc: Use correct device for allocation in RING mode To: Peter Ujfalusi , , , , References: <20200928083429.17390-1-peter.ujfalusi@ti.com> <20200928083429.17390-11-peter.ujfalusi@ti.com> From: Grygorii Strashko Message-ID: <3bbe1568-3ceb-07df-4c40-bcc54c8935c0@ti.com> Date: Wed, 30 Sep 2020 16:58:14 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: <20200928083429.17390-11-peter.ujfalusi@ti.com> Content-Language: en-US X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200930_095819_093374_9E7DAD16 X-CRM114-Status: GOOD ( 18.32 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="us-ascii"; Format="flowed" Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On 28/09/2020 11:34, Peter Ujfalusi wrote: > In RING mode the ringacc does not access the ring memory. In this access > mode the ringacc coherency does not have meaning. > > If the ring is configured in RING mode, then the ringacc itself will not > access to the ring memory. Only the requester (user) of the ring is going > to read/write to the memory. > Extend the ring configuration parameters with a device pointer to be used > for DMA API when the ring is configured in RING mode. > > Extending the ring configuration struct will allow per ring selection of > device to be used for allocation, thus allowing per ring coherency. > > To avoid regression, fall back to use the ringacc dev in case the alloc_dev > is not provided. > > Signed-off-by: Peter Ujfalusi > --- > drivers/soc/ti/k3-ringacc.c | 14 +++++++++++--- > include/linux/soc/ti/k3-ringacc.h | 5 +++++ > 2 files changed, 16 insertions(+), 3 deletions(-) > Reviewed-by: Grygorii Strashko -- Best regards, grygorii _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel