Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753291AbWKDF1i (ORCPT ); Sat, 4 Nov 2006 00:27:38 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753595AbWKDF1i (ORCPT ); Sat, 4 Nov 2006 00:27:38 -0500 Received: from nf-out-0910.google.com ([64.233.182.190]:42284 "EHLO nf-out-0910.google.com") by vger.kernel.org with ESMTP id S1753291AbWKDF1h (ORCPT ); Sat, 4 Nov 2006 00:27:37 -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:mime-version:content-type:x-google-sender-auth; b=rq5lThfiHLacBsJGGpspyyif9sBDoZs+Bs2MTkFxPC54Ln3Mpql7yKvYZToF2AWhvig142jVW+tixl2d0XGRlLMqOaNo27N9Y7tgRs6a28kIm4qjt3XoyWSA5rnbtHuBlLNjgfgRg0WC4wEz1YzalzlOofKqx+p9uv9YKgIPCYQ= Message-ID: <86802c440611032127u33442a33ufc4cf3b11e9b8c7a@mail.gmail.com> Date: Fri, 3 Nov 2006 21:27:35 -0800 From: "Yinghai Lu" To: "Greg KH" , "Andi Kleen" , "Andrew Morton" Subject: [Patch] PCI: check szhi when sz is 0 for 64 bit pref mem Cc: linux-kernel MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_32765_18175093.1162618055166" X-Google-Sender-Auth: cc609eda6427792b Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2848 Lines: 48 ------=_Part_32765_18175093.1162618055166 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Please check the patch. ------=_Part_32765_18175093.1162618055166 Content-Type: text/x-patch; name=pci_64bit_pref_4g.patch; charset=ANSI_X3.4-1968 Content-Transfer-Encoding: base64 X-Attachment-Id: f_eu3kno8j Content-Disposition: attachment; filename="pci_64bit_pref_4g.patch" W1BhdGN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CFz eikKLQkJCQljb250aW51ZTsKKwkJCS8qIGZvciA2NGJpdCBwcmVmLCBzeiBjb3VsZCBiZSAwLCBp ZiB0aGUgcmVhbCBzaXplIGlzIGJpZ2dlciB0aGFuIDRHLAorCQkJCXNvIG5lZWQgdG8gY2hlY2sg c3poaSBmb3IgaXQKKwkJCSAqLworCQkJaWYgKChsICYgKFBDSV9CQVNFX0FERFJFU1NfU1BBQ0Ug fCBQQ0lfQkFTRV9BRERSRVNTX01FTV9UWVBFX01BU0spKQorCQkJICAgICE9IChQQ0lfQkFTRV9B RERSRVNTX1NQQUNFX01FTU9SWSB8IFBDSV9CQVNFX0FERFJFU1NfTUVNX1RZUEVfNjQpKSAKKwkJ CQlpZiAoIXN6KQorCQkJCQljb250aW51ZTsKIAkJCXJlcy0+c3RhcnQgPSBsICYgUENJX0JBU0Vf QUREUkVTU19NRU1fTUFTSzsKIAkJCXJlcy0+ZmxhZ3MgfD0gbCAmIH5QQ0lfQkFTRV9BRERSRVNT X01FTV9NQVNLOwogCQl9IGVsc2UgewpAQCAtMTg4LDYgKzE5MywxMiBAQCBzdGF0aWMgdm9pZCBw Y2lfcmVhZF9iYXNlcyhzdHJ1Y3QgcGNpX2RlCiAJCQlzemhpID0gcGNpX3NpemUobGhpLCBzemhp LCAweGZmZmZmZmZmKTsKIAkJCW5leHQrKzsKICNpZiBCSVRTX1BFUl9MT05HID09IDY0CisJCQlp ZiggIXN6ICYmICFzemhpKSB7CisJCQkJcmVzLT5zdGFydCA9IDA7CisJCQkJcmVzLT5lbmQgPSAw OworCQkJCXJlcy0+ZmxhZ3MgPSAwOworCQkJCWNvbnRpbnVlOworCQkJfQogCQkJcmVzLT5zdGFy dCB8PSAoKHVuc2lnbmVkIGxvbmcpIGxoaSkgPDwgMzI7CiAJCQlyZXMtPmVuZCA9IHJlcy0+c3Rh cnQgKyBzejsKIAkJCWlmIChzemhpKSB7Cg== ------=_Part_32765_18175093.1162618055166-- - 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/