summaryrefslogtreecommitdiffstats
path: root/drivers/mtd/lpddr/lpddr_cmds.c
diff options
context:
space:
mode:
authorFrank Haverkamp <haver@linux.vnet.ibm.com>2014-03-20 15:11:05 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2014-04-16 12:12:39 -0700
commit718f762efc454796d02f172a929d051f2d6ec01a (patch)
tree13d8f9558b39963356082460de3ee6855454d972 /drivers/mtd/lpddr/lpddr_cmds.c
parentebb2c96bb9214ba38c7fe35d5d725f6e7cb3bbc8 (diff)
GenWQE: Fix multithreading problems
When being used in a multithreaded application there were problems with memory pages/cachelines accessed by multiple threads/cpus at the same time, while doing DMA transfers to/from those. To avoid such situations this fix is creating a copy of the first and the last page if it is not fully used. The data is copied from user-space into those pages and results are copied back when the DDCB-request is successfully finished. Signed-off-by: Frank Haverkamp <haver@linux.vnet.ibm.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/mtd/lpddr/lpddr_cmds.c')
0 files changed, 0 insertions, 0 deletions