From owner-freebsd-current@FreeBSD.ORG Thu Jan 29 20:31:03 2004 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5D15A16A4CE for ; Thu, 29 Jan 2004 20:31:03 -0800 (PST) Received: from out012.verizon.net (out012pub.verizon.net [206.46.170.137]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9933443D1D for ; Thu, 29 Jan 2004 20:31:01 -0800 (PST) (envelope-from Alex.Kovalenko@verizon.net) Received: from RabbitsDen ([138.89.11.108]) by out012.verizon.net (InterMail vM.5.01.06.06 201-253-122-130-106-20030910) with ESMTP id <20040130043100.DCYS1590.out012.verizon.net@RabbitsDen> for ; Thu, 29 Jan 2004 22:31:00 -0600 Date: Thu, 29 Jan 2004 23:30:47 -0500 From: Alexandre "Sunny" Kovalenko To: freebsd-current@freebsd.org 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> Organization: Home X-Mailer: Sylpheed version 0.9.8a (GTK+ 1.2.10; i386-portbld-freebsd5.2) Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="Multipart=_Thu__29_Jan_2004_23_30_47_-0500_ykfoMmR_IsfYGEyp" X-Authentication-Info: Submitted using SMTP AUTH at out012.verizon.net from [138.89.11.108] at Thu, 29 Jan 2004 22:31:00 -0600 Subject: Re: TP 600 and ACPI IRQ routing problems X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 30 Jan 2004 04:31:03 -0000 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= 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 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 KioqKioqKioqKioqKioqKioqKio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