Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp5967988ybi; Wed, 31 Jul 2019 06:14:43 -0700 (PDT) X-Google-Smtp-Source: APXvYqzMNYMlUFH0jha1m10AtaJ7GboocCOev0lgDSKvNQyAOWvIPbj1usef+be3EzpUHWWpdgav X-Received: by 2002:a17:90b:d82:: with SMTP id bg2mr2999409pjb.87.1564578883233; Wed, 31 Jul 2019 06:14:43 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1564578883; cv=pass; d=google.com; s=arc-20160816; b=MbW8JkYbmXfdMU9rLGX0y+MNgMT2uYIlsGYGTEUAQcFZYWYI9PxWDyGreqvDqlADTS v5Kz07KYdi6RfYUOABkTtMNIlt9LXafKzI/H5u9eIQOxx8W9LwM2PMXAOEtpUrJaSLFA Lq5FwhUyd8O11sQhOs37uFW2Eb8oUY7rJ9/uWrszxpWt0ViTPdY55QR3ZMZDiG8TZzMH YrRcXdaJt6mYP7aXsYMiquwin8NuNtIOPs8PkHQ9IdJ8/+tbSsDtHo5v7fcl8oH+o6AF AYFe2KgE5SrEs7UGIc8gDxLbPE1CzC8WKD/emRrE+3IsgKfWfAS+tAOQX8YpbS4ua+CL mUxQ== 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=B0tTjFnf39wS+fhVYyFuQVgGwJMfGVjbxgpIZOrl2zI=; b=EJ0OeQ0T67hPj9etvm4DHdpKcioWRkzAWcokZOjZs/arkdE00VRrwe9uPTQQfa2Fmy qaam2RSzZvnLWcSp1mGdNw+WEqk1eW0Zax1KdEZQH1TZLU6W2wDYE4UBVW8l6gpBA0Z6 JKzFv9QUomlwYjRJLrUpYyjstb4ptX6SedOQwFN4KmwnKGxzxRnKaL/bKkC0oNk3BlgH 1+sLxjWmUMpV7R2pdaUkd33rbWnuoP15G9tJEAWRT5N4aMUjm5wScqyyjm2FWkRYhXRj jnKg6kL0Hc880oAIM9+HWm+HQ4qxCIo6Vrgs4XyRP0RBwFA+trob097Z91ruvMp1YGUZ UFDA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amdcloud.onmicrosoft.com header.s=selector1-amdcloud-onmicrosoft-com header.b=XLaLFrbB; 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 co12si29874014plb.197.2019.07.31.06.14.27; Wed, 31 Jul 2019 06:14:43 -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-amdcloud-onmicrosoft-com header.b=XLaLFrbB; 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 S1729125AbfGaNNp (ORCPT + 99 others); Wed, 31 Jul 2019 09:13:45 -0400 Received: from mail-eopbgr700064.outbound.protection.outlook.com ([40.107.70.64]:61633 "EHLO NAM04-SN1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726339AbfGaNNo (ORCPT ); Wed, 31 Jul 2019 09:13:44 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=G1AESCN6gQdmwrzFmJFI/vELY1KKo/d+xv3Bjw92oa2WFh2ULvd7/unyAAvg62LBGAK0fb2DXavE/5rwpexpZ8b1tbN84znoYkHNUHXvUTMoz8MFTlqYigC4aaCyBZ8H6NVghdiH8IZXxXCDZuYzPwELKdrWv18cb3xvtCnBl+RV5eZV20sq7N9Se3UummaXewvEEqoK7aM6bH6Mls7jrSJvY8eMf5sWI/7Q+FPvZf8jLTi5pxjM1eDeZCO2mpLe0aomB464ZOJao+LZLSHGR6wyZtphP18TCpZGQJK6JBbnKmVZRNlXRmArQZDcZE704NeCV/44PrVHDCI5/gfV0w== 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=B0tTjFnf39wS+fhVYyFuQVgGwJMfGVjbxgpIZOrl2zI=; b=ATupPWgwI0VXTQOMPEBf0MlAUBeJxzX/oNe9PCQyLUZhf8iUkpeG+bV+UlBtAzoPS5huOYJ/xXTo/VxvdiF47Ww5ZidyNMraXQwH0Y3eQxnmst+7vmv7WYfrXAqxxlUBLtpPpzF7Hvp441JgmGHBAhK9Wk4i1bOChBbCiGXOpVocx23AL67hRbmGYj27+r6BdzWJmyjV+lRBAkXhEz0jNuUpODyKRUZzdQkT2LH9Y7vuoqWTIjJ5Q0SqwQZF+7ZRkkEgg2Rp2XUrqZnFAIXLOjENwZQM4C0/WTKwjZfuN/Gz4QxD48506unYM0/zNIhhMYusTZkavkR3+bLwUV2jMw== 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=selector1-amdcloud-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=B0tTjFnf39wS+fhVYyFuQVgGwJMfGVjbxgpIZOrl2zI=; b=XLaLFrbB5s9bUV/KrArgGKYndICAVetRlgPaNyrlfRe1e6C6/KEm8HQRkxl+iNhIdJzDjEwyo+SmAEUTQpckjBuPtRLagxpmOtffY22o1WnUf+UpFbgShpBe1NEye8RW6JzuphRRBU1/vmmQNGpUF3pOZG90o3C333fLQ2DxSWg= Received: from DM6PR12MB3947.namprd12.prod.outlook.com (10.255.174.156) by DM6PR12MB3612.namprd12.prod.outlook.com (20.178.199.86) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2115.15; Wed, 31 Jul 2019 13:13:42 +0000 Received: from DM6PR12MB3947.namprd12.prod.outlook.com ([fe80::1c82:54e7:589b:539c]) by DM6PR12MB3947.namprd12.prod.outlook.com ([fe80::1c82:54e7:589b:539c%5]) with mapi id 15.20.2136.010; Wed, 31 Jul 2019 13:13:42 +0000 From: "Kuehling, Felix" To: Christoph Hellwig , =?utf-8?B?SsOpcsO0bWUgR2xpc3Nl?= , Jason Gunthorpe , Ben Skeggs CC: Ralph Campbell , "linux-mm@kvack.org" , "nouveau@lists.freedesktop.org" , "dri-devel@lists.freedesktop.org" , "amd-gfx@lists.freedesktop.org" , "linux-kernel@vger.kernel.org" Subject: Re: [PATCH 01/13] amdgpu: remove -EAGAIN handling for hmm_range_fault Thread-Topic: [PATCH 01/13] amdgpu: remove -EAGAIN handling for hmm_range_fault Thread-Index: AQHVRpr0Un6PYBf3lk+NPGPUoq8WK6bktlQA Date: Wed, 31 Jul 2019 13:13:41 +0000 Message-ID: References: <20190730055203.28467-1-hch@lst.de> <20190730055203.28467-2-hch@lst.de> In-Reply-To: <20190730055203.28467-2-hch@lst.de> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [165.204.55.251] user-agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 x-clientproxiedby: YTXPR0101CA0048.CANPRD01.PROD.OUTLOOK.COM (2603:10b6:b00:1::25) To DM6PR12MB3947.namprd12.prod.outlook.com (2603:10b6:5:1cb::28) authentication-results: spf=none (sender IP is ) smtp.mailfrom=Felix.Kuehling@amd.com; x-ms-exchange-messagesentrepresentingtype: 1 x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 484d67c9-0096-4501-706e-08d715b8e8ab x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0;PCL:0;RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600148)(711020)(4605104)(1401327)(4618075)(2017052603328)(7193020);SRVR:DM6PR12MB3612; x-ms-traffictypediagnostic: DM6PR12MB3612: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:626; x-forefront-prvs: 011579F31F x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(4636009)(136003)(376002)(396003)(346002)(39860400002)(366004)(199004)(189003)(102836004)(8936002)(229853002)(446003)(486006)(26005)(86362001)(6506007)(386003)(11346002)(2906002)(14454004)(25786009)(53546011)(31696002)(65806001)(256004)(476003)(6486002)(5660300002)(53936002)(4326008)(64126003)(2616005)(31686004)(76176011)(7736002)(6512007)(52116002)(66476007)(66946007)(81156014)(36756003)(6116002)(66066001)(54906003)(6436002)(3846002)(186003)(65956001)(6246003)(7416002)(71190400001)(68736007)(305945005)(110136005)(478600001)(81166006)(8676002)(64756008)(316002)(66556008)(66446008)(71200400001)(58126008)(99286004)(65826007);DIR:OUT;SFP:1101;SCL:1;SRVR:DM6PR12MB3612;H:DM6PR12MB3947.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-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: 21gLlnslHZ97qe4fMq48pfSsEU9K0i7Hn2EKKfKhtGlghWNbsaxDeg1mu/a/ChAAkVA8kRT/aqYf1yJCdcydmA2MUbWSoQPVJ+6hiyskB5tnVda3rbQyCFQxMk7ovOQSXX+Ek2+f1t807mZH5o69+FhgKkzVoquqZXvFsWksq6Pr9rDSVbqzbkHiZsCMDeUB/IEfO7NqHk/1SzFgGE5VqS43R7Glg34WHiFezRDnCTUKvKLsDS9w7lzSKVQNGiflraKm+AJNvyoy1VDCVZtuWKU6JjzcvFKMJyFO7QOG/gX/TCrIiiLiWXf4M2FPlIpl7ZWWZA0s/uG8Xx/OXkdgYB6JrV2XJadVhFG7mW4YcLCte0XSE2g78mYESU9bTt0Pdkf/+JNML4Z6mqjG3XSyuaRc+M8tBu1bWRSOoxKqZOg= Content-Type: text/plain; charset="utf-8" Content-ID: <898170DF95EE3B4799287122532C589F@namprd12.prod.outlook.com> Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-Network-Message-Id: 484d67c9-0096-4501-706e-08d715b8e8ab X-MS-Exchange-CrossTenant-originalarrivaltime: 31 Jul 2019 13:13:41.9269 (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: fkuehlin@amd.com X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6PR12MB3612 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org T24gMjAxOS0wNy0zMCAxOjUxIGEubS4sIENocmlzdG9waCBIZWxsd2lnIHdyb3RlOg0KPiBobW1f cmFuZ2VfZmF1bHQgY2FuIG9ubHkgcmV0dXJuIC1FQUdBSU4gaWYgY2FsbGVkIHdpdGggdGhlIGJs b2NrDQo+IGFyZ3VtZW50IHNldCB0byBmYWxzZSwgc28gcmVtb3ZlIHRoZSBzcGVjaWFsIGhhbmRs aW5nIG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