From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S936584AbcKKJnv (ORCPT ); Fri, 11 Nov 2016 04:43:51 -0500 Received: from Galois.linutronix.de ([146.0.238.70]:35217 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934434AbcKKJnq (ORCPT ); Fri, 11 Nov 2016 04:43:46 -0500 Date: Fri, 11 Nov 2016 10:41:07 +0100 (CET) From: Thomas Gleixner To: Peter Zijlstra cc: David Carrillo-Cisneros , linux-kernel , "x86@kernel.org" , Ingo Molnar , Andi Kleen , Kan Liang , Vegard Nossum , Marcelo Tosatti , Nilay Vaish , Borislav Petkov , Vikas Shivappa , Ravi V Shankar , Fenghua Yu , Paul Turner , Stephane Eranian Subject: Re: [PATCH v3 05/46] perf/x86/intel/cmt: add per-package locks In-Reply-To: <20161111072156.GS3568@worktop.programming.kicks-ass.net> Message-ID: References: <1477787923-61185-1-git-send-email-davidcc@google.com> <1477787923-61185-6-git-send-email-davidcc@google.com> <20161111072156.GS3568@worktop.programming.kicks-ass.net> User-Agent: Alpine 2.20 (DEB 67 2015-01-07) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 11 Nov 2016, Peter Zijlstra wrote: > Well, its very hard to suggest alternatives, because there simply isn't > anything of content here. This patch just adds locks, and the next few > patches don't describe much either. > > Why can't this be RCU? AFAICT from looking at later patches the context switch path can do RMID borrowing/stealing whatever things which need protection of the package data. Other pathes (setup/rotation/ ...) take all the package locks to prevent concurrent RMID operations. I still have not figured out why all of this is necessary and unfortunately there is no real coherent epxlanation of the overall design. The cover letter is not really helpful either. Thanks, tglx