Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752134AbdHPO5p (ORCPT ); Wed, 16 Aug 2017 10:57:45 -0400 Received: from Galois.linutronix.de ([146.0.238.70]:58665 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751781AbdHPO5o (ORCPT ); Wed, 16 Aug 2017 10:57:44 -0400 Date: Wed, 16 Aug 2017 16:57:41 +0200 (CEST) From: Thomas Gleixner To: "Luck, Tony" cc: Vikas Shivappa , "Shivappa, Vikas" , "x86@kernel.org" , "linux-kernel@vger.kernel.org" , "hpa@zytor.com" , "peterz@infradead.org" , "Shankar, Ravi V" , "Yu, Fenghua" , "ak@linux.intel.com" , "eranian@google.com" , "davidcc@google.com" Subject: RE: [PATCH 1/2] x86/intel_rdt/mbm: Fix MBM overflow handler during hot cpu In-Reply-To: <3908561D78D1C84285E8C5FCA982C28F61340139@ORSMSX114.amr.corp.intel.com> Message-ID: References: <1502845243-20454-1-git-send-email-vikas.shivappa@linux.intel.com> <1502845243-20454-2-git-send-email-vikas.shivappa@linux.intel.com> <3908561D78D1C84285E8C5FCA982C28F61340139@ORSMSX114.amr.corp.intel.com> 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 Content-Length: 839 Lines: 22 On Wed, 16 Aug 2017, Luck, Tony wrote: > > You could alternatively use flush and make the worker code schedule the > > work on a still online CPU in the domain instead of blindly rescheduling it > > on the same CPU. > > We looked at that when you suggested flush. The problem is that we have > already deleted the current cpu from the bitmask for the domain. So the > worker code doesn't know which domain it is running on, so can't pick > another. > > If we try to do the flush before dropping the cpu from the bitmask, then > the worker code doesn't have any reason to pick a different CPU. > > Is there is some cheap "I'm running on a CPU that is in the process of going > offline" test that we could make in the worker code? Don't think so. It was just a thought, but the code as provided is fine and merged as is. Thanks, tglx