The Linux Kernel Mailing List
 help / color / mirror / Atom feed
From: Jani Nikula <jani.nikula@linux.intel.com>
To: "Luke Hofstetter" <ldhofstetter@gmail.com>,
	"Alex Deucher" <alexander.deucher@amd.com>,
	"Christian König" <christian.koenig@amd.com>
Cc: David Airlie <airlied@gmail.com>, Simona Vetter <simona@ffwll.ch>,
	Sunil Khatri <sunil.khatri@amd.com>,
	Mario Limonciello <mario.limonciello@amd.com>,
	Aurabindo Pillai <aurabindo.pillai@amd.com>,
	Boyuan Zhang <boyuan.zhang@amd.com>, Leo Li <sunpeng.li@amd.com>,
	Dominik Kaszewski <dominik.kaszewski@amd.com>,
	amd-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org,
	linux-kernel@vger.kernel.org,
	Luke Hofstetter <ldhofstetter@gmail.com>
Subject: Re: [PATCH] drm/amd/include: fix kernel-doc formatting in amd_shared.h
Date: Thu, 17 Apr 2025 11:55:26 +0300	[thread overview]
Message-ID: <877c3jp3pd.fsf@intel.com> (raw)
In-Reply-To: <20250416091143.67704-1-ldhofstetter@gmail.com>

On Wed, 16 Apr 2025, Luke Hofstetter <ldhofstetter@gmail.com> wrote:
> when doing make htmldocs, Sphinx complained about in-line documentation
> in enum DC_DEBUG_MASK, so reformatted documentation to define each
> member in kernel-doc comment above the enum instead.

Why? What's the error message exactly? I think what you have now is the
preferred style. If it really doesn't work for enums, kernel-doc should
be fixed.

BR,
Jani.

>
> Signed-off-by: Luke Hofstetter <ldhofstetter@gmail.com>
> ---
>  drivers/gpu/drm/amd/include/amd_shared.h | 124 ++++++-----------------
>  1 file changed, 32 insertions(+), 92 deletions(-)
>
> diff --git a/drivers/gpu/drm/amd/include/amd_shared.h b/drivers/gpu/drm/amd/include/amd_shared.h
> index 4c95b885d1d0..7074ec3b467f 100644
> --- a/drivers/gpu/drm/amd/include/amd_shared.h
> +++ b/drivers/gpu/drm/amd/include/amd_shared.h
> @@ -255,120 +255,60 @@ enum DC_FEATURE_MASK {
>  
>  /**
>   * enum DC_DEBUG_MASK - Bits that are useful for debugging the Display Core IP
> + * @DC_DISABLE_PIPE_SPLIT: If set, disable pipe-splitting
> + * @DC_DISABLE_STUTTER: If set, disable memory stutter mode
> + * @DC_DISABLE_DSC: If set, disable display stream compression
> + * @DC_DISABLE_CLOCK_GATING: If set, disable clock gating optimizations
> + * @DC_DISABLE_PSR: If set, disable Panel self refresh v1 and PSR-SU
> + * @DC_FORCE_SUBVP_MCLK_SWITCH: If set, force mclk switch in subvp, even
> + *	 							if mclk switch in vblank is possible
> + * @DC_DISABLE_MPO: If set, disable multi-plane offloading
> + * @DC_ENABLE_DPIA_TRACE: If set, enable trace logging for DPIA
> + * @DC_ENABLE_DML2: If set, force usage of DML2, even if the DCN version
> + *	 				does not default to it.
> + * @DC_DISABLE_PSR_SU: If set, disable PSR SU
> + * @DC_DISABLE_REPLAY: If set, disable Panel Replay
> + * @DC_DISABLE_IPS: If set, disable all Idle Power States, all the time.
> + *	 				If more than one IPS debug bit is set, the lowest bit takes
> + *	 				precedence. For example, if DC_FORCE_IPS_ENABLE and
> + *	 				DC_DISABLE_IPS_DYNAMIC are set, then DC_DISABLE_IPS_DYNAMIC takes
> + *	 				precedence.
> + * @DC_DISABLE_IPS_DYNAMIC: If set, disable all IPS, all the time,
> + *	 						*except* when driver goes into suspend.
> + * @DC_DISABLE_IPS2_DYNAMIC: If set, disable IPS2 (IPS1 allowed) if
> + *	 						there is an enabled display. Otherwise, enable all IPS.
> + * @DC_FORCE_IPS_ENABLE: If set, force enable all IPS, all the time.
> + * @DC_DISABLE_ACPI_EDID: If set, don't attempt to fetch EDID for
> + *	 					  eDP display from ACPI _DDC method.
> + * @DC_DISABLE_HDMI_CEC: If set, disable HDMI-CEC feature in amdgpu driver.
> + * @DC_DISABLE_SUBVP: If set, disable DCN Sub-Viewport feature in amdgpu driver.
> + * @DC_DISABLE_CUSTOM_BRIGHTNESS_CURVE: If set, disable support for custom brightness curves
> + * @DC_HDCP_LC_FORCE_FW_ENABLE: If set, use HDCP Locality Check FW
> + *	 					        path regardless of reported HW capabilities.
> + * @DC_HDCP_LC_ENABLE_SW_FALLBACK: If set, upon HDCP Locality Check FW
> + *	                              path failure, retry using legacy SW path.
>   */
>  enum DC_DEBUG_MASK {
> -	/**
> -	 * @DC_DISABLE_PIPE_SPLIT: If set, disable pipe-splitting
> -	 */
>  	DC_DISABLE_PIPE_SPLIT = 0x1,
> -
> -	/**
> -	 * @DC_DISABLE_STUTTER: If set, disable memory stutter mode
> -	 */
>  	DC_DISABLE_STUTTER = 0x2,
> -
> -	/**
> -	 * @DC_DISABLE_DSC: If set, disable display stream compression
> -	 */
>  	DC_DISABLE_DSC = 0x4,
> -
> -	/**
> -	 * @DC_DISABLE_CLOCK_GATING: If set, disable clock gating optimizations
> -	 */
>  	DC_DISABLE_CLOCK_GATING = 0x8,
> -
> -	/**
> -	 * @DC_DISABLE_PSR: If set, disable Panel self refresh v1 and PSR-SU
> -	 */
>  	DC_DISABLE_PSR = 0x10,
> -
> -	/**
> -	 * @DC_FORCE_SUBVP_MCLK_SWITCH: If set, force mclk switch in subvp, even
> -	 * if mclk switch in vblank is possible
> -	 */
>  	DC_FORCE_SUBVP_MCLK_SWITCH = 0x20,
> -
> -	/**
> -	 * @DC_DISABLE_MPO: If set, disable multi-plane offloading
> -	 */
>  	DC_DISABLE_MPO = 0x40,
> -
> -	/**
> -	 * @DC_ENABLE_DPIA_TRACE: If set, enable trace logging for DPIA
> -	 */
>  	DC_ENABLE_DPIA_TRACE = 0x80,
> -
> -	/**
> -	 * @DC_ENABLE_DML2: If set, force usage of DML2, even if the DCN version
> -	 * does not default to it.
> -	 */
>  	DC_ENABLE_DML2 = 0x100,
> -
> -	/**
> -	 * @DC_DISABLE_PSR_SU: If set, disable PSR SU
> -	 */
>  	DC_DISABLE_PSR_SU = 0x200,
> -
> -	/**
> -	 * @DC_DISABLE_REPLAY: If set, disable Panel Replay
> -	 */
>  	DC_DISABLE_REPLAY = 0x400,
> -
> -	/**
> -	 * @DC_DISABLE_IPS: If set, disable all Idle Power States, all the time.
> -	 * If more than one IPS debug bit is set, the lowest bit takes
> -	 * precedence. For example, if DC_FORCE_IPS_ENABLE and
> -	 * DC_DISABLE_IPS_DYNAMIC are set, then DC_DISABLE_IPS_DYNAMIC takes
> -	 * precedence.
> -	 */
>  	DC_DISABLE_IPS = 0x800,
> -
> -	/**
> -	 * @DC_DISABLE_IPS_DYNAMIC: If set, disable all IPS, all the time,
> -	 * *except* when driver goes into suspend.
> -	 */
>  	DC_DISABLE_IPS_DYNAMIC = 0x1000,
> -
> -	/**
> -	 * @DC_DISABLE_IPS2_DYNAMIC: If set, disable IPS2 (IPS1 allowed) if
> -	 * there is an enabled display. Otherwise, enable all IPS.
> -	 */
>  	DC_DISABLE_IPS2_DYNAMIC = 0x2000,
> -
> -	/**
> -	 * @DC_FORCE_IPS_ENABLE: If set, force enable all IPS, all the time.
> -	 */
>  	DC_FORCE_IPS_ENABLE = 0x4000,
> -	/**
> -	 * @DC_DISABLE_ACPI_EDID: If set, don't attempt to fetch EDID for
> -	 * eDP display from ACPI _DDC method.
> -	 */
>  	DC_DISABLE_ACPI_EDID = 0x8000,
> -
> -	/**
> -	 * @DC_DISABLE_HDMI_CEC: If set, disable HDMI-CEC feature in amdgpu driver.
> -	 */
>  	DC_DISABLE_HDMI_CEC = 0x10000,
> -
> -	/**
> -	 * @DC_DISABLE_SUBVP: If set, disable DCN Sub-Viewport feature in amdgpu driver.
> -	 */
>  	DC_DISABLE_SUBVP = 0x20000,
> -	/**
> -	 * @DC_DISABLE_CUSTOM_BRIGHTNESS_CURVE: If set, disable support for custom brightness curves
> -	 */
>  	DC_DISABLE_CUSTOM_BRIGHTNESS_CURVE = 0x40000,
> -
> -	/**
> -	 * @DC_HDCP_LC_FORCE_FW_ENABLE: If set, use HDCP Locality Check FW
> -	 * path regardless of reported HW capabilities.
> -	 */
>  	DC_HDCP_LC_FORCE_FW_ENABLE = 0x80000,
> -
> -	/**
> -	 * @DC_HDCP_LC_ENABLE_SW_FALLBACK If set, upon HDCP Locality Check FW
> -	 * path failure, retry using legacy SW path.
> -	 */
>  	DC_HDCP_LC_ENABLE_SW_FALLBACK = 0x100000,
>  };

-- 
Jani Nikula, Intel

      reply	other threads:[~2025-04-17  8:55 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-04-16  9:11 [PATCH] drm/amd/include: fix kernel-doc formatting in amd_shared.h Luke Hofstetter
2025-04-17  8:55 ` Jani Nikula [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=877c3jp3pd.fsf@intel.com \
    --to=jani.nikula@linux.intel.com \
    --cc=airlied@gmail.com \
    --cc=alexander.deucher@amd.com \
    --cc=amd-gfx@lists.freedesktop.org \
    --cc=aurabindo.pillai@amd.com \
    --cc=boyuan.zhang@amd.com \
    --cc=christian.koenig@amd.com \
    --cc=dominik.kaszewski@amd.com \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=ldhofstetter@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mario.limonciello@amd.com \
    --cc=simona@ffwll.ch \
    --cc=sunil.khatri@amd.com \
    --cc=sunpeng.li@amd.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox