From owner-freebsd-ia64@FreeBSD.ORG Mon Jul 11 11:07:04 2011 Return-Path: Delivered-To: freebsd-ia64@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 93AE9106566C for ; Mon, 11 Jul 2011 11:07:04 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 82D108FC22 for ; Mon, 11 Jul 2011 11:07:04 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id p6BB748r077014 for ; Mon, 11 Jul 2011 11:07:04 GMT (envelope-from owner-bugmaster@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id p6BB73EF077012 for freebsd-ia64@FreeBSD.org; Mon, 11 Jul 2011 11:07:03 GMT (envelope-from owner-bugmaster@FreeBSD.org) Date: Mon, 11 Jul 2011 11:07:03 GMT Message-Id: <201107111107.p6BB73EF077012@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: gnats set sender to owner-bugmaster@FreeBSD.org using -f From: FreeBSD bugmaster To: freebsd-ia64@FreeBSD.org Cc: Subject: Current problem reports assigned to freebsd-ia64@FreeBSD.org X-BeenThere: freebsd-ia64@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the IA-64 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 11 Jul 2011 11:07:04 -0000 Note: to view an individual PR, use: http://www.freebsd.org/cgi/query-pr.cgi?pr=(number). The following is a listing of current problems submitted by FreeBSD users. These represent problem reports covering all versions including experimental development code and obsolete releases. S Tracker Resp. Description -------------------------------------------------------------------------------- o ia64/158547 ia64 [ia64] Epilog counter (ar.ec) needs to be saved and re o ia64/156900 ia64 ia64 -current r221488 panic if kern.maxssiz=536748033 o ia64/147501 ia64 [ia64] options PREEMPTION causes instability 3 problems total. From owner-freebsd-ia64@FreeBSD.ORG Fri Jul 15 15:49:25 2011 Return-Path: Delivered-To: ia64@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 01A61106566B; Fri, 15 Jul 2011 15:49:25 +0000 (UTC) (envelope-from tinderbox@freebsd.org) Received: from freebsd-current.sentex.ca (freebsd-current.sentex.ca [64.7.128.98]) by mx1.freebsd.org (Postfix) with ESMTP id ACA088FC08; Fri, 15 Jul 2011 15:49:24 +0000 (UTC) Received: from freebsd-current.sentex.ca (localhost [127.0.0.1]) by freebsd-current.sentex.ca (8.14.4/8.14.4) with ESMTP id p6FFnNFK075721; Fri, 15 Jul 2011 11:49:23 -0400 (EDT) (envelope-from tinderbox@freebsd.org) Received: (from tinderbox@localhost) by freebsd-current.sentex.ca (8.14.4/8.14.4/Submit) id p6FFnNhW075677; Fri, 15 Jul 2011 15:49:23 GMT (envelope-from tinderbox@freebsd.org) Date: Fri, 15 Jul 2011 15:49:23 GMT Message-Id: <201107151549.p6FFnNhW075677@freebsd-current.sentex.ca> X-Authentication-Warning: freebsd-current.sentex.ca: tinderbox set sender to FreeBSD Tinderbox using -f Sender: FreeBSD Tinderbox From: FreeBSD Tinderbox To: FreeBSD Tinderbox , , Precedence: bulk Cc: Subject: [head tinderbox] failure on ia64/ia64 X-BeenThere: freebsd-ia64@freebsd.org X-Mailman-Version: 2.1.5 List-Id: Porting FreeBSD to the IA-64 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 15 Jul 2011 15:49:25 -0000 TB --- 2011-07-15 14:29:56 - tinderbox 2.7 running on freebsd-current.sentex.ca TB --- 2011-07-15 14:29:56 - starting HEAD tinderbox run for ia64/ia64 TB --- 2011-07-15 14:29:56 - cleaning the object tree TB --- 2011-07-15 14:30:18 - cvsupping the source tree TB --- 2011-07-15 14:30:18 - /usr/bin/csup -z -r 3 -g -L 1 -h cvsup.sentex.ca /tinderbox/HEAD/ia64/ia64/supfile TB --- 2011-07-15 14:30:30 - building world TB --- 2011-07-15 14:30:30 - MAKEOBJDIRPREFIX=/obj TB --- 2011-07-15 14:30:30 - PATH=/usr/bin:/usr/sbin:/bin:/sbin TB --- 2011-07-15 14:30:30 - TARGET=ia64 TB --- 2011-07-15 14:30:30 - TARGET_ARCH=ia64 TB --- 2011-07-15 14:30:30 - TZ=UTC TB --- 2011-07-15 14:30:30 - __MAKE_CONF=/dev/null TB --- 2011-07-15 14:30:30 - cd /src TB --- 2011-07-15 14:30:30 - /usr/bin/make -B buildworld >>> World build started on Fri Jul 15 14:30:31 UTC 2011 >>> Rebuilding the temporary build tree >>> stage 1.1: legacy release compatibility shims >>> stage 1.2: bootstrap tools >>> stage 2.1: cleaning up the object tree >>> stage 2.2: rebuilding the object tree >>> stage 2.3: build tools >>> stage 3: cross tools >>> stage 4.1: building includes >>> stage 4.2: building libraries >>> stage 4.3: make dependencies >>> stage 4.4: building everything [...] cc -O2 -pipe -DACPI_ASL_COMPILER -I. -I/src/usr.sbin/acpi/iasl/../../../sys -std=gnu99 -Wsystem-headers -Werror -Wall -Wno-format-y2k -Wno-uninitialized -Wno-pointer-sign -c /src/usr.sbin/acpi/iasl/../../../sys/contrib/dev/acpica/compiler/asltransform.c cc -O2 -pipe -DACPI_ASL_COMPILER -I. -I/src/usr.sbin/acpi/iasl/../../../sys -std=gnu99 -Wsystem-headers -Werror -Wall -Wno-format-y2k -Wno-uninitialized -Wno-pointer-sign -c /src/usr.sbin/acpi/iasl/../../../sys/contrib/dev/acpica/compiler/asltree.c cc -O2 -pipe -DACPI_ASL_COMPILER -I. -I/src/usr.sbin/acpi/iasl/../../../sys -std=gnu99 -Wsystem-headers -Werror -Wall -Wno-format-y2k -Wno-uninitialized -Wno-pointer-sign -c /src/usr.sbin/acpi/iasl/../../../sys/contrib/dev/acpica/compiler/aslutils.c cc -O2 -pipe -DACPI_ASL_COMPILER -I. -I/src/usr.sbin/acpi/iasl/../../../sys -std=gnu99 -Wsystem-headers -Werror -Wall -Wno-format-y2k -Wno-uninitialized -Wno-pointer-sign -c /src/usr.sbin/acpi/iasl/../../../sys/contrib/dev/acpica/compiler/asluuid.c cc -O2 -pipe -DACPI_ASL_COMPILER -I. -I/src/usr.sbin/acpi/iasl/../../../sys -std=gnu99 -Wsystem-headers -Werror -Wall -Wno-format-y2k -Wno-uninitialized -Wno-pointer-sign -c /src/usr.sbin/acpi/iasl/../../../sys/contrib/dev/acpica/compiler/aslwalks.c cc -O2 -pipe -DACPI_ASL_COMPILER -I. -I/src/usr.sbin/acpi/iasl/../../../sys -std=gnu99 -Wsystem-headers -Werror -Wall -Wno-format-y2k -Wno-uninitialized -Wno-pointer-sign -c /src/usr.sbin/acpi/iasl/../../../sys/contrib/dev/acpica/compiler/dtcompile.c mv -f dtparserparse.h dtparser.y.h mv: rename dtparserparse.h to dtparser.y.h: No such file or directory *** Error code 1 Stop in /src/usr.sbin/acpi/iasl. *** Error code 1 Stop in /src/usr.sbin/acpi. *** Error code 1 Stop in /src/usr.sbin. *** Error code 1 Stop in /src. *** Error code 1 Stop in /src. *** Error code 1 Stop in /src. TB --- 2011-07-15 15:49:22 - WARNING: /usr/bin/make returned exit code 1 TB --- 2011-07-15 15:49:23 - ERROR: failed to build world TB --- 2011-07-15 15:49:23 - 3742.35 user 737.04 system 4766.27 real http://tinderbox.freebsd.org/tinderbox-head-HEAD-ia64-ia64.full From owner-freebsd-ia64@FreeBSD.ORG Fri Jul 15 20:19:13 2011 Return-Path: Delivered-To: ia64@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C732D106564A; Fri, 15 Jul 2011 20:19:13 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from cyrus.watson.org (cyrus.watson.org [65.122.17.42]) by mx1.freebsd.org (Postfix) with ESMTP id A1A468FC1C; Fri, 15 Jul 2011 20:19:13 +0000 (UTC) Received: from bigwig.baldwin.cx (66.111.2.69.static.nyinternet.net [66.111.2.69]) by cyrus.watson.org (Postfix) with ESMTPSA id 3CE6246B0D; Fri, 15 Jul 2011 16:19:13 -0400 (EDT) Received: from jhbbsd.localnet (unknown [209.249.190.124]) by bigwig.baldwin.cx (Postfix) with ESMTPSA id C3CB38A02C; Fri, 15 Jul 2011 16:19:12 -0400 (EDT) From: John Baldwin To: ia64@freebsd.org Date: Fri, 15 Jul 2011 16:19:11 -0400 User-Agent: KMail/1.13.5 (FreeBSD/8.2-CBSD-20110617; KDE/4.5.5; amd64; ; ) MIME-Version: 1.0 Content-Type: Text/Plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Message-Id: <201107151619.11972.jhb@freebsd.org> X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.2.6 (bigwig.baldwin.cx); Fri, 15 Jul 2011 16:19:12 -0400 (EDT) Cc: Marcel Moolenaar Subject: [PATCH] Add support for NEW_PCIB to ia64 X-BeenThere: freebsd-ia64@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the IA-64 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 15 Jul 2011 20:19:13 -0000 Since ia64 uses ACPI, I believe that all it needs is a bus_adjust_resource() method in its nexus driver to support the new PCI-PCI bridge driver (and the other patches I posted to current@ recently in regards to Host-PCI bridge driver decoding ranges). Can someone try this patch and boot with a kernel with 'options NEW_PCIB' to check for any regressions? --- //depot/vendor/freebsd/src/sys/ia64/ia64/nexus.c 2011-04-29 18:45:22.000000000 0000 +++ //depot/projects/pci/sys/ia64/ia64/nexus.c 2011-07-15 18:08:28.000000000 0000 @@ -86,6 +86,8 @@ int unit); static struct resource *nexus_alloc_resource(device_t, device_t, int, int *, u_long, u_long, u_long, u_int); +static int nexus_adjust_resource(device_t, device_t, int, struct resource *, + u_long, u_long); static int nexus_activate_resource(device_t, device_t, int, int, struct resource *); static int nexus_deactivate_resource(device_t, device_t, int, int, @@ -122,6 +124,7 @@ DEVMETHOD(bus_print_child, nexus_print_child), DEVMETHOD(bus_add_child, nexus_add_child), DEVMETHOD(bus_alloc_resource, nexus_alloc_resource), + DEVMETHOD(bus_adjust_resource, nexus_adjust_resource), DEVMETHOD(bus_release_resource, nexus_release_resource), DEVMETHOD(bus_activate_resource, nexus_activate_resource), DEVMETHOD(bus_deactivate_resource, nexus_deactivate_resource), @@ -238,6 +241,20 @@ return(child); } +static struct rman * +nexus_rman(int type) +{ + switch (type) { + case SYS_RES_IRQ: + return (&irq_rman); + case SYS_RES_IOPORT: + return (&port_rman); + case SYS_RES_MEMORY: + return (&mem_rman); + default: + return (NULL); + } +} /* * Allocate a resource on behalf of child. NB: child is usually going to be a @@ -271,24 +288,10 @@ } flags &= ~RF_ACTIVE; + rm = nexus_rman(type); + if (rm == NULL) + return (NULL); - switch (type) { - case SYS_RES_IRQ: - rm = &irq_rman; - break; - - case SYS_RES_IOPORT: - rm = &port_rman; - break; - - case SYS_RES_MEMORY: - rm = &mem_rman; - break; - - default: - return 0; - } - rv = rman_reserve_resource(rm, start, end, count, flags, child); if (rv == 0) return 0; @@ -305,6 +308,20 @@ } static int +nexus_adjust_resource(device_t bus, device_t child, int type, + struct resource *r, u_long start, u_long end) +{ + struct rman *rm; + + rm = nexus_rman(type); + if (rm == NULL) + return (ENXIO); + if (!rman_is_region_manager(r, rm)) + return (EINVAL); + return (rman_adjust_resource(r, start, end)); +} + +static int nexus_activate_resource(device_t bus, device_t child, int type, int rid, struct resource *r) { -- John Baldwin From owner-freebsd-ia64@FreeBSD.ORG Sat Jul 16 15:43:01 2011 Return-Path: Delivered-To: ia64@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A5D89106566C for ; Sat, 16 Jul 2011 15:43:01 +0000 (UTC) (envelope-from marcel@xcllnt.net) Received: from mail.xcllnt.net (mail.xcllnt.net [70.36.220.4]) by mx1.freebsd.org (Postfix) with ESMTP id 5F9FC8FC0C for ; Sat, 16 Jul 2011 15:43:01 +0000 (UTC) Received: from dhcp-192-168-2-22.wifi.xcllnt.net (atm.xcllnt.net [70.36.220.6]) (authenticated bits=0) by mail.xcllnt.net (8.14.5/8.14.5) with ESMTP id p6GFgtaE043696 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NO); Sat, 16 Jul 2011 08:43:00 -0700 (PDT) (envelope-from marcel@xcllnt.net) Mime-Version: 1.0 (Apple Message framework v1084) Content-Type: text/plain; charset=us-ascii From: Marcel Moolenaar In-Reply-To: <201107151619.11972.jhb@freebsd.org> Date: Sat, 16 Jul 2011 08:42:55 -0700 Content-Transfer-Encoding: quoted-printable Message-Id: <31DB304D-C3A1-44AC-8353-211C7BFE5215@xcllnt.net> References: <201107151619.11972.jhb@freebsd.org> To: John Baldwin X-Mailer: Apple Mail (2.1084) Cc: ia64@FreeBSD.org Subject: Re: [PATCH] Add support for NEW_PCIB to ia64 X-BeenThere: freebsd-ia64@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the IA-64 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 16 Jul 2011 15:43:01 -0000 On Jul 15, 2011, at 1:19 PM, John Baldwin wrote: > Since ia64 uses ACPI, I believe that all it needs is a = bus_adjust_resource() > method in its nexus driver to support the new PCI-PCI bridge driver = (and the > other patches I posted to current@ recently in regards to Host-PCI = bridge > driver decoding ranges). Can someone try this patch and boot with a = kernel > with 'options NEW_PCIB' to check for any regressions? Looks good. However, (see below) no devices are attached to the only real PCI-PCI bridges in this system (the PCIe root ports). Let me know if that's ok or whether it helps to use my machines so that I can plug something in a slot (I don't have physical access to this one without annoying Sean :-) OK boot -v Entering /boot/kernel/kernel at 0x9ffc000000010500... : FreeBSD 9.0-CURRENT #7 r224075M: Sat Jul 16 15:16:13 UTC 2011 marcel@eris.freebsd.org:/usr/obj/tank/usr/src/sys/ERIS ia64 : CPU: Montvale (1666 Mhz Itanium 2) : real memory =3D 17106690048 (16314 MB) : FreeBSD/SMP: Multiprocessor System Detected: 8 CPUs : acpi0: on motherboard : pcib0: on acpi0 pcib0: decoding 3 range 0xff5e2000-0xff5e2007 pcib0: decoding 4 range 0-0xffff pcib0: decoding 3 range 0xa0000-0xfffff pcib0: decoding 3 range 0x80000000-0x8fffffff pcib0: decoding 3 range 0x80004000000-0x800ffffffff pci0: on pcib0 pci0: domain=3D0, physical bus=3D0 found-> vendor=3D0x103c, dev=3D0x1303, revid=3D0x00 domain=3D0, bus=3D0, slot=3D1, func=3D0 class=3Dff-00-00, hdrtype=3D0x00, mfdev=3D1 cmdreg=3D0x0144, statreg=3D0x0290, cachelnsz=3D32 (dwords) lattimer=3D0x80 (3840 ns), mingnt=3D0x00 (0 ns), maxlat=3D0x01 = (250 ns) intpin=3Da, irq=3D0 powerspec 2 supports D0 D3 current D0 MSI supports 4 messages, 64 bit pcib0: matched entry for 0.1.INTA pcib0: slot 1 INTA hardwired to IRQ 16 found-> vendor=3D0x103c, dev=3D0x1302, revid=3D0x00 domain=3D0, bus=3D0, slot=3D1, func=3D1 class=3D07-80-00, hdrtype=3D0x00, mfdev=3D1 cmdreg=3D0x0146, statreg=3D0x0290, cachelnsz=3D32 (dwords) lattimer=3D0x80 (3840 ns), mingnt=3D0x00 (0 ns), maxlat=3D0x01 = (250 ns) intpin=3Da, irq=3D0 powerspec 2 supports D0 D3 current D0 MSI supports 8 messages, 64 bit map[14]: type Memory, range 64, base 0x88034000, size 12, = enabled pcib0: allocated type 3 (0x88034000-0x88034fff) for rid 14 of pci0:0:1:1 map[1c]: type Prefetchable Memory, range 64, base 0x80080000000, = size 17, enabled pcib0: allocated type 3 (0x80080000000-0x8008001ffff) for rid 1c of = pci0:0:1:1 pcib0: matched entry for 0.1.INTA pcib0: slot 1 INTA hardwired to IRQ 16 found-> vendor=3D0x103c, dev=3D0x1048, revid=3D0x00 domain=3D0, bus=3D0, slot=3D1, func=3D2 class=3D07-00-02, hdrtype=3D0x00, mfdev=3D1 cmdreg=3D0x0146, statreg=3D0x0290, cachelnsz=3D32 (dwords) lattimer=3D0x80 (3840 ns), mingnt=3D0x00 (0 ns), maxlat=3D0x01 = (250 ns) intpin=3Da, irq=3D0 powerspec 2 supports D0 D3 current D0 MSI supports 4 messages, 64 bit map[14]: type Memory, range 64, base 0x88033000, size 12, = enabled pcib0: allocated type 3 (0x88033000-0x88033fff) for rid 14 of pci0:0:1:2 pcib0: matched entry for 0.1.INTA pcib0: slot 1 INTA hardwired to IRQ 16 found-> vendor=3D0x1033, dev=3D0x0035, revid=3D0x43 domain=3D0, bus=3D0, slot=3D2, func=3D0 class=3D0c-03-10, hdrtype=3D0x00, mfdev=3D1 cmdreg=3D0x0146, statreg=3D0x0210, cachelnsz=3D32 (dwords) lattimer=3D0x80 (3840 ns), mingnt=3D0x01 (250 ns), maxlat=3D0x2a = (10500 ns) intpin=3Da, irq=3D0 powerspec 2 supports D0 D1 D2 D3 current D0 map[10]: type Memory, range 32, base 0x88032000, size 12, = enabled pcib0: allocated type 3 (0x88032000-0x88032fff) for rid 10 of pci0:0:2:0 pcib0: matched entry for 0.2.INTA pcib0: slot 2 INTA hardwired to IRQ 17 found-> vendor=3D0x1033, dev=3D0x0035, revid=3D0x43 domain=3D0, bus=3D0, slot=3D2, func=3D1 class=3D0c-03-10, hdrtype=3D0x00, mfdev=3D0 cmdreg=3D0x0146, statreg=3D0x0210, cachelnsz=3D32 (dwords) lattimer=3D0x80 (3840 ns), mingnt=3D0x01 (250 ns), maxlat=3D0x2a = (10500 ns) intpin=3Db, irq=3D0 powerspec 2 supports D0 D1 D2 D3 current D0 map[10]: type Memory, range 32, base 0x88031000, size 12, = enabled pcib0: allocated type 3 (0x88031000-0x88031fff) for rid 10 of pci0:0:2:1 pcib0: matched entry for 0.2.INTB pcib0: slot 2 INTB hardwired to IRQ 18 found-> vendor=3D0x1033, dev=3D0x00e0, revid=3D0x04 domain=3D0, bus=3D0, slot=3D2, func=3D2 class=3D0c-03-20, hdrtype=3D0x00, mfdev=3D0 cmdreg=3D0x0146, statreg=3D0x0210, cachelnsz=3D32 (dwords) lattimer=3D0x80 (3840 ns), mingnt=3D0x10 (4000 ns), maxlat=3D0x22 = (8500 ns) intpin=3Dc, irq=3D0 powerspec 2 supports D0 D1 D2 D3 current D0 map[10]: type Memory, range 32, base 0x88030000, size 8, = enabled pcib0: allocated type 3 (0x88030000-0x880300ff) for rid 10 of pci0:0:2:2 pcib0: matched entry for 0.2.INTC pcib0: slot 2 INTC hardwired to IRQ 19 found-> vendor=3D0x1002, dev=3D0x515e, revid=3D0x02 domain=3D0, bus=3D0, slot=3D3, func=3D0 class=3D03-00-00, hdrtype=3D0x00, mfdev=3D0 cmdreg=3D0x0187, statreg=3D0x0290, cachelnsz=3D32 (dwords) lattimer=3D0x80 (3840 ns), mingnt=3D0x08 (2000 ns), maxlat=3D0x00 = (0 ns) intpin=3Da, irq=3D255 powerspec 2 supports D0 D1 D2 D3 current D0 map[10]: type Prefetchable Memory, range 32, base 0x80000000, = size 27, enabled pcib0: allocated type 3 (0x80000000-0x87ffffff) for rid 10 of pci0:0:3:0 map[14]: type I/O Port, range 32, base 0x1000, size 8, enabled pcib0: allocated type 4 (0x1000-0x10ff) for rid 14 of pci0:0:3:0 map[18]: type Memory, range 32, base 0x88020000, size 16, = enabled pcib0: allocated type 3 (0x88020000-0x8802ffff) for rid 18 of pci0:0:3:0 : pcib1: on acpi0 pcib1: decoding 4 range 0-0xffff pcib1: decoding 3 range 0xa0000000-0xafffffff pcib1: decoding 3 range 0x80204000000-0x802ffffffff pci1: on pcib1 pci1: domain=3D0, physical bus=3D1 found-> vendor=3D0x1000, dev=3D0x0054, revid=3D0x01 domain=3D0, bus=3D1, slot=3D1, func=3D0 class=3D01-00-00, hdrtype=3D0x00, mfdev=3D0 cmdreg=3D0x0147, statreg=3D0x0230, cachelnsz=3D32 (dwords) lattimer=3D0x40 (1920 ns), mingnt=3D0x40 (16000 ns), maxlat=3D0x0a= (2500 ns) intpin=3Da, irq=3D0 powerspec 2 supports D0 D1 D2 D3 current D0 MSI supports 1 message, 64 bit MSI-X supports 1 message in map 0x14 map[10]: type I/O Port, range 32, base 0x1000, size 8, enabled map[14]: type Memory, range 64, base 0xa0470000, size 14, = enabled pcib1: allocated type 3 (0xa0470000-0xa0473fff) for rid 14 of pci0:1:1:0 map[1c]: type Memory, range 64, base 0xa0460000, size 16, = enabled pcib1: allocated type 3 (0xa0460000-0xa046ffff) for rid 1c of pci0:1:1:0 pcib1: matched entry for 1.1.INTA pcib1: slot 1 INTA hardwired to IRQ 27 found-> vendor=3D0x14e4, dev=3D0x1648, revid=3D0x10 domain=3D0, bus=3D1, slot=3D2, func=3D0 class=3D02-00-00, hdrtype=3D0x00, mfdev=3D1 cmdreg=3D0x0146, statreg=3D0x02b0, cachelnsz=3D32 (dwords) lattimer=3D0x40 (1920 ns), mingnt=3D0x40 (16000 ns), maxlat=3D0x00= (0 ns) intpin=3Da, irq=3D29 powerspec 2 supports D0 D3 current D0 MSI supports 8 messages, 64 bit map[10]: type Memory, range 64, base 0xa0450000, size 16, = enabled pcib1: allocated type 3 (0xa0450000-0xa045ffff) for rid 10 of pci0:1:2:0 pcib1: matched entry for 1.2.INTA pcib1: slot 2 INTA hardwired to IRQ 29 found-> vendor=3D0x14e4, dev=3D0x1648, revid=3D0x10 domain=3D0, bus=3D1, slot=3D2, func=3D1 class=3D02-00-00, hdrtype=3D0x00, mfdev=3D1 cmdreg=3D0x0146, statreg=3D0x02b0, cachelnsz=3D32 (dwords) lattimer=3D0x40 (1920 ns), mingnt=3D0x40 (16000 ns), maxlat=3D0x00= (0 ns) intpin=3Db, irq=3D30 powerspec 2 supports D0 D3 current D0 MSI supports 8 messages, 64 bit map[10]: type Memory, range 64, base 0xa0440000, size 16, = enabled pcib1: allocated type 3 (0xa0440000-0xa044ffff) for rid 10 of pci0:1:2:1 pcib1: matched entry for 1.2.INTB pcib1: slot 2 INTB hardwired to IRQ 30 mpt0: mem = 0xa0470000-0xa0473fff,0xa0460000-0xa046ffff irq 27 at device 1.0 on pci1 pcib1: allocated type 4 (0-0xff) for rid 10 of mpt0 mpt0: Lazy allocation of 0x100 bytes rid 0x10 type 4 at 0 : pcib2: on acpi0 pcib2: decoding 4 range 0-0xffff pcib2: decoding 3 range 0xb0000000-0xbfffffff pcib2: decoding 3 range 0x80304000000-0x803ffffffff pci2: on pcib2 pci2: domain=3D0, physical bus=3D2 found-> vendor=3D0x103c, dev=3D0x403b, revid=3D0x00 domain=3D0, bus=3D2, slot=3D0, func=3D0 class=3D06-04-00, hdrtype=3D0x01, mfdev=3D0 cmdreg=3D0x0147, statreg=3D0x0010, cachelnsz=3D32 (dwords) lattimer=3D0x00 (0 ns), mingnt=3D0x03 (750 ns), maxlat=3D0x00 (0 = ns) intpin=3Da, irq=3D0 powerspec 3 supports D0 D3 current D0 MSI supports 2 messages, 64 bit pcib2: matched entry for 2.0.INTA pcib2: slot 0 INTA hardwired to IRQ 38 pcib3: irq 38 at device 0.0 on pci2 pcib3: failed to allocate initial I/O port window: 0x1000-0xffff pcib2: allocated type 3 (0xb0000000-0xbfffffff) for rid 20 of pcib3 pcib2: allocated type 3 (0x80380000000-0x803ffffffff) for rid 24 of = pcib3 pcib3: domain 0 pcib3: secondary bus 3 pcib3: subordinate bus 3 pcib3: memory decode 0xb0000000-0xbfffffff pcib3: prefetched decode 0x80380000000-0x803ffffffff pcib3: could not get PCI interrupt routing table for = \_SB_.SBA0.L003.RP00 - AE_NOT_FOUND pci3: on pcib3 pci3: domain=3D0, physical bus=3D3 pcib4: on acpi0 pcib4: decoding 4 range 0-0xffff pcib4: decoding 3 range 0xe0000000-0xefffffff pcib4: decoding 3 range 0x80604000000-0x806ffffffff pci4: on pcib4 pci4: domain=3D0, physical bus=3D4 pcib5: on acpi0 pcib5: decoding 4 range 0-0xffff pcib5: decoding 3 range 0xf0000000-0xfdffffff pcib5: decoding 3 range 0x80704000000-0x807ffffffff pci5: on pcib5 pci5: domain=3D0, physical bus=3D5 found-> vendor=3D0x103c, dev=3D0x403b, revid=3D0x00 domain=3D0, bus=3D5, slot=3D0, func=3D0 class=3D06-04-00, hdrtype=3D0x01, mfdev=3D0 cmdreg=3D0x0147, statreg=3D0x0010, cachelnsz=3D32 (dwords) lattimer=3D0x00 (0 ns), mingnt=3D0x03 (750 ns), maxlat=3D0x00 (0 = ns) intpin=3Da, irq=3D0 powerspec 3 supports D0 D3 current D0 MSI supports 2 messages, 64 bit pcib5: matched entry for 5.0.INTA pcib5: slot 0 INTA hardwired to IRQ 56 pcib6: irq 56 at device 0.0 on pci5 pcib6: failed to allocate initial I/O port window: 0x1000-0xffff pcib5: allocated type 3 (0xf0000000-0xfdffffff) for rid 20 of pcib6 pcib5: allocated type 3 (0x80780000000-0x807ffffffff) for rid 24 of = pcib6 pcib6: domain 0 pcib6: secondary bus 6 pcib6: subordinate bus 6 pcib6: memory decode 0xf0000000-0xfdffffff pcib6: prefetched decode 0x80780000000-0x807ffffffff pcib6: could not get PCI interrupt routing table for = \_SB_.SBA0.L007.RP00 - AE_NOT_FOUND pci6: on pcib6 pci6: domain=3D0, physical bus=3D6 : *snip* : Sat Jul 16 15:22:13 UTC 2011 FreeBSD/ia64 (eris.freebsd.org) (ttyu0) login:=20 eris# pciconf -lv *snip* pcib3@pci0:2:0:0: class=3D0x060400 card=3D0x00000000 = chip=3D0x403b103c rev=3D0x00 hdr=3D0x01 vendor =3D 'Hewlett-Packard Company' device =3D 'PCIe Root Port' class =3D bridge subclass =3D PCI-PCI pcib6@pci0:5:0:0: class=3D0x060400 card=3D0x00000000 = chip=3D0x403b103c rev=3D0x00 hdr=3D0x01 vendor =3D 'Hewlett-Packard Company' device =3D 'PCIe Root Port' class =3D bridge subclass =3D PCI-PCI FYI, --=20 Marcel Moolenaar marcel@xcllnt.net From owner-freebsd-ia64@FreeBSD.ORG Sat Jul 16 16:51:37 2011 Return-Path: Delivered-To: freebsd-ia64@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4F850106564A for ; Sat, 16 Jul 2011 16:51:37 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from cyrus.watson.org (cyrus.watson.org [65.122.17.42]) by mx1.freebsd.org (Postfix) with ESMTP id 249258FC0C for ; Sat, 16 Jul 2011 16:51:37 +0000 (UTC) Received: from bigwig.baldwin.cx (66.111.2.69.static.nyinternet.net [66.111.2.69]) by cyrus.watson.org (Postfix) with ESMTPSA id 9CC9046B2A; Sat, 16 Jul 2011 12:51:36 -0400 (EDT) Received: from kavik.baldwin.cx (c-68-36-150-83.hsd1.nj.comcast.net [68.36.150.83]) by bigwig.baldwin.cx (Postfix) with ESMTPSA id 32ABF8A02E; Sat, 16 Jul 2011 12:51:36 -0400 (EDT) From: John Baldwin To: freebsd-ia64@freebsd.org Date: Sat, 16 Jul 2011 12:51:33 -0400 User-Agent: KMail/1.13.5 (FreeBSD/8.2-RELEASE-p2; KDE/4.5.5; i386; ; ) References: <201107151619.11972.jhb@freebsd.org> <31DB304D-C3A1-44AC-8353-211C7BFE5215@xcllnt.net> In-Reply-To: <31DB304D-C3A1-44AC-8353-211C7BFE5215@xcllnt.net> MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201107161251.33808.jhb@freebsd.org> X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.2.6 (bigwig.baldwin.cx); Sat, 16 Jul 2011 12:51:36 -0400 (EDT) Cc: Subject: Re: [PATCH] Add support for NEW_PCIB to ia64 X-BeenThere: freebsd-ia64@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the IA-64 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 16 Jul 2011 16:51:37 -0000 On Saturday, July 16, 2011 11:42:55 am Marcel Moolenaar wrote: > On Jul 15, 2011, at 1:19 PM, John Baldwin wrote: > > Since ia64 uses ACPI, I believe that all it needs is a > > bus_adjust_resource() method in its nexus driver to support the new > > PCI-PCI bridge driver (and the other patches I posted to current@ > > recently in regards to Host-PCI bridge driver decoding ranges). Can > > someone try this patch and boot with a kernel with 'options NEW_PCIB' to > > check for any regressions? > > Looks good. However, (see below) no devices are attached to the only > real PCI-PCI bridges in this system (the PCIe root ports). Let me know > if that's ok or whether it helps to use my machines so that I can plug > something in a slot (I don't have physical access to this one without > annoying Sean :-) Hmm, a thorough test requires a device behind a PCI-PCI bridge. :-/ -- John Baldwin From owner-freebsd-ia64@FreeBSD.ORG Sat Jul 16 23:22:31 2011 Return-Path: Delivered-To: freebsd-ia64@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7EE3B106564A; Sat, 16 Jul 2011 23:22:31 +0000 (UTC) (envelope-from marcel@xcllnt.net) Received: from mail.xcllnt.net (mail.xcllnt.net [70.36.220.4]) by mx1.freebsd.org (Postfix) with ESMTP id 4EB718FC15; Sat, 16 Jul 2011 23:22:30 +0000 (UTC) Received: from dhcp-192-168-2-22.wifi.xcllnt.net (atm.xcllnt.net [70.36.220.6]) (authenticated bits=0) by mail.xcllnt.net (8.14.5/8.14.5) with ESMTP id p6GNMPgV045055 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NO); Sat, 16 Jul 2011 16:22:30 -0700 (PDT) (envelope-from marcel@xcllnt.net) Mime-Version: 1.0 (Apple Message framework v1084) Content-Type: text/plain; charset=us-ascii From: Marcel Moolenaar In-Reply-To: <201107161251.33808.jhb@freebsd.org> Date: Sat, 16 Jul 2011 16:22:24 -0700 Content-Transfer-Encoding: 7bit Message-Id: <4536024D-2197-4248-B493-43A0BB247572@xcllnt.net> References: <201107151619.11972.jhb@freebsd.org> <31DB304D-C3A1-44AC-8353-211C7BFE5215@xcllnt.net> <201107161251.33808.jhb@freebsd.org> To: John Baldwin X-Mailer: Apple Mail (2.1084) Cc: freebsd-ia64@FreeBSD.org Subject: Re: [PATCH] Add support for NEW_PCIB to ia64 X-BeenThere: freebsd-ia64@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the IA-64 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 16 Jul 2011 23:22:31 -0000 On Jul 16, 2011, at 9:51 AM, John Baldwin wrote: > On Saturday, July 16, 2011 11:42:55 am Marcel Moolenaar wrote: >> On Jul 15, 2011, at 1:19 PM, John Baldwin wrote: >>> Since ia64 uses ACPI, I believe that all it needs is a >>> bus_adjust_resource() method in its nexus driver to support the new >>> PCI-PCI bridge driver (and the other patches I posted to current@ >>> recently in regards to Host-PCI bridge driver decoding ranges). Can >>> someone try this patch and boot with a kernel with 'options NEW_PCIB' to >>> check for any regressions? >> >> Looks good. However, (see below) no devices are attached to the only >> real PCI-PCI bridges in this system (the PCIe root ports). Let me know >> if that's ok or whether it helps to use my machines so that I can plug >> something in a slot (I don't have physical access to this one without >> annoying Sean :-) > > Hmm, a thorough test requires a device behind a PCI-PCI bridge. :-/ As it happens, I don't have machines with real PCI-PCI bridges; only PCI host controllers. Since nothing broke that I can test, I can not see any regressions. Unless someone else can test real PCI-PCI bridges with an actual device on the subordinate bus(ses), I think we can change ia64 to NEW_PCIB. FYI, -- Marcel Moolenaar marcel@xcllnt.net