Skip to content

Commit dfc80d6

Browse files
committed
Merge tag 'ffa-fix-7.0' of git://git.kernel.org/pub/scm/linux/kernel/git/sudeep.holla/linux into arm/fixes
Arm FF-A fix for v7.0 Fix removing the vm_id argument from ffa_rxtx_unmap(), as the FF-A specification mandates this field be zero in all contexts except a non-secure physical FF-A instance, where the ID is inherently 0. * tag 'ffa-fix-7.0' of git://git.kernel.org/pub/scm/linux/kernel/git/sudeep.holla/linux: firmware: arm_ffa: Remove vm_id argument in ffa_rxtx_unmap() Signed-off-by: Arnd Bergmann <arnd@arndb.de>
2 parents b3315ba + a4e8473 commit dfc80d6

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

drivers/firmware/arm_ffa/driver.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -205,12 +205,12 @@ static int ffa_rxtx_map(phys_addr_t tx_buf, phys_addr_t rx_buf, u32 pg_cnt)
205205
return 0;
206206
}
207207

208-
static int ffa_rxtx_unmap(u16 vm_id)
208+
static int ffa_rxtx_unmap(void)
209209
{
210210
ffa_value_t ret;
211211

212212
invoke_ffa_fn((ffa_value_t){
213-
.a0 = FFA_RXTX_UNMAP, .a1 = PACK_TARGET_INFO(vm_id, 0),
213+
.a0 = FFA_RXTX_UNMAP,
214214
}, &ret);
215215

216216
if (ret.a0 == FFA_ERROR)
@@ -2097,7 +2097,7 @@ static int __init ffa_init(void)
20972097

20982098
pr_err("failed to setup partitions\n");
20992099
ffa_notifications_cleanup();
2100-
ffa_rxtx_unmap(drv_info->vm_id);
2100+
ffa_rxtx_unmap();
21012101
free_pages:
21022102
if (drv_info->tx_buffer)
21032103
free_pages_exact(drv_info->tx_buffer, rxtx_bufsz);
@@ -2112,7 +2112,7 @@ static void __exit ffa_exit(void)
21122112
{
21132113
ffa_notifications_cleanup();
21142114
ffa_partitions_cleanup();
2115-
ffa_rxtx_unmap(drv_info->vm_id);
2115+
ffa_rxtx_unmap();
21162116
free_pages_exact(drv_info->tx_buffer, drv_info->rxtx_bufsz);
21172117
free_pages_exact(drv_info->rx_buffer, drv_info->rxtx_bufsz);
21182118
kfree(drv_info);

0 commit comments

Comments
 (0)