All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/2] drm/admgpu: add data struct for vram check
@ 2022-01-13  7:45 Xiaojian Du
  2022-01-13  7:45 ` [PATCH 2/2] drm/amdgpu: add vram check function for GMC Xiaojian Du
  2022-01-13  7:55 ` [PATCH 1/2] drm/admgpu: add data struct for vram check Huang Rui
  0 siblings, 2 replies; 5+ messages in thread
From: Xiaojian Du @ 2022-01-13  7:45 UTC (permalink / raw)
  To: amd-gfx; +Cc: Alexander.Deucher, ray.huang, Xiaojian Du

This patch is to add data struct for vram check.

Signed-off-by: Xiaojian Du <Xiaojian.Du@amd.com>
Reviewed-by: Huang Rui <ray.huang@amd.com>
---
 drivers/gpu/drm/amd/amdgpu/amdgpu.h | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu.h b/drivers/gpu/drm/amd/amdgpu/amdgpu.h
index 64cd80d050eb..13196e50a98a 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu.h
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu.h
@@ -928,6 +928,11 @@ struct amdgpu_device {
 	uint32_t			bios_scratch_reg_offset;
 	uint32_t			bios_scratch[AMDGPU_BIOS_NUM_SCRATCH];
 
+	/* vram check */
+	struct amdgpu_bo                *vram_bo;
+	uint64_t                        vram_gpu;
+	void                            *vram_ptr;
+
 	/* Direct GMA */
 	struct amdgpu_direct_gma	direct_gma;
 	/* SSG */
-- 
2.25.1


^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2022-01-13 16:03 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-01-13  7:45 [PATCH 1/2] drm/admgpu: add data struct for vram check Xiaojian Du
2022-01-13  7:45 ` [PATCH 2/2] drm/amdgpu: add vram check function for GMC Xiaojian Du
2022-01-13  8:02   ` Huang Rui
2022-01-13 16:03   ` Felix Kuehling
2022-01-13  7:55 ` [PATCH 1/2] drm/admgpu: add data struct for vram check Huang Rui

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.