Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp1309934rwd; Thu, 25 May 2023 10:41:20 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7c25koUWRAYuWQBD3BnuIPVxjQCmAQd6pZYRNp1TR0Bg66rEEQ9wNv51QAbZI/NTlfQ6a1 X-Received: by 2002:a17:902:7683:b0:1ac:66c4:6071 with SMTP id m3-20020a170902768300b001ac66c46071mr2199417pll.57.1685036480425; Thu, 25 May 2023 10:41:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685036480; cv=none; d=google.com; s=arc-20160816; b=qvq2YL0YyPu+s2xXXF2+YWXVFozJxN4c4KL8jwEAJK3sJmQ3myiPk17cYS26vd0aO4 TFUfu6MS5S2HFoiFjgwKPt51D0O6Nl4ruqW1DydD+WtnsEFEhqV4lXN5wfwojBQ6nXOT F9GDW84wgxKVA75Bf4QxEBl9VhdUHoc1wmQroi3ZY7dt+xLG7Mr+aeZ1kXRP3ZKX32EV YBxjGglYhBGTfLbaePtUZ2AnXOu5WXhOYXugOHY1TkbXdubf9Oe+XMugQB7fr7SWEBWt iz6R96XhMbrhsLFPbmSLcF+q8XzH1Y0faZDJ7zHv+XPFPo1eJz0qOSS/DS08uPBvcMPC 6XtQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id; bh=F+ke/dJ9wyuUa4nzwaCXf+hGpr1jdx2ATqxrerdXW3Q=; b=PRLF59l6e4OcuU4wMWrPAvHzkKptxjoLvkuHNjl1CJO0yca9X5LAKTm+30X/wtb0rV FBsc2NYubwyXKG6eeYN9MIICKDNmhoLKbJJWbp5PlgLgb4I54L3YIDhhlQ2P6malw6FO +Jh+sErHq+9NYVYhl1xkHJ3oGh9M2cBgOUMeNWmByZzRIjY/1ifXcFGCm3ezy3jqv5LI Iqrsq0O7ZWVu9M6X/AP9CwGxWrLcV0tFkbDgQJPK70RrqlHPxJXnFYzr2V0F3q+ugqRI J2hRKpJM89twSUnbw65GgX5PUaHwszvhgGbRKKmYBWZ384WOlKSMGwn6r5gKZRbeeopI yGPA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id bj9-20020a170902850900b001a9b4bda723si1812068plb.421.2023.05.25.10.41.05; Thu, 25 May 2023 10:41:20 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S241155AbjEYRc0 (ORCPT + 99 others); Thu, 25 May 2023 13:32:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42680 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241022AbjEYRcT (ORCPT ); Thu, 25 May 2023 13:32:19 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id AB91419C for ; Thu, 25 May 2023 10:32:14 -0700 (PDT) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 8218D1042; Thu, 25 May 2023 10:32:59 -0700 (PDT) Received: from [10.1.196.177] (eglon.cambridge.arm.com [10.1.196.177]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id DD20B3F6C4; Thu, 25 May 2023 10:32:09 -0700 (PDT) Message-ID: <35e066a1-25dd-3241-e44c-5471725a1592@arm.com> Date: Thu, 25 May 2023 18:32:08 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux aarch64; rv:102.0) Gecko/20100101 Thunderbird/102.8.0 Subject: Re: [PATCH v3 02/19] x86/resctrl: Access per-rmid structures by index Content-Language: en-GB To: Peter Newman Cc: x86@kernel.org, linux-kernel@vger.kernel.org, Fenghua Yu , Reinette Chatre , Thomas Gleixner , Ingo Molnar , Borislav Petkov , H Peter Anvin , Babu Moger , shameerali.kolothum.thodi@huawei.com, D Scott Phillips OS , carl@os.amperecomputing.com, lcherian@marvell.com, bobo.shaobowang@huawei.com, tan.shaopeng@fujitsu.com, xingxin.hx@openanolis.org, baolin.wang@linux.alibaba.com, Jamie Iles , Xin Hao References: <20230320172620.18254-1-james.morse@arm.com> <20230320172620.18254-3-james.morse@arm.com> From: James Morse In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.3 required=5.0 tests=BAYES_00,NICE_REPLY_A, RCVD_IN_DNSWL_MED,SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Peter, On 24/04/2023 14:06, Peter Newman wrote: > On Mon, Mar 20, 2023 at 6:27 PM James Morse wrote: >> diff --git a/arch/x86/kernel/cpu/resctrl/core.c b/arch/x86/kernel/cpu/resctrl/core.c >> index 030d3b409768..351319403f84 100644 >> --- a/arch/x86/kernel/cpu/resctrl/core.c >> +++ b/arch/x86/kernel/cpu/resctrl/core.c >> @@ -600,7 +600,7 @@ static void clear_closid_rmid(int cpu) >> state->default_rmid = 0; >> state->cur_closid = 0; >> state->cur_rmid = 0; >> - wrmsr(MSR_IA32_PQR_ASSOC, 0, 0); >> + wrmsr(MSR_IA32_PQR_ASSOC, RESCTRL_RESERVED_CLOSID, 0); > > It looks like the RMID/CLOSID params are in the wrong order in this wrmsr(). Fixed, thanks! James