Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754001AbWKGEfI (ORCPT ); Mon, 6 Nov 2006 23:35:08 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1754003AbWKGEfI (ORCPT ); Mon, 6 Nov 2006 23:35:08 -0500 Received: from ug-out-1314.google.com ([66.249.92.171]:42964 "EHLO ug-out-1314.google.com") by vger.kernel.org with ESMTP id S1754001AbWKGEfG (ORCPT ); Mon, 6 Nov 2006 23:35:06 -0500 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:sender:to:subject:cc:in-reply-to:mime-version:content-type:references:x-google-sender-auth; b=QFudYscppc2/x026PjEFlnUslw0uJIn9S5LN0OF+9EAEnwYtDWrUovyZhzwuYesKkJXjjEetawzRRrjmXqi0rYyltb2FS98lK1Q0Qyyl/Y2JbMBBNQDXPxRw022GkQiN7o+6iAx8L3vRCsHhk1Qr+0xwRg7Do9SViJpMrLPjlq4= Message-ID: <86802c440611062035m7b530ct5e79174e4008f32b@mail.gmail.com> Date: Mon, 6 Nov 2006 20:35:04 -0800 From: "Yinghai Lu" To: "Andrew Morton" Subject: Re: [Patch] PCI: check szhi when sz is 0 for 64 bit pref mem Cc: "Greg KH" , "Andi Kleen" , linux-kernel , myles@mouselemur.cs.byu.edu In-Reply-To: <20061106160441.1a06bf76.akpm@osdl.org> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_384_5261661.1162874104018" References: <5986589C150B2F49A46483AC44C7BCA490719C@ssvlexmb2.amd.com> <20061106160441.1a06bf76.akpm@osdl.org> X-Google-Sender-Auth: a66da0a1307830b8 Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 4877 Lines: 74 ------=_Part_384_5261661.1162874104018 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline please check version with pci_size64. ------=_Part_384_5261661.1162874104018 Content-Type: text/x-patch; name=pci_64bit_pref_4g_1106.patch; charset=ANSI_X3.4-1968 Content-Transfer-Encoding: base64 X-Attachment-Id: f_eu7t3f1j Content-Disposition: attachment; filename="pci_64bit_pref_4g_1106.patch" W1BBVENIXSBQQ0k6IGNoZWNrIHN6aGkgd2hlbiBzeiBpcyAwIHdoZW4gNjQgYml0IGlvbWVtIGJp Z2dlciB0aGFuIDRHCgoJSWYgdGhlIFBDSSBkZXZpY2UgaXMgNjQtYml0IG1lbW9yeSBhbmQgaGFz IGEgc2l6ZSBvZiAweG5ubm5ubm5uMDAwMDAwMDAgdGhlbgoJcGNpX3JlYWRfYmFzZXMoKSB3aWxs IGluY29ycmVjdGx5IGFzc3VtZSB0aGF0IGl0IGhhcyBhIHNpemUgb2YgemVyby4KCglDYzogTXls ZXMgV2F0c29uIDxteWxlc0Btb3VzZWxlbXVyLmNzLmJ5dS5lZHU+CglTaWduZWQtb2ZmLWJ5OiBZ aW5naGFpIEx1IDx5aW5naGFpLmx1QGFtZC5jb20+CglDYzogR3JlZyBLSCA8Z3JlZ0Brcm9haC5j b20+CglTaWduZWQtb2ZmLWJ5OiBBbmRyZXcgTW9ydG9uIDxha3BtQG9zZGwub3JnPgoKZGlmZiAt LWdpdCBhL2RyaXZlcnMvcGNpL3Byb2JlLmMgYi9kcml2ZXJzL3BjaS9wcm9iZS5jCmluZGV4IGUx NTlkNjYuLjBlMmIxMGMgMTAwNjQ0Ci0tLSBhL2RyaXZlcnMvcGNpL3Byb2JlLmMKKysrIGIvZHJp dmVycy9wY2kvcHJvYmUuYwpAQCAtMTQ0LDYgKzE0NCwyNCBAQCBzdGF0aWMgdTMyIHBjaV9zaXpl KHUzMiBiYXNlLCB1MzIgbWF4YmFzCiAJcmV0dXJuIHNpemU7CiB9CiAKK3N0YXRpYyB1NjQgcGNp X3NpemU2NCh1NjQgYmFzZSwgdTY0IG1heGJhc2UsIHU2NCBtYXNrKQoreworCXU2NCBzaXplID0g bWFzayAmIG1heGJ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6aGksIDB4ZmZmZmZmZmYpOworCQkJc3o2NCB8 PSAoKHVuc2lnbmVkIGxvbmcpIHN6aGkpIDw8IDMyOworCQkJbDY0ID0gKCgodW5zaWduZWQgbG9u ZykgbGhpKSA8PCAzMikgfCBsOworCQkJc3o2NCA9IHBjaV9zaXplNjQobDY0LCBzejY0LCBQQ0lf QkFTRV9BRERSRVNTX01FTV9NQVNLKTsKIAkJCW5leHQrKzsKICNpZiBCSVRTX1BFUl9MT05HID09 IDY0Ci0JCQlyZXMtPnN0YXJ0IHw9ICgodW5zaWduZWQgbG9uZykgbGhpKSA8PCAzMjsKLQkJCXJl cy0+ZW5kID0gcmVzLT5zdGFydCArIHN6OwotCQkJaWYgKHN6aGkpIHsKLQkJCQkvKiBUaGlzIEJB UiBuZWVkcyA+IDRHQj8gIFdvdy4gKi8KLQkJCQlyZXMtPmVuZCB8PSAodW5zaWduZWQgbG9uZylz emhpPDwzMjsKKwkJCWlmICghc3o2NCkgeworCQkJCXJlcy0+c3RhcnQgPSAwOworCQkJCXJlcy0+ ZW5kID0gMDsKKwkJCQlyZXMtPmZsYWdzID0gMDsKKwkJCQljb250aW51ZTsKIAkJCX0KKwkJCXJl cy0+c3RhcnQgPSBsNjQgJiBQQ0lfQkFTRV9BRERSRVNTX01FTV9NQVNLOworCQkJcmVzLT5lbmQg PSByZXMtPnN0YXJ0ICsgc3o2NDsKICNlbHNlCi0JCQlpZiAoc3poaSkgeworCQkJaWYgKHN6NjQ+ MHgxMDAwMDAwMDBVTEwpIHsKIAkJCQlwcmludGsoS0VSTl9FUlIgIlBDSTogVW5hYmxlIHRvIGhh bmRsZSA2NC1iaXQgQkFSIGZvciBkZXZpY2UgJXNcbiIsIHBjaV9uYW1lKGRldikpOwogCQkJCXJl cy0+c3RhcnQgPSAwOwogCQkJCXJlcy0+ZmxhZ3MgPSAwOwo= ------=_Part_384_5261661.1162874104018-- - 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/