Received: by 2002:a25:b794:0:0:0:0:0 with SMTP id n20csp4712834ybh; Tue, 6 Aug 2019 16:48:41 -0700 (PDT) X-Google-Smtp-Source: APXvYqw+oe0N4ajijmNWsXciJjmThHF8MbCRy0KrvJ5eFe3JHtTE42HqjJT5+HIbjhaNBqXaprOV X-Received: by 2002:aa7:8a99:: with SMTP id a25mr6357993pfc.127.1565135321010; Tue, 06 Aug 2019 16:48:41 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1565135321; cv=pass; d=google.com; s=arc-20160816; b=tJOcp4xi0IVKJD9LMp8Ssd4wcqTO/igwc5cUU3q5HDCkGbKCfs7DPdNDBqpXkqB43Y ccqjDEFhfV4seMDQOrKH+b8RZiOgX1WcSHRk/l7+sJ2bQj4EuZzAU7TsaZoeP9w+XV8X 7ssOJeba10h5qMV+lmfCzrEEP8UJgH+vHDfXRWr1GtkR43LPwCUHCsyhg1PzydsL/rn5 Hp58KoXDGaJ5QOvPMN6u98X4WeYnXuLOJXJ+x18HHdQX7mNz0gval3OZ2ng2w55TZD1I FeZiauZ24lMPvsN8I8Uuk87l2NZ91MP0jhDLA0PwTAh+JgM+T3/PY7jCDW92S3W68x3R BV/A== 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=9uYXs8TLn9yp6zgpySJyd2NtzBnPT/uQMkDb83lZ4/g=; b=TOnYzXMxPNEFirwFAPbvGArT4WYw02CfYmAatkXmH6lYqJCl90DRpUf00mGniYO6U3 AzbLJa7di1EoCn3tZvcmB60VixD9oNHVF38OeW8vcTCquaDMYkYuDvlw4SQG4PoS5Thz oo9BKl3v3Adya98de6YoGeZz9KMgJV0trWHvAKfoEY37Ze7QQyR1wo2ICIoikc9etWIV fPc9hUcY+bCkoFJYtIu01gCuktjbyTii3kEd6N/s2MK6rjzmPnfxsNgmyNy+y71kX6w7 j1nAESKQKvJMpBIejKzfkuKpOMWVRU8tVnxc6MJFjGwr//VyOilZCz9Ra2OC1FTRB+Nh 5Yaw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amdcloud.onmicrosoft.com header.s=selector1-amdcloud-onmicrosoft-com header.b=NtZD+Crn; 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 e23si46528188pgv.528.2019.08.06.16.48.24; Tue, 06 Aug 2019 16:48:40 -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=NtZD+Crn; 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 S1726810AbfHFXru (ORCPT + 99 others); Tue, 6 Aug 2019 19:47:50 -0400 Received: from mail-eopbgr780047.outbound.protection.outlook.com ([40.107.78.47]:64662 "EHLO NAM03-BY2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726133AbfHFXru (ORCPT ); Tue, 6 Aug 2019 19:47:50 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=cCXjRe643R7Zgf1czXYGDn2TvRcGXBn4fb/QK4SO/FkB09FCCQoXVrrRKZZZXzdsqMJ32OADLIDjx8Oqj54uHf3KSIroXIJy2bVEIYFmjPbKei3VNPJvB3hulL9Fu/HNdguCyfiL3X5ott3lqC3cgienAuWPWXqI+rnV5abK27uMSBOLcfVyFeJTKeP4AUKNE96Uyz7OpxyAJfmJwzv2T85LvHADWKK6EZpSUOaXCsJ1nln00gB584UCpGd1BtHsHvWvqdfAcOFeo6Zc+GPKovE70kgSfmXdQKEIAfpCZml/qoZnMwKzCBaViVF8XmdXvoDWdrVhKulHcOfZxqRf/g== 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=9uYXs8TLn9yp6zgpySJyd2NtzBnPT/uQMkDb83lZ4/g=; b=ndjHN3eXVleLgSM8SfPeaWzHESwW7D6KehO0pl0kncZL0AxPkEWb295m7vzXyYObj9pC/dYMDvt1Va+MwqF91nhRaDZ95Bklh+HWp3QorLp7Ne7+QvAPaifDzfF+iF0EyDowEPlsImlQFpnVMUQ05y656pNlEZko6JG042CuVvBUWuf2utf9feUFSWae9f6nvvZRSf419ObiznzfaVMXyRwopguySyev/MLHezpzjMCbHZ7zgu2RyCEO0sfVvA2RBb2mJuY/tEsDG0wonrRv6g1oGf+JgU4ei+2pc+PodaylSpJOgbj13soOpkqcOkaUAucUGF07QDWIOywAZDxlYA== 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=9uYXs8TLn9yp6zgpySJyd2NtzBnPT/uQMkDb83lZ4/g=; b=NtZD+CrnutT7QoX/NN+5+MBdbO/1Cgvo6copl7F3OStBi5QjeCtpM5G+bzCzyBkqtI9oltan5WgCLRAoSsQxceTeNpqG3h0iFEq4LXvnYyuohSubVxdlADZezIrGu6T4ds9Qpkofd5uTrJJQOYPJAPpX1Kf4Tp9VE/RB4+K82Gk= Received: from DM6PR12MB3947.namprd12.prod.outlook.com (10.255.174.156) by DM6PR12MB3034.namprd12.prod.outlook.com (20.178.30.31) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2136.17; Tue, 6 Aug 2019 23:47:45 +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.2157.011; Tue, 6 Aug 2019 23:47:45 +0000 From: "Kuehling, Felix" To: Jason Gunthorpe , "linux-mm@kvack.org" CC: Andrea Arcangeli , Christoph Hellwig , John Hubbard , =?utf-8?B?SsOpcsO0bWUgR2xpc3Nl?= , Ralph Campbell , "Deucher, Alexander" , "Koenig, Christian" , "Zhou, David(ChunMing)" , Dimitri Sivanich , "dri-devel@lists.freedesktop.org" , "amd-gfx@lists.freedesktop.org" , "linux-kernel@vger.kernel.org" , "linux-rdma@vger.kernel.org" , "iommu@lists.linux-foundation.org" , "intel-gfx@lists.freedesktop.org" , Gavin Shan , Andrea Righi , Jason Gunthorpe Subject: Re: [PATCH v3 hmm 10/11] drm/amdkfd: use mmu_notifier_put Thread-Topic: [PATCH v3 hmm 10/11] drm/amdkfd: use mmu_notifier_put Thread-Index: AQHVTKz1DOmv7threke3/c3LGGrUwabuyVIA Date: Tue, 6 Aug 2019 23:47:44 +0000 Message-ID: References: <20190806231548.25242-1-jgg@ziepe.ca> <20190806231548.25242-11-jgg@ziepe.ca> In-Reply-To: <20190806231548.25242-11-jgg@ziepe.ca> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [165.204.54.211] user-agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 x-clientproxiedby: YTBPR01CA0034.CANPRD01.PROD.OUTLOOK.COM (2603:10b6:b01:14::47) 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: 26db0519-254a-49cf-877c-08d71ac87a84 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:DM6PR12MB3034; x-ms-traffictypediagnostic: DM6PR12MB3034: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:5516; x-forefront-prvs: 0121F24F22 x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(4636009)(366004)(376002)(396003)(39860400002)(346002)(136003)(189003)(199004)(26005)(53546011)(14444005)(256004)(66946007)(66476007)(66556008)(64756008)(6506007)(386003)(102836004)(25786009)(14454004)(6246003)(54906003)(6512007)(186003)(64126003)(65826007)(65956001)(99286004)(68736007)(110136005)(6436002)(305945005)(65806001)(66066001)(66446008)(478600001)(6486002)(7736002)(5660300002)(36756003)(316002)(58126008)(7416002)(52116002)(53936002)(81166006)(3846002)(6116002)(8936002)(31686004)(31696002)(4326008)(2616005)(86362001)(71190400001)(8676002)(11346002)(229853002)(486006)(2906002)(446003)(76176011)(476003)(71200400001)(2501003)(81156014);DIR:OUT;SFP:1101;SCL:1;SRVR:DM6PR12MB3034;H:DM6PR12MB3947.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: v2blSuD7K48EtfDiHnDhA5Z7bGNZG2u+PM8wAuasCzIWgI7LUavNujnsB30Db9XpvzrCpGhubEEXaMTxMQz4ziBKpQmmyJdROx5a3Wo5hEgfVUX0znfq0UXXC8yaAB/c/WLstG+d4eB3afA21frj4dXjkKn3vTvHAEJMPfSBlourYE9Sf4w9JPcKHJgvP2bWO7HJZh77B6zbga3XrvACBWFgwWCaCUjIjM1hjUqjplVKPFau+OYz/nTDlrwYQVT4oyPm3ga75hmdMIglrCewCT5QrvI0AB61gZ6rmSWzHU23yEu9arjvez2KJTwET1elX4CkpRHlXy1ZYMRFwuOnE5AEw9R4uSVgdrdU6M1X3JphhbYWBtjg9tfumnobwWqgw/EgY+B5erxdnYyecBj9CXhnH+Ol3ZLJ9SZMYtVFJmE= Content-Type: text/plain; charset="utf-8" Content-ID: <08AA45544D5F4047B8BE6878E1D59AF9@namprd12.prod.outlook.com> Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-Network-Message-Id: 26db0519-254a-49cf-877c-08d71ac87a84 X-MS-Exchange-CrossTenant-originalarrivaltime: 06 Aug 2019 23:47:44.9450 (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: fHlZiATcYSQj0+WSGSvy8ZAicH/M7tNXVlQryTfouYsJ287scDy/Lph82E+Jx7fCO7Tic+2WuNmcLFjUTVkvvA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6PR12MB3034 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org T24gMjAxOS0wOC0wNiAxOToxNSwgSmFzb24gR3VudGhvcnBlIHdyb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