Page MenuHomeFreeBSD
Feed Advanced Search

Dec 7 2021

mhorne committed rG2bb54c1646c7: i386: take pcb and fpu area into account in GET_STACK_USAGE (authored by mhorne).
i386: take pcb and fpu area into account in GET_STACK_USAGE
Dec 7 2021, 6:20 PM
mhorne committed rG1d640e613584: Implement GET_STACK_USAGE on remaining archs (authored by mhorne).
Implement GET_STACK_USAGE on remaining archs
Dec 7 2021, 6:16 PM
mhorne committed rGa8adbe528446: arm64, powerpc: fix calculation of 'used' in GET_STACK_USAGE (authored by mhorne).
arm64, powerpc: fix calculation of 'used' in GET_STACK_USAGE
Dec 7 2021, 6:15 PM
mhorne committed rG8dba6a20205d: i386: take pcb and fpu area into account in GET_STACK_USAGE (authored by mhorne).
i386: take pcb and fpu area into account in GET_STACK_USAGE
Dec 7 2021, 6:15 PM

Dec 6 2021

mhorne closed D33279: Remove references to sio(4) from NOTES.
Dec 6 2021, 7:16 PM
mhorne committed rG339ef8277350: Remove references to sio(4) from NOTES (authored by mhorne).
Remove references to sio(4) from NOTES
Dec 6 2021, 7:16 PM
mhorne accepted D32477: kenv: allow static hints to disable loader hints.
Dec 6 2021, 4:40 PM
mhorne added inline comments to D33279: Remove references to sio(4) from NOTES.
Dec 6 2021, 2:47 PM
mhorne committed rGe43d081f352c: ucom: s/sio/ucom/ (authored by mhorne).
ucom: s/sio/ucom/
Dec 6 2021, 2:11 PM
mhorne closed D33278: ucom: s/sio/ucom/.
Dec 6 2021, 2:11 PM

Dec 5 2021

mhorne added inline comments to D33279: Remove references to sio(4) from NOTES.
Dec 5 2021, 7:54 PM
mhorne requested review of D33279: Remove references to sio(4) from NOTES.
Dec 5 2021, 7:51 PM
mhorne requested review of D33278: ucom: s/sio/ucom/.
Dec 5 2021, 7:49 PM
mhorne added a reverting change for rGd5fd5cdc0638: Temporarily skip sys.netgraph.hub.loop on RISC-V in CI: rGd99a40e5ba23: Remove riscv workaround in sys.netgraph.hub.loop test.
Dec 5 2021, 3:14 PM
mhorne added a reverting change for rG168b579a4884: Fix RISC-V build: rGd99a40e5ba23: Remove riscv workaround in sys.netgraph.hub.loop test.
Dec 5 2021, 3:14 PM
mhorne committed rG03b3d7bbec99: x86: remove unused T_USER flag (authored by mhorne).
x86: remove unused T_USER flag
Dec 5 2021, 3:14 PM
mhorne committed rGd99a40e5ba23: Remove riscv workaround in sys.netgraph.hub.loop test (authored by mhorne).
Remove riscv workaround in sys.netgraph.hub.loop test
Dec 5 2021, 3:14 PM
mhorne closed D33253: x86: remove unused T_USER flag.
Dec 5 2021, 3:13 PM
mhorne closed D33252: Remove riscv workaround in sys.netgraph.hub.loop test.
Dec 5 2021, 3:13 PM

Dec 3 2021

mhorne requested review of D33253: x86: remove unused T_USER flag.
Dec 3 2021, 7:36 PM
mhorne updated the summary of D30184: boottrace: a simple boot and shutdown-time tracing facility.
Dec 3 2021, 6:55 PM
mhorne created P531 boottrace log sample.
Dec 3 2021, 6:54 PM
mhorne added a comment to D33252: Remove riscv workaround in sys.netgraph.hub.loop test.

Fixed in PR 259157/D32580.

Dec 3 2021, 6:37 PM
mhorne added a reverting change for rGd5fd5cdc0638: Temporarily skip sys.netgraph.hub.loop on RISC-V in CI: D33252: Remove riscv workaround in sys.netgraph.hub.loop test.
Dec 3 2021, 6:35 PM
mhorne added a reverting change for rG168b579a4884: Fix RISC-V build: D33252: Remove riscv workaround in sys.netgraph.hub.loop test.
Dec 3 2021, 6:35 PM
mhorne requested review of D33252: Remove riscv workaround in sys.netgraph.hub.loop test.
Dec 3 2021, 6:34 PM
mhorne committed rG233ec6b12b56: minidump: Use the provided dump bitset (authored by mhorne).
minidump: Use the provided dump bitset
Dec 3 2021, 2:55 PM
mhorne committed rG86aa46c79c50: Allow minidumps to be performed on the live system (authored by mhorne).
Allow minidumps to be performed on the live system
Dec 3 2021, 2:55 PM
mhorne committed rG069d7fa63b21: minidump: Use provided msgbuf pointer (authored by mhorne).
minidump: Use provided msgbuf pointer
Dec 3 2021, 2:55 PM
mhorne committed rGf61e6927a41b: minidump: reduce the amount direct accesses to page tables (authored by mhorne).
minidump: reduce the amount direct accesses to page tables
Dec 3 2021, 2:54 PM
mhorne committed rGeb2ea57ef1f2: minidump: Parameterize minidumpsys() (authored by mhorne).
minidump: Parameterize minidumpsys()
Dec 3 2021, 2:54 PM
mhorne committed rGa6172e6353ee: amd64: provide PHYS_IN_DMAP() and VIRT_IN_DMAP() (authored by mhorne).
amd64: provide PHYS_IN_DMAP() and VIRT_IN_DMAP()
Dec 3 2021, 2:54 PM

Nov 30 2021

mhorne committed rGd893d9e94d71: xen/dev: remove write-only variable (authored by ehem_freebsd_m5p.com).
xen/dev: remove write-only variable
Nov 30 2021, 9:15 PM
mhorne closed D32580: Implement GET_STACK_USAGE on remaining archs.
Nov 30 2021, 3:17 PM
mhorne committed rG0d2224733e97: Implement GET_STACK_USAGE on remaining archs (authored by mhorne).
Implement GET_STACK_USAGE on remaining archs
Nov 30 2021, 3:17 PM
mhorne committed rGb02908b051c8: arm64, powerpc: fix calculation of 'used' in GET_STACK_USAGE (authored by mhorne).
arm64, powerpc: fix calculation of 'used' in GET_STACK_USAGE
Nov 30 2021, 3:17 PM
mhorne closed D32581: i386: take pcb into account in GET_STACK_USAGE.
Nov 30 2021, 3:16 PM
mhorne committed rG8bc792b3845e: i386: take pcb and fpu area into account in GET_STACK_USAGE (authored by mhorne).
i386: take pcb and fpu area into account in GET_STACK_USAGE
Nov 30 2021, 3:16 PM

Nov 25 2021

mhorne added a reviewer for D32343: physmem: add ram0 pseudo-driver: kevans.

Roping in @kevans since he's looked at this file recently. Kyle, since you are planning to switch amd64 to this KPI, should we try to have it use this as well? (rather than the ram pseudo-driver in sys/x86/x86/nexus.c)

Nov 25 2021, 6:14 PM

Nov 24 2021

mhorne updated the diff for D32580: Implement GET_STACK_USAGE on remaining archs.

Have used take the pcb into account as well, as otherwise it could exceed the total as the stack approaches its limit. Simplify the calculation of used by using total.

Nov 24 2021, 8:15 PM
mhorne added a comment to D32581: i386: take pcb into account in GET_STACK_USAGE.
In D32581#735457, @kib wrote:

Doesn't this mean that in principle used might become larger than total? I think you need to base both on get_pcb_td() then.

Also did you considered using e.g. __builtin_frame_address(0) instead of &td?

Nov 24 2021, 8:12 PM
mhorne updated the diff for D32581: i386: take pcb into account in GET_STACK_USAGE.

Use get_pcb_td() for used as well.

Nov 24 2021, 8:11 PM

Nov 23 2021

mhorne accepted D32321: Add support of ARM CMN-600 controller, PMU access functions only. Add support of PMU counters of ARM CMN-600 controller..
Nov 23 2021, 7:42 PM
mhorne accepted D33099: Fix bracketing in the arm64 minidump code.
Nov 23 2021, 6:51 PM
mhorne added a comment to D32670: The Arm CoreLink DMC-620 Dynamic Memory Controller PMU driver.

Oh yes, and one question. Should sys/dev/hwpmc/pmu_dmc620.c be located elsewhere, similar to sys/arm64/arm64/cmn600.c? To me, it does not seem to belong in the hwpmc sub-directory.

Nov 23 2021, 4:46 PM
mhorne accepted D32670: The Arm CoreLink DMC-620 Dynamic Memory Controller PMU driver.

Looks good, with some very minor comments.

Nov 23 2021, 4:42 PM

Nov 22 2021

mhorne accepted D32691: GIC: add IRQ ranges.

I guess this is no longer required, but looks good regardless.

Nov 22 2021, 8:07 PM

Nov 19 2021

mhorne closed D31993: Allow minidumps to be performed on the live system.
Nov 19 2021, 7:08 PM
mhorne committed rG588ab3c77454: Allow minidumps to be performed on the live system (authored by mhorne).
Allow minidumps to be performed on the live system
Nov 19 2021, 7:08 PM
mhorne closed D31992: minidump: Use the provided dump bitset.
Nov 19 2021, 7:08 PM
mhorne committed rG10fe6f80a6c8: minidump: Use the provided dump bitset (authored by mhorne).
minidump: Use the provided dump bitset
Nov 19 2021, 7:08 PM
mhorne closed D31991: minidump: Use provided msgbuf pointer.
Nov 19 2021, 7:07 PM
mhorne committed rG1d2d1418b492: minidump: Use provided msgbuf pointer (authored by mhorne).
minidump: Use provided msgbuf pointer
Nov 19 2021, 7:07 PM
mhorne closed D31990: minidump: reduce the amount direct accesses to page tables.
Nov 19 2021, 7:07 PM
mhorne committed rG681bd71047f1: minidump: reduce the amount direct accesses to page tables (authored by mhorne).
minidump: reduce the amount direct accesses to page tables
Nov 19 2021, 7:07 PM
mhorne closed D32962: amd64: provide PHYS_IN_DMAP() and VIRT_IN_DMAP().
Nov 19 2021, 7:07 PM
mhorne committed rG90d4da622592: amd64: provide PHYS_IN_DMAP() and VIRT_IN_DMAP() (authored by mhorne).
amd64: provide PHYS_IN_DMAP() and VIRT_IN_DMAP()
Nov 19 2021, 7:07 PM
mhorne closed D31989: minidump: Parameterize minidumpsys().
Nov 19 2021, 7:06 PM
mhorne committed rG1adebe3cd6b1: minidump: Parameterize minidumpsys() (authored by mhorne).
minidump: Parameterize minidumpsys()
Nov 19 2021, 7:06 PM

Nov 15 2021

mhorne added inline comments to D31990: minidump: reduce the amount direct accesses to page tables.
Nov 15 2021, 9:06 PM
mhorne updated the diff for D31990: minidump: reduce the amount direct accesses to page tables.

Handle markj's comment.

Nov 15 2021, 9:05 PM
mhorne committed rGc8a4404da737: hwpmc: initialize arm64 counter/interrupt state (authored by mhorne).
hwpmc: initialize arm64 counter/interrupt state
Nov 15 2021, 3:23 PM
mhorne committed rG5c2e6d9610f1: hwpmc: initialize arm64 counter/interrupt state (authored by mhorne).
hwpmc: initialize arm64 counter/interrupt state
Nov 15 2021, 3:17 PM

Nov 12 2021

mhorne added a comment to D31990: minidump: reduce the amount direct accesses to page tables.

Thank you both for the discussion. I've studied the riscv and arm64 pmaps and it looks like the same assumptions hold - we will never free any PDE belonging to KVA - so I've applied the same checks on these platforms. From what I could see, arm and i386 should be safe as we only zero their PTEs.

Nov 12 2021, 4:57 PM
mhorne added a comment to D32962: amd64: provide PHYS_IN_DMAP() and VIRT_IN_DMAP().

These are used in D31990. I may convert some existing checks to use these macros as a follow-up change.

Nov 12 2021, 4:28 PM
mhorne requested review of D32962: amd64: provide PHYS_IN_DMAP() and VIRT_IN_DMAP().
Nov 12 2021, 4:26 PM
mhorne updated the diff for D31990: minidump: reduce the amount direct accesses to page tables.

Handle review comments:

  • Make loads atomic
  • Sanity check the physical addresses of lowest-level PTEs before attempting to dump their contents
Nov 12 2021, 4:25 PM

Nov 8 2021

mhorne added a comment to D30726: xen/intr: rework locking, prepare xen_intr_alloc_isrc() for split.

Other issue is the current locking during allocation is really gnarly. Notice how before calling xen_intr_alloc_isrc() the lock must be acquired for access to the x86 allocation variables. Once inside xen_intr_alloc_isrc() after the x86 variables are modified (xen_intr_auto_vector_count is incremented); the lock is released in order to call malloc(); then the lock is reacquired for modifying xen_intr_port_to_isrc[].

Nov 8 2021, 8:15 PM
mhorne committed rGb826cc3caf6a: hwpmc: initialize arm64 counter/interrupt state (authored by mhorne).
hwpmc: initialize arm64 counter/interrupt state
Nov 8 2021, 7:35 PM
mhorne closed D32854: hwpmc: initialize arm64 counter/interrupt state.
Nov 8 2021, 7:35 PM
mhorne added reviewers for D31930: boottrace: rc annotations: kevans, trasz, rc.
Nov 8 2021, 3:30 PM
mhorne added reviewers for D31929: boottrace(1): small wrapper utility: kevans, trasz.
Nov 8 2021, 3:29 PM
mhorne added reviewers for D31928: boottrace: annotate init and shutdown utilities: kevans, trasz.
Nov 8 2021, 3:28 PM
mhorne added reviewers for D30187: boottrace: trace annotations for startup and shutdown: kevans, trasz.

Is there anything boottrace gets you which TSLOG doesn't with my addition of userland TSLOG (https://reviews.freebsd.org/D32493)?

Nov 8 2021, 3:28 PM
mhorne added reviewers for D30184: boottrace: a simple boot and shutdown-time tracing facility: kevans, trasz.
Nov 8 2021, 3:16 PM

Nov 5 2021

mhorne updated the diff for D32854: hwpmc: initialize arm64 counter/interrupt state.

Improve the comment about when we issue an isb instruction.

Nov 5 2021, 5:12 PM
mhorne added inline comments to D32854: hwpmc: initialize arm64 counter/interrupt state.
Nov 5 2021, 5:07 PM
mhorne requested review of D32854: hwpmc: initialize arm64 counter/interrupt state.
Nov 5 2021, 4:58 PM

Nov 2 2021

mhorne added a comment to D32801: Use a builtin where possible in msun.

What about fmal?

Nov 2 2021, 4:15 PM
mhorne accepted D32701: kern: physmem: improve region coalescing logic.

LGTM

Nov 2 2021, 3:25 PM
mhorne resigned from D32789: xen/intr: mark several pieces unsigned.

I dislike this change, because truly it fixes nothing. It is just churn to appease a sense of code correctness, and code churn is not free.

Nov 2 2021, 1:48 PM

Nov 1 2021

mhorne accepted D24423: arm/pmu: add ACPI attachment.
Nov 1 2021, 5:43 PM · arm64

Oct 27 2021

mhorne accepted D32316: Support of optional PMC classes..
In D32316#737883, @ray wrote:

It seems to me that only the changes to pmc_arm64_initialize() should be necessary, because it handles optional classes in the same way that pmc_intel_initialize() does, by passing the correct nclasses value to pmc_mdep_alloc().

Problem here is in static machdep class numbers. If classes will be initialized in incorrect order, adjusted ri will be incorrect. So that modification may save some time on debugging such issue for new optional classes with just little time in hwpmc(4) init.

Oct 27 2021, 3:39 PM · pmc
mhorne added inline comments to D32691: GIC: add IRQ ranges.
Oct 27 2021, 3:35 PM
mhorne added a comment to D32316: Support of optional PMC classes..

It seems to me that only the changes to pmc_arm64_initialize() should be necessary, because it handles optional classes in the same way that pmc_intel_initialize() does, by passing the correct nclasses value to pmc_mdep_alloc().

Oct 27 2021, 3:00 PM · pmc

Oct 26 2021

mhorne accepted D24423: arm/pmu: add ACPI attachment.

The current version looks good to me. If you give me a day or two I can test on the FF's eMAG, and we should give @mmel a chance to make any objections known.

Oct 26 2021, 9:48 PM · arm64

Oct 25 2021

mhorne updated the diff for D30184: boottrace: a simple boot and shutdown-time tracing facility.

Rebase once more after some furthre light refactoring.

Oct 25 2021, 3:16 PM
mhorne added a comment to D32631: Create new man page sysctl_machdep(4) to document the machdep namespace.

Hi, this is an interesting patch! Thanks for your effort.

Oct 25 2021, 2:29 AM

Oct 20 2021

mhorne added a comment to D32581: i386: take pcb into account in GET_STACK_USAGE.
In D32581#735397, @kib wrote:

As I noted in D32580, the FPU save area is allocated on the stack as well.

Oct 20 2021, 8:57 PM
mhorne updated the diff for D32581: i386: take pcb into account in GET_STACK_USAGE.

Take fpu save area into account as well.

Oct 20 2021, 8:55 PM
mhorne updated the summary of D32581: i386: take pcb into account in GET_STACK_USAGE.
Oct 20 2021, 4:42 PM
mhorne updated the test plan for D32580: Implement GET_STACK_USAGE on remaining archs.
Oct 20 2021, 3:34 PM
mhorne requested review of D32581: i386: take pcb into account in GET_STACK_USAGE.
Oct 20 2021, 3:14 PM
mhorne requested review of D32580: Implement GET_STACK_USAGE on remaining archs.
Oct 20 2021, 3:14 PM
mhorne added inline comments to D30816: xen/console: add hook for xen_early_init().
Oct 20 2021, 2:49 PM
mhorne added inline comments to D28982: xen: move common variables and code off of sys/x86/xen/hvm.c.
Oct 20 2021, 2:13 PM

Oct 18 2021

mhorne added a comment to D30554: ofwbus: remove handling of resources from ofwbus.

I've tested these changes on a PPC64 VM. With them, the virtual SCSI device fails to attach, making it impossible to mount root.
Below are the relevant dmesg messages:

ofwbus0: <Open Firmware Device Tree> on nexus0                                 
xicp0: <External Interrupt Presentation Controller> on ofwbus0
xicp0: Handling CPUs 0-31                                                      
vdevice0: <POWER Hypervisor Virtual Device Root> on ofwbus0                    
vscsi0: <POWER Hypervisor Virtual SCSI Bus> irq 16781571 on vdevice0
vscsi0: Could not allocate IRQ         
device_attach: vscsi0 attach returned 6
Oct 18 2021, 5:56 PM
mhorne awarded D32543: vt: Disable bell by default a Love token.
Oct 18 2021, 2:15 PM
mhorne added a comment to D14214: Add descriptions to undocumented sysctls (vfs).

Indeed, this never landed in its entirety. I have it on a git branch somewhere...

Oct 18 2021, 2:13 PM

Oct 17 2021

mhorne added a reviewer for D32504: kern/intr: remove "irq" from kernel event API: jhb.

I think I agree with you that the concept of an IRQ does not really belong to this layer, so tracking it in struct intr_event is 'wrong' in an academic sense. That said, there is clearly some practical benefit to doing so, as this patch complicates several callers which are currently quite simple. Part of the problem is the fact that we use different interrupt frameworks on different architectures, but this is the current state of things.

Oct 17 2021, 4:26 PM