Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp887877pxb; Wed, 27 Oct 2021 14:30:28 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyTMk+7NCRQiFM5Xf/RZ6m9OIWf5kEjXmjYtL4Ita4W0q3EMM1gN314FUMYH3+Jzb8O7vs9 X-Received: by 2002:aa7:c041:: with SMTP id k1mr501074edo.330.1635370228187; Wed, 27 Oct 2021 14:30:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1635370228; cv=none; d=google.com; s=arc-20160816; b=DnRg2O+uCa73dXKnZ618w6eJW+09J0WDJAi1vi6ZEAFpRTI2NUdaoyYkOUNPhIeCDO MifMqkXsM3mvj4trOzZ3ErgxsSPDLdpBMJKmzlfSirTCImrSonItQ+WpaLRPEQ3pgE9t 5mLuJl8pjCkXrbqhemt/QUvuzwKMjYejankSa7Ql69CEnYSR+zV9OqgyLj5T89YQ8dTB ZEoY+4U8meClH4AXjoQ+G+ffU5UwTnCv9ebb9CANN8Fh3i3wFhRshAAMDK6NkXkbzdXv JJd0bjlqM26txO3D0GG+/D/Qzixd15CjlalBW368gNbqKOSeNekNQNz6AHUFZHv6drJ5 gLiw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject; bh=1RC4LRMgoOCJCB2kEe4hcO3k1NrZjS8Yj0wh9dwIs/E=; b=eTwJLqVKyRcMq4rF0ATAgwlTTLjFeYxeMgQTqNSzl9XBitU6ZSPD7kZ1VjXRsNF14g IEmsYizaxHcFa9mDsoCGYjo8UkHY+DRUpx9nb49WWwbBLmuafdG0oOgCPfBtF7kUmqNi KmQnkRHDo5h3QPV73jCqYrB4qaVzTji4Hav8LmORb644ucWQT1VHBC3LABVT3R71WMAv GcDsyIwBv6hr6tCi+6Cwq4VCLjorbuykVI7N1gMXMj4duRKsRU0HL5rJ/rGiUv4Do506 JBEwdkdntUFAzxY4sED2GDEVgq3soCUykpeDCNHnCru0zEowHxSTDG8wPTiTqh6mngl9 KQLQ== 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 jg41si1473228ejc.709.2021.10.27.14.30.04; Wed, 27 Oct 2021 14:30:28 -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 S229624AbhJ0QwX (ORCPT + 97 others); Wed, 27 Oct 2021 12:52:23 -0400 Received: from foss.arm.com ([217.140.110.172]:45342 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242994AbhJ0QwX (ORCPT ); Wed, 27 Oct 2021 12:52:23 -0400 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 6EF44106F; Wed, 27 Oct 2021 09:49:57 -0700 (PDT) Received: from [10.1.196.31] (eglon.cambridge.arm.com [10.1.196.31]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 8FB603F70D; Wed, 27 Oct 2021 09:49:55 -0700 (PDT) Subject: Re: [PATCH v2 10/23] x86/resctrl: Remove architecture copy of mbps_val To: Reinette Chatre , x86@kernel.org, linux-kernel@vger.kernel.org Cc: Fenghua Yu , Thomas Gleixner , Ingo Molnar , Borislav Petkov , H Peter Anvin , Babu Moger , shameerali.kolothum.thodi@huawei.com, Jamie Iles , D Scott Phillips OS , lcherian@marvell.com, bobo.shaobowang@huawei.com, tan.shaopeng@fujitsu.com References: <20211001160302.31189-1-james.morse@arm.com> <20211001160302.31189-11-james.morse@arm.com> <81977073-3b1b-b8e1-6aec-828225e3a531@intel.com> From: James Morse Message-ID: Date: Wed, 27 Oct 2021 17:49:54 +0100 User-Agent: Mozilla/5.0 (X11; Linux aarch64; rv:78.0) Gecko/20100101 Thunderbird/78.12.0 MIME-Version: 1.0 In-Reply-To: <81977073-3b1b-b8e1-6aec-828225e3a531@intel.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-GB Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Reinette, On 15/10/2021 23:27, Reinette Chatre wrote: > On 10/1/2021 9:02 AM, James Morse wrote: >> The resctrl arch code provides a second configuration array mbps_val[] >> for the MBA software controller. >> >> Since resctrl switched over to allocating and freeing its own array >> when needed, nothing uses the arch code version. > > With the previous changes this is true, that this array is no longer used. Even so, the > code removed in this patch is not just the usage of the array but also its management ... > especially how and when it is reset. While the array is no longer used I think it is still > important to ensure that all the array management is handled in the new mpbs_val array. > Perhaps just help the reader by stating that the values of the new array never needs to be > reset since it is always recreated while the previous array stuck around during umount/mount. I've split those changes out as a separate patch which appears at the end of the series, meaning the lifecycle stuff is unchanged by this point. Thanks, James