NFC: MLIR Indexing Utils comment fix (#183438)
the comment for delinearize was incorrect and swapped modulus and
division, updated comment to match code
[flang-rt] Fix EXECUTE_COMMAND_LINE() on Windows (#184875)
Detect cmd.exe special status code 9009 that indicates "command not
found" condition. Crash the process if "command not found" detected when
CMDSTAT was not specified.
[lldb][Darwin] Don't try to insert breakpoint on corefiles (#184749)
lldb is printing an error that the kext-loaded notification breakpoint
can't be set when debugging a kernel corefile. The breakpoint only needs
to be inserted in live debug sessions.
rdar://170813438
filter out snapshots from iter_mountinfo
This commit adds a non-default parameter to include ZFS
snapshots in iter_mountinfo results. It fixes a bug whereby
automounted snapshots could accidentally leak into mount
info results causing logic relying on this to potentially
walk into snapshot directories. Heuristic is to check
whether source filesystem has an @ character and is ZFS
in order to positively identify snapshots vs other
filesystems. One impact of this heuristic is that users
manually mounting snapshots into normal filesystem paths
will have the snapshot excluded from results. I think
this is probably the correct solution, but one we can
revisit if needed.
(cherry picked from commit 2505bd0f508aad3387a450a5a6c3866ba2d8d909)
filter out snapshots from iter_mountinfo
This commit adds a non-default parameter to include ZFS
snapshots in iter_mountinfo results. It fixes a bug whereby
automounted snapshots could accidentally leak into mount
info results causing logic relying on this to potentially
walk into snapshot directories. Heuristic is to check
whether source filesystem has an @ character and is ZFS
in order to positively identify snapshots vs other
filesystems. One impact of this heuristic is that users
manually mounting snapshots into normal filesystem paths
will have the snapshot excluded from results. I think
this is probably the correct solution, but one we can
revisit if needed.
(cherry picked from commit 2505bd0f508aad3387a450a5a6c3866ba2d8d909)
NAS-140148 / 27.0.0-BETA.1 / filter out snapshots from iter_mountinfo (#18374)
This commit adds a non-default parameter to include ZFS snapshots in
iter_mountinfo results. It fixes a bug whereby automounted snapshots
could accidentally leak into mount info results causing logic relying on
this to potentially walk into snapshot directories. Heuristic is to
check whether source filesystem has an @ character and is ZFS in order
to positively identify snapshots vs other filesystems. One impact of
this heuristic is that users manually mounting snapshots into normal
filesystem paths will have the snapshot excluded from results. I think
this is probably the correct solution, but one we can revisit if needed.
Add --no-preserve-encryption flag
* Add an option to send datasets with params or replicate
without preserving encryption
* Add a test case for the new functionality
Reviewed-by: Paul Dagnelie <paul.dagnelie at klarasystems.com>
Reviewed-by: Brian Behlendorf <behlendorf1 at llnl.gov>
Reviewed-by: Alexander Motin <alexander.motin at TrueNAS.com>
Signed-off-by: Chris Jacobs <idefix2020dev at gmail.com>
Closes #18240
[MLIR][XeGPU] Refactoring Transpose OP Layout Propagation (#184702)
This PR refactors Transpose Op Layout Propagation:
1. Add inferTransposeSourceLayout() to layout utility, enhance layout
propagation and conflict handling to use this function
2. Add Layout utility: TransposeDims()
3. Refactor IsTransposeOf() and fix minor bugs
4. Fix minor issue in dropSgLayoutAndData()
Add simd_config.h and HAVE_SIMD() selector
We need to select which SIMD variable to check based on the compilation
target: HAVE_KERNEL_xxx for the Linux kernel, HAVE_TOOLCHAIN_xxx for
other platforms.
This adds a HAVE_SIMD() macro returns the right result depending on the
definedness or value of the variable for this target.
The macro is in simd_config.h, which is forcibly included in every
compiler call (like zfs_config.h), to ensure that it can be used
directly without further includes.
Sponsored-by: TrueNAS
Reviewed-by: Brian Behlendorf <behlendorf1 at llnl.gov>
Signed-off-by: Rob Norris <rob.norris at truenas.com>
Closes #18285
Convert all HAVE_<name> SIMD gates to HAVE_SIMD(<name>)
The original names no longer exist, and the new ones will need to be
selectable based on the current compilation target.
Sponsored-by: TrueNAS
Reviewed-by: Brian Behlendorf <behlendorf1 at llnl.gov>
Signed-off-by: Rob Norris <rob.norris at truenas.com>
Closes #18285
config: also do SIMD checks on the kernel toolchain
The kernel may be built with a different compiler, and also includes
objtool, which may fail on unknwon instructions sequences. So, we want
to run the checks a second time for that toolchain too.
Sponsored-by: TrueNAS
Reviewed-by: Brian Behlendorf <behlendorf1 at llnl.gov>
Signed-off-by: Rob Norris <rob.norris at truenas.com>
Closes #18285
config: generate SIMD checks from table
No need to repeat all that boilerplate each time!
Sponsored-by: TrueNAS
Reviewed-by: Brian Behlendorf <behlendorf1 at llnl.gov>
Signed-off-by: Rob Norris <rob.norris at truenas.com>
Closes #18285
config: remove checks for unused SIMD gates
Specifically, we don't have any code gated on:
HAVE_SSE
HAVE_SSE3
HAVE_SSE4_2
HAVE_AVX512CD
HAVE_AVX512DQ
HAVE_AVX512IFMA
HAVE_AVX512VBMI
HAVE_AVX512PF
HAVE_AVX512ER
So we can remove them and the checks that probe and generate them.
Sponsored-by: TrueNAS
Reviewed-by: Brian Behlendorf <behlendorf1 at llnl.gov>
Signed-off-by: Rob Norris <rob.norris at truenas.com>
Closes #18285
linux/simd_x86: remove obsolete kernel feature gates
Most of the X86_FEATURE_* defines we use were introduced in kernels much
older than those we support, so there's no need to check for them.
For the history, these are the ones being removed, and the kernel
versions/commits where they were introduced:
<4.6 torvalds/linux at cd4d09ec6f6c (refactor/consolidation commit)
OSXSAVE
BMI1
BMI2
AES
PCLMULQDQ
MOVBE
SHA_NI
AVX512F
AVX512CD
AVX512ER
[19 lines not shown]