Displaying 3 results from an estimated 3 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
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