From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752042AbdGEOKJ (ORCPT ); Wed, 5 Jul 2017 10:10:09 -0400 Received: from mga11.intel.com ([192.55.52.93]:52582 "EHLO mga11.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751654AbdGEOKE (ORCPT ); Wed, 5 Jul 2017 10:10:04 -0400 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.40,312,1496127600"; d="scan'208";a="282379531" Date: Wed, 5 Jul 2017 22:10:18 +0800 From: Chen Yu To: Thomas Gleixner Cc: Ingo Molnar , "H. Peter Anvin" , Borislav Petkov , Len Brown , "Rafael J . Wysocki" , x86@kernel.org, LKML Subject: Re: [PATCH][RFC] x86: Fix the irq affinity in fixup_cpus Message-ID: <20170705141018.GB17143@yu-desktop-1.sh.intel.com> References: <1493020011-18536-1-git-send-email-yu.c.chen@intel.com> <20170703135109.GA26935@yu-desktop-1.sh.intel.com> <20170705032052.GA10286@yu-desktop-1.sh.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jul 05, 2017 at 08:46:08AM +0200, Thomas Gleixner wrote: > On Wed, 5 Jul 2017, Chen Yu wrote: > > On Tue, Jul 04, 2017 at 10:50:33AM +0200, Thomas Gleixner wrote: > > Here's the test result for affinity: > > # uname -r > > 4.12.0+ > > # cat /proc/irq/32/smp_affinity > > 00000000,80000000 > > # echo 0 > /sys/devices/system/cpu/cpu31/online > > # cat /proc/irq/32/smp_affinity > > 00000000,ffffffff > > Looks like cpu31 is till included in the irq mask. > > Yes, because the offline broke affinity and now it's reset to the default > affinity mask. /proc/irq/*/affinity is the affinity which is allowed by the > admin, not the one which is effective. > > Look at /proc/irq/32/effective_affinity to see where it's really routed to. > ok, got it, this is normal now. cat /proc/irq/32/effective_affinity 00000000,00000001 Thanks, Yu