From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.5 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_PASS,USER_AGENT_MUTT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 297E7C43381 for ; Wed, 13 Mar 2019 18:31:04 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id ECB7C20643 for ; Wed, 13 Mar 2019 18:31:03 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726328AbfCMSbD (ORCPT ); Wed, 13 Mar 2019 14:31:03 -0400 Received: from verein.lst.de ([213.95.11.211]:53249 "EHLO newverein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726033AbfCMSbD (ORCPT ); Wed, 13 Mar 2019 14:31:03 -0400 Received: by newverein.lst.de (Postfix, from userid 2407) id C8AAE68B05; Wed, 13 Mar 2019 19:30:56 +0100 (CET) Date: Wed, 13 Mar 2019 19:30:56 +0100 From: Christoph Hellwig To: Marek Vasut Cc: Christoph Hellwig , Robin Murphy , linux-ide@vger.kernel.org, linux-nvme@lists.infradead.org, Marek Vasut , Geert Uytterhoeven , Jens Axboe , Jens Axboe , Keith Busch , Sagi Grimberg , Wolfram Sang , linux-renesas-soc@vger.kernel.org Subject: Re: [PATCH 1/2] [RFC] ata: ahci: Respect bus DMA constraints Message-ID: <20190313183056.GB4926@lst.de> References: <20190307000440.8708-1-marek.vasut@gmail.com> <7c051bbd-7835-9cab-30b2-0acde1364781@arm.com> <356f3ee8-407f-f865-e5cc-333695d4f857@gmail.com> <79e44e90-b16a-5315-e02f-101a2ebbb6a0@arm.com> <20190308071810.GA11959@lst.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.17 (2007-11-01) Sender: linux-renesas-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-renesas-soc@vger.kernel.org On Sat, Mar 09, 2019 at 12:23:15AM +0100, Marek Vasut wrote: > On 3/8/19 8:18 AM, Christoph Hellwig wrote: > > On Thu, Mar 07, 2019 at 12:14:06PM +0100, Marek Vasut wrote: > >>> Right, but whoever *interprets* the device masks after the driver has > >>> overridden them should be taking the (smaller) bus mask into account as > >>> well, so the question is where is *that* not being done correctly? > >> > >> Do you have a hint where I should look for that ? > > > > If this a 32-bit ARM platform it might the complete lack of support > > for bus_dma_mask in arch/arm/mm/dma-mapping.c.. > > It's an ARM 64bit platform, just the PCIe controller is limited to 32bit > address range, so the devices on the PCIe bus cannot read the host's > DRAM above the 32bit limit. arm64 should take the mask into account both for the swiotlb and iommu case. What are the exact symptoms you see? Does it involve swiotlb not kicking in, or iommu issues? What is the exact kernel version?