Date: Sat, 18 Mar 2023 23:01:58 +0100 From: Attila Nagy <nagy.attila@gmail.com> To: Eugene Grosbein <eugen@grosbein.net> Cc: freebsd-stable@freebsd.org Subject: Re: Fwd: Kernel DHCP unpredictable/fails (PXE boot), userspace DHCP works just fine Message-ID: <CAM2hQG-BtvEz649QsFou_sG-QamEdZscCUygKxSuK_C3_MhNow@mail.gmail.com> In-Reply-To: <ab14beaf-f41b-8f45-05f6-fad8a764eba3@grosbein.net> References: <CAM2hQG-p=bfSh_nxuah9zcTBbz7HQ9pYyvOR2f6rC=CUGePKsg@mail.gmail.com> <CAM2hQG-oDRsoccg3S1LykyUF=joWbdJz=GSPOnUroDRxjZ2_iQ@mail.gmail.com> <ab14beaf-f41b-8f45-05f6-fad8a764eba3@grosbein.net>
next in thread | previous in thread | raw e-mail | index | archive | help
--0000000000006c683405f733d827 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Eugene Grosbein <eugen@grosbein.net> ezt =C3=ADrta (id=C5=91pont: 2023. m= =C3=A1rc. 18., Szo, 21:08): > > For me, it looks like timekeeping problem. Please show output of: > sysctl kern.timecounter kern.eventtimer > kern.timecounter.tsc_shift: 1 kern.timecounter.smp_tsc_adjust: 0 kern.timecounter.smp_tsc: 1 kern.timecounter.invariant_tsc: 1 kern.timecounter.fast_gettime: 1 kern.timecounter.tick: 1 kern.timecounter.choice: TSC-low(1000) ACPI-fast(900) HPET(950) i8254(0) dummy(-1000000) kern.timecounter.hardware: TSC-low kern.timecounter.alloweddeviation: 5 kern.timecounter.timehands_count: 2 kern.timecounter.stepwarnings: 0 kern.timecounter.tc.TSC-low.quality: 1000 kern.timecounter.tc.TSC-low.frequency: 1397374857 kern.timecounter.tc.TSC-low.counter: 3785476192 kern.timecounter.tc.TSC-low.mask: 4294967295 kern.timecounter.tc.ACPI-fast.quality: 900 kern.timecounter.tc.ACPI-fast.frequency: 3579545 kern.timecounter.tc.ACPI-fast.counter: 3688926057 kern.timecounter.tc.ACPI-fast.mask: 4294967295 kern.timecounter.tc.HPET.quality: 950 kern.timecounter.tc.HPET.frequency: 14318180 kern.timecounter.tc.HPET.counter: 180764627 kern.timecounter.tc.HPET.mask: 4294967295 kern.timecounter.tc.i8254.quality: 0 kern.timecounter.tc.i8254.frequency: 1193182 kern.timecounter.tc.i8254.counter: 745 kern.timecounter.tc.i8254.mask: 65535 kern.eventtimer.choice: LAPIC(600) i8254(100) kern.eventtimer.et.i8254.quality: 100 kern.eventtimer.et.i8254.frequency: 1193182 kern.eventtimer.et.i8254.flags: 1 kern.eventtimer.et.LAPIC.quality: 600 kern.eventtimer.et.LAPIC.frequency: 49906250 kern.eventtimer.et.LAPIC.flags: 7 kern.eventtimer.periodic: 0 kern.eventtimer.timer: LAPIC kern.eventtimer.idletick: 0 kern.eventtimer.singlemul: 2 Indeed, it selects TSC-low. > After it booted to single- or multi-user mode. > Also, show verbose boot log (bootverbose). > https://gist.github.com/bra-fsn/bf07136ec7987db1a7e4d2e4d899e13b (with the original kernel/settings and after changing to HPET) Sometimes UEFI/BIOS SETUP has some settings for ACPI/HPET timers > (enable/disable), > did you try "playing" with such options? > Nope, I haven't thought about that. It's enabled (default setting). --0000000000006c683405f733d827 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable <div dir=3D"ltr"><div class=3D"gmail_quote"><div dir=3D"ltr" class=3D"gmail= _attr">Eugene Grosbein <<a href=3D"mailto:eugen@grosbein.net">eugen@gros= bein.net</a>> ezt =C3=ADrta (id=C5=91pont: 2023. m=C3=A1rc. 18., Szo, 21= :08):<br></div><blockquote class=3D"gmail_quote" style=3D"margin:0px 0px 0p= x 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"> <br> For me, it looks like timekeeping problem. Please show output of:<br> sysctl kern.timecounter kern.eventtimer<br></blockquote><div>kern.timecount= er.tsc_shift: 1<br>kern.timecounter.smp_tsc_adjust: 0<br>kern.timecounter.s= mp_tsc: 1<br>kern.timecounter.invariant_tsc: 1<br>kern.timecounter.fast_get= time: 1<br>kern.timecounter.tick: 1<br>kern.timecounter.choice: TSC-low(100= 0) ACPI-fast(900) HPET(950) i8254(0) dummy(-1000000)<br>kern.timecounter.ha= rdware: TSC-low<br>kern.timecounter.alloweddeviation: 5<br>kern.timecounter= .timehands_count: 2<br>kern.timecounter.stepwarnings: 0<br>kern.timecounter= .tc.TSC-low.quality: 1000<br>kern.timecounter.tc.TSC-low.frequency: 1397374= 857<br>kern.timecounter.tc.TSC-low.counter: 3785476192<br>kern.timecounter.= tc.TSC-low.mask: 4294967295<br>kern.timecounter.tc.ACPI-fast.quality: 900<b= r>kern.timecounter.tc.ACPI-fast.frequency: 3579545<br>kern.timecounter.tc.A= CPI-fast.counter: 3688926057<br>kern.timecounter.tc.ACPI-fast.mask: 4294967= 295<br>kern.timecounter.tc.HPET.quality: 950<br>kern.timecounter.tc.HPET.fr= equency: 14318180<br>kern.timecounter.tc.HPET.counter: 180764627<br>kern.ti= mecounter.tc.HPET.mask: 4294967295<br>kern.timecounter.tc.i8254.quality: 0<= br>kern.timecounter.tc.i8254.frequency: 1193182<br>kern.timecounter.tc.i825= 4.counter: 745<br>kern.timecounter.tc.i8254.mask: 65535<br>kern.eventtimer.= choice: LAPIC(600) i8254(100)<br>kern.eventtimer.et.i8254.quality: 100<br>k= ern.eventtimer.et.i8254.frequency: 1193182<br>kern.eventtimer.et.i8254.flag= s: 1<br>kern.eventtimer.et.LAPIC.quality: 600<br>kern.eventtimer.et.LAPIC.f= requency: 49906250<br>kern.eventtimer.et.LAPIC.flags: 7<br>kern.eventtimer.= periodic: 0<br>kern.eventtimer.timer: LAPIC<br>kern.eventtimer.idletick: 0<= br>kern.eventtimer.singlemul: 2<br></div><div><br></div><div>Indeed, it sel= ects TSC-low.<br></div><div><br></div><blockquote class=3D"gmail_quote" sty= le=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);paddi= ng-left:1ex"> <br> After it booted to single- or multi-user mode.<br> Also, show verbose boot log (bootverbose).<br></blockquote><div><a href=3D"= https://gist.github.com/bra-fsn/bf07136ec7987db1a7e4d2e4d899e13b">https://g= ist.github.com/bra-fsn/bf07136ec7987db1a7e4d2e4d899e13b</a></div><div>(with= the original kernel/settings and after changing to HPET)</div><div><br></d= iv><blockquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;bord= er-left:1px solid rgb(204,204,204);padding-left:1ex"> Sometimes UEFI/BIOS SETUP has some settings for ACPI/HPET timers (enable/di= sable),<br> did you try "playing" with such options?<br></blockquote><div>Nop= e, I haven't thought about that.<br></div>It's enabled (default set= ting).<br></div></div> --0000000000006c683405f733d827--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAM2hQG-BtvEz649QsFou_sG-QamEdZscCUygKxSuK_C3_MhNow>