mvneta.c, MVNETA_TXQ_UPDATE_REG, shut down issue

2015-07-18 Thread Constantine Shulyupin
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
--
To unsubscribe from this list: send the line unsubscribe netdev in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: mvneta.c, MVNETA_TXQ_UPDATE_REG, shut down issue

2015-07-18 Thread Thomas Petazzoni
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
--
To unsubscribe from this list: send the line unsubscribe netdev in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html