Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp684553ybl; Wed, 28 Aug 2019 03:55:44 -0700 (PDT) X-Google-Smtp-Source: APXvYqy6szG2WqNc7VuUGUNRk3ioczsqPDqwf1sswVcVimsnmxCNWruvmzKr69B9rcRf8a7En5bk X-Received: by 2002:a65:6454:: with SMTP id s20mr2883443pgv.15.1566989743954; Wed, 28 Aug 2019 03:55:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566989743; cv=none; d=google.com; s=arc-20160816; b=KB91Dgp7H4lFUNqIdps7RaoXkuHoI3ZumqnNYT42tA0W0jJZ+9PhO7MOlnsFLlV5ba uilTVppIQ12pXM26muBUt2vumlUUk9rXaj9FXCVlxxCkJqGxGZ0arxK0GrmvvR4ziyaJ CpoOUC3f7vUSBTJzuIJSKh1E+joguV4Gjk21BCgOTuclC2vbatnxHGwdelke36IC58PS hoSbIeXYqlrh/ekZmXchagGPUJHdCtApkW8mEQs0WXCwZUMrs2MrTk369o0z/RE526nu muEuJsENRZ7Dej4/n33tHsGV8fQyiaxW3ANNcjQN8XDPz4A533Yk2Ou4TQ0EAk+tdeK7 Mqtg== 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=0aEfdaeY7mGkEAyGyJedaS36AmSkDHSHLjJWK6eJ8jU=; b=atfUbbV2qVgEDWXCSRWvF72gIqRIi3Gx8MHt1V4IsM8T2adUtAfDhSoJrox9mMouej Uw3GsT9Crx3elzBZMD2IIm/KEWErK5aNBOTqGOoxH/q38xSeqvuTaJLnUiwOHah/Go2+ yKS+cMgIvvLqc8dCHoJuYbZvJ1Vh3dYnmvvi7BA0kWkNPiUYhscdPTn6cetlSMmRE7jo SeWwou1HhcXvCy6cJq2jbpyXUDnbl6NrVUp8vzudMfhYCTxphlvoy/MgPA7J85zAZGVY jb6efbyJG11liVb1WYgxGwGiAXt+qPybRvtDj/Y+V6KvNwSdJ8Dq2j6sbm3PG90j9Re1 faTw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=bK8fRPnW; 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 y5si1633528pjv.25.2019.08.28.03.55.26; Wed, 28 Aug 2019 03:55:43 -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=bK8fRPnW; 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 S1726397AbfH1Kyf (ORCPT + 99 others); Wed, 28 Aug 2019 06:54:35 -0400 Received: from conssluserg-04.nifty.com ([210.131.2.83]:54855 "EHLO conssluserg-04.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726270AbfH1Kyf (ORCPT ); Wed, 28 Aug 2019 06:54:35 -0400 Received: from mail-vs1-f52.google.com (mail-vs1-f52.google.com [209.85.217.52]) (authenticated) by conssluserg-04.nifty.com with ESMTP id x7SAsGhE023826; Wed, 28 Aug 2019 19:54:17 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conssluserg-04.nifty.com x7SAsGhE023826 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1566989657; bh=0aEfdaeY7mGkEAyGyJedaS36AmSkDHSHLjJWK6eJ8jU=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=bK8fRPnWch65cU6pgIoRy9PQBFZXFjZyaECj8O/kkx24MPqoedK98ZKATllbYFpCx nEN73VKu9eY89bVTdzDU6v4j6xAD+ZPhYcHLtZI6J986KSm9T4v1ZXa30nNgd9iOa/ iVw5CoXOPXoV094mtj5rUSD9l+L2GUG738uJ6VpcqCkpDHUAcP3LkIVQIws/5MjHln 27ZJtFOqGh9EQlFwGFso/6v6/xwkQB1BIZU4X8d6Pn6jEASzJyVsxrQ2Y6pr9vLyvd uLiEGSm67Nu/LHo2aqPZixxJR3pcME8nfDSwsPSDZMUPb5R6wnwVYSj8cjFpsa3ikc GNot1GcyfydYA== X-Nifty-SrcIP: [209.85.217.52] Received: by mail-vs1-f52.google.com with SMTP id 62so1542350vsl.5; Wed, 28 Aug 2019 03:54:17 -0700 (PDT) X-Gm-Message-State: APjAAAW/LPwpkfIYhZafs1steV7l8eGJz4VnFtLJuatM7SBP+1HcpcvA 5sFn7inf54Dgw8vg1BS4eNpY70BJ6SleeGMat+0= X-Received: by 2002:a67:8a83:: with SMTP id m125mr1914365vsd.181.1566989656023; Wed, 28 Aug 2019 03:54:16 -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: <20190827115541.GB5921@lst.de> From: Masahiro Yamada Date: Wed, 28 Aug 2019 19:53:40 +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 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. -- Best Regards Masahiro Yamada