From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from gate.crashing.org ([63.228.1.57]:43791 "EHLO gate.crashing.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758563Ab3EWVXc (ORCPT ); Thu, 23 May 2013 17:23:32 -0400 Message-ID: <1369344196.3870.35.camel@pasglop> Subject: Re: Resource assignment oddities From: Benjamin Herrenschmidt To: Yinghai Lu Cc: Bjorn Helgaas , Gavin Shan , "linux-pci@vger.kernel.org" Date: Fri, 24 May 2013 07:23:16 +1000 In-Reply-To: References: <1367732090.11982.38.camel@pasglop> <1367740336.11982.41.camel@pasglop> <51871088.4594420a.0ccc.7300SMTPIN_ADDED_BROKEN@mx.google.com> <518786a7.64bbec0a.58a0.1f6bSMTPIN_ADDED_BROKEN@mx.google.com> <519dcfbe.89e9420a.4934.488bSMTPIN_ADDED_BROKEN@mx.google.com> Content-Type: text/plain; charset="UTF-8" Mime-Version: 1.0 Sender: linux-pci-owner@vger.kernel.org List-ID: On Thu, 2013-05-23 at 14:00 -0700, Yinghai Lu wrote: > Yes, that is what patch try to do. Keep the mmio allocation from first > try, and only retry with io port. Can you describe more precisely what happens with the *current* code ? Ie. The first pass allocates my device MMIO regions fine. The second pass them spew some error messages about some mem allocation. I can still observe *something* being assigned to devices and in the (limited) setup I've been able to test with, so far, the devices seemed to still work, so I don't have a good grasp of the extent of the risk here. Is there a chance that this failed "second pass" actually prevents proper allocation of resources ? Cheers, Ben.