Received: by 2002:a05:6a10:a852:0:0:0:0 with SMTP id d18csp2142151pxy; Sun, 2 May 2021 12:53:34 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxc2lb2fpDX/MV8YjskYIMW3zOVkJMRgXoIwcz6hk4tFUiFQXaea4Fpe+rtdq0ULgAJonoe X-Received: by 2002:a62:7f84:0:b029:25f:b701:38e5 with SMTP id a126-20020a627f840000b029025fb70138e5mr15430986pfd.5.1619985214696; Sun, 02 May 2021 12:53:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1619985214; cv=none; d=google.com; s=arc-20160816; b=gXRYUHl0TDaKYSF1ZpEViIzGY4vgyFM4caCGXfDxxEIPC2DPdYfu3CbL/4rS+Ce9kg cKrOpSwuh58O/Iw0qF8khGRi9APsatbXYxUR9uqBAJowHyFDTlVxnhlvDpS6f5h5eWbx 1CfMkhGPC8iL40U+j8bY39pIMOPIe9yOQOuRDh3Ug4VVegh7Bu+zGvSoz3BU2lxajVJW vr0e1vco+TyEUjESM4f8Msz6kVDlqVX69tPs5WRI48NJzFXNoBUdn0iiQ11n0t+UCse9 WJD0h3OSJE65SAabE2ECB94R6R2DRzgUYL7o24XChZkcGpIgkzOyhGyEXNoH9OI0nCox LPgw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:mail-followup-to:message-id:subject:cc:to:from:date :dkim-signature; bh=6wTSvRjZRCi7xWaHiuXeBW7eizhhGCMmkX8gXontjew=; b=MZfgim7F5LzZfqLgvooQMt9NlNoSN88RlBwmVRZJ95tlhwxWDJMm5GKNAbq3L9vykw L8sL0LFr+jG57mKLB/VAySsacdxdVqFaOxQbuahPjjkPNUQ/NlJ5DhHIkiLvw3ancSQO CdFaLghJdeg7nQuzL2VJfYD74HNIbAI/b8ZMTae99aUfmtb8FDl228NoC307gCc3dxo/ yB5q7qxXqAr+cVL8vyktl4EJAJejaFwN9Xecw0jHbtVN+4wmgEZRTTWuqKeLYPue8JSG LchABF07/EXKz6Je0Wd1PhHFUzBPak1vIa5fMbkopRAjiFFBJ4g8xtXpmSbmR0LMvuoD duCg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@cosmicpenguin-net.20150623.gappssmtp.com header.s=20150623 header.b=yHlSVYqK; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y15si6582863pgi.64.2021.05.02.12.53.20; Sun, 02 May 2021 12:53:34 -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=@cosmicpenguin-net.20150623.gappssmtp.com header.s=20150623 header.b=yHlSVYqK; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232341AbhEBTwZ (ORCPT + 99 others); Sun, 2 May 2021 15:52:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60108 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232338AbhEBTwY (ORCPT ); Sun, 2 May 2021 15:52:24 -0400 Received: from mail-io1-xd2a.google.com (mail-io1-xd2a.google.com [IPv6:2607:f8b0:4864:20::d2a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4BCFBC06174A for ; Sun, 2 May 2021 12:51:32 -0700 (PDT) Received: by mail-io1-xd2a.google.com with SMTP id k25so2509352iob.6 for ; Sun, 02 May 2021 12:51:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cosmicpenguin-net.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:mail-followup-to:references :mime-version:content-disposition:in-reply-to; bh=6wTSvRjZRCi7xWaHiuXeBW7eizhhGCMmkX8gXontjew=; b=yHlSVYqKpW87aQPAUbBHrY2IZxb40wNCc3Amztn6HHkkrwkJOgSL9p/15fPdMBvQHq cRWFvkAhN+yS18R4hU4CCXEgPOw0IajehcefiMLA7+nrsjUmf/MWvNPPi0sewfwJ++Xi kNsEUWVt5wJQ538dsJACfI+oe1rU6es0dQLtD9haznjCBlaKetoT6Wo7+rXVNKgV/TvG LHicek52p/T8LqxlWgwddH0WPHdBo6ekCCTZKSeVIKRArSc7q+OYG+skOIngZC3n1Wjr 7cYbPSPLiJG0nZ/KJweEoOO7mw9wAHR6XarEWo+s5sEKPfiFj+y+u9KEHMNK+Rj6wo13 QIBQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id :mail-followup-to:references:mime-version:content-disposition :in-reply-to; bh=6wTSvRjZRCi7xWaHiuXeBW7eizhhGCMmkX8gXontjew=; b=l6hVoTUVLsI+dAkMQgVeJqW5ei3dVGOqKV2ttxAMWVYFNJ/faCkYvGnWuwtQ0P/PIJ ooSYvdkWhFvJHGnVoCzrxE3RTOWxk4usLNQyr+wFnFhhoA9ZATKIOO2+DiiY90jB3OT+ maJx6zwxc32rjJWlvtWyRmXLi9pTDvrGbW8ed7axpYyT0TMLjNdI5YvQKU/8IeT8sqFL 6f4IunTkBcRPbKdIZ25cJgcDxGcnZTHecmf9TbPQM+LcntjErchvlDuzJByFvlmcFa6A 9Mn1C+Vma4tEvLf2PI7tmYNIlRNAM+hvCJppvfOSkjao2oBavAS9cRFBzW04bdQe0sHW NnXA== X-Gm-Message-State: AOAM530O/uLSFFbop+JrPm88xw4u+RFbXCKGW9MskrEhK0VE0zGLdSWK 3ydKxMoAWH4u9ysI/By9q/d494LnJBBAaU07 X-Received: by 2002:a02:cc:: with SMTP id 195mr15669716jaa.73.1619985091752; Sun, 02 May 2021 12:51:31 -0700 (PDT) Received: from cosmicpenguin.net (c-71-237-100-236.hsd1.co.comcast.net. [71.237.100.236]) by smtp.gmail.com with ESMTPSA id w10sm4473063ilm.38.2021.05.02.12.51.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 02 May 2021 12:51:31 -0700 (PDT) Date: Sun, 2 May 2021 13:51:29 -0600 From: Jordan Crouse To: Jonathan Marek Cc: freedreno@lists.freedesktop.org, David Airlie , "open list:DRM DRIVER FOR MSM ADRENO GPU" , open list , "open list:DRM DRIVER FOR MSM ADRENO GPU" , Sean Paul Subject: Re: [PATCH 1/5] drm/msm: remove unnecessary mmap logic for cached BOs Message-ID: <20210502195129.jqayhebdlslpet67@cosmicpenguin.net> Mail-Followup-To: Jonathan Marek , freedreno@lists.freedesktop.org, David Airlie , "open list:DRM DRIVER FOR MSM ADRENO GPU" , open list , "open list:DRM DRIVER FOR MSM ADRENO GPU" , Sean Paul References: <20210423190833.25319-1-jonathan@marek.ca> <20210423190833.25319-2-jonathan@marek.ca> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210423190833.25319-2-jonathan@marek.ca> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Apr 23, 2021 at 03:08:17PM -0400, Jonathan Marek wrote: > No one knows what this is for anymore, so just remove it. Acked-by: Jordan Crouse > Signed-off-by: Jonathan Marek > --- > drivers/gpu/drm/msm/msm_gem.c | 15 +++------------ > 1 file changed, 3 insertions(+), 12 deletions(-) > > diff --git a/drivers/gpu/drm/msm/msm_gem.c b/drivers/gpu/drm/msm/msm_gem.c > index b199942266a2..09abda42d764 100644 > --- a/drivers/gpu/drm/msm/msm_gem.c > +++ b/drivers/gpu/drm/msm/msm_gem.c > @@ -207,21 +207,12 @@ int msm_gem_mmap_obj(struct drm_gem_object *obj, > vma->vm_flags &= ~VM_PFNMAP; > vma->vm_flags |= VM_MIXEDMAP; > > - if (msm_obj->flags & MSM_BO_WC) { > + if (msm_obj->flags & MSM_BO_WC) > vma->vm_page_prot = pgprot_writecombine(vm_get_page_prot(vma->vm_flags)); > - } else if (msm_obj->flags & MSM_BO_UNCACHED) { > + else if (msm_obj->flags & MSM_BO_UNCACHED) > vma->vm_page_prot = pgprot_noncached(vm_get_page_prot(vma->vm_flags)); > - } else { > - /* > - * Shunt off cached objs to shmem file so they have their own > - * address_space (so unmap_mapping_range does what we want, > - * in particular in the case of mmap'd dmabufs) > - */ > - vma->vm_pgoff = 0; > - vma_set_file(vma, obj->filp); > - > + else > vma->vm_page_prot = vm_get_page_prot(vma->vm_flags); > - } > > return 0; > } > -- > 2.26.1 > > _______________________________________________ > dri-devel mailing list > dri-devel@lists.freedesktop.org > https://lists.freedesktop.org/mailman/listinfo/dri-devel