From nobody Sat Mar 18 22:01:58 2023 X-Original-To: freebsd-stable@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4PfFN31Wh3z404rM for ; Sat, 18 Mar 2023 22:02:11 +0000 (UTC) (envelope-from nagy.attila@gmail.com) Received: from mail-ot1-x333.google.com (mail-ot1-x333.google.com [IPv6:2607:f8b0:4864:20::333]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1D4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4PfFN26fvMz424q for ; Sat, 18 Mar 2023 22:02:10 +0000 (UTC) (envelope-from nagy.attila@gmail.com) Authentication-Results: mx1.freebsd.org; none Received: by mail-ot1-x333.google.com with SMTP id 14-20020a9d010e000000b0069f1287f557so444618otu.0 for ; Sat, 18 Mar 2023 15:02:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1679176930; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=7CvfRlQ2es0N/kBSeJTpJhu0WzoyyRJXpsejh6DMGmA=; b=USQgjXKBXJUd8Ly0wRGhuccTfm0tTJvAuorXfxIEN2+BsQF21mcY9iN0Jnmw9Dh6gw 74d+64++vsEUTDNaFU0Txcfg91vZvCdyoFv0PXMWu9m25JeJ/4BI9wbQy1QYJ+D9JGia 6zj13GBvlspRIg82HC6h9z+zumVpSBZuFfy+qVIpsRgQC1wLbUOShHzZlbzEhujKfO23 P84b/nMi+1nU36tEr71V+cv8RkQHoJJT16D/Xn50xtw6BzFNtj7ylpx9EeUoAvsMiA4t xtW76XEmkhVwZTE0TX+/SfmGyg4D4C6OH+ZjgzOJIzDL63p6AJcuYyVCaqPgwJF/f8L1 jf8A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679176930; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=7CvfRlQ2es0N/kBSeJTpJhu0WzoyyRJXpsejh6DMGmA=; b=eCJ8wSCJSoJa5wOYNQgNKLKP6HsL1AAZIaIO69CpGsKvOQhkK+GfXTK6hnZKAD3Fvf tj+6gZ3eAc+xyfjNKos6HDeYRJAinXOCOG+RIvZ6FFlr8de+4QFOUVW0UggnLjd2iMck q/1NHYhgsZlTnwKL4T062owTjhV1RYkeVtz3TXacOpI4NdiVWM5pCkcpi8J7l7ahC03a EEgGMlmQT4ROtWoaYFUfrRsZyTRixumACxEJjftiPby9pIx8ypNPnoUMtAB7jQZ677kX n97xcHUogiUZ4AF/8hPtt6OVEvDlqiHtSm0TLRBx+lRn5UX9hLMbIueQiewD1LxGiNwt CVNA== X-Gm-Message-State: AO0yUKVLcRDTiRh9P12SZRhh7Izx34Ui/KXLQBt7InhDtPNrxn6805nf sfIYZ91t55nA0Hsg/Tdood7NRB1xXQEGK7yZzJzglPsTr5Q= X-Google-Smtp-Source: AK7set8Ly6f07VKeq+hvIGsJwx1PCM4kcotIdk5jum7FcVfV2IKZf2zEXY+v18K6i6R5YiIkO+Mz96hbNBa8ZHbPi0I= X-Received: by 2002:a05:6830:1d90:b0:69f:4a8:d9b4 with SMTP id y16-20020a0568301d9000b0069f04a8d9b4mr965693oti.1.1679176929927; Sat, 18 Mar 2023 15:02:09 -0700 (PDT) List-Id: Production branch of FreeBSD source code List-Archive: https://lists.freebsd.org/archives/freebsd-stable List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-stable@freebsd.org X-BeenThere: freebsd-stable@freebsd.org MIME-Version: 1.0 References: In-Reply-To: From: Attila Nagy Date: Sat, 18 Mar 2023 23:01:58 +0100 Message-ID: Subject: Re: Fwd: Kernel DHCP unpredictable/fails (PXE boot), userspace DHCP works just fine To: Eugene Grosbein Cc: freebsd-stable@freebsd.org Content-Type: multipart/alternative; boundary="0000000000006c683405f733d827" X-Rspamd-Queue-Id: 4PfFN26fvMz424q X-Spamd-Bar: ---- X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; TAGGED_FROM(0.00)[]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US] X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-ThisMailContainsUnwantedMimeParts: N --0000000000006c683405f733d827 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Eugene Grosbein 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
Eugene Grosbein <eugen@gros= bein.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.timecount= er.tsc_shift: 1
kern.timecounter.smp_tsc_adjust: 0
kern.timecounter.s= mp_tsc: 1
kern.timecounter.invariant_tsc: 1
kern.timecounter.fast_get= time: 1
kern.timecounter.tick: 1
kern.timecounter.choice: TSC-low(100= 0) ACPI-fast(900) HPET(950) i8254(0) dummy(-1000000)
kern.timecounter.ha= rdware: 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: 1397374= 857
kern.timecounter.tc.TSC-low.counter: 3785476192
kern.timecounter.= tc.TSC-low.mask: 4294967295
kern.timecounter.tc.ACPI-fast.quality: 900kern.timecounter.tc.ACPI-fast.frequency: 3579545
kern.timecounter.tc.A= CPI-fast.counter: 3688926057
kern.timecounter.tc.ACPI-fast.mask: 4294967= 295
kern.timecounter.tc.HPET.quality: 950
kern.timecounter.tc.HPET.fr= equency: 14318180
kern.timecounter.tc.HPET.counter: 180764627
kern.ti= mecounter.tc.HPET.mask: 4294967295
kern.timecounter.tc.i8254.quality: 0<= br>kern.timecounter.tc.i8254.frequency: 1193182
kern.timecounter.tc.i825= 4.counter: 745
kern.timecounter.tc.i8254.mask: 65535
kern.eventtimer.= choice: LAPIC(600) i8254(100)
kern.eventtimer.et.i8254.quality: 100
k= ern.eventtimer.et.i8254.frequency: 1193182
kern.eventtimer.et.i8254.flag= s: 1
kern.eventtimer.et.LAPIC.quality: 600
kern.eventtimer.et.LAPIC.f= requency: 49906250
kern.eventtimer.et.LAPIC.flags: 7
kern.eventtimer.= periodic: 0
kern.eventtimer.timer: LAPIC
kern.eventtimer.idletick: 0<= br>kern.eventtimer.singlemul: 2

Indeed, it sel= ects TSC-low.


After it booted to single- or multi-user mode.
Also, show verbose boot log (bootverbose).
(with= the original kernel/settings and after changing to HPET)

Sometimes UEFI/BIOS SETUP has some settings for ACPI/HPET timers (enable/di= sable),
did you try "playing" with such options?
Nop= e, I haven't thought about that.
It's enabled (default set= ting).
--0000000000006c683405f733d827--