clnt_rdma.c: Copy data into the pages before dma mapping them
Without this patch, the code would copy data into pages for
a large RPC request being done over RDMA after doing the
dma mapping of the pages. (Dma mapping of the pages includes
the dma sync for the device.)
This patch moves the data copying up to before the call
to xprt_rdma_create_chunk(), which does the dma mapping,
including the dma sync for the device.
Reported by: llm-postcr
MFC after: 1 month
Fixes: 80bee4d83637 ("nfsclrdma: Add code to support client side NFS over RDMA")
ports.cgi: use readable labels for package filters and counters
Count search results as "ports" and package results as
"packages" instead of "results".
cpufreq_dt: Only register the first CPU of a group sharing the OPP table
The CPUs using the same OPP table share their clock and their
regulator, but each one had its own cpufreq driver looking for
cpu-supply in its own node. Some device trees only have cpu-supply
for the first CPU (for example the Pine H64), so changing the
frequency with another CPU changed it without changing the voltage.
Only register the driver of the first CPU of each group. The
dev.cpu.N.freq sysctls of the other CPUs of the group are not created
anymore, the frequency is changed with the first one for all of them.
Fixes: 41a76289e601 ("cpufreq_dt: Add operating-points-v2 support")
Tested on: Quartz64
Reviewed by: mmel
Differential Revision: https://reviews.freebsd.org/D61701
cpufreq_allwinner: Add the hardware version of the H6
The voltage of each OPP of the H6 depends on the speed bin of the
chip, stored in an efuse referenced by the nvmem-cells property of the
OPP table. Read it and give the bin to cpufreq_dt, so it uses the
matching opp-microvolt-speed<N> property.
Tested on: Pine H64
Reviewed by: mmel
Differential Revision: https://reviews.freebsd.org/D61700
cpufreq_dt: Honor opp-supported-hw and opp-microvolt-<name>
Use the hardware version given by the SoC specific code to select
the OPPs and their voltages, as described by the OPP binding.
An OPP with opp-supported-hw is only used if one of its sub-groups
matches the hardware version, which means that each level of the
sub-group has a bit in common with the version.
The voltages are read from opp-microvolt-<name> if the SoC specific
code gives a name and the OPP has this property, from opp-microvolt
otherwise.
If no hardware version is known the OPPs with opp-supported-hw are not
used as it is not safe to use an OPP that the hardware might not
support. Setting the hw.cpufreq_dt.ignore_supported_hw loader tunable
to 1 uses them all, as it was done before.
Reviewed by: mmel
Differential Revision: https://reviews.freebsd.org/D61699
cpufreq_dt: Add a hook for the SoC specific hardware version
Some SoCs select the OPPs and their voltages (opp-supported-hw and
opp-microvolt-<name>) from a hardware version, for example a speed
grade read from an efuse. How to get this version depends on the SoC
and is not described by the OPP table.
Add the cpufreq_dt_vendor kobj interface, with a method returning the
version: a bitmask for each level of version and the name to use for
opp-microvolt-<name>. The class implementing it is found from the
compatible string of the OPP table (an array of ofw_compat_data, as
the uart driver does), or with the optional match method for the SoCs
that only use the generic operating-points-v2 compatible.
The version is stored in the softc but not used yet and no class
registers, so no functional change intended.
Reviewed by: mmel
Differential Revision: https://reviews.freebsd.org/D61698
nvmem: Add functions to get the provider and the location of a cell
Some SoCs store the hardware version needed to select the CPU OPPs in an
efuse, referenced by the nvmem-cells property of the OPP table or of
the CPU node. The nvmem_read_cell_*() functions cannot be used for this
because they need nvmem-cell-names, which these device trees do not
have, and because the way to read and decode the value depends on the
SoC.
Add nvmem_cell_get_by_ofw_idx() and nvmem_cell_get_by_ofw_name(), which
return the nvmem provider and the offset and size of a cell, so that
the caller can read it with NVMEM_READ().
Nothing uses them yet.
Reviewed by: mmel
Differential Revision: https://reviews.freebsd.org/D61697
cpufreq_dt: Move the parsing of opp-microvolt in its own function
Move the code that reads the voltages of an OPP in
cpufreq_dt_oppv2_parse() to a new function, so the way the voltages
are found can be changed for some SoCs.
No functional change intended.
Reviewed by: mmel
Differential Revision: https://reviews.freebsd.org/D61696
cpufreq_dt: Do not count the OPP table nodes that have no opp-hz
The number of OPPs was the number of children of the OPP table, but
a child without opp-hz is skipped while parsing (opp-hz is a required
property) and the index was still incremented for it. The matching
entry of the array, which is not zeroed, was then left uninitialised
and used as a valid OPP.
Only count the nodes that have opp-hz so the number of entries
matches the ones that are parsed.
Fixes: 41a76289e601 ("cpufreq_dt: Add operating-points-v2 support")
Reviewed by: mmel
Differential Revision: https://reviews.freebsd.org/D61695
cpufreq_dt: Read clock-latency-ns and convert latencies to microseconds
The operating-points-v2 binding names the per-OPP latency
"clock-latency-ns", but the parser looked for "clock-latency", so the
latency of every v2 OPP was reported as unknown.
The device tree gives the latencies in nanoseconds (this is also the
case for the "clock-latency" of operating-points v1) while the cpufreq
framework wants them in microseconds. Convert them, rounding up so a
non-zero latency never becomes 0.
Fixes: 41a76289e601 ("cpufreq_dt: Add operating-points-v2 support")
Fixes: 319336a943a5 ("Add generic device-tree cpufreq driver.")
Reviewed by: mmel
Differential Revision: https://reviews.freebsd.org/D61694
www/mod_auth_kerb2: Fix build with the GSSAPI_HEIMDAL option
With the GSSAPI_HEIMDAL option enabled the build fails with
"incompatible function pointer types", because accept_sec_token is
declared with a const gss_cred_id_t argument while Heimdal's
gss_accept_sec_context() takes a gss_const_cred_id_t. Use
gss_const_cred_id_t in the pointer type, applied only for this option.
PR: 277660
Sponsored by: Netzkommune GmbH
sysutils/luckybackup: Update to 0.6.0, migrate to Qt6, and take maintainership
Fix up the Qt6 removals in the source. Raise the compiler floor to
C++17.
Behavior changes:
- QFileSystemModel is not a drop-in for the removed QDirModel. It has
no sort flags, so the manage dialog tree views no longer group dirs
first. Path completers now suggest directories only, as it defaults
to a dirs-only filter
- Locale date strings move to QLocale long format applied to the date
only. Output stays date-only as before, since a Qt6 long format on a
full datetime would also print time
PR: 300735
Approved by: jhale (maintainer)
Approved by: makc (mentor)
Approved by: arrowd (co-mentor)
x11/ly: use init signals for graceful shutdown and reboot
This change replaces direct reboot system calls with SIGUSR2 and SIGINT
signals sent to PID 1 (see init(8)). Direct reboot system calls can
cause abrupt process termination, bypassing the normal FreeBSD shutdown
procedure.
ntpd[24311]: ntpd exiting on signal 15 (Terminated)
kernel: pid 1090 (pulseaudio), jid 0, uid 1001: exited on signal 6 (no core dump - other error)
syslogd: exiting on signal 15
Delegating these operations to init allows the system to perform an
orderly shutdown or reboot, giving running processes the opportunity to
terminate gracefully.
PR: 301245
Approved by: makc (mentor)
Approved by: arrowd (co-mentor)
sysutils/sigu: New port
SIGU stands for the System Information Graphical Utility. It is similar
to neofetch or fastfetch, but designed for graphical environments.
The dialog box window that displays this information can be customized
in its appearance and behavior using various environment variables.
Approved by: makc (mentor)
Approved by: arrowd (co-mentor)