Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp5835095ybl; Tue, 10 Dec 2019 12:16:09 -0800 (PST) X-Google-Smtp-Source: APXvYqxIiUovjFWe2Ey4633ZHJ/rpAwbFTiU0J0wRvH8/npBE0qRB53CEnf15rn4cRY4cQxqR0Bl X-Received: by 2002:aca:53c6:: with SMTP id h189mr638479oib.11.1576008969387; Tue, 10 Dec 2019 12:16:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1576008969; cv=none; d=google.com; s=arc-20160816; b=A9627elrZZEYUkyJxjL+o6LDKi8ZN9WGkfK9TYIOsDiq2GWvkLCGQhMd8i/47Tsy+1 DnKGl/w6msEb7XAdEeyF9trxsKLZtytB/HAV2J8ofVLQfqpwaFNVV0gSDdj18zYiPhiL xaJnMGrVlTcnfvO85P2Cn4wHLumo+oUWWCdy16ohMA8f/U9xfWUo7Srhebb+6jzqhEk5 /1V8Lbww6C2P2AVfUlrtkRChXKDgA8OB2unp4bFOKICr8TA9YCpo/7fnTkvDrOgJCKme Gm/Ypsx9NnPaIlxNcK3hwmth6kGqFyLKYfE3xfFgF/XsssRDUBnGFnHpBcLFpSpyaEhL zaRw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=Ooll22Sa/adcL+hMtv0MqyzWjw/eVsPs63YtrUnZygY=; b=k43wXcI8wuR3MmzNcx+iJjRLLofcml7ggpxvCHQ5DQlqCimHxdLMJNkwJ7FfGhbOXN QdHszqaFSOIY7LkR6+KpEc66PdbWnwCXzMo7SrAShVezIYZjBK1ADISRIHX8Id7ELbPt aJVykquQuiFelMITIaqjaDvit1G7jSh9qNUI7ya6/s4a0N/Tng65cpiYFesb8xU2V8FW V4E+TluXUUhJV2i3mNT66ppSuPHBGR25KkJ0qz/U1vNB0U3m4uTT5Rg0VYB5PmuG8hXX VawOY1ssW/GVHweS0oE2eXVa05aup60RTmXpqpHTkMYjQebyGNQhiLAtozcguvEsnTY7 YUPw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r202si2528735oie.247.2019.12.10.12.15.57; Tue, 10 Dec 2019 12:16:09 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726783AbfLJUPH (ORCPT + 99 others); Tue, 10 Dec 2019 15:15:07 -0500 Received: from mga18.intel.com ([134.134.136.126]:35135 "EHLO mga18.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726417AbfLJUPH (ORCPT ); Tue, 10 Dec 2019 15:15:07 -0500 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga008.jf.intel.com ([10.7.209.65]) by orsmga106.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 10 Dec 2019 12:15:06 -0800 X-IronPort-AV: E=Sophos;i="5.69,300,1571727600"; d="scan'208";a="207421314" Received: from rchatre-mobl.amr.corp.intel.com (HELO [10.24.14.138]) ([10.24.14.138]) by orsmga008-auth.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-SHA; 10 Dec 2019 12:15:06 -0800 Subject: Re: [PATCH] x86/resctrl: fix an imbalance in domain_remove_cpu To: Qian Cai Cc: Ryan Chen , Thomas Gleixner , Ingo Molnar , Borislav Petkov , Fenghua Yu , "H. Peter Anvin" , John Stultz , sboyd@kernel.org, Tony Luck , tj@kernel.org, the arch/x86 maintainers , Linux Kernel Mailing List References: <37341135-a0db-6d1c-236f-e32461b4c398@intel.com> <35666437-F8AF-4170-A00F-79C34370BEF0@lca.pw> From: Reinette Chatre Message-ID: Date: Tue, 10 Dec 2019 12:15:03 -0800 User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.2.1 MIME-Version: 1.0 In-Reply-To: <35666437-F8AF-4170-A00F-79C34370BEF0@lca.pw> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Qian, On 12/10/2019 11:08 AM, Qian Cai wrote: > > >> On Dec 10, 2019, at 1:44 PM, Reinette Chatre wrote: >> >> >> "A system that supports resource monitoring may have multiple resources >> while not all of these resources are capable of monitoring. Monitoring >> related state is initialized only for resources that are capable of >> monitoring and correspondingly this state should subsequently only be >> removed from these resources that are capable of monitoring. >> >> domain_add_cpu() calls domain_setup_mon_state() only when r->mon_capable >> is true where it will initialize d->mbm_over. However, >> domain_remove_cpu() calls cancel_delayed_work(&d->mbm_over) without >> checking r->mon_capable resulting in an attempt to cancel d->mbm_over on >> all resources, even those that never initialized d->mbm_over because >> they are not capable of monitoring. Hence, it triggers a debugobjects >> warning when offlining CPUs because those timer debugobjects are never >> initialized. >> >> ODEBUG:..." > > Looks better to me. Do you want me to send a v2 for it or you could update it for merging? > Could you please send v2? I am not the one that provides final approval for inclusion nor the one that will take care of merging afterwards. Thank you very much Reinette