Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752270AbdHIAAm (ORCPT ); Tue, 8 Aug 2017 20:00:42 -0400 Received: from mx0b-001b2d01.pphosted.com ([148.163.158.5]:49996 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751229AbdHIAAl (ORCPT ); Tue, 8 Aug 2017 20:00:41 -0400 Date: Tue, 8 Aug 2017 17:00:34 -0700 From: Sukadev Bhattiprolu To: Michael Ellerman Cc: Benjamin Herrenschmidt , tglx@linutronix.de, linux-kernel@vger.kernel.org, linuxppc-dev@lists.ozlabs.org Subject: Re: [PATCH] powerpc: xive: ensure active irqd when setting affinity References: <20170803013822.GD28905@us.ibm.com> <87zibamjfi.fsf@concordia.ellerman.id.au> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <87zibamjfi.fsf@concordia.ellerman.id.au> X-Operating-System: Linux 2.0.32 on an i486 User-Agent: Mutt/1.7.1 (2016-10-04) X-TM-AS-GCONF: 00 x-cbid: 17080900-0044-0000-0000-0000037A2D63 X-IBM-SpamModules-Scores: X-IBM-SpamModules-Versions: BY=3.00007509; HX=3.00000241; KW=3.00000007; PH=3.00000004; SC=3.00000217; SDB=6.00899553; UDB=6.00450267; IPR=6.00679759; BA=6.00005519; NDR=6.00000001; ZLA=6.00000005; ZF=6.00000009; ZB=6.00000000; ZP=6.00000000; ZH=6.00000000; ZU=6.00000002; MB=3.00016602; XFM=3.00000015; UTC=2017-08-09 00:00:38 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 17080900-0045-0000-0000-000007A8423A Message-Id: <20170809000034.GB17162@us.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:,, definitions=2017-08-08_11:,, signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 spamscore=0 suspectscore=0 malwarescore=0 phishscore=0 adultscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1706020000 definitions=main-1708080395 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1280 Lines: 34 Michael Ellerman [mpe@ellerman.id.au] wrote: > Sukadev Bhattiprolu writes: > > > From fd0abf5c61b6041fdb75296e8580b86dc91d08d6 Mon Sep 17 00:00:00 2001 > > From: Benjamin Herrenschmidt > > Date: Tue, 1 Aug 2017 20:54:41 -0500 > > Subject: [PATCH] powerpc: xive: ensure active irqd when setting affinity > > > > Ensure irqd is active before attempting to set affinity. This should > > make the set affinity code more robust. For instance, this prevents > > these messages seen on a 4.12 based kernel when taking cpus offline: > > > > [ 123.053037264,3] XIVE[ IC 00 ] ISN 2 lead to invalid IVE ! > > [ 77.885859] xive: Error -6 reconfiguring irq 17 > > [ 77.885862] IRQ17: set affinity failed(-6). > > > > The underlying problem with taking cpus offline was fixed in 4.13-rc1 by: > > > > commit 91f26cb4cd3c ("genirq/cpuhotplug: Do not migrated shutdown irqs") > > So do we still need this? Or is the above only a partial fix? It would be good to have this fix. Commit 91f26cb4cd3c fixes the problem, so we wont see the errors with that commit applied. But if such a problem were to show up again, xive will handle them earlier before hitting those errors. Sukadev > > I'm a bit confused. > > cheers