Message ID | 20180325110000.2238-6-christian.koenig@amd.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <dri-devel-bounces@lists.freedesktop.org> Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id B2B3960385 for <patchwork-dri-devel@patchwork.kernel.org>; Sun, 25 Mar 2018 11:00:38 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A471B2855C for <patchwork-dri-devel@patchwork.kernel.org>; Sun, 25 Mar 2018 11:00:38 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 974F529308; Sun, 25 Mar 2018 11:00:38 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.1 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_MED, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 537302855C for <patchwork-dri-devel@patchwork.kernel.org>; Sun, 25 Mar 2018 11:00:38 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 8DA126E431; Sun, 25 Mar 2018 11:00:25 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wm0-x241.google.com (mail-wm0-x241.google.com [IPv6:2a00:1450:400c:c09::241]) by gabe.freedesktop.org (Postfix) with ESMTPS id 5E3EC6E412; Sun, 25 Mar 2018 11:00:08 +0000 (UTC) Received: by mail-wm0-x241.google.com with SMTP id l16so10534865wmh.3; Sun, 25 Mar 2018 04:00:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:date:message-id:in-reply-to:references:mime-version :content-transfer-encoding; bh=1+zspOIVd4wFtt6Q267KwIkU0mTyNGGkiYoEthi5V3I=; b=QfL8/nUz4pPWxJEurI5AgXqEVravrAe0Iq3jHwlyIGgLSbWlzK3d38028+L2LdQ00l okYpwc/VD3sqVxncDCOFmq19aBEXuBQ7GihbDpfuT4uOCblpSH+WQGoDMIO9R8ubwOTw gXoq55j5k8EqUFyfcRKHWfRXK9L2davn0LCDuRBfW4+vI/m9iCI09ZhqLWSzFkZonsYE bE4h/Dqte/uFAlkQLcEAs+0bbIabhPVEGa0vLau8PObesA7KrdZKklGY8tMvTTyU99q4 5IFmaBY6aZylM53/Hb4tl7UAJ1arQbntawYiwzYCpaJPDFTdZ2960cpdEfUb/+eEtUQX eo2Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=1+zspOIVd4wFtt6Q267KwIkU0mTyNGGkiYoEthi5V3I=; b=LbJ6CwC9/CCJ0PPJMFnP43jnu1pohub44ZQSrbrflSDF3Gpi30AAhQhUuzA86AFlFl O9BKIJQ/57S05NuzRQLLwDCGWcQRh/aLtRSLytDRctPZxWnbxiHVnTYbCEA8fDfPPofD 2GFE/ptkjOiseFh/R1vDDWO6e2JQE5fuayMMgSALsTB2mvVOyNNT1SXj7gAHqRiEcMzo ju3py2czdiznbEK3LdrC2QOzUqRroC3b3O2EsAL6NkH9WGHeeXZMzTojx7MeqcKhus+o wclsto4XqmzKISVqO1eaS8Y+wWVUxoXn72xC5rdkgKKyW1ddz0ZaUDASpVAI3ezdEgxs OXIw== X-Gm-Message-State: AElRT7HvZxNLm36OIDDew1Rh7OJbs4DwXU+IESDi7P30OLMSrvsAVQZM 3zSWmZ4RljHthylaaYj8rms= X-Google-Smtp-Source: AG47ELtrKERvqXoBKXmBPlp8DQ3oLjKGs3J+8GocffaCTOUGdHD5koWGjNI8Rl16dA5v375PKsZHRQ== X-Received: by 10.28.132.133 with SMTP id g127mr13665672wmd.50.1521975606586; Sun, 25 Mar 2018 04:00:06 -0700 (PDT) Received: from baker.fritz.box ([2a02:908:1257:4460:80f2:8bcd:4355:2edc]) by smtp.gmail.com with ESMTPSA id z3sm20492230wme.3.2018.03.25.04.00.05 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 25 Mar 2018 04:00:06 -0700 (PDT) From: "=?UTF-8?q?Christian=20K=C3=B6nig?=" <ckoenig.leichtzumerken@gmail.com> X-Google-Original-From: =?UTF-8?q?Christian=20K=C3=B6nig?= <christian.koenig@amd.com> To: linaro-mm-sig@lists.linaro.org, linux-media@vger.kernel.org, dri-devel@lists.freedesktop.org, amd-gfx@lists.freedesktop.org, linux-kernel@vger.kernel.org Subject: [PATCH 6/8] drm/amdgpu: note that we can handle peer2peer DMA-buf Date: Sun, 25 Mar 2018 12:59:58 +0200 Message-Id: <20180325110000.2238-6-christian.koenig@amd.com> X-Mailer: git-send-email 2.14.1 In-Reply-To: <20180325110000.2238-1-christian.koenig@amd.com> References: <20180325110000.2238-1-christian.koenig@amd.com> MIME-Version: 1.0 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Direct Rendering Infrastructure - Development <dri-devel.lists.freedesktop.org> List-Unsubscribe: <https://lists.freedesktop.org/mailman/options/dri-devel>, <mailto:dri-devel-request@lists.freedesktop.org?subject=unsubscribe> List-Archive: <https://lists.freedesktop.org/archives/dri-devel> List-Post: <mailto:dri-devel@lists.freedesktop.org> List-Help: <mailto:dri-devel-request@lists.freedesktop.org?subject=help> List-Subscribe: <https://lists.freedesktop.org/mailman/listinfo/dri-devel>, <mailto:dri-devel-request@lists.freedesktop.org?subject=subscribe> Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" <dri-devel-bounces@lists.freedesktop.org> X-Virus-Scanned: ClamAV using ClamSMTP |
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_prime.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_prime.c index fb43faf88eb0..2566268806c3 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_prime.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_prime.c @@ -353,6 +353,7 @@ struct drm_gem_object *amdgpu_gem_prime_import(struct drm_device *dev, if (IS_ERR(obj)) return obj; + attach_info.peer2peer = true; attach_info.priv = obj; attach = dma_buf_attach(&attach_info); if (IS_ERR(attach)) {
Importing should work out of the box. Signed-off-by: Christian König <christian.koenig@amd.com> --- drivers/gpu/drm/amd/amdgpu/amdgpu_prime.c | 1 + 1 file changed, 1 insertion(+)