Displaying 20 results from an estimated 339 matches for "shmem".
2020 Sep 08
2
[PATCH] drm/virtio: drop quirks handling
...ns(+), 23 deletions(-)
diff --git a/drivers/gpu/drm/virtio/virtgpu_object.c b/drivers/gpu/drm/virtio/virtgpu_object.c
index 729f98ad7c02..9c35ce64ff9e 100644
--- a/drivers/gpu/drm/virtio/virtgpu_object.c
+++ b/drivers/gpu/drm/virtio/virtgpu_object.c
@@ -141,7 +141,6 @@ static int virtio_gpu_object_shmem_init(struct virtio_gpu_device *vgdev,
struct virtio_gpu_mem_entry **ents,
unsigned int *nents)
{
- bool use_dma_api = !virtio_has_dma_quirk(vgdev->vdev);
struct virtio_gpu_object_shmem *shmem = to_virtio_gpu_shmem(bo);
struct scatterlist *sg;
int si, ret;
@@ -162,15 +161,11 @@...
2020 Sep 08
2
[PATCH] drm/virtio: drop quirks handling
...ns(+), 23 deletions(-)
diff --git a/drivers/gpu/drm/virtio/virtgpu_object.c b/drivers/gpu/drm/virtio/virtgpu_object.c
index 729f98ad7c02..9c35ce64ff9e 100644
--- a/drivers/gpu/drm/virtio/virtgpu_object.c
+++ b/drivers/gpu/drm/virtio/virtgpu_object.c
@@ -141,7 +141,6 @@ static int virtio_gpu_object_shmem_init(struct virtio_gpu_device *vgdev,
struct virtio_gpu_mem_entry **ents,
unsigned int *nents)
{
- bool use_dma_api = !virtio_has_dma_quirk(vgdev->vdev);
struct virtio_gpu_object_shmem *shmem = to_virtio_gpu_shmem(bo);
struct scatterlist *sg;
int si, ret;
@@ -162,15 +161,11 @@...
2020 Sep 08
0
[PATCH] drm/virtio: drop quirks handling
...gt; diff --git a/drivers/gpu/drm/virtio/virtgpu_object.c b/drivers/gpu/drm/virtio/virtgpu_object.c
> index 729f98ad7c02..9c35ce64ff9e 100644
> --- a/drivers/gpu/drm/virtio/virtgpu_object.c
> +++ b/drivers/gpu/drm/virtio/virtgpu_object.c
> @@ -141,7 +141,6 @@ static int virtio_gpu_object_shmem_init(struct virtio_gpu_device *vgdev,
> struct virtio_gpu_mem_entry **ents,
> unsigned int *nents)
> {
> - bool use_dma_api = !virtio_has_dma_quirk(vgdev->vdev);
> struct virtio_gpu_object_shmem *shmem = to_virtio_gpu_shmem(bo);
> struct scatterlist *sg;
>...
2019 Sep 13
0
[PATCH 2/8] drm/shmem: switch shmem helper to &drm_gem_object_funcs.mmap
Switch gem shmem helper to the new mmap() workflow,
from &gem_driver.fops.mmap to &drm_gem_object_funcs.mmap.
Signed-off-by: Gerd Hoffmann <kraxel at redhat.com>
---
include/drm/drm_gem_shmem_helper.h | 6 ++----
drivers/gpu/drm/drm_gem_shmem_helper.c | 26 ++++++++-----------------
drivers/g...
2019 Sep 17
0
[PATCH v2 02/11] drm/shmem: switch shmem helper to &drm_gem_object_funcs.mmap
Switch gem shmem helper to the new mmap() workflow,
from &gem_driver.fops.mmap to &drm_gem_object_funcs.mmap.
v2: Fix vm_flags and vm_page_prot handling.
Signed-off-by: Gerd Hoffmann <kraxel at redhat.com>
---
include/drm/drm_gem_shmem_helper.h | 6 ++----
drivers/gpu/drm/drm_gem_shmem_helper...
2019 Sep 19
0
[PATCH v3 02/11] drm/shmem: switch shmem helper to &drm_gem_object_funcs.mmap
Switch gem shmem helper to the new mmap() workflow,
from &gem_driver.fops.mmap to &drm_gem_object_funcs.mmap.
v2: Fix vm_flags and vm_page_prot handling.
Signed-off-by: Gerd Hoffmann <kraxel at redhat.com>
---
include/drm/drm_gem_shmem_helper.h | 6 ++----
drivers/gpu/drm/drm_gem_shmem_helper...
2019 Oct 16
0
[PATCH v4 02/11] drm/shmem: switch shmem helper to &drm_gem_object_funcs.mmap
Switch gem shmem helper to the new mmap() workflow,
from &gem_driver.fops.mmap to &drm_gem_object_funcs.mmap.
v2: Fix vm_flags and vm_page_prot handling.
Signed-off-by: Gerd Hoffmann <kraxel at redhat.com>
Reviewed-by: Steven Price <steven.price at arm.com>
---
include/drm/drm_gem_shmem_helpe...
1999 Apr 16
2
Problems compiling Samba 2.0.3
Hi,
I have a problem when I compile Samba 2.0.3, the next error message is
generated doing "make":
Using LIBS =
Compiling locking/shmem.c
locking/shmem.c: In function `smb_shm_open':
locking/shmem.c:921: `PROT_READ' undeclared (first use this function)
locking/shmem.c:921: (Each undeclared identifier is reported only once
locking/shmem.c:921: for each function it appears in.)
locking/shmem.c:921: `PROT_WRITE' undeclared...
2018 Feb 12
4
[PATCH v3 1/2] drm/virtio: Add window server support
Hi,
> > (a) software rendering: client allocates shared memory buffer, renders
> > into it, then passes a file handle for that shmem block together
> > with some meta data (size, format, ...) to the wayland server.
> >
> > (b) gpu rendering: client opens a render node, allocates a buffer,
> > asks the cpu to renders into it, exports the buffer as dma-buf
> > (DRM_IOCTL_PRIME...
2018 Feb 12
4
[PATCH v3 1/2] drm/virtio: Add window server support
Hi,
> > (a) software rendering: client allocates shared memory buffer, renders
> > into it, then passes a file handle for that shmem block together
> > with some meta data (size, format, ...) to the wayland server.
> >
> > (b) gpu rendering: client opens a render node, allocates a buffer,
> > asks the cpu to renders into it, exports the buffer as dma-buf
> > (DRM_IOCTL_PRIME...
2020 May 11
1
[PATCH 4/9] drm/virtio: Call the right shmem helpers
drm_gem_shmem_get_sg_table is meant to implement
obj->funcs->get_sg_table, for prime exporting. The one we want is
drm_gem_shmem_get_pages_sgt, which also handles imported dma-buf, not
just native objects.
v2: Rebase, this stuff moved around in
commit 2f2aa13724d56829d910b2fa8e80c502d388f106
Author: Gerd...
2019 Sep 17
0
[PATCH 2/8] drm/shmem: switch shmem helper to &drm_gem_object_funcs.mmap
Hi,
> > - /* VM_PFNMAP was set by drm_gem_mmap() */
> > - vma->vm_flags &= ~VM_PFNMAP;
> > - vma->vm_flags |= VM_MIXEDMAP;
> > + vma->vm_flags |= (VM_MIXEDMAP|VM_DONTEXPAND);
>
> I'm finding this a bit hard to follow - but I think here we've lost
> VM_IO and VM_DONTDUMP which used to be set by drm_gem_mmap().
Yep. Intentional, but I think I
2023 Mar 26
0
[PATCH v13 01/10] drm/shmem-helper: Switch to reservation lock
Am 25.03.23 um 15:58 schrieb Dmitry Osipenko:
> On 3/15/23 16:46, Dmitry Osipenko wrote:
>> On 3/14/23 05:26, Dmitry Osipenko wrote:
>>> @@ -633,7 +605,10 @@ int drm_gem_shmem_mmap(struct drm_gem_shmem_object *shmem, struct vm_area_struct
>>> return ret;
>>> }
>>>
>>> + dma_resv_lock(shmem->base.resv, NULL);
>>> ret = drm_gem_shmem_get_pages(shmem);
>>> + dma_resv_unlock(shmem->base.resv);
>>...
1999 May 27
0
Diagnosis Test Pass, But...
...10) are
included below to show the activity of my most recent attempt to properly
connect.
Brian Lee Bowers | Division of Government Research
Computer Aide III | University of New Mexico
dgr0bb@unm.edu |
==================== log.smb ====================
[1999/05/27 13:07:03, 5] locking/shmem.c:smb_shm_open(819)
smb_shm_open : using shmem file /usr/local/samba/var/locks/SHARE_MEM_FILE to be of size 1048576
[1999/05/27 13:07:03, 5] locking/shmem.c:smb_shm_register_process(402)
smb_shm_register_process : writing record for pid 14897 at offset 0
[1999/05/27 13:07:03, 5] locking/shmem.c...
2023 Jan 27
0
[PATCH v10 06/11] drm/shmem-helper: Don't use vmap_use_count for dma-bufs
On Thu, Jan 26, 2023 at 03:24:30PM +0300, Dmitry Osipenko wrote:
> On 1/26/23 15:17, Gerd Hoffmann wrote:
> > On Mon, Jan 09, 2023 at 12:04:40AM +0300, Dmitry Osipenko wrote:
> >> its own refcounting of vmaps, use it instead of drm-shmem
> >> counting. This change prepares drm-shmem for addition of memory shrinker
> >> support where drm-shmem will use a single dma-buf reservation lock for
> >> all operations performed over dma-bufs.
> >
> > Likewise truncated?
>
> Should be the email p...
2018 Feb 06
5
[PATCH v3 1/2] drm/virtio: Add window server support
...dressing.
You are describing the details, but I'm missing the big picture ...
So, virtualization aside, how do buffers work in wayland? As far I know
it goes like this:
(a) software rendering: client allocates shared memory buffer, renders
into it, then passes a file handle for that shmem block together
with some meta data (size, format, ...) to the wayland server.
(b) gpu rendering: client opens a render node, allocates a buffer,
asks the cpu to renders into it, exports the buffer as dma-buf
(DRM_IOCTL_PRIME_HANDLE_TO_FD), passes this to the wayland server...
2018 Feb 06
5
[PATCH v3 1/2] drm/virtio: Add window server support
...dressing.
You are describing the details, but I'm missing the big picture ...
So, virtualization aside, how do buffers work in wayland? As far I know
it goes like this:
(a) software rendering: client allocates shared memory buffer, renders
into it, then passes a file handle for that shmem block together
with some meta data (size, format, ...) to the wayland server.
(b) gpu rendering: client opens a render node, allocates a buffer,
asks the cpu to renders into it, exports the buffer as dma-buf
(DRM_IOCTL_PRIME_HANDLE_TO_FD), passes this to the wayland server...
2020 Sep 29
0
[PATCH v3 3/7] drm/gem: Use struct dma_buf_map in GEM vmap ops and convert GEM backends
...drivers/gpu/drm/amd/amdgpu/amdgpu_dma_buf.h | 4 +-
drivers/gpu/drm/ast/ast_cursor.c | 29 +++----
drivers/gpu/drm/ast/ast_drv.h | 7 +-
drivers/gpu/drm/drm_gem.c | 22 ++---
drivers/gpu/drm/drm_gem_cma_helper.c | 14 ++--
drivers/gpu/drm/drm_gem_shmem_helper.c | 48 ++++++-----
drivers/gpu/drm/drm_gem_vram_helper.c | 90 +++++++++++----------
drivers/gpu/drm/etnaviv/etnaviv_drv.h | 4 +-
drivers/gpu/drm/etnaviv/etnaviv_gem_prime.c | 11 ++-
drivers/gpu/drm/exynos/exynos_drm_gem.c | 6 +-
drivers/gpu/drm/exynos/exynos_drm_g...
2020 Oct 15
1
[PATCH v4 06/10] drm/gem: Use struct dma_buf_map in GEM vmap ops and convert GEM backends
...drivers/gpu/drm/amd/amdgpu/amdgpu_object.h | 1 -
drivers/gpu/drm/ast/ast_cursor.c | 27 +++--
drivers/gpu/drm/ast/ast_drv.h | 7 +-
drivers/gpu/drm/drm_gem.c | 23 +++--
drivers/gpu/drm/drm_gem_cma_helper.c | 10 +-
drivers/gpu/drm/drm_gem_shmem_helper.c | 48 +++++----
drivers/gpu/drm/drm_gem_vram_helper.c | 107 ++++++++++----------
drivers/gpu/drm/etnaviv/etnaviv_drv.h | 2 +-
drivers/gpu/drm/etnaviv/etnaviv_gem_prime.c | 9 +-
drivers/gpu/drm/lima/lima_gem.c | 6 +-
drivers/gpu/drm/lima/lima_sched.c...
2020 Oct 15
0
[PATCH v4 06/10] drm/gem: Use struct dma_buf_map in GEM vmap ops and convert GEM backends
...dgpu_object.h | 1 -
> drivers/gpu/drm/ast/ast_cursor.c | 27 +++--
> drivers/gpu/drm/ast/ast_drv.h | 7 +-
> drivers/gpu/drm/drm_gem.c | 23 +++--
> drivers/gpu/drm/drm_gem_cma_helper.c | 10 +-
> drivers/gpu/drm/drm_gem_shmem_helper.c | 48 +++++----
> drivers/gpu/drm/drm_gem_vram_helper.c | 107 ++++++++++----------
> drivers/gpu/drm/etnaviv/etnaviv_drv.h | 2 +-
> drivers/gpu/drm/etnaviv/etnaviv_gem_prime.c | 9 +-
> drivers/gpu/drm/lima/lima_gem.c | 6 +-
> driv...