Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754278AbbGUKid (ORCPT ); Tue, 21 Jul 2015 06:38:33 -0400 Received: from mail-am1on0067.outbound.protection.outlook.com ([157.56.112.67]:5184 "EHLO emea01-am1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752820AbbGUKia (ORCPT ); Tue, 21 Jul 2015 06:38:30 -0400 Authentication-Results: spf=none (sender IP is 193.47.165.134) smtp.mailfrom=mellanox.com; nvidia.com; dkim=none (message not signed) header.d=none; Message-ID: <55AE2105.6090107@mellanox.com> Date: Tue, 21 Jul 2015 13:37:57 +0300 From: Haggai Eran User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.7.0 MIME-Version: 1.0 To: =?UTF-8?B?SsOpcsO0bWUgR2xpc3Nl?= , , CC: Christophe Harle , Duncan Poole , Sherry Cheung , Subhash Gutti , "John Hubbard" , Mark Hairgrove , Lucien Dunning , Cameron Buschardt , Arvind Gopalakrishnan , Shachar Raindel , Liran Liss Subject: Re: [PATCH 4/8] IB/odp/hmm: add new kernel option to use HMM for ODP. References: <1437159665-6612-1-git-send-email-jglisse@redhat.com> <1437159665-6612-5-git-send-email-jglisse@redhat.com> In-Reply-To: <1437159665-6612-5-git-send-email-jglisse@redhat.com> Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit X-Originating-IP: [10.0.52.254] X-EOPAttributedMessage: 0 X-Microsoft-Exchange-Diagnostics: 1;DB3FFO11FD039;1:XiYvHZiyupSHSA24Of0INy0OjXIErtDV+LfoNbzezbTPTbwnuu0n1nQ7FtXuxxBdeZV52QfcYGLQj+5P99VVR+Ej00/JXUtsDwL3Isyyqqykgv3A6O39gCZT2KtVBpBH6Z1D2V1L8/BkPbBvQR217h0juDCCqNi7L5pkFzlzGY8VTdjHsQUjx79qHWW0CQ087w+4g/CJBws9fiCcXHFjI0Z1PtLvvtzo7zZ9gEoqIBjVDJeNdXMeESE9nuFd74YirK4yOynoFKJUDLylztpMtz/f3aXK3wr7d8vNDVqgDB5L/KnbTPqafaAu1Covbx6Iq1VZe1xkFjQBLkTO6BV7B652KvIfOLJygpWNuzWK+/6gQ9vusDzUR7NlYLPF/7BROpngpVdPXabveXHpywJLdGfeookDXoX5AYEqM2AeDbU= X-Forefront-Antispam-Report: CIP:193.47.165.134;CTRY:IL;IPV:NLI;EFV:NLI;SFV:NSPM;SFS:(10009020)(6009001)(2980300002)(428002)(189002)(199003)(479174004)(24454002)(54356999)(87266999)(107886002)(76176999)(105586002)(33656002)(36756003)(2201001)(575784001)(65816999)(50986999)(189998001)(86362001)(77096005)(101416001)(23676002)(87936001)(2950100001)(65956001)(46102003)(19580395003)(5001920100001)(77156002)(59896002)(47776003)(6806004)(5001770100001)(92566002)(62966003)(50466002)(106466001)(19580405001)(64126003)(3940600001)(4001430100001);DIR:OUT;SFP:1101;SCL:1;SRVR:DB4PR05MB462;H:mtlcas13.mtl.com;FPR:;SPF:None;MLV:sfv;MX:1;A:1;LANG:en; X-Microsoft-Exchange-Diagnostics: 1;DB4PR05MB462;2:NgsUOBKcC0lZR/Plo/YKyQqCRlbIGzSGRYIDCBumIjBON+as7CojI71toQDucZI+;3:zzfKW0IirFVe2iccV9J2+fYJdW+/w07eAOEVslT77ng2WTQVi08aUbAMo4UImIfTsf/4Mfe+RajbV4OyjSu+HXBYYTIFe8E2lLmxTKN6xzREoR1a3iTHBvQwQQY/DWeEGtwjUpHku4pqxVs9TvUFvFjEHuc32AajsZvQYm6x3df/CijVtaA1kDWIgqP1UOxM3BKT8PcMwnCj0bRuCeapzgdIHs3QyNTfHOCOS3h8Q/9sPrRij/oi+wa2wJCDsvX6;25:Q0+8HTg9qKnGPaTKqdLn/0H2UekEeJxFlXE/A50oeyQxO0LBQgDk4oq9qgk9NH2U8UqNEHE1A1oOxWx+fRvUtpvCLQYxc4jJ+eOQ6M7YEg3AX4cqCxi7lRstyF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Exchange-Organization-RulesExecuted X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(601004)(5005006)(3002001);SRVR:DB4PR05MB462;BCL:0;PCL:0;RULEID:;SRVR:DB4PR05MB462; X-Forefront-PRVS: 0644578634 X-Microsoft-Exchange-Diagnostics: =?utf-8?B?MTtEQjRQUjA1TUI0NjI7MjM6Zm1ZeDl5VFo5ZlFqYzFaMGhGcmxOQ1dvQUFI?= =?utf-8?B?M2Y2bDFHVG1HMnlGd09nVWhyL0NaaTZpZnhRSVlqMWRhVkxHQitWR0RhRFcv?= =?utf-8?B?ZCtoRnpXVkFXQ1JpSjFITE9BMEcxU3crZkYrdWRLSVdjcWt1M2J5cDljN093?= =?utf-8?B?K3VlaDBQTU1vekFUZEh3UHdqUHhjY1huKy9tM3F0ZW42bkFKUW0rVXNJL05u?= =?utf-8?B?QWdvdzJCSnF3K1lLZTJXWGhPbTdFZUYwM2piYjBpOXdrbW5SczV0ZDlZK29j?= =?utf-8?B?YmZDVTdtNitaakFsYUdLcHEydTc3SFg4eUpHcXRBZjRjQXJ6anczQnBmZ3pB?= =?utf-8?B?RHJvWjluM0tyZk9DdFpSTVpuS09NZ1hZVDg1QlhTTCtVNmkySTRCck9zenVN?= =?utf-8?B?N00xdVdXQzVKNmtwUVlvOVdsbDVXdmREUFVaRmQzem5NMk9xWUN5akFFM3ky?= =?utf-8?B?VERlcjNtNDVrMm0xdmJXQkJBUmUrL014NXJGOEdJdmRxUGp0aERtY3dBdE9Y?= =?utf-8?B?alhNZ0xDYWtxYmRRM1RXUWc2SHhhZkN2V3QrTUNnR3VraG0rT3ZxclZIaHds?= =?utf-8?B?cDJScXlSVThqNE1mT29HNnEzbUhxMHh0bE5XZVdaT08zaXN6eGNMZzVmS2M3?= =?utf-8?B?U1J1bjdEZ01lYlNuSjRtS2VoQlVTd3Y3VmdjVEszTWJKQmx6eHFuN0x6UFVW?=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DVKV7MIkIbKnrXu9h5HvltzQvVQe5WO/DSjEDatAmN37PAJoeTuwl/uO3+jFgoHsLfyIxo7DZ7tzvzUrA==;24:HAScAdJSdVbaAifICwo/B4JMZ1wuE0fUFM+WLfYM9xxsWsI6JXd5WTVwDBXt0LiBeHQ4wsmKFkVA35RZfd4SR/82nTUOI3RGjdmfWlkALzY=;20:Ww/L6Iw9Zjx0wMh4dvQbpJA9STkaD7Hg5tLPd57tBfYq3uHwlm2yBANYcNPkybxRjOqse2tJLs8lcjNwxboSog== SpamDiagnosticOutput: 1:23 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: Mellanox.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 21 Jul 2015 10:38:25.7092 (UTC) X-MS-Exchange-CrossTenant-Id: a652971c-7d2e-4d9b-a6a4-d149256f461b X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=a652971c-7d2e-4d9b-a6a4-d149256f461b;Ip=[193.47.165.134];Helo=[mtlcas13.mtl.com] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB4PR05MB462 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1051 Lines: 27 On 17/07/2015 22:01, Jérôme Glisse wrote: > This is a preparatory patch for HMM implementation of ODP (on demand > paging). It introduce a new configure option and add proper build > time conditional code section. Enabling INFINIBAND_ON_DEMAND_PAGING_HMM > will result in build error with this patch. > > Signed-off-by: Jérôme Glisse > --- ... > diff --git a/include/rdma/ib_umem_odp.h b/include/rdma/ib_umem_odp.h > index 3da0b16..765aeb3 100644 > @@ -100,28 +124,13 @@ void ib_umem_odp_release(struct ib_umem *umem); > > #define ODP_DMA_ADDR_MASK (~(ODP_READ_ALLOWED_BIT | ODP_WRITE_ALLOWED_BIT)) > > + Please avoid adding double blank lines. You can find more of these by running checkpatch on the patch. Other than that: Reviewed-by: Haggai Eran -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/