Received: by 2002:a05:6a10:a852:0:0:0:0 with SMTP id d18csp2466627pxy; Mon, 3 May 2021 00:03:19 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzE6qDqSqalZ2e295hD6oXiax25MIJV+vqDQzl2JWl55z692CH47jKViPowBK2QrtXA8CX4 X-Received: by 2002:a62:7790:0:b029:27d:3aea:83e5 with SMTP id s138-20020a6277900000b029027d3aea83e5mr16882421pfc.78.1620025399575; Mon, 03 May 2021 00:03:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620025399; cv=none; d=google.com; s=arc-20160816; b=c8/w1DzPzlzVWjsQuTPFcxXw1NfUsdqcF3pav5QEUv4Ts6WowkK5DugNgn28sHNL9l CkL2OQx1vao3iQr7RN2F5ZwJHF2b78ZMjKTlZ+nZ8tzbJ3/PcHerslHuTdUOSusci33P 2VBVnjLsig507hcZgOaaG/YRlAx9dglQW9oMGNZ95IbCmgKNkI2s38ELHHlGgqJ981du SjuX4P2wRnzKM61ilhiUy7eiS0jhLbPtmQaCWySRP+dwopXRGTFvvzChNP0Lc2xPgoqn mjyLGOWS48whsrc88d6+rEUdHMNyaMB1avLOik1Pkke3B/EkZzCNxXBvQGGaB0YJ3s6K 19qA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=EvzK/tNTFu6j7RpqReg+UsePxfTlwWDpS1m4nxob5S8=; b=LEDl/8du6nW8baib9VU0AJFTQgLp4rG1b/iMqADODHzXXF+naiJKrgJIo2MPQcXBqN WhZLOLVyOD9LpJ2e96bzh40zmMUz9BtCvfkBo4RkbRffF848X5QzQk8j9ytEdRO7MJvn 5sHMPLXnOLZ4fmH+cZ3JBik234nIKQG/TifBt7zJ9rnx16Xr2ICoLr+sr9RG6XIFp+IF B+t2lDqqHZmwSjHXsNrA/d/odOOAcZ1bhfxlrQS9NwTIQPSr/Tk8UmMXI2P3XcZDKmqQ K6/klv2nLn+fQpDsJaVLEEDspdNySUyuAwoyzOShqtrUeeNVjzcmQuErwO1uDLLDxbP6 NkGA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=d+fupqW0; 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 n14si14058496plp.207.2021.05.03.00.03.06; Mon, 03 May 2021 00:03: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; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=d+fupqW0; 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 S232859AbhECHDA (ORCPT + 99 others); Mon, 3 May 2021 03:03:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35524 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229817AbhECHC7 (ORCPT ); Mon, 3 May 2021 03:02:59 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BA487C06174A; Mon, 3 May 2021 00:02:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=EvzK/tNTFu6j7RpqReg+UsePxfTlwWDpS1m4nxob5S8=; b=d+fupqW0bciG3xsylg36LLTQ15 +QOOLEWa0exqDSIyE2RFjDoTQS5TD06FY0/1FfQh1XNyXHeFTsG9tyenVBVIqgjCBGawuG14FPPQb nlgJ4eujI3lzEMR10byAqYaaw88/xqIRqygJ5YIZ9PGkOsxhy0ki3ZQtW3ya69QlCjplaZenO46s3 CkePR34QF23Hm6BAF/3bUu0VKRE3N5IjTHEqDqDYFI3jHmEo9AfrGQSPCIGrZ0Y8/bi+X18cTDSU5 0b538F8+voZe0aZQuAYNWKR2ipPh29rG5HgUm/aggYZDfxdDlS/AZf2JS+8jK3UFDn0+WK/YHAl6N vR5rCHXw==; Received: from hch by casper.infradead.org with local (Exim 4.94 #2 (Red Hat Linux)) id 1ldSaF-00Elgh-Vf; Mon, 03 May 2021 07:01:37 +0000 Date: Mon, 3 May 2021 08:01:35 +0100 From: Christoph Hellwig To: Shanker Donthineni Cc: Marc Zyngier , Alex Williamson , Will Deacon , Catalin Marinas , Christoffer Dall , linux-arm-kernel@lists.infradead.org, kvmarm@lists.cs.columbia.edu, linux-kernel@vger.kernel.org, kvm@vger.kernel.org, Vikram Sethi , Jason Sequeira Subject: Re: [RFC 0/2] [RFC] Honor PCI prefetchable attributes for a virtual machine on ARM64 Message-ID: <20210503070135.GA3515187@infradead.org> References: <20210429162906.32742-1-sdonthineni@nvidia.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210429162906.32742-1-sdonthineni@nvidia.com> X-SRS-Rewrite: SMTP reverse-path rewritten from by casper.infradead.org. See http://www.infradead.org/rpr.html Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Apr 29, 2021 at 11:29:04AM -0500, Shanker Donthineni wrote: > Problem statement: Virtual machine crashes when NVIDIA GPU driver access a prefetchable BAR space due to the unaligned reads/writes for pass-through devices. The same binary works fine as expected in the host kernel. Only one BAR has control & status registers (CSR) and other PCI BARs are marked as prefetchable. NVIDIA GPU driver uses the write-combine feature for mapping the prefetchable BARs to improve performance. This problem applies to all other drivers which want to enable WC. Unless you mean the noveau drivers this simply does not matter. Please don't spam the kernel lists with issues with your broken and license violating drivers.