Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp2671540ybf; Mon, 2 Mar 2020 13:20:52 -0800 (PST) X-Google-Smtp-Source: ADFU+vvyeMqTFnkxMMwXkPGNIDVX3OV/4U9QPObpkhQEKbGuntHyCPjl931LNnxkWw+CmqjGMtKQ X-Received: by 2002:aca:574c:: with SMTP id l73mr293492oib.156.1583184052828; Mon, 02 Mar 2020 13:20:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1583184052; cv=none; d=google.com; s=arc-20160816; b=MHi6TirG1WWDDA0EW/piGK3ToNEeG6wOAxyzhQCQnq7yjKlkJVo0oNaerDhHo7PkJn 4Qq8aKNUhldTnHJ4hI4ST5s5YccwfML/RsnSqzATfdzMUlQh/MVsmFCnLiYBl3k/o1eg gyhs2SyTaxKqresLqwovkCHILfBWoTygtF4ZMzW1BpkzmXqAR8g3A+ZR2lENnAKBpWPp PcC7EuyodX/ivd9ekOrx9h4rg9A7DdCn40i2NmOc3tKhSqbjIm98hsXZTouFrE0packO ol0YrFGDJKMZstoNLYAgkl+yHVU3LHkjy7FG8xBnPXV77u+hCQy9177+k+qhG3hpTK68 lnqg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:subject:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to; bh=lsMCmP+6NXu8/iJeK4/QkbHrQNv052qNTPSfA0MNOvI=; b=fB+lMJ90Go2lMB7haVI120JXmtE7M9O89E6sdqdgyTGeHD0emizkGssdKsIEu54el6 vjvSayTRCZ+TdgiZ6MeSuyVcpEfOlA9MHRo/smwEvpymFJr7ODVlh4z8lCs+q86ftGzS 7Ey6KnoEBAipqJBfptIGDhV9w40jhRxfZQYbaiQuTHOm1vTQYB92Q1Lju1+SV8/VwsMv cv2rkqp2m938BqGyGJq2XYIxsbRgB5mMeEUlOWrgJ+qgt7kcZU9kKRmegDayhviQTnWQ f5ovFouu3B6h0R82lfO+2i9Y3LSK0h9WdShhwiImKW/2xkfK2VbCqn6YhLw0bIQ2UT+V 3acw== 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 y24si6899076oih.24.2020.03.02.13.20.40; Mon, 02 Mar 2020 13:20:52 -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 S1726780AbgCBVUc (ORCPT + 99 others); Mon, 2 Mar 2020 16:20:32 -0500 Received: from ale.deltatee.com ([207.54.116.67]:59248 "EHLO ale.deltatee.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725911AbgCBVUb (ORCPT ); Mon, 2 Mar 2020 16:20:31 -0500 Received: from guinness.priv.deltatee.com ([172.16.1.162]) by ale.deltatee.com with esmtp (Exim 4.92) (envelope-from ) id 1j8sTx-0000TW-UO; Mon, 02 Mar 2020 14:20:10 -0700 To: Dan Williams Cc: Linux Kernel Mailing List , Linux ARM , linux-ia64@vger.kernel.org, linuxppc-dev , linux-s390 , Linux-sh , platform-driver-x86@vger.kernel.org, Linux MM , Michal Hocko , David Hildenbrand , Andrew Morton , Christoph Hellwig , Catalin Marinas , Will Deacon , Benjamin Herrenschmidt , Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen , Andy Lutomirski , Peter Zijlstra , Eric Badger , Jason Gunthorpe References: <20200221182503.28317-1-logang@deltatee.com> <20200221182503.28317-8-logang@deltatee.com> From: Logan Gunthorpe Message-ID: <6e2591ad-4605-aba4-c7b8-2345940e91b4@deltatee.com> Date: Mon, 2 Mar 2020 14:20:07 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.9.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-CA Content-Transfer-Encoding: 7bit X-SA-Exim-Connect-IP: 172.16.1.162 X-SA-Exim-Rcpt-To: jgg@ziepe.ca, ebadger@gigaio.com, peterz@infradead.org, luto@kernel.org, dave.hansen@linux.intel.com, bp@alien8.de, mingo@redhat.com, tglx@linutronix.de, benh@kernel.crashing.org, will@kernel.org, catalin.marinas@arm.com, hch@lst.de, akpm@linux-foundation.org, david@redhat.com, mhocko@kernel.org, linux-mm@kvack.org, platform-driver-x86@vger.kernel.org, linux-sh@vger.kernel.org, linux-s390@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, linux-ia64@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, dan.j.williams@intel.com X-SA-Exim-Mail-From: logang@deltatee.com X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on ale.deltatee.com X-Spam-Level: X-Spam-Status: No, score=-8.9 required=5.0 tests=ALL_TRUSTED,BAYES_00, GREYLIST_ISWHITE,SURBL_BLOCKED,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.2 Subject: Re: [PATCH v3 7/7] mm/memremap: Set caching mode for PCI P2PDMA memory to WC X-SA-Exim-Version: 4.2.1 (built Wed, 08 May 2019 21:11:16 +0000) X-SA-Exim-Scanned: Yes (on ale.deltatee.com) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2020-02-29 3:47 p.m., Dan Williams wrote: > On Fri, Feb 21, 2020 at 10:25 AM Logan Gunthorpe wrote: >> >> PCI BAR IO memory should never be mapped as WB, however prior to this >> the PAT bits were set WB and it was typically overridden by MTRR >> registers set by the firmware. >> >> Set PCI P2PDMA memory to be WC (writecombining) as the only current >> user (the NVMe CMB) was originally mapped WC before the P2PDMA code >> replaced the mapping with devm_memremap_pages(). > > Will the change to UC regress this existing use case? I don't think so. They've been essentially mapped UC for a long time now (since the P2PDMA patch set was merged) and nobody has complained.