From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 363F6C4363A for ; Tue, 27 Oct 2020 18:03:01 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id E3CE821556 for ; Tue, 27 Oct 2020 18:03:00 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1824100AbgJ0SC7 (ORCPT ); Tue, 27 Oct 2020 14:02:59 -0400 Received: from mga01.intel.com ([192.55.52.88]:40536 "EHLO mga01.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1824089AbgJ0SC4 (ORCPT ); Tue, 27 Oct 2020 14:02:56 -0400 IronPort-SDR: fG2kpTDRvhUgGQRRSL7cqEjF5wu5yUfgIKkg/Ky4iEkFurob2FK4MzRTB/OHC1RrfbrTB80vuS 0mnNgXc+6+iw== X-IronPort-AV: E=McAfee;i="6000,8403,9787"; a="185881900" X-IronPort-AV: E=Sophos;i="5.77,424,1596524400"; d="scan'208";a="185881900" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 27 Oct 2020 11:02:56 -0700 IronPort-SDR: QB8xWuYDPJkJLrHinQCkNshLxzUHA69VnRYfRqjmBDDg1rJX8/nrDg7hrkmKbZHqhCfn4FdZ0h BF2Gc3fmdqxw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.77,424,1596524400"; d="scan'208";a="350685982" Received: from otcwcpicx6.sc.intel.com ([172.25.55.29]) by fmsmga004.fm.intel.com with ESMTP; 27 Oct 2020 11:02:56 -0700 Date: Tue, 27 Oct 2020 18:02:56 +0000 From: Fenghua Yu To: Borislav Petkov Cc: Thomas Gleixner , Ingo Molnar , Stephane Eranian , Tony Luck , Reinette Chatre , Randy Dunlap , Ravi V Shankar , linux-kernel , x86 Subject: Re: [PATCH v3 2/2] x86/resctrl: Correct MBM total and local values Message-ID: <20201027180256.GA3478584@otcwcpicx6.sc.intel.com> References: <20201014004927.1839452-1-fenghua.yu@intel.com> <20201014004927.1839452-3-fenghua.yu@intel.com> <20201027175748.GJ15580@zn.tnic> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20201027175748.GJ15580@zn.tnic> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, Boris, On Tue, Oct 27, 2020 at 06:57:48PM +0100, Borislav Petkov wrote: > On Wed, Oct 14, 2020 at 12:49:27AM +0000, Fenghua Yu wrote: > > +static const struct mbm_correction_factor_table { > > + u32 rmidthreshold; > > + u64 cf; > > +} mbm_cf_table[] = { > > That thing wants to be __initdata, AFAICT, since the only function > touching it is __init. > > Made it so. You are right. The correction value is read from this table only once in __init. So this table should be __initdata. Thank you very much for your review! -Fenghua