All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: kbuild-all@lists.01.org
Subject: [sashal-stable:pending-5.14 399/754] drivers/gpu/drm/msm/dsi/dsi_host.c:2503:34: error: 'REG_DSI_TEST_PATTERN_GEN_CTRL' undeclared; did you mean 'REG_DSI_EOT_PACKET_CTRL'?
Date: Mon, 15 Nov 2021 04:03:53 +0800	[thread overview]
Message-ID: <202111150448.sNDa8zEV-lkp@intel.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 10841 bytes --]

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/sashal/linux-stable.git pending-5.14
head:   e4110877838108b22ddd621970275e5e2c54b178
commit: da2eb9a67dfe8425ea0a74ec43bf569307824509 [399/754] drm/msm/dsi: add support for dsi test pattern generator
config: arm-defconfig (attached as .config)
compiler: arm-linux-gnueabi-gcc (GCC) 11.2.0
reproduce (this is a W=1 build):
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # https://git.kernel.org/pub/scm/linux/kernel/git/sashal/linux-stable.git/commit/?id=da2eb9a67dfe8425ea0a74ec43bf569307824509
        git remote add sashal-stable https://git.kernel.org/pub/scm/linux/kernel/git/sashal/linux-stable.git
        git fetch --no-tags sashal-stable pending-5.14
        git checkout da2eb9a67dfe8425ea0a74ec43bf569307824509
        # save the attached .config to linux build tree
        mkdir build_dir
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=arm SHELL=/bin/bash drivers/gpu/drm/msm/

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

All errors (new ones prefixed by >>):

   drivers/gpu/drm/msm/dsi/dsi_host.c: In function 'msm_dsi_host_video_test_pattern_setup':
>> drivers/gpu/drm/msm/dsi/dsi_host.c:2503:34: error: 'REG_DSI_TEST_PATTERN_GEN_CTRL' undeclared (first use in this function); did you mean 'REG_DSI_EOT_PACKET_CTRL'?
    2503 |         reg = dsi_read(msm_host, REG_DSI_TEST_PATTERN_GEN_CTRL);
         |                                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
         |                                  REG_DSI_EOT_PACKET_CTRL
   drivers/gpu/drm/msm/dsi/dsi_host.c:2503:34: note: each undeclared identifier is reported only once for each function it appears in
>> drivers/gpu/drm/msm/dsi/dsi_host.c:2505:29: error: 'REG_DSI_TEST_PATTERN_GEN_VIDEO_INIT_VAL' undeclared (first use in this function)
    2505 |         dsi_write(msm_host, REG_DSI_TEST_PATTERN_GEN_VIDEO_INIT_VAL, 0xff);
         |                             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>> drivers/gpu/drm/msm/dsi/dsi_host.c:2507:29: error: 'REG_DSI_TPG_MAIN_CONTROL' undeclared (first use in this function)
    2507 |         dsi_write(msm_host, REG_DSI_TPG_MAIN_CONTROL,
         |                             ^~~~~~~~~~~~~~~~~~~~~~~~
>> drivers/gpu/drm/msm/dsi/dsi_host.c:2508:25: error: 'DSI_TPG_MAIN_CONTROL_CHECKERED_RECTANGLE_PATTERN' undeclared (first use in this function)
    2508 |                         DSI_TPG_MAIN_CONTROL_CHECKERED_RECTANGLE_PATTERN);
         |                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>> drivers/gpu/drm/msm/dsi/dsi_host.c:2510:29: error: 'REG_DSI_TPG_VIDEO_CONFIG' undeclared (first use in this function)
    2510 |         dsi_write(msm_host, REG_DSI_TPG_VIDEO_CONFIG,
         |                             ^~~~~~~~~~~~~~~~~~~~~~~~
>> drivers/gpu/drm/msm/dsi/dsi_host.c:2511:25: error: implicit declaration of function 'DSI_TPG_VIDEO_CONFIG_BPP' [-Werror=implicit-function-declaration]
    2511 |                         DSI_TPG_VIDEO_CONFIG_BPP(VIDEO_CONFIG_24BPP) |
         |                         ^~~~~~~~~~~~~~~~~~~~~~~~
>> drivers/gpu/drm/msm/dsi/dsi_host.c:2511:50: error: 'VIDEO_CONFIG_24BPP' undeclared (first use in this function)
    2511 |                         DSI_TPG_VIDEO_CONFIG_BPP(VIDEO_CONFIG_24BPP) |
         |                                                  ^~~~~~~~~~~~~~~~~~
>> drivers/gpu/drm/msm/dsi/dsi_host.c:2512:25: error: 'DSI_TPG_VIDEO_CONFIG_RGB' undeclared (first use in this function)
    2512 |                         DSI_TPG_VIDEO_CONFIG_RGB);
         |                         ^~~~~~~~~~~~~~~~~~~~~~~~
>> drivers/gpu/drm/msm/dsi/dsi_host.c:2514:16: error: implicit declaration of function 'DSI_TEST_PATTERN_GEN_CTRL_VIDEO_PATTERN_SEL' [-Werror=implicit-function-declaration]
    2514 |         reg |= DSI_TEST_PATTERN_GEN_CTRL_VIDEO_PATTERN_SEL(VID_MDSS_GENERAL_PATTERN);
         |                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>> drivers/gpu/drm/msm/dsi/dsi_host.c:2514:60: error: 'VID_MDSS_GENERAL_PATTERN' undeclared (first use in this function)
    2514 |         reg |= DSI_TEST_PATTERN_GEN_CTRL_VIDEO_PATTERN_SEL(VID_MDSS_GENERAL_PATTERN);
         |                                                            ^~~~~~~~~~~~~~~~~~~~~~~~
   drivers/gpu/drm/msm/dsi/dsi_host.c: In function 'msm_dsi_host_cmd_test_pattern_setup':
   drivers/gpu/drm/msm/dsi/dsi_host.c:2524:34: error: 'REG_DSI_TEST_PATTERN_GEN_CTRL' undeclared (first use in this function); did you mean 'REG_DSI_EOT_PACKET_CTRL'?
    2524 |         reg = dsi_read(msm_host, REG_DSI_TEST_PATTERN_GEN_CTRL);
         |                                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
         |                                  REG_DSI_EOT_PACKET_CTRL
>> drivers/gpu/drm/msm/dsi/dsi_host.c:2527:29: error: 'REG_DSI_TEST_PATTERN_GEN_CMD_MDP_INIT_VAL0' undeclared (first use in this function)
    2527 |         dsi_write(msm_host, REG_DSI_TEST_PATTERN_GEN_CMD_MDP_INIT_VAL0, 0xff);
         |                             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>> drivers/gpu/drm/msm/dsi/dsi_host.c:2529:16: error: implicit declaration of function 'DSI_TEST_PATTERN_GEN_CTRL_CMD_MDP_STREAM0_PATTERN_SEL' [-Werror=implicit-function-declaration]
    2529 |         reg |= DSI_TEST_PATTERN_GEN_CTRL_CMD_MDP_STREAM0_PATTERN_SEL(CMD_MDP_MDSS_GENERAL_PATTERN);
         |                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>> drivers/gpu/drm/msm/dsi/dsi_host.c:2529:70: error: 'CMD_MDP_MDSS_GENERAL_PATTERN' undeclared (first use in this function)
    2529 |         reg |= DSI_TEST_PATTERN_GEN_CTRL_CMD_MDP_STREAM0_PATTERN_SEL(CMD_MDP_MDSS_GENERAL_PATTERN);
         |                                                                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
>> drivers/gpu/drm/msm/dsi/dsi_host.c:2533:29: error: 'REG_DSI_TPG_MAIN_CONTROL2' undeclared (first use in this function)
    2533 |         dsi_write(msm_host, REG_DSI_TPG_MAIN_CONTROL2,
         |                             ^~~~~~~~~~~~~~~~~~~~~~~~~
>> drivers/gpu/drm/msm/dsi/dsi_host.c:2534:25: error: 'DSI_TPG_MAIN_CONTROL2_CMD_MDP0_CHECKERED_RECTANGLE_PATTERN' undeclared (first use in this function)
    2534 |                         DSI_TPG_MAIN_CONTROL2_CMD_MDP0_CHECKERED_RECTANGLE_PATTERN);
         |                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   drivers/gpu/drm/msm/dsi/dsi_host.c: In function 'msm_dsi_host_test_pattern_en':
   drivers/gpu/drm/msm/dsi/dsi_host.c:2550:34: error: 'REG_DSI_TEST_PATTERN_GEN_CTRL' undeclared (first use in this function); did you mean 'REG_DSI_EOT_PACKET_CTRL'?
    2550 |         reg = dsi_read(msm_host, REG_DSI_TEST_PATTERN_GEN_CTRL);
         |                                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
         |                                  REG_DSI_EOT_PACKET_CTRL
>> drivers/gpu/drm/msm/dsi/dsi_host.c:2552:67: error: 'DSI_TEST_PATTERN_GEN_CTRL_EN' undeclared (first use in this function)
    2552 |         dsi_write(msm_host, REG_DSI_TEST_PATTERN_GEN_CTRL, (reg | DSI_TEST_PATTERN_GEN_CTRL_EN));
         |                                                                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
>> drivers/gpu/drm/msm/dsi/dsi_host.c:2556:37: error: 'REG_DSI_TEST_PATTERN_GEN_CMD_STREAM0_TRIGGER' undeclared (first use in this function)
    2556 |                 dsi_write(msm_host, REG_DSI_TEST_PATTERN_GEN_CMD_STREAM0_TRIGGER,
         |                                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>> drivers/gpu/drm/msm/dsi/dsi_host.c:2557:33: error: 'DSI_TEST_PATTERN_GEN_CMD_STREAM0_TRIGGER_SW_TRIGGER' undeclared (first use in this function)
    2557 |                                 DSI_TEST_PATTERN_GEN_CMD_STREAM0_TRIGGER_SW_TRIGGER);
         |                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   cc1: some warnings being treated as errors


vim +2503 drivers/gpu/drm/msm/dsi/dsi_host.c

  2498	
  2499	static void msm_dsi_host_video_test_pattern_setup(struct msm_dsi_host *msm_host)
  2500	{
  2501		u32 reg;
  2502	
> 2503		reg = dsi_read(msm_host, REG_DSI_TEST_PATTERN_GEN_CTRL);
  2504	
> 2505		dsi_write(msm_host, REG_DSI_TEST_PATTERN_GEN_VIDEO_INIT_VAL, 0xff);
  2506		/* draw checkered rectangle pattern */
> 2507		dsi_write(msm_host, REG_DSI_TPG_MAIN_CONTROL,
> 2508				DSI_TPG_MAIN_CONTROL_CHECKERED_RECTANGLE_PATTERN);
  2509		/* use 24-bit RGB test pttern */
> 2510		dsi_write(msm_host, REG_DSI_TPG_VIDEO_CONFIG,
> 2511				DSI_TPG_VIDEO_CONFIG_BPP(VIDEO_CONFIG_24BPP) |
> 2512				DSI_TPG_VIDEO_CONFIG_RGB);
  2513	
> 2514		reg |= DSI_TEST_PATTERN_GEN_CTRL_VIDEO_PATTERN_SEL(VID_MDSS_GENERAL_PATTERN);
  2515		dsi_write(msm_host, REG_DSI_TEST_PATTERN_GEN_CTRL, reg);
  2516	
  2517		DBG("Video test pattern setup done\n");
  2518	}
  2519	
  2520	static void msm_dsi_host_cmd_test_pattern_setup(struct msm_dsi_host *msm_host)
  2521	{
  2522		u32 reg;
  2523	
  2524		reg = dsi_read(msm_host, REG_DSI_TEST_PATTERN_GEN_CTRL);
  2525	
  2526		/* initial value for test pattern */
> 2527		dsi_write(msm_host, REG_DSI_TEST_PATTERN_GEN_CMD_MDP_INIT_VAL0, 0xff);
  2528	
> 2529		reg |= DSI_TEST_PATTERN_GEN_CTRL_CMD_MDP_STREAM0_PATTERN_SEL(CMD_MDP_MDSS_GENERAL_PATTERN);
  2530	
  2531		dsi_write(msm_host, REG_DSI_TEST_PATTERN_GEN_CTRL, reg);
  2532		/* draw checkered rectangle pattern */
> 2533		dsi_write(msm_host, REG_DSI_TPG_MAIN_CONTROL2,
> 2534				DSI_TPG_MAIN_CONTROL2_CMD_MDP0_CHECKERED_RECTANGLE_PATTERN);
  2535	
  2536		DBG("Cmd test pattern setup done\n");
  2537	}
  2538	
  2539	void msm_dsi_host_test_pattern_en(struct mipi_dsi_host *host)
  2540	{
  2541		struct msm_dsi_host *msm_host = to_msm_dsi_host(host);
  2542		bool is_video_mode = !!(msm_host->mode_flags & MIPI_DSI_MODE_VIDEO);
  2543		u32 reg;
  2544	
  2545		if (is_video_mode)
  2546			msm_dsi_host_video_test_pattern_setup(msm_host);
  2547		else
  2548			msm_dsi_host_cmd_test_pattern_setup(msm_host);
  2549	
  2550		reg = dsi_read(msm_host, REG_DSI_TEST_PATTERN_GEN_CTRL);
  2551		/* enable the test pattern generator */
> 2552		dsi_write(msm_host, REG_DSI_TEST_PATTERN_GEN_CTRL, (reg | DSI_TEST_PATTERN_GEN_CTRL_EN));
  2553	
  2554		/* for command mode need to trigger one frame from tpg */
  2555		if (!is_video_mode)
> 2556			dsi_write(msm_host, REG_DSI_TEST_PATTERN_GEN_CMD_STREAM0_TRIGGER,
> 2557					DSI_TEST_PATTERN_GEN_CMD_STREAM0_TRIGGER_SW_TRIGGER);

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

[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 54435 bytes --]

                 reply	other threads:[~2021-11-14 20:03 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=202111150448.sNDa8zEV-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=kbuild-all@lists.01.org \
    /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.