Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp2014371imm; Thu, 27 Sep 2018 06:12:38 -0700 (PDT) X-Google-Smtp-Source: ACcGV62mpfVI8rdXFiPq0XA6/WzkBlgTmDLA2OTDDl/99n2g9j+DeQnr00Zt3MSDrVr7+VO+LyzM X-Received: by 2002:a17:902:7449:: with SMTP id e9-v6mr11302685plt.255.1538053958661; Thu, 27 Sep 2018 06:12:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1538053958; cv=none; d=google.com; s=arc-20160816; b=h6d+TDTRv9Ov50C7TePLJ3FQTOMMfdseWHK0kB8sdyLGmvpd1SCZd81QoC6gxJK03b fBrHGbphLNCfcxCFZ3Lp7cN8QPuw8ZaAZ6mwtnCcddZT+iOIIyHa4Qu0oGKuJMkWIJd9 CEILq3UHNlTwA+QXBq4FpcDPu4eL98kHe2nelvNOm0CuBiOnnOc1SD9nOtTnOpBs9la5 WVTCzYd/3m8VK60uLZiqvgcyIAwYdt9hsywP2ZGI8OCRQdZbu3+uKGGhnOEUV087Vi1Z eRvCO7GGMBLNxG/kDWnUMSWZtNfnC4xmll/PJ4Q+UigC2c6ZPeEuX2hDb7Kt85Npqgmv UTGQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:organization:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=X+y9I86uNqsh0sE3tW9DnD8pSEf4mXgYWOG8oM6xBGc=; b=lXRAmU5YwvuqGZxoferE7UtzTElUkoGr+tX9fsN7vSeXeYwHP1q6+mQMLhpkTVz798 VNArg1f8jwATsRpLu/iRKvLV5Gh6BdsXrd/vXdMBKbtKFgxKay59lA5EvXeWczMNtKNO fTA1fYML+a9oX4D5j5ve3KavEesFoWMtqv1jboLu5SwKPJcbb24VUXHmNGkYm1g+LW2k n+2aLUHAE2P1TiaRX0ZhMlMgaclfk2Vmo2MA7FYrHQpD+Pfi3vnjepPGlwCAqVCmp1Mo jkP5zg8LmmTLM/J3MOCluUR3VZDhej7M6JeNP+M+IIycqpfj375/WKNGqZR7l1KaKdq/ gpQA== 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 k130-v6si1980183pfc.282.2018.09.27.06.12.21; Thu, 27 Sep 2018 06:12:38 -0700 (PDT) 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 S1727334AbeI0T3u (ORCPT + 99 others); Thu, 27 Sep 2018 15:29:50 -0400 Received: from mga04.intel.com ([192.55.52.120]:7164 "EHLO mga04.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726953AbeI0T3t (ORCPT ); Thu, 27 Sep 2018 15:29:49 -0400 X-Amp-Result: UNKNOWN X-Amp-Original-Verdict: FILE UNKNOWN X-Amp-File-Uploaded: False Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by fmsmga104.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 27 Sep 2018 06:11:37 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.54,310,1534834800"; d="scan'208";a="267245232" Received: from jsakkine-mobl1.tm.intel.com (HELO localhost) ([10.237.50.69]) by fmsmga006.fm.intel.com with ESMTP; 27 Sep 2018 06:11:15 -0700 Date: Thu, 27 Sep 2018 16:11:14 +0300 From: Jarkko Sakkinen To: Randy Dunlap Cc: x86@kernel.org, platform-driver-x86@vger.kernel.org, dave.hansen@intel.com, sean.j.christopherson@intel.com, nhorman@redhat.com, npmccallum@redhat.com, serge.ayoun@intel.com, shay.katz-zamir@intel.com, linux-sgx@vger.kernel.org, andriy.shevchenko@linux.intel.com, Thomas Gleixner , Ingo Molnar , Borislav Petkov , "H. Peter Anvin" , Suresh Siddha , "open list:X86 ARCHITECTURE (32-BIT AND 64-BIT)" Subject: Re: [PATCH v14 12/19] x86/sgx: Add data structures for tracking the EPC pages Message-ID: <20180927131114.GA5436@linux.intel.com> References: <20180925130845.9962-1-jarkko.sakkinen@linux.intel.com> <20180925130845.9962-13-jarkko.sakkinen@linux.intel.com> <9b2bf157-e162-89ff-000b-190aa8dddb53@infradead.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <9b2bf157-e162-89ff-000b-190aa8dddb53@infradead.org> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Sep 25, 2018 at 01:00:42PM -0700, Randy Dunlap wrote: > On 9/25/18 6:06 AM, Jarkko Sakkinen wrote: > > Add data structures to track Enclave Page Cache (EPC) pages. EPC is > > divided into multiple banks (1-N) of which addresses and sizes can be > > enumerated with CPUID by the OS. > > > > On NUMA systems a node can have at most bank. A bank can be at most part of > > two nodes. SGX supports both nodes with a single memory controller and also > > sub-cluster nodes with severals memory controllers on a single die. > > > > Signed-off-by: Jarkko Sakkinen > > Co-developed-by: Serge Ayoun > > Co-developed-by: Sean Christopherson > > Signed-off-by: Serge Ayoun > > Signed-off-by: Sean Christopherson > > --- > > arch/x86/include/asm/sgx.h | 55 +++++++++++++++ > > arch/x86/kernel/cpu/intel_sgx.c | 115 ++++++++++++++++++++++++++++++++ > > 2 files changed, 170 insertions(+) > > Hi, > > Several comment blocks begin with "/**" but they are either not intended > to be kernel-doc notation or they are incomplete kernel-doc notation. I'll enumerate them through. Thank you for the feedback. /Jarkko