Re: kldload zfs spins the system after upgrading from 12.2 to 13-BETA

2021-03-19 Thread Yoshihiro Ota
On Tue, 9 Mar 2021 11:24:53 +0200
Andriy Gapon  wrote:

> On 08/03/2021 05:24, Yoshihiro Ota wrote:
> > On Sun, 7 Mar 2021 00:09:33 +0200
> > Andriy Gapon  wrote:
> > 
> >> On 06/03/2021 20:09, Yoshihiro Ota wrote:
> >>> Hi all,
> >>>
> >>> I'm upgrading fron 12.2-RELEASE to 13-BETA/RC one by one.
> >>>
> >>> After upgrading one in VMWare, 'zfs mount -a' hangs the system.
> >>> I don't have boottime zfs mount on nor don't have zfsroot.
> >>> I just simply ran install world/kernel and mergemaster.
> >>
> >> Please use procstat -kk to capture a kernel stack trace of the hung 
> >> process.
> > 
> > Actually, spining was 'kldload zfs'.
> > Console doesn't response but ping and sshd sessions still work.
> > procstat output is below.
> > In addition, this doesn't happen to systems that I've been following 
> > 13-CURRENT
> > but rather happen only wiht a system upgraded from 12.2-RELEASE to 13-RC.
> > 
> > 
> > # procstat -kk 1049
> >   PIDTID COMMTDNAME  KSTACK 
> >   
> >  1049 100215 kldload -   spa_init+0xc6 
> > zfs_kmod_init+0x1a
> > zfs_modevent+0x34 module_register_init+0x8c linker_load_module+0xaab 
> > kern_kldload+0xc1
> > sys_kldload+0x50 syscall+0x17d g_ctx+0xe280bf29 
> > 
> 
> If you could use kgdb to find out what source code line spa_init+0xc6
> corresponds to that may help to see what's going on.
> 

It look me a while to get kgdb working properly.
At last, I got the output.
It looks it is spining on a mutex.

I have few other machines run the same kernel but they can load zfs.ko.
It is only vmware VM that spins with 'kldload zfs'.

vmware# kgdb101 /usr/usr/lib/debug/boot/kernel/zfs.ko.debug
GNU gdb (GDB) 10.1 [GDB v10.1 for FreeBSD]
Copyright (C) 2020 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later 
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "i386-portbld-freebsd13.0".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
.
Find the GDB manual and other documentation resources online at:
.

For help, type "helpType "apropos word" to search for commands related to 
"word"...
Reading symbols from zfs.ko.debug...
(kgdb) info line *spa_init+0xc6
Line 2345 of "/usr/src/sys/contrib/openzfs/module/zfs/spa_misc.c"
   starts at address 0x2b0461 
   and ends at 0x2b0467 .
(kgdb) 

void
spa_init(spa_mode_t mode)
{
mutex_init(_namespace_lock, NULL, MUTEX_DEFAULT, NULL);
mutex_init(_spare_lock, NULL, MUTEX_DEFAULT, NULL); // <- line 2345


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


Re: ThinkPad X1 Carbon Gen 4 unable to boot 13.0-RC1

2021-03-19 Thread Mathias Picker


Fred Hall via freebsd-stable  writes:

I have a ThinkPad X1 Carbon Gen 4 (20FCS0NB00) which has happily 
run FreeBSD 11 and 12, but which can't boot 13.0-RC1 from 
memstick or via freebsd-update. In both cases the boot process 
locks up on the line "hwpstate_intel0:  on 
cpu0"
If running freebsd-update, a work around is to add 
hint.hwpstate_intel.0.disabled="1" in loader.conf. See the note 
under the Eighth Generation (2020) in 
https://wiki.freebsd.org/Laptops/Thinkpad_X1_Carbon
I was quite surprised to find the lack of support for 
hwpstate_intel in 13 when it apparently worked under 11 and 12. 
Does anyone know the status of hwpstate_intel on ThinkPads?


I’m running 13 -STABLE from 10 days ago on a Thinkpad Yoga 3rd 
gen, and hwpstate_intel works fine, never had a problem.


mathiasp:~% sysctl dev.hwpstate_intel 
dev.hwpstate_intel.7.epp: 15

dev.hwpstate_intel.7.%parent: cpu7
dev.hwpstate_intel.7.%pnpinfo: 
dev.hwpstate_intel.7.%location: 
dev.hwpstate_intel.7.%driver: hwpstate_intel

dev.hwpstate_intel.7.%desc: Intel Speed Shift
dev.hwpstate_intel.6.epp: 15
dev.hwpstate_intel.6.%parent: cpu6
dev.hwpstate_intel.6.%pnpinfo: 
dev.hwpstate_intel.6.%location: 
dev.hwpstate_intel.6.%driver: hwpstate_intel

dev.hwpstate_intel.6.%desc: Intel Speed Shift
[snip]

The gen3 is using
sudo dmesg|grep -i cpu
CPU: Intel(R) Core(TM) i7-8550U CPU @ 1.80GHz (1992.08-MHz 
K8-class CPU)

[snip, snip]

mathiasp:~% uname -a
FreeBSD Danton 13.0-STABLE FreeBSD 13.0-STABLE #2 
stable/13-n244845-f21c0366f53: Wed Mar 10 20:53:26 CET 2021 
root@Danton:/usr/obj/usr/src/amd64.amd64/sys/GENERIC  amd64



Cheers,

Mathias

Cheers, 
Fred

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



--
Mathias Picker
Geschäftsführer

mathias.pic...@virtual-earth.de

virtual earth Gesellschaft für Wissens re/prä sentation mbH
http://www.virtual-earth.de/   HRB126870
supp...@virtual-earth.de   Westendstr. 142
089 / 1250 3943
___

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


Important Message sta...@freebsd.org

2021-03-19 Thread ANZ Internet Banking
  
   
 
 
   
 
 
   
 Dear ANZ customer 
 
 Your ANZ Internet Banking access has been violated. We suspected someone other 
than you with IP 178.210.92*** trying to access your information's. 
 
Please verify your banking information with us to show that you are not 
currently away. You have to verify this as soon as possible to prevent your 
online bank account from getting suspended. 
Restore your Access  
© Australia and New Zealand Banking Group Limited (ANZ) ABN 11 005 357 522. 
ACLN and AFSL Number 234527. 
 
 
 
   
 
 
  
___
freebsd-stable@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"


ThinkPad X1 Carbon Gen 4 unable to boot 13.0-RC1

2021-03-19 Thread Fred Hall via freebsd-stable
I have a ThinkPad X1 Carbon Gen 4 (20FCS0NB00) which has happily run FreeBSD 11 
and 12, but which can't boot 13.0-RC1 from memstick or via freebsd-update. In 
both cases the boot process locks up on the line "hwpstate_intel0:  on cpu0"
If running freebsd-update, a work around is to add 
hint.hwpstate_intel.0.disabled="1" in loader.conf. See the note under the 
Eighth Generation (2020) in https://wiki.freebsd.org/Laptops/Thinkpad_X1_Carbon
I was quite surprised to find the lack of support for hwpstate_intel in 13 when 
it apparently worked under 11 and 12. Does anyone know the status of 
hwpstate_intel on ThinkPads?
Cheers, 
Fred
___
freebsd-stable@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"