Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp758262imm; Wed, 19 Sep 2018 06:31:14 -0700 (PDT) X-Google-Smtp-Source: ANB0VdY14VEYKOm5WhcOMY0mjpSoQ8D03rZxZMRHHBCh/Rd8llWRhkpBgQriJkYMNzwOBGRZsAI+ X-Received: by 2002:a62:57dc:: with SMTP id i89-v6mr36186738pfj.45.1537363874454; Wed, 19 Sep 2018 06:31:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537363874; cv=none; d=google.com; s=arc-20160816; b=WLVWd7xaoXB1gn719FPeuMP9GWSHGvQQeq34tvbnT79fiEIq3/6T+Z6cjn3eRE85hl xnMcR0FZJFNUXyWmj3yiAOeLzUM1CeBq+L1/TjTFfr+ctgd6KMBAePCkjAd2IjhnIi2Z OhxFWcAW7AUE5r58mM7rvWvSBBepbn38W9V89ujG5iuz2a9DYf/97Zj6tHwAUrsDZKk2 rZqXWOuSdl1jitfM5KTc0OJNoGBdb87qi3lAVAG8gkTD12U+dhkQqzmw8YjrX55MX0CA HMbhJrMQEw8V9/Ko68I8eukcdjiUPPGDSg2SzbUP0M6hHCDArjbKqS1/Zskj4AtrA8Qw 49nQ== 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 :content-id:spamdiagnosticmetadata:spamdiagnosticoutput :content-language:accept-language:in-reply-to:references:message-id :date:thread-index:thread-topic:subject:cc:to:from:dkim-signature; bh=qjlSxj37HaiCz3znz4KbH/0ix5yXa8+A+5oA64QQKPE=; b=s+4cR540EyKk/7ouqasI7DD11FmiCKhtM4BrnpSJAZ4oUq2c1j6SlNxLcMGGddO9i+ M3L90QHOhDwJeaQsiQ+kHVsWHVlGzWwh/uzUWMj+5NzKQNqiki6Wr8a3rfORxOUSDy47 BRISUDybPUWKhIM4YJWIQ7RPotFydhXrmPqoB4nny6ZMQgaUEH/UjekwmgV5k7uzhfvi GGCeqwXm1XM+13kKxqIJME0cajW9RWQbN1bcyRplAzwWREA+84i8VxvMUDfMqw6zYS1G uBPwjkCD4vSvXPwLNt5/mPMNEbo21rAIQIKvHpRyGFByi6iuzBIQhIJVx035W2Rwlfu2 n73w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amdcloud.onmicrosoft.com header.s=selector1-amd-com header.b=FrlrS4xm; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i2-v6si20795381plt.112.2018.09.19.06.30.58; Wed, 19 Sep 2018 06:31:14 -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; dkim=pass header.i=@amdcloud.onmicrosoft.com header.s=selector1-amd-com header.b=FrlrS4xm; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732142AbeISTHa (ORCPT + 99 others); Wed, 19 Sep 2018 15:07:30 -0400 Received: from mail-eopbgr730054.outbound.protection.outlook.com ([40.107.73.54]:64432 "EHLO NAM05-DM3-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1731330AbeISTHa (ORCPT ); Wed, 19 Sep 2018 15:07:30 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amdcloud.onmicrosoft.com; s=selector1-amd-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=qjlSxj37HaiCz3znz4KbH/0ix5yXa8+A+5oA64QQKPE=; b=FrlrS4xm+DrXRGyL9/GpoiPaLR4BAQUWNhYE6RhhRNMNinpPavmF7jDite0rUYIq++fIQw4DimuzN63Jq5ov6gn+/TvQGnRjRaZrhUO4uXXX3poNIpE5Bfp4l//CHKd1V7b2MKfINfKoe6mM16EcJApJTyD2lEIzxadYPX7Yobc= Received: from SN1PR12MB0175.namprd12.prod.outlook.com (10.162.3.15) by SN1PR12MB0607.namprd12.prod.outlook.com (10.163.208.156) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1143.17; Wed, 19 Sep 2018 13:29:30 +0000 Received: from SN1PR12MB0175.namprd12.prod.outlook.com ([fe80::2d1b:5638:5680:80e7]) by SN1PR12MB0175.namprd12.prod.outlook.com ([fe80::2d1b:5638:5680:80e7%5]) with mapi id 15.20.1143.017; Wed, 19 Sep 2018 13:29:30 +0000 From: "Lendacky, Thomas" To: "Natarajan, Janakarajan" , "linux-crypto@vger.kernel.org" , "linux-kernel@vger.kernel.org" CC: "Hook, Gary" , Herbert Xu , "David S . Miller" , "Singh, Brijesh" Subject: Re: [PATCH 2/2] Allow SEV firmware to be chosen based on Family and Model Thread-Topic: [PATCH 2/2] Allow SEV firmware to be chosen based on Family and Model Thread-Index: AQHUTHrcPgiFH6NduUedtQfbSYr40KT3oJqA Date: Wed, 19 Sep 2018 13:29:30 +0000 Message-ID: <85155459-44ef-b200-f442-fc5fde75a1ae@amd.com> References: <5c58c32c0ce89c35a95e151734f5d43a3ed0dca0.1536959537.git.Janakarajan.Natarajan@amd.com> In-Reply-To: <5c58c32c0ce89c35a95e151734f5d43a3ed0dca0.1536959537.git.Janakarajan.Natarajan@amd.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-clientproxiedby: CO2PR07CA0059.namprd07.prod.outlook.com (2603:10b6:100::27) To SN1PR12MB0175.namprd12.prod.outlook.com (2a01:111:e400:5143::15) authentication-results: spf=none (sender IP is ) smtp.mailfrom=Thomas.Lendacky@amd.com; x-ms-exchange-messagesentrepresentingtype: 1 x-originating-ip: [165.204.77.1] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1;SN1PR12MB0607;20:ulOs2fB0XJ2rFC7P84PtXatuf9J60QGFQLlHRZt5km8heixVnT/meXntD7si1liJTrCm6Z2tIszBdo4RKZz5n+wNi2Nk+qeUhCau5Gb46qfc0SLHEk4ieU7agPQCNEI0WF11Q1wRQvxPqjBkKm5fLOwqiWiyNL662ullVTKD0nEgaQH2Y0r7NjziC5Ei6i8PMEmnVfp5y4veeJf5ms1Vc8WLQ0tt/grRXNXVuwXgxdETctKGpT3hAMNsSj/Lkk1X x-ms-office365-filtering-correlation-id: 33a12820-32fd-4c3a-fec5-08d61e33ed3f x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0;PCL:0;RULEID:(7020095)(4652040)(8989299)(5600074)(711020)(4618075)(2017052603328)(7153060)(7193020);SRVR:SN1PR12MB0607; x-ms-traffictypediagnostic: SN1PR12MB0607: x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:(767451399110); x-ms-exchange-senderadcheck: 1 x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(8211001083)(6040522)(2401047)(5005006)(8121501046)(3231355)(944501410)(52105095)(93006095)(93001095)(10201501046)(3002001)(6055026)(149027)(150027)(6041310)(20161123564045)(20161123558120)(20161123560045)(20161123562045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(201708071742011)(7699050);SRVR:SN1PR12MB0607;BCL:0;PCL:0;RULEID:;SRVR:SN1PR12MB0607; x-forefront-prvs: 0800C0C167 x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(396003)(376002)(346002)(136003)(39860400002)(366004)(199004)(189003)(36756003)(2501003)(2900100001)(25786009)(4326008)(5250100002)(6246003)(3846002)(6116002)(76176011)(99286004)(2906002)(7736002)(305945005)(52116002)(256004)(14444005)(110136005)(54906003)(8936002)(8676002)(86362001)(575784001)(6436002)(105586002)(316002)(5660300001)(102836004)(81166006)(81156014)(478600001)(2201001)(106356001)(6486002)(229853002)(72206003)(14454004)(53936002)(31686004)(68736007)(53546011)(476003)(2616005)(31696002)(26005)(446003)(66066001)(486006)(6506007)(386003)(11346002)(6512007)(97736004);DIR:OUT;SFP:1101;SCL:1;SRVR:SN1PR12MB0607;H:SN1PR12MB0175.namprd12.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;A:1;MX:1; received-spf: None (protection.outlook.com: amd.com does not designate permitted sender hosts) x-microsoft-antispam-message-info: FNNhTnWcXCr0g+et1PTui5GjfFokFmZCvKKSeVOQusDZe5UDrQ1dIY4R0w/SM/WQYo9E+FRAjzsUWww1l3rAaJUA1pozQwCOAHDl+K2+IXsOEVa019CHkOPITt33g5CPtoT76e8ZwJoVzuCO3qD52DlUXFdhSTmMC7GS2oFgvzsUcqsn/vG3d/O1q6HiAETH5O3zH3722StnkGYPx3VHGkJ4/8Hmxua+FC2NTOYAyL9E/C7BzxyFwCdOR95fSsODeHZeHA0/8M0CHzlBddfRsrbvnwWyt9SyU2UO/6vXIWoWrBPkYZ/r2b7jmxRiL95fHm/ag5bNpwXr8+S2NfpIXauQcA9qvVN039WpGL0mbF0= spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="utf-8" Content-ID: <4730B51C1681B44AAC99B2A4747D6F9A@namprd12.prod.outlook.com> Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-Network-Message-Id: 33a12820-32fd-4c3a-fec5-08d61e33ed3f X-MS-Exchange-CrossTenant-originalarrivaltime: 19 Sep 2018 13:29:30.0969 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN1PR12MB0607 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X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