Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp4568177imu; Tue, 18 Dec 2018 18:05:07 -0800 (PST) X-Google-Smtp-Source: AFSGD/UXmX4W+Jxjw8hMZ8zKQpel+cbArUrqRv4OeEaeABfRsrecfYutOUeklvAErWgPZaCExswz X-Received: by 2002:a65:65c9:: with SMTP id y9mr18299774pgv.438.1545185107734; Tue, 18 Dec 2018 18:05:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1545185107; cv=none; d=google.com; s=arc-20160816; b=RH2cGWYKRAhR542I/2nVyniT2nhLu8IxchYqlBu+SNDI/5kccsyZIiIwGtrJTs8nZM +0hsONtwPc7y0mI7pUNzge8zlGcFNr2kMl6jHPVlD/o3DjK8SLmFmOEojI+ji844VeNR PIN4FwcffjDbNmercsXYuWtv/IX8LgfpxIOtQEr5dwbilnGS6eXcSbggJJxhaaAYLRcC +msYfWYkquGO/sUGG/ZYZISAFCN7Tx3oJj4L2hkq3nRDtFY/lqpgaqU0gTij2euzlcHV 2Pgj3h1vHGEHOeRtKq5Hi85AHFAGQfHZJH0mQF/AfK7GjSWbzxO8y11sNwlkbjTWiPSm j23A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=AwmNLPm88U8+E5MNhZ/6UtWFrz39zWuDqYRdSeoP6kQ=; b=oPa5sMt+OjstMra23CjXkO8otoVLDQWw2ndGzC/3hUBhVrg8LxBVSX9/XpfSFwfAQM 4wyYedk51dPJdgQNs3jilrcKuPH8/Eiorfdxyo8oZNxSKn5cBiuWinR7bXXpNRxFmSSs uqMFUbrhy8YUD15FkVB69yv1d0Tb0qMwud7AjVTZq3zn3ou+1bQRQU9bJW79NfqFiFzG D4JPNz1G0tPmrR+Q8rFTj0Pv8HGPUFhKKvgMAQBUBYQGs/PTn9GCLmF8QlRqU+FkL6gj mwZe7t9tbyTRtcYwUqcoPP5HjdPFcfaXa/7dqH2LgacQiM2F7PuKu1w9cY5cRO40Tlqo lM8w== 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 d12si13419558pln.340.2018.12.18.18.04.52; Tue, 18 Dec 2018 18:05:07 -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 S1727581AbeLSA0d (ORCPT + 99 others); Tue, 18 Dec 2018 19:26:33 -0500 Received: from mga11.intel.com ([192.55.52.93]:26170 "EHLO mga11.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726785AbeLSA0d (ORCPT ); Tue, 18 Dec 2018 19:26:33 -0500 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga001.jf.intel.com ([10.7.209.18]) by fmsmga102.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 18 Dec 2018 16:26:32 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.56,370,1539673200"; d="scan'208";a="119934500" Received: from cli6-desk1.ccr.corp.intel.com (HELO [10.239.161.118]) ([10.239.161.118]) by orsmga001.jf.intel.com with ESMTP; 18 Dec 2018 16:26:30 -0800 Subject: Re: [PATCH v6 1/3] x86/fpu: track AVX-512 usage of tasks To: Andi Kleen Cc: Thomas Gleixner , Aubrey Li , mingo@redhat.com, peterz@infradead.org, hpa@zytor.com, tim.c.chen@linux.intel.com, dave.hansen@intel.com, arjan@linux.intel.com, linux-kernel@vger.kernel.org References: <20181218042218.8653-1-aubrey.li@intel.com> <62997df2-0817-b54d-b11e-00a567f1d67c@linux.intel.com> <20181218213826.GI25620@tassilo.jf.intel.com> From: "Li, Aubrey" Message-ID: <6695cf98-17e8-df5f-4dac-264435e2aea5@linux.intel.com> Date: Wed, 19 Dec 2018 08:26:30 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.1.1 MIME-Version: 1.0 In-Reply-To: <20181218213826.GI25620@tassilo.jf.intel.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2018/12/19 5:38, Andi Kleen wrote: >> I misunderstood, you mean 32bit kernel, not 32bit machine. Theoretically 32bit >> kernel can use AVX512, but not sure if anyone use it like this. get_jiffies_64() >> includes jiffies_lock ops so not good in context switch. So I want to use raw >> jiffies_64 here. jiffies is a good candidate but it has wraparound overflow issue. >> Other time source are expensive here. >> >> Should I limit the code only running on 64bit kernel? > > Yes making it 64bit only should be fine. > > Other alternative would be to use 32bit jiffies on 32bit. I assume > wrapping is not that big a problem here. > Thomas, is this acceptable? Thanks, -Aubrey