Received: by 2002:ac0:a679:0:0:0:0:0 with SMTP id p54csp952555imp; Thu, 21 Feb 2019 14:59:20 -0800 (PST) X-Google-Smtp-Source: AHgI3IbF/Gjf6v1rEOBB6scpXIglY2PbVcX5TZFky9Ojk46q/qBXfh9BWM9jZKp9+DYEkR/RQz+e X-Received: by 2002:a63:81c1:: with SMTP id t184mr870230pgd.228.1550789960108; Thu, 21 Feb 2019 14:59:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550789960; cv=none; d=google.com; s=arc-20160816; b=GuvezECPbnkB3Upcn+5aBwRvbikttYXpzzQtnTOME0VMZuIrV2rL7O7a2vZGThrArf KOTvTiWk7bCVU4IoC9nA9Ds/XHFMY7LZ/IUEe8i3MkDFA/3MrO1IbN4XlHtXATDA+EKa XEKyi3nGroFCZaRo6fZkGXPouZ3QydejFugndNV6kAefNkoV3PyyXIZasbypAZTeOzUZ to3YC0O+wSFnVaMBUXiAsiOlD6f5SFq3chLu96VP4YV9Ic4tQq8YqnzN1xm3dR95DB4I lPf8hIrB0VqpSt/SFXcqx5YWNannDWzyPDKHdviKzH75XklKeRyi/kEnrgCH5wC2HuVq s+1Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :dlp-reaction:dlp-version:dlp-product:content-language :accept-language:in-reply-to:references:message-id:date:thread-index :thread-topic:subject:cc:to:from; bh=e1RxbYn1q5WZ5fRoEnUcJkVwb9oWstevmagONmHds8Y=; b=jhYvS2NXPBeINkyyFP5mkLjqEm1vDoUiCnIgTuymtTzN/tf4vpGSI8Qjb544R6caXU cA/vAwQFgicIy9JTYCsOKbDg36jVtTkaZ9QqpFswWt4dTPK4X1F7TPXyLO7pKLMM0ufw +0l5vM73PsAQotelISNATfSLXnSmaOsYn5zRbkwbkW2zAd/7ypOnDdfyvFM0s+vAGPMm 4n81kMCAELDo7UnG2D/MdfrRHbw0P5MSWSaeUUF5AYzVc+hcAY5WVeyRdI0UMr8Jgpy+ Z9O/FQqoG2uHHBcMQb2acbVZtsNmXl2IZFmAPs97qcUVFtEpv8H6uJZWXrfyFjmz5ygW feJg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o32si119779pld.163.2019.02.21.14.59.04; Thu, 21 Feb 2019 14:59:20 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726690AbfBUW5v convert rfc822-to-8bit (ORCPT + 99 others); Thu, 21 Feb 2019 17:57:51 -0500 Received: from mga12.intel.com ([192.55.52.136]:17383 "EHLO mga12.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725891AbfBUW5v (ORCPT ); Thu, 21 Feb 2019 17:57:51 -0500 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga007.fm.intel.com ([10.253.24.52]) by fmsmga106.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 21 Feb 2019 14:57:50 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.58,397,1544515200"; d="scan'208";a="124264095" Received: from orsmsx106.amr.corp.intel.com ([10.22.225.133]) by fmsmga007.fm.intel.com with ESMTP; 21 Feb 2019 14:57:50 -0800 Received: from orsmsx156.amr.corp.intel.com (10.22.240.22) by ORSMSX106.amr.corp.intel.com (10.22.225.133) with Microsoft SMTP Server (TLS) id 14.3.408.0; Thu, 21 Feb 2019 14:57:50 -0800 Received: from orsmsx106.amr.corp.intel.com ([169.254.1.35]) by ORSMSX156.amr.corp.intel.com ([169.254.8.233]) with mapi id 14.03.0415.000; Thu, 21 Feb 2019 14:57:49 -0800 From: "Yu, Fenghua" To: "Yu, Fenghua" , Andy Lutomirski CC: "Xu, Tao3" , "Liu, Jingqi" , Thomas Gleixner , Borislav Petkov , "Ingo Molnar" , H Peter Anvin , Andrew Cooper , "Raj, Ashok" , "Shankar, Ravi V" , linux-kernel , x86 Subject: RE: [PATCH v2 1/3] x86/cpufeatures: Enumerate user wait instructions Thread-Topic: [PATCH v2 1/3] x86/cpufeatures: Enumerate user wait instructions Thread-Index: AQHUreHh7DA2XBxC0kqOjmFVuVmk4qXqiiqAgABQLQCAADkjMA== Date: Thu, 21 Feb 2019 22:57:49 +0000 Message-ID: <3E5A0FA7E9CA944F9D5414FEC6C712209D877F3A@ORSMSX106.amr.corp.intel.com> References: <1547673522-226408-1-git-send-email-fenghua.yu@intel.com> <1547673522-226408-6-git-send-email-fenghua.yu@intel.com> <20190221192424.GA158428@romley-ivt3.sc.intel.com> In-Reply-To: <20190221192424.GA158428@romley-ivt3.sc.intel.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-product: dlpe-windows dlp-version: 11.0.400.15 dlp-reaction: no-action x-originating-ip: [10.22.254.139] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 8BIT MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > From: Fenghua Yu [mailto:fenghua.yu@intel.com] > On Wed, Feb 20, 2019 at 10:37:27PM -0800, Andy Lutomirski wrote: > Or to simplify the situation, how about we still use zero as global max wait > time (i.e. no limitation for global wait time) as implemented in this patch > set? User can still change the value to any value based on their usage. Isn't > this a right way to take care of any usage? Plus, if scheduler timers works, umwait will be forced time out by timer in HZ anyway. Only for case without scheduler timer, sysadmin may need to set a small max umwait time to force timout. But in this case (real time), I doubt user app really wants to call umwait to save power with long latency of waking up from umwait. So likely in this case, user app won't call umwait and there is no usage to set a small value for max umwait time. Thanks. -Fenghua