Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp6974998imu; Mon, 3 Dec 2018 05:56:21 -0800 (PST) X-Google-Smtp-Source: AFSGD/UyX1fHRs/V88WX/IEmk5EbVvowoYFdOc3JYCYh2t5WuBJ683IfpOC284eXezwNhu+5I6YK X-Received: by 2002:a63:2946:: with SMTP id p67mr13511309pgp.317.1543845381386; Mon, 03 Dec 2018 05:56:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543845381; cv=none; d=google.com; s=arc-20160816; b=e7YO+JlzEF3V0n8ieNuW42vR+RsGxcbgZs+HVZkylpRoPS2QXvc4cfvv2gliJ0Iohl bLOkFxeB/nPDUKQzbCXtUan4UIkmGLLStSsEqGy2YGp8L5haph54WYLl9YWl/Web7okN s/+XiwG3ybl+Rn1KVflcYRtJMqMzkcW8tAgHSKKnishy7SNcMuZYj4Ey0WBNVx2aHnMB lA7qC02Bmb3eM2UrxGY8bh8IrReDL2vBPjOoJ9CYtJKEdCOoJVLyWcynqFy0Yivy7AL9 V08EsZCQrLiI7r/BQXDsiuLPabptFoLSTP7/EIaaBIFn6k+d5cSyRaoZqE7Ls/JQmoRT D6Ow== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:references:cc:to:from:subject:dkim-signature; bh=5+3+S8v0hBrjjYVeuzncQ4PaQduRXxRJ/bcrU4uUAVI=; b=V3J8YlI5JWEF4ME3GGJNlhuqWwiyhz9M3XLdEgcX4Vj1DEIL8vEIq+DtpeXDdKZ7i4 YVG/jBmKnxDKU4thyjRNP/I3zBgKpicQ6T8nQWGTHtB1X0Agzlaw2kJ6PbanEj6S9J1N fyMkBowVeuLRmpEXBwoSI9Ca341n384oDZAPQAhwSvuO37qqCRdMNHKIFoXeGUxAjuHb N/gH4Qapvymzyi6gPjEGbzUBn99RBK1DN+m1mtdA0t7j3lC03sa1LDV/x+H3aaCnEff4 40q7I+/ShXDlkEADUTAqLm/uDfBYcf4eF2Sh/UE7SSMPQ/WlkNn+xrpVmNccLsQ08dXL OaGQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=q5aqGeOM; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 78si11537234pge.294.2018.12.03.05.56.06; Mon, 03 Dec 2018 05:56:21 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=q5aqGeOM; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726014AbeLCN4a (ORCPT + 99 others); Mon, 3 Dec 2018 08:56:30 -0500 Received: from lelv0143.ext.ti.com ([198.47.23.248]:34600 "EHLO lelv0143.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725830AbeLCN4a (ORCPT ); Mon, 3 Dec 2018 08:56:30 -0500 Received: from lelv0265.itg.ti.com ([10.180.67.224]) by lelv0143.ext.ti.com (8.15.2/8.15.2) with ESMTP id wB3DtH6D035033; Mon, 3 Dec 2018 07:55:17 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1543845317; bh=5+3+S8v0hBrjjYVeuzncQ4PaQduRXxRJ/bcrU4uUAVI=; h=Subject:From:To:CC:References:Date:In-Reply-To; b=q5aqGeOMGhX9uh8fZISoB8DLshMoH645ttXBs/Dbz30S/qaCMwRcOTQBKMkYBpWWF DmtU6T6E2OKtUMNRCU8OeI2VnkOcu9gzvfAw7Lxh/GDLx32wvIf5twHkoxCraX0kbz ZL6CUNhm/ve0jYTVUZt/3vo29mNRCV4noC8fepqg= Received: from DLEE114.ent.ti.com (dlee114.ent.ti.com [157.170.170.25]) by lelv0265.itg.ti.com (8.15.2/8.15.2) with ESMTPS id wB3DtHxU025088 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Mon, 3 Dec 2018 07:55:17 -0600 Received: from DLEE104.ent.ti.com (157.170.170.34) by DLEE114.ent.ti.com (157.170.170.25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1591.10; Mon, 3 Dec 2018 07:55:17 -0600 Received: from dlep33.itg.ti.com (157.170.170.75) by DLEE104.ent.ti.com (157.170.170.34) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.1591.10 via Frontend Transport; Mon, 3 Dec 2018 07:55:17 -0600 Received: from [172.24.190.215] (ileax41-snat.itg.ti.com [10.172.224.153]) by dlep33.itg.ti.com (8.14.3/8.13.8) with ESMTP id wB3DtD7h012802; Mon, 3 Dec 2018 07:55:14 -0600 Subject: Re: [PATCH V3 1/3] mmc: sdhci: add support for using external DMA devices From: Faiz Abbas To: Chunyan Zhang , Ulf Hansson , Adrian Hunter CC: , , Arnd Bergmann , Mark Brown , Kishon Vijay Abraham I , Sekhar Nori , Chunyan Zhang References: <1542007566-9449-2-git-send-email-zhang.chunyan@linaro.org> <1543471664-22856-1-git-send-email-zhang.chunyan@linaro.org> Message-ID: Date: Mon, 3 Dec 2018 19:28:03 +0530 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.2.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset="utf-8" Content-Language: en-US Content-Transfer-Encoding: 7bit X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, On 03/12/18 5:45 PM, Faiz Abbas wrote: > Hi, > >> +static void sdhci_external_dma_prepare_data(struct sdhci_host *host, >> + struct mmc_command *cmd) >> +{ > > Please add a condition for data == NULL here. This was already pointed > out by Adrian in v2. > > My test with an am335x-evm failed with these patches. Looks like the > very first SDIO commands failing. > > https://pastebin.ubuntu.com/p/Y2RDjSKpgd/ > > Currently am335x-evm is using omap_hsmmc driver. I added the following > patch to make it work with sdhci_omap. > > https://pastebin.ubuntu.com/p/VTGrCbJxY3/ > > Will look deeper into this. Please ping if you need any more information. > So I disabled DMA in the driver altogether and still got the same messages on am335x-evm in PIO mode. Looks like something more is required for it to be supported. I instead shifted to a dra71-evm which supports both ADMA and external DMA. Here is the log: https://pastebin.ubuntu.com/p/mcJmgcjQsp/ The interface fundamentally works but it complains with the following error: [3.111693] Failed to request TX DMA channel. Thanks, Faiz