From owner-p4-projects Mon Dec 30 11:41:57 2002 Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id 44D3837B401; Mon, 30 Dec 2002 11:41:55 -0800 (PST) Delivered-To: perforce@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id CB52B37B40A for ; Mon, 30 Dec 2002 11:41:54 -0800 (PST) Received: from mail.speakeasy.net (mail12.speakeasy.net [216.254.0.212]) by mx1.FreeBSD.org (Postfix) with ESMTP id E254C43EB2 for ; Mon, 30 Dec 2002 11:41:53 -0800 (PST) (envelope-from jhb@FreeBSD.org) Received: (qmail 26354 invoked from network); 30 Dec 2002 19:41:59 -0000 Received: from unknown (HELO server.baldwin.cx) ([216.27.160.63]) (envelope-sender ) by mail12.speakeasy.net (qmail-ldap-1.03) with DES-CBC3-SHA encrypted SMTP for ; 30 Dec 2002 19:41:59 -0000 Received: from laptop.baldwin.cx (gw1.twc.weather.com [216.133.140.1]) by server.baldwin.cx (8.12.6/8.12.6) with ESMTP id gBUJfpUT051544; Mon, 30 Dec 2002 14:41:52 -0500 (EST) (envelope-from jhb@FreeBSD.org) Message-ID: X-Mailer: XFMail 1.5.2 on FreeBSD X-Priority: 3 (Normal) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit MIME-Version: 1.0 In-Reply-To: <200212280132.gBS1WakY007301@repoman.freebsd.org> Date: Mon, 30 Dec 2002 14:41:58 -0500 (EST) From: John Baldwin To: Marcel Moolenaar Subject: RE: PERFORCE change 22825 for review Cc: Perforce Change Reviews Sender: owner-p4-projects@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On 28-Dec-2002 Marcel Moolenaar wrote: > http://perforce.freebsd.org/chv.cgi?CH=22825 > > Change 22825 by marcel@marcel_nfs on 2002/12/27 17:31:54 > > o Move ia64_sapics and ia64_sapic_count from interrupt.c to > sapic.c. > o Remove ia64_add_sapic(). Adding a sapic to the array is > done in sapic_create directly now. > o Update the interrupt counter as early as possible to > help diagnose interrupt problems. > o Create a new sysctl "hw.apic" that shows the RTEs for > all (x)APICs in the system. This may be combined with > interrupt counters as an alternative interface for > vmstat -i. It may also go away... > > In ia64_enable(), we have a serious problem. We use the > IRQ to determine the trigger mode and polarity. We assume > that the first 16 IRQs are identity mapped onto the the > dual-PIC IRQs used by legacy systems to support 8259 > compatibility mode. Those interrupts are hardcoded to be > edge sensitive and active high. All other (higher) IRQs > are assumed (and hardcode) to be level sensitive active > low. The latter is not true. On the HP rx2600 the ACPI > based sio(4) devices are edge triggered active high and > have vectors 66 and 67. > > DANGER, WILL ROBINSON: this change hardcodes the trigger > mode and polarity for 3 interrupt vectors to be edge > sensitive active high. Do not use this code unless you > know it cannot harm. The kludge committed to get a serial > console on the HP box in the cluster until we have figured > where and how we can get information about interrupts and > specificly about trigger mode and polarity. How about reading the default value of the vector in the IO APIC vector entry? Or better yet, leave the polarity and trigger mode of those entries alone and only ever change the vector. However, try looking at the madt. Check out the diffs in jhb_madt to print out the contents of the MADT. The MADT can describe when certain pins are not normal. -- John Baldwin <>< http://www.FreeBSD.org/~jhb/ "Power Users Use the Power to Serve!" - http://www.FreeBSD.org/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe p4-projects" in the body of the message