Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp794832pxb; Tue, 12 Apr 2022 13:39:57 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzMLxD9zKRuGI/90rGPIGsK9ZEeXJelPI5hfGSFOu94HHSw29OtQrTHlIfzwmy1nc7fqXQB X-Received: by 2002:a63:69c7:0:b0:380:afc8:33be with SMTP id e190-20020a6369c7000000b00380afc833bemr31430865pgc.304.1649795997660; Tue, 12 Apr 2022 13:39:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649795997; cv=none; d=google.com; s=arc-20160816; b=iybgvJL1cJjMZsstYvbwwysxEhctecXeEYGmNkJsBgYXS4mC69+er/mOuay5vhOtUJ 1pnyXYT5GzAiR7x1wkuAGtTqfe5O2P7ljBNl6GwR7ypJKd4GDsUB0JPySSixJiGsheXQ rqBnG+6xfP1G8cxSUBLN8X0u8Fc4Zbyady10xBJz7Xnt4AgVEUEfuVq84Tes6bhNJd5U phKwBBgTrYrFBObjd5zhxr1r+NFyN7dPG06XYnr7wAt/zTQGKQMVDdcQyM82L19AEcCy s2UFr8nshMsr132ZCWUzDaQbVmBn3yF0UZb+mlvseKQk/up/zlBVsoLPR0MT+VixX9wN 9RvQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version; bh=WkUiUdHoDpNAi0zdRE9ANpSiniGW0nNNuGE1NcaA95g=; b=sYhshfJVi+WTL5oI0Ob2w9kQ2SP79avg+T2lml6XxIi07EVJfO4GYYJSHAnoMNp1kv 6XVWn2l1nFCKo7r4p9cF1PPo5LNMXK0LgUA+rJHRvFBrRy0rh39bXuhmINbfl2s6x40y PYj1//eqDb4HtocOTAzyGKwRvw1vioeXS9sT7Os7IUss/vDNlpsvfloZ22P2w+vUi3Ck hMRjraHW/uzvwD12O3XudAnjU6hj1Uvd8gKPFfomfPKpdO46JLEd43E+V6sxYsh6h5p6 +eXqJSQnTGD97govhCyy53NM+92l5T0kLuy5ggfcn6nKNYMkimrMNNexTnvvDa0gAdmJ aaxg== ARC-Authentication-Results: i=1; mx.google.com; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id n126-20020a634084000000b0039d6958e6bbsi3279176pga.849.2022.04.12.13.39.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Apr 2022 13:39:57 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id B17CAB7C70; Tue, 12 Apr 2022 13:13:01 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1355041AbiDLNG5 (ORCPT + 99 others); Tue, 12 Apr 2022 09:06:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40084 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1356618AbiDLND4 (ORCPT ); Tue, 12 Apr 2022 09:03:56 -0400 Received: from mail-yw1-f177.google.com (mail-yw1-f177.google.com [209.85.128.177]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 78407DF38; Tue, 12 Apr 2022 05:47:41 -0700 (PDT) Received: by mail-yw1-f177.google.com with SMTP id 00721157ae682-2ebf3746f87so104918667b3.6; Tue, 12 Apr 2022 05:47:41 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=WkUiUdHoDpNAi0zdRE9ANpSiniGW0nNNuGE1NcaA95g=; b=gWjcCu10Px+LOvFKkiouMLdDu/etUh9mMnmtPTUjWcamfHIO3o7kKCY38mZVvbpMJD rqzgvqJC8TWXxxe56pTqK82DiN9s3ZN47I3cCrE76WwrOSDIBHzwaFivGrC6u0XMWMBx hkxNsjZxAOE79T/HI0px3tnoytWwecbQuac9ES3x/QXhYfiAxZRsXnBRcRmwEweYHlEU U4EBFyLQIg3QSN+8DuQlr6uiimoO39ts0/mkbmTbpKvHMAMthljutztjgusWWpRCA1dk xib5jymJBhVhxono0FwmmkL30lPaEmCmHEAZzU7lTaxu92OpyxXynLJLsc60KY95MP03 hmIw== X-Gm-Message-State: AOAM530iave7ZTpxohdlQ6nbytHX7RjBhevmh72KkWdYWUehlzQeuyru bS9rUS8FSSdZ9ymjSgJVLj6jPZApJlS7bx+nBqwNhgGP X-Received: by 2002:a81:7c45:0:b0:2eb:4759:cc32 with SMTP id x66-20020a817c45000000b002eb4759cc32mr30158169ywc.515.1649767660662; Tue, 12 Apr 2022 05:47:40 -0700 (PDT) MIME-Version: 1.0 References: <22622452.6Emhk5qWAg@kreacher> <202204121052.HOrN6tpw-lkp@intel.com> In-Reply-To: <202204121052.HOrN6tpw-lkp@intel.com> From: "Rafael J. Wysocki" Date: Tue, 12 Apr 2022 14:47:29 +0200 Message-ID: Subject: Re: [PATCH 14/20] ACPICA: executer/exsystem: Inform users about ACPI spec violation To: kernel test robot Cc: "Rafael J. Wysocki" , Linux ACPI , llvm@lists.linux.dev, kbuild-all@lists.01.org, LKML , Bob Moore Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,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 On Tue, Apr 12, 2022 at 4:54 AM kernel test robot wrote: > > Hi "Rafael, > > Thank you for the patch! Yet something to improve: This is addressed by one of the subsequent patches in the series. > [auto build test ERROR on rafael-pm/linux-next] > [also build test ERROR on linus/master linux/master v5.18-rc2 next-20220411] > [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/intel-lab-lkp/linux/commits/Rafael-J-Wysocki/ACPICA-ACPICA-20220331/20220412-030922 > base: https://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git linux-next > config: i386-randconfig-a006-20220411 (https://download.01.org/0day-ci/archive/20220412/202204121052.HOrN6tpw-lkp@intel.com/config) > compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project fe2478d44e4f7f191c43fef629ac7a23d0251e72) > 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/5cdc6166cc35043a80f5f328d6e6b58190c4e46c > git remote add linux-review https://github.com/intel-lab-lkp/linux > git fetch --no-tags linux-review Rafael-J-Wysocki/ACPICA-ACPICA-20220331/20220412-030922 > git checkout 5cdc6166cc35043a80f5f328d6e6b58190c4e46c > # 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 > > Note: the linux-review/Rafael-J-Wysocki/ACPICA-ACPICA-20220331/20220412-030922 HEAD 32181ae3d3173aeee41f709612dfa4d52951b39d builds fine. > It only hurts bisectability. > > All errors (new ones prefixed by >>): > > >> drivers/acpi/acpica/exsystem.c:140:7: error: use of undeclared identifier 'how_long_US'; did you mean 'how_long_us'? > if (how_long_US > 100) { > ^~~~~~~~~~~ > how_long_us > drivers/acpi/acpica/exsystem.c:123:41: note: 'how_long_us' declared here > acpi_status acpi_ex_system_do_stall(u32 how_long_us) > ^ > 1 error generated. > > > vim +140 drivers/acpi/acpica/exsystem.c > > 105 > 106 /******************************************************************************* > 107 * > 108 * FUNCTION: acpi_ex_system_do_stall > 109 * > 110 * PARAMETERS: how_long_us - The amount of time to stall, > 111 * in microseconds > 112 * > 113 * RETURN: Status > 114 * > 115 * DESCRIPTION: Suspend running thread for specified amount of time. > 116 * Note: ACPI specification requires that Stall() does not > 117 * relinquish the processor, and delays longer than 100 usec > 118 * should use Sleep() instead. We allow stalls up to 255 usec > 119 * for compatibility with other interpreters and existing BIOSs. > 120 * > 121 ******************************************************************************/ > 122 > 123 acpi_status acpi_ex_system_do_stall(u32 how_long_us) > 124 { > 125 acpi_status status = AE_OK; > 126 > 127 ACPI_FUNCTION_ENTRY(); > 128 > 129 if (how_long_us > 255) { > 130 /* > 131 * Longer than 255 microseconds, this is an error > 132 * > 133 * (ACPI specifies 100 usec as max, but this gives some slack in > 134 * order to support existing BIOSs) > 135 */ > 136 ACPI_ERROR((AE_INFO, > 137 "Time parameter is too large (%u)", how_long_us)); > 138 status = AE_AML_OPERAND_VALUE; > 139 } else { > > 140 if (how_long_US > 100) { > 141 ACPI_WARNING((AE_INFO, > 142 "Time parameter %u us > 100 us violating ACPI spec, please fix the firmware.", > 143 how_long_us)); > 144 } > 145 acpi_os_stall(how_long_us); > 146 } > 147 > 148 return (status); > 149 } > 150 > > -- > 0-DAY CI Kernel Test Service > https://01.org/lkp