Skip to contentSkip to conversation

drm/amdgpu: Fix incorrect filenames in sysfs comments

PATCH In review [email protected] 3 participants 4 messages Feb 6, 2023 – Feb 7, 2023

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

PATCH 1/2 drm/amdgpu: Fix incorrect filenames in sysfs comments

This looks like a standard copy/paste mistake. Replace the incorrect serial_number references with product_name and product_model

---
 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c +2 -2
index a10b627c8357..5a97021bbb23 100644
@@ -162,7 +162,7 @@ static void amdgpu_device_get_pcie_info(struct amdgpu_device *adev);
  *
  * The amdgpu driver provides a sysfs API for reporting the product name
  * for the device
- * The file serial_number is used for this and returns the product name
+ * The file product_name is used for this and returns the product name
  * as returned from the FRU.
  * NOTE: This is only available for certain server cards
  */
@@ -184,7 +184,7 @@ static DEVICE_ATTR(product_name, S_IRUGO,
  *
  * The amdgpu driver provides a sysfs API for reporting the part number
  * for the device
- * The file serial_number is used for this and returns the part number
+ * The file product_number is used for this and returns the part number
  * as returned from the FRU.
  * NOTE: This is only available for certain server cards
  */
Signature · 1 line
2.34.1
#1 lore raw

PATCH 2/2 drm/amdgpu: Add unique_id support for GC 11.0.1/2

These can support unique_id, so create the sysfs file for them

---
 drivers/gpu/drm/amd/pm/amdgpu_pm.c | 2 ++
 1 file changed, 2 insertions(+)
drivers/gpu/drm/amd/pm/amdgpu_pm.c +2 -0
index bd060697d982..bf6d63673b5a 100644
@@ -1991,6 +1991,8 @@ static int default_attr_update(struct amdgpu_device *adev, struct amdgpu_device_
 		case IP_VERSION(9, 4, 2):
 		case IP_VERSION(10, 3, 0):
 		case IP_VERSION(11, 0, 0):
+		case IP_VERSION(11, 0, 1):
+		case IP_VERSION(11, 0, 2):
 			*states = ATTR_STATE_SUPPORTED;
 			break;
 		default:
Signature · 1 line
2.34.1
#2 lore raw
In reply to [email protected]

[AMD Official Use Only - General]

This series Reviewed-by: Harish Kasiviswanathan <[email protected]>

-----Original Message-----
From: amd-gfx <[email protected]> On Behalf Of [email protected]
Sent: Monday, February 6, 2023 12:26 PM
To: [email protected]
Cc: Russell, Kent <[email protected]>
Subject: [PATCH 1/2] drm/amdgpu: Fix incorrect filenames in sysfs comments

This looks like a standard copy/paste mistake. Replace the incorrect serial_number references with product_name and product_model

---
 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c +2 -2
index a10b627c8357..5a97021bbb23 100644
@@ -162,7 +162,7 @@ static void amdgpu_device_get_pcie_info(struct amdgpu_device *adev);
  *
  * The amdgpu driver provides a sysfs API for reporting the product name
  * for the device
- * The file serial_number is used for this and returns the product name
+ * The file product_name is used for this and returns the product name
  * as returned from the FRU.
  * NOTE: This is only available for certain server cards
  */
@@ -184,7 +184,7 @@ static DEVICE_ATTR(product_name, S_IRUGO,
  *
  * The amdgpu driver provides a sysfs API for reporting the part number
  * for the device
- * The file serial_number is used for this and returns the part number
+ * The file product_number is used for this and returns the part number
  * as returned from the FRU.
  * NOTE: This is only available for certain server cards
  */
Signature · 1 line
2.34.1
Reviewed-by on v1 1/2
#3 lore raw
In reply to [email protected]

Am 06.02.23 um 18:25 schrieb [email protected]:

Quoted 4 lines

This looks like a standard copy/paste mistake. Replace the incorrect serial_number references with product_name and product_model

Quoted 26 lines
---
  drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 4 ++--
  1 file changed, 2 insertions(+), 2 deletions(-)
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c +2 -2
index a10b627c8357..5a97021bbb23 100644
@@ -162,7 +162,7 @@ static void amdgpu_device_get_pcie_info(struct amdgpu_device *adev);
   *
   * The amdgpu driver provides a sysfs API for reporting the product name
   * for the device
- * The file serial_number is used for this and returns the product name
+ * The file product_name is used for this and returns the product name
   * as returned from the FRU.
   * NOTE: This is only available for certain server cards
   */
@@ -184,7 +184,7 @@ static DEVICE_ATTR(product_name, S_IRUGO,
   *
   * The amdgpu driver provides a sysfs API for reporting the part number
   * for the device
- * The file serial_number is used for this and returns the part number
+ * The file product_number is used for this and returns the part number
   * as returned from the FRU.
   * NOTE: This is only available for certain server cards
   */