Skip to content

Commit ae59756

Browse files
committed
Merge tag 'optee-valid-memory-type-for-v5.11' of git://git.linaro.org/people/jens.wiklander/linux-tee into arm/fixes
Add writeback to valid OP-TEE shared memory types Allows OP-TEE to work with ARMv7 based single CPU systems by allowing writeback cache policy for shared memory. * tag 'optee-valid-memory-type-for-v5.11' of git://git.linaro.org/people/jens.wiklander/linux-tee: optee: add writeback to valid memory type Link: https://lore.kernel.org/r/20201125120134.GA1642471@jade Signed-off-by: Arnd Bergmann <arnd@arndb.de>
2 parents 454a079 + 853735e commit ae59756

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

drivers/tee/optee/call.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -534,7 +534,8 @@ void optee_free_pages_list(void *list, size_t num_entries)
534534
static bool is_normal_memory(pgprot_t p)
535535
{
536536
#if defined(CONFIG_ARM)
537-
return (pgprot_val(p) & L_PTE_MT_MASK) == L_PTE_MT_WRITEALLOC;
537+
return (((pgprot_val(p) & L_PTE_MT_MASK) == L_PTE_MT_WRITEALLOC) ||
538+
((pgprot_val(p) & L_PTE_MT_MASK) == L_PTE_MT_WRITEBACK));
538539
#elif defined(CONFIG_ARM64)
539540
return (pgprot_val(p) & PTE_ATTRINDX_MASK) == PTE_ATTRINDX(MT_NORMAL);
540541
#else

0 commit comments

Comments
 (0)