Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932884Ab1EZUjX (ORCPT ); Thu, 26 May 2011 16:39:23 -0400 Received: from smtp-out.google.com ([74.125.121.67]:42129 "EHLO smtp-out.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758238Ab1EZUjW (ORCPT ); Thu, 26 May 2011 16:39:22 -0400 DomainKey-Signature: a=rsa-sha1; c=nofws; d=google.com; s=beta; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; b=yhVe+I3Nm9dZdA5fwQn5nHyyPuuwQPYPNN/lS9y8XN3LJruGNqqbxp5hHb7BdH8phi SBfuQpGQUitRbWCBHmDw== MIME-Version: 1.0 In-Reply-To: References: <4DD5452F.9050108@radicalsystems.co.za> From: Bjorn Helgaas Date: Thu, 26 May 2011 14:38:55 -0600 Message-ID: Subject: Re: PCI BAR1 Unassigned To: Jan Zwiegers Cc: Xianghua Xiao , "linux-pci@vger.kernel.org" , "linux-kernel@vger.kernel.org" Content-Type: multipart/mixed; boundary=000e0cd299a6c0217504a433d099 X-System-Of-Record: true Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 6146 Lines: 90 --000e0cd299a6c0217504a433d099 Content-Type: text/plain; charset=ISO-8859-1 Jan, would you mind testing the attached patch? This is against current upstream, but I think it will apply without much trouble to 2.6.35; I don't think there have been many changes in that area. Thanks. --000e0cd299a6c0217504a433d099 Content-Type: application/octet-stream; name="patch.pci" Content-Disposition: attachment; filename="patch.pci" Content-Transfer-Encoding: base64 X-Attachment-Id: f_go65y64i0 Y29tbWl0IGZiZWVkOTQ2YmU4MjdiNDZmNjgwMTMzMmVmMGZkYzliMDA5MzllODEKQXV0aG9yOiBC am9ybiBIZWxnYWFzIDxiaGVsZ2Fhc0Bnb29nbGUuY29tPgpEYXRlOiAgIFR1ZSBNYXkgMjQgMDY6 NDg6MjIgMjAxMSAtMDYwMAoKICAgIFB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ICYgflBDSV9CQVNFX0FERFJFU1NfTUVNX01BU0s7Ci0KLQlpZiAocmVzLT5mbGFncyAm IFBDSV9CQVNFX0FERFJFU1NfTUVNX1RZUEVfNjQpCisJcmVzLT5mbGFncyA9IGJhciAmIFBDSV9C QVNFX0FERFJFU1NfTUVNX1BSRUZFVENIOworCisJbWVtX3R5cGUgPSBiYXIgJiBQQ0lfQkFTRV9B RERSRVNTX01FTV9UWVBFX01BU0s7CisJc3dpdGNoIChtZW1fdHlwZSkgeworCWNhc2UgUENJX0JB U0VfQUREUkVTU19NRU1fVFlQRV8zMjoKKwkJcmV0dXJuIHBjaV9iYXJfbWVtMzI7CisJY2FzZSBQ Q0lfQkFTRV9BRERSRVNTX01FTV9UWVBFXzFNOgorCQlkZXZfaW5mbygmZGV2LT5kZXYsICIxTSBt ZW0gQkFSIHRyZWF0ZWQgYXMgMzItYml0IEJBUlxuIik7CisJCXJldHVybiBwY2lfYmFyX21lbTMy OworCWNhc2UgUENJX0JBU0VfQUREUkVTU19NRU1fVFlQRV82NDoKKwkJcmVzLT5mbGFncyB8PSBQ Q0lfQkFTRV9BRERSRVNTX01FTV9UWVBFXzY0OwogCQlyZXR1cm4gcGNpX2Jhcl9tZW02NDsKLQly ZXR1cm4gcGNpX2Jhcl9tZW0zMjsKKwlkZWZhdWx0OgorCQlkZXZfd2FybigmZGV2LT5kZXYsCisJ CQkgIm1lbSB1bmtub3duIHR5cGUgJXggdHJlYXRlZCBhcyAzMi1iaXQgQkFSXG4iLAorCQkJIG1l bV90eXBlKTsKKwkJcmV0dXJuIHBjaV9iYXJfbWVtMzI7CisJfQogfQogCiAvKioK --000e0cd299a6c0217504a433d099-- -- 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/