Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: nns779/px4_drv
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: develop
Choose a base ref
...
head repository: otya128/px4_drv
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: develop
Choose a head ref
Checking mergeability… Don’t worry, you can still create the pull request.
  • 3 commits
  • 3 files changed
  • 1 contributor

Commits on Dec 30, 2022

  1. バッファを毎回解放しないようにしてメモリ確保に失敗しないように修正

    デフォルトではurb_max_packets=816*188バイト=2^6ページの物理アドレス的に連続なメモリ領域をmax_urbs=6要求するものの、毎回確保できるとは限らないため確保できたら解放しないようにすることでとりあえず解決
    この他にもTSリングバッファの割り当ても大きな連続メモリを要求していて、64-bitカーネルにおけるもっとも単純な解決策としてはリングバッファをvmallocで確保すればよい
    しかしTSリングバッファはatomic contextでアクセスさせる可能性があり、vmallocで確保した領域へのアクセスはpage faultの発生する可能性のあるため望ましくない
    ただしITEDTV_BUS_USE_WORKQUEUEが定義されていればworkqueueで処理されるので問題はない
    とはいえ、これによる遅延がどういう作用を起こすかわからないうえに元からカーネルモジュールのロード時限定で起動時であればメモリ確保に失敗することはまずないため今のところ修正は考えないことにする
    otya128 committed Dec 30, 2022
    Configuration menu
    Copy the full SHA
    02c9c14 View commit details
    Browse the repository at this point in the history

Commits on Dec 31, 2022

  1. __GFP_RETRY_MAYFAILを指定

    otya128 committed Dec 31, 2022
    Configuration menu
    Copy the full SHA
    7696900 View commit details
    Browse the repository at this point in the history

Commits on Aug 18, 2023

  1. 相対TS番号だけでなくTS_idを指定可能に

    指定できなかったのはただのミスなのか意図的なものなのかは不明
    otya128 committed Aug 18, 2023
    Configuration menu
    Copy the full SHA
    1c1e6fa View commit details
    Browse the repository at this point in the history
Loading