What happened to basic prime support of bochs driver?

2023-01-27 Thread lepton
Hi Gerd, It seems in the latest kernel, there is no PRIME support for bochs-drm driver, I've found that you have an old CL which adds basic prime support to it. https://www.mail-archive.com/linux-kernel@vger.kernel.org/msg1893205.html Do you remember why it finally doesn't go through? Thanks!

Re: Why we didn't use embedded gem object for virtio gpu when making ttm bo a gem bo subclass?

2021-08-15 Thread lepton
hanks! On Sun, Aug 15, 2021 at 9:46 PM Gerd Hoffmann wrote: > > On Fri, Aug 13, 2021 at 12:42:51PM -0700, lepton wrote: > > Hi Gerd, > > > > We found a bug in 5.4 kernel and virtgpu_gem_prime_mmap doesn't work > > because it references vma_node in gem_base object wh

Why we didn't use embedded gem object for virtio gpu when making ttm bo a gem bo subclass?

2021-08-14 Thread lepton
Hi Gerd, We found a bug in 5.4 kernel and virtgpu_gem_prime_mmap doesn't work because it references vma_node in gem_base object while ttm code initialized vma_node in tbo.base object. I am wondering, in your original serial: https://patchwork.kernel.org/project/dri-devel/cover/20190805124310.3275-

Re: [PATCH 1/2] drm/vgem: Do not allocate backing shmemfs file for an import dmabuf object

2020-07-08 Thread lepton
> > vgem_gem_dumb_map(): > if (!obj->filp) return -EINVAL; > > falling foul of the same trap as above. > > Reported-by: Lepton Wu > Fixes: af33a9190d02 ("drm/vgem: Enable dmabuf import interfaces") > Signed-off-by: Chris Wilson > Cc: Lepton Wu

Re: [PATCH 1/2] drm/vgem: Do not allocate backing shmemfs file for an import dmabuf object

2020-07-08 Thread lepton
On Tue, Jul 7, 2020 at 10:20 AM Chris Wilson wrote: > > Quoting lepton (2020-07-07 18:05:21) > > On Tue, Jul 7, 2020 at 9:00 AM Chris Wilson > > wrote: > > > > > > If we assign obj->filp, we believe that the create vgem bo is native and > > >

Re: [PATCH 1/2] drm/vgem: Do not allocate backing shmemfs file for an import dmabuf object

2020-07-08 Thread lepton
ap(), which checked for > obj->filp assuming that it would be NULL. > > Well it would had it been updated to use the common > drm_gem_dum_map_offset() helper, instead it has > > vgem_gem_dumb_map(): > if (!obj->filp) return -EINVAL; > > falling foul of the sam

[RFC] drm/vgem: Don't use get_page in fault handler.

2020-07-07 Thread Lepton Wu
O_RDWR); // vgem int dfd = open("/dev/dri/card1", O_RDWR); // virtio gpu int ret; struct drm_mode_create_dumb ct = {}; ct.height = HEIGHT; ct.width = WIDTH; ct.bpp = 32; ret = ioctl(dfd, DRM_IOCTL_MODE_CREATE_DUMB, &ct);

Re: RFC: drm/virtio: Dummy virtio GPU

2020-04-15 Thread lepton
On Fri, Mar 27, 2020 at 1:20 AM Gerd Hoffmann wrote: > > > > Hmm, yes, I can see loopback virtio being useful for various cases. > > > Testing being one. A dummy virtio-gpu could be done too, or a more > > > advanced version which exports the display as vnc. > > So what's your suggestion on this?

Re: RFC: drm/virtio: Dummy virtio GPU

2020-02-26 Thread lepton
On Tue, Feb 25, 2020 at 2:29 AM Gerd Hoffmann wrote: > > On Mon, Feb 24, 2020 at 03:01:54PM -0800, Lepton Wu wrote: > > Hi, > > > > I'd like to get comments on this before I polish it. This is a > > simple way to get something similar with vkms but it heavily re

[PATCH] RFC: drm/virtio: Dummy virtio GPU

2020-02-25 Thread Lepton Wu
The idea here is: if we run the vm headless, we don't really need to communicate with VMM, and we even don't need any VMM support for virtio-gpu. Of course, only 2d works. But it's enough for some use case. And this looks simpler than vkms. Signed-off-by: Lepton Wu --- drivers

RFC: drm/virtio: Dummy virtio GPU

2020-02-25 Thread Lepton Wu
Hi, I'd like to get comments on this before I polish it. This is a simple way to get something similar with vkms but it heavily reuse the code provided by virtio-gpu. Please feel free to give me any feedbacks or comments. Thanks! ___ dri-devel mailin

[PATCH] drm/ttm: let ttm_bo_wait timeout be configurable

2019-09-05 Thread Lepton Wu
. Signed-off-by: Lepton Wu --- drivers/gpu/drm/Kconfig | 2 ++ drivers/gpu/drm/ttm/Kconfig | 7 +++ drivers/gpu/drm/ttm/ttm_bo.c | 2 +- 3 files changed, 10 insertions(+), 1 deletion(-) create mode 100644 drivers/gpu/drm/ttm/Kconfig diff --git a/drivers/gpu/drm/Kconfig b/drivers/gpu/drm

Re: [PATCH] drm/virtio: add create_handle support.

2017-11-14 Thread lepton
Ping. On Wed, Nov 8, 2017 at 10:42 AM, Lepton Wu wrote: > Add create_handle support to virtio fb. Without this, screenshot tool > in chromium OS can't work. > > Signed-off-by: Lepton Wu > --- > drivers/gpu/drm/virtio/virtgpu_display.c | 12 > 1 f

[PATCH] drm/virtio: add create_handle support.

2017-11-09 Thread Lepton Wu
Add create_handle support to virtio fb. Without this, screenshot tool in chromium OS can't work. Signed-off-by: Lepton Wu --- drivers/gpu/drm/virtio/virtgpu_display.c | 12 1 file changed, 12 insertions(+) diff --git a/drivers/gpu/drm/virtio/virtgpu_display.c b/drivers/gp

[PATCH] drm/cirrus drm/virtio: add create_handle support.

2017-11-08 Thread Lepton Wu
Add create_handle support to cirrus and virtio fb which are used in virtual machines. Without this, screenshot tool in chromium OS can't work. Signed-off-by: Lepton Wu --- drivers/gpu/drm/cirrus/cirrus_main.c | 9 + drivers/gpu/drm/virtio/virtgpu_display.c | 12 ++