Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp4239044ybg; Mon, 8 Jun 2020 02:46:31 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzvnmJmLABcq/mvQFEQR3c4TcxqXX5wMvSDfC1hJRy3rGp15iU7hXJMtZqbi4lNGpp06QRB X-Received: by 2002:a17:906:5243:: with SMTP id y3mr21279848ejm.193.1591609591034; Mon, 08 Jun 2020 02:46:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591609591; cv=none; d=google.com; s=arc-20160816; b=bsVEs3Yj3XthGClyCvvclkUjIKv16REdDhTn8QgG+EGAdyPcF8gfwaQFkn69ETHVlR KGQF2Knmzo4tQt7QgQbENIDTyULwfLj21VSL1ejuzUiXPBi65JDOmKumff+MWwxO/OgD 6xXMuJjDV5NwYCtJKbQrA7nZkpeAJvehpGkjMchmf/y1pTrNpQDDylJS+Qv6CWzmdKtF MP3Tg0yCYbIiMrkGa+1FSUf49ZGIsh6hIxhqIWsWJttydjWKi4jfASH6WTgmmxAY+4XI xQsL4u4Cgnazxooln8+1BaWG7Hj58nedhZrhvW89887KS/crmTN2udeFsHKvIUNOB/hb eaaw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=U5U6dQ9lCe7itmDsGxNs3cBdub7pl5VNIW2XNh4JFS0=; b=bs5zqRcVYrG9wAm6O1CpPPVC/E4+j/hLy0BxDo0i7TxdCMxCVEiTm7Q+8P70t5WWQj t2xIcCw1MPyd/Dx3jvF3GAp/8G7hKfgVb7ZWhfcf6mJY2jzg4rGCSq35m7GPH9TTMex+ TrmWStTbJg0Y/gKA208c6UBN9QZRuedLBTUesjTP+/Ws2dVtiiOiiFjzAWwhJF24+dmg DglOkz1Lbj3YU6VjnPelKOuCYJSjhJy6feSp3fRsrG7e+M02oMzGU431aWFvWIOGMOGd c11O2mDb53uLXZcY1ugvkomo68EH2Ekzoy59b9WzRNHTV3VpbnMfslOmZYeKLKgMlJ16 5xow== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=gbwZExKE; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f18si8732422ejf.617.2020.06.08.02.46.07; Mon, 08 Jun 2020 02:46:31 -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=@redhat.com header.s=mimecast20190719 header.b=gbwZExKE; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729270AbgFHJng (ORCPT + 99 others); Mon, 8 Jun 2020 05:43:36 -0400 Received: from us-smtp-delivery-1.mimecast.com ([207.211.31.120]:59648 "EHLO us-smtp-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1728745AbgFHJnf (ORCPT ); Mon, 8 Jun 2020 05:43:35 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1591609413; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=U5U6dQ9lCe7itmDsGxNs3cBdub7pl5VNIW2XNh4JFS0=; b=gbwZExKEyBWI2JSJdcxn0UBh1+iK9moq+tAJySJd5owC8U5r5sETBzzrHyWZdCLYLZQWWN 1LRWMqZHH0ZdY9422EGqJH/3mtASHcnNDta4mHgNJ3mMqf45Ij48fsQo3FIqlH+jODYaCd DBWKz9rXZLie12bs7DIyfk3VlBGUJvk= Received: from mail-wm1-f72.google.com (mail-wm1-f72.google.com [209.85.128.72]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-351-yiegwLabOKWkn_kv8RuloQ-1; Mon, 08 Jun 2020 05:43:32 -0400 X-MC-Unique: yiegwLabOKWkn_kv8RuloQ-1 Received: by mail-wm1-f72.google.com with SMTP id j128so5025028wmj.6 for ; Mon, 08 Jun 2020 02:43:32 -0700 (PDT) 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:references :mime-version:content-disposition:in-reply-to; bh=U5U6dQ9lCe7itmDsGxNs3cBdub7pl5VNIW2XNh4JFS0=; b=iniO0BZr+xZGjl7NK4tQ6vNFw3K3lOnYZzu/Exs5djsIqepLpG4uUSsm565+jQ3kEE 0T0NROVtR/UqJWDD1U67IkjSiSwQGYsZXI3yU7QguMqaVFtmDmh8ATLnDOj7uGwgeUQG EWm7HafKbDotrUDzyErGRy4yyFi0xN6Kib022Iv3ZHy2SwKarXW3QTxudg1uA2MUZzgy aUtYBBq1nxXVWUMpXmmgF3EO2SEnRnh7IowrPog64RDMiPxsOV4qkBmrlRZCPob7CxOm 3HJwAET0/SE9XL2pn5ijKqdJzKeH1Knu5IKCv6OXArm+K29LHTPVx0dCGAUow8hJBSwi DRJA== X-Gm-Message-State: AOAM532tJohCwokkIvjnNeEVbpzMkgxADqem4kUxKG0dvKWlQorA82WQ uZcZpLDQ/BDnKK7QFM5CcICAtECaWXQLDd/Ju5pc2q8ITnp/eFzUyWyXFTp+Af/Q2l57fOrfk45 qRog4ZMgnKKwaS8aB3CBiNAgo X-Received: by 2002:a1c:7c0e:: with SMTP id x14mr15017563wmc.1.1591609411311; Mon, 08 Jun 2020 02:43:31 -0700 (PDT) X-Received: by 2002:a1c:7c0e:: with SMTP id x14mr15017554wmc.1.1591609411160; Mon, 08 Jun 2020 02:43:31 -0700 (PDT) Received: from redhat.com (bzq-109-64-41-91.red.bezeqint.net. [109.64.41.91]) by smtp.gmail.com with ESMTPSA id u9sm18951734wme.16.2020.06.08.02.43.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 08 Jun 2020 02:43:30 -0700 (PDT) Date: Mon, 8 Jun 2020 05:43:27 -0400 From: "Michael S. Tsirkin" To: David Stevens Cc: Gerd Hoffmann , David Airlie , Daniel Vetter , Jason Wang , Sumit Semwal , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , open list , ML dri-devel , "open list:VIRTIO GPU DRIVER" , Linux Media Mailing List , "moderated list:DMA BUFFER SHARING FRAMEWORK" , virtio-dev@lists.oasis-open.org Subject: Re: [PATCH v3 4/4] drm/virtio: Support virtgpu exported resources Message-ID: <20200608054234-mutt-send-email-mst@kernel.org> References: <20200311112004.47138-1-stevensd@chromium.org> <20200311112004.47138-5-stevensd@chromium.org> <20200513123326-mutt-send-email-mst@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, May 15, 2020 at 04:26:15PM +0900, David Stevens wrote: > > > + if (virtio_has_feature(vgdev->vdev, VIRTIO_GPU_F_RESOURCE_UUID)) { > > > + vgdev->has_resource_assign_uuid = true; > > > + } > > > > > > Just a question: this relies on DMA bufs so I assume it is > > not really assumed to work when DMA API is bypassed, right? > > Rather than worry what does it mean, how about just > > disabling this feature without PLATFORM_DMA for now? > > By PLATFORM_DMA, do you mean CONFIG_DMA_SHARED_BUFFER? Sorry, no. I mean VIRTIO_F_IOMMU_PLATFORM which in the future will be renamed to VIRTIO_F_PLATFORM_ACCESS. > Virtio-gpu > depends on DRM, which selects that feature. So I think DMA bufs should > always be available when virtio-gpu is present. > > -David