Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp2691664imm; Fri, 24 Aug 2018 03:48:24 -0700 (PDT) X-Google-Smtp-Source: ANB0VdY1+C0mxscRIfhHppkGqCmzPO6musvtpMM52EmJxe6llaagFaTjTBZP4pSS926mjdzadpBb X-Received: by 2002:a63:d70e:: with SMTP id d14-v6mr1204538pgg.110.1535107704787; Fri, 24 Aug 2018 03:48:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535107704; cv=none; d=google.com; s=arc-20160816; b=Qd0npHOJpSwYq6QsYMS+bGzezrjGTXd6svfnGvXHbQGACf+MhKBNGDoDTyyKSd7bow 1CL9JiHDIVc4DwpW2LCXTa/sxXY+dgM6MYsZGaNi2B7VvLr7Gt6m+aZ3zJYYQcSGR5rG NKQ/QXrIfU+xqy8ogeMJZmNUy5r59abn8wJI+E5hmva2F9mfrgxvUn8w9Wl64ps9uRrG 7AQWxgxiAIjrkMsAb173gpx523DlwTu01GOH6I98li0KtVSK0mQrTlmiAZQX8hlq0l3H 8Ca0tatUN3FpuXDJ5oqz5JtP4GqcVfoFsZ4FrL/85rX5v92+Kvd5zBGGVHGAyJJUgByE Zfwg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:arc-authentication-results; bh=UyrLH8WE3h76VaDNoFSVqhSXm2NnwBhIkkDgJkB/0F8=; b=EJY1nL5o93sCQ+CCl2q9jbRmwSo09tLCJsPLYHa9nZSgSv+0Hb2uCIvGBhf7JxI4S3 gAg+eM0wrV1PI7fDxbo/+LQ7DDlS48aqJFhr/14iYwwd5I9d/ox3BSbtaVRlND0G9D/1 jiLWencfzQUWwWmK5J/A06RBGSiVEP4tqgKBy672sw8p/yWqyoaOK68KF4VzUIC2iPDm /2wJYGv9m6TM6oratw7apvY84coUfWNZN8OU9N3wa7wrLdAUWiV35/OYdisiVrWPR4Rh QZNIN0drEGQ4cXJzfTZK4Z6RVdmrSMEVl8k7+9FMasjhMfPOpoHaR+EAlsncAwnM9XMH RSYA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e4-v6si2481100pfn.340.2018.08.24.03.48.09; Fri, 24 Aug 2018 03:48:24 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728064AbeHXOUp (ORCPT + 99 others); Fri, 24 Aug 2018 10:20:45 -0400 Received: from usa-sjc-mx-foss1.foss.arm.com ([217.140.101.70]:55660 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727997AbeHXOUo (ORCPT ); Fri, 24 Aug 2018 10:20:44 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 2EA6F15A2; Fri, 24 Aug 2018 03:46:40 -0700 (PDT) Received: from melchizedek.Emea.Arm.com (melchizedek.emea.arm.com [10.4.12.81]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 86A283F5A0; Fri, 24 Aug 2018 03:46:38 -0700 (PDT) From: James Morse To: linux-kernel@vger.kernel.org Cc: x86@kernel.org, Thomas Gleixner , Fenghua Yu , Tony Luck , Ingo Molnar , H Peter Anvin , Reinette Chatre , Vikas Shivappa Subject: [RFC PATCH 18/20] x86/intel_rdt: Remove the CODE/DATA illusionary caches Date: Fri, 24 Aug 2018 11:45:17 +0100 Message-Id: <20180824104519.11203-19-james.morse@arm.com> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20180824104519.11203-1-james.morse@arm.com> References: <20180824104519.11203-1-james.morse@arm.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Now that nothing uses these caches, remove them. Signed-off-by: James Morse --- arch/x86/kernel/cpu/intel_rdt.c | 69 --------------------------------- arch/x86/kernel/cpu/intel_rdt.h | 4 -- 2 files changed, 73 deletions(-) diff --git a/arch/x86/kernel/cpu/intel_rdt.c b/arch/x86/kernel/cpu/intel_rdt.c index 96b1aab36053..f6f1eceb366f 100644 --- a/arch/x86/kernel/cpu/intel_rdt.c +++ b/arch/x86/kernel/cpu/intel_rdt.c @@ -84,41 +84,6 @@ struct rdt_hw_resource rdt_resources_all[] = { .msr_base = IA32_L3_CBM_BASE, .msr_update = cat_wrmsr, }, - [RDT_RESOURCE_L3DATA] = - { - .rid = RDT_RESOURCE_L3DATA, - .resctrl = { - .name = "L3DATA", - .cache_level = 3, - .cache = { - .min_cbm_bits = 1, - }, - .domains = domain_init(RDT_RESOURCE_L3DATA), - .parse_ctrlval = parse_cbm, - .format_str = "%d=%0*x", - .fflags = RFTYPE_RES_CACHE, - }, - .msr_base = IA32_L3_CBM_BASE, - .msr_update = cat_wrmsr, - - }, - [RDT_RESOURCE_L3CODE] = - { - .rid = RDT_RESOURCE_L3CODE, - .resctrl = { - .name = "L3CODE", - .cache_level = 3, - .cache = { - .min_cbm_bits = 1, - }, - .domains = domain_init(RDT_RESOURCE_L3CODE), - .parse_ctrlval = parse_cbm, - .format_str = "%d=%0*x", - .fflags = RFTYPE_RES_CACHE, - }, - .msr_base = IA32_L3_CBM_BASE, - .msr_update = cat_wrmsr, - }, [RDT_RESOURCE_L2] = { .rid = RDT_RESOURCE_L2, @@ -136,40 +101,6 @@ struct rdt_hw_resource rdt_resources_all[] = { .msr_base = IA32_L2_CBM_BASE, .msr_update = cat_wrmsr, }, - [RDT_RESOURCE_L2DATA] = - { - .rid = RDT_RESOURCE_L2DATA, - .resctrl = { - .name = "L2DATA", - .cache_level = 2, - .cache = { - .min_cbm_bits = 1, - }, - .domains = domain_init(RDT_RESOURCE_L2DATA), - .parse_ctrlval = parse_cbm, - .format_str = "%d=%0*x", - .fflags = RFTYPE_RES_CACHE, - }, - .msr_base = IA32_L2_CBM_BASE, - .msr_update = cat_wrmsr, - }, - [RDT_RESOURCE_L2CODE] = - { - .rid = RDT_RESOURCE_L2CODE, - .resctrl = { - .name = "L2CODE", - .cache_level = 2, - .cache = { - .min_cbm_bits = 1, - }, - .domains = domain_init(RDT_RESOURCE_L2CODE), - .parse_ctrlval = parse_cbm, - .format_str = "%d=%0*x", - .fflags = RFTYPE_RES_CACHE, - }, - .msr_base = IA32_L2_CBM_BASE, - .msr_update = cat_wrmsr, - }, [RDT_RESOURCE_MBA] = { .rid = RDT_RESOURCE_MBA, diff --git a/arch/x86/kernel/cpu/intel_rdt.h b/arch/x86/kernel/cpu/intel_rdt.h index fd5c0b3dc797..a4aba005cfea 100644 --- a/arch/x86/kernel/cpu/intel_rdt.h +++ b/arch/x86/kernel/cpu/intel_rdt.h @@ -311,11 +311,7 @@ int __init rdtgroup_init(void); enum { RDT_RESOURCE_L3, - RDT_RESOURCE_L3DATA, - RDT_RESOURCE_L3CODE, RDT_RESOURCE_L2, - RDT_RESOURCE_L2DATA, - RDT_RESOURCE_L2CODE, RDT_RESOURCE_MBA, /* Must be the last */ -- 2.18.0