Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp2176900ybl; Thu, 29 Aug 2019 04:47:32 -0700 (PDT) X-Google-Smtp-Source: APXvYqzE5W57NaI+KhWWBqfCQlguRfazuVp8DUm4zw5wJqaWOe+SNbPEvaGsUSujhKUXukHAM+Dh X-Received: by 2002:a17:902:8d8d:: with SMTP id v13mr9381864plo.137.1567079252369; Thu, 29 Aug 2019 04:47:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567079252; cv=none; d=google.com; s=arc-20160816; b=aoNPUyeznuVeYwEu3rFGOHBF0HjayfvdMdDF8ifpBR4iDneSf8ki+AfnkBWGpn6hs7 3Zs9h3IyXfJ74RkozZ0rOjLjJ2qiKXN5DFIOPvn0BCE58aWZDMCJZOmjWFvGe27Ecjee wYHtOuFPw0Yax5I6CccOq3aJL3qttIKIYiK5W2nggd5o4ie1c1g/14VUmJ5UVgAgE4mb YuAx2O2Ut2AnSx+4SqxFNMCF0VXwNCEOvByBTh0uITZjpetC81g+x0Yntk3g3joCxpeh LRrwcEURizRQdtzJXkV2Yi4lliQRArmd4edWcCexto2onHb8sCwqlGD9GFZKdX6mvEE7 GUjw== 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=jJHAKRHFRUzF/5jWYYKHoeNpyJFG8X4zd/Hk645vV1s=; b=Mh9RMK0L7KZ5VeBfBrCjRW1HC2s2Vvd/Qbp8ku5HE3Q/uSRnB62CTKeSy5BDCWdkKF mZb35A3s0TJq2rhe02xfjSZ7MFq3nnuQXL0v2DrhC2eYK6Z4J9RuZnLtbqEuhs36K+sZ sodykq6YSUPeduToPRR25k8LwbV7Vo4tmPvIyKyotkeV31NI22ljZdMZiZRD7ZMpiL9I eulO7STzbuOmGZhfpHB/XLXv4smYK9juT1c0OZNNSTsLLYDCm6nOKFVeWUVLz6MW0/4A pjWRI8fbw93hocHWK7ZKRAaw77/VyZHH1BgAyNDzjzXmoxHlsOXpDuxUGZDtwVho/Pbp oShw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=FR2lZSyo; 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 b8si1962899pjn.71.2019.08.29.04.47.16; Thu, 29 Aug 2019 04:47:32 -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=FR2lZSyo; 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 S1727223AbfH2LqJ (ORCPT + 99 others); Thu, 29 Aug 2019 07:46:09 -0400 Received: from conssluserg-06.nifty.com ([210.131.2.91]:43802 "EHLO conssluserg-06.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727099AbfH2LqJ (ORCPT ); Thu, 29 Aug 2019 07:46:09 -0400 Received: from mail-vs1-f47.google.com (mail-vs1-f47.google.com [209.85.217.47]) (authenticated) by conssluserg-06.nifty.com with ESMTP id x7TBk4T6015443; Thu, 29 Aug 2019 20:46:05 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conssluserg-06.nifty.com x7TBk4T6015443 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1567079165; bh=jJHAKRHFRUzF/5jWYYKHoeNpyJFG8X4zd/Hk645vV1s=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=FR2lZSyoTN0KEKnwc4pXOJULo6oFfgZ4oMDCJPqQws/UAF4tOiv/G9gNRRlylUM70 /HDF76gpmnV29LClsim6CYan+gHWKmIA8zouhAArtdeWnHkYTEMTO3z57gkZ3RE3Op H7XCYN867bK/c/Y5yxEzevUmbQQZl/KsaJVUX5btY2kuTwUsSnkq8pe8glDLnzmBUX wGy7fvvpxBxmpu+H8gSnB/sVHwtepY0c/dM7R9TYoiuVHjMI+oPn1gmhIYcNEolY/O 2SgUdaZ+jrxcE/PuE8ualfGbOt9kOfSxoKrDoWDRaPTeFu7b+bN7zstzTpQLPM8W5w 5j6MuK6hAKafQ== X-Nifty-SrcIP: [209.85.217.47] Received: by mail-vs1-f47.google.com with SMTP id 62so2182884vsl.5; Thu, 29 Aug 2019 04:46:05 -0700 (PDT) X-Gm-Message-State: APjAAAW+TJpJ1K3UPd88XF79Q2VXCxvffeoCRouuduckjz1pAxihV84K JDixXzYmbY3Zkm9AdenxlZaTEWaIO/r0DXUM4gI= X-Received: by 2002:a67:fe12:: with SMTP id l18mr5139562vsr.54.1567079164044; Thu, 29 Aug 2019 04:46:04 -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: Thu, 29 Aug 2019 20:45:27 +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 9:23 PM Masahiro Yamada wrote: > > 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. > After looking more into my hardware, I found out how to fix my driver: https://lore.kernel.org/patchwork/patch/1121600/ -- Best Regards Masahiro Yamada