The Linux Kernel Mailing List
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: "Sagar Vashnav" <sagarvashnav72427@gmail.com>,
	"Harry Wentland" <harry.wentland@amd.com>,
	"Leo Li" <sunpeng.li@amd.com>,
	"Rodrigo Siqueira" <Rodrigo.Siqueira@amd.com>,
	"Alex Deucher" <alexander.deucher@amd.com>,
	"Christian König" <christian.koenig@amd.com>,
	"Pan, Xinhui" <Xinhui.Pan@amd.com>,
	"David Airlie" <airlied@gmail.com>,
	"Daniel Vetter" <daniel@ffwll.ch>,
	amd-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org,
	linux-kernel@vger.kernel.org
Cc: oe-kbuild-all@lists.linux.dev
Subject: Re: [PATCH] drm/amd/display: add kernel docs for dc_stream_forward_crc_window
Date: Thu, 26 Oct 2023 09:25:12 +0800	[thread overview]
Message-ID: <202310260912.JFR01gdE-lkp@intel.com> (raw)
In-Reply-To: <20231025140419.21180-1-sagarvashnav72427@gmail.com>

Hi Sagar,

kernel test robot noticed the following build warnings:

[auto build test WARNING on drm-misc/drm-misc-next]
[also build test WARNING on linus/master v6.6-rc7 next-20231025]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch#_base_tree_information]

url:    https://github.com/intel-lab-lkp/linux/commits/Sagar-Vashnav/drm-amd-display-add-kernel-docs-for-dc_stream_forward_crc_window/20231026-001250
base:   git://anongit.freedesktop.org/drm/drm-misc drm-misc-next
patch link:    https://lore.kernel.org/r/20231025140419.21180-1-sagarvashnav72427%40gmail.com
patch subject: [PATCH] drm/amd/display: add kernel docs for dc_stream_forward_crc_window
config: csky-randconfig-002-20231026 (https://download.01.org/0day-ci/archive/20231026/202310260912.JFR01gdE-lkp@intel.com/config)
compiler: csky-linux-gcc (GCC) 13.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20231026/202310260912.JFR01gdE-lkp@intel.com/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202310260912.JFR01gdE-lkp@intel.com/

All warnings (new ones prefixed by >>):

>> drivers/gpu/drm/amd/amdgpu/../display/dc/core/dc.c:536: warning: bad line: 
   drivers/gpu/drm/amd/amdgpu/../display/dc/core/dc.c:539: warning: bad line: 


vim +536 drivers/gpu/drm/amd/amdgpu/../display/dc/core/dc.c

   530	
   531	/**
   532	 * dc_stream_forward_crc_window() - Forward CRC window configuration to DMUB or DMCU.
   533	 * @stream: The stream state to forward CRC window configuration for.
   534	 * @rect: Pointer to the rectangle defining the CRC window coordinates.
   535	 * @is_stop: Flag indicating whether the CRC capture should be stopped.
 > 536	
   537	 * This function is responsible for forwarding the CRC window configuration
   538	 * for a given stream to either the DMUB or DMCU, depending on their availability.
   539	
   540	 * Return:
   541	 * %true if the CRC window configuration was successfully forwarded;
   542	 * %false if the stream was not found or CRC forwarding is not supported.
   543	 */
   544	bool
   545	dc_stream_forward_crc_window(struct dc_stream_state *stream,
   546			struct rect *rect, bool is_stop)
   547	{
   548		struct dmcu *dmcu;
   549		struct dc_dmub_srv *dmub_srv;
   550		struct otg_phy_mux mux_mapping;
   551		struct pipe_ctx *pipe;
   552		int i;
   553		struct dc *dc = stream->ctx->dc;
   554	
   555		for (i = 0; i < MAX_PIPES; i++) {
   556			pipe = &dc->current_state->res_ctx.pipe_ctx[i];
   557			if (pipe->stream == stream && !pipe->top_pipe && !pipe->prev_odm_pipe)
   558				break;
   559		}
   560	
   561		/* Stream not found */
   562		if (i == MAX_PIPES)
   563			return false;
   564	
   565		mux_mapping.phy_output_num = stream->link->link_enc_hw_inst;
   566		mux_mapping.otg_output_num = pipe->stream_res.tg->inst;
   567	
   568		dmcu = dc->res_pool->dmcu;
   569		dmub_srv = dc->ctx->dmub_srv;
   570	
   571		/* forward to dmub */
   572		if (dmub_srv)
   573			dc_stream_forward_dmub_crc_window(dmub_srv, rect, &mux_mapping, is_stop);
   574		/* forward to dmcu */
   575		else if (dmcu && dmcu->funcs->is_dmcu_initialized(dmcu))
   576			dc_stream_forward_dmcu_crc_window(dmcu, rect, &mux_mapping, is_stop);
   577		else
   578			return false;
   579	
   580		return true;
   581	}
   582	#endif /* CONFIG_DRM_AMD_SECURE_DISPLAY */
   583	

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki

  reply	other threads:[~2023-10-26  1:25 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-10-25 14:04 [PATCH] drm/amd/display: add kernel docs for dc_stream_forward_crc_window Sagar Vashnav
2023-10-26  1:25 ` kernel test robot [this message]
2023-10-30 15:59 ` Rodrigo Siqueira Jordao

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=202310260912.JFR01gdE-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=Rodrigo.Siqueira@amd.com \
    --cc=Xinhui.Pan@amd.com \
    --cc=airlied@gmail.com \
    --cc=alexander.deucher@amd.com \
    --cc=amd-gfx@lists.freedesktop.org \
    --cc=christian.koenig@amd.com \
    --cc=daniel@ffwll.ch \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=harry.wentland@amd.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=oe-kbuild-all@lists.linux.dev \
    --cc=sagarvashnav72427@gmail.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