Re: umass problem with xhci (USB 3)
On 04-Jun-16 1:34 AM, Paul Goyette wrote: With a kernel built from sources dated 2016-05-29 at 23:57:35 UTC, when attaching my external hard drive (near-line backup device), I get the following messages: uhub0 at usb0: vendor 8086 xHCI Root Hub, class 9/0, rev 1.00/1.00, addr 0 ... Jun 4 08:21:37 pokey /netbsd: umass0 at uhub0 port 2 configuration 1 interface 0 Jun 4 08:21:37 pokey /netbsd: umass0: Western Digital Ext HDD 1021, rev 2.00/20.02, addr 24 Jun 4 08:21:37 pokey /netbsd: umass0: using SCSI over Bulk-Only Jun 4 08:21:37 pokey /netbsd: umass0: failed to create xfers Output from a kernel with UMASS_DEBUG / XHCI_DEBUG and xhcidebug = 10 umassdebug = 0x0010 usbdebug = 1 Please Nick
Re: PIE binary broken on arm due to optimization error for crt0-common.c
On Sat, Jun 04, 2016 at 12:43:42PM +0900, Rin Okuyama wrote: > This problem arose after the -O1 hack for lib/csu was removed. > I found that if crt0-common.c is compiled with -O1, segmentation > faults do not take place. Please apply the attached patch as a > workaround. Please let us analyze the failure fully, typically this will strike on other architectures as well sooner or later. Martin
Re: umass problem with xhci (USB 3)
On Sat, 4 Jun 2016, Nick Hudson wrote: Output from a kernel with UMASS_DEBUG / XHCI_DEBUG and xhcidebug = 10 umassdebug = 0x0010 usbdebug = 1 Please Interestingly, with today's sources and the above-listed debug set, everything seems to work just fine! I guess I need to rebuild my non-debug kernel and see if it works. +--+--++ | Paul Goyette | PGP Key fingerprint: | E-mail addresses: | | (Retired)| FA29 0E3B 35AF E8AE 6651 | paul at whooppee.com | | Kernel Developer | 0786 F758 55DE 53BA 7731 | pgoyette at netbsd.org | +--+--++
Re: nfs client kernel crash
On Thu, 2 Jun 2016, Christos Zoulas wrote: | The PR is for netbsd-5 and is some years old. Do it make sense to create a | new bug report for netbsd-7? Sure, and close 40491 saying superceded by the new one. I have opened a new bug-report (kern/51215). The PR kern/40491 is already closed. The PR/50432 may describe the same problem. Regards Uwe
Re: PIE binary broken on arm due to optimization error for crt0-common.c
On Sat, Jun 04, 2016 at 12:43:42PM +0900, Rin Okuyama wrote: > On arm, segmentation faults occur in termination of PIE binaries: Does the attached patch make a difference? Joerg Index: crt0-common.c === RCS file: /home/joerg/repo/netbsd/src/lib/csu/common/crt0-common.c,v retrieving revision 1.13 diff -u -p -r1.13 crt0-common.c --- crt0-common.c 31 Jan 2013 22:24:25 - 1.13 +++ crt0-common.c 4 Jun 2016 11:28:08 - @@ -95,23 +95,23 @@ do {\ * Since we don't need .init or .fini sections, just code them in C * to make life easier. */ -__weakref_visible const fptr_t preinit_array_start[1] +__weakref_visible const fptr_t preinit_array_start __weak_reference(__preinit_array_start); -__weakref_visible const fptr_t preinit_array_end[1] +__weakref_visible const fptr_t preinit_array_end __weak_reference(__preinit_array_end); -__weakref_visible const fptr_t init_array_start[1] +__weakref_visible const fptr_t init_array_start __weak_reference(__init_array_start); -__weakref_visible const fptr_t init_array_end[1] +__weakref_visible const fptr_t init_array_end __weak_reference(__init_array_end); -__weakref_visible const fptr_t fini_array_start[1] +__weakref_visible const fptr_t fini_array_start __weak_reference(__fini_array_start); -__weakref_visible const fptr_t fini_array_end[1] +__weakref_visible const fptr_t fini_array_end __weak_reference(__fini_array_end); static inline void _preinit(void) { - for (const fptr_t *f = preinit_array_start; f < preinit_array_end; f++) { + for (const fptr_t *f = &preinit_array_start; f < &preinit_array_end; f++) { (*f)(); } } @@ -119,7 +119,7 @@ _preinit(void) static inline void _init(void) { - for (const fptr_t *f = init_array_start; f < init_array_end; f++) { + for (const fptr_t *f = &init_array_start; f < &init_array_end; f++) { (*f)(); } } @@ -127,7 +127,7 @@ _init(void) static void _fini(void) { - for (const fptr_t *f = fini_array_start; f < fini_array_end; f++) { + for (const fptr_t *f = &fini_array_start; f < &fini_array_end; f++) { (*f)(); } }
Re: PIE binary broken on arm due to optimization error for crt0-common.c
Unfortunately not. SEGV is received in the just same way as before. Thanks, Rin On 2016/06/04 20:29, Joerg Sonnenberger wrote: On Sat, Jun 04, 2016 at 12:43:42PM +0900, Rin Okuyama wrote: On arm, segmentation faults occur in termination of PIE binaries: Does the attached patch make a difference? Joerg
Re: nfs client kernel crash
On Jun 4, 11:58am, 6b...@6bone.informatik.uni-leipzig.de (6b...@6bone.informatik.uni-leipzig.de) wrote: -- Subject: Re: nfs client kernel crash | On Thu, 2 Jun 2016, Christos Zoulas wrote: | | > | The PR is for netbsd-5 and is some years old. Do it make sense to create a | > | new bug report for netbsd-7? | > | > Sure, and close 40491 saying superceded by the new one. | | I have opened a new bug-report (kern/51215). The PR kern/40491 is already | closed. | | The PR/50432 may describe the same problem. Thanks! christos
Re: Lenovo T500 hang
On Fri, 3 Jun 2016, Michael van Elst wrote: net...@precedence.co.uk (Stephen Borrill) writes: Does it run at a sensible temperature? Mine runs very hot and runs the battery down very quickly. Probably needs some cleaning and/or there is a problem with the fan and heat-pipes. Under Windows it is cool and I get 6-hour battery life... -- Stephen
Re: umass problem with xhci (USB 3)
On Sat, 4 Jun 2016, Paul Goyette wrote: On Sat, 4 Jun 2016, Nick Hudson wrote: Output from a kernel with UMASS_DEBUG / XHCI_DEBUG and xhcidebug = 10 umassdebug = 0x0010 usbdebug = 1 Please Interestingly, with today's sources and the above-listed debug set, everything seems to work just fine! I guess I need to rebuild my non-debug kernel and see if it works. Well, this must have been a transient problem. A newly-built kernel works just fine, and now my original kernel works, too! At least I learned how to turn on the USB debugging stuff! +--+--++ | Paul Goyette | PGP Key fingerprint: | E-mail addresses: | | (Retired)| FA29 0E3B 35AF E8AE 6651 | paul at whooppee.com | | Kernel Developer | 0786 F758 55DE 53BA 7731 | pgoyette at netbsd.org | +--+--++
daily CVS update output
Updating src tree: P src/crypto/external/bsd/openssl/dist/crypto/x86_64cpuid.pl P src/crypto/external/bsd/openssl/dist/crypto/perlasm/x86gas.pl P src/crypto/external/bsd/openssl/lib/libcrypto/arch/i386/x86cpuid.S P src/crypto/external/bsd/openssl/lib/libcrypto/arch/x86_64/x86_64cpuid.S P src/distrib/sets/lists/base/mi P src/distrib/sets/lists/base/shl.mi P src/distrib/sets/lists/comp/mi P src/distrib/sets/lists/comp/shl.mi P src/distrib/sets/lists/debug/mi P src/distrib/sets/lists/debug/shl.mi P src/distrib/sets/lists/man/mi P src/doc/CHANGES P src/doc/HACKS P src/etc/MAKEDEV.tmpl P src/etc/etc.amd64/MAKEDEV.conf P src/external/gpl3/gcc/lib/Makefile P src/external/gpl3/gdb/dist/gdb/armnbsd-tdep.c P src/external/gpl3/gdb.old/dist/gdb/armnbsd-tdep.c P src/lib/Makefile P src/lib/csu/common/crtbegin.c P src/sbin/Makefile U src/sbin/nvmectl/Makefile U src/sbin/nvmectl/devlist.c U src/sbin/nvmectl/firmware.c U src/sbin/nvmectl/identify.c U src/sbin/nvmectl/logpage.c U src/sbin/nvmectl/nvme.h U src/sbin/nvmectl/nvmectl.8 U src/sbin/nvmectl/nvmectl.c U src/sbin/nvmectl/nvmectl.h U src/sbin/nvmectl/perftest.c U src/sbin/nvmectl/power.c U src/sbin/nvmectl/reset.c P src/sys/arch/amd64/amd64/locore.S P src/sys/arch/i386/i386/locore.S U src/sys/arch/sparc64/doc/TODO P src/sys/arch/sparc64/sparc64/locore.s P src/sys/conf/majors P src/sys/dev/ic/Makefile P src/sys/dev/ic/nvme.c U src/sys/dev/ic/nvmeio.h P src/sys/dev/ic/nvmereg.h P src/sys/dev/ic/nvmevar.h P src/sys/kern/init_main.c P src/usr.bin/Makefile P src/usr.bin/make/main.c P src/usr.bin/make/meta.c U src/usr.bin/sys_info/Makefile U src/usr.bin/sys_info/README U src/usr.bin/sys_info/sys_info.1 U src/usr.bin/sys_info/sys_info.sh Updating xsrc tree: Killing core files: Running the SUP scanner: SUP Scan for current starting at Sun Jun 5 03:02:05 2016 SUP Scan for current completed at Sun Jun 5 03:02:22 2016 SUP Scan for mirror starting at Sun Jun 5 03:02:22 2016 SUP Scan for mirror completed at Sun Jun 5 03:05:07 2016 Updating file list: -rw-rw-r-- 1 srcmastr netbsd 53556779 Jun 5 03:06 ls-lRA.gz