Otpvondoiats opened a new pull request, #22084:
URL: https://github.com/apache/nuttx/pull/22084

   ## Summary
   
   * sensor_rpmsg:
     * recheck the stub after waiting for a tx buffer, since the rptun thread 
may free it meanwhile;
     * cancel bound_work / work before freeing an endpoint;
     * copy messages other than PUBLISH and release the rx buffer before 
handling them;
     * keep at most one proxy per endpoint, so a re-registered remote 
advertiser does not leave stale proxies;
     * reject messages with an unknown command before indexing the handler 
table;
     * add a new proxy to the list only after ADVERTISE_ACK is queued, and 
return early from the SUBSCRIBE_ACK handler for an unknown path;
     * log ioctls that match no stub.
   * sensor upper half:
     * do not hold the upper lock across lower `open()` / `close()`, which  
deadlocked two cores under load;
     * dedup interval requests against the last value passed to 
`set_interval()` instead of the reported effective interval;
     * add `SNIOC_DISCARD` and use it to drop data published on behalf of a 
remote core (`file_read()` with a NULL buffer is now rejected).
   * Return `-ENOTTY` instead of `-ENOTSUP` for unsupported ioctls.
   * gnss: fix a log format string and destroy the mutexes on unregister.
   
   ## Impact
   
   * Unsupported sensor ioctls return `-ENOTTY` instead of `-ENOTSUP`.
   * New ioctl `SNIOC_DISCARD` (`_SNIOC(0x00AB)`).
   * sensor_rpmsg message format is unchanged.
   
   ## Testing
   
   Host: Ubuntu 22.04 x86_64, gcc 13.4.0, arm-none-eabi-gcc 10.3.1,
   xtensa-esp32s3-elf-gcc 12.2.0, aarch64-none-elf-gcc 13.2.rel1.
   
   * `./tools/checkpatch.sh -c -m`: all checks pass.
   * Every commit built on sim:rpserver with `CONFIG_UORB_TESTS`, 
`CONFIG_UORB_GENERATOR`, `CONFIG_USENSOR`, `CONFIG_SENSORS_FAKESENSOR`, 
`CONFIG_EVENT_FD`, `CONFIG_UORB_LOOP_MAX_EVENTS=16`, `CONFIG_DEBUG_UORB`:  
PASS, no warnings.
   * All 14 `CONFIG_UORB=y` defconfigs with nuttx-apps master: PASS  
(`nrf9160-dk:modem_ns` with CMake as in CI).
   * sim:rpserver, `uorb_unit_test` and `uorb_unit_test latency_test`:
   
         TEST PASS
         mean:    8 us
         max:     30 us
         missed topic updates: 0


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to