Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp6089414ybi; Wed, 31 Jul 2019 08:11:39 -0700 (PDT) X-Google-Smtp-Source: APXvYqy4CpfqZbPgF3JBe6Zg5mVm0+aVwbyt9KHX/JK448740wlUdnOqR5slYGd0AvdEnz7bS+Ch X-Received: by 2002:a17:902:24b:: with SMTP id 69mr115767308plc.250.1564585899856; Wed, 31 Jul 2019 08:11:39 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1564585899; cv=pass; d=google.com; s=arc-20160816; b=pEINGkvY7QjKeZ84geTh33W0Rz2gfRO1V+qaMygFKoLb5uuzmR6Osab/841UHzv1U2 Gvjj0lSnJs6y2Eso7KfpgBitZfU1mIVw/gfAz6lpG7LfuARCbC8BERaG8/VWJdgueCNK vw5oGQxbo4+8xdWLtME/ZCzrlQx16KQ8OE19vpUUfCVL+lt9MkKaHMSK8Iqx7Krqgewo dols9SjL3ABCDuRnGvknQYrna6YwnYQpdmzLbUWNNM+6PancJ9Tcx83V0/IbqZk4giBx sNvFusNgJ+L2EGLFJy8uds5l5CR0vD+d5gu1tnTIX6SQW7q7t01RBcNMpiynYz9NTaPV 8Tgg== 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=JRAw6rg+EaCPZ5u5Ta75c88T7hcMDALhjpceIqSItVY=; b=YrpnQZoy+c3rP7KiDmhqnyeP2MANo1oeDQh8DFfRIJTuf8udLm3yMTKrp2PdNoTFQ+ 9e95tuCedHpCJXv5klvzXx2JOS3IbgMTP1Uqju5I5WcpirvjFdiJp4GFmeq8P5tqqFEB iGz34NGc+FLf7ELyqsJZiviYIvj/q1wMHnCVAOtVdgmLFKrAv0hKpuncyWZWX/n8ILHJ hzbStP2fzVx8EHxRkX4RsfTKad0zxJNYSLH32vhQQq81UtEYzjTEKx7DyGETkj0ytcTh n/CpmB5z6V+F53FiPqT6T/DWG61M27dKUVL4T/u4PlGbhi75gU1OOiz3t8Pzi2qEYVyt lvrA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amdcloud.onmicrosoft.com header.s=selector1-amdcloud-onmicrosoft-com header.b=c+MdHKeB; 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 r19si33591072pfh.50.2019.07.31.08.11.23; Wed, 31 Jul 2019 08:11:39 -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=c+MdHKeB; 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 S2388007AbfGaNjB (ORCPT + 99 others); Wed, 31 Jul 2019 09:39:01 -0400 Received: from mail-eopbgr700056.outbound.protection.outlook.com ([40.107.70.56]:52552 "EHLO NAM04-SN1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S2387880AbfGaNjA (ORCPT ); Wed, 31 Jul 2019 09:39:00 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Xif1y/y5GzxvoLfZLUhnP35LPrTtKzSfcBFCHiZKX4yQHbjHlZshlTgAM8nvd4ON4IUqjmX5bIU4x7nW4fj1z5JJiQM84Cu4vGqMkIhQusYnlClenY42G7EwselKmbPE8mSkCxMrr9ECePZMQJKdXyvD3gaLNGQMI44TNHpQVPUOTQTAIjuYAZRny4VAzcugz1JfSDWNDKkkR4Ov3pgIyO79hZ2f8w2lz0TBLH4DYrozhx2GqxyprKJ6VbJ8EmEDDLru4OS9YBOyJajLiEq4jRwdAI5YO5NHZh3dzHdgATFFNI87lvkfCo2g/SyGp3PI84PCcYneXEUGWaNu0Gm3nw== 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=JRAw6rg+EaCPZ5u5Ta75c88T7hcMDALhjpceIqSItVY=; b=DyB22IGV/JOAYaC50I79exOGPvrExONoxPGuG81/afntqdZ3spt4cs13NZ1D1E+cwrb2sa3geA5vX4GvIVXc6LYJSldeOu2Ppcs+ohb/9TuWKqoWSXbRldR27rfGw2Whwzqq1AyPLxpw4axtBKcP0j1yZrUglUQvmxljhhJhT0qlr3N7TbxTUmVNuVUdXHLQ5CGCvrKgYdZTceaYXSAYAm+zSmBK05UUKp0es4OYDbLmNaxsYh+tlOUv6jZmDlq8mjnv04zY535THCFkyMgde0XMYqhQZFoL8CVRSN+/NG7oP1BiXoM29j7oBgk8KgKE5sRyPFSr5sSFfRrlrN8ngw== 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=JRAw6rg+EaCPZ5u5Ta75c88T7hcMDALhjpceIqSItVY=; b=c+MdHKeBHjRKK7OY0O3cmG1WYrDuzSynJGp/+TpRttdaEFfvxqwuHI7jXM5cWN1DhLa9Ba0CwbPlW923FRRlI5QRZjJx+OWVEe34raS4rKQSOQ05TvXtANHLKy08KP2J/naEBkHjeb6VKQlnL9RGo5IgpmCzT4Jqr02qz4UWkRc= Received: from DM6PR12MB3947.namprd12.prod.outlook.com (10.255.174.156) by DM6PR12MB3867.namprd12.prod.outlook.com (10.255.173.212) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2136.14; Wed, 31 Jul 2019 13:38:57 +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:38:57 +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 07/13] mm: remove the page_shift member from struct hmm_range Thread-Topic: [PATCH 07/13] mm: remove the page_shift member from struct hmm_range Thread-Index: AQHVRpr/Wa6m0vuiq0KkZIv40rbQDqbkvWMA Date: Wed, 31 Jul 2019 13:38:57 +0000 Message-ID: References: <20190730055203.28467-1-hch@lst.de> <20190730055203.28467-8-hch@lst.de> In-Reply-To: <20190730055203.28467-8-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: YT1PR01CA0018.CANPRD01.PROD.OUTLOOK.COM (2603:10b6:b01::31) 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: c27cd368-513e-4464-435b-08d715bc6fe5 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:DM6PR12MB3867; x-ms-traffictypediagnostic: DM6PR12MB3867: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:8273; x-forefront-prvs: 011579F31F x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(4636009)(396003)(136003)(346002)(366004)(376002)(39860400002)(52314003)(199004)(189003)(25786009)(64126003)(478600001)(99286004)(6512007)(58126008)(66446008)(316002)(64756008)(386003)(66556008)(66476007)(6486002)(71190400001)(71200400001)(66946007)(229853002)(5660300002)(6436002)(31686004)(36756003)(6246003)(52116002)(4326008)(65956001)(65806001)(7736002)(66066001)(54906003)(110136005)(6116002)(76176011)(53936002)(486006)(14454004)(446003)(102836004)(8676002)(65826007)(305945005)(6506007)(31696002)(81156014)(81166006)(7416002)(476003)(3846002)(2906002)(68736007)(2616005)(11346002)(53546011)(86362001)(26005)(8936002)(256004)(14444005)(186003);DIR:OUT;SFP:1101;SCL:1;SRVR:DM6PR12MB3867;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: KjMDkTosBMChcPhWnzR/xLnDSJ/q0k7KtsqdLP5h2G+PrRtxWYt/1moT/wgbI2jyTWvdsIExgLj5DkvjGlH3WUyi/Eq340FH3x4ZdNsansPAJfE5AGn/WQcd006UOUtbOabeVdlQDuJxWViuIqhMJuu71Q74/xks33gUQNaVINpm3hivyMhMpazbq0p6ojWB/pwK2pS5rZKqWHycwIEjhnisLgoBCIbhx4d0Xqcouo3KmaP414B+PmOs6AR95govN7ZRw0QoFaicKHh4EMczQUhTo90aALNMOENwEa9eQ9QkbHIqQcyMru8Vjo/Hr1DG4N1juTxKxJGNNhyvGVtjQbXO81D16ymU2jUySEXSCriWRo32AdX0WWgF/zRQVWqKZ2TNjVe1+KGs860NTZe4gCa0rQvF1woZBdgAFBdEYKk= Content-Type: text/plain; charset="utf-8" Content-ID: <3444F4D31C9224418100B98160B88C5A@namprd12.prod.outlook.com> Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-Network-Message-Id: c27cd368-513e-4464-435b-08d715bc6fe5 X-MS-Exchange-CrossTenant-originalarrivaltime: 31 Jul 2019 13:38:57.3184 (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: DM6PR12MB3867 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org T24gMjAxOS0wNy0zMCAxOjUxIGEubS4sIENocmlzdG9waCBIZWxsd2lnIHdyb3RlOg0KPiBBbGwg dXNlcnMgcGFzcyBQQUdFX1NJWkUgaGVyZSwgYW5kIGlmIHdlIHdhbnRlZCB0byBzdXBwb3J0IHNp bmdsZQ0KPiBlbnRyaWVzIGZvciBodWdlIHBhZ2VzIHdlIHNob3VsZCByZWFsbHkganVzdCBhZGQg YSBITU1fRkFVTFRfSFVHRVBBR0UNCj4gZmxhZyBpbnN0ZWFkIHRo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