Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754764Ab1EaDDU (ORCPT ); Mon, 30 May 2011 23:03:20 -0400 Received: from smtp-out.google.com ([216.239.44.51]:26370 "EHLO smtp-out.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752493Ab1EaDDS (ORCPT ); Mon, 30 May 2011 23:03:18 -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=ACjNDuruC+F0PXI7MXk/VwoJxt5ULl/QNCG5NAuJhqEVrM5MyR0E7MOoqkTY3O/Obm bSM9T57r2i/F0UiW0cjQ== MIME-Version: 1.0 In-Reply-To: References: <4DD5452F.9050108@radicalsystems.co.za> From: Bjorn Helgaas Date: Mon, 30 May 2011 21:02:54 -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=001e680f14002dad0c04a489a53c X-System-Of-Record: true Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 6370 Lines: 99 --001e680f14002dad0c04a489a53c Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable On Thu, May 26, 2011 at 2:38 PM, Bjorn Helgaas wrote: > Jan, would you mind testing the attached patch? =A0This 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. Hi Jan, If you haven't tested the patch yet, can you substitute this one? It should be functionally equivalent, but I did tweak it a bit. Bjorn --001e680f14002dad0c04a489a53c Content-Type: application/octet-stream; name="patch.pci2" Content-Disposition: attachment; filename="patch.pci2" Content-Transfer-Encoding: base64 X-Attachment-Id: f_goc9hjuu1 Y29tbWl0IDU4YTEwNTgxNDBjNzQ1YzI3OTYxZTVhMjk3ZTQ0ZDI3NGQ2M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FX0lPKSB7CiAJCXJl cy0+ZmxhZ3MgPSBiYXIgJiB+UENJX0JBU0VfQUREUkVTU19JT19NQVNLOwogCQlyZXR1cm4gcGNp X2Jhcl9pbzsKQEAgLTExMCw4ICsxMTIsMjEgQEAgc3RhdGljIGlubGluZSBlbnVtIHBjaV9iYXJf dHlwZSBkZWNvZGVfYmFyKHN0cnVjdCBwY2lfZGV2ICpkZXYsCiAKIAlyZXMtPmZsYWdzID0gYmFy ICYgflBDSV9CQVNFX0FERFJFU1NfTUVNX01BU0s7CiAKLQlpZiAocmVzLT5mbGFncyAmIFBDSV9C QVNFX0FERFJFU1NfTUVNX1RZUEVfNjQpCisJbWVtX3R5cGUgPSBiYXIgJiBQQ0lfQkFTRV9BRERS RVNTX01FTV9UWVBFX01BU0s7CisJc3dpdGNoIChtZW1fdHlwZSkgeworCWNhc2UgUENJX0JBU0Vf QUREUkVTU19NRU1fVFlQRV8zMjoKKwkJYnJlYWs7CisJY2FzZSBQQ0lfQkFTRV9BRERSRVNTX01F TV9UWVBFXzFNOgorCQlkZXZfaW5mbygmZGV2LT5kZXYsICIxTSBtZW0gQkFSIHRyZWF0ZWQgYXMg MzItYml0IEJBUlxuIik7CisJCWJyZWFrOworCWNhc2UgUENJX0JBU0VfQUREUkVTU19NRU1fVFlQ RV82NDoKIAkJcmV0dXJuIHBjaV9iYXJfbWVtNjQ7CisJZGVmYXVsdDoKKwkJZGV2X3dhcm4oJmRl di0+ZGV2LAorCQkJICJtZW0gdW5rbm93biB0eXBlICV4IHRyZWF0ZWQgYXMgMzItYml0IEJBUlxu IiwKKwkJCSBtZW1fdHlwZSk7CisJCWJyZWFrOworCX0KIAlyZXR1cm4gcGNpX2Jhcl9tZW0zMjsK IH0KIAo= --001e680f14002dad0c04a489a53c-- -- 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/