Received: by 2002:a05:6a10:a852:0:0:0:0 with SMTP id d18csp788058pxy; Wed, 5 May 2021 14:02:19 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyLWRPyeIXfVrZdQewMv8fyZG5NwWLMUzvs3S7lhRWUC8yufMeLPNEnN1u9ChpXwSae9K9t X-Received: by 2002:a17:907:393:: with SMTP id ss19mr725903ejb.192.1620248539530; Wed, 05 May 2021 14:02:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620248539; cv=none; d=google.com; s=arc-20160816; b=DfCLYIq992c21hBcwi7L+7Raz9gujwIN2PAcc9Juqhrk3CJRlv6itRBVcc5qqQMvXm 3gmXKpDVAlP7caEn0ZotCdOp64Rb1jgifCqF3ze+DtQowCxjw9w90MvCqbAFtN5YyVel bj/BVksFhLgq3aaOyN49Jq22s2n/msH4DPk65s6mdT7VX4MdEQ7XTD8NB2lTdrBoKOt8 Ja6lf+nE7tOFZbYsvjECtU2Qb0o/mMR83x6L5WADrOTSTsoEdRKD0thzCbR6LZh/OA3m zMZv9LfCX1S7KHJhiPOWouDL4QG/Wxyxg4K7hB/IwmRfA/qEKqE3UAfz10Xx3rfixt3u 2Pfw== 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=MVvpKDymzJHieTWIEfHTwHuTm754ue+pGtzrE8tUUiU=; b=ZVpMuLZ38FpXFQsALPRgnvZNteh3GEwZuN1S0jFG519niGIn2zSKqjz/cw9nCWwSyd yBVgEZmEnod/DYlkNJlqbLf8QXzxCcvyPSjQVxGZhtM5uCQd0V7gEF79cvk51HiGBl6Y ixv5LzAwdhaIYaps0t+9/xVYtxXp1hKzzddOuKLpt0s5mu7WSr/zdb7zlfNT1xOqqdRM k56ZOWs9/zfyZOYvnfw3gPbSjgxCx1uNFuJWxQ4l+rU4zio3xQ0h/jOe7LmPz385/KpK joSv/VYe+M/QqsfU2RudfzCQfeirenuSsrIf7ZLwG+cgLqtOCn1gjPOfQ0sLcTifUYfM BZ3Q== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id j14si462283eja.369.2021.05.05.14.01.55; Wed, 05 May 2021 14:02:19 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234379AbhEESDn (ORCPT + 99 others); Wed, 5 May 2021 14:03:43 -0400 Received: from mail.kernel.org ([198.145.29.99]:42232 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235665AbhEESDc (ORCPT ); Wed, 5 May 2021 14:03:32 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id BB46861176; Wed, 5 May 2021 18:02:33 +0000 (UTC) Date: Wed, 5 May 2021 19:02:31 +0100 From: Catalin Marinas To: Will Deacon Cc: Vikram Sethi , Alex Williamson , Mark Kettenis , Marc Zyngier , Shanker Donthineni , "christoffer.dall@arm.com" , "linux-arm-kernel@lists.infradead.org" , "kvmarm@lists.cs.columbia.edu" , "linux-kernel@vger.kernel.org" , "kvm@vger.kernel.org" , Jason Sequeira Subject: Re: [RFC 1/2] vfio/pci: keep the prefetchable attribute of a BAR region in VMA Message-ID: <20210505180228.GA3874@arm.com> References: <878s4zokll.wl-maz@kernel.org> <87eeeqvm1d.wl-maz@kernel.org> <87bl9sunnw.wl-maz@kernel.org> <20210503084432.75e0126d@x1.home.shazbot.org> <20210504083005.GA12290@willie-the-truck> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210504083005.GA12290@willie-the-truck> User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, May 04, 2021 at 09:30:05AM +0100, Will Deacon wrote: > On Mon, May 03, 2021 at 10:03:59PM +0000, Vikram Sethi wrote: > > Will/Catalin, perhaps you could explain your thought process on why you chose > > Normal NC for ioremap_wc on the armv8 linux port instead of Device GRE or other > > Device Gxx. > > I think a combination of: compatibility with 32-bit Arm, the need to > support unaligned accesses and the potential for higher performance. IIRC the _wc suffix also matches the pgprot_writecombine() used by some drivers to map a video framebuffer into user space. Accesses to the framebuffer are not guaranteed to be aligned (memset/memcpy don't ensure alignment on arm64 and the user doesn't have a memset_io or memcpy_toio). > Furthermore, ioremap() already gives you a Device memory type, and we're > tight on MAIR space. We have MT_DEVICE_GRE currently reserved though no in-kernel user, we might as well remove it. -- Catalin