Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp336075pxj; Thu, 10 Jun 2021 23:56:06 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzd2DhsHWU3ROCEc4a7njjSwFoOMeBdF9h08rlANK9PPtpfFJe8q8lsMHeIsQZwOT0u9tfx X-Received: by 2002:a17:906:eb17:: with SMTP id mb23mr2315053ejb.239.1623394565968; Thu, 10 Jun 2021 23:56:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623394565; cv=none; d=google.com; s=arc-20160816; b=vvDTWhpCBZAULNr+A36MWI+63zvjkxZ/RQ9kkCFf3BIGRBO3PLCO/nPwRewvk9Wiwx lShn/i5sX5wgDlydlQgZWu64xuFi3Wz/bh6sJliPwC5thqpTjwrxrT5uHS5goAA8jNyb pOQ7UEesz0c4jPMkVxht1NlEP6eCwcuLi+3qIRaEV0P3aDMbU7c0cBNAUl/VRsi18U/P egDGpw777o/+gqTWWXqGjsqp+XHxvO6rVnG7lNRG4wMddCYx1RRvBLEWaI4U2oJZCw62 w462cyoJk29UuRVkKrIoDcG36Fhdcs0DR4BcjkIJ4MOw2pER+bsECeyY3/NAd9B1X3iW dFNQ== 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=ScCWw7RlcQ1m0lAL6i9QRJv+go5ktfzbttJJnR0F62M=; b=GiQBrMhVOR9cPHCuqvVnkP7mqiR7jRvjs75+pUeVXlbaa0jmkQq0V3UkOuQAEmeLUx JplFU03X0sxJlMZl7FCVmFPBC0UQVe5uoxzlLCug0nkh/PL36yogrHOEp4nuwIcIeTr+ QfzFcTEBuwQIAj8/XHj2oJVQSkV7yJDjzkhhkHG+5dt8xiCbSpTflw5Qf2uQJFcvjKGa Kz6IR9k4EmJnsFIVcz3PQq9PFW1qsJIeA4vpF77WkxXwUW2Vb9ZBskAYFPOzgFVDeoIR rMzObE4EK28+Y4pgXbsKKKmrPAZn9gZeAQWQhckZRgAS93YwDLwZ35x73RlPZWIGLw0D Pm2w== 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 f19si3892757ejl.205.2021.06.10.23.55.43; Thu, 10 Jun 2021 23:56:05 -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 S231301AbhFKGzl (ORCPT + 99 others); Fri, 11 Jun 2021 02:55:41 -0400 Received: from verein.lst.de ([213.95.11.211]:35264 "EHLO verein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229777AbhFKGzj (ORCPT ); Fri, 11 Jun 2021 02:55:39 -0400 Received: by verein.lst.de (Postfix, from userid 2407) id 0D2A168AFE; Fri, 11 Jun 2021 08:53:39 +0200 (CEST) Date: Fri, 11 Jun 2021 08:53:38 +0200 From: Christoph Hellwig To: Ira Weiny Cc: Christoph Hellwig , Jens Axboe , Thomas Bogendoerfer , Geoff Levand , Ilya Dryomov , Dongsheng Yang , Mike Snitzer , dm-devel@redhat.com, linux-mips@vger.kernel.org, linux-kernel@vger.kernel.org, linux-block@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, ceph-devel@vger.kernel.org, Thomas Gleixner , linux-arch@vger.kernel.org Subject: Re: [PATCH 09/16] ps3disk: use memcpy_{from,to}_bvec Message-ID: <20210611065338.GA31210@lst.de> References: <20210608160603.1535935-1-hch@lst.de> <20210608160603.1535935-10-hch@lst.de> <20210609014822.GT3697498@iweiny-DESK2.sc.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210609014822.GT3697498@iweiny-DESK2.sc.intel.com> User-Agent: Mutt/1.5.17 (2007-11-01) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jun 08, 2021 at 06:48:22PM -0700, Ira Weiny wrote: > I'm still not 100% sure that these flushes are needed but the are not no-ops on > every arch. Would it be best to preserve them after the memcpy_to/from_bvec()? > > Same thing in patch 11 and 14. To me it seems kunmap_local should basically always call the equivalent of flush_kernel_dcache_page. parisc does this through kunmap_flush_on_unmap, but none of the other architectures with VIVT caches or other coherency issues does. Does anyone have a history or other insights here?