From: kernel test robot <lkp@intel.com>
To: "Markus Elfring" <Markus.Elfring@web.de>,
amd-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org,
"Alex Deucher" <alexander.deucher@amd.com>,
"Alex Hung" <alex.hung@amd.com>,
"Aurabindo Pillai" <aurabindo.pillai@amd.com>,
"Christian König" <christian.koenig@amd.com>,
"Daniel Vetter" <daniel@ffwll.ch>,
"David Airlie" <airlied@gmail.com>,
"Dominik Kaszewski" <dominik.kaszewski@amd.com>,
"Fangzhi Zuo" <Jerry.Zuo@amd.com>,
"Hamza Mahfooz" <hamza.mahfooz@amd.com>,
"Harry Wentland" <harry.wentland@amd.com>,
"Hersen Wu" <hersenxs.wu@amd.com>, "Leo Li" <sunpeng.li@amd.com>,
"Mario Limonciello" <mario.limonciello@amd.com>,
"Rodrigo Siqueira" <Rodrigo.Siqueira@amd.com>,
"Roman Li" <roman.li@amd.com>, "Simona Vetter" <simona@ffwll.ch>,
"Stylon Wang" <stylon.wang@amd.com>,
"Tom Chung" <chiahsuan.chung@amd.com>,
"Wayne Lin" <Wayne.Lin@amd.com>,
"Xinhui Pan" <Xinhui.Pan@amd.com>
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev,
LKML <linux-kernel@vger.kernel.org>,
kernel-janitors@vger.kernel.org, cocci@inria.fr,
Melissa Wen <mwen@igalia.com>
Subject: Re: [PATCH v2] drm/amd/display: Fix exception handling in dm_validate_stream_and_context()
Date: Tue, 10 Jun 2025 03:21:00 +0800 [thread overview]
Message-ID: <202506100312.Ms4XgAzW-lkp@intel.com> (raw)
In-Reply-To: <da489521-7786-4716-8fb8-d79b3c08d93c@web.de>
Hi Markus,
kernel test robot noticed the following build errors:
[auto build test ERROR on next-20250606]
[also build test ERROR on v6.16-rc1]
[cannot apply to drm-exynos/exynos-drm-next linus/master drm-intel/for-linux-next drm-intel/for-linux-next-fixes drm/drm-next drm-misc/drm-misc-next v6.16-rc1 v6.15 v6.15-rc7]
[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/Markus-Elfring/drm-amd-display-Fix-exception-handling-in-dm_validate_stream_and_context/20250609-151039
base: next-20250606
patch link: https://lore.kernel.org/r/da489521-7786-4716-8fb8-d79b3c08d93c%40web.de
patch subject: [PATCH v2] drm/amd/display: Fix exception handling in dm_validate_stream_and_context()
config: x86_64-buildonly-randconfig-005-20250609 (https://download.01.org/0day-ci/archive/20250610/202506100312.Ms4XgAzW-lkp@intel.com/config)
compiler: clang version 20.1.2 (https://github.com/llvm/llvm-project 58df0ef89dd64126512e4ee27b4ac3fd8ddf6247)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250610/202506100312.Ms4XgAzW-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/202506100312.Ms4XgAzW-lkp@intel.com/
All errors (new ones prefixed by >>):
>> drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm.c:7525:2: error: call to undeclared function 'dc_release_state'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
7525 | dc_release_state(dc_state);
| ^
1 error generated.
vim +/dc_release_state +7525 drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm.c
7471
7472 static enum dc_status dm_validate_stream_and_context(struct dc *dc,
7473 struct dc_stream_state *stream)
7474 {
7475 enum dc_status dc_result = DC_ERROR_UNEXPECTED;
7476 struct dc_plane_state *dc_plane_state;
7477 struct dc_state *dc_state;
7478
7479 if (!stream)
7480 return dc_result;
7481
7482 dc_plane_state = dc_create_plane_state(dc);
7483 if (!dc_plane_state)
7484 return dc_result;
7485
7486 dc_state = dc_state_create(dc, NULL);
7487 if (!dc_state)
7488 goto release_plane_state;
7489
7490 /* populate stream to plane */
7491 dc_plane_state->src_rect.height = stream->src.height;
7492 dc_plane_state->src_rect.width = stream->src.width;
7493 dc_plane_state->dst_rect.height = stream->src.height;
7494 dc_plane_state->dst_rect.width = stream->src.width;
7495 dc_plane_state->clip_rect.height = stream->src.height;
7496 dc_plane_state->clip_rect.width = stream->src.width;
7497 dc_plane_state->plane_size.surface_pitch = ((stream->src.width + 255) / 256) * 256;
7498 dc_plane_state->plane_size.surface_size.height = stream->src.height;
7499 dc_plane_state->plane_size.surface_size.width = stream->src.width;
7500 dc_plane_state->plane_size.chroma_size.height = stream->src.height;
7501 dc_plane_state->plane_size.chroma_size.width = stream->src.width;
7502 dc_plane_state->format = SURFACE_PIXEL_FORMAT_GRPH_ARGB8888;
7503 dc_plane_state->tiling_info.gfx9.swizzle = DC_SW_UNKNOWN;
7504 dc_plane_state->rotation = ROTATION_ANGLE_0;
7505 dc_plane_state->is_tiling_rotated = false;
7506 dc_plane_state->tiling_info.gfx8.array_mode = DC_ARRAY_LINEAR_GENERAL;
7507
7508 dc_result = dc_validate_stream(dc, stream);
7509 if (dc_result == DC_OK)
7510 dc_result = dc_validate_plane(dc, dc_plane_state);
7511
7512 if (dc_result == DC_OK)
7513 dc_result = dc_state_add_stream(dc, dc_state, stream);
7514
7515 if (dc_result == DC_OK && !dc_state_add_plane(
7516 dc,
7517 stream,
7518 dc_plane_state,
7519 dc_state))
7520 dc_result = DC_FAIL_ATTACH_SURFACES;
7521
7522 if (dc_result == DC_OK)
7523 dc_result = dc_validate_global_state(dc, dc_state, DC_VALIDATE_MODE_ONLY);
7524
> 7525 dc_release_state(dc_state);
7526 release_plane_state:
7527 dc_plane_state_release(dc_plane_state);
7528 return dc_result;
7529 }
7530
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
next parent reply other threads:[~2025-06-09 19:21 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <f9303bdc-b1a7-be5e-56c6-dfa8232b8b55@web.de>
[not found] ` <e6656c83-ee7a-a253-2028-109138779c94@web.de>
[not found] ` <ea0ff67b-3665-db82-9792-67a633ba07f5@web.de>
[not found] ` <32674bac-92c2-8fc7-0977-6d2d81b3257f@amd.com>
[not found] ` <da489521-7786-4716-8fb8-d79b3c08d93c@web.de>
2025-06-09 19:21 ` kernel test robot [this message]
2025-06-10 6:10 ` [PATCH v3] drm/amd/display: Fix exception handling in dm_validate_stream_and_context() Markus Elfring
2025-06-12 14:08 ` Melissa Wen
2025-06-12 20:25 ` [v3] " Markus Elfring
2025-06-18 18:19 ` [PATCH v3] " Dan Carpenter
2025-06-16 21:22 ` Alex Hung
2025-06-17 6:40 ` [v3] " Markus Elfring
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=202506100312.Ms4XgAzW-lkp@intel.com \
--to=lkp@intel.com \
--cc=Jerry.Zuo@amd.com \
--cc=Markus.Elfring@web.de \
--cc=Rodrigo.Siqueira@amd.com \
--cc=Wayne.Lin@amd.com \
--cc=Xinhui.Pan@amd.com \
--cc=airlied@gmail.com \
--cc=alex.hung@amd.com \
--cc=alexander.deucher@amd.com \
--cc=amd-gfx@lists.freedesktop.org \
--cc=aurabindo.pillai@amd.com \
--cc=chiahsuan.chung@amd.com \
--cc=christian.koenig@amd.com \
--cc=cocci@inria.fr \
--cc=daniel@ffwll.ch \
--cc=dominik.kaszewski@amd.com \
--cc=dri-devel@lists.freedesktop.org \
--cc=hamza.mahfooz@amd.com \
--cc=harry.wentland@amd.com \
--cc=hersenxs.wu@amd.com \
--cc=kernel-janitors@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=llvm@lists.linux.dev \
--cc=mario.limonciello@amd.com \
--cc=mwen@igalia.com \
--cc=oe-kbuild-all@lists.linux.dev \
--cc=roman.li@amd.com \
--cc=simona@ffwll.ch \
--cc=stylon.wang@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;
as well as URLs for NNTP newsgroup(s).