From owner-freebsd-amd64@FreeBSD.ORG Sun Dec 23 07:40:01 2012 Return-Path: Delivered-To: freebsd-amd64@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 72A0F595 for ; Sun, 23 Dec 2012 07:40:01 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by mx1.freebsd.org (Postfix) with ESMTP id 524BC8FC0A for ; Sun, 23 Dec 2012 07:40:01 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id qBN7e15d083736 for ; Sun, 23 Dec 2012 07:40:01 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id qBN7e16e083735; Sun, 23 Dec 2012 07:40:01 GMT (envelope-from gnats) Date: Sun, 23 Dec 2012 07:40:01 GMT Message-Id: <201212230740.qBN7e16e083735@freefall.freebsd.org> To: freebsd-amd64@FreeBSD.org Cc: From: Andriy Gapon Subject: Re: amd64/174409: stopping during resume caused by io_apic.c change(r243764) X-Mailman-Approved-At: Sun, 23 Dec 2012 12:27:53 +0000 X-BeenThere: freebsd-amd64@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: Andriy Gapon List-Id: Porting FreeBSD to the AMD64 platform List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 23 Dec 2012 07:40:01 -0000 The following reply was made to PR amd64/174409; it has been noted by GNATS. From: Andriy Gapon To: KAHO Toshikazu Cc: bug-followup@FreeBSD.org Subject: Re: amd64/174409: stopping during resume caused by io_apic.c change(r243764) Date: Sun, 23 Dec 2012 09:32:02 +0200 on 19/12/2012 03:47 KAHO Toshikazu said the following: > Hello, > >> Are you set up for crash dumps (minidumps are ok) ? >> Could you please add a call to panic("ioapic_resume"); at the beginning of >> ioapic_resume function in sys/x86/x86/io_apic.c and save a crash dump for debugging? > > The machine now panics, but any keyboard operation makes nothing > in debugger. If sysctl debug.debugger_on_panic=0 , kernel was > trying to save a dump but failed by ahci error. All devices seem > to be sleeping yet. Oh, I should have realized that this won't work. Sorry about that. Could you please revert all patches from me and put your source tree into the working shape (head minus r243764) and the try the following purely diagnostic patch? The patch presumes that you have DDB in your kernel config. Please report output produced after resuming. Thank you. diff --git a/sys/x86/x86/io_apic.c b/sys/x86/x86/io_apic.c index 4df27c2..1f82816 100644 --- a/sys/x86/x86/io_apic.c +++ b/sys/x86/x86/io_apic.c @@ -486,14 +486,30 @@ ioapic_config_intr } static void +ioapic_dump(struct ioapic *io) +{ + int i; + + printf("ioapic%u:\n", io->io_id); + for (i = 0; i < io->io_numintr; i++) + printf("pin%d: %08x:%08x\n", i, + ioapic_read(io->io_addr, IOAPIC_REDTBL_LO(i)), + ioapic_read(io->io_addr, IOAPIC_REDTBL_HI(i))); +} + +static void ioapic_resume(struct pic *pic) { struct ioapic *io = (struct ioapic *)pic; int i; mtx_lock_spin(&icu_lock); + printf("before re-programming ioapic\n"); + ioapic_dump(io); for (i = 0; i < io->io_numintr; i++) ioapic_program_intpin(&io->io_pins[i]); + printf("after re-programming ioapic\n"); + ioapic_dump(io); mtx_unlock_spin(&icu_lock); } diff --git a/sys/x86/x86/local_apic.c b/sys/x86/x86/local_apic.c index 0df973a..13e4b4f 100644 --- a/sys/x86/x86/local_apic.c +++ b/sys/x86/x86/local_apic.c @@ -342,6 +342,8 @@ lapic_dump(const char* str) printf(" cmci: 0x%08x\n", lapic->lvt_cmci); } +static db_cmdfcn_t db_show_lapic; + void lapic_setup(int boot) { @@ -353,6 +355,10 @@ lapic_setup(int boot) la = &lapics[lapic_id()]; KASSERT(la->la_present, ("missing APIC structure")); saveintr = intr_disable(); + + printf("before setup\n"); + db_show_lapic(0, 0, 0, NULL); + maxlvt = (lapic->version & APIC_VER_MAXLVT) >> MAXLVTSHIFT; /* Initialize the TPR to allow all interrupts. */ @@ -398,6 +404,9 @@ lapic_setup(int boot) if (maxlvt >= LVT_CMCI) lapic->lvt_cmci = lvt_mode(la, LVT_CMCI, lapic->lvt_cmci); + printf("after setup\n"); + db_show_lapic(0, 0, 0, NULL); + intr_restore(saveintr); } -- Andriy Gapon From owner-freebsd-amd64@FreeBSD.ORG Sun Dec 23 15:43:30 2012 Return-Path: Delivered-To: amd64@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id A680C25B; Sun, 23 Dec 2012 15:43:30 +0000 (UTC) (envelope-from tinderbox@freebsd.org) Received: from freebsd-legacy2.sentex.ca (freebsd-legacy2.sentex.ca [IPv6:2607:f3e0:0:3::6502:9c]) by mx1.freebsd.org (Postfix) with ESMTP id 4AC7E8FC13; Sun, 23 Dec 2012 15:43:30 +0000 (UTC) Received: from freebsd-legacy2.sentex.ca (localhost [127.0.0.1]) by freebsd-legacy2.sentex.ca (8.14.5/8.14.5) with ESMTP id qBNFhTES069494; Sun, 23 Dec 2012 15:43:29 GMT (envelope-from tinderbox@freebsd.org) Received: (from tinderbox@localhost) by freebsd-legacy2.sentex.ca (8.14.5/8.14.5/Submit) id qBNFhTOw069492; Sun, 23 Dec 2012 15:43:29 GMT (envelope-from tinderbox@freebsd.org) Date: Sun, 23 Dec 2012 15:43:29 GMT Message-Id: <201212231543.qBNFhTOw069492@freebsd-legacy2.sentex.ca> X-Authentication-Warning: freebsd-legacy2.sentex.ca: tinderbox set sender to FreeBSD Tinderbox using -f Sender: FreeBSD Tinderbox From: FreeBSD Tinderbox To: FreeBSD Tinderbox , , Subject: [releng_8 tinderbox] failure on amd64/amd64 Precedence: bulk X-BeenThere: freebsd-amd64@freebsd.org X-Mailman-Version: 2.1.14 List-Id: Porting FreeBSD to the AMD64 platform List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 23 Dec 2012 15:43:30 -0000 TB --- 2012-12-23 14:31:53 - tinderbox 2.10 running on freebsd-legacy2.sentex.ca TB --- 2012-12-23 14:31:53 - FreeBSD freebsd-legacy2.sentex.ca 9.0-RELEASE FreeBSD 9.0-RELEASE #0: Tue Jan 3 07:46:30 UTC 2012 root@farrell.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC amd64 TB --- 2012-12-23 14:31:53 - starting RELENG_8 tinderbox run for amd64/amd64 TB --- 2012-12-23 14:31:53 - cleaning the object tree TB --- 2012-12-23 14:31:53 - checking out /src from svn://svn.freebsd.org/base/stable/8 TB --- 2012-12-23 14:31:53 - cd /tinderbox/RELENG_8/amd64/amd64 TB --- 2012-12-23 14:31:53 - /usr/local/bin/svn cleanup /src TB --- 2012-12-23 14:32:03 - /usr/local/bin/svn update /src TB --- 2012-12-23 14:32:10 - building world TB --- 2012-12-23 14:32:10 - CROSS_BUILD_TESTING=YES TB --- 2012-12-23 14:32:10 - MAKEOBJDIRPREFIX=/obj TB --- 2012-12-23 14:32:10 - PATH=/usr/bin:/usr/sbin:/bin:/sbin TB --- 2012-12-23 14:32:10 - SRCCONF=/dev/null TB --- 2012-12-23 14:32:10 - TARGET=amd64 TB --- 2012-12-23 14:32:10 - TARGET_ARCH=amd64 TB --- 2012-12-23 14:32:10 - TZ=UTC TB --- 2012-12-23 14:32:10 - __MAKE_CONF=/dev/null TB --- 2012-12-23 14:32:10 - cd /src TB --- 2012-12-23 14:32:10 - /usr/bin/make -B buildworld >>> World build started on Sun Dec 23 14:32:10 UTC 2012 >>> 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 >>> stage 5.1: building 32 bit shim libraries >>> World build completed on Sun Dec 23 15:40:32 UTC 2012 TB --- 2012-12-23 15:40:32 - generating LINT kernel config TB --- 2012-12-23 15:40:32 - cd /src/sys/amd64/conf TB --- 2012-12-23 15:40:32 - /usr/bin/make -B LINT TB --- 2012-12-23 15:40:32 - cd /src/sys/amd64/conf TB --- 2012-12-23 15:40:32 - /usr/sbin/config -m LINT TB --- 2012-12-23 15:40:32 - building LINT kernel TB --- 2012-12-23 15:40:32 - CROSS_BUILD_TESTING=YES TB --- 2012-12-23 15:40:32 - MAKEOBJDIRPREFIX=/obj TB --- 2012-12-23 15:40:32 - PATH=/usr/bin:/usr/sbin:/bin:/sbin TB --- 2012-12-23 15:40:32 - SRCCONF=/dev/null TB --- 2012-12-23 15:40:32 - TARGET=amd64 TB --- 2012-12-23 15:40:32 - TARGET_ARCH=amd64 TB --- 2012-12-23 15:40:32 - TZ=UTC TB --- 2012-12-23 15:40:32 - __MAKE_CONF=/dev/null TB --- 2012-12-23 15:40:32 - cd /src TB --- 2012-12-23 15:40:32 - /usr/bin/make -B buildkernel KERNCONF=LINT >>> Kernel build for LINT started on Sun Dec 23 15:40:32 UTC 2012 >>> 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 [...] /src/sys/dev/acpica/acpi_cpu.c:420: error: 'cpuset_t' undeclared (first use in this function) /src/sys/dev/acpica/acpi_cpu.c:420: error: (Each undeclared identifier is reported only once /src/sys/dev/acpica/acpi_cpu.c:420: error: for each function it appears in.) /src/sys/dev/acpica/acpi_cpu.c:420: error: expected ';' before 'cpuset' cc1: warnings being treated as errors /src/sys/dev/acpica/acpi_cpu.c:422: warning: implicit declaration of function 'CPU_SETOF' /src/sys/dev/acpica/acpi_cpu.c:422: warning: nested extern declaration of 'CPU_SETOF' /src/sys/dev/acpica/acpi_cpu.c:422: error: 'cpuset' undeclared (first use in this function) *** Error code 1 Stop in /obj/amd64/src/sys/LINT. *** Error code 1 Stop in /src. *** Error code 1 Stop in /src. TB --- 2012-12-23 15:43:29 - WARNING: /usr/bin/make returned exit code 1 TB --- 2012-12-23 15:43:29 - ERROR: failed to build LINT kernel TB --- 2012-12-23 15:43:29 - 3317.76 user 698.37 system 4296.64 real http://tinderbox.freebsd.org/tinderbox-releng_8-RELENG_8-amd64-amd64.full From owner-freebsd-amd64@FreeBSD.ORG Sun Dec 23 19:35:39 2012 Return-Path: Delivered-To: amd64@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id B05FE68C; Sun, 23 Dec 2012 19:35:39 +0000 (UTC) (envelope-from tinderbox@freebsd.org) Received: from freebsd-legacy2.sentex.ca (freebsd-legacy2.sentex.ca [IPv6:2607:f3e0:0:3::6502:9c]) by mx1.freebsd.org (Postfix) with ESMTP id 3CC348FC12; Sun, 23 Dec 2012 19:35:39 +0000 (UTC) Received: from freebsd-legacy2.sentex.ca (localhost [127.0.0.1]) by freebsd-legacy2.sentex.ca (8.14.5/8.14.5) with ESMTP id qBNJZcxx046733; Sun, 23 Dec 2012 19:35:38 GMT (envelope-from tinderbox@freebsd.org) Received: (from tinderbox@localhost) by freebsd-legacy2.sentex.ca (8.14.5/8.14.5/Submit) id qBNJZc2M046727; Sun, 23 Dec 2012 19:35:38 GMT (envelope-from tinderbox@freebsd.org) Date: Sun, 23 Dec 2012 19:35:38 GMT Message-Id: <201212231935.qBNJZc2M046727@freebsd-legacy2.sentex.ca> X-Authentication-Warning: freebsd-legacy2.sentex.ca: tinderbox set sender to FreeBSD Tinderbox using -f Sender: FreeBSD Tinderbox From: FreeBSD Tinderbox To: FreeBSD Tinderbox , , Subject: [releng_8 tinderbox] failure on amd64/amd64 Precedence: bulk X-BeenThere: freebsd-amd64@freebsd.org X-Mailman-Version: 2.1.14 List-Id: Porting FreeBSD to the AMD64 platform List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 23 Dec 2012 19:35:39 -0000 TB --- 2012-12-23 18:07:42 - tinderbox 2.10 running on freebsd-legacy2.sentex.ca TB --- 2012-12-23 18:07:42 - FreeBSD freebsd-legacy2.sentex.ca 9.0-RELEASE FreeBSD 9.0-RELEASE #0: Tue Jan 3 07:46:30 UTC 2012 root@farrell.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC amd64 TB --- 2012-12-23 18:07:42 - starting RELENG_8 tinderbox run for amd64/amd64 TB --- 2012-12-23 18:07:42 - cleaning the object tree TB --- 2012-12-23 18:08:48 - checking out /src from svn://svn.freebsd.org/base/stable/8 TB --- 2012-12-23 18:08:48 - cd /tinderbox/RELENG_8/amd64/amd64 TB --- 2012-12-23 18:08:48 - /usr/local/bin/svn cleanup /src TB --- 2012-12-23 18:09:01 - /usr/local/bin/svn update /src TB --- 2012-12-23 18:09:06 - building world TB --- 2012-12-23 18:09:06 - CROSS_BUILD_TESTING=YES TB --- 2012-12-23 18:09:06 - MAKEOBJDIRPREFIX=/obj TB --- 2012-12-23 18:09:06 - PATH=/usr/bin:/usr/sbin:/bin:/sbin TB --- 2012-12-23 18:09:06 - SRCCONF=/dev/null TB --- 2012-12-23 18:09:06 - TARGET=amd64 TB --- 2012-12-23 18:09:06 - TARGET_ARCH=amd64 TB --- 2012-12-23 18:09:06 - TZ=UTC TB --- 2012-12-23 18:09:06 - __MAKE_CONF=/dev/null TB --- 2012-12-23 18:09:06 - cd /src TB --- 2012-12-23 18:09:06 - /usr/bin/make -B buildworld >>> World build started on Sun Dec 23 18:09:06 UTC 2012 >>> 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 >>> stage 5.1: building 32 bit shim libraries >>> World build completed on Sun Dec 23 19:17:43 UTC 2012 TB --- 2012-12-23 19:17:43 - generating LINT kernel config TB --- 2012-12-23 19:17:43 - cd /src/sys/amd64/conf TB --- 2012-12-23 19:17:43 - /usr/bin/make -B LINT TB --- 2012-12-23 19:17:43 - cd /src/sys/amd64/conf TB --- 2012-12-23 19:17:43 - /usr/sbin/config -m LINT TB --- 2012-12-23 19:17:43 - building LINT kernel TB --- 2012-12-23 19:17:43 - CROSS_BUILD_TESTING=YES TB --- 2012-12-23 19:17:43 - MAKEOBJDIRPREFIX=/obj TB --- 2012-12-23 19:17:43 - PATH=/usr/bin:/usr/sbin:/bin:/sbin TB --- 2012-12-23 19:17:43 - SRCCONF=/dev/null TB --- 2012-12-23 19:17:43 - TARGET=amd64 TB --- 2012-12-23 19:17:43 - TARGET_ARCH=amd64 TB --- 2012-12-23 19:17:43 - TZ=UTC TB --- 2012-12-23 19:17:43 - __MAKE_CONF=/dev/null TB --- 2012-12-23 19:17:43 - cd /src TB --- 2012-12-23 19:17:43 - /usr/bin/make -B buildkernel KERNCONF=LINT >>> Kernel build for LINT started on Sun Dec 23 19:17:43 UTC 2012 >>> 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 -O2 -pipe -DFREEBSD_NAMECACHE -DBUILDING_ZFS -fno-strict-aliasing -Werror -D_KERNEL -DKLD_MODULE -nostdinc -I/src/sys/modules/zfs/../../cddl/compat/opensolaris -I/src/sys/modules/zfs/../../cddl/contrib/opensolaris/uts/common/fs/zfs -I/src/sys/modules/zfs/../../cddl/contrib/opensolaris/uts/common/zmod -I/src/sys/modules/zfs/../../cddl/contrib/opensolaris/uts/common -I/src/sys/modules/zfs/../.. -I/src/sys/modules/zfs/../../cddl/contrib/opensolaris/common/zfs -I/src/sys/modules/zfs/../../cddl/contrib/opensolaris/common -I/src/sys/modules/zfs/../../../include -DHAVE_KERNEL_OPTION_HEADERS -include /obj/amd64/src/sys/LINT/opt_global.h -I. -I@ -I@/contrib/altq -finline-limit=8000 --param inline-unit-growth=100 --param large-function-growth=1000 -fno-common -fno-omit-frame-pointer -I/obj/amd64/src/sys/LINT -mcmodel=kernel -mno-red-zone -mfpmath=387 -mno-sse -mno-sse2 -mno-sse3 -mno-mmx -mno-3dnow -msoft-float -fno-asynchronous-unwind-tables -ffreestanding -fstack-protector -s! td=iso9899:1999 -fstack-protector -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -fformat-extensions -Wno-unknown-pragmas -Wno-missing-prototypes -Wno-undef -Wno-strict-prototypes -Wno-cast-qual -Wno-parentheses -Wno-redundant-decls -Wno-missing-braces -Wno-uninitialized -Wno-unused -Wno-inline -Wno-switch -Wno-pointer-arith -c /src/sys/modules/zfs/../../cddl/contrib/opensolaris/uts/common/fs/zfs/refcount.c cc -O2 -pipe -DFREEBSD_NAMECACHE -DBUILDING_ZFS -fno-strict-aliasing -Werror -D_KERNEL -DKLD_MODULE -nostdinc -I/src/sys/modules/zfs/../../cddl/compat/opensolaris -I/src/sys/modules/zfs/../../cddl/contrib/opensolaris/uts/common/fs/zfs -I/src/sys/modules/zfs/../../cddl/contrib/opensolaris/uts/common/zmod -I/src/sys/modules/zfs/../../cddl/contrib/opensolaris/uts/common -I/src/sys/modules/zfs/../.. -I/src/sys/modules/zfs/../../cddl/contrib/opensolaris/common/zfs -I/src/sys/modules/zfs/../../cddl/contrib/opensolaris/common -I/src/sys/modules/zfs/../../../include -DHAVE_KERNEL_OPTION_HEADERS -include /obj/amd64/src/sys/LINT/opt_global.h -I. -I@ -I@/contrib/altq -finline-limit=8000 --param inline-unit-growth=100 --param large-function-growth=1000 -fno-common -fno-omit-frame-pointer -I/obj/amd64/src/sys/LINT -mcmodel=kernel -mno-red-zone -mfpmath=387 -mno-sse -mno-sse2 -mno-sse3 -mno-mmx -mno-3dnow -msoft-float -fno-asynchronous-unwind-tables -ffreestanding -fstack-protector -s! td=iso9899:1999 -fstack-protector -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -fformat-extensions -Wno-unknown-pragmas -Wno-missing-prototypes -Wno-undef -Wno-strict-prototypes -Wno-cast-qual -Wno-parentheses -Wno-redundant-decls -Wno-missing-braces -Wno-uninitialized -Wno-unused -Wno-inline -Wno-switch -Wno-pointer-arith -c /src/sys/modules/zfs/../../cddl/contrib/opensolaris/uts/common/fs/zfs/sa.c cc -O2 -pipe -DFREEBSD_NAMECACHE -DBUILDING_ZFS -fno-strict-aliasing -Werror -D_KERNEL -DKLD_MODULE -nostdinc -I/src/sys/modules/zfs/../../cddl/compat/opensolaris -I/src/sys/modules/zfs/../../cddl/contrib/opensolaris/uts/common/fs/zfs -I/src/sys/modules/zfs/../../cddl/contrib/opensolaris/uts/common/zmod -I/src/sys/modules/zfs/../../cddl/contrib/opensolaris/uts/common -I/src/sys/modules/zfs/../.. -I/src/sys/modules/zfs/../../cddl/contrib/opensolaris/common/zfs -I/src/sys/modules/zfs/../../cddl/contrib/opensolaris/common -I/src/sys/modules/zfs/../../../include -DHAVE_KERNEL_OPTION_HEADERS -include /obj/amd64/src/sys/LINT/opt_global.h -I. -I@ -I@/contrib/altq -finline-limit=8000 --param inline-unit-growth=100 --param large-function-growth=1000 -fno-common -fno-omit-frame-pointer -I/obj/amd64/src/sys/LINT -mcmodel=kernel -mno-red-zone -mfpmath=387 -mno-sse -mno-sse2 -mno-sse3 -mno-mmx -mno-3dnow -msoft-float -fno-asynchronous-unwind-tables -ffreestanding -fstack-protector -s! td=iso9899:1999 -fstack-protector -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -fformat-extensions -Wno-unknown-pragmas -Wno-missing-prototypes -Wno-undef -Wno-strict-prototypes -Wno-cast-qual -Wno-parentheses -Wno-redundant-decls -Wno-missing-braces -Wno-uninitialized -Wno-unused -Wno-inline -Wno-switch -Wno-pointer-arith -c /src/sys/modules/zfs/../../cddl/contrib/opensolaris/uts/common/fs/zfs/sha256.c cc -O2 -pipe -DFREEBSD_NAMECACHE -DBUILDING_ZFS -fno-strict-aliasing -Werror -D_KERNEL -DKLD_MODULE -nostdinc -I/src/sys/modules/zfs/../../cddl/compat/opensolaris -I/src/sys/modules/zfs/../../cddl/contrib/opensolaris/uts/common/fs/zfs -I/src/sys/modules/zfs/../../cddl/contrib/opensolaris/uts/common/zmod -I/src/sys/modules/zfs/../../cddl/contrib/opensolaris/uts/common -I/src/sys/modules/zfs/../.. -I/src/sys/modules/zfs/../../cddl/contrib/opensolaris/common/zfs -I/src/sys/modules/zfs/../../cddl/contrib/opensolaris/common -I/src/sys/modules/zfs/../../../include -DHAVE_KERNEL_OPTION_HEADERS -include /obj/amd64/src/sys/LINT/opt_global.h -I. -I@ -I@/contrib/altq -finline-limit=8000 --param inline-unit-growth=100 --param large-function-growth=1000 -fno-common -fno-omit-frame-pointer -I/obj/amd64/src/sys/LINT -mcmodel=kernel -mno-red-zone -mfpmath=387 -mno-sse -mno-sse2 -mno-sse3 -mno-mmx -mno-3dnow -msoft-float -fno-asynchronous-unwind-tables -ffreestanding -fstack-protector -s! td=iso9899:1999 -fstack-protector -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -fformat-extensions -Wno-unknown-pragmas -Wno-missing-prototypes -Wno-undef -Wno-strict-prototypes -Wno-cast-qual -Wno-parentheses -Wno-redundant-decls -Wno-missing-braces -Wno-uninitialized -Wno-unused -Wno-inline -Wno-switch -Wno-pointer-arith -c /src/sys/modules/zfs/../../cddl/contrib/opensolaris/uts/common/fs/zfs/spa.c /src/sys/modules/zfs/../../cddl/contrib/opensolaris/uts/common/fs/zfs/spa.c: In function 'spa_generate_rootconf': /src/sys/modules/zfs/../../cddl/contrib/opensolaris/uts/common/fs/zfs/spa.c:3785: error: 'KM_ZERO' undeclared (first use in this function) /src/sys/modules/zfs/../../cddl/contrib/opensolaris/uts/common/fs/zfs/spa.c:3785: error: (Each undeclared identifier is reported only once /src/sys/modules/zfs/../../cddl/contrib/opensolaris/uts/common/fs/zfs/spa.c:3785: error: for each function it appears in.) *** Error code 1 Stop in /src/sys/modules/zfs. *** Error code 1 Stop in /src/sys/modules. *** Error code 1 Stop in /obj/amd64/src/sys/LINT. *** Error code 1 Stop in /src. *** Error code 1 Stop in /src. TB --- 2012-12-23 19:35:38 - WARNING: /usr/bin/make returned exit code 1 TB --- 2012-12-23 19:35:38 - ERROR: failed to build LINT kernel TB --- 2012-12-23 19:35:38 - 4133.89 user 781.91 system 5276.55 real http://tinderbox.freebsd.org/tinderbox-releng_8-RELENG_8-amd64-amd64.full From owner-freebsd-amd64@FreeBSD.ORG Mon Dec 24 08:58:37 2012 Return-Path: Delivered-To: freebsd-amd64@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 89207CE9; Mon, 24 Dec 2012 08:58:37 +0000 (UTC) (envelope-from linimon@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by mx1.freebsd.org (Postfix) with ESMTP id 567808FC12; Mon, 24 Dec 2012 08:58:37 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id qBO8wbqe059133; Mon, 24 Dec 2012 08:58:37 GMT (envelope-from linimon@freefall.freebsd.org) Received: (from linimon@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id qBO8wbPh059129; Mon, 24 Dec 2012 08:58:37 GMT (envelope-from linimon) Date: Mon, 24 Dec 2012 08:58:37 GMT Message-Id: <201212240858.qBO8wbPh059129@freefall.freebsd.org> To: linimon@FreeBSD.org, freebsd-amd64@FreeBSD.org, freebsd-rc@FreeBSD.org From: linimon@FreeBSD.org Subject: Re: conf/174595: /etc/rc.d/sysctl : unknown oid 'XXX' [regression] X-BeenThere: freebsd-amd64@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Porting FreeBSD to the AMD64 platform List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 24 Dec 2012 08:58:37 -0000 Old Synopsis: /etc/rc.d/sysctl : unknown oid 'XXX' New Synopsis: /etc/rc.d/sysctl : unknown oid 'XXX' [regression] Responsible-Changed-From-To: freebsd-amd64->freebsd-rc Responsible-Changed-By: linimon Responsible-Changed-When: Mon Dec 24 08:58:08 UTC 2012 Responsible-Changed-Why: reclassify. http://www.freebsd.org/cgi/query-pr.cgi?pr=174595 From owner-freebsd-amd64@FreeBSD.ORG Mon Dec 24 11:06:39 2012 Return-Path: Delivered-To: freebsd-amd64@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 813675C5 for ; Mon, 24 Dec 2012 11:06:39 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by mx1.freebsd.org (Postfix) with ESMTP id 6681D8FC22 for ; Mon, 24 Dec 2012 11:06:39 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id qBOB6dbx065956 for ; Mon, 24 Dec 2012 11:06:39 GMT (envelope-from owner-bugmaster@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id qBOB6cor065954 for freebsd-amd64@FreeBSD.org; Mon, 24 Dec 2012 11:06:38 GMT (envelope-from owner-bugmaster@FreeBSD.org) Date: Mon, 24 Dec 2012 11:06:38 GMT Message-Id: <201212241106.qBOB6cor065954@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: gnats set sender to owner-bugmaster@FreeBSD.org using -f From: FreeBSD bugmaster To: freebsd-amd64@FreeBSD.org Subject: Current problem reports assigned to freebsd-amd64@FreeBSD.org X-BeenThere: freebsd-amd64@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Porting FreeBSD to the AMD64 platform List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 24 Dec 2012 11:06:39 -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 amd64/174409 amd64 stopping during resume caused by io_apic.c change(r243 o amd64/174388 amd64 9.1-RELEASE build world problem with yyparser. o amd64/173869 amd64 buildworld breaks with clang o amd64/173680 amd64 9.1rc3 installer hangs at "rootpass" o amd64/173502 amd64 Patch inhibition of warnings that appear in the combin o amd64/173465 amd64 FreeBSD 9.1 restarts in random fashion after upgrade t o amd64/173311 amd64 FreeBSD 9.1 RC2 , 12 servers restart in random fashion o amd64/173235 amd64 Have received two crashes within 1 day after installin o amd64/172926 amd64 [boot] booting hangs after 9.1-RC2 install in 2nd (MBR o amd64/171835 amd64 bsdinstall abort on Dell PowerEdge R420 with PERC H310 o amd64/171814 amd64 [panic] bioq_init or bioq_remove (unsure which) o amd64/171344 amd64 pkg_add -r xorg fails for freebsd 9 system o amd64/171331 amd64 Npviewer is crap o amd64/171250 amd64 ldd32 cannot find some i386 libraries o amd64/171110 amd64 Upgrade 9.1-BETA1 > RC1 issue o amd64/170677 amd64 FreeBSD 9.x does not boot if 2 hard disks are on syste o amd64/170487 amd64 [boot] Thinkpad X61s cannot boot 9.1-BETA1 o amd64/170351 amd64 [kernel] [patch] amd64: 64-bit process can't always ge o amd64/170115 amd64 Serial boot broken in 9.0 o amd64/168659 amd64 [boot] FreeBSD 9 - Crash upon booting off install CD ( o amd64/167582 amd64 Compile of MySQL NDB Cluster Fails 8.2 AMD64 o amd64/167543 amd64 [kernel] Install FreeBSD can show error message with c o amd64/167393 amd64 [boot] MacBook4,1 hangs on SMP boot o amd64/166639 amd64 [boot] Syscons issue Intel D2700 o amd64/166229 amd64 [boot] Unable to install FreeBSD 9 on Acer Extensa 522 o amd64/165850 amd64 [build] 8.3-RC1 (amd64): world doesn't build with CPUT o amd64/165845 amd64 [build] Unable to build kernel on 8.2-STABLE o amd64/165351 amd64 [boot] Error while installing or booting the freeBSD O o amd64/164773 amd64 [boot] 9.0 amd64 fails to boot on HP DL145 G3 [regress o amd64/164707 amd64 FreeBSD 9 installer does not work with IBM uefi o amd64/164643 amd64 Kernel Panic at 9.0-RELEASE o amd64/164619 amd64 when logged in as root the user and group applications o amd64/164457 amd64 [install] Can't install FreeBSD 9.0 (amd64) on HP Blad o amd64/164301 amd64 [install] 9.0 - Can't install, no DHCP lease o amd64/164136 amd64 after fresh install 8.1 release or 8.2 release the har o amd64/164116 amd64 [boot] FreeBSD 9.0-RELEASE installations mediums fails o amd64/164089 amd64 FreeBSD-9.0-RELEASE-amd64-memstick.img does not boot o amd64/164073 amd64 /etc/rc warning after booting o amd64/164036 amd64 [keyboard] Moused fails on 9_0_RELENG o amd64/163736 amd64 Freebsd 8.2 with MPD5 and about 100 PPPoE clients pani o amd64/163710 amd64 setjump in userboot.so causes stack corruption o amd64/163625 amd64 Install problems of RC3 amd64 on ASRock N68 GE3 UCC o amd64/163568 amd64 hard drive naming o amd64/163285 amd64 when installing gnome2-lite not all dependent packages o amd64/163284 amd64 print manager failed to install correctly o amd64/163114 amd64 no boot on Via Nanao netbook Samsung NC20 o amd64/163092 amd64 FreeBSD 9.0-RC2 fails to boot from raid-z2 if AHCI is o amd64/163048 amd64 normal user cant mount ntfs-3g o amd64/162936 amd64 fails boot and destabilizes other OSes on FreeBSD 9 RC o amd64/162489 amd64 After some time X blanks the screen and does not respo o amd64/162314 amd64 not able to install FreeBSD-8.2-RELEASE-amd64-dvd1 as o amd64/162219 amd64 [REGRESSION] In KDE 4.7.2 cant enable OpenGL,in 4.6.5 o amd64/162170 amd64 Unable to install due to freeze at "run_interrupt_driv o amd64/161974 amd64 FreeBSD 9 new installer installs succesful, renders ma o kern/160833 amd64 Keyboard USB doesn't work o amd64/157386 amd64 [powerd] Enabling powerd(8) with default settings on I o amd64/156106 amd64 [boot] boot0 fails to start o amd64/155135 amd64 [boot] Does Not Boot On a Very Standard Hardware o amd64/154957 amd64 [boot] Install boot CD won't boot up - keeps rebooting o amd64/154629 amd64 [panic] Fatal trap 9: general protection fault while i o amd64/153935 amd64 [hang] system hangs while trying to do 'shutdown -h no o amd64/153831 amd64 [boot] CD bootloader won't on Tyan s2912G2nr o amd64/153496 amd64 [hyper-v] [install] Install on Hyper-V leaves corrupt o amd64/153372 amd64 [panic] kernel panic o amd64/153175 amd64 [amd64] Kernel Panic on only FreeBSD 8 amd64 o amd64/152874 amd64 [install] 8.1 install fails where 7.3 works due to lac o amd64/152430 amd64 [boot] HP ProLiant Microserver n36l cannot boot into i o amd64/145991 amd64 [NOTES] [patch] Add a requires line to /sys/amd64/conf o amd64/144405 amd64 [build] [patch] include /usr/obj/lib32 in cleanworld t s amd64/143173 amd64 [ata] Promise FastTrack TX4 + SATA DVD, installer can' p amd64/141413 amd64 [hang] Tyan 2881 m3289 SMDC freeze o amd64/137942 amd64 [pci] 8.0-BETA2 having problems with Asus M2N-SLI-delu o amd64/127640 amd64 [amd64] gcc(1) will not build shared libraries with -f o amd64/115194 amd64 LCD screen remains blank after Dell XPS M1210 lid is c 74 problems total. From owner-freebsd-amd64@FreeBSD.ORG Tue Dec 25 02:10:01 2012 Return-Path: Delivered-To: freebsd-amd64@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 8C80DCDB for ; Tue, 25 Dec 2012 02:10:01 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by mx1.freebsd.org (Postfix) with ESMTP id 636BD8FC0A for ; Tue, 25 Dec 2012 02:10:01 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id qBP2A1IG031672 for ; Tue, 25 Dec 2012 02:10:01 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id qBP2A1qd031670; Tue, 25 Dec 2012 02:10:01 GMT (envelope-from gnats) Date: Tue, 25 Dec 2012 02:10:01 GMT Message-Id: <201212250210.qBP2A1qd031670@freefall.freebsd.org> To: freebsd-amd64@FreeBSD.org Cc: From: KAHO Toshikazu Subject: Re: amd64/174409: stopping during resume caused by io_apic.c change(r243764) X-BeenThere: freebsd-amd64@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: KAHO Toshikazu List-Id: Porting FreeBSD to the AMD64 platform List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 25 Dec 2012 02:10:01 -0000 The following reply was made to PR amd64/174409; it has been noted by GNATS. From: KAHO Toshikazu To: Andriy Gapon Cc: bug-followup@freebsd.org Subject: Re: amd64/174409: stopping during resume caused by io_apic.c change(r243764) Date: Tue, 25 Dec 2012 11:03:01 +0900 Hello, > Oh, I should have realized that this won't work. Sorry about that. > Could you please revert all patches from me and put your source tree into the > working shape (head minus r243764) and the try the following purely diagnostic > patch? The patch presumes that you have DDB in your kernel config. > Please report output produced after resuming. > Thank you. Thank you for making a new patch. The additional lines produced by the patch are below here. They were copied form `dmesg -a` without any changes, despite of some lines were mixed each other. -- at boot -- before setup lapic ID = 0 version = 1.4 max LVT = 5 SVR = ff (enabled) TPR = 00 In-service Interrupts: TMR Interrupts: IRR Interrupts: after setup lapic ID = 0 version = 1.4 max LVT = 5 SVR = ff (enabled) TPR = 00 In-service Interrupts: TMR Interrupts: IRR Interrupts: before setup lapic ID = 1 version = 1.4 max LVT = 5 SVR = ff (disabled) TPR = 00 In-service Interrupts: TMR Interrupts: IRR Interrupts: after setup lapic ID = 1 version = 1.4 max LVT = 5 SVR = ff (enabled) TPR = 00 In-service Interrupts: TMR Interrupts: IRR Interrupts: -- after resume -- before setup lapic ID = before re-programming ioapic 1 vioapic0: ersion pin0: 00010c04:090b0000 = 1.4 pin1: 00010d4c:02000000 max LVTpin2: 000106c4:06020000 = 5 pin3: 00010d00:085a0000 SVR pin4: 00010d84:4a180000 = fpin5: 00010d00:00800000 f (dispin6: 00010c00:50320000 abled) pin7: 00010c04:08740000 TPR pin8: 00010d0c:43680000 = 00 pin9: 00010c03:66020000 In-servpin10: 00010e44:089c0000 ice Intpin11: 00010d80:08900000 erruptspin12: 00010c00:40000000 : TMR pin13: 00010c00:c10e0000 Interrupin14: 000104af:08a20000 pts: Ipin15: 00010400:7abd0000 RR Intpin16: 00010114:28090000 erruptspin17: 00010c00:08100000 : after setup pin18: 00010504:40320000 lapic Ipin19: 00010d94:d9690000 D = 1 vpin20: 00010e87:5c000000 ersion pin21: 00010431:08000000 = 1.4 pin22: 00010600:68280000 max LVTpin23: 00010420:d8000000 = 5 SVR = ff (enabled) TPR = 00 In-service Iafter re-programming ioapic ntioapic0: erruptspin0: 00010700:000b0000 : TMR pin1: 00000030:01000000 Interrpin2: 00010033:00020000 upts: pin3: 00010d00:085a0000 IRR Intpin4: 00010d84:4a180000 erruptspin5: 00010d00:00800000 : pin6: 00010c00:50320000 pin7: 00010c04:08740000 pin8: 00000031:00680000 pin9: 0000d030:00020000 pin10: 00010e44:089c0000 pin11: 00010d80:08900000 pin12: 00000031:01000000 pin13: 00010c00:c10e0000 pin14: 000104af:08a20000 pin15: 00010400:7abd0000 pin16: 00010114:28090000 pin17: 00010c00:08100000 pin18: 0000a034:01320000 pin19: 00010d94:d9690000 pin20: 0000a032:00000000 pin21: 00010431:08000000 pin22: 00010600:68280000 pin23: 00010420:d8000000 before setup lapic ID = 0 version = 1.4 max LVT = 5 SVR = 0f (enabled) TPR = 00 In-service Interrupts: TMR Interrupts: IRR Interrupts: after setup lapic ID = 0 version = 1.4 max LVT = 5 SVR = ff (enabled) TPR = 00 In-service Interrupts: TMR Interrupts: IRR Interrupts: -- kaho@elam.kais.kyoto-u.ac.jp From owner-freebsd-amd64@FreeBSD.ORG Tue Dec 25 10:10:01 2012 Return-Path: Delivered-To: freebsd-amd64@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 7ADC34DC for ; Tue, 25 Dec 2012 10:10:01 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by mx1.freebsd.org (Postfix) with ESMTP id 5BA3C8FC0C for ; Tue, 25 Dec 2012 10:10:01 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id qBPAA1RG076795 for ; Tue, 25 Dec 2012 10:10:01 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id qBPAA1WO076794; Tue, 25 Dec 2012 10:10:01 GMT (envelope-from gnats) Date: Tue, 25 Dec 2012 10:10:01 GMT Message-Id: <201212251010.qBPAA1WO076794@freefall.freebsd.org> To: freebsd-amd64@FreeBSD.org Cc: From: Andriy Gapon Subject: Re: amd64/174409: stopping during resume caused by io_apic.c change(r243764) X-Mailman-Approved-At: Tue, 25 Dec 2012 12:35:34 +0000 X-BeenThere: freebsd-amd64@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: Andriy Gapon List-Id: Porting FreeBSD to the AMD64 platform List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 25 Dec 2012 10:10:01 -0000 The following reply was made to PR amd64/174409; it has been noted by GNATS. From: Andriy Gapon To: KAHO Toshikazu Cc: bug-followup@FreeBSD.org Subject: Re: amd64/174409: stopping during resume caused by io_apic.c change(r243764) Date: Tue, 25 Dec 2012 12:07:58 +0200 on 25/12/2012 04:03 KAHO Toshikazu said the following: > Hello, > >> Oh, I should have realized that this won't work. Sorry about that. >> Could you please revert all patches from me and put your source tree into the >> working shape (head minus r243764) and the try the following purely diagnostic >> patch? The patch presumes that you have DDB in your kernel config. >> Please report output produced after resuming. >> Thank you. > > Thank you for making a new patch. The additional lines produced > by the patch are below here. They were copied form `dmesg -a` without > any changes, despite of some lines were mixed each other. [snip] > pin9: 00010c03:66020000 [snip] > pin9: 0000d030:00020000 Hmm, quite interesting. Could you please take 'vmstat -i' output twice between reboot and resume (a few minutes apart) and then twice after resume (also a few minutes apart) ? -- Andriy Gapon From owner-freebsd-amd64@FreeBSD.ORG Tue Dec 25 14:00:01 2012 Return-Path: Delivered-To: freebsd-amd64@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 94FB83C0 for ; Tue, 25 Dec 2012 14:00:01 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by mx1.freebsd.org (Postfix) with ESMTP id 7A4928FC0C for ; Tue, 25 Dec 2012 14:00:01 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id qBPE01WU085565 for ; Tue, 25 Dec 2012 14:00:01 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id qBPE01vR085564; Tue, 25 Dec 2012 14:00:01 GMT (envelope-from gnats) Date: Tue, 25 Dec 2012 14:00:01 GMT Message-Id: <201212251400.qBPE01vR085564@freefall.freebsd.org> To: freebsd-amd64@FreeBSD.org Cc: From: KAHO Toshikazu Subject: Re: amd64/174409: stopping during resume caused by io_apic.c change(r243764) X-BeenThere: freebsd-amd64@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: KAHO Toshikazu List-Id: Porting FreeBSD to the AMD64 platform List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 25 Dec 2012 14:00:01 -0000 The following reply was made to PR amd64/174409; it has been noted by GNATS. From: KAHO Toshikazu To: Andriy Gapon Cc: bug-followup@freebsd.org Subject: Re: amd64/174409: stopping during resume caused by io_apic.c change(r243764) Date: Tue, 25 Dec 2012 22:38:28 +0900 Hello, > Could you please take 'vmstat -i' output twice between reboot and > resume (a few minutes apart) and then twice after resume (also a few > minutes apart) ? "irq 9" does not seem to increase. ( vmstat -i && sleep 300 && vmstat -i ) shows -- before resume -- interrupt total rate irq1: atkbd0 250 2 irq9: acpi0 48 0 irq12: psm0 6672 73 irq20: hpet0 11888 130 irq23: ehci1 uhci1 83 0 irq256: ahci0 3479 38 irq257: iwn0 1243 13 irq258: hdac0 93 1 irq259: vgapci0 510 5 Total 24266 266 interrupt total rate irq1: atkbd0 1042 2 irq9: acpi0 48 0 irq12: psm0 81558 208 irq20: hpet0 29229 74 irq23: ehci1 uhci1 83 0 irq256: ahci0 3656 9 irq257: iwn0 26987 69 irq258: hdac0 93 0 irq259: vgapci0 1379 3 Total 144075 368 -- after resume -- interrupt total rate irq1: atkbd0 1420 2 irq9: acpi0 48 0 irq12: psm0 127668 204 irq20: hpet0 43515 69 irq23: ehci1 uhci1 166 0 irq256: ahci0 3907 6 irq257: iwn0 49418 79 irq258: hdac0 103 0 irq259: vgapci0 2658 4 Total 228903 367 interrupt total rate irq1: atkbd0 2414 2 irq9: acpi0 48 0 irq12: psm0 154170 167 irq20: hpet0 61978 67 irq23: ehci1 uhci1 166 0 irq256: ahci0 3992 4 irq257: iwn0 66827 72 irq258: hdac0 103 0 irq259: vgapci0 3319 3 Total 293017 317 -- kaho@ed.niigata-u.ac.jp From owner-freebsd-amd64@FreeBSD.ORG Tue Dec 25 15:30:15 2012 Return-Path: Delivered-To: freebsd-amd64@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id EB73C339 for ; Tue, 25 Dec 2012 15:30:15 +0000 (UTC) (envelope-from jnagyjr1978@gmail.com) Received: from mail-yh0-f48.google.com (mail-yh0-f48.google.com [209.85.213.48]) by mx1.freebsd.org (Postfix) with ESMTP id 9E90A8FC13 for ; Tue, 25 Dec 2012 15:30:15 +0000 (UTC) Received: by mail-yh0-f48.google.com with SMTP id q46so1375795yhf.7 for ; Tue, 25 Dec 2012 07:30:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:message-id:date:from:user-agent:mime-version:to:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=g9Rmd0N1JsvEr2QLVCoKxwo2NplA07kNAmAV9ncnBWc=; b=WnJvs9ps7pWnk0dZelZdCclShxc3xxKdFtW6XNkRDUzNLM+C8e9ukEiwgeSE2DbdRi UV+0ccpBVzoQdhTpr/ToM14cN/sGVa/OvVeK4/GCA/8ER8gkzx6j2Ui/ZUxImEkohGTT ubZ+DLps8yJ9WrodoFYPD07B+bUqqyBlYaFLK5fPtceadhC9SQE+/7g6YPO7tWZ8XEcp W9NEv918YBtx4heNfHRRu/RffikZzYZENGeXPSl/8lRyxDtM6IwA4crnTCQ1gqAwKaxb q6GfLcJ9fj7aTSLB+D4v2/q7GnFoGAN6/NxRb86ti1tjonfpVu29q5alScr2KQjGoM++ //FQ== X-Received: by 10.236.132.9 with SMTP id n9mr22624992yhi.78.1356446238781; Tue, 25 Dec 2012 06:37:18 -0800 (PST) Received: from [192.168.1.33] (vid-196.dhcp.grp10.tnmmrl.infoave.net. [204.116.254.196]) by mx.google.com with ESMTPS id l51sm21800450yhh.16.2012.12.25.06.37.17 (version=SSLv3 cipher=OTHER); Tue, 25 Dec 2012 06:37:18 -0800 (PST) Message-ID: <50D9B914.1060406@gmail.com> Date: Tue, 25 Dec 2012 08:32:52 -0600 From: "Joseph A. Nagy, Jr" User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:17.0) Gecko/17.0 Thunderbird/17.0 MIME-Version: 1.0 To: "amd64 @ FreeBSD" Subject: Re: Kernel Compile Fail References: <50CE5CB3.7010906@gmail.com> In-Reply-To: <50CE5CB3.7010906@gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-amd64@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Porting FreeBSD to the AMD64 platform List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 25 Dec 2012 15:30:16 -0000 On 12/16/12 17:43, Joseph A. Nagy, Jr wrote: > I started my kernel compile with my custom settings[0] but it's failing > at one point[1] and while I think I know why, I'd like a second opinion. > > [0]: http://codepad.org/EZTCVMZC > [1]: http://codepad.org/58GFHGnE First, I'd like to thank everyone who helped me get my kernel building and answered all my questions. I have really appreciated the help. I compiled my custom kernel (or so I thought), but 'uname -a' shows it compiled with a generic kernel? FreeBSD alex-laptop 9.1-RELEASE FreeBSD 9.1-RELEASE #0: Mon Dec 24 20:06:49 CST 2012 root@alex-laptop:/usr/obj/usr/src/sys/GENERIC amd64 Whereas in the past, it showed my custom kernel config in the above path. I was running i386 before, does that make a difference? Or did I miss a step somewhere? when building and installing, I issued: 'make buildkernel kernconf=ALEX-LAPTOP' 'make installkernel kernconf=ALEX-LAPTOP' Based on the instructions found in the handbook. alex@alex-laptop#> cd /usr/src/sys/amd64/conf alex@alex-laptop#> ls ALEX-LAPTOP DEFAULTS GENERIC GENERIC.hints Makefile NOTES XENHVM I'm not quite sure what to expect now. -- Yours in Christ, Joseph A Nagy Jr "Whoever loves instruction loves knowledge, But he who hates correction is stupid." -- Proverbs 12:1 Emails are not formal business letters, whatever businesses may want. Original content CopyFree (F) under the OWL http://owl.apotheon.org From owner-freebsd-amd64@FreeBSD.ORG Tue Dec 25 16:09:44 2012 Return-Path: Delivered-To: freebsd-amd64@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 394AD734 for ; Tue, 25 Dec 2012 16:09:44 +0000 (UTC) (envelope-from fabian@wenks.ch) Received: from batman.home4u.ch (batman.home4u.ch [IPv6:2001:8a8:1005:1::2]) by mx1.freebsd.org (Postfix) with ESMTP id B7C9F8FC12 for ; Tue, 25 Dec 2012 16:09:43 +0000 (UTC) X-Virus-Scanned: amavisd-new at home4u.ch Received: from flashback.wenks.ch (fabian@flashback.wenks.ch [IPv6:2001:8a8:1005:1:223:dfff:fedf:13c9]) (authenticated bits=0) by batman.home4u.ch (8.14.4/8.14.4) with ESMTP id qBPG9fr8072384 (version=TLSv1/SSLv3 cipher=DHE-RSA-CAMELLIA256-SHA bits=256 verify=NO) for ; Tue, 25 Dec 2012 17:09:41 +0100 (CET) (envelope-from fabian@wenks.ch) Message-ID: <50D9CFC5.7000103@wenks.ch> Date: Tue, 25 Dec 2012 17:09:41 +0100 From: Fabian Wenk User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:17.0) Gecko/17.0 Thunderbird/17.0 MIME-Version: 1.0 To: freebsd-amd64@freebsd.org Subject: Re: Kernel Compile Fail References: <50CE5CB3.7010906@gmail.com> <50D9B914.1060406@gmail.com> In-Reply-To: <50D9B914.1060406@gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-amd64@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Porting FreeBSD to the AMD64 platform List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 25 Dec 2012 16:09:44 -0000 Hello Joseph On 25.12.2012 15:32, Joseph A. Nagy, Jr wrote: > I compiled my custom kernel (or so I thought), but 'uname -a' shows it > compiled with a generic kernel? > > FreeBSD alex-laptop 9.1-RELEASE FreeBSD 9.1-RELEASE #0: Mon Dec 24 > 20:06:49 CST 2012 root@alex-laptop:/usr/obj/usr/src/sys/GENERIC amd64 > > Whereas in the past, it showed my custom kernel config in the above > path. I was running i386 before, does that make a difference? Or did I > miss a step somewhere? > when building and installing, I issued: > > 'make buildkernel kernconf=ALEX-LAPTOP' > 'make installkernel kernconf=ALEX-LAPTOP' I am not sure if 'kernconf=' will work too or if it needs to be in uppercase letters. Alternatively you could set the following line in /etc/make.conf: KERNCONF=ALEX-LAPTOP And then in /usr/src/ you only need to use 'make buildkernel' and 'make installkernel'. > alex@alex-laptop#> cd /usr/src/sys/amd64/conf > alex@alex-laptop#> ls > ALEX-LAPTOP DEFAULTS GENERIC GENERIC.hints Makefile > NOTES XENHVM > > I'm not quite sure what to expect now. This looks correct. Did you also adjust the 'ident' line in your ALEX-LAPTOP file from GENERIC to ALEX-LAPTOP? I am not sure if the "-" in the kernel name will work. I do remember having problems building a kernel with a number in the name. But this was more then 10 years ago, but I still avoid it and do use only letters. So it is probably better to just use ALEXLAPTOP instead of ALEX-LAPTOP. bye Fabian From owner-freebsd-amd64@FreeBSD.ORG Tue Dec 25 16:00:01 2012 Return-Path: Delivered-To: freebsd-amd64@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 627B45D6 for ; Tue, 25 Dec 2012 16:00:01 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by mx1.freebsd.org (Postfix) with ESMTP id 46FDA8FC12 for ; Tue, 25 Dec 2012 16:00:01 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id qBPG01jP090425 for ; Tue, 25 Dec 2012 16:00:01 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id qBPG01aV090424; Tue, 25 Dec 2012 16:00:01 GMT (envelope-from gnats) Date: Tue, 25 Dec 2012 16:00:01 GMT Message-Id: <201212251600.qBPG01aV090424@freefall.freebsd.org> To: freebsd-amd64@FreeBSD.org Cc: From: Andriy Gapon Subject: Re: amd64/174409: stopping during resume caused by io_apic.c change(r243764) X-Mailman-Approved-At: Tue, 25 Dec 2012 17:04:02 +0000 X-BeenThere: freebsd-amd64@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: Andriy Gapon List-Id: Porting FreeBSD to the AMD64 platform List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 25 Dec 2012 16:00:01 -0000 The following reply was made to PR amd64/174409; it has been noted by GNATS. From: Andriy Gapon To: KAHO Toshikazu Cc: bug-followup@FreeBSD.org Subject: Re: amd64/174409: stopping during resume caused by io_apic.c change(r243764) Date: Tue, 25 Dec 2012 17:54:09 +0200 on 25/12/2012 15:38 KAHO Toshikazu said the following: > Hello, > >> Could you please take 'vmstat -i' output twice between reboot and >> resume (a few minutes apart) and then twice after resume (also a few >> minutes apart) ? > > "irq 9" does not seem to increase. > ( vmstat -i && sleep 300 && vmstat -i ) shows Thank you. Could you please re-apply r243764 and then try the following _hack_? --- a/sys/x86/x86/io_apic.c +++ b/sys/x86/x86/io_apic.c @@ -493,7 +493,7 @@ ioapic_resume(struct pic *pic) mtx_lock_spin(&icu_lock); for (i = 0; i < io->io_numintr; i++) - ioapic_program_intpin(&io->io_pins[i]); + if (i != 9) ioapic_program_intpin(&io->io_pins[i]); mtx_unlock_spin(&icu_lock); } Also, not sure if I asked before the following questions related to debugging possibilities. Does this system have a serial port? Are you able to setup serial console access? Or the same for firewire port/console. Does this system preserve memory content across reboot/reset? In other words, can you see messages from the previous boot in dmesg after a reboot? -- Andriy Gapon From owner-freebsd-amd64@FreeBSD.ORG Wed Dec 26 03:30:01 2012 Return-Path: Delivered-To: freebsd-amd64@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 9F1938B5 for ; Wed, 26 Dec 2012 03:30:01 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by mx1.freebsd.org (Postfix) with ESMTP id 837818FC17 for ; Wed, 26 Dec 2012 03:30:01 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id qBQ3U1cb027519 for ; Wed, 26 Dec 2012 03:30:01 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id qBQ3U18g027518; Wed, 26 Dec 2012 03:30:01 GMT (envelope-from gnats) Date: Wed, 26 Dec 2012 03:30:01 GMT Message-Id: <201212260330.qBQ3U18g027518@freefall.freebsd.org> To: freebsd-amd64@FreeBSD.org Cc: From: KAHO Toshikazu Subject: Re: amd64/174409: stopping during resume caused by io_apic.c change(r243764) X-BeenThere: freebsd-amd64@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: KAHO Toshikazu List-Id: Porting FreeBSD to the AMD64 platform List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 26 Dec 2012 03:30:01 -0000 The following reply was made to PR amd64/174409; it has been noted by GNATS. From: KAHO Toshikazu To: Andriy Gapon Cc: bug-followup@freebsd.org Subject: Re: amd64/174409: stopping during resume caused by io_apic.c change(r243764) Date: Wed, 26 Dec 2012 12:27:17 +0900 Hello, > Could you please re-apply r243764 and then try the following _hack_? Yes, the machine can wake up with pure head src + this patch. > Also, not sure if I asked before the following questions related to > debugging possibilities. > Does this system have a serial port? Are you able to setup serial > console access? > Or the same for firewire port/console. > Does this system preserve memory content across reboot/reset? > In other words, can you see messages from the previous boot in dmesg > after a reboot? The machine I'm using is a cheap mobile notebook with a ULV CPU. It does not have a serial port and a firewire. I have USB-serial adapters, but I don't think it helps to make a serial console. I can only take a memo by a pen, if the machine does not reboot immediately and the keyboard on DDB is alive. -- kaho@elem.kais.kyoto-u.ac.jp From owner-freebsd-amd64@FreeBSD.ORG Wed Dec 26 11:40:01 2012 Return-Path: Delivered-To: freebsd-amd64@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 9BE70ADA for ; Wed, 26 Dec 2012 11:40:01 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by mx1.freebsd.org (Postfix) with ESMTP id 7D2A38FC0A for ; Wed, 26 Dec 2012 11:40:01 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id qBQBe1af053958 for ; Wed, 26 Dec 2012 11:40:01 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id qBQBe1FB053957; Wed, 26 Dec 2012 11:40:01 GMT (envelope-from gnats) Date: Wed, 26 Dec 2012 11:40:01 GMT Message-Id: <201212261140.qBQBe1FB053957@freefall.freebsd.org> To: freebsd-amd64@FreeBSD.org Cc: From: KAHO Toshikazu Subject: Re: amd64/174409: stopping during resume caused by io_apic.c change(r243764) X-BeenThere: freebsd-amd64@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: KAHO Toshikazu List-Id: Porting FreeBSD to the AMD64 platform List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 26 Dec 2012 11:40:01 -0000 The following reply was made to PR amd64/174409; it has been noted by GNATS. From: KAHO Toshikazu To: Andriy Gapon Cc: bug-followup@freebsd.org Subject: Re: amd64/174409: stopping during resume caused by io_apic.c change(r243764) Date: Wed, 26 Dec 2012 20:34:41 +0900 Hello, Hmm.. The machine has a broken ACPI but OS doesn't catch it before r243764, and the broken ACPI doesn't make any ill effect. After r243764, OS catch the broken information and treat it as a correct information, so that the machine stops. It is a story I understand from your mail. > o cpuset -l 1 -x 9 -- to try to see what happens if SCI/IRQ9 > is delivered to the AP instead of BSP I cannot find any effect from `cpuset -l 1 -x 9` command. With pure head + your acpi.c patch, the machine can wake up from sleep. But "irq9: acpi0" rate showed by "vmstat -i" is increasing every second after resume. To close and open LCD makes 2 irq9 before resume, but irq9 rate is too fast after resume. "vmstat -i" shows -- before sleep -- interrupt total rate irq1: atkbd0 1153 2 irq9: acpi0 56 0 irq12: psm0 75744 177 irq20: hpet0 30065 70 irq23: ehci1 uhci1 83 0 irq256: ahci0 4572 10 irq258: hdac0 93 0 irq259: vgapci0 1022 2 Total 112788 264 -- after wake up from sleep -- interrupt total rate irq1: atkbd0 1427 2 irq9: acpi0 2364611 4564 irq12: psm0 78870 152 irq20: hpet0 42270 81 irq23: ehci1 uhci1 166 0 irq256: ahci0 4740 9 irq258: hdac0 99 0 irq259: vgapci0 1615 3 Total 2493798 4814 -- after resume and some times later -- interrupt total rate irq1: atkbd0 1643 0 irq9: acpi0 103768672 45313 irq12: psm0 86056 37 irq20: hpet0 442586 193 irq23: ehci1 uhci1 166 0 irq256: ahci0 4942 2 irq258: hdac0 99 0 irq259: vgapci0 3091 1 irq260: alc0 42 0 Total 104307297 45549 -- kaho@elam.kais.kyoto-u.ac.jp From owner-freebsd-amd64@FreeBSD.ORG Wed Dec 26 07:20:01 2012 Return-Path: Delivered-To: freebsd-amd64@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 73894C24 for ; Wed, 26 Dec 2012 07:20:01 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by mx1.freebsd.org (Postfix) with ESMTP id 5350C8FC0A for ; Wed, 26 Dec 2012 07:20:01 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id qBQ7K1jl039012 for ; Wed, 26 Dec 2012 07:20:01 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id qBQ7K1wM039011; Wed, 26 Dec 2012 07:20:01 GMT (envelope-from gnats) Date: Wed, 26 Dec 2012 07:20:01 GMT Message-Id: <201212260720.qBQ7K1wM039011@freefall.freebsd.org> To: freebsd-amd64@FreeBSD.org Cc: From: Andriy Gapon Subject: Re: amd64/174409: stopping during resume caused by io_apic.c change(r243764) X-Mailman-Approved-At: Wed, 26 Dec 2012 12:21:25 +0000 X-BeenThere: freebsd-amd64@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: Andriy Gapon List-Id: Porting FreeBSD to the AMD64 platform List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 26 Dec 2012 07:20:01 -0000 The following reply was made to PR amd64/174409; it has been noted by GNATS. From: Andriy Gapon To: KAHO Toshikazu Cc: bug-followup@FreeBSD.org Subject: Re: amd64/174409: stopping during resume caused by io_apic.c change(r243764) Date: Wed, 26 Dec 2012 09:14:33 +0200 on 26/12/2012 05:27 KAHO Toshikazu said the following: > Hello, > >> Could you please re-apply r243764 and then try the following _hack_? > > Yes, the machine can wake up with pure head src + this patch. Here is my current understanding of the situation. r243764 is actually an improvement, not a regression. What happens without r243764 during resume: ioapic pin 9 which is used for SCI/IRQ9 has some garbage in its CPU destination configuration, we unmask the pin, ioapic sends interrupt message to nowhere, the interrupt is never accepted and so the pin is stuck even after we program it with the correct destination. This is bad. What happens with r243764 during resume: we first program the correct destination (which happens to be BSP), then unmask the pin; as soon as interrupts on the BSP are re-enable SCI/IRQ9 is correctly delivered. This is the correct behavior, IMO. But apparently there is some problem in our ACPI code which leads to the hang. This is bad. While now I know where to look for the root cause, I don't know to do that in the early post-resume environment. As I understand, there is no way to output any information from kernel. This makes things hard. Some things to try (independently of each other) without the hack and with r243764: o cpuset -l 1 -x 9 -- to try to see what happens if SCI/IRQ9 is delivered to the AP instead of BSP o the following patch: --- a/sys/dev/acpica/acpi.c +++ b/sys/dev/acpica/acpi.c @@ -2776,6 +2776,9 @@ acpi_EnterSleepState(struct acpi_softc *sc, int state) sleep_result = acpi_sleep_machdep(sc, state); acpi_wakeup_machdep(sc, state, sleep_result, 0); AcpiLeaveSleepStatePrep(state); + + AcpiDisableAllGpes(); + intr_restore(intr); /* call acpi_wakeup_machdep() again with interrupt enabled */ >> Also, not sure if I asked before the following questions related to >> debugging possibilities. >> Does this system have a serial port? Are you able to setup serial >> console access? >> Or the same for firewire port/console. >> Does this system preserve memory content across reboot/reset? >> In other words, can you see messages from the previous boot in dmesg >> after a reboot? > > The machine I'm using is a cheap mobile notebook with a ULV CPU. > It does not have a serial port and a firewire. I have USB-serial > adapters, but I don't think it helps to make a serial console. > I can only take a memo by a pen, if the machine does not reboot > immediately and the keyboard on DDB is alive. > I see. -- Andriy Gapon From owner-freebsd-amd64@FreeBSD.ORG Wed Dec 26 11:50:01 2012 Return-Path: Delivered-To: freebsd-amd64@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 327BEC74 for ; Wed, 26 Dec 2012 11:50:01 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by mx1.freebsd.org (Postfix) with ESMTP id 143158FC12 for ; Wed, 26 Dec 2012 11:50:01 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id qBQBo0dT054052 for ; Wed, 26 Dec 2012 11:50:00 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id qBQBo0TL054051; Wed, 26 Dec 2012 11:50:00 GMT (envelope-from gnats) Date: Wed, 26 Dec 2012 11:50:00 GMT Message-Id: <201212261150.qBQBo0TL054051@freefall.freebsd.org> To: freebsd-amd64@FreeBSD.org Cc: From: Andriy Gapon Subject: Re: amd64/174409: stopping during resume caused by io_apic.c change(r243764) X-Mailman-Approved-At: Wed, 26 Dec 2012 12:26:55 +0000 X-BeenThere: freebsd-amd64@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: Andriy Gapon List-Id: Porting FreeBSD to the AMD64 platform List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 26 Dec 2012 11:50:01 -0000 The following reply was made to PR amd64/174409; it has been noted by GNATS. From: Andriy Gapon To: KAHO Toshikazu Cc: bug-followup@FreeBSD.org Subject: Re: amd64/174409: stopping during resume caused by io_apic.c change(r243764) Date: Wed, 26 Dec 2012 13:47:04 +0200 on 26/12/2012 13:34 KAHO Toshikazu said the following: > With pure head + your acpi.c patch, the machine can wake up > from sleep. But "irq9: acpi0" rate showed by "vmstat -i" is > increasing every second after resume. > To close and open LCD makes 2 irq9 before resume, but irq9 rate > is too fast after resume. That's something interesting. Thank you again! Could you please now try the following patch instead of all previous patches/hacks? http://people.freebsd.org/~avg/acpi-apic-wakeup.patch -- Andriy Gapon From owner-freebsd-amd64@FreeBSD.ORG Wed Dec 26 15:08:19 2012 Return-Path: Delivered-To: freebsd-amd64@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 123EA8F1; Wed, 26 Dec 2012 15:08:19 +0000 (UTC) (envelope-from linimon@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by mx1.freebsd.org (Postfix) with ESMTP id D32F38FC0A; Wed, 26 Dec 2012 15:08:18 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id qBQF8IMm063340; Wed, 26 Dec 2012 15:08:18 GMT (envelope-from linimon@freefall.freebsd.org) Received: (from linimon@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id qBQF8I23063336; Wed, 26 Dec 2012 15:08:18 GMT (envelope-from linimon) Date: Wed, 26 Dec 2012 15:08:18 GMT Message-Id: <201212261508.qBQF8I23063336@freefall.freebsd.org> To: linimon@FreeBSD.org, freebsd-bugs@FreeBSD.org, freebsd-amd64@FreeBSD.org From: linimon@FreeBSD.org Subject: Re: amd64/174679: Intel i5 laptop overheats and shuts down [regression] X-BeenThere: freebsd-amd64@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Porting FreeBSD to the AMD64 platform List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 26 Dec 2012 15:08:19 -0000 Old Synopsis: Intel i5 laptop overheats and shuts down New Synopsis: Intel i5 laptop overheats and shuts down [regression] Responsible-Changed-From-To: freebsd-bugs->freebsd-amd64 Responsible-Changed-By: linimon Responsible-Changed-When: Wed Dec 26 15:07:28 UTC 2012 Responsible-Changed-Why: reclassify as hardware-specific. http://www.freebsd.org/cgi/query-pr.cgi?pr=174679 From owner-freebsd-amd64@FreeBSD.ORG Wed Dec 26 16:15:49 2012 Return-Path: Delivered-To: freebsd-amd64@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 05D5AAE0 for ; Wed, 26 Dec 2012 16:15:49 +0000 (UTC) (envelope-from jnagyjr1978@gmail.com) Received: from mail-gg0-f181.google.com (mail-gg0-f181.google.com [209.85.161.181]) by mx1.freebsd.org (Postfix) with ESMTP id AA8038FC0C for ; Wed, 26 Dec 2012 16:15:48 +0000 (UTC) Received: by mail-gg0-f181.google.com with SMTP id s6so1402951ggc.26 for ; Wed, 26 Dec 2012 08:15:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:message-id:date:from:user-agent:mime-version:to:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=k1DPOJhJCswnQcgSIeEk/xv2kFzYdNY81eMWOaTWt5U=; b=wJJZ2HdUg9EaQHKQqbOI5f4FvDSfqmNmQTL8TobzbcdAu9MtkcHy5VgZpQhXGxOLe2 SIjLXjyOMcGWJoYXx4ow70qc+ZeFIh+1wshyUjBHXqQZBWfTreVhW5OEAdUeNnSvYd3s 036aD8tc/mptu2j83UoHRjuDctMHFTn4NNWh8J24U1hFQcJdwSEJIvS6WrXgjCARM68c 99YzeUEEZM/CaxsyCScYGhdlWgaYJ+JbWMbQy9EgxD9mkpsMXbXjs1a6SWq1a/D6zC01 Qawmq7VhaSHisiBTCnd718nb6xI+LOLizq5FYN86om8jFeS5/YvZ8iLKl6zfn1KhUHzR ui5g== X-Received: by 10.101.50.3 with SMTP id c3mr7513974ank.76.1356538542040; Wed, 26 Dec 2012 08:15:42 -0800 (PST) Received: from [192.168.1.33] (vid-196.dhcp.grp10.tnmmrl.infoave.net. [204.116.254.196]) by mx.google.com with ESMTPS id q48sm24723095yhk.7.2012.12.26.08.15.40 (version=SSLv3 cipher=OTHER); Wed, 26 Dec 2012 08:15:41 -0800 (PST) Message-ID: <50DB22AA.6010002@gmail.com> Date: Wed, 26 Dec 2012 10:15:38 -0600 From: "Joseph A. Nagy, Jr" User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:17.0) Gecko/17.0 Thunderbird/17.0 MIME-Version: 1.0 To: freebsd-amd64@freebsd.org Subject: Re: Kernel Compile Fail References: <50CE5CB3.7010906@gmail.com> <50D9B914.1060406@gmail.com> <50D9CFC5.7000103@wenks.ch> In-Reply-To: <50D9CFC5.7000103@wenks.ch> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-amd64@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Porting FreeBSD to the AMD64 platform List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 26 Dec 2012 16:15:49 -0000 On 12/25/12 10:09, Fabian Wenk wrote: > Hello Joseph > > On 25.12.2012 15:32, Joseph A. Nagy, Jr wrote: >> 'make buildkernel kernconf=ALEX-LAPTOP' >> 'make installkernel kernconf=ALEX-LAPTOP' > > I am not sure if 'kernconf=' will work too or if it needs to be in > uppercase letters. Alternatively you could set the following line in > /etc/make.conf: > KERNCONF=ALEX-LAPTOP I did not think of kernconf having to be in upper-case letters, though that is how the handbook shows it (it never states that part has to be caps like the kernel name). > And then in /usr/src/ you only need to use 'make buildkernel' and 'make > installkernel'. That would be nice, I'll give it a go. >> alex@alex-laptop#> cd /usr/src/sys/amd64/conf >> alex@alex-laptop#> ls >> ALEX-LAPTOP DEFAULTS GENERIC GENERIC.hints Makefile >> NOTES XENHVM >> >> I'm not quite sure what to expect now. > > This looks correct. Did you also adjust the 'ident' line in your > ALEX-LAPTOP file from GENERIC to ALEX-LAPTOP? I'm certain I did, I can double-check though. > I am not sure if the "-" in the kernel name will work. I do remember > having problems building a kernel with a number in the name. But this > was more then 10 years ago, but I still avoid it and do use only > letters. So it is probably better to just use ALEXLAPTOP instead of > ALEX-LAPTOP. That name worked when I was running this laptop on i386 but I could shorten it to without the hyphen. I was just trying to keep it like my hostname (alex-laptop.localhost). -- Yours in Christ, Joseph A Nagy Jr "Whoever loves instruction loves knowledge, But he who hates correction is stupid." -- Proverbs 12:1 Emails are not formal business letters, whatever businesses may want. Original content CopyFree (F) under the OWL http://owl.apotheon.org From owner-freebsd-amd64@FreeBSD.ORG Wed Dec 26 16:19:58 2012 Return-Path: Delivered-To: freebsd-amd64@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 13397B6C for ; Wed, 26 Dec 2012 16:19:58 +0000 (UTC) (envelope-from jnagyjr1978@gmail.com) Received: from mail-gg0-f182.google.com (mail-gg0-f182.google.com [209.85.161.182]) by mx1.freebsd.org (Postfix) with ESMTP id B836E8FC12 for ; Wed, 26 Dec 2012 16:19:57 +0000 (UTC) Received: by mail-gg0-f182.google.com with SMTP id e5so1424077ggh.27 for ; Wed, 26 Dec 2012 08:19:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:message-id:date:from:user-agent:mime-version:to:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=I4XfEL0dWr2TmO/KijMKxdKe5dKInV3a6qWeIRGOfd8=; b=deLsKXtyImJcOoXs999Kc0SeMMx9NSvoKEUDZoaFieysG63U34xkDCEe43od2FG6ml JnfBcfhatL1C3r9W5gnHdXkXcmOXCgee91cq0p805rYNGqZIYwHvhCyxD6oUvx1CEGuj 4/Uc/4K1D0Bv2vwU8VEenTG7aeYbMHom+gfjvIl/OLLG8wnu7S5KDyMIjD7M1GPQ66Jz gvLQ2T43ZvwOaJYFZacC8fVI5CIzzwGqsuaAvSAhTo845L56LAxYfjFnpkHH/EZwT9fu ErT6z1Aq5UYPdA5g1UF77fvloxuDDAd6Bpyu/f2xEi4fd5WKe4RCLWkOwIZk7MpC04LP Or6g== X-Received: by 10.236.52.105 with SMTP id d69mr20914556yhc.129.1356538790837; Wed, 26 Dec 2012 08:19:50 -0800 (PST) Received: from [192.168.1.33] (vid-196.dhcp.grp10.tnmmrl.infoave.net. [204.116.254.196]) by mx.google.com with ESMTPS id l51sm24712257yhh.16.2012.12.26.08.19.49 (version=SSLv3 cipher=OTHER); Wed, 26 Dec 2012 08:19:49 -0800 (PST) Message-ID: <50DB23A3.1070005@gmail.com> Date: Wed, 26 Dec 2012 10:19:47 -0600 From: "Joseph A. Nagy, Jr" User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:17.0) Gecko/17.0 Thunderbird/17.0 MIME-Version: 1.0 To: freebsd-amd64@freebsd.org Subject: Re: Kernel Compile Fail References: <50CE5CB3.7010906@gmail.com> <50D9B914.1060406@gmail.com> <50D9CFC5.7000103@wenks.ch> In-Reply-To: <50D9CFC5.7000103@wenks.ch> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-amd64@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Porting FreeBSD to the AMD64 platform List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 26 Dec 2012 16:19:58 -0000 On 12/25/12 10:09, Fabian Wenk wrote: > I am not sure if 'kernconf=' will work too or if it needs to be in > uppercase letters. Alternatively you could set the following line in > /etc/make.conf: > KERNCONF=ALEX-LAPTOP Indeed, this has to be in caps (just thought I'd follow up with that). Again, thanks for all the help! -- Yours in Christ, Joseph A Nagy Jr "Whoever loves instruction loves knowledge, But he who hates correction is stupid." -- Proverbs 12:1 Emails are not formal business letters, whatever businesses may want. Original content CopyFree (F) under the OWL http://owl.apotheon.org From owner-freebsd-amd64@FreeBSD.ORG Thu Dec 27 04:50:01 2012 Return-Path: Delivered-To: freebsd-amd64@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 9B627B12 for ; Thu, 27 Dec 2012 04:50:01 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by mx1.freebsd.org (Postfix) with ESMTP id 7F9778FC14 for ; Thu, 27 Dec 2012 04:50:01 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id qBR4o1mK001578 for ; Thu, 27 Dec 2012 04:50:01 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id qBR4o1mU001577; Thu, 27 Dec 2012 04:50:01 GMT (envelope-from gnats) Date: Thu, 27 Dec 2012 04:50:01 GMT Message-Id: <201212270450.qBR4o1mU001577@freefall.freebsd.org> To: freebsd-amd64@FreeBSD.org Cc: From: KAHO Toshikazu Subject: Re: amd64/174409: stopping during resume caused by io_apic.c change(r243764) X-BeenThere: freebsd-amd64@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: KAHO Toshikazu List-Id: Porting FreeBSD to the AMD64 platform List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 27 Dec 2012 04:50:01 -0000 The following reply was made to PR amd64/174409; it has been noted by GNATS. From: KAHO Toshikazu To: Andriy Gapon Cc: bug-followup@freebsd.org Subject: Re: amd64/174409: stopping during resume caused by io_apic.c change(r243764) Date: Thu, 27 Dec 2012 13:44:34 +0900 Hello, and thank you for new patch. > Could you please now try the following patch instead of all previous > patches/hacks? > http://people.freebsd.org/~avg/acpi-apic-wakeup.patch The machine doesn't wake up with this patch. I cannot find any changes caused by the patch before suspend. After resume, the machine hangs. -- kaho@ed.niigata-u.ac.jp From owner-freebsd-amd64@FreeBSD.ORG Thu Dec 27 05:45:15 2012 Return-Path: Delivered-To: freebsd-amd64@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 4331614E; Thu, 27 Dec 2012 05:45:15 +0000 (UTC) (envelope-from brd@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by mx1.freebsd.org (Postfix) with ESMTP id 11B628FC0A; Thu, 27 Dec 2012 05:45:15 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id qBR5jEk1003711; Thu, 27 Dec 2012 05:45:14 GMT (envelope-from brd@freefall.freebsd.org) Received: (from brd@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id qBR5jEgx003707; Thu, 27 Dec 2012 05:45:14 GMT (envelope-from brd) Date: Thu, 27 Dec 2012 05:45:14 GMT Message-Id: <201212270545.qBR5jEgx003707@freefall.freebsd.org> To: brd@FreeBSD.org, freebsd-amd64@FreeBSD.org, freebsd-ports@FreeBSD.org From: brd@FreeBSD.org Subject: Re: ports/171344: pkg_add -r xorg fails for freebsd 9 system X-Mailman-Approved-At: Thu, 27 Dec 2012 12:26:35 +0000 X-BeenThere: freebsd-amd64@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Porting FreeBSD to the AMD64 platform List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 27 Dec 2012 05:45:15 -0000 Synopsis: pkg_add -r xorg fails for freebsd 9 system Responsible-Changed-From-To: freebsd-amd64->freebsd-ports Responsible-Changed-By: brd Responsible-Changed-When: Thu Dec 27 05:44:52 UTC 2012 Responsible-Changed-Why: http://www.freebsd.org/cgi/query-pr.cgi?pr=171344 From owner-freebsd-amd64@FreeBSD.ORG Sat Dec 29 06:30:02 2012 Return-Path: Delivered-To: freebsd-amd64@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id CB5F5CC2 for ; Sat, 29 Dec 2012 06:30:02 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by mx1.freebsd.org (Postfix) with ESMTP id 961508FC0A for ; Sat, 29 Dec 2012 06:30:02 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id qBT6U2jd078267 for ; Sat, 29 Dec 2012 06:30:02 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id qBT6U2uh078266; Sat, 29 Dec 2012 06:30:02 GMT (envelope-from gnats) Date: Sat, 29 Dec 2012 06:30:02 GMT Message-Id: <201212290630.qBT6U2uh078266@freefall.freebsd.org> To: freebsd-amd64@FreeBSD.org Cc: From: KAHO Toshikazu Subject: Re: amd64/174409: stopping during resume caused by io_apic.c change(r243764) X-BeenThere: freebsd-amd64@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: KAHO Toshikazu List-Id: Porting FreeBSD to the AMD64 platform List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 29 Dec 2012 06:30:02 -0000 The following reply was made to PR amd64/174409; it has been noted by GNATS. From: KAHO Toshikazu To: Andriy Gapon Cc: bug-followup@freebsd.org Subject: Re: amd64/174409: stopping during resume caused by io_apic.c change(r243764) Date: Sat, 29 Dec 2012 15:24:28 +0900 Hello, > Oh, I expected this patch to be an improvement over the previous one... > Please double check that the patch is applied correctly (4 files changed). I re-fetch the patch and apply it. A kernel is building now. I think the patch is applied correctly, but some offsets were occurred. All changes were cleaned before applying the patch. -- message from patch command -- Patching file x86/x86/local_apic.c using Plan A... Hunk #4 succeeded at 1362 (offset -36 lines). Patching file amd64/amd64/mp_machdep.c using Plan A... Hunk #1 succeeded at 1431 with fuzz 2 (offset -277 lines). Patching file dev/acpica/acpi.c using Plan A... Hunk #1 succeeded at 2657 (offset -33 lines). Hunk #2 succeeded at 2744 (offset -33 lines). -- > Unfortunately, I am going on vacation for 2 weeks, so I'll be able to > get back to this issue in ~3 weeks. I see. Don't mind. Good vacation! > If you'd like you can try to use the previous patch (the one that > results in the interrupt storm) and attempt to determine the cause of > the interrupt storm. > The relevant code is in the following files: > sys/contrib/dev/acpica/components/events/evsci.c > sys/contrib/dev/acpica/components/events/evevent.c > sys/contrib/dev/acpica/components/events/evgpe.c > Interesting functions are: AcpiEvSciXruptHandler, AcpiEvFixedEventDetect, > AcpiEvGpeDetect. Thanks for a suggestion. -- kaho@ed.niigata-u.ac.jp