From: Christophe LEROY <christophe.leroy@c-s.fr>
To: Li Yang <leoli@freescale.com>, Qiang Zhao <qiang.zhao@nxp.com>,
Scott Wood <oss@buserror.net>,
"David S. Miller" <davem@davemloft.net>
Cc: netdev@vger.kernel.org, linuxppc-dev@lists.ozlabs.org,
linux-kernel@vger.kernel.org,
linux-arm-kernel@lists.infradead.org
Subject: Re: [PATCH 1/2] net: ethernet: ucc_geth: fix MEM_PART_MURAM mode
Date: Thu, 9 Feb 2017 11:45:17 +0100 [thread overview]
Message-ID: <4ef41972-0cd1-525f-dbb2-95b3be007b93@c-s.fr> (raw)
In-Reply-To: <d25ee7a13b60dcd005c59169feacb18fb69a06c1.1486456900.git.christophe.leroy@c-s.fr>
Acked-by: David S. Miller <davem@davemloft.net>
Le 07/02/2017 à 10:05, Christophe Leroy a écrit :
> Since commit 5093bb965a163 ("powerpc/QE: switch to the cpm_muram
> implementation"), muram area is not part of immrbar mapping anymore
> so immrbar_virt_to_phys() is not usable anymore.
>
> Fixes: 5093bb965a163 ("powerpc/QE: switch to the cpm_muram implementation)
> Signed-off-by: Christophe Leroy <christophe.leroy@c-s.fr>
> ---
> drivers/net/ethernet/freescale/ucc_geth.c | 8 +++-----
> include/soc/fsl/qe/qe.h | 1 +
> 2 files changed, 4 insertions(+), 5 deletions(-)
>
> diff --git a/drivers/net/ethernet/freescale/ucc_geth.c b/drivers/net/ethernet/freescale/ucc_geth.c
> index 3f7ae9f..f77ba9f 100644
> --- a/drivers/net/ethernet/freescale/ucc_geth.c
> +++ b/drivers/net/ethernet/freescale/ucc_geth.c
> @@ -2594,11 +2594,10 @@ static int ucc_geth_startup(struct ucc_geth_private *ugeth)
> } else if (ugeth->ug_info->uf_info.bd_mem_part ==
> MEM_PART_MURAM) {
> out_be32(&ugeth->p_send_q_mem_reg->sqqd[i].bd_ring_base,
> - (u32) immrbar_virt_to_phys(ugeth->
> - p_tx_bd_ring[i]));
> + (u32)qe_muram_dma(ugeth->p_tx_bd_ring[i]));
> out_be32(&ugeth->p_send_q_mem_reg->sqqd[i].
> last_bd_completed_address,
> - (u32) immrbar_virt_to_phys(endOfRing));
> + (u32)qe_muram_dma(endOfRing));
> }
> }
>
> @@ -2844,8 +2843,7 @@ static int ucc_geth_startup(struct ucc_geth_private *ugeth)
> } else if (ugeth->ug_info->uf_info.bd_mem_part ==
> MEM_PART_MURAM) {
> out_be32(&ugeth->p_rx_bd_qs_tbl[i].externalbdbaseptr,
> - (u32) immrbar_virt_to_phys(ugeth->
> - p_rx_bd_ring[i]));
> + (u32)qe_muram_dma(ugeth->p_rx_bd_ring[i]));
> }
> /* rest of fields handled by QE */
> }
> diff --git a/include/soc/fsl/qe/qe.h b/include/soc/fsl/qe/qe.h
> index 70339d7..0cd4c1147 100644
> --- a/include/soc/fsl/qe/qe.h
> +++ b/include/soc/fsl/qe/qe.h
> @@ -243,6 +243,7 @@ static inline int qe_alive_during_sleep(void)
> #define qe_muram_free cpm_muram_free
> #define qe_muram_addr cpm_muram_addr
> #define qe_muram_offset cpm_muram_offset
> +#define qe_muram_dma cpm_muram_dma
>
> #define qe_setbits32(_addr, _v) iowrite32be(ioread32be(_addr) | (_v), (_addr))
> #define qe_clrbits32(_addr, _v) iowrite32be(ioread32be(_addr) & ~(_v), (_addr))
>
next prev parent reply other threads:[~2017-02-09 10:45 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-02-07 9:05 [PATCH 0/2] get rid of immrbar_virt_to_phys() Christophe Leroy
2017-02-07 9:05 ` [PATCH 1/2] net: ethernet: ucc_geth: fix MEM_PART_MURAM mode Christophe Leroy
2017-02-09 10:45 ` Christophe LEROY [this message]
2017-02-09 23:12 ` Li Yang
2017-02-07 9:05 ` [PATCH 2/2] soc/fsl/qe: get rid of immrbar_virt_to_phys() Christophe Leroy
2017-02-09 23:17 ` Li Yang
2017-02-08 18:17 ` [PATCH 0/2] " David Miller
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4ef41972-0cd1-525f-dbb2-95b3be007b93@c-s.fr \
--to=christophe.leroy@c-s.fr \
--cc=davem@davemloft.net \
--cc=leoli@freescale.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linuxppc-dev@lists.ozlabs.org \
--cc=netdev@vger.kernel.org \
--cc=oss@buserror.net \
--cc=qiang.zhao@nxp.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®