[Bug 260868] possible i386 regression after ce35a3bc852d25cb989bc1f3dc4ddb723d7d5117

From: <bugzilla-noreply_at_freebsd.org>
Date: Sun, 02 Jan 2022 20:32:18 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=260868

--- Comment #9 from mike@sentex.net ---
(In reply to Mark Johnston from comment #8)
Pretty sure I did it right. Just rebuilding now once more

0{nano13-i386}# git pull --ff-only
Already up to date.
0{nano13-i386}# git restore sys/x86/x86/tsc.c
0{nano13-i386}# 
0{nano13-i386}# git pull --ff-only
Already up to date.
0{nano13-i386}# patch -p1 < p
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|--- a/sys/x86/x86/tsc.c
|+++ b/sys/x86/x86/tsc.c
--------------------------
Patching file sys/x86/x86/tsc.c using Plan A...
Hunk #1 succeeded at 709 (offset -2 lines).
Hunk #2 succeeded at 739 (offset -2 lines).
done
0{nano13-i386}# cd /usr/src/tools/tools/nanobsd/
0{nano13-i386}# sh ./nanobsd.sh -c alix2-lite.conf
00:00:00 ### Exporting NanoBSD variables
00:00:00 ### Setting variable: MAKEOBJDIRPREFIX="/usr/obj/nanobsd.alix2b-lite"
00:00:00 ### Setting variable: NANO_ARCH="i386"
....

On the broken kernel from the previous compile
sysctl.name: Format:N Length:1 Dump:0x00...
sysctl.next: Format:N Length:8 Dump:0x0000000001000000...
sysctl.oidfmt: Format:N Length:6 Dump:0x018004804e00...
sysctl.oiddescr: Format:N Length:1 Dump:0x00...
sysctl.nextnoskip: Format:N Length:4 Dump:0x00000000...
kern.timecounter.tsc_shift: 1
kern.timecounter.invariant_tsc: 0
kern.timecounter.fast_gettime: 1
kern.timecounter.tick: 1
kern.timecounter.choice: TSC(800) i8254(0) dummy(-1000000)
kern.timecounter.hardware: TSC
kern.timecounter.alloweddeviation: 5
kern.timecounter.timehands_count: 2
kern.timecounter.stepwarnings: 0
kern.timecounter.tc.TSC.quality: 800
kern.timecounter.tc.TSC.frequency: 43797106710
kern.timecounter.tc.TSC.counter: 1501354553
kern.timecounter.tc.TSC.mask: 4294967295
kern.timecounter.tc.i8254.quality: 0
kern.timecounter.tc.i8254.frequency: 1193182
kern.timecounter.tc.i8254.counter: 45976
kern.timecounter.tc.i8254.mask: 65535

From a couple of boxes in the field (kernel from mid october)

 sysctl -a kern.timecounter
kern.timecounter.tsc_shift: 1
kern.timecounter.invariant_tsc: 0
kern.timecounter.fast_gettime: 1
kern.timecounter.tick: 1
kern.timecounter.choice: i8254(0) TSC(800) dummy(-1000000)
kern.timecounter.hardware: TSC
kern.timecounter.alloweddeviation: 5
kern.timecounter.timehands_count: 2
kern.timecounter.stepwarnings: 0
kern.timecounter.tc.i8254.quality: 0
kern.timecounter.tc.i8254.frequency: 1193182
kern.timecounter.tc.i8254.counter: 60550
kern.timecounter.tc.i8254.mask: 65535
kern.timecounter.tc.TSC.quality: 800
kern.timecounter.tc.TSC.frequency: 498060517
kern.timecounter.tc.TSC.counter: 2030169375
kern.timecounter.tc.TSC.mask: 4294967295

sysctl -A kern.timecounter
kern.timecounter.tsc_shift: 1
kern.timecounter.invariant_tsc: 0
kern.timecounter.fast_gettime: 1
kern.timecounter.tick: 1
kern.timecounter.choice: i8254(0) TSC(800) dummy(-1000000)
kern.timecounter.hardware: TSC
kern.timecounter.alloweddeviation: 5
kern.timecounter.timehands_count: 2
kern.timecounter.stepwarnings: 0
kern.timecounter.tc.i8254.quality: 0
kern.timecounter.tc.i8254.frequency: 1193182
kern.timecounter.tc.i8254.counter: 872
kern.timecounter.tc.i8254.mask: 65535
kern.timecounter.tc.TSC.quality: 800
kern.timecounter.tc.TSC.frequency: 498060589
kern.timecounter.tc.TSC.counter: 2959254008
kern.timecounter.tc.TSC.mask: 4294967295

 sysctl -a kern.timecounter
kern.timecounter.tsc_shift: 1
kern.timecounter.invariant_tsc: 0
kern.timecounter.fast_gettime: 1
kern.timecounter.tick: 1
kern.timecounter.choice: i8254(0) TSC(800) dummy(-1000000)
kern.timecounter.hardware: TSC
kern.timecounter.alloweddeviation: 5
kern.timecounter.timehands_count: 2
kern.timecounter.stepwarnings: 0
kern.timecounter.tc.i8254.quality: 0
kern.timecounter.tc.i8254.frequency: 1193182
kern.timecounter.tc.i8254.counter: 49583
kern.timecounter.tc.i8254.mask: 65535
kern.timecounter.tc.TSC.quality: 800
kern.timecounter.tc.TSC.frequency: 498060817
kern.timecounter.tc.TSC.counter: 666829629
kern.timecounter.tc.TSC.mask: 4294967295



Could it also have something to do with having to add device apic in order for
the kernel to compile now ? I didnt have that before.

I am booting the 2nd image I made just now with the above steps and its slow as
well. Will post the verbose dmesg and sysctl output once its fully booted in a
sec

-- 
You are receiving this mail because:
You are the assignee for the bug.