From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga17.intel.com (mga17.intel.com [192.55.52.151]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E52DE1B90 for ; Wed, 16 Feb 2022 00:10:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1644970218; x=1676506218; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=uEyOI3gBkM4gqhuOyvcPW9N22GUaDMH9evCDrwsFc+8=; b=oGJskdGVR7SOFJGS955T1S1jFizlJ0zFRzsjdf8vrQL82g9BFittSvKm 4ZowtFu9dJx6D5kXPifQOQzJt9y3j1ibDjeAWgvN2fO8NxThrWbQ6DiT9 +T4DL9E5ofFfWJ2DKEoSBQESgiwiyVxbWQA2TM6qULmQfx6kVPtHs0pkK 032NpxMUPId/0lg5xwwdePkupLdC/lbplhwfylD1stjmC0bDexuxLJGGC yV8BGTk+03IUeqwOXCeADpcZupOiMZ7u9wCX52ZPfkXdnH9URFrHn1EcI iiFSuhyvqRQ//2w/zVohV/WPtY1hHGdNddrnVIN8W8EeXQZSD4b7QtgTB w==; X-IronPort-AV: E=McAfee;i="6200,9189,10259"; a="231114712" X-IronPort-AV: E=Sophos;i="5.88,371,1635231600"; d="scan'208";a="231114712" Received: from orsmga005.jf.intel.com ([10.7.209.41]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 15 Feb 2022 16:10:18 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.88,371,1635231600"; d="scan'208";a="704022345" Received: from lkp-server01.sh.intel.com (HELO d95dc2dabeb1) ([10.239.97.150]) by orsmga005.jf.intel.com with ESMTP; 15 Feb 2022 16:10:16 -0800 Received: from kbuild by d95dc2dabeb1 with local (Exim 4.92) (envelope-from ) id 1nK7tf-000ABK-Bg; Wed, 16 Feb 2022 00:10:15 +0000 Date: Wed, 16 Feb 2022 08:09:42 +0800 From: kernel test robot To: Armin Wolf , pali@kernel.org Cc: llvm@lists.linux.dev, kbuild-all@lists.01.org, jdelvare@suse.com, linux@roeck-us.net, linux-hwmon@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 5/7] hwmon: (dell-smm) Improve assembly code Message-ID: <202202160842.6EYIVsJn-lkp@intel.com> References: <20220215191113.16640-6-W_Armin@gmx.de> Precedence: bulk X-Mailing-List: llvm@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220215191113.16640-6-W_Armin@gmx.de> User-Agent: Mutt/1.10.1 (2018-07-13) Hi Armin, Thank you for the patch! Yet something to improve: [auto build test ERROR on groeck-staging/hwmon-next] [also build test ERROR on next-20220215] [cannot apply to linus/master v5.17-rc4] [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] url: https://github.com/0day-ci/linux/commits/Armin-Wolf/hwmon-dell-smm-Miscellaneous-improvements/20220216-031722 base: https://git.kernel.org/pub/scm/linux/kernel/git/groeck/linux-staging.git hwmon-next config: i386-randconfig-a004-20220214 (https://download.01.org/0day-ci/archive/20220216/202202160842.6EYIVsJn-lkp@intel.com/config) compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project 37f422f4ac31c8b8041c6b62065263314282dab6) 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/0day-ci/linux/commit/e03bd707be4885b219afdfd7a24778fb0a8129e1 git remote add linux-review https://github.com/0day-ci/linux git fetch --no-tags linux-review Armin-Wolf/hwmon-dell-smm-Miscellaneous-improvements/20220216-031722 git checkout e03bd707be4885b219afdfd7a24778fb0a8129e1 # save the config file to linux build tree mkdir build_dir COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=i386 SHELL=/bin/bash If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot All errors (new ones prefixed by >>): >> drivers/hwmon/dell-smm-hwmon.c:178:15: error: inline assembly requires more registers than available asm volatile("out %%al,$0xb2\n\t" ^ 1 error generated. vim +178 drivers/hwmon/dell-smm-hwmon.c 161 162 /* 163 * Call the System Management Mode BIOS. Code provided by Jonathan Buzzard. 164 */ 165 static int i8k_smm_func(void *par) 166 { 167 ktime_t calltime = ktime_get(); 168 struct smm_regs *regs = par; 169 int eax = regs->eax; 170 int ebx = regs->ebx; 171 long long duration; 172 int rc; 173 174 /* SMM requires CPU 0 */ 175 if (smp_processor_id() != 0) 176 return -EBUSY; 177 > 178 asm volatile("out %%al,$0xb2\n\t" 179 "out %%al,$0x84\n" 180 : "=a" (regs->eax), 181 "=b" (regs->ebx), 182 "=c" (regs->ecx), 183 "=d" (regs->edx), 184 "=S" (regs->esi), 185 "=D" (regs->edi), 186 CC_OUT(c) (rc) 187 : "a" (regs->eax), 188 "b" (regs->ebx), 189 "c" (regs->ecx), 190 "d" (regs->edx), 191 "S" (regs->esi), 192 "D" (regs->edi)); 193 194 if (rc != 0 || (regs->eax & 0xffff) == 0xffff || regs->eax == eax) 195 rc = -EINVAL; 196 197 duration = ktime_us_delta(ktime_get(), calltime); 198 pr_debug("smm(0x%.4x 0x%.4x) = 0x%.4x (took %7lld usecs)\n", eax, ebx, 199 (rc ? 0xffff : regs->eax & 0xffff), duration); 200 201 return rc; 202 } 203 --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org From mboxrd@z Thu Jan 1 00:00:00 1970 Content-Type: multipart/mixed; boundary="===============8779743525014256123==" MIME-Version: 1.0 From: kernel test robot To: kbuild-all@lists.01.org Subject: Re: [PATCH 5/7] hwmon: (dell-smm) Improve assembly code Date: Wed, 16 Feb 2022 08:09:42 +0800 Message-ID: <202202160842.6EYIVsJn-lkp@intel.com> In-Reply-To: <20220215191113.16640-6-W_Armin@gmx.de> List-Id: --===============8779743525014256123== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Hi Armin, Thank you for the patch! Yet something to improve: [auto build test ERROR on groeck-staging/hwmon-next] [also build test ERROR on next-20220215] [cannot apply to linus/master v5.17-rc4] [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] url: https://github.com/0day-ci/linux/commits/Armin-Wolf/hwmon-dell-smm-= Miscellaneous-improvements/20220216-031722 base: https://git.kernel.org/pub/scm/linux/kernel/git/groeck/linux-stagin= g.git hwmon-next config: i386-randconfig-a004-20220214 (https://download.01.org/0day-ci/arch= ive/20220216/202202160842.6EYIVsJn-lkp(a)intel.com/config) compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project 37f422= f4ac31c8b8041c6b62065263314282dab6) reproduce (this is a W=3D1 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/0day-ci/linux/commit/e03bd707be4885b219afdfd7a= 24778fb0a8129e1 git remote add linux-review https://github.com/0day-ci/linux git fetch --no-tags linux-review Armin-Wolf/hwmon-dell-smm-Miscella= neous-improvements/20220216-031722 git checkout e03bd707be4885b219afdfd7a24778fb0a8129e1 # save the config file to linux build tree mkdir build_dir COMPILER_INSTALL_PATH=3D$HOME/0day COMPILER=3Dclang make.cross W=3D= 1 O=3Dbuild_dir ARCH=3Di386 SHELL=3D/bin/bash If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot All errors (new ones prefixed by >>): >> drivers/hwmon/dell-smm-hwmon.c:178:15: error: inline assembly requires m= ore registers than available asm volatile("out %%al,$0xb2\n\t" ^ 1 error generated. vim +178 drivers/hwmon/dell-smm-hwmon.c 161 = 162 /* 163 * Call the System Management Mode BIOS. Code provided by Jonathan B= uzzard. 164 */ 165 static int i8k_smm_func(void *par) 166 { 167 ktime_t calltime =3D ktime_get(); 168 struct smm_regs *regs =3D par; 169 int eax =3D regs->eax; 170 int ebx =3D regs->ebx; 171 long long duration; 172 int rc; 173 = 174 /* SMM requires CPU 0 */ 175 if (smp_processor_id() !=3D 0) 176 return -EBUSY; 177 = > 178 asm volatile("out %%al,$0xb2\n\t" 179 "out %%al,$0x84\n" 180 : "=3Da" (regs->eax), 181 "=3Db" (regs->ebx), 182 "=3Dc" (regs->ecx), 183 "=3Dd" (regs->edx), 184 "=3DS" (regs->esi), 185 "=3DD" (regs->edi), 186 CC_OUT(c) (rc) 187 : "a" (regs->eax), 188 "b" (regs->ebx), 189 "c" (regs->ecx), 190 "d" (regs->edx), 191 "S" (regs->esi), 192 "D" (regs->edi)); 193 = 194 if (rc !=3D 0 || (regs->eax & 0xffff) =3D=3D 0xffff || regs->eax = =3D=3D eax) 195 rc =3D -EINVAL; 196 = 197 duration =3D ktime_us_delta(ktime_get(), calltime); 198 pr_debug("smm(0x%.4x 0x%.4x) =3D 0x%.4x (took %7lld usecs)\n", eax= , ebx, 199 (rc ? 0xffff : regs->eax & 0xffff), duration); 200 = 201 return rc; 202 } 203 = --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org --===============8779743525014256123==--