Received: by 10.192.165.148 with SMTP id m20csp4473445imm; Tue, 24 Apr 2018 03:26:26 -0700 (PDT) X-Google-Smtp-Source: AIpwx4/uI20TC1XK2Hocq4xua4D5u9EqUadmrSsuFvtm1G8WGQ/Go+bQamNThs2xV4RGoRDnQDli X-Received: by 10.98.76.202 with SMTP id e71mr18110135pfj.171.1524565586093; Tue, 24 Apr 2018 03:26:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524565586; cv=none; d=google.com; s=arc-20160816; b=qtb3wRFkgaY0cHwRAF7QhjHVvrQ2okzbrVnqNHNhu1bQcTsmbU9FldATkQyQwyXgcF 8KJIvgkl+HhItMqS7VWA4o69huaFazkDlrEOGGLNnITXa+swEi9RUdjFZqBW5rq/0zOj eBC96Btpd6soYR74HX3KyGHYh4KXB9/NVCvA2TpqWPl3x4l4YhL4SyS9GFhenQFNtonc TOYmWRss7+MVsvi0N8hsJJNnnafxS9wCSeHezq/YultuglB1JL/Spd8DumibZvYdM0sS RFk6PY696t9EPMjNvTj/yXL69RuY6n2b741bCME7khpXJe2sOmYGrgol/+uc9q3XLvpc AAtw== 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=mGYraGwTF93VQ/uefOqN9ai0Xw8I4JCcCi19h6eFWHM=; b=mPnZwT4hicnqlte5/88vR/V/e9zG1kvpYruyGbYgV3oHnGsgHNLZtYH1UKhkQK2jVi baIhkfweMvNrzhRNWlVAOeAKKBPm5Kkl51egt4wvZ2BtnJ3CZvB31ttSuZunNKA0wHqD wUCn2Gl25S1/LmrT175tHZomzAjYDgb1JTlFBOg/AOPUdOFQkWO+vG1uEc0QlaT1v9Z2 VtVEOzTzwB7MxAsb1r7ucsc9hErQsERL4jq4nxZvbFdxs7wAydtWgSpXgEuKDnxOZKQD M1dEBAIzu8GtO6JygYn4B1jPFqx6shmi8t08Pq+mTjfsp4I/k34uh/DZGHwm5sI/SYcR GVLA== 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 u133si6716379pgc.555.2018.04.24.03.26.11; Tue, 24 Apr 2018 03:26:26 -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 S1756574AbeDXITB (ORCPT + 99 others); Tue, 24 Apr 2018 04:19:01 -0400 Received: from verein.lst.de ([213.95.11.211]:57783 "EHLO newverein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756228AbeDXIS5 (ORCPT ); Tue, 24 Apr 2018 04:18:57 -0400 Received: by newverein.lst.de (Postfix, from userid 2407) id A413068DB3; Tue, 24 Apr 2018 10:20:23 +0200 (CEST) Date: Tue, 24 Apr 2018 10:20:23 +0200 From: Christoph Hellwig To: James Bottomley Cc: Christoph Hellwig , linux-arch@vger.kernel.org, Michal Simek , Greentime Hu , Vincent Chen , linux-alpha@vger.kernel.org, linux-snps-arc@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-c6x-dev@linux-c6x.org, linux-hexagon@vger.kernel.org, linux-m68k@lists.linux-m68k.org, nios2-dev@lists.rocketboards.org, openrisc@lists.librecores.org, linux-parisc@vger.kernel.org, linux-sh@vger.kernel.org, sparclinux@vger.kernel.org, linux-xtensa@linux-xtensa.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 22/22] parisc: use generic dma_noncoherent_ops Message-ID: <20180424082023.GA19725@lst.de> References: <20180420080313.18796-1-hch@lst.de> <20180420080313.18796-23-hch@lst.de> <1524346967.3335.9.camel@HansenPartnership.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1524346967.3335.9.camel@HansenPartnership.com> 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 Sat, Apr 21, 2018 at 10:42:47PM +0100, James Bottomley wrote: > Well, this is wrong: you just made every 32 bit parisc system > unnecessarily use non-coherent. We actually only have a small small > set of non-coherent systems. The pxcs and pcxt systems (which are > about 99% of the user base) can use coherent dma ops. The problem > seems to be in your new world you only have one dma_noncoherent_ops > pointer ... we definitely need two on parisc, so whether > arch_dma_cache_sync is present or not needs to be dynamic not config > defined. The changelog explicitly mentions merging the two noncoherent implementations, they only differ in the alloc and free callsbacks, and we now runtime switch between them. Before the pcxs and pcxt cases used pcx_dma_ops, and pcxl and pxcl2 used pcxl_dma_ops, now all four use dma_noncoherent_ops and arch_dma_alloc/arch_dma_free branch out to different behavior. Both pcx_dma_ops and pcxl_dma_ops do define the cache_sync method in the existing code, so that isn't the issue. I'll take a deeper look at what sort of behavior change might have been introduced. > > James ---end quoted text---