Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp127916pxk; Tue, 15 Sep 2020 23:19:00 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwAnLuJOU9k/uqonKxz4OIMol8Ccbt/5FI2g19rXgqkZGD4CTTrvyFER6N2Cbhg0X62YmDv X-Received: by 2002:a17:906:14d3:: with SMTP id y19mr23168697ejc.453.1600237139992; Tue, 15 Sep 2020 23:18:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600237139; cv=none; d=google.com; s=arc-20160816; b=kxfmegXMRr6HlcCdqjGI7q2F4HpxWSD9E4UXJ/atQ8yoa65lb+x7u42/6ex4QOVXG2 hFKRae7WX3atR5Zx1Ir09cFr3CJXve2TsAa4cBQdxEvDcFgRedljgFm59omo9371EZD4 TTNbB4tNiLjZieO2Kt6Ife/WTVusdQdi9rRn5RcpSXD/5GajiiMNdpoWTulABUDQcVdc DXJXMQRw9cQ6pdFIXMo9hL5lPUxbgpPHTVMhACbfN9bsUpx2QXLSgV4ql5FcyT8GXChn UXAWVTrceW+14xatvZLi93LZA+g47EJ+RWYFqrFRD5oAcEfbUfmfypgE9tfTZ/3hqmWo eRIA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=s8mnqat7GGupYmev9VBKRE+GEfYSOGcbHcyGgV6dyXw=; b=opqfnDqZ2CrGl/BeNzUHsyGdm+74tmKRD/9WpF87Xgc8ExzlnMvQLtmf9Kcy0u9teq 5XTIHSN0xyeqQ/PpxOqesMsOc9xrQmvIvHxtgrtoGxePJolc8b/at5phbT0QECksLCS6 R/lOBb12yZYcd6hJERrYNy3TrYvhiFzMmBj/xc2FgoyYIHek8sINp/YKiTIcd3idHB8s cTWe4OsFpwKypEUsnOhx296klA/VMITaVUZy90cPse57JBbnAS6V6ZnW97O4alzsdob9 z3zuL23yI80ZDEESZNw/bmrxepg4gaLb7aBH+paqkkN9KMG2qt8+yXd0/fGSfci/4Sta LO0Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=casper.20170209 header.b=guuG3Pt1; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i7si11764054ejo.706.2020.09.15.23.18.37; Tue, 15 Sep 2020 23:18:59 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=fail header.i=@infradead.org header.s=casper.20170209 header.b=guuG3Pt1; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726279AbgIPGRa (ORCPT + 99 others); Wed, 16 Sep 2020 02:17:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40594 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726093AbgIPGR1 (ORCPT ); Wed, 16 Sep 2020 02:17:27 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 06907C06174A; Tue, 15 Sep 2020 23:17:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=Content-Transfer-Encoding:MIME-Version: Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type:Content-ID: Content-Description:In-Reply-To:References; bh=s8mnqat7GGupYmev9VBKRE+GEfYSOGcbHcyGgV6dyXw=; b=guuG3Pt1J5nWsCBoJItPym1+vj 0aeWJGDaGySTSVHSbdpYTROMBmteFH+Ivy8Zcc9K2kuDL9q/BHZaVU9P+3UB8GuUEB6nb9cpn3vJs wLOdAxW2P1ebiJKFM5z8soepZFlJ+GavE5MtpF9fqeNPBdaX7D4/P1FTuTOe+Sfh6XVA6A7O/CLXU w3qBYTP9KuYLJA+yOvt9dHDHudjL/zx/juLg4iNzT2TzEiEW1C3fGPvt2j2m3aeCKiwFIG0qemx9K jAsFkAcEn75npyjux686+2kMCFRQyW2+unJYAl4riVuilCbhQu8NYGFcpcfFv6dErBpR6Agd4IqhB RsiUOCTg==; Received: from 089144214092.atnat0023.highway.a1.net ([89.144.214.92] helo=localhost) by casper.infradead.org with esmtpsa (Exim 4.92.3 #3 (Red Hat Linux)) id 1kIQkh-0006mN-CM; Wed, 16 Sep 2020 06:17:11 +0000 From: Christoph Hellwig To: iommu@lists.linux-foundation.org, Russell King , Santosh Shilimkar , Greg Kroah-Hartman Cc: Jim Quinlan , Nathan Chancellor , Florian Fainelli , Robin Murphy , Rob Herring , Frank Rowand , Ohad Ben-Cohen , Bjorn Andersson , linux-remoteproc@vger.kernel.org, linux-usb@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-sh@vger.kernel.org, linux-pci@vger.kernel.org, linux-acpi@vger.kernel.org, devicetree@vger.kernel.org Subject: support range based offsets in dma-direct v3 Date: Wed, 16 Sep 2020 08:14:53 +0200 Message-Id: <20200916061500.1970090-1-hch@lst.de> X-Mailer: git-send-email 2.28.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-SRS-Rewrite: SMTP reverse-path rewritten from by casper.infradead.org. See http://www.infradead.org/rpr.html Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi all, this series adds range-based offsets to the dma-direct implementation. The guts of the change are a patch from Jim with some modifications from me, but to do it nicely we need to ARM patches to prepare for it as well. Changes since v2: - fix a mismerge - return (phys_addr_t)-1 from translate_dma_to_phys when there is no matching range to fix dma_capable checks Changes since v1: - rebased on top of the latests dma-mapping for-next tree - add two more trivial ARM cleanups - remove the DMA property inheritance hack in usb - move the remaining copy of the ranges into the remoteproc driver as it should not be seen as a general API, but as a quirk for remoteproc that we need to fix ASAP Diffstat: