Skip to contentSkip to conversation

add kernel-doc for dc_dmub_caps

PATCH In review Sagar Vashnav 2 participants 6 messages Sep 28, 2023 – Oct 2, 2023

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

PATCH 1/1 add kernel-doc for dc_dmub_caps

From: sagar-7227 <[email protected]>

Add kernel documentation for the dc_dmub_caps structure.

---
 dc.h | 10 ++++++++++
 1 file changed, 10 insertions(+)
dc.h +10 -0
index 8125839..cd4dab3 100644
@@ -208,6 +208,16 @@ struct dc_color_caps {
 	struct mpc_color_caps mpc;
 };
 
+/**
+ * struct dc_dmub_caps - DMUB (Display Microcontroller Unit) capabilities
+ * @psr: support for PSR (Power Saving State Residency)
+ * @mclk_sw: support for MCLK_SW (Memory Clock Switch)
+ * @subvp_psr: supprt for SUBVP PSR (Sub-Viewport Power Saving State Residency)
+ * @gecc_enable: GECC (Global Error Correcting Code) enablement.
+ *
+ * This structure describes the capabilities of the Display Microcontroller Unit (DMUB).
+ * It specifies whether certain features like PSR and MCLK_SW are supported.
+ */
 struct dc_dmub_caps {
 	bool psr;
 	bool mclk_sw;
Signature · 1 line
2.34.1
#1 lore raw

Hi--

Quoted 5 lines · Sagar Vashnav

From: sagar-7227 <[email protected]>

Add kernel documentation for the dc_dmub_caps structure.

Use full name, please.

Quoted 4 lines
---
 dc.h | 10 ++++++++++
 1 file changed, 10 insertions(+)

What file is being patched?
The patch should include the file's full path, like:

drivers/gpu/drm/amd/display/dc/dc.h +0 -0

dc.h struct dc_color_caps { · line 215

Quoted 13 lines
dc.h +5 -0
index 8125839..cd4dab3 100644
@@ -208,6 +208,16 @@ struct dc_color_caps {
 	struct mpc_color_caps mpc;
 };
 
+/**
+ * struct dc_dmub_caps - DMUB (Display Microcontroller Unit) capabilities
+ * @psr: support for PSR (Power Saving State Residency)
+ * @mclk_sw: support for MCLK_SW (Memory Clock Switch)
+ * @subvp_psr: supprt for SUBVP PSR (Sub-Viewport Power Saving State Residency)

support

dc.h struct dc_color_caps { · line 223

Quoted 8 lines
dc.h +5 -0
+ * @gecc_enable: GECC (Global Error Correcting Code) enablement.
+ *
+ * This structure describes the capabilities of the Display Microcontroller Unit (DMUB).
+ * It specifies whether certain features like PSR and MCLK_SW are supported.
+ */
 struct dc_dmub_caps {
 	bool psr;
 	bool mclk_sw;

For the patch to be considered, reviewed, and accepted, it should be sent to the AMD DRM display maintainers & mailing list. See the MAINTAINERS file:

AMD DISPLAY CORE
M: Harry Wentland <[email protected]>
M: Leo Li <[email protected]>
M: Rodrigo Siqueira <[email protected]>
L: [email protected]

Thanks.
~Randy

#2 lore raw

PATCH 1/1 add kernel docs for dc_dmub_caps

Add kernel documentation for the dc_dmub_caps structure.

---
 drivers/gpu/drm/amd/display/dc/dc.h | 10 ++++++++++
 1 file changed, 10 insertions(+)
drivers/gpu/drm/amd/display/dc/dc.h +10 -0
index 8125839..14b4c50 100644
@@ -208,6 +208,16 @@ struct dc_color_caps {
 	struct mpc_color_caps mpc;
 };
 
+/**
+ * struct dc_dmub_caps - DMUB (Display Microcontroller Unit) capabilities
+ * @psr: support for PSR (Power Saving State Residency)
+ * @mclk_sw: support for MCLK_SW (Memory Clock Switch)
+ * @subvp_psr: support for SUBVP PSR (Sub-Viewport Power Saving State Residency)
+ * @gecc_enable: GECC (Global Error Correcting Code) enablement.
+ *
+ * This structure describes the capabilities of the Display Microcontroller Unit (DMUB).
+ * It specifies whether certain features like PSR and MCLK_SW are supported.
+ */
 struct dc_dmub_caps {
 	bool psr;
 	bool mclk_sw;
Signature · 1 line
2.34.1
Reviewed-by on v1 1/1
#3 lore raw

Re: [PATCH] add kernel docs for dc_dmub_caps

Hi,

The $Subject could be improved, e.g.:

[PATCH] drm/amd/display: add kernel docs for dc_dmub_caps

Quoted 3 lines · Sagar Vashnav

Add kernel documentation for the dc_dmub_caps structure.

Thanks.

Quoted 25 lines
---
 drivers/gpu/drm/amd/display/dc/dc.h | 10 ++++++++++
 1 file changed, 10 insertions(+)
drivers/gpu/drm/amd/display/dc/dc.h +10 -0
index 8125839..14b4c50 100644
@@ -208,6 +208,16 @@ struct dc_color_caps {
 	struct mpc_color_caps mpc;
 };
 
+/**
+ * struct dc_dmub_caps - DMUB (Display Microcontroller Unit) capabilities
+ * @psr: support for PSR (Power Saving State Residency)
+ * @mclk_sw: support for MCLK_SW (Memory Clock Switch)
+ * @subvp_psr: support for SUBVP PSR (Sub-Viewport Power Saving State Residency)
+ * @gecc_enable: GECC (Global Error Correcting Code) enablement.
+ *
+ * This structure describes the capabilities of the Display Microcontroller Unit (DMUB).
+ * It specifies whether certain features like PSR and MCLK_SW are supported.
+ */
 struct dc_dmub_caps {
 	bool psr;
 	bool mclk_sw;
Signature · 1 line
~Randy
#4 lore raw

PATCH 1/1 drm/amd/display: add kernel docs for dc_dmub_caps

Add kernel documentation for the dc_dmub_caps structure.

---
 drivers/gpu/drm/amd/display/dc/dc.h | 10 ++++++++++
 1 file changed, 10 insertions(+)
drivers/gpu/drm/amd/display/dc/dc.h +10 -0
index 81258392d..14b4c503d 100644
@@ -208,6 +208,16 @@ struct dc_color_caps {
 	struct mpc_color_caps mpc;
 };
 
+/**
+ * struct dc_dmub_caps - DMUB (Display Microcontroller Unit) capabilities
+ * @psr: support for PSR (Power Saving State Residency)
+ * @mclk_sw: support for MCLK_SW (Memory Clock Switch)
+ * @subvp_psr: support for SUBVP PSR (Sub-Viewport Power Saving State Residency)
+ * @gecc_enable: GECC (Global Error Correcting Code) enablement.
+ *
+ * This structure describes the capabilities of the Display Microcontroller Unit (DMUB).
+ * It specifies whether certain features like PSR and MCLK_SW are supported.
+ */
 struct dc_dmub_caps {
 	bool psr;
 	bool mclk_sw;
Signature · 1 line
2.34.1
Reviewed-by on v1 1/1
#5 lore raw

Re: [PATCH] drm/amd/display: add kernel docs for dc_dmub_caps

Quoted 3 lines · Sagar Vashnav

Add kernel documentation for the dc_dmub_caps structure.

Thanks.

Quoted 25 lines
---
 drivers/gpu/drm/amd/display/dc/dc.h | 10 ++++++++++
 1 file changed, 10 insertions(+)
drivers/gpu/drm/amd/display/dc/dc.h +10 -0
index 81258392d..14b4c503d 100644
@@ -208,6 +208,16 @@ struct dc_color_caps {
 	struct mpc_color_caps mpc;
 };
 
+/**
+ * struct dc_dmub_caps - DMUB (Display Microcontroller Unit) capabilities
+ * @psr: support for PSR (Power Saving State Residency)
+ * @mclk_sw: support for MCLK_SW (Memory Clock Switch)
+ * @subvp_psr: support for SUBVP PSR (Sub-Viewport Power Saving State Residency)
+ * @gecc_enable: GECC (Global Error Correcting Code) enablement.
+ *
+ * This structure describes the capabilities of the Display Microcontroller Unit (DMUB).
+ * It specifies whether certain features like PSR and MCLK_SW are supported.
+ */
 struct dc_dmub_caps {
 	bool psr;
 	bool mclk_sw;
Signature · 1 line
~Randy