[SLP]Use fma as copyable main op without fmuladd lanes
fma(V, 1.0, -0.0) and fma(0.0, -0.0, V) equal V exactly, so fma
bundles model non-fma lanes as copyables, like fmuladd. fma lanes
never absorb fmul/fadd, so fma loses ties with fmul/fadd.
Assisted-by: Cursor
Reviewers:
Pull Request: https://github.com/llvm/llvm-project/pull/240039
OpenMP: Stop using TTI to pick the partial unroll factor in OMPIRBuilder
When the unrolled loop's CanonicalLoopInfo is needed by an enclosing
loop directive and no factor was given, unrollLoopPartial computed one
by constructing its own TargetMachine with default TargetOptions and a
standalone FunctionAnalysisManager, then running LoopUnrollPass's cost
model on the function while it was still being built.
This is a layering violation. Frontends should not be using codegen
optimization information to construct the original program. This will
not have a properly configured TargetTransformInfo from a pass
manager. The cost model is also not meaningful on incomplete,
unoptimized IR.
Use a factor of 2, matching what Sema's OpenMP loop transformation
uses for a partial clause without a factor. This removes the hidden
-openmp-ir-builder-unroll-threshold-factor option.
Co-authored-by: Claude Opus 5.5 <noreply at anthropic.com>
OpenMP: Use TargetMachine::getTargetIRAnalysis in OMPIRBuilder
Use the TargetMachine's TargetIRAnalysis instead of wrapping
getTargetTransformInfo in a custom callback. This is a marginal
improvement. TTI should come from the pass manager. There isn't a pass
manager because this is frontend IR construction code, and it's
entirely inappropriate to be using TTI at all.
Co-authored-by: Claude Opus 5.5 <noreply at anthropic.com>
x11-clocks/xfce4-datetime-plugin: Deprecate EOLed software
This xfce panel plugin has been EOLed by upstream. [1]
Marking it deprecated. No expiration is defined at present, but it
will fail to build with the next xfce desktop release, so an
expiration date will be added when the xfce release schedule will
be defined.
[1] https://docs.xfce.org/panel-plugins/xfce4-datetime-plugin/start
(cherry picked from commit 4fe839dda7d408186334f81a8e33b17d262b33ad)
asmc: move the sysctl registration loops next to their tables
asmc_attach() and asmc_init() had 4 description tables inline,
several hundred lines from the tables they index. Wrapped each loop in a
function defined after its table.
No functional change.
Reviewed by: adrian
Differential Revision: https://reviews.freebsd.org/D61293
asmc: make the raw key debug state unconditional
The ASMC_DEBUG block was in mid-struct, so struct asmc_softc had a different
layout in translation units that missed opt_asmc.h.
No functional change.
Reviewed by: adrian
Differential Revision: https://reviews.freebsd.org/D61292
asmc: move the backlight control level into the softc
light_control was a file-scope static shared by resume, the light.control
sysctl and the backlight method. Per-device state belongs in the softc.
No functional change.
Reviewed by: adrian
Differential Revision: https://reviews.freebsd.org/D61291
asmc: scan every sensor range through one helper
asmc_detect_sensors hand-rolled the temperature and light scans as copies
of asmc_scan_sensor_range(). Give the helper a match predicate and route
all five ranges through it.
No functional change.
Reviewed by: adrian
Differential Revision: https://reviews.freebsd.org/D61289
asmc: table-drive the system state and board identity sysctls
The dev.asmc.n.system subtree was seven copies of "probe the key, then
register", and the auto_poweron/sil pair in asmc_init two more. Drive both
from tables.
No functional change.
Reviewed by: adrian
Differential Revision: https://reviews.freebsd.org/D61288
asmc: collapse the SMS axis and light sensor sysctl handlers
asmc_mb_sysctl_sms_{x,y,z} differed only in which SMS key they read, and
asmc_mbp_sysctl_light_{left,right} only in which light key. One handler
each, selecting from a table through arg2.
No functional change.
Reviewed by: adrian
Differential Revision: https://reviews.freebsd.org/D61287
asmc: collapse the per-fan speed sysctl handlers
The five fan speed handlers differed only in which key they read and
whether they wrote back. Select the key from a table through arg2, the way
asmc_sensor_sysctl() already packs a type and an index, and keep one
handler. A second table drives the seven registration calls.
No functional change,
Reviewed by: adrian
Differential Revision: https://reviews.freebsd.org/D61286
asmc: share the getinfo and getbyindex PIO transactions
asmc_key_getinfo() and asmc_key_dump_by_index() both ran the command 0x13
transaction, the latter after a command 0x12. Put each behind a helper that
assumes the caller holds sc_mtx, and fold the shared response decode into
asmc_keyinfo_decode().
The index bytes are now derived inside the helper, so they are recomputed
per retry. Same value all the time.
Reviewed by: adrian
Differential Revision: https://reviews.freebsd.org/D61285
asmc: rebuild asmc_key_dump on the by-index helper
asmc_key_dump() branched on the backend, but asmc_key_dump_by_index()
already dispatches on it, so the PIO arm open-coded a transaction it could
have called. Keep one printer for both.
Output is unchanged. The PIO arm checked asmc_key_read()'s return value
instead of printing a zeroed buffer; the merged printer keeps that. Its
retry exhaustion message is gone, which asmc_dumpall() cannot observe.
Reviewed by: adrian
Differential Revision: https://reviews.freebsd.org/D61284
asmc: factor out the PIO data port byte loops
Reuse existing pattern and evict magic numbers
No functional change: the port access sequence and the per-caller retry
and error reporting behaviour are unchanged.
Reviewed by: adrian
Differential Revision: https://reviews.freebsd.org/D61283
Merge tag 'scsi-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi
Pull SCSI fixes from James Bottomley:
"Mostly fixes in drivers.
The three core changes are moving the target reap into the main exit
path of pseudo device allocation to fix a leak and a couple of minor
error propagation updates in bsg.
The largest driver fix is the rethreading of Buslogic to enable
context locking that was held back from the merge window pull due to
problems spotted by the maintainer"
* tag 'scsi-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi:
scsi: target: tcmu: Fix divide-by-zero in data_pages_per_blk store
scsi: target: Verify the iSCSI ISID is null-terminated
scsi: bsg: Report io_uring data copyback failures
scsi: bsg: Report synchronous data copyback failures
scsi: target: Validate REGISTER AND MOVE TransportID length
[12 lines not shown]
x11-clocks/xfce4-datetime-plugin: Deprecate EOLed software
This xfce panel plugin has been EOLed by upstream. [1]
Marking it deprecated. No expiration is defined at present, but it
will fail to build with the next xfce desktop release, so an
expiration date will be added when the xfce release schedule will
be defined.
[1] https://docs.xfce.org/panel-plugins/xfce4-datetime-plugin/start
net/rustdesk-server: Fix port user definition
The rustdesk software requires a home directory pointing to its DB
directory.
- Fix the user in UIDS
- Add update message to port
- Bump portrevision to force creating updated package
- Add warning in UPDATING
Reported by: Glenn Gregorec <hgic at geekazoid.com> (via email)
zfs_znode (Linux): Optimize hold insertion
When adding a node to a hold tree for a filesystem, use the position
found by the initial search that came up empty, to avoid likely
searching the tree again for the position.
Sponsored-by: Klara, Inc.
Sponsored-by: Wasabi Technology, Inc.
Reviewed-by: Rob Norris <rob.norris at truenas.com>
Reviewed-by: Brian Behlendorf <behlendorf1 at llnl.gov>
Signed-off-by: Ryan Moeller <ryan.moeller at klarasystems.com>
Closes #19745
zfs_dir (FreeBSD): Wrap errors with SET_ERROR
The origin of errors should use SET_ERROR() to aid debugging.
Sponsored-by: Klara, Inc.
Sponsored-by: Wasabi Technology, Inc.
Reviewed-by: Rob Norris <rob.norris at truenas.com>
Reviewed-by: Brian Behlendorf <behlendorf1 at llnl.gov> Signed-off-by: Ryan Moeller <ryan.moeller at klarasystems.com>
Closes #19744
zfs_vnops (Linux): Wrap errors with SET_ERROR
The origin of errors should use SET_ERROR() to aid debugging.
Sponsored-by: Klara, Inc.
Sponsored-by: Wasabi Technology, Inc.
Reviewed-by: Rob Norris <rob.norris at truenas.com>
Reviewed-by: Brian Behlendorf <behlendorf1 at llnl.gov> Signed-off-by: Ryan Moeller <ryan.moeller at klarasystems.com>
Closes #19744