Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753784AbdDJRxX (ORCPT ); Mon, 10 Apr 2017 13:53:23 -0400 Received: from mx0a-001b2d01.pphosted.com ([148.163.156.1]:35846 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752687AbdDJRxU (ORCPT ); Mon, 10 Apr 2017 13:53:20 -0400 Subject: Re: WARN @lib/refcount.c:128 during hot unplug of I/O adapter. To: Michael Ellerman , Sachin Sant , linuxppc-dev@ozlabs.org References: <8760ig983f.fsf@concordia.ellerman.id.au> Cc: Nathan Fontenot , LKML From: Tyrel Datwyler Date: Mon, 10 Apr 2017 10:53:08 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.7.0 MIME-Version: 1.0 In-Reply-To: <8760ig983f.fsf@concordia.ellerman.id.au> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-TM-AS-GCONF: 00 x-cbid: 17041017-0028-0000-0000-000007617282 X-IBM-SpamModules-Scores: X-IBM-SpamModules-Versions: BY=3.00006912; HX=3.00000240; KW=3.00000007; PH=3.00000004; SC=3.00000208; SDB=6.00845652; UDB=6.00417034; IPR=6.00624085; BA=6.00005281; NDR=6.00000001; ZLA=6.00000005; ZF=6.00000009; ZB=6.00000000; ZP=6.00000000; ZH=6.00000000; ZU=6.00000002; MB=3.00014994; XFM=3.00000013; UTC=2017-04-10 17:53:13 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 17041017-0029-0000-0000-000034FD3D68 Message-Id: <89aec36c-e352-e055-5e80-1235449762ce@linux.vnet.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:,, definitions=2017-04-10_13:,, 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-1702020001 definitions=main-1704100141 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1165 Lines: 34 On 04/06/2017 09:04 PM, Michael Ellerman wrote: > Tyrel Datwyler writes: > >> On 04/06/2017 03:27 AM, Sachin Sant wrote: >>> On a POWER8 LPAR running 4.11.0-rc5, a hot unplug operation on >>> any I/O adapter results in the following warning >>> >>> This problem has been in the code for some time now. I had first seen this in >>> -next tree. >>> >>> Have attached the dmesg log from the system. Let me know if any additional >>> information is required to help debug this problem. >> >> I remember you mentioning this when the issue was brought up for CPUs. I >> assume the case is the same here where the issue is only seen with >> adapters that were hot-added after boot (ie. hot-remove of adapter >> present at boot doesn't trip the warning)? > > So who's fixing this? I started looking at it when Bharata submitted a patch trying to fix the issue for CPUs, but got side tracked by other things. I suspect that this underflow has actually been an issue for quite some time, and we are just now becoming aware of it thanks to the recount_t patchset being merged. I'll look into it again this week. -Tyrel > > cheers >