1. 20 May, 2022 1 commit
  2. 17 May, 2022 6 commits
  3. 10 May, 2022 2 commits
  4. 09 May, 2022 3 commits
  5. 16 Apr, 2022 1 commit
  6. 28 Mar, 2022 1 commit
  7. 18 Feb, 2022 2 commits
    • Roman Stratiienko's avatar
      drm_hwcomposer: Rework HwcDisplay disposal to avoid races · bb594baa
      Roman Stratiienko authored
      
      
      The code prior to this commit has a flaw:
      
          HwcDisplay::~HwcDisplay() {
            ...
            auto &main_lock = hwc2_->GetResMan().GetMainLock();
            /* Unlock to allow pending vsync callbacks to finish */
            main_lock.unlock();
      
      At this point display is no longer in displays_[] list. After
      lock is released, hwc2 API thread starts to process transactions
      which may fail with BAD_SIAPLAY responce and cause SF to crash.
      
            vsync_worker_.VSyncControl(false);
            vsync_worker_.Exit();
            main_lock.lock();
          }
      
      1. Rework the logic in order to avoid such scenariuos:
      1.a. Temporary switch non-primary unplugged displays to headless state
           allowing remaining transactions to succeed without impacting the
           pipeline.
      1.b. Give 100mSec delay before destroying / removing display from the
           displays_[] list to allow all pending hwc2 transactions to complete.
      
      2. Support hotswap of the DrmDisplayPipeline, which makes primary display
         reattaching process smoother.
         Now SF should be able to gracefully remove all layers.
      Signed-off-by: default avatarRoman Stratiienko <roman.o.stratiienko@globallogic.com>
      bb594baa
    • Roman Stratiienko's avatar
      drm_hwcomposer: Add test utility to listen for uevents · bd973171
      Roman Stratiienko authored
      
      
      Dumping uevents is useful for debugging purposes.
      
      1. Extract logic related to uevent socket into utils/UEvent.h class.
      2. Use it by both UEventListener.cpp and tests/uevent_print.cpp.
      
      Bump clang-tidy level of UEventListener.cpp to normal.
      Signed-off-by: default avatarRoman Stratiienko <roman.o.stratiienko@globallogic.com>
      bd973171
  8. 15 Feb, 2022 3 commits
  9. 09 Feb, 2022 2 commits
  10. 04 Feb, 2022 4 commits
  11. 02 Feb, 2022 3 commits
  12. 31 Jan, 2022 10 commits
  13. 20 Jan, 2022 2 commits