Received: by 10.223.148.5 with SMTP id 5csp7605685wrq; Thu, 18 Jan 2018 07:24:40 -0800 (PST) X-Google-Smtp-Source: ACJfBosPm0Yt3PwHJVaVCp1QDow+qOB4VybA1fb36ovGtb+eEsYr2etqmVY9wyf4ufsLEYBjZo5r X-Received: by 10.98.228.5 with SMTP id r5mr18910752pfh.193.1516289080287; Thu, 18 Jan 2018 07:24:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516289080; cv=none; d=google.com; s=arc-20160816; b=hBKxl2Ge5IecHF1ZamNm2d5CVS6nlawHE3GF5aX5lrtYx9if1rJr3vnNIXW/cFhihP 5/YUj+8hWsFTn9YeaMUGsssiYY7Ug9Ms1bWfFuxA5kZh0WUy2TnoQdNrrHUVW9I1qIJN 7lbEALsaE38E/nno9xSnVdaw/U7Pbwb/pwqWa4H08p2UQwXvCIdoCrkjapmQeoH9ZrwR 7Rv6H2S6D+VeHWea3XQnv0fu62fuHIpvDE1RGu0IYGJ3M+5tvS8XaWoMA6OPC84ZE2gn onn1uHeJggS3bMOGfQxDrOlowGbd9lSWuOrHlN8blWUbnrqERJFTouYnrIjXCAY8wEVD X3Jg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=arKsmV40Fn8kpyhXIle3/n4Wg3/174wVIEdtrgtFsm0=; b=N828d1Iwi3XhcMu8OA4nT+XeC7PZKRZVJKH9GzVc6+v40RZm7bKrcN5zVfahI7KJTt GrKlshA2u0P633Zx/HhFvxl08l/5RsV+awevx26C3mBeD3vxRcec6K69SWuV64JyunZp IKTZTGteYWRjMwbNuC579VYVI31ofquK97AGtphzit1BflsxBiGx414qtFjEISdJo63z zsDCvKr/cbu7kA/3pOQ4h7nJttsKyvFXLZU3HitbGIUyxVbX3UXsxmSUPB65hrPbGEkj WoEMoYi2zZ0tp+zB2CyCnq4fge4dTD9BgFVe5D/ivy4OJugJQn64lJdPhwrRFQK4c7fh A2fA== ARC-Authentication-Results: i=1; mx.google.com; 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 u184si6180005pgd.675.2018.01.18.07.24.24; Thu, 18 Jan 2018 07:24:40 -0800 (PST) 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; 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 S932693AbeARPXg (ORCPT + 99 others); Thu, 18 Jan 2018 10:23:36 -0500 Received: from verein.lst.de ([213.95.11.211]:34567 "EHLO newverein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932679AbeARPXd (ORCPT ); Thu, 18 Jan 2018 10:23:33 -0500 Received: by newverein.lst.de (Postfix, from userid 2407) id 5537468DB6; Thu, 18 Jan 2018 16:23:31 +0100 (CET) Date: Thu, 18 Jan 2018 16:23:31 +0100 From: Christoph Hellwig To: Florian Fainelli Cc: Christoph Hellwig , Rob Herring , Jim Quinlan , "linux-kernel@vger.kernel.org" , Bjorn Helgaas , Catalin Marinas , Will Deacon , Brian Norris , Russell King , Robin Murphy , Jonas Gorski , Lorenzo Pieralisi , Mark Rutland , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , Linux-MIPS , linux-pci@vger.kernel.org, Kevin Cernekee , Ralf Baechle , bcm-kernel-feedback-list@broadcom.com, Gregory Fong , "moderated list:ARM/FREESCALE IMX / MXC ARM ARCHITECTURE" Subject: Re: [PATCH v4 4/8] PCI: brcmstb: Add dma-range mapping for inbound traffic Message-ID: <20180118152331.GA24461@lst.de> References: <1516058925-46522-1-git-send-email-jim2101024@gmail.com> <1516058925-46522-5-git-send-email-jim2101024@gmail.com> <20180118073123.GA15766@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-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jan 18, 2018 at 07:09:23AM -0800, Florian Fainelli wrote: > >But in this case it actually is the example to follow as told > >previously. > > > >NAK again for these chained dma ops that only create problems. > > Care to explain what should be done instead? Override phys_to_dma and dma_to_phys as mips and x86 do for similar situations. Bonous points of finding some generic way of doing it instead of hiding it in arch code.