[Feature Request] Make shareability attribute configurable

オープン
#1,383 コメント 3 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 3 日以内に返信

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
35/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
静か
技術スタック
c
領域
embedded-iot

調査の方向性

Start by finding where tskMPU_REGION_NORMAL_MEMORY is defined and where it maps to portMPU_REGION_NON_SHAREABLE in the ARMv8-M port. The issue asks for a new tskMPU_REGION_SHARED_MEMORY option that maps to portMPU_REGION_OUTER_SHAREABLE, but the maintainer has not agreed on the design, so confirm scope in the thread before writing code. Done means the new option is selectable and builds on the ARMv8-M ports.

索引モデルが issue の本文から書いたものです。

説明

enhancement

Is your feature request related to a problem? Please describe.
The shareability for tskMPU_REGION_NORMAL_MEMORY ARMv8-ports is portMPU_REGION_NON_SHAREABLE. This setting is not suitable for use with other bus masters, most notably DMA. If a data cache is used, the CPU or DMA might read outdated data from the cache.

Describe the solution you'd like
Add another setting tskMPU_REGION_SHARED_MEMORY which uses portMPU_REGION_OUTER_SHAREABLE.

Describe alternatives you've considered

  • Use tskMPU_REGION_DEVICE_MEMORY, however this would disable the potential use of cache for big data areas and decrease performance.
  • Change tskMPU_REGION_NORMAL_MEMORY to set portMPU_REGION_OUTER_SHAREABLE, which would be a more reasonable default, but could break backwards compatibility (rejected by @aggarg ).

What are your project timelines?
We will locally patch FreeRTOS to use tskMPU_REGION_SHARED_MEMORY until this option becomes available.

Additional context
Discussion: https://forums.freertos.org/t/shareable-mpu-regions-for-dma-on-cortex-m33/24918

主要言語
C
スター
4.6k
フォーク
1.6k
平均マージ
2日 22時間
マージ済み PR(30日)
4

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

FreeRTOS/FreeRTOS-Kernel のほかの issue

FreeRTOS/FreeRTOS-Kernel の issue をすべて見る

似ている issue

C の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。