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.3 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 autolearn=no 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 B7CCBC43141 for ; Fri, 15 Nov 2019 13:06:57 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 9A9CB2073B for ; Fri, 15 Nov 2019 13:06:57 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727438AbfKONG5 (ORCPT ); Fri, 15 Nov 2019 08:06:57 -0500 Received: from verein.lst.de ([213.95.11.211]:44768 "EHLO verein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727359AbfKONG4 (ORCPT ); Fri, 15 Nov 2019 08:06:56 -0500 Received: by verein.lst.de (Postfix, from userid 2407) id E7F7568BE1; Fri, 15 Nov 2019 14:06:54 +0100 (CET) Date: Fri, 15 Nov 2019 14:06:54 +0100 From: Christoph Hellwig To: Kishon Vijay Abraham I Cc: Christoph Hellwig , "linux-pci@vger.kernel.org" Subject: Re: pci-usb/pci-sata broken with LPAE config after "reduce use of block bounce buffers" Message-ID: <20191115130654.GA3414@lst.de> References: <120f7c3e-363d-deb0-a347-782ac869ee0d@ti.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <120f7c3e-363d-deb0-a347-782ac869ee0d@ti.com> User-Agent: Mutt/1.5.17 (2007-11-01) Sender: linux-pci-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pci@vger.kernel.org On Fri, Nov 15, 2019 at 04:29:31PM +0530, Kishon Vijay Abraham I wrote: > Hi Christoph, > > I think we are encountering a case where the connected PCIe card (like PCIe USB > card) supports 64-bit addressing and the ARM core supports 64-bit addressing > but the PCIe controller in the SoC to which PCIe card is connected supports > only 32-bits. > > Here dma APIs can provide an address above the 32 bit region to the PCIe card. > However this will fail when the card tries to access the provided address via > the PCIe controller. What kernel version did you see your problems with? Linux 5.3 added swiotlb to arm LPAE configs for exactly that case.