Page MenuHomeFreeBSD
Feed Advanced Search

Mon, Jul 1

imp added a comment to D45825: cdefs.h __generic: avoid gcc -Wunused-value.

Seems fine... what compilers / build env hits this?

Mon, Jul 1, 5:18 PM
imp added a comment to D45729: bnxt_re: Add Userspace Library Support for RoCE Driver.

Overall this looks good, up to my ability to review it. A couple of really minor nits, plus a question based on a pull request that came in over the weekend.

Mon, Jul 1, 5:09 PM

Sun, Jun 30

imp accepted D45707: bluetooth socket sysinit: correct memset initialization.

So I've taken a look at this, and it's fine.
emax@, the original BT author things its fine as well.
We should commit this.
I think just zeroing it all and moving on is the right thing to do. The old code is clearly wrong and the new code sets all the right bits ...

Sun, Jun 30, 7:26 PM

Fri, Jun 28

imp added inline comments to D45574: time: switch to fences for siginfo_recvd.
Fri, Jun 28, 9:22 PM
imp committed rGfc3e5334ab89: Fix "%hhi" conversion for kvprintf() (authored by sebastian.huber_embedded-brains.de).
Fix "%hhi" conversion for kvprintf()
Fri, Jun 28, 3:01 PM
imp committed rGab08da5328b4: loader: Increase buffer size to accommodate longer commands (authored by Ahmad Khalifa <ahmadkhalifa570@gmail.com>).
loader: Increase buffer size to accommodate longer commands
Fri, Jun 28, 12:41 AM
imp committed rGcf9c4b32cca0: RELNOTES: mention moving filesystems to section 4 (authored by concussious.bugzilla_runbox.com).
RELNOTES: mention moving filesystems to section 4
Fri, Jun 28, 12:38 AM
imp committed rGa85d870007e7: man.sh: revert trapping SIGPIPE (authored by concussious.bugzilla_runbox.com).
man.sh: revert trapping SIGPIPE
Fri, Jun 28, 12:36 AM
imp committed rG088cc7d221bb: man filesystems: fix more xrefs after move to s4 (authored by concussious.bugzilla_runbox.com).
man filesystems: fix more xrefs after move to s4
Fri, Jun 28, 12:33 AM
imp committed rGcfe55a8af81d: fwget.8: polish (authored by concussious.bugzilla_runbox.com).
fwget.8: polish
Fri, Jun 28, 12:30 AM

Thu, Jun 27

imp added a comment to D28750: ipmi: on aarch64, load dependancies to increase chance of finding ipmi device.

I don't understand this.
I wonder why both of these aren't always depends...
Also, I can't find the places where those two modules are built in this review chain...
So @allanjude what's the story.

Thu, Jun 27, 10:31 PM
imp added a comment to D28748: ig4(4): Use calculated value when sda_hold is zero in ACPI.

So this isn't needed for what I'm doing... it looks interesting. What's the status?

Thu, Jun 27, 10:28 PM
imp closed D28745: ipmi: Add smbus and pci ipmi types to aarch64 builds.
Thu, Jun 27, 10:27 PM
imp accepted D28745: ipmi: Add smbus and pci ipmi types to aarch64 builds.
Thu, Jun 27, 10:27 PM
imp commandeered D28745: ipmi: Add smbus and pci ipmi types to aarch64 builds.
Thu, Jun 27, 10:27 PM
Herald added a reviewer for D28745: ipmi: Add smbus and pci ipmi types to aarch64 builds: andrew.

https://reviews.freebsd.org/D45765 replaces this.
I think this should be Author: allanjude, and that will be what I push (even though I tweaked it in a tiny way, it's not enough to get to co-author)

Thu, Jun 27, 10:26 PM
imp requested review of D45765: smbios: Compile into the kernel more completely.
Thu, Jun 27, 10:25 PM
imp added reviewers for D45764: arm64: Add smbios to kernel: gallatin, allanjude, scottph, emaste.
Thu, Jun 27, 10:15 PM
imp closed D28744: Enable smbios in ARM64 GENERIC.
Thu, Jun 27, 10:15 PM
imp commandeered D28744: Enable smbios in ARM64 GENERIC.

This no longer applies.
I've create a new review
https://reviews.freebsd.org/D45764
and closing this one.

Thu, Jun 27, 10:14 PM
imp requested review of D45764: arm64: Add smbios to kernel.
Thu, Jun 27, 10:14 PM
imp updated the test plan for D45763: smbios: Add length sanity checking.
Thu, Jun 27, 10:01 PM
imp closed D28743: ipmi_smbios: Deduplicate smbios entry point discovery logic.

See https://reviews.freebsd.org/D45763 for what little missing functionality was missing.
As always, flag anything I missed, etc

Thu, Jun 27, 9:59 PM
imp accepted D28743: ipmi_smbios: Deduplicate smbios entry point discovery logic.
Thu, Jun 27, 9:59 PM
imp commandeered D28743: ipmi_smbios: Deduplicate smbios entry point discovery logic.

Most of this change has been re-committed / re-implemented.
The only thing this adds that isn't in the tree is length checks, which I've added.

commit f689cb23b2782d0d0f586bcfabbad68f728ed1df
Author: Val Packett <val@packett.cool>
Date:   Wed Apr 7 15:05:49 2021 -0500
Thu, Jun 27, 9:58 PM
imp requested review of D45763: smbios: Add length sanity checking.
Thu, Jun 27, 9:58 PM
imp closed D28740: smbios: Use loader provided address for SMBIOS entry point.

This revision by Val Packett implements this functionality in a better way.
If I've missed something, please let me know, file a new differential, tag me, etc

commit a29bff7a5216bd5f4a76228788e7eacf235004de
Author: Val Packett <val@packett.cool>
Date:   Wed Apr 7 14:46:29 2021 -0500
Thu, Jun 27, 9:35 PM
imp accepted D28740: smbios: Use loader provided address for SMBIOS entry point.
Thu, Jun 27, 9:33 PM
imp commandeered D28740: smbios: Use loader provided address for SMBIOS entry point.

This review is OBE. Other changes implement this in main.

Thu, Jun 27, 9:33 PM
imp added a comment to D28707: Fix attachment of IPMI driver on ARM64.

Is there some interest in getting IPMI working on arm64 machines? When testing FreeBSD current on two Ampere systems it does not work. Some of the smaller patches are not yet committed. Is there an intention to get this working?

Thu, Jun 27, 9:31 PM
imp closed D28739: smbios: Support (and prefer) the SMBIOS 64-bit Entry Point Structure.
Thu, Jun 27, 9:30 PM
imp added a comment to D28739: smbios: Support (and prefer) the SMBIOS 64-bit Entry Point Structure.

Looks like Drew already landed this:

commit ba0e4d7971e05ee64281a4fc49a2fb408c8ad816
Author: Andrew Gallatin <gallatin@FreeBSD.org>
Date:   Wed Nov 15 11:11:53 2023 -0500
Thu, Jun 27, 9:30 PM
imp accepted D28739: smbios: Support (and prefer) the SMBIOS 64-bit Entry Point Structure.
Thu, Jun 27, 9:28 PM
imp commandeered D28739: smbios: Support (and prefer) the SMBIOS 64-bit Entry Point Structure.

This has all been committed. Commandeering Revision to close it.

Thu, Jun 27, 9:28 PM
imp closed D28737: stand: Support (and prefer) the SMBIOS 64-bit Entry Point Structure.

It seems like this was obsoleted by:

commit ee97f198b42d50437f87aa4111d478eca2a5be16
Author: John-Mark Gurney <jmg@FreeBSD.org>
Date: Wed Feb 22 02:27:37 2023 +0000

Support SMBIOS v3 for 64-bit entry systems

Summary:
Under QEMU on arm64 systems, the smbios table is above 4GB
requiring a 64-bit address to access.

Reviewers: manu

Subscribers: imp, bcran, dab

Differential Revision: https://reviews.freebsd.org/D38721
Thu, Jun 27, 9:25 PM
imp added inline comments to D45691: timeout.1: Add a STANDARDS section.
Thu, Jun 27, 7:13 PM
imp accepted D45750: nvme: avoid gcc -Werror=int-to-pointer-cast on 32-bit arch.
Thu, Jun 27, 3:34 AM

Wed, Jun 26

imp accepted D45750: nvme: avoid gcc -Werror=int-to-pointer-cast on 32-bit arch.

why the crazy vm_offset_t instead of uintptr_t??

Wed, Jun 26, 9:11 PM
imp accepted D45740: net: Remove unneeded NULL check for the allocated ifnet.

Looks good. I can't answer the wrapper question definitively, but I suspect it will be fine.

Wed, Jun 26, 4:05 PM
imp committed rG0c00c3d75b27: test: Change bug number (authored by imp).
test: Change bug number
Wed, Jun 26, 3:19 PM
imp committed rGb2351a4ba5ef: test: disable sys.kern.unix_seqpacket_test.random_eor_and_waitall (authored by imp).
test: disable sys.kern.unix_seqpacket_test.random_eor_and_waitall
Wed, Jun 26, 1:35 AM

Tue, Jun 25

imp accepted D45734: platforms/i386: report Pentium Pro as minimum supported x86 processor.

I haven't heard of anybody building i586 or i486 in a while. That suggests that it isn't com.on / interesting enough to highlight here.

Tue, Jun 25, 10:57 PM
imp accepted D45736: sched_unpin(): assert that curthread was pinned.
Tue, Jun 25, 8:32 PM
imp added a comment to D45734: platforms/i386: report Pentium Pro as minimum supported x86 processor.

Would it be more clear or accurate to mention the "Pentium MMX" instead or in addition to the Pentium Pro?
It was much more common and known to the public than the Pentium Pro.

Tue, Jun 25, 8:30 PM
imp abandoned D45650: cdefs.h: Don't define _Static_assert helper in C++ < C++11.
Tue, Jun 25, 6:52 PM
imp accepted D45726: arm: Start to remove the now unneeded acle-compat.h.
Tue, Jun 25, 6:14 PM
imp accepted D45731: stand: module: unlink the entire tail when dependencies fail to load.

This looks good to me

Tue, Jun 25, 4:11 PM
imp committed rGbbecd3148abf: tpm: Fix acpi attachment (authored by imp).
tpm: Fix acpi attachment
Tue, Jun 25, 5:38 AM
imp committed rG6a467c783d66: tpm: Fix standalone build (authored by imp).
tpm: Fix standalone build
Tue, Jun 25, 5:37 AM

Mon, Jun 24

imp committed rG617688369784: sys.netinet6.divert.ipdivert_ip6_output_remote_success fails (authored by imp).
sys.netinet6.divert.ipdivert_ip6_output_remote_success fails
Mon, Jun 24, 9:11 PM
imp committed rG65522b64ad7e: sys/cdefs.h: Remove old arm acle-compat.h workaround (authored by imp).
sys/cdefs.h: Remove old arm acle-compat.h workaround
Mon, Jun 24, 9:11 PM
imp committed rG677b28750a86: sys/cdefs.h: Note gcc supports many __has_* macros (authored by imp).
sys/cdefs.h: Note gcc supports many __has_* macros
Mon, Jun 24, 9:11 PM
imp accepted D45710: libthr: move __always_inline to canonical position.
Mon, Jun 24, 1:01 PM
imp accepted D45711: cdefs.h: add __inline to __always_inline.
Mon, Jun 24, 3:52 AM
imp added inline comments to D45711: cdefs.h: add __inline to __always_inline.
Mon, Jun 24, 3:50 AM

Sun, Jun 23

imp added a comment to D45711: cdefs.h: add __inline to __always_inline.

Is this used in .h file or .c files?

Sun, Jun 23, 6:29 PM
imp accepted D45699: fix am335x_dmtimer.c.

I think this is in the TI kernel that's kinda on the way out unless it gets fixed... and oskar has been fixing it up...

Sun, Jun 23, 3:39 PM · ARM
imp added a comment to D45661: malloc: Handle large malloc sizes in malloc_size().
In D45661#1042261, @kib wrote:
In D45661#1041742, @kib wrote:

I think malloc_large() and this one need to check that round_page(size) does not overflow.

Hmm, kmem_malloc* also don't check for overflow. Presumably those functions and malloc_size() should KASSERT(round_page(size) >= size);?

It would be useful, but only for debug kernels. For instance, an unhandled unbound allocation leaking from some device' ioctl is my worry there.

Sun, Jun 23, 3:19 AM

Sat, Jun 22

imp accepted D45073: sh(1): Improve recommendation of use of -e.

The current text is moderate. If anything it is too weak. While the generic philosophy has been to eschew advice, this crosses the lone into useful, nonobvious information necessary to successfully use the tool....

Sat, Jun 22, 11:41 PM
imp added inline comments to D45659: Enable usbhid by default.
Sat, Jun 22, 3:06 PM

Fri, Jun 21

imp committed rGb1cd308b37ea: cdefs: Add missing continuation line... (authored by imp).
cdefs: Add missing continuation line...
Fri, Jun 21, 10:52 PM
imp added a comment to D45658: conf: Add hkbd and hms to GENERIC* kernel configs.

Seems reasonable to me, if we have ukbd compiled in as well. Can you also indicate in the commit message what we get out of using hkbd instead of ukbd?

I thought my message was clear on this, can you suggest better wording then ?

Fri, Jun 21, 9:04 PM
imp added inline comments to D45659: Enable usbhid by default.
Fri, Jun 21, 8:31 PM
imp committed rG681fd2bed8ea: pax: Terminate loop for empty directory names (authored by martymac).
pax: Terminate loop for empty directory names
Fri, Jun 21, 4:44 PM
imp committed rG5a969a3459e4: cdefs.h: Move to more regular _Thread_local define (authored by imp).
cdefs.h: Move to more regular _Thread_local define
Fri, Jun 21, 3:54 PM
imp closed D45663: cdefs.h: Move to mroe regular _Thread_local define.
Fri, Jun 21, 3:54 PM
imp committed rG4a86b26b84be: stdlib: Support compiling with tinyc by omitting compat qsort code (authored by imp).
stdlib: Support compiling with tinyc by omitting compat qsort code
Fri, Jun 21, 3:54 PM
imp closed D45651: stdlib: Support compiling with tinyc by omitting compat qsort code.
Fri, Jun 21, 3:54 PM
imp added inline comments to D45651: stdlib: Support compiling with tinyc by omitting compat qsort code.
Fri, Jun 21, 3:08 PM
imp committed rGd5c01e1124ff: cdefs.h: Remove pre gcc 5.0 support (authored by imp).
cdefs.h: Remove pre gcc 5.0 support
Fri, Jun 21, 2:42 AM
imp committed rGfa1e8538d1ce: math.h: Remove support for old gcc versions (authored by imp).
math.h: Remove support for old gcc versions
Fri, Jun 21, 2:42 AM
imp committed rG67d1a1cd9e77: cdefs.h: Remove support for pre gcc 4.0 (authored by imp).
cdefs.h: Remove support for pre gcc 4.0
Fri, Jun 21, 2:41 AM
imp committed rG2508372b7b46: cdefs.h: Assume the compiler supports at least GNU C 3.0 extensions (authored by imp).
cdefs.h: Assume the compiler supports at least GNU C 3.0 extensions
Fri, Jun 21, 2:41 AM
imp closed D45656: cdefs.h: Remove pre gcc 5.0 support.
Fri, Jun 21, 2:41 AM
imp closed D45655: math.h: Remove support for old gcc versions.
Fri, Jun 21, 2:41 AM
imp closed D45654: cdefs.h: Remove support for pre gcc 4.0.
Fri, Jun 21, 2:41 AM
imp closed D45653: cdefs.h: Assume the compiler supports at least GNU C 3.0 extensions.
Fri, Jun 21, 2:41 AM

Thu, Jun 20

imp abandoned D45657: arm: Remove dead code.

Ah, that's different. I'll just punt

Thu, Jun 20, 5:27 PM
imp added reviewers for D45663: cdefs.h: Move to mroe regular _Thread_local define: dim, brooks, jrtc27.
Thu, Jun 20, 5:17 PM
imp added a comment to D45651: stdlib: Support compiling with tinyc by omitting compat qsort code.

I think the C++ case will now expand, but fail to link

Thu, Jun 20, 5:17 PM
imp requested review of D45663: cdefs.h: Move to mroe regular _Thread_local define.
Thu, Jun 20, 5:17 PM
imp updated the diff for D45651: stdlib: Support compiling with tinyc by omitting compat qsort code.

tinyc doesn't support cplusplus, so this is a nop for that. However,
some future compiler might support C and C++, but not support symver, so
go ahead and make this future proof.

Thu, Jun 20, 5:17 PM
imp added inline comments to D45656: cdefs.h: Remove pre gcc 5.0 support.
Thu, Jun 20, 5:09 PM
imp added a comment to D45653: cdefs.h: Assume the compiler supports at least GNU C 3.0 extensions.

I think the question "should these remain when we can count on the __attribute__((attribute)) existing?" is a question worth asking, but removing them is going to be a long and bumpy road as we've had these for a long time. In the mean time I see no value in retaining support for compilers that can't realistically work. It's just clutter.

Thu, Jun 20, 5:02 PM
imp updated the diff for D45651: stdlib: Support compiling with tinyc by omitting compat qsort code.

remove extra change

Thu, Jun 20, 4:34 PM
imp updated the summary of D45651: stdlib: Support compiling with tinyc by omitting compat qsort code.
Thu, Jun 20, 4:34 PM
imp updated the diff for D45651: stdlib: Support compiling with tinyc by omitting compat qsort code.

Move to the more preferred way to gate this stuff.

Thu, Jun 20, 4:33 PM
imp added a comment to D45651: stdlib: Support compiling with tinyc by omitting compat qsort code.

Ideally, we'd just not define sym_compat and omit the first symbol that uses it when sym_compat isn't defined. That's the most straight forward thing to do. But that review got mired down and I abandoned it and lost the branch locally somehow. I'll rework this to do that, though.

Thu, Jun 20, 2:38 PM
imp accepted D45658: conf: Add hkbd and hms to GENERIC* kernel configs.

Apart from the one mistakenly added hid kernel, I like it. But I hit approve because that mistake predates this change.

Thu, Jun 20, 2:32 PM
imp added a reviewer for D45657: arm: Remove dead code: dim.
Thu, Jun 20, 2:30 PM
imp added a reviewer for D45656: cdefs.h: Remove pre gcc 5.0 support: dim.
Thu, Jun 20, 2:30 PM
imp added a reviewer for D45655: math.h: Remove support for old gcc versions: dim.
Thu, Jun 20, 2:29 PM
imp added a reviewer for D45654: cdefs.h: Remove support for pre gcc 4.0: dim.
Thu, Jun 20, 2:29 PM
imp added a reviewer for D45653: cdefs.h: Assume the compiler supports at least GNU C 3.0 extensions: dim.
Thu, Jun 20, 2:29 PM
imp added a comment to D45653: cdefs.h: Assume the compiler supports at least GNU C 3.0 extensions.
In D45653#1041463, @kib wrote:

I do not like this/object against the appoach. What is the point of having all that re-defines in sys/cdefs.h? Why not use GNUCC-ism attribute((something)) directly? It would be less confusing and less convoluted to see actual code feed to the compiler, from our sources.

IMO the point of cdefs.h is to hide compiler-specific features behind FreeBSD-specific features. If compiler cannot provide the feature, sys/cdefs.h should clearly state that at compilation stage.
In other words, I think it is mostly fine to do something like

#if defined(__GNUC__)
#define __freebsd_feature __gcc_feature
#else
#error compiler does not implement freebsd_feature
#endif

but not just assume that everything is GCC.

Thu, Jun 20, 2:20 PM
imp added a comment to D45656: cdefs.h: Remove pre gcc 5.0 support.

This obsoletes https://reviews.freebsd.org/D45650 btw and also fixes the problem.

Thu, Jun 20, 6:21 AM
imp added a reviewer for D45657: arm: Remove dead code: manu.
Thu, Jun 20, 6:20 AM
imp requested review of D45657: arm: Remove dead code.
Thu, Jun 20, 6:16 AM
imp requested review of D45656: cdefs.h: Remove pre gcc 5.0 support.
Thu, Jun 20, 6:16 AM
imp requested review of D45655: math.h: Remove support for old gcc versions.
Thu, Jun 20, 6:16 AM