i6300esbwd: Set error appropriately on event
Per the watchdog driver contract, if the driver successfully arms the
watchdog it must set error to 0, and if it's unable to arm the watchdog
it must leave error alone.
Sponsored by: Hewlett Packard Enterprise
[lldb][Process/FreeBSDKernelCore] Set kernel displacement (#183975)
Use `kvm_kerndisp()` on core load to retrieve the kernel displacement,
that is the difference between the kernel's
base virtual address at run time and the kernel base virtual address
specified in the kernel image file. Currently PowerPC is the only
architecture supporting kernel displacement.
---------
Signed-off-by: Minsoo Choo <minsoochoo0122 at proton.me>
databases/cego: update 2.54.9 -> 2.54.16
- rework tableset verification procedure
- removed logback.xml to avoid logging side effects
- Added admin command "verify locks" to perform a test aquire
of all lock manager locks read and write
- Fix CegoQueryHelper::maxFieldSize.
The returned size must be at least MAX_NULL_LEN
- CegoTableManager::checkBTreeIntegrity support for allowDuplicateNull
feature ( multiple null values in unique btree )
- CegoLockHandler, check for unlock methods to check for lockId == 0
- Completed verify locks command with missing pool, querycache, tablecache,
db and xml locks
- CegoClient: query abort via interrupt character fixed
[X86] Add correct model values for znver1, znver2 shld, shrd (#186175)
Values are from Agner Fog's tables, which also match uops.info expect for latency, which for which I used a similar pattern as in zvner3 and 4
[NFC][SCEV] Use const_cast to avoid warnings/errors. (#186474)
Follow-up on #91961. Some builds may fail, and other will issue
lots of warnings:
```
warning: cast from type ‘const llvm::SCEV*’ to type ‘void*’ casts away qualifiers [-Wcast-qual]
```
[mlir][shard,mpi] Marking explicitly bufferized buffers read-only where applicable (#186464)
Marking read-only buffers as such avoids unnecessary copies in
`one-shot-bufferize`
---------
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot at users.noreply.github.com>
devel/heimdall: fix flashing on some samung tablet
Heimdall sends at some empty OUT transfers (as for the ODIN protocol)
with a 100ms timeou. The device is busy writing on the flash at that
point and NACKs OUT tokens for more than 100ms. The result is the empty
transfers times out. and since this is a required ODIN protocol marker,
the transfers fails.
Make sure those empty out transfers get a longer timeout.
[DWARFVerifier] rewrite DieRangeInfo::insert to remove O(N^2) loop (#185915)
We have a dSYM that is ~5.6 GB and has 69,840 compile units that took 3+
hours to verify (`dsymutil --verify-dwarf=auto`). This severely slowed
our build time. So I investigated by `perf record` for a few minutes and
found that `DWARFVerifier::DieRangeInfo::insert(const DieRangeInfo &RI)`
was consuming 83% of CPU time — 48% in `_Rb_tree_increment` (iterator
traversal) and 36% in the `insert` function itself.
It turns out the function was linearly scanning all children in a
std::set to check for range overlaps, when it could leverage the sorted
property of the set and check only the immediate neighbors after a O(log
N) insertion. The worst compile unit had ~189K DIEs, making this O(N²)
scan take over 4 minutes for a single unit.
The fix: insert into the sorted set first (O(log N)), then check only
the predecessor and successor for intersection. Since children are
verified non-overlapping as they are inserted incrementally, if the
immediate neighbors don't intersect, no other child can either.
[11 lines not shown]
[libc] Make standard streams entrypoints (#184669)
The standard streams should be defined the same as other public symbols,
even though they're variables rather than functions: we should have
public and private symbol which are aliases, and all internal uses
should use the private symbol to avoid GOT relocations.
This change introduces a new macro `LLVM_LIBC_VARIABLE` which is the
equivalent of `LLVM_LIBC_FUNCTION` and it refactors the existing
definitions of standard streams for BareMetal, Linux and GPU to use this
macro.
[clang][ssaf] Fix shared library build by adding missing clangBasic dependency (#186475)
The ClangScalableAnalysisTests target was missing a link dependency on
clangBasic, causing linker failures on shared library builds where
transitive dependencies are not automatically resolved.
Fixes
https://github.com/llvm/llvm-project/pull/186442#issuecomment-4056922413https://lab.llvm.org/buildbot/#/builders/10/builds/24522
```
AILED: tools/clang/unittests/ScalableStaticAnalysisFramework/ClangScalableAnalysisTests
/usr/bin/ld: tools/clang/unittests/ScalableStaticAnalysisFramework/CMakeFiles/ClangScalableAnalysisTests.dir/ASTEntityMappingTest.cpp.o: undefined reference to symbol '_ZNK5clang19AttributeCommonInfo35calculateAttributeSpellingListIndexEv'
/usr/bin/ld: /home/botworker/builds/openmp-offload-amdgpu-runtime-2/llvm.build/lib/libclangBasic.so.23.0git: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
[329/334] Building CXX object tools/clang/unittests/Interpreter/CMakeFiles/ClangReplInterpreterTests.dir/CodeCompletionTest.cpp.o
[330/334] Building CXX object tools/clang/unittests/Interpreter/CMakeFiles/ClangReplInterpreterTests.dir/IncrementalProcessingTest.cpp.o
[331/334] Linking CXX executable tools/clang/unittests/Sema/SemaTests
[332/334] Linking CXX executable tools/clang/unittests/AllClangUnitTests
[3 lines not shown]
[flang][OpenMP] Implement nest depth calculation in LoopSequence
Calculate two depths, a semantic one and a perfect one. The former is
the depth of a loop nest taking into account any loop- or
sequence-transforming OpenMP constructs. The latter is the maximum level
to which the semantic nest is a perfect nest.
Issue: https://github.com/llvm/llvm-project/issues/185287
Reinstate PR185298 after a fix has been merged in PR186416.
Includes a testcase that triggered failures before.