Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp821669imm; Fri, 11 May 2018 06:58:19 -0700 (PDT) X-Google-Smtp-Source: AB8JxZpFntCn1d21mIqn/gPTPXXehxkpRUMKEkypHGwaFiDagVcQ1LDSPUGOsbaHMH9bP35Pg3F9 X-Received: by 2002:a63:b642:: with SMTP id v2-v6mr4620830pgt.158.1526047099252; Fri, 11 May 2018 06:58:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526047099; cv=none; d=google.com; s=arc-20160816; b=kQDP4UQ6AoGJ2pkbVeZ4xHzozsJWVEle29Hz7Mrdq6m2fIfs9utQRyOSXVyTM11cFS y04eIS3NRg5VM1bpKbdWW49d11AfMFosiBEJE94SmrrjIHTysx8yaWaw9gHsNKmnWOw9 Lv806kgq5jxxwkYvwpVmOTDR33MOScxHWbQ30fDU7akcb12Cs2MH85LKb6/W+85E9kzS /RkIlDxWjmUVyY6DLNcPEwRaMf/MbtE2SIe3mJe+IwjUpjYSy+kPLxZTPf8KV7fH0lDg YL3hJuMbiXx25o23uaSFM/WCKWTIgGUgGcmuzfFpVVo4fs1WozzTBKJmVZhd2tHZLCPf eD4Q== 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:in-reply-to :mime-version:user-agent:date:message-id:from:cc:references:to :subject:arc-authentication-results; bh=UT/Qy7g5ZeS3x10lsPbhQyLGzSsp+OPI6ReSw/GZGxU=; b=YwMU8jNV2MRAKhDrTodIDD3vHOC2gripxJtJ0zp9wHdF0qiIiY+jEN3c6ITz1l5Atx PeiTuLBVMJu4+cwG2BWidmY+7BpftZn5GeeZHMEtuhnnperUFqHKgg/c1/oA384ICM45 p4ClLZ85huJJ/edt4A3Zy+aPp0+kXnjSQ1bsiPdh18B6sJNuN6QsyqreMh40uD4uRZ0r RaFwVIUhwICK6mGZj0mXAKMQuKiVIbUKr3UVJEqZnh8gC6gpR2n76WQb8suSJU/w62Ph uz+lomi34uwIhmAMXaOH7l48rBPn5avqLQzy2ibuJ3mkETExERY5L5ZSV/+CzWgN3FYu esLQ== 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 x22-v6si2569805pge.220.2018.05.11.06.58.03; Fri, 11 May 2018 06:58:19 -0700 (PDT) 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 S1753167AbeEKN4j (ORCPT + 99 others); Fri, 11 May 2018 09:56:39 -0400 Received: from szxga06-in.huawei.com ([45.249.212.32]:56793 "EHLO huawei.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1752974AbeEKN4g (ORCPT ); Fri, 11 May 2018 09:56:36 -0400 Received: from DGGEMS408-HUB.china.huawei.com (unknown [172.30.72.59]) by Forcepoint Email with ESMTP id 682E0A3211A5F; Fri, 11 May 2018 21:56:31 +0800 (CST) Received: from [127.0.0.1] (10.47.90.114) by DGGEMS408-HUB.china.huawei.com (10.3.19.208) with Microsoft SMTP Server id 14.3.361.1; Fri, 11 May 2018 21:56:30 +0800 Subject: Re: [PATCH 04/20] arm-nommu: use generic dma_noncoherent_ops To: Christoph Hellwig , References: <20180511075945.16548-1-hch@lst.de> <20180511075945.16548-5-hch@lst.de> CC: , , "Michal Simek" , Vincent Chen , , , , , , , , Greentime Hu , , , , , From: John Garry Message-ID: <73603c68-da05-22bd-efab-d0387a98225d@huawei.com> Date: Fri, 11 May 2018 14:56:16 +0100 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.3.0 MIME-Version: 1.0 In-Reply-To: <20180511075945.16548-5-hch@lst.de> Content-Type: text/plain; charset="windows-1252"; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [10.47.90.114] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 11/05/2018 08:59, Christoph Hellwig wrote: > Switch to the generic noncoherent direct mapping implementation for > the nommu dma map implementation. > > Signed-off-by: Christoph Hellwig > --- > arch/arc/Kconfig | 1 + > arch/arm/Kconfig | 4 + > arch/arm/mm/dma-mapping-nommu.c | 139 +++++--------------------------- > 3 files changed, 23 insertions(+), 121 deletions(-) > > diff --git a/arch/arc/Kconfig b/arch/arc/Kconfig > index 89d47eac18b2..3a492a9aeaad 100644 > --- a/arch/arc/Kconfig > +++ b/arch/arc/Kconfig > @@ -9,6 +9,7 @@ > config ARC > def_bool y > select ARC_TIMERS > + select ARCH_HAS_SYNC_DMA_FOR_DEVICE > select ARCH_HAS_SYNC_DMA_FOR_CPU > select ARCH_HAS_SYNC_DMA_FOR_DEVICE I guess that this arc change is here by accident, no? And isn't ARCH_HAS_SYNC_DMA_FOR_DEVICE already selected (by 3/20)? > select ARCH_HAS_SG_CHAIN > diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig > index c43f5bb55ac8..76ddd0064f87 100644 > --- a/arch/arm/Kconfig > +++ b/arch/arm/Kconfig