From owner-freebsd-ppc@FreeBSD.ORG Mon Feb 1 06:38:19 2010 Return-Path: Delivered-To: freebsd-ppc@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 61215106566C; Mon, 1 Feb 2010 06:38:19 +0000 (UTC) (envelope-from rajatjain@juniper.net) Received: from exprod7og125.obsmtp.com (exprod7og125.obsmtp.com [64.18.2.28]) by mx1.freebsd.org (Postfix) with ESMTP id C05238FC13; Mon, 1 Feb 2010 06:38:18 +0000 (UTC) Received: from source ([66.129.224.36]) (using TLSv1) by exprod7ob125.postini.com ([64.18.6.12]) with SMTP ID DSNKS2Z22lu7BcDKgCNj5sQohlOJ57a+0J/F@postini.com; Sun, 31 Jan 2010 22:38:18 PST Received: from gaugeboson.jnpr.net (10.209.194.17) by P-EMHUB01-HQ.jnpr.net (172.24.192.35) with Microsoft SMTP Server id 8.1.393.1; Sun, 31 Jan 2010 22:26:04 -0800 Received: from emailbng3.jnpr.net ([10.209.194.27]) by gaugeboson.jnpr.net with Microsoft SMTPSVC(6.0.3790.3959); Mon, 1 Feb 2010 11:56:01 +0530 X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-Class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Date: Mon, 1 Feb 2010 11:56:00 +0530 Message-ID: <8506939B503B404A84BBB12293FC45F60681AA1B@emailbng3.jnpr.net> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: About hot-plugging support in FreeBSD Thread-Index: AcqjB2wYr4V2eolETBattuBEzcaY7Q== From: Rajat Jain To: X-OriginalArrivalTime: 01 Feb 2010 06:26:01.0658 (UTC) FILETIME=[6CA8C9A0:01CAA307] Cc: freebsd-ia32@freebsd.org, freebsd-ppc@freebsd.org Subject: About hot-plugging support in FreeBSD X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the PowerPC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 01 Feb 2010 06:38:19 -0000 Hi, I'm a newbie to the FreeBSD and have come from Linux background, hence please pardon me if this is not the right list for my questions, and please point me to the correct list:=20 1) Does FreeBSD support PCI-Express hot-plugging? I could not even find any instances in the source code that suggest that even PCI hot-plugging is supported. Is it supported? Can you please point me to appropriate references in the code? >From the links below it seems, that the PCI hot-plug is definitely in the roadmap, but it seems that it is a distant target? http://wiki.freebsd.org/PCIHotplug http://www.freebsd.org/projects/ideas/ideas.html#p-pcihotplug Is work already being done on this? Is some limited support available? 2) How and WHERE in the code is the "PCI Enumeration" and the "PCI resource allocation" done?: 2a) Does FreeBSD does its own PCI resource allocation / PCI bus numbering, or does it simply use the one already done by the BIOS / bootloader? 2b) In case it does its own PCI resource management, is the PCI Enumeration done only at the boot time, or devices can be detected and added later at run-time as well? [Please note that for adding at run time, we'll need certain PCI resource pre-reserved in anticipation of any new devices] I'd appreciate if you could provide me any pointers... Thanks, Rajat From owner-freebsd-ppc@FreeBSD.ORG Mon Feb 1 11:07:03 2010 Return-Path: Delivered-To: freebsd-ppc@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id ADD991065693 for ; Mon, 1 Feb 2010 11:07:03 +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 9BDF78FC23 for ; Mon, 1 Feb 2010 11:07:03 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id o11B7332062886 for ; Mon, 1 Feb 2010 11:07:03 GMT (envelope-from owner-bugmaster@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id o11B73BL062884 for freebsd-ppc@FreeBSD.org; Mon, 1 Feb 2010 11:07:03 GMT (envelope-from owner-bugmaster@FreeBSD.org) Date: Mon, 1 Feb 2010 11:07:03 GMT Message-Id: <201002011107.o11B73BL062884@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: gnats set sender to owner-bugmaster@FreeBSD.org using -f From: FreeBSD bugmaster To: freebsd-ppc@FreeBSD.org Cc: Subject: Current problem reports assigned to freebsd-ppc@FreeBSD.org X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the PowerPC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 01 Feb 2010 11:07:03 -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 power/140241 ppc [kernel] [patch] Linker set problems on PowerPC EABI o power/135576 ppc gdb cannot debug threaded programs on ppc o power/133503 ppc [sound] Sound stutter after switching ttys o power/133383 ppc firefox thr_kill crash with heavy vm load o power/133382 ppc [install] Installer gets signal 11 o power/131548 ppc ofw_syscons no longer supports 32-bit framebuffer a power/121407 ppc [panic] Won't boot up; strange error message. o power/111296 ppc [kernel] [patch] [request] Support IMISS, DLMISS an DS o power/93203 ppc FreeBSD PPC Can't Write to Partitions. 9 problems total. From owner-freebsd-ppc@FreeBSD.ORG Mon Feb 1 14:49:53 2010 Return-Path: Delivered-To: freebsd-ppc@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 376271065697; Mon, 1 Feb 2010 14:49:53 +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 0929E8FC14; Mon, 1 Feb 2010 14:49:53 +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 B812F46B2C; Mon, 1 Feb 2010 09:49:52 -0500 (EST) Received: from jhbbsd.localnet (smtp.hudson-trading.com [209.249.190.9]) by bigwig.baldwin.cx (Postfix) with ESMTPA id E643A8A021; Mon, 1 Feb 2010 09:49:51 -0500 (EST) From: John Baldwin To: freebsd-ia32@freebsd.org Date: Mon, 1 Feb 2010 09:35:38 -0500 User-Agent: KMail/1.12.1 (FreeBSD/7.2-CBSD-20100120; KDE/4.3.1; amd64; ; ) References: <8506939B503B404A84BBB12293FC45F60681AA1B@emailbng3.jnpr.net> In-Reply-To: <8506939B503B404A84BBB12293FC45F60681AA1B@emailbng3.jnpr.net> MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201002010935.38861.jhb@freebsd.org> X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.0.1 (bigwig.baldwin.cx); Mon, 01 Feb 2010 09:49:51 -0500 (EST) X-Virus-Scanned: clamav-milter 0.95.1 at bigwig.baldwin.cx X-Virus-Status: Clean X-Spam-Status: No, score=-1.3 required=4.2 tests=AWL,BAYES_00 autolearn=ham version=3.2.5 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on bigwig.baldwin.cx Cc: freebsd-ppc@freebsd.org, freebsd-arch@freebsd.org Subject: Re: About hot-plugging support in FreeBSD X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the PowerPC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 01 Feb 2010 14:49:53 -0000 On Monday 01 February 2010 1:26:00 am Rajat Jain wrote: > Hi, > > I'm a newbie to the FreeBSD and have come from Linux background, hence > please pardon me if this is not the right list for my questions, and > please point me to the correct list: > > 1) Does FreeBSD support PCI-Express hot-plugging? I could not even find > any instances in the source code that suggest that even PCI hot-plugging > is supported. Is it supported? Can you please point me to appropriate > references in the code? No, not currently. > 2) How and WHERE in the code is the "PCI Enumeration" and the "PCI > resource allocation" done?: Enumeration is done in 'pci_add_children()' in sys/dev/pci/pci.c. Resource allocation is done in the same file in a few different places. > 2a) Does FreeBSD does its own PCI resource allocation / PCI bus > numbering, or does it simply use the one already done by the BIOS / > bootloader? It reuses the firmware allocations and can only handle simple cases to allocate resources for a BAR that the firmware did not initialize. > 2b) In case it does its own PCI resource management, is the PCI > Enumeration done only at the boot time, or devices can be detected and > added later at run-time as well? [Please note that for adding at run > time, we'll need certain PCI resource pre-reserved in anticipation of > any new devices] It shouldn't be too hard to support hot-plug. Note that the cardbus(4) code already does a form of PCI hot-plug, so some of the infrastructure for PCI hot-plug is already in place. -- John Baldwin From owner-freebsd-ppc@FreeBSD.ORG Thu Feb 4 07:14:18 2010 Return-Path: Delivered-To: powerpc@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 750F61065692; Thu, 4 Feb 2010 07:14:18 +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 4F6158FC08; Thu, 4 Feb 2010 07:14:18 +0000 (UTC) Received: from freebsd-current.sentex.ca (localhost [127.0.0.1]) by freebsd-current.sentex.ca (8.14.3/8.14.3) with ESMTP id o147EHFu031247; Thu, 4 Feb 2010 02:14:17 -0500 (EST) (envelope-from tinderbox@freebsd.org) Received: (from tinderbox@localhost) by freebsd-current.sentex.ca (8.14.3/8.14.3/Submit) id o147EHnZ031245; Thu, 4 Feb 2010 07:14:17 GMT (envelope-from tinderbox@freebsd.org) Date: Thu, 4 Feb 2010 07:14:17 GMT Message-Id: <201002040714.o147EHnZ031245@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 powerpc/powerpc X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.5 List-Id: Porting FreeBSD to the PowerPC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 04 Feb 2010 07:14:18 -0000 TB --- 2010-02-04 06:07:42 - tinderbox 2.6 running on freebsd-current.sentex.ca TB --- 2010-02-04 06:07:42 - starting HEAD tinderbox run for powerpc/powerpc TB --- 2010-02-04 06:07:42 - cleaning the object tree TB --- 2010-02-04 06:08:02 - cvsupping the source tree TB --- 2010-02-04 06:08:02 - /usr/bin/csup -z -r 3 -g -L 1 -h cvsup.sentex.ca /tinderbox/HEAD/powerpc/powerpc/supfile TB --- 2010-02-04 06:08:52 - building world TB --- 2010-02-04 06:08:52 - MAKEOBJDIRPREFIX=/obj TB --- 2010-02-04 06:08:52 - PATH=/usr/bin:/usr/sbin:/bin:/sbin TB --- 2010-02-04 06:08:52 - TARGET=powerpc TB --- 2010-02-04 06:08:52 - TARGET_ARCH=powerpc TB --- 2010-02-04 06:08:52 - TZ=UTC TB --- 2010-02-04 06:08:52 - __MAKE_CONF=/dev/null TB --- 2010-02-04 06:08:52 - cd /src TB --- 2010-02-04 06:08:52 - /usr/bin/make -B buildworld >>> World build started on Thu Feb 4 06:08:53 UTC 2010 >>> 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 >>> World build completed on Thu Feb 4 07:09:22 UTC 2010 TB --- 2010-02-04 07:09:22 - generating LINT kernel config TB --- 2010-02-04 07:09:22 - cd /src/sys/powerpc/conf TB --- 2010-02-04 07:09:22 - /usr/bin/make -B LINT TB --- 2010-02-04 07:09:22 - building LINT kernel TB --- 2010-02-04 07:09:22 - MAKEOBJDIRPREFIX=/obj TB --- 2010-02-04 07:09:22 - PATH=/usr/bin:/usr/sbin:/bin:/sbin TB --- 2010-02-04 07:09:22 - TARGET=powerpc TB --- 2010-02-04 07:09:22 - TARGET_ARCH=powerpc TB --- 2010-02-04 07:09:22 - TZ=UTC TB --- 2010-02-04 07:09:22 - __MAKE_CONF=/dev/null TB --- 2010-02-04 07:09:22 - cd /src TB --- 2010-02-04 07:09:22 - /usr/bin/make -B buildkernel KERNCONF=LINT >>> Kernel build for LINT started on Thu Feb 4 07:09:22 UTC 2010 >>> stage 1: configuring the kernel >>> stage 2.1: cleaning up the object tree >>> stage 2.2: rebuilding the object tree >>> stage 2.3: build tools >>> stage 3.1: making dependencies >>> stage 3.2: building everything [...] cc -c -O2 -pipe -fno-strict-aliasing -std=c99 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -fformat-extensions -nostdinc -I. -I/src/sys -I/src/sys/contrib/altq -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -fno-common -finline-limit=15000 --param inline-unit-growth=100 --param large-function-growth=1000 -fno-builtin -msoft-float -fno-omit-frame-pointer -msoft-float -mno-altivec -ffreestanding -fstack-protector -Werror /src/sys/dev/iscsi/initiator/isc_soc.c cc -c -O2 -pipe -fno-strict-aliasing -std=c99 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -fformat-extensions -nostdinc -I. -I/src/sys -I/src/sys/contrib/altq -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -fno-common -finline-limit=15000 --param inline-unit-growth=100 --param large-function-growth=1000 -fno-builtin -msoft-float -fno-omit-frame-pointer -msoft-float -mno-altivec -ffreestanding -fstack-protector -Werror /src/sys/dev/iscsi/initiator/isc_sm.c cc -c -O2 -pipe -fno-strict-aliasing -std=c99 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -fformat-extensions -nostdinc -I. -I/src/sys -I/src/sys/contrib/altq -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -fno-common -finline-limit=15000 --param inline-unit-growth=100 --param large-function-growth=1000 -fno-builtin -msoft-float -fno-omit-frame-pointer -msoft-float -mno-altivec -ffreestanding -fstack-protector -Werror /src/sys/dev/iscsi/initiator/isc_subr.c cc -c -O2 -pipe -fno-strict-aliasing -std=c99 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -fformat-extensions -nostdinc -I. -I/src/sys -I/src/sys/contrib/altq -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -fno-common -finline-limit=15000 --param inline-unit-growth=100 --param large-function-growth=1000 -fno-builtin -msoft-float -fno-omit-frame-pointer -msoft-float -mno-altivec -ffreestanding -fstack-protector -Werror /src/sys/dev/isp/isp.c cc -c -O2 -pipe -fno-strict-aliasing -std=c99 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -fformat-extensions -nostdinc -I. -I/src/sys -I/src/sys/contrib/altq -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -fno-common -finline-limit=15000 --param inline-unit-growth=100 --param large-function-growth=1000 -fno-builtin -msoft-float -fno-omit-frame-pointer -msoft-float -mno-altivec -ffreestanding -fstack-protector -Werror /src/sys/dev/isp/isp_freebsd.c cc -c -O2 -pipe -fno-strict-aliasing -std=c99 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -fformat-extensions -nostdinc -I. -I/src/sys -I/src/sys/contrib/altq -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -fno-common -finline-limit=15000 --param inline-unit-growth=100 --param large-function-growth=1000 -fno-builtin -msoft-float -fno-omit-frame-pointer -msoft-float -mno-altivec -ffreestanding -fstack-protector -Werror /src/sys/dev/isp/isp_library.c /src/sys/dev/isp/isp_library.c: In function 'isp_clear_commands': /src/sys/dev/isp/isp_library.c:653: error: 'ispsoftc_t' has no member named 'isp_tgt_xflist' *** Error code 1 Stop in /obj/powerpc/src/sys/LINT. *** Error code 1 Stop in /src. *** Error code 1 Stop in /src. TB --- 2010-02-04 07:14:17 - WARNING: /usr/bin/make returned exit code 1 TB --- 2010-02-04 07:14:17 - ERROR: failed to build lint kernel TB --- 2010-02-04 07:14:17 - 2972.73 user 621.61 system 3994.89 real http://tinderbox.freebsd.org/tinderbox-head-HEAD-powerpc-powerpc.full