message
stringlengths
6
474
diff
stringlengths
8
5.22k
Update version to 1.4.0-1
@@ -65,7 +65,7 @@ endif(EXISTS ${GIT_EXECUTABLE}) ############################################################################ set(INTEL_FPGA_API_VER_MAJOR 1 CACHE STRING "Intel FPGA API major version") -set(INTEL_FPGA_API_VER_MINOR 3 CACHE STRING "Intel FPGA API minor version") +set(INTEL_FPGA_API_VER_MINOR 4 CACHE STRING "Intel FPGA API minor version") set(INTEL_FPGA_API_VER_REV 0 CACHE STRING "Intel FPGA API revision version") set(INTEL_FPGA_API_VERSION ${INTEL_FPGA_API_VER_MAJOR}.${INTEL_FPGA_API_VER_MINOR}.${INTEL_FPGA_API_VER_REV}) set(INTEL_FPGA_API_HASH ${GIT_COMMIT_HASH}) @@ -232,7 +232,7 @@ set(CPACK_PACKAGE_VERSION_MAJOR "${INTEL_FPGA_API_VER_MAJOR}") set(CPACK_PACKAGE_VERSION_MINOR "${INTEL_FPGA_API_VER_MINOR}") set(CPACK_PACKAGE_VERSION_PATCH "${INTEL_FPGA_API_VER_REV}") set(CPACK_PACKAGE_VERSION ${INTEL_FPGA_API_VERSION}) -set(CPACK_PACKAGE_RELEASE 2) +set(CPACK_PACKAGE_RELEASE 1) set(CPACK_PACKAGE_CONTACT "[email protected]") set(CPACK_PACKAGING_INSTALL_PREFIX "${CMAKE_INSTALL_PREFIX}") #Hashing the package components
update ya tool arc set default server to stallman
}, "arc": { "formula": { - "sandbox_id": [301715473], + "sandbox_id": [302768113], "match": "arc" }, "executable": {
Switched contains back to eq
@@ -1895,7 +1895,7 @@ static ACVP_RESULT query_vendor(ACVP_CTX *ctx, ctx->path_segment, "vendors?"); if (vendor->name) { - rv = acvp_kv_list_append(&parameters, "name[0]=contains:", vendor->name); + rv = acvp_kv_list_append(&parameters, "name[0]=eq:", vendor->name); if (ACVP_SUCCESS != rv) { ACVP_LOG_ERR("Failed acvp_kv_list_append()"); goto end;
xeon_phi: connect to the skb when the domain is started
#include <xeon_phi/xeon_phi.h> #include <xeon_phi/xeon_phi_manager_client.h> +#include <skb/skb.h> #include "xeon_phi_internal.h" #include "smpt.h" @@ -156,6 +157,11 @@ int main(int argc, char *argv[]) USER_PANIC_ERR(err, "initializing octopus\n"); } + err = skb_client_connect(); + if (err_is_fail(err)) { + USER_PANIC_ERR(err, "initializing skb\n"); + } + // map the nfs path err = mount_nfs_path(xeon_phi_mod_uri); if (err_is_fail(err)) {
ci(build): add missing pro-micro compatible shields These should've been added in previous PRs. PR:
@@ -24,6 +24,8 @@ jobs: - boardsource3x4 - corne_left - corne_right + - cradio_left + - cradio_right - iris_left - iris_right - jian_left @@ -34,13 +36,21 @@ jobs: - kyria_right - lily58_left - lily58_right + - microdox_left + - microdox_right - nibble + - qaz - quefrency_left - quefrency_right - reviung41 - romac - romac_plus - settings_reset + - sofle_left + - sofle_right + - splitreus62_left + - splitreus62_right + - tg4x include: - board: proton_c shield: clueboard_california
thaw - aspect ratio fix
@@ -87,6 +87,8 @@ DWORD WINAPI Init(LPVOID bDelay) //Aspect Ratio pattern = hook::pattern("68 ? ? ? ? E8 ? ? ? ? 6A 00 68 ? ? ? ? E8 ? ? ? ? D9"); injector::WriteMemory<float>(pattern.get_first(1), Screen.fAspectRatio, true); + pattern = hook::pattern("E8 ? ? ? ? D8 0D ? ? ? ? D8 7C 24"); + injector::WriteMemory(injector::GetBranchDestination(pattern.get_first()).as_int() + 2, &Screen.fAspectRatio, true); //FOV if (bFixFOV)
[update] spi nss type
@@ -137,7 +137,7 @@ static rt_err_t stm32_spi_init(struct stm32_spi *spi_drv, struct rt_spi_configur if (cfg->mode & RT_SPI_NO_CS) { - spi_handle->Init.NSS = SPI_NSS_SOFT; + spi_handle->Init.NSS = SPI_NSS_HARD_OUTPUT; } else {
2.13RC->Trunk; Fix ensure MFEM is built with compression enabled
@@ -17,6 +17,10 @@ function bv_mfem_depends_on { local depends_on="" + if [[ "$DO_ZLIB" == "yes" ]] ; then + depends_on="$depends_on zlib" + fi + echo $depends_on } @@ -91,12 +95,16 @@ function build_mfem cd $MFEM_BUILD_DIR || error "Can't cd to mfem build dir." + if [[ "$DO_ZLIB" == "yes" ]] ; then + ZLIBARG=-L${VISITDIR}/zlib/${ZLIB_VERSION}/${VISITARCH}/lib + fi + # # Call configure # info "Configuring mfem . . ." - info $MAKE config CXX="$CXX_COMPILER" CXXFLAGS="$CXXFLAGS $CXX_OPT_FLAGS" - $MAKE config CXX="$CXX_COMPILER" CXXFLAGS="$CXXFLAGS $CXX_OPT_FLAGS" + info $MAKE config CXX="$CXX_COMPILER" CXXFLAGS="$CXXFLAGS $CXX_OPT_FLAGS" MFEM_USE_GZSTREAM=YES LDFLAGS="$ZLIBARG -lz" + $MAKE config CXX="$CXX_COMPILER" CXXFLAGS="$CXXFLAGS $CXX_OPT_FLAGS" MFEM_USE_GZSTREAM=YES LDFLAGS="$ZLIBARG -lz" # # Build mfem
try with pip
@@ -16,7 +16,7 @@ jobs: runs-on: ${{ matrix.os }} strategy: matrix: - os: [ubuntu-latest] # , macos-10.15] # windows-2019, + os: [ubuntu-latest, macos-10.15] # windows-2019, # cibw_archs: ["auto"] # include: # - os: ubuntu-20.04 @@ -41,8 +41,7 @@ jobs: uses: pypa/[email protected] env: CIBW_BUILD: cp36-* cp37-* cp38-* cp39-* cp310-* - CIBW_BEFORE_BUILD: yum install -y libcurl-devel zlib-devel bzip2-devel xz-devel - # && pip install cython + CIBW_BEFORE_BUILD: yum install -y libcurl-devel zlib-devel bzip2-devel xz-devel && pip install cython CIBW_MANYLINUX_X86_64_IMAGE: manylinux2010 CIBW_MANYLINUX_I686_IMAGE: manylinux2010 # CIBW_ARCHS: ${{ matrix.cibw_archs }}
add todo to reenable test
@@ -6,6 +6,7 @@ src/plugins/python/CMakeLists.txt src/plugins/python2/CMakeLists.txt tests/shell/check_merge.sh for INI tests/shell/shell_recorder/mathcheck.esr for INI (hard-coded ni) +src/plugins/semlock/CMakeLists.txt disable due to /dev/shm problems, see #1122 and #1260 ## error
remove path 44'/60'
@@ -197,7 +197,7 @@ APP_LOAD_PARAMS += --path "44'/554'" --path "44'/60'" DEFINES += CHAINID_UPCASE=\"FLARE\" CHAINID_COINNAME=\"FLR\" CHAIN_KIND=CHAIN_KIND_FLARE CHAIN_ID=16 APPNAME = "Flare Coston" else ifeq ($(CHAIN),theta) -APP_LOAD_PARAMS += --path "44'/500'" --path "44'/60'" +APP_LOAD_PARAMS += --path "44'/500'" DEFINES += CHAINID_UPCASE=\"THETA\" CHAINID_COINNAME=\"THETA\" CHAIN_KIND=CHAIN_KIND_THETA CHAIN_ID=500 APPNAME = "Theta" else
[mod_auth] permit additional auth backends to load (For testing purposes, allow for all current auth module backends to be loaded and registered at the same time)
@@ -29,7 +29,7 @@ void http_auth_scheme_set (const http_auth_scheme_t *scheme) } -static http_auth_backend_t http_auth_backends[8]; +static http_auth_backend_t http_auth_backends[12]; const http_auth_backend_t * http_auth_backend_get (const buffer *name) {
Change used port in case of WIN32 global macro
#define ESP_CFG_SNTP 1 #define ESP_CFG_HOSTNAME 1 +#if defined(WIN32) +#define ESP_CFG_SYS_PORT ESP_SYS_PORT_WIN32 +#endif + #endif /* !__DOXYGEN__ */ /* Include default configuration setup */
modify contents of ROMFS for SIDK_S5JT200's README ',' should be followed at end of type and name lists.
@@ -120,11 +120,11 @@ Before executing below steps, execute [generic steps](../../../external/contents ```bash Board Selection -> change values at Flash partition size list (in KBytes) ``` - 2. Append "smartfs" at end to SIDK_S5JT200_FLASH_PART_TYPE + 2. Append "smartfs," at end to SIDK_S5JT200_FLASH_PART_TYPE ```bash Board Selection -> append string at Flash partition type list ``` - 3. Append "romfs" at end to SIDK_S5JT200_FLASH_PART_NAME + 3. Append "romfs," at end to SIDK_S5JT200_FLASH_PART_NAME ```bash Board Selection -> append string at FLash partition name list ```
Rebase code and run through the whole test flow
@@ -8847,8 +8847,7 @@ requires_config_enabled MBEDTLS_X509_RSASSA_PSS_SUPPORT run_test "TLS 1.3 m->O AES_128_GCM_SHA256 , RSA_PSS_RSAE_SHA256" \ "$O_SRV_RSA -ciphersuites TLS_AES_128_GCM_SHA256 -tls1_3 -msg -no_middlebox -num_tickets 0" \ "$P_CLI debug_level=4 force_version=tls1_3 server_name=localhost force_ciphersuite=TLS1-3-AES-128-GCM-SHA256" \ - 1 \ - -c "SSL - The requested feature is not available" \ + 0 \ -s "ServerHello" \ -c "tls1_3 client state: 0" \ -c "tls1_3 client state: 2" \ @@ -8870,7 +8869,8 @@ run_test "TLS 1.3 m->O AES_128_GCM_SHA256 , RSA_PSS_RSAE_SHA256" \ -c "=> parse certificate verify" \ -c "<= parse certificate verify" \ -c "mbedtls_ssl_tls13_process_certificate_verify() returned 0" \ - -c "<= parse finished message" + -c "<= parse finished message" \ + -c "HTTP/1.0 200 ok" requires_gnutls_tls1_3 requires_gnutls_next_no_ticket @@ -8912,8 +8912,7 @@ requires_gnutls_next run_test "TLS 1.3 m->G AES_128_GCM_SHA256 , RSA_PSS_RSAE_SHA256" \ "$G_NEXT_SRV_RSA --disable-client-cert --priority=NORMAL:+CIPHER-ALL:+SHA256:+GROUP-SECP256R1:+ECDHE-ECDSA:+AEAD:+SIGN-RSA-PSS-RSAE-SHA256:-VERS-ALL:+VERS-TLS1.3:%NO_TICKETS:%DISABLE_TLS13_COMPAT_MODE" \ "$P_CLI debug_level=4 force_version=tls1_3 server_name=localhost force_ciphersuite=TLS1-3-AES-128-GCM-SHA256" \ - 1 \ - -c "SSL - The requested feature is not available" \ + 0 \ -c "tls1_3 client state: 0" \ -c "tls1_3 client state: 2" \ -c "tls1_3 client state: 19" \ @@ -8940,7 +8939,8 @@ run_test "TLS 1.3 m->G AES_128_GCM_SHA256 , RSA_PSS_RSAE_SHA256" \ -c "=> parse certificate verify" \ -c "<= parse certificate verify" \ -c "mbedtls_ssl_tls13_process_certificate_verify() returned 0" \ - -c "<= parse finished message" + -c "<= parse finished message" \ + -c "HTTP/1.0 200 OK" # Test heap memory usage after handshake requires_config_enabled MBEDTLS_MEMORY_DEBUG
stm32/sdram: Allow additional config by a board, and tune MPU settings. Allow configuration by a board of autorefresh number and burst length. Increase MPU region size to 8MiB. Make SDRAM region cacheable and executable.
@@ -180,14 +180,14 @@ static void sdram_init_seq(SDRAM_HandleTypeDef /* Step 6 : Configure a Auto-Refresh command */ command->CommandMode = FMC_SDRAM_CMD_AUTOREFRESH_MODE; command->CommandTarget = FMC_SDRAM_CMD_TARGET_BANK; - command->AutoRefreshNumber = 4; + command->AutoRefreshNumber = MICROPY_HW_SDRAM_AUTOREFRESH_NUM; command->ModeRegisterDefinition = 0; /* Send the command */ HAL_SDRAM_SendCommand(hsdram, command, 0x1000); /* Step 7: Program the external memory mode register */ - tmpmrd = (uint32_t)SDRAM_MODEREG_BURST_LENGTH_2 | + tmpmrd = (uint32_t)FMC_INIT(SDRAM_MODEREG_BURST_LENGTH, MICROPY_HW_SDRAM_BURST_LENGTH) | SDRAM_MODEREG_BURST_TYPE_SEQUENTIAL | FMC_INIT(SDRAM_MODEREG_CAS_LATENCY, MICROPY_HW_SDRAM_CAS_LATENCY) | SDRAM_MODEREG_OPERATING_MODE_STANDARD | @@ -222,19 +222,18 @@ static void sdram_init_seq(SDRAM_HandleTypeDef /* Disable the MPU */ HAL_MPU_Disable(); - /* Configure the MPU attributes for SDRAM */ + /* Configure the MPU attributes as Write-Through for External SDRAM */ MPU_InitStruct.Enable = MPU_REGION_ENABLE; MPU_InitStruct.BaseAddress = SDRAM_START_ADDRESS; - MPU_InitStruct.Size = MPU_REGION_SIZE_4MB; + MPU_InitStruct.Size = MPU_REGION_SIZE_8MB; MPU_InitStruct.AccessPermission = MPU_REGION_FULL_ACCESS; MPU_InitStruct.IsBufferable = MPU_ACCESS_NOT_BUFFERABLE; - MPU_InitStruct.IsCacheable = MPU_ACCESS_NOT_CACHEABLE; + MPU_InitStruct.IsCacheable = MPU_ACCESS_CACHEABLE; MPU_InitStruct.IsShareable = MPU_ACCESS_NOT_SHAREABLE; MPU_InitStruct.Number = MPU_REGION_NUMBER0; - MPU_InitStruct.TypeExtField = MPU_TEX_LEVEL1; + MPU_InitStruct.TypeExtField = MPU_TEX_LEVEL0; MPU_InitStruct.SubRegionDisable = 0x00; - MPU_InitStruct.DisableExec = MPU_INSTRUCTION_ACCESS_DISABLE; - + MPU_InitStruct.DisableExec = MPU_INSTRUCTION_ACCESS_ENABLE; HAL_MPU_ConfigRegion(&MPU_InitStruct); /* Enable the MPU */
Remove outdated Constitution constructor argements
:~ [%address 0x0] [%address ships] [%address polls] - [%address 0x0] ::TODO standard ens registry - [%string "urbit-eth"] ::TODO ens domain - [%string "constitution"] ::TODO ens subdomain [%address claims] == =. constitution constit :~ [%address constit] [%address ships] [%address polls] - [%address 0x0] ::TODO standard ens registry - [%string "urbit-eth"] ::TODO ens domain - [%string "constitution"] ::TODO ens subdomain [%address claims] == =. this
Coachz: correct g_sensor orientation Correct the g-sensor oriention to match the latest board. BRANCH=none TEST=make BOARD=coachz -j TEST=check the screen oriention.
@@ -319,8 +319,8 @@ static struct bmi_drv_data_t g_bmi160_data; /* Matrix to rotate accelerometer into standard reference frame */ const mat33_fp_t lid_standard_ref = { - { 0, FLOAT_TO_FP(1), 0}, - { FLOAT_TO_FP(-1), 0, 0}, + { 0, FLOAT_TO_FP(-1), 0}, + { FLOAT_TO_FP(1), 0, 0}, { 0, 0, FLOAT_TO_FP(1)} };
doc: use 'apt' to install GCC for Windows Replace the original Clear Linux (`swupd`) command to add the GCC compiler for Windows by the equivalent in Ubuntu (i.e. using Ubuntu package manager 'apt')
@@ -128,8 +128,8 @@ The procedure for enabling S5 is specific to the particular OS: $ cd acrn-hypervisor/misc $ make life_mngr - .. note:: If there is no ``x86_64-w64-mingw32-gcc`` compiler, you must run ``swupd bundle-add c-basic-mingw`` - to install it. + .. note:: If there is no ``x86_64-w64-mingw32-gcc`` compiler, you can run ``sudo apt install gcc-mingw-w64-x86-64`` + on Ubuntu to install it. #) Set up a Windows environment:
Protect libc functions via m3ApiCheckMem
@@ -39,6 +39,8 @@ m3ApiRawFunction(m3_libc_memset) m3ApiGetArg (int32_t, i_value) m3ApiGetArg (int32_t, i_size) + m3ApiCheckMem(i_ptr, i_size); + u32 result = m3ApiPtrToOffset(memset (i_ptr, i_value, i_size)); m3ApiReturn(result); } @@ -51,6 +53,9 @@ m3ApiRawFunction(m3_libc_memmove) m3ApiGetArgMem (void*, i_src) m3ApiGetArg (int32_t, i_size) + m3ApiCheckMem(o_dst, i_size); + m3ApiCheckMem(i_src, i_size); + u32 result = m3ApiPtrToOffset(memmove (o_dst, i_src, i_size)); m3ApiReturn(result); } @@ -62,6 +67,8 @@ m3ApiRawFunction(m3_libc_print) m3ApiGetArgMem (void*, i_ptr) m3ApiGetArg (uint32_t, i_size) + m3ApiCheckMem(i_ptr, i_size); + fwrite(i_ptr, i_size, 1, stdout); fflush(stdout); @@ -89,33 +96,11 @@ m3ApiRawFunction(m3_spectest_dummy) m3ApiSuccess(); } -m3ApiRawFunction(m3_wasm3_raw_sum) -{ - m3ApiReturnType (int64_t) - m3ApiGetArg (int32_t, val1) - m3ApiGetArg (int32_t, val2) - m3ApiGetArg (int32_t, val3) - m3ApiGetArg (int32_t, val4) - - m3ApiReturn(val1 + val2 + val3 + val4); - - m3ApiSuccess(); -} - -/* TODO: implement direct native function calls (using libffi?) -i64 m3_wasm3_native_sum(i32 val1, i32 val2, i32 val3, i32 val4) -{ - return val1 + val2 + val3 + val4; -} -*/ - - M3Result m3_LinkSpecTest (IM3Module module) { M3Result result = m3Err_none; const char* spectest = "spectest"; - const char* wasm3 = "wasm3"; _ (SuppressLookupFailure (m3_LinkRawFunction (module, spectest, "print", "v()", &m3_spectest_dummy))); _ (SuppressLookupFailure (m3_LinkRawFunction (module, spectest, "print_i32", "v(i)", &m3_spectest_dummy))); @@ -125,10 +110,6 @@ _ (SuppressLookupFailure (m3_LinkRawFunction (module, spectest, "print_f64", _ (SuppressLookupFailure (m3_LinkRawFunction (module, spectest, "print_i32_f32", "v(if)", &m3_spectest_dummy))); _ (SuppressLookupFailure (m3_LinkRawFunction (module, spectest, "print_i64_f64", "v(IF)", &m3_spectest_dummy))); - -_ (SuppressLookupFailure (m3_LinkRawFunction (module, wasm3, "raw_sum", "I(iiii)", &m3_wasm3_raw_sum))); -//_ (SuppressLookupFailure (m3_LinkCFunction (module, wasm3, "native_sum", "I(iiii)", &m3_wasm3_native_sum))); - _catch: return result; }
No ticket: sensor creator: UART sensor def removed The apps/sensors_test had an issue where it would not build standalone without specifying an offboard sensor and an interface in the targets syscfg.yml file. This change would make that possible.
@@ -58,19 +58,24 @@ static struct tcs34725 tcs34725; static struct bme280 bme280; #endif -#if MYNEWT_VAL(UART_0) -static const struct sensor_itf uart_0_itf = { - .si_type = SENSOR_ITF_UART, - .si_num = 0, -}; -#endif - -#if MYNEWT_VAL(UART_1) -static struct sensor_itf uart_1_itf = { - .si_type = SENSOR_ITF_UART, - .si_num = 1, -}; -#endif +/** + * If a UART sensor needs to be created, interface is defined in + * the following way + * + * #if MYNEWT_VAL(UART_0) + * static const struct sensor_itf uart_0_itf = { + * .si_type = SENSOR_ITF_UART, + * .si_num = 0, + * }; + * #endif + * + * #if MYNEWT_VAL(UART_1) + * static struct sensor_itf uart_1_itf = { + * .si_type = SENSOR_ITF_UART, + * .si_num = 1, + *}; + *#endif + */ #if MYNEWT_VAL(SPI_0_MASTER) && MYNEWT_VAL(BME280_OFB) static struct sensor_itf spi_0_itf_bme = {
Update README.md More accuracy of hl
@@ -35,7 +35,7 @@ Status of the GLES2 backend * Lighting support double-side and color separation * FogCoord are supported, along with secondary color * An ES2 context should be usable (useful for SDL2) - * OpenGL 2.x games that have been tested include: OpenRA, GZDoom, Danger from the Deep, SuperTuxKart 0.8.1, Hammerwatch, OpenMW, many FNA & MonoGames games (FEZ, Towerfall Ascension, Stardew Valley, Dust, Owlboy, and many other), even some Unity3D games (Teslagrad, Colin McRea Rally remake and other)... + * OpenGL 2.x games that have been tested include: OpenRA, GZDoom, Danger from the Deep, SuperTuxKart 0.8.1, Hammerwatch, OpenMW, half life 2, many FNA & MonoGames games (FEZ, Towerfall Ascension, Stardew Valley, Dust, Owlboy, and many other), even some Unity3D games (Teslagrad, Colin McRea Rally remake and other)... * glxgears works, but FlatShade is not implemented (and will probably never be), so it's slightly different then using GLES1.1 or actual GL hardware * GL_TEXTURE_1D, GL_TEXTURE_3D and GL_TEXTURE_RECTANGLE_ARB are not yet supported in shaders (they are supported in fixed pipeline functions), and texture 3D are just a single 2D layer for now. * Program that link only a GL_FRAGMENT or GL_VERTEX shader are not supported yet.
QUIC CHANNEL: Only pump the demuxer once per tick
#define INIT_CRYPTO_BUF_LEN 8192 #define INIT_APP_BUF_LEN 8192 +static void ch_rx_pre(QUIC_CHANNEL *ch); static int ch_rx(QUIC_CHANNEL *ch); static int ch_tx(QUIC_CHANNEL *ch); static void ch_tick(QUIC_TICK_RESULT *res, void *arg); @@ -1007,8 +1008,11 @@ static void ch_tick(QUIC_TICK_RESULT *res, void *arg) } } + /* Handle any incoming data from network. */ + ch_rx_pre(ch); + do { - /* Handle any incoming data from the network. */ + /* Process queued incoming packets. */ ch_rx(ch); /* @@ -1062,7 +1066,20 @@ static void ch_tick(QUIC_TICK_RESULT *res, void *arg) res->want_net_write = (ossl_qtx_get_queue_len_datagrams(ch->qtx) > 0); } -/* Process incoming packets and handle frames, if any. */ +/* Process incoming datagrams, if any. */ +static void ch_rx_pre(QUIC_CHANNEL *ch) +{ + if (!ch->have_sent_any_pkt) + return; + + /* + * Get DEMUX to BIO_recvmmsg from the network and queue incoming datagrams + * to the appropriate QRX instance. + */ + ossl_quic_demux_pump(ch->demux); /* best effort */ +} + +/* Process queued incoming packets and handle frames, if any. */ static int ch_rx(QUIC_CHANNEL *ch) { int handled_any = 0; @@ -1074,12 +1091,6 @@ static int ch_rx(QUIC_CHANNEL *ch) */ return 1; - /* - * Get DEMUX to BIO_recvmmsg from the network and queue incoming datagrams - * to the appropriate QRX instance. - */ - ossl_quic_demux_pump(ch->demux); /* best effort */ - for (;;) { assert(ch->qrx_pkt == NULL);
gpaddmirrors: Safely stop primaries Shutting down the primaries using SIGKILL keeps the PID files around, whereas SIGTERM more gracefully stops the primaries and removes the PID files. When PID files hang around, it keeps future tests from being able to create a cluster.
@@ -103,7 +103,7 @@ Feature: Tests for gpaddmirrors And gpaddmirrors adds mirrors with temporary data dir And an FTS probe is triggered And the segments are synchronized - When user kills all primary processes with SIGKILL + When user kills all primary processes with SIGTERM And user can start transactions Then verify that there is a "heap" table "public.heap_table" in "gptest" with "100" rows Then verify that there is a "ao" table "public.ao_table" in "gptest" with "100" rows
bricks/stm32/pbdevice: implement value setter Write a number of values to a generic iodev.
@@ -114,7 +114,45 @@ void pbdevice_get_values(pbdevice_t *pbdev, uint8_t mode, int32_t *values) { } void pbdevice_set_values(pbdevice_t *pbdev, uint8_t mode, int32_t *values, uint8_t num_values) { - pb_assert(PBIO_ERROR_NOT_IMPLEMENTED); + + pbio_iodev_t *iodev = &pbdev->iodev; + + uint8_t data[PBIO_IODEV_MAX_DATA_SIZE]; + uint8_t len; + pbio_iodev_data_type_t type; + + set_mode(iodev, mode); + + pb_assert(pbio_iodev_get_data_format(iodev, iodev->mode, &len, &type)); + + if (len != num_values) { + pb_assert(PBIO_ERROR_INVALID_ARG); + } + + for (uint8_t i = 0; i < len; i++) { + switch (type) { + case PBIO_IODEV_DATA_TYPE_INT8: + *(int8_t *)(data + i) = values[i]; + break; + case PBIO_IODEV_DATA_TYPE_INT16: + *(int16_t *)(data + i * 2) = values[i]; + break; + case PBIO_IODEV_DATA_TYPE_INT32: + *(int32_t *)(data + i * 4) = values[i]; + break; +#if MICROPY_PY_BUILTINS_FLOAT + case PBIO_IODEV_DATA_TYPE_FLOAT: + *(float *)(data + i * 4) = values[i]; + break; +#endif + default: + pb_assert(PBIO_ERROR_IO); + } + } + pbio_error_t err; + while ((err = pbio_iodev_set_data_begin(iodev, iodev->mode, data)) == PBIO_ERROR_AGAIN); + pb_assert(err); + wait(pbio_iodev_set_data_end, pbio_iodev_set_data_cancel, iodev); } void pbdevice_get_info(pbdevice_t *pbdev,
in_storage_backlog: always try to put chunk up, if it fails just continue
@@ -70,19 +70,14 @@ static int cb_queue_chunks(struct flb_input_instance *in, mk_list_foreach_safe(head, tmp, &sb->backlog) { sbc = mk_list_entry(head, struct sb_chunk, _head); - if (cio_chunk_is_file(sbc->chunk) == CIO_TRUE && - cio_chunk_is_up(sbc->chunk) == CIO_FALSE) { - + /* + * All chunks on this backlog are 'file' based, always try to set + * them up. It could fail due to max_chunks_up limits. + */ ret = cio_chunk_up(sbc->chunk); if (ret == -1) { - flb_error("[storage backlog] unregistering %s:%s", - sbc->stream->name, sbc->chunk->name); - cio_chunk_close(sbc->chunk, CIO_FALSE); - mk_list_del(&sbc->_head); - flb_free(sbc); continue; } - } /* get the number of bytes being used by the chunk */ size = cio_chunk_get_real_size(sbc->chunk); @@ -151,7 +146,7 @@ static int sb_prepare_environment(struct flb_sb *sb) cio = sb->cio; mk_list_foreach(head, &cio->streams) { stream = mk_list_entry(head, struct cio_stream, _head); - mk_list_foreach(c_head, &stream->files) { + mk_list_foreach(c_head, &stream->chunks) { chunk = mk_list_entry(c_head, struct cio_chunk, _head); ret = sb_append_chunk(chunk, stream, sb); if (ret == -1) {
Breakout supports a score
@@ -52,12 +52,15 @@ typedef struct game_state { bool right_down; uint32_t lives_remaining; + uint32_t score; } game_state_t; +static void _draw_hud(game_state_t* state); static void draw_game_state(game_state_t* state); static void _start_new_game(game_state_t* state); static void _run_physics_tick(game_state_t* state); static void _draw_string(game_state_t* state, char* text, Point center, Size font_size); +static void _draw_centered_string(game_state_t* state, char* text, Point center, Size font_size); static game_state_t state_s = {0}; @@ -417,6 +420,10 @@ static void _run_physics_tick(game_state_t* state) { } cleared_all_bricks = false; if (rect_intersects_rect(state->bricks[i].frame, ball_frame)) { + uint32_t row = i / BRICKS_PER_ROW; + state->score += 200 + (200 * (BRICK_ROWS - row)); + // Draw the HUD now that we've updated the score + _draw_hud(state); state->bricks[i].is_active = false; // Negate Y velocity float x, y = 0; @@ -511,6 +518,16 @@ static void _draw_hud(game_state_t* state) { ); lives_cursor.x += spacing; } + + char msg[128]; + snprintf(msg, sizeof(msg), "Score: %d", state->score); + Size font_size = size_make(8, 12); + Point center = point_make(rect_mid_x(r), rect_mid_y(r)); + Point origin = point_make( + rect_max_x(interior) - ((strlen(msg) + 1) * font_size.width), + rect_min_y(interior) + state->ball_radius + ); + _draw_string(state, msg, origin, font_size); } static void draw_game_state(game_state_t* state) {
out_http: do not debug proxy if not enabled
@@ -114,8 +114,10 @@ static int http_post(struct flb_out_http *ctx, ctx->proxy, 0); + if (c->proxy.host) { flb_plg_debug(ctx->ins, "[http_client] proxy host: %s port: %i", c->proxy.host, c->proxy.port); + } /* Allow duplicated headers ? */ flb_http_allow_duplicated_headers(c, ctx->allow_dup_headers);
Add global guard on portmidi init
@@ -753,6 +753,9 @@ typedef struct { PmDeviceID device_id; PortMidiStream* stream; } Midi_mode_portmidi; +// Not sure whether it's OK to call Pm_Terminate() without having a successful +// call to Pm_Initialize() -- let's just treat it with tweezers. +static bool portmidi_is_initialized = false; #endif typedef union { @@ -769,8 +772,17 @@ void midi_mode_init_osc_bidule(Midi_mode* mm, char const* path) { mm->osc_bidule.path = path; } #ifdef FEAT_PORTMIDI -PmError midi_mode_init_portmidi(Midi_mode* mm, PmDeviceID dev_id) { +PmError portmidi_init_if_necessary(void) { + if (portmidi_is_initialized) + return 0; PmError e = Pm_Initialize(); + if (e) + return e; + portmidi_is_initialized = true; + return 0; +} +PmError midi_mode_init_portmidi(Midi_mode* mm, PmDeviceID dev_id) { + PmError e = portmidi_init_if_necessary(); if (e) return e; e = Pm_OpenOutput(&mm->portmidi.stream, dev_id, NULL, 0, NULL, NULL, 0); @@ -3327,6 +3339,7 @@ quit: heapstr_deinit(&file_name); midi_mode_deinit(&midi_mode); #ifdef FEAT_PORTMIDI + if (portmidi_is_initialized) Pm_Terminate(); #endif return 0;
native_socket - Handle partial TCP writes.
@@ -461,12 +461,20 @@ native_sock_stream_tx(struct native_sock *ns, int notify) while (ns->ns_tx && rc == 0) { m = ns->ns_tx; n = SLIST_NEXT(m, om_next); + + errno = 0; rc = write(ns->ns_fd, m->om_data, m->om_len); if (rc == m->om_len) { + /* Complete write. */ ns->ns_tx = n; os_mbuf_free(m); rc = 0; + } else if (rc != -1) { + /* Partial write. */ + os_mbuf_adj(m, m->om_len - rc); + rc = 0; } else { + /* Error. */ rc = errno; if (rc == EAGAIN) { rc = 0; @@ -483,12 +491,8 @@ native_sock_stream_tx(struct native_sock *ns, int notify) } os_mutex_release(&nss->mtx); if (notify) { - if (ns->ns_tx == NULL) { - mn_socket_writable(&ns->ns_sock, 0); - } else { mn_socket_writable(&ns->ns_sock, rc); } - } return rc; }
near_lossless,FindClosestDiscretized: use unsigned ops quiets undefined sanitizer warnings of the form: left shift of 128 by 24 places cannot be represented in type 'int'
// Quantizes the value up or down to a multiple of 1<<bits (or to 255), // choosing the closer one, resolving ties using bankers' rounding. -static int FindClosestDiscretized(int a, int bits) { - const int mask = (1 << bits) - 1; - const int biased = a + (mask >> 1) + ((a >> bits) & 1); +static uint32_t FindClosestDiscretized(uint32_t a, int bits) { + const uint32_t mask = (1 << bits) - 1; + const uint32_t biased = a + (mask >> 1) + ((a >> bits) & 1); assert(bits > 0); if (biased > 0xff) return 0xff; return biased & ~mask;
removed spurious check
@@ -521,14 +521,6 @@ static void ccl_cosmology_compute_power_class(ccl_cosmology * cosmo, int * statu if(*status==0) cosmo->data.p_lin=ccl_p2d_t_new(na,aa,nk,lk,lpk_ln,1,2,ccl_p2d_cclgrowth,1,NULL,0,ccl_p2d_3,status); - if(*status==0) { - // At the moment KMIN can't be less than CLASS's kmin in the nonlinear case. - if (kmin<(exp(sp.ln_k[0]))) { - *status = CCL_ERROR_CLASS; - ccl_cosmology_set_status_message(cosmo, "ccl_power.c: ccl_cosmology_compute_power_class(): K_MIN is less than CLASS's kmin. Not yet supported for nonlinear P(k).\n"); - } - } - if(*status==0) { double psout_nl;
specs: specify correct behaviour of truncate and ftruncate. Closes * specs/posix_unistd_spec.yaml (ftruncate): Specify correct behaviour. (truncate): Likewise.
specify posix.unistd: - before: | + fcntl = require "posix.fcntl" pwd = require "posix.pwd" unistd = require "posix.unistd" @@ -58,6 +59,38 @@ specify posix.unistd: - "it sets argv[0]": +- describe ftruncate: + - before: | + ftruncate = unistd.ftruncate + + function echo (fname, s) + local fh = io.open (fname, 'w') + fh:write (s .. '\n') + fh:close () + return #s + 1 + end + + function flen (fname) + local fh = io.open (fname, 'r') + local r = fh:read '*a' + fh:close () + return #r + end + + - context with bad arguments: + badargs.diagnose (ftruncate, "(int, int)") + + - it truncates an open file descriptor: + fname = os.tmpname() + len = echo (fname, 'line 1') + echo (fname, 'line 2') + fd = fcntl.open (fname, bor (fcntl.O_CREAT, fcntl.O_WRONLY)) + expect (ftruncate (fd, len)).not_to_be (nil) + unistd.close (fd) + expect (flen (fname)).to_be (len) + os.remove (fname) + + - describe getegid: - before: getegid = unistd.getegid @@ -212,3 +245,34 @@ specify posix.unistd: expect (type (sysconf (unistd._SC_TZNAME_MAX))).to_be "number" - it fetches the POSIX.1 version: expect (type (sysconf (unistd._SC_VERSION))).to_be "number" + + +- describe truncate: + - before: | + truncate = unistd.truncate + + function echo (fname, s) + local fh = io.open (fname, 'w') + fh:write (s .. '\n') + fh:close () + return #s + 1 + end + + function flen (fname) + local fh = io.open (fname, 'r') + local r = fh:read '*a' + fh:close () + return #r + end + + - context with bad arguments: + badargs.diagnose (truncate, "(string, int)") + + - it truncates a named file: + fname = os.tmpname() + len = echo (fname, 'line 1') + echo (fname, 'line 2') + expect (ftruncate (fname, len)).not_to_be (nil) + expect (flen (fname)).to_be (len) + os.remove (fname) +
perf(non-null judgment): add non-null judgment of "Endpoint" in BoatHlfabricDiscoverySubmit()
@@ -828,6 +828,10 @@ BOAT_RESULT BoatHlfabricDiscoverySubmit(BoatHlfabricTx *tx_ptr, const BoatHlfabr len = hlfabricDiscoveryGetURL(cc_query_res->content[i]->endorsers_by_groups[j]->value->peers[l]->membership_info->payload.data, cc_query_res->content[i]->endorsers_by_groups[j]->value->peers[l]->membership_info->payload.len, &offset); discoverResult.cc_res.layouts[m].groups[k].endorsers[l].Endpoint = BoatMalloc(len+1); + if(discoverResult.cc_res.layouts[m].groups[k].endorsers[l].Endpoint == NULL){ + BoatLog(BOAT_LOG_CRITICAL, "Fail to allocate layouts[%d].groups[%d].endorsers[%d].Endpoint buffer.",m,k,l); + boat_throw(BOAT_ERROR_COMMON_OUT_OF_MEMORY, BoatHlfabricDiscoverySubmit_exception); + } memset(discoverResult.cc_res.layouts[m].groups[k].endorsers[l].Endpoint,0,len+1); memcpy(discoverResult.cc_res.layouts[m].groups[k].endorsers[l].Endpoint, cc_query_res->content[i]->endorsers_by_groups[j]->value->peers[l]->membership_info->payload.data + offset, len); msp__serialized_identity__free_unpacked(msp_serializedIdentity,NULL);
bash: add -j <jobs> option to vpp-make-test Also cleanup local var declarations remove extraneous export statement Type: test
@@ -26,11 +26,14 @@ vpp-make-test() local all local debug local grep_for + local show_grep local run_make_test local old_pwd + local test_desc local is_feature="false" local retry_count=100 local tester=${GERRIT_USER:-$USER} + local jobs="auto" if [ -z "$WS_ROOT" ] ; then echo "ERROR: WS_ROOT is not set!" @@ -40,7 +43,7 @@ vpp-make-test() return fi - options=$(getopt -o "adfg:r:" -- "$@") + options=$(getopt -o "adfg:j:r:" -- "$@") if [ $? -eq 1 ] ; then usage=true else @@ -63,6 +66,14 @@ vpp-make-test() show_grep=$1 grep_for="${1//-/\\-}" ;; + -j) + shift + jobs=$1 + if [ $((jobs)) != $jobs ] ; then + echo "ERROR: Invalid option value for -j option ($jobs)!" + usage=true; + fi + ;; -r) shift retry_count=$1 @@ -83,14 +94,15 @@ vpp-make-test() if [ -z "$1" ] ; then echo "ERROR: no testcase specified!" fi - echo "Usage: vpp-make-test [-a][-d][-f][-g <text>][-r <retry count>] <testcase> [<retry_count>]" + echo "Usage: vpp-make-test [-a][-d][-f][-g <text>][-j <jobs>][-r <retry count>] <testcase> [<retry_count>]" echo " -a Run extended tests" echo " -d Run vpp debug image (i.e. with ASSERTS)" echo " -f Testcase is a feature set (e.g. tcp)" echo " -g <text> Text to grep for in log, FAIL on match." echo " Enclose <text> in single quotes when it contains any dashes:" echo " e.g. vpp-make-test -g 'goof-bad-' test_xyz" - echo " -r <retry count> Retry Count (default = 100 for individual | 1 for feature)" + echo " -j <# jobs> Set TEST_JOBS (default = auto) for feature set" + echo " -r <retry count> Retry Count (default = 100 for individual test | 1 for feature set)" return fi @@ -98,7 +110,7 @@ vpp-make-test() retry_count=1 fi if [ "$is_feature" == "true" ] ; then - run_make_test="make test$all$debug TEST=$1 SANITY=no TEST_JOBS=auto" + run_make_test="make test$all$debug TEST=$1 SANITY=no TEST_JOBS=$jobs" else run_make_test="make test$all$debug TEST=*.*.$1 SANITY=no" fi @@ -106,9 +118,9 @@ vpp-make-test() old_pwd=$(pwd) cd $WS_ROOT line="------------------------------------------------------------------------------" - local test_desc="'$run_make_test'" + test_desc="'$run_make_test'" if [ -n "$grep_for" ] ; then - test_desc="$test_desc [grep $show_grep]" + test_desc="$test_desc [grep '$show_grep']" fi for ((i=1; i<=retry_count; i++)) ; do echo -e "\n$line" @@ -137,4 +149,3 @@ vpp-make-test() echo -e "Hey $tester, Life is good!!! :D\n" cd $old_pwd } -export -f vpp-make-test
Correct system guessing for darwin64-arm64 target Previously the system guessing logic would incorrectly guess i686-apple-darwin as the fallback for any unspecified architecture that is a Darwin target
@@ -140,8 +140,7 @@ my $guess_patterns = [ [ 'Paragon.*?:.*', 'i860-intel-osf1' ], [ 'Rhapsody:.*', 'ppc-apple-rhapsody' ], [ 'Darwin:.*?:.*?:Power.*', 'ppc-apple-darwin' ], - [ 'Darwin:.*?:.*?:x86_64', 'x86_64-apple-darwin' ], - [ 'Darwin:.*', 'i686-apple-darwin' ], + [ 'Darwin:.*', '${MACHINE}-apple-darwin' ], [ 'SunOS:5\..*', '${MACHINE}-whatever-solaris2' ], [ 'SunOS:.*', '${MACHINE}-sun-sunos4' ], [ 'UNIX_System_V:4\..*?:.*', '${MACHINE}-whatever-sysv4' ], @@ -483,6 +482,7 @@ EOF return { target => "darwin64-x86_64" }; } ], + [ 'arm64-apple-darwin.*', { target => "darwin64-arm64" } ], [ 'armv6\+7-.*-iphoneos', { target => "iphoneos-cross", cflags => [ qw(-arch armv6 -arch armv7) ],
Fix TI PKCS PAL Workaround for C_DestroyObject is to overwrite previously existing object w/ an array of zeros. Since TI was only storing arrays containing valid certs/keys, value was never destroyed.
@@ -587,6 +587,8 @@ CK_OBJECT_HANDLE PKCS11_PAL_SaveObject( CK_ATTRIBUTE_PTR pxLabel, char * pcFileName = NULL; char * pcPemBuffer = NULL; size_t xPemLength = 0; + int i; + CK_BBOOL isDestroy = CK_FALSE; CK_OBJECT_HANDLE xHandle = eInvalidHandle; /* Converts a label to its respective filename and handle. */ @@ -611,6 +613,37 @@ CK_OBJECT_HANDLE PKCS11_PAL_SaveObject( CK_ATTRIBUTE_PTR pxLabel, xHandle = eInvalidHandle; } } + else + { + /* DestroyObject workaround is to overwrite the memory with zeros. + * Check if this looks like a deliberate destroy call, and if so, + * overwrite the file with all 0s. */ + isDestroy = CK_TRUE; + + for( i = 0; i < ulDataSize; i++ ) + { + if( pucData[ i ] != 0 ) + { + isDestroy = CK_FALSE; + break; + } + } + + if( isDestroy == CK_TRUE ) + { + if( pdFALSE == prvSaveFile( pcFileName, + ( char * ) pucData, + ulDataSize ) ) + { + xHandle = eInvalidHandle; + } + } + else /* This is not a valid key or cert, and is also not a DestroyObject call. */ + { + xHandle = eInvalidHandle; + } + + } if( NULL != pcPemBuffer ) {
fix clang-tdy warning - use auto when initializing with a template cast to avoid duplicating the type name
@@ -78,7 +78,7 @@ inline bool YaIsDebuggerPresent() { #define Y_ASSERT(a) \ do { \ if (false) { \ - bool __xxx = static_cast<bool>(a); \ + auto __xxx = static_cast<bool>(a); \ Y_UNUSED(__xxx); \ } \ } while (false)
Update minimal_client.c
@@ -73,14 +73,6 @@ static char *properties = QUOTE( int main(int argc, char *argv[]) { - clock_t t; - t = clock(); - - - - - - struct neat_ctx *ctx; struct neat_flow *flow; struct neat_flow_operations ops; @@ -119,10 +111,6 @@ main(int argc, char *argv[]) neat_start_event_loop(ctx, NEAT_RUN_DEFAULT); neat_free_ctx(ctx); - t = clock() - t; - double time_taken = ((double)t)/CLOCKS_PER_SEC; // calculate the elapsed time - printf("The program took %f seconds to execute", time_taken); - return EXIT_SUCCESS; }
DZMK_CONFIG Documentation feat(docs): `-DZMK_CONFIG` Documentation
@@ -84,6 +84,19 @@ west build -d build/right -b nice_nano -- -DSHIELD=kyria_right ``` This produces `left` and `right` subfolders under the `build` directory and two separate .uf2 files. For future work on a specific half, use the `-d` parameter again to ensure you are building into the correct location. +### Building from `zmk-config` Folder + +Instead of building .uf2 files using the default keymap and config files, you can build directly from your [`zmk-config` folder](user-setup#github-repo) by adding +`-DZMK_CONFIG="C:/the/absolute/path/config"` to your `west build` command. **Notice that this path should point to the folder labelled `config` within your `zmk-config` folder.** + + +For instance, building kyria firmware from a user `myUser`'s `zmk-config` folder on Windows 10 may look something like this: + +``` +west build -b nice_nano -- -DSHIELD=kyria_left -DZMK_CONFIG="C:/Users/myUser/Documents/Github/zmk-config/config" +``` + + ## Flashing Once built, the previously supplied parameters will be remembered so you can run the following to flash your
hake: adding flags to just run hake, without initial dependencies
@@ -87,6 +87,9 @@ while test $# -ne 0; do "-n"|"--no-hake") RUN_HAKE="No" ;; + "-d"|"--no-deps") + NO_DEPS="No" + ;; "-t"|"--toolchain") TC_ARCH="$2" shift @@ -245,6 +248,11 @@ fi echo "Running hake..." ./hake/hake --output-filename Makefile --source-dir "$SRCDIR/" --ghc-libdir "$(ghc --print-libdir)" || exit +if test "$NO_DEPS" = "No"; then + echo "Not running dependencies as per your request." + exit +fi + echo "Now running initial make to build dependencies." echo "Running $JOBS jobs at once (-j N to change this)." make -j "$JOBS" help
[examples] fix tetra.py
@@ -9,13 +9,12 @@ from siconos.mechanics.collision.tools import Contactor from siconos.io.mechanics_run import MechanicsHdf5Runner import siconos.numerics as Numerics from siconos.mechanics.collision.convexhull import ConvexHull - -options = siconos.mechanics.collision.bullet.SiconosBulletOptions() -options.worldScale = 1.0 +from siconos.mechanics.collision.bullet import SiconosBulletOptions # Control the number of perturbations applied to generate multipoint # surface-surface contact manifolds. Default is 5 and 5, this is # just demonstrating how to change them. +options = SiconosBulletOptions() options.perturbationIterations = 4 options.minimumPointsPerturbationThreshold = 4
More xcode 10.1 trials
@@ -50,8 +50,13 @@ matrix: - name: macOS (xcode 10.1/clang-10) os: osx osx_image: xcode10.1 + addons: &addons_macos + homebrew: + packages: + - libfaketime + - openssl env: - - CMAKE_OPTS=" -DOPENSSL_ROOT_DIR=/usr/bin/openssl/" + - CMAKE_OPTS=" -DOPENSSL_ROOT_DIR=/usr/local/opt/openssl/" before_install: - cmake --version before_script:
Move test options
@@ -32,7 +32,6 @@ IF (${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION} EQUAL 3.3 AND ${CMAKE_GENERATO message( FATAL_ERROR "Building Celix using CMake 3.3 and makefiles is not supported due to a bug in the Makefile Generator (see Bug 15696). Please change the used CMake version - both, CMake 3.2 and CMake 3.4 are working fine. Or use a different generator (e.g. Ninja)." ) ENDIF() - # Options option(ENABLE_TESTING "Enables unit/bundle testing" FALSE) if (ENABLE_TESTING) @@ -40,7 +39,6 @@ if (ENABLE_TESTING) if (NOT GTest_FOUND) include(${CMAKE_CURRENT_SOURCE_DIR}/cmake/AddGTest.cmake) endif() - enable_testing() endif () set(ENABLE_MORE_WARNINGS OFF) @@ -124,6 +122,10 @@ set(CELIX_MICRO "1") # Default bundle version set(DEFAULT_VERSION 1.0.0) +if (ENABLE_TESTING) + enable_testing() +endif() + option(CELIX_INSTALL_DEPRECATED_API "whether to install (and use) deprecated apis (i.e. header without a celix_ prefix." ON) option(CELIX_ADD_DEPRECATED_ATTRIBUTES "If enabled add deprecated attributes to deprecated services/functions." ON)
Enable MBEDTLS_FS_IO for for CURL HTTPS support - Dependent method calls mbedtls_x509_crt_parse_file, mbedtls_x509_crt_parse_path mbedtls_pk_parse_keyfile, mbedtls_x509_crl_parse_file
#undef MBEDTLS_ERROR_STRERROR_DUMMY #undef MBEDTLS_GENPRIME +/* MBEDTLS_FS_IO is required for CURL. + Dependent method calls below. + `mbedtls_x509_crt_parse_file' `mbedtls_x509_crt_parse_path' + `mbedtls_pk_parse_keyfile' `mbedtls_x509_crl_parse_file' +*/ +#ifndef CONFIG_ENABLE_CURL #undef MBEDTLS_FS_IO +#endif + #undef MBEDTLS_MEMORY_DEBUG #undef MBEDTLS_HAVEGE_C
tcp: fix tcp_do_fastretransmits failure. Type: fix vpp would fail 'tcp_in_fastrecovery (tc)' if tcp_connection_get returns 0.
@@ -1336,6 +1336,8 @@ tcp_do_fastretransmits (tcp_worker_ctx_t * wrk) for (i = 0; i < vec_len (ongoing_fast_rxt); i++) { tc = tcp_connection_get (ongoing_fast_rxt[i], thread_index); + if (!tc) + continue; if (!tcp_in_fastrecovery (tc)) { tc->flags &= ~TCP_CONN_FRXT_PENDING;
Add links to other convert-to-nia implementations
@@ -19,6 +19,12 @@ convert-to-nia converts an image from stdin (e.g. in the BMP, GIF, JPEG or PNG format) to stdout (in the NIA/NIE format). See the "const char* g_usage" string below for details. + +An equivalent program (using the Chromium image codecs) is at: +https://chromium-review.googlesource.com/c/chromium/src/+/2210331 + +An equivalent program (using the Skia image codecs) is at: +https://skia-review.googlesource.com/c/skia/+/290618 */ #include <errno.h>
Implement Get-Output-Device-Attributes operation (Issue
@@ -1962,6 +1962,10 @@ static void ipp_get_output_device_attributes( server_client_t *client) /* I - Client */ { + cups_array_t *ra; /* Requested attributes array */ + server_device_t *device; /* Device */ + + if (Authentication && !client->username[0]) { /* @@ -1972,8 +1976,22 @@ ipp_get_output_device_attributes( return; } - // TODO: Implement Get-Output-Device-Attributes operation (Issue #84) - serverRespondIPP(client, IPP_STATUS_ERROR_NOT_POSSIBLE, "Need to implement this."); + if ((device = serverFindDevice(client)) == NULL) + { + serverRespondIPP(client, IPP_STATUS_ERROR_NOT_FOUND, "Output device not found."); + return; + } + + ra = ippCreateRequestedArray(client->request); + + _cupsRWLockRead(&device->rwlock); + + serverRespondIPP(client, IPP_STATUS_OK, NULL); + serverCopyAttributes(client->response, device->attrs, ra, NULL, IPP_TAG_ZERO, IPP_TAG_ZERO); + + _cupsRWUnlock(&device->rwlock); + + cupsArrayDelete(ra); }
parser json UPDATE clearer invalid format error Refs
@@ -452,7 +452,8 @@ lydjson_value_type_hint(struct lyd_json_ctx *lydctx, enum LYJSON_PARSER_STATUS * /* only [null] */ LY_CHECK_RET(lyjson_ctx_next(lydctx->jsonctx, status_p)); if (*status_p != LYJSON_NULL) { - LOGVAL(lydctx->jsonctx->ctx, LYVE_SYNTAX_JSON, "Expected JSON name/[null], but input data contains name/%s.", + LOGVAL(lydctx->jsonctx->ctx, LYVE_SYNTAX_JSON, + "Expected JSON name/value or special name/[null], but input data contains name/[%s].", lyjson_token2str(*status_p)); return LY_EINVAL; }
move every 'dseg'
@@ -300,13 +300,13 @@ void ProcessMessageMasternode(CNode* pfrom, std::string& strCommand, CDataStream //Misbehaving(pfrom->GetId(), 34); //printf("dseg - peer already asked me for the list\n"); //return; - Misbehaving(pfrom->GetId(), 34); + //Misbehaving(pfrom->GetId(), 34); printf("dseg - peer already asked me for the list\n"); return; } } - int64_t askAgain = GetTime()+(60*60*1); // only allow nodes to do a dseg all once per hour + int64_t askAgain = GetTime()+(60*1); // only allow nodes to do a dseg all once per minute askedForMasternodeList[pfrom->addr] = askAgain; //} }
Reenable Tests with OpenSSL
@@ -444,34 +444,34 @@ stages: platform: windows tls: openssl logProfile: Full.Light - extraArgs: -Filter -*Unreachable/0:CredValidation*:*ValidateConnection* + extraArgs: -Filter -*Unreachable/0:CredValidation* - template: ./templates/run-bvt.yml parameters: image: ubuntu-latest platform: linux tls: openssl - extraArgs: -Filter -*CredValidation*:*ValidateConnection* + extraArgs: -Filter -*CredValidation* - template: ./templates/run-bvt.yml parameters: image: ubuntu-latest platform: linux tls: openssl extraArtifactDir: '_Sanitize' - extraArgs: -Filter -*CredValidation*:*ValidateConnection* -ExtraArtifactDir Sanitize + extraArgs: -Filter -*CredValidation* -ExtraArtifactDir Sanitize - template: ./templates/run-bvt.yml parameters: image: macOS-10.15 platform: macos tls: openssl logProfile: None - extraArgs: -Filter -*CredValidation*:*ValidateConnection* + extraArgs: -Filter -*CredValidation* - template: ./templates/run-bvt.yml parameters: image: ubuntu-latest platform: linux tls: openssl extraArtifactDir: '_SystemCrypto' - extraArgs: -Filter -*CredValidation*:*ValidateConnection* -ExtraArtifactDir SystemCrypto + extraArgs: -Filter -*CredValidation* -ExtraArtifactDir SystemCrypto # # SpinQuic Tests
ads1115 minor cleanup
@@ -251,10 +251,7 @@ static int ads1115_lua_register(lua_State *L, uint8_t chip_id) { if (config_read != ADS1115_DEFAULT_CONFIG_REG) { return luaL_error(L, "unexpected config value (%p) please reset device before calling this function", config_read); } - ads_ctrl_ud_t *ads_ctrl = (ads_ctrl_ud_t *)lua_newuserdata(L, sizeof(ads_ctrl_ud_t)); - if (NULL == ads_ctrl) { - return luaL_error(L, "ads1115 malloc: out of memory"); - } + ads_ctrl_ud_t *ads_ctrl = lua_newuserdata(L, sizeof(ads_ctrl_ud_t)); luaL_getmetatable(L, metatable_name); lua_setmetatable(L, -2); ads_ctrl->chip_id = chip_id;
Add more compression blacklisted commands
@@ -376,7 +376,9 @@ mongoc_cluster_run_command_internal (mongoc_cluster_t *cluster, if (compressor_id && IS_NOT_COMMAND ("ismaster") && IS_NOT_COMMAND ("saslstart") && IS_NOT_COMMAND ("saslcontinue") && IS_NOT_COMMAND ("getnonce") && IS_NOT_COMMAND ("authenticate") && - IS_NOT_COMMAND ("createuser") && IS_NOT_COMMAND ("updateuser")) { + IS_NOT_COMMAND ("createuser") && IS_NOT_COMMAND ("updateuser") && + IS_NOT_COMMAND ("copydbsaslstart") && + IS_NOT_COMMAND ("copydbgetnonce") && IS_NOT_COMMAND ("copydb")) { output = _mongoc_rpc_compress (cluster, compressor_id, &rpc, error); if (output == NULL) { monitored = false;
nimble/host: Add missing legacy scan response event type. This adds the missing event type in the extended advertising legacy type decoding. Without this, scan responses would be missed if the PDU was ADV_SCAN_IND.
@@ -511,6 +511,7 @@ ble_hs_hci_decode_legacy_type(uint16_t evt_type) case BLE_HCI_LEGACY_ADV_EVTYPE_ADV_NONCON_IND: return BLE_HCI_ADV_RPT_EVTYPE_NONCONN_IND; case BLE_HCI_LEGACY_ADV_EVTYPE_SCAN_RSP_ADV_IND: + case BLE_HCI_LEGACY_ADV_EVTYPE_SCAN_RSP_ADV_SCAN_IND: return BLE_HCI_ADV_RPT_EVTYPE_SCAN_RSP; default: return -1;
Minor typo in ev/rselect docstring `ev/choice` is actually called `ev/select`
@@ -2167,7 +2167,7 @@ static const JanetReg ev_cfuns[] = { { "ev/rselect", cfun_channel_rchoice, JDOC("(ev/rselect & clauses)\n\n" - "Similar to ev/choice, but will try clauses in a random order for fairness.") + "Similar to ev/select, but will try clauses in a random order for fairness.") }, { "ev/close", janet_cfun_stream_close,
gpMgmt unit tests: remove obsolete field in mockutils assertRaises() When using a late enough version of mock, the self.assertRaises() signature changed, so modify our code to handle this.
@@ -30,7 +30,7 @@ class MainUtilsTestCase(GpTestCase): def test_exceptionPIDLockHeld_if_same_pid(self): with self.lock: - with self.assertRaises(PIDLockHeld, message="PIDLock already held at %s" % (self.lockfile)): + with self.assertRaisesRegex(PIDLockHeld, "PIDLock already held at %s" % (self.lockfile)): self.lock.acquire() def test_child_can_read_lock_owner(self): @@ -47,7 +47,7 @@ class MainUtilsTestCase(GpTestCase): pid = os.fork() # if child, os.fork() == 0 if pid == 0: - with self.assertRaises(PIDLockHeld, message="PIDLock already held at %s" % (self.lockfile)): + with self.assertRaisesRegex(PIDLockHeld, "PIDLock already held at %s" % (self.lockfile)): self.lock.acquire() os._exit(0) else:
enable newton in pair-logit
@@ -44,8 +44,8 @@ namespace NKernel { if (der2 && i < pairCount) { const float scale = p * (1.0f - p); - atomicAdd(der2 + firstDst, w); - atomicAdd(der2 + secondDst, w); + atomicAdd(der2 + firstDst, w * scale); + atomicAdd(der2 + secondDst, w * scale); } if (functionValue) {
pbio/servo: increase medium motor gain Existing values were somewhat arbitrary. This value is based on non-scientific tests with and without loads.
@@ -26,7 +26,7 @@ static pbio_control_settings_t settings_servo_ev3_medium = { .count_tolerance = 6, .stall_rate_limit = 4, .stall_time = 200*US_PER_MS, - .pid_kp = 300, + .pid_kp = 500, .pid_ki = 800, .pid_kd = 3, .integral_range = 45,
Fix file hash and show download filename
function(fetch_sdl2_library directory url filename hash) if(NOT EXISTS ${CMAKE_CURRENT_LIST_DIR}/${filename}) - message(STATUS "Downloading ${url}") + message(STATUS "Downloading ${filename}") file(DOWNLOAD ${url}${filename} ${CMAKE_CURRENT_LIST_DIR}/${filename} SHOW_PROGRESS TIMEOUT 120 @@ -12,13 +12,13 @@ function(fetch_sdl2_library directory url filename hash) # tar -xf should work on Windows 10 build 17063 or later (Dec 2017) execute_process(COMMAND tar -xf ${filename} WORKING_DIRECTORY ${CMAKE_CURRENT_LIST_DIR}) + endif() # in future we might be able to use: # file(ARCHIVE_EXTRACT INPUT ${filename}) file(COPY ${CMAKE_CURRENT_LIST_DIR}/${directory}/include DESTINATION ${CMAKE_CURRENT_LIST_DIR}/) file(COPY ${CMAKE_CURRENT_LIST_DIR}/${directory}/lib DESTINATION ${CMAKE_CURRENT_LIST_DIR}/) - endif() endfunction(fetch_sdl2_library) @@ -28,7 +28,7 @@ if(NOT EXISTS ${CMAKE_CURRENT_LIST_DIR}/include) SDL2-2.0.12 https://www.libsdl.org/release/ SDL2-devel-2.0.12-VC.zip - bd40f726fbcb1430709eaa671ec6f6b5b36e2e4a + 6839b6ec345ef754a6585ab24f04e125e88c3392 ) fetch_sdl2_library(
fixes _pier_work_poke reference counting
@@ -276,7 +276,7 @@ _pier_work_release(u3_writ* wit_u) { u3_pier* pir_u = wit_u->pir_u; u3_lord* god_u = pir_u->god_u; - u3_noun vir; + u3_noun vir = wit_u->act; #ifdef VERBOSE_EVENTS fprintf(stderr, "pier: (%" PRIu64 "): compute: release\r\n", wit_u->evt_d); @@ -291,13 +291,12 @@ _pier_work_release(u3_writ* wit_u) /* apply actions */ - vir = wit_u->act; while ( u3_nul != vir ) { - u3_noun ovo = u3k(u3h(vir)); - u3_noun nex = u3k(u3t(vir)); - u3z(vir); vir = nex; + u3_noun ovo, nex; + u3x_cell(vir, &ovo, &nex); - u3_reck_kick(pir_u, ovo); + u3_reck_kick(pir_u, u3k(ovo)); + vir = nex; } } @@ -1325,8 +1324,6 @@ _pier_work_poke(void* vod_p, } _pier_work_play(pir_u, lav_d, mug_l); - - u3z(jar); u3z(mat); break; } @@ -1360,7 +1357,7 @@ _pier_work_poke(void* vod_p, } fprintf(stderr, "pier: replace: %" PRIu64 "\r\n", evt_d); - _pier_work_replace(wit_u, u3k(r_jar), mat); + _pier_work_replace(wit_u, u3k(r_jar), u3k(mat)); } break; } @@ -1389,13 +1386,13 @@ _pier_work_poke(void* vod_p, } } + u3z(jar); u3z(mat); _pier_apply(pir_u); return; error: { + u3z(jar); u3z(mat); _pier_work_bail(0, "bad jar"); - u3z(jar); - u3z(mat); } }
Update to non RC
@@ -60,17 +60,17 @@ def isolateAllTests(tests: Seq[TestDefinition]) = tests map { test => new Group(test.name, Seq(test), SubProcess(options)) } toSeq -val chiselVersion = "3.5.0-RC1" +val chiselVersion = "3.5.0" lazy val chiselSettings = Seq( libraryDependencies ++= Seq("edu.berkeley.cs" %% "chisel3" % chiselVersion), addCompilerPlugin("edu.berkeley.cs" % "chisel3-plugin" % chiselVersion cross CrossVersion.full)) -val firrtlVersion = "1.5.0-RC1" +val firrtlVersion = "1.5.0" lazy val firrtlSettings = Seq(libraryDependencies ++= Seq("edu.berkeley.cs" %% "firrtl" % firrtlVersion)) -val chiselTestVersion = "2.5.0-RC1" +val chiselTestVersion = "2.5.0" lazy val chiselTestSettings = Seq(libraryDependencies ++= Seq("edu.berkeley.cs" %% "chisel-iotesters" % chiselTestVersion))
profile: add html color picker Fixes
@@ -22,11 +22,12 @@ export function ColorInput(props: ColorInputProps) { const { id, label, caption, disabled, ...rest } = props; const [{ value, onBlur }, meta, { setValue }] = useField(id); - const hex = value.substr(2).replace(".", ""); + const hex = value.replace('#', '').substr(2).replace(".", ""); const padded = hex.padStart(6, "0"); const onChange = (e: any) => { - const { value: newValue } = e.target as HTMLInputElement; + let { value: newValue } = e.target as HTMLInputElement; + newValue = newValue.replace('#', ''); const valid = newValue.match(/^(\d|[a-f]|[A-F]){0,6}$/); if (!valid) { @@ -52,6 +53,7 @@ export function ColorInput(props: ColorInputProps) { onChange={onChange} value={hex} disabled={disabled || false} + borderRight={0} /> <Box borderBottomRightRadius={1} @@ -62,7 +64,19 @@ export function ColorInput(props: ColorInputProps) { width="32px" alignSelf="stretch" bg={`#${padded}`} + > + <Input + width="100%" + height="100%" + alignSelf="stretch" + onInput={onChange} + value={`#${padded}`} + disabled={disabled || false} + type="color" + opacity={0} + overflow="hidden" /> + </Box> </Row> <ErrorLabel mt="2" hasError={!!(meta.touched && meta.error)}> {meta.error}
Add support for building only selected variable types
@@ -300,12 +300,15 @@ static void exec_threads(blas_queue_t *queue, int buf_index){ } else #endif if ((queue -> mode & BLAS_PREC) == BLAS_DOUBLE){ +#if defined ( BUILD_DOUBLE) || defined (BUILD_COMPLEX16) sb = (void *)(((BLASLONG)sa + ((DGEMM_P * DGEMM_Q * sizeof(double) + GEMM_ALIGN) & ~GEMM_ALIGN)) + GEMM_OFFSET_B); - +#endif } else if ((queue -> mode & BLAS_PREC) == BLAS_SINGLE){ +#if defined (BUILD_SINGLE) || defined (BUILD_COMPLEX) sb = (void *)(((BLASLONG)sa + ((SGEMM_P * SGEMM_Q * sizeof(float) + GEMM_ALIGN) & ~GEMM_ALIGN)) + GEMM_OFFSET_B); +#endif } else { /* Other types in future */ } @@ -317,15 +320,24 @@ static void exec_threads(blas_queue_t *queue, int buf_index){ } else #endif if ((queue -> mode & BLAS_PREC) == BLAS_DOUBLE){ +#ifdef BUILD_COMPLEX16 sb = (void *)(((BLASLONG)sa + ((ZGEMM_P * ZGEMM_Q * 2 * sizeof(double) + GEMM_ALIGN) & ~GEMM_ALIGN)) + GEMM_OFFSET_B); +#else +fprintf(stderr,"UNHANDLED COMPLEX16\n"); +#endif } else if ((queue -> mode & BLAS_PREC) == BLAS_SINGLE) { +#ifdef BUILD_COMPLEX sb = (void *)(((BLASLONG)sa + ((CGEMM_P * CGEMM_Q * 2 * sizeof(float) + GEMM_ALIGN) & ~GEMM_ALIGN)) + GEMM_OFFSET_B); +#else +fprintf(stderr,"UNHANDLED COMPLEX\n"); +#endif } else { /* Other types in future */ } } +if (!sb) fprintf(stderr,"SB not declared!!!\n"); queue->sb=sb; } }
BugID:17631083:[mqtt]fix possibility of request id conflict
@@ -2916,7 +2916,7 @@ void aos_get_chip_code(unsigned char chip_code[CHIP_CODE_SIZE]) } #endif -const char *DEVICE_INFO_UPDATE_FMT = "{\"id\":\"2\",\"version\":\"1.0\",\"params\":[" +const char *DEVICE_INFO_UPDATE_FMT = "{\"id\":\"10001\",\"version\":\"1.0\",\"params\":[" /* check the requestId */ "{\"attrKey\":\"SYS_ALIOS_ACTIVATION\",\"attrValue\":\"%s\",\"domain\":\"SYSTEM\"}," "{\"attrKey\":\"SYS_LP_SDK_VERSION\",\"attrValue\":\"%s\",\"domain\":\"SYSTEM\"}," "{\"attrKey\":\"SYS_SDK_LANGUAGE\",\"attrValue\":\"C\",\"domain\":\"SYSTEM\"}," @@ -3067,7 +3067,7 @@ static int iotx_mc_report_firmware_version(iotx_mc_client_t *pclient) ret = HAL_Snprintf(msg, FIRMWARE_VERSION_MSG_LEN, "{\"id\":\"%d\",\"params\":{\"version\":\"%s\"}}", - 3, + 10002, /* check the requestId */ version ); if (ret <= 0) {
Fix "changing an uncontrolled input to be controlled" warning on VariableSelect
@@ -194,14 +194,14 @@ export const VariableSelect: FC<VariableSelectProps> = ({ if (currentVariable) { setCurrentValue({ value: currentVariable.id, - label: `${currentVariable.name}`, + label: `$${currentVariable.name}`, }); } }, [currentVariable]); const onRenameStart = () => { if (currentValue) { - setEditValue(currentValue.label); + setEditValue(currentValue.label.replace(/^\$/, "")); setRenameId(currentValue.value); setRenameVisible(true); } @@ -273,10 +273,7 @@ export const VariableSelect: FC<VariableSelectProps> = ({ /> ) : ( <Select - value={{ - ...currentValue, - label: currentValue && `$${currentValue.label}`, - }} + value={currentValue} options={options} onChange={(newValue: Option) => { onChange(newValue.value); @@ -302,7 +299,7 @@ export const VariableSelect: FC<VariableSelectProps> = ({ ))} {units && ( <UnitsSelectButtonInputOverlay - parentValue={(currentValue && `$${currentValue.label}`) ?? ""} + parentValue={(currentValue && currentValue.label) ?? ""} value={units} allowedValues={unitsAllowed} onChange={onChangeUnits}
add the HashCollision case in sixtop_send.
@@ -369,10 +369,13 @@ owerror_t sixtop_send(OpenQueueEntry_t *msg) { icmpv6rpl_getPreferredParentEui64(&addressToWrite) == FALSE || ( icmpv6rpl_getPreferredParentEui64(&addressToWrite) && + ( + msf_getHashCollisionFlag() == FALSE && schedule_hasAutonomousTxRxCellUnicast(&addressToWrite)== FALSE ) ) ) + ) ){ return E_FAIL; } @@ -673,7 +676,7 @@ void sixtop_timeout_timer_cb(opentimers_id_t id) { void timer_sixtop_sendEb_fired(void) { - if(openrandom_get16b()<(0xffff/EB_PORTION)){ + if(openrandom_get16b()<(0xffff)){ sixtop_sendEB(); } } @@ -717,6 +720,7 @@ port_INLINE void sixtop_sendEB(void) { open_addr_t addressToWrite; memset(&addressToWrite,0,sizeof(open_addr_t)); + if ( (ieee154e_isSynch()==FALSE) || (IEEE802154_security_isConfigured()==FALSE) ||
unix: test cases
@@ -15,7 +15,9 @@ _test_safe() { c3_i ret_i = 1; - if ( !u3_unix_cane("a") || + if ( !u3_unix_cane("/") || + !u3_unix_cane("~.") || + !u3_unix_cane("a") || !u3_unix_cane("a/b") || !u3_unix_cane("a/b/c/defg/h/ijklmnop") ) {
mesh: Fix heartbeat subscription state handling PTS version 7.3.0 incorporates some errata which change the expected behavior of the heartbeat subscription state. Update the code so that the following tests pass successfully: MESH/NODE/CFG/HBS/BV-01 MESH/NODE/CFG/HBS/BV-02 MESH/NODE/CFG/HBS/BV-03 MESH/NODE/CFG/HBS/BV-04
@@ -3146,15 +3146,11 @@ static void hb_sub_send_status(struct bt_mesh_model *model, net_buf_simple_add_le16(msg, cfg->hb_sub.src); net_buf_simple_add_le16(msg, cfg->hb_sub.dst); - if (cfg->hb_sub.src == BT_MESH_ADDR_UNASSIGNED || - cfg->hb_sub.dst == BT_MESH_ADDR_UNASSIGNED) { - memset(net_buf_simple_add(msg, 4), 0, 4); - } else { net_buf_simple_add_u8(msg, hb_log(period)); net_buf_simple_add_u8(msg, hb_log(cfg->hb_sub.count)); net_buf_simple_add_u8(msg, cfg->hb_sub.min_hops); net_buf_simple_add_u8(msg, cfg->hb_sub.max_hops); - } + if (bt_mesh_model_send(model, ctx, msg, NULL, NULL)) { BT_ERR("Unable to send Heartbeat Subscription Status"); @@ -3211,12 +3207,17 @@ static void heartbeat_sub_set(struct bt_mesh_model *model, if (sub_src == BT_MESH_ADDR_UNASSIGNED || sub_dst == BT_MESH_ADDR_UNASSIGNED || sub_period == 0x00) { - /* Setting the same addresses with zero period should retain - * the addresses according to MESH/NODE/CFG/HBS/BV-02-C. + /* Only an explicit address change to unassigned should + * trigger clearing of the values according to + * MESH/NODE/CFG/HBS/BV-02-C. */ - if (cfg->hb_sub.src != sub_src || cfg->hb_sub.dst != sub_dst) { + if (sub_src == BT_MESH_ADDR_UNASSIGNED || + sub_dst == BT_MESH_ADDR_UNASSIGNED) { cfg->hb_sub.src = BT_MESH_ADDR_UNASSIGNED; cfg->hb_sub.dst = BT_MESH_ADDR_UNASSIGNED; + cfg->hb_sub.min_hops = BT_MESH_TTL_MAX; + cfg->hb_sub.max_hops = 0; + cfg->hb_sub.count = 0; } period_ms = 0; @@ -3241,6 +3242,13 @@ static void heartbeat_sub_set(struct bt_mesh_model *model, } hb_sub_send_status(model, ctx, STATUS_SUCCESS); + + /* MESH/NODE/CFG/HBS/BV-01-C expects the MinHops to be 0x7f after + * disabling subscription, but 0x00 for subsequent Get requests. + */ + if (!period_ms) { + cfg->hb_sub.min_hops = 0; + } } const struct bt_mesh_model_op bt_mesh_cfg_srv_op[] = {
Update CodeQL to version 2. Version 1 will be deprecated on December 12, so upgrade now to avoid nasty surprises.
@@ -119,7 +119,7 @@ jobs: run: sudo apt-get install -y --no-install-recommends libyaml-dev - name: Initialize CodeQL - uses: github/codeql-action/init@v1 + uses: github/codeql-action/init@v2 with: languages: ${{matrix.language}} @@ -127,4 +127,4 @@ jobs: run: ${GITHUB_WORKSPACE?}/src/configure && make -j 2 - name: Perform CodeQL Analysis - uses: github/codeql-action/analyze@v1 + uses: github/codeql-action/analyze@v2
nshlib: Call symlink if user pass -s for ln command since NuttX kernel support really support symlink not link. Note: link equal symlink now because the hard link doesn't support yet
@@ -1050,7 +1050,15 @@ int cmd_ln(FAR struct nsh_vtbl_s *vtbl, int argc, char **argv) goto errout_with_tgtpath; } + if (ndx == 1) + { ret = link(tgtpath, linkpath); + } + else + { + ret = symlink(tgtpath, linkpath); + } + if (ret < 0) { nsh_error(vtbl, g_fmtcmdfailed, argv[0], "link", NSH_ERRNO);
fix bors by using correct job names
# List of commit statuses that must pass on the merge commit before it is # pushed to master. status = [ - "ci-format", - "ci-build", + "ci-format (ubuntu-20.04)", + "ci-build (ubuntu-20.04)", ] # List of PR labels that may not be attached to a PR when it is r+-ed.
perf-tools/msr-safe: updating kernel ver for centos7.6
@@ -40,7 +40,7 @@ BuildRequires: kernel-default-devel %endif %if 0%{?centos_version} == 700 -%define centos_kernel 3.10.0-862.el7 +%define centos_kernel 3.10.0-957.el7 BuildRequires: kernel = %{centos_kernel} BuildRequires: kernel-devel = %{centos_kernel} %endif
Use separate scale for X and Y in fixed-size tiles
@@ -77,7 +77,7 @@ public: mPerpLen = 0.5; mStateScale = data.scaleOf(inState); mScale = mStateScale; - mTileScale = 1.0; + mTileScaleY = mTileScaleY = 1.0; if (mScale<=0.001) mScale = 0.001; mCurveThresh2 = 0.125/mScale/mScale; @@ -267,7 +267,9 @@ public: { ioData.mMinScale = mStateScale*0.99; ioData.mMaxScale = mStateScale*1.01; - mTileScale = mStateScale>0 ? 1.0/mStateScale : 1.0; + const Matrix &m = *inState.mTransform.mMatrix; + mTileScaleX = 1.0/sqrt( m.m00*m.m00 + m.m01*m.m01 ); + mTileScaleY = 1.0/sqrt( m.m10*m.m10 + m.m11*m.m11 ); } AddTiles(mode, &inPath.data[inJob.mData0], tiles); @@ -551,8 +553,8 @@ public: UserPoint tileSize = bmpSize; if (FIXED && FULL) { - tileSize.x *= mTileScale; - tileSize.y *= mTileScale; + tileSize.x *= mTileScaleX; + tileSize.y *= mTileScaleY; } for(int i=0;i<inTiles;i++) @@ -561,8 +563,8 @@ public: { UserPoint off = *point++; pos = *point++; - pos.x -= off.x * mTileScale; - pos.y -= off.y * mTileScale; + pos.x -= off.x * mTileScaleX; + pos.y -= off.y * mTileScaleY; } else pos = *point++; @@ -596,8 +598,8 @@ public: if (FIXED) { - tileSize.x *= mTileScale; - tileSize.y *= mTileScale; + tileSize.x *= mTileScaleX; + tileSize.y *= mTileScaleY; } } @@ -752,8 +754,8 @@ public: UserPoint tileSize = bmpSize; if (FIXED && FULL) { - tileSize.x *= mTileScale; - tileSize.y *= mTileScale; + tileSize.x *= mTileScaleX; + tileSize.y *= mTileScaleY; } int stride = mElement.mStride * 4; @@ -775,8 +777,8 @@ public: { UserPoint off = *point++; pos = *point++; - pos.x -= off.x * mTileScale; - pos.y -= off.y * mTileScale; + pos.x -= off.x * mTileScaleX; + pos.y -= off.y * mTileScaleY; } else pos = *point++; @@ -809,8 +811,8 @@ public: } if (FIXED) { - tileSize.x *= mTileScale; - tileSize.y *= mTileScale; + tileSize.x *= mTileScaleX; + tileSize.y *= mTileScaleY; } } @@ -2395,7 +2397,8 @@ public: double mPerpLen; double mScale; double mStateScale; - double mTileScale; + float mTileScaleX; + float mTileScaleY; double mCurveThresh2; double mFatLineCullThresh; Matrix mTextureMapper;
Changed lock state to Unknown when Dimm is unmanageable. Previously when a DIMM was not manageable it would falsely report a conclusive lock state instead of the true value 'unknown'
@@ -654,14 +654,10 @@ ShowDimms( PRINTER_BUILD_KEY_PATH(pPath, DS_DIMM_INDEX_PATH, DimmIndex); ReturnCode = MakeCapacityString(gNvmDimmCliHiiHandle, pDimms[DimmIndex].Capacity, UnitsToDisplay, TRUE, &pCapacityStr); - if (MANAGEMENT_VALID_CONFIG != pDimms[DimmIndex].ManageabilityState) { - pHealthStr = HealthToString(gNvmDimmCliHiiHandle, HEALTH_UNKNOWN); - } - else { pHealthStr = HealthToString(gNvmDimmCliHiiHandle, pDimms[DimmIndex].HealthState); - } - if (pDimms[DimmIndex].ErrorMask & DIMM_INFO_ERROR_SECURITY_INFO) { + if (pDimms[DimmIndex].ErrorMask & DIMM_INFO_ERROR_SECURITY_INFO || + MANAGEMENT_VALID_CONFIG != pDimms[DimmIndex].ManageabilityState) { pSecurityStr = CatSPrint(NULL, FORMAT_STR, UNKNOWN_ATTRIB_VAL); } else { @@ -795,7 +791,8 @@ ShowDimms( /** Security State **/ if (ShowAll || (pDispOptions->DisplayOptionSet && ContainsValue(pDispOptions->pDisplayValues, SECURITY_STR))) { - if (pDimms[DimmIndex].ErrorMask & DIMM_INFO_ERROR_SECURITY_INFO) { + if (pDimms[DimmIndex].ErrorMask & DIMM_INFO_ERROR_SECURITY_INFO || + MANAGEMENT_VALID_CONFIG != pDimms[DimmIndex].ManageabilityState) { pSecurityStr = CatSPrint(NULL, FORMAT_STR, UNKNOWN_ATTRIB_VAL); } else { @@ -818,12 +815,7 @@ ShowDimms( /** Health State **/ if (ShowAll || (pDispOptions->DisplayOptionSet && ContainsValue(pDispOptions->pDisplayValues, HEALTH_STR))) { - if (MANAGEMENT_VALID_CONFIG != pDimms[DimmIndex].ManageabilityState) { - pHealthStr = HealthToString(gNvmDimmCliHiiHandle, HEALTH_UNKNOWN); - } - else { pHealthStr = HealthToString(gNvmDimmCliHiiHandle, pDimms[DimmIndex].HealthState); - } PRINTER_SET_KEY_VAL_WIDE_STR(pPrinterCtx, pPath, HEALTH_STR, pHealthStr); FREE_POOL_SAFE(pHealthStr);
OpenCanopy: Shift cut-off entries right rather than left
@@ -1897,7 +1897,6 @@ BootPickerViewLateInitialize ( INT64 ScrollOffset; CONST LIST_ENTRY *ListEntry; CONST GUI_VOLUME_ENTRY *BootEntry; - INT64 FirstPosOffset; ASSERT (mBootPicker.SelectedEntry != NULL); @@ -1908,30 +1907,37 @@ BootPickerViewLateInitialize ( // impossible. // if (ScrollOffset == 0) { - ListEntry = mBootPicker.Hdr.Obj.Children.BackLink; - ASSERT (ListEntry == &mBootPickerSelector.Hdr.Link); - - FirstPosOffset = 0; // + // Find the first entry that is fully visible. // Last entry is always the selector. // - ListEntry = ListEntry->BackLink; + ASSERT (mBootPicker.Hdr.Obj.Children.BackLink == &mBootPickerSelector.Hdr.Link); + for ( + ListEntry = GetFirstNode (&mBootPicker.Hdr.Obj.Children); + ListEntry != mBootPicker.Hdr.Obj.Children.BackLink; + ListEntry = GetNextNode (&mBootPicker.Hdr.Obj.Children, ListEntry) + ) { // - // Find the first entry that is fully visible. + // Move the first partially visible boot entry to the very left to prevent + // cut-off entries. This only applies when entries overflow. // - while (!IsNull (&mBootPicker.Hdr.Obj.Children, ListEntry)) { BootEntry = BASE_CR (ListEntry, GUI_VOLUME_ENTRY, Hdr.Link); - if (mBootPicker.Hdr.Obj.OffsetX + BootEntry->Hdr.Obj.OffsetX < 0) { + if (mBootPicker.Hdr.Obj.OffsetX + BootEntry->Hdr.Obj.OffsetX >= 0) { // - // Move the first fully visible boot entry to the very left to prevent - // cut-off entries. This only applies when entries overflow. + // Move the cut-off entry on-screen. // - ScrollOffset = -(INT64) FirstPosOffset; + ScrollOffset = -ScrollOffset; break; } - FirstPosOffset = mBootPicker.Hdr.Obj.OffsetX + BootEntry->Hdr.Obj.OffsetX; - ListEntry = ListEntry->BackLink; + ScrollOffset = mBootPicker.Hdr.Obj.OffsetX + BootEntry->Hdr.Obj.OffsetX; + } + + if (mBootPicker.Hdr.Obj.Children.BackLink != mBootPicker.Hdr.Obj.Children.ForwardLink) { + // + // mBootPicker must not be entirely off-screen. + // + ASSERT (ListEntry != mBootPicker.Hdr.Obj.Children.BackLink); } }
Add fft core to groupcores
@@ -49,7 +49,7 @@ LOCAL_FIRESIM_DIR=$LOCAL_CHIPYARD_DIR/sims/firesim/sim # key value store to get the build groups declare -A grouping -grouping["group-cores"]="chipyard-cva6 chipyard-ibex chipyard-rocket chipyard-hetero chipyard-boom chipyard-sodor chipyard-digitaltop chipyard-multiclock-rocket chipyard-nomem-scratchpad" +grouping["group-cores"]="chipyard-cva6 chipyard-ibex chipyard-rocket chipyard-hetero chipyard-boom chipyard-sodor chipyard-digitaltop chipyard-multiclock-rocket chipyard-nomem-scratchpad chipyard-fftgenerator" grouping["group-peripherals"]="chipyard-dmirocket chipyard-blkdev chipyard-spiflashread chipyard-spiflashwrite chipyard-mmios chipyard-lbwif" grouping["group-accels"]="chipyard-nvdla chipyard-sha3 chipyard-hwacha chipyard-gemmini chipyard-streaming-fir chipyard-streaming-passthrough" grouping["group-tracegen"]="tracegen tracegen-boom"
fix the fpgalpbk issue
@@ -155,7 +155,7 @@ class FPGALPBK(COMMON): def eth_group_loopback_en(self, en): for keys, values in self.eth_grps.items(): eth_group_inst = eth_group() - ret = eth_group_inst.eth_group_open(int(values[0]), values[1]) + ret = eth_group_inst.eth_group_open(values[0]) if ret != 0: return None
host/l2cap: disconnect channel if received more than expected If receive data lenght exceeds what was defined in first packet disconnect with peer. This is affecting L2CAP/LE/CFC/BV-28-C
@@ -198,6 +198,17 @@ ble_l2cap_coc_rx_fn(struct ble_l2cap_chan *chan) } sdu_len = get_le16((*om)->om_data); + + /* We should receive payload of size sdu_len + 2 bytes of sdu_len field */ + if (om_total > sdu_len + 2) { + BLE_HS_LOG(ERROR, "Payload larger than expected (%d>%d)\n", + om_total, sdu_len + 2); + /* Disconnect peer with invalid behaviour */ + rx->sdu = NULL; + rx->data_offset = 0; + ble_l2cap_disconnect(chan); + return BLE_HS_EBADDATA; + } if (sdu_len > rx->mtu) { BLE_HS_LOG(INFO, "error: sdu_len > rx->mtu (%d>%d)\n", sdu_len, rx->mtu); @@ -227,6 +238,15 @@ ble_l2cap_coc_rx_fn(struct ble_l2cap_chan *chan) } else { BLE_HS_LOG(DEBUG, "Continuation...received %d\n", (*om)->om_len); + if (OS_MBUF_PKTLEN(rx->sdu) + (*om)->om_len > rx->data_offset) { + /* Disconnect peer with invalid behaviour */ + BLE_HS_LOG(ERROR, "Payload larger than expected (%d>%d)\n", + OS_MBUF_PKTLEN(rx->sdu) + (*om)->om_len, rx->data_offset); + rx->sdu = NULL; + rx->data_offset = 0; + ble_l2cap_disconnect(chan); + return BLE_HS_EBADDATA; + } rc = os_mbuf_appendfrom(rx->sdu, *om, 0, om_total); if (rc != 0) { /* FIXME: need to handle it better */
Update WiFi firmware update script.
# # This script updates the ATWINC1500 WiFi module firmware. # Copy the firmware image to uSD card before running this script. -# NOTE: Firmware version 19.5.2 does NOT support ATWINC1500-MR210PA. +# NOTE: Older fimware versions are no longer supported by the host driver. +# NOTE: The latest firmware (19.6.1) only works on ATWINC1500-MR210PB. import network # Init wlan module in Download mode. wlan = network.WINC(mode=network.WINC.MODE_FIRMWARE) -# Start the firmware update process. -# For ATWINC1500-MR210PA/B -#wlan.fw_update("/winc_19_4_4.bin") - # For ATWINC1500-MR210PB only. -wlan.fw_update("/winc_19_5_2.bin") +wlan.fw_update("/winc_19_6_1.bin")
Test: Fix null pointer exception
@@ -103,6 +103,7 @@ bool isMetaDataEqual (kdb::Key & key1, kdb::Key & key2) while (key1.nextMeta ()) { key2.nextMeta (); + if (!key2.currentMeta ()) return false; if (key1.currentMeta ().getName () != key2.currentMeta ().getName ()) return false; if (key1.currentMeta ().getString () != key2.currentMeta ().getString ()) return false; } @@ -146,6 +147,7 @@ bool isKeySetEqual (kdb::KeySet & keys1, kdb::KeySet & keys2) while (keys1.next ()) { keys2.next (); + if (!keys2.current ()) return false; kdb::Key key1 = keys1.current (); kdb::Key key2 = keys2.current (); if (!isKeyEqual (key1, key2)) return false;
make missing CAs warning clearer
@@ -250,7 +250,7 @@ void tls_client_trigger_auth(void) // Reject query if TLS client disabled if (g_client_enable == 0) { - log_warning("No CA available to resolve query."); + log_warning("No CA available to authenticate query."); return; }
Fix bug in gpconfigurenewsegment We were calling the wasSuccessful() func incorrectly.
@@ -421,7 +421,7 @@ try: if options.validationOnly: errors = [] for item in pool.getCompletedItems(): - if not item.get_results().wasSuccessful: + if not item.get_results().wasSuccessful(): errors.append(str(item.get_results().stderr).replace("\n", " ")) if errors:
refers to bpftrace's approuch
@@ -918,6 +918,7 @@ void h2o_raw_tracer::initialize() { void h2o_raw_tracer::do_handle_event(const void *data, int data_len) { // The perf event data is not aligned, so we use a local copy to avoid UBSan errors. + // cf. https://github.com/iovisor/bpftrace/pull/1520 const h2olog_event_t event = *static_cast<const h2olog_event_t*>(data); if (event.id == H2OLOG_EVENT_ID_SCHED_SCHED_PROCESS_EXIT) {
docs: remove BOS_MIRROR sles discussion
@@ -11,30 +11,6 @@ image for use with \Warewulf{}. We begin by creating a directory structure on th default location for this example is in \texttt{/opt/ohpc/admin/images/\baseos{}}. -\begin{center} - \begin{tcolorbox}[] - \small Note that \Warewulf{} requires access to a zypper repository during the - \texttt{wwmkchroot} process. The easiest way to provide this is to mount - the SUSE-SLE-12-SP4-Server ISO image on a web server that can communicate - with the {\em master} host, set the \texttt{\$\{BOS\_MIRROR\}} environment - variable to that URL, and update the template file {\em prior} to running - the \texttt{wwmkchroot} command below. For example: - -% begin_ohpc_run -% ohpc_command if [ ! -z ${BOS_MIRROR+x} ]; then -% ohpc_indent 5 -\begin{lstlisting}[language=bash,keywords={}] -# Override default OS repository - set BOS_MIRROR variable to desired repo location -[sms](*\#*) perl -pi -e "s#^ZYP_MIRROR=(\S+)#ZYP_MIRROR=${BOS_MIRROR}#" \ - /usr/lib/warewulf/wwmkchroot/sles-12.tmpl -\end{lstlisting} -% ohpc_indent 0 -% ohpc_command fi -% end_ohpc_run - -\end{tcolorbox} -\end{center} - \iftoggle{isSLES_ww_pbs_aarch}{\vspace*{-.5cm}} % begin_ohpc_run
Push clipboard text only if not null In practice, it does not change anything (it just avoids a spurious wake-up), but semantically, it makes no sense to call pushClipboardText() with a null value.
@@ -105,7 +105,9 @@ public class Controller { break; case ControlMessage.TYPE_GET_CLIPBOARD: String clipboardText = device.getClipboardText(); + if (clipboardText != null) { sender.pushClipboardText(clipboardText); + } break; case ControlMessage.TYPE_SET_CLIPBOARD: boolean paste = (msg.getFlags() & ControlMessage.FLAGS_PASTE) != 0;
Fix linux build On (arch) linux, compilation would not complete due to the following error: ```/usr/bin/ld: CMakeFiles/lovr.dir/src/lib/tinycthread/tinycthread.c.o: undefined reference to symbol 'pthread_mutexattr_settype@@GLIBC_2.2.5' /usr/lib/libpthread.so.0: error adding symbols: DSO missing from command line collect2: error: ld returned 1 exit status``` Adding `-lpthread` to the linker flags fixes this
@@ -161,7 +161,7 @@ elseif(WIN32) else() pkg_search_module(ODE REQUIRED ode) include_directories(${ODE_INCLUDE_DIRS}) - set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -lstdc++") + set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -lstdc++ -lpthread") set(LOVR_ODE ode) endif()
Utest needs CBLAS but not necessarily FORTRAN
@@ -211,7 +211,8 @@ if (USE_THREAD) target_link_libraries(${OpenBLAS_LIBNAME} ${CMAKE_THREAD_LIBS_INIT}) endif() -if (MSVC OR NOT NOFORTRAN) +#if (MSVC OR NOT NOFORTRAN) +if (NOT NO_CBLAS) # Broken without fortran on unix add_subdirectory(utest) endif()
build: remove sha1 reference
@@ -205,7 +205,6 @@ include_directories( include/ lib/ lib/flb_libco - lib/sha1 lib/msgpack-3.1.1/include lib/LuaJIT-2.1.0-beta3/src/ ${MONKEY_INCLUDE_DIR} @@ -235,10 +234,6 @@ FLB_DEFINITION(JSMN_PARENT_LINKS) FLB_DEFINITION(JSMN_STRICT) add_subdirectory(lib/jsmn) -if(FLB_BUFFERING) - add_subdirectory(lib/sha1) -endif() - # Runtime Tests (filter_kubernetes) requires HTTP Server if(FLB_TESTS_RUNTIME) FLB_OPTION(FLB_HTTP_SERVER ON)
Fix holes from editor lag while painting colour Same as collisions, couldn't scribble fill, replaced tile with line.
@@ -313,7 +313,15 @@ class SceneCursor extends Component { this.startX = x1; this.startY = y1; } else { - paintColorTile(sceneId, x, y, selectedPalette, brushSize); + if(this.startX === undefined || this.startY === undefined) { + this.startX = x; + this.startY = y; + } + let x1 = x; + let y1 = y; + paintColorLine(sceneId, this.startX, this.startY, x1, y1, selectedPalette, brushSize); + this.startX = x1; + this.startY = y1; } this.currentX = x; this.currentY = y;
Craask: update thermal table TEMP_SENSOR_0: memory threshold high 75'C halt 85'C high_release 70'C halt_release 80'C BRANCH=none TEST=none Code-Coverage: Zoss
named-temp-sensors { compatible = "cros-ec,temp-sensors"; memory { - temp_fan_off = <35>; - temp_fan_max = <60>; - temp_host_high = <85>; - temp_host_halt = <90>; - temp_host_release_high = <80>; + temp_host_high = <75>; + temp_host_halt = <85>; + temp_host_release_high = <70>; + temp_host_release_halt = <80>; power-good-pin = <&gpio_ec_soc_dsw_pwrok>; sensor = <&temp_memory>; }; charger { - temp_fan_off = <35>; - temp_fan_max = <60>; - temp_host_high = <85>; - temp_host_halt = <90>; - temp_host_release_high = <80>; power-good-pin = <&gpio_ec_soc_dsw_pwrok>; sensor = <&temp_charger>; }; ambient { - temp_fan_off = <35>; - temp_fan_max = <60>; - temp_host_high = <85>; - temp_host_halt = <90>; - temp_host_release_high = <80>; power-good-pin = <&gpio_ec_soc_dsw_pwrok>; sensor = <&temp_ambient>; };
graph-hook: both hooks compile
^- (quip card _this) :_ this =- [%pass /pull-nack %agent [our.bowl %graph-store] %poke %graph-update -]~ - ^- update:store - !>([%0 now.bowl [%archive-graph resource]) + !> ^- update:store + [%0 now.bowl [%archive-graph resource]] :: ++ on-pull-kick |= =resource ^- (unit path) - =/ maybe-time (peek-log:graph resource) + =/ maybe-time (peek-update-log:graph resource) ?~ maybe-time `/ `/(scot %da u.maybe-time) --
Cleanup unnecessary cast
@@ -73,10 +73,10 @@ void orca_run(Field* f) { Term c = row[ix]; switch (c) { case 'a': - act_a(f, (U32)iy, (U32)ix); + act_a(f, iy, ix); break; case 'm': - act_m(f, (U32)iy, (U32)ix); + act_m(f, iy, ix); break; } }
use more conservative retire strategy
@@ -407,16 +407,18 @@ void _mi_page_retire(mi_page_t* page) { // (or we end up retiring and re-allocating most of the time) // NOTE: refine this more: we should not retire if this // is the only page left with free blocks. It is not clear - // how to check this efficiently though... for now we just check - // if its neighbours are almost fully used. + // how to check this efficiently though... + // for now, we don't retire if it is the only page left of this size class. + mi_page_queue_t* pq = mi_page_queue_of(page); if (mi_likely(page->block_size <= (MI_SMALL_SIZE_MAX/4))) { - if (mi_page_mostly_used(page->prev) && mi_page_mostly_used(page->next)) { + // if (mi_page_mostly_used(page->prev) && mi_page_mostly_used(page->next)) { + if (pq->last==page && pq->first==page) { mi_stat_counter_increase(_mi_stats_main.page_no_retire,1); return; // dont't retire after all } } - _mi_page_free(page, mi_page_queue_of(page), false); + _mi_page_free(page, pq, false); }
align: cap alignment to 16 on XL C/C++
* of two. MSVC is the exception (of course), so we need to cap the * alignment requests at values that the implementation supports. * + * XL C/C++ will accept values larger than 16 (which is the alignment + * of an AltiVec vector), but will not reliably align to the larger + * value, so so we cap the value at 16 there. + * * If the compiler accepts any power-of-two value within reason then * this macro should be left undefined, and the SIMDE_ALIGN_CAP * macro will just return the value passed to it. */ #elif defined(_M_ARM) || defined(_M_ARM64) #define SIMDE_ALIGN_PLATFORM_MAXIMUM 8 #endif + #elif defined(HEDLEY_IBM_VERSION) + #define SIMDE_ALIGN_PLATFORM_MAXIMUM 16 #endif #endif #define SIMDE_ALIGN_ASSUME_CAST(Type, Pointer) SIMDE_ALIGN_ASSUME_LIKE(SIMDE_ALIGN_CAST(Type, Pointer), Type) #endif /* !defined(SIMDE_ALIGN_H) */ - -#if defined(SIMDE_TESTING) -SIMDE_ALIGN_ASSUME_LIKE(Foo, bar) -#endif
Capture typo.
@@ -157,7 +157,7 @@ copy auxbin\jpm dist\jpm copy tools\jpm.bat dist\jpm.bat @rem Create installer -janet.exe -e "(print ((peg/match '(* :d+ `.` :d+ `.` :d+) janet/version) 0))" > build\version.txt +janet.exe -e "(print ((peg/match ''(* :d+ `.` :d+ `.` :d+) janet/version) 0))" > build\version.txt janet.exe -e "(print (= (os/arch) :x64))" > build\64bit.txt set /p JANET_VERSION= < build\version.txt set /p SIXTYFOUR= < build\64bit.txt
[ChangeLog] add contrib VA from merged PR
@@ -23,8 +23,13 @@ of the file were added first, and each subsequent addition is placed on a line -------------------------------------------------------------------------------- - Current (in development branch siconos/master) --> 4.4.0.rc + Current (in development branch siconos/master) --> 4.5.0.rc -------------------------------------------------------------------------------- + +-------------------------------------------------------------------------------- + v 4.4.0 +-------------------------------------------------------------------------------- + Main changes: [...] * [numerics] add sparse linear solver with a sparse rhs based on csparse @@ -32,6 +37,11 @@ Main changes: * [kernel] new implementation of linear solvers in SimpleMatrix The class SimpleMatrix owns a internal NumericsMatrix thats is used for linear system solving, based on Siconos/Numerics + * [numerics] add balancing matrice framework + * [numerics] add freezing contacts in Gauss seidel solvers + * [externals] add LDL support + * [mechanics] modify broadphase for Bullet + * [numerics] render the truncation in NM_entry --------------------------------------------------------------------------------
Cellular debug and comment change only: fix IMEI printing. The printing of the IMEI should curtail the length at 15 digits, not invite it to stop there if it likes.
@@ -648,7 +648,7 @@ int32_t uCellInfoGetImsi(int32_t cellHandle, if ((pInstance != NULL) && (pImsi != NULL)) { errorCode = uCellPrivateGetImsi(pInstance, pImsi); if (errorCode == 0) { - uPortLog("U_CELL_INFO: IMSI is %*s.\n", + uPortLog("U_CELL_INFO: IMSI is %.*s.\n", U_CELL_INFO_IMSI_SIZE, pImsi); } else { uPortLog("U_CELL_INFO: unable to read IMSI.\n");
libcupsfilters: Sanitize options and env variables in filterExternalCUPS()
@@ -854,6 +854,8 @@ filterExternalCUPS(int inputfd, /* I - File descriptor input stream */ /* Print queue name from filter data */ if (data->printer) add_env_var("PRINTER", data->printer, &envp); + else + add_env_var("PRINTER", "Unknown", &envp); /* PPD file path/name from filter data, required for most CUPS filters */ if (data->ppdfile) @@ -906,8 +908,10 @@ filterExternalCUPS(int inputfd, /* I - File descriptor input stream */ argv = (char **)calloc(7, sizeof(char *)); /* Numeric parameters */ - snprintf(job_id_str, sizeof(job_id_str) - 1, "%d", data->job_id); - snprintf(copies_str, sizeof(copies_str) - 1, "%d", data->copies); + snprintf(job_id_str, sizeof(job_id_str) - 1, "%d", + data->job_id > 0 ? data->job_id : 1); + snprintf(copies_str, sizeof(copies_str) - 1, "%d", + data->copies > 0 ? data->copies : 1); /* Options, build string of "Name1=Value1 Name2=Value2 ..." but use "Name" and "noName" instead for boolean options */ @@ -952,8 +956,8 @@ filterExternalCUPS(int inputfd, /* I - File descriptor input stream */ (data->printer ? data->printer : (char *)params->filter)))); argv[1] = job_id_str; - argv[2] = data->job_user; - argv[3] = data->job_title; + argv[2] = data->job_user ? data->job_user : "Unknown"; + argv[3] = data->job_title ? data->job_title : "Untitled"; argv[4] = copies_str; argv[5] = options_str ? options_str + 1 : ""; argv[6] = NULL;
rnndb/pci: Document Pascal PCI MSI rearm register (CYA_2) nvgpu documents that writing a dummy value 0 to this register rearms PCI MSI on Pascal.
<bitfield pos="0" name="TRIGGER"/> <bitfield low="1" high="11" name="TIME"/> </reg32> + <reg32 offset="0x704" name="CYA_2" variants="GF100-"/><!-- write dummy value 0 to rearm PCI MSI on Pascal --> </group> <group name="nv_pci_hda">
README: add in_dummy and remove in_xbee
@@ -25,13 +25,13 @@ $ bin/fluent-bit -i cpu -o stdout |--------------------|---------|---------------------------------------------------------------------------------| | CPU | cpu | gather CPU usage between snapshots of one second. It support multiple cores | | Disk | disk | usage of block device | +| Dummy | dummy | generates dummy event | | Forward | forward | [Fluentd](http://fluentd.org) forward protocol | | Memory | mem | usage of system memory | | MQTT | mqtt | start a MQTT server and receive publish messages | | Kernel Ring Buffer | kmsg | read Linux Kernel messages, same behavior as the __dmesg__ command line program | | Serial Port | serial | read from serial port | | Standard Input | stdin | read from the standard input | -| XBee | xbee | listen for incoming messages over a Xbee device | | Head | head | read first part of files | | Health | health | check health of TCP services| | Process | proc | check health of Process |