Skip to contentSkip to conversation

drm/amd/pm: update dpm clock pm attributes for aldebaran (gc 9.4.2)

PATCH Superseded Yang Wang 3 participants 7 messages May 8

Subsystems (3)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore

Yang Wang

author
#0 lore raw

PATCH 1/1 drm/amd/pm: update dpm clock pm attributes for aldebaran (gc 9.4.2)

Split and correct DPM clock attribute constraints for GFX 9.4.1 (Arcturus) and 9.4.2 (Aldebaran) ASICs:

- Arcturus (9.4.1): Keep restrictions for mclk/socclk/fclk, update comment
- Aldebaran (9.4.2): Add dedicated per-clock constraints:
* mclk/socclk: Only support voltage control, disable level setting
* fclk: Mark as fully unsupported
* pcie: Move multi-AID check into 9.4.2 case, disable level setting

---
 drivers/gpu/drm/amd/pm/amdgpu_pm.c | 26 ++++++++++++++++++++------
 1 file changed, 20 insertions(+), 6 deletions(-)
drivers/gpu/drm/amd/pm/amdgpu_pm.c +20 -6
index fd2e63530e8c..9ee3053973cf 100644
@@ -2033,16 +2033,11 @@ static int pp_dpm_clk_default_attr_update(struct amdgpu_device *adev, struct amd
 		       gc_ver == IP_VERSION(11, 0, 2) ||
 		       gc_ver == IP_VERSION(11, 0, 3)) && adev->vcn.num_vcn_inst >= 2))
 			*states = ATTR_STATE_UNSUPPORTED;
-	} else if (DEVICE_ATTR_IS(pp_dpm_pcie)) {
-		if (gc_ver == IP_VERSION(9, 4, 2) ||
-		    amdgpu_is_multi_aid(adev))
-			*states = ATTR_STATE_UNSUPPORTED;
 	}
 
 	switch (gc_ver) {
 	case IP_VERSION(9, 4, 1):
-	case IP_VERSION(9, 4, 2):
-		/* the Mi series card does not support standalone mclk/socclk/fclk level setting */
+		/* Arcturus does not support standalone mclk/socclk/fclk level setting */
 		if (DEVICE_ATTR_IS(pp_dpm_mclk) ||
 		    DEVICE_ATTR_IS(pp_dpm_socclk) ||
 		    DEVICE_ATTR_IS(pp_dpm_fclk)) {
@@ -2050,6 +2045,25 @@ static int pp_dpm_clk_default_attr_update(struct amdgpu_device *adev, struct amd
 			dev_attr->store = NULL;
 		}
 		break;
+	case IP_VERSION(9, 4, 2):
+		if (DEVICE_ATTR_IS(pp_dpm_mclk) ||
+		    DEVICE_ATTR_IS(pp_dpm_socclk)) {
+			/* Aldebaran mclk/socclk DPM only supports voltage control,
+			 * not allow to set dpm level directly */
+			dev_attr->attr.mode &= ~S_IWUGO;
+			dev_attr->store = NULL;
+		} else if (DEVICE_ATTR_IS(pp_dpm_pcie)) {
+			if (amdgpu_is_multi_aid(adev)) {
+				*states = ATTR_STATE_UNSUPPORTED;
+			} else {
+				dev_attr->attr.mode &= ~S_IWUGO;
+				dev_attr->store = NULL;
+			}
+		} else if (DEVICE_ATTR_IS(pp_dpm_fclk)) {
+			/* Aldebaran does not support fclk dpm */
+			*states = ATTR_STATE_UNSUPPORTED;
+		}
+		break;
 	default:
 		break;
 	}
Signature · 1 line
2.47.3
#1 lore raw

AMD General

-----Original Message-----
From: amd-gfx <[email protected]> On Behalf Of Yang Wang
Sent: Friday, May 8, 2026 8:50 AM
To: [email protected]
Cc: Deucher, Alexander <[email protected]>; Zhang, Hawking <[email protected]>; Feng, Kenneth <[email protected]>
Subject: [PATCH] drm/amd/pm: update dpm clock pm attributes for aldebaran (gc 9.4.2)

Split and correct DPM clock attribute constraints for GFX 9.4.1 (Arcturus) and 9.4.2 (Aldebaran) ASICs:

- Arcturus (9.4.1): Keep restrictions for mclk/socclk/fclk, update comment
- Aldebaran (9.4.2): Add dedicated per-clock constraints:
* mclk/socclk: Only support voltage control, disable level setting
* fclk: Mark as fully unsupported
* pcie: Move multi-AID check into 9.4.2 case, disable level setting

---
 drivers/gpu/drm/amd/pm/amdgpu_pm.c | 26 ++++++++++++++++++++------
 1 file changed, 20 insertions(+), 6 deletions(-)
drivers/gpu/drm/amd/pm/amdgpu_pm.c +0 -4
index fd2e63530e8c..9ee3053973cf 100644
@@ -2033,16 +2033,11 @@ static int pp_dpm_clk_default_attr_update(struct amdgpu_device *adev, struct amd
                       gc_ver == IP_VERSION(11, 0, 2) ||
                       gc_ver == IP_VERSION(11, 0, 3)) && adev->vcn.num_vcn_inst >= 2))
                        *states = ATTR_STATE_UNSUPPORTED;
-       } else if (DEVICE_ATTR_IS(pp_dpm_pcie)) {
-               if (gc_ver == IP_VERSION(9, 4, 2) ||
-                   amdgpu_is_multi_aid(adev))
-                       *states = ATTR_STATE_UNSUPPORTED;
        }
 AK: With the global pp_dpm_pcie block removed, amdgpu_is_multi_aid(adev) is only evaluated inside case IP_VERSION(9, 4, 2). For any other GFX version, pp_dpm_pcie is no longer forced to ATTR_STATE_UNSUPPORTED on multi-AID. That includes 9.4.3 / 9.4.4 / 9.5.0
 

Thanks & Regards
Asad

        switch (gc_ver) {
        case IP_VERSION(9, 4, 1):

- case IP_VERSION(9, 4, 2):
- /* the Mi series card does not support standalone mclk/socclk/fclk level setting */
+ /* Arcturus does not support standalone mclk/socclk/fclk level
+setting */

                if (DEVICE_ATTR_IS(pp_dpm_mclk) ||
                    DEVICE_ATTR_IS(pp_dpm_socclk) ||
                    DEVICE_ATTR_IS(pp_dpm_fclk)) {
@@ -2050,6 +2045,25 @@ static int pp_dpm_clk_default_attr_update(struct amdgpu_device *adev, struct amd
                        dev_attr->store = NULL;
                }
                break;

+ case IP_VERSION(9, 4, 2):
+ if (DEVICE_ATTR_IS(pp_dpm_mclk) ||
+ DEVICE_ATTR_IS(pp_dpm_socclk)) {
+ /* Aldebaran mclk/socclk DPM only supports voltage control,
+ * not allow to set dpm level directly */
+ dev_attr->attr.mode &= ~S_IWUGO;
+ dev_attr->store = NULL;
+ } else if (DEVICE_ATTR_IS(pp_dpm_pcie)) {
+ if (amdgpu_is_multi_aid(adev)) {
+ *states = ATTR_STATE_UNSUPPORTED;
+ } else {
+ dev_attr->attr.mode &= ~S_IWUGO;
+ dev_attr->store = NULL;
+ }
+ } else if (DEVICE_ATTR_IS(pp_dpm_fclk)) {
+ /* Aldebaran does not support fclk dpm */
+ *states = ATTR_STATE_UNSUPPORTED;
+ }

+               break;
        default:
                break;
        }

--
2.47.3

#2 lore raw

AMD General

________________________________
From: Kamal, Asad <[email protected]>
Sent: Friday, May 8, 2026 11:57 AM
To: Wang, Yang(Kevin) <[email protected]>; [email protected] <[email protected]>
Cc: Deucher, Alexander <[email protected]>; Zhang, Hawking <[email protected]>; Feng, Kenneth <[email protected]>
Subject: RE: [PATCH] drm/amd/pm: update dpm clock pm attributes for aldebaran (gc 9.4.2)

AMD General

-----Original Message-----
From: amd-gfx <[email protected]> On Behalf Of Yang Wang
Sent: Friday, May 8, 2026 8:50 AM
To: [email protected]
Cc: Deucher, Alexander <[email protected]>; Zhang, Hawking <[email protected]>; Feng, Kenneth <[email protected]>
Subject: [PATCH] drm/amd/pm: update dpm clock pm attributes for aldebaran (gc 9.4.2)

Split and correct DPM clock attribute constraints for GFX 9.4.1 (Arcturus) and 9.4.2 (Aldebaran) ASICs:

- Arcturus (9.4.1): Keep restrictions for mclk/socclk/fclk, update comment
- Aldebaran (9.4.2): Add dedicated per-clock constraints:
* mclk/socclk: Only support voltage control, disable level setting
* fclk: Mark as fully unsupported
* pcie: Move multi-AID check into 9.4.2 case, disable level setting

---
 drivers/gpu/drm/amd/pm/amdgpu_pm.c | 26 ++++++++++++++++++++------
 1 file changed, 20 insertions(+), 6 deletions(-)
drivers/gpu/drm/amd/pm/amdgpu_pm.c +0 -4
index fd2e63530e8c..9ee3053973cf 100644
@@ -2033,16 +2033,11 @@ static int pp_dpm_clk_default_attr_update(struct amdgpu_device *adev, struct amd
                       gc_ver == IP_VERSION(11, 0, 2) ||
                       gc_ver == IP_VERSION(11, 0, 3)) && adev->vcn.num_vcn_inst >= 2))
                        *states = ATTR_STATE_UNSUPPORTED;
-       } else if (DEVICE_ATTR_IS(pp_dpm_pcie)) {
-               if (gc_ver == IP_VERSION(9, 4, 2) ||
-                   amdgpu_is_multi_aid(adev))
-                       *states = ATTR_STATE_UNSUPPORTED;
        }
 AK: With the global pp_dpm_pcie block removed, amdgpu_is_multi_aid(adev) is only evaluated inside case IP_VERSION(9, 4, 2). For any other GFX version, pp_dpm_pcie is no longer forced to ATTR_STATE_UNSUPPORTED on multi-AID. That includes 9.4.3 / 9.4.4 / 9.5.0

[kevin]: thanks, will make v2 to fix it.
Best Regards.
Kevin

Thanks & Regards
Asad

        switch (gc_ver) {
        case IP_VERSION(9, 4, 1):

- case IP_VERSION(9, 4, 2):
- /* the Mi series card does not support standalone mclk/socclk/fclk level setting */
+ /* Arcturus does not support standalone mclk/socclk/fclk level
+setting */

                if (DEVICE_ATTR_IS(pp_dpm_mclk) ||
                    DEVICE_ATTR_IS(pp_dpm_socclk) ||
                    DEVICE_ATTR_IS(pp_dpm_fclk)) {
@@ -2050,6 +2045,25 @@ static int pp_dpm_clk_default_attr_update(struct amdgpu_device *adev, struct amd
                        dev_attr->store = NULL;
                }
                break;

+ case IP_VERSION(9, 4, 2):
+ if (DEVICE_ATTR_IS(pp_dpm_mclk) ||
+ DEVICE_ATTR_IS(pp_dpm_socclk)) {
+ /* Aldebaran mclk/socclk DPM only supports voltage control,
+ * not allow to set dpm level directly */
+ dev_attr->attr.mode &= ~S_IWUGO;
+ dev_attr->store = NULL;
+ } else if (DEVICE_ATTR_IS(pp_dpm_pcie)) {
+ if (amdgpu_is_multi_aid(adev)) {
+ *states = ATTR_STATE_UNSUPPORTED;
+ } else {
+ dev_attr->attr.mode &= ~S_IWUGO;
+ dev_attr->store = NULL;
+ }
+ } else if (DEVICE_ATTR_IS(pp_dpm_fclk)) {
+ /* Aldebaran does not support fclk dpm */
+ *states = ATTR_STATE_UNSUPPORTED;
+ }

+               break;
        default:
                break;
        }

--
2.47.3

#3 lore raw
In reply to Yang Wang
Quoted 47 lines · Yang Wang

Split and correct DPM clock attribute constraints for GFX 9.4.1 (Arcturus) and 9.4.2 (Aldebaran) ASICs:

- Arcturus (9.4.1): Keep restrictions for mclk/socclk/fclk, update comment
- Aldebaran (9.4.2): Add dedicated per-clock constraints:
* mclk/socclk: Only support voltage control, disable level setting
* fclk: Mark as fully unsupported
* pcie: Move multi-AID check into 9.4.2 case, disable level setting

---
  drivers/gpu/drm/amd/pm/amdgpu_pm.c | 26 ++++++++++++++++++++------
  1 file changed, 20 insertions(+), 6 deletions(-)
drivers/gpu/drm/amd/pm/amdgpu_pm.c +8 -6
index fd2e63530e8c..9ee3053973cf 100644
@@ -2033,16 +2033,11 @@ static int pp_dpm_clk_default_attr_update(struct amdgpu_device *adev, struct amd
  		       gc_ver == IP_VERSION(11, 0, 2) ||
  		       gc_ver == IP_VERSION(11, 0, 3)) && adev->vcn.num_vcn_inst >= 2))
  			*states = ATTR_STATE_UNSUPPORTED;
-	} else if (DEVICE_ATTR_IS(pp_dpm_pcie)) {
-		if (gc_ver == IP_VERSION(9, 4, 2) ||
-		    amdgpu_is_multi_aid(adev))
-			*states = ATTR_STATE_UNSUPPORTED;
  	}
 
  	switch (gc_ver) {
  	case IP_VERSION(9, 4, 1):
-	case IP_VERSION(9, 4, 2):
-		/* the Mi series card does not support standalone mclk/socclk/fclk level setting */
+		/* Arcturus does not support standalone mclk/socclk/fclk level setting */
  		if (DEVICE_ATTR_IS(pp_dpm_mclk) ||
  		    DEVICE_ATTR_IS(pp_dpm_socclk) ||
  		    DEVICE_ATTR_IS(pp_dpm_fclk)) {
@@ -2050,6 +2045,25 @@ static int pp_dpm_clk_default_attr_update(struct amdgpu_device *adev, struct amd
  			dev_attr->store = NULL;
  		}
  		break;
+	case IP_VERSION(9, 4, 2):
+		if (DEVICE_ATTR_IS(pp_dpm_mclk) ||
+		    DEVICE_ATTR_IS(pp_dpm_socclk)) {
+			/* Aldebaran mclk/socclk DPM only supports voltage control,
+			 * not allow to set dpm level directly */
+			dev_attr->attr.mode &= ~S_IWUGO;
+			dev_attr->store = NULL;

drivers/gpu/drm/amd/pm/amdgpu_pm.c static int pp_dpm_clk_default_attr_update(struct amdgpu_device *adev, struct amd · line 2064

Quoted 10 lines
drivers/gpu/drm/amd/pm/amdgpu_pm.c +10 -0
+		} else if (DEVICE_ATTR_IS(pp_dpm_pcie)) {
+			if (amdgpu_is_multi_aid(adev)) {
+				*states = ATTR_STATE_UNSUPPORTED;
+			} else {
+				dev_attr->attr.mode &= ~S_IWUGO;
+				dev_attr->store = NULL;
+			}
+		} else if (DEVICE_ATTR_IS(pp_dpm_fclk)) {
+			/* Aldebaran does not support fclk dpm */
+			*states = ATTR_STATE_UNSUPPORTED;

I see FCLK reporting is supported in aldebaran - aldebaran_get_current_clk_freq_by_table.

That may also be kept as read-only then.

Thanks,
Lijo> + }

Quoted 4 lines
drivers/gpu/drm/amd/pm/amdgpu_pm.c +1 -0
+		break;
  	default:
  		break;
  	}
#4 lore raw

AMD General

________________________________
From: Lazar, Lijo <[email protected]>
Sent: Friday, May 8, 2026 12:35 PM
To: Wang, Yang(Kevin) <[email protected]>; [email protected] <[email protected]>
Cc: Deucher, Alexander <[email protected]>; Zhang, Hawking <[email protected]>; Feng, Kenneth <[email protected]>
Subject: Re: [PATCH] drm/amd/pm: update dpm clock pm attributes for aldebaran (gc 9.4.2)

Quoted 47 lines · Yang Wang

Split and correct DPM clock attribute constraints for GFX 9.4.1 (Arcturus) and 9.4.2 (Aldebaran) ASICs:

- Arcturus (9.4.1): Keep restrictions for mclk/socclk/fclk, update comment
- Aldebaran (9.4.2): Add dedicated per-clock constraints:
* mclk/socclk: Only support voltage control, disable level setting
* fclk: Mark as fully unsupported
* pcie: Move multi-AID check into 9.4.2 case, disable level setting

---
  drivers/gpu/drm/amd/pm/amdgpu_pm.c | 26 ++++++++++++++++++++------
  1 file changed, 20 insertions(+), 6 deletions(-)
drivers/gpu/drm/amd/pm/amdgpu_pm.c +8 -6
index fd2e63530e8c..9ee3053973cf 100644
@@ -2033,16 +2033,11 @@ static int pp_dpm_clk_default_attr_update(struct amdgpu_device *adev, struct amd
                      gc_ver == IP_VERSION(11, 0, 2) ||
                      gc_ver == IP_VERSION(11, 0, 3)) && adev->vcn.num_vcn_inst >= 2))
                       *states = ATTR_STATE_UNSUPPORTED;
-     } else if (DEVICE_ATTR_IS(pp_dpm_pcie)) {
-             if (gc_ver == IP_VERSION(9, 4, 2) ||
-                 amdgpu_is_multi_aid(adev))
-                     *states = ATTR_STATE_UNSUPPORTED;
       }
 
       switch (gc_ver) {
       case IP_VERSION(9, 4, 1):
-     case IP_VERSION(9, 4, 2):
-             /* the Mi series card does not support standalone mclk/socclk/fclk level setting */
+             /* Arcturus does not support standalone mclk/socclk/fclk level setting */
               if (DEVICE_ATTR_IS(pp_dpm_mclk) ||
                   DEVICE_ATTR_IS(pp_dpm_socclk) ||
                   DEVICE_ATTR_IS(pp_dpm_fclk)) {
@@ -2050,6 +2045,25 @@ static int pp_dpm_clk_default_attr_update(struct amdgpu_device *adev, struct amd
                       dev_attr->store = NULL;
               }
               break;
+     case IP_VERSION(9, 4, 2):
+             if (DEVICE_ATTR_IS(pp_dpm_mclk) ||
+                 DEVICE_ATTR_IS(pp_dpm_socclk)) {
+                     /* Aldebaran mclk/socclk DPM only supports voltage control,
+                      * not allow to set dpm level directly */
+                     dev_attr->attr.mode &= ~S_IWUGO;
+                     dev_attr->store = NULL;

drivers/gpu/drm/amd/pm/amdgpu_pm.c static int pp_dpm_clk_default_attr_update(struct amdgpu_device *adev, struct amd · line 2064

Quoted 10 lines
drivers/gpu/drm/amd/pm/amdgpu_pm.c +10 -0
+             } else if (DEVICE_ATTR_IS(pp_dpm_pcie)) {
+                     if (amdgpu_is_multi_aid(adev)) {
+                             *states = ATTR_STATE_UNSUPPORTED;
+                     } else {
+                             dev_attr->attr.mode &= ~S_IWUGO;
+                             dev_attr->store = NULL;
+                     }
+             } else if (DEVICE_ATTR_IS(pp_dpm_fclk)) {
+                     /* Aldebaran does not support fclk dpm */
+                     *states = ATTR_STATE_UNSUPPORTED;

I see FCLK reporting is supported in aldebaran -
aldebaran_get_current_clk_freq_by_table.

That may also be kept as read-only then.
[kevin]
No, it should be disabled, because the fclk is always return 0 by metrics table if fclk dpm feature is disabled.

Best Regards,
Kevin

Thanks,
Lijo> + }

Quoted 4 lines
drivers/gpu/drm/amd/pm/amdgpu_pm.c +1 -0
+             break;
       default:
               break;
       }
#5 lore raw
Quoted 80 lines · Yang(Kevin)

AMD General

------------------------------------------------------------------------
*From:* Lazar, Lijo <[email protected]>
*Sent:* Friday, May 8, 2026 12:35 PM
*To:* Wang, Yang(Kevin) <[email protected]>; amd- [email protected] <[email protected]> *Cc:* Deucher, Alexander <[email protected]>; Zhang, Hawking <[email protected]>; Feng, Kenneth <[email protected]> *Subject:* Re: [PATCH] drm/amd/pm: update dpm clock pm attributes for aldebaran (gc 9.4.2)

Quoted 1 line · Yang Wang

Split and correct DPM clock attribute constraints for GFX 9.4.1

(Arcturus)

Quoted 3 lines

and 9.4.2 (Aldebaran) ASICs:

- Arcturus (9.4.1): Keep restrictions for mclk/socclk/fclk, update

comment

drivers/gpu/drm/

Quoted 11 lines

- Aldebaran (9.4.2): Add dedicated per-clock constraints:
    * mclk/socclk: Only support voltage control, disable level setting
    * fclk: Mark as fully unsupported
    * pcie: Move multi-AID check into 9.4.2 case, disable level setting

---
   drivers/gpu/drm/amd/pm/amdgpu_pm.c | 26 ++++++++++++++++++++------

   1 file changed, 20 insertions(+), 6 deletions(-)
drivers/gpu/drm/ renamed from drivers/gpu/drm/amd/pm/amdgpu_pm.c +0 -0

amd/pm/amdgpu_pm.c

drivers/gpu/drm/amd/pm/amdgpu_pm.c static int

Quoted 4 lines

index fd2e63530e8c..9ee3053973cf 100644

drivers/gpu/drm/amd/pm/amdgpu_pm.c +0 -0
@@ -2033,16 +2033,11 @@ static int 

pp_dpm_clk_default_attr_update(struct amdgpu_device *adev, struct amd

Quoted 10 lines

                       gc_ver == IP_VERSION(11, 0, 2) || gc_ver == IP_VERSION(11, 0, 3)) && adev- vcn.num_vcn_inst >= 2))
                        *states = ATTR_STATE_UNSUPPORTED; -     } else if (DEVICE_ATTR_IS(pp_dpm_pcie)) {
-             if (gc_ver == IP_VERSION(9, 4, 2) ||
-                 amdgpu_is_multi_aid(adev))
-                     *states = ATTR_STATE_UNSUPPORTED; }

Quoted 4 lines

        switch (gc_ver) {
        case IP_VERSION(9, 4, 1):
-     case IP_VERSION(9, 4, 2):
-             /* the Mi series card does not support standalone mclk/

socclk/fclk level setting */

Quoted 1 line

+             /* Arcturus does not support standalone mclk/socclk/

fclk level setting */

drivers/gpu/drm/amd/pm/amdgpu_pm.c static int

Quoted 4 lines

                if (DEVICE_ATTR_IS(pp_dpm_mclk) || DEVICE_ATTR_IS(pp_dpm_socclk) || DEVICE_ATTR_IS(pp_dpm_fclk)) {

drivers/gpu/drm/amd/pm/amdgpu_pm.c +0 -0
@@ -2050,6 +2045,25 @@ static int 

pp_dpm_clk_default_attr_update(struct amdgpu_device *adev, struct amd

drivers/gpu/drm/amd/pm/amdgpu_pm.c static int pp_dpm_clk_default_attr_update(struct amdgpu_device *adev, struct amd

Quoted 7 lines
drivers/gpu/drm/amd/pm/amdgpu_pm.c +4 -0
                         dev_attr->store = NULL;
                 }
                 break;
+     case IP_VERSION(9, 4, 2):
+             if (DEVICE_ATTR_IS(pp_dpm_mclk) ||
+                 DEVICE_ATTR_IS(pp_dpm_socclk)) {
+                     /* Aldebaran mclk/socclk DPM only supports 

voltage control,

drivers/gpu/drm/amd/pm/amdgpu_pm.c static int pp_dpm_clk_default_attr_update(struct amdgpu_device *adev, struct amd · line 2064

Quoted 13 lines
drivers/gpu/drm/amd/pm/amdgpu_pm.c +13 -0
+                      * not allow to set dpm level directly */
+                     dev_attr->attr.mode &= ~S_IWUGO;
+                     dev_attr->store = NULL;
+             } else if (DEVICE_ATTR_IS(pp_dpm_pcie)) {
+                     if (amdgpu_is_multi_aid(adev)) {
+                             *states = ATTR_STATE_UNSUPPORTED;
+                     } else {
+                             dev_attr->attr.mode &= ~S_IWUGO;
+                             dev_attr->store = NULL;
+                     }
+             } else if (DEVICE_ATTR_IS(pp_dpm_fclk)) {
+                     /* Aldebaran does not support fclk dpm */
+                     *states = ATTR_STATE_UNSUPPORTED;
Quoted 7 lines

I see FCLK reporting is supported in aldebaran -
aldebaran_get_current_clk_freq_by_table.

That may also be kept as read-only then.
[kevin]
No, it should be disabled, because the fclk is always return 0 by metrics table if fclk dpm feature is disabled.

In that case, aldebaran_emit_clk_levels etc. be modified as well to reflect this since FCLK DPM is always disabled?

Thanks,
Lijo

Quoted 10 lines

Best Regards,
Kevin

Thanks,
Lijo> +         }

Quoted 4 lines
drivers/gpu/drm/amd/pm/amdgpu_pm.c +1 -0
+             break;

        default:
                break;
        }

#6 lore raw

AMD General

Quoted 86 lines

-----Original Message-----
From: Lazar, Lijo <[email protected]>
Sent: Friday, May 8, 2026 1:33 PM
To: Wang, Yang(Kevin) <[email protected]>; amd- [email protected]
Cc: Deucher, Alexander <[email protected]>; Zhang, Hawking <[email protected]>; Feng, Kenneth <[email protected]>
Subject: Re: [PATCH] drm/amd/pm: update dpm clock pm attributes for aldebaran (gc 9.4.2)

Quoted 11 lines · Yang(Kevin)

AMD General

----------------------------------------------------------------------
--
*From:* Lazar, Lijo <[email protected]>
*Sent:* Friday, May 8, 2026 12:35 PM
*To:* Wang, Yang(Kevin) <[email protected]>; amd- [email protected] <[email protected]> *Cc:* Deucher, Alexander <[email protected]>; Zhang,

Hawking

Quoted 19 lines

<[email protected]>; Feng, Kenneth <[email protected]> *Subject:* Re: [PATCH] drm/amd/pm: update dpm clock pm attributes for aldebaran (gc 9.4.2)

Quoted 1 line · Yang Wang

Split and correct DPM clock attribute constraints for GFX 9.4.1

(Arcturus)

Quoted 3 lines

and 9.4.2 (Aldebaran) ASICs:

- Arcturus (9.4.1): Keep restrictions for mclk/socclk/fclk, update

comment > - Aldebaran (9.4.2): Add dedicated per-clock constraints:

Quoted 1 line

* mclk/socclk: Only support voltage control, disable level

setting > * fclk: Mark as fully unsupported > * pcie: Move
multi-AID check into 9.4.2 case, disable level setting > >

drivers/gpu/drm/amd/pm/amdgpu_pm.c | 26 ++++++++++++++++++++------

1 file changed, 20 insertions(+), 6 deletions(-)  >  > diff --git
Quoted 8 lines

a/drivers/gpu/drm/amd/pm/amdgpu_pm.c b/drivers/gpu/drm/ amd/pm/amdgpu_pm.c > index fd2e63530e8c..9ee3053973cf 100644 > --- a/drivers/gpu/drm/amd/pm/amdgpu_pm.c

Review static int

Quoted 2 lines

+++ b/drivers/gpu/drm/amd/pm/amdgpu_pm.c

(quoted diff) +0 -0
@@ -2033,16 +2033,11 @@ static int

pp_dpm_clk_default_attr_update(struct amdgpu_device *adev, struct amd

Review static int · line 2033

Quoted 1 line
(quoted diff) +0 -0
                      gc_ver == IP_VERSION(11, 0, 2) ||  >

gc_ver == IP_VERSION(11, 0, 3)) && adev- >vcn.num_vcn_inst >=

2)) >

Quoted 33 lines

*states = ATTR_STATE_UNSUPPORTED; > - } else if
(DEVICE_ATTR_IS(pp_dpm_pcie)) { > - if (gc_ver ==
IP_VERSION(9, 4, 2) || > - amdgpu_is_multi_aid(adev))

Review static int · line 2037

Quoted 4 lines
(quoted diff) +0 -3
-                     *states = ATTR_STATE_UNSUPPORTED;  >        }
 >        switch (gc_ver) {  >        case IP_VERSION(9, 4, 1):
-     case IP_VERSION(9, 4, 2):
-             /* the Mi series card does not support standalone

mclk/ socclk/fclk level setting */ > + /* Arcturus does
not support standalone mclk/socclk/ fclk level setting */ > if (DEVICE_ATTR_IS(pp_dpm_mclk) || > DEVICE_ATTR_IS(pp_dpm_socclk) || > DEVICE_ATTR_IS(pp_dpm_fclk)) { > @@ -2050,6 +2045,25 @@ static int pp_dpm_clk_default_attr_update(struct amdgpu_device *adev, struct amd

Review static int · line 2037

Quoted 3 lines
(quoted diff) +1 -0
                       dev_attr->store = NULL;  >                }
               break;  > +     case IP_VERSION(9, 4, 2):
+             if (DEVICE_ATTR_IS(pp_dpm_mclk) ||  > +

DEVICE_ATTR_IS(pp_dpm_socclk)) { > + /* Aldebaran
mclk/socclk DPM only supports voltage control, > +
* not allow to set dpm level directly */ > + dev_attr->attr.mode &= ~S_IWUGO; > +
dev_attr->store = NULL; > + } else if
(DEVICE_ATTR_IS(pp_dpm_pcie)) { > + if
(amdgpu_is_multi_aid(adev)) { > + *states
= ATTR_STATE_UNSUPPORTED; > + } else { > +
dev_attr->attr.mode &= ~S_IWUGO; > +
dev_attr->store = NULL; > + } > + }
else if (DEVICE_ATTR_IS(pp_dpm_fclk)) { > + /*
Aldebaran does not support fclk dpm */ > + *states = ATTR_STATE_UNSUPPORTED;

I see FCLK reporting is supported in aldebaran -
aldebaran_get_current_clk_freq_by_table.

Quoted 8 lines
Quoted 5 lines

That may also be kept as read-only then.
[kevin]
No, it should be disabled, because the fclk is always return 0 by metrics table if fclk dpm feature is disabled.

In that case, aldebaran_emit_clk_levels etc. be modified as well to reflect this since FCLK DPM is always disabled?

Since we already mark FCLK as unsupported in sysfs attribute,
there is no need to modify aldebaran_emit_clk_levels and related functions. Those paths won't be invoked anyway, and extra changes are unnecessary for this fix.

So, I prefer keep it, and only keep changes in amdgpu_pm.c source file for this issue.

Best Regards,
Kevin

Quoted 13 lines

Thanks,
Lijo

Quoted 10 lines

Best Regards,
Kevin

Thanks,
Lijo> + }

Quoted 4 lines
drivers/gpu/drm/amd/pm/amdgpu_pm.c +1 -0
+             break;
       default:
               break;
       }