From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755999AbbCLXRr (ORCPT ); Thu, 12 Mar 2015 19:17:47 -0400 Received: from mga14.intel.com ([192.55.52.115]:31539 "EHLO mga14.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752702AbbCLXRq (ORCPT ); Thu, 12 Mar 2015 19:17:46 -0400 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.11,391,1422950400"; d="scan'208";a="679396048" From: Vikas Shivappa To: vikas.shivappa@intel.com Cc: x86@kernel.org, linux-kernel@vger.kernel.org, hpa@zytor.com, tglx@linutronix.de, mingo@kernel.org, tj@kernel.org, peterz@infradead.org, matt.fleming@intel.com, will.auld@intel.com, glenn.p.williamson@intel.com, kanaka.d.juvva@intel.com, vikas.shivappa@linux.intel.com Subject: [PATCH V5 0/7] x86/intel_rdt: Intel Cache Allocation Technology Date: Thu, 12 Mar 2015 16:16:00 -0700 Message-Id: <1426202167-30598-1-git-send-email-vikas.shivappa@linux.intel.com> X-Mailer: git-send-email 1.9.1 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patch adds a new cgroup subsystem to support the new Cache Allocation Technology (CAT) feature found in future Intel Xeon Intel processors. CAT is part of Resource Director Technology(RDT) or Platform Shared resource control which provides support to control Platform shared resources like cache. More information can be found in the *Intel SDM Volume 3 section 17.15*. This patch series is *dependent* on the V5 patches for Intel Cache QOS Monitoring from Matt since the series also implements a common software cache for the IA32_PQR_MSR : https://lkml.kernel.org/r/1422038748-21397-1-git-send-email-matt@codeblueprint.co.uk *All the patches will apply on 4.0-rc3*. I have added a bit of code that was left out in this series. The h/w provides per package CLOSIDs but OS just treats them as global to simplify the handling. When the corresponding cache bitmasks are changed the change needs to be propagated to all the packages. CLOSID update to IA32_PQR_MSR is already done on a per-cpu basis. Changes in v5: - Added support to propagate the cache bit mask update for each package. - Removed the cache bit mask reference in the intel_rdt structure as we already maintain a separate closid<->cbm mapping. - Made a few coding convention changes and added an assertion for cgroup count while freeing the CLOSID. Changes in V4: - Integrated with the latest V5 CMT patches. - Changed naming of cgroup to rdt(resource director technology) from cat(cache allocation technology). This was done as the RDT is the umbrella term for platform shared resources allocation. Hence in future it would be easier to add resource allocation to the same cgroup - Naming changes also applied to a lot of other data structures/APIs. - Added documentation on cgroup usage for cache allocation to address a lot of questions from various academic and industry regarding cache allocation usage. Changes in V3: - Implements a common software cache for IA32_PQR_MSR - Implements support for hsw CAT enumeration. This does not use the brand strings like earlier version but does a probe test. The probe test is done only on hsw family of processors - Made a few coding convention, name changes - Check for lock being held when ClosID manipulation happens Changes in V2: - Removed HSW specific enumeration changes. Plan to include it later as a separate patch. - Fixed the code in prep_arch_switch to be specific for x86 and removed x86 defines. - Fixed cbm_write to not write all 1s when a cgroup is freed. - Fixed one possible memory leak in init. - Changed some of manual bitmap manipulation to use the predefined bitmap APIs to make code more readable - Changed name in sources from cqe to cat - Global cat enable flag changed to static_key and disabled cgroup early_init