Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp44942rwl; Thu, 13 Apr 2023 20:34:40 -0700 (PDT) X-Google-Smtp-Source: AKy350ZKTV3s4VJRVR+ud9XNJ0WY6hCLYH2U5ab6TAn0kxdPpRbrXxyDuwk1hgjdEl9nJ1U4qob0 X-Received: by 2002:a05:6a20:3396:b0:d9:2cef:949a with SMTP id f22-20020a056a20339600b000d92cef949amr4206947pzd.28.1681443279782; Thu, 13 Apr 2023 20:34:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681443279; cv=none; d=google.com; s=arc-20160816; b=QCVaYZ3y3LvEPLmcmtoh8U3vPtFZ2WSZ++CA6zEt3l+/gQcu7Ao4oTeL/vIrUkB006 eP0c52FP3/qdqr24/vR4bHEw+YIi6r1TpLOwGV8lxcu/IVvavLLSTSvha+r+RZzCIeHa xTWJInz6Hio68MO6Rlbcc8ldeR63fktscKiIRiUrvXqELrio3OB9fLisDMXUwthUpG+v 2scyGeuVnrXvGI2JNIo+ju124H7Yy0V4XrjPxi23bE69ksvhlpGt9fW606oQjiKI48y2 Iux8dk+oo4kYwCc5BrFA803iLyJ9ci8w1KkNSb6VW7t/ESCTqetoEz5f7Gve/aeWZaRc 5HQw== 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=tMwhVOHgzBUKw9nF6Dyd5r+vB5vBXN6O97lXvJhFoZw=; b=JJT5mqDmv1pZ+jpZHqWKoCcI/R5BzVD01Dn5O31Q7PHvuwzHaIPDYGbSZFnAHffMTH tETiNHXm+TP6e8mV19Nd/2XDrajWA85yEeDqZFLcemlnvELdgwO8CO/InhMNCsibRmUZ YzayeAGStTQAh9rXxGGEvzMD8lK8ye5t7Bm9fdBJjh0rcWsgeDLsX0Qc6k/5aL7P3PDR WJypQgrv62pBxipIWWvbZHgRefcLENEAhc9qCGO5vrMUrkZY16VeF5EFVrsU9CUUKAoU zChqMUdHweY/JMyHnuWXHUUJRy9FlSABuHNiYu0v4zsFpPLSPJWrpglyEy5cYCSVpMbo gzZA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=Rq5ZV8GH; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q3-20020a632a03000000b00519d69a233csi3671161pgq.626.2023.04.13.20.34.28; Thu, 13 Apr 2023 20:34:39 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=Rq5ZV8GH; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229790AbjDNDdf (ORCPT + 99 others); Thu, 13 Apr 2023 23:33:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46380 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229689AbjDNDdb (ORCPT ); Thu, 13 Apr 2023 23:33:31 -0400 Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 57D7C30FA for ; Thu, 13 Apr 2023 20:33:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1681443207; x=1712979207; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=d9bYFb9mGWq+UdOaWT8JgAgu+2LDydqXaDPlXU6+OWU=; b=Rq5ZV8GH/M+KFoZJNaP7pjqlKBYXCnMQHkWDo7arE1EJhuOwIsakzeM9 OFkWtvZ7ixBPWKEBrBsERmakWgIuMLBxyrEItcDysM1Mypr768p7I4xlc S/2qgMU3yToIEzPovIhD1z/kRyyXEjb6AxhVmOolVluu+J/ru7iQWX6hP h+8Vy1u8T1pQN0BQ4MSuAPYtWk3V3VSTMLm9VCM0PppQOz1r0PP/7Kq/l Q9r8+o5/3RzviKDPO59m2JdDXJGoRp7eOrHqzqJdGKkFaMo86Vj3j1Zpg IYcoouGprLviBQ6ZVvN/6t6+bZGmlYMH2IMVOS8pfgHilb0qAUz5BC4dl A==; X-IronPort-AV: E=McAfee;i="6600,9927,10679"; a="333137552" X-IronPort-AV: E=Sophos;i="5.99,195,1677571200"; d="scan'208";a="333137552" Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 13 Apr 2023 20:33:17 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10679"; a="833380646" X-IronPort-AV: E=Sophos;i="5.99,195,1677571200"; d="scan'208";a="833380646" Received: from lkp-server01.sh.intel.com (HELO b613635ddfff) ([10.239.97.150]) by fmsmga001.fm.intel.com with ESMTP; 13 Apr 2023 20:33:13 -0700 Received: from kbuild by b613635ddfff with local (Exim 4.96) (envelope-from ) id 1pnABU-000ZBh-2A; Fri, 14 Apr 2023 03:33:12 +0000 Date: Fri, 14 Apr 2023 11:32:29 +0800 From: kernel test robot To: Jammy Huang , airlied@redhat.com, tzimmermann@suse.de Cc: oe-kbuild-all@lists.linux.dev, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] drm/ast: Fix long time waiting on s3/s4 resume Message-ID: <202304141155.Hsgy2cN0-lkp@intel.com> References: <20230414011147.3858-1-jammy_huang@aspeedtech.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230414011147.3858-1-jammy_huang@aspeedtech.com> X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_NONE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Jammy, kernel test robot noticed the following build errors: [auto build test ERROR on e62252bc55b6d4eddc6c2bdbf95a448180d6a08d] url: https://github.com/intel-lab-lkp/linux/commits/Jammy-Huang/drm-ast-Fix-long-time-waiting-on-s3-s4-resume/20230414-091312 base: e62252bc55b6d4eddc6c2bdbf95a448180d6a08d patch link: https://lore.kernel.org/r/20230414011147.3858-1-jammy_huang%40aspeedtech.com patch subject: [PATCH] drm/ast: Fix long time waiting on s3/s4 resume config: ia64-allyesconfig (https://download.01.org/0day-ci/archive/20230414/202304141155.Hsgy2cN0-lkp@intel.com/config) compiler: ia64-linux-gcc (GCC) 12.1.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://github.com/intel-lab-lkp/linux/commit/120de3fe25a450d9918de8bc73a4fe079bc71d9c git remote add linux-review https://github.com/intel-lab-lkp/linux git fetch --no-tags linux-review Jammy-Huang/drm-ast-Fix-long-time-waiting-on-s3-s4-resume/20230414-091312 git checkout 120de3fe25a450d9918de8bc73a4fe079bc71d9c # save the config file mkdir build_dir && cp config build_dir/.config COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=ia64 olddefconfig COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=ia64 SHELL=/bin/bash drivers/gpu/ If you fix the issue, kindly add following tag where applicable | Reported-by: kernel test robot | Link: https://lore.kernel.org/oe-kbuild-all/202304141155.Hsgy2cN0-lkp@intel.com/ All errors (new ones prefixed by >>): >> drivers/gpu/drm/ast/ast_dp.c:122:6: error: conflicting types for 'ast_dp_launch'; have 'void(struct drm_device *, u8)' {aka 'void(struct drm_device *, unsigned char)'} 122 | void ast_dp_launch(struct drm_device *dev, u8 bPower) | ^~~~~~~~~~~~~ In file included from drivers/gpu/drm/ast/ast_dp.c:8: drivers/gpu/drm/ast/ast_drv.h:501:6: note: previous declaration of 'ast_dp_launch' with type 'void(struct drm_device *)' 501 | void ast_dp_launch(struct drm_device *dev); | ^~~~~~~~~~~~~ vim +122 drivers/gpu/drm/ast/ast_dp.c 594e9c04b5864b KuoHsiang Chou 2022-04-28 118 594e9c04b5864b KuoHsiang Chou 2022-04-28 119 /* 594e9c04b5864b KuoHsiang Chou 2022-04-28 120 * Launch Aspeed DP 594e9c04b5864b KuoHsiang Chou 2022-04-28 121 */ 594e9c04b5864b KuoHsiang Chou 2022-04-28 @122 void ast_dp_launch(struct drm_device *dev, u8 bPower) 594e9c04b5864b KuoHsiang Chou 2022-04-28 123 { 120de3fe25a450 Jammy Huang 2023-04-14 124 u32 i = 0; 594e9c04b5864b KuoHsiang Chou 2022-04-28 125 u8 bDPExecute = 1; 594e9c04b5864b KuoHsiang Chou 2022-04-28 126 struct ast_private *ast = to_ast_private(dev); 594e9c04b5864b KuoHsiang Chou 2022-04-28 127 594e9c04b5864b KuoHsiang Chou 2022-04-28 128 // Wait one second then timeout. 594e9c04b5864b KuoHsiang Chou 2022-04-28 129 while (ast_get_index_reg_mask(ast, AST_IO_CRTC_PORT, 0xD1, COPROCESSOR_LAUNCH) != 594e9c04b5864b KuoHsiang Chou 2022-04-28 130 COPROCESSOR_LAUNCH) { 594e9c04b5864b KuoHsiang Chou 2022-04-28 131 i++; 594e9c04b5864b KuoHsiang Chou 2022-04-28 132 // wait 100 ms 594e9c04b5864b KuoHsiang Chou 2022-04-28 133 msleep(100); 594e9c04b5864b KuoHsiang Chou 2022-04-28 134 594e9c04b5864b KuoHsiang Chou 2022-04-28 135 if (i >= 10) { 594e9c04b5864b KuoHsiang Chou 2022-04-28 136 // DP would not be ready. 594e9c04b5864b KuoHsiang Chou 2022-04-28 137 bDPExecute = 0; 594e9c04b5864b KuoHsiang Chou 2022-04-28 138 break; 594e9c04b5864b KuoHsiang Chou 2022-04-28 139 } 594e9c04b5864b KuoHsiang Chou 2022-04-28 140 } 594e9c04b5864b KuoHsiang Chou 2022-04-28 141 120de3fe25a450 Jammy Huang 2023-04-14 142 if (!bDPExecute) 120de3fe25a450 Jammy Huang 2023-04-14 143 drm_err(dev, "Wait DPMCU executing timeout\n"); 594e9c04b5864b KuoHsiang Chou 2022-04-28 144 594e9c04b5864b KuoHsiang Chou 2022-04-28 145 ast_set_index_reg_mask(ast, AST_IO_CRTC_PORT, 0xE5, 594e9c04b5864b KuoHsiang Chou 2022-04-28 146 (u8) ~ASTDP_HOST_EDID_READ_DONE_MASK, 594e9c04b5864b KuoHsiang Chou 2022-04-28 147 ASTDP_HOST_EDID_READ_DONE); 7f35680ada234c Thomas Zimmermann 2022-06-07 148 } 594e9c04b5864b KuoHsiang Chou 2022-04-28 149 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests