Page MenuHomeFreeBSD
Feed Advanced Search

Thu, Nov 14

kib closed D47561: ps.1: restore always true if predicate.
Thu, Nov 14, 2:42 AM
kib added inline comments to rG62e6ca0f07e4: ps(1): clean up after swapout removal.
Thu, Nov 14, 2:27 AM
kib requested review of D47561: ps.1: restore always true if predicate.
Thu, Nov 14, 2:24 AM
kib added a comment to D47350: libc, libthr: coordinate stubs for pthread_{suspend,resume}_all_np.
In D47350#1084710, @kib wrote:

Why abandon? This is useful in general.

I wasn't sure if it was worth doing if I don't have a consumer in mind now that I have lsan off of it- I'm more than happy to go ahead and push it if you think it's still useful.

Thu, Nov 14, 2:10 AM
kib added a comment to D47350: libc, libthr: coordinate stubs for pthread_{suspend,resume}_all_np.

Why abandon? This is useful in general.

Thu, Nov 14, 1:34 AM
kib accepted D47518: aio: improve lock contention on the aio_job_mtx.
Thu, Nov 14, 12:50 AM
kib committed rG5f52fa2ac30e: ps.1: document rest of flag2 bits (authored by kib).
ps.1: document rest of flag2 bits
Thu, Nov 14, 12:44 AM
kib committed rG087558ec3e01: ps.1: visually align process flags hex values by filling leading zeroes (authored by kib).
ps.1: visually align process flags hex values by filling leading zeroes
Thu, Nov 14, 12:44 AM
kib committed rGb01067349311: struct proc: add locking annotation for p_pendingcnt (authored by kib).
struct proc: add locking annotation for p_pendingcnt
Thu, Nov 14, 12:44 AM
kib committed rG5eda09abc32f: sys/proc.h: add comments to the flag2 bits (authored by kib).
sys/proc.h: add comments to the flag2 bits
Thu, Nov 14, 12:44 AM
kib committed rGa2d4e8b93ea2: rtld_get_var.3: fix typo (authored by kib).
rtld_get_var.3: fix typo
Thu, Nov 14, 12:43 AM
kib committed rGdcdc0d716715: rtld.1: cross-reference rtld_get_var.3 (authored by kib).
rtld.1: cross-reference rtld_get_var.3
Thu, Nov 14, 12:43 AM
kib committed rGcc3978cb74d6: Document rtld_get_var(3) (authored by kib).
Document rtld_get_var(3)
Thu, Nov 14, 12:43 AM
kib committed rG86a2abab0a8e: rtld: add rtld_{get,set}_var (authored by kib).
rtld: add rtld_{get,set}_var
Thu, Nov 14, 12:43 AM
kib committed rGdb21e6980b92: rtld: make it easier to add sparce non-default members to ld_env_var_desc (authored by kib).
rtld: make it easier to add sparce non-default members to ld_env_var_desc
Thu, Nov 14, 12:43 AM
kib committed rG287995f1086e: sys/link_elf.h: remove extern linkage specifier from dl_iterate_phdr() prototype (authored by kib).
sys/link_elf.h: remove extern linkage specifier from dl_iterate_phdr() prototype
Thu, Nov 14, 12:43 AM
kib committed rG8ee3da8e738b: rtld: 1-bit for bool is enough (authored by kib).
rtld: 1-bit for bool is enough
Thu, Nov 14, 12:43 AM
kib accepted D47558: rtld: implement _dl_iterate_phdr_locked.
Thu, Nov 14, 12:41 AM
kib added inline comments to D47558: rtld: implement _dl_iterate_phdr_locked.
Thu, Nov 14, 12:15 AM
kib added a comment to D47556: sched_getcpu: add man page.

If you move the page to section 3, it should be in lib/libc/gen.

I wondered about that, but the implementation is in libsys and there are a small number of section 3 pages in libsys, like getpagesize.3, so should be the same for sched_getcpu, no?

Thu, Nov 14, 12:08 AM

Wed, Nov 13

kib accepted D47556: sched_getcpu: add man page.

If you move the page to section 3, it should be in lib/libc/gen.

Wed, Nov 13, 11:50 PM
kib added a comment to D47558: rtld: implement _dl_iterate_phdr_locked.

Now after a fresh look, I suggest to change the new function to be read-only. What I mean, is to remove hold/unhold_object and marker linkage. I believe this is 'better' in the sense that it would induce the UB memory accesses on the caller, but other threads would not see unlocked updates.

Wed, Nov 13, 11:12 PM
kib committed rGde7a92756f0a: mlx5en: improve reporting of kernel TLS, IPSEC offload, and ratelimit caps (authored by kib).
mlx5en: improve reporting of kernel TLS, IPSEC offload, and ratelimit caps
Wed, Nov 13, 10:57 PM
kib added inline comments to D47556: sched_getcpu: add man page.
Wed, Nov 13, 10:21 PM
kib added a comment to D47523: SU+J: all writes to SU journal must be exempt from runningbufspace throttling.
In D47523#1084446, @kib wrote:

Well, I initally mean to simply convert B_ASYNC to sync by clearing the flag, if runningbufspace limit would be hit. My reasoning to switch to TDP_NORBS is to be more like existing solution for the buffer daemon instead, to not provide two separate hacks for the same problem. I do not think that B_ASYNCWAIT is needed.

This is what I tried first, it doesn't work. bufdone() needs to know about this special case, since it handles completion differently depending on whether B_ASYNC was set or not.

Wed, Nov 13, 7:45 PM
kib committed rG46f02c4282ff: SU+J: all writes to SU journal must be exempt from runningbufspace throttling (authored by kib).
SU+J: all writes to SU journal must be exempt from runningbufspace throttling
Wed, Nov 13, 7:36 PM
kib committed rGd0b41249bfbe: bufwrite(): adjust the comment (authored by kib).
bufwrite(): adjust the comment
Wed, Nov 13, 7:36 PM
kib committed rGc1d93f81e49c: bufwrite(): style (authored by kib).
bufwrite(): style
Wed, Nov 13, 7:36 PM
kib added a comment to D47523: SU+J: all writes to SU journal must be exempt from runningbufspace throttling.

I think this change is probably ok.

The larger invariant to preserve is that the filesystem cannot issue async I/O to implement bstrategy(). If it does, then the maximum number of recursive I/Os must be less than lorunningspace/maxphys (on small memory systems this can be 0), OR, the code issuing the async writes must set TDP_NORUNNINGSPACE.

I tried implementing your suggestion to make bufwait(B_ASYNC) block if the write exceeds the hirunningspace threshold. I think this solves the problem, but it's hard to be sure, as the bawrite() in softdep_process_journal() is hard to trigger (normally this work is handled by the flushing thread). It is a bit complex (requires a new B_ASYNCWAIT buf flag and some locking to synchronize the sleep/wakeup), but I believe it relaxes this invariant. I'm not sure whether to continue working on it.

Wed, Nov 13, 7:32 PM
kib accepted D47539: Export the kernel API pgrp_calc_jobc.
Wed, Nov 13, 6:08 PM
kib committed rG19d23cb8acc9: vm_object: do not assume that un_pager.devp.dev is cdev (authored by kib).
vm_object: do not assume that un_pager.devp.dev is cdev
Wed, Nov 13, 6:07 PM
kib committed rG300d034b3c29: device_pager: rename the un_pager.devp.dev field to handle (authored by kib).
device_pager: rename the un_pager.devp.dev field to handle
Wed, Nov 13, 6:07 PM
kib added a comment to D47291: acpi bus: store children domain in ivar.

Ping?

Wed, Nov 13, 2:57 PM

Tue, Nov 12

kib added inline comments to D47518: aio: improve lock contention on the aio_job_mtx.
Tue, Nov 12, 11:33 PM
kib accepted D47526: swap_pager: Ensure that swapoff puts swapped-in pages in page queues.
Tue, Nov 12, 11:21 PM
kib committed rG92a9501b6be3: vm_object: do not assume that un_pager.devp.dev is cdev (authored by kib).
vm_object: do not assume that un_pager.devp.dev is cdev
Tue, Nov 12, 11:20 PM
kib committed rGc57dc755fa1a: device_pager: rename the un_pager.devp.dev field to handle (authored by kib).
device_pager: rename the un_pager.devp.dev field to handle
Tue, Nov 12, 11:20 PM
kib requested review of D47523: SU+J: all writes to SU journal must be exempt from runningbufspace throttling.
Tue, Nov 12, 6:36 AM
kib committed rG166c1fac59f0: struct proc: add locking annotation for p_pendingcnt (authored by kib).
struct proc: add locking annotation for p_pendingcnt
Tue, Nov 12, 6:07 AM
kib committed rG48d6303d9c96: amdiommu: hide HPET report under verbose (authored by kib).
amdiommu: hide HPET report under verbose
Tue, Nov 12, 12:38 AM
kib committed rG19cefbb3ddb1: amdiommu: short-circuit all amdiommu_find_unit() functions (authored by kib).
amdiommu: short-circuit all amdiommu_find_unit() functions
Tue, Nov 12, 12:38 AM

Mon, Nov 11

kib added inline comments to D47518: aio: improve lock contention on the aio_job_mtx.
Mon, Nov 11, 11:46 PM
kib added inline comments to D47518: aio: improve lock contention on the aio_job_mtx.
Mon, Nov 11, 8:17 PM

Sun, Nov 10

kib committed rG37095a500dc1: libc: remove some XXX for russian translations of errnos (authored by kib).
libc: remove some XXX for russian translations of errnos
Sun, Nov 10, 1:42 AM
kib committed rG27f51b8c5111: libc: mechanically convert ru_RU msg catalog from KOI8-R to UTF-8 (authored by kib).
libc: mechanically convert ru_RU msg catalog from KOI8-R to UTF-8
Sun, Nov 10, 1:42 AM
kib committed rGd43c3ae472ad: catopen(3): align returned errors with IEEE Std 1003.1™-2024 (authored by kib).
catopen(3): align returned errors with IEEE Std 1003.1™-2024
Sun, Nov 10, 1:42 AM

Sat, Nov 9

kib committed rG9805e5b071a1: amdiommu: short-circuit all amdiommu_find_unit() functions (authored by kib).
amdiommu: short-circuit all amdiommu_find_unit() functions
Sat, Nov 9, 10:33 PM
kib committed rG1bca58a1d40d: amdiommu: hide HPET report under verbose (authored by kib).
amdiommu: hide HPET report under verbose
Sat, Nov 9, 9:08 PM
kib committed rG0a500beeb03b: iommu: Clean up a lingering function prototype (authored by markj).
iommu: Clean up a lingering function prototype
Sat, Nov 9, 8:20 PM
kib committed rGf5f29d3c1303: vmm: Rename the amdiommu driver to amdviiommu (authored by markj).
vmm: Rename the amdiommu driver to amdviiommu
Sat, Nov 9, 8:20 PM
kib committed rGae81fb2db3df: iommu: eliminate iommu_free_ctx() (authored by kib).
iommu: eliminate iommu_free_ctx()
Sat, Nov 9, 8:20 PM
kib committed rGaebd6c32dfae: amdiommu: print more domain information from ddb show (authored by kib).
amdiommu: print more domain information from ddb show
Sat, Nov 9, 8:20 PM
kib committed rGfa6787221742: AMD IOMMU driver (authored by kib).
AMD IOMMU driver
Sat, Nov 9, 8:20 PM
kib committed rG83217f087be7: amdiommu: changes for stable/14 merge (authored by kib).
amdiommu: changes for stable/14 merge
Sat, Nov 9, 8:19 PM
kib committed rGdd40825e613d: x86/iommu/amd_reg.h: fix typo in comment (authored by kib).
x86/iommu/amd_reg.h: fix typo in comment
Sat, Nov 9, 8:19 PM
kib committed rGd4e318edeccc: x86/iommu/amd_reg.h: AMD IOMMU registers definitions (authored by kib).
x86/iommu/amd_reg.h: AMD IOMMU registers definitions
Sat, Nov 9, 8:19 PM
kib accepted D47493: _utmx_op: don't recurse on chain busy.
Sat, Nov 9, 6:57 PM
kib committed rG62e6ca0f07e4: ps(1): clean up after swapout removal (authored by kib).
ps(1): clean up after swapout removal
Sat, Nov 9, 5:27 PM
kib committed rG14b3a4564af3: sys/proc.h: add comments to the flag2 bits (authored by kib).
sys/proc.h: add comments to the flag2 bits
Sat, Nov 9, 5:27 PM
kib committed rG4c367bc90ba0: ps.1: document rest of flag2 bits (authored by kib).
ps.1: document rest of flag2 bits
Sat, Nov 9, 5:27 PM
kib closed D47492: ps(1): cleanup.
Sat, Nov 9, 5:26 PM
kib committed rGcd9e781e76d9: ps.1: visually align process flags hex values by filling leading zeroes (authored by kib).
ps.1: visually align process flags hex values by filling leading zeroes
Sat, Nov 9, 5:26 PM
kib updated the diff for D47492: ps(1): cleanup.

Drop P_SWAP* descriptions.

Sat, Nov 9, 2:46 AM
kib requested review of D47492: ps(1): cleanup.
Sat, Nov 9, 2:16 AM

Thu, Nov 7

kib committed rGe434c56fcd4f: rtld_get_var.3: fix typo (authored by kib).
rtld_get_var.3: fix typo
Thu, Nov 7, 6:50 PM
kib committed rG16d000bdac54: rtld.1: cross-reference rtld_get_var.3 (authored by kib).
rtld.1: cross-reference rtld_get_var.3
Thu, Nov 7, 5:22 AM
kib committed rG3820f784597c: Document rtld_get_var(3) (authored by kib).
Document rtld_get_var(3)
Thu, Nov 7, 5:22 AM
kib committed rGc56df6ce71ae: rtld: add rtld_{get,set}_var (authored by kib).
rtld: add rtld_{get,set}_var
Thu, Nov 7, 5:21 AM
kib committed rGd7214577ff00: rtld: make it easier to add sparce non-default members to ld_env_var_desc (authored by kib).
rtld: make it easier to add sparce non-default members to ld_env_var_desc
Thu, Nov 7, 5:21 AM
kib committed rG450e684e0fea: rtld: 1-bit for bool is enough (authored by kib).
rtld: 1-bit for bool is enough
Thu, Nov 7, 5:21 AM
kib closed D47351: rtld: add rtld_{get,set}_var.
Thu, Nov 7, 5:21 AM
kib committed rG7cd3e2696ca3: sys/link_elf.h: remove extern linkage specifier from dl_iterate_phdr() prototype (authored by kib).
sys/link_elf.h: remove extern linkage specifier from dl_iterate_phdr() prototype
Thu, Nov 7, 5:21 AM
kib accepted D47444: Use correct idle routine on AMD.

It is not only the vendor code, but the whole spec for Processor ACPI vendor-specific fixed functions. It is only Intel which specified something, which is why I only enabled it on Intel.

Thu, Nov 7, 1:23 AM

Wed, Nov 6

kib committed rG580340dbdaaf: vm_object: do not assume that un_pager.devp.dev is cdev (authored by kib).
vm_object: do not assume that un_pager.devp.dev is cdev
Wed, Nov 6, 12:24 AM
kib committed rGf0c07fe3d000: device_pager: rename the un_pager.devp.dev field to handle (authored by kib).
device_pager: rename the un_pager.devp.dev field to handle
Wed, Nov 6, 12:24 AM
kib closed D47443: Fix panic with non-cdev un_pager.devp.dev.
Wed, Nov 6, 12:24 AM

Tue, Nov 5

kib accepted D47450: sys: Avoid relying on pollution from refcount.h.
Tue, Nov 5, 4:32 PM
kib accepted D47450: sys: Avoid relying on pollution from refcount.h.
Tue, Nov 5, 3:53 PM
kib added a comment to D47394: x86: Add routines for querying XSAVE feature information.

amd64/amd64/fpu.c seems to be the natural place for the new functions.
Despite named 'fpu', the file deals with the whole non-GPR part of the CPU state.

Tue, Nov 5, 12:59 AM
kib added inline comments to D47444: Use correct idle routine on AMD.
Tue, Nov 5, 12:23 AM

Mon, Nov 4

kib accepted D47391: Fix "vrefact: wrong use count 0" with DRM.

It should be fine modulo the note about vhold() no longer needed.

Mon, Nov 4, 10:24 PM
kib added a comment to D47443: Fix panic with non-cdev un_pager.devp.dev.

There are two additional useful things to do there:

  • stop using devp.handle for handle, it seems to always copy the actual handle. Then, the entry can be renamed back to dev and guaranteed to be either NULL or cdev, and it can be cdev in more cases.
  • add cdev pager method to return user-visible name, to fill into procstat and vmstat -o.
Mon, Nov 4, 10:23 PM
kib requested review of D47443: Fix panic with non-cdev un_pager.devp.dev.
Mon, Nov 4, 10:21 PM
kib added a comment to D47350: libc, libthr: coordinate stubs for pthread_{suspend,resume}_all_np.

Yes this is almost exactly what I mean by dl_iterate_phdr_locked().

Mon, Nov 4, 8:42 PM

Sun, Nov 3

kib committed rG43bfb4e71483: amdiommu: print more domain information from ddb show (authored by kib).
amdiommu: print more domain information from ddb show
Sun, Nov 3, 7:48 PM
kib committed rGd97838b7c2a6: iommu: eliminate iommu_free_ctx() (authored by kib).
iommu: eliminate iommu_free_ctx()
Sun, Nov 3, 7:48 PM
kib committed rG57aebec4f767: x86/iommu/amd_reg.h: fix typo in comment (authored by kib).
x86/iommu/amd_reg.h: fix typo in comment
Sun, Nov 3, 7:48 PM
kib added a comment to D47358: rescue: Implement a direct dumper for arm64 and amd64.

How do you handle DMA operations possibly still occuring at the panic or reboot time? For panic, the paniced kernel definitely does not do anything to stop them. For reboot, I am aware that e.g. mlx5 driver does nothing to stop PCIe interface from executing commands and writing updates to several rings, also the UMA memory is kept owned by the card until reset is done. Similarly, GPUs which have host memory allocated for them, might do DMA ops for long time after the host started smelling funny.

Sun, Nov 3, 6:51 PM
kib committed rGe2864e718978: libc: mechanically convert ru_RU msg catalog from KOI8-R to UTF-8 (authored by kib).
libc: mechanically convert ru_RU msg catalog from KOI8-R to UTF-8
Sun, Nov 3, 5:01 PM
kib committed rG3b65da5b65a6: libc: remove some XXX for russian translations of errnos (authored by kib).
libc: remove some XXX for russian translations of errnos
Sun, Nov 3, 5:00 PM
kib committed rG1176390d2d2b: catopen(3): align returned errors with IEEE Std 1003.1™-2024 (authored by kib).
catopen(3): align returned errors with IEEE Std 1003.1™-2024
Sun, Nov 3, 5:00 PM
kib closed D47414: libc: mechanically convert ru_RU msg catalog from KOI8-R to UTF-8.
Sun, Nov 3, 5:00 PM
kib closed D47413: catopen(3): align returned errors with IEEE Std 1003.1™-2024.
Sun, Nov 3, 5:00 PM
kib added inline comments to D47414: libc: mechanically convert ru_RU msg catalog from KOI8-R to UTF-8.
Sun, Nov 3, 4:42 PM
kib accepted D47415: vmm: Rename the amdiommu driver to amdviiommu.
Sun, Nov 3, 4:26 PM
kib added a comment to D47350: libc, libthr: coordinate stubs for pthread_{suspend,resume}_all_np.

We can export something like dl_iterate_phdr_locked() in private namespace, which would not take the phdr lock, if the problem is with it.

Sun, Nov 3, 4:12 PM
kib requested review of D47414: libc: mechanically convert ru_RU msg catalog from KOI8-R to UTF-8.
Sun, Nov 3, 2:21 PM
kib requested review of D47413: catopen(3): align returned errors with IEEE Std 1003.1™-2024.
Sun, Nov 3, 2:21 PM
kib committed rG05bc70bab4ff: x86: do not leak msi_lock in msix_alloc() on iommu remapping failure (authored by kib).
x86: do not leak msi_lock in msix_alloc() on iommu remapping failure
Sun, Nov 3, 12:40 AM

Sat, Nov 2

kib committed rG0f5116d7efe3: AMD IOMMU driver (authored by kib).
AMD IOMMU driver
Sat, Nov 2, 11:47 PM