[PATCH 3/4] fsl_msi: enable msi sharing through AMP OSes
Michael Ellerman
michael at ellerman.id.au
Mon Apr 19 12:34:09 EST 2010
On Fri, 2010-04-16 at 15:34 +0800, Li Yang wrote:
> From: Zhao Chenhui <b26998 at freescale.com>
>
> Make a single PCIe MSI bank shareable through CAMP OSes. The number of
> MSI used by each core can be configured by dts file.
>
> Signed-off-by: Zhao Chenhui <b26998 at freescale.com>
> Signed-off-by: Li Yang <leoli at freescale.com>
> ---
> arch/powerpc/sysdev/fsl_msi.c | 8 +++++++-
> arch/powerpc/sysdev/msi_bitmap.c | 4 ++--
> 2 files changed, 9 insertions(+), 3 deletions(-)
..
> diff --git a/arch/powerpc/sysdev/msi_bitmap.c b/arch/powerpc/sysdev/msi_bitmap.c
> index 5a32cbe..b41db96 100644
> --- a/arch/powerpc/sysdev/msi_bitmap.c
> +++ b/arch/powerpc/sysdev/msi_bitmap.c
> @@ -95,8 +95,8 @@ int msi_bitmap_reserve_dt_hwirqs(struct msi_bitmap *bmp)
> /* Format is: (<u32 start> <u32 count>)+ */
> len /= 2 * sizeof(u32);
> for (i = 0; i < len; i++, p += 2) {
> - for (j = 0; j < *(p + 1); j++)
> - bitmap_release_region(bmp->bitmap, *p + j, 0);
> + for (j = *p; j < *(p + 1); j++)
> + bitmap_release_region(bmp->bitmap, j, 0);
> }
>
> spin_unlock(&bmp->lock);
This looks like a bug fix to the msi bitmap code, is it not? Please
split it into a separate commit with an explanatory changelog.
cheers
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part
URL: <http://lists.ozlabs.org/pipermail/linuxppc-dev/attachments/20100419/8d019ce6/attachment.pgp>
More information about the Linuxppc-dev
mailing list