]> Git Repo - linux.git/blobdiff - drivers/gpu/drm/amd/amdgpu/amdgpu_object.h
Merge tag 'ata-6.5-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/dlemoal...
[linux.git] / drivers / gpu / drm / amd / amdgpu / amdgpu_object.h
index 35b8106816a13cf6dababc862da9c268d7a7502a..05496b97ef930a0bb65821400859595c14799ef1 100644 (file)
@@ -56,6 +56,8 @@ struct amdgpu_bo_param {
        bool                            no_wait_gpu;
        struct dma_resv                 *resv;
        void                            (*destroy)(struct ttm_buffer_object *bo);
+       /* xcp partition number plus 1, 0 means any partition */
+       int8_t                          xcp_id_plus1;
 };
 
 /* bo virtual addresses in a vm */
@@ -108,6 +110,13 @@ struct amdgpu_bo {
        struct mmu_interval_notifier    notifier;
 #endif
        struct kgd_mem                  *kfd_bo;
+
+       /*
+        * For GPUs with spatial partitioning, xcp partition number, -1 means
+        * any partition. For other ASICs without spatial partition, always 0
+        * for memory accounting.
+        */
+       int8_t                          xcp_id;
 };
 
 struct amdgpu_bo_user {
This page took 0.033781 seconds and 4 git commands to generate.