Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp449210imu; Thu, 8 Nov 2018 23:54:03 -0800 (PST) X-Google-Smtp-Source: AJdET5d+wySYkA4H6n3wk05FhjUs+QJ3mXH6MS7IfbTAB6XwtjTD8UePaylrCzAjHC4G68S+QS/Q X-Received: by 2002:a17:902:f83:: with SMTP id 3-v6mr8011311plz.254.1541750043187; Thu, 08 Nov 2018 23:54:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1541750043; cv=none; d=google.com; s=arc-20160816; b=mkE0vQzOrSqBMroGyWYx+UZ3zM50ApT6w0XBsNSKbeeivyYmwek8X3I3StgEyvM7g5 vdfhIF9GXBv2Lgd5quOCMUwKb9/Y6nM2gUwiANR3zuHe2+ZTRXT4rg2OroXCfYanv5vB rQovBz8dMluu6+jonluT1xnc0BxSuGPofJl3q35S/Ci0VeVAukAgmGzZBTj76iX51dLE Bee6V7j7HSCFb+w0Rrbhu7XZhC0uabffmn6nwzoMQTl8hWXhIFxiEw+3SjMMtdC+AmPU XCnJsbEwWJMKyWPk/WO4aUS6n1LOXelhJLG1VERSMOoo/YEhprJkcFz2jm+oF/GATeCd uN8Q== 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; bh=0RJ4tyl6yHKvys+Qj4dpx1G8RSLSSoDxyLXp37bVSRQ=; b=P/1Da4soJ2Rj/ikS4rHjT1l9qI7y2NdUJ4OxuHMqTEkU8JnZXz2qQwYygPALalMF5M 5A3ghpJiz8Uc46rj4aQZDuWYqmizndz12NzDzgWyVuOErup1pLmQfyHghjTW8bFKVLyu jxxdXymXMN/4iBz1rZyIgf+UcBk95vLGAdnpCLHkn2Fz0hS3zc7/46nvpaSzcXLlTO1/ uQtmNktJnbJRy9v9GmgVwSaQhT53Y2ysRENf6No3p9HBqtWQZCUTsOj3KfintsW9gcj9 rQw6IYzNS9eJDG7weOygn1LnCSwwcnElSnvu9WY1sEOF01xnXZy6S5yJDTV3rQYZo6Lb K39Q== 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 j61-v6si7151257plb.121.2018.11.08.23.53.47; Thu, 08 Nov 2018 23:54:03 -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 S1728272AbeKIRbW (ORCPT + 99 others); Fri, 9 Nov 2018 12:31:22 -0500 Received: from verein.lst.de ([213.95.11.211]:60404 "EHLO newverein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727962AbeKIRbW (ORCPT ); Fri, 9 Nov 2018 12:31:22 -0500 Received: by newverein.lst.de (Postfix, from userid 2407) id A829268C48; Fri, 9 Nov 2018 08:51:58 +0100 (CET) Date: Fri, 9 Nov 2018 08:51:58 +0100 From: Christoph Hellwig To: Guo Ren Cc: Christoph Hellwig , iommu@lists.linux-foundation.org, Robin Murphy , Catalin Marinas , Will Deacon , Laura Abbott , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 9/9] csky: use the generic remapping dma alloc implementation Message-ID: <20181109075158.GB27489@lst.de> References: <20181105121931.13481-1-hch@lst.de> <20181105121931.13481-10-hch@lst.de> <20181106070140.GA6232@guoren-Inspiron-7460> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20181106070140.GA6232@guoren-Inspiron-7460> 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 Tue, Nov 06, 2018 at 03:01:41PM +0800, Guo Ren wrote: > > + return dma_atomic_pool_init(GFP_KERNEL, pgprot_noncached(PAGE_KERNEL)); > > } > > postcore_initcall(atomic_pool_init); > Seems also could remove atomic_pool_init from csky, why not put them in > common? The code basically moved to common code, but the architecture needs to pick the gfp mask (GFP_DMA32 on arm vs GFP_KERNEL on csky for example) and the pgprot it needs for uncached remappings. > Reviewed-by: Guo Ren > > Compile is OK, qemu boot OK. Functions are the same and just move to common. Thanks for your review!