Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp583117pxb; Tue, 14 Sep 2021 04:30:41 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy2wTjjQ9z9jrdrAgJ96EF+W+nPbrvGK9m4AMGrYH0CpozylKxFXOLgQAlXouX3SmYAXelA X-Received: by 2002:aa7:d7d5:: with SMTP id e21mr19120773eds.27.1631619041764; Tue, 14 Sep 2021 04:30:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631619041; cv=none; d=google.com; s=arc-20160816; b=u5xqnu0lR8nU9yx4ymDGPfrqjpwDOwIKyLGH0ZDuVxo8oX5iboWJMJEkhoRQ4tudId rH1MKwx6WqMvyWioYWI/Hclbhokdj/9yyFVdQSQJqZ5jue1/evmabEOa+HmZnjzidd3M x8KBtF/Rt967uCZLHRqC8xvs0bs3GX+MRP5e2f6008OSFhfBcphTFxYTJaTDa1pli5TC c/5ya36xEoqhQe3sxjFnrIdlWLwcMhTBQGt/MEjfvlniz2pi2kLoeYCPNxRoviRuoHAS QQoXprj70R/XhEQCtt64wT+/rK3DNzJ1oEkBiiMJ9fQTc/SomVliP17mK4dvfK4KjyXg 8eOg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=zsnnjGEnmTypO+oHFeXZRmRbA7ebDbDjhyD4SfKVlWI=; b=sWu9ZCUuIo1Zi/kkoEoVkmiQtJr90qVQVlwcfYz4qDlUTNI4hdxzukoJcfy29cllL0 aD9StZHNf9qJvROSxvcmO07d+qfs5+Kkg1n+B/KN7WVVn0gamvS1fkGI4WeQ7V/p2g1Z C6Bvh6csbNYsryNanr9XLfaDQo9paz0hF3czUdTsmtkqYEIex70wFGgaaqnk1T0ouPHY yW/cq9J1/CJKWqFTqOPYlUoauuPkVjh1JMPy/8YRNOHthlKMqnCxgV9zqh9n08wYGYWs 4u9v1YnJH0Mb9q2sLkezQqQFIMhHCHvhVzJ6xp4kmwlSNZTKSMPMesm2q4Vz3ooAWXR4 nrsA== ARC-Authentication-Results: i=1; mx.google.com; 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 jz20si11111193ejb.263.2021.09.14.04.30.17; Tue, 14 Sep 2021 04:30:41 -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; 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 S232070AbhINL2G (ORCPT + 99 others); Tue, 14 Sep 2021 07:28:06 -0400 Received: from verein.lst.de ([213.95.11.211]:59800 "EHLO verein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231941AbhINL2F (ORCPT ); Tue, 14 Sep 2021 07:28:05 -0400 Received: by verein.lst.de (Postfix, from userid 2407) id 642E967373; Tue, 14 Sep 2021 13:26:46 +0200 (CEST) Date: Tue, 14 Sep 2021 13:26:46 +0200 From: Christoph Hellwig To: Andreas Larsson Cc: Christoph Hellwig , David Miller , sparclinux@vger.kernel.org, Sam Ravnborg , linux-kernel@vger.kernel.org, software@gaisler.com Subject: Re: [PATCH] sparc32: Page align size in arch_dma_alloc Message-ID: <20210914112646.GA18171@lst.de> References: <20210908074822.16793-1-andreas@gaisler.com> <20210909060712.GA25485@lst.de> <3a653ab5-14d2-f61f-cb0a-cbeba93b4ac8@gaisler.com> <20210914061705.GB26679@lst.de> <87971ad4-9519-cf0d-76a8-6baa253d0122@gaisler.com> <20210914104256.GA14645@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) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Sep 14, 2021 at 01:16:16PM +0200, Andreas Larsson wrote: > Before the patch, arch_dma_alloc did via srmmu_mapiorange set up pages with > SRMMU_PRIV, which is all fine as it sets up kernel buffers. With your patch > we get PAGE_KERNEL as an argument to dma_pgprot in the corresponding call > path that earlier lead to arch_dma_alloc. PAGE_KERNEL already includes > SRMMU_PRIV so adding it again should not be necessary. You're right, I missed that PAGE_KERNEL already includes SRMMU_PRIV.