Received: by 2002:a05:6a10:a841:0:0:0:0 with SMTP id d1csp1609816pxy; Fri, 23 Apr 2021 12:12:59 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyLf0F8wrJNwkn19ILX0bLcjwEOKnsHrFFI+g65IpbbSZpitKxjttT/FHOVS4vv1su3Kr3y X-Received: by 2002:a17:902:8544:b029:ec:8b6b:d98f with SMTP id d4-20020a1709028544b02900ec8b6bd98fmr5144979plo.68.1619205179640; Fri, 23 Apr 2021 12:12:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1619205179; cv=none; d=google.com; s=arc-20160816; b=qZhlg9KRfKKv0BdN/6N/Bdd09bBeD/qbTaWM72ijDt5j1kePrwubTaRWdtpjc/AK0X +9+ac2S01SKdD/wihTnNsabFl0wNKLq/baftd0Igkni5WPsZsJe5l4iBhilRPjOBHvVV uT2DgnKJxlf83fH4RBg53T2d1Ii6GjTKoYteUHLhUhLt5XU6/ncT2RCStTrcL2jvfcX+ NT3rfEK/OQXRFwkBsuFQkqyLEoZVMriVn6BVo7grAiV22D07cCkNQvvFctJmsmkK119D 9XqloqhnDWYMEShvHAK+Nr6E4dJE8FzN9RMG6mxbDgwfEj16QtqHkvC4bN+e6KYyQ44w 3tGQ== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=kEaQvWN4Z8yVJOtNMFNTVQ5YEguXpuTG96s4DFICCJ0=; b=Fhh5ILTJ9MpE5m7hN7IE1UvP5Z7WmQKfSGK2+COK632stHoWb3oYMqQwgezVD7DFeC NBDK8f0bZVcLN4BjEW0IDprzBfZ1PJpSyd44dTslSN0q2BGeo/Woc9q/c54LU+v8QFoF xKlIVhADgYRByQjWuXPgRCeWaXO8d/kTjoRVrvJ5oqB1TPZbIi8IMmESsnOmJknLZTBv LqCOfYDW1uIFF8JsWbiSaQb+F55wp/Vo3EGx6Y6CgX4uofWe7vN+oeQMrFVQErHbYu4m wvw73+AEgpZ0gj3GA9bpPImE2x1kMdm0NMh9NPbGQh/lPwUidTOt3IFGWs4p1twuyNqD 2+5g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@marek-ca.20150623.gappssmtp.com header.s=20150623 header.b=kuLS0suP; 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 ca13si10729654pjb.148.2021.04.23.12.12.47; Fri, 23 Apr 2021 12:12:59 -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=@marek-ca.20150623.gappssmtp.com header.s=20150623 header.b=kuLS0suP; 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 S232212AbhDWTMj (ORCPT + 99 others); Fri, 23 Apr 2021 15:12:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48786 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231735AbhDWTMj (ORCPT ); Fri, 23 Apr 2021 15:12:39 -0400 Received: from mail-qt1-x82b.google.com (mail-qt1-x82b.google.com [IPv6:2607:f8b0:4864:20::82b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5B632C06174A for ; Fri, 23 Apr 2021 12:12:02 -0700 (PDT) Received: by mail-qt1-x82b.google.com with SMTP id f12so37191540qtf.2 for ; Fri, 23 Apr 2021 12:12:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marek-ca.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=kEaQvWN4Z8yVJOtNMFNTVQ5YEguXpuTG96s4DFICCJ0=; b=kuLS0suPNfLfL/e8JYU0ZgCsM09iPvMie9U8PBPzCHE65hayjIIyW/c4VG+rtLVCSu 05TvT3RLM45wuNRjopgjY3Ors5GfQ3GgS4MzsYw0AROaDcmp3HGCEXLesOWJqNnwyUv/ KNMT2zM+KPa66AQGjuCtTmcxbdAnZZFMYgSIClJJe4aldjscpatDVowDz9PfHRWwzSvK 5ehh2Cv0Q2JZVupwoAxE/5tR84zK+L89u6vsLAHhgN95YQBxjXrULY0sjy5EImrS4d25 9KA8QFscriXuiQggAaZlQ3YITF3zntxWUoR5StcQnymT/ycSe8fELhGgl1gqMv0AD8dM tXtw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=kEaQvWN4Z8yVJOtNMFNTVQ5YEguXpuTG96s4DFICCJ0=; b=oxSagxh3HCe+NfFPNCFebaq6pSKo584Mh/gV1e/vcMUlE+aR6Y8b4qsfoRCi2rlLd+ tq4e/u9rgh1ADTc6lqKC0x+0TyE0XWLKmXILbX/LwfPQra660Lp+ruo0Ovo4NDIFTZPg EE674MggP0u6YriFDExPR80Fd2Qhali2slWCbFxGBS7+jr4Xb7QNEm9sZl/rC0pE+RrX aIzZ5DEt6y+zzV+MNN9UlconjntrAD13xRWfNBBMdDwlFztboqDVizQJZuLbCsx6Oz3/ XeiteEQiODzAGL8jEj4CxllKQ/enGRjWv/frwdaDp5wlrHQrP8ouocrA0e+B4J0N3uL5 jyhg== X-Gm-Message-State: AOAM531AE3w0Tc4WFLS34WtiXnbnB95VSOivCENl0ERqHUpCKQKQsX67 NYkRdLga/CNu1n1+NjDRnUzY6g== X-Received: by 2002:ac8:7191:: with SMTP id w17mr5368523qto.199.1619205121519; Fri, 23 Apr 2021 12:12:01 -0700 (PDT) Received: from localhost.localdomain (modemcable068.184-131-66.mc.videotron.ca. [66.131.184.68]) by smtp.gmail.com with ESMTPSA id a22sm4834630qtp.80.2021.04.23.12.11.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 23 Apr 2021 12:12:01 -0700 (PDT) From: Jonathan Marek To: freedreno@lists.freedesktop.org Cc: Akhil P Oommen , AngeloGioacchino Del Regno , Bernard Zhao , Bjorn Andersson , Daniel Vetter , Dave Airlie , David Airlie , Dmitry Baryshkov , Douglas Anderson , dri-devel@lists.freedesktop.org (open list:DRM DRIVER FOR MSM ADRENO GPU), Emil Velikov , Eric Anholt , Iskren Chernev , Jordan Crouse , Konrad Dybcio , "Kristian H. Kristensen" , Lee Jones , linux-arm-msm@vger.kernel.org (open list:DRM DRIVER FOR MSM ADRENO GPU), linux-kernel@vger.kernel.org (open list), Marijn Suijten , Rajendra Nayak , Rikard Falkeborn , Rob Clark , Sai Prakash Ranjan , Sean Paul , Sharat Masetty , Shawn Guo , Viresh Kumar , Zhenzhong Duan Subject: [PATCH 0/5] drm/msm: add MSM_BO_CACHED_COHERENT (and related changes) Date: Fri, 23 Apr 2021 15:08:16 -0400 Message-Id: <20210423190833.25319-1-jonathan@marek.ca> X-Mailer: git-send-email 2.26.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add support for MSM_BO_CACHED_COHERENT, a coherent version of MSM_BO_CACHED which is implemented by setting the IOMMU_CACHE flag. Jonathan Marek (5): drm/msm: remove unnecessary mmap logic for cached BOs drm/msm: replace MSM_BO_UNCACHED with MSM_BO_WC for internal objects drm/msm: use the right pgprot when mapping BOs in the kernel drm/msm: add MSM_BO_CACHED_COHERENT drm/msm: deprecate MSM_BO_UNCACHED (map as writecombine instead) drivers/gpu/drm/msm/adreno/a5xx_gpu.c | 4 +-- drivers/gpu/drm/msm/adreno/a5xx_power.c | 2 +- drivers/gpu/drm/msm/adreno/a5xx_preempt.c | 4 +-- drivers/gpu/drm/msm/adreno/a6xx_gpu.c | 2 +- drivers/gpu/drm/msm/adreno/a6xx_gpu_state.c | 2 +- drivers/gpu/drm/msm/adreno/adreno_device.c | 1 + drivers/gpu/drm/msm/adreno/adreno_gpu.c | 2 +- drivers/gpu/drm/msm/dsi/dsi_host.c | 2 +- drivers/gpu/drm/msm/msm_drv.c | 3 +- drivers/gpu/drm/msm/msm_drv.h | 1 + drivers/gpu/drm/msm/msm_gem.c | 34 ++++++++++----------- include/uapi/drm/msm_drm.h | 7 ++--- 12 files changed, 33 insertions(+), 31 deletions(-) -- 2.26.1