search for: drm_need_swiotlb

Displaying 6 results from an estimated 6 matches for "drm_need_swiotlb".

2024 Jan 30
0
GT216M [GeForce GT 240M] (NV50/Tesla) sddm fails to start since commit 0a2f6372a43ff5e948b8b10be34d4473f6c2ef6c
...?drivers/gpu/drm/nouveau/nouveau_ttm.c | 10 +++------- ?1 file changed, 3 insertions(+), 7 deletions(-) I've tried various kernel (both vanilla or gentoo-patched), with custom or distro configuration; I didn't observe any difference since 6.5. I didn't check what the return value of drm_need_swiotlb() is when sddm starts fine; but +++ b/drivers/gpu/drm/nouveau/nouveau_ttm.c @@ -302,7 +302,7 @@ nouveau_ttm_init(struct nouveau_drm *drm) ??????? ret = ttm_device_init(&drm->ttm.bdev, &nouveau_bo_driver, drm->dev-> dev, ????????????????????????????????? dev->anon_inode->i_m...
2023 May 18
1
[PATCH 3/4] drm/nouveau: stop using is_swiotlb_active
...BLED(CONFIG_X86) - need_swiotlb = is_swiotlb_active(dev->dev); -#endif - ret = ttm_device_init(&drm->ttm.bdev, &nouveau_bo_driver, drm->dev->dev, dev->anon_inode->i_mapping, - dev->vma_offset_manager, need_swiotlb, + dev->vma_offset_manager, + drm_need_swiotlb(drm->client.mmu.dmabits), drm->client.mmu.dmabits <= 32); if (ret) { NV_ERROR(drm, "error initialising bo driver, %d\n", ret); -- 2.39.2
2024 Oct 04
1
[PATCH v2 1/2] drm/ttm: Change ttm_device_init to use a struct instead of multiple bools
...m_init(struct nouveau_drm *drm) > > > ?? ret = ttm_device_init(&drm->ttm.bdev, > > > &nouveau_bo_driver, > > > drm->dev->dev, > > > ?? ? dev->anon_inode->i_mapping, > > > ?? ? dev->vma_offset_manager, > > > - ? drm_need_swiotlb(drm- > > > > client.mmu.dmabits), > > > - ? drm->client.mmu.dmabits <= > > > 32); > > > + ? (struct > > > ttm_device_init_flags){ > > > + ? .use_dma_alloc = > > > + ? drm_need_swiotlb(drm- > > > > clie...
2024 Oct 05
1
[PATCH v2 1/2] drm/ttm: Change ttm_device_init to use a struct instead of multiple bools
...) > > > > ?? ret = ttm_device_init(&drm->ttm.bdev, > > > > &nouveau_bo_driver, > > > > drm->dev->dev, > > > > ?? ? dev->anon_inode->i_mapping, > > > > ?? ? dev->vma_offset_manager, > > > > - ? drm_need_swiotlb(drm- > > > > > client.mmu.dmabits), > > > > - ? drm->client.mmu.dmabits <= > > > > 32); > > > > + ? (struct > > > > ttm_device_init_flags){ > > > > + ? .use_dma_alloc = > > > > + ? drm_need_sw...
2023 May 18
4
unexport swiotlb_active
Hi all, this little series removes the last swiotlb API exposed to modules. Diffstat: arch/x86/include/asm/xen/swiotlb-xen.h | 6 ------ arch/x86/kernel/pci-dma.c | 28 ++++------------------------ drivers/gpu/drm/nouveau/nouveau_ttm.c | 10 +++------- drivers/pci/xen-pcifront.c | 6 ------ kernel/dma/swiotlb.c | 1 - 5 files changed, 7
2024 Oct 02
2
[PATCH v2 0/2] drm/ttm: Add an option to report graphics memory OOM
Some graphics APIs differentiate between out-of-graphics-memory and out-of-host-memory (system memory). Add a device init flag to have -ENOSPC propagated from the resource managers instead of being converted to -ENOMEM, to aid driver stacks in determining what error code to return or whether corrective action can be taken at the driver level. The first patch deals with a ttm_device_init()