Skip to contentSkip to conversation

drm/amdgpu: set max df perfmon to 4

PATCH In review Kim, Jonathan 2 participants 2 messages Jun 20, 2019 1 message not in the archive

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drm/amdgpu: set max df perfmon to 4

fixed df permon to 4 and remove not needed ret

Change-Id: Ia9897612937e652e7f8a09c1d23bb1c0e6f3d8f7

---
 drivers/gpu/drm/amd/amdgpu/amdgpu.h | 2 +-
 drivers/gpu/drm/amd/amdgpu/soc15.c  | 1 -
 2 files changed, 1 insertion(+), 2 deletions(-)
drivers/gpu/drm/amd/amdgpu/amdgpu.h +1 -1
index b227c956b8a9..c3ed09cd2678 100644
@@ -732,7 +732,7 @@ struct amd_powerplay {
 };
 
 #define AMDGPU_RESET_MAGIC_NUM 64
-#define AMDGPU_MAX_DF_PERFMONS 16
+#define AMDGPU_MAX_DF_PERFMONS 4
 struct amdgpu_device {
 	struct device			*dev;
 	struct drm_device		*ddev;
drivers/gpu/drm/amd/amdgpu/soc15.c +0 -1
index 0afbcc80ea61..014549a30446 100644
@@ -1067,7 +1067,6 @@ static void soc15_doorbell_range_init(struct amdgpu_device *adev)
 static int soc15_common_hw_init(void *handle)
 {
 	struct amdgpu_device *adev = (struct amdgpu_device *)handle;
-	int ret;
 
 	/* enable pcie gen2/3 link */
 	soc15_pcie_gen3_enable(adev);
Signature · 6 lines
2.17.1

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

A message that is not in the archive (sent off-list or not yet received): 20190620051811.118880-1-jonathan.kim-5C7GfCeVMHo@public.gmane.org

Reviewed-by Felix Kuehling
#2 lore raw
Quoted 26 lines · Jonathan

fixed df permon to 4 and remove not needed ret

Change-Id: Ia9897612937e652e7f8a09c1d23bb1c0e6f3d8f7

---
  drivers/gpu/drm/amd/amdgpu/amdgpu.h | 2 +-
  drivers/gpu/drm/amd/amdgpu/soc15.c  | 1 -
  2 files changed, 1 insertion(+), 2 deletions(-)
drivers/gpu/drm/amd/amdgpu/amdgpu.h +1 -1
index b227c956b8a9..c3ed09cd2678 100644
@@ -732,7 +732,7 @@ struct amd_powerplay {
  };
 
  #define AMDGPU_RESET_MAGIC_NUM 64
-#define AMDGPU_MAX_DF_PERFMONS 16
+#define AMDGPU_MAX_DF_PERFMONS 4
  struct amdgpu_device {
  	struct device			*dev;
  	struct drm_device		*ddev;
drivers/gpu/drm/amd/amdgpu/soc15.c +0 -0
index 0afbcc80ea61..014549a30446 100644

drivers/gpu/drm/amd/amdgpu/soc15.c static void soc15_doorbell_range_init(struct amdgpu_device *adev) · line 1072

Quoted 7 lines
drivers/gpu/drm/amd/amdgpu/soc15.c +0 -1
@@ -1067,7 +1067,6 @@ static void soc15_doorbell_range_init(struct amdgpu_device *adev)
  static int soc15_common_hw_init(void *handle)
  {
  	struct amdgpu_device *adev = (struct amdgpu_device *)handle;
-	int ret;
 
  	/* enable pcie gen2/3 link */
  	soc15_pcie_gen3_enable(adev);

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx