Received: by 2002:a05:7412:a9a2:b0:e2:908c:2ebd with SMTP id o34csp2484669rdh; Sun, 29 Oct 2023 19:35:13 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEIdaxdf9wExb6yOpH5fzhZIZB0iI/JQEbPaCx/DIj8yVyTJdzBiJOU/b5buDcoyN0d32TU X-Received: by 2002:a17:90b:e89:b0:27f:f1fa:b44e with SMTP id fv9-20020a17090b0e8900b0027ff1fab44emr5202033pjb.40.1698633312959; Sun, 29 Oct 2023 19:35:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698633312; cv=none; d=google.com; s=arc-20160816; b=K6mVLgpsQdlV1p3+hfUGeBl+YXs/aCfJerx19RPsLn1fHO4WU/hAMu+pIG21OMsthJ KRfzxQ86QsAZHAc7qkfJ5TZJPkMBqMerj2bvolBcUj8sWBWABgCcuCNZ7tgS2dAlfVJ+ VLbDXpOIj6y9PjEovKWIlPmKiYjvXZ7wjAZPr3emBh3HZ6u07xTHmK/AjstDq0AzkiNV ZSBke+fpYMXqw3zmwrEGbl5+m06AHyAxx/u0sebwBdUoCsJmZ8r0KFox//nh+ulKwOh9 fnsq+/i7V2QKjmCipcIq0yzwA8t4BLNHwE2GIpZeK5dMjj7PrtuwCneWDNmqaD04V0Rp SlbA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=W1ixCVNgLQ8gcMbyWXamndYTXGGHT/iKQv+UzOu11fY=; fh=YfW6CcScN7vUTDXd+9CTZmfBQXDIfqDORGnALDOBP7c=; b=t8nyAduihiJp4mgr0CS1xBG3GZQuSgnINbNgDh9PgsE8Q4uJbMe0lqggVg94As11rt 8P/SjqjS+kEEJwhZB4PXNtwONANddk6LoBh5GmSkULSNq7Psx96Dba4puzNjW9oJ0Ymw g6wQ3QIE1socfSnxru45iG3+9wDsGviWL5NgtqBLcj1A1fFhWsOx3Q6n/WC3465CYfbg S03wIypyEWleALgPemx7/iImnJAt4ll1HW50CXAlHI9BQKb+xxcKrSG9uHLL2Szgi49Z R9Z+CP8Eomhv9Hq8CBYq3arhnqEIkZBu7TRMaGk7m2KJF7/lv5lbFyoO/eypQr0eYCRB N+5w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=J2zyh1U3; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from pete.vger.email (pete.vger.email. [2620:137:e000::3:6]) by mx.google.com with ESMTPS id v3-20020a17090abb8300b0027cde7f5860si4062430pjr.30.2023.10.29.19.35.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 29 Oct 2023 19:35:12 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) client-ip=2620:137:e000::3:6; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=J2zyh1U3; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by pete.vger.email (Postfix) with ESMTP id ACE8B805D2AF; Sun, 29 Oct 2023 19:35:09 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231321AbjJ3C3K (ORCPT + 99 others); Sun, 29 Oct 2023 22:29:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50864 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229569AbjJ3C3J (ORCPT ); Sun, 29 Oct 2023 22:29:09 -0400 Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.126]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EA8ABBC for ; Sun, 29 Oct 2023 19:29:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1698632946; x=1730168946; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=fYwJcaSUlwINm8Ezc9wvvnXyuAcyakItjHqSg3FWpJ4=; b=J2zyh1U3eZshHa4RXJeSsGfSQtmXjp+Z0Bb/SxHSQt2DcvzzbZ5jLAA2 2rpc96h1ui0QDxOM1GenFdADVzR37jKqlW9no2vk2Z7dFHRaB5vIqgV5y Ra3BmhtmQ6jTLhv7/JFqrYSJP4kzyf/31k9WHjIirPeuU0oqYlLp4TclY eEtNZr9CYfbTDgeRsYDugY0i4HWW2ZZh26X5fkH+fUkX/7q4OpOJM9/qj DbZPwUGByCg2WlauMJhq59tpKHZujyfujwEJNFzAm7j4oVNa12bH4O4mH Md+5rs7iqy1Fsu5mrGxETY0VATlVYGIblxw6DIKWkmhjQx4iu0sLxWzLM w==; X-IronPort-AV: E=McAfee;i="6600,9927,10878"; a="373054559" X-IronPort-AV: E=Sophos;i="6.03,262,1694761200"; d="scan'208";a="373054559" Received: from orsmga003.jf.intel.com ([10.7.209.27]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 29 Oct 2023 19:29:06 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10878"; a="709967959" X-IronPort-AV: E=Sophos;i="6.03,262,1694761200"; d="scan'208";a="709967959" Received: from lkp-server01.sh.intel.com (HELO 8917679a5d3e) ([10.239.97.150]) by orsmga003.jf.intel.com with ESMTP; 29 Oct 2023 19:29:02 -0700 Received: from kbuild by 8917679a5d3e with local (Exim 4.96) (envelope-from ) id 1qxI1T-000CzH-38; Mon, 30 Oct 2023 02:28:59 +0000 Date: Mon, 30 Oct 2023 10:28:29 +0800 From: kernel test robot To: Sui Jingfeng , Maxime Ripard , Thomas Zimmermann 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 Message-ID: <202310301026.haj8ZOHJ-lkp@intel.com> References: <20231029194607.379459-6-suijingfeng@loongson.cn> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231029194607.379459-6-suijingfeng@loongson.cn> X-Spam-Status: No, score=-1.3 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on pete.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (pete.vger.email [0.0.0.0]); Sun, 29 Oct 2023 19:35:09 -0700 (PDT) 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-rc7 next-20231027] [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: loongarch-randconfig-002-20231030 (https://download.01.org/0day-ci/archive/20231030/202310301026.haj8ZOHJ-lkp@intel.com/config) compiler: loongarch64-linux-gcc (GCC) 13.2.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20231030/202310301026.haj8ZOHJ-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 | Closes: https://lore.kernel.org/oe-kbuild-all/202310301026.haj8ZOHJ-lkp@intel.com/ All warnings (new ones prefixed by >>): >> drivers/gpu/drm/loongson/lsdc_output_7a2000.c:568:1: warning: no previous prototype for 'ls7a2000_query_output_configuration' [-Wmissing-prototypes] 568 | ls7a2000_query_output_configuration(struct drm_device *ddev, unsigned int pipe) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ drivers/gpu/drm/loongson/lsdc_output_7a2000.c:498:46: warning: 'ls7a2000_encoder_helper_funcs' defined but not used [-Wunused-const-variable=] 498 | static const struct drm_encoder_helper_funcs ls7a2000_encoder_helper_funcs = { | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ drivers/gpu/drm/loongson/lsdc_output_7a2000.c:272:39: warning: 'ls7a2000_encoder_funcs' defined but not used [-Wunused-const-variable=] 272 | static const struct drm_encoder_funcs ls7a2000_encoder_funcs[2] = { | ^~~~~~~~~~~~~~~~~~~~~~ drivers/gpu/drm/loongson/lsdc_output_7a2000.c:201:41: warning: 'ls7a2000_hdmi_connector_funcs' defined but not used [-Wunused-const-variable=] 201 | static const struct drm_connector_funcs ls7a2000_hdmi_connector_funcs[2] = { | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ drivers/gpu/drm/loongson/lsdc_output_7a2000.c:77:48: warning: 'ls7a2000_connector_helpers' defined but not used [-Wunused-const-variable=] 77 | static const struct drm_connector_helper_funcs ls7a2000_connector_helpers = { | ^~~~~~~~~~~~~~~~~~~~~~~~~~ vim +/ls7a2000_query_output_configuration +568 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