Displaying 20 results from an estimated 66 matches for "ttm_bo_device_init".
2019 Sep 05
1
[PATCH 1/8] drm/ttm: turn ttm_bo_device.vma_manager into a pointer
Rename the embedded struct vma_offset_manager, new name is _vma_manager.
ttm_bo_device.vma_manager changed to a pointer.
The ttm_bo_device_init() function gets an additional vma_manager
argument which allows to initialize ttm with a different vma manager.
When passing NULL the embedded _vma_manager is used.
All callers are updated to pass NULL, so the behavior doesn't change.
Signed-off-by: Gerd Hoffmann <kraxel at redhat.com>...
2019 Sep 05
1
[PATCH 1/8] drm/ttm: turn ttm_bo_device.vma_manager into a pointer
Rename the embedded struct vma_offset_manager, new name is _vma_manager.
ttm_bo_device.vma_manager changed to a pointer.
The ttm_bo_device_init() function gets an additional vma_manager
argument which allows to initialize ttm with a different vma manager.
When passing NULL the embedded _vma_manager is used.
All callers are updated to pass NULL, so the behavior doesn't change.
Signed-off-by: Gerd Hoffmann <kraxel at redhat.com>...
2019 Sep 05
1
[PATCH 1/8] drm/ttm: turn ttm_bo_device.vma_manager into a pointer
Rename the embedded struct vma_offset_manager, new name is _vma_manager.
ttm_bo_device.vma_manager changed to a pointer.
The ttm_bo_device_init() function gets an additional vma_manager
argument which allows to initialize ttm with a different vma manager.
When passing NULL the embedded _vma_manager is used.
All callers are updated to pass NULL, so the behavior doesn't change.
Signed-off-by: Gerd Hoffmann <kraxel at redhat.com>...
2019 Sep 05
0
[PATCH 2/8] drm/nouveau: switch to gem vma offset manager
Pass gem vma_offset_manager to ttm_bo_device_init(), so ttm uses it
instead of its own embedded struct. This makes some gem functions
(specifically drm_gem_object_lookup) work on ttm objects.
Signed-off-by: Gerd Hoffmann <kraxel at redhat.com>
---
drivers/gpu/drm/nouveau/nouveau_ttm.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)...
2019 Sep 05
0
[PATCH 6/8] drm/qxl: switch to gem vma offset manager
Pass gem vma_offset_manager to ttm_bo_device_init(), so ttm uses it
instead of its own embedded struct. This makes some gem functions
(specifically drm_gem_object_lookup) work on ttm objects.
Signed-off-by: Gerd Hoffmann <kraxel at redhat.com>
---
drivers/gpu/drm/qxl/qxl_ttm.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --...
2020 Nov 10
3
[PATCH] drm/nouveau: Fix out-of-bounds access when deferencing MMU type
...lloc_track_caller+0x1be/0x390
[ 18.792165] kstrdup_const+0x46/0x70
[ 18.797686] kobject_set_name_vargs+0x2f/0xb0
[ 18.803992] kobject_init_and_add+0x9d/0xf0
[ 18.810117] ttm_mem_global_init+0x12c/0x210 [ttm]
[ 18.816853] ttm_bo_global_init+0x4a/0x160 [ttm]
[ 18.823420] ttm_bo_device_init+0x39/0x220 [ttm]
[ 18.830046] nouveau_ttm_init+0x2c3/0x830 [nouveau]
[ 18.836929] nouveau_drm_device_init+0x1b4/0x3f0 [nouveau]
<...>
[ 19.105336] ==================================================================
Fix this error, by not using type_vram as an index if it's...
2019 Feb 07
0
[PATCH 0/5] Clean up TTM mmap offsets
...is located within TTM. TTM and GEM share the same
> range for mmap-able BOs.
>
> Thomas Zimmermann (5):
> staging/vboxvideo: Use same BO mmap offset as other drivers
> drm/ttm: Define a single DRM_FILE_PAGE_OFFSET constant
> drm/ttm: Remove file_page_offset parameter from ttm_bo_device_init()
> drm/ttm: Quick-test mmap offset in ttm_bo_mmap()
> drm: Use the same mmap-range offset and size for GEM and TTM
Reviewed-by: Christian K?nig <christian.koenig at amd.com> for the whole
series.
Nice cleanup! Thanks,
Christian.
>
> drivers/gpu/drm/amd/amdgpu/amdgpu_t...
2019 Feb 15
0
[PATCH 0/5] Clean up TTM mmap offsets
...s located within TTM. TTM and GEM share the same
> range for mmap-able BOs.
>
> Thomas Zimmermann (5):
> staging/vboxvideo: Use same BO mmap offset as other drivers
> drm/ttm: Define a single DRM_FILE_PAGE_OFFSET constant
> drm/ttm: Remove file_page_offset parameter from ttm_bo_device_init()
> drm/ttm: Quick-test mmap offset in ttm_bo_mmap()
> drm: Use the same mmap-range offset and size for GEM and TTM
The first patch looks good to me:
Reviewed-by: Hans de Goede <hdegoede at redhat.com>
The vboxvideo bits in the other patches look good to me to:
Acked-by: Hans...
2019 Mar 11
0
[PATCH 0/5] Clean up TTM mmap offsets
...s located within TTM. TTM and GEM share the same
> range for mmap-able BOs.
>
> Thomas Zimmermann (5):
> staging/vboxvideo: Use same BO mmap offset as other drivers
> drm/ttm: Define a single DRM_FILE_PAGE_OFFSET constant
> drm/ttm: Remove file_page_offset parameter from ttm_bo_device_init()
> drm/ttm: Quick-test mmap offset in ttm_bo_mmap()
> drm: Use the same mmap-range offset and size for GEM and TTM
Note I'm about to push a patch-series to drm-misc-next which moves
vboxvideo out of staging and I see that this series has not landed
in drm-misc-next yet, so it will...
2019 Mar 11
0
[PATCH 0/5] Clean up TTM mmap offsets
...e
>>> range for mmap-able BOs.
>>>
>>> Thomas Zimmermann (5):
>>> ?? staging/vboxvideo: Use same BO mmap offset as other drivers
>>> ?? drm/ttm: Define a single DRM_FILE_PAGE_OFFSET constant
>>> ?? drm/ttm: Remove file_page_offset parameter from ttm_bo_device_init()
>>> ?? drm/ttm: Quick-test mmap offset in ttm_bo_mmap()
>>> ?? drm: Use the same mmap-range offset and size for GEM and TTM
>>
>> Note I'm about to push a patch-series to drm-misc-next which moves
>> vboxvideo out of staging and I see that this series has n...
2019 Mar 11
0
[PATCH 0/5] Clean up TTM mmap offsets
...gt; range for mmap-able BOs.
> > >
> > > Thomas Zimmermann (5):
> > > ?? staging/vboxvideo: Use same BO mmap offset as other drivers
> > > ?? drm/ttm: Define a single DRM_FILE_PAGE_OFFSET constant
> > > ?? drm/ttm: Remove file_page_offset parameter from ttm_bo_device_init()
> > > ?? drm/ttm: Quick-test mmap offset in ttm_bo_mmap()
> > > ?? drm: Use the same mmap-range offset and size for GEM and TTM
> >
> > Note I'm about to push a patch-series to drm-misc-next which moves
> > vboxvideo out of staging and I see that this seri...
2020 Nov 11
2
[PATCH] drm/nouveau: Fix out-of-bounds access when deferencing MMU type
...92165] kstrdup_const+0x46/0x70
>> [ 18.797686] kobject_set_name_vargs+0x2f/0xb0
>> [ 18.803992] kobject_init_and_add+0x9d/0xf0
>> [ 18.810117] ttm_mem_global_init+0x12c/0x210 [ttm]
>> [ 18.816853] ttm_bo_global_init+0x4a/0x160 [ttm]
>> [ 18.823420] ttm_bo_device_init+0x39/0x220 [ttm]
>> [ 18.830046] nouveau_ttm_init+0x2c3/0x830 [nouveau]
>> [ 18.836929] nouveau_drm_device_init+0x1b4/0x3f0 [nouveau]
>> <...>
>> [ 19.105336]
>> ===========================================================
>> =======
>>
>...
2010 Jan 25
4
[Bug 26201] New: Some screen garbage, NoAccel and GPU lockup reported with NV4E
...ear to be the culprit:
77bce8e drm/nouveau: fix for ttm interface changes, and
ad49f50 drm/ttm/radeon: add dma32 support.
I've found that commenting out the bit of ttm_tt_alloc page which adds
__GFP_DMA32 to the alloc_page flags fixes this issue, as does forcing the last
argument of ttm_bo_device_init() to false in nouveau_mem_init(). This, of
course, makes no sense -- the DMA32 memory zone is a fallback for the normal
memory zones.
I'm happy to test patches if anyone can think of anything to try.
Thanks,
-Ted
--
Configure bugmail: http://bugs.freedesktop.org/userprefs.cgi?tab=email
--...
2019 Aug 08
0
[PATCH v3 5/8] drm/qxl: switch qxl to the new gem_ttm_bo_device_init()
...514c75aa..3a24145dd516 100644
--- a/drivers/gpu/drm/qxl/qxl_ttm.c
+++ b/drivers/gpu/drm/qxl/qxl_ttm.c
@@ -322,10 +322,10 @@ int qxl_ttm_init(struct qxl_device *qdev)
int num_io_pages; /* != rom->num_io_pages, we include surface0 */
/* No others user of address space so set it to 0 */
- r = ttm_bo_device_init(&qdev->mman.bdev,
- &qxl_bo_driver,
- qdev->ddev.anon_inode->i_mapping,
- false);
+ r = drm_gem_ttm_bo_device_init(&qdev->ddev,
+ &qdev->mman.bdev,
+ &qxl_bo_driver,
+ false);
if (r) {
DRM_ERROR("f...
2010 Jan 24
21
[Bug 26193] New: nouveau falls back to NoAccel on 9400M
http://bugs.freedesktop.org/show_bug.cgi?id=26193
Summary: nouveau falls back to NoAccel on 9400M
Product: xorg
Version: git
Platform: Other
OS/Version: All
Status: NEW
Severity: normal
Priority: medium
Component: Driver/nouveau
AssignedTo: nouveau at lists.freedesktop.org
ReportedBy: bjt23
2019 Aug 08
0
[PATCH v4 04/17] drm/qxl: switch qxl to the new gem_ttm_bo_device_init()
...514c75aa..3a24145dd516 100644
--- a/drivers/gpu/drm/qxl/qxl_ttm.c
+++ b/drivers/gpu/drm/qxl/qxl_ttm.c
@@ -322,10 +322,10 @@ int qxl_ttm_init(struct qxl_device *qdev)
int num_io_pages; /* != rom->num_io_pages, we include surface0 */
/* No others user of address space so set it to 0 */
- r = ttm_bo_device_init(&qdev->mman.bdev,
- &qxl_bo_driver,
- qdev->ddev.anon_inode->i_mapping,
- false);
+ r = drm_gem_ttm_bo_device_init(&qdev->ddev,
+ &qdev->mman.bdev,
+ &qxl_bo_driver,
+ false);
if (r) {
DRM_ERROR("f...
2019 Apr 09
0
[PATCH 13/15] drm/vboxvideo: Convert vboxvideo driver to Simple TTM
..._mem_free,
> + .verify_access = drm_gem_ttm_bo_driver_verify_access
> };
>
> int vbox_mm_init(struct vbox_private *vbox)
> {
> int ret;
> struct drm_device *dev = &vbox->ddev;
> - struct ttm_bo_device *bdev = &vbox->ttm.bdev;
>
> - ret = ttm_bo_device_init(&vbox->ttm.bdev,
> - &vbox_bo_driver,
> - dev->anon_inode->i_mapping,
> - true);
> + ret = drm_simple_ttm_init(&vbox->ttm, dev,
> + pci_resource_start(dev->pdev, 0),
> + vbox->available_vram_size,
> + &vbox_simple_ttm...
2020 Nov 10
0
[PATCH] drm/nouveau: Fix out-of-bounds access when deferencing MMU type
...0x390
> [ 18.792165] kstrdup_const+0x46/0x70
> [ 18.797686] kobject_set_name_vargs+0x2f/0xb0
> [ 18.803992] kobject_init_and_add+0x9d/0xf0
> [ 18.810117] ttm_mem_global_init+0x12c/0x210 [ttm]
> [ 18.816853] ttm_bo_global_init+0x4a/0x160 [ttm]
> [ 18.823420] ttm_bo_device_init+0x39/0x220 [ttm]
> [ 18.830046] nouveau_ttm_init+0x2c3/0x830 [nouveau]
> [ 18.836929] nouveau_drm_device_init+0x1b4/0x3f0 [nouveau]
> <...>
> [ 19.105336]
>===========================================================
>=======
>
>Fix this error, by not using...
2019 Apr 24
0
[PATCH v2 07/17] drm/ast: Convert AST driver to VRAM MM
...rve = &ast_ttm_io_mem_reserve,
- .io_mem_free = &ast_ttm_io_mem_free,
+ .verify_access = drm_gem_vram_bo_driver_verify_access
};
int ast_mm_init(struct ast_private *ast)
{
int ret;
struct drm_device *dev = ast->dev;
- struct ttm_bo_device *bdev = &ast->ttm.bdev;
-
- ret = ttm_bo_device_init(&ast->ttm.bdev,
- &ast_bo_driver,
- dev->anon_inode->i_mapping,
- true);
- if (ret) {
- DRM_ERROR("Error initialising bo driver; %d\n", ret);
- return ret;
- }
- ret = ttm_bo_init_mm(bdev, TTM_PL_VRAM,
- ast->vram_size >> PAGE_SHIFT);
+ ret...
2019 May 06
0
[PATCH v4 12/19] drm/bochs: Convert bochs driver to VRAM MM
...ess = drm_gem_vram_bo_driver_verify_access,
- .io_mem_reserve = &bochs_ttm_io_mem_reserve,
- .io_mem_free = &bochs_ttm_io_mem_free,
-};
-
int bochs_mm_init(struct bochs_device *bochs)
{
- struct ttm_bo_device *bdev = &bochs->ttm.bdev;
- int ret;
+ struct drm_vram_mm *vmm;
- ret = ttm_bo_device_init(&bochs->ttm.bdev,
- &bochs_bo_driver,
- bochs->dev->anon_inode->i_mapping,
- true);
- if (ret) {
- DRM_ERROR("Error initialising bo driver; %d\n", ret);
- return ret;
- }
-
- ret = ttm_bo_init_mm(bdev, TTM_PL_VRAM,
- bochs->fb_size >> PAGE...