Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3752207imu; Tue, 18 Dec 2018 03:40:45 -0800 (PST) X-Google-Smtp-Source: AFSGD/X3BO1ls0S6yWfTPKyDyyMWKogWZBXBicF9G9CIcIsWandJhe8kmeOu8OPWi4Cwgnq3Gy7z X-Received: by 2002:a63:dd55:: with SMTP id g21mr15241573pgj.86.1545133245467; Tue, 18 Dec 2018 03:40:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1545133245; cv=none; d=google.com; s=arc-20160816; b=MQ3Zm354flZYtkbNtJikOZFc/j4kcinmNe/IGB+P5IsqBv7SSUuHZ7gxOocLTKFTZ6 P5aVnpHOw65DoqggLcJtgv+sxh9CLmfwITlqKOaB56dU3xaUmLsAlQnISFRm/Jk/F/XO LsQa6PiqV5NK5OOvTwB5tUbsZLGmJjL/vNdANjIOH5hP/jBEsg4lEIpHAzuk2HJqVQvm DYPAPZtWlA18XI+902nRt4iX+H3wxfyGXD3+4tcGhllzZqTPXK/JPMijpR18TckadgOz w1k5HUcDFkiNdR4L7mHvca6VvYlzgHWv/K9tjs8Ao8JG7C1xOR1icGHpFWo2jb9NToKR mACw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=TT+syh42ziMvnj+IZND3gsZ545VH6pAeFcJkvnqG/LM=; b=jfNvYZuhTCi8s7DqeUZTDGR1JEg0M7GOaIZXU671VWeTKdNYEJ4zKH2XmYG9kAjPkx zilyEqGI18cMR+1mEIsEukd2CU27kpYPQWIqHYXSqhvSGksNkb3wgqGzee1BGDlxEC/c VDu/I0LWPlE64eHbAAelMmE8ObwEZ3VIRpVjPwd0ZHkQKKKjUmA2SPsy96Z60LX6QxCv 8hiVLx/6EtszY10EsIkASMaWH6jHii5Xoz16pW6Aap94PPQXw40Vf1vAkZJurgJf6Ysi KhaeqJA+xJPwzoVOewOMOZQHrBBzWr3uhGg3HycSiJzMLSg6be01TEfpzunANbVSLA/6 zQ0A== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=merlin.20170209 header.b=hFkAIwfy; 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 10si13125099pgk.101.2018.12.18.03.40.29; Tue, 18 Dec 2018 03:40:45 -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=fail header.i=@infradead.org header.s=merlin.20170209 header.b=hFkAIwfy; 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 S1726706AbeLRLiZ (ORCPT + 99 others); Tue, 18 Dec 2018 06:38:25 -0500 Received: from merlin.infradead.org ([205.233.59.134]:37072 "EHLO merlin.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726341AbeLRLiY (ORCPT ); Tue, 18 Dec 2018 06:38:24 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=merlin.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=TT+syh42ziMvnj+IZND3gsZ545VH6pAeFcJkvnqG/LM=; b=hFkAIwfySmqYqQxy745VXLJtc 2AAHu2ia1kLMmEwczlkonIeJa5GmTCSOFVxeXldsEHZbIBcAcBKq7pPh6yh7rO4MzAxx7MqrQ1sza C5Zdh0FThxFP0DN+k4OxF9yZOStnKCRoDDT/uttcFvD/Uk7CT6YY4OVcgz5qRcYaXKREceWkr0Bsj fMORqGMBxN1lcxZ4/6LFH3cWOxI1LPVYbXKUwsyQkkkb96F2EIuAlZI+OdC2qwZzJ+fkQLq1Gyks3 5iHgfGlpArNeH8bbi91jE1BGLPFzhgQnlgrFh67fhmM5fqME2VRk/TbD3mVJ8PCSf12M+yRxclOdJ Zs1Px8XTQ==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=hirez.programming.kicks-ass.net) by merlin.infradead.org with esmtpsa (Exim 4.90_1 #2 (Red Hat Linux)) id 1gZDhb-0007l0-Sr; Tue, 18 Dec 2018 11:38:20 +0000 Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id B413820276AC4; Tue, 18 Dec 2018 12:38:18 +0100 (CET) Date: Tue, 18 Dec 2018 12:38:18 +0100 From: Peter Zijlstra To: Thomas Gleixner Cc: zhe.he@windriver.com, acme@kernel.org, ak@linux.intel.com, alexander.shishkin@linux.intel.com, bp@alien8.de, hpa@zytor.com, jolsa@kernel.org, jolsa@redhat.com, kan.liang@linux.intel.com, mingo@redhat.com, namhyung@kernel.org, x86@kernel.org, linux-kernel@vger.kernel.org, linux-rt-users@vger.kernel.org Subject: Re: [PATCH] perf/x86/intel: Avoid unnecessary reallocations of memory allocated in cpu hotplug prepare state Message-ID: <20181218113818.GH15430@hirez.programming.kicks-ass.net> References: <1545129033-21757-1-git-send-email-zhe.he@windriver.com> <20181218110209.GD15430@hirez.programming.kicks-ass.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Dec 18, 2018 at 12:25:23PM +0100, Thomas Gleixner wrote: > On Tue, 18 Dec 2018, Peter Zijlstra wrote: > > On Tue, Dec 18, 2018 at 06:30:33PM +0800, zhe.he@windriver.com wrote: > > > Besides, in preempt-rt full mode, the freeing can happen in atomic context and > > > thus cause the following BUG. > > > > Hurm, I though we fixed all those long ago.. > > Either we missed that one or it came back somehow. > > > And no, the patch is horrible; that's what we have things like > > x86_pmu::cpu_dead() for. > > Like the below? Look familiar that ;-)