From: Scott Wood <oss@buserror.net> Date: 2018-12-22 04:36:51
Otherwise 64-bit PPC builds fail with undefined references
to these accessors.
Cc: Peng Ma <redacted>
Cc: Wen He <redacted>
Fixes: 68997fff94afa (" dmaengine: fsldma: Adding macro FSL_DMA_IN/OUT implement for ARM platform")
Signed-off-by: Scott Wood <oss@buserror.net>
---
Is there any reason why ioreadXXbe() etc can't be used on PPC as well?
drivers/dma/fsldma.h | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
-----Original Message-----
From: Scott Wood <oss@buserror.net>
Sent: 2018年12月22日 12:35
To: Leo Li <redacted>; Zhang Wei <zw@zh-kernel.org>
Cc: linuxppc-dev@lists.ozlabs.org; dmaengine@vger.kernel.org; Peng Ma
[off-list ref]; Wen He [off-list ref]
Subject: [PATCH] dmaengine: fsldma: Add 64-bit I/O accessors for powerpc64
Otherwise 64-bit PPC builds fail with undefined references to these accessors.
Cc: Peng Ma <redacted>
Cc: Wen He <redacted>
Fixes: 68997fff94afa (" dmaengine: fsldma: Adding macro FSL_DMA_IN/OUT
implement for ARM platform")
Signed-off-by: Scott Wood <oss@buserror.net>
---
Is there any reason why ioreadXXbe() etc can't be used on PPC as well?
drivers/dma/fsldma.h | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/drivers/dma/fsldma.h b/drivers/dma/fsldma.h index
Hi Scott,
Oh, I did not see the in_XX64/out_XX64 supported only __powerpc64__ just now.
Thanks for your reminder.
#ifdef __powerpc64__
#ifdef __BIG_ENDIAN__
DEF_MMIO_OUT_D(out_be64, 64, std);
DEF_MMIO_IN_D(in_be64, 64, ld);
/* There is no asm instructions for 64 bits reverse loads and stores */
static inline u64 in_le64(const volatile u64 __iomem *addr)
{
return swab64(in_be64(addr));
}
static inline void out_le64(volatile u64 __iomem *addr, u64 val)
{
out_be64(addr, swab64(val));
}
#else
DEF_MMIO_OUT_D(out_le64, 64, std);
DEF_MMIO_IN_D(in_le64, 64, ld);
/* There is no asm instructions for 64 bits reverse loads and stores */
static inline u64 in_be64(const volatile u64 __iomem *addr)
{
return swab64(in_le64(addr));
}
static inline void out_be64(volatile u64 __iomem *addr, u64 val)
{
out_le64(addr, swab64(val));
}
#endif
#endif /* __powerpc64__ */
Best Regards,
Peng
-----Original Message-----
From: Scott Wood <oss@buserror.net>
Sent: 2018年12月24日 12:46
To: Peng Ma <redacted>; Leo Li <redacted>; Zhang Wei
[off-list ref]
Cc: linuxppc-dev@lists.ozlabs.org; dmaengine@vger.kernel.org; Wen He
[off-list ref]
Subject: Re: [PATCH] dmaengine: fsldma: Add 64-bit I/O accessors for
powerpc64
On Mon, 2018-12-24 at 03:42 +0000, Peng Ma wrote:
quoted
Hi Scott,
You are right, we should support powerpc64, so could I changed it as
fallows:
diff --git a/drivers/dma/fsldma.h b/drivers/dma/fsldma.h index
Hi Scott,
Oh, I did not see the in_XX64/out_XX64 supported only __powerpc64__ just now.
Thanks for your reminder.
Can you send the formal patch for this...
FWIW, fsl patches were not merged last cycle because of reported
regression...
#ifdef __powerpc64__
#ifdef __BIG_ENDIAN__
DEF_MMIO_OUT_D(out_be64, 64, std);
DEF_MMIO_IN_D(in_be64, 64, ld);
/* There is no asm instructions for 64 bits reverse loads and stores */
static inline u64 in_le64(const volatile u64 __iomem *addr)
{
return swab64(in_be64(addr));
}
static inline void out_le64(volatile u64 __iomem *addr, u64 val)
{
out_be64(addr, swab64(val));
}
#else
DEF_MMIO_OUT_D(out_le64, 64, std);
DEF_MMIO_IN_D(in_le64, 64, ld);
/* There is no asm instructions for 64 bits reverse loads and stores */
static inline u64 in_be64(const volatile u64 __iomem *addr)
{
return swab64(in_le64(addr));
}
static inline void out_be64(volatile u64 __iomem *addr, u64 val)
{
out_le64(addr, swab64(val));
}
#endif
#endif /* __powerpc64__ */
Best Regards,
Peng
quoted
-----Original Message-----
From: Scott Wood <oss@buserror.net>
Sent: 2018年12月24日 12:46
To: Peng Ma <redacted>; Leo Li <redacted>; Zhang Wei
[off-list ref]
Cc: linuxppc-dev@lists.ozlabs.org; dmaengine@vger.kernel.org; Wen He
[off-list ref]
Subject: Re: [PATCH] dmaengine: fsldma: Add 64-bit I/O accessors for
powerpc64
On Mon, 2018-12-24 at 03:42 +0000, Peng Ma wrote:
quoted
Hi Scott,
You are right, we should support powerpc64, so could I changed it as
fallows:
diff --git a/drivers/dma/fsldma.h b/drivers/dma/fsldma.h index
Hi Vinod,
Sorry to replay late.
1:This patch has already send to the patchwork.
Please see the patch link: https://patchwork.kernel.org/patch/10741521/
2:I have already compile the fsl patches on arm and powerpc after patched https://patchwork.kernel.org/patch/10741521/
The compile will successful, please let me know the reported regression results, thanks very much.
Best Regards,
Peng
-----Original Message-----
From: Vinod Koul <vkoul@kernel.org>
Sent: 2019年1月19日 20:59
To: Peng Ma <redacted>
Cc: Scott Wood <oss@buserror.net>; Leo Li <redacted>; Zhang Wei
[off-list ref]; linuxppc-dev@lists.ozlabs.org;
dmaengine@vger.kernel.org; Wen He [off-list ref]
Subject: Re: [PATCH] dmaengine: fsldma: Add 64-bit I/O accessors for
powerpc64
On 24-12-18, 05:29, Peng Ma wrote:
quoted
Hi Scott,
Oh, I did not see the in_XX64/out_XX64 supported only __powerpc64__ just
now.
quoted
Thanks for your reminder.
Can you send the formal patch for this...
FWIW, fsl patches were not merged last cycle because of reported regression...
quoted
#ifdef __powerpc64__
#ifdef __BIG_ENDIAN__
DEF_MMIO_OUT_D(out_be64, 64, std);
DEF_MMIO_IN_D(in_be64, 64, ld);
/* There is no asm instructions for 64 bits reverse loads and stores
*/ static inline u64 in_le64(const volatile u64 __iomem *addr) {
return swab64(in_be64(addr));
}
static inline void out_le64(volatile u64 __iomem *addr, u64 val) {
out_be64(addr, swab64(val));
}
#else
DEF_MMIO_OUT_D(out_le64, 64, std);
DEF_MMIO_IN_D(in_le64, 64, ld);
/* There is no asm instructions for 64 bits reverse loads and stores
*/ static inline u64 in_be64(const volatile u64 __iomem *addr) {
return swab64(in_le64(addr));
}
static inline void out_be64(volatile u64 __iomem *addr, u64 val) {
out_le64(addr, swab64(val));
}
#endif
#endif /* __powerpc64__ */
Best Regards,
Peng
quoted
-----Original Message-----
From: Scott Wood <oss@buserror.net>
Sent: 2018年12月24日 12:46
To: Peng Ma <redacted>; Leo Li <redacted>; Zhang
Wei
quoted
quoted
[off-list ref]
Cc: linuxppc-dev@lists.ozlabs.org; dmaengine@vger.kernel.org; Wen He
[off-list ref]
Subject: Re: [PATCH] dmaengine: fsldma: Add 64-bit I/O accessors for
powerpc64
On Mon, 2018-12-24 at 03:42 +0000, Peng Ma wrote:
quoted
Hi Scott,
You are right, we should support powerpc64, so could I changed it
as
fallows:
diff --git a/drivers/dma/fsldma.h b/drivers/dma/fsldma.h index
Hi Vinod,
Sorry to replay late.
1:This patch has already send to the patchwork.
Please see the patch link: https://patchwork.kernel.org/patch/10741521/
2:I have already compile the fsl patches on arm and powerpc after patched https://patchwork.kernel.org/patch/10741521/
The compile will successful, please let me know the reported regression results, thanks very much.
And I thought there were further comments on this patch. I have applied
this, please watch for failures reported if any..
--
~Vinod
The compile will successful, please let me know the reported regression
results, thanks very much.
And I thought there were further comments on this patch. I have applied this,
please watch for failures reported if any..
--
~Vinod