message
stringlengths
6
474
diff
stringlengths
8
5.22k
anahera: Update thermal high/halt point BRANCH=none TEST=Thermal team verified thermal policy is expected.
@@ -128,11 +128,11 @@ __maybe_unused static const struct ec_thermal_config thermal_charger = #define THERMAL_REGULATOR \ { \ .temp_host = { \ - [EC_TEMP_THRESH_HIGH] = C_TO_K(52), \ - [EC_TEMP_THRESH_HALT] = C_TO_K(55), \ + [EC_TEMP_THRESH_HIGH] = C_TO_K(53), \ + [EC_TEMP_THRESH_HALT] = C_TO_K(56), \ }, \ .temp_host_release = { \ - [EC_TEMP_THRESH_HIGH] = C_TO_K(47), \ + [EC_TEMP_THRESH_HIGH] = C_TO_K(48), \ }, \ } __maybe_unused static const struct ec_thermal_config thermal_regulator =
added more weak candidates
@@ -855,6 +855,21 @@ writepsk(pskstring); return; } /*===========================================================================*/ +static void keywritepreappend6(char *basestring) +{ +snprintf(pskstring, 64, "%s123456", basestring); +writepsk(pskstring); +snprintf(pskstring, 64, "123456%s", basestring); +writepsk(pskstring); +snprintf(pskstring, 64, "%s@12345", basestring); +writepsk(pskstring); +snprintf(pskstring, 64, "%s@home1", basestring); +writepsk(pskstring); +snprintf(pskstring, 64, "%s@wifi1", basestring); +writepsk(pskstring); +return; +} +/*===========================================================================*/ static void keywritepreappend5(char *basestring) { int y; @@ -865,6 +880,10 @@ snprintf(pskstring, 64, "12345%s", basestring); writepsk(pskstring); snprintf(pskstring, 64, "%s@1234", basestring); writepsk(pskstring); +snprintf(pskstring, 64, "%s@home", basestring); +writepsk(pskstring); +snprintf(pskstring, 64, "%s@wifi", basestring); +writepsk(pskstring); for(y = 1900; y <= thisyear; y++) { snprintf(pskstring, 64, "%s-%04d", basestring, y); @@ -915,6 +934,10 @@ for(l1 = 3; l1 <= essidlenin; l1++) { keywritepreappend9(essidstr); } + if((l1 > 1) && (l1 < 58)) + { + keywritepreappend6(essidstr); + } if((l1 > 2) && (l1 < 59)) { keywritepreappend5(essidstr); @@ -935,7 +958,6 @@ for(l1 = 3; l1 <= essidlenin; l1++) } if((l1 > 7) && (l1 < 63)) writepsk(essidstr); - } } return;
remove bug in simplelink boards name make -C tests/compile-all was emitting lots of ../../arch/platform/simplelink/Makefile.simplelink:28: *** Board 'launchpad/cc2650sensortag/cc1350' does not corresponding to any SimpleLink family. Make sure your BOARD variable is correct.. Stop.
@@ -104,9 +104,9 @@ do elif [[ "$platform" == "simplelink" ]] then # SimpleLink has multiple boards - BOARDS="launchpad/cc1310 launchpad/cc1350 launchpad/cc1350-4 launchpad/cc2650" - BOARDS+="sensortag/cc1350 sensortag/cc2650 srf06/cc13x0 srf06/cc26x0" - BOARDS+="launchpad/cc1312r1 launchpad/cc1352r1 launchpad/cc1352p1 launchpad/cc1352p-2 launchpad/cc1352p-4 launchpad/cc26x2r1" + BOARDS="launchpad/cc1310 launchpad/cc1350 launchpad/cc1350-4 launchpad/cc2650 \ + sensortag/cc1350 sensortag/cc2650 srf06/cc13x0 srf06/cc26x0 \ + launchpad/cc1312r1 launchpad/cc1352r1 launchpad/cc1352p1 launchpad/cc1352p-2 launchpad/cc1352p-4 launchpad/cc26x2r1" elif [[ "$platform" == "zoul" ]] then # Zoul has multiple boards
Fix contrib/fastrpz.patch to apply cleanly. It fixes for changes due to added libdynmod, but it does not compile, it conflicts with new rpz code.
20 July 2020: Wouter - Fix streamtcp to print packet data to stdout. This makes the stdout and stderr not mix together lines, when parsing its output. - - Fix contrib/fastrpz.patch to apply cleanly. + - Fix contrib/fastrpz.patch to apply cleanly. It fixes for changes + due to added libdynmod, but it does not compile, it conflicts with + new rpz code. 17 July 2020: Wouter - Fix libnettle compile for session ticket key callback function
Update talk ;help URL
:: :: prints help message :: - (sh-fact %txt "see http://urbit.org/docs/using/messaging/") + (sh-fact %txt "see https://urbit.org/docs/learn/arvo/arvo-internals/messaging/") -- :: ++ sh-pact
ci: Add test-integration-aks as requirement to release job. Fixes: ("ci: Run test on AKS clusters.")
@@ -673,6 +673,7 @@ jobs: - documentation-checks - lint - test-integration-minikube + - test-integration-aks - test-integration-aro - test-local-gadget - check-readme-up-to-date
Make test_nsalloc_long_prefix() robust vs allocation pattern changes
@@ -10575,30 +10575,16 @@ START_TEST(test_nsalloc_long_prefix) "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789AZ" ":foo>"; int i; -#define MAX_ALLOC_COUNT 10 - int repeated = 0; +#define MAX_ALLOC_COUNT 40 for (i = 0; i < MAX_ALLOC_COUNT; i++) { - /* Repeat some tests with the same allocation count to - * catch cached allocations not freed by XML_ParserReset() - */ - if ((i == 4 && repeated == 3) || - (i == 4 && repeated == 6)) { - i -= 2; - repeated++; - } - else if ((i == 2 && repeated < 2) || - (i == 3 && repeated < 3) || - (i == 3 && repeated > 3 && repeated < 6) || - (i == 3 && repeated > 6 && repeated < 9)) { - i--; - repeated++; - } allocation_count = i; if (_XML_Parse_SINGLE_BYTES(parser, text, strlen(text), XML_TRUE) != XML_STATUS_ERROR) break; - XML_ParserReset(parser, NULL); + /* See comment in test_nsalloc_xmlns() */ + nsalloc_teardown(); + nsalloc_setup(); } if (i == 0) fail("Parsing worked despite failing allocations");
MeteoFrance contribution: GRIB1 second order packing (Philippe's 2nd attempt)
@@ -1285,6 +1285,11 @@ static int pack_double_optimised(grib_accessor* a, const double* val, size_t *le compat_gribex, 1, &decimal_scale_factor, &binary_scale_factor, &reference_value)) != GRIB_SUCCESS) return ret; + + decimal = grib_power(decimal_scale_factor,10); + divisor = grib_power(-binary_scale_factor,2); + min = min * decimal; + max = max * decimal; } else { @@ -1296,25 +1301,25 @@ static int pack_double_optimised(grib_accessor* a, const double* val, size_t *le != GRIB_SUCCESS) return ret; + decimal = grib_power(decimal_scale_factor,10); + min = min * decimal; + max = max * decimal; + if (grib_get_nearest_smaller_value(handle,self->reference_value,min,&reference_value) !=GRIB_SUCCESS) { - grib_context_log(handle->context,GRIB_LOG_ERROR, + grib_context_log(a->context,GRIB_LOG_ERROR, "unable to find nearest_smaller_value of %g for %s",min,self->reference_value); - exit(GRIB_INTERNAL_ERROR); + return GRIB_INTERNAL_ERROR; } binary_scale_factor = grib_get_binary_scale_fact(max,reference_value,bits_per_value,&ret); + divisor = grib_power(-binary_scale_factor,2); + if((ret = grib_set_long_internal(handle,self->binary_scale_factor, binary_scale_factor)) != GRIB_SUCCESS) return ret; } - decimal = grib_power(decimal_scale_factor,10); - divisor = grib_power(-binary_scale_factor,2); - - min = min * decimal; - max = max * decimal; - if((ret = grib_set_long_internal(handle,self->decimal_scale_factor, decimal_scale_factor)) != GRIB_SUCCESS) return ret;
fix fpgadiag doc
@@ -370,7 +370,7 @@ copies 57535, 57536, 57537 ... up to 65535 cache lines, one line at a time. The test prints output in the comma separated values (CSV) format with the header suppressed. ```console -./fpgadiag --mode=lpbk1 --target=fpga -SV --bus-number=0x5e --begin=57535 +./fpgadiag --mode=lpbk1 --target=fpga -V --bus=0x5e --begin=57535 --end=65535 --cache-hint=rdline-I --cache-policy=wrpush-I --multi-cl=1 --write-vc=vl0 --read-vc=vh1 --wrfence-vc=auto ``` @@ -379,7 +379,7 @@ This command starts a `read` test on the FPGA located on bus `0xbe`. The test reads 2045 cache lines in the continuous mode with a 15-second timeout period. The reads use a strided pattern with a 10-byte stride length. ```console -./fpgadiag --mode=read --target=fpga -SV --bus-number=0xbe --begin=2045 --cont +./fpgadiag --mode=read --target=fpga -V --bus=0xbe --begin=2045 --cont --timeout-sec=15 --cache-hint=rdline-I --multi-cl=1 -a=10 --read-vc=auto --wrfence-vc=auto ``` @@ -387,7 +387,7 @@ The reads use a strided pattern with a 10-byte stride length. This command starts a `sw` test on the FPGA located on bus `0xbe`. The test signals completion using a CSR write. ```console -./fpgadiag --mode=sw --target=fpga -SV --bus-number=0xbe --begin=4 --end=8192 +./fpgadiag --mode=sw --target=fpga -V --bus=0xbe --begin=4 --end=8192 --cache-hint=rdline-I --cache-policy=wrline-I --notice=csr-write --write-vc=vl0 --wrfence-vc=auto --read-vc=random ```
pg_upgrade: diff cluster data after `make installcheck` For installcheck, don't just diff the cluster schema before and after upgrade, but dump and diff the data too. Smoke tests (`make check`) remain unchanged; they will only compare master schemas.
@@ -21,6 +21,8 @@ NEW_DATADIR= DEMOCLUSTER_OPTS= PGUPGRADE_OPTS= +DUMP_OPTS= + # The normal ICW run has a gpcheckcat call, so allow this testrunner to skip # running it in case it was just executed to save time. gpcheckcat=1 @@ -30,10 +32,10 @@ gpcheckcat=1 # a failure. mirrors=0 -# Smoketesting pg_upgrade is done by just upgrading the QD without diffing the -# results. This is *NOT* a test of whether pg_upgrade can successfully upgrade -# a cluster but a test intended to catch when objects aren't properly handled -# in pg_dump/pg_upgrade wrt Oid synchronization +# Smoketesting pg_upgrade is done by just upgrading the QD and checking the +# resulting schema. This is *NOT* a test of whether pg_upgrade can successfully +# upgrade a cluster but a test intended to catch when objects aren't properly +# handled in pg_dump/pg_upgrade wrt Oid synchronization smoketest=0 # For debugging purposes it can be handy to keep the temporary directory around @@ -207,7 +209,7 @@ diff_and_exit() { gpstart -a ${args} echo -n 'Dumping database schema after upgrade... ' - PGOPTIONS="${pgopts}" ${NEW_BINDIR}/pg_dumpall --schema-only -f "$temp_root/dump2.sql" + PGOPTIONS="${pgopts}" ${NEW_BINDIR}/pg_dumpall ${DUMP_OPTS} -f "$temp_root/dump2.sql" echo done gpstop -a ${args} @@ -247,6 +249,7 @@ while getopts ":o:b:sCkKmr" opt; do ;; s ) smoketest=1 + DUMP_OPTS+=' --schema-only' ;; C ) gpcheckcat=0 @@ -327,7 +330,7 @@ if (( $gpcheckcat )) ; then fi echo -n 'Dumping database schema before upgrade... ' -${NEW_BINDIR}/pg_dumpall --schema-only -f "$temp_root/dump1.sql" +${NEW_BINDIR}/pg_dumpall ${DUMP_OPTS} -f "$temp_root/dump1.sql" echo done gpstop -a
Fixed issue where lengthy static-file extension wouldn't account certain valid requests.
@@ -438,7 +438,7 @@ verify_static_content (const char *req) { const char *ext = NULL, *pch = NULL; int elen = 0, i; - if (strlen (req) < conf.static_file_max_len) + if ((req == NULL) || (*req == '\0')) return 0; for (i = 0; i < conf.static_file_idx; ++i) {
Ygdiff tool with ucompression support
}, "ygdiff": { "formula": { - "sandbox_id": 612924628, + "sandbox_id": 668511811, "match": "ygdiff" }, "executable": {
meta: automatically merge master into ops/group-timer
@@ -15,3 +15,13 @@ jobs: target_branch: release/next-js github_token: ${{ secrets.JANEWAY_BOT_TOKEN }} + merge-to-group-timer: + runs-on: ubuntu-latest + name: "Merge master to ops/group-timer" + steps: + - uses: actions/checkout@v2 + - uses: devmasx/[email protected] + with: + type: now + target_branch: ops/group-timer + github_token: ${{ secrets.JANEWAY_BOT_TOKEN }}
YAJL: Fix undefined behavior for negative value
@@ -413,7 +413,7 @@ void elektraGenOpen (yajl_gen g, const Key * cur, const Key * next) // calculate levels which are neither already handled // nor the last one - int levels = nextLevels - equalLevels - levelsToSkip; + int levels = (int) nextLevels - (int) (equalLevels + levelsToSkip); int actionRequired = equalLevels + 1 < nextLevels;
SOVERSION bump to version 5.2.5
@@ -39,7 +39,7 @@ set(SYSREPO_VERSION ${SYSREPO_MAJOR_VERSION}.${SYSREPO_MINOR_VERSION}.${SYSREPO_ # with backward compatible change and micro version is connected with any internal change of the library. set(SYSREPO_MAJOR_SOVERSION 5) set(SYSREPO_MINOR_SOVERSION 2) -set(SYSREPO_MICRO_SOVERSION 4) +set(SYSREPO_MICRO_SOVERSION 5) set(SYSREPO_SOVERSION_FULL ${SYSREPO_MAJOR_SOVERSION}.${SYSREPO_MINOR_SOVERSION}.${SYSREPO_MICRO_SOVERSION}) set(SYSREPO_SOVERSION ${SYSREPO_MAJOR_SOVERSION})
Make blake adhere to desired output length And makes sure to return in the correct byte order.
@@ -29,6 +29,8 @@ static void pretty_print_hex(char * headline, u3_noun u3qe_blake(u3_atom msg, u3_atom key, u3_atom out) { + c3_assert(_(u3a_is_cat(out))); + /* msg */ u3_noun men; /* msg length */ @@ -80,7 +82,7 @@ u3qe_blake(u3_atom msg, u3_atom key, u3_atom out) int ret; c3_y out_y[64]; ret = blake2b(out_y, // OUT: output - (size_t) 64, // IN: max output size + out, // IN: max output size mod_y, // IN: msg body men_w, // IN: msg len kod_y, // IN: key body @@ -95,9 +97,7 @@ u3qe_blake(u3_atom msg, u3_atom key, u3_atom out) return u3m_bail(c3__exit); } - u3_noun sig = u3i_bytes(64, out_y); - - return(sig); + return(u3kc_rev(3, out, u3i_bytes(out, out_y))); }
compiler-families/gnu-compilers: bump to gnu9 variant
%include %{_sourcedir}/OHPC_macros -%global gnu_version 8.3.0 -%global gnu_major_ver 8 -%global gnu_release 3 -%global pname gnu8-compilers +%global gnu_version 9.2.0 +%global gnu_major_ver 9 +%global pname gnu9-compilers # Define subcomponent versions required for build %global gmp_version 6.1.2 -%global mpc_version 1.0.3 -%global mpfr_version 3.1.6 +%global mpc_version 1.1.0 +%global mpfr_version 4.0.2 Summary: The GNU C Compiler and Support Files Name: %{pname}%{PROJ_DELIM} Version: %{gnu_version} -Release: %{gnu_release}%{?dist} +Release: 1%{?dist} License: GNU GPL Group: %{PROJ_NAME}/compiler-families URL: http://gcc.gnu.org/
mvapich2: libibverbs-devel and librdmacm-devel provided by rdma-core-devel in latest centos
@@ -67,8 +67,7 @@ Buildrequires: rdma-core-devel Requires: prun%{PROJ_DELIM} BuildRequires: bison -BuildRequires: libibmad-devel libibverbs-devel -BuildRequires: librdmacm-devel +BuildRequires: libibmad-devel # Default library install path %define install_path %{OHPC_MPI_STACKS}/%{pname}-%{compiler_family}/%version
Update mailmap file.
# gives no duplicates. Michael R Sweet <[email protected]> msweet <msweet@a1ca3aef-8c08-0410-bb20-df032aa958be> Michael R Sweet <[email protected]> Michael Sweet <[email protected]> +Michael R Sweet <[email protected]> Michael R Sweet <[email protected]> +Michael R Sweet <[email protected]> Michael Sweet <[email protected]> +Michael R Sweet <[email protected]> Michael Sweet <[email protected]> +Michael R Sweet <[email protected]> Michael Sweet <[email protected]> +Michael R Sweet <[email protected]> Michael Sweet <[email protected]> +Michael R Sweet <[email protected]> Michael Sweet <[email protected]> +Michael R Sweet <[email protected]> Mike Sweet <[email protected]> +Smith Kennedy <[email protected]> Smith Kennedy <[email protected]>
added caching of bucket data reading bucket data
@@ -1011,18 +1011,16 @@ linear_hash_get_record( return err_file_bad_seek; } - /* read record data elements */ - if (1 != fread(status, sizeof(ion_byte_t), 1, linear_hash->database)) { + /* cache record data from file */ + ion_byte_t * record = alloca(linear_hash->record_total_size); + if (1 != fread(record, linear_hash->record_total_size, 1, linear_hash->database)) { return err_file_read_error; } - if (1 != fread(key, linear_hash->super.record.key_size, 1, linear_hash->database)) { - return err_file_read_error; - } - - if (1 != fread(value, linear_hash->super.record.value_size, 1, linear_hash->database)) { - return err_file_read_error; - } + /* read record data elements */ + memcpy(status, record, sizeof(ion_byte_t)); + memcpy(key, record + sizeof(ion_byte_t), linear_hash->super.record.key_size); + memcpy(value, record + sizeof(ion_byte_t) + linear_hash->super.record.key_size, linear_hash->super.record.value_size); return err_ok; } @@ -1143,19 +1141,27 @@ linear_hash_get_bucket( if (0 != fseek(linear_hash->database, bucket_loc, SEEK_SET)) { return err_file_bad_seek; } - - if (1 != fread(&bucket->idx, sizeof(int), 1, linear_hash->database)) { - return err_file_read_error; + /* check if file is open */ + if (!linear_hash->database) { + return err_file_close_error; } - if (1 != fread(&bucket->record_count, sizeof(int), 1, linear_hash->database)) { - return err_file_read_error; + /* seek to location of record in file */ + if (0 != fseek(linear_hash->database, bucket_loc, SEEK_SET)) { + return err_file_bad_seek; } - if (1 != fread(&bucket->overflow_location, sizeof(ion_fpos_t), 1, linear_hash->database)) { + ion_byte_t * bucket_cache = alloca(sizeof(linear_hash_bucket_t)); + + if (1 != fread(bucket_cache, sizeof(linear_hash_bucket_t), 1, linear_hash->database)) { return err_file_read_error; } + /* read record data elements */ + memcpy(&bucket->idx, bucket_cache, sizeof(int)); + memcpy(&bucket->record_count, bucket_cache + sizeof(int), sizeof(int)); + memcpy(&bucket->overflow_location, bucket_cache + 2 * sizeof(int), sizeof(ion_fpos_t)); + return err_ok; }
Updating proper issue ids
@@ -1650,7 +1650,7 @@ void CGContextSetLineWidth(CGContextRef context, CGFloat width) { */ void CGContextSetStrokeColor(CGContextRef context, const CGFloat* components) { NOISY_RETURN_IF_NULL(context); - // TODO #1592: based on the color space, we should be setting the fill color componenets. + // TODO #2041: based on the color space, we should be setting the fill color componenets. // as color is not fully supported, assume RGBA for now. CGContextSetRGBFillColor(context, components[0], components[1], components[2], components[3]); } @@ -1763,7 +1763,7 @@ void CGContextSetShadowWithColor(CGContextRef context, CGSize offset, CGFloat bl void CGContextSetFillColor(CGContextRef context, const CGFloat* components) { NOISY_RETURN_IF_NULL(context); NOISY_RETURN_IF_NULL(components); - // TODO #1592: based on the color space, we should be setting the fill color componenets. + // TODO #2041: based on the color space, we should be setting the fill color componenets. // as color is not fully supported, assume RGBA for now. CGContextSetRGBFillColor(context, components[0], components[1], components[2], components[3]); } @@ -1889,7 +1889,7 @@ static HRESULT _CreatePatternBrush(CGContextRef context, RETURN_IF_FAILED(__CreateD2DBitmapFromCGImage(context, tileImage.get(), &d2dBitmap)); // Scale it by the inverted transform - // TODO #1591: We have an issue with rotation, the CTM rotation should not affect the brush + // TODO #2108: We have an issue with rotation, the CTM rotation should not affect the brush CGSize size = CGSizeApplyAffineTransform(tileSize.size, CGAffineTransformInvert(context->CurrentGState().transform)); CGAffineTransform transform = __BitmapBrushTransformation(context, @@ -3031,7 +3031,13 @@ CGContextRef CGBitmapContextCreateWithData(void* data, size_t estimatedBytesPerRow = (imputedBitsPerPixel >> 3) * width; if (data && estimatedBytesPerRow > bytesPerRow) { - TraceError(TAG, L"Invalid data stride: a %ux%u %ubpp context requires at least a %u-byte stride (requested: %u bytes/row).", width, height, imputedBitsPerPixel, estimatedBytesPerRow, bytesPerRow); + TraceError(TAG, + L"Invalid data stride: a %ux%u %ubpp context requires at least a %u-byte stride (requested: %u bytes/row).", + width, + height, + imputedBitsPerPixel, + estimatedBytesPerRow, + bytesPerRow); return nullptr; }
test: don't check if directory-value is set for yajl
@@ -160,11 +160,11 @@ for PLUGIN in $PLUGINS; do "$KDB" import $ROOT $PLUGIN < "$DATADIR"/two_value.$PLUGIN succeed_if "Could not run kdb import" + if [ "x$PLUGIN" != "xyajl" ]; then test "x$("$KDB" ls $ROOT)" = "xuser/tests/script user/tests/script/key" succeed_if "key name not correct" - if [ "x$PLUGIN" != "xyajl" ]; then #TODO: yajl currently cannot hold values within #directories, do not hardcode that test "$("$KDB" get $ROOT)" = root
doc/reference.html: Docmument that XML_GetBuffers(parser, 0) may be NULL Allocating zero bytes with XML_GetBuffers may return NULL or a non-NULL pointer depending on the current internal buffer state Document this behavior, as it can be surprising.
@@ -1115,7 +1115,8 @@ XML_GetBuffer(XML_Parser p, <div class="fcndef"> Obtain a buffer of size <code>len</code> to read a piece of the document into. A NULL value is returned if Expat can't allocate enough memory for -this buffer. This has to be called prior to every call to +this buffer. A NULL value may also be returned if <code>len</code> is zero. +This has to be called prior to every call to <code><a href= "#XML_ParseBuffer" >XML_ParseBuffer</a></code>. A typical use would look like this:
[lib][elf] add C++ header guards
*/ #pragma once +#include <lk/compiler.h> #include <lib/elf_defines.h> #include <sys/types.h> #include <stdbool.h> +__BEGIN_CDECLS + /* based on our bitness, support 32 or 64 bit elf */ #if IS_64BIT #define WITH_ELF64 1 @@ -54,3 +57,5 @@ void elf_close_handle(elf_handle_t *handle); status_t elf_load(elf_handle_t *handle); +__END_CDECLS +
firdes/autotest: adding check for estimating FIR filter parameters
@@ -261,6 +261,31 @@ void autotest_liquid_firdes_config() CONTEND_EQUALITY( liquid_getopt_str2firfilt("unknown-filter-type" ), LIQUID_FIRFILT_UNKNOWN); } +void autotest_liquid_firdes_estimate() +{ + float tol = 0.05f; // dB + + // Kaiser's method + CONTEND_DELTA( estimate_req_filter_len_Kaiser( 0.05f, 60.0f), 73.00140381, tol); + CONTEND_DELTA( estimate_req_filter_len_Kaiser( 0.10f, 60.0f), 36.50070190, tol); + CONTEND_DELTA( estimate_req_filter_len_Kaiser( 0.20f, 60.0f), 18.25035095, tol); + CONTEND_DELTA( estimate_req_filter_len_Kaiser( 0.30f, 60.0f), 12.16689968, tol); + CONTEND_DELTA( estimate_req_filter_len_Kaiser( 0.40f, 60.0f), 9.12517548, tol); + CONTEND_DELTA( estimate_req_filter_len_Kaiser( 0.05f, 80.0f),101.05189514, tol); + CONTEND_DELTA( estimate_req_filter_len_Kaiser( 0.05f,100.0f),129.10238647, tol); + CONTEND_DELTA( estimate_req_filter_len_Kaiser( 0.05f,120.0f),157.15287781, tol); + + // Herrmann's method + CONTEND_DELTA( estimate_req_filter_len_Herrmann( 0.05f, 60.0f), 75.51549530, tol); + CONTEND_DELTA( estimate_req_filter_len_Herrmann( 0.10f, 60.0f), 37.43184662, tol); + CONTEND_DELTA( estimate_req_filter_len_Herrmann( 0.20f, 60.0f), 17.56412315, tol); + CONTEND_DELTA( estimate_req_filter_len_Herrmann( 0.30f, 60.0f), 10.20741558, tol); + CONTEND_DELTA( estimate_req_filter_len_Herrmann( 0.40f, 60.0f), 5.97846174, tol); + CONTEND_DELTA( estimate_req_filter_len_Herrmann( 0.05f, 80.0f),102.72290039, tol); + CONTEND_DELTA( estimate_req_filter_len_Herrmann( 0.05f,100.0f),129.88548279, tol); + CONTEND_DELTA( estimate_req_filter_len_Herrmann( 0.05f,120.0f),157.15287781, tol); +} + void testbench_firdes_prototype(liquid_firfilt_type _type, unsigned int _k, unsigned int _m,
doc: describe the return from ossl_provider_forall_loaded() Also correct an incorrect statement about non-activated providers.
@@ -200,7 +200,7 @@ passed back to some of the provider functions. ossl_provider_forall_loaded() iterates over all the currently "activated" providers, and calls I<cb> for each of them. If no providers have been "activated" yet, it tries to activate all -available fallback providers and tries another iteration. +available fallback providers before iterating over them. ossl_provider_name() returns the name that was given with ossl_provider_new(). @@ -287,6 +287,10 @@ it has been incremented. ossl_provider_free() doesn't return any value. +ossl_provider_forall_loaded() returns 1 if the callback was called for all +activated providers. A return value of 0 means that the callback was not +called for any activated providers. + ossl_provider_set_module_path(), ossl_provider_set_fallback(), ossl_provider_activate(), ossl_provider_activate_leave_fallbacks() and ossl_provider_deactivate() return 1 on success, or 0 on error.
Windows compatibility for the dev-project
@@ -28,7 +28,7 @@ android { defaultConfig { externalNativeBuild { cmake { - arguments "-DSINGLE_LIBRARY:BOOL=ON", "-DANDROID_STL=c++_static", "-DWRAPPER_DIR='$projectDir/../../../generated/android-java/wrappers'" + arguments "-DSINGLE_LIBRARY:BOOL=ON", "-DANDROID_STL=c++_static", "-DSDK_CPP_DEFINES=''", "-DWRAPPER_DIR=${projectDir.absolutePath.replaceAll('\\\\', '/')}/../../../generated/android-java/wrappers" } } }
Add links to custom coverage report. When multiple files were missing coverage it could be hard to locate the coverage report for a specific file. Add links for uncovered files to make this easier. Also move table titles out of the table so they are valid html.
@@ -11,6 +11,7 @@ use warnings FATAL => qw(all); use Carp qw(confess); use English '-no_match_vars'; +use Digest::SHA qw(sha1_hex); use Exporter qw(import); our @EXPORT = qw(); use File::Basename qw(dirname); @@ -102,6 +103,10 @@ sub coverageGenerate { $strFile = substr($strLine, 3); $rhCoverage->{$strFile} = undef; + + # Generate a random anchor so new reports will not show links as already followed. This is also an easy way + # to create valid, disambiguos links. + $rhCoverage->{$strFile}{anchor} = sha1_hex(rand(16)); } # Check branch coverage elsif ($strLine =~ /^BRDA\:/) @@ -429,11 +434,13 @@ sub coverageGenerate " color: white;\n" . "}\n"); + # File list title $oHtml->bodyGet()->addNew(HTML_DIV, 'title', {strContent => $strTitle}); # Build the file list table + $oHtml->bodyGet()->addNew(HTML_DIV, 'list-table-caption'); + my $oTable = $oHtml->bodyGet()->addNew(HTML_TABLE, 'list-table'); - $oTable->addNew(HTML_DIV, 'list-table-caption'); my $oHeader = $oTable->addNew(HTML_TR, 'list-table-header'); $oHeader->addNew(HTML_TH, 'list-table-header-file', {strContent => 'FILE'}); @@ -441,19 +448,35 @@ sub coverageGenerate foreach my $strFile (sort(keys(%{$rhCoverage}))) { my $oRow = $oTable->addNew(HTML_TR, 'list-table-row-' . (defined($rhCoverage->{$strFile}{line}) ? 'uncovered' : 'covered')); + + # Link only created when file is uncovered + if (defined($rhCoverage->{$strFile}{line})) + { + $oRow->addNew(HTML_TD, 'list-table-row-file')->addNew( + HTML_A, undef, + {strContent => substr($strFile, length($strBasePath) + 1), strRef => '#' . $rhCoverage->{$strFile}{anchor}}); + } + # Else just show the file name + else + { $oRow->addNew(HTML_TD, 'list-table-row-file', {strContent => substr($strFile, length($strBasePath) + 1)}); } + } # Report on files that are missing coverage foreach my $strFile (sort(keys(%{$rhCoverage}))) { if (defined($rhCoverage->{$strFile}{line})) { + # Anchor only created when file is uncovered + $oHtml->bodyGet()->addNew(HTML_A, undef, {strId => $rhCoverage->{$strFile}{anchor}}); + + # Report table caption, i.e. the uncovered file name + $oHtml->bodyGet()->addNew(HTML_DIV, 'report-table-caption', {strContent => substr($strFile, length($strBasePath) + 1)}); + # Build the file report table $oTable = $oHtml->bodyGet()->addNew(HTML_TABLE, 'report-table'); - $oTable->addNew(HTML_DIV, 'report-table-caption', {strContent => substr($strFile, length($strBasePath) + 1)}); - $oHeader = $oTable->addNew(HTML_TR, 'report-table-header'); $oHeader->addNew(HTML_TH, 'report-table-header-line', {strContent => 'LINE'}); $oHeader->addNew(HTML_TH, 'report-table-header-branch', {strContent => 'BRANCH'});
Improve IAS Zone enrollment
@@ -169,6 +169,14 @@ void DeRestPluginPrivate::handleDeviceAnnceIndication(const deCONZ::ApsDataIndic Event e(si->prefix(), RConfigReachable, si->id(), item); enqueueEvent(e); } + + item = si->item(RConfigEnrolled); // holds per device IAS state variable + + if (item) + { + item->setValue(IAS_STATE_INIT); + } + checkSensorGroup(&*si); checkSensorBindingsForAttributeReporting(&*si); checkSensorBindingsForClientClusters(&*si);
BugID:20263823: build 2ndboot by default Build 2nd bootloader by default while running "aos make".
@@ -347,7 +347,12 @@ endif all: $(BUILD_STRING) -$(BUILD_STRING): $(AOS_PRE_BUILD_TARGETS) main_app +$(BUILD_STRING): $(AOS_PRE_BUILD_TARGETS) +ifeq ($(AOS_SDK_2BOOT_SUPPORT),yes) +$(BUILD_STRING): main_app 2ndboot +else +$(BUILD_STRING): main_app +endif ifeq ($(IDE),keil) main_app: export-keil
TCPMv2: Do not send GetSnkCap if FRS is not enabled GetSnkCap is only needed for FastRoleSwap BRANCH=none TEST=PR_Swap DUT-DUT testing Tested-by: Denis Brockus
@@ -2574,8 +2574,17 @@ static void pe_snk_select_capability_run(int port) /* * Setup to get Device Policy Manager to * request Sink Capabilities for possible FRS - */ - pe_dpm_request(port, DPM_REQUEST_GET_SNK_CAPS); + * + * TODO(b:165822172) This should be called for + * FRS and non-FRS but there is a problem + * currently with the GetSnkCap functionality + * that is stopping PRS from working. The + * bug mentioned is to fix this path and + * re-enable for all. + */ + if (IS_ENABLED(CONFIG_USB_PD_FRS)) + pe_dpm_request(port, + DPM_REQUEST_GET_SNK_CAPS); return; } /*
Fix coverity CID - Dereference after NULL check in fromdata_init()
@@ -375,6 +375,7 @@ static int fromdata_init(EVP_PKEY_CTX *ctx, int operation) return 1; not_supported: + if (ctx != NULL) ctx->operation = EVP_PKEY_OP_UNDEFINED; ERR_raise(ERR_LIB_EVP, EVP_R_OPERATION_NOT_SUPPORTED_FOR_THIS_KEYTYPE); return -2;
Fix a bug in check_ao_record_present This bug cause the test 'generate_ao_xlog' hang sometimes. If the current page cannot hold the remaining content (xlp_rem_len) of the record, find the next record in the next page.
@@ -459,6 +459,9 @@ check_ao_record_present(unsigned char type, char *buf, Size len, if (hdr->xlp_info & XLP_FIRST_IS_CONTRECORD) { elog(DEBUG1, "remaining length of record = %u", hdr->xlp_rem_len); + if (hdr->xlp_rem_len > XLOG_BLCKSZ - XLogPageHeaderSize(hdr)) + i += XLOG_BLCKSZ; + else i += MAXALIGN(XLogPageHeaderSize(hdr) + hdr->xlp_rem_len); } else
os/se/sss: Modify return value of sss wrapping layer Return success for sss_hal_init and sss_hal_deinit
@@ -483,13 +483,13 @@ static int hal_asn1_get_mpi(unsigned char **p, const unsigned char *end, hal_mpi int sss_hal_init(hal_init_param *params) { HWRAP_ENTER; - return HAL_NOT_SUPPORTED; + return HAL_SUCCESS; } int sss_hal_deinit(void) { HWRAP_ENTER; - return HAL_NOT_SUPPORTED; + return HAL_SUCCESS; } int sss_hal_free_data(hal_data *data)
tests: provide more output for failing test Print everything to the log as it happens so we can pinpoint the issue with intermittently failing tests.
@@ -15,16 +15,16 @@ CPID=$! test_handler () { sleep 2 - $1 2>&1 | grep -z -E "$2" >> $BASENAME.log 2>&1 + $1 2>&1 | tee $BASENAME.log + grep -z -E "$2" $BASENAME.log STATUS=$? if [ $STATUS -eq 0 ] ; then - cp $BASENAME.log $BASENAME.testlog printf "%-32s TEST OK\n" "$BASENAME" | tee $BASENAME.testlog; else kill_bg $CPID - echo "==== $BASENAME.log ====" ; cat $BASENAME.log; echo $1 + echo $2 printf "%-32s TEST FAIL\n" "$BASENAME" | tee $BASENAME.testlog; exit 1 fi
parallel-libs/scotch: fix destdir patch name
@@ -27,7 +27,7 @@ URL: http://www.labri.fr/perso/pelegrin/scotch/ Source0: http://gforge.inria.fr/frs/download.php/file/34618/%{base_pname}_%{version}.tar.gz Source1: scotch-Makefile.%{compiler_family}.inc.in Source2: scotch-rpmlintrc -Patch0: scotch-%{version}-destdir.patch +Patch0: scotch-6.0.4-destdir.patch BuildRequires: flex bison %if 0%{?suse_version} >= 1100
bugfix. about reference counter increment.
@@ -229,9 +229,11 @@ static void c_object_p(struct VM *vm, mrbc_value v[], int argc) mrbc_p_sub( &v[i] ); console_putchar('\n'); } + if (argc == 0) { SET_NIL_RETURN(); } else if (argc == 1) { + mrbc_incref( &v[1] ); SET_RETURN(v[1]); } else { mrbc_value value = mrbc_array_new(vm, argc); @@ -243,7 +245,6 @@ static void c_object_p(struct VM *vm, mrbc_value v[], int argc) value.array->data[i-1] = v[i]; } value.array->n_stored = argc; - mrbc_incref(&value); SET_RETURN(value); } }
dm-hook: fix on-init, rerun in on-load
== :: +$ state-0 [%0 base-state-0] ++$ state-1 [%1 base-state-0] ++$ versioned-state + $% state-0 + state-1 + == +$ card card:agent:gall +$ nodes (map index:store node:store) ++ orm orm:store -- :: -=| state-0 +=| state-1 =* state - %- agent:dbug ^- agent:gall ?. .^(? %gu (scry:io %graph-store ~)) ~ %+ skim ~(tap in get-keys:gra) - |=([ship name=term] ?=(^ (rush name ;~(pfix (jest 'dm--') (star next))))) + |=([ship name=term] ?=(^ (rush name ;~(pfix (jest 'dm--') fed:ag)))) |^ %+ poke-our:pass %graph-store %+ update:cg:gra now.bowl :: ++ on-save !>(state) ++ on-load - |= old=vase + |= =vase ^- (quip card _this) - `this(state !<(state-0 old)) + =+ !<(old=versioned-state vase) + ?: ?=(%1 -.old) `this(state old) + :_ this(state [%1 +.old]) + (poke-self:pass noun+!>(%reinit))^~ :: ++ on-poke |= [=mark =vase] ^- (quip card _this) |^ ?+ mark (on-poke:def mark vase) + %noun + ?+ q.vase !! + %reinit + ?: (~(has in get-keys:gra) [our.bowl %dm-inbox]) + `this + on-init + == + :: %dm-hook-action =+ !<(=action:hook vase) =^ cards state
fixed and added release notes
@@ -191,6 +191,7 @@ you up to date with the multi-language support provided by Elektra. - Added hint regarding WSL filesystem configuration (/doc/tutorials/contributing-windows.md) _(@tucek)_ - Fixed broken link in yanlr-plugin readme _(@lawli3t)_ - The example in the tutorial "mount-configuration-files" is adapted, so that it works now (fixed #3722) _(Philipp Oppel)_ +- fixed #3722 _(Philipp Oppel)_ ## Tests
Fixed imu_selector selecting wrong IMU for magnetometer. The magnetometer would always give a value of 0 since for the MPU9250 the ICM20468 function was called, the ICM20468 always returns 0 since it doesnt have a magnetometer.
@@ -207,8 +207,8 @@ void cIMUDevice::mag_get_adc( void ) { case MPU9250: DEV1.mag_get_adc(); - memcpy(magRAW,DEV2.magRAW,3*sizeof(int16_t)); - memcpy(magADC,DEV2.magADC,3*sizeof(int16_t)); + memcpy(magRAW,DEV1.magRAW,3*sizeof(int16_t)); + memcpy(magADC,DEV1.magADC,3*sizeof(int16_t)); break; case ICM20468: DEV2.mag_get_adc();
Mark MacOS conan builds as experimental. Changing Clang to 11.1 doesn't work. I'm stuck with disabling this for now.
@@ -42,7 +42,7 @@ jobs: CONAN_ARCHS: [x86_64] CONAN_BUILD_TYPES: [Debug, Release] CONAN_APPLE_CLANG_VERSIONS: ['11.0'] - experimental: [false] + experimental: [true] include: - CONAN_ARCHS: x86_64 CONAN_BUILD_TYPES: 'Debug,Release'
added new tool: wlanresponse
@@ -23,7 +23,7 @@ Detailed description | wlanrcascan | Small, fast and simple passive WLAN channel assignment scanner (status output) | | pioff | Turns Raspberry Pi off via GPIO switch | | wlancapinfo | Shows info of pcap file | -| wlancap2hcx | Converts cap to hccapx (recommended for use with wlandump (many options and pcapng support)) | +| wlancap2hcx | Converts cap to hccapx (recommended for use with wlandump-ng and wlanresponse) | | wlanhcx2cap | Converts hccapx to cap | | wlanhc2hcx | Converts hccap to hccapx | | wlanhcx2essid | Merges hccapx containing the same ESSID |
[CUDA] Fix llvm::createInternalizePass() for LLVM trunk
@@ -426,7 +426,15 @@ void pocl_cuda_link_libdevice(llvm::Module *module, llvm::legacy::PassManager passes; // Run internalize to mark all non-kernel functions as internal +#ifdef LLVM_OLDER_THAN_3_9 passes.add(llvm::createInternalizePass({kernel})); +#else + auto preserve_kernel = [=](const llvm::GlobalValue &GV) + { + return GV.getName() == kernel; + }; + passes.add(llvm::createInternalizePass(preserve_kernel)); +#endif // Run NVVM reflect pass to set math options // TODO: Determine correct FTZ value from frontend compiler options
append a marker to the syslog on boot
@@ -86,6 +86,10 @@ $(ISO_NAME): $(ISO_DIR)/boot/axle.bin $(ISO_DIR)/boot/grub/grub.cfg $(ISO_MAKER) -d ./i686-toolchain/lib/grub/i386-pc -o $@ $(ISO_DIR) run: $(ISO_NAME) + echo 'Run starting' > syslog.log + echo '' > syslog.log + echo '' > syslog.log + echo '' > syslog.log $(EMULATOR) $(EMFLAGS) -cdrom $^ dbg:
Update cpu list, outline cmake build, clarify scope of set_num_threads extension
@@ -46,7 +46,10 @@ Building OpenBLAS requires the following to be installed: Simply invoking `make` (or `gmake` on BSD) will detect the CPU automatically. To set a specific target CPU, use `make TARGET=xxx`, e.g. `make TARGET=NEHALEM`. -The full target list is in the file `TargetList.txt`. +The full target list is in the file `TargetList.txt`. For building with `cmake`, the +usual conventions apply, i.e. create a build directory either underneath the toplevel +OpenBLAS source directory or separate from it, and invoke `cmake` there with the path +to the source tree and any build options you plan to set. ### Cross compile @@ -152,13 +155,17 @@ Please read `GotoBLAS_01Readme.txt` for older CPU models already supported by th - **Falkor**: same as A57 (different cpu specifications) - **ThunderX**: Optimized some Level-1 functions - **ThunderX2T99**: Optimized Level-3 BLAS and parts of Levels 1 and 2 +- **ThunderX3T110** - **TSV110**: Optimized some Level-3 helper functions - **EMAG 8180**: preliminary support based on A57 +- **Neoverse N1**: (AWS Graviton2) preliminary support +- **Apple Vortex**: preliminary support based on ARMV8 #### PPC/PPC64 - **POWER8**: Optimized BLAS, only for PPC64LE (Little Endian), only with `USE_OPENMP=1` - **POWER9**: Optimized Level-3 BLAS (real) and some Level-1,2. PPC64LE with OpenMP only. +- **POWER10**: #### IBM zEnterprise System @@ -226,7 +233,8 @@ We provide the following functions to control the number of threads at runtime: void goto_set_num_threads(int num_threads); void openblas_set_num_threads(int num_threads); ``` - +Note that these are only used once at library initialization, and are not available for +fine-tuning thread numbers in individual BLAS calls. If you compile this library with `USE_OPENMP=1`, you should use the above functions too. ## Reporting bugs
Fix for missing timer wait wakeups The guard counter should be the pre-incremented count as that serves as the 'target' count to identify when the callout is actually completed (via done_ctr). If the callout completes during the lock switch, no wait is required. Not sure how this ever worked before...
@@ -173,7 +173,7 @@ sctp_os_timer_stop(sctp_os_timer_t *c) } else { /* need to wait until the callout is finished */ sctp_os_timer_waiting = 1; - wakeup_cookie = sctp_os_timer_wait_ctr++; + wakeup_cookie = ++sctp_os_timer_wait_ctr; SCTP_TIMERQ_UNLOCK(); SCTP_TIMERWAIT_LOCK(); /*
parser: logfmt: use flb_tm
@@ -68,7 +68,7 @@ static int logfmt_parser(struct flb_parser *parser, size_t *map_size) { int ret; - struct tm tm = {0}; + struct flb_tm tm = {0}; const unsigned char *key = NULL; size_t key_len = 0; const unsigned char *value = NULL;
remove TINYUSB_FAMILT_PROJECT_NAME_INCLUDES_BOARD setting
@@ -35,11 +35,7 @@ endfunction() function(family_get_project_name OUTPUT_NAME DIR) get_filename_component(SHORT_NAME ${DIR} NAME) - if (TINYUSB_FAMILY_PROJECT_NAME_INCLUDES_BOARD OR NOT DEFINED TINYUSB_FAMILY_PROJECT_NAME_INCLUDES_BOARD) - set(${OUTPUT_NAME} ${TINYUSB_FAMILY_PROJECT_NAME_PREFIX}${BOARD}-${SHORT_NAME} PARENT_SCOPE) - else() set(${OUTPUT_NAME} ${TINYUSB_FAMILY_PROJECT_NAME_PREFIX}${SHORT_NAME} PARENT_SCOPE) - endif() endfunction() function(family_initialize_project PROJECT DIR)
Correctly handle SSL3 Master Secret when calling providers We need to pass the SSL3 Master Secret down to the provider code in order for SSLv3 to work correctly. Fixes
@@ -675,6 +675,10 @@ int EVP_MD_CTX_ctrl(EVP_MD_CTX *ctx, int cmd, int p1, void *p2) params[0] = OSSL_PARAM_construct_utf8_string(OSSL_DIGEST_PARAM_MICALG, p2, p1 ? p1 : 9999); break; + case EVP_CTRL_SSL3_MASTER_SECRET: + params[0] = OSSL_PARAM_construct_octet_string(OSSL_DIGEST_PARAM_SSL3_MS, + p2, p1); + break; default: return EVP_CTRL_RET_UNSUPPORTED; }
py/bc: Don't include mp_decode_uint funcs when not needed. These are now only needed when persistent code is disabled.
#define DEBUG_printf(...) (void)0 #endif +#if !MICROPY_PERSISTENT_CODE + mp_uint_t mp_decode_uint(const byte **ptr) { mp_uint_t unum = 0; byte val; @@ -71,6 +73,8 @@ const byte *mp_decode_uint_skip(const byte *ptr) { return ptr; } +#endif + STATIC NORETURN void fun_pos_args_mismatch(mp_obj_fun_bc_t *f, size_t expected, size_t given) { #if MICROPY_ERROR_REPORTING == MICROPY_ERROR_REPORTING_TERSE // generic message, used also for other argument issues
Only show the settings pane when there is a single printer.
@@ -500,6 +500,7 @@ _papplPrinterWebHome( _papplClientHTMLInfo(client, false, printer->dns_sd_name, printer->location, printer->geo_location, printer->organization, printer->org_unit, &printer->contact); + if (!(printer->system->options & PAPPL_SOPTIONS_MULTI_QUEUE)) _papplSystemWebSettings(client); papplClientHTMLPuts(client,
esp_hw_support: Fix coverity warnings in mac_addr API
@@ -74,8 +74,11 @@ static int get_idx(esp_mac_type_t type) return -1; } -static esp_err_t get_mac_addr_from_mac_table(uint8_t *mac, unsigned idx, bool silent) +static esp_err_t get_mac_addr_from_mac_table(uint8_t *mac, int idx, bool silent) { + if (idx == -1) { + return ESP_ERR_NOT_SUPPORTED; + } if (!(s_mac_table[idx].state & STATE_SET)) { esp_mac_type_t type = s_mac_table[idx].type; if (type == ESP_MAC_BASE || type == ESP_MAC_EFUSE_FACTORY || type == ESP_MAC_EFUSE_CUSTOM) {
Fixed build error in DM testcase, incorrect variable naming
@@ -133,7 +133,7 @@ static int wifiAutoConnect(void) if (ret == -1) { printf("Timeout fail to get ip address\n"); return ret; - } else if (dhcp_ret == 0) { + } else if (ret == 0) { printf("No network interface\n"); return ret; }
Use tighter bounds to skip trials
@@ -1353,7 +1353,7 @@ void compress_block( // If attempting two planes is much worse than the best one plane result // then further two plane searches are unlikely to help so move on ... - if (errorval > (best_errorvals_for_pcount[0] * 2.0f)) + if (errorval > (best_errorvals_for_pcount[0] * 1.75f)) { break; } @@ -1399,10 +1399,9 @@ void compress_block( // If using N partitions doesn't improve much over using N-1 partitions then skip trying // N+1. Error can dramatically improve if the data is correlated or non-correlated and // aligns with a partitioning that suits that encoding, so for this inner loop check add - // a large error scale because the "other" trial could be a lot better. In total the - // error must be at least 2x worse than the best existing error to early-out. + // a large error scale because the "other" trial could be a lot better. float best_error = best_errorvals_for_pcount[partition_count - 1]; - float best_error_scale = exit_thresholds_for_pcount[partition_count - 1] * 2.0f; + float best_error_scale = exit_thresholds_for_pcount[partition_count - 1] * 1.75f; if (best_error > (best_error_in_prev * best_error_scale)) { trace_add_data("skip", "tune_partition_early_out_limit_factor");
cmake: fix vppapigen install permissons
# See the License for the specific language governing permissions and # limitations under the License. -install(FILES vppapigen.py RENAME vppapigen DESTINATION bin) +install( + FILES vppapigen.py + RENAME vppapigen + DESTINATION bin + PERMISSIONS + OWNER_READ OWNER_WRITE OWNER_EXECUTE GROUP_READ GROUP_EXECUTE + WORLD_READ WORLD_EXECUTE +) + install(FILES C.py JSON.py DESTINATION share/vpp)
looks like we have to handle action frames, too
@@ -2192,6 +2192,12 @@ else if((pcapngframesout &PCAPNG_FRAME_EAP) == PCAPNG_FRAME_EAP) writeepb(fd_pcapng); } } +return; +} +/*===========================================================================*/ +static inline void process80211action() +{ + return; } /*===========================================================================*/ @@ -3128,6 +3134,7 @@ if(macfrx->type == IEEE80211_FTYPE_MGMT) else if(macfrx->subtype == IEEE80211_STYPE_ASSOC_RESP) process80211association_resp(); else if(macfrx->subtype == IEEE80211_STYPE_REASSOC_REQ) process80211reassociation_req(); else if(macfrx->subtype == IEEE80211_STYPE_REASSOC_RESP) process80211reassociation_resp(); + else if(macfrx->subtype == IEEE80211_STYPE_ACTION) process80211action(); else return; } else if(macfrx->type == IEEE80211_FTYPE_DATA)
Remove unneeded --config parameter.
@@ -47,7 +47,7 @@ jobs: shell: bash run: | ctest -C $BUILD_TYPE - cmake --build . --config $BUILD_TYPE --target memcheck + cmake --build . --target memcheck - name: Install working-directory: ${{runner.workspace}}/build
frsky: reset rx_rssi once we reach the lost packet threshold
@@ -497,6 +497,7 @@ static uint8_t frsky_d_handle_packet() { quic_debugf("FRSKY: failsafe"); max_sync_delay = 10 * SYNC_DELAY_MAX; failsafe = 1; + rx_rssi = 0; } // we could be comming here from STATE_TELEMETRY
implement scratchpad enhancments
@@ -602,6 +602,14 @@ applyrules(Client *c) c->h = c->mon->mh; centerwindow(); break;; + case 4: + selmon->sel = c; + c->tags = 1 << 20; + selmon->scratchvisible = 1; + c->issticky = 1; + c->isfloating = 1; + centerwindow(); + break;; case 1: c->isfloating = 1; break;; @@ -4472,6 +4480,8 @@ toggletag(const Arg *arg) void togglescratchpad(const Arg *arg) { Client *c; + int scratchexists; + scratchexists = 0; if (&overviewlayout == selmon->lt[selmon->sellt]->arrange) { return; } @@ -4483,15 +4493,20 @@ void togglescratchpad(const Arg *arg) { for(c = selmon->clients; c; c = c->next) { if (c->tags == 1 << 20) { + if (!scratchexists) + scratchexists = 1; c->issticky = selmon->scratchvisible; if (!c->isfloating) c->isfloating = 1; } } - arrange(selmon); - focus(NULL); - focus(c); + if (!scratchexists){ + // spawn scratchpad + spawn(&((Arg) { .v = termscratchcmd })); + return; + } + for(c = selmon->clients; c; c = c->next) { if (c->tags == 1 << 20) { @@ -4499,6 +4514,14 @@ void togglescratchpad(const Arg *arg) { } } + if (!selmon->sel->isfullscreen) { + selmon->sel = c; + arrange(selmon); + + focus(c); + warp(c); + } + } void createscratchpad(const Arg *arg) {
build: update .clang-format Type: make
-# Minimal clang-format version is 8 +# Minimal clang-format version is 11 BasedOnStyle: GNU UseTab: Always @@ -28,3 +28,7 @@ StatementMacros: - 'VNET_DEVICE_CLASS_TX_FN' - '__clib_section' - '__clib_aligned' + +WhitespaceSensitiveMacros: + - 'WARN_ON' + - 'WARN_OFF'
parser: Select for not operator instead of naming value states.
@@ -3059,21 +3059,21 @@ static void expression_raw(lily_parse_state *parser) state = ST_BAD_TOKEN; } else if (lex->token == tk_left_parenth) { - if (state == ST_WANT_VALUE || state == ST_DEMAND_VALUE) { + if (state != ST_WANT_OPERATOR) { lily_es_enter_tree(parser->expr, tree_parenth); state = ST_DEMAND_VALUE; } - else if (state == ST_WANT_OPERATOR) { + else { lily_es_enter_tree(parser->expr, tree_call); state = ST_WANT_VALUE; } } else if (lex->token == tk_left_bracket) { - if (state == ST_WANT_VALUE || state == ST_DEMAND_VALUE) { + if (state != ST_WANT_OPERATOR) { lily_es_enter_tree(parser->expr, tree_list); state = ST_WANT_VALUE; } - else if (state == ST_WANT_OPERATOR) { + else { lily_es_enter_tree(parser->expr, tree_subscript); state = ST_DEMAND_VALUE; }
zephyr test: cleanup of test descriptions Delete the redundant text indicating that tests are for deprecated host commands. BRANCH=none TEST=none Code-Coverage: Zoss
@@ -41,9 +41,7 @@ static void host_event_set_wake_mask_helper(uint32_t mask) } /** - * @brief TestPurpose: Verify EC_CMD_HOST_EVENT_GET_WAKE_MASK get host command. - * - * EC_CMD_HOST_EVENT_GET_WAKE_MASK is deprecated. See ec_command.h for detauls. + * @brief TestPurpose: Verify EC_CMD_HOST_EVENT_GET_WAKE_MASK host command. */ ZTEST_USER(host_cmd_host_event_commands, test_host_event_get_wake_mask) { @@ -57,9 +55,7 @@ ZTEST_USER(host_cmd_host_event_commands, test_host_event_get_wake_mask) } /** - * @brief TestPurpose: Verify EC_CMD_HOST_EVENT_SET_WAKE_MASK get host command. - * - * EC_CMD_HOST_EVENT_SET_WAKE_MASK is deprecated. See ec_command.h for detauls. + * @brief TestPurpose: Verify EC_CMD_HOST_EVENT_SET_WAKE_MASK host command. */ ZTEST_USER(host_cmd_host_event_commands, test_host_event_set_wake_mask) {
changelog entry for lms7 api clock fix
Release 17.01.1 (pending) ========================== +- LMS7 API: Fix CGEN clock config in LMS_SetClockFreq() - Fix debug assertion in FFT viewer wx format string - LMS7 API: Fix NCO down/upconvert for new chip rev - Fix NCO tuning sign in SoapyLMS7 for LMS7 silicon rev
Fix one more NULL dereference report from Coverity. Try (again) to get the Travis CI integration with Coverity working...
@@ -30,7 +30,7 @@ jobs: project: name: "michaelrsweet/pappl" description: "Printer Application Framework" - notification_email: [email protected] + notification_email: [email protected] build_command_prepend: "./configure --enable-debug --enable-sanitizer && make clean" build_command: "make" branch_pattern: master
[CI] travis tasks cleaning
@@ -43,10 +43,8 @@ env: - TASK=default:distrib=ubuntu,17.04:build_configuration=Profiling:pkgs+=profiling, - - TASK=default:distrib=fedora,latest:ci_config=with_umfpack:pkgs-=atlas-lapack,python-env:pkgs+=openblas-lapacke,python3-env,umfpack - - TASK=default:pkgs-=atlas-lapack:pkgs+=openblas-lapacke, - - TASK=default:ci_config=with_serialization:pkgs+=serialization, + - TASK=default:distrib=ubuntu,17.04:ci_config=with_serialization:pkgs+=serialization, - TASK=default:ci_config=with_mumps:pkgs+=mumps, - TASK=default:ci_config=with_umfpack:pkgs+=umfpack, @@ -72,6 +70,6 @@ script: - if test "$TRAVIS" = true; then ../CI/driver.py --run --root-dir=.. --task="$TASK" --packages-db=../CI/config/siconos.yml; else - ../CI/driver.py --run --root-dir=..; + ../CI/driver.py --run --root-dir=.. --packages-db=../CI/config/siconos.yml; fi
gost_engine test: further cleanups and fixes Allow absolute paths for $SRCTOP and $BLDTOP. Do not build the gost_engine in tree.
@@ -14,18 +14,21 @@ set -e PWD="$(pwd)" -O_EXE="$PWD/$BLDTOP/apps" -O_BINC="$PWD/$BLDTOP/include" -O_SINC="$PWD/$SRCTOP/include" -O_LIB="$PWD/$BLDTOP" +SRCTOP="$(cd $SRCTOP; pwd)" +BLDTOP="$(cd $BLDTOP; pwd)" -unset OPENSSL_CONF - -if [ "$O_BINC" != "$O_SINC" ] ; then +if [ "$SRCTOP" != "$BLDTOP" ] ; then echo "Out of tree builds not supported with gost_engine test!" exit 1 fi +O_EXE="$BLDTOP/apps" +O_BINC="$BLDTOP/include" +O_SINC="$SRCTOP/include" +O_LIB="$BLDTOP" + +unset OPENSSL_CONF + export PATH="$O_EXE:$PATH" export LD_LIBRARY_PATH="$O_LIB:$LD_LIBRARY_PATH" export OPENSSL_ROOT_DIR="$O_LIB" @@ -42,15 +45,11 @@ echo " OPENSSL_ROOT_DIR: $OPENSSL_ROOT_DIR" echo " OpenSSL version: $OPENSSL_VERSION" echo "------------------------------------------------------------------" -cd $SRCTOP/gost-engine -rm -rf build -mkdir -p build -cd build -cmake .. -DOPENSSL_ROOT_DIR="$OPENSSL_ROOT_DIR" +cmake $SRCTOP/gost-engine -DOPENSSL_ROOT_DIR="$OPENSSL_ROOT_DIR" make export CTEST_OUTPUT_ON_FAILURE=1 export HARNESS_OSSL_PREFIX='' -export OPENSSL_ENGINES="$OPENSSL_ROOT_DIR/gost-engine/build/bin" +export OPENSSL_ENGINES="$PWD/bin" export OPENSSL_APP="$O_EXE/openssl" make test make tcl_tests
In ripn jet, handle zero values correctly.
/* Divide, rounding up. */ -#define DIVCEIL(x,y) 1 + ((x - 1) / y); +#define DIVCEIL(x,y) \ + (x==0) ? 0 : \ + 1 + ((x - 1) / y); /* `ripn` breaks `atom` into a list of blocks, of bit-width `bits`. The
Sockeye: process overlay pcibus, not dram
@@ -262,7 +262,7 @@ add_process(S, Enum, NewS) :- OutId = ["OUT", "PROC0" | Id], node_enum_alias(OutId, Enum), - DRAM_ID = ["DRAM"], + PCIBUS_ID = ["PCIBUS"], add_PROC_MMU(S, Id, S1), % Mark MMU block remappable @@ -273,7 +273,7 @@ add_process(S, Enum, NewS) :- assert_conf_node(S1, MMU_IN_ID, MMU_OUT_ID, 21, NumSlots, S2), OUT_ID = ["OUT" | Id], - assert_overlay(OUT_ID, DRAM_ID), + assert_overlay(OUT_ID, PCIBUS_ID), % Reserve memory for the process, the OUT/PROC0 node is the one where % initially the process (virtual) addresses are issued.
tests/float/float_parse.py: Add tests for accuracy of small decimals.
@@ -30,3 +30,7 @@ print(float('1e4294967301')) print(float('1e-4294967301')) print(float('1e18446744073709551621')) print(float('1e-18446744073709551621')) + +# check small decimals are as close to their true value as possible +for n in range(1, 10): + print(float('0.%u' % n) == n / 10)
Testnet Masternodes will enable on 7-Jan-2018
class CValidationState; -#define START_MASTERNODE_PAYMENTS_TESTNET 1515900783 //2018-1-14 03:33:03 GMT +#define START_MASTERNODE_PAYMENTS_TESTNET 1515283200 //Sat, 07 Jan 2018 00:00:00 GMT #define START_MASTERNODE_PAYMENTS 1515900783 //2018-1-14 03:33:03 GMT static const int64_t DARKSEND_COLLATERAL = (5000*COIN); // 5,000 DNR
Avoid double multiplication of alloc_count
@@ -74,7 +74,7 @@ void queueMultiCommand(client *c, uint64_t cmd_flags) { } if (c->mstate.count == c->mstate.alloc_count) { c->mstate.alloc_count = c->mstate.alloc_count < INT_MAX/2 ? c->mstate.alloc_count*2 : INT_MAX; - c->mstate.commands = zrealloc(c->mstate.commands, sizeof(multiCmd)*(c->mstate.alloc_count*2)); + c->mstate.commands = zrealloc(c->mstate.commands, sizeof(multiCmd)*(c->mstate.alloc_count)); } mc = c->mstate.commands+c->mstate.count; mc->cmd = c->cmd;
Update: transbot_lidar.py: shorter response dist for obstacles
@@ -4,7 +4,7 @@ import numpy as np from time import sleep from sensor_msgs.msg import LaserScan -ResponseDist = 2.0 +ResponseDist = 1.0 LaserAngle = 30 #30 # 10~180 Right_warning = 0 Left_warning = 0
Add config/duration to IKEA Tradri motion sensor if not present
@@ -8110,6 +8110,10 @@ void DeRestPluginPrivate::handleOnOffClusterIndication(TaskItem &task, const deC qint64 duration = (timeOn + 5) / 10; item = s.item(RConfigDuration); + if (!item) + { + item = s.addItem(DataTypeUInt16, RConfigDuration); + } if (item && item->toNumber() != duration) { item->setValue((quint64) duration);
util/find-doc-nits: Better parsing of links When checking links, we need to peal away stuff that aren't part of the link proper first. That makes it easier to check the link itself.
@@ -450,12 +450,14 @@ sub check { # Make sure every link has a section. while ( $contents =~ /$markup_re/msg ) { my $target = $1; - next unless $target =~ /^L</; # Skip if not L<...>, or + next unless $target =~ /^L<(.*)>$/; # Skip if not L<...> + $target = $1; # Peal away L< and > + $target =~ s/\/[^\/]*$//; # Peal away possible anchor + $target =~ s/.*\|//g; # Peal away possible link text + next if $target eq ''; # Skip if links within page, or next if $target =~ /::/; # links to a Perl module, or - next if $target =~ m@L</@; # links within the page, or - next if $target =~ /^L<https?:/; # is a URL link, or - next if $target =~ m@\([1357]\)>$@; # it has a section, or - next if $target =~ m@\([1357]\)/.*>$@; # it has a section/anchor + next if $target =~ /^https?:/; # is a URL link, or + next if $target =~ /\([1357]\)$/; # it has a section err($id, "Section missing in $target") } # Check for proper links to commands.
Update: typos fix
A mouse is an animal. It is dead if the cat eats it. -The cat is eating a mouse in the jungle. +The cat is eating a mouse in the garden. 70 What is in the garden? -Answer: <cat --> (in /1 garden)>. :|: occurrenceTime=4 creationTime=4 Truth: frequency=1.000000, confidence=0.900000 +//expected: Answer: <cat --> (in /1 garden)>. :|: occurrenceTime=4 Truth: frequency=1.000000, confidence=0.900000 The cat is in the garden? -Answer: <cat --> (in /1 garden)>. :|: occurrenceTime=4 creationTime=4 Truth: frequency=1.000000, confidence=0.900000 +//expected: Answer: <cat --> (in /1 garden)>. :|: occurrenceTime=4 Truth: frequency=1.000000, confidence=0.900000 The mouse is dead? -//expected: Answer: <mouse --> [dead]>. :|: occurrenceTime=3 creationTime=3 Truth: frequency=0.999502, confidence=0.809637 +//expected: Answer: <mouse --> [dead]>. :|: occurrenceTime=3 Truth: frequency=0.999502, confidence=0.809637 The cat is eating an animal? -//expected: Answer: <cat --> (eat /1 animal)>. :|: occurrenceTime=3 creationTime=69 Truth: frequency=1.000000, confidence=0.239539 +//expected: Answer: <cat --> (eat /1 animal)>. :|: occurrenceTime=3 Truth: frequency=1.000000, confidence=0.239539
Update comments for bit manipulation macros Bit manipulation code was updated but comments related to it were not. This commit updates the comments for the main macros, GET/SETFIELD, to make them match the code.
/* Find left shift from first set bit in mask */ #define MASK_TO_LSH(m) (__builtin_ffsl(m) - 1) -/* Extract field fname from val */ +/* Extract field from 'v' according to mask 'm' */ #define GETFIELD(m, v) (((v) & (m)) >> MASK_TO_LSH(m)) -/* Set field fname of oval to fval - * NOTE: oval isn't modified, the combined result is returned +/* Set field specified by mask 'm' of 'v' to value 'val' + * NOTE: 'v' isn't modified, the combined result is returned */ #define SETFIELD(m, v, val) \ (((v) & ~(m)) | ((((typeof(v))(val)) << MASK_TO_LSH(m)) & (m)))
Fix std.optparse maxargs check
@@ -72,8 +72,8 @@ const optparse = {args, def optusage(ctx.optargs[0], ctx.optdef) exit(1) ;; - if def.maxargs > 0 && ctx.args.len < def.minargs - put("error: expected at most {} args, got {}\n", def.minargs, ctx.args.len) + if def.maxargs > 0 && ctx.args.len > def.maxargs + put("error: expected at most {} args, got {}\n", def.maxargs, ctx.args.len) optusage(ctx.optargs[0], ctx.optdef) exit(1) ;;
[components][dfs][fatfs] Add return 0 to get_fattime when RT_USING_LIBC not enable.
@@ -924,10 +924,12 @@ DRESULT disk_ioctl(BYTE drv, BYTE ctrl, void *buff) DWORD get_fattime(void) { + DWORD fat_time = 0; + +#ifdef RT_USING_LIBC time_t now; struct tm *p_tm; struct tm tm_now; - DWORD fat_time; /* get current time */ now = time(RT_NULL); @@ -947,6 +949,7 @@ DWORD get_fattime(void) (DWORD)tm_now.tm_hour << 11 | (DWORD)tm_now.tm_min << 5 | (DWORD)tm_now.tm_sec / 2 ; +#endif /* RT_USING_LIBC */ return fat_time; }
fig bug 3279
@@ -115,7 +115,15 @@ module_exit(hello_exit); local include_cflag = false for _, cflag in ipairs(line:split("%s+")) do local has_cflag = false - if cflag:startswith("-f") or cflag:startswith("-m") + if cflag:startswith("-fplugin=") then + -- @see https://github.com/xmake-io/xmake/issues/3279 + local plugindir = cflag:sub(10) + if not path.is_absolute(plugindir) then + plugindir = path.absolute(plugindir, sdkdir) + end + cflag = "-fplugin=" .. plugindir + has_cflag = true + elseif cflag:startswith("-f") or cflag:startswith("-m") or (cflag:startswith("-W") and not cflag:startswith("-Wp,-MMD,") and not cflag:startswith("-Wp,-MD,")) or (cflag:startswith("-D") and not cflag:find("KBUILD_MODNAME=") and not cflag:find("KBUILD_BASENAME=")) then has_cflag = true @@ -140,14 +148,6 @@ module_exit(hello_exit); end has_cflag = true include_cflag = nil - elseif cflag:startswith("-fplugin=") then - -- @see https://github.com/xmake-io/xmake/issues/3279 - local plugindir = cflag:sub(10) - if not path.is_absolute(plugindir) then - plugindir = path.absolute(plugindir, sdkdir) - end - cflag = "-fplugin=" .. plugindir - has_cflag = true end if has_cflag then cflags = cflags or {}
Update information in BRANCHES.md
# Maintained branches -At any point in time, we have a number of maintained branches consisting of: +At any point in time, we have a number of maintained branches, currently consisting of: - The [`master`](https://github.com/ARMmbed/mbedtls/tree/master) branch: this always contains the latest release, including all publicly available @@ -9,11 +9,18 @@ At any point in time, we have a number of maintained branches consisting of: this is where the current major version of Mbed TLS (version 3.x) is being prepared. It has API changes that make it incompatible with Mbed TLS 2.x, as well as all the new features and bug fixes and security fixes. -- The [`development_2.x`](https://github.com/ARMmbed/mbedtls/tree/development_2.x) branch: - this branch retains the API of Mbed TLS 2.x, and has a subset of the - features added after Mbed TLS 2.26.0 and bug fixes and security fixes. -- One or more long-time support (LTS) branches: - these only get bug fixes and security fixes. +- One or more long-time support (LTS) branches: these only get bug fixes and + security fixes. Currently, the only supported LTS branch is: + [`mbedtls-2.28`](https://github.com/ARMmbed/mbedtls/tree/mbedtls-2.28). +- For a short time we also have the previous LTS, which has recently ended its + support period, + [`mbedtls-2.16`](https://github.com/ARMmbed/mbedtls/tree/mbedtls-2.16). + This branch will move into the `archive` namespace around the time of + the next release. + +We retain a number of historical branches, whose names are prefixed by `archive/`, +such as [`archive/mbedtls-2.7`](https://github.com/ARMmbed/mbedtls/tree/archive/mbedtls-2.7). +These branches will not receive any changes or updates. We use [Semantic Versioning](https://semver.org/). In particular, we maintain API compatibility in the `master` branch across minor version changes (e.g. @@ -70,9 +77,8 @@ The following branches are currently maintained: - [master](https://github.com/ARMmbed/mbedtls/tree/master) - [`development`](https://github.com/ARMmbed/mbedtls/) -- [`development_2.x`](https://github.com/ARMmbed/mbedtls/tree/development_2.x) -- [`mbedtls-2.16`](https://github.com/ARMmbed/mbedtls/tree/mbedtls-2.16) - maintained until at least the end of 2021, see - <https://tls.mbed.org/tech-updates/blog/announcing-lts-branch-mbedtls-2.16> +- [`mbedtls-2.28`](https://github.com/ARMmbed/mbedtls/tree/mbedtls-2.28) + maintained until at least the end of 2024, see + <https://github.com/ARMmbed/mbedtls/releases/tag/v2.28.0>. Users are urged to always use the latest version of a maintained branch.
changed py.test to pytest
@@ -61,11 +61,11 @@ sanitize: test: -gcc -o vplanet src/*.c -lm -O3 -DGITVERSION=\"$(GITVERSION)\" - -py.test + -pytest coverage: -mkdir -p gcov && cd gcov && gcc -coverage -o ../vplanet ../src/*.c -lm - -py.test + -pytest -cd gcov && lcov --capture --directory . --output-file coverage.info && genhtml coverage.info --output-directory html docs:
Use uip-debug in ip64-ipv4-dhcp.c
#include <stdio.h> +#define DEBUG DEBUG_NONE +#include "net/ip/uip-debug.h" + PROCESS(ip64_ipv4_dhcp_process, "IPv4 DHCP"); uip_ipaddr_t uip_hostaddr; /* Needed because it is referenced by dhcpc.c */ @@ -48,7 +51,7 @@ uip_ipaddr_t uip_hostaddr; /* Needed because it is referenced by dhcpc.c */ void ip64_ipv4_dhcp_init(void) { - printf("Starting DHCPv4\n"); + printf("IP64: Starting DHCPv4\n"); process_start(&ip64_ipv4_dhcp_process, NULL); } /*---------------------------------------------------------------------------*/ @@ -58,10 +61,10 @@ PROCESS_THREAD(ip64_ipv4_dhcp_process, ev, data) ip64_dhcpc_init(&ip64_eth_addr, sizeof(ip64_eth_addr)); - printf("Inited\n"); + PRINTF("IP64: Inited\n"); ip64_dhcpc_request(); - printf("Requested\n"); + PRINTF("IP64: Requested\n"); while(1) { PROCESS_WAIT_EVENT(); @@ -78,7 +81,7 @@ void ip64_dhcpc_configured(const struct ip64_dhcpc_state *s) { uip_ip6addr_t ip6dnsaddr; - printf("DHCP Configured with %d.%d.%d.%d\n", + PRINTF("IP64: DHCP Configured with %d.%d.%d.%d\n", s->ipaddr.u8[0], s->ipaddr.u8[1], s->ipaddr.u8[2], s->ipaddr.u8[3]);
window move gestures
@@ -1963,6 +1963,21 @@ movemouse(const Arg *arg) break; } } while (ev.type != ButtonRelease); + + if (ev.xmotion.y_root < 5) { + if (selmon->sel->isfloating) { + togglefloating(NULL); + } + } + + if (ev.xmotion.x_root > selmon->mx + selmon->mw - 5 && ev.xmotion.x_root < selmon->mx + selmon->mw + 1) { + c->isfloating = 0; + tagtoright(arg); + } else if (ev.xmotion.x_root < selmon->mx + 5 && ev.xmotion.x_root > selmon->mx - 1) { + c->isfloating = 0; + tagtoleft(arg); + } + XUngrabPointer(dpy, CurrentTime); if ((m = recttomon(c->x, c->y, c->w, c->h)) != selmon) { sendmon(c, m);
Add mod2gbt 2.3 mac
Binary files a/buildTools/darwin-x64/mod2gbt/mod2gbt and b/buildTools/darwin-x64/mod2gbt/mod2gbt differ
rt946x: add missing new line in console log TEST=make BRANCH=kukui Tested-by: Ting Shen
@@ -659,7 +659,7 @@ int charger_set_input_current(int input_current) info->input_current_max, info->input_current_step, input_current); - CPRINTF("iin=%d", input_current); + CPRINTS("iin=%d", input_current); return rt946x_update_bits(RT946X_REG_CHGCTRL3, RT946X_MASK_AICR, reg_iin << RT946X_SHIFT_AICR);
Disable debug print in C testing
@@ -68,7 +68,7 @@ jobs: # Require CMake>=3.14 for the following build procedure - name: Test run: | - cmake -S . -B build -DUSE_SANITIZER="Address" -DCMAKE_BUILD_TYPE="Debug" + cmake -S . -B build -DUSE_SANITIZER="Address" cmake --build build -t check docs:
Remove dependencies on default libraries that break cross-compilation with new clang build
@@ -4546,12 +4546,12 @@ module _GO_BASE_UNIT: _BASE_UNIT { when ($OS_DARWIN) { GO_TOOLCHAIN_ENV += ${env:"CC=clang"} ${env:"PATH=$(DEFAULT_DARWIN_X86_64)/bin:$MACOS_SDK_RESOURCE_GLOBAL/usr/bin:$CCTOOLS_ROOT_RESOURCE_GLOBAL/bin"} GO_EXTLD = ++extld clang ++extldflags $LD_SDK_VERSION -undefined dynamic_lookup $C_FLAGS_PLATFORM --sysroot=$MACOS_SDK_RESOURCE_GLOBAL ${rootrel:SRCS_GLOBAL} $LDFLAGS $LDFLAGS_GLOBAL $OBJADDE $OBJADDE_LIB $GO_LDFLAGS_GLOBAL $C_LIBRARY_PATH $C_SYSTEM_LIBRARIES_INTERCEPT $C_SYSTEM_LIBRARIES - CGO2_LDFLAGS += $LD_SDK_VERSION -undefined dynamic_lookup + CGO2_LDFLAGS += $LD_SDK_VERSION -undefined dynamic_lookup -nodefaultlibs -lc } elsewhen ($OS_LINUX) { GO_TOOLCHAIN_ENV += ${env:"CC=clang"} ${env:"PATH=$(DEFAULT_LINUX_X86_64)/bin:$OS_SDK_ROOT_RESOURCE_GLOBAL/usr/bin"} GO_EXTLD = ++extld clang ++extldflags $C_FLAGS_PLATFORM --sysroot=$OS_SDK_ROOT_RESOURCE_GLOBAL ${rootrel:SRCS_GLOBAL} $LDFLAGS $LDFLAGS_GLOBAL $OBJADDE $OBJADDE_LIB $GO_LDFLAGS_GLOBAL $C_LIBRARY_PATH $C_SYSTEM_LIBRARIES_INTERCEPT $C_SYSTEM_LIBRARIES - CGO2_LDFLAGS += -Wl,--unresolved-symbols=ignore-all + CGO2_LDFLAGS += -Wl,--unresolved-symbols=ignore-all -nodefaultlibs -lc } otherwise { GO_EXTLD = ++extld gcc
maf: Fix quat_getDirection;
@@ -186,7 +186,7 @@ MAF quat quat_normalize(quat q) { MAF void quat_getDirection(quat q, float* x, float* y, float* z) { *x = -(2.f * q[0] * q[2] + 2.f * q[3] * q[1]); - *y = -(2.f * q[1] * q[2] + 2.f * q[3] * q[0]); + *y = -(2.f * q[1] * q[2] - 2.f * q[3] * q[0]); *z = -(1.f - 2.f * q[0] * q[0] - 2.f * q[1] * q[1]); }
Skip binding uv_fs_get_system_error for now See
@@ -29,7 +29,7 @@ skipped+=( uv_req_type_name uv_pipe_chmod uv_process_get_pid uv_get_osfhandle uv_open_osfhandle uv_fs_get_type uv_fs_get_result uv_fs_get_ptr uv_fs_get_path uv_fs_get_statbuf uv_ip4_addr uv_ip6_addr uv_ip4_name uv_ip6_name uv_inet_ntop uv_inet_pton uv_dlopen uv_dlclose - uv_dlsym uv_dlerror uv_udp_using_recvmmsg + uv_dlsym uv_dlerror uv_udp_using_recvmmsg uv_fs_get_system_error ) # get all public uv_ functions from uv.h
pbio/drivebase: use common starters for drive Also, drop the synchronous start
@@ -269,54 +269,6 @@ static pbio_error_t pbio_drivebase_update(pbio_drivebase_t *db) { return drivebase_log_update(db, time_now, sum, sum_rate, sum_control, dif, dif_rate, dif_control); } -static pbio_error_t pbio_drivebase_signal_run(pbio_control_t *ctl, int32_t target_rate, int32_t time_now, int32_t count_now, int32_t rate_now) { - - pbio_error_t err; - - // If we are continuing a timed maneuver, we can try to patch the new command onto the existing one for better continuity - if (ctl->type == PBIO_CONTROL_TIMED) { - - // Make the new trajectory and try to patch - err = pbio_trajectory_make_time_based_patched( - &ctl->trajectory, - time_now, - DURATION_FOREVER, - target_rate, - ctl->settings.max_rate, - ctl->settings.abs_acceleration); - if (err != PBIO_SUCCESS) { - return err; - } - } - else { - // If angle based or no maneuver was ongoing, make a basic new trajectory - // Based on the current time and current state - err = pbio_trajectory_make_time_based( - &ctl->trajectory, - time_now, - DURATION_FOREVER, - count_now, - 0, - rate_now, - target_rate, - ctl->settings.max_rate, - ctl->settings.abs_acceleration); - if (err != PBIO_SUCCESS) { - return err; - } - - // New maneuver, so reset the rate integrator - pbio_rate_integrator_reset(&ctl->rate_integrator, time_now, count_now, count_now); - } - - // Set new maneuver action and stop type, and state - ctl->after_stop = PBIO_ACTUATION_COAST; - ctl->is_done_func = pbio_control_never_done; - ctl->type = PBIO_CONTROL_TIMED; - - return PBIO_SUCCESS; -} - pbio_error_t pbio_drivebase_straight(pbio_drivebase_t *db, int32_t distance) { return PBIO_ERROR_NOT_IMPLEMENTED; } @@ -342,18 +294,12 @@ pbio_error_t pbio_drivebase_drive(pbio_drivebase_t *db, int32_t speed, int32_t t // Initialize both controllers int32_t target_turn_rate = pbio_control_user_to_counts(&db->control_heading.settings, turn_rate); - err = pbio_drivebase_signal_run(&db->control_heading, target_turn_rate, time_now, dif, dif_rate); + err = pbio_control_start_timed_control(&db->control_heading, time_now, DURATION_FOREVER, dif, dif_rate, target_turn_rate, pbio_control_never_done, PBIO_ACTUATION_COAST); if (err != PBIO_SUCCESS) { return err; } int32_t target_sum_rate = pbio_control_user_to_counts(&db->control_distance.settings, speed); - err = pbio_drivebase_signal_run(&db->control_distance, target_sum_rate, time_now, sum, sum_rate); - if (err != PBIO_SUCCESS) { - return err; - } - - // Run one control update synchronously with user command. - err = pbio_drivebase_update(db); + err = pbio_control_start_timed_control(&db->control_distance, time_now, DURATION_FOREVER, sum, sum_rate, target_sum_rate, pbio_control_never_done, PBIO_ACTUATION_COAST); if (err != PBIO_SUCCESS) { return err; }
extra redeclared getSystemInfo is removed
@@ -39,8 +39,6 @@ private: virtual void getApplicationIconBadge(CMethodResult& oResult); virtual void setApplicationIconBadge( int value, CMethodResult& oResult); - virtual void getSystemInfo(CMethodResult& oResult); - virtual void setDoNotBackupAttribute( const rho::String& pathToFile, bool doNotBackup, rho::apiGenerator::CMethodResult& oResult); //virtual void setPushNotification( const rho::String& url, const rho::String& url_params, const rho::String& push_client, rho::apiGenerator::CMethodResult& oResult);
[ci skip] [docs] Abe's comments 2
@@ -4,18 +4,10 @@ Quick Start Requirements ------------------------------------------- -Using Linux is recommended. -The provided scripts will not work on macOS out of the box, but they may be able to be modified to support it. +Chipyard is developed and tested on Linux-based systems. +It is possible to use this on macOS or other BSD-based systems, although GNU tools will need to be installed; it is also recommended to install the RISC-V toolchain from ``brew``. Working under Windows is not recommended. -* dtc (design-tree-compiler) - -* GNU awk - -* GNU sed - -* GNU make - Setting up the Chipyard Repo -------------------------------------------
Update the layout of packages
@@ -44,21 +44,9 @@ Install development tools for ARCN development: .. code-block:: none - sudo apt install gcc - git - make - gnu-efi - libssl-dev - libpciaccess-dev - uuid-dev - libsystemd-dev - libevent-dev - libxml2-dev - libusb-1.0-0-dev - python3 - python3-pip - libblkid-dev - e2fslibs-dev + sudo apt install gcc git make gnu-efi libssl-dev libpciaccess-dev \ + uuid-dev libsystemd-dev libevent-dev libxml2-dev libusb-1.0-0-dev \ + python3 python3-pip libblkid-dev e2fslibs-dev sudo pip3 install kconfiglib .. note::
nva/nvapy: Improve build dependency warning for python3 and/or cython Reflect that the absence of both, or either, dependency will mean nvapy won't be built due to un-met dependencies.
@@ -90,7 +90,7 @@ if (NOT DISABLE_NVA) install(TARGETS nvapy DESTINATION ${NVAPY_PATH}) endif (NVAPY_PATH) else(PC_PYTHON_FOUND AND CYTHON_EXECUTABLE) - message("Warning: nvapy won't be built because of un-met dependencies (python3 and cython)") + message("Warning: nvapy won't be built because of un-met dependencies (python3 and/or cython)") endif(PC_PYTHON_FOUND AND CYTHON_EXECUTABLE) target_link_libraries(nvawatch ${CMAKE_THREAD_LIBS_INIT})
SLW: Removing timebase related flags for stop4 When a core enters stop4, it does not loose decrementer and time base. Hence removing flags OPAL_PM_DEC_STOP and OPAL_PM_TIMEBASE_STOP.
@@ -601,8 +601,8 @@ static struct cpu_idle_states power9_cpu_idle_states[] = { .name = "stop4", .latency_ns = 100000, .residency_ns = 1000000, - .flags = 1*OPAL_PM_DEC_STOP \ - | 1*OPAL_PM_TIMEBASE_STOP \ + .flags = 0*OPAL_PM_DEC_STOP \ + | 0*OPAL_PM_TIMEBASE_STOP \ | 1*OPAL_PM_LOSE_USER_CONTEXT \ | 1*OPAL_PM_LOSE_HYP_CONTEXT \ | 1*OPAL_PM_LOSE_FULL_CONTEXT \
OpenLinuxBoot: typo
@@ -50,7 +50,7 @@ BoundedAsciiStrCmp ( STATIC VOID -GetNextFragement ( +GetNextFragment ( IN CONST CHAR8 **Pos, OUT CONST CHAR8 **FragmentStart, OUT CONST CHAR8 **FragmentEnd, @@ -170,8 +170,8 @@ DoVersionCompare ( Pos2 = Version2; while (TRUE) { - GetNextFragement (&Pos1, &FragmentStart1, &FragmentEnd1, &IsAlphaFragment1, &IsSectionBreak1, &SectionChar1); - GetNextFragement (&Pos2, &FragmentStart2, &FragmentEnd2, &IsAlphaFragment2, &IsSectionBreak2, &SectionChar2); + GetNextFragment (&Pos1, &FragmentStart1, &FragmentEnd1, &IsAlphaFragment1, &IsSectionBreak1, &SectionChar1); + GetNextFragment (&Pos2, &FragmentStart2, &FragmentEnd2, &IsAlphaFragment2, &IsSectionBreak2, &SectionChar2); if (IsSectionBreak1 != IsSectionBreak2) { return IsSectionBreak2 ? +1 : -1;
Fix compilation with system CXX
@@ -1169,6 +1169,7 @@ class GnuToolchain(Toolchain): self.env = self.tc.get_env() if self.tc.is_clang: + if self.tc.is_from_arcadia: self.env.setdefault(build.host.library_path_variable, []).append('{}/lib'.format(self.tc.name_marker)) target_triple = select(default=None, selectors=[ @@ -1202,6 +1203,7 @@ class GnuToolchain(Toolchain): self.c_flags_platform.append('-mfpu=neon') self.c_flags_platform.extend(('-fexceptions', '-fsigned-char')) + if self.tc.is_from_arcadia: if target.is_apple: if target.is_ios: self.setup_sdk(project='build/platform/ios_sdk', var='${IOS_SDK_ROOT_RESOURCE_GLOBAL}') @@ -1540,8 +1542,10 @@ class LD(Linker): if target.is_apple: # Use libtool. cctools ar does not understand -M needed for archive merging self.ar = '${CCTOOLS_ROOT_RESOURCE_GLOBAL}/bin/libtool' - else: + elif self.tc.is_from_arcadia: self.ar = '{}/bin/llvm-ar'.format(self.tc.name_marker) + else: + self.ar = 'ar' self.ld_flags = filter(None, [preset('LDFLAGS')])
I added a link to the Mac OSX build on the 10.11 system to the executables download page for the 2.13.0 release.
<i>(Includes parallel VisIt with self-contained MPICH MPI. Works on Mac OS X 10.8.5 and later.)</i></td> <td><a href="http://portal.nersc.gov/project/visit/releases/2.13.0/VisIt-2.13.0.dmg">Download</a></td> </tr> + <tr> + <td>Mac OS X 10.11.6 - Intel 64 bit<br /> + Darwin 10.11.6, Darwin Kernel Version 15.6.0, clang-703.0.29, MPICH<br /> + <i>(Includes parallel VisIt with self-contained MPICH MPI. Works on Mac OS X 10.11.6 and later.)</i></td> + <td><a href="http://portal.nersc.gov/project/visit/releases/2.13.0/VisIt-2.13.0-10.11.dmg">Download</a></td> + </tr> <tr> <td>Linux - x86_64 64 bit<br /> Redhat Enterprise Linux 7.2, 4.9.0-1.el7.elrepo.x86_64 #1 SMP, gcc 4.8.5<br />
eve: Lower VCCIO from 975 to 850 mV BRANCH=none TEST=power consumption is lower
@@ -348,7 +348,7 @@ static void board_pmic_init(void) i2c_write8(I2C_PORT_PMIC, I2C_ADDR_BD99992, 0x3e, 0x04); /* Set CSDECAYEN / VCCIO decays to 0V at assertion of SLP_S0# */ - i2c_write8(I2C_PORT_PMIC, I2C_ADDR_BD99992, 0x30, 0x4a); + i2c_write8(I2C_PORT_PMIC, I2C_ADDR_BD99992, 0x30, 0x7a); /* * Set V100ACNT / V1.00A Control Register:
Add sceSblRngPseudoRandomNumber function
@@ -42,6 +42,8 @@ int ksceSblAimgrGetConsoleId(SceConsoleId *cid); int ksceSblAimgrGetOpenPsId(SceOpenPsId *open_psid); int ksceSblAimgrGetPscode(ScePsCode *pscode); +int ksceSblRngPseudoRandomNumber(void *result, SceSize size); + int ksceSblDmac5AesCbcDec(const void *src, void *dst, int size, const void *key, int key_size, void *iv, int mask_enable); int ksceSblDmac5AesCbcEnc(const void *src, void *dst, int size, const void *key, int key_size, void *iv, int mask_enable); int ksceSblDmac5AesCtrDec(const void *src, void *dst, int size, const void *key, int key_size, void *iv, int mask_enable);