Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1518483
| From | Grygorii Strashko <grygorii.strashko@ti.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH] net: ethernet: ti: davinci_cpdma: fix fixed prio cpdma ctlr configuration |
| Date | 2016-11-09 22:20 +0100 |
| Message-ID | <sBIrM-4d2-17@gated-at.bofh.it> (permalink) |
| References | <sBetH-1nU-9@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On 11/08/2016 07:10 AM, Ivan Khoronzhuk wrote:
> The dma ctlr is reseted to 0 while cpdma start, thus cpdma ctlr
I assume this is because cpdma_ctlr_start() does soft reset. Is it correct?
> cannot be configured after cpdma is stopped. So, restore content
> of cpdma ctlr while off/on procedure.
>
> Based on net-next/master
^ remove it
>
> Signed-off-by: Ivan Khoronzhuk <ivan.khoronzhuk@linaro.org>
> ---
> drivers/net/ethernet/ti/cpsw.c | 6 +-
> drivers/net/ethernet/ti/davinci_cpdma.c | 103 +++++++++++++++++---------------
> drivers/net/ethernet/ti/davinci_cpdma.h | 2 +
> 3 files changed, 58 insertions(+), 53 deletions(-)
>
> diff --git a/drivers/net/ethernet/ti/cpsw.c b/drivers/net/ethernet/ti/cpsw.c
> index b1ddf89..4d04b8e 100644
> --- a/drivers/net/ethernet/ti/cpsw.c
> +++ b/drivers/net/ethernet/ti/cpsw.c
> @@ -1376,10 +1376,6 @@ static int cpsw_ndo_open(struct net_device *ndev)
> ALE_ALL_PORTS, ALE_ALL_PORTS, 0, 0);
>
> if (!cpsw_common_res_usage_state(cpsw)) {
> - /* setup tx dma to fixed prio and zero offset */
> - cpdma_control_set(cpsw->dma, CPDMA_TX_PRIO_FIXED, 1);
> - cpdma_control_set(cpsw->dma, CPDMA_RX_BUFFER_OFFSET, 0);
> -
> /* disable priority elevation */
> __raw_writel(0, &cpsw->regs->ptype);
>
> @@ -2710,6 +2706,8 @@ static int cpsw_probe(struct platform_device *pdev)
> dma_params.desc_align = 16;
> dma_params.has_ext_regs = true;
> dma_params.desc_hw_addr = dma_params.desc_mem_phys;
> + dma_params.rxbuf_offset = 0;
> + dma_params.fixed_prio = 1;
Do we really need this new parameters? Do you have plans to use other values?
--
regards,
-grygorii
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCH] net: ethernet: ti: davinci_cpdma: fix fixed prio cpdma ctlr configuration Ivan Khoronzhuk <ivan.khoronzhuk@linaro.org> - 2016-11-08 14:20 +0100
Re: [PATCH] net: ethernet: ti: davinci_cpdma: fix fixed prio cpdma ctlr configuration Grygorii Strashko <grygorii.strashko@ti.com> - 2016-11-09 22:20 +0100
Re: [PATCH] net: ethernet: ti: davinci_cpdma: fix fixed prio cpdma ctlr configuration Ivan Khoronzhuk <ivan.khoronzhuk@linaro.org> - 2016-11-10 01:00 +0100
Re: [PATCH] net: ethernet: ti: davinci_cpdma: fix fixed prio cpdma ctlr configuration Grygorii Strashko <grygorii.strashko@ti.com> - 2016-11-10 17:40 +0100
Re: [PATCH] net: ethernet: ti: davinci_cpdma: fix fixed prio cpdma ctlr configuration "ivan.khoronzhuk" <ivan.khoronzhuk@linaro.org> - 2016-11-10 21:00 +0100
Re: [PATCH] net: ethernet: ti: davinci_cpdma: fix fixed prio cpdma ctlr configuration Grygorii Strashko <grygorii.strashko@ti.com> - 2016-11-11 01:10 +0100
csiph-web