Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp948731ybe; Wed, 11 Sep 2019 07:11:34 -0700 (PDT) X-Google-Smtp-Source: APXvYqyqoJ2lQ9SZWCCa/aKsSX5TsTGOFWVpJYDh6rx5f/goVTm/c6IBSX6OnR/8q8rvXrFbqGNL X-Received: by 2002:a05:600c:1106:: with SMTP id b6mr2718914wma.127.1568211094207; Wed, 11 Sep 2019 07:11:34 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1568211094; cv=pass; d=google.com; s=arc-20160816; b=qpxKDc6N42F0hdPlEnob3GGD7er0rsvbhZHVSZPh30i56sCSmp0625igqcyO9Ragtc RhMavRrK2MrsD1zSSECnVX04ftnOhznWnl2WZzYnC1nJfbOWl8Pl8Evc9Lchh+bynU1b vwKKTxyjacY7jyL3N5Ye5P1f6/s3mFNbYtq2h2C/UJnhKy0qrpxLpGRUpqqOm5g/bsM6 N1aCS75kiH4HQUohKnT1dNQx1u6XP5vqA+3cdacNWrT18f8uqHxWhyPjy1rKahkVgN8e euDL1WUj2u2zCT6GF6/qJpDRk5oAWhNoMq5286xQGPOGWbufnxX+lNo5Enijdjtr1Irz l+bQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :content-id:user-agent:content-language:accept-language:in-reply-to :references:message-id:date:thread-index:thread-topic:subject:cc:to :from:dkim-signature; bh=CMlkIAissU4k9iS0at8VFAlx6JS5XiE4joYoXMsszs4=; b=EdpgHGD/HkOUMdsLokq80dFdhm0CylDFSnvhi0BihmP455TA9mLegQxkqkGHA/9350 4cC8gFOzSckfni6+G0zfePBUuknMYbClXA+EtYuCKeUN3BFDZg8kqs0TsVFajaSOogIl H2j7ewqoSrfhPetb+DBsYlLKFvWe2Jy9QohQNdhFvS4Sk9/fUJFSeTNiouuAsLULiw7m +ZQ9DNiSe/qB15wbFC/9xLluQCjV4NH3lXeVZEC/GR6I1HjBqBZV6lf3kKZSv3guj3L8 RIjvwyVSo/zCg0kzPUXA6XLz9dz5Msw/d+3/Vm2FXAE/n0bW/mTTHRr8OhD12pLv47yp iDMg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amdcloud.onmicrosoft.com header.s=selector2-amdcloud-onmicrosoft-com header.b="qcKHO/PE"; arc=pass (i=1 spf=pass spfdomain=amd.com dkim=pass dkdomain=amd.com dmarc=pass fromdomain=amd.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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k12si10628233edi.145.2019.09.11.07.11.09; Wed, 11 Sep 2019 07:11:34 -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=selector2-amdcloud-onmicrosoft-com header.b="qcKHO/PE"; arc=pass (i=1 spf=pass spfdomain=amd.com dkim=pass dkdomain=amd.com dmarc=pass fromdomain=amd.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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728046AbfIKOGN (ORCPT + 99 others); Wed, 11 Sep 2019 10:06:13 -0400 Received: from mail-eopbgr680042.outbound.protection.outlook.com ([40.107.68.42]:10926 "EHLO NAM04-BN3-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726149AbfIKOGN (ORCPT ); Wed, 11 Sep 2019 10:06:13 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=bW4pLS1zWgZ0K/xDpfweDgAttNWYmtrkjZZXiW0DWHUoIxu2pf3VrzwloLyhS7mz4epTDnKpO/5Dop5/Ww63FManJ+PaL2YVgZpRUe0zoYPWuWO7sByHsrxyDFe6JRoTld8j30O59dcqIYlaQulULZKe0+Xb3CRCRUtdqVC1MT1YWpWvTvzY0cj2fdWh3oNUfLobIB+H6YncHptJZZnx7te3MM8NeQMYOg36WhbV1N+rxi8sjSkYP5n1ntOvox9suXQ2PCdpyZrAFwUWFuq9/hNrRJoGGook28mbUsl4cYJ8AsKWuxYceUB8La/rmVPktIAwkzli650FVwZWSVfiaA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=CMlkIAissU4k9iS0at8VFAlx6JS5XiE4joYoXMsszs4=; b=auWopRf8icGEBOhWLCeEwyUcHMCzqD1C8at9N8ik5qwe6iSWLfVm8HC3dojYgb0RWVdCSpiD+PfA13LUjHT9407e4xxM7POZHtFbuUolyOb2WNoJv266q6ie/B6pzZvMDfkZGAZofVI6F1uHBEP0lJAfzVTDsllqFlP3VOHSB8U9ia73rIcDPBbsbsvM60KSaDUY3sVX+xTXXOhGQVatL58/iUbk8cjMxYPPpo/9A+AGWDVYfntx8prYjzu5r7jVinFIBJAlRLFiv/tnY/lwuo9sRSu84/KNGxmHxAYdwA7EtU6zAjabFX+NlB5m6xzFdF5OTZkMgWMfPIZS2wgs5g== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=amd.com; dmarc=pass action=none header.from=amd.com; dkim=pass header.d=amd.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amdcloud.onmicrosoft.com; s=selector2-amdcloud-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=CMlkIAissU4k9iS0at8VFAlx6JS5XiE4joYoXMsszs4=; b=qcKHO/PESyiufRvSj7prSqaUOAvdTB9DxJY0DxM2v9t+f/f1VxnGvLW/qO27rEnLudUPNLUCzKtFWz5vbdDd1W7yRGHe8Fi/1XNm71KJ+SG8mhYDKB3DB/MAw8lepLy/iE8iBWy62QoGfg1mv1uJ9wDimbOFiBfeCKSseeMA3H8= Received: from DM5PR12MB1705.namprd12.prod.outlook.com (10.175.88.22) by DM5PR12MB1788.namprd12.prod.outlook.com (10.175.86.147) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2241.18; Wed, 11 Sep 2019 14:06:03 +0000 Received: from DM5PR12MB1705.namprd12.prod.outlook.com ([fe80::9d43:b3d4:9ef:29fc]) by DM5PR12MB1705.namprd12.prod.outlook.com ([fe80::9d43:b3d4:9ef:29fc%8]) with mapi id 15.20.2241.018; Wed, 11 Sep 2019 14:06:03 +0000 From: "Koenig, Christian" To: =?utf-8?B?VGhvbWFzIEhlbGxzdHLDtm0gKFZNd2FyZSk=?= CC: "linux-kernel@vger.kernel.org" , "pv-drivers@vmware.com" , Thomas Hellstrom , "dri-devel@lists.freedesktop.org" Subject: Re: TTM huge page-faults WAS: Re: [RFC PATCH 1/2] x86: Don't let pgprot_modify() change the page encryption bit Thread-Topic: TTM huge page-faults WAS: Re: [RFC PATCH 1/2] x86: Don't let pgprot_modify() change the page encryption bit Thread-Index: AQHVY9W/NbX8l5jE2EqdnkeqDdb24qcdIPeAgAAShQCAAADnAIAH6LoAgAA2koCAAOVxgIAAEXGAgABB0YA= Date: Wed, 11 Sep 2019 14:06:03 +0000 Message-ID: References: <20190905103541.4161-1-thomas_os@shipmail.org> <20190905103541.4161-2-thomas_os@shipmail.org> <608bbec6-448e-f9d5-b29a-1984225eb078@intel.com> <20190905152438.GA18286@infradead.org> <10185AAF-BFB8-4193-A20B-B97794FB7E2F@amacapital.net> <92171412-eed7-40e9-2554-adb358e65767@shipmail.org> In-Reply-To: Accept-Language: de-DE, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: user-agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 x-originating-ip: [2a02:908:1252:fb60:be8a:bd56:1f94:86e7] x-clientproxiedby: PR0P264CA0093.FRAP264.PROD.OUTLOOK.COM (2603:10a6:100:18::33) To DM5PR12MB1705.namprd12.prod.outlook.com (2603:10b6:3:10c::22) authentication-results: spf=none (sender IP is ) smtp.mailfrom=Christian.Koenig@amd.com; x-ms-exchange-messagesentrepresentingtype: 1 x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: b6228f08-a562-4d2c-fd33-08d736c12e6f x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0;PCL:0;RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600166)(711020)(4605104)(1401327)(4618075)(2017052603328)(7193020);SRVR:DM5PR12MB1788; x-ms-traffictypediagnostic: DM5PR12MB1788: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:5516; x-forefront-prvs: 0157DEB61B x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(4636009)(376002)(39860400002)(396003)(346002)(366004)(136003)(51444003)(189003)(199004)(486006)(476003)(2616005)(4326008)(446003)(31696002)(11346002)(6486002)(31686004)(6436002)(66574012)(99286004)(186003)(229853002)(102836004)(52116002)(386003)(76176011)(6506007)(25786009)(65806001)(65956001)(86362001)(316002)(5660300002)(46003)(54906003)(58126008)(6916009)(66946007)(478600001)(66446008)(64756008)(81166006)(66556008)(305945005)(66476007)(7736002)(71200400001)(71190400001)(14444005)(14454004)(256004)(36756003)(6512007)(81156014)(8936002)(6116002)(2906002)(6246003)(53936002)(8676002)(14583001);DIR:OUT;SFP:1101;SCL:1;SRVR:DM5PR12MB1788;H:DM5PR12MB1705.namprd12.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;MX:1;A:1; received-spf: None (protection.outlook.com: amd.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: PFSJjm9DDU+Fzj7UGSecJcmKQxe9ZwsoIXYCRW2sUXMv8pLVKFo2rNc54tQGm1jSc99geJ+PZ2hySC7YfkVadrHxHYjB3lBbXZTUD/NoRkc5ky2sgeMbVqE40Y77g6m6OueRs8xd76tcC7ctzcDLQK53esPBZgiE75nJ/wrX53xFBSFi1GnW3OGRrjNP6OKkIwC6rneI6UO6ochtVarGLjMO2je6C4HBpxfSuBDk7coRYH9zbmGzixwcI22qhHpBU0JoQJLfpmX9+SKXU43hnpckLGsmFLZPM4xxjPux8w07iYrQaJlZ70vdH6Xf8UgwdWVFdjJrU4OSatrPiPk6zPpmLUYk/AsI8AB2qSxja8t9kpIYIucqW315Jxzh7K5PdKPEuZBKrstSu+nOVnbNUNh3IdwtAR0n3/ZZu+tVgyU= x-ms-exchange-transport-forked: True Content-Type: text/plain; charset="utf-8" Content-ID: <21B0DCCD446B4A418690745FEE536B37@namprd12.prod.outlook.com> Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-Network-Message-Id: b6228f08-a562-4d2c-fd33-08d736c12e6f X-MS-Exchange-CrossTenant-originalarrivaltime: 11 Sep 2019 14:06:03.4542 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: 8g/BUEJUGkj6Do+f6w44Kyef0g4mdKsuqOT0W8srxFMF6yr1sMMkRylpVUR0VqQ0 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR12MB1788 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org QW0gMTEuMDkuMTkgdW0gMTI6MTAgc2NocmllYiBUaG9tYXMgSGVsbHN0csO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