diff options
| author | Christoph Hellwig <[email protected]> | 2019-08-14 09:59:24 +0200 |
|---|---|---|
| committer | Jason Gunthorpe <[email protected]> | 2019-08-20 09:35:03 -0300 |
| commit | bfe69ef94aeeae76531b8f37799b8ac6fca56957 (patch) | |
| tree | 6861ccf220f2c1e78903894c89a3528462430bc0 /drivers/fpga/fpga-mgr.c | |
| parent | 107ba59fc6d761ca996243dd0a1ee89addc295af (diff) | |
nouveau: simplify nouveau_dmem_migrate_to_ram
Factor the main copy page to ram routine out into a helper that acts on
a single page and which doesn't require the nouveau_dmem_fault
structure for argument passing. Also remove the loop over multiple
pages as we only handle one at the moment, although the structure of
the main worker function makes it relatively easy to add multi page
support back if needed in the future. But at least for now this avoid
the needed to dynamically allocate memory for the dma addresses in
what is essentially the page fault path.
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Christoph Hellwig <[email protected]>
Reviewed-by: Ralph Campbell <[email protected]>
Tested-by: Ralph Campbell <[email protected]>
Signed-off-by: Jason Gunthorpe <[email protected]>
Diffstat (limited to 'drivers/fpga/fpga-mgr.c')
0 files changed, 0 insertions, 0 deletions