All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Hansen Dsouza <Hansen.Dsouza@amd.com>
Cc: kbuild-all@lists.01.org, linux-kernel@vger.kernel.org,
	Alex Deucher <alexander.deucher@amd.com>,
	Charlene Liu <Charlene.Liu@amd.com>, Leo Li <sunpeng.li@amd.com>
Subject: [agd5f:drm-next-5.18 65/86] drivers/gpu/drm/amd/amdgpu/../display/dc/clk_mgr/dcn316/dcn316_smu.c:114:5: warning: no previous prototype for 'dcn316_smu_send_msg_with_param'
Date: Mon, 21 Feb 2022 10:12:02 +0800	[thread overview]
Message-ID: <202202211018.P5xaC86f-lkp@intel.com> (raw)

tree:   https://gitlab.freedesktop.org/agd5f/linux.git drm-next-5.18
head:   b63c54d978236dd6014cf2ffba96d626e97c915c
commit: c477eaa6a79da6af7e59f74e69af7d6b3af52a23 [65/86] drm/amd/display: Add DCN316 resource and SMU clock manager
config: i386-allyesconfig (https://download.01.org/0day-ci/archive/20220221/202202211018.P5xaC86f-lkp@intel.com/config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce (this is a W=1 build):
        git remote add agd5f https://gitlab.freedesktop.org/agd5f/linux.git
        git fetch --no-tags agd5f drm-next-5.18
        git checkout c477eaa6a79da6af7e59f74e69af7d6b3af52a23
        # save the config file to linux build tree
        mkdir build_dir
        make W=1 O=build_dir ARCH=i386 SHELL=/bin/bash

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>

All warnings (new ones prefixed by >>):

>> drivers/gpu/drm/amd/amdgpu/../display/dc/clk_mgr/dcn316/dcn316_smu.c:114:5: warning: no previous prototype for 'dcn316_smu_send_msg_with_param' [-Wmissing-prototypes]
     114 | int dcn316_smu_send_msg_with_param(
         |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>> drivers/gpu/drm/amd/amdgpu/../display/dc/clk_mgr/dcn316/dcn316_smu.c:171:5: warning: no previous prototype for 'dcn316_smu_set_voltage_via_phyclk' [-Wmissing-prototypes]
     171 | int dcn316_smu_set_voltage_via_phyclk(struct clk_mgr_internal *clk_mgr, int requested_phyclk_khz)
         |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   In file included from drivers/gpu/drm/amd/amdgpu/../display/dc/inc/core_types.h:32,
                    from drivers/gpu/drm/amd/amdgpu/../display/dc/clk_mgr/dcn316/dcn316_smu.c:26:
   drivers/gpu/drm/amd/amdgpu/../display/include/ddc_service_types.h:127:22: warning: 'SYNAPTICS_DEVICE_ID' defined but not used [-Wunused-const-variable=]
     127 | static const uint8_t SYNAPTICS_DEVICE_ID[] = "SYNA";
         |                      ^~~~~~~~~~~~~~~~~~~
   drivers/gpu/drm/amd/amdgpu/../display/include/ddc_service_types.h:124:22: warning: 'DP_SINK_DEVICE_STR_ID_2' defined but not used [-Wunused-const-variable=]
     124 | static const uint8_t DP_SINK_DEVICE_STR_ID_2[] = {7, 1, 8, 7, 5, 0};
         |                      ^~~~~~~~~~~~~~~~~~~~~~~
   drivers/gpu/drm/amd/amdgpu/../display/include/ddc_service_types.h:123:22: warning: 'DP_SINK_DEVICE_STR_ID_1' defined but not used [-Wunused-const-variable=]
     123 | static const uint8_t DP_SINK_DEVICE_STR_ID_1[] = {7, 1, 8, 7, 3, 0};
         |                      ^~~~~~~~~~~~~~~~~~~~~~~
--
   In file included from drivers/gpu/drm/amd/amdgpu/../display/dmub/dmub_srv.h:67,
                    from drivers/gpu/drm/amd/amdgpu/../display/dc/dc_dmub_srv.h:30,
                    from drivers/gpu/drm/amd/amdgpu/../display/dc/clk_mgr/dcn316/dcn316_clk_mgr.c:41:
   drivers/gpu/drm/amd/amdgpu/../display/dmub/inc/dmub_cmd.h: In function 'dmub_rb_flush_pending':
   drivers/gpu/drm/amd/amdgpu/../display/dmub/inc/dmub_cmd.h:2921:12: warning: variable 'temp' set but not used [-Wunused-but-set-variable]
    2921 |   uint64_t temp;
         |            ^~~~
   drivers/gpu/drm/amd/amdgpu/../display/dc/clk_mgr/dcn316/dcn316_clk_mgr.c: At top level:
>> drivers/gpu/drm/amd/amdgpu/../display/dc/clk_mgr/dcn316/dcn316_clk_mgr.c:488:6: warning: no previous prototype for 'dcn316_clk_mgr_helper_populate_bw_params' [-Wmissing-prototypes]
     488 | void dcn316_clk_mgr_helper_populate_bw_params(
         |      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   In file included from drivers/gpu/drm/amd/amdgpu/../display/dc/inc/core_types.h:32,
                    from drivers/gpu/drm/amd/amdgpu/../display/dc/inc/resource.h:28,
                    from drivers/gpu/drm/amd/amdgpu/../display/dc/inc/hw/clk_mgr_internal.h:36,
                    from drivers/gpu/drm/amd/amdgpu/../display/dc/clk_mgr/dcn316/dcn316_clk_mgr.c:29:
   drivers/gpu/drm/amd/amdgpu/../display/include/ddc_service_types.h:127:22: warning: 'SYNAPTICS_DEVICE_ID' defined but not used [-Wunused-const-variable=]
     127 | static const uint8_t SYNAPTICS_DEVICE_ID[] = "SYNA";
         |                      ^~~~~~~~~~~~~~~~~~~
   drivers/gpu/drm/amd/amdgpu/../display/include/ddc_service_types.h:124:22: warning: 'DP_SINK_DEVICE_STR_ID_2' defined but not used [-Wunused-const-variable=]
     124 | static const uint8_t DP_SINK_DEVICE_STR_ID_2[] = {7, 1, 8, 7, 5, 0};
         |                      ^~~~~~~~~~~~~~~~~~~~~~~
   drivers/gpu/drm/amd/amdgpu/../display/include/ddc_service_types.h:123:22: warning: 'DP_SINK_DEVICE_STR_ID_1' defined but not used [-Wunused-const-variable=]
     123 | static const uint8_t DP_SINK_DEVICE_STR_ID_1[] = {7, 1, 8, 7, 3, 0};
         |                      ^~~~~~~~~~~~~~~~~~~~~~~


vim +/dcn316_smu_send_msg_with_param +114 drivers/gpu/drm/amd/amdgpu/../display/dc/clk_mgr/dcn316/dcn316_smu.c

   113	
 > 114	int dcn316_smu_send_msg_with_param(
   115			struct clk_mgr_internal *clk_mgr,
   116			unsigned int msg_id, unsigned int param)
   117	{
   118		uint32_t result;
   119	
   120		result = dcn316_smu_wait_for_response(clk_mgr, 10, 200000);
   121		ASSERT(result == VBIOSSMC_Result_OK);
   122	
   123		if (result == VBIOSSMC_Status_BUSY) {
   124			return -1;
   125		}
   126	
   127		/* First clear response register */
   128		REG_WRITE(MP1_SMN_C2PMSG_91, VBIOSSMC_Status_BUSY);
   129	
   130		/* Set the parameter register for the SMU message, unit is Mhz */
   131		REG_WRITE(MP1_SMN_C2PMSG_83, param);
   132	
   133		/* Trigger the message transaction by writing the message ID */
   134		REG_WRITE(MP1_SMN_C2PMSG_67, msg_id);
   135	
   136		result = dcn316_smu_wait_for_response(clk_mgr, 10, 200000);
   137	
   138		if (result == VBIOSSMC_Status_BUSY) {
   139			ASSERT(0);
   140			dm_helpers_smu_timeout(CTX, msg_id, param, 10 * 200000);
   141		}
   142	
   143		return REG_READ(MP1_SMN_C2PMSG_83);
   144	}
   145	
   146	int dcn316_smu_get_smu_version(struct clk_mgr_internal *clk_mgr)
   147	{
   148		return dcn316_smu_send_msg_with_param(
   149				clk_mgr,
   150				VBIOSSMC_MSG_GetPmfwVersion,
   151				0);
   152	}
   153	
   154	
   155	int dcn316_smu_set_dispclk(struct clk_mgr_internal *clk_mgr, int requested_dispclk_khz)
   156	{
   157		int actual_dispclk_set_mhz = -1;
   158	
   159		if (!clk_mgr->smu_present)
   160			return requested_dispclk_khz;
   161	
   162		/*  Unit of SMU msg parameter is Mhz */
   163		actual_dispclk_set_mhz = dcn316_smu_send_msg_with_param(
   164				clk_mgr,
   165				VBIOSSMC_MSG_SetDispclkFreq,
   166				khz_to_mhz_ceil(requested_dispclk_khz));
   167	
   168		return actual_dispclk_set_mhz * 1000;
   169	}
   170	
 > 171	int dcn316_smu_set_voltage_via_phyclk(struct clk_mgr_internal *clk_mgr, int requested_phyclk_khz)
   172	{
   173		int actual_phypclk_set_mhz = -1;
   174	
   175		if (!clk_mgr->smu_present && requested_phyclk_khz)
   176			return requested_phyclk_khz;
   177	
   178		/*  Unit of SMU msg parameter is Mhz */
   179		actual_phypclk_set_mhz = dcn316_smu_send_msg_with_param(
   180				clk_mgr,
   181				VBIOSSMC_MSG_SetPhyclkVoltageByFreq,
   182				khz_to_mhz_ceil(requested_phyclk_khz));
   183	
   184		return actual_phypclk_set_mhz * 1000;
   185	}
   186	

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org

                 reply	other threads:[~2022-02-21  2:13 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=202202211018.P5xaC86f-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=Charlene.Liu@amd.com \
    --cc=Hansen.Dsouza@amd.com \
    --cc=alexander.deucher@amd.com \
    --cc=kbuild-all@lists.01.org \
    --cc=linux-kernel@vger.kernel.org \
    --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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.