Skip to content

Commit 1344c3c

Browse files
vireshkopsiff
authored andcommitted
firmware: arm_ffa: Set dma_mask for ffa devices
[ Upstream commit cc0aac7 ] Set dma_mask for FFA devices, otherwise DMA allocation using the device pointer lead to following warning: WARNING: CPU: 1 PID: 1 at kernel/dma/mapping.c:597 dma_alloc_attrs+0xe0/0x124 Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org> Message-Id: <e3dd8042ac680bd74b6580c25df855d092079c18.1737107520.git.viresh.kumar@linaro.org> Signed-off-by: Sudeep Holla <sudeep.holla@arm.com> Signed-off-by: Sasha Levin <sashal@kernel.org> (cherry picked from commit e2de76c34a8a925efe80fccae4810427bc144ed0)
1 parent 41240eb commit 1344c3c

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

  • drivers/firmware/arm_ffa

drivers/firmware/arm_ffa/bus.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -191,6 +191,7 @@ struct ffa_device *ffa_device_register(const uuid_t *uuid, int vm_id,
191191
dev = &ffa_dev->dev;
192192
dev->bus = &ffa_bus_type;
193193
dev->release = ffa_release_device;
194+
dev->dma_mask = &dev->coherent_dma_mask;
194195
dev_set_name(&ffa_dev->dev, "arm-ffa-%d", id);
195196

196197
ffa_dev->id = id;

0 commit comments

Comments
 (0)