Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754857AbYH3QF0 (ORCPT ); Sat, 30 Aug 2008 12:05:26 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752705AbYH3QFM (ORCPT ); Sat, 30 Aug 2008 12:05:12 -0400 Received: from rv-out-0506.google.com ([209.85.198.238]:36013 "EHLO rv-out-0506.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752550AbYH3QFJ (ORCPT ); Sat, 30 Aug 2008 12:05:09 -0400 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:references; b=dtydZYJ3JdQ3muMV3gAPBejbT2wHXFnmGjvva1/Zd0AJKwRUZLC+w7AWQADHO1adNs O4L0/3fIsnjlVSzZXrujbTKa7E4T/TVIcxlCf45NlUhlSh5RPUYO4SixB4LUC6gQBTof +aFccVp2R7/aRi0husMmgf94Jn8IhugoGjLBM= Message-ID: <86802c440808300905v5056fe0apdc6e328d99dff090@mail.gmail.com> Date: Sat, 30 Aug 2008 09:05:08 -0700 From: "Yinghai Lu" To: "Rafael J. Wysocki" Subject: Re: Linux 2.6.27-rc5: System boot regression caused by commit a2bd7274b47124d2fc4dfdb8c0591f545ba749dd Cc: "Linus Torvalds" , "Linux Kernel Mailing List" , "Jeff Garzik" , "Tejun Heo" , "Ingo Molnar" , "David Witbrodt" , "Andrew Morton" , "Kernel Testers" In-Reply-To: <200808301532.57307.rjw@sisk.pl> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_16847_27709860.1220112308413" References: <86802c440808291720w67de2285yc8cf645ff3b70666@mail.gmail.com> <86802c440808291727nbd297c0w8a2a60bed423c0f7@mail.gmail.com> <200808301532.57307.rjw@sisk.pl> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 28909 Lines: 451 ------=_Part_16847_27709860.1220112308413 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline On Sat, Aug 30, 2008 at 6:32 AM, Rafael J. Wysocki wrote: > On Saturday, 30 of August 2008, Yinghai Lu wrote: >> On Fri, Aug 29, 2008 at 5:20 PM, Yinghai Lu wrote: >> > On Fri, Aug 29, 2008 at 5:08 PM, Linus Torvalds >> > wrote: >> >> >> >> >> >> On Fri, 29 Aug 2008, Yinghai Lu wrote: >> >>> > >> >>> > http://www.sisk.pl/kernel/debug/mainline/2.6.27-rc5/broken.log >> >>> >> >>> pci 0000:00:00.0: BAR has MMCONFIG at e0000000-ffffffff >> >> >> >> And that seems utter crap to begin with. >> >> >> >> PCI: Using MMCONFIG at e0000000 - efffffff >> >> >> >> Where did it get that bogus "ffffffff" end address? >> >> >> >> Anyway, that whole MMCONFIG/BAR thing was totally broken to begin with, >> >> and it's reverted now in my tree, so I guess it doesn't much matter. >> > >> > we need to handle it. otherwise if the BAR go first, and it will stop >> > other BARs to be registered... >> > >> > a quirk should do the work.... >> > >> > Rafael, can you send out lspci -tv and lspci --vvxxx too. >> >> cat /proc/iomem please. > > http://www.sisk.pl/kernel/debug/mainline/2.6.27-rc5/lspci-tv.txt > http://www.sisk.pl/kernel/debug/mainline/2.6.27-rc5/lspci-vvxxx.txt > http://www.sisk.pl/kernel/debug/mainline/2.6.27-rc5/proc_iomem.txt > 00:00.0 Host bridge: ATI Technologies Inc RD790 Northbridge only dual slot PCI-e_GFX and HT3 K8 part Subsystem: ATI Technologies Inc RD790 Northbridge only dual slot PCI-e_GFX and HT3 K8 part Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- Status: Cap+ 66MHz+ UDF- FastB2B- ParErr- DEVSEL=medium >TAbort- SERR- (64-bit, non-prefetchable) Capabilities: [c4] HyperTransport: Slave or Primary Interface Command: BaseUnitID=0 UnitCnt=12 MastHost- DefDir- DUL- Link Control 0: CFlE- CST- CFE- (64-bit, non-prefetchable) BIOS should hide that region, and because AMD quad core has MMCONFIG set in NB MSR already. please try to apply attached patches, and boot with "debug initcall_debug" applying sequence: split_e820_reserve=.patch pci_res_print_out.patch split_e820_reserve_xx1.patch insert_resource_debug.patch pci_mmconf.patch please send out dmesg -s 262144 > x.txt cat /proc/iomem need to verify if we need quirk to clear that resource. YH ------=_Part_16847_27709860.1220112308413 Content-Type: text/x-patch; name=pci_mmconf.patch Content-Transfer-Encoding: base64 X-Attachment-Id: f_fkif4jll0 Content-Disposition: attachment; filename=pci_mmconf.patch RnJvbTogWWluZ2hhaSBMdSA8eWhsdS5rZXJuZWxAZ21haWwuY29tPgpTdWJqZWN0OiBbUEFUQ0hd IHg4NjogdW5pZnkgdXNpbmcgcGNpX21tY2ZnX2luc2VydF9yZXNvdXJjZQoKZXZlbiB3aXRoIGtu b3duX2JyaWRnZSBpbnNlcnQgdGhlbSBsYXRlIHRvby4KClNpZ25lZC1vZmYtYnk6IFlpbmdoYWkg THUgPHlobHUua2VybmVsQGdtYWlsLmNvbT4KCkluZGV4OiBsaW51eC0yLjYvYXJjaC94ODYvcGNp L21tY29uZmlnLXNoYXJlZC5jCj09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09 PT09PT09PT09PT09PT09PT09PT09PT09PT09PT0KLS0tIGxpbnV4LTIuNi5vcmlnL2FyY2gveDg2 L3BjaS9tbWNvbmZpZy1zaGFyZWQuYworKysgbGludXgtMi42L2FyY2gveDg2L3BjaS9tbWNvbmZp Zy1zaGFyZWQuYwpAQCAtMjA5LDcgKzIwOSw3IEBAIHN0YXRpYyBpbnQgX19pbml0IHBjaV9tbWNm Z19jaGVja19ob3N0YnIKIAlyZXR1cm4gbmFtZSAhPSBOVUxMOwogfQogCi1zdGF0aWMgdm9pZCBf X2luaXQgcGNpX21tY2ZnX2luc2VydF9yZXNvdXJjZXModW5zaWduZWQgbG9uZyByZXNvdXJjZV9m bGFncykKK3N0YXRpYyB2b2lkIF9faW5pdCBw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R0ZW1wdCB0byBpbnNlcnQgbW1jZmcgcmVzb3VyY2VzIGJl Y2F1c2UKIAkJICogdGhlIGFyY2hpdGVjdHVyZSBtbWNmZyBzZXR1cCBjb3VsZCBub3QgaW5pdGlh bGl6ZS4KQEAgLTQ3NSw3ICs0NzMsNyBAQCBzdGF0aWMgaW50IF9faW5pdCBwY2lfbW1jZmdfbGF0 ZV9pbnNlcnRfCiAJICogbWFya2VkIHNvIGl0IHdvbid0IGNhdXNlIHJlcXVlc3QgZXJyb3JzIHdo ZW4gX19yZXF1ZXN0X3JlZ2lvbiBpcwogCSAqIGNhbGxlZC4KIAkgKi8KLQlwY2lfbW1jZmdfaW5z ZXJ0X3Jlc291cmNlcygwKTsKKwlwY2lfbW1jZmdfaW5zZXJ0X3Jlc291cmNlcygpOwogCiAJcmV0 dXJuIDA7CiB9Cg== ------=_Part_16847_27709860.1220112308413 Content-Type: text/x-patch; name=pci_res_print_out.patch Content-Transfer-Encoding: base64 X-Attachment-Id: f_fkif4vdh1 Content-Disposition: attachment; filename=pci_res_print_out.patch RnJvbTogWWluZ2hhaSBMdSA8eWhsdS5rZXJuZWxAZ21haWwuY29tPgpTdWJqZWN0OiBbUEFUQ0hd IHBjaTogZml4IG1lcmdpbmcgbGVmdCBvdXQgZm9yIEJBUiBwcmludCBvdXQKCnByaW50IG91dCBm b3IgRGV2aWNlIEJBUiBhZGRyZXNzIGJlZm9yZSBrZXJuZWwgdHJ5IHRvIHVwZGF0ZSB0aGVtLgoK YWxzbyBjaGFuZ2UgaXQgdG8gS0VSTl9ERUJVRyBpbnN0ZWFkLi4uCgpTaWduZWQtb2ZmLWJ5OiBZ aW5naGFpIEx1IDx5aGx1Lmtlcm5lbEBnbWFpbC5jb20+CgpkaWZmIC0tZ2l0IGEvZHJpdmVycy9w Y2kvcHJvYmUuYyBiL2RyaXZlcnMvcGNpL3Byb2JlLmMKaW5kZXggY2NlMmY0Yy4uNGVlMDZjMyAx MDA2NDQKLS0tIGEvZHJpdmVyc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IAkJcmVzLT5mbGFncyA9IChtZW1fYmFzZV9sbyAmIFBDSV9NRU1PUllfUkFO R0VfVFlQRV9NQVNLKSB8IElPUkVTT1VSQ0VfTUVNIHwgSU9SRVNPVVJDRV9QUkVGRVRDSDsKIAkJ cmVzLT5zdGFydCA9IGJhc2U7CiAJCXJlcy0+ZW5kID0gbGltaXQgKyAweGZmZmZmOwotCQlwcmlu dGsoS0VSTl9JTkZPICJQQ0k6IGJyaWRnZSAlcyAlc2JpdCBtbWlvIHByZWY6IFslbGx4LCAlbGx4 XVxuIiwgcGNpX25hbWUoZGV2KSwgKHJlcy0+ZmxhZ3MgJiBQQ0lfUFJFRl9SQU5HRV9UWVBFXzY0 KT8iNjQiOiIzMiIscmVzLT5zdGFydCwgcmVzLT5lbmQpOworCQlwcmludGsoS0VSTl9ERUJVRyAi UENJOiBicmlkZ2UgJXMgJXNiaXQgbW1pbyBwcmVmOiBbJWxseCwgJWxseF1cbiIsIHBjaV9uYW1l KGRldiksIChyZXMtPmZsYWdzICYgUENJX1BSRUZfUkFOR0VfVFlQRV82NCk/IjY0IjoiMzIiLHJl cy0+c3RhcnQsIHJlcy0+ZW5kKTsKIAl9CiB9CiAK ------=_Part_16847_27709860.1220112308413 Content-Type: text/x-patch; name=split_e820_reserve.patch Content-Transfer-Encoding: base64 X-Attachment-Id: f_fkif502x2 Content-Disposition: attachment; filename=split_e820_reserve.patch RnJvbTogWWluZ2hhaSBMdSA8eWhsdS5rZXJuZWxAZ21haWwuY29tPgpTdWJqZWN0OiBbUEFUQ0hd IHg4Njogc3BsaXQgZTgyMCByZXNlcnZlZCBlbnRyaWVzIHJlY29yZCB0byBsYXRlIHY0CgpMaW51 cyBzYWlkIHdlIHNob3VsZCByZWdpc3RlciBzb21lIGVudHJpZXMgaW4gZTgyMCBsYXRlciwKc28g Y291bGQgbGV0IEJBUiByZXMgcmVnaXN0ZXIgYXQgZmlyc3QsIG9yIGV2ZW4gcG5wPwoKdGhpcyBv bmUgcmVwbGFj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g KmRlZmF1bHRfbWFjaGluZV9zcGVjaWZpY19tZW1vcnlfc2V0dXAodm9pZCk7CiBleHRlcm4gY2hh ciAqbWFjaGluZV9zcGVjaWZpY19tZW1vcnlfc2V0dXAodm9pZCk7Cg== ------=_Part_16847_27709860.1220112308413 Content-Type: text/x-patch; name=split_e820_reserve_xx1.patch Content-Transfer-Encoding: base64 X-Attachment-Id: f_fkif55993 Content-Disposition: attachment; filename=split_e820_reserve_xx1.patch RnJvbTogWWluZ2hhaSBMdSA8eWhsdS5rZXJuZWxAZ21haWwuY29tPgpTdWJqZWN0OiBbUEFUQ0hd IHg4Njogc3BsaXQgZTgyMCByZXNlcnZlZCBlbnRyaWVzIHJlY29yZCB0byBsYXRlIHY0IC0gZml4 IHYzCgp0cnkgdG8gaW5zZXJ0X3Jlc291cmNlIHNlY29uZCB0aW1lLCBieSBleHBhbmQgdGhlIHJl c291cmNlLi4uCgpmb3IgY2FzZTogZTgyMCByZXNlcnZlZCBlbnRyeSBpcyBwYXJ0aWFsbHkgb3Zl cmxhcHBlZCB3aXRoIGJhciByZXMuLi4KCmhvcGUgaXQgd2lsbCBuZXZlciBoYXBwZW4KCnYyOiBh Y2NvcmRpbmcgdG8gTGludXMsIGFkZCBpbnNlcnRfcmVzb3VyY2VfZXhwYW5kX3RvX2ZpdCwgYW5k IGNoYW5nZQoJX19pbnNlcnRfcmVzb3VyY2UgdG8gc3RhdGljIHdpdGhvdXQgbG9jawoKdjM6IHVz ZSByZXNlcnZlX3JlZ2lvbl93aXRoX3NwbGl0KCkgaW5zdGVhZCB0byBoYW5kIG92ZXJsYXBwaW5n Cgl3aXRoIHRlc3QgY2FzZSBieSBleHRlbmQgMHhlMDAwMDAwMCAtIDB4ZWZmZmZmZiB0byAweGRk ODAwMDAwIC0KCWdldAoJCWUwMDAwMDAwLWVmZmZmZmZmIDogUENJIE1NQ09ORklHIDAKCQkJIGUw MDAwMDAwLWVmZmZmZmZmIDogcmVzZXJ2ZWQKCWluIC9wcm9j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G5hbWUpOworCX0KKworfQorCit2b2lk IHJlc2VydmVfcmVnaW9uX3dpdGhfc3BsaXQoc3RydWN0IHJlc291cmNlICpyb290LAorCQlyZXNv dXJjZV9zaXplX3Qgc3RhcnQsIHJlc291cmNlX3NpemVfdCBlbmQsCisJCWNvbnN0IGNoYXIgKm5h bWUpCit7CisJd3JpdGVfbG9jaygmcmVzb3VyY2VfbG9jayk7CisJX19yZXNlcnZlX3JlZ2lvbl93 aXRoX3NwbGl0KHJvb3QsIHN0YXJ0LCBlbmQsIG5hbWUpOwogCXdyaXRlX3VubG9jaygmcmVzb3Vy Y2VfbG9jayk7Ci0JcmV0dXJuIHJlc3VsdDsKIH0KIAogLyoqCg== ------=_Part_16847_27709860.1220112308413 Content-Type: text/x-patch; name=insert_resource_debug.patch Content-Transfer-Encoding: base64 X-Attachment-Id: f_fkif5bh14 Content-Disposition: attachment; filename=insert_resource_debug.patch LS0tCiBrZXJuZWwvcmVzb3VyY2UuYyB8ICAgMTggKysrKysrKysrKysrKysrLS0tCiAxIGZpbGUg Y2hhbmdlZCwgMTUgaW5zZXJ0aW9ucygrKSwgMyBkZWxldGlvbnMoLSkKCkluZGV4OiBsaW51eC0y LjYva2VybmVsL3Jlc291cmNlLmMKPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09 PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PQotLS0gbGludXgtMi42Lm9yaWcva2VybmVs L3Jlc291cmNlLmMKKysrIGxpbnV4LTIuNi9rZXJuZWwvcmVzb3VyY2UuYwpAQCAtMjAxLDYgKzIw MSw3IEBAIGludCByZXF1ZXN0X3Jlc291cmNlKHN0cnVjdCByZXNvdXJjZSAqcm8KIAl3cml0ZV9s b2NrKCZyZXNvdXJjZV9sb2NrKTsKIAljb25mbGljdCA9IF9fcmVxdWVzdF9yZXNvdXJjZShyb290 LCBuZXcpOwogCXdyaXRlX3VubG9jaygmcmVzb3VyY2VfbG9jayk7CisJcHJpbnRrKEtFUk5fREVC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gY29uZmxpY3QtPm5hbWUs IGNvbmZsaWN0LT5zdGFydCwgY29uZmxpY3QtPmVuZCwgcmVzLT5uYW1lLCByZXMtPnN0YXJ0LCBy ZXMtPmVuZCk7CiAJCQkJcGFyZW50ID0gY29uZmxpY3Q7CiAJCQkJaWYgKCEoY29uZmxpY3QtPmZs YWdzICYgSU9SRVNPVVJDRV9CVVNZKSkKIAkJCQkJY29udGludWU7CisJCQkJcHJpbnRrKEtFUk5f REVCVUcgImJ1c3kgZmxhZ1xuIik7CiAJCQl9CiAKIAkJCS8qIFVoaHVoLCB0aGF0IGRpZG4ndCB3 b3JrIG91dC4uICovCg== ------=_Part_16847_27709860.1220112308413-- -- 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/