Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp1830631ybc; Wed, 13 Nov 2019 05:06:40 -0800 (PST) X-Google-Smtp-Source: APXvYqwgZIO+PFfuRO9nHjvOlIeZ9rltMlO1XjPV9iETzpOlX+GbF+e8edC4Vf6NJGrowEm1IEIZ X-Received: by 2002:a05:6402:1397:: with SMTP id b23mr3447343edv.196.1573650399859; Wed, 13 Nov 2019 05:06:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573650399; cv=none; d=google.com; s=arc-20160816; b=PtuJrzcrtCInjj83xM/S9f/9Vd+JXkU1Z46IPo+tM6xp7D+jc1EBQPkW1LJm5yvAWF SiZz1CJxx9Nzp664FQD6ZU3gU/UvJb8haL7JQEfnFW1AbTN9Z7g1XQm0fu8Bu8IEi5HY 0JIXXwmrhTvzoqymfnbhPL5/iIPukeOL8rIAIrEJ5KC0ay3E7X2CEpEsFyG+CWrdmbkg i+TtdmmH0oH1eyP4e4utEMmwdTgddEL/0iAFP6HgEOjsNR7teKzuJNh0DjFixWIPEQUA bNmddMJi/G/bxykeALwxs86Yxor72Rl72h3Gi23CSRDD/cIKcAS/FpwECoIMLv1D58mC Nqgg== 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=JoReje6KRUemP2kQ3DAO1+vDE2myh+Sp6BeIhiJgSE4=; b=xApkfBc6q0mj9YUS01ZGb9D/SiQHKrjQ1sf/47kiIHe2hgaKkN3ze6sPOOpyCg5tCZ w8agLFYk3t+yjdnugbyr9pURvmsLf45wdFbWbMfxUVtFVlmz+X/M2ViWM0/DCRbE5E4e cOZd+m7cl5MKiX4psLLvwm5cP9PVHT564vqBiwjI6BZxKBCVbyM7Cjf84jnrZrL+BURJ Qvt8D/lLJLwAZCulE9167J/42O+EuOJbxkI6SvI6Z2J8ZPcbr3VhsAhaCYKgCGdpUUWS RNRtEbFFNzO7IgrXhIBXdjNn0iIY/8n22sVeQLzPSE4E3rtpHqUFaOnBDCwcMCfmESyg vGag== 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 me8si1041322ejb.382.2019.11.13.05.06.11; Wed, 13 Nov 2019 05:06:39 -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 S1727186AbfKMNET (ORCPT + 99 others); Wed, 13 Nov 2019 08:04:19 -0500 Received: from mga01.intel.com ([192.55.52.88]:30245 "EHLO mga01.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726250AbfKMNET (ORCPT ); Wed, 13 Nov 2019 08:04:19 -0500 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga003.jf.intel.com ([10.7.209.27]) by fmsmga101.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 13 Nov 2019 05:04:18 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.68,300,1569308400"; d="scan'208";a="207445457" Received: from linux.intel.com ([10.54.29.200]) by orsmga003.jf.intel.com with ESMTP; 13 Nov 2019 05:04:16 -0800 Received: from [10.251.15.212] (kliang2-mobl.ccr.corp.intel.com [10.251.15.212]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by linux.intel.com (Postfix) with ESMTPS id 3DE365802C9; Wed, 13 Nov 2019 05:04:15 -0800 (PST) Subject: Re: [PATCH 4.19 097/125] perf/x86/uncore: Fix event group support To: Pavel Machek , Greg Kroah-Hartman Cc: linux-kernel@vger.kernel.org, stable@vger.kernel.org, "Peter Zijlstra (Intel)" , Alexander Shishkin , Arnaldo Carvalho de Melo , Jiri Olsa , Linus Torvalds , Mark Rutland , Namhyung Kim , Stephane Eranian , Thomas Gleixner , Vince Weaver , linux-drivers-review@eclists.intel.com, linux-perf@eclists.intel.com, Ingo Molnar , Sasha Levin References: <20191111181438.945353076@linuxfoundation.org> <20191111181452.768177907@linuxfoundation.org> <20191113103531.GB32553@amd> From: "Liang, Kan" Message-ID: <296fc0ff-0d27-872b-0374-066019127813@linux.intel.com> Date: Wed, 13 Nov 2019 08:04:13 -0500 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.9.1 MIME-Version: 1.0 In-Reply-To: <20191113103531.GB32553@amd> Content-Type: text/plain; charset=windows-1252; format=flowed 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 On 11/13/2019 5:35 AM, Pavel Machek wrote: > Hi! > >> return ret; >> } >> >> +static void uncore_pmu_enable(struct pmu *pmu) >> +{ >> + struct intel_uncore_pmu *uncore_pmu; >> + struct intel_uncore_box *box; >> + >> + uncore_pmu = container_of(pmu, struct intel_uncore_pmu, pmu); >> + if (!uncore_pmu) >> + return; > > AFAICT this test can never trigger. > >> +static void uncore_pmu_disable(struct pmu *pmu) >> +{ >> + struct intel_uncore_pmu *uncore_pmu; >> + struct intel_uncore_box *box; >> + >> + uncore_pmu = container_of(pmu, struct intel_uncore_pmu, pmu); >> + if (!uncore_pmu) >> + return; > > And neither can this one. I will submit a patch to fix it. Thanks, Kan