Re: DeLock 10x SATA AHCI controller not working properly

2016-11-15 Thread Jia-Shiun Li
according to the msgs, the controller pretended to be a 12-port host
to hide port multipliers behind it? Creative, but then any magic
(or bugs) it does remains vendor-specific and unknown to outside world.

Looks there is no firmware or jumpers to change this behavior.
http://www.addonics.com/products/ad10sa6gpx2.php


-Jia-Shiun.


On Tue, Nov 8, 2016 at 1:42 PM, Alexander Motin  wrote:

> As I have told before, this card is from completely different price
> segment then proper SAS/SATA HBAs.  For its $80 it is not promised to be
> reliable.  But in case anything can be done, I'll try to take a look on
> it in couple weeks when I get one and return home.
>
> On 07.11.2016 16:19, Daniel Engberg wrote:
> > I discussed this card briefly with Alexander Motin (@mav) back in 2015,
> > https://forums.freebsd.org/threads/50411/page-2#post-282648 .
> > I've CCed him for suggestions.
> >
> > https://lists.freebsd.org/pipermail/freebsd-current/
> 2016-October/063668.html
>
> --
> Alexander Motin
> ___
> freebsd-current@freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-current
> To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"
>
___
freebsd-current@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"


Re: CURRENT [r308668] autofs kernel panic

2016-11-15 Thread Edward Tomasz Napierała
On 1115T1016, Alex Deiter wrote:
> Hello,
> 
> FreeBSD 12.0-CURRENT-r308668 amd64 crashed on "pkg install” command:
> 
> # cat /usr/local/etc/pkg/repos/local.conf
> local: {
> url: "file:///net/nostromo/var/devel/pkg",
> enabled: yes
> }
> 
> Path /net/nostromo/var/devel/pkg accessible via autofs/automountd:
> 
> # ls /net/nostromo/var/devel/pkg
> All Latest digests.txz meta.txz packagesite.txz
> 
> # mount -t nfs
> nostromo:/var/devel/pkg on /net/nostromo/var/devel/pkg (nfs, nosuid,
> automounted)
> 
> # kgdb /usr/lib/debug/boot/kernel/kernel.debug /var/crash/vmcore.0
> ...
> Unread portion of the kernel message buffer:
> kernel trap 12 with interrupts disabled
> 
> 
> Fatal trap 12: page fault while in kernel mode
> cpuid = 0; apic id = 00
> fault virtual address = 0x100df
> fault code = supervisor read data, page not present
> instruction pointer = 0x20:0x8063c88d
> stack pointer = 0x28:0xfe085f966520
> frame pointer = 0x28:0xfe085f966570
> code segment = base 0x0, limit 0xf, type 0x1b
> = DPL 0, pres 1, long 1, def32 0, gran 1
> processor eflags = resume, IOPL = 0
> current process = -134214453 (pkg)
> 
> kgdb: kvm_read: invalid address (0x6c6576656c6572)
> kgdb: kvm_read: invalid address (0xf8000ce021d8)
> #0  0x in ?? ()
> (kgdb) list *0x8063c88d
> 0x8063c88d is in hardclock_cnt (/usr/src/sys/kern/kern_clock.c:568).

[..]

It looks a bit weird - the "kvm_read" errors, and also the one-function
traceback that contains only one function, that seems unrelated to autofs.
Are you sure you're using the right kernel?  Could you try the usual

kgdb /boot/kernel/kernel /var/crash/vmcore.0

instead?  Thanks!

___
freebsd-current@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"

Re: CURRENT [r308668] autofs kernel panic

2016-11-15 Thread Alex Deiter
Hello Edward,

Thank you for the quick reply!
I was able to reproduce this panic on default GENERIC kernel (my test
system and laptop):

# kgdb /boot/kernel/kernel /var/crash/vmcore.2
GNU gdb 6.1.1 [FreeBSD]
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "amd64-marcel-freebsd"...

Unread portion of the kernel message buffer:
kernel trap 12 with interrupts disabled


Fatal trap 12: page fault while in kernel mode
cpuid = 3; apic id = 06
fault virtual address = 0xe0
fault code = supervisor read data, page not present
instruction pointer = 0x20:0x809fe487
stack pointer= 0x28:0xfe085f5d4560
frame pointer= 0x28:0xfe085f5d45b0
code segment = base 0x0, limit 0xf, type 0x1b
= DPL 0, pres 1, long 1, def32 0, gran 1
processor eflags = resume, IOPL = 0
current process = 0 (pkg)

kgdb: kvm_read: invalid address (0x)
Reading symbols from /boot/kernel/zfs.ko...Reading symbols from
/usr/lib/debug//boot/kernel/zfs.ko.debug...done.
done.
Loaded symbols for /boot/kernel/zfs.ko
Reading symbols from /boot/kernel/opensolaris.ko...Reading symbols
from /usr/lib/debug//boot/kernel/opensolaris.ko.debug...done.
done.
Loaded symbols for /boot/kernel/opensolaris.ko
Reading symbols from /boot/kernel/ums.ko...Reading symbols from
/usr/lib/debug//boot/kernel/ums.ko.debug...done.
done.
Loaded symbols for /boot/kernel/ums.ko
Reading symbols from /boot/kernel/autofs.ko...Reading symbols from
/usr/lib/debug//boot/kernel/autofs.ko.debug...done.
done.
Loaded symbols for /boot/kernel/autofs.ko
#0  0x in ?? ()
(kgdb)


(kgdb) bt
#0  0x in ?? ()
Cannot access memory at address 0x0
(kgdb)

Please take a look attached file. Let me know how I can assist further.

Thank you!

2016-11-15 19:31 GMT+03:00 Edward Tomasz Napierała :
> On 1115T1016, Alex Deiter wrote:
>> Hello,
>>
>> FreeBSD 12.0-CURRENT-r308668 amd64 crashed on "pkg install” command:
>>
>> # cat /usr/local/etc/pkg/repos/local.conf
>> local: {
>> url: "file:///net/nostromo/var/devel/pkg",
>> enabled: yes
>> }
>>
>> Path /net/nostromo/var/devel/pkg accessible via autofs/automountd:
>>
>> # ls /net/nostromo/var/devel/pkg
>> All Latest digests.txz meta.txz packagesite.txz
>>
>> # mount -t nfs
>> nostromo:/var/devel/pkg on /net/nostromo/var/devel/pkg (nfs, nosuid,
>> automounted)
>>
>> # kgdb /usr/lib/debug/boot/kernel/kernel.debug /var/crash/vmcore.0
>> ...
>> Unread portion of the kernel message buffer:
>> kernel trap 12 with interrupts disabled
>>
>>
>> Fatal trap 12: page fault while in kernel mode
>> cpuid = 0; apic id = 00
>> fault virtual address = 0x100df
>> fault code = supervisor read data, page not present
>> instruction pointer = 0x20:0x8063c88d
>> stack pointer = 0x28:0xfe085f966520
>> frame pointer = 0x28:0xfe085f966570
>> code segment = base 0x0, limit 0xf, type 0x1b
>> = DPL 0, pres 1, long 1, def32 0, gran 1
>> processor eflags = resume, IOPL = 0
>> current process = -134214453 (pkg)
>>
>> kgdb: kvm_read: invalid address (0x6c6576656c6572)
>> kgdb: kvm_read: invalid address (0xf8000ce021d8)
>> #0  0x in ?? ()
>> (kgdb) list *0x8063c88d
>> 0x8063c88d is in hardclock_cnt (/usr/src/sys/kern/kern_clock.c:568).
>
> [..]
>
> It looks a bit weird - the "kvm_read" errors, and also the one-function
> traceback that contains only one function, that seems unrelated to autofs.
> Are you sure you're using the right kernel?  Could you try the usual
>
> kgdb /boot/kernel/kernel /var/crash/vmcore.0
>
> instead?  Thanks!
>



-- 
Alex Deiter
serenity.deiter.local dumped core - see /var/crash/vmcore.2

Tue Nov 15 20:11:24 MSK 2016

FreeBSD serenity.deiter.local 12.0-CURRENT FreeBSD 12.0-CURRENT #0 r308668M: 
Tue Nov 15 19:46:51 MSK 2016 
root@nostromo.deiter.local:/usr/obj/usr/src/sys/GENERIC  amd64

panic: 

GNU gdb 6.1.1 [FreeBSD]
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "amd64-marcel-freebsd"...kgdb: kvm_read: invalid 
address (0x)


Unread portion of the kernel message buffer:
kernel trap 12 with interrupts disabled


Fatal trap 12: page fault while in kernel mode
cpuid = 3; apic id = 06
fault virtual address   = 0xe0
fault code  = supervisor read data, page not present
instruction pointer = 0x20:0x809fe487
stack pointer   = 0x28:0xfe085f5d4560
frame pointer   = 

FreeBSD_HEAD_amd64_gcc - Build #1704 - Fixed

2016-11-15 Thread jenkins-admin
FreeBSD_HEAD_amd64_gcc - Build #1704 - Fixed:

Build information: https://jenkins.FreeBSD.org/job/FreeBSD_HEAD_amd64_gcc/1704/
Full change log: 
https://jenkins.FreeBSD.org/job/FreeBSD_HEAD_amd64_gcc/1704/changes
Full build log: 
https://jenkins.FreeBSD.org/job/FreeBSD_HEAD_amd64_gcc/1704/console

Change summaries:

308695 by mizhka:
[BHND] correct spelling error in macro name

This commit is part of D6920 review. One of macro had wrong prefix:
 BMCA => BCMA

Reviewed by:landonf, adrian (mentor)
Approved by:adrian (mentor)
Differential Revision:  https://reviews.freebsd.org/D6920

308694 by markj:
Plug a lock leak in sysctl_ifmalist().

Fix style in the local variable declarations.

PR: 214542
MFC after:  1 week

308693 by loos:
Change the TI aintc driver name to "ti_aintc" to avoid the conflict with
the aintc driver for Allwinner A10.

This fixes the boot of the GENERIC ARM kernel on TI/AM335x SoCs.

Sponsored by:   Rubicon Communications, LLC (Netgate)

308692 by loos:
Fix ti_gpio_detach() to avoid crashing if something goes wrong.

Sponsored by:   Rubicon Communication, LLC (Netgate)

308691 by alc:
Remove most of the code for implementing PG_CACHED pages.  (This change does
not remove user-space visible fields from vm_cnt or all of the references to
cached pages from comments.  Those changes will come later.)

Reviewed by:kib, markj
Tested by:  pho
Sponsored by:   Dell EMC Isilon
Differential Revision:  https://reviews.freebsd.org/D8497

308690 by jhb:
Sync instruction cache's after writing user breakpoints on MIPS.

Add an implementation for pmaps_sync_icache() on MIPS that sync's the
instruction cache on all CPUs via smp_rendezvous() after a debugger
inserts a breakpoint via ptrace(PT_IO).

Tested by:  kan (on Creator CI20 running Ingenic JZ4780 SOC)
MFC after:  2 weeks
Sponsored by:   DARPA / AFRL

___
freebsd-current@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"


FreeBSD_HEAD_amd64_gcc - Build #1702 - Failure

2016-11-15 Thread jenkins-admin
FreeBSD_HEAD_amd64_gcc - Build #1702 - Failure:

Build information: https://jenkins.FreeBSD.org/job/FreeBSD_HEAD_amd64_gcc/1702/
Full change log: 
https://jenkins.FreeBSD.org/job/FreeBSD_HEAD_amd64_gcc/1702/changes
Full build log: 
https://jenkins.FreeBSD.org/job/FreeBSD_HEAD_amd64_gcc/1702/console

Change summaries:



The end of the build log:

Started by upstream project "FreeBSD_HEAD" build number 887
originally caused by:
 Started by an SCM change
Building remotely on jenkins10a.freebsd.org (FreeBSD-10) in workspace 
/builds/FreeBSD_HEAD_amd64_gcc
Updating svn://svn.freebsd.org/base/head at revision '2016-11-15T12:47:51.331 
+'
At revision 308689

No changes for svn://svn.freebsd.org/base/head since the previous build
No emails were triggered.
[FreeBSD_HEAD_amd64_gcc] $ /bin/sh -xe /tmp/hudson2476895850218832180.sh
+ cat
+ svn revert Makefile.inc1
+ svn revert sys/boot/i386/Makefile
Reverted 'sys/boot/i386/Makefile'
+ patch -f
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--
|Index: sys/boot/i386/Makefile
|===
|--- sys/boot/i386/Makefile (revision 280912)
|+++ sys/boot/i386/Makefile (working copy)
--
Patching file sys/boot/i386/Makefile using Plan A...
Hunk #1 succeeded at 16 (offset 4 lines).
Hmm...  Ignoring the trailing garbage.
done
+ /vm/freebsd-ci/scripts/build/cross-build.sh
+ [ -z /builds/FreeBSD_HEAD_amd64_gcc ]
+ [ -z amd64 ]
+ export MAKEOBJDIRPREFIX=/builds/FreeBSD_HEAD_amd64_gcc/obj
+ mkdir -p /builds/FreeBSD_HEAD_amd64_gcc/obj
+ echo -e 'NO_WERROR=yes
WERROR=
WITH_FAST_DEPEND=yes'
+ cat
+ set +x
--
>>> /builds/FreeBSD_HEAD_amd64_gcc/make.conf contains:
+ cat /builds/FreeBSD_HEAD_amd64_gcc/make.conf
# Put make.conf entries here
NO_WERROR=yes
WERROR=
WITH_FAST_DEPEND=yes
+ set +x
--
+ sudo pkg install -y devel/amd64-xtoolchain-gcc
Updating FreeBSD repository catalogue...
pkg: http://pkg.FreeBSD.org/FreeBSD:10:amd64/latest/meta.txz: Not Found
repository FreeBSD has no meta file, using default settings
pkg: http://pkg.FreeBSD.org/FreeBSD:10:amd64/latest/packagesite.txz: Not Found
Unable to update repository FreeBSD
All repositories are up-to-date.
pkg: Repository FreeBSD cannot be opened. 'pkg update' required
pkg: No packages available to install matching 'devel/amd64-xtoolchain-gcc' 
have been found in the repositories
Build step 'Execute shell' marked build as failure
[WARNINGS] Skipping publisher since build result is FAILURE
IRC notifier plugin: Sending notification to: #freebsd-commits
Email was triggered for: Failure - Any
Sending email for trigger: Failure - Any
___
freebsd-current@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"


CURRENT [r308668] autofs kernel panic

2016-11-15 Thread Alex Deiter
Hello,

FreeBSD 12.0-CURRENT-r308668 amd64 crashed on "pkg install” command:

# cat /usr/local/etc/pkg/repos/local.conf
local: {
url: "file:///net/nostromo/var/devel/pkg",
enabled: yes
}

Path /net/nostromo/var/devel/pkg accessible via autofs/automountd:

# ls /net/nostromo/var/devel/pkg
All Latest digests.txz meta.txz packagesite.txz

# mount -t nfs
nostromo:/var/devel/pkg on /net/nostromo/var/devel/pkg (nfs, nosuid,
automounted)

# kgdb /usr/lib/debug/boot/kernel/kernel.debug /var/crash/vmcore.0
...
Unread portion of the kernel message buffer:
kernel trap 12 with interrupts disabled


Fatal trap 12: page fault while in kernel mode
cpuid = 0; apic id = 00
fault virtual address = 0x100df
fault code = supervisor read data, page not present
instruction pointer = 0x20:0x8063c88d
stack pointer = 0x28:0xfe085f966520
frame pointer = 0x28:0xfe085f966570
code segment = base 0x0, limit 0xf, type 0x1b
= DPL 0, pres 1, long 1, def32 0, gran 1
processor eflags = resume, IOPL = 0
current process = -134214453 (pkg)

kgdb: kvm_read: invalid address (0x6c6576656c6572)
kgdb: kvm_read: invalid address (0xf8000ce021d8)
#0  0x in ?? ()
(kgdb) list *0x8063c88d
0x8063c88d is in hardclock_cnt (/usr/src/sys/kern/kern_clock.c:568).
563 if (itimerdecr(>p_timer[ITIMER_VIRTUAL],
564 tick * cnt) == 0)
565 flags |= TDF_ALRMPEND | TDF_ASTPENDING;
566 PROC_ITIMUNLOCK(p);
567 }
568 if (timevalisset(>p_timer[ITIMER_PROF].it_value)) {
569 PROC_ITIMLOCK(p);
570 if (itimerdecr(>p_timer[ITIMER_PROF],
571 tick * cnt) == 0)
572 flags |= TDF_PROFPEND | TDF_ASTPENDING;
(kgdb)

This kernel panic can be easy reproduce. Please let me know how I can
assist further.

Please take a look core.txt.0 => http://pastebin.ca/3739082

Thank you!

Alex Deiter
alex.dei...@gmail.com



-- 
Alex Deiter
___
freebsd-current@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"

FreeBSD_HEAD_amd64_gcc - Build #1703 - Still Failing

2016-11-15 Thread jenkins-admin
FreeBSD_HEAD_amd64_gcc - Build #1703 - Still Failing:

Build information: https://jenkins.FreeBSD.org/job/FreeBSD_HEAD_amd64_gcc/1703/
Full change log: 
https://jenkins.FreeBSD.org/job/FreeBSD_HEAD_amd64_gcc/1703/changes
Full build log: 
https://jenkins.FreeBSD.org/job/FreeBSD_HEAD_amd64_gcc/1703/console

Change summaries:



The end of the build log:

Started by upstream project "FreeBSD_HEAD" build number 888
originally caused by:
 Started by an SCM change
Building remotely on jenkins10a.freebsd.org (FreeBSD-10) in workspace 
/builds/FreeBSD_HEAD_amd64_gcc
Updating svn://svn.freebsd.org/base/head at revision '2016-11-15T14:08:33.257 
+'
At revision 308689

No changes for svn://svn.freebsd.org/base/head since the previous build
No emails were triggered.
[FreeBSD_HEAD_amd64_gcc] $ /bin/sh -xe /tmp/hudson7310824568853857641.sh
+ cat
+ svn revert Makefile.inc1
+ svn revert sys/boot/i386/Makefile
Reverted 'sys/boot/i386/Makefile'
+ patch -f
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--
|Index: sys/boot/i386/Makefile
|===
|--- sys/boot/i386/Makefile (revision 280912)
|+++ sys/boot/i386/Makefile (working copy)
--
Patching file sys/boot/i386/Makefile using Plan A...
Hunk #1 succeeded at 16 (offset 4 lines).
Hmm...  Ignoring the trailing garbage.
done
+ /vm/freebsd-ci/scripts/build/cross-build.sh
+ [ -z /builds/FreeBSD_HEAD_amd64_gcc ]
+ [ -z amd64 ]
+ export MAKEOBJDIRPREFIX=/builds/FreeBSD_HEAD_amd64_gcc/obj
+ mkdir -p /builds/FreeBSD_HEAD_amd64_gcc/obj
+ echo -e 'NO_WERROR=yes
WERROR=
WITH_FAST_DEPEND=yes'
+ cat
+ set +x
--
>>> /builds/FreeBSD_HEAD_amd64_gcc/make.conf contains:
+ cat /builds/FreeBSD_HEAD_amd64_gcc/make.conf
# Put make.conf entries here
NO_WERROR=yes
WERROR=
WITH_FAST_DEPEND=yes
+ set +x
--
+ sudo pkg install -y devel/amd64-xtoolchain-gcc
Updating FreeBSD repository catalogue...
pkg: http://pkg.FreeBSD.org/FreeBSD:10:amd64/latest/meta.txz: Not Found
repository FreeBSD has no meta file, using default settings
pkg: http://pkg.FreeBSD.org/FreeBSD:10:amd64/latest/packagesite.txz: Not Found
Unable to update repository FreeBSD
All repositories are up-to-date.
pkg: Repository FreeBSD cannot be opened. 'pkg update' required
pkg: No packages available to install matching 'devel/amd64-xtoolchain-gcc' 
have been found in the repositories
Build step 'Execute shell' marked build as failure
[WARNINGS] Skipping publisher since build result is FAILURE
IRC notifier plugin: Sending notification to: #freebsd-commits
Email was triggered for: Failure - Any
Sending email for trigger: Failure - Any
___
freebsd-current@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"