Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754227AbbGUKwj (ORCPT ); Tue, 21 Jul 2015 06:52:39 -0400 Received: from mail-am1on0100.outbound.protection.outlook.com ([157.56.112.100]:38557 "EHLO emea01-am1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1754003AbbGUKwh (ORCPT ); Tue, 21 Jul 2015 06:52:37 -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: <55AE2431.20105@mellanox.com> Date: Tue, 21 Jul 2015 13:51:29 +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 6/8] IB/mlx5/hmm: add mlx5 HMM device initialization and callback v3. References: <1437159665-6612-1-git-send-email-jglisse@redhat.com> <1437159665-6612-7-git-send-email-jglisse@redhat.com> In-Reply-To: <1437159665-6612-7-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;AM1FFO11FD020;1:UGNCh8dGpOSeh4RzsZEai1PqXnZdR1tWlr/ZAcGehG7E4k41TAHUN3rtvPcxkXaOFPLFv6k/sIJ7F3OtdmllRCenwz4s0MZzCiPhPgjbQvJYxlNXjsJf00t73DrtCA6RyO2m6SfAwtGRFWSArejsJZ6JJyyU0DV+68Fhw38/dIuX0DWLbgQM0X2fO3f6idQPy15e0AhwECXYe148ydD0x2Rc1cvOvyRNbMoIo9g2LKV7Arf9nCmRpOSobzGhml2wJz+VQrXlTFYx8UpHlvUZv5dzv1NqhUmKwSY/Sltr06SHcaz0OeK+b+NX5mc9wlUkbTmUMACEhSv9cVBURbWB8A3iVyy/FYKnRYEtnR59xnoMNCvlNFmoTIzB4XclgUy6GnYqZrTPDWLzF2uGDJxzynov8Dp7vjr4dHmW2pB9FDU= X-Forefront-Antispam-Report: CIP:193.47.165.134;CTRY:IL;IPV:NLI;EFV:NLI;SFV:NSPM;SFS:(10009020)(6009001)(2980300002)(428002)(479174004)(24454002)(189002)(199003)(65956001)(54356999)(50986999)(2950100001)(47776003)(77096005)(65816999)(64126003)(50466002)(189998001)(23676002)(107886002)(76176999)(46102003)(105586002)(33656002)(106466001)(101416001)(6806004)(86362001)(87936001)(5001770100001)(5001920100001)(36756003)(92566002)(77156002)(62966003)(2201001)(3940600001)(4001430100001);DIR:OUT;SFP:1101;SCL:1;SRVR:DB3PR05MB459;H:mtlcas13.mtl.com;FPR:;SPF:None;MLV:sfv;MX:1;A:1;LANG:en; X-Microsoft-Exchange-Diagnostics: 1;DB3PR05MB459;2:UGJzd2NOaF13TPf9mCtMNqG10Hk/safai9ch/nLLxSgGsz2hfuWxLVqxsrkwqKMt;3:CAecwCy4YVpduktDmvpO7IZU7HcsFuOpbnd3GEnjfUj7BbDVS0fj+r4f0Wa83jPRIeY5mlAN9H2eODJGo/tiYNCx/Ijyc5YjtO7vsV765fxufGigDoJneEl7GZLlNsprIgfpY9zylJXiKLH1pyn6aJWBhdeFS2UCKvF1mjcpp7Z86ZH04OGyKw2vPvyfuxIMWFAHMkPXOL2asYPSr8AXoIcmQ7aJB+TFl+3SvIoQS1XeyrZQv3fOIKkHh2KOAhUZ;25:L8wsor45hGlkRG92Hh5QjGAVeFFAlDQgoodY5HeUyb0luQiVnJwHQ/6vPkXZz7IxUTRO4lxUBl6C0I0p9Xk33p7Ub1uhKzEecAsV1IMVCh7XQ/RGymK7aJQpQcmVfQpTKqXXi2ZBigg2IS1yRJk8ZzjxBNcLd455i8ZAvpGsxl4qPIkmxFcqv+8BO3ds1v21WdCb6pO6GrtN13bSBcFTEe45i2XHTk/0hQvj6svamptRu2ouXGfsDhlUudhclPMog2SwEO4zXxgYtREsY1zslg== X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:DB3PR05MB459; X-Microsoft-Exchange-Diagnostics: 1;DB3PR05MB459;20:BEARlq/uX6SPjGxEHteJJ2wX1oYNfbapQAjoLCk5T8jfH4hE4NoXmfLQJCdqS1B8SMIoduaga+8EJUhWaD5Mu6WS9BSZSehuUEnL5dyxBhe7XrhtXbu94m0+xhJhnT5vsZ9xFL6KXWEpb8r8+KOGC9UrJEqcyWqVtQO0yigLGLQKy1IziGN0WFgIHfw4QxTjelKMiQSvrAd97OmIxBGvXOKd8157T4+FT676o9eqViCTmxdfG50+OirZP3JASQoOkyfc6a5TUMqSDRHY7f4eRBKeIZSNQLpm45xYLOIYJ2rmxoC7CoefMvDUR20Q4Cb9yjiexttg1SiHVB8h+TYjkr2nM8XoN90rjJbI8vHUZu058JyL1ct0ph/wqgOzmrl2uEdD1/hH6d2RDjUfrQ+R/vOqgYBpGuqmcjhgLb8wxoXag7SSCt3TI7i2TZVrIj+eOQFrTHx+pdVchywcKyuGpqIwU7Qef4HvptfKMp0iANu9YXGmf8XbmcQ67JhYK1b4;4:5Uf3Oh0olLRk2oBvCplr6RXUKfCRs+G7v2ADTYR6IPnDSHrs1GGm79lMi1c8NyrlosCZW/Mcb+9nlhv3oB2VuF+PkIoUrnPbWQ3XP6uwViWdldO4KIThOZPnAl3Luz9INrppt7ZBji6KWgx2lsOvJR2Xha7qzIxlEFTipm/aliT3wq7Zgixag2GBKioG7hebx+bwJsgmOCiXXGjx+tcHFx1afhQx4Smxa7XM6EOxFFclXz80PJWJIc8DUDyaa4jja8Fbk52rTgIK39r9DppvP777skae+MNRsVmO1McPO0w= DB3PR05MB459: X-MS-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:DB3PR05MB459;BCL:0;PCL:0;RULEID:;SRVR:DB3PR05MB459; X-Forefront-PRVS: 0644578634 X-Microsoft-Exchange-Diagnostics: =?utf-8?B?MTtEQjNQUjA1TUI0NTk7MjM6N09CRWZZQVV1NEx0L0JpWi9WZHg2dnhLZzd1?= =?utf-8?B?MnRMcFMyelMvWlVHWnNvMmQ2SmFWeGhjb0kvK3U2WDloTkxHV3BQMlNhd0JP?= =?utf-8?B?ZTNXa1hEamh0aURjUWNHT1dEa0FMVVA3Y1YraGlQdWpxdHhNWVR3alpRWnN0?= =?utf-8?B?NHdKT0ZKY0pDM0QxNjRvc2Q5WDBVTnpHY0pnbVNhbWZCaUtFZWowazhkZGFk?= =?utf-8?B?QU53TXRPRUxqb2NRZ1FlNUUvV2crZm1zTktUdkZvU0xsSlJVMTMrY1JqRU5r?= =?utf-8?B?TG8rV3hOcFBLanJCSGNMWm1QMGxMazdkY1RBVEQ4UW83WHF6bmJHMTJCbGdQ?= =?utf-8?B?OW45cVJWd2YxejFYbWNvR1hoSjRUNDRCTXFtWkdQa3M1dnpVUW5mS0RNSktF?= =?utf-8?B?OUlvamNqU2diM1U5RU9LaXhySmovUDBhN3hSSk50YW9MZitLVlIxN3d0ck1j?= =?utf-8?B?dTBtN3lwWVdBZHhwL3J0aXpSdDU1bHdYRFVldkh5anZPcDhuQ1ZHVXR6R0pD?= =?utf-8?B?emk0Q0M0V1BoSWJZeGlQT24vczlCN245Qmp2U08wcHpid2YxSzNhQUVlbVhj?= =?utf-8?B?clFMczVaUXBHOEFLYjNpSkxHMk44TzdEM3psZlZjM0YwZkdtZjM1QnhlUEIx?= =?utf-8?B?TnUvbjR0UmlVL0xoakU1ZCsyM3NlQ21EZ3lXV1dGbHZPeUZJZkJ6VURuaEdC?= =?utf-8?B?dU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uRAyFW0wrN0qsksMymV2/0Q+ah2Qq4ZL0QjqFnQ25pjur2tfMl3eWHjwVivpHEWlsOA== SpamDiagnosticOutput: 1:23 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: Mellanox.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 21 Jul 2015 10:52:31.7399 (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: DB3PR05MB459 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1407 Lines: 34 On 17/07/2015 22:01, Jérôme Glisse wrote: > @@ -151,10 +151,11 @@ int ib_umem_odp_get(struct ib_ucontext *context, struct ib_umem *umem) > context->ib_mirror = ib_mirror_ref(ib_mirror); > } > mutex_unlock(&ib_device->hmm_mutex); > - umem->odp_data.ib_mirror = ib_mirror; > + umem->odp_data->ib_mirror = ib_mirror; > > down_write(&ib_mirror->umem_rwsem); > - rbt_ib_umem_insert(&umem->odp_data->interval_tree, &mirror->umem_tree); > + rbt_ib_umem_insert(&umem->odp_data->interval_tree, > + &ib_mirror->umem_tree); > up_write(&ib_mirror->umem_rwsem); > > mmput(mm); > @@ -163,7 +164,7 @@ int ib_umem_odp_get(struct ib_ucontext *context, struct ib_umem *umem) > > void ib_umem_odp_release(struct ib_umem *umem) > { > - struct ib_mirror *ib_mirror = umem->odp_data; > + struct ib_mirror *ib_mirror = umem->odp_data->ib_mirror; > > /* > * Ensure that no more pages are mapped in the umem. It doesn't look like this code would have compiled before this patch, and as far as I can see the previous patch removed the #error line. Could you make sure all of the patches build correctly? You could use tools/testing/ktest for instance. -- 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/