Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp4093876imm; Wed, 5 Sep 2018 10:34:27 -0700 (PDT) X-Google-Smtp-Source: ANB0VdZIix0YaswR2rZUNaDjkPhEPt+IcgsVlQS2U0ZQ5AWp5IcP+/3a0hybsXXpdCXwovGck6et X-Received: by 2002:a63:d09:: with SMTP id c9-v6mr38116769pgl.314.1536168866270; Wed, 05 Sep 2018 10:34:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536168866; cv=none; d=google.com; s=arc-20160816; b=v5HwAYXBDTM/KgLjJU5SMBZsXGg1Gwx7fsGMhk7qezuBKp2/23cIqkpdaTMfr2aCoh 4aZR80wMSmQ7hw3SDhouS53+AoAqgTBbZp1G/XrKGoLk5SgdTT68TX0ho4f1DThjQ85e +Vbk+zCLxg0KI2mrCY493zXKTFAo/3+/RLuDLJ0aaLPDP4cN7Ze7ADI2hJbRq3bomdgs 7/IKnpDUz4jFbDNJ77CcXXVpRuXXfVXOnHulcmQzdgK5zZHTHPY9Xsr9t48jh9N90pSl lCRD7GhnF/g3sk5fwNviKKgTY/b3Jte5d5OKW9ZFKmug6U7Xw6w0cqYEMk4XQcnn6ac/ DjSg== 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=AOdyPjx7OkXjvhWgn4+d8ViFamq7cmo11VUajfWOeYE=; b=h9ZlSDo3pZsppuMeBgOcVfo9ArCm8QGSlwR0MWHCMKw93WN+5OvNlMZ53wBw7tCWfq nmXrzevK2qx1Qn2Y2dul3N/qOG77Hd6nAwyCaF3h/Yx7itFQiQSfKFTotlDtr/MBo0tz LQ21k5eHxwDrTrT4U8Rt9ulIJw0PGMwMDFd2Olu1F1fWrtFnorxzrPHeNtEs5wfMwhyp UX8mdO5UtXt0KjnTDP1HVZuqg7GTjDA+LZ7YBKRXKIJxqATsOeeSsm8cqAT46gEHHIcD V2aOHAgOMS4bAsO5s43OhLkNZiUhxeau+TUD2t3JD6YNPoQk1tBi/9/x18BKcbzmL4OC E1CQ== 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 p1-v6si2424149plb.197.2018.09.05.10.34.08; Wed, 05 Sep 2018 10:34:26 -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 S1727685AbeIEWED (ORCPT + 99 others); Wed, 5 Sep 2018 18:04:03 -0400 Received: from mga04.intel.com ([192.55.52.120]:19139 "EHLO mga04.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727195AbeIEWED (ORCPT ); Wed, 5 Sep 2018 18:04:03 -0400 X-Amp-Result: UNKNOWN X-Amp-Original-Verdict: FILE UNKNOWN X-Amp-File-Uploaded: False Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga104.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 05 Sep 2018 10:32:53 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.53,334,1531810800"; d="scan'208";a="83311370" Received: from gsharm2-mobl1.amr.corp.intel.com (HELO localhost) ([10.249.37.218]) by fmsmga002.fm.intel.com with ESMTP; 05 Sep 2018 10:32:48 -0700 Date: Wed, 5 Sep 2018 20:32:48 +0300 From: Jarkko Sakkinen To: Dave Hansen Cc: Andy Shevchenko , "maintainer:X86 ARCHITECTURE (32-BIT AND 64-BIT)" , Platform Driver , sean.j.christopherson@intel.com, nhorman@redhat.com, npmccallum@redhat.com, linux-sgx@vger.kernel.org, Thomas Gleixner , Ingo Molnar , "H. Peter Anvin" , Linux Kernel Mailing List Subject: Re: [PATCH v13 04/13] x86/sgx: Architectural structures Message-ID: <20180905173248.GD11368@linux.intel.com> References: <20180827185507.17087-1-jarkko.sakkinen@linux.intel.com> <20180827185507.17087-5-jarkko.sakkinen@linux.intel.com> <83f5ec5f-1b31-15eb-7341-84ee9c7977e2@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <83f5ec5f-1b31-15eb-7341-84ee9c7977e2@intel.com> 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 04, 2018 at 09:04:44AM -0700, Dave Hansen wrote: > On 09/03/2018 06:16 AM, Andy Shevchenko wrote: > >> + EBLOCK = 0x9, > >> + EPA = 0xA, > >> + EWB = 0xB, > >> + ETRACK = 0xC, > >> + EAUG = 0xD, > >> + EMODPR = 0xE, > >> + EMODT = 0xF, > >> +}; > > Hmm... This E prefix confuses me with (system wide) error codes. Has > > it been discussed before? If so, can you point on the conclusion why > > the current format is good? > > Making them SGX_EWHATEVER isn't a horrible idea. OK, going with that. /Jarkko