From mboxrd@z Thu Jan 1 00:00:00 1970 From: Zoltan Kiss Subject: dma_map_single returns 0 on ARM Date: Fri, 24 Oct 2014 17:40:17 +0100 Message-ID: <544A80F1.5080203@linaro.org> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; Format="flowed" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta14.messagelabs.com ([193.109.254.103]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1XhhuU-0007vW-QZ for xen-devel@lists.xenproject.org; Fri, 24 Oct 2014 16:40:18 +0000 Received: by mail-wg0-f49.google.com with SMTP id x12so1484554wgg.20 for ; Fri, 24 Oct 2014 09:40:17 -0700 (PDT) Received: from [192.168.0.101] ([90.152.119.35]) by mx.google.com with ESMTPSA id fu5sm6182348wjb.26.2014.10.24.09.40.15 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 24 Oct 2014 09:40:16 -0700 (PDT) List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: xen-devel@lists.xenproject.org List-Id: xen-devel@lists.xenproject.org Hi, I'm trying to fire up the Ethernet port of a Hisilicon D01 board, and it fails when it wants to map the buffers to the device: phys = dma_map_single(&ndev->dev, priv->rx_buf[i], RX_BUF_SIZE, DMA_FROM_DEVICE); This returns 0, while running on bare metal it works. Does anyone has an advice where should I look? Regards, Zoltan