Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp5768330ybl; Tue, 10 Dec 2019 11:10:18 -0800 (PST) X-Google-Smtp-Source: APXvYqxBlbQYD6DNBSdrG8kTibaOU/5fTJpqmUpKgr8WBGXobWnm8VqUWYrdz1dXO1KLO25wl/rZ X-Received: by 2002:a9d:dc1:: with SMTP id 59mr19276821ots.250.1576005018016; Tue, 10 Dec 2019 11:10:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1576005018; cv=none; d=google.com; s=arc-20160816; b=RW0xeCVhyO8vX0niiFU4OjO+pGeyLhOhPELyKnNoc7V6elHEVUmCgsugPE5qbVzPBq mPjO4FF7xrxdEICo5NiqtHee0l2xe7Je4HsbU/LYlEVg6EDYvd+Dn5ZpOGJ9ydv7hTQa t3pgaxPyG9Zdc3htxxyXaxWx6Kmq8DakPTaAhSr0cWdPM8E6UGlp3BJydNksJerO2eGm gu+OUaEGGpEVJy1kg4ErBIbyA7ZdmN0nIHqfmM1iid0OFdiZBUUJAmkhF47DXgUic80d sFzs5ahBJnMOhWkCHDJbIKgUHly1ooyIGrO63s2+c2s7bwhdO3jhSg36wlS2aoCC25Vo LDCA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:to:in-reply-to:cc:references:message-id :date:subject:mime-version:from:content-transfer-encoding :dkim-signature; bh=xHZoF8qtGvYH+o9PkkLoHC+ywTgARXqFC6m+2XnjOKg=; b=fpzRt78yIeB5Mg1tsPmjmDax4ks9myIuGaBFzONZjPRF5/cChRY1gUVpwYWM6Tj0UP OGs46fz/PiUf074+PUpYNVub/9uuxVMPUaBqIvZxTcAe2bxqAOABwq5XR45SE4M0I1l/ 9SIHdHEBcXLu4FnGHbBEGeqbUZSYeZWDDbu8SS+udMtnn98v3/I1/3oLuYAxByx9+NDJ MGDv9dVmfdOBVPnaMLXhhZdcNTb/xz43XPbzndJHWU/HkevgBfwSH7JNIB6jxI9qlsQk 4LeN8/h6sifoLGCdn8K6kLrvhj4P/WH1R6ze7CuKgDHIO+Jvh4b8POqzD1urWOmc01E6 cH6g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lca.pw header.s=google header.b=bI25uhsn; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m21si1113577oic.96.2019.12.10.11.10.04; Tue, 10 Dec 2019 11:10:18 -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; dkim=pass header.i=@lca.pw header.s=google header.b=bI25uhsn; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727700AbfLJTIl (ORCPT + 99 others); Tue, 10 Dec 2019 14:08:41 -0500 Received: from mail-qk1-f195.google.com ([209.85.222.195]:37014 "EHLO mail-qk1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727652AbfLJTIl (ORCPT ); Tue, 10 Dec 2019 14:08:41 -0500 Received: by mail-qk1-f195.google.com with SMTP id m188so17417308qkc.4 for ; Tue, 10 Dec 2019 11:08:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=lca.pw; s=google; h=content-transfer-encoding:from:mime-version:subject:date:message-id :references:cc:in-reply-to:to; bh=xHZoF8qtGvYH+o9PkkLoHC+ywTgARXqFC6m+2XnjOKg=; b=bI25uhsnJy0K/gOfHwnTaHl8J4s12l+pPKCjzEe68SKrdCnubBni7GaYFAHu7Tzh8N FWhxxyYRP1ZvTZhQIQ80ogf9zZ/A3HjTQiOc+Ozwch3VSGSKrb8Qyh0tq0nvzYDBGVPq 1CxQDWFv9n9gjRKdnj4iVQbVhfnZgxKdsH4q00dwtEuO+p5YH4nooNyDmjaThaJdNT7N o6bwzkOi5Pd/MPXAEgAFNvAA8Qg2pQVgKbU3xKmqnmSOd8EhTPqXENHxVH/UfoMIpTY5 BC2f1fLW6F8Nt0pz4BoPhIAcXm96bRIq+VJQDFLkTMENayAqWijvKnpxVREuRu3kMmti EgsQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:content-transfer-encoding:from:mime-version :subject:date:message-id:references:cc:in-reply-to:to; bh=xHZoF8qtGvYH+o9PkkLoHC+ywTgARXqFC6m+2XnjOKg=; b=aF1/X2X7dzRuilVOlfiVJjNq5X2JY+t87RopoiQQdJKV5pHZh9Q9tuu+vOZAHsn0GX DPTY5VfeLR8M05zxB7b6M3ou/sDTby98GPNeyCvBHBf9+gqRcT7Mro+jTz9zxsIFjqge 8Am4YC2Wfw0QpZT7Sh3+S+ygnEHtcSh0YE70zORmtKAI5/hustnd9c1dmibv6joZS7FH sIUaBE8C6BGtB0yGYAvn/GRAVEDykvhkIvQ07riojdo8lDI2/Y/+1Rt/5lyOx5fzbItT ZQ/V9LjOYy+H905N5SXDoyClsGcbzU5kWCLg+HcXTpxaDPFftYQ7fgcikueDsBI/MiSu FXdw== X-Gm-Message-State: APjAAAUdXif5URGGfhQEnHHh8bx0dcYKUzH5eZbiRtthpkvhKnQsVZBE 0e91kjr6/FXWFwCAY4t1vC1hNw== X-Received: by 2002:a37:ac16:: with SMTP id e22mr19638217qkm.186.1576004920008; Tue, 10 Dec 2019 11:08:40 -0800 (PST) Received: from [192.168.1.183] (pool-71-184-117-43.bstnma.fios.verizon.net. [71.184.117.43]) by smtp.gmail.com with ESMTPSA id v2sm1212684qkj.29.2019.12.10.11.08.39 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 10 Dec 2019 11:08:39 -0800 (PST) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable From: Qian Cai Mime-Version: 1.0 (1.0) Subject: Re: [PATCH] x86/resctrl: fix an imbalance in domain_remove_cpu Date: Tue, 10 Dec 2019 14:08:38 -0500 Message-Id: <35666437-F8AF-4170-A00F-79C34370BEF0@lca.pw> References: <37341135-a0db-6d1c-236f-e32461b4c398@intel.com> 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 In-Reply-To: <37341135-a0db-6d1c-236f-e32461b4c398@intel.com> To: Reinette Chatre X-Mailer: iPhone Mail (17B111) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > On Dec 10, 2019, at 1:44 PM, Reinette Chatre w= rote: >=20 >=20 > "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. >=20 > 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. >=20 > ODEBUG:..." Looks better to me. Do you want me to send a v2 for it or you could update i= t for merging?=