Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755356AbZCHXBP (ORCPT ); Sun, 8 Mar 2009 19:01:15 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1754854AbZCHXA6 (ORCPT ); Sun, 8 Mar 2009 19:00:58 -0400 Received: from rv-out-0506.google.com ([209.85.198.231]:11814 "EHLO rv-out-0506.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754782AbZCHXA5 (ORCPT ); Sun, 8 Mar 2009 19:00:57 -0400 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; b=qL/aFC39CFkpaRVKs9rALAAY4qI0k8c9EBFPRwV2SKdtIwEQLrkIHFYfU1ot0NiLNK 0EsWJ00GWSthp6EuU1NbpC3QOhubUSUz+r+qjE3xllDjZaapEa6wEgii0rvHYbgwAlJK rVQjn8iDwcYM4Wx/sWzjwHcNq3HagyUTvNmFs= MIME-Version: 1.0 In-Reply-To: <20090308222804.GA25376@elte.hu> References: <49B1C81B.5010904@zytor.com> <20090308110437.GA27811@elte.hu> <20090308145803.GL25995@parisc-linux.org> <49B4330C.1060700@zytor.com> <49B4343B.9050807@kernel.org> <49B43585.2050606@zytor.com> <49B436E4.1050103@kernel.org> <20090308220100.GO25995@parisc-linux.org> <49B44182.1030707@zytor.com> <20090308222804.GA25376@elte.hu> Date: Sun, 8 Mar 2009 16:00:55 -0700 X-Google-Sender-Auth: cbc8ae01369351d4 Message-ID: <86802c440903081600l517c22ccj6328633c01131cb1@mail.gmail.com> Subject: Re: [PATCH] x86/pci: try to detect host_bridge pci_cfg_space From: Yinghai Lu To: Jesse Barnes , Ingo Molnar , Andrew Morton , "H. Peter Anvin" , Matthew Wilcox , Greg KH Cc: Thomas Gleixner , "linux-kernel@vger.kernel.org" , linux-pci@vger.kernel.org, Yinghai Lu , stable@kernel.org Content-Type: multipart/mixed; boundary=000e0cd1452e87cf640464a37deb Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 5213 Lines: 78 --000e0cd1452e87cf640464a37deb Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit please check... --000e0cd1452e87cf640464a37deb Content-Type: text/x-diff; charset=US-ASCII; name="host_bridge_4k_cfg.patch" Content-Disposition: attachment; filename="host_bridge_4k_cfg.patch" Content-Transfer-Encoding: base64 X-Attachment-Id: f_fs2bumxg0 W1BBVENIXSBwY2kveDg2OiB0cnkgdG8gZGV0ZWN0IGhvc3RfYnJpZGdlIHBjaV9jZmdfc3BhY2Ug LXYyCgpJbXBhY3Q6IGdldCBjb3JyZWN0IHBjaV9jZmdfc2l6ZSBmb3IgaG9zdF9icmlkZ2UKCm1v cmUgaG9zdCBicmlkZ2VzIHN1cHBvcnQgNGsgY2ZnLCBzbyBjaGVjayB0aGVtIGRpcmVjdHkgaW5z dGVhZCBvZiBxdWlya3MuCgpvbmx5IG5lZWQgdG8gZG8gdGhpcyBleHRyYSBjaGVjayBmb3IgaG9z dF9icmlkZ2UgYXQgdGhpcyBwb2ludCwgYmVjYXVzZSBvbmx5Cmhvc3QgYnJpZGdlcyBhcmUga25v d24gdG8gaGF2ZSBleHRlbmRlZCBhZGRyZXNzIHNwYWNlIHdpdGhvdXQgYWxzbyBoYXZpbmcgYQpQ Q0ktWC9QQ0ktRSBjYXBzLgpvdGhlciBkZXZpY2VzIHdlIGNvdWxkIHN0aWxsIGRvIHF1aXJrcyBm b3IgdGhlbSBpZiB0aGVyZSBpcyBhbnkuCgphbHNvIHJlbW92ZSB0aGUgcXVpcmtzIGZvciBBTUQg aG9zdCBicmlkZ2VzIHdpdGggZmFtaWx5IDEwaCBhbmQgMTFoIHRoYXQgaXMgbm90Cm5lZWRlZCBh bnkgbW9yZQoKd2l0aCB0aGlzIHBhdGNoLCB3ZSBjYW4gZ2V0IGNvcnJlY3QgcG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jYW5fZGV2 aWNlKHMKIAlkZXYtPm11bHRpZnVuY3Rpb24gPSAhIShoZHJfdHlwZSAmIDB4ODApOwogCWRldi0+ dmVuZG9yID0gbCAmIDB4ZmZmZjsKIAlkZXYtPmRldmljZSA9IChsID4+IDE2KSAmIDB4ZmZmZjsK LQlkZXYtPmNmZ19zaXplID0gcGNpX2NmZ19zcGFjZV9zaXplKGRldik7CiAJZGV2LT5lcnJvcl9z dGF0ZSA9IHBjaV9jaGFubmVsX2lvX25vcm1hbDsKIAlzZXRfcGNpZV9wb3J0X3R5cGUoZGV2KTsK IApAQCAtOTUyLDYgKzk1Niw5IEBAIHN0YXRpYyBzdHJ1Y3QgcGNpX2RldiAqcGNpX3NjYW5fZGV2 aWNlKHMKIAkJcmV0dXJuIE5VTEw7CiAJfQogCisJLyogbmVlZCB0byBoYXZlIGRldi0+Y2xhc3Mg cmVhZHkgKi8KKwlkZXYtPmNmZ19zaXplID0gcGNpX2NmZ19zcGFjZV9zaXplKGRldik7CisKIAly ZXR1cm4gZGV2OwogfQogCg== --000e0cd1452e87cf640464a37deb-- -- 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/