Date: Thu, 29 Jan 2004 23:30:47 -0500 From: Alexandre "Sunny" Kovalenko <Alex.Kovalenko@verizon.net> To: freebsd-current@freebsd.org Subject: Re: TP 600 and ACPI IRQ routing problems Message-ID: <20040129233047.62e4c857.Alex.Kovalenko@verizon.net> In-Reply-To: <20040129192743.GC75575@mail.evip.pl> References: <20040129182233.GB75575@mail.evip.pl> <200401291342.41748.jhb@FreeBSD.org> <20040129192743.GC75575@mail.evip.pl>
next in thread | previous in thread | raw e-mail | index | archive | help
This is a multi-part message in MIME format. --Multipart=_Thu__29_Jan_2004_23_30_47_-0500_ykfoMmR_IsfYGEyp Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit You can try attached patch and set hw.acpi.pci.preferred_irq=<whatever IRQ you have configured for your PCI> in your /boot/loader.conf. That worked for me in somewhat similar situation on ThinkPad 560Z. If it worked for you, you might want report details to John Baldwin, since I have retired my 560Z and, consequently could not troubleshoot this problem any further. On Thu, 29 Jan 2004 20:27:43 +0100 Wiktor Niesiobedzki <bsd@w.evip.pl> wrote: > On Thu, Jan 29, 2004 at 01:42:41PM -0500, John Baldwin wrote: > > On Thursday 29 January 2004 01:22 pm, Wiktor Niesiobedzki wrote: > > > Hi, > > > > > > After giving a shot yesterdays CURRENT I still can't get ACPI and PCCARD > > > cooperating on my Thinkpad 600. As far as I recognize the problem, it lies > > > in that acpi assignes irq 3 to cbb device, what apparently isn't the best > > > choice. I've tried following setting in loader.conf: > > > hw.acpi.pci.link.0.3.0.irq=9 > > > hw.acpi.pci.link.0.7.3.irq=10 > > > hw.acpi.pci.link.0.2.0.irq=11 > > > hw.acpi.pci.link.0.2.1.irq=10 > > > > Try without that first line. (The irq=9 one). > > > No luck, still everything gets routed to irq 3. > > Cheers, > > Wiktor Niesiobedzki > > _______________________________________________ > freebsd-current@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-current > To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org" -- Alexandre "Sunny" Kovalenko. --Multipart=_Thu__29_Jan_2004_23_30_47_-0500_ykfoMmR_IsfYGEyp Content-Type: application/octet-stream; name="acpi_pcib.c.patch" Content-Disposition: attachment; filename="acpi_pcib.c.patch" Content-Transfer-Encoding: base64 LS0tIGFjcGlfcGNpYi5jCU1vbiBOb3YgMjQgMjE6MjQ6MTYgMjAwMworKysgYWNwaV9wY2liLmMu TkVXCU1vbiBOb3YgMjQgMjE6MjM6NTkgMjAwMwpAQCAtMzI0LDYgKzMyNCw0OCBAQAogCXByaW50 ZigiICAlZCIsIEludGVycnVwdHNbaV0pOwogICAgIHByaW50ZigiXG4iKTsKIAorICAgIC8qKioq KioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioq LworICAgIC8qIFRoaXMgaXMgdGhlIHVnbHkgaGFjayB0byBzZWUgaWYgaXQgd2lsbCBiZSB3b3Jr aW5nIGF0IGFsbCAqLworICAgIC8qIFdlIHdpbGwgbG9vayBmb3IgZW52aXJvbm1lbnQgdmFyaWFi bGUgJ2h3LmFjcGkucGNpLnByZWZlcnJlZF9pcnEnIAorICAgICAqIHRoZW4gY2hlY2sgaWYgSVJR IGluIHF1ZXN0aW9uIGlzIGluIHRoZSBsaXN0IG9mIGF2YWlsYWJsZSBvbmVzCisgICAgICogYW5k IGlmIGl0IGlzIGF2YWlsYWJsZSwgd2Ugd2lsbCB1c2UgaXQuIElmIGl0IGlzIG5vdCBhdmFpbGFi bGUKKyAgICAgKiB3ZSB3aWxsIGZhbGwgYmFjayBvbiAidW5zY2llbnRpZmljIiBmaXJzdCBhdmFp bGFibGUgaW50ZXJydXB0CisgICAgICogKGJhc2ljYWxseSB0aGUgd2F5IGNvZGUgd29ya2VkIGJl Zm9yZSkuCisgICAgICovCisgICAgaW50IHByZWZlcnJlZF9pcnFfaWR4ID0gMDsKKyAgICBjaGFy ICpwUHJlZmVycmVkSVJRID0gZ2V0ZW52KCJody5hY3BpLnBjaS5wcmVmZXJyZWRfaXJxIik7Cisg ICAgaWYocFByZWZlcnJlZElSUSAhPSBOVUxMKQorICAgIHsKKyAgICAgIHJlZ2lzdGVyIGNoYXIg KnBjOworICAgICAgLyogSSdtIHN1cmUgdGhlcmUgaXMgYSBiZXR0ZXIgd2F5IDspICovCisgICAg ICAvKiBzdHJsZW4gKyBpc2RpZ2l0ICovCisgICAgICByZWdpc3RlciBpbnQgaXJxID0gMDsKKyAg ICAgIGZvcihwYyA9IHBQcmVmZXJyZWRJUlE7ICpwYyAhPSAnXDAnOyBwYysrKQorICAgICAgewor CWlmKCgqcGMgPCAnMCcpIHx8ICgqcGMgPiAnOScpKQorCXsKKwkgIGRldmljZV9wcmludGYocGNp YiwgIkludmFsaWQgcHJlZmVycmVkIElSUTogJXMsICIKKwkJCSJmYWxsaW5nIGJhY2sgb24gZmly c3QgYXZhaWxhYmxlXG4iLCAKKwkJCXBQcmVmZXJyZWRJUlEpOworCSAgZ290byBmYWxsQmFja09u WmVybzsKKwl9CisJaXJxID0gKGlycSA8PCAzKSArIChpcnEgPDwgMSkgKyAoKnBjIC0gJzAnKTsK KyAgICAgIH0KKyAgICAgIC8qIExvb2tpbmcgZm9yIHNsb3Qgd2l0aCB0aGUgSVJRIGluIHF1ZXN0 aW9uICovCisgICAgICBmb3IocmVnaXN0ZXIgaW50IGkgPSAwOyBpIDwgTnVtYmVyT2ZJbnRlcnJ1 cHRzOyBpKyspCisgICAgICB7CisJaWYoSW50ZXJydXB0c1tpXSA9PSBpcnEpCisJeworCSAgcHJl ZmVycmVkX2lycV9pZHggPSBpOworCSAgYnJlYWs7CisJfQorICAgICAgfQorICAgICAgZGV2aWNl X3ByaW50ZihwY2liLCAiVXNlciBzdWdnZXN0ZWQgSVJROiAlZCAoc2xvdCAlZClcbiIsIAorCQkg ICAgaXJxLCBwcmVmZXJyZWRfaXJxX2lkeCk7IAorICAgIH0KKyBmYWxsQmFja09uWmVybzoKKyAg ICAvKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKio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hdHVzKSk7CiAJZ290byBv dXQ7CiAgICAgfQogICAgIAogICAgIC8qIHN1Y2Nlc3NmdWwsIHJldHVybiB0aGUgaW50ZXJydXB0 IHdlIGp1c3Qgcm91dGVkICovCiAgICAgZGV2aWNlX3ByaW50ZihwY2liLCAic2xvdCAlZCBJTlQl YyByb3V0ZWQgdG8gaXJxICVkIHZpYSAlc1xuIiwgCi0JcGNpX2dldF9zbG90KGRldiksICdBJyAr IHBpbiwgSW50ZXJydXB0c1swXSwgYWNwaV9uYW1lKGxua2RldikpOwotICAgIGludGVycnVwdCA9 IEludGVycnVwdHNbMF07CisJcGNpX2dldF9zbG90KGRldiksICdBJyArIHBpbiwgSW50ZXJydXB0 c1twcmVmZXJyZWRfaXJxX2lkeF0sIGFjcGlfbmFtZShsbmtkZXYpKTsKKyAgICBpbnRlcnJ1cHQg PSBJbnRlcnJ1cHRzW3ByZWZlcnJlZF9pcnFfaWR4XTsKIAogIG91dDoKICAgICBpZiAoY3JzYnVm LlBvaW50ZXIgIT0gTlVMTCkK --Multipart=_Thu__29_Jan_2004_23_30_47_-0500_ykfoMmR_IsfYGEyp--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040129233047.62e4c857.Alex.Kovalenko>