From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933868AbaEFDqN (ORCPT ); Mon, 5 May 2014 23:46:13 -0400 Received: from gate.crashing.org ([63.228.1.57]:35562 "EHLO gate.crashing.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933606AbaEFDqL (ORCPT ); Mon, 5 May 2014 23:46:11 -0400 Message-ID: <1399347878.20388.96.camel@pasglop> Subject: Re: [PATCH v3 4/7] of: configure the platform device dma parameters From: Benjamin Herrenschmidt To: Bjorn Helgaas Cc: Arnd Bergmann , linux-arm , "devicetree@vger.kernel.org" , Grygorii Strashko , Russell King , Greg Kroah-Hartman , Linus Walleij , "linux-kernel@vger.kernel.org" , Chris Metcalf , Grant Likely , Rob Herring , Santosh Shilimkar , Catalin Marinas , Olof Johansson Date: Tue, 06 May 2014 13:44:38 +1000 In-Reply-To: References: <1398353407-2345-1-git-send-email-santosh.shilimkar@ti.com> <20923376.buVzFR52Qe@wuerfel> <5575019.Hr92MUuDnc@wuerfel> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.11.90 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 2014-05-05 at 16:28 -0600, Bjorn Helgaas wrote: > I still wonder whether arm, powerpc, and tile (and I just noticed > microblaze also has a similar dma_direct_map_page()) could all be > handled by attaching devices to a generic trivial IOMMU driver > parameterized with the appropriate constant offset. On powerpc, the offset is not constant, it can be per-device Cheers, Ben. From mboxrd@z Thu Jan 1 00:00:00 1970 From: benh@kernel.crashing.org (Benjamin Herrenschmidt) Date: Tue, 06 May 2014 13:44:38 +1000 Subject: [PATCH v3 4/7] of: configure the platform device dma parameters In-Reply-To: References: <1398353407-2345-1-git-send-email-santosh.shilimkar@ti.com> <20923376.buVzFR52Qe@wuerfel> <5575019.Hr92MUuDnc@wuerfel> Message-ID: <1399347878.20388.96.camel@pasglop> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org On Mon, 2014-05-05 at 16:28 -0600, Bjorn Helgaas wrote: > I still wonder whether arm, powerpc, and tile (and I just noticed > microblaze also has a similar dma_direct_map_page()) could all be > handled by attaching devices to a generic trivial IOMMU driver > parameterized with the appropriate constant offset. On powerpc, the offset is not constant, it can be per-device Cheers, Ben.