[radeon-alex:amd-staging-drm-next 138/173] drivers/gpu/drm/amd/amdgpu/../display/dc/core/dc_resource.c:1644:14: error: implicit declaration of function 'acquire_first_split_pipe'

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



tree:   git://people.freedesktop.org/~agd5f/linux.git amd-staging-drm-next
head:   1b006d838f78d7822f606087fa12ea7ad2c5753b
commit: 5b5d50de60e4b3b9ffa5666678f044f2a69d4285 [138/173] drm/amd/display: Fixed extend to second screen mode hang
config: ia64-allmodconfig (attached as .config)
compiler: ia64-linux-gcc (GCC) 6.2.0
reproduce:
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        git checkout 5b5d50de60e4b3b9ffa5666678f044f2a69d4285
        # save the attached .config to linux build tree
        make.cross ARCH=ia64 

All errors (new ones prefixed by >>):

   drivers/gpu/drm/amd/amdgpu/../display/dc/core/dc_resource.c: In function 'resource_map_pool_resources':
>> drivers/gpu/drm/amd/amdgpu/../display/dc/core/dc_resource.c:1644:14: error: implicit declaration of function 'acquire_first_split_pipe' [-Werror=implicit-function-declaration]
      pipe_idx = acquire_first_split_pipe(&context->res_ctx, pool, stream);
                 ^~~~~~~~~~~~~~~~~~~~~~~~
   cc1: some warnings being treated as errors

vim +/acquire_first_split_pipe +1644 drivers/gpu/drm/amd/amdgpu/../display/dc/core/dc_resource.c

  1617	
  1618	enum dc_status resource_map_pool_resources(
  1619			const struct dc  *dc,
  1620			struct dc_state *context,
  1621			struct dc_stream_state *stream)
  1622	{
  1623		const struct resource_pool *pool = dc->res_pool;
  1624		int i;
  1625		struct dc_context *dc_ctx = dc->ctx;
  1626		struct pipe_ctx *pipe_ctx = NULL;
  1627		int pipe_idx = -1;
  1628	
  1629		/* TODO Check if this is needed */
  1630		/*if (!resource_is_stream_unchanged(old_context, stream)) {
  1631				if (stream != NULL && old_context->streams[i] != NULL) {
  1632					stream->bit_depth_params =
  1633							old_context->streams[i]->bit_depth_params;
  1634					stream->clamping = old_context->streams[i]->clamping;
  1635					continue;
  1636				}
  1637			}
  1638		*/
  1639	
  1640		/* acquire new resources */
  1641		pipe_idx = acquire_first_free_pipe(&context->res_ctx, pool, stream);
  1642	
  1643		if (pipe_idx < 0)
> 1644			pipe_idx = acquire_first_split_pipe(&context->res_ctx, pool, stream);
  1645	
  1646		if (pipe_idx < 0)
  1647			return DC_NO_CONTROLLER_RESOURCE;
  1648	
  1649		pipe_ctx = &context->res_ctx.pipe_ctx[pipe_idx];
  1650	
  1651		pipe_ctx->stream_res.stream_enc =
  1652			find_first_free_match_stream_enc_for_link(
  1653				&context->res_ctx, pool, stream);
  1654	
  1655		if (!pipe_ctx->stream_res.stream_enc)
  1656			return DC_NO_STREAM_ENG_RESOURCE;
  1657	
  1658		update_stream_engine_usage(
  1659			&context->res_ctx, pool,
  1660			pipe_ctx->stream_res.stream_enc,
  1661			true);
  1662	
  1663		/* TODO: Add check if ASIC support and EDID audio */
  1664		if (!stream->sink->converter_disable_audio &&
  1665		    dc_is_audio_capable_signal(pipe_ctx->stream->signal) &&
  1666		    stream->audio_info.mode_count) {
  1667			pipe_ctx->stream_res.audio = find_first_free_audio(
  1668			&context->res_ctx, pool);
  1669	
  1670			/*
  1671			 * Audio assigned in order first come first get.
  1672			 * There are asics which has number of audio
  1673			 * resources less then number of pipes
  1674			 */
  1675			if (pipe_ctx->stream_res.audio)
  1676				update_audio_usage(&context->res_ctx, pool,
  1677						   pipe_ctx->stream_res.audio, true);
  1678		}
  1679	
  1680		for (i = 0; i < context->stream_count; i++)
  1681			if (context->streams[i] == stream) {
  1682				context->stream_status[i].primary_otg_inst = pipe_ctx->stream_res.tg->inst;
  1683				context->stream_status[i].stream_enc_inst = pipe_ctx->stream_res.stream_enc->id;
  1684				return DC_OK;
  1685			}
  1686	
  1687		DC_ERROR("Stream %p not found in new ctx!\n", stream);
  1688		return DC_ERROR_UNEXPECTED;
  1689	}
  1690	

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation

Attachment: .config.gz
Description: application/gzip

_______________________________________________
dri-devel mailing list
dri-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/dri-devel

[Index of Archives]     [Linux DRI Users]     [Linux Intel Graphics]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux