Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751860AbXLJRmS (ORCPT ); Mon, 10 Dec 2007 12:42:18 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753513AbXLJRmI (ORCPT ); Mon, 10 Dec 2007 12:42:08 -0500 Received: from mtagate8.uk.ibm.com ([195.212.29.141]:15891 "EHLO mtagate8.uk.ibm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752971AbXLJRmH (ORCPT ); Mon, 10 Dec 2007 12:42:07 -0500 From: Joachim Fenkes To: Roland Dreier Subject: Re: [PATCH] IB/ehca: Serialize HCA-related hCalls on POWER5 Date: Mon, 10 Dec 2007 18:41:29 +0100 User-Agent: KMail/1.9.1 Cc: Arnd Bergmann , linuxppc-dev@ozlabs.org, LKML , OF-EWG , Christoph Raisch , Marcus Eder , OF-General , Stefan Roscher References: <200712061607.20004.fenkes@de.ibm.com> <200712071058.38416.arnd@arndb.de> In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200712101841.30010.fenkes@de.ibm.com> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 814 Lines: 23 On Monday 10 December 2007 00:22, Roland Dreier wrote: > Fair enough... according to Documentation/infiniband/core_locking.txt, > the only driver methods that cannot sleep are: > > [...] > map_phys_fmr In fact, we do use hCalls there. Our hardware doesn't actually support FMRs, so we translate a "map FMR" into a "reallocate PMR", which doesn't work without hCalls. What's more, the hCalls involved (e.g. H_FREE_RESOURCE) might well return H_LONG_BUSY, so the whole operation might sleep; no way around it. How should we deal with this? Thanks, Joachim -- 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/