Skip to content

arm64: DC {ZVA,GVA,GZVA} shouldn't be used when DCZID_EL0.DZP == 1

Reiji Watanabe linux-arm-kernel 4 versions – Applied

Status from this message: Applied to arm64 (for-next/cache-ops-dzp), thanks!

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest2 patches 1 replyApplied
  2. v32 patches 0 repliesSuperseded
  3. v22 patches 6 repliesSuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v11 patch9 repliesSuperseded

Changes in v4 from the cover letter

- Fix mte_zero_clear_page_tags to use stz2g instead of stzg. [Catalin]
- Fix mte_zero_clear_page_tags to use MTE_GRANULE_SIZE instead of 16. [Catalin]

Patches in v4 Applied

#Subject and filesSizeRepliesApplied
1/2arm64: clear_page() shouldn't use DC ZVA when DCZID_EL0.DZP == 1arch/arm64/lib/clear_page.S+10 -00 replies
2/2arm64: mte: DC {GVA,GZVA} shouldn't be used when DCZID_EL0.DZP == 1arch/arm64/include/asm/mte-kasan.h arch/arm64/lib/mte.S+12 -40 replies

Reviews trailers per patch

1 of 2 patches has a Reviewed-by or Acked-by.

PatchRobin Murphy
1/2R-b
2/2

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v4 thread

Cover letter [PATCH v4 0/2] arm64: DC {ZVA,GVA,GZVA} shouldn't be used when DCZID_EL0.DZP == 1

DCZID_EL0.DZP indicates whether or not use of DC {ZVA,GVA,GZVA} is prohibited. However, clear_page(), mte_set_mem_tag_range(), and mte_zero_clear_page_tags() use those instructions without checking it.

Fix those functions not to use DC {ZVA,GVA,GZVA} when DCZID_EL0.DZP == 1.

v4:
- Fix mte_zero_clear_page_tags to use stz2g instead of stzg. [Catalin]
- Fix mte_zero_clear_page_tags to use MTE_GRANULE_SIZE instead of 16. [Catalin]

v3: https://lore.kernel.org/all/[email protected]/
- Use stnp instead of stp in clear_page().

v2: https://lore.kernel.org/all/[email protected]/
- Fix mte_set_mem_tag_range() and mte_zero_clear_page_tags() not to use DC {GVA,GZVA} when DCZID_EL0.DZP == 1. [Mark]
- Fix a typo of the comment in clear_page(). [Mark]
- Fix a loop of for stp in clear_page() for more consistency with the existing loop. [Mark]

v1: https://lore.kernel.org/all/[email protected]/

Reiji Watanabe (2):
arm64: clear_page() shouldn't use DC ZVA when DCZID_EL0.DZP == 1
arm64: mte: DC {GVA,GZVA} shouldn't be used when DCZID_EL0.DZP == 1

 arch/arm64/include/asm/mte-kasan.h |  8 +++++---
 arch/arm64/lib/clear_page.S        | 10 ++++++++++
 arch/arm64/lib/mte.S               |  8 +++++++-
 3 files changed, 22 insertions(+), 4 deletions(-)

base-commit: 0fcfb00b28c0b7884635dacf38e46d60bf3d4eb1

Signature · 7 lines
2.34.1.400.ga245620fadb-goog


_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel