Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp788686ybl; Wed, 28 Aug 2019 05:27:23 -0700 (PDT) X-Google-Smtp-Source: APXvYqy6b6zl+gGoYluQIP4c/UNefTNzAvsF7G/jVpPseerNw5tTwR8vOV4cKlGshPRYDHcxV5R3 X-Received: by 2002:a63:1:: with SMTP id 1mr3200165pga.162.1566995243122; Wed, 28 Aug 2019 05:27:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566995243; cv=none; d=google.com; s=arc-20160816; b=JeVieTae1Rjr9Bcrw8CeYdREeAkhrSx16ByUSVZ1NbJ8ac8dzivLWHHKrW4ytgVIkp ilgR31yqQV2iIo/1J0X6amYhE9uZAwATPY2UHY6pIzctWX9S2ZWzrWaRypzR/qEEwn/8 vcqZnGq0wVKowunpu0/yPC2oZXS+py91z37pSaXFG0/9UI+5V+RfNGY5TxtsDBnxpnRU J2oOMXTdToklhyT/XPT2uHfu3d3WsZGRYQakS2YQEzP3Yc6d/AJOajiPFhS0uk8S0c/K 9FNlowK0xwx8EXExOLdkGwxPjAKLqVRwEjLJryWX09EmSPKThoq5laRMAseClLBWcNIS F9hw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature:dkim-filter; bh=QGwpmYKpkBfkJkR52bVEAkpX4zw0mwzUiEGIdCDkwxA=; b=oAV/Q2Abm+PqE3iLWtpygNsl7QCIYjH8atUAkRRAUTZQo5GOrWF8URfS658pPJF8i0 SBaUixVuBwXlEmVY+kavLe1vePKEUQSaDMOqPMzpaSn34AlpKpQwUB9FeopFnmh7TPBs j0ade9kpRck3HtIRHRJj1GcJZhBPU+WuHOLm+RkRURHyzGaegefDBNkGGhHtmTYSM54G xTRQFoycWUNhopIy5+gZUKINf+CesDiuxigTlXgL1L+LEUGNwGsmQDO1TlHinWtrsP0X NMbiUYFu6HcIfiO8Ohi7dY+eEh3PDQZQFQQJMSggyImi9nCfxZHohinHtNukq1B0tpGM QVTw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=uqNGtZWn; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z27si2541871pfj.225.2019.08.28.05.27.06; Wed, 28 Aug 2019 05:27:23 -0700 (PDT) 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=@nifty.com header.s=dec2015msa header.b=uqNGtZWn; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726438AbfH1MYr (ORCPT + 99 others); Wed, 28 Aug 2019 08:24:47 -0400 Received: from conssluserg-03.nifty.com ([210.131.2.82]:61706 "EHLO conssluserg-03.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726413AbfH1MYr (ORCPT ); Wed, 28 Aug 2019 08:24:47 -0400 Received: from mail-ua1-f42.google.com (mail-ua1-f42.google.com [209.85.222.42]) (authenticated) by conssluserg-03.nifty.com with ESMTP id x7SCOKYn007536; Wed, 28 Aug 2019 21:24:21 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conssluserg-03.nifty.com x7SCOKYn007536 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1566995061; bh=QGwpmYKpkBfkJkR52bVEAkpX4zw0mwzUiEGIdCDkwxA=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=uqNGtZWnszkj+EI17b6cYBIkgLT1pNqqjZ5vvXHhv3nOtkGhMLE3vL239iHJx8xOz TSdYOHpkebqzZFAStQTcerRGirstT0XYJoVthR/5RvSg8EwIXbfT0K4YHHjnM2D9df JXXCqO9Sr2ZFEdHKD7gxA7eX9ABdy7xMFqUuoAjc4LZbh1oHbeSw+NQJ4Ce2UY37OL 1txXvkAUycDvn0IT3BeWg+7kqZstKdDcVVmHGUVKjLtz+pcmN6rubDhCpA5S2OJHzV Tbrl68C67rXttDBFRWfYe+B8o+XbJ2QlQQ11l4eNvd1Y5ZXbdFZLM/YI9cfIW6ibm1 bz9Dqz+XAfrPw== X-Nifty-SrcIP: [209.85.222.42] Received: by mail-ua1-f42.google.com with SMTP id k7so752114uao.6; Wed, 28 Aug 2019 05:24:21 -0700 (PDT) X-Gm-Message-State: APjAAAW009682rJRH8tQEgv1Esk44krWyPnCSSItIdEAEpNfL4gr+Dv4 stBJkAS+9IfqSqP8HOJvw3ng6jijQ1SL4k4NYfA= X-Received: by 2002:ab0:442:: with SMTP id 60mr1554937uav.109.1566995060173; Wed, 28 Aug 2019 05:24:20 -0700 (PDT) MIME-Version: 1.0 References: <20190506223334.1834-1-nicoleotsuka@gmail.com> <20190506223334.1834-3-nicoleotsuka@gmail.com> <20190825011025.GA23410@lst.de> <20190826073320.GA11712@lst.de> <20190827075021.GA953@lst.de> <20190827115541.GB5921@lst.de> In-Reply-To: From: Masahiro Yamada Date: Wed, 28 Aug 2019 21:23:43 +0900 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v2 2/2] dma-contiguous: Use fallback alloc_pages for single pages To: Christoph Hellwig Cc: Nicolin Chen , linux-mmc , Ulf Hansson , Adrian Hunter , Robin Murphy , Marek Szyprowski , vdumpa@nvidia.com, Russell King , Catalin Marinas , Will Deacon , Chris Zankel , Max Filippov , Joerg Roedel , David Woodhouse , Tony Lindgren , Andrew Morton , Stephen Rothwell , Thierry Reding , Kees Cook , iamjoonsoo.kim@lge.com, Wolfram Sang , linux-arm-kernel , Linux Kernel Mailing List , linux-xtensa@linux-xtensa.org, iommu@lists.linux-foundation.org Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Aug 28, 2019 at 7:53 PM Masahiro Yamada wrote: > > Hi Christoph, > > On Tue, Aug 27, 2019 at 8:55 PM Christoph Hellwig wrote: > > > > On Tue, Aug 27, 2019 at 06:03:14PM +0900, Masahiro Yamada wrote: > > > Yes, this makes my driver working again > > > when CONFIG_DMA_CMA=y. > > > > > > > > > If I apply the following, my driver gets back working > > > irrespective of CONFIG_DMA_CMA. > > > > That sounds a lot like the device simply isn't 64-bit DMA capable, and > > previously always got CMA allocations under the limit it actually > > supported. I suggest that you submit this quirk to the mmc maintainers. > > > I tested v5.2 and my MMC host controller works with > dma_address that exceeds 32-bit physical address. > > So, I believe my MMC device is 64-bit DMA capable. > > I am still looking into the code > to find out what was changed. I retract this comment. Prior to bd2e75633c8012fc8a7431c82fda66237133bf7e, the descriptor table for ADMA is placed within the 32-bit phys address range, not exceeds the 32-bit limit. Probably, my device is not 64-bit capable. I will talk to the hardware engineer, and check the hardware spec just in case. Thanks. -- Best Regards Masahiro Yamada