Page MenuHomeFreeBSD

imp (Warner Losh)
User

Projects (7)

User Details

User Since
Jun 2 2014, 4:20 PM (620 w, 20 h)

Recent Activity

Yesterday

imp accepted D55072: Remove -fms-extensions throughout the tree.

Change is good, and I like the commit message.

Mon, Apr 20, 8:06 PM
imp added a comment to D56490: time: Add EXTERROR for all EINVAL returns.
In D56490#1293526, @kib wrote:
In D56490#1293494, @imp wrote:

helps to read exterror(9) carefully <blush>

I did not intended to shame, sorry if it can be read this way. I tried to note that this is specified and is not a tribal knowledge to posses.

Mon, Apr 20, 12:16 AM
imp updated the diff for D56490: time: Add EXTERROR for all EINVAL returns.

really update w/o the extra

Mon, Apr 20, 12:15 AM

Sun, Apr 19

imp accepted D56515: include/stdbit.h: declare size_t, (u)int*_t, and (u)int_least*_t.

This looks good.

Sun, Apr 19, 7:57 PM
imp updated the diff for D56490: time: Add EXTERROR for all EINVAL returns.

helps to read exterror(9) carefully <blush>

Sun, Apr 19, 6:31 PM
imp added inline comments to D56490: time: Add EXTERROR for all EINVAL returns.
Sun, Apr 19, 5:36 PM
imp updated the diff for D56490: time: Add EXTERROR for all EINVAL returns.

reviews

Sun, Apr 19, 2:48 PM
imp retitled D54751: time: Add EXTERROR for all EINVAL returns OBSOLETE from time: Add EXTERROR for all EINVAL returns to time: Add EXTERROR for all EINVAL returns OBSOLETE.
Sun, Apr 19, 2:47 PM
imp added a comment to D54751: time: Add EXTERROR for all EINVAL returns OBSOLETE.

So I'm closing this one... I submitted it twice and there's more on the other ones.

Sun, Apr 19, 2:44 PM
imp added a comment to D56409: kern: don't make pointer/int casting fatal.
In D56409#1291946, @jhb wrote:

I don't understand how the (struct mbuf *)((uintptr_t)m & mask)) would trigger this? The warnings I had in stand/ with EFI were all legit "casting uint64_t to pointer" or vice versa without a uintptr_t cast, and I fixed those by adding a uintptr_t cast. Presumably the result of the inner expression should be of type uintptr_t and not int? Of course, I'd rewrite those today to use __align_down, then you can do something like: __align_down(m, (~mask + 1)) (but probably the latter is easily to-hand as a constant, e.g. __align_down(m, 16) or the like) without needing any casts (align_down and align_up are type preserving).

Sun, Apr 19, 4:00 AM

Sat, Apr 18

imp accepted D56499: README: Update and harmonize.
Sat, Apr 18, 1:07 PM
imp requested review of D56490: time: Add EXTERROR for all EINVAL returns.
Sat, Apr 18, 2:50 AM
imp committed rG4ed20e0236dd: kshim/usb: Add build option. (authored by imp).
kshim/usb: Add build option.
Sat, Apr 18, 2:43 AM

Fri, Apr 17

imp requested review of D56487: cam: Set ccb_h.status on XPT_GDEVLIST early-return paths.
Fri, Apr 17, 10:35 PM
imp requested review of D56486: pass(4): Allowlist CCB func_codes to harden passthrough ioctls.
Fri, Apr 17, 10:35 PM
imp added inline comments to D56407: syscalls: Preserve the attributes of the args.
Fri, Apr 17, 10:33 PM
imp added inline comments to D56408: syscall: Create a script to export the data as json.
Fri, Apr 17, 10:28 PM
imp added a comment to D54882: intelthermal: Add Intel Processor Thermal driver.

There's no issues with _ in driver names unless it gets too carried away: _i_n_t_e_l___t_h_e_r_m_a_l_ would be right out.

Fri, Apr 17, 7:49 PM
imp accepted D56465: boot1sa.chrp: A libsa-based first-stage loader for PPC.
Fri, Apr 17, 7:37 PM
imp accepted D56107: uart/pci: recover ADL AMT device after FIFO size probing.
Fri, Apr 17, 3:44 PM
imp accepted D56467: uart/pci: use different probe return values.

This fixes my problem, but if my device wasn't in the puc(4) device table, uart(4) would still try to attach to it and trigger the hang. So, there might still be some problem with the original change. Certainly this is incrementally better, so it's okay with me.

Yeah, puc(4) should likely be expanded to take over any generic PCI UART device with multiple ports? I think it was already broken before my change, as uart(4) would already take over multiport PCIP_SIMPLECOMM_UART_16450A devices. My change expanded that (wrong) behavior to PCIP_SIMPLECOMM_UART_16550A devices also.

Maybe someone more familiar with the PCI serial stuff can provide some guidance whether the puc(4) driver could be made to attach to generic multiport cards? I certainly don't know how to detect those from the PCI config space fields.

Digging a bit, I don't think there's a generic way to detect them. So I'm not sure we can do better.

Fri, Apr 17, 3:44 PM
imp accepted D56431: loader.efi: Defer efi_translate(e_entry) until after bi_load.

Can't fault the logic. Wish we could print the address, but it's a lot less important in EFI than in other boot vectors.

Fri, Apr 17, 2:15 PM
imp requested review of D56463: cam: Document kern.cam.max_high_power..
Fri, Apr 17, 4:55 AM
imp requested review of D56462: cam: kern.cam.max_high_power tuneable / sysctl.
Fri, Apr 17, 4:55 AM
imp requested review of D56461: nda: Filter non-storage nvme drives.
Fri, Apr 17, 4:55 AM
imp committed rGb3b23f284a67: syscall: Create a script to export the data as json (authored by imp).
syscall: Create a script to export the data as json
Fri, Apr 17, 4:46 AM
imp committed rG2a1745da389b: syscalls: Preserve the attributes of the args (authored by imp).
syscalls: Preserve the attributes of the args
Fri, Apr 17, 4:46 AM
imp committed rG62a19cd59b54: i386: mark the stack as non-executable (authored by imp).
i386: mark the stack as non-executable
Fri, Apr 17, 4:46 AM
imp closed D56408: syscall: Create a script to export the data as json.
Fri, Apr 17, 4:46 AM
imp closed D56407: syscalls: Preserve the attributes of the args.
Fri, Apr 17, 4:46 AM
imp closed D56411: i386: mark the stack as non-executable.
Fri, Apr 17, 4:46 AM
imp requested review of D56460: syscalls: Save the right rettype for system calls..
Fri, Apr 17, 4:41 AM

Thu, Apr 16

imp accepted D56429: stand/libofw: make OF_hasprop() part of the library.
Thu, Apr 16, 5:44 PM
imp committed rG20cd1b475a1e: lib/libifconfig: Fix pointer-sign warnings (authored by freqlabs).
lib/libifconfig: Fix pointer-sign warnings
Thu, Apr 16, 6:07 AM
imp committed rGe75b324c93a1: kern_descrip.c: Clarify allocation and freeing of fd map in fdgrowtable() (authored by kris_tranception.com).
kern_descrip.c: Clarify allocation and freeing of fd map in fdgrowtable()
Thu, Apr 16, 6:07 AM
imp committed rG50c1240ebfaf: mkimg: Fix parsing of filenames containing colons (authored by aadityavksingh_gmail.com).
mkimg: Fix parsing of filenames containing colons
Thu, Apr 16, 6:07 AM
imp committed rGfbbf71f5813b: libpmc: surface raw TSC in pmclog events (authored by afscoelho_gmail.com).
libpmc: surface raw TSC in pmclog events
Thu, Apr 16, 6:07 AM
imp committed rGee12645ec737: pmcstat: print raw TSC in decoded log output (authored by afscoelho_gmail.com).
pmcstat: print raw TSC in decoded log output
Thu, Apr 16, 6:07 AM
imp committed rGaa462efde6dc: rockchip: support CM3588 board (authored by freebsd_sysctl.cz).
rockchip: support CM3588 board
Thu, Apr 16, 6:07 AM
imp committed rG763404397007: Fix xhci detection on Raspberry Pi 400 (authored by darkvincentdude_yahoo.com).
Fix xhci detection on Raspberry Pi 400
Thu, Apr 16, 6:07 AM
imp committed rGe0b22342f52b: newsyslog.conf(5): use "rotated" instead of "trimmed" (authored by Kit Dallege <xaum.io@gmail.com>).
newsyslog.conf(5): use "rotated" instead of "trimmed"
Thu, Apr 16, 6:07 AM
imp committed rG92378e0405a8: periodic/daily: show verbose zpool status when errors are detected (authored by Po Han Chen <hypery11@gmail.com>).
periodic/daily: show verbose zpool status when errors are detected
Thu, Apr 16, 6:07 AM
imp committed rG75e7709f4f3c: uvscom: Fix baud rate validation in uvscom_pre_param() (authored by Weixie Cui <cuiweixie@gmail.com>).
uvscom: Fix baud rate validation in uvscom_pre_param()
Thu, Apr 16, 6:07 AM
imp committed rG32cc01e75aab: sysctl.3: Correct kern and kern.proc type descriptions (authored by brothersw <tyler.waddell112@gmail.com>).
sysctl.3: Correct kern and kern.proc type descriptions
Thu, Apr 16, 6:07 AM
imp committed rG31744051c8a1: asmc: correctly label ASMC_KEY_FANMINSPEED as read-write (authored by Marcus Gartner <magartner@gmail.com>).
asmc: correctly label ASMC_KEY_FANMINSPEED as read-write
Thu, Apr 16, 6:07 AM
imp committed rGb5b9c65a6894: asmc: add support for MacBookPro13,1 (authored by Marcus Gartner <magartner@gmail.com>).
asmc: add support for MacBookPro13,1
Thu, Apr 16, 6:07 AM

Wed, Apr 15

imp added a comment to D56382: Bourne shell -> POSIX shell.

So I approve of this belatedly.

Wed, Apr 15, 5:26 PM
imp requested changes to D56401: sys/time: rework saturation ifdef to avoid direct arch ref.
Wed, Apr 15, 5:15 PM
imp added a comment to D56401: sys/time: rework saturation ifdef to avoid direct arch ref.

So what's wrong with the #ifdef i386 that we're going to tear down in the near future?
This seems to be way over-engineering a solution to a bogus gcc warning.
I'd really rather have #ifdef _KERNEL around the two sat functions instead of this over-engineering.

Wed, Apr 15, 5:08 PM
imp added a comment to D56409: kern: don't make pointer/int casting fatal.
In D56409#1291371, @jhb wrote:

CHERI is about to break all these anyway. What actual errors are you seeing with the kernel now? When I get armv7 building for GCC we probably want to fix all these properly anyway? So far I'm still trying to get armv7 world building so haven't even looked at the kernel.

Wed, Apr 15, 4:06 PM
imp added a comment to D56410: i386: locore.S includes this, so exclude C.

I didn't check to see when this regressed. And I didn't do a llvm build (though I should) w/o it.

Wed, Apr 15, 4:03 PM
imp added a reviewer for D56409: kern: don't make pointer/int casting fatal: jhb.
Wed, Apr 15, 2:41 PM
imp added a reviewer for D56410: i386: locore.S includes this, so exclude C: jhb.
Wed, Apr 15, 2:41 PM
imp added a reviewer for D56411: i386: mark the stack as non-executable: jhb.
Wed, Apr 15, 2:40 PM
imp added a reviewer for D56412: i386+gcc: gcc12 is the minimum version: jhb.
Wed, Apr 15, 2:40 PM
imp added a reviewer for D56413: i386+gcc: Turn off stack protection: jhb.
Wed, Apr 15, 2:40 PM
imp requested review of D56413: i386+gcc: Turn off stack protection.
Wed, Apr 15, 2:39 PM
imp requested review of D56412: i386+gcc: gcc12 is the minimum version.
Wed, Apr 15, 2:39 PM
imp requested review of D56411: i386: mark the stack as non-executable.
Wed, Apr 15, 2:39 PM
imp requested review of D56410: i386: locore.S includes this, so exclude C.
Wed, Apr 15, 2:39 PM
imp requested review of D56409: kern: don't make pointer/int casting fatal.
Wed, Apr 15, 2:39 PM
imp added a reviewer for D56407: syscalls: Preserve the attributes of the args: kevans.
Wed, Apr 15, 2:21 PM
imp added a reviewer for D56408: syscall: Create a script to export the data as json: kevans.
Wed, Apr 15, 2:21 PM
imp updated the diff for D56408: syscall: Create a script to export the data as json.

on second thought, simplify a bit: always write to stdout.

Wed, Apr 15, 2:19 PM
imp requested review of D56408: syscall: Create a script to export the data as json.
Wed, Apr 15, 2:17 PM
imp requested review of D56407: syscalls: Preserve the attributes of the args.
Wed, Apr 15, 2:17 PM

Tue, Apr 14

imp added inline comments to D56369: sys/time: appease gcc -Wtype-limits.
Tue, Apr 14, 8:17 PM
imp accepted D56369: sys/time: appease gcc -Wtype-limits.

Yea, I'd prefer if we could do

#if sizeof(time_t) == 4
<the code>
#endif

but that's not possible, and i386 is likely the next best thing, assuming it unbreaks the world build on i386.

Tue, Apr 14, 8:13 PM

Mon, Apr 13

imp committed rG2b954770ddd7: nvme: Use passed in max_pages. (authored by imp).
nvme: Use passed in max_pages.
Mon, Apr 13, 11:35 PM
imp added inline comments to D55638: nvme: Allow larger user request sizes.
Mon, Apr 13, 8:23 PM
imp added a comment to D56369: sys/time: appease gcc -Wtype-limits.

So this commit shows that the use of this in sys/kern/sys_timerfd.c has been wrong the whole time. We do the math, it overflows, but we can't detect it via these means on i386.

Mon, Apr 13, 8:20 PM
imp committed rG0ccb63941591: cross-build: Define __*int*_t and include sys/cdefs.h (authored by imp).
cross-build: Define __*int*_t and include sys/cdefs.h
Mon, Apr 13, 5:03 AM

Sun, Apr 12

imp committed rG90c4aec77ca2: gpart: Add warning when the start sector is too low. (authored by imp).
gpart: Add warning when the start sector is too low.
Sun, Apr 12, 10:17 PM
imp committed rG890adccde076: gpart: More nuance for GPT support (authored by imp).
gpart: More nuance for GPT support
Sun, Apr 12, 10:17 PM
imp accepted D56368: nvme_ctrlr_linux_passthru_cmd: correct size of upages_small array.

<doh!>
Thanks!

Sun, Apr 12, 8:46 PM
imp accepted D56362: unistd.h: _Fork(2) is required by POSIX 2024.
Sun, Apr 12, 6:40 PM
imp added inline comments to D56362: unistd.h: _Fork(2) is required by POSIX 2024.
Sun, Apr 12, 1:35 PM
imp accepted D56251: linux: add Linux i2c-dev ioctl compatibility support.
Sun, Apr 12, 4:14 AM

Fri, Apr 10

imp added inline comments to D56345: hid: add Sony PS5 DualSense controller driver.
Fri, Apr 10, 6:03 PM

Thu, Apr 9

imp committed rG82ff1c334b97: nvme: Allow larger user request sizes (authored by imp).
nvme: Allow larger user request sizes
Thu, Apr 9, 11:38 PM
imp committed rG428034ad0dbe: sys/kobj.h: Make self-sufficient (authored by imp).
sys/kobj.h: Make self-sufficient
Thu, Apr 9, 11:38 PM
imp closed D55638: nvme: Allow larger user request sizes.
Thu, Apr 9, 11:38 PM
imp added a comment to D56329: loader.efi.8/efibootmgr.8: Don't use contradicting term 'EFI BIOS'.

MFC After: 3 days

Thu, Apr 9, 4:42 PM
imp accepted D56329: loader.efi.8/efibootmgr.8: Don't use contradicting term 'EFI BIOS'.

I thought I had some quibbles with the details here, but thinking about it, these all look good. Go ahead and commit.

Thu, Apr 9, 4:30 PM
imp accepted D56328: mfiutil(4)/mrsasutil(4): "show drives" truncates information.

Looks sane to me, with the right constants used for the right things.

Thu, Apr 9, 4:27 PM
imp added a comment to D56329: loader.efi.8/efibootmgr.8: Don't use contradicting term 'EFI BIOS'.
In D56329#1288856, @imp wrote:

BIOS is both the generic term for firmware, and the specific term for the old boot interface which was a BIOS. CP/M and many other machines / systems used that. It was only after UEFI came out that the confusion was noticed, too late to do anything about.

Not saying it isn't a good idea to do this, just that EFI BIOS isn't contradictory. But since it's likely confusing to our readers, I'll take a close look.

Thank you, appreciated. From my layman's understanding UEFI is quite complex (see edk2 size) compared to Basic I/O system, and of course both are firmwares.

Thu, Apr 9, 3:41 PM
imp added a comment to D55195: git-arc: Tweak heuristic for email address.

No. I'll push this.

Thu, Apr 9, 3:39 PM
imp added a comment to D56329: loader.efi.8/efibootmgr.8: Don't use contradicting term 'EFI BIOS'.

BIOS is both the generic term for firmware, and the specific term for the old boot interface which was a BIOS. CP/M and many other machines / systems used that. It was only after UEFI came out that the confusion was noticed, too late to do anything about.

Thu, Apr 9, 1:36 PM
imp accepted D51189: release/gce.conf: Fix incorrect '/etc/rc.d/growfs' path.
Thu, Apr 9, 1:50 AM
imp accepted D55566: universe: allow moving build logs to TINDERBOX_LOGDIR.
Thu, Apr 9, 12:38 AM

Tue, Apr 7

imp accepted D56287: Add boot_setenv.

I like this, and also @kevans 's suggestion.

Tue, Apr 7, 1:54 AM

Mon, Apr 6

imp accepted D56249: loader/efi: pre-allocate memory map buffer before ExitBootServices.

Drop the watchdog timer change.

Mon, Apr 6, 3:31 PM

Sun, Apr 5

imp committed R11:e803e9a4f56e: devel/ghpr: Update to v5 (authored by imp).
devel/ghpr: Update to v5
Sun, Apr 5, 1:50 PM
imp added inline comments to D54674: sys: introduce hmp(4).
Sun, Apr 5, 1:23 PM

Sat, Apr 4

imp added a comment to D56257: CONTRIBUTING.md: Make quality expectations section more concise.

Yea. I'd expected approval of one by now... but we'll have to wait a bit for that, so this is perfect.

Sat, Apr 4, 9:33 PM
imp accepted D56257: CONTRIBUTING.md: Make quality expectations section more concise.
Sat, Apr 4, 9:32 PM
imp added inline comments to D56249: loader/efi: pre-allocate memory map buffer before ExitBootServices.
Sat, Apr 4, 1:16 AM

Wed, Apr 1

imp accepted D55359: lualoader: allow the local module to filter out the BE list.
Wed, Apr 1, 4:57 PM

Tue, Mar 31

imp added inline comments to D55182: geneve(4): Add geneve manual.
Tue, Mar 31, 3:25 AM
imp added a comment to D56115: stand/efi: retrieving and printing the boot count.

Current adopted the upstream edk ii headers. Efierr is gone. I plan on mfcing that to 15, i think as the lessor evil.

Tue, Mar 31, 12:57 AM