Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp280904imu; Mon, 26 Nov 2018 10:48:25 -0800 (PST) X-Google-Smtp-Source: AFSGD/W8h+sEYYeondiWdjZDYZWg7CiUFgtnq0oW/FSbchE7kp6UMla0z4/SlvwKm7hkVmTUVJHv X-Received: by 2002:a63:5b1f:: with SMTP id p31mr20044527pgb.56.1543258105330; Mon, 26 Nov 2018 10:48:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543258105; cv=none; d=google.com; s=arc-20160816; b=1GPTwMGcQ/RTu/9L2/NTWiUn3Og5Qw+WV8obKyJ2SfqWI5UAGpYbEReOXqVOKGemNY t8jllPL5/l8yvxSmmbnYBhALS/5mtHLbMh4rMGI3dRA+2/8/+fVrjScBOYR86CVhmvb1 TrDDZX2Nvg9BA64MgeJZVHNkyP7P+IhNJGIbjiJ3NVRzz4bgBPjEibwnl497Oah8KuX7 LiFvwg1LADfIWzDTTvpxz22tfr3CQzlUSRBCgE01RZdbCVfRUg9vgETjmbXldtR37toE XYqOlZ2XHgqvTFoc9/ccbQQDgRl4gawbkxbcp07htlYpHh1wE6Vsq4z4kYyuVhF57pvo 78Yg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:mail-followup-to :message-id:subject:cc:to:from:date:dmarc-filter:dkim-signature :dkim-signature; bh=Y7dnSwTtuiV9XDxyRmBhhORzwfkaiKRRnP+xNE6bjSk=; b=YfzsZiRDgbGw9tURC4U/fmgg9toGkUvmnFtggrODmjuDdCL5gPdA3JZmvcYzlumQ+c 2T77b6i0Iu7P9WPM5O9MVZOAu6ta+SHXZo3QO0SzYHOF+l0SduKd660ikxLIL3tygATA nOSyKqGRrBleG7qMyrLfA27xgVCcLttV8V9rFzL2pddOAz3mc3UxmfSnnMEst/44xR6m WK/w6R6RI3lsAy2cUXjRUiH9jkjicehPKnUvLxkBEeUnY2/K3zOSvuanpziO5GlWBiAD 42odgg0nJZBxpL/hvCVMcrRjHmlkaBq49+wL2m9Kz8VpvKaNbVdIB8kTnDk/MnvtHQB2 eoAQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@codeaurora.org header.s=default header.b=eS1ijfwn; dkim=pass header.i=@codeaurora.org header.s=default header.b=ik0p1xBn; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e8si1031865pfc.248.2018.11.26.10.47.45; Mon, 26 Nov 2018 10:48:25 -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=@codeaurora.org header.s=default header.b=eS1ijfwn; dkim=pass header.i=@codeaurora.org header.s=default header.b=ik0p1xBn; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726485AbeK0Flg (ORCPT + 99 others); Tue, 27 Nov 2018 00:41:36 -0500 Received: from smtp.codeaurora.org ([198.145.29.96]:55450 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725747AbeK0Flf (ORCPT ); Tue, 27 Nov 2018 00:41:35 -0500 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id F2E2C60F39; Mon, 26 Nov 2018 18:46:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1543257996; bh=8E/fy05vk++UaC89yKOOhHJrfKYYC28WZ/8UNNye7qg=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=eS1ijfwnoQQKIOh5aPdW8d2ookg3NW984cM9+Sf2fid9PVkhFHtPuMvNA1NYk4ewS rZHmspGZTaSHo5dsBtye6XHFGW7yPaSXUlU53ZORAs8Ly4fLM2YBsq5yAyk6PEl26Y qsZvwlPeajxNT/90ndMYlvjKsKLpWT6YJb3MGLCg= X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on pdx-caf-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.7 required=2.0 tests=ALL_TRUSTED,BAYES_00, DKIM_INVALID,DKIM_SIGNED autolearn=no autolearn_force=no version=3.4.0 Received: from jcrouse-lnx.qualcomm.com (i-global254.qualcomm.com [199.106.103.254]) (using TLSv1.2 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) (Authenticated sender: jcrouse@smtp.codeaurora.org) by smtp.codeaurora.org (Postfix) with ESMTPSA id 79262609A8; Mon, 26 Nov 2018 18:46:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1543257995; bh=8E/fy05vk++UaC89yKOOhHJrfKYYC28WZ/8UNNye7qg=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=ik0p1xBngmz0aNM810X9aYmeeOLlpft5GSAWJOs44iCw1JO2i45lp926lKhVyQokq YC6sVWMw14N8V7TvUDYNKQgbFGhlLxIdPyl0YLbAepc5+G97pOsqqTp2r2DPXFtGz8 BYGdacLQfMNc6VDUqpOQvJ1Wk1cL6/XE/F2HbKs4= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 79262609A8 Authentication-Results: pdx-caf-mail.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: pdx-caf-mail.web.codeaurora.org; spf=none smtp.mailfrom=jcrouse@codeaurora.org Date: Mon, 26 Nov 2018 11:46:32 -0700 From: Jordan Crouse To: Vivek Gautam Cc: Tomasz Figa , Rob Clark , David Airlie , Linux Kernel Mailing List , freedreno , linux-arm-msm , dri-devel Subject: Re: [PATCH 1/1] drm: msm: Replace dma_map_sg with dma_sync_sg* Message-ID: <20181126184632.GK31792@jcrouse-lnx.qualcomm.com> Mail-Followup-To: Vivek Gautam , Tomasz Figa , Rob Clark , David Airlie , Linux Kernel Mailing List , freedreno , linux-arm-msm , dri-devel References: <20181120095437.29820-1-vivek.gautam@codeaurora.org> <20181120154148.GC31792@jcrouse-lnx.qualcomm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Nov 22, 2018 at 03:37:54PM +0530, Vivek Gautam wrote: > Hi Tomasz, Jordan, > > > On 11/21/2018 9:18 AM, Tomasz Figa wrote: > > > >>>+ for_each_sg(msm_obj->sgt->sgl, s, > >>>+ msm_obj->sgt->nents, i) > >>>+ sg_dma_address(s) = sg_phys(s); > >>>+ > >>I'm wondering - wouldn't we want to do this association for cached buffers to so > >>we could sync them correctly in cpu_prep and cpu_fini? Maybe it wouldn't hurt > >>to put this association in the main path (obviously the sync should stay inside > >>the conditional for uncached buffers). > >> > > Sure, I will move this out of the conditional check. > > >I guess it wouldn't hurt indeed. Note that cpu_prep/fini seem to be > >missing the sync call currently. > > I can't say I understand the usage of cpu_prep and cpu_fini(). But I can add > the necessary support if you can point me in the right direction. Not needed for this iteration. We don't have support in those functions for cached buffers right now so continuing to not support it wouldn't hurt. Jordan -- The Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, a Linux Foundation Collaborative Project