OSDN Git Service

intel_th: msu: Support multipage blocks
authorAlexander Shishkin <alexander.shishkin@linux.intel.com>
Thu, 27 Jun 2019 12:51:45 +0000 (15:51 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 3 Jul 2019 15:45:56 +0000 (17:45 +0200)
commitfa52b3fe5e9383022f83382f5ffcb386b9b11b4f
tree19755ab0396c6821d61787a97d72adc0261a979c
parent4aa5aed2b6f267592705a526f57518a5d715b769
intel_th: msu: Support multipage blocks

Now that the MSU is using scatterlist, we can support multipage blocks.
At the moment, the code assumes that all blocks are page-sized, but in
larger buffers it may make sense to chunk together larger blocks of
memory. One place where one-to-many relationship needs to be handled is
the MSU buffer's mmap path.

Get rid of the implicit assumption that all blocks are page-sized.

Signed-off-by: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://lore.kernel.org/r/20190627125152.54905-3-alexander.shishkin@linux.intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/hwtracing/intel_th/msu.c