From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on gnuweeb.org X-Spam-Level: X-Spam-Status: No, score=-3.5 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by gnuweeb.org (Postfix) with ESMTPS id 3493C824E0 for ; Tue, 24 Jan 2023 16:23:12 +0000 (UTC) Authentication-Results: gnuweeb.org; dkim=pass (2048-bit key; unprotected) header.d=intel.com header.i=@intel.com header.a=rsa-sha256 header.s=Intel header.b=VIaxR0Z/; dkim-atps=neutral DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1674577392; x=1706113392; h=date:from:to:cc:subject:message-id:mime-version; bh=c3uCcrbrRWsjUZW2Gqjq9xtXdXbgxUnRIrlMTJ6KhXg=; b=VIaxR0Z/BbP44tpNaklWALd9o4Zjc3eo7TO2ZUWt7NavxJbxQfpIOBKw p/Wl6290cuXFZB1zl9ZGF/wfvD0NESljSkPDSVvjYHzLSdntfU3L4v0vP j+riZZQgoOC8GS4vcvuYxfl9vlK2i3ojbZGgwbO+USGlr3cbbhFpcn7Ze GwPkRoMwka+BGZv32fonfpyvWlZ82B+L+/iSuIewnDUq6W9M1BF/Dm6XM i84Lv4Ma+a2KIgeVZL417V/8Eqdi59NLLnCpEDcVfuW0YtaT+2q/c7it3 sA6kaOKLUeUYnny8fUL5m2W5OKuhs0Pkgnc0cuH+s5XXvH9TO0x0COcQ2 Q==; X-IronPort-AV: E=McAfee;i="6500,9779,10600"; a="325009947" X-IronPort-AV: E=Sophos;i="5.97,242,1669104000"; d="scan'208";a="325009947" Received: from orsmga001.jf.intel.com ([10.7.209.18]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 Jan 2023 08:23:11 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10600"; a="694404856" X-IronPort-AV: E=Sophos;i="5.97,242,1669104000"; d="scan'208";a="694404856" Received: from lkp-server01.sh.intel.com (HELO 5646d64e7320) ([10.239.97.150]) by orsmga001.jf.intel.com with ESMTP; 24 Jan 2023 08:23:08 -0800 Received: from kbuild by 5646d64e7320 with local (Exim 4.96) (envelope-from ) id 1pKM4h-0006cO-1Y; Tue, 24 Jan 2023 16:23:07 +0000 Date: Wed, 25 Jan 2023 00:23:03 +0800 From: kernel test robot To: Haibo Chen Cc: oe-kbuild-all@lists.linux.dev, Ammar Faizi , GNU/Weeb Mailing List , Sasha Levin , Ulf Hansson Subject: [ammarfaizi2-block:stable/linux-stable-rc/queue/4.19 34/36] drivers/mmc/host/sdhci-esdhc-imx.c:1166:31: error: implicit declaration of function 'cqhci_readl'; did you mean 'sdhci_readl'? Message-ID: <202301250046.YcO0P53x-lkp@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline List-Id: tree: https://github.com/ammarfaizi2/linux-block stable/linux-stable-rc/queue/4.19 head: 197cbaab5b85826131ca2498f9afb147caa4a17b commit: 92341142900e0e97710a20d8223b16f2c0ec30e8 [34/36] mmc: sdhci-esdhc-imx: clear pending interrupt and halt cqhci config: arm-defconfig (https://download.01.org/0day-ci/archive/20230125/202301250046.YcO0P53x-lkp@intel.com/config) compiler: arm-linux-gnueabi-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/ammarfaizi2/linux-block/commit/92341142900e0e97710a20d8223b16f2c0ec30e8 git remote add ammarfaizi2-block https://github.com/ammarfaizi2/linux-block git fetch --no-tags ammarfaizi2-block stable/linux-stable-rc/queue/4.19 git checkout 92341142900e0e97710a20d8223b16f2c0ec30e8 # 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=arm olddefconfig COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=arm SHELL=/bin/bash drivers/mmc/host/ If you fix the issue, kindly add following tag where applicable | Reported-by: kernel test robot All errors (new ones prefixed by >>): drivers/mmc/host/sdhci-esdhc-imx.c: In function 'sdhci_esdhc_imx_hwinit': >> drivers/mmc/host/sdhci-esdhc-imx.c:1166:31: error: implicit declaration of function 'cqhci_readl'; did you mean 'sdhci_readl'? [-Werror=implicit-function-declaration] 1166 | tmp = cqhci_readl(cq_host, CQHCI_IS); | ^~~~~~~~~~~ | sdhci_readl >> drivers/mmc/host/sdhci-esdhc-imx.c:1166:52: error: 'CQHCI_IS' undeclared (first use in this function) 1166 | tmp = cqhci_readl(cq_host, CQHCI_IS); | ^~~~~~~~ drivers/mmc/host/sdhci-esdhc-imx.c:1166:52: note: each undeclared identifier is reported only once for each function it appears in >> drivers/mmc/host/sdhci-esdhc-imx.c:1167:25: error: implicit declaration of function 'cqhci_writel'; did you mean 'sdhci_writel'? [-Werror=implicit-function-declaration] 1167 | cqhci_writel(cq_host, tmp, CQHCI_IS); | ^~~~~~~~~~~~ | sdhci_writel >> drivers/mmc/host/sdhci-esdhc-imx.c:1168:47: error: 'CQHCI_HALT' undeclared (first use in this function) 1168 | cqhci_writel(cq_host, CQHCI_HALT, CQHCI_CTL); | ^~~~~~~~~~ >> drivers/mmc/host/sdhci-esdhc-imx.c:1168:59: error: 'CQHCI_CTL' undeclared (first use in this function) 1168 | cqhci_writel(cq_host, CQHCI_HALT, CQHCI_CTL); | ^~~~~~~~~ cc1: some warnings being treated as errors vim +1166 drivers/mmc/host/sdhci-esdhc-imx.c 1090 1091 static void sdhci_esdhc_imx_hwinit(struct sdhci_host *host) 1092 { 1093 struct sdhci_pltfm_host *pltfm_host = sdhci_priv(host); 1094 struct pltfm_imx_data *imx_data = sdhci_pltfm_priv(pltfm_host); 1095 struct cqhci_host *cq_host = host->mmc->cqe_private; 1096 int tmp; 1097 1098 if (esdhc_is_usdhc(imx_data)) { 1099 /* 1100 * The imx6q ROM code will change the default watermark 1101 * level setting to something insane. Change it back here. 1102 */ 1103 writel(ESDHC_WTMK_DEFAULT_VAL, host->ioaddr + ESDHC_WTMK_LVL); 1104 1105 /* 1106 * ROM code will change the bit burst_length_enable setting 1107 * to zero if this usdhc is chosen to boot system. Change 1108 * it back here, otherwise it will impact the performance a 1109 * lot. This bit is used to enable/disable the burst length 1110 * for the external AHB2AXI bridge. It's useful especially 1111 * for INCR transfer because without burst length indicator, 1112 * the AHB2AXI bridge does not know the burst length in 1113 * advance. And without burst length indicator, AHB INCR 1114 * transfer can only be converted to singles on the AXI side. 1115 */ 1116 writel(readl(host->ioaddr + SDHCI_HOST_CONTROL) 1117 | ESDHC_BURST_LEN_EN_INCR, 1118 host->ioaddr + SDHCI_HOST_CONTROL); 1119 1120 /* 1121 * erratum ESDHC_FLAG_ERR004536 fix for MX6Q TO1.2 and MX6DL 1122 * TO1.1, it's harmless for MX6SL 1123 */ 1124 writel(readl(host->ioaddr + 0x6c) & ~BIT(7), 1125 host->ioaddr + 0x6c); 1126 1127 /* disable DLL_CTRL delay line settings */ 1128 writel(0x0, host->ioaddr + ESDHC_DLL_CTRL); 1129 1130 if (imx_data->socdata->flags & ESDHC_FLAG_STD_TUNING) { 1131 tmp = readl(host->ioaddr + ESDHC_TUNING_CTRL); 1132 tmp |= ESDHC_STD_TUNING_EN | 1133 ESDHC_TUNING_START_TAP_DEFAULT; 1134 if (imx_data->boarddata.tuning_start_tap) { 1135 tmp &= ~ESDHC_TUNING_START_TAP_MASK; 1136 tmp |= imx_data->boarddata.tuning_start_tap; 1137 } 1138 1139 if (imx_data->boarddata.tuning_step) { 1140 tmp &= ~ESDHC_TUNING_STEP_MASK; 1141 tmp |= imx_data->boarddata.tuning_step 1142 << ESDHC_TUNING_STEP_SHIFT; 1143 } 1144 writel(tmp, host->ioaddr + ESDHC_TUNING_CTRL); 1145 } else if (imx_data->socdata->flags & ESDHC_FLAG_MAN_TUNING) { 1146 /* 1147 * ESDHC_STD_TUNING_EN may be configed in bootloader 1148 * or ROM code, so clear this bit here to make sure 1149 * the manual tuning can work. 1150 */ 1151 tmp = readl(host->ioaddr + ESDHC_TUNING_CTRL); 1152 tmp &= ~ESDHC_STD_TUNING_EN; 1153 writel(tmp, host->ioaddr + ESDHC_TUNING_CTRL); 1154 } 1155 1156 /* 1157 * On i.MX8MM, we are running Dual Linux OS, with 1st Linux using SD Card 1158 * as rootfs storage, 2nd Linux using eMMC as rootfs storage. We let the 1159 * the 1st linux configure power/clock for the 2nd Linux. 1160 * 1161 * When the 2nd Linux is booting into rootfs stage, we let the 1st Linux 1162 * to destroy the 2nd linux, then restart the 2nd linux, we met SDHCI dump. 1163 * After we clear the pending interrupt and halt CQCTL, issue gone. 1164 */ 1165 if (cq_host) { > 1166 tmp = cqhci_readl(cq_host, CQHCI_IS); > 1167 cqhci_writel(cq_host, tmp, CQHCI_IS); > 1168 cqhci_writel(cq_host, CQHCI_HALT, CQHCI_CTL); 1169 } 1170 } 1171 } 1172 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests