Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp313101rdb; Tue, 5 Dec 2023 06:17:12 -0800 (PST) X-Google-Smtp-Source: AGHT+IG9IEiUVEwnwG7Z148z5z18yd+LOMa81rtUZgqptC3v71eNDf3Bi1YKUXRYIJMeZx/AUhOs X-Received: by 2002:a17:902:bc4c:b0:1d0:44f6:ccb9 with SMTP id t12-20020a170902bc4c00b001d044f6ccb9mr3415928plz.65.1701785832659; Tue, 05 Dec 2023 06:17:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701785832; cv=none; d=google.com; s=arc-20160816; b=owRT4sdAjJii3VcwNyDbgCQ1lpr0bXbdF9Lgl9wOWarHYCKSQ9crHmF/suqBdElcYL NSqvjq6Mbjb7RBvVrhtQ9MN3MGgPEvLSS5iboELoNhPUi4FA+AEXkCFQLZEeS4QuER3r yLMXAm5zHndEOMUpzIW6Lz1rBypMTnVPRH7gsxQ6A3LJQ1npb9m3V95KAJxtVz3K6Bwn FJUzV3WxksHOqps+GeUcuOxp8vunlr1JKh9Svqc0+y09r6VAPS9J1BIZHO3tReszqCxP cAB+n/3NKTYJ/ZTSjEGjgw+GtR8lH0/AmX9Qku9ZFl8NcX58KoLCCJQKF0eB4gpsBjwq FzuA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :content-language:accept-language:in-reply-to:references:message-id :date:thread-index:thread-topic:subject:cc:to:from; bh=XjIe0Jpyt9BVGvXRJP86DyqMM3jsdCn/CKY0xeULJ2M=; fh=vx+KliqtQoSDMs3RSDgh8mmYy5K7qoE3iM/vnRgz36Y=; b=ZgGyabnmoelNKcpSo3yeVwNXOzuuTtcRj9uQgdxS4/mQlOfwGxiBI4mrrO65PHmKpC 2rFcAekIdtrsNqQtKpTuw7nU1wHtzTXOTjwhc4HPNg6wew/7AldDIuAyU73c0b816vmI o8O2IyiiDGYdXkRgKMxqckNQ3T9w19V85i6crsP3BqNL6HhyW2WRxJML4QXKy8PxBh9I GEU5ONX7gXpYOSlbSTOgK0jkBt96XdHUQVvSRaZ2Cp2NrQoY8KT1mbvs41PifFH8dt5p rzMer4RqW3wqafhB4F7/t5T+pi4JUNj5DI4Tc9muCglEoPj3/XrlY9qGdOyrW7l5Im8L +oTQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Return-Path: Received: from howler.vger.email (howler.vger.email. [23.128.96.34]) by mx.google.com with ESMTPS id c21-20020a63d155000000b005b86b35778fsi9533945pgj.180.2023.12.05.06.17.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 05 Dec 2023 06:17:12 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) client-ip=23.128.96.34; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id E87C18062F1A; Tue, 5 Dec 2023 06:17:07 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345634AbjLEOQx convert rfc822-to-8bit (ORCPT + 99 others); Tue, 5 Dec 2023 09:16:53 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40118 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345621AbjLEOQv (ORCPT ); Tue, 5 Dec 2023 09:16:51 -0500 Received: from szxga02-in.huawei.com (szxga02-in.huawei.com [45.249.212.188]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 24CE619B; Tue, 5 Dec 2023 06:16:57 -0800 (PST) Received: from kwepemm600006.china.huawei.com (unknown [172.30.72.57]) by szxga02-in.huawei.com (SkyGuard) with ESMTP id 4Sl2dD5PsszWjCh; Tue, 5 Dec 2023 22:16:00 +0800 (CST) Received: from lhrpeml500005.china.huawei.com (7.191.163.240) by kwepemm600006.china.huawei.com (7.193.23.105) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.35; Tue, 5 Dec 2023 22:16:53 +0800 Received: from lhrpeml500005.china.huawei.com ([7.191.163.240]) by lhrpeml500005.china.huawei.com ([7.191.163.240]) with mapi id 15.01.2507.035; Tue, 5 Dec 2023 14:16:51 +0000 From: Shameerali Kolothum Thodi To: Catalin Marinas , Marc Zyngier CC: "ankita@nvidia.com" , "jgg@nvidia.com" , "oliver.upton@linux.dev" , "suzuki.poulose@arm.com" , yuzenghui , "will@kernel.org" , "ardb@kernel.org" , "akpm@linux-foundation.org" , "gshan@redhat.com" , "aniketa@nvidia.com" , "cjia@nvidia.com" , "kwankhede@nvidia.com" , "targupta@nvidia.com" , "vsethi@nvidia.com" , "acurrid@nvidia.com" , "apopple@nvidia.com" , "jhubbard@nvidia.com" , "danw@nvidia.com" , "mochs@nvidia.com" , "kvmarm@lists.linux.dev" , "kvm@vger.kernel.org" , "lpieralisi@kernel.org" , "linux-kernel@vger.kernel.org" , "linux-arm-kernel@lists.infradead.org" , "linyufeng (A)" Subject: RE: [PATCH v2 1/1] KVM: arm64: allow the VM to select DEVICE_* and NORMAL_NC for IO memory Thread-Topic: [PATCH v2 1/1] KVM: arm64: allow the VM to select DEVICE_* and NORMAL_NC for IO memory Thread-Index: AQHaJyt5vUQXGRK0CEWl1So2KZfV67CaaoMAgAAm7ICAACpz4A== Date: Tue, 5 Dec 2023 14:16:51 +0000 Message-ID: <296657c5b09f46a1ac6e4d993fbc0875@huawei.com> References: <20231205033015.10044-1-ankita@nvidia.com> <86fs0hatt3.wl-maz@kernel.org> In-Reply-To: Accept-Language: en-GB, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.202.227.28] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 8BIT MIME-Version: 1.0 X-CFilter-Loop: Reflected X-Spam-Status: No, score=-0.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on howler.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (howler.vger.email [0.0.0.0]); Tue, 05 Dec 2023 06:17:08 -0800 (PST) > -----Original Message----- > From: Catalin Marinas > Sent: Tuesday, December 5, 2023 11:41 AM > To: Marc Zyngier > Cc: ankita@nvidia.com; Shameerali Kolothum Thodi > ; jgg@nvidia.com; > oliver.upton@linux.dev; suzuki.poulose@arm.com; yuzenghui > ; will@kernel.org; ardb@kernel.org; akpm@linux- > foundation.org; gshan@redhat.com; aniketa@nvidia.com; cjia@nvidia.com; > kwankhede@nvidia.com; targupta@nvidia.com; vsethi@nvidia.com; > acurrid@nvidia.com; apopple@nvidia.com; jhubbard@nvidia.com; > danw@nvidia.com; mochs@nvidia.com; kvmarm@lists.linux.dev; > kvm@vger.kernel.org; lpieralisi@kernel.org; linux-kernel@vger.kernel.org; > linux-arm-kernel@lists.infradead.org > Subject: Re: [PATCH v2 1/1] KVM: arm64: allow the VM to select DEVICE_* > and NORMAL_NC for IO memory > > + Lorenzo, he really needs to be on this thread. > > On Tue, Dec 05, 2023 at 09:21:28AM +0000, Marc Zyngier wrote: > > On Tue, 05 Dec 2023 03:30:15 +0000, > > wrote: > > > From: Ankit Agrawal > > > > > > Currently, KVM for ARM64 maps at stage 2 memory that is considered > device > > > (i.e. it is not RAM) with DEVICE_nGnRE memory attributes; this setting > > > overrides (as per the ARM architecture [1]) any device MMIO mapping > > > present at stage 1, resulting in a set-up whereby a guest operating > > > system cannot determine device MMIO mapping memory attributes on > its > > > own but it is always overridden by the KVM stage 2 default. > [...] > > Despite the considerable increase in the commit message length, a > > number of questions are left unanswered: > > > > - Shameer reported a regression on non-FWB systems, breaking device > > assignment: > > > > > https://lore.kernel.org/all/af13ed63dc9a4f26a6c958ebfa77d78a@huawei.co > m/ > > This referred to the first patch in the old series which was trying to > make the Stage 2 cacheable based on the vma attributes. That patch has > been dropped for now. It would be good if Shameer confirms this was the > problem. > Yes, that was related to the first patch. We will soon test this on both FWB and non-FWB platforms and report back. Thanks, Shameer