From: kernel test robot <lkp@intel.com>
To: Sui Jingfeng <suijingfeng@loongson.cn>,
Maxime Ripard <mripard@kernel.org>,
Thomas Zimmermann <tzimmermann@suse.de>
Cc: oe-kbuild-all@lists.linux.dev, dri-devel@lists.freedesktop.org,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH 5/8] drm/loongson: Using vbios for the LS7A2000 output initialization
Date: Tue, 7 Nov 2023 01:46:18 +0800 [thread overview]
Message-ID: <202311070048.L62vVvHE-lkp@intel.com> (raw)
In-Reply-To: <20231029194607.379459-6-suijingfeng@loongson.cn>
Hi Sui,
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 next-20231106]
[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/Sui-Jingfeng/drm-loongson-Introduce-a-minimal-support-for-Loongson-VBIOS/20231030-034730
base: git://anongit.freedesktop.org/drm/drm-misc drm-misc-next
patch link: https://lore.kernel.org/r/20231029194607.379459-6-suijingfeng%40loongson.cn
patch subject: [PATCH 5/8] drm/loongson: Using vbios for the LS7A2000 output initialization
config: x86_64-randconfig-122-20231102 (https://download.01.org/0day-ci/archive/20231107/202311070048.L62vVvHE-lkp@intel.com/config)
compiler: gcc-12 (Debian 12.2.0-14) 12.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20231107/202311070048.L62vVvHE-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/202311070048.L62vVvHE-lkp@intel.com/
sparse warnings: (new ones prefixed by >>)
>> drivers/gpu/drm/loongson/lsdc_output_7a2000.c:567:31: sparse: sparse: symbol 'ls7a2000_query_output_configuration' was not declared. Should it be static?
vim +/ls7a2000_query_output_configuration +567 drivers/gpu/drm/loongson/lsdc_output_7a2000.c
559
560 /*
561 * For LS7A2000, the built-in VGA encoder is transparent. If there are
562 * external encoder exist, then the internal HDMI encoder MUST be enabled
563 * and initialized. As the internal HDMI encoder is always connected, so
564 * only the transmitters which take HDMI signal (such as HDMI to eDP, HDMI
565 * to LVDS, etc) are usable with.
566 */
> 567 const struct lsdc_output_desc *
568 ls7a2000_query_output_configuration(struct drm_device *ddev, unsigned int pipe)
569 {
570 enum loongson_vbios_encoder_name encoder_name = 0;
571 bool ret;
572
573 ret = loongson_vbios_query_encoder_info(ddev, pipe, NULL,
574 &encoder_name, NULL);
575 if (!ret)
576 goto bailout;
577
578 if (pipe == 0) {
579 switch (encoder_name) {
580 case ENCODER_CHIP_INTERNAL_HDMI:
581 return &ls7a2000_hdmi_pipe0;
582
583 /*
584 * For LS7A2000, the built-in VGA encoder is transparent.
585 */
586 case ENCODER_CHIP_INTERNAL_VGA:
587 return &ls7a2000_vga_pipe0;
588
589 /*
590 * External display bridge exists, the internal HDMI encoder
591 * MUST be enabled and initialized. Please add a drm bridge
592 * driver, and attach to this encoder.
593 */
594 default:
595 return &ls7a2000_hdmi_pipe0;
596 }
597 }
598
599 if (pipe == 1) {
600 switch (encoder_name) {
601 case ENCODER_CHIP_INTERNAL_HDMI:
602 return &ls7a2000_hdmi_pipe1;
603
604 /*
605 * External display bridge exists, the internal HDMI encoder
606 * MUST be enabled and initialized. Please add a drm bridge
607 * driver, and attach it to this encoder.
608 */
609 default:
610 return &ls7a2000_hdmi_pipe1;
611 }
612 }
613
614 bailout:
615 if (pipe == 0)
616 return &ls7a2000_vga_pipe0;
617
618 if (pipe == 1)
619 return &ls7a2000_hdmi_pipe1;
620
621 return NULL;
622 }
623
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
next prev parent reply other threads:[~2023-11-06 17:47 UTC|newest]
Thread overview: 36+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-10-29 19:45 [PATCH 0/8] drm/loongson: Submit a mini VBIOS support and a display bridge driver Sui Jingfeng
2023-10-29 19:46 ` [PATCH 1/8] drm/loongson: Introduce a minimal support for Loongson VBIOS Sui Jingfeng
2023-10-29 22:59 ` Dmitry Baryshkov
2023-10-30 3:20 ` Sui Jingfeng
2023-10-29 19:46 ` [PATCH 2/8] drm/loongson: Introduce a drm bridge driver for it66121 HDMI transmitter Sui Jingfeng
2023-10-29 22:53 ` Dmitry Baryshkov
2023-10-30 9:42 ` Sui Jingfeng
2023-10-30 10:01 ` Dmitry Baryshkov
2023-10-30 13:25 ` Sui Jingfeng
2023-10-30 13:39 ` Maxime Ripard
2023-10-30 14:39 ` Sui Jingfeng
2023-10-30 14:56 ` Maxime Ripard
2023-10-30 13:48 ` Dmitry Baryshkov
2023-10-30 14:25 ` Sui Jingfeng
2023-10-30 10:13 ` Maxime Ripard
2023-10-29 19:46 ` [PATCH 3/8] drm/loongson: Allow attach drm bridge driver by calling lsdc_output_init() Sui Jingfeng
2023-10-29 23:10 ` Dmitry Baryshkov
2023-10-30 4:13 ` Sui Jingfeng
2023-10-30 8:54 ` Sui Jingfeng
2023-10-30 9:16 ` Dmitry Baryshkov
2023-10-30 9:13 ` Sui Jingfeng
2023-10-30 0:12 ` kernel test robot
2023-11-01 2:42 ` kernel test robot
2023-11-04 7:41 ` kernel test robot
2023-11-05 17:27 ` kernel test robot
2023-10-29 19:46 ` [PATCH 4/8] drm/loongson: Started to attach display bridge driver for LS7A1000 Sui Jingfeng
2023-10-29 23:14 ` Dmitry Baryshkov
2023-10-29 19:46 ` [PATCH 5/8] drm/loongson: Using vbios for the LS7A2000 output initialization Sui Jingfeng
2023-10-30 2:28 ` kernel test robot
2023-11-06 17:46 ` kernel test robot [this message]
2023-10-29 19:46 ` [PATCH 6/8] drm/loongson: Clean up the output part of LS7A2000 Sui Jingfeng
2023-10-29 23:17 ` Dmitry Baryshkov
2023-10-29 19:46 ` [PATCH 7/8] drm/loongson: Support to infer DC reversion from CPU's PRID value Sui Jingfeng
2023-10-29 23:19 ` Dmitry Baryshkov
2023-10-30 8:50 ` Sui Jingfeng
2023-10-29 19:46 ` [PATCH 8/8] drm/loongson: Add support for the display subsystem in LS2K2000 Sui Jingfeng
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=202311070048.L62vVvHE-lkp@intel.com \
--to=lkp@intel.com \
--cc=dri-devel@lists.freedesktop.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mripard@kernel.org \
--cc=oe-kbuild-all@lists.linux.dev \
--cc=suijingfeng@loongson.cn \
--cc=tzimmermann@suse.de \
/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