Page MenuHomeFreeBSD
Feed Advanced Search

Jul 29 2021

mhorne committed rG3a9b3a847026: libpmc: remove pe->alias (authored by mhorne).
libpmc: remove pe->alias
Jul 29 2021, 3:27 PM
mhorne committed rGb44f0bd4109f: libpmc: always generate libpmc_events.c (authored by mhorne).
libpmc: always generate libpmc_events.c
Jul 29 2021, 3:27 PM
mhorne committed rGb85044cea605: libpmc: remove unused 'isfixed' variable (authored by mhorne).
libpmc: remove unused 'isfixed' variable
Jul 29 2021, 3:26 PM
mhorne committed rGeae121b18f5b: libpmc: fix "instructions" alias on Intel (authored by mhorne).
libpmc: fix "instructions" alias on Intel
Jul 29 2021, 3:26 PM
mhorne committed rG96da64391de9: hwpmc: fix PMC_CPU_LAST (authored by mhorne).
hwpmc: fix PMC_CPU_LAST
Jul 29 2021, 3:26 PM
mhorne committed rGdfb4fb41166b: libpmc: fall-back to kernel tables if pmu-events fails (authored by mhorne).
libpmc: fall-back to kernel tables if pmu-events fails
Jul 29 2021, 3:26 PM
mhorne committed rG57caeb5109ee: libpmc: remove PMC_MDEP_TABLE logic (authored by mhorne).
libpmc: remove PMC_MDEP_TABLE logic
Jul 29 2021, 3:26 PM
mhorne committed rG19135e372ff1: arm64: Fix finding the pmc event ID (authored by andrew).
arm64: Fix finding the pmc event ID
Jul 29 2021, 3:26 PM
mhorne committed rGc0960dc8c677: libpmc: remove unused PMC_MDEP_INIT_INTEL_V2 (authored by mhorne).
libpmc: remove unused PMC_MDEP_INIT_INTEL_V2
Jul 29 2021, 3:25 PM
mhorne added a reviewer for D31033: fu740_pci_dw: Add SiFive FU740 PCIe controller driver: mmel.
Jul 29 2021, 3:17 PM
mhorne accepted D31334: hwpmc: remove static POWER8 definitions.
Jul 29 2021, 12:28 PM

Jul 23 2021

mhorne accepted D31109: Add Power8 and Power9 PMCs.

Looks good, thanks for finishing this. Will you handle the removal of the static power8 definitions as well?

Jul 23 2021, 1:48 PM

Jul 22 2021

mhorne added inline comments to D31022: sifive_prci: Add support for the FU740 PRCI.
Jul 22 2021, 6:26 PM

Jul 21 2021

mhorne accepted D31253: riscv: Fix pmap_kextract racing with concurrent superpage promotion/demotion.
Jul 21 2021, 11:24 PM
mhorne committed rG27ea55fc655b: libpmc/hwpmc: fix issues with arm64 pmu-events support (authored by mhorne).
libpmc/hwpmc: fix issues with arm64 pmu-events support
Jul 21 2021, 11:19 PM
mhorne closed D31221: Fix various issues with commit 28dd6730a5d6, 8cc3815f02be.
Jul 21 2021, 11:19 PM
mhorne added a comment to D31253: riscv: Fix pmap_kextract racing with concurrent superpage promotion/demotion.

For example:

panic: pmap_l2_to_l3: PA out of range, PA: 0x0
cpuid = 1
time = 1625512247
KDB: stack backtrace:
db_trace_self() at db_trace_self
db_trace_self_wrapper() at db_trace_self_wrapper+0x38
kdb_backtrace() at kdb_backtrace+0x2c
vpanic() at vpanic+0x148
panic() at panic+0x2a
pmap_remove_write() at pmap_remove_write+0x56a
vm_object_page_collect_flush() at vm_object_page_collect_flush+0xf8
vm_object_page_clean() at vm_object_page_clean+0x144
vinactivef() at vinactivef+0x90
vput_final() at vput_final+0x2ea
vput() at vput+0x32
vn_close1() at vn_close1+0x13c
vn_closefile() at vn_closefile+0x44
_fdrop() at _fdrop+0x18
closef() at closef+0x1b8
closefp_impl() at closefp_impl+0x78
closefp() at closefp+0x52
kern_close() at kern_close+0x134
sys_close() at sys_close+0xe
do_trap_user() at do_trap_user+0x208
cpu_exception_handler_user() at cpu_exception_handler_user+0x72
--- exception 8, tval = 0x6
KDB: enter: panic
Jul 21 2021, 5:12 PM
mhorne committed rG7ca3061f84e3: etc/ttys: add xen console (authored by julien_xen.org).
etc/ttys: add xen console
Jul 21 2021, 4:11 PM
mhorne committed rGddefb003ee20: etc/ttys: merge ttys file down to single file (authored by ehem_freebsd_m5p.com).
etc/ttys: merge ttys file down to single file
Jul 21 2021, 4:10 PM
mhorne committed rGad0c23cdcd12: ttys: diff reduction (authored by imp).
ttys: diff reduction
Jul 21 2021, 4:10 PM
mhorne committed rG7d34f038f625: arm64, riscv: remove reference to fsu_intr_fault (authored by mhorne).
arm64, riscv: remove reference to fsu_intr_fault
Jul 21 2021, 4:10 PM
mhorne added a comment to D31021: fu540_prci: Rename to sifive_prci and use ocd_data for FU540 specificity.

The odd naming for tlkclk was discussed in D23406. Assuming the clk framework can accept two clocks with the same name, I think we are better off with this rename.

Our in-tree copy of the device tree should long have lost the old fixed clock node. For what it's worth, the Linux kernel also just names the PRCI's clock tlclk on both boards, but I don't know if they have the same global namespace issue. Our clk framework does just have a big global linked-list of clocks and so names need to be unique. But I'd be tempted to just say "don't use those ancient device trees for the FU540".

Jul 21 2021, 2:56 PM
mhorne accepted D31021: fu540_prci: Rename to sifive_prci and use ocd_data for FU540 specificity.

The odd naming for tlkclk was discussed in D23406. Assuming the clk framework can accept two clocks with the same name, I think we are better off with this rename.

Jul 21 2021, 2:21 PM

Jul 20 2021

mhorne updated the test plan for D31209: riscv: fix VM_MAXUSER_ADDRESS checks in asm routines.
Jul 20 2021, 2:28 PM
mhorne retitled D31221: Fix various issues with commit 28dd6730a5d6, 8cc3815f02be from Fix various issues with commit 28dd6730a5d6 to Fix various issues with commit 28dd6730a5d6, 8cc3815f02be.
Jul 20 2021, 2:10 PM
mhorne added inline comments to D31221: Fix various issues with commit 28dd6730a5d6, 8cc3815f02be.
Jul 20 2021, 2:06 PM

Jul 19 2021

mhorne added inline comments to D31221: Fix various issues with commit 28dd6730a5d6, 8cc3815f02be.
Jul 19 2021, 9:31 PM
mhorne added inline comments to D31109: Add Power8 and Power9 PMCs.
Jul 19 2021, 9:05 PM
mhorne updated the test plan for D31221: Fix various issues with commit 28dd6730a5d6, 8cc3815f02be.
Jul 19 2021, 9:02 PM
mhorne requested review of D31221: Fix various issues with commit 28dd6730a5d6, 8cc3815f02be.
Jul 19 2021, 8:58 PM
mhorne added a comment to D30614: xinstall: fix invocation of llvm-strip.

Any remaining concerns with this change?

Jul 19 2021, 1:48 PM

Jul 18 2021

mhorne accepted D31032: riscv: Implement missing nexus methods.
Jul 18 2021, 8:19 PM

Jul 17 2021

mhorne updated subscribers of D31031: sifive_gpio: Add SiFive GPIO controller driver.

Looks straightforward to me, with a couple of questions. I have never written a gpio driver myself, so maybe @manu or @mmel can give it a quick look.

Jul 17 2021, 9:05 PM
mhorne added a comment to D31208: riscv: handle page faults in the unmappable region.

This will eventually need to be a dynamic property based on the page table format in use. Would it not be better to just make pmap_fault verify that the address is suitably sign-extended and return 0 if not?

Jul 17 2021, 8:42 PM
mhorne added a comment to D31209: riscv: fix VM_MAXUSER_ADDRESS checks in asm routines.

This bug is also repeated in support.S for all the fu/su/casu functions

Jul 17 2021, 8:13 PM
mhorne updated the test plan for D31209: riscv: fix VM_MAXUSER_ADDRESS checks in asm routines.
Jul 17 2021, 7:56 PM
mhorne updated the test plan for D31208: riscv: handle page faults in the unmappable region.
Jul 17 2021, 7:53 PM
mhorne requested review of D31209: riscv: fix VM_MAXUSER_ADDRESS checks in asm routines.
Jul 17 2021, 7:51 PM
mhorne requested review of D31208: riscv: handle page faults in the unmappable region.
Jul 17 2021, 7:50 PM

Jul 16 2021

mhorne added inline comments to D31109: Add Power8 and Power9 PMCs.
Jul 16 2021, 5:42 PM

Jul 15 2021

mhorne added inline comments to D31191: build: Rewrite arm_kernel_boothdr in Lua and add RISC-V support..
Jul 15 2021, 4:59 PM
mhorne added a comment to D31193: Correct the 13.0 release notes for ctld's -t feature.

@mhorne I'm not a doc committer. Are you, and can I consider this change as approved by you?

Jul 15 2021, 3:09 PM
mhorne accepted D31193: Correct the 13.0 release notes for ctld's -t feature.

Thanks!

Jul 15 2021, 2:56 PM

Jul 13 2021

mhorne added inline comments to D31166: developers-handbook/kerneldebug: Document KASAN and KMSAN.
Jul 13 2021, 11:58 PM
mhorne accepted D31109: Add Power8 and Power9 PMCs.
Jul 13 2021, 1:58 PM

Jul 10 2021

mhorne accepted D30297: arm64/nexus: use actual PA range for I/O memory limit.

I would compare the triplet of get_physaddr_bits()/get_physaddr_count()/get_physaddr_max() to the triplets of PAGE_SHIFT/PAGE_SIZE/PAGE_MASK in sys/arm64/include/param.h. Since my present requirement is to have one of these three, I'm willing to simplify, but I see them coming back in the future. Simply need to type something...

Jul 10 2021, 7:05 PM

Jul 9 2021

mhorne accepted D31109: Add Power8 and Power9 PMCs.

Looks good. One final nitpick, but I won't block based on that alone.

Jul 9 2021, 2:22 PM
mhorne accepted D31118: riscv pmap_fault: SFENCE.VMA more selectively.
Jul 9 2021, 2:12 PM · riscv

Jul 8 2021

mhorne added inline comments to D31109: Add Power8 and Power9 PMCs.
Jul 8 2021, 8:24 PM
mhorne added a comment to D31109: Add Power8 and Power9 PMCs.

Very nice to see this change already, I was hoping someone would pick this up for PPC.

Jul 8 2021, 3:32 PM

Jul 6 2021

mhorne added a comment to D30256: sbin/init: merge ttys file down to single file.

Hm, never mind, I guess Spike doesn't end up with a ttyu0, only rcons?

Jul 6 2021, 7:20 PM
mhorne committed rG2b2c460d7bb8: etc/ttys: add xen console (authored by julien_xen.org).
etc/ttys: add xen console
Jul 6 2021, 3:01 PM
mhorne committed rGc76616f496ee: etc/ttys: merge ttys file down to single file (authored by ehem_freebsd_m5p.com).
etc/ttys: merge ttys file down to single file
Jul 6 2021, 3:01 PM
mhorne closed D29873: etc/ttys: add the xen console.
Jul 6 2021, 3:00 PM
mhorne closed D30256: sbin/init: merge ttys file down to single file.
Jul 6 2021, 3:00 PM

Jul 5 2021

mhorne added inline comments to D28982: xen: move common variables and code off of sys/x86/xen/hvm.c.
Jul 5 2021, 7:57 PM

Jun 30 2021

mhorne added inline comments to D30614: xinstall: fix invocation of llvm-strip.
Jun 30 2021, 9:34 PM
mhorne updated the diff for D30614: xinstall: fix invocation of llvm-strip.

Address jilles' comments.

Jun 30 2021, 9:29 PM
mhorne committed rG8c2dd68caa96: libpmc: Import AMD Zen 3 PMU events (authored by val_packett.cool).
libpmc: Import AMD Zen 3 PMU events
Jun 30 2021, 9:23 PM
mhorne committed rG13f5a3076bc8: hwpmc_arm64: add a PMCDBG to the interrupt handler (authored by mhorne).
hwpmc_arm64: add a PMCDBG to the interrupt handler
Jun 30 2021, 9:23 PM
mhorne closed D30965: Import AMD Zen 3 PMU events.
Jun 30 2021, 9:22 PM
mhorne committed rG28dd6730a5d6: libpmc: enable pmu_utils on arm64 (authored by mhorne).
libpmc: enable pmu_utils on arm64
Jun 30 2021, 7:50 PM
mhorne closed D30603: libpmc: enable pmu_utils on arm64.
Jun 30 2021, 7:50 PM
mhorne committed rG8cc3815f02be: hwpmc_arm64: accept raw event codes for PMC_OP_PMCALLOCATE (authored by mhorne).
hwpmc_arm64: accept raw event codes for PMC_OP_PMCALLOCATE
Jun 30 2021, 7:50 PM
mhorne closed D30602: hwpmc_arm64: accept raw event codes for PMC_OP_PMCALLOCATE.
Jun 30 2021, 7:49 PM
mhorne committed rG5867cccdc49d: hwpmc_arm64: fill kern.hwpmc.cpuid (authored by mhorne).
hwpmc_arm64: fill kern.hwpmc.cpuid
Jun 30 2021, 7:49 PM
mhorne closed D30601: hwpmc_arm64: fill kern.hwpmc.cpuid.
Jun 30 2021, 7:49 PM
mhorne committed rG2129c8f6771a: hwpmc_arm64.c: fix return style (authored by mhorne).
hwpmc_arm64.c: fix return style
Jun 30 2021, 7:49 PM
mhorne accepted D30965: Import AMD Zen 3 PMU events.

FYI I am planning a larger import of perf event definitions from Linux, but there is no reason this can't go ahead. I will commit this shortly if nobody beats me to it.

Jun 30 2021, 7:39 PM
mhorne added inline comments to D30963: riscv: Implement non-stub __vdso_gettc and __vdso_gettimekeep.
Jun 30 2021, 6:22 PM
mhorne accepted D30963: riscv: Implement non-stub __vdso_gettc and __vdso_gettimekeep.

Thanks for this one.

Jun 30 2021, 5:33 PM

Jun 28 2021

mhorne added a comment to D30601: hwpmc_arm64: fill kern.hwpmc.cpuid.

Any further comments? I plan to commit within the next day or two if not.

Jun 28 2021, 5:35 PM

Jun 25 2021

mhorne accepted D30862: Add OPENMP for riscv64*.
Jun 25 2021, 1:35 PM · riscv
mhorne added a comment to D30256: sbin/init: merge ttys file down to single file.

@imp do you care to commit this or shall I?

Jun 25 2021, 12:58 PM

Jun 24 2021

mhorne committed rG9d61599983db: Consolidate machine/endian.h definitions (authored by mhorne).
Consolidate machine/endian.h definitions
Jun 24 2021, 11:44 PM
mhorne added inline comments to D30862: Add OPENMP for riscv64*.
Jun 24 2021, 7:08 PM · riscv
mhorne accepted D30862: Add OPENMP for riscv64*.

Thanks, this fell off my radar.

Jun 24 2021, 7:07 PM · riscv
mhorne requested changes to D30297: arm64/nexus: use actual PA range for I/O memory limit.
Jun 24 2021, 12:49 PM

Jun 22 2021

mhorne added inline comments to D30601: hwpmc_arm64: fill kern.hwpmc.cpuid.
Jun 22 2021, 3:13 PM
mhorne updated the diff for D30603: libpmc: enable pmu_utils on arm64.

Rebase on top of D30602; set pm_has_raw_event field. Fix 'branches' typo.

Jun 22 2021, 3:07 PM
mhorne updated the diff for D30602: hwpmc_arm64: accept raw event codes for PMC_OP_PMCALLOCATE.

Provide an MD field, pm_has_raw_event, to inform when the event code is raw.

Jun 22 2021, 3:04 PM

Jun 19 2021

mhorne added a comment to D30822: riscv: Always use the EFI-provided FDT for boot-hartid.

I have not messed around with loading a new DTB from loader myself, but I have thought a bit about this problem of maintaining boot-hartid before. I guess you did something like load -t dtb /path/to/dtb?

Jun 19 2021, 6:47 PM

Jun 18 2021

mhorne accepted D30280: kern/rman: fix overflow in rman_reserve_resource_bound().

There is actually a trade-off between two issues here. Is it valuable for rman_reserve_resource_bound() to handle the case of being given a count of 0? Is it valuable for rman_reserve_resource_bound() to handle the situation of count == 0? Both are a bit funky and a bit valuable to handle.

Having rstart=0 and rend=~0 is actually likely to hint at issues underneath. Along this line looking at sys/arm64/arm64/nexus.c, I'm pretty sure what it is doing isn't plausible. Perhaps handling count=0 has some value and this should be abandoned. The issues in sys/arm64/arm64/nexus.c are going to need to be fixed.

Jun 18 2021, 3:44 PM
mhorne added inline comments to D28982: xen: move common variables and code off of sys/x86/xen/hvm.c.
Jun 18 2021, 3:31 PM
mhorne added a comment to D30614: xinstall: fix invocation of llvm-strip.

Thank you both for the review. I was rushing a bit with the previous revision, and it shows. I've tested the success case for installing and stripping a file beginning with '-'. I'll look into adding a test for this case to install_test.sh.

Jun 18 2021, 3:29 PM
mhorne updated the diff for D30614: xinstall: fix invocation of llvm-strip.

Use asprintf() to allocate _from_name.

Jun 18 2021, 3:23 PM
mhorne added a comment to D30256: sbin/init: merge ttys file down to single file.

This seems ready to go, but perhaps D29873 should become the child revision? I.e. cleanup first, addition second.

Jun 18 2021, 2:56 PM
mhorne added inline comments to D30297: arm64/nexus: use actual PA range for I/O memory limit.
Jun 18 2021, 2:43 PM

Jun 7 2021

mhorne accepted D30655: riscv: Add an hw.ncpu tunable to limit the number of cores.
Jun 7 2021, 8:55 PM

Jun 4 2021

mhorne added a comment to D29310: kern/intr: switch to allocating handles forward.

Any comments on what is currently present?

The approach of always allocating lowest first seems boring, but it is boring since it is quite effective and addresses the need perfectly. Does mean some test cases are harder to reach, but every approach is going to make some cases harder to test and other cases easier.

Jun 4 2021, 2:59 PM

Jun 3 2021

mhorne updated the diff for D30614: xinstall: fix invocation of llvm-strip.

Handle from_name beginning with '-'.

Jun 3 2021, 4:58 PM

Jun 2 2021

mhorne added a comment to D30614: xinstall: fix invocation of llvm-strip.

Surprised I haven't seen this, pretty sure I've built with XSTRIPBIN=llvm-strip before.

Jun 2 2021, 5:34 PM
mhorne updated subscribers of D30554: ofwbus: remove handling of resources from ofwbus.

To state the problem as I understand it: ofwbus fails to reserve or report its resource usage back to nexus, violating an assumption of newbus. This is of no consequence when all devices allocate resources through ofwbus, but becomes an issue when a child of nexus needs to allocate an unused resource region (this will be the case for Xen's PV bus on arm64).

Jun 2 2021, 5:16 PM
mhorne requested review of D30614: xinstall: fix invocation of llvm-strip.
Jun 2 2021, 3:14 PM
mhorne added a comment to D30602: hwpmc_arm64: accept raw event codes for PMC_OP_PMCALLOCATE.

Is there a way to tell if a raw event or event code has been asked for on the syscall boundary? In current architecture the event space is 16bit so we can tell the difference, however we shouldn't assume this will never change.

Jun 2 2021, 2:50 PM

Jun 1 2021

mhorne added a reviewer for D30601: hwpmc_arm64: fill kern.hwpmc.cpuid: br.
Jun 1 2021, 4:36 PM
mhorne added a reviewer for D30602: hwpmc_arm64: accept raw event codes for PMC_OP_PMCALLOCATE: br.
Jun 1 2021, 4:36 PM
mhorne requested review of D30603: libpmc: enable pmu_utils on arm64.
Jun 1 2021, 4:21 PM
mhorne requested review of D30602: hwpmc_arm64: accept raw event codes for PMC_OP_PMCALLOCATE.
Jun 1 2021, 4:20 PM
mhorne requested review of D30601: hwpmc_arm64: fill kern.hwpmc.cpuid.
Jun 1 2021, 4:17 PM