message
stringlengths
6
474
diff
stringlengths
8
5.22k
include/power/apollolake.h: Format with clang-format BRANCH=none TEST=none
#define IN_SUSPWRDNACK POWER_SIGNAL_MASK(X86_SUSPWRDNACK) #define IN_SUS_STAT_N POWER_SIGNAL_MASK(X86_SUS_STAT_N) -#define IN_ALL_PM_SLP_DEASSERTED (IN_SLP_S3_N | \ - IN_SLP_S4_N) +#define IN_ALL_PM_SLP_DEASSERTED (IN_SLP_S3_N | IN_SLP_S4_N) #define IN_PGOOD_ALL_CORE (IN_RSMRST_N)
Workaround for possible race in pyroute2.ipdb In simulation.py, add a call to initdb() to force-refresh the netlink socket and the interface list.
@@ -66,6 +66,7 @@ class Simulation(object): if out_ifc: out_ifc.up().commit() ns_ipdb.interfaces.lo.up().commit() + ns_ipdb.initdb() in_ifc = ns_ipdb.interfaces[in_ifname] with in_ifc as v: v.ifname = ns_ifc
host/util/addr.c: fix typo in doc
@@ -99,7 +99,7 @@ ble_hs_util_ensure_addr(int prefer_random) /* Try to load a public address. */ rc = ble_hs_id_copy_addr(BLE_ADDR_PUBLIC, NULL, NULL); if (rc == BLE_HS_ENOADDR) { - /* No random address; try to load a random address. */ + /* No public address; try to load a random address. */ rc = ble_hs_util_ensure_ra...
Update channel power calculation
@@ -229,10 +229,10 @@ void fftviewer_frFFTviewer::OnUpdatePlots(wxThreadEvent& event) if (f0 <= fftFreqAxis[i] && fftFreqAxis[i] <= fn) { double val = streamData.fftBins[0][i]; - sum += val; + sum += val*val; ++bins; } - chPwr[c] = sum; + chPwr[c] = sqrt(sum); } float pwr1 = (chPwr[0] != 0 ? (20 * log10(chPwr[0])) - 69...
Master of the ASCII artists
@@ -124,7 +124,17 @@ void Process_Args(int argc, char *argv[]) void Display_Help() { - puts("\nAll tests ran successfully, if you wish to run examples now, just pass the corresponding parameter:"); + puts("\nAll C tests ran successfully, run python3 evaluation.py for more comprehensive evaluation!"); + puts(""); + puts...
Temporarily removed driver files for and
@@ -17,7 +17,6 @@ $(NAME)_SOURCES += \ drv/drv_mag_st_lis3mdl.c \ drv/drv_mag_temp_memsic_mmc3680kj.c \ drv/drv_als_liteon_ltr303.c \ - drv/drv_rgb_liteon_ltr381.c \ drv/drv_uv_liteon_ltr390.c \ drv/drv_als_ps_liteon_ltr507.c \ drv/drv_als_ps_liteon_ltr559.c \ @@ -25,7 +24,8 @@ $(NAME)_SOURCES += \ drv/drv_ps_liteon_lt...
unix/Makefile: Detect and pass thru mpy-cross flags when running tests.
@@ -213,6 +213,12 @@ MPY_CROSS_FLAGS += -mcache-lookup-bc endif +ifeq ($(MICROPY_FORCE_32BIT),1) +RUN_TESTS_MPY_CROSS_FLAGS = --mpy-cross-flags='-mcache-lookup-bc -march=x86' +else +RUN_TESTS_MPY_CROSS_FLAGS = --mpy-cross-flags='-mcache-lookup-bc' +endif + include $(TOP)/py/mkrules.mk # install @@ -239,8 +245,8 @@ test...
add a check for null after calling calloc
@@ -266,6 +266,10 @@ int main(int argc, char *argv[]) } metrics = calloc(num_matches, sizeof(token_group)); + if (metrics == NULL) { + fprintf(stderr, "Could not allocate array for metrics\n"); + goto out_free; + } for (i = 0; i < num_matches; ++i) { metrics[i].token = tokens[i];
fix pulse width in pulsed-nmr.c
@@ -129,17 +129,17 @@ int main(int argc, char *argv[]) *tx_data = 32766; *tx_data = 0; *tx_data = 100-2; - *tx_data = 50-1; + *tx_data = 50; *tx_data = 32766; *tx_data = (uint32_t)floor(0.25 * (1<<30) + 0.5);; *tx_data = 150-2; - *tx_data = 75-1; + *tx_data = 75; *tx_data = 32766; *tx_data = (uint32_t)floor(0.5 * (1<<3...
netutils/ftpd: fix hardfault when initial socket, bind or listen fails
@@ -4496,7 +4496,10 @@ void ftpd_close(FTPD_SESSION handle) DEBUGASSERT(handle); server = (struct ftpd_server_s *)handle; + if (server->head != NULL) + { ftpd_account_free(server->head); + } if (server->sd >= 0) {
improved driver check
@@ -4887,8 +4887,9 @@ static struct ethtool_perm_addr *epmaddr; static struct ifaddrs *ifaddr = NULL; static struct ifaddrs *ifa = NULL; static struct iwreq pwrq; - static bool drivererrorflag = false; +static int frequency; +static int testchannel; fd_socket = 0; fd_socket_gpsd = 0; @@ -5007,12 +5008,51 @@ memset(&pwr...
hv: vmsr: emulate IA32_FEATURE_CONTORL MSR for nested virtualization In order to support nested virtualization, need to expose the "Enable VMX outside SMX operation" bit to L1 hypervisor. Acked-by: Eddie Dong
@@ -316,7 +316,7 @@ static void intercept_x2apic_msrs(uint8_t *msr_bitmap_arg, uint32_t mode) /** * @pre vcpu != NULL */ -static void init_msr_area(struct acrn_vcpu *vcpu) +static void prepare_auto_msr_area (struct acrn_vcpu *vcpu) { struct acrn_vm_config *cfg = get_vm_config(vcpu->vm->vm_id); uint16_t vcpu_clos = cfg-...
Add filename column to process properties service tab
@@ -242,17 +242,32 @@ INT_PTR CALLBACK PhpServicesPageProc( PhSetControlTheme(lvHandle, L"explorer"); PhAddListViewColumn(lvHandle, 0, 0, 0, LVCFMT_LEFT, 120, L"Name"); PhAddListViewColumn(lvHandle, 1, 1, 1, LVCFMT_LEFT, 220, L"Display name"); + PhAddListViewColumn(lvHandle, 2, 2, 2, LVCFMT_LEFT, 220, L"File name"); Ph...
Display accurate time in units of ms
@@ -46,6 +46,7 @@ typedef struct { } win32_mbox_t; static LARGE_INTEGER freq, sys_start_time; +static esp_sys_mutex_t sys_mutex; /* Mutex ID for main protection */ /** * \brief Check if message box is full @@ -81,16 +82,11 @@ osKernelSysTick(void) { LONGLONG ret; LARGE_INTEGER now; - QueryPerformanceFrequency(&freq); -...
cmp_client.c: fix handling of total_timeout for RR and GENM transactions
@@ -122,13 +122,13 @@ static int save_statusInfo(OSSL_CMP_CTX *ctx, OSSL_CMP_PKISI *si) static int send_receive_check(OSSL_CMP_CTX *ctx, const OSSL_CMP_MSG *req, OSSL_CMP_MSG **rep, int expected_type) { - int is_enrollment = IS_CREP(expected_type) - || expected_type == OSSL_CMP_PKIBODY_POLLREP - || expected_type == OSS...
MOVEHUB: typo
// Set to MICROPY_FLOAT_IMPL_FLOAT to enable floating point support in user code or // set to MICROPY_FLOAT_IMPL_NONE to disable floating point support in user code -// Requires about 20K (20928) of flash +// Requires about 20K (21312) of flash #define MICROPY_FLOAT_IMPL (MICROPY_FLOAT_IMPL_NONE) extern const struct _m...
Fix AOMP_REPOS check in clone_aomp.sh that can fail if AOMP_REPOS is set to a path that contains a symlink as opposed to the actual path as reported by realpath.
@@ -10,7 +10,9 @@ thisdir=`dirname $realpath` . $thisdir/aomp_common_vars # --- end standard header ---- -if [ "$thisdir" != "$AOMP_REPOS/$AOMP_REPO_NAME/bin" ] ; then +thischk="$AOMP_REPOS/$AOMP_REPO_NAME/bin" +thischk=`realpath $thischk` +if [ "$thisdir" != "$thischk" ] ; then echo echo "ERROR: This clone_aomp.sh scr...
phb4: Better logs why the slot didn't work Better logs why the slot didn't work and make it a PR_ERR so users see it by default.
@@ -2167,7 +2167,16 @@ static int64_t phb4_retry_state(struct pci_slot *slot) struct phb4 *p = phb_to_phb4(slot->phb); if (!slot->link_retries--) { - PHBERR(p, "Link detected but won't train\n"); + switch (slot->state) { + case PHB4_SLOT_LINK_WAIT_ELECTRICAL: + PHBERR(p, "Presence detected but no electrical link\n"); +...
Added CI compile test of example ipv6-uipbuf (platform Zoul)
@@ -34,6 +34,7 @@ libs/timers/zoul \ libs/energest/zoul \ libs/trickle-library/zoul \ libs/data-structures/zoul \ +libs/ipv6-uipbuf/zoul \ nullnet/zoul \ slip-radio/zoul \ dev/gpio-hal/zoul:BOARD=remote-reva \
improve detection of PMKIDs in association and reassociation frames
@@ -3543,11 +3543,19 @@ for(c = 0; c < pwcilist->count; c++) { suiteptr += RSNSUITETAG_SIZE; restlen -= RSNSUITETAG_SIZE; + if(restlen < 0) + { + return NULL; + } } akmcilist = (rsnlisttag_t*)suiteptr; suiteptr += RSNLISTTAG_SIZE; restlen -= RSNLISTTAG_SIZE; +if(restlen < 0) + { + return NULL; + } for(c = 0; c < akmcil...
CoreValidation: Fixed NVIC function test for Cortex-M0/M0+ CM0/CM0+ do not have NVIC_GetActive function.
*----------------------------------------------------------------------------*/ static volatile uint32_t irqTaken = 0U; +#if defined(__CORTEX_M) && (__CORTEX_M > 0) static volatile uint32_t irqActive = 0U; +#endif static void TC_CoreFunc_EnDisIRQIRQHandler(void) { ++irqTaken; +#if defined(__CORTEX_M) && (__CORTEX_M > 0...
mpy-cross,windows: Add msvc build of mpy-cross. Add the project file to the mpy-cross directory, which is also where the executable ends up, and change the Appveyor settings to build mpy-cross with both msvc and mingw-w64 and verify this all works by running tests with --via-mpy.
@@ -14,15 +14,27 @@ platform: - x86 - x64 +before_build: +- ps: | + @" + <?xml version="1.0" encoding="utf-8"?> + <Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> + <Target Name="Build"> + <MsBuild BuildInParallel="True" Projects="mpy-cross\mpy-cross.vcxproj;ports\windows\micropy...
docs: Update TWAI docs for ESP32-S3
@@ -204,6 +204,12 @@ Bit timing **macro initializers** are also available for commonly used bit rates :esp32s2: - ``TWAI_TIMING_CONFIG_10KBITS()`` :esp32s2: - ``TWAI_TIMING_CONFIG_5KBITS()`` :esp32s2: - ``TWAI_TIMING_CONFIG_1KBITS()`` + :esp32s3: - ``TWAI_TIMING_CONFIG_20KBITS()`` + :esp32s3: - ``TWAI_TIMING_CONFIG_16K...
Overwrite existing files during package extraction
@@ -71,7 +71,7 @@ ninja package || exit 1 mkdir expand pushd expand || exit 1 -7z x ../*.deb || exit 1 +7z x ../*.deb -aoa || exit 1 tar xf data.tar || exit 1 popd || exit 1 popd || exit 1 # SDK Build Done @@ -89,7 +89,7 @@ ninja package || exit 1 mkdir expand pushd expand || exit 1 -7z x ../*.deb || exit 1 +7z x ../*....
Don't change a session once its in the cache Sessions should be immutable once they are in the cache because they could be shared with other threads. If you change them then this can cause corruptions and races
@@ -3796,10 +3796,11 @@ int tls_construct_new_session_ticket(SSL *s, WPACKET *pkt) cb(s, SSL_CB_HANDSHAKE_START, 1); } /* - * If we already sent one NewSessionTicket then we need to take a copy - * of it and create a new session from it. + * If we already sent one NewSessionTicket, or we resumed then + * s->session may...
Bump firmware version to 3.8.0
* the IDE will Not connect if the major version number is different. */ #define FIRMWARE_VERSION_MAJOR (3) -#define FIRMWARE_VERSION_MINOR (7) -#define FIRMWARE_VERSION_PATCH (1) +#define FIRMWARE_VERSION_MINOR (8) +#define FIRMWARE_VERSION_PATCH (0) /** * To add a new debugging command, increment the last command valu...
ColorInput: remove "#" from input value Fixes urbit/landscape#803
@@ -73,7 +73,7 @@ export function ColorInput(props: ColorInputProps) { height='100%' alignSelf='stretch' onChange={onChange} - value={`#${padded}`} + value={padded} disabled={disabled || false} type='color' opacity={0}
SM5803: Update inits New inits suggested by the vendor to help with 5V output and with charging issues. BRANCH=None TEST=make -j buildall
@@ -311,6 +311,7 @@ static void sm5803_init(int chgnum) rv |= chg_write8(chgnum, 0x22, 0xB3); + rv |= chg_write8(chgnum, 0x4B, 0xA6); rv |= chg_write8(chgnum, 0x4F, 0xBF); rv |= chg_write8(chgnum, 0x52, 0x77); @@ -318,8 +319,8 @@ static void sm5803_init(int chgnum) rv |= chg_write8(chgnum, 0x54, 0x02); rv |= chg_write8...
Fix reassigning tiles with the OPENGL2 renderer. Tiles were not being reallocated correctly with the tileset manager, so they would glitch until all recently freed tiles were filled.
@@ -166,6 +166,7 @@ class OpenGLTilesetAlias::impl : public TilesetObserver { SDL_Rect alias_rect; if (unallocated_.size()) { alias_rect = get_alias_rect(unallocated_.back()); + local_map_.at(codepoint) = unallocated_.back(); unallocated_.pop_back(); } else { alias_rect = get_alias_rect(next_alias_index_);
Multiple seed matches to the same superTr are counted only once. Minor improvement in performance.
@@ -9,6 +9,9 @@ void SpliceGraph::findSuperTr(const char *readSeq, const char *readSeqRevCompl, float seedCoverageMinToMax = 0.1; uint32 seedMultMax = 200; + vector<uint32> seedSuperTr; + seedSuperTr.reserve(seedMultMax); + //readLen, readSeq uint32 seedLen=mapGen.pGe.gSAindexNbases; //TODO: make user-definable memset(...
aac: Doubled PCM encoding buffer size & formating
@@ -70,7 +70,7 @@ static struct aucodec aac = { .fmtp_ench = aac_fmtp_enc, .fmtp_cmph = aac_fmtp_cmp, /* try to make sure PCM audio buffer is always <= 120 samples */ - .ptime = 1, + .ptime = 2, /* 96 samples per channel @ 48000 hz */ };
Fix write homebridge pin in db
@@ -168,7 +168,7 @@ function checkHomebridge { sqlite3 $ZLLDB "replace into config2 (key, value) values('homebridge', 'not-managed')" &> /dev/null fi [[ $LOG_INFO ]] && echo "${LOG_INFO}existing homebridge hue auth found" - + fi if [[ -z "$HOMEBRIDGE_PIN" ]]; then if [[ -f /home/$MAINUSER/.homebridge/config.json ]]; th...
qlog: crypto is a stream frame
@@ -75,10 +75,11 @@ def handle_ping_receive(event): "frame_type": "ping", } - -def handle_recv_crypto_frame(event): +def handle_stream_receive(event): + label = "stream" if event["stream-id"] > 0 else "crypto" return { - "frame_type": "crypto", + "frame_type": label, + "stream_id": event["stream-id"], "length": event["...
Fix trailing slash problem on GITROCINTERNAL url
@@ -151,7 +151,7 @@ AOMP_JOB_THREADS=${AOMP_JOB_THREADS:-$COMP_THREADS} # These are the web sites where the AOMP git repos are pulled from GITROC="https://github.com/radeonopencompute" -GITROCINTERNAL="ssh://$USER@gerrit-git.amd.com:29418/lightning/ec/" +GITROCINTERNAL="ssh://$USER@gerrit-git.amd.com:29418/lightning/ec...
math_modff should use clang++
@@ -5,7 +5,7 @@ TESTSRC_MAIN = math_modff.cpp TESTSRC_AUX = TESTSRC_ALL = $(TESTSRC_MAIN) $(TESTSRC_AUX) -CLANG = clang +CLANG = clang++ OMP_BIN = $(AOMP)/bin/$(CLANG) CC = $(OMP_BIN) $(VERBOSE) EXTRA_CFLAGS =
Tools: Correct line endings in idf_monitor tests
ets Jun 8 2016 00:22:57 - rst:0x1 (POWERON_RESET),boot:0x33 (SPI_FAST_FLASH_BOOT) configsip: 0, SPIWP:0xee clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00 @@ -63,15 +62,12 @@ D (291) heap_init: New heap initialised at 0x3ffe0440 D (301) heap_init: New heap initialised at 0x3ffe4350 D (31...
Fix event for light state/reachable false Relatet GH issue:
@@ -1218,7 +1218,9 @@ void DeRestPluginPrivate::nodeZombieStateChanged(const deCONZ::Node *node) DBG_Printf(DBG_INFO, "LightNode %s set node %s\n", qPrintable(i->id()), qPrintable(node->address().toStringExt())); } - if (i->isAvailable() != available) + ResourceItem *item = i->item(RStateReachable); + DBG_Assert(item !...
stm32/modpyb: Support building with PY_PYB_LEGACY on and HW_USB_HID off.
@@ -170,9 +170,11 @@ STATIC const mp_rom_map_elem_t pyb_module_globals_table[] = { #if MICROPY_PY_PYB_LEGACY // these 2 are deprecated; use USB_VCP.isconnected and USB_HID.send instead { MP_ROM_QSTR(MP_QSTR_have_cdc), MP_ROM_PTR(&pyb_have_cdc_obj) }, + #if MICROPY_HW_USB_HID { MP_ROM_QSTR(MP_QSTR_hid), MP_ROM_PTR(&pyb_...
Improve wording re: PSA Crypto
@@ -19,7 +19,7 @@ Documentation The main Mbed TLS documentation is available via [ReadTheDocs](https://mbed-tls.readthedocs.io/). -Documentation for the PSA Crypto interface is available [on GitHub](https://armmbed.github.io/mbed-crypto/psa/#application-programming-interface). +Documentation for the PSA Cryptography AP...
move to current trunk , also build sm_50 as part of default nvptx builds
@@ -42,7 +42,7 @@ fi # Set list of default nvptx subarchitectures to build # Only Cuda 9 and above supports sm_70 if [ "$AOMP_BUILD_CUDA" == 1 ] ; then - NVPTXGPUS_DEFAULT="30,35,50,60,61" + NVPTXGPUS_DEFAULT="30,32,35,50,60,61" if [ -f $CUDA/version.txt ] ; then if [ `head -1 /usr/local/cuda/version.txt | cut -d " " -...
Added back effc++ flag. Moved gtest inclusion before the flags to prevent compiler failures due to w_error.
@@ -32,6 +32,13 @@ 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...
test: wip full-run test
~& >>> [exp+%spider-start act+p.cage.r.note.q.start-move] (expect !>(|)) =/ args + :: XX $start-args in %/app/spider/hoon + :: !< [p=(unit @ta) q=(unit @ta) r=beak s=term t=vase] q.cage.r.note.q.start-move ?. =(~ p.args) :: !! :: ++ test-khan-take-poke-fail :: !! -:: ++ test-khan-take-full-run -:: !! +++ test-khan-take...
rtdl: zero .tbss in memory
@@ -754,6 +754,7 @@ void initTlsObjects(Tcb *tcb, const frg::vector<SharedObject *, MemoryAllocator> char *tcb_ptr = reinterpret_cast<char *>(tcb); auto tls_ptr = tcb_ptr + object->tlsOffset; + memset(tls_ptr, 0, object->tlsSegmentSize); memcpy(tls_ptr, object->tlsImagePtr, object->tlsImageSize); if (checkInitialized)
crypto/aes/asm/aes-s390x.pl: replace decrypt flag by macro.
@@ -1086,7 +1086,7 @@ $code.=<<___ if (!$softonly); lhi $t1,16 cr $t0,$t1 jl .Lgo - oill $t0,0x80 # set "decrypt" bit + oill $t0,S390X_DECRYPT # set "decrypt" bit st $t0,240($key) br $ra ___ @@ -1225,7 +1225,7 @@ $code.=<<___ if (!$softonly); .align 16 .Lkmc_truncated: ahi $key,-1 # it's the way it's encoded in mvc - t...
mangoapp: make internal function static
@@ -69,7 +69,7 @@ static unsigned int get_prop(const char* propName){ return 0; } -void ctrl_thread(){ +static void ctrl_thread(){ while (1){ const struct mangoapp_ctrl_msgid1_v1 *mangoapp_ctrl_v1 = (const struct mangoapp_ctrl_msgid1_v1*) raw_msg; memset(raw_msg, 0, sizeof(raw_msg)); @@ -107,7 +107,7 @@ void ctrl_threa...
util/process_docs.pl: handle multiple source directories correctly The way this script handled multiple source directories wasn't quite right, it ended up giving pod2html 'ARRAY(0xXXXXXXXXX)' as a source directory. This corrects the mistake. Fixes Fixes
@@ -84,10 +84,11 @@ my $symlink_exists = eval { symlink("",""); 1 }; foreach my $section (sort @{$options{section}}) { my $subdir = "man$section"; - my @podsourcedirs = map { catfile($_, $subdir); } @{$options{sourcedir}}; - my @podglobs = map { catfile($_, "*.pod"); } @podsourcedirs; + foreach my $sourcedir (@{$option...
doc: Fix typo in DM parameters Address comment in PR
@@ -478,7 +478,7 @@ arguments used for configuration. Here is a table describing these emulated dev - Virtio GPU type device, parameters format is: ``virtio-gpu[,geometry=<width>x<height>+<x_off>+<y_off> | fullscreen]`` - * ``<geometry>`` specifies the mode of virtual display, windowed or fullscreen. + * ``geometry`` s...
Fix decoding of `AMX_TILE` instructions with zero-width memory operands
@@ -1168,7 +1168,8 @@ static void ZydisSetOperandSizeAndElementInfo(ZydisDecoderContext* context, operand->element_type = ZYDIS_ELEMENT_TYPE_INT; } else { - ZYAN_ASSERT(definition->size[context->eosz_index]); + ZYAN_ASSERT(definition->size[context->eosz_index] || + (instruction->meta.category == ZYDIS_CATEGORY_AMX_TILE...
polynomial/autotest: removing unused variable to eliminate compiler warning
@@ -59,7 +59,7 @@ void autotest_polyf_fit_q3n3() void autotest_polyf_lagrange_issue165() { // Inputs taken from issue#165 - unsigned int Q=2; // polynomial order + //unsigned int Q=2; // polynomial order unsigned int n=3; // input vector size float x[3] = {-1.0f, 0.0f, 1.0f}; float y[3] = {7.059105f, 24.998369f, 14.365...
Fixed wrong language name and added turkish
@@ -48,7 +48,7 @@ enum { SCE_SYSTEM_PARAM_LANG_GERMAN, SCE_SYSTEM_PARAM_LANG_ITALIAN, SCE_SYSTEM_PARAM_LANG_DUTCH, - SCE_SYSTEM_PARAM_LANG_PORTUGUESE, + SCE_SYSTEM_PARAM_LANG_PORTUGUESE_PT, SCE_SYSTEM_PARAM_LANG_RUSSIAN, SCE_SYSTEM_PARAM_LANG_KOREAN, @@ -64,8 +64,9 @@ enum { SCE_SYSTEM_PARAM_LANG_POLISH, //! Brazil Por...
chip/mt_scp/rv32i_common/hostcmd.c: Format with clang-format BRANCH=none TEST=none
@@ -97,7 +97,8 @@ DECLARE_IPI(SCP_IPI_HOST_COMMAND, hostcmd_handler, 0); /* * Get protocol information */ -static enum ec_status hostcmd_get_protocol_info(struct host_cmd_handler_args *args) +static enum ec_status +hostcmd_get_protocol_info(struct host_cmd_handler_args *args) { struct ec_response_get_protocol_info *r =...
YAML CPP: Add empty array example
@@ -112,6 +112,11 @@ kdb get user/tests/yamlcpp/sunny/#_9 kdb get user/tests/yamlcpp/sunny/$(kdb getmeta user/tests/yamlcpp/sunny array) #> The Waitress +# The plugin also supports empty arrays (arrays without any elements) +kdb setmeta user/tests/yamlcpp/empty array '' +kdb export user/tests/yamlcpp/empty yamlcpp +#> ...
sysdeps/managarm: Handle ENOTCONN in sys_write
@@ -2049,6 +2049,8 @@ int sys_write(int fd, const void *data, size_t size, ssize_t *bytes_written) { return ENOSPC; }else if(resp.error() == managarm::fs::Errors::WOULD_BLOCK) { return EAGAIN; + }else if(resp.error() == managarm::fs::Errors::NOT_CONNECTED) { + return ENOTCONN; }else{ __ensure(resp.error() == managarm::...
Makefile: create top-level target for the ACRN life_mngr The ACRN life_mngr is not built by default as it is a component that will run in the User VM. Instead we create a 'life_mngr' (and 'life_mngr-install') targets to build it individually from the top-level folder.
@@ -75,7 +75,7 @@ HV_CFG_LOG = $(HV_OUT)/cfg.log VM_CONFIGS_DIR = $(T)/misc/config_tools ASL_COMPILER ?= $(shell which iasl) -.PHONY: all hypervisor devicemodel tools doc +.PHONY: all hypervisor devicemodel tools life_mngr doc all: hypervisor devicemodel tools @cat $(HV_CFG_LOG) @@ -121,6 +121,10 @@ tools: mkdir -p $(T...
BugID:17116016:optimise idle_task....
void idle_task(void *arg) { + uint8_t cpu_num; + #if (RHINO_CONFIG_CPU_NUM > 1) CPSR_ALLOC(); klist_t *head; @@ -17,6 +19,7 @@ void idle_task(void *arg) /* avoid warning */ (void)arg; + cpu_num = cpu_cur_get(); #if (RHINO_CONFIG_USER_HOOK > 0) krhino_idle_pre_hook(); @@ -40,7 +43,7 @@ void idle_task(void *arg) RHINO_CP...
[USB] fix stall bug on control transfers
@@ -1834,14 +1834,14 @@ rt_err_t rt_usbd_ep0_set_stall(udevice_t device) { RT_ASSERT(device != RT_NULL); - return dcd_ep_set_stall(device->dcd, 0); + return dcd_ep_set_stall(device->dcd, 0x80); } rt_err_t rt_usbd_ep0_clear_stall(udevice_t device) { RT_ASSERT(device != RT_NULL); - return dcd_ep_clear_stall(device->dcd, ...
Update lxn59-1s7lx1.0.json Change some lines after some comments from and looking for another smart plug json ( sp2610zb.json)
"schema": "devcap1.schema.json", "manufacturername": "3A Smart Home DE", "modelid": "LXN59-1S7LX1.0", - "product": "LXN59-1S7LX1.0", + "product": "Another Smart socket plug", "sleeper": false, "status": "Silver", - "path": "/devices/lxn59-1s7lx1.0.json", "subdevices": [ { "type": "$TYPE_SMART_PLUG", }, { "name": "state...
Add a missing json_decref in the example
@@ -153,6 +153,7 @@ int main(int argc, char *argv[]) { sha = json_object_get(data, "sha"); if (!json_is_string(sha)) { fprintf(stderr, "error: commit %d: sha is not a string\n", (int)(i + 1)); + json_decref(root); return 1; }
Validation: Fix broken link
@@ -182,7 +182,7 @@ Particularly a _Specfile_ contains metadata that defines Let us create an example _Specfile_ in the dump format, which supports metadata (altough the specfile is stored in the dump format, we can still create it using -the human readable [ni format](/doc/src/plugins/ni/README.md) by using `kdb impor...
rune: Pass the actual log level to Enclave Runtime Instead using the hard code "off".
@@ -137,7 +137,7 @@ func (pal *enclaveRuntimePal) Name() string { func (pal *enclaveRuntimePal) Init(args string, logLevel string) error { api := &enclaveRuntimePalApiV1{} - return api.init(pal.init, args, "off") + return api.init(pal.init, args, logLevel) } func (pal *enclaveRuntimePal) Attest() (err error) {
[numerics] link to SuiteSparse's libcolamd Not sure why but it appears to be necessary at least on debian unstable.
@@ -31,6 +31,10 @@ if (SuiteSparse_USE_CXSparse) if (CXSparse_INCLUDE_DIR AND CXSparse_LIBRARY) set(SuiteSparse_CXSparse_FOUND TRUE) endif() + + # At least on some systems we need to link to libcolamd which is + # another output from suitesparse. + find_library(colamd_LIBRARY NAMES colamd) endif () include(FindPackageH...
Comment out prismjs (never used), to restore code blocks' original look
@@ -62,7 +62,7 @@ module.exports = { // Plugins configs plugins: [ `gatsby-remark-autolink-headers`, - `gatsby-remark-prismjs`, + // `gatsby-remark-prismjs`, { resolve: "gatsby-remark-images", options: {
build: libyaml: Search libyaml with pkg-config and handle homebrew-ed libyaml * build: libyaml: Search libyaml with pkg-config and handle homebrew-ed libyaml * build: Fix a typo
@@ -666,7 +666,20 @@ endif() # Configuration file YAML format support if(FLB_CONFIG_YAML) -# Requies libyaml support + find_package(PkgConfig) + # libyaml's corresponding pkg-config file is yaml-0.1.pc. + # We should search it first. + pkg_check_modules(LIBYAML QUIET yaml-0.1) + + if (LIBYAML_FOUND) + # For if(FLB_HAVE...
s5j/mct: tidy up a bit Fixes trivial coding style issues.
* POSSIBILITY OF SUCH DAMAGE. * ****************************************************************************/ -#ifndef __S5J_MCT_H__ -#define __S5J_MCT_H__ +#ifndef __ARCH_ARM_SRC_S5J_S5J_MCT_H__ +#define __ARCH_ARM_SRC_S5J_S5J_MCT_H__ /**************************************************************************** * Incl...
resolver: added exported functions filename and freeHandle to README.md
@@ -124,3 +124,36 @@ A conflict will be raised in that situation. When processes do not lock the file it might be overwritten. This is, however, very unlikely on file systems with nanosecond precision. + +## Exported Functions and Data + +The resolver provides 2 functions for other plugins to use. + +### filename + +re...
fix build with targetSdkVer parameter in build.yml
@@ -488,6 +488,7 @@ def get_case_insensetive_property(property) return x[1] end end + return nil end namespace "config" do @@ -538,6 +539,7 @@ namespace "config" do $target_sdk_level = get_case_insensetive_property("targetSdk") unless $app_config["android"].nil? $target_sdk_level = get_case_insensetive_property("target...
Fixes Only sets exec bit on things we want to be executed.
@@ -224,13 +224,13 @@ if [ "$1" = "0" ]; then fi %files -n owamp-client -%defattr(-,root,root,0755) +%defattr(0644,root,root,0755) %doc README -%{_bindir}/owfetch -%{_bindir}/owping -%{_bindir}/owstats -%{_bindir}/owup -%{_bindir}/powstream +%attr(0755,root,root) %{_bindir}/owfetch +%attr(0755,root,root) %{_bindir}/owp...
funccount: Add missing entry of [-c CPU]
.SH NAME funccount \- Count function, tracepoint, and USDT probe calls matching a pattern. Uses Linux eBPF/bcc. .SH SYNOPSIS -.B funccount [\-h] [\-p PID] [\-i INTERVAL] [\-d DURATION] [\-T] [\-r] [\-D] pattern +.B funccount [\-h] [\-p PID] [\-i INTERVAL] [\-d DURATION] [\-T] [\-r] [\-c CPU] [\-D] pattern .SH DESCRIPTI...
viorng: use EWDK 1903 and latest CPDK (10)
</PropertyGroup> <PropertyGroup Label="Configuration"> <ConfigurationType>DynamicLibrary</ConfigurationType> - <PlatformToolset>v141</PlatformToolset> + <PlatformToolset>v142</PlatformToolset> <CharacterSet>Unicode</CharacterSet> <UseDebugLibraries>false</UseDebugLibraries> </PropertyGroup> <PrecompiledHeader /> <Warni...
Modify client_linux to test client role with CTT
@@ -26,19 +26,12 @@ static pthread_cond_t cv; static struct timespec ts; static int quit = 0; -static void -set_device_custom_property(void *data) -{ - (void)data; - oc_set_custom_device_property(purpose, "operate lamp"); -} - static int app_init(void) { - int ret = oc_init_platform("Apple", NULL, NULL); - ret |= oc_ad...
Adds ECN to negotiated version of Multipath
@@ -9,6 +9,10 @@ parse_frame param 0x42 replace parse_mp_ack_frame.o process_frame param 0x42 replace process_mp_ack_frame.o write_frame param 0x42 replace write_mp_ack_frame.o notify_frame param 0x42 replace notify_mp_ack_frame.o +parse_frame param 0x43 replace parse_mp_ack_frame.o +process_frame param 0x43 replace pr...
sbgemm: cooperlake: fix bug in m64n12
@@ -306,9 +306,8 @@ int CNAME (BLASLONG m, BLASLONG n, BLASLONG k, FLOAT alpha, IFLOAT * A, IFLOAT * STORE_4X(0, 0, 1); STORE_4X(1, 0, 1); STORE_4X(0, 0, 2); STORE_4X(1, 0, 2); ptr_c += 16 * 2; - } - if (m > 31) { ptr_a0 = ptr_a1; + ptr_a1 = ptr_a0 + 16 * k; } for (; m_count > 15; m_count -= 16) { ptr_b0 = ptr_b00;
README: added features list.
<!-- menu --> - [NGINX Unit](#nginx-unit) + - [Key Features](#key-features) + - [Supported Application Languages](#supported-application-languages) - [Installation](#installation) - [System Requirements](#system-requirements) - [Precompiled Packages](#precompiled-packages) @@ -64,6 +66,24 @@ specific application parame...
vabtool: Increase rsu timeout in sdm pr key provisioning Make use of the new rsu --wait option to increase the RSU timeout from 10 to 20 seconds during SDM PR key provisioning.
@@ -241,7 +241,7 @@ sr_key_provision() { for (( i = 0 ; i < ${RETRIES} ; ++i )); do call_fpgasupdate "${rkh_file}" "${pcie_addr}" || oops 'fpgasupdate failed' call_fpgasupdate "${fpga_file}" "${pcie_addr}" || oops 'fpgasupdate failed' - call_rsu sdm --type=sr "${pcie_addr}" + call_rsu --wait 20 sdm --type=sr "${pcie_ad...
Add luajit to CI.
@@ -259,7 +259,7 @@ jobs: strategy: matrix: os: [ubuntu-latest, macos-10.15] - luaVersion: ["5.1", "5.2", "5.3", "5.4"] + luaVersion: ["5.1", "5.2", "5.3", "5.4", "luajit"] exclude: - os: macos-10.15 luaVersion: 5.1
fuzzing improvements
@@ -200,8 +200,8 @@ if ("x${CMAKE_C_COMPILER_ID}" STREQUAL "xClang" OR "x${CMAKE_C_COMPILER_ID}" STR set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Werror") endif () if (FUZZING_MODE) - set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fsanitize=fuzzer,address -fsanitize-coverage=trace-pc-guard,trace-cmp,trace-gep,trace-div") - set(CMAKE...
chat: address PR comments Fixes urbit/landscape#473
@@ -188,7 +188,7 @@ export default class ChatMessage extends Component<ChatMessageProps> { <Box ref={this.divRef} pt={renderSigil ? 2 : 0} - pb={isLastMessage ? 5 : 2} + pb={isLastMessage ? 4 : 2} pr={5} className={containerClass} style={style}
inertial_updates: 32 bit resolution on orientation messages
@@ -53,8 +53,9 @@ definitions: id: 0x0220 short_desc: Quaternion 4 component vector desc: | - This message reports the quaternion vector describing the vehcile body frame's orientation - with respect to a local-level NED frame. + This message reports the quaternion vector describing the vehicle body frame's orientation...
fix: configure git to trust the /vagrant directory
@@ -92,6 +92,9 @@ jobs: run: | $RUN kubectl wait --for=condition=ready --timeout=60s node 127.0.0.1 $RUN kubectl get nodes -o wide + - name: Set up git config + run: | + $RUN git config --global --add safe.directory /vagrant - name: Run E2E tests run: $RUN hack/ci/e2e-fedora.sh @@ -122,6 +125,9 @@ jobs: run: | $RUN kub...
Fix test_param_entity_with_trailing_cr() to work for builds
@@ -5513,8 +5513,8 @@ START_TEST(test_param_entity_with_trailing_cr) XML_SetParamEntityParsing(parser, XML_PARAM_ENTITY_PARSING_ALWAYS); XML_SetExternalEntityRefHandler(parser, external_entity_loader); XML_SetEntityDeclHandler(parser, param_entity_match_handler); - entity_name_to_match = PARAM_ENTITY_NAME; - entity_val...
actions CHANGE remove LGTM because it is not working
@@ -116,18 +116,3 @@ jobs: env: TOKEN: ${{ secrets.COVERITY_SCAN_TOKEN }} if: ${{ matrix.config.name == 'Coverity' }} - - LGTM: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - - - name: Upload to LGTM.com - shell: bash - run: | - LAST_COMMIT=`git rev-parse HEAD` - curl -X POST 'https://lgtm.com/api/v1...
gall: don't crash on suspended agent build failures
:: ?> ?=([%cor @ @ @ @ ~] wire) =/ [dap=term her=@ta desk=@ta dat=@ta ~] t.wire + =/ yak (~(get by yokes.state) dap) + ?: &(?=(^ yak) !-.agent.u.yak) + ~> %slog.0^leaf/"gall: received core for suspended agent {<dap>}" + mo-core =/ =beak [(slav %p her) desk da+now] ?> ?=([?(%behn %clay) %writ *] sign-arvo) ?~ p.sign-arv...
Use unofficial utf8proc package from Vcpkg.
@@ -89,19 +89,8 @@ if(LIBTCOD_UTF8PROC STREQUAL "vendored") target_include_directories(${PROJECT_NAME} PRIVATE "vendor/utf8proc") target_sources(${PROJECT_NAME} PRIVATE "vendor/utf8proc/utf8proc.c") elseif (LIBTCOD_UTF8PROC STREQUAL "vcpkg") - include(FindPackageHandleStandardArgs) - include(SelectLibraryConfigurations...
bn: fix occurance of negative zero in BN_rshift1()
@@ -74,6 +74,8 @@ int BN_rshift1(BIGNUM *r, const BIGNUM *a) c = (t & 1) ? BN_TBIT : 0; } r->top = j; + if (!r->top) + r->neg = 0; /* don't allow negative zero */ bn_check_top(r); return (1); }
nimble/mesh: Reset the SAR timer also on SAR_CONT Usually this type of timer is used to detect inactivity, so receiving a SAR_CONT pdu counts as progress and should reset the timer.
@@ -590,6 +590,7 @@ static int proxy_recv(uint16_t conn_handle, uint16_t attr_handle, return -EINVAL; } + k_delayed_work_submit(&client->sar_timer, PROXY_SAR_TIMEOUT); net_buf_simple_add_mem(client->buf, data + 1, len - 1); break;
script: enable forward in simhostroute.sh We found that some people don't know / forget to enable forward in linux, which keeps nat not working. Because we don't know the previous state before 'on', and forward seldom has side effect, we don't disable it in 'off'.
@@ -62,6 +62,9 @@ if [ "$STATUS" == "on" ]; then iptables -A FORWARD -i $IF_HOST -o $IF_BRIDGE -m state --state RELATED,ESTABLISHED -j ACCEPT iptables -A FORWARD -i $IF_BRIDGE -o $IF_HOST -j ACCEPT + # enable forward to make sure nat works + sysctl -w net.ipv4.ip_forward=1 + ip route show else ip route delete $IP_NET
ames: print and smoother RTT
|= sent-packet-state ^- pump-metrics :: + ~& %skipped^max-live + :: %_ metrics max-live (max 1 (dec max-live)) == ++ on-ack |= sent-packet-state ^- pump-metrics + =- ~& %ack^rtt^%to^rtt.- - :: %_ metrics num-live (dec (max 1 num-live)) ++ on-resent |= sent-packet-state ^- pump-metrics + =- ~& %resent^rtt^%to^rtt.- - ::...
Remove warning about sign
@@ -184,7 +184,7 @@ is_busy: p_len = 94 + http_ul2a(packet->buffer + 94, file_data.st_size); memcpy(packet->buffer + p_len, "\r\n\r\n", 4); p_len += 4; - if (BUFFER_PACKET_SIZE - p_len > file_data.st_size) { + if ((off_t)(BUFFER_PACKET_SIZE - p_len) > file_data.st_size) { if (read(file, packet->buffer + p_len, file_dat...
pyocf: store cache name for newly initialized cache in array.
@@ -8,6 +8,7 @@ from ctypes import ( c_uint32, c_uint16, c_int, + c_char, c_char_p, c_void_p, c_bool, @@ -41,8 +42,9 @@ class Backfill(Structure): class CacheConfig(Structure): + MAX_CACHE_NAME_SIZE = 32 _fields_ = [ - ("_name", c_char_p), + ("_name", c_char * MAX_CACHE_NAME_SIZE), ("_cache_mode", c_uint32), ("_evictio...
Make bootloader flash index volatile.
@@ -26,8 +26,8 @@ static volatile uint8_t ide_connected = 0; static volatile uint8_t vcp_connected = 0; #define FLASH_BUF_SIZE (64) -static uint32_t flash_buf_idx=0; -static uint8_t flash_buf[FLASH_BUF_SIZE]; +static volatile uint32_t flash_buf_idx=0; +static volatile uint8_t flash_buf[FLASH_BUF_SIZE]; /* USB handler d...
decompose perspective near and far values
@@ -281,4 +281,44 @@ glm_lookat(vec3 eye, dest[3][3] = 1.0f; } +/*! + * @brief decomposes near and far values of perspective projection. + * z stands for z axis (near / far axis) + * + * @param[in] proj perspective projection matrix + * @param[out] near near + * @param[out] far far + */ +CGLM_INLINE +void +glm_persp_de...
CLEANUP: adjusted the argument order in tokenize_mblck().
@@ -237,12 +237,11 @@ void token_buff_release(token_buff_t *buff, void *tokens) */ size_t tokenize_command(char *command, int cmdlen, token_t *tokens, const size_t max_tokens) { + assert(command != NULL && tokens != NULL && max_tokens > 1); char *s, *e = NULL; size_t ntokens = 0; size_t checked = 0; - assert(command !=...
Adding comment to pluto_schedule_str method
@@ -819,7 +819,11 @@ __isl_give isl_union_map *pluto_parallel_schedule_with_remapping(isl_union_set * return schedules; } - +/* pluto_schedule_str is a wrapper method around + * pluto_parallel_schedule_with_remapping(). + * This method accepts domain, dependence and PlutoOptions as string + * and returns a transformed ...
type: fix compile error
@@ -213,13 +213,11 @@ void test_wchar (void) max = 0xFFFF; } - size_t c = 0; for (size_t i = 1; i < max; ++i) { size_t ret = wcstombs (s, (wchar_t[]){ (wchar_t) i, 0 }, 3 * MB_CUR_MAX); if (ret > 0) { - c++; keySetString (k, s); nbTest++; if (!checkType (k))
Fix invalid heap access
@@ -702,14 +702,6 @@ void survive_close(SurviveContext *ctx) { SV_INFO("Driver %s reports status %d", DriverName, r); } - for (int i = 0; i < ctx->driver_ct; i++) { - if (ctx->drivercloses[i]) { - ctx->drivercloses[i](ctx, ctx->drivers[i]); - } else { - free(ctx->drivers[i]); - } - } - for (int i = 0; i < ctx->objs_ct;...
[platform][qemu-virt-arm] spiff up the PSCI call to boot the secondary cpus Add a few comments and print something in case of error.
@@ -63,7 +63,7 @@ static pmm_arena_t arena = { .flags = PMM_ARENA_FLAG_KMAP, }; -extern void psci_call(ulong arg0, ulong arg1, ulong arg2, ulong arg3); +extern int psci_call(ulong arg0, ulong arg1, ulong arg2, ulong arg3); // callbacks to the fdt_walk routine static void memcallback(uint64_t base, uint64_t len, void *c...
Fix apparent issue with STM32G0 flashing.
@@ -1766,7 +1766,7 @@ int stlink_erase_flash_page(stlink_t *sl, stm32_addr_t flashaddr) uint32_t flash_page = ((flashaddr - STM32_FLASH_BASE) / sl->flash_pgsz); stlink_read_debug32(sl, STM32G0_FLASH_CR, &val); // sec 3.7.5 - PNB[5:0] is offset by 3. PER is 0x2. - val |= ((flash_page & 0x3F) << 3); + val = ((flash_page ...
add list of NVPTX capabilities to match libomptarget
@@ -133,12 +133,7 @@ fi # Set list of default nvptx subarchitectures to build # Only Cuda 9 and above supports sm_70 if [ "$AOMP_BUILD_CUDA" == 1 ] ; then - NVPTXGPUS_DEFAULT="35,37,50,52,53,60,61,62" - if [ -f $CUDA/version.txt ] ; then - if [ `head -1 $CUDA/version.txt | cut -d " " -f 3 | cut -d "." -f 1` -ge 9 ] ; t...
Hash should return count on `fiobj_obj2num`.
@@ -126,6 +126,9 @@ size_t fiobj_hash_count(const FIOBJ o) { assert(o && FIOBJ_TYPE_IS(o, FIOBJ_T_HASH)); return fio_hash_count(&obj2hash(o)->hash); } + +intptr_t fiobj_hash2num(const FIOBJ o) { return (intptr_t)fiobj_hash_count(o); } + static size_t fiobj_hash_is_true(const FIOBJ o) { return fiobj_hash_count(o) != 0; ...
Clear up btree_xlog_split() alignment comment. Adjust a comment that describes how alignment of the new left page high key works in btree_xlog_split(), the nbtree page split REDO routine. The wording used before commit is much clearer, so go back to that.
@@ -281,7 +281,11 @@ btree_xlog_split(bool onleft, XLogReaderState *record) datalen -= newitemsz; } - /* Extract left hikey and its size (assuming 16-bit alignment) */ + /* + * Extract left hikey and its size. We assume that 16-bit alignment + * is enough to apply IndexTupleSize (since it's fetching from a + * uint16 f...