lkml.org 
[lkml]   [2023]   [Feb]   [17]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH drm-next v2 09/16] drm/nouveau: bo: initialize GEM GPU VA interface
    Date
    Initialize the GEM's DRM GPU VA manager interface in preparation for the
    (u)vmm implementation, provided by subsequent commits, to make use of it.

    Signed-off-by: Danilo Krummrich <dakr@redhat.com>
    ---
    drivers/gpu/drm/nouveau/nouveau_bo.c | 3 +++
    1 file changed, 3 insertions(+)

    diff --git a/drivers/gpu/drm/nouveau/nouveau_bo.c b/drivers/gpu/drm/nouveau/nouveau_bo.c
    index f3039c1f87c9..bf6984c8754c 100644
    --- a/drivers/gpu/drm/nouveau/nouveau_bo.c
    +++ b/drivers/gpu/drm/nouveau/nouveau_bo.c
    @@ -215,11 +215,14 @@ nouveau_bo_alloc(struct nouveau_cli *cli, u64 *size, int *align, u32 domain,
    nvbo = kzalloc(sizeof(struct nouveau_bo), GFP_KERNEL);
    if (!nvbo)
    return ERR_PTR(-ENOMEM);
    +
    INIT_LIST_HEAD(&nvbo->head);
    INIT_LIST_HEAD(&nvbo->entry);
    INIT_LIST_HEAD(&nvbo->vma_list);
    nvbo->bo.bdev = &drm->ttm.bdev;

    + drm_gem_gpuva_init(&nvbo->bo.base);
    +
    /* This is confusing, and doesn't actually mean we want an uncached
    * mapping, but is what NOUVEAU_GEM_DOMAIN_COHERENT gets translated
    * into in nouveau_gem_new().
    --
    2.39.1
    \
     
     \ /
      Last update: 2023-03-27 00:26    [W:2.223 / U:0.348 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site