Displaying 6 results from an estimated 6 matches for "ttm_device_init".
2024 Oct 04
1
[PATCH v2 1/2] drm/ttm: Change ttm_device_init to use a struct instead of multiple bools
On Wed, 2024-10-02 at 14:54 +0200, Thomas Hellstr?m wrote:
> On Wed, 2024-10-02 at 14:45 +0200, Christian K?nig wrote:
> > Am 02.10.24 um 14:24 schrieb Thomas Hellstr?m:
> > > The ttm_device_init funcition uses multiple bool arguments. That
> > > means
> > > readability in the caller becomes poor, and all callers need to
> > > change if
> > > yet another bool is added.
> > >
> > > Instead use a struct with multiple single-bit flags. Thi...
2024 Oct 05
1
[PATCH v2 1/2] drm/ttm: Change ttm_device_init to use a struct instead of multiple bools
On Fri, Oct 04, 2024 at 04:28:29PM +0200, Thomas Hellstr?m wrote:
> On Wed, 2024-10-02 at 14:54 +0200, Thomas Hellstr?m wrote:
> > On Wed, 2024-10-02 at 14:45 +0200, Christian K?nig wrote:
> > > Am 02.10.24 um 14:24 schrieb Thomas Hellstr?m:
> > > > The ttm_device_init funcition uses multiple bool arguments. That
> > > > means
> > > > readability in the caller becomes poor, and all callers need to
> > > > change if
> > > > yet another bool is added.
> > > >
> > > > Instead use a struct with...
2024 Oct 02
2
[PATCH v2 0/2] drm/ttm: Add an option to report graphics memory OOM
...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() interface change,
The Second patch adds the actual functionality.
A follow-up will be posted for Xe once this is merged / backmerged.
Thomas Hellstr?m (2):
drm/ttm: Change ttm_device_init to use a struct instead of multiple
bools
drm/ttm: Add a device flag to propagate -ENOSPC on OOM...
2023 May 18
1
[PATCH 3/4] drm/nouveau: stop using is_swiotlb_active
...int typei, ret;
ret = nouveau_ttm_init_host(drm, 0);
@@ -300,13 +299,10 @@ nouveau_ttm_init(struct nouveau_drm *drm)
drm->agp.cma = pci->agp.cma;
}
-#if IS_ENABLED(CONFIG_SWIOTLB) && IS_ENABLED(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 (re...
2024 Jan 30
0
GT216M [GeForce GT 240M] (NV50/Tesla) sddm fails to start since commit 0a2f6372a43ff5e948b8b10be34d4473f6c2ef6c
...ith 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_mapping,
????????????????????????????????? dev->vma_offset_manager,
-???????????????????????????????? drm_need_swiotlb(drm->client.mmu.dmabits),
+???????????????????...
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