Received: by 2002:a05:6a10:7420:0:0:0:0 with SMTP id hk32csp577060pxb; Tue, 15 Feb 2022 22:38:52 -0800 (PST) X-Google-Smtp-Source: ABdhPJxySLbpyRM/SwxpHEybnveYnoGPx+ehITKw1nmQmysB+j2/ajV0zWW4T7XmgeJJ2u2fs7Nh X-Received: by 2002:a62:1555:0:b0:4e0:f0fb:654b with SMTP id 82-20020a621555000000b004e0f0fb654bmr1442036pfv.35.1644993531838; Tue, 15 Feb 2022 22:38:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644993531; cv=none; d=google.com; s=arc-20160816; b=t10MRuUuI31ApY2fjbwrnsIKh1HXa/2+/2Z1rIXCQbu4UziryAwf1yJ1Z8aFBhOMfv ipx1coisVTnOuwhiJ3Qj61Ev75GAez80g9x92clNX7eELdkjHImtaqCxZ8bVj5Jq/dOj XzZLIOtCpL6Z6t04UlUo9Mx6/NJlvlkp4dvCJs5BPjioHX88DlBGej/SiqXbKaDDOC11 GLc+5xTpLt8TvzAnKfEi4YVfEr6Glu0wWZEhUNeLyMSFvlvVaiXKOtFe3x3spapWVUCo ECaMFUtm4wkHAhRPO+KbsMp15YXxOjzXDY8B9nkD0TsTxXV5r2CEq1IO0/ENA1i2Q2Cq f+Gw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=pkBmQVqMnp4YQHyLda6vkiarvh0wA7fnPNF0u3xuj1Q=; b=exlqBQzfWeAbMDUzXj9Z4Gk6w9nfiv3amLO7ZZ76FQsmRq7QXgpTBvbAoQfb7IxHZm 85uMc/73rcV3eKaJ2S3DKEhJPCXHPsdKwXqbHkkXMiiBjsGLRtvAgF9RjxkVR2y/tnYA QRUH/NrNcz8/dV6UJtiufBafVJbLmAKBlcSc/uq3Bg2eAhc3gZPBmjEgdyt+acCgCNb9 dj+s96tRgzbRFlICPRb2ycQV0Q26DErYM/JaTitWUaRQdhStzaPCk7jwnQJhJnyeFTXX PoRGJpYqOWy0AmM/dC3FkwgqRbu5mFQnClibbif/t1ht5LuMlbID4wyH4k7PasRZ5wE8 eGNA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=oGJskdGV; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 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 lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id y130si8831226pfg.299.2022.02.15.22.38.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 15 Feb 2022 22:38:51 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=oGJskdGV; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id CF3351AD288; Tue, 15 Feb 2022 22:29:16 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240760AbiBPAKc (ORCPT + 99 others); Tue, 15 Feb 2022 19:10:32 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:51170 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230054AbiBPAK3 (ORCPT ); Tue, 15 Feb 2022 19:10:29 -0500 Received: from mga12.intel.com (mga12.intel.com [192.55.52.136]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B72AACD324; Tue, 15 Feb 2022 16:10:18 -0800 (PST) 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="230451553" X-IronPort-AV: E=Sophos;i="5.88,371,1635231600"; d="scan'208";a="230451553" Received: from orsmga005.jf.intel.com ([10.7.209.41]) by fmsmga106.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> 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) X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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 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