[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] PV DRM doesn't work without auto_translated_physmap feature in Dom0


  • To: Jürgen Groß <jgross@xxxxxxxx>, Santucco <santucco@xxxxxxx>, "xen-devel@xxxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxxx>
  • From: Oleksandr Andrushchenko <Oleksandr_Andrushchenko@xxxxxxxx>
  • Date: Wed, 8 Jan 2020 07:54:44 +0000
  • Accept-language: en-US
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=epam.com; dmarc=pass action=none header.from=epam.com; dkim=pass header.d=epam.com; arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=L0tfw9WMBVlBSUHJSsxTFDwAILLJZqQdL2RKX4GkIgQ=; b=dVmI40rbymMPE3jRQoFZRQ1/q2CpO7WXJw3N8gocQYNQoGa1rY3uN0Xyu4Wv2kUqAy8USyqnZxhZmwmLwtSp8fwN32/K3yM7yfojuIQqqUL1PfIRS0l6bOP9ucolpnbQAETDKzw35BnGjxxGQbEnDXcK37JZdOus9SUaKJW7hwMQBiw3T71WINLsIcPW6cehsKyTxndvQVbsN+pLEEzkgXRBjHxZOWag4Q7bmBYhXrQt/GrLBHooYSOCozuxwg9ZT0Kccy3i7mUqDuiySiD6p3yHvHS47tSQkljRnY2pWuaIkhkoSlKiU+mlRlsAIvUrkWxiJ0UIbu6OZlnGmVTA8g==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=MwSNQiTn9XNiH8gSvF+nhJoI+qlNarNqczJErMoOEiuA8EqgXvnPIfy+dMEYxHRl/epbVWcZXuKaubSL58jhE5+NJEdfLQbqZ4rL6B/ZELOFp07nA25pLkeWzWYRSdSsycNTtVvY3RxvEowtjLb5kdGkQu5X1aBZGb4+blheMThcCt/7G592YdSV/CEccFON5/5K0wwvtBfng1Q9XhnW71HfpizF0sPFoaGrQttbx9cc2sI3CVWRgoZ9BUxE0PWizR80e95+OpI+y4MDS/bpD8cJW/+0+wCqralEJ95JVSPY8bHCjPMmj9Sxv13UizMIyQSnoKMJknM6VaeDa5eM5w==
  • Authentication-results: spf=none (sender IP is ) smtp.mailfrom=Oleksandr_Andrushchenko@xxxxxxxx;
  • Delivery-date: Wed, 08 Jan 2020 07:54:53 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
  • Thread-index: AQHVxGy3Uy2wN4QJXkKZ2l02GEUbxafgaOyA
  • Thread-topic: [Xen-devel] PV DRM doesn't work without auto_translated_physmap feature in Dom0

On 1/6/20 10:38 AM, Jürgen Groß wrote:
> On 06.01.20 08:56, Santucco wrote:
>> Hello,
>>
>> I’m trying to use vdispl interface from PV OS, it doesn’t work.
>> Configuration details:
>>      Xen 4.12.1
>>      Dom0: Linux 4.20.17-gentoo #13 SMP Sat Dec 28 11:12:24 MSK 2019 
>> x86_64 Intel(R) Celeron(R) CPU N3050 @ 1.60GHz GenuineIntel GNU/Linux
>>      DomU: x86 Plan9, PV
>>      displ_be as a backend for vdispl and vkb
>>
>> when VM starts, displ_be reports about an error:
>> gnttab: error: ioctl DMABUF_EXP_FROM_REFS failed: Invalid argument 
>> (displ_be.log:221)
>>
>> related Dom0 output is:
>> [  191.579278] Cannot provide dma-buf: use_ptemode 1 
>> (dmesg.create.log:123)
>
> This seems to be a limitation of the xen dma-buf driver. It was written
> for being used on ARM initially where PV is not available.
This is true and we never tried/targeted PV domains with this 
implementation,
so if there is a need for that someone has to take a look on the proper
implementation for PV...
>
> CC-ing Oleksandr Andrushchenko who is the author of that driver. He
> should be able to tell us what would be needed to enable PV dom0.
>
> Depending on your use case it might be possible to use PVH dom0, but
> support for this mode is "experimental" only and some features are not
> yet working.
>
Well, one of the workarounds possible is to drop zero-copying use-case
(this is why display backend tries to create dmu-bufs from grants passed
by the guest domain and fails because of "Cannot provide dma-buf: 
use_ptemode 1")
So, in this case display backend will do memory copying for the incoming 
frames
and won't touch DMABUF_EXP_FROM_REFS ioctl.
To do so just disable zero-copying while building the backend [1]
>
> Juergen
>
[1] https://github.com/xen-troops/displ_be/blob/master/CMakeLists.txt#L12
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxxx
https://lists.xenproject.org/mailman/listinfo/xen-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.