draid: recover damaged distributed spare copies
When a dRAID disk is replaced by a distributed spare while the
original disk stays attached, ZFS always reads that column from
the distributed spare. If the spare's copy is silently damaged,
the original disk's copy is never tried, so a block that could
have been recovered is reported as lost.
A healing resilver makes this worse: it copies the spare's data
onto the original disk before the block has been verified. If
the block then cannot be rebuilt, the good copy on the original
disk has been overwritten and the data is lost for good.
This change:
- Compares the copies under the distributed spare when a failed
read is retried and, if they differ, uses the original disk's
copy. The damaged copy is repaired once the block has been
verified.
[21 lines not shown]
[lldb] Avoid repeated interrupts for multi-site breakpoint updates (#246807)
Creating, enabling, or disabling a breakpoint with multiple sites while
a remote inferior is running interrupts and resumes the inferior once
per site.
Hold the remote transport lock across the operation so LLDB can send the
individual breakpoint packets during a single interruption.
Before the patch:
```
(lldb) platform select remote-linux
(lldb) platform connect connect://127.0.0.1:1234
(lldb) file sample
(lldb) run
(lldb) br add name test
Breakpoint 1: 100 locations.
(lldb) stat dump
"totalBreakpointResolveTime": 9.633445,
[8 lines not shown]
[AMDGPU] NFC: Precommit test for blocking cycle coverage (#246074)
For an upcoming refactor of `getBlockingCycles` -- we were missing
coverage on some groups of BlockingCycles instructions
---------
Co-authored-by: Matt Arsenault <Matthew.Arsenault at amd.com>
ports.cgi: use div instead of span around paragraphs
A span is an inline element and must not contain block elements
such as p. Use a div for the "nothing found" message and the
noscript warning.
rtld-elf/i386: assume CPUID is always present
It is on amd64 host.
Reviewed by: jhb, markj
Sponsored by: The FreeBSD Foundation
Differential revision: https://reviews.freebsd.org/D60693
libc/csu/i386: assume CPUID is always present
It is on amd64 host.
Reviewed by: jhb, markj
Sponsored by: The FreeBSD Foundation
Differential revision: https://reviews.freebsd.org/D60693
i386 lib/msun: SSE2 is always present on amd64 host
Reviewed by: markj
Sponsored by: The FreeBSD Foundation
Differential revision: https://reviews.freebsd.org/D60703
NAS-145450 / 28.0.0-BETA.1 / Use netlink to get RDMA links (#20324)
Middleware kept the RDMA link and card choices in a cache until it
restarted. It did not see links that were added or removed after that.
This PR removes both caches. Middleware now gets the RDMA links from the
kernel through netlink with `get_rdma_links` from `truenas_pynetif`. It
no longer runs `rdma -j link`.
`rdma.interface.internal_interfaces` is called for each
`interface.query`. It now gets the RDMA links only if RDMA interfaces
are configured. It also ignores a configured interface that has no link.
Before, this caused a `KeyError`.
The second commit replaces the clearable cache from the first commit.
Thus `rdma.reset_link_choices` is not necessary and tests do not need to
call it.
Merge truenas/truenas_pynetif#68 before this PR.
[3 lines not shown]
[flang] Accept structure constructors omitting a component whose type has default initialization (#247370)
flang rejected a structure constructor that omits a non-pointer,
non-allocatable component of derived type.
This rejection is when the component has no initializer of
its own but its type has default initialization.
Here is an example:
type inner
integer :: x = 1
end type
type outer
type(inner) :: comp
end type
type(outer) :: v
v = outer() ! error: Structure constructor lacks a value for component
'comp'
According to the Fortran Standard, a component as shown in the above
[15 lines not shown]
[X86][ACEV1] Drop the fixed shape from the managed-RA intrinsics
Palette 2 fixes every ACE tile at 16 rows of 64 bytes, so the two
leading shape arguments were always 16 and 64, and X86TileConfig
already refused to write them into the descriptor. They reached the
binary as two unread movw.
Remove them from the 19 internal builtins and intrinsics, and give
the passes that asked for a ShapeT an ACE path, since ShapeT holds
MachineOperands and cannot hold a constant. MayLiveAcrossBlocks is
sized by a guess the ACE reload already outgrew, so grow it on
demand. The header API is unchanged.
[SystemZ][z/OS] Emit error when passing vector types without vector extension (#246407)
Currently, there is no ABI defined on z/OS for passing vector types when
the vector extension is disabled/not available. Emit an error message
for this case while we are working on extending the ABI.
This is a temporary measure until the ABI is defined.
---------
Co-authored-by: Kazu Hirata <kazu at google.com>
[mlir][SPIR-V] Add SPV_KHR_float_controls2 and FPFastMathDefault (#244569)
Let spirv.ExecutionModeId take type and constant operands, which
FPFastMathDefault needs, and rename the INTEL FPFastMathMode bits to KHR
names