From patchwork Thu Oct 1 00:27:03 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jonathan Marek X-Patchwork-Id: 11811135 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 20B3792C for ; Thu, 1 Oct 2020 08:16:34 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (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 E5DEB2087E for ; Thu, 1 Oct 2020 08:16:33 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=marek-ca.20150623.gappssmtp.com header.i=@marek-ca.20150623.gappssmtp.com header.b="X2OaIXnp" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org E5DEB2087E Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=marek.ca Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 61E4E6E86F; Thu, 1 Oct 2020 08:15:48 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-qk1-x743.google.com (mail-qk1-x743.google.com [IPv6:2607:f8b0:4864:20::743]) by gabe.freedesktop.org (Postfix) with ESMTPS id A40576E83A for ; Thu, 1 Oct 2020 00:28:48 +0000 (UTC) Received: by mail-qk1-x743.google.com with SMTP id o5so3569876qke.12 for ; Wed, 30 Sep 2020 17:28:48 -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=KfbeZ1InQAwZth4mJ7971yKIR8SQx6BQ7+DGpeWilgg=; b=X2OaIXnpxWi1p8YsjA3OZDjXABig1sqic6dMuCMEdOXQinJRdlMgH5OIsMXjc7k4GF 6XzFdIZSUOvzN40OsADAZKOHsev3QLew1RHkhw3EjdGyefyecLaXTtmHgeIIZ15XZ593 YmNIHkyK2hF683R11QO0PLgqIXWZ7UbPZuoru916rGemu5wboNogkzooFKN5wnInPWzL 3Wb008S1DiaEFNcTpPKTL+STdrTbka9M49qPFxH334BbmoU7wdSpBvOhqPQ4mz/SkkCC 1hU3XT8nI+FT8A/3xhCq7yCjLoqRoItLMCKwc/f/tBcmJpaA2bpnKdh+497yWohkJgvN HjaA== 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=KfbeZ1InQAwZth4mJ7971yKIR8SQx6BQ7+DGpeWilgg=; b=EknlgFQYC6p19YPe+zG/ZS/YuaI1Kn3DhYM+P+jMWTcQLiLCJDVH6wAXQtRYLGPQyd ey9TkAQ+lyZU+FhHpu1ojr5l0hzrQPp12XquX4Z/5lD/IvVL+agSQrMO1nkwZFl3yBNV 51d3mn4+0X69svdBdLiDSQ4Q25fzssRFaLkF7OAMZpof/pmWG8hZjz/xQZQUBvxwFInh ptN/RuxMP3NWgm7hTfe42TuX9ke5yv9HdZGrdUHRmqKxBX1y04Bf0DqsKyYykuqOLyal rfUQad0969T6wo6E09cjATDO8eF+0BRRtnPlIWAg1wLymEgJLStH5nUKvicQdxxzYIkH y73g== X-Gm-Message-State: AOAM532Jz5RrG5osrpC/cXrEO7qiltWqI2dmPUyajuIGpMhi7QV4DrWz +YibITupue2k7fa0WgM1S0ktkA== X-Google-Smtp-Source: ABdhPJwINBo5uh42Mio6f1rg+sxf+yJ7Ja4lfnT3Lsq25qym0EpvD2ez7RBLEDNX7+D+OdzeZGP8Cw== X-Received: by 2002:a05:620a:90c:: with SMTP id v12mr5187417qkv.16.1601512127320; Wed, 30 Sep 2020 17:28:47 -0700 (PDT) Received: from localhost.localdomain ([147.253.86.153]) by smtp.gmail.com with ESMTPSA id 205sm3850908qki.118.2020.09.30.17.28.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 30 Sep 2020 17:28:46 -0700 (PDT) From: Jonathan Marek To: freedreno@lists.freedesktop.org Subject: [PATCH 0/3] drm/msm: support for host-cached BOs Date: Wed, 30 Sep 2020 20:27:03 -0400 Message-Id: <20201001002709.21361-1-jonathan@marek.ca> X-Mailer: git-send-email 2.26.1 MIME-Version: 1.0 X-Mailman-Approved-At: Thu, 01 Oct 2020 08:15:43 +0000 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: David Airlie , "open list:DRM DRIVER FOR MSM ADRENO GPU" , Sharat Masetty , open list , "open list:DRM DRIVER FOR MSM ADRENO GPU" , AngeloGioacchino Del Regno , Sean Paul Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" This is to support cached and cached-coherent memory types in vulkan. I made a corresponding WIP merge request [1] which shows usage of this. [1] https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6949 Jonathan Marek (3): drm/msm: add MSM_BO_CACHED_COHERENT drm/msm: add DRM_MSM_GEM_SYNC_CACHE for non-coherent cache maintenance drm/msm: bump up the uapi version drivers/gpu/drm/msm/adreno/adreno_device.c | 1 + drivers/gpu/drm/msm/msm_drv.c | 24 ++++++++++++++++++++- drivers/gpu/drm/msm/msm_drv.h | 3 +++ drivers/gpu/drm/msm/msm_gem.c | 23 ++++++++++++++++++++ include/uapi/drm/msm_drm.h | 25 +++++++++++++++++++--- 5 files changed, 72 insertions(+), 4 deletions(-)