message
stringlengths
6
474
diff
stringlengths
8
5.22k
VERSION bump to version 2.0.249
@@ -61,7 +61,7 @@ set (CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}) # set version of the project set(LIBYANG_MAJOR_VERSION 2) set(LIBYANG_MINOR_VERSION 0) -set(LIBYANG_MICRO_VERSION 248) +set(LIBYANG_MICRO_VERSION 249) set(LIBYANG_VERSION ${LIBYANG_MAJOR_VERSION}.${LIBYANG_MINOR_VERSION}.${LIBYANG_MICRO_VERSION}) # set version of the library set(LIBYANG_MAJOR_SOVERSION 2)
Badger2040: Add launcher dark mode, USER button is shift
@@ -14,6 +14,7 @@ MIN_BATTERY_VOLTAGE = 3.2 page = 0 font_size = 1 +inverted = False icons = bytearray(launchericons.data()) @@ -181,12 +182,9 @@ def launch_example(index): def button(pin): - global page, font_size - if pin == button_user: - font_size += 1 - if font_size == len(font_sizes): - font_size = 0 - render() + global page, font_size, inverted + + if button_user.value(): # User button is NOT held down if pin == button_a: launch_example(0) if pin == button_b: @@ -201,6 +199,21 @@ def button(pin): if page < MAX_PAGE - 1: page += 1 render() + else: # User button IS held down + if pin == button_up: + font_size += 1 + if font_size == len(font_sizes): + font_size = 0 + render() + if pin == button_down: + font_size -= 1 + if font_size < 0: + font_size = 0 + render() + if pin == button_a: + inverted = not inverted + display.invert(inverted) + render() display.update_speed(badger2040.UPDATE_MEDIUM) @@ -226,7 +239,4 @@ while True: if button_down.value(): button(button_down) - if not button_user.value(): - button(button_user) - time.sleep(0.01)
opae: update spec file with rename modules
@@ -175,9 +175,9 @@ ldconfig @CMAKE_INSTALL_PREFIX@/@OPAE_LIB_INSTALL_DIR@/libfpgad-api.so* @CMAKE_INSTALL_PREFIX@/@OPAE_LIB_INSTALL_DIR@/opae/libfpgad-xfpga.so* @CMAKE_INSTALL_PREFIX@/@OPAE_LIB_INSTALL_DIR@/opae/libfpgad-vc.so* -@CMAKE_INSTALL_PREFIX@/@OPAE_LIB_INSTALL_DIR@/opae/libboard_rc.so* -@CMAKE_INSTALL_PREFIX@/@OPAE_LIB_INSTALL_DIR@/opae/libboard_vc.so* -@CMAKE_INSTALL_PREFIX@/@OPAE_LIB_INSTALL_DIR@/opae/libboard_dc.so* +@CMAKE_INSTALL_PREFIX@/@OPAE_LIB_INSTALL_DIR@/opae/libboard_n3000.so* +@CMAKE_INSTALL_PREFIX@/@OPAE_LIB_INSTALL_DIR@/opae/libboard_d5005.so* +@CMAKE_INSTALL_PREFIX@/@OPAE_LIB_INSTALL_DIR@/opae/libboard_a10gx.so* %files tools-extra @@ -193,7 +193,7 @@ ldconfig @CMAKE_INSTALL_PREFIX@/bin/bist_nlb0.py @CMAKE_INSTALL_PREFIX@/bin/coreidle @CMAKE_INSTALL_PREFIX@/bin/fpga_dma_test -@CMAKE_INSTALL_PREFIX@/bin/fpga_dma_vc_test +@CMAKE_INSTALL_PREFIX@/bin/fpga_dma_N3000_test @CMAKE_INSTALL_PREFIX@/bin/fpgabist @CMAKE_INSTALL_PREFIX@/bin/fecmode @CMAKE_INSTALL_PREFIX@/bin/fecmode
Fix ubuntu compile warning.
@@ -3649,7 +3649,7 @@ const uint8_t* picoquic_decode_qoe_frame(const uint8_t* bytes, const uint8_t* by { uint64_t path_id = 0; size_t length = 0; - uint8_t* qoe_data = NULL; + const uint8_t* qoe_data = NULL; /* This code assumes that the frame type is already skipped */ if ((bytes = picoquic_parse_qoe_frame(bytes, bytes_max, &path_id, &length, &qoe_data)) != NULL) {
Genesis: Fix LED behavior at init Check power state to change LED state while initialize the LEDs. BRANCH=puff TEST=Check the LED behavior is correct.
@@ -189,6 +189,13 @@ static void led_init(void) { pwm_enable(PWM_CH_LED_RED, 1); pwm_enable(PWM_CH_LED_WHITE, 1); + + if (chipset_in_state(CHIPSET_STATE_ON)) + led_resume(); + else if (chipset_in_state(CHIPSET_STATE_ANY_SUSPEND)) + led_suspend(); + else if (chipset_in_state(CHIPSET_STATE_ANY_OFF)) + led_shutdown(); } DECLARE_HOOK(HOOK_INIT, led_init, HOOK_PRIO_INIT_PWM + 1);
fix raspi net driver
@@ -131,6 +131,7 @@ jobs: - {RTT_BSP: "at32/at32f407-start", RTT_TOOL_CHAIN: "sourcery-arm"} - {RTT_BSP: "smartfusion2", RTT_TOOL_CHAIN: "sourcery-arm"} - {RTT_BSP: "raspberry-pico", RTT_TOOL_CHAIN: "sourcery-arm"} + - {RTT_BSP: "raspberry-pi/raspi4-32", RTT_TOOL_CHAIN: "sourcery-arm"} steps: - uses: actions/checkout@v2 - name: Set up Python
[mechanics_io] support per-axis joint friction laws
@@ -1324,13 +1324,21 @@ class Hdf5(): link(stop_inter, ds1, ds2) nsds.setName(stop_inter, '%s_stop%d'%(str(name),n)) + # The per-axis friction NSL, can be '' if friction is not None: - nslaw = self._nslaws[friction] - fr = joints.JointFrictionR(joint, 0) #TODO axis list + if isinstance(friction,basestring): + friction = [friction] + else: + assert hasattr(friction, '__iter__') + for ax,fr_nslaw in enumerate(friction): + if fr_nslaw == '': # no None in hdf5, use empty string + continue # instead for no NSL on an axis + nslaw = self._nslaws[fr_nslaw] + fr = joints.JointFrictionR(joint, ax) fr_inter = Interaction(nslaw, fr) self._model.nonSmoothDynamicalSystem().\ link(fr_inter, ds1, ds2) - nsds.setName(fr_inter, str(name)+'_friction') + nsds.setName(fr_inter, '%s_friction%d'%(str(name),ax)) def importBoundaryConditions(self, name): if self._broadphase is not None: @@ -2265,7 +2273,8 @@ class Hdf5(): if stops is not None: joint.attrs['stops'] = stops # must be a table of [[axis,pos,dir]..] if friction is not None: - joint.attrs['friction'] = friction # must be an NSL name (e.g. RelayNSL) + joint.attrs['friction'] = friction # must be an NSL name (e.g. + # RelayNSL), or list of same def addBoundaryCondition(self, name, object1, indices=None, bc_class='HarmonicBC',
Rephrase the cookie documentation
@@ -155,40 +155,41 @@ typedef struct clap_param_info { clap_param_info_flags flags; - // This value is optional and set by the plugin. The host will - // set it on all subsequent events regarding this param_id - // or set the cookie to nullptr if the host chooses to - // not implement cookies. + // This value is optional and set by the plugin. + // Its purpose is to provide a fast access to the + // plugin parameter objects by caching its pointer. + // For instance: // - // The plugin must gracefully handle the case of a cookie - // which is nullptr, but can safely assume any cookie - // which is not nullptr is the value it issued. - // - // It is very strongly recommended that the host implement - // cookies. Some plugins may have noticably reduced - // performance when addressing params in hosts without cookies. - // - // The cookie's purpose is to provide a fast access to the - // plugin parameter objects. For instance: - // - // in clap_plugin_params.get_info + // in clap_plugin_params.get_info(): // Parameter *p = findParameter(param_id); // param_info->cookie = p; // - // later, in clap_plugin.process: + // later, in clap_plugin.process(): // - // Parameter *p{nullptr}; - // if (evt->cookie) [[likely]] - // p = (Parameter *)evt->cookie; - // else - // p = -- alternate mechanism -- + // Parameter *p = (Parameter *)event->cookie; + // if (!p) [[unlikely]] + // p = findParameter(event->param_id); // - // where "alternate mechanism" is a mechanism the plugin implements + // where findParameter() is a function the plugin implements // to map parameter ids to internal objects. // - // The host should make no assumption about the - // value of the cookie other than passing it back to the plugin or - // replacing it with nullptr. + // The host will either provide the cookie as issued or nullptr + // in events addressing parameters. + // + // The plugin must gracefully handle the case of a cookie + // which is nullptr, but can safely assume any cookie + // which is not nullptr is the value it issued. + // + // The host should provide the cookie if its retrival is cheaper + // than an hastable lookup, otherwise the plugin may as well do + // the parameter lookup. + // + // TIP: the host may build a cached array of parameters info + // and internally work with parameter index, that way the retrival cost + // of the cookie is equivalent to an array access. + // + // The host should make no assumption about the value of the cookie + // other than passing it back to the plugin or replacing it with nullptr. // // Once set, the cookie is valid until invalidated by a call to // clap_host_params->rescan(CLAP_PARAM_RESCAN_ALL) or when the plugin is
out_td: miniz: move unused def_realloc_func. re: richgel999/miniz/issues/49
@@ -1009,7 +1009,6 @@ void mz_free(void *p) static void *def_alloc_func(void *opaque, size_t items, size_t size) { (void)opaque, (void)items, (void)size; return MZ_MALLOC(items * size); } static void def_free_func(void *opaque, void *address) { (void)opaque, (void)address; MZ_FREE(address); } -static void *def_realloc_func(void *opaque, void *address, size_t items, size_t size) { (void)opaque, (void)address, (void)items, (void)size; return MZ_REALLOC(address, items * size); } const char *mz_version(void) { @@ -2860,6 +2859,8 @@ void *tdefl_write_image_to_png_file_in_memory(const void *pImage, int w, int h, #ifndef MINIZ_NO_ARCHIVE_APIS + static void *def_realloc_func(void *opaque, void *address, size_t items, size_t size) { (void)opaque, (void)address, (void)items, (void)size; return MZ_REALLOC(address, items * size); } + #ifdef MINIZ_NO_STDIO #define MZ_FILE void * #else
vppinfra: fix coverity 249217 Zero-initialize the temporary struct. Type: fix
@@ -1198,7 +1198,7 @@ elog_write_file_not_inline (elog_main_t * em, char *clib_file, int flush_ring) __clib_export clib_error_t * elog_read_file_not_inline (elog_main_t * em, char *clib_file) { - serialize_main_t m; + serialize_main_t m = { 0 }; clib_error_t *error; error = unserialize_open_clib_file (&m, clib_file);
build fix, open urls in emscripten
@@ -1421,7 +1421,14 @@ void tic_sys_open_path(const char* path) void tic_sys_open_url(const char* url) { +#if defined(__EMSCRIPTEN__) + EM_ASM_( + { + window.open(UTF8ToString($0)) + }, url); +#else SDL_OpenURL(url); +#endif } void tic_sys_preseed()
doc: add missing [type]
@@ -188,9 +188,32 @@ description=reserved meta information that will be preserved during the whole # -# For tagging binary/array keys +# Basic information about keys # +[type] +type= enum + short + unsigned_short + long + unsigned_long + long_long + unsigned_long_long + float + double + long_double + char + boolean + octet + any + empty + string +status= implemented +usedby/plugin= type range +description= defines the type of the value, as specified in CORBA + Unlike check/type, type is also used for code generation and within the APIs +example= any + [binary] type= empty status= implemented @@ -434,7 +457,6 @@ example = device mpoint type options [dumpfreq] [passno] # Validation/Checks about the key's value # - [check/type] type= enum short @@ -454,12 +476,16 @@ type= enum FSType string status= implemented -usedby/plugin= type, range +usedby/plugin= type range usedby/tool = web description= defines the type of the value, as specified in CORBA (except of 2: wchar, wstring; and 4 additions: any, empty, FSType, string). enum is implemented by check/enum/# FSType is deprecated + + Unlike type, check/type is *only* used for validation. + + Tools with support for `check/type`, should also always check for `type`. example = any [check/type/min]
Changed location of _type assignment on ast.Exp.ExtraRet
@@ -414,7 +414,6 @@ function FunChecker:expand_function_returns(lhs, rhs) for i = 2, missing_exps + 1 do if last._types[i] then local exp = ast.Exp.ExtraRet(last.loc, last, i) - exp._type = last._types[i] table.insert(rhs, exp) end end @@ -877,7 +876,7 @@ function FunChecker:check_exp_synthesize(exp) exp._type = exp.exp._type elseif tag == "ast.Exp.ExtraRet" then - -- Fallthrough + exp._type = exp.call_exp._types[exp.i] else error("impossible")
Remove unsupported config parameters for Danfoss/Hive thermostats Database still generated unsupported RConfigSchedule and RConfigScheduleOn
@@ -3624,8 +3624,6 @@ static int sqliteLoadAllSensorsCallback(void *user, int ncols, char **colval , c sensor.addItem(DataTypeBool, RConfigDisplayFlipped); sensor.addItem(DataTypeBool, RConfigLocked); sensor.addItem(DataTypeBool, RConfigMountingMode); - sensor.addItem(DataTypeString, RConfigSchedule); - sensor.addItem(DataTypeBool, RConfigScheduleOn); } else if (sensor.modelId() == QLatin1String("AC201")) // OWON AC201 Thermostat {
test: psa_pake: add missing initialization in ecjpake_setup()
@@ -566,7 +566,8 @@ void ecjpake_setup( int alg_arg, int key_type_pw_arg, int key_usage_pw_arg, size_t output_len = 0; const uint8_t unsupp_id[] = "abcd"; const uint8_t password[] = "abcd"; - psa_key_derivation_operation_t key_derivation; + psa_key_derivation_operation_t key_derivation = + PSA_KEY_DERIVATION_OPERATION_INIT; PSA_INIT( );
force clang 7
@@ -28,9 +28,9 @@ jobs: before_install: - brew install ninja - # Linux Clang + # Linux Clang 7 - os: linux - compiler: clang + compiler: clang-7 env: C_COMPILER=clang CXX_COMPILER=clang++ addons: apt:
Build: Fix coverity
@@ -14,7 +14,7 @@ matrix: script: - HOMEBREW_NO_AUTO_UPDATE=1 brew install openssl - - "travis_wait 60 ./macbuild.tool" + - "./macbuild.tool" deploy: provider: releases @@ -51,5 +51,5 @@ matrix: description: "OpenCorePkg" notification_email: $NOTIFICATION_EMAIL build_command_prepend: "./macbuild.tool --skip-build --skip-package && cd UDK ; src=$(/usr/bin/curl -Lfs https://raw.githubusercontent.com/acidanthera/Lilu/master/Lilu/Scripts/covstrap.sh) && eval \"$src\" || exit 1" - build_command: "travis_wait 60 ../macbuild.tool --skip-tests --skip-package RELEASE" + build_command: "../macbuild.tool --skip-tests --skip-package RELEASE" branch_pattern: master
virtio: add tx trace Type: improvement
@@ -69,10 +69,30 @@ format_virtio_device (u8 * s, va_list * args) return s; } +typedef struct +{ + u32 buffer_index; + u32 sw_if_index; + vlib_buffer_t buffer; + generic_header_offset_t gho; +} virtio_tx_trace_t; + static u8 * -format_virtio_tx_trace (u8 * s, va_list * args) +format_virtio_tx_trace (u8 * s, va_list * va) { - s = format (s, "Unimplemented..."); + CLIB_UNUSED (vlib_main_t * vm) = va_arg (*va, vlib_main_t *); + CLIB_UNUSED (vlib_node_t * node) = va_arg (*va, vlib_node_t *); + virtio_tx_trace_t *t = va_arg (*va, virtio_tx_trace_t *); + u32 indent = format_get_indent (s); + + s = format (s, "%U ", format_generic_header_offset, &t->gho); + s = format (s, "%Ubuffer 0x%x: %U", + format_white_space, indent, + t->buffer_index, format_vnet_buffer, &t->buffer); + + s = format (s, "\n%U%U", format_white_space, indent, + format_ethernet_header_with_length, t->buffer.pre_data, + sizeof (t->buffer.pre_data)); return s; } @@ -526,6 +546,44 @@ retry: while (n_left && free_desc_count) { u16 n_added = 0; + virtio_tx_trace_t *t; + + vlib_buffer_t *b0 = vlib_get_buffer (vm, buffers[0]); + if (b0->flags & VLIB_BUFFER_IS_TRACED) + { + t = vlib_add_trace (vm, node, b0, sizeof (t[0])); + t->sw_if_index = vnet_buffer (b0)->sw_if_index[VLIB_TX]; + t->buffer_index = buffers[0]; + if (type == VIRTIO_IF_TYPE_TUN) + { + int is_ip4 = 0, is_ip6 = 0; + + switch (((u8 *) vlib_buffer_get_current (b0))[0] & 0xf0) + { + case 0x40: + is_ip4 = 1; + break; + case 0x60: + is_ip6 = 1; + break; + default: + break; + } + vnet_generic_header_offset_parser (b0, &t->gho, 0, is_ip4, + is_ip6); + } + else + vnet_generic_header_offset_parser (b0, &t->gho, 1, + b0->flags & + VNET_BUFFER_F_IS_IP4, + b0->flags & + VNET_BUFFER_F_IS_IP6); + + clib_memcpy_fast (&t->buffer, b0, + sizeof (*b0) - sizeof (b0->pre_data)); + clib_memcpy_fast (t->buffer.pre_data, vlib_buffer_get_current (b0), + sizeof (t->buffer.pre_data)); + } n_added = add_buffer_to_slot (vm, vif, type, vring, buffers[0], free_desc_count, avail, next, mask, do_gso, csum_offload,
Directory Value: Implement get method
#define ELEKTRA_PLUGIN_DIRECTORYVALUE_H #include <kdbplugin.h> + +#define DIRECTORY_POSTFIX "___dirdata" +#define DIRECTORY_POSTFIX_LENGTH (sizeof "___dirdata") + int elektraDirectoryvalueGet (Plugin * handle, KeySet * ks, Key * parentKey); int elektraDirectoryvalueSet (Plugin * handle, KeySet * ks, Key * parentKey);
Test cancelling msleep()
@@ -36,6 +36,15 @@ coroutine static void delay(int n, int ch) { errno_assert(rc == 0); } +static int canceled = 0; + +coroutine static void canceled_delay(int n) { + int rc = msleep(now() + n); + assert(rc < 0); + errno_assert(errno == ECANCELED); + canceled = 1; +} + int main() { /* Test 'msleep'. */ int64_t deadline = now() + 100; @@ -80,6 +89,15 @@ int main() { rc = hclose(ch); errno_assert(rc == 0); + /* Test cancelling msleep. */ + int hndl = go(canceled_delay(1000)); + errno_assert(hndl >= 0); + rc = msleep(now() + 100); + errno_assert(rc == 0); + rc = hclose(hndl); + errno_assert(rc == 0); + assert(canceled == 1); + return 0; }
Fix previous broken commit
@@ -95,7 +95,7 @@ namespace carto { MapRange zoomRange = options.getZoomRange(); float zoom = GeneralUtils::Clamp(viewState.getZoom() + _zoomDelta, viewState.getMinZoom(), zoomRange.getMax()); double scale = std::pow(2.0f, viewState.getZoom() - zoom); - cglib::mat4x4<double> shiftTransform = projectionSurface->calculateTranslateMatrix(targetPos, focusPos, scale); + cglib::mat4x4<double> shiftTransform = projectionSurface->calculateTranslateMatrix(focusPos, targetPos, 1.0 - scale); focusPos = cglib::transform_point(focusPos, shiftTransform); cameraPos = focusPos + (cglib::transform_point(cameraPos, shiftTransform) - focusPos) * scale;
Fix: check whether socket is connected before attempting to send
@@ -465,13 +465,19 @@ int32_t SOCKETS_Send( Socket_t xSocket, } ctx = ( ss_ctx_t * ) xSocket; - ctx->send_flag = ulFlags; + + if( ( ctx->status & SS_STATUS_CONNECTED ) != SS_STATUS_CONNECTED ) + { + return SOCKETS_ENOTCONN; + } if( 0 > ctx->ip_socket ) { return SOCKETS_SOCKET_ERROR; } + ctx->send_flag = ulFlags; + if( ctx->enforce_tls ) { /* Send through TLS pipe, if negotiated. */
Fix method for finding the installed share/opae directory. The true installation path is unknown when users install from an RPM. All we can count on is the relative positions of the installed bin and share directories.
@@ -60,7 +60,6 @@ def errorExit(msg): # def getDBRootPath(): # CMake will update any variables marked by @ with the proper values. - opae_install_dir = '@CMAKE_INSTALL_PREFIX@' project_src_dir = '@CMAKE_CURRENT_SOURCE_DIR@' db_root_dir = '@PLATFORM_SHARE_DIR@' @@ -77,8 +76,11 @@ def getDBRootPath(): # database. db_root = project_src_dir else: - # The script is installed. - db_root = os.path.join(opae_install_dir, db_root_dir) + # The script is installed. The installation path isn't known + # since it can be changed when using rpm --prefix. We do + # guarantee that the OPAE bin and share directories have the + # same parent. + db_root = os.path.join(parent_dir, db_root_dir) else: # Running out of the source tree db_root = parent_dir @@ -782,10 +784,10 @@ def findPlatforms(db_path): platforms = set() # Walk all the directories for db_dir in db_path: - try: # Look for JSON files in each directory for fn in os.listdir(db_dir): if fn.endswith('.json'): + try: with open(os.path.join(db_dir, fn)) as f: # Does it have a platform name field? db = json.load(f) @@ -804,10 +806,10 @@ def findAfuIfcs(db_path): afus = set() # Walk all the directories for db_dir in db_path: - try: # Look for JSON files in each directory for fn in os.listdir(db_dir): if fn.endswith('.json'): + try: with open(os.path.join(db_dir, fn)) as f: db = json.load(f) # If it has a module-arguments entry assume the file is
Validate parser parameter to XML_SetXmlDeclHandler
@@ -1610,6 +1610,7 @@ XML_SetEntityDeclHandler(XML_Parser parser, void XMLCALL XML_SetXmlDeclHandler(XML_Parser parser, XML_XmlDeclHandler handler) { + if (parser != NULL) xmlDeclHandler = handler; }
graph-delete: fix syntax error
=/ m (strand ,~) ^- form:m =/ tags=(list [=tag tagged=(set ship)]) - %+ skim ~(tap by tags.group) |= [=tag tagged=(set ship)] + %+ skim ~(tap by tags.group) + |= [=tag tagged=(set ship)] ?@ tag %.n ?& =(app.tag %graph) =(resource.tag graph)
Add support for getsockopt with SO_ERROR. This is cherry picked from since it is not related.
@@ -2406,6 +2406,20 @@ usrsctp_getsockopt(struct socket *so, int level, int option_name, *option_len = (socklen_t)sizeof(struct linger); return (0); } + break; + case SO_ERROR: + if (*option_len < (socklen_t)sizeof(int)) { + errno = EINVAL; + return (-1); + } else { + int *intval; + + intval = (int *)option_value; + *intval = so->so_error; + *option_len = (socklen_t)sizeof(int); + return (0); + } + break; default: errno = EINVAL; return (-1);
nrf/machine/adc: Allow to pass a Pin object in to ADC constructor.
@@ -91,10 +91,19 @@ void adc_init0(void) { } STATIC int adc_find(mp_obj_t id) { - // given an integer id - int adc_id = mp_obj_get_int(id); - - int adc_idx = adc_id; + int adc_idx; + if (mp_obj_is_int(id)) { + // Given an integer id + adc_idx = mp_obj_get_int(id); + } else { + // Assume it's a pin-compatible object and convert it to an ADC channel number + mp_hal_pin_obj_t pin = mp_hal_get_pin_obj(id); + if (pin->adc_num & PIN_ADC1) { + adc_idx = pin->adc_channel; + } else { + mp_raise_ValueError("invalid Pin for ADC"); + } + } if (adc_idx >= 0 && adc_idx < MP_ARRAY_SIZE(machine_adc_obj) && machine_adc_obj[adc_idx].id != (uint8_t)-1) {
init/os_bringup : Move the preapp task creation preapp task should be created regardless of Binary Manager until now. It will be modified to be merged into binary manager.
@@ -252,15 +252,6 @@ static inline void os_do_appstart(void) net_initialize(); #endif -#ifdef CONFIG_BINARY_MANAGER - svdbg("Starting binary manager thread\n"); - - pid = kernel_thread(BINARY_MANAGER_NAME, BINARY_MANAGER_PRIORITY, BINARY_MANAGER_STACKSIZE, binary_manager, NULL); - if (pid < 0) { - sdbg("Failed to start binary manager"); - } -#endif - #ifdef CONFIG_SYSTEM_PREAPP_INIT svdbg("Starting application init task\n"); @@ -275,6 +266,15 @@ static inline void os_do_appstart(void) } #endif +#ifdef CONFIG_BINARY_MANAGER + svdbg("Starting binary manager thread\n"); + + pid = kernel_thread(BINARY_MANAGER_NAME, BINARY_MANAGER_PRIORITY, BINARY_MANAGER_STACKSIZE, binary_manager, NULL); + if (pid < 0) { + sdbg("Failed to start binary manager"); + } +#endif + #ifdef CONFIG_ENABLE_HEAPINFO heapinfo_drv_register(); #endif
list of changes for 0.7-1
-aomp (0.7-0) UNRELEASED; urgency=medium +aomp (0.7-1) UNRELEASED; urgency=medium * Initial release of aomp is 0.3-2 * Please see example in /usr/lib/aomp/examples/vmuldemo @@ -221,6 +221,27 @@ aomp (0.7-0) UNRELEASED; urgency=medium * hcc now build with rocm 2.6.x * roct and rocr are now build from rocm 2.6.x sources * fixes for a number of new test cases - * (FIXME: More details on this release will be provided later) + * + * 0.7-1 + * move to rocm 2.7.x sources + * fix hip issues and add hipcc and other hip scripts + * Added rocminfo utils to support hipcc and hipconfig + * Improvements to the amdgcn deviceRTLs to support common GPU deviceRTL + * Added logic to use the FileID and LineNum of parent file (the includer) + * instead of the include file where the target region is located. + * This avoids creating symbols with the same name when including a + * header file that has a c++ template with a target region. + * For OpenMP+HIP, hip will be on when processing host bc, so clang must + * be told this is IR and not HIP input. + * Fixed the HIP toolchain so that the custom linker tool build-select + * is not called for hip applications. It is only called for openmp. + * This fixes problem where kernels are not seen when multiple source + * files are specified. + * Cleaned up some things to lessen the patch from upstream HIP.cpp + * Added the hip header hip_host_runtime_api.h to clang/lib/Headers to + * avoid modifications to the hip repository. + * Check if an archive contains device code for AMDGCN. + * Cleanup deviceRTL for amdgcn to prepare for common GPU deviceRTL + * Defer issue with reductions till 0.7-2. - -- Greg Rodgers <[email protected]> Fri, 02 Aug 2019 07:39:37 -0500 + -- Greg Rodgers <[email protected]> Wed, 04 Sep 2019 14:24:40 -0500
DEV enqueue missing state/lastupdated event to fix rule handling Noticeable for example in the Hue Dimmer DDF which stopped processing of rules on button events.
@@ -1177,6 +1177,7 @@ void DeRestPluginPrivate::apsdeDataIndicationDevice(const deCONZ::ApsDataIndicat if (lastUpdated) { lastUpdated->setValue(item->lastSet()); + enqueueEvent(Event(r->prefix(), lastUpdated->descriptor().suffix, idItem->toString(), device->key())); } } }
spiffs, tests: increase stack size for a test
@@ -503,11 +503,13 @@ void test_spiffs_concurrent(const char* filename_prefix) read_write_test_arg_t args1 = READ_WRITE_TEST_ARG_INIT(names[0], 1); read_write_test_arg_t args2 = READ_WRITE_TEST_ARG_INIT(names[1], 2); + const uint32_t stack_size = 3072; + printf("writing f1 and f2\n"); const int cpuid_0 = 0; const int cpuid_1 = portNUM_PROCESSORS - 1; - xTaskCreatePinnedToCore(&read_write_task, "rw1", 2048, &args1, 3, NULL, cpuid_0); - xTaskCreatePinnedToCore(&read_write_task, "rw2", 2048, &args2, 3, NULL, cpuid_1); + xTaskCreatePinnedToCore(&read_write_task, "rw1", stack_size, &args1, 3, NULL, cpuid_0); + xTaskCreatePinnedToCore(&read_write_task, "rw2", stack_size, &args2, 3, NULL, cpuid_1); xSemaphoreTake(args1.done, portMAX_DELAY); printf("f1 done\n"); @@ -523,10 +525,10 @@ void test_spiffs_concurrent(const char* filename_prefix) printf("reading f1 and f2, writing f3 and f4\n"); - xTaskCreatePinnedToCore(&read_write_task, "rw3", 2048, &args3, 3, NULL, cpuid_1); - xTaskCreatePinnedToCore(&read_write_task, "rw4", 2048, &args4, 3, NULL, cpuid_0); - xTaskCreatePinnedToCore(&read_write_task, "rw1", 2048, &args1, 3, NULL, cpuid_0); - xTaskCreatePinnedToCore(&read_write_task, "rw2", 2048, &args2, 3, NULL, cpuid_1); + xTaskCreatePinnedToCore(&read_write_task, "rw3", stack_size, &args3, 3, NULL, cpuid_1); + xTaskCreatePinnedToCore(&read_write_task, "rw4", stack_size, &args4, 3, NULL, cpuid_0); + xTaskCreatePinnedToCore(&read_write_task, "rw1", stack_size, &args1, 3, NULL, cpuid_0); + xTaskCreatePinnedToCore(&read_write_task, "rw2", stack_size, &args2, 3, NULL, cpuid_1); xSemaphoreTake(args1.done, portMAX_DELAY); printf("f1 done\n");
Fix a typo in gl/raster.c
@@ -74,7 +74,7 @@ void gl4es_glViewport(GLint x, GLint y, GLsizei width, GLsizei height) { glstate->raster.viewport.height = height; #if !defined(NO_EGL) && !defined(NOX11) if(!globals4es.usefbo && !globals4es.usefb && glstate->fbo.fbo_draw->id==0) { - // check if underlying EGL suface chnage dimension, and reflect that to main fbo size + // check if underlying EGL surface change dimension, and reflect that to main fbo size refreshMainFBO(); } #endif
Give normals a slightly higher search quality threshold
@@ -664,6 +664,7 @@ astcenc_error astcenc_config_init( // Normals are prone to blocking artifacts on smooth curves // so force compressor to try harder here ... config.b_deblock_weight = 1.8f; + config.tune_db_limit *= 1.03f; if (flags & ASTCENC_FLG_USE_PERCEPTUAL) {
path BUGFIX set var on failed loop condition Fixes
@@ -983,7 +983,7 @@ ly_path_eval_partial(const struct ly_path *path, const struct lyd_node *start, L struct lyd_node **match) { LY_ARRAY_COUNT_TYPE u; - struct lyd_node *prev_node = NULL, *node = NULL, *target; + struct lyd_node *prev_node = NULL, *elem, *node = NULL, *target; uint64_t pos; assert(path && start); @@ -1006,8 +1006,10 @@ ly_path_eval_partial(const struct ly_path *path, const struct lyd_node *start, L case LY_PATH_PREDTYPE_POSITION: /* we cannot use hashes and want an instance on a specific position */ pos = 1; - LYD_LIST_FOR_INST(start, path[u].node, node) { + node = NULL; + LYD_LIST_FOR_INST(start, path[u].node, elem) { if (pos == path[u].predicates[0].position) { + node = elem; break; } ++pos;
Add correct reorder and buffering values to VPS, as they were only in SPS
@@ -100,6 +100,7 @@ static void encoder_state_write_bitstream_vid_parameter_set(bitstream_t* stream, #ifdef KVZ_DEBUG printf("=========== Video Parameter Set ID: 0 ===========\n"); #endif + const encoder_control_t* encoder = state->encoder_control; WRITE_U(stream, 0, 4, "vps_video_parameter_set_id"); WRITE_U(stream, 3, 2, "vps_reserved_three_2bits" ); @@ -112,12 +113,18 @@ static void encoder_state_write_bitstream_vid_parameter_set(bitstream_t* stream, WRITE_U(stream, 0, 1, "vps_sub_layer_ordering_info_present_flag"); - //for each layer - for (int i = 0; i < 1; i++) { - WRITE_UE(stream, 1, "vps_max_dec_pic_buffering"); - WRITE_UE(stream, 0, "vps_num_reorder_pics"); - WRITE_UE(stream, 0, "vps_max_latency_increase"); + if (encoder->cfg.gop_lowdelay) { + const int dpb = encoder->cfg.ref_frames; + WRITE_UE(stream, dpb - 1, "vps_max_dec_pic_buffering_minus1"); + WRITE_UE(stream, 0, "vps_max_num_reorder_pics"); } + else { + // Clip to non-negative values to prevent problems with GOP=0 + const int dpb = MIN(16, encoder->cfg.gop_len); + WRITE_UE(stream, MAX(dpb - 1, 0), "vps_max_dec_pic_buffering_minus1"); + WRITE_UE(stream, MAX(encoder->cfg.gop_len - 1, 0), "vps_max_num_reorder_pics"); + } + WRITE_UE(stream, 0, "vps_max_latency_increase"); WRITE_U(stream, 0, 6, "vps_max_nuh_reserved_zero_layer_id"); WRITE_UE(stream, 0, "vps_max_op_sets_minus1");
iOS: fix issue with clean BD encryption key when restore from backup
@@ -281,6 +281,11 @@ BOOL isPathIsSymLink(NSFileManager *fileManager, NSString* path) { BOOL contentChanged = force_update_content; isNewInstallation = !(bool)([fileManager fileExistsAtPath:filePathOld]); + // additional check for backup restore + NSString *db_folder = [rhoDBRoot stringByAppendingPathComponent:@"db"]; + if ([fileManager fileExistsAtPath:db_folder]) { + isNewInstallation = false; + } if (nameChanged) contentChanged = YES;
revert damn clion commit
@@ -67,16 +67,6 @@ public: inline bool has(const K& key) const { return this->find(key) != this->end(); } - - V& at(const K& __k) { - Y_ASSERT(has(__k)); - return TBase::at(__k); - } - - const V& at(const K& __k) const { - Y_ASSERT(has(__k)); - return TBase::at(__k); - } }; template <class K, class V, class Less, class A> @@ -143,6 +133,4 @@ public: inline bool has(const K& key) const { return this->find(key) != this->end(); } - - };
docs: add suggestions from API review to keyCopy() documentation Added: Precondition Invariant Postcondition Changed: moved Basic Usage Snippet in front of other examples Use for for list of possible errors
@@ -245,7 +245,7 @@ Key * keyVNew (const char * name, va_list va) } /** - * Copy or Clear a key. + * Copy or clear a key. * * Depending on the chosen @p flags keyCopy() only copies * certain parts of @p source into @p dest. @@ -276,6 +276,12 @@ Key * keyVNew (const char * name, va_list va) * i.e. all key data supported by keyCopy() will be copied * from @p source to @p dest. * + * Use this function when you need to copy into an existing key, e.g. + * because it was passed by a pointer in a function + * you can do so: + * + * @snippet keyCopy.c Basic Usage + * * Most often you will want to duplicate an existing key. * For this purpose the alias keyDup() exists. Calling * @@ -285,12 +291,6 @@ Key * keyVNew (const char * name, va_list va) * * @snippet keyCopy.c Duplicate Key * - * But when you need to copy into an existing key, e.g. - * because it was passed by a pointer in a function - * you can do so: - * - * @snippet keyCopy.c Basic Usage - * * The reference counter will not be changed for both keys. * Affiliation to keysets are also not affected. * @@ -307,19 +307,28 @@ Key * keyVNew (const char * name, va_list va) * * @snippet keyCopy.c Clear * + * @pre dest must be a valid Key (created with keyNew) + * @pre source must be a valid Key or NULL + * + * @invariant Key name stays valid until delete + * + * @post Value from Key source is written to Key dest + * * @param dest the key which will be written to * @param source the key which should be copied * or NULL to clear the data of @p dest * @param flags specifies which parts of the key should be copied + * @see keyDup() + * @since 0.9.5 * @ingroup key * - * @return @p dest or NULL, in case of error. Possible errors are: - * - memory allocation problems - * - a part of @p dest that should be modified (e.g. name, value) was marked read-only, + * @return @p dest + * @retval NULL on memory allocation problems + * @retval NULL when a part of @p dest that should be modified (e.g. name, value) was marked read-only, * e.g. the name of @p dest will be read-only if @p dest is part of a KeySet - * - @p dest is NULL - * - both #KEY_CP_VALUE and #KEY_CP_STRING are set in @p flags - * - both #KEY_CP_STRING is set in @p flags and @p source is a binary key (keyIsBinary()) + * @retval NULL when @p dest is NULL + * @retval NULL when both #KEY_CP_VALUE and #KEY_CP_STRING are set in @p flags + * @retval NULL when both #KEY_CP_STRING is set in @p flags and @p source is a binary key (keyIsBinary()) */ Key * keyCopy (Key * dest, const Key * source, elektraCopyFlags flags) {
odyssey: document listen section
@@ -91,7 +91,7 @@ log_syslog_facility "daemon" # Verbose logging. # # Enable verbose logging of all events, which will generate a log of -# information detailed useful for development or testing. +# detailed information useful for development or testing. # # It is also possible to enable verbose logging for specific users # (see routes section). @@ -235,22 +235,54 @@ keepalive 7200 # # Global limit of client connections. # -# Comment 'client_max' to disable the limit. +# Comment 'client_max' to disable the limit. On client limit reach, Odyssey will +# reply with 'too many connections'. # client_max 100 +### +### LISTEN +### +# +# Listen section defines listening servers used for accepting +# incoming client connections. +# +# It is possible to define several Listen sections. Odyssey will listen on +# every specified server. +# +# Odyssey will fail in case it could not bind on any resolved address. +# listen { +# Bind address. host "*" + +# Listen port. port 6432 + +# TCP listen backlog. backlog 128 + +# Enable TLS support. # tls "disable" + +# TLS certificate file. # tls_cert_file "" + +# TLS key file. # tls_key_file "" + +# TLS CA file. # tls_ca_file "" + +# TLS protocols to accept. # tls_protocols "" } +### +### ROUTING +### + storage "local" { type "local" }
emac: reduce rx burst length to avoid SPI DMA collision bug See <https://github.com/espressif/esp-idf/issues/7380>.
@@ -297,7 +297,7 @@ void emac_hal_init_dma_default(emac_hal_context_t *hal) /* Use Separate PBL */ emac_ll_use_separate_pbl_enable(hal->dma_regs, true); /* Set Rx/Tx DMA Burst Length */ - emac_ll_set_rx_dma_pbl(hal->dma_regs, EMAC_LL_DMA_BURST_LENGTH_32BEAT); + emac_ll_set_rx_dma_pbl(hal->dma_regs, EMAC_LL_DMA_BURST_LENGTH_8BEAT); emac_ll_set_prog_burst_len(hal->dma_regs, EMAC_LL_DMA_BURST_LENGTH_32BEAT); /* Enable Enhanced Descriptor,8 Words(32 Bytes) */ emac_ll_enhance_desc_enable(hal->dma_regs, true);
vhost-user interface deletion leaks memory.
@@ -2386,12 +2386,19 @@ VLIB_REGISTER_NODE (vhost_user_process_node,static) = { static void vhost_user_term_if (vhost_user_intf_t * vui) { + int q; + // Delete configured thread pinning vec_reset_length (vui->workers); // disconnect interface sockets vhost_user_if_disconnect (vui); vhost_user_update_iface_state (vui); + for (q = 0; q < VHOST_VRING_MAX_N; q++) + { + clib_mem_free ((void *) vui->vring_locks[q]); + } + if (vui->unix_server_index != ~0) { //Close server socket
harness: fix release build to ignore unused variables
@@ -167,7 +167,7 @@ class HakeReleaseBuild(HakeBuildBase): def _get_hake_conf(self, *args): conf = super(HakeReleaseBuild, self)._get_hake_conf(*args) - conf["cOptFlags"] = "[\"-O2\", \"-DNDEBUG\"]" + conf["cOptFlags"] = "[\"-O2\", \"-DNDEBUG\", \"-Wno-unused-variable\"]" return conf class HakeTestBuild(HakeBuildBase):
naive: more style
=^ f state %- n - :* initial-state ::state? + :+ initial-state ::state? %bat =< q %- gen-tx %set-management-proxy ::tx-type.cur-event why does the tx-type not work? (addr common-mgmt) (~(got by default-own-keys) cur-ship) - == ?: .= =< address.management-proxy.own (~(got by points.state) cur-ship) (addr common-mgmt)
Bazel build: Update Imath version to 3.1.2
@@ -22,14 +22,14 @@ def openexr_deps(): ) # sha256 was determined using: - # curl -sL https://github.com/AcademySoftwareFoundation/Imath/archive/refs/tags/v3.1.0.tar.gz --output Imath-3.1.0.tar.gz - # sha256sum Imath-3.1.0.tar.gz + # curl -sL https://github.com/AcademySoftwareFoundation/Imath/archive/refs/tags/v3.1.2.tar.gz --output Imath-3.1.2.tar.gz + # sha256sum Imath-3.1.2.tar.gz # If the hash is incorrect Bazel will report an error and show the actual hash of the file. maybe( http_archive, name = "Imath", build_file = "@openexr//:bazel/third_party/Imath.BUILD", - strip_prefix = "Imath-3.1.1", - sha256 = "a63fe91d8d0917acdc31b0c9344b1d7dbc74bf42de3e3ef5ec982386324b9ea4", - urls = ["https://github.com/AcademySoftwareFoundation/Imath/archive/refs/tags/v3.1.1.tar.gz"], + strip_prefix = "Imath-3.1.2", + sha256 = "f21350efdcc763e23bffd4ded9bbf822e630c15ece6b0697e2fcb42737c08c2d", + urls = ["https://github.com/AcademySoftwareFoundation/Imath/archive/refs/tags/v3.1.2.tar.gz"], )
[io] add an option for plotting the charts in vview (charts are no longer working in vtk8 )
@@ -83,6 +83,7 @@ class VViewOptions(object): self.gen_para_script = False self.with_edges = False self.with_random_color = True + self.with_charts= 0 ## Print usage information def usage(self, long=False): print(__doc__); print() @@ -97,6 +98,7 @@ class VViewOptions(object): [--normalcone-ratio = <float value>] [--advance=<'fps' or float value>] [--fps=float value] [--camera=x,y,z] [--lookat=x,y,z] [--up=x,y,z] [--clipping=near,far] [--ortho=scale] + [--with-charts=<int value>] [--visible=all,avatars,contactors] [--with-edges] """) else: @@ -148,6 +150,8 @@ class VViewOptions(object): --ortho=scale start in ortho mode with given parallel scale (default=perspective) + --with-charts=value + display convergence charts --visible=all all: view all contactors and avatars avatars: view only avatar if an avatar is defined (for each @@ -171,7 +175,7 @@ class VViewOptions(object): 'occlusion-ratio=', 'cf-scale=', 'normalcone-ratio=', 'advance=', 'fps=', - 'camera=', 'lookat=', 'up=', 'clipping=', 'ortho=', 'visible=', 'with-edges', 'with-fixed-color']) + 'camera=', 'lookat=', 'up=', 'clipping=', 'ortho=', 'visible=', 'with-edges', 'with-fixed-color', 'with-charts=']) self.configure(opts, args) except getopt.GetoptError as err: sys.stderr.write('{0}\n'.format(str(err))) @@ -245,6 +249,9 @@ class VViewOptions(object): elif o == '--ortho': self.initial_camera[3] = float(a) + elif o == '--with-charts=': + self.with_charts = int(a) + elif o == '--visible': self.visible_mode = a @@ -275,6 +282,8 @@ class VExportOptions(VViewOptions): self.stride = 1 self.nprocs = 1 self.gen_para_script = False + + def usage(self, long=False): print(__doc__); print() print('Usage: {0} [--help] [--version] [--ascii] <HDF5>' @@ -525,7 +534,7 @@ class InputObserver(): self._current_id.SetNumberOfValues(1) self._current_id.SetValue(0, self.vview.io_reader._index) - + if self.vview.opts.with_charts: self.vview.iter_plot.SetSelection(self._current_id) self.vview.prec_plot.SetSelection(self._current_id) @@ -2676,6 +2685,7 @@ class VView(object): self.setup_vtk_renderer() self.setup_sliders(self.io_reader._times) + if self.opts.with_charts: self.setup_charts() self.setup_axes()
[components/drivers/wlan] remove duplicate configuration in wlan_cmd.c, this configuration is included in the dhcp_server.c
@@ -256,37 +256,11 @@ int wifi_softap_setup_netif(struct netif *netif) { if (netif) { - ip_addr_t *ip; - ip_addr_t addr; - #ifdef RT_LWIP_DHCP /* Stop DHCP Client */ dhcp_stop(netif); #endif - /* set ipaddr, gw, netmask */ - ip = (ip_addr_t *)&addr; - - /* set ip address */ - if (ipaddr_aton("192.168.169.1", &addr)) - { - netif_set_ipaddr(netif, ip); - } - - /* set gateway address */ - if ( ipaddr_aton("192.168.169.1", &addr)) - { - netif_set_gw(netif, ip); - } - - /* set netmask address */ - if ( ipaddr_aton("255.255.255.0", &addr)) - { - netif_set_netmask(netif, ip); - } - - netif_set_up(netif); - #ifdef LWIP_USING_DHCPD { char name[8];
Refactored a few things for clarity
@@ -66,8 +66,6 @@ static void _flush_handler(void) continue; if (f->gen > ci->inval_gen) break; - if ((f->cpu_mask & U64_FROM_BIT(ci->id)) == 0) - continue; if (!full_flush) { if (f->flush) full_flush = true; @@ -149,6 +147,10 @@ static void queue_flush_service() } } +/* N.B. It is possible for the completion to be run with flush_lock held in + * low flush resource situations, so it must not invoke operations that + * could call page_invalidate_sync again or else face deadlock. + */ void page_invalidate_sync(flush_entry f, thunk completion) { if (initialized) { @@ -187,9 +189,11 @@ void page_invalidate_sync(flush_entry f, thunk completion) flush_entry get_page_flush_entry() { - if (initialized) { flush_entry fe; + if (!initialized) + return 0; + u64 flags = irq_disable_save(); /* Do the flush work here if this cpu gets too far behind which * can happen with large mapping operations */ @@ -205,8 +209,6 @@ flush_entry get_page_flush_entry() runtime_memset((void *)fe, 0, sizeof(*fe)); return fe; } - return 0; -} void init_flush(heap h) {
Use CI image for nightly job
name: Nightly Testing on: + pull_request: + branches: + - master + - "v[0-9]+.[0-9]+" + paths: + - .github/workflows/nightly_testing.yaml workflow_dispatch: inputs: branch: @@ -18,37 +24,34 @@ env: MESON_TESTTHREADS: 1 jobs: + determine-tag: + runs-on: ubuntu-latest + continue-on-error: false + outputs: + tag: ${{ steps.determine-tag.outputs.tag }} + + steps: + - name: Determine tag + id: determine-tag + run: | + if [ "$GITHUB_EVENT_NAME" = "pull_request" ]; then + echo "::set-output name=tag::$GITHUB_BASE_REF" + else + echo "::set-output name=tag::$GITHUB_REF_NAME" + fi + nightly_ub: - runs-on: ${{ matrix.os }} + runs-on: ubuntu-latest + needs: + - determine-tag + container: + image: ghcr.io/hse-project/ci-images/ubuntu-20.04:${{ needs.determine-tag.outputs.tag }} strategy: fail-fast: false matrix: - os: [ubuntu-latest] buildtype: [release, debug] steps: - - name: Freeing up disk space on CI system - run: | - df -h - echo "Removing large packages" - sudo apt-get remove -y azure-cli google-cloud-sdk hhvm \ - google-chrome-stable firefox powershell mono-devel - sudo apt-get autoremove -y - sudo apt-get clean - echo "Removing large directories" - # deleting 15GB - rm -rf /usr/share/dotnet/ - df -h - - - name: Initialize - run: | - sudo apt-get update - sudo apt-get install build-essential ninja-build pkg-config \ - libbsd-dev openjdk-8-jdk libmicrohttpd-dev liburcu-dev libyaml-dev \ - liblz4-dev libcurl4-openssl-dev libmongoc-1.0-0 libbson-1.0-0 \ - libssl-dev libsasl2-dev - sudo python3 -m pip install meson==0.62.2 Cython - - name: Checkout HSE uses: actions/checkout@v3 with: @@ -100,7 +103,7 @@ jobs: uses: actions/cache@v3 with: path: subprojects/packagecache - key: meson-packagecache-${{ matrix.os }}-${{ hashFiles('subprojects/*.wrap') }} + key: meson-packagecache-ubuntu-20.04-${{ hashFiles('subprojects/*.wrap') }} - name: Setup run: |
Get rid of links on badges
# LittlevGL - Free Open-source Embedded GUI Library -![price](https://img.shields.io/badge/price-FREE-brightgreen.svg) -![status](https://img.shields.io/badge/status-ACTIVE-brightgreen.svg) -![licence](https://img.shields.io/badge/licence-MIT-blue.svg) -![version](https://img.shields.io/badge/version-5.2-blue.svg) -![topic](https://img.shields.io/badge/topic-GUI-yellow.svg) -![target](https://img.shields.io/badge/target-EMBEDDED-yellow.svg) -![language](https://img.shields.io/badge/language-C/C++-yellow.svg) +[![price](https://img.shields.io/badge/price-FREE-brightgreen.svg)](#) +[![status](https://img.shields.io/badge/status-ACTIVE-brightgreen.svg)](#) +[![licence](https://img.shields.io/badge/licence-MIT-blue.svg)](#) +[![version](https://img.shields.io/badge/version-5.2-blue.svg)](#) +[![topic](https://img.shields.io/badge/topic-GUI-yellow.svg)](#) +[![target](https://img.shields.io/badge/target-EMBEDDED-yellow.svg)](#) +[![language](https://img.shields.io/badge/language-C/C++-yellow.svg)](#) -![LittlevGL cover](https://littlevgl.com/github/cover3.gif) +[![LittlevGL cover](https://littlevgl.com/github/cover3.gif)](#) **LittlevGL provides everything you need to create a Graphical User Interface (GUI) on embedded systems with easy-to-use graphical elements, beautiful visual effects and low memory footprint.** :star: **Star the project if you like it!** :star: <br> -![twitter](https://littlevgl.com/github/twitter.png) **And share with your firends** [![Tweet](https://img.shields.io/twitter/url/http/shields.io.svg?style=social)](https://twitter.com/intent/tweet?text=LittlevGL%20is%20a%20free%20and%20open%20source%20embedded%20GUI%20library%20with%20easy-to-use%20graphical%20elements,%20beautiful%20visual%20effects%20and%20low%20memory%20footprint.&url=https://littlevgl.com/&hashtags=littlevgl,embedded,gui,free,opensource) +[![twitter](https://littlevgl.com/github/twitter.png)](#) **And share with your firends** [![Tweet](https://img.shields.io/twitter/url/http/shields.io.svg?style=social)](https://twitter.com/intent/tweet?text=LittlevGL%20is%20a%20free%20and%20open%20source%20embedded%20GUI%20library%20with%20easy-to-use%20graphical%20elements,%20beautiful%20visual%20effects%20and%20low%20memory%20footprint.&url=https://littlevgl.com/&hashtags=littlevgl,embedded,gui,free,opensource) ### [Website](https://littlevgl.com) &middot; [Live demo](https://littlevgl.com/live-demo) &middot; [Simulator](https://docs.littlevgl.com/#PC-simulator) &middot; [Docs](https://docs.littlevgl.com/) &middot; [Blog](https://blog.littlevgl.com/)
fix features_table
@@ -44,9 +44,9 @@ tb_int_t xm_os_features(lua_State* lua) // features const char* features_table[] = { # ifdef XM_CONFIG_API_HAVE_READLINE - "readline" + "readline", # endif - , tb_null + tb_null }; // new array
stlink_open_usb: remove wrong comment, we do handle protocoll (?) v1 for stlinkv1
@@ -1027,7 +1027,6 @@ stlink_t *stlink_open_usb(enum ugly_loglevel verbose, bool reset, char serial[ST } slu->sg_transfer_idx = 0; - // TODO - never used at the moment, always CMD_SIZE slu->cmd_len = (slu->protocoll == 1) ? STLINK_SG_SIZE: STLINK_CMD_SIZE; // Initialize stlink version (sl->version)
crsf: update air rate enum
@@ -23,10 +23,14 @@ typedef enum { RATE_LORA_25HZ, RATE_LORA_50HZ, RATE_LORA_100HZ, + RATE_LORA_100HZ_8CH, RATE_LORA_150HZ, RATE_LORA_200HZ, RATE_LORA_250HZ, + RATE_LORA_333HZ_8CH, RATE_LORA_500HZ, + RATE_DVDA_250HZ, + RATE_DVDA_500HZ, RATE_FLRC_500HZ, RATE_FLRC_1000HZ, } crsf_air_rates_t; @@ -104,15 +108,20 @@ uint16_t rx_serial_crsf_smoothing_cutoff() { case RATE_LORA_50HZ: return 22; case RATE_LORA_100HZ: + case RATE_LORA_100HZ_8CH: return 45; case RATE_LORA_150HZ: return 67; case RATE_LORA_200HZ: return 90; case RATE_LORA_250HZ: + case RATE_DVDA_250HZ: return 112; + case RATE_LORA_333HZ_8CH: + return 150; case RATE_LORA_500HZ: case RATE_FLRC_500HZ: + case RATE_DVDA_500HZ: return 225; case RATE_FLRC_1000HZ: return 450; @@ -130,15 +139,19 @@ static uint16_t telemetry_interval() { case RATE_LORA_50HZ: return 3; case RATE_LORA_100HZ: + case RATE_LORA_100HZ_8CH: return 6; case RATE_LORA_150HZ: return 9; case RATE_LORA_200HZ: return 12; case RATE_LORA_250HZ: + case RATE_DVDA_250HZ: + case RATE_LORA_333HZ_8CH: return 16; case RATE_LORA_500HZ: case RATE_FLRC_500HZ: + case RATE_DVDA_500HZ: return 32; case RATE_FLRC_1000HZ: return 64;
Handle more wifi cases to detect configuration
@@ -311,6 +311,11 @@ void DeRestPluginPrivate::initWiFi() pollDatabaseWifiTimer->start(10000); } + if (gwWifiMgmt & WIFI_MGMT_ACTIVE) + { + return; + } + if (gwWifiName == QLatin1String("Phoscon-Gateway-0000")) { // proceed to correct these @@ -2493,14 +2498,28 @@ int DeRestPluginPrivate::putWifiUpdated(const ApiRequest &req, ApiResponse &rsp) updateEtag(gwConfigEtag); if (type == QLatin1String("accesspoint") && !ssid.isEmpty()) + { + if (gwWifi == QLatin1String("configured")) + { + if ((gwWifiMgmt & WIFI_MGTM_HOSTAPD) == 0) + { + gwWifi = QLatin1String("not-configured"); // not configured by deCONZ + } + } + + if (gwWifiMgmt & WIFI_MGMT_ACTIVE) { gwWifiType = QLatin1String("accesspoint"); + } gwWifiName = ssid; } if (type == QLatin1String("client") && !ssid.isEmpty()) + { + if (gwWifiMgmt & WIFI_MGMT_ACTIVE) { gwWifiType = QLatin1String("client"); + } gwWifiClientName = ssid; } }
by default, do not load plugins
@@ -875,9 +875,9 @@ picoquic_cnx_t* picoquic_create_cnx(picoquic_quic_t* quic, } register_protocol_operations(cnx); - plugin_plug_elf(cnx, PROTOOPID_SET_NEXT_WAKE_TIME, "plugins/basic/set_nxt_wake_time.o"); - plugin_plug_elf(cnx, PROTOOPID_RETRANSMIT_NEEDED_BY_PACKET, "plugins/basic/retransmit_needed_by_packet.o"); - plugin_plug_elf(cnx, PROTOOPID_RETRANSMIT_NEEDED, "plugins/basic/retransmit_needed.o"); + // plugin_plug_elf(cnx, PROTOOPID_SET_NEXT_WAKE_TIME, "plugins/basic/set_nxt_wake_time.o"); + // plugin_plug_elf(cnx, PROTOOPID_RETRANSMIT_NEEDED_BY_PACKET, "plugins/basic/retransmit_needed_by_packet.o"); + // plugin_plug_elf(cnx, PROTOOPID_RETRANSMIT_NEEDED, "plugins/basic/retransmit_needed.o"); return cnx; }
Update OBJECT_HEADER (not backwards compatible with Win7/8)
@@ -291,13 +291,12 @@ ULONG ObpGetHandleAttributes( typedef struct _OBJECT_CREATE_INFORMATION OBJECT_CREATE_INFORMATION, *POBJECT_CREATE_INFORMATION; -// This structure is not correct on Windows 7, but the offsets we need are still correct. typedef struct _OBJECT_HEADER { - LONG PointerCount; + LONGLONG PointerCount; union { - LONG HandleCount; + LONGLONG HandleCount; PVOID NextToFree; }; EX_PUSH_LOCK Lock; @@ -309,7 +308,6 @@ typedef struct _OBJECT_HEADER { UCHAR DbgRefTrace : 1; UCHAR DbgTracePermanent : 1; - UCHAR Reserved : 6; }; }; UCHAR InfoMask; @@ -328,6 +326,7 @@ typedef struct _OBJECT_HEADER UCHAR DeletedInline : 1; }; }; + ULONG Reserved; union { POBJECT_CREATE_INFORMATION ObjectCreateInfo;
Solve minor bug in bootstrap await refactor.
@@ -209,7 +209,14 @@ function node_loader_trampoline_test(obj) { } } -function node_loader_trampoline_await(func, args, trampoline_ptr) { +function node_loader_trampoline_await(trampoline) { + if (!trampoline) { + return function node_loader_trampoline_await_impl(func, args, trampoline_ptr) { + console.error('NodeJS await error, trampoline could not be found, await calls are disabled.'); + }; + } + + return function node_loader_trampoline_await_impl(func, args, trampoline_ptr) { if (typeof func !== 'function') { throw new Error('Await only accepts a callable function func, not ' + typeof func); } @@ -230,6 +237,7 @@ function node_loader_trampoline_await(func, args, trampoline_ptr) { x => console.error(`NodeJS await error: ${x && x.message ? x.message : util.inspect(x, false, null, true)}`), ) ); + }; } function node_loader_trampoline_destroy() { @@ -272,7 +280,7 @@ module.exports = ((impl, ptr) => { 'clear': node_loader_trampoline_clear, 'discover': node_loader_trampoline_discover, 'test': node_loader_trampoline_test, - 'await': node_loader_trampoline_await, + 'await': node_loader_trampoline_await(trampoline), 'destroy': node_loader_trampoline_destroy, }); } catch (ex) {
in_statsd: fix data type (CID 282321)
@@ -55,7 +55,7 @@ struct statsd_message { double sample_rate; }; -static void pack_string(msgpack_packer *mp_pck, char *str, size_t len) +static void pack_string(msgpack_packer *mp_pck, char *str, ssize_t len) { if (len < 0) { len = strlen(str);
native: configure according to $(CC) The checks for how to compile should be with respect to the compiler used for the build.
@@ -25,11 +25,11 @@ CFLAGS += $(CFLAGSNO) SMALL ?= 0 # The optimizations on native platform cannot be enabled in GCC (not Clang) versions less than 7.2 -GCC_IS_CLANG := $(shell gcc --version 2> /dev/null | grep clang) +GCC_IS_CLANG := $(shell $(CC) --version 2> /dev/null | grep clang) ifneq ($(GCC_IS_CLANG),) NATIVE_CAN_OPTIIMIZE = 1 else - GCC_VERSION := $(shell gcc -dumpfullversion -dumpversion | cut -b1-3) + GCC_VERSION := $(shell $(CC) -dumpfullversion -dumpversion | cut -b1-3) ifeq ($(shell expr $(GCC_VERSION) \>= 7.2), 1) NATIVE_CAN_OPTIIMIZE = 1 else
h2olog: use a pt_regs pointer instead of a void one
@@ -28,7 +28,7 @@ struct req_line_t { }; BPF_PERF_OUTPUT(reqbuf); -int trace_receive_req(void *ctx) { +int trace_receive_req(struct pt_regs *ctx) { struct req_line_t line = {}; uint64_t conn_id, req_id; uint32_t http_version;
Initialize PSA crypto in test_suite_pk pk_rsa_decrypt_test_vec() when USE_PSA_CRYPTO is enabled
@@ -756,6 +756,8 @@ void pk_rsa_decrypt_test_vec( data_t * cipher, int mod, int radix_P, mbedtls_pk_context pk; size_t olen; + USE_PSA_INIT( ); + mbedtls_pk_init( &pk ); mbedtls_mpi_init( &N ); mbedtls_mpi_init( &P ); mbedtls_mpi_init( &Q ); mbedtls_mpi_init( &E ); @@ -794,6 +796,7 @@ exit: mbedtls_mpi_free( &N ); mbedtls_mpi_free( &P ); mbedtls_mpi_free( &Q ); mbedtls_mpi_free( &E ); mbedtls_pk_free( &pk ); + USE_PSA_DONE( ); } /* END_CASE */
mac: dont wait for -pid
@@ -386,7 +386,7 @@ void arch_reapChild(run_t* run) { int status; int flags = run->global->exe.persistent ? WNOHANG : 0; - int ret = waitpid(-(run->pid), &status, flags); + int ret = waitpid(run->pid, &status, flags); if (ret == 0) { continue; }
fix typos, include ASL 2.0 header
#!/bin/bash +# +# OpenHPC build script/utilities +# +# Licensed under the Apache License, Version 2.0 (the "License"); you +# may not use this file except in compliance with the License. You may +# obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or +# implied. See the License for the specific language governing +# permissions and limitations under the License. + #----------------------------------------------------------------------- -# Uility to derive modules environment variable settings from shell -# script initializaion file. +# Utility to derive modules environment variable settings from shell +# script initialization file. #----------------------------------------------------------------------- if [ $# -lt 1 ];then
Fixed comments shift -> mode
@@ -110,7 +110,7 @@ void lv_kb_set_cursor_manage(lv_obj_t * kb, bool en); /** * Set a new map for the keyboard * @param kb pointer to a Keyboard object - * @param shift keyboard map to alter 'lv_kb_shift_t' + * @param mode keyboard map to alter 'lv_kb_mode_t' * @param map pointer to a string array to describe the map. * See 'lv_btnm_set_map()' for more info. */ @@ -121,7 +121,7 @@ void lv_kb_set_map(lv_obj_t * kb, lv_kb_mode_t mode, const char * map[]); * control map array will be copied and so may be deallocated after this * function returns. * @param kb pointer to a keyboard object - * @param shift keyboard ctrl map to alter 'lv_kb_shift_t' + * @param mode keyboard ctrl map to alter 'lv_kb_mode_t' * @param ctrl_map pointer to an array of `lv_btn_ctrl_t` control bytes. * See: `lv_btnm_set_ctrl_map` for more details. */
Add ASTCENC_NO_INLINE for profiling
// SPDX-License-Identifier: Apache-2.0 // ---------------------------------------------------------------------------- -// Copyright 2019-2021 Arm Limited +// Copyright 2019-2022 Arm Limited // Copyright 2008 Jose Fonseca // // Licensed under the Apache License, Version 2.0 (the "License"); you may not #if !defined(__clang__) && defined(_MSC_VER) #define ASTCENC_SIMD_INLINE __forceinline + #define ASTCENC_NO_INLINE #elif defined(__GNUC__) && !defined(__clang__) #define ASTCENC_SIMD_INLINE __attribute__((always_inline)) inline + #define ASTCENC_NO_INLINE __attribute__ ((noinline)) #else #define ASTCENC_SIMD_INLINE __attribute__((always_inline, nodebug)) inline + #define ASTCENC_NO_INLINE __attribute__ ((noinline)) #endif #if ASTCENC_AVX >= 2
just for appveyor
@@ -30,8 +30,8 @@ else() endif() if(EMSCRIPTEN) - set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -s USE_SDL=2 -s TOTAL_MEMORY=67108864 --pre-js build/html/prejs.js --memory-init-file 0") # TODO: add: -s \'EXTRA_EXPORTED_RUNTIME_METHODS=[\"writeArrayToMemory\"]\' + set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -s USE_SDL=2 -s TOTAL_MEMORY=67108864 --pre-js build/html/prejs.js --memory-init-file 0") endif() endif()
Fix Error: chip/rp2040_clock.c:148:19: error: invalid instruction
@@ -141,15 +141,12 @@ bool rp2040_clock_configure(int clk_index, * necessarily running, nor is timer... so, 3 cycles per loop: */ - unsigned int delay_cyc = rp2040_clock_freq[RP2040_CLOCKS_NDX_SYS] / + volatile unsigned int delay_cyc; + + delay_cyc = rp2040_clock_freq[RP2040_CLOCKS_NDX_SYS] / rp2040_clock_freq[clk_index] + 1; - __asm__ volatile ( - "1: \n\t" - "sub %0, #1 \n\t" - "bne 1b" - : "+r" (delay_cyc) - ); + while (--delay_cyc > 0); } }
interface: fix simultaneous requests in loading
@@ -36,10 +36,10 @@ export function useLazyScroll( }; useEffect(() => { - if((oldCount > count) && ref.current) { + if((oldCount > count) && ref.current && !isLoading) { loadUntil(ref.current); } - }, [count]); + }, [count, isLoading]); useEffect(() => { if(!ready) { @@ -48,7 +48,7 @@ export function useLazyScroll( }, [ready]); useEffect(() => { - if (!ref.current || isDone || !ready) { + if (!ref.current || isDone || !ready || isLoading) { return; } const scroll = ref.current; @@ -64,7 +64,7 @@ export function useLazyScroll( return () => { ref.current?.removeEventListener('scroll', onScroll); }; - }, [ref?.current, ready, isDone]); + }, [ref?.current, ready, isDone, isLoading]); return { isDone, isLoading }; }
Update: readme updated
@@ -46,10 +46,10 @@ Narsese: ./NAR shell < ./examples/nal/example1.nal ``` -English: (needs NLTK v3.4.5, will be updated to Python3 at some point as well...) +English: (tested with NLTK v3.5) ``` -python2 english_shell.py < ./examples/english/story1.english +python3 english_shell.py < ./examples/english/story1.english | ./NAR shell ``` **How to run an UDPNAR:**
publish: fix merge syntax errors
-/- *publish, -/- *group-store, -/- *group-hook, -/- *permission-hook, -/- *permission-group-hook, -/- *permission-store, -/- *invite-store, -/- *metadata-store, -/- *metadata-hook, +/- *publish +/- *group-store +/- *group-hook +/- *permission-hook +/- *permission-group-hook +/- *permission-store +/- *invite-store +/- *metadata-store +/- *metadata-hook /- *rw-security /+ *server, *publish, cram, default-agent, dbug ::
forwardports ++spin/++spun api change adds documentation and typecasts
^+ t.a [i.a $(a (skim t.a |=(c/_i.a !(b c i.a))))] :: -++ spin - |* {a/(list) b/_|=({* *} [** +<+]) c/*} - :: ?< ?=($-([_?<(?=($~ a) i.a) _c] [* _c]) b) - |- +++ spin :> stateful turn + :> + :> a: list + :> b: gate from list-item and state to product and new state + :> c: state + ~/ %spin + |* [a=(list) b=_|=(^ [** +<+]) c=*] + => .(b `$-([_?>(?=(^ a) i.a) _c] [* _c])`b) + =/ acc=(list _-:(b)) ~ + :> transformed list and updated state + |- ^- (pair _acc _c) ?~ a - ~ - =+ v=(b i.a c) - [i=-.v t=$(a t.a, c +.v)] + [(flop acc) c] + =^ res c (b i.a c) + $(acc [res acc], a t.a) :: -++ spun - |* {a/(list) b/_|=({* *} [** +<+])} - =| c/_+<+.b - |- - ?~ a - ~ - =+ v=(b i.a c) - [i=-.v t=$(a t.a, c +.v)] +++ spun :> internal spin + :> + :> a: list + :> b: gate from list-item and state to product and new state + ~/ %spun + |* [a=(list) b=_|=(^ [** +<+])] + :> transformed list + p:(spin a b +<+.b) :: ++ swag :: slice |* {{a/@ b/@} c/(list)}
Aligh finish_buffer_test vars with PSA standard
@@ -3976,7 +3976,7 @@ exit: /* BEGIN_CASE */ void aead_multipart_finish_buffer_test( int key_type_arg, data_t *key_data, int alg_arg, - int buffer_size, + int finish_ciphertext_size_arg, data_t *nonce, data_t *additional_data, data_t *input_data, @@ -3990,10 +3990,11 @@ void aead_multipart_finish_buffer_test( int key_type_arg, data_t *key_data, psa_key_attributes_t attributes = PSA_KEY_ATTRIBUTES_INIT; psa_status_t status = PSA_ERROR_GENERIC_ERROR; psa_status_t expected_status = expected_status_arg; - unsigned char *output_data = NULL; - unsigned char *final_data = NULL; - size_t output_size = 0; - size_t output_length = 0; + unsigned char *ciphertext = NULL; + unsigned char *finish_ciphertext = NULL; + size_t ciphertext_size = 0; + size_t ciphertext_length = 0; + size_t finish_ciphertext_size = ( size_t ) finish_ciphertext_size_arg; size_t tag_length = 0; uint8_t tag_buffer[PSA_AEAD_TAG_MAX_SIZE]; @@ -4008,13 +4009,13 @@ void aead_multipart_finish_buffer_test( int key_type_arg, data_t *key_data, PSA_ASSERT( psa_get_key_attributes( key, &attributes ) ); - output_size = PSA_AEAD_UPDATE_OUTPUT_SIZE( key_type, alg, input_data->len ); + ciphertext_size = PSA_AEAD_UPDATE_OUTPUT_SIZE( key_type, alg, input_data->len ); - ASSERT_ALLOC( output_data, output_size ); + ASSERT_ALLOC( ciphertext, ciphertext_size ); - TEST_ASSERT( buffer_size <= PSA_AEAD_FINISH_OUTPUT_MAX_SIZE ); + TEST_ASSERT( finish_ciphertext_size <= PSA_AEAD_FINISH_OUTPUT_MAX_SIZE ); - ASSERT_ALLOC( final_data, buffer_size ); + ASSERT_ALLOC( finish_ciphertext, finish_ciphertext_size ); operation = psa_aead_operation_init( ); @@ -4037,19 +4038,20 @@ void aead_multipart_finish_buffer_test( int key_type_arg, data_t *key_data, additional_data->len ) ); PSA_ASSERT( psa_aead_update( &operation, input_data->x, input_data->len, - output_data, output_size, &output_length ) ); + ciphertext, ciphertext_size, &ciphertext_length ) ); /* Ensure we can still complete operation. */ - status = psa_aead_finish( &operation, final_data, buffer_size, - &output_length, tag_buffer, + status = psa_aead_finish( &operation, finish_ciphertext, + finish_ciphertext_size, + &ciphertext_length, tag_buffer, PSA_AEAD_TAG_MAX_SIZE, &tag_length ); TEST_EQUAL( status, expected_status ); exit: psa_destroy_key( key ); - mbedtls_free( output_data ); - mbedtls_free( final_data ); + mbedtls_free( ciphertext ); + mbedtls_free( finish_ciphertext ); psa_aead_abort( &operation ); PSA_DONE( ); }
Cleared code after function arguments expansion
@@ -841,20 +841,18 @@ function FunChecker:check_exp_synthesize(exp) if f_type._tag == "types.T.Function" then self:expand_function_returns(f_type.arg_types, exp.args) - for i = 1, #exp.args do - if f_type.arg_types[i] then - exp.args[i] = self:check_exp_verify(exp.args[i], - f_type.arg_types[i], - "argument %d of call to function", i) - end - end - if #f_type.arg_types ~= #exp.args then type_error(exp.loc, "function expects %d argument(s) but received %d", #f_type.arg_types, #exp.args) end + for i = 1, #exp.args do + exp.args[i] = self:check_exp_verify(exp.args[i], + f_type.arg_types[i], + "argument %d of call to function", i) + end + if #f_type.ret_types > 0 then exp._type = f_type.ret_types[1] exp._types = f_type.ret_types
rollback deploy
}, "deploy": { "formula": { - "sandbox_id": 207478390, + "sandbox_id": 187448114, "match": "DEPLOY" }, "executable": {
improves memory leak debug printfs
@@ -1712,9 +1712,9 @@ _ca_print_box(u3a_box* box_u) { int i; for ( i = 0; i < box_u->siz_w; i++ ) { - u3l_log("%08x ", (unsigned int)(((c3_w*)box_u)[i])); + fprintf(stderr, "%08x ", (unsigned int)(((c3_w*)box_u)[i])); } - u3l_log("\r\n"); + fprintf(stderr, "\r\n"); } #endif return 0; @@ -1736,7 +1736,7 @@ _ca_print_box(u3a_box* box_u) static void _ca_print_leak(c3_c* cap_c, u3a_box* box_u, c3_w eus_w, c3_w use_w) { - u3l_log("%s: %p mug=%x (marked=%u swept=%u)\r\n", + fprintf(stderr, "%s: %p mug=%x (marked=%u swept=%u)\r\n", cap_c, box_u, ((u3a_noun *)(u3a_boxto(box_u)))->mug_w, @@ -1744,14 +1744,16 @@ _ca_print_leak(c3_c* cap_c, u3a_box* box_u, c3_w eus_w, c3_w use_w) use_w); if ( box_u->cod_w ) { - u3m_p(" code", box_u->cod_w); + c3_c* cod_c = u3m_pretty(box_u->cod_w); + fprintf(stderr, "code: %s\r\n", cod_c); + free(cod_c); } u3a_print_memory(stderr, " size", box_u->siz_w); { c3_c* dat_c = _ca_print_box(box_u); - u3l_log(" data: %s\r\n", dat_c); + fprintf(stderr, " data: %s\r\n", dat_c); free(dat_c); } } @@ -1761,7 +1763,7 @@ _ca_print_leak(c3_c* cap_c, u3a_box* box_u, c3_w eus_w, c3_w use_w) static void _ca_print_leak(c3_c* cap_c, u3a_box* box_u, c3_ws use_ws) { - u3l_log("%s: %p mug=%x swept=%d\r\n", + fprintf(stderr, "%s: %p mug=%x swept=%d\r\n", cap_c, box_u, ((u3a_noun *)(u3a_boxto(box_u)))->mug_w, @@ -1771,7 +1773,7 @@ _ca_print_leak(c3_c* cap_c, u3a_box* box_u, c3_ws use_ws) { c3_c* dat_c = _ca_print_box(box_u); - u3l_log(" data: %s\r\n", dat_c); + fprintf(stderr, " data: %s\r\n", dat_c); free(dat_c); } }
Add multithreading support for Haswell DDOT copied from ashwinyes' implementation in dot_thunderx2t99.c
@@ -43,6 +43,12 @@ USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. #include "ddot_microk_sandy-2.c" #endif +#if !defined(DSDOT) +#define RETURN_TYPE FLOAT +#else +#define RETURN_TYPE double +#endif + #ifndef HAVE_KERNEL_8 @@ -71,7 +77,7 @@ static void ddot_kernel_8(BLASLONG n, FLOAT *x, FLOAT *y, FLOAT *d) #endif -FLOAT CNAME(BLASLONG n, FLOAT *x, BLASLONG inc_x, FLOAT *y, BLASLONG inc_y) +FLOAT dot_compute(BLASLONG n, FLOAT *x, BLASLONG inc_x, FLOAT *y, BLASLONG inc_y) { BLASLONG i=0; BLASLONG ix=0,iy=0; @@ -139,4 +145,64 @@ FLOAT CNAME(BLASLONG n, FLOAT *x, BLASLONG inc_x, FLOAT *y, BLASLONG inc_y) } +#if defined(SMP) +static int dot_thread_function(BLASLONG n, BLASLONG dummy0, + BLASLONG dummy1, FLOAT dummy2, FLOAT *x, BLASLONG inc_x, FLOAT *y, + BLASLONG inc_y, RETURN_TYPE *result, BLASLONG dummy3) +{ + *(RETURN_TYPE *)result = dot_compute(n, x, inc_x, y, inc_y); + + return 0; +} + +extern int blas_level1_thread_with_return_value(int mode, BLASLONG m, BLASLONG n, + BLASLONG k, void *alpha, void *a, BLASLONG lda, void *b, BLASLONG ldb, + void *c, BLASLONG ldc, int (*function)(), int nthreads); +#endif +FLOAT CNAME(BLASLONG n, FLOAT *x, BLASLONG inc_x, FLOAT *y, BLASLONG inc_y) +{ +#if defined(SMP) + int nthreads; + FLOAT dummy_alpha; +#endif + FLOAT dot = 0.0; + +#if defined(SMP) + nthreads = num_cpu_avail(1); + + if (inc_x == 0 || inc_y == 0) + nthreads = 1; + + if (n <= 10000) + nthreads = 1; + + if (nthreads == 1) { + dot = dot_compute(n, x, inc_x, y, inc_y); + } else { + int mode, i; + char result[MAX_CPU_NUMBER * sizeof(double) * 2]; + RETURN_TYPE *ptr; + +#if !defined(DOUBLE) + mode = BLAS_SINGLE | BLAS_REAL; +#else + mode = BLAS_DOUBLE | BLAS_REAL; +#endif +fprintf(stderr,"threaded ddot with %d threads\n",nthreads); + blas_level1_thread_with_return_value(mode, n, 0, 0, &dummy_alpha, + x, inc_x, y, inc_y, result, 0, + ( void *)dot_thread_function, nthreads); + + ptr = (RETURN_TYPE *)result; + for (i = 0; i < nthreads; i++) { + dot = dot + (*ptr); + ptr = (RETURN_TYPE *)(((char *)ptr) + sizeof(double) * 2); + } + } +#else + dot = dot_compute(n, x, inc_x, y, inc_y); +#endif + + return dot; +}
shelter: add third party dependencies in readme Fixes:
@@ -102,3 +102,16 @@ shelter mrverify ## Touble shooting TODO + +## Third Party Dependencies + +Direct Dependencies + +| Name | Repo URL | Licenses | +| :--: | :-------: | :-------: | +| restruct | https://github.com/go-restruct/restruct | ISC | +| cli | https://github.com/urfave/cli | MIT | +| md2man | https://github.com/cpuguy83/go-md2man/v2/md2man | MIT | +| sanitized_anchor_name | https://github.com/shurcooL/sanitized_anchor_name | MIT | +| errors | https://github.com/pkg/errors | BSD-2-Clause | +| blackfriday | https://github.com/russross/blackfriday/v2 | BSD-2-Clause |
fs/smartfs : Modify check condition of MTD_ERASE in smart_journal_process_transaction Currently target board of TizenRT using progmem which return OK if MTD_ERASE done properly. But many of mtd driver returning number of erased block, hence change condition
@@ -5197,7 +5197,7 @@ static int smart_journal_process_transaction(FAR struct smart_struct_s *dev, jou case SMART_JOURNAL_TYPE_ERASE: { /* Instead of copy header from journal, Erase block(psector) */ ret = MTD_ERASE(dev->mtd, psector, 1); - if (ret != OK) { + if (ret < 0) { fdbg("Erase failed ret : %d\n", ret); return -EIO; }
VERSION bump to version 1.1.18
@@ -44,7 +44,7 @@ set(CMAKE_C_FLAGS_PACKAGE "-g -O2 -DNDEBUG") # micro version is changed with a set of small changes or bugfixes anywhere in the project. set(LIBNETCONF2_MAJOR_VERSION 1) set(LIBNETCONF2_MINOR_VERSION 1) -set(LIBNETCONF2_MICRO_VERSION 17) +set(LIBNETCONF2_MICRO_VERSION 18) set(LIBNETCONF2_VERSION ${LIBNETCONF2_MAJOR_VERSION}.${LIBNETCONF2_MINOR_VERSION}.${LIBNETCONF2_MICRO_VERSION}) # Version of the library
test/flash_write_protect: Handle different WP polarity Also handle the hard-coded case (mirrored from common/flash.c). BRANCH=none TEST=make BOARD=krane -j tests
test_static int check_image_and_hardware_write_protect(void) { + int wp; + if (system_get_image_copy() != EC_IMAGE_RO) { ccprintf("This test is only works when running RO\n"); return EC_ERROR_UNKNOWN; } - if (gpio_get_level(GPIO_WP) != 1) { +#ifdef CONFIG_WP_ALWAYS + wp = 1; +#elif defined(CONFIG_WP_ACTIVE_HIGH) + wp = gpio_get_level(GPIO_WP); +#else + wp = !gpio_get_level(GPIO_WP_L); +#endif + + if (!wp) { ccprintf("Hardware write protect (GPIO_WP) must be enabled\n"); return EC_ERROR_UNKNOWN; }
test-suite: request exclusive node usage for all pbs MPI jobs
@@ -410,6 +410,7 @@ run_mpi_binary () { # echo "#PBS -lnodes=$NNODES:ppn=$tasksPerNode" >> $jobScript echo "#PBS -l select=$NNODES:mpiprocs=$tasksPerNode -l place=scatter" >> $jobScript echo "#PBS -l walltime=$timeout" >> $jobScript + echo "#PBS -l place=excl" >> $jobScript echo "#PBS -o job.out" >> $jobScript echo "cd \$PBS_O_WORKDIR" >> $jobScript
chat: revert input button padding change
@@ -246,7 +246,7 @@ export class ChatInput extends Component { onUnmount={props.onUnmount} message={props.message} placeholder='Message...' /> - <div className="ml3 mr3" + <div className="ml2 mr2" style={{ height: '16px', width: '16px',
Makefile: fix doc target name The doc target was renamed in a previous commit and we forgot to update the corresponding entry in the Makefile.
@@ -28,7 +28,7 @@ test: build cd tests && ./regression_encoder.py ../build/Zydis{Fuzz{ReEncoding,Encoder},TestEncoderAbsolute} doc: configure - cmake --build $(BUILD_DIR) --target doc + cmake --build $(BUILD_DIR) --target ZydisDoc doc-plain: rm -rf "$(CSS_DIR)"
Improve bcc_procutils_each_module logic Parse everything with one `fscanf` instead of using an extra `fgets`
@@ -87,43 +87,35 @@ int bcc_procutils_each_module(int pid, bcc_procutils_modulecb callback, void *payload) { char procmap_filename[128]; FILE *procmap; - int ret; - snprintf(procmap_filename, sizeof(procmap_filename), "/proc/%ld/maps", (long)pid); procmap = fopen(procmap_filename, "r"); - if (!procmap) return -1; - do { - char endline[4096]; - char perm[8], dev[8]; - long long begin, end, offset, inode; - - ret = fscanf(procmap, "%llx-%llx %s %llx %s %lld", &begin, &end, perm, - &offset, dev, &inode); - - if (!fgets(endline, sizeof(endline), procmap)) + char buf[PATH_MAX + 1], perm[5], dev[8]; + char *name; + uint64_t begin, end, inode; + unsigned long long offset; + while (true) { + buf[0] = '\0'; + // From fs/proc/task_mmu.c:show_map_vma + if (fscanf(procmap, "%lx-%lx %s %llx %s %lu%[^\n]", &begin, &end, perm, + &offset, dev, &inode, buf) != 7) break; - if (ret == 6) { - char *mapname = endline; - char *newline = strchr(endline, '\n'); - - if (newline) - newline[0] = '\0'; + if (perm[2] != 'x') + continue; - while (isspace(mapname[0])) - mapname++; + name = buf; + while (isspace(*name)) + name++; + if (!bcc_mapping_is_file_backed(name)) + continue; - if (strchr(perm, 'x') && bcc_mapping_is_file_backed(mapname)) { - if (callback(mapname, (uint64_t)begin, (uint64_t)end, (uint64_t)offset, - true, payload) < 0) + if (callback(name, begin, end, (uint64_t)offset, true, payload) < 0) break; } - } - } while (ret && ret != EOF); fclose(procmap);
[bsp] [stm32] fix drv_can.c
@@ -847,7 +847,7 @@ long list_device(void) device->parent.name, (device->type <= RT_Device_Class_Unknown) ? device_type_str[device->type] : - device_type_str[RT_Device_Class_Unknown - 1], + device_type_str[RT_Device_Class_Unknown], device->ref_count); }
Network change, Wifi part: uPortQueueSend() -> uPortQueueSendIrq() In a couple of places in u_network_private_wifi.c we don't care if a queue send fails, in which case the IRQ version of the function should be used (uPortQueueSend() always blocks, the error code is simply to indicate bad parameters or out of resources).
@@ -143,8 +143,8 @@ static void wifiConnectionCallback(uDeviceHandle_t devHandle, .disconnectReason = disconnectReason, .netStatusMask = 0 }; - // We don't care if the queue gets full here - (void)uPortQueueSend(queueHandle, &msg); + // We don't care if the queue gets full here, hence use the IRQ form + uPortQueueSendIrq(queueHandle, &msg); #if defined(U_CFG_ENABLE_LOGGING) && !U_CFG_OS_CLIB_LEAKS if (status == U_WIFI_CON_STATUS_CONNECTED) { @@ -192,8 +192,8 @@ static void wifiNetworkStatusCallback(uDeviceHandle_t devHandle, .disconnectReason = 0, .netStatusMask = statusMask }; - // We don't care if the queue gets full here - (void)uPortQueueSend(queueHandle, &msg); + // We don't care if the queue gets full here, hence use the IRQ form + uPortQueueSendIrq(queueHandle, &msg); } static inline void statusQueueClear(const uPortQueueHandle_t queueHandle)
Clarify whitespace handling.
@@ -66,7 +66,7 @@ TABLE OF CONTENTS: zerorep: term "*" onerep: term "+" - Whitespace and comments are ommitted in this description. + Whitespace and comments are implicitly stripped out before parsing. To put it in words, /regex/ defines a regular expression that would match a single token in the input. "quoted" would match a single
Removed null of DBG() after merging with master.
@@ -37,7 +37,6 @@ void dbgAddLine(const char* key, const char* fmt, ...); // DBG("Should never get here"); // Boring string // DBG("Hostname/port: %s:%d", hostname, port) // Formatted string -//#define DBG(...) dbgAddLine(DBG_FILE_AND_LINE, ## __VA_ARGS__) -#define DBG(...) +#define DBG(...) dbgAddLine(DBG_FILE_AND_LINE, ## __VA_ARGS__) #endif // __DBG_H__
Make evp_test skip mac tests if digest or ciphers are disabled. Fixes test error in This only happens currently during minimal builds.
@@ -1444,6 +1444,8 @@ static int mac_test_run_mac(EVP_TEST *t) expected->mac_name, expected->alg); if (expected->alg != NULL) { + int skip = 0; + /* * The underlying algorithm may be a cipher or a digest. * We don't know which it is, but we can ask the MAC what it @@ -1451,11 +1453,17 @@ static int mac_test_run_mac(EVP_TEST *t) */ if (OSSL_PARAM_locate_const(defined_params, OSSL_MAC_PARAM_CIPHER) != NULL) { + if (is_cipher_disabled(expected->alg)) + skip = 1; + else params[params_n++] = OSSL_PARAM_construct_utf8_string(OSSL_MAC_PARAM_CIPHER, expected->alg, 0); } else if (OSSL_PARAM_locate_const(defined_params, OSSL_MAC_PARAM_DIGEST) != NULL) { + if (is_digest_disabled(expected->alg)) + skip = 1; + else params[params_n++] = OSSL_PARAM_construct_utf8_string(OSSL_MAC_PARAM_DIGEST, expected->alg, 0); @@ -1463,6 +1471,12 @@ static int mac_test_run_mac(EVP_TEST *t) t->err = "MAC_BAD_PARAMS"; goto err; } + if (skip) { + TEST_info("skipping, algorithm '%s' is disabled", expected->alg); + t->skip = 1; + t->err = NULL; + goto err; + } } if (expected->custom != NULL) params[params_n++] =
armv7m7-imxrt: Fixed interrupts being unintentionally nested causing crash
@@ -119,7 +119,7 @@ int hal_interruptsSetHandler(intr_handler_t *h) _intr_add(&interrupts.handlers[h->n], h); if (h->n >= 0x10) { - _imxrt_nvicSetPriority(h->n - 0x10, 1); + _imxrt_nvicSetPriority(h->n - 0x10, 0); _imxrt_nvicSetIRQ(h->n - 0x10, 1); } hal_spinlockClear(&interrupts.spinlock, &sc); @@ -160,20 +160,15 @@ __attribute__ ((section (".init"))) void _hal_interruptsInit(void) { unsigned int n; - for (n = 0; n < 16; ++n) { - interrupts.handlers[n] = NULL; - interrupts.counters[n] = 0; - } - - for (; n < SIZE_INTERRUPTS; ++n) { + for (n = 0; n < SIZE_INTERRUPTS; ++n) { interrupts.handlers[n] = NULL; interrupts.counters[n] = 0; } hal_spinlockCreate(&interrupts.spinlock, "interrupts.spinlock"); - _imxrt_scbSetPriority(SYSTICK_IRQ, 1); - _imxrt_scbSetPriority(PENDSV_IRQ, 1); + _imxrt_scbSetPriority(SYSTICK_IRQ, 0); + _imxrt_scbSetPriority(PENDSV_IRQ, 0); _imxrt_scbSetPriority(SVC_IRQ, 0); /* Set no subprorities in Interrupt Group Priority */
Encode kid and kidContext based on pointer value, not length that can be zero. This allows zero-length byte string to be encoded.
@@ -621,13 +621,13 @@ uint8_t oscore_encode_compressed_COSE(uint8_t *buf, tmp = buf; - if (kidLen != 0) { + if (kid != NULL) { k = 1; } else { k = 0; } - if (kidContextLen != 0) { + if (kidContext != NULL) { h = 1; } else { h = 0;
hotfix target branch for travis. (dev -> master)
@@ -42,7 +42,7 @@ DEPENDENCY_OUTPUT=$(arduino --install-boards OpenCR:OpenCR 2>&1) if [ $? -ne 0 ]; then echo -e "\xe2\x9c\x96"; else echo -e "\xe2\x9c\x93"; fi # Update OpenCR package manually -git clone --recursive https://github.com/ROBOTIS-GIT/OpenCR.git --branch develop --single-branch +git clone --recursive https://github.com/ROBOTIS-GIT/OpenCR.git --branch master --single-branch rm -rf $HOME/.arduino15/packages/OpenCR/hardware mkdir $HOME/Arduino/hardware mkdir $HOME/Arduino/hardware/OpenCR
ledc: apply general check macro Standardize LEDC_CHECK() and LEDC_ARG_CHECK() in ledc.c to ESP_RETURN_ON_FALSE() in esp_check.h.
#include "freertos/FreeRTOS.h" #include "freertos/semphr.h" #include "esp_log.h" +#include "esp_check.h" #include "soc/gpio_periph.h" #include "soc/ledc_periph.h" #include "soc/rtc.h" static const char* LEDC_TAG = "ledc"; -#define LEDC_CHECK(a, str, ret_val) \ - if (!(a)) { \ - ESP_LOGE(LEDC_TAG, "%s(%d): %s", __FUNCTION__, __LINE__, str); \ - return (ret_val); \ - } -#define LEDC_ARG_CHECK(a, param) LEDC_CHECK(a, param " argument is invalid", ESP_ERR_INVALID_ARG) +#define LEDC_CHECK(a, str, ret_val) ESP_RETURN_ON_FALSE(a, ret_val, LEDC_TAG, "%s", str); +#define LEDC_ARG_CHECK(a, param) ESP_RETURN_ON_FALSE(a, ESP_ERR_INVALID_ARG, LEDC_TAG, param " argument is invalid"); typedef struct { ledc_mode_t speed_mode;
Fix encoding of setting types to var int
@@ -949,9 +949,9 @@ void h3zero_delete_data_stream_state(h3zero_data_stream_state_t * stream_state) static uint8_t const h3zero_default_setting_frame_val[] = { 0, (uint8_t)h3zero_frame_settings, /* frame type */ - 6, /* Length, excluding the type byte */ - 0, (uint8_t)h3zero_setting_header_table_size, 0, /* 16 bit type, then value*/ - 0, (uint8_t)h3zero_qpack_blocked_streams, 0 /* 16 bit type, then value*/ + 4, /* Length */ + (uint8_t)h3zero_setting_header_table_size, 0, /* 16 bit type, then value*/ + (uint8_t)h3zero_qpack_blocked_streams, 0 /* 16 bit type, then value*/ }; uint8_t const * h3zero_default_setting_frame = h3zero_default_setting_frame_val;
Add MSVC-MingW folder to patchable paths
@@ -31,6 +31,13 @@ shared_prefix = [ "..", "..", "..", "vendors", "pc", "boards", "windows", "aws_demos", "config_files" ] +shared_prefix_port = [ + "..", "..", "..", "freertos_kernel", "portable", "MSVC-MingW" +] + absolute_prefix = os.path.abspath(os.path.join(PATCHES_DIR, *shared_prefix)) +absolute_prefix_port = os.path.abspath(os.path.join(PATCHES_DIR, *shared_prefix_port)) + HEADERS = [os.path.join(absolute_prefix, "FreeRTOSConfig.h"), - os.path.join(absolute_prefix, "FreeRTOSIPConfig.h")] + os.path.join(absolute_prefix, "FreeRTOSIPConfig.h"), + os.path.join(absolute_prefix_port, "portmacro.h")]
README: shortened description.
@@ -827,18 +827,11 @@ Example: Configure NGINX as a static web server and reverse proxy in front of Unit. -NGINX serves static files directly from the filesystem, and the requests to the -applications are forwarded to Unit. +NGINX serves static files directly from the filesystem, and the requests +to the applications are forwarded to Unit. -Create an upstream block in `http` context of NGINX configuration: - -``` -upstream unit_backend { - -} -``` - -Add Unit server IP and port to the upstream block, for example: +Create an upstream block in `http` context of NGINX configuration and add +Unit server IP and port to the upstream block, for example: ``` upstream unit_backend { @@ -857,9 +850,11 @@ to Unit. All other files will be served directly by NGINX: ``` server { + location / { root /var/www/static-data; } + location ~ \.php$ { proxy_pass http://unit_backend; proxy_set_header Host $host;
Add mopria-certified key to TXT record.
@@ -482,6 +482,7 @@ _papplPrinterRegisterDNSSDNoLock( TXTRecordSetValue(&txt, "txtvers", 1, "1"); TXTRecordSetValue(&txt, "qtotal", 1, "1"); TXTRecordSetValue(&txt, "priority", 1, "0"); + TXTRecordSetValue(&txt, "mopria-certified", 3, "1.3"); // Legacy keys... TXTRecordSetValue(&txt, "product", (uint8_t)strlen(product), product); @@ -637,6 +638,7 @@ _papplPrinterRegisterDNSSDNoLock( txt = avahi_string_list_add_printf(txt, "txtvers=1"); txt = avahi_string_list_add_printf(txt, "qtotal=1"); txt = avahi_string_list_add_printf(txt, "priority=0"); + txt = avahi_string_list_add_printf(txt, "mopria-certified=1.3"); // Legacy keys... txt = avahi_string_list_add_printf(txt, "product=%s", product);
[numerics] add missing include
#include <float.h> +#include <limits.h> +#ifndef SIZE_MAX +# ifdef __SIZE_MAX__ +# define SIZE_MAX __SIZE_MAX__ +# else +# define SIZE_MAX std::numeric_limits<size_t>::max() +# endif +#endif #include <stdio.h> #include <stdlib.h>
Un-break tests Pass the NULL optimized function pointer from the test function, it should still forward execution to width-specific SAD implementations
////////////////////////////////////////////////////////////////////////// // DEFINES -#define TEST_SAD(X, Y) kvz_image_calc_sad(g_pic, g_ref, 0, 0, (X), (Y), 8, 8) +#define TEST_SAD(X, Y) kvz_image_calc_sad(g_pic, g_ref, 0, 0, (X), (Y), 8, 8, NULL) ////////////////////////////////////////////////////////////////////////// // GLOBALS
Corrected 'cms' exit status when key or certificate cannot be opened Fixes
@@ -921,11 +921,15 @@ int cms_main(int argc, char **argv) keyfile = sk_OPENSSL_STRING_value(skkeys, i); signer = load_cert(signerfile, FORMAT_PEM, "signer certificate"); - if (signer == NULL) + if (signer == NULL) { + ret = 2; goto end; + } key = load_key(keyfile, keyform, 0, passin, e, "signing key file"); - if (key == NULL) + if (key == NULL) { + ret = 2; goto end; + } for (kparam = key_first; kparam; kparam = kparam->next) { if (kparam->idx == i) { tflags |= CMS_KEY_PARAM;
makes the default delimiters static to avoid stack allocation
@@ -67,7 +67,7 @@ int ntl_sn2str(char *str, size_t size, void **p, struct ntl_str_delimiter * d, sn2str * x) { - struct ntl_str_delimiter dx = { '[', ",", "", ']' }; + static struct ntl_str_delimiter dx = { '[', ",", "", ']' }; if (!d) d = &dx; const char * start = str;