mvneta.c, MVNETA_TXQ_UPDATE_REG, shut down issue

2 messages, 2 authors, 2015-07-18 · open the first message on its own page

mvneta.c, MVNETA_TXQ_UPDATE_REG, shut down issue

From: Constantine Shulyupin <hidden>
Date: 2015-07-18 18:49:00

Hi Rami and Thomas,

I try to run vanilla kernel 4.2.0 on custom Armada-370 board, based on
DB-88F6710-BP.

The problem is that the board shuts down after writing to
MVNETA_TXQ_UPDATE_REG in this code:

static void mvneta_txq_pend_desc_add(struct mvneta_port *pp,
                                     struct mvneta_tx_queue *txq,
                                     int pend_desc)
{
        u32 val;

        /* Only 255 descriptors can be added at once ; Assume caller
         * process TX desriptors in quanta less than 256
         */
        val = pend_desc;
        mvreg_write(pp, MVNETA_TXQ_UPDATE_REG(txq->id), val);
}

BTW, pend_desc == 1

What can you suggest?

Thanks
Constantine

Re: mvneta.c, MVNETA_TXQ_UPDATE_REG, shut down issue

From: Thomas Petazzoni <hidden>
Date: 2015-07-18 19:01:48

Constantine,

On Sat, 18 Jul 2015 21:48:59 +0300, Constantine Shulyupin wrote:
I try to run vanilla kernel 4.2.0 on custom Armada-370 board, based on
DB-88F6710-BP.

The problem is that the board shuts down after writing to
MVNETA_TXQ_UPDATE_REG in this code:
What do you mean by shut down? Physically turns off?

I hardly see how writing to this register can turn off the board. Can
you try on a non-custom A370 board?

Thanks,

Thomas
-- 
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help