All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/4] drm/amdgpu: add additional cached gca config variables
@ 2016-10-10 16:08 Alex Deucher
       [not found] ` <1476115696-29640-1-git-send-email-alexander.deucher-5C7GfCeVMHo@public.gmane.org>
  0 siblings, 1 reply; 15+ messages in thread
From: Alex Deucher @ 2016-10-10 16:08 UTC (permalink / raw)
  To: amd-gfx-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW; +Cc: Alex Deucher

We need to cache some additional values to handle SR-IOV
and PG.

Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
---
 drivers/gpu/drm/amd/amdgpu/amdgpu.h | 12 ++++++++++++
 1 file changed, 12 insertions(+)

diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu.h b/drivers/gpu/drm/amd/amdgpu/amdgpu.h
index a6db3dd..6f35307 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu.h
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu.h
@@ -771,6 +771,16 @@ struct amdgpu_scratch {
 /*
  * GFX configurations
  */
+#define AMDGPU_GFX_MAX_SE 4
+#define AMDGPU_GFX_MAX_SH_PER_SE 2
+
+struct amdgpu_rb_config {
+	uint32_t rb_backend_disable;
+	uint32_t user_rb_backend_disable;
+	uint32_t raster_config;
+	uint32_t raster_config_1;
+};
+
 struct amdgpu_gca_config {
 	unsigned max_shader_engines;
 	unsigned max_tile_pipes;
@@ -799,6 +809,8 @@ struct amdgpu_gca_config {
 
 	uint32_t tile_mode_array[32];
 	uint32_t macrotile_mode_array[16];
+
+	struct amdgpu_rb_config rb_config[AMDGPU_GFX_MAX_SE][AMDGPU_GFX_MAX_SH_PER_SE];
 };
 
 struct amdgpu_cu_info {
-- 
2.5.5

_______________________________________________
amd-gfx mailing list
amd-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

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

end of thread, other threads:[~2016-10-14  9:02 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-10-10 16:08 [PATCH 1/4] drm/amdgpu: add additional cached gca config variables Alex Deucher
     [not found] ` <1476115696-29640-1-git-send-email-alexander.deucher-5C7GfCeVMHo@public.gmane.org>
2016-10-10 16:08   ` [PATCH 2/4] drm/amdgpu/gfx8: cache rb config values Alex Deucher
2016-10-10 16:08   ` [PATCH 3/4] drm/amdgpu/gfx8: use cached raster config values in csb setup Alex Deucher
2016-10-10 16:08   ` [PATCH 4/4] drm/amdgpu: used cached gca values for vi_read_register Alex Deucher
     [not found]     ` <1476115696-29640-4-git-send-email-alexander.deucher-5C7GfCeVMHo@public.gmane.org>
2016-10-11 12:07       ` Andy Furniss
     [not found]         ` <57FCD5F9.6050809-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2016-10-11 12:11           ` StDenis, Tom
     [not found]             ` <CY4PR12MB1768837F1247030A2662183EF7DA0-rpdhrqHFk06yjjPBNVDk/QdYzm3356FpvxpqHgZTriW3zl9H0oFU5g@public.gmane.org>
2016-10-11 12:23               ` StDenis, Tom
     [not found]                 ` <BN6PR12MB17643865565D007D3629FDADF7DA0-/b2+HYfkarS51p+Siuid1wdYzm3356FpvxpqHgZTriW3zl9H0oFU5g@public.gmane.org>
2016-10-11 13:10                   ` Andy Furniss
     [not found]                     ` <57FCE4DB.5020404-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2016-10-11 13:20                       ` StDenis, Tom
     [not found]                         ` <CY4PR12MB1768C25486E504D61CBD8C24F7DA0-rpdhrqHFk06yjjPBNVDk/QdYzm3356FpvxpqHgZTriW3zl9H0oFU5g@public.gmane.org>
2016-10-11 13:22                           ` StDenis, Tom
     [not found]                             ` <CY4PR12MB176874BB07B5252C2279D724F7DA0-rpdhrqHFk06yjjPBNVDk/QdYzm3356FpvxpqHgZTriW3zl9H0oFU5g@public.gmane.org>
2016-10-11 23:48                               ` Andy Furniss
     [not found]                                 ` <57FD7A3E.5030501-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2016-10-12 10:00                                   ` Grazvydas Ignotas
     [not found]                                     ` <CANOLnOP-r1R8uGchUHsL=G1KG70LAd2kj11vOW2_-kgTgr3Vuw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2016-10-12 14:36                                       ` Andy Furniss
2016-10-13 23:41                                   ` Alex Deucher
     [not found]                                     ` <CADnq5_MOQ2_B-wKfNxpeNV0cP=qUzh_c7=znc2ZsdQYpLRLC6g-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2016-10-14  9:02                                       ` Andy Furniss

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.