AMD-GFX Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/5] drm/amdgpu: add vcn dec software ring enabled parameter
@ 2020-11-11 22:27 James Zhu
  2020-11-11 22:27 ` [PATCH 2/5] drm/amdgpu/vcn: update header to support dec vcn software ring James Zhu
                   ` (5 more replies)
  0 siblings, 6 replies; 12+ messages in thread
From: James Zhu @ 2020-11-11 22:27 UTC (permalink / raw)
  To: amd-gfx

This allows us to enable dec software ring feature on VCN.
The default is 0 for all asics, and it is only valid for
asics with vcn3.0 and above.

Signed-off-by: James Zhu <James.Zhu@amd.com>
Reviewed-by: Leo Liu <leo.liu@amd.com>
---
 drivers/gpu/drm/amd/amdgpu/amdgpu.h     | 1 +
 drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c | 8 ++++++++
 2 files changed, 9 insertions(+)

diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu.h b/drivers/gpu/drm/amd/amdgpu/amdgpu.h
index 20400ec..cc47da6 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu.h
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu.h
@@ -209,6 +209,7 @@ extern int amdgpu_si_support;
 extern int amdgpu_cik_support;
 #endif
 extern int amdgpu_num_kcq;
+extern int amdgpu_dec_sw_ring_enabled;
 
 #define AMDGPU_VM_MAX_NUM_CTX			4096
 #define AMDGPU_SG_THRESHOLD			(256*1024*1024)
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c
index 999f84d..570088f 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c
@@ -160,6 +160,7 @@ int amdgpu_force_asic_type = -1;
 int amdgpu_tmz;
 int amdgpu_reset_method = -1; /* auto */
 int amdgpu_num_kcq = -1;
+int amdgpu_dec_sw_ring_enabled;
 
 struct amdgpu_mgpu_info mgpu_info = {
 	.mutex = __MUTEX_INITIALIZER(mgpu_info.mutex),
@@ -806,6 +807,13 @@ module_param_named(bad_page_threshold, amdgpu_bad_page_threshold, int, 0444);
 MODULE_PARM_DESC(num_kcq, "number of kernel compute queue user want to setup (8 if set to greater than 8 or less than 0, only affect gfx 8+)");
 module_param_named(num_kcq, amdgpu_num_kcq, int, 0444);
 
+/**
+ * DOC: dec_sw_ring_enabled (uint)
+ * Override vcn decode software ring features enabled.
+ */
+MODULE_PARM_DESC(dec_sw_ring_enabled, "vcn dec sw ring support (1 = enable, 0 = disable (default))");
+module_param_named(dec_sw_ring_enabled, amdgpu_dec_sw_ring_enabled, int, 0444);
+
 static const struct pci_device_id pciidlist[] = {
 #ifdef  CONFIG_DRM_AMDGPU_SI
 	{0x1002, 0x6780, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_TAHITI},
-- 
2.7.4

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

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

end of thread, other threads:[~2020-11-13 15:42 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-11-11 22:27 [PATCH 1/5] drm/amdgpu: add vcn dec software ring enabled parameter James Zhu
2020-11-11 22:27 ` [PATCH 2/5] drm/amdgpu/vcn: update header to support dec vcn software ring James Zhu
2020-11-11 22:27 ` [PATCH 3/5] drm/amdgpu/vcn: add test for " James Zhu
2020-11-12  1:00   ` [PATCH v2 " James Zhu
2020-11-16 11:42   ` [PATCH " Christian König
2020-11-11 22:27 ` [PATCH 4/5] drm/amdgpu/vcn3.0: add dec software ring vm functions to support James Zhu
2020-11-11 22:27 ` [PATCH 5/5] drm/amdgpu/vcn3.0: add software ring share memory support James Zhu
2020-11-12 14:23 ` [PATCH 1/5] drm/amdgpu: add vcn dec software ring enabled parameter Alex Deucher
2020-11-12 15:23   ` James Zhu
2020-11-12 18:57     ` Alex Deucher
2020-11-12 19:14       ` James Zhu
2020-11-16 11:38 ` Christian König

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox