search for: drm_nouveau_getparam

Displaying 16 results from an estimated 16 matches for "drm_nouveau_getparam".

2023 Jul 31
3
[PATCH] drm/nouveau: fixup the uapi header file.
...RAM_AGP_SIZE 9 -#define NOUVEAU_GETPARAM_CHIPSET_ID 11 -#define NOUVEAU_GETPARAM_VM_VRAM_BASE 12 -#define NOUVEAU_GETPARAM_GRAPH_UNITS 13 -#define NOUVEAU_GETPARAM_PTIMER_TIME 14 -#define NOUVEAU_GETPARAM_HAS_BO_USAGE 15 -#define NOUVEAU_GETPARAM_HAS_PAGEFLIP 16 -struct drm_nouveau_getparam { - uint64_t param; - uint64_t value; -}; - struct drm_nouveau_setparam { uint64_t param; uint64_t value; }; -#define DRM_IOCTL_NOUVEAU_GETPARAM DRM_IOWR(DRM_COMMAND_BASE + DRM_NOUVEAU_GETPARAM, struct drm_nouveau_getparam) #define DRM_IOCTL_NOUVEAU_SETPARAM DRM_IOWR(DR...
2015 Nov 26
0
[libdrm 08/13] nouveau: make use of nouveau_drm::fd instead of nouveau_device::fd
...- return obj; -} - void nouveau_drm_del(struct nouveau_drm **pdrm) { @@ -345,8 +334,9 @@ nouveau_device_del(struct nouveau_device **pdev) int nouveau_getparam(struct nouveau_device *dev, uint64_t param, uint64_t *value) { + struct nouveau_drm *drm = nouveau_drm(&dev->object); struct drm_nouveau_getparam r = { .param = param }; - int fd = dev->fd, ret = + int fd = drm->fd, ret = drmCommandWriteRead(fd, DRM_NOUVEAU_GETPARAM, &r, sizeof(r)); *value = r.value; return ret; @@ -355,8 +345,9 @@ nouveau_getparam(struct nouveau_device *dev, uint64_t param, uint64_t *value) int nouveau_se...
2024 May 09
0
[PATCH v4] drm/nouveau: use tile_mode and pte_kind for VM_BIND bo allocations
...t;C" { > */ > #define NOUVEAU_GETPARAM_VRAM_USED 19 > > +/* > + * NOUVEAU_GETPARAM_HAS_VMA_TILEMODE > + * > + * Query whether tile mode and PTE kind are accepted with VM allocs or > not. > + */ > +#define NOUVEAU_GETPARAM_HAS_VMA_TILEMODE 20 > + > struct drm_nouveau_getparam { > __u64 param; > __u64 value; > -- > 2.44.0 > > -------------- next part -------------- An HTML attachment was scrubbed... URL: <https://lists.freedesktop.org/archives/nouveau/attachments/20240509/5fdd35ca/attachment.htm>
2024 May 08
0
[PATCH v3] drm/nouveau: use tile_mode and pte_kind for VM_BIND bo allocations
...t;C" { > */ > #define NOUVEAU_GETPARAM_VRAM_USED 19 > > +/* > + * NOUVEAU_GETPARAM_HAS_VMA_TILEMODE > + * > + * Query whether tile mode and PTE kind are accepted with VM allocs or > not. > + */ > +#define NOUVEAU_GETPARAM_HAS_VMA_TILEMODE 20 > + > struct drm_nouveau_getparam { > __u64 param; > __u64 value; > -- > 2.44.0 > > -------------- next part -------------- An HTML attachment was scrubbed... URL: <https://lists.freedesktop.org/archives/nouveau/attachments/20240508/b039dc54/attachment.htm>
2023 Jan 27
1
[PATCH drm-next 05/14] drm/nouveau: new VM_BIND uapi interfaces
...gt; + /** >> + * @sig_ptr: pointer to &drm_nouveau_syncs to signal when finished >> + */ >> + __u64 sig_ptr; >> + /** >> + * @push_ptr: pointer to &drm_nouveau_exec_push ops >> + */ >> + __u64 push_ptr; >> +}; >> + >> #define DRM_NOUVEAU_GETPARAM 0x00 /* deprecated */ >> #define DRM_NOUVEAU_SETPARAM 0x01 /* deprecated */ >> #define DRM_NOUVEAU_CHANNEL_ALLOC 0x02 /* deprecated */ >> @@ -136,6 +346,9 @@ struct drm_nouveau_gem_cpu_fini { >> #define DRM_NOUVEAU_NVIF 0x07 >&...
2023 Jan 27
1
[PATCH drm-next 05/14] drm/nouveau: new VM_BIND uapi interfaces
...nouveau_syncs to signal when finished >>> +???? */ >>> +??? __u64 sig_ptr; >>> +??? /** >>> +???? * @push_ptr: pointer to &drm_nouveau_exec_push ops >>> +???? */ >>> +??? __u64 push_ptr; >>> +}; >>> + >>> ? #define DRM_NOUVEAU_GETPARAM?????????? 0x00 /* deprecated */ >>> ? #define DRM_NOUVEAU_SETPARAM?????????? 0x01 /* deprecated */ >>> ? #define DRM_NOUVEAU_CHANNEL_ALLOC????? 0x02 /* deprecated */ >>> @@ -136,6 +346,9 @@ struct drm_nouveau_gem_cpu_fini { >>> ? #define DRM_NOUVEAU_NVIF?????????...
2023 Jul 25
1
[PATCH drm-misc-next v8 03/12] drm/nouveau: new VM_BIND uapi interfaces
...&drm_nouveau_syncs to signal when > finished > +? ? ? ? */ > +? ? ? ?__u64 sig_ptr; > +? ? ? ?/** > +? ? ? ? * @push_ptr: pointer to &drm_nouveau_exec_push ops > +? ? ? ? */ > +? ? ? ?__u64 push_ptr; > +}; > + > ?#define DRM_NOUVEAU_GETPARAM? ? ? ? ? ?0x00 /* deprecated */ > ?#define DRM_NOUVEAU_SETPARAM? ? ? ? ? ?0x01 /* deprecated */ > ?#define DRM_NOUVEAU_CHANNEL_ALLOC? ? ? 0x02 /* deprecated */ > @@ -136,6 +339,9 @@ struct drm_nouveau_gem_cpu_fini { > ?#define DRM_NOUVEAU_NVIF? ? ? ? ? ? ? ?0x07 >...
2023 Jan 27
0
[PATCH drm-next 05/14] drm/nouveau: new VM_BIND uapi interfaces
...gnal when finished >>>> + */ >>>> + __u64 sig_ptr; >>>> + /** >>>> + * @push_ptr: pointer to &drm_nouveau_exec_push ops >>>> + */ >>>> + __u64 push_ptr; >>>> +}; >>>> + >>>> #define DRM_NOUVEAU_GETPARAM 0x00 /* deprecated */ >>>> #define DRM_NOUVEAU_SETPARAM 0x01 /* deprecated */ >>>> #define DRM_NOUVEAU_CHANNEL_ALLOC 0x02 /* deprecated */ >>>> @@ -136,6 +346,9 @@ struct drm_nouveau_gem_cpu_fini { >>>> #define DRM_NO...
2014 Jul 31
1
[libdrm PATCH 1/3] nouveau: Only export public functions.
...veau_device_del(struct nouveau_device **pdev) { struct nouveau_device_priv *nvdev = nouveau_device(*pdev); @@ -173,7 +173,7 @@ nouveau_device_del(struct nouveau_device **pdev) } } -int +drm_public int nouveau_getparam(struct nouveau_device *dev, uint64_t param, uint64_t *value) { struct drm_nouveau_getparam r = { param, 0 }; @@ -183,14 +183,14 @@ nouveau_getparam(struct nouveau_device *dev, uint64_t param, uint64_t *value) return ret; } -int +drm_public int nouveau_setparam(struct nouveau_device *dev, uint64_t param, uint64_t value) { struct drm_nouveau_setparam r = { param, value }; return...
2014 Mar 20
6
[Bug 76376] New: mesa does not build after nouveau loader changes
...ning: (near initialization for 'gp') pci_id_driver_map.c:34: warning: excess elements in struct initializer pci_id_driver_map.c:34: warning: (near initialization for 'gp') pci_id_driver_map.c:34: error: storage size of 'gp' isn't known pci_id_driver_map.c:37: error: 'DRM_NOUVEAU_GETPARAM' undeclared (first use in this function) pci_id_driver_map.c:34: warning: unused variable 'gp' pci_id_driver_map.c:42: warning: control reaches end of non-void function Makefile:512: recipe for target 'libloader_la-pci_id_driver_map.lo' failed nouveau headers should not be incl...
2013 Mar 27
3
[PATCH 1/4] drm/nvc0: implement VRAM compression
--- drivers/gpu/drm/nouveau/core/include/subdev/ltcg.h | 7 + drivers/gpu/drm/nouveau/core/subdev/fb/nvc0.c | 55 +++++---- drivers/gpu/drm/nouveau/core/subdev/ltcg/nvc0.c | 129 +++++++++++++++++++- drivers/gpu/drm/nouveau/core/subdev/vm/nvc0.c | 58 +++++++++- 4 files changed, 220 insertions(+), 29 deletions(-) diff --git
2015 Nov 27
14
[libdrm v2 01/14] nouveau: import and install a selection of nvif headers from the kernel
From: Ben Skeggs <bskeggs at redhat.com> This commit also modifies the install path of the main libdrm_nouveau header to be under a nouveau/ subdirectory. Signed-off-by: Ben Skeggs <bskeggs at redhat.com> --- include/drm/nouveau_drm.h | 1 + nouveau/Makefile.am | 11 +++- nouveau/libdrm_nouveau.pc.in | 2 +- nouveau/nvif/cl0080.h | 45 ++++++++++++++
2015 Nov 26
18
[libdrm 01/13] nouveau: move more abi16-specific logic into abi16.c
From: Ben Skeggs <bskeggs at redhat.com> Signed-off-by: Ben Skeggs <bskeggs at redhat.com> --- nouveau/abi16.c | 62 ++++++++++++++++++++++++++++++++++++++++++++++++++----- nouveau/nouveau.c | 56 +++++++------------------------------------------ nouveau/private.h | 7 ++----- 3 files changed, 67 insertions(+), 58 deletions(-) diff --git a/nouveau/abi16.c b/nouveau/abi16.c index
2010 Aug 06
4
nv vpe video decoder
Hello, I have my work on the nv vpe video decoder in a functional state. In case you didn't know this decoder accelerates mpeg2 video at the idct/mc level. I have verified that it works on nv40 hardware. I believe it works on nv30 hardware (and maybe some earlier hardware), but I cannot verify since I have none. I will reply with patches against the kernel, drm, ddx and mesa for
2015 Dec 16
16
[libdrm v3 01/14] nouveau: import and install a selection of nvif headers from the kernel
From: Ben Skeggs <bskeggs at redhat.com> This commit also modifies the install path of the main libdrm_nouveau header to be under a nouveau/ subdirectory. Signed-off-by: Ben Skeggs <bskeggs at redhat.com> --- include/drm/nouveau_drm.h | 1 + nouveau/Makefile.am | 11 +++- nouveau/libdrm_nouveau.pc.in | 2 +- nouveau/nvif/cl0080.h | 45 ++++++++++++++
2015 Aug 31
8
[RFC PATCH v2 0/5] More explicit pushbuf error handling
Hi there, Resending these now that they've had some more polish and testing, and I heard that Ben's vacation is over :-) These patches work as a starting point for more explicit error mechanisms and better robustness. At the moment, when a job hangs or faults, it seems that nouveau doesn't quite know how to handle the situation and often results in a hang. Some of these situations