From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 0DC32C433F5 for ; Wed, 30 Mar 2022 18:10:19 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1349771AbiC3SMC (ORCPT ); Wed, 30 Mar 2022 14:12:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38534 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344833AbiC3SL5 (ORCPT ); Wed, 30 Mar 2022 14:11:57 -0400 Received: from galois.linutronix.de (Galois.linutronix.de [IPv6:2a0a:51c0:0:12e:550::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BDCD065D4 for ; Wed, 30 Mar 2022 11:10:11 -0700 (PDT) From: Thomas Gleixner DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1648663809; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=0qtJaCzY+T+xK1csO4T4TUHSrom6bLibTb3dD3ufnUw=; b=B6UYWLbkHH/qmS5koAOy0DMfPanC65YcTJfZ8pxQx5iIfu87+x8XiMkl5BnSywa4hNB8VM z3LvSvs3xATRL4pK2ntUmEZ57yiVmneBqkrSfMZ4OGhtUEq1U3Tu9LhZvG/HxBCnMUuR0k MigIoxigmVx505l+TSgdstfSGCayEIAQxcrMAT49FkNwZcnBG93WMr+fTEpKA1tdchuQMN Ba5OWXBl0wmTkC8E0906aYAI7DoNyk0LYzT9SjqheOKQMxUcCiX7cw31BbQPKHwNxFZx48 tNWRpmPPcQMQpFIk8x1ib5agowccC+Pu2RX1ovYCzrHlTdJljz1Ns8JI7pWWBQ== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1648663809; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=0qtJaCzY+T+xK1csO4T4TUHSrom6bLibTb3dD3ufnUw=; b=ZBN8dEfbGh4d9nsLWhBoBCC2yjE0XLRyH9szIO4/ArIX8fXgxAIWaTmDvW/7TCes2H3xr/ 6TOoCBo5OwI/N4DQ== To: Eric Dumazet Cc: Eric Dumazet , "Paul E . McKenney" , linux-kernel , "Rafael J . Wysocki" , Ingo Molnar , Borislav Petkov , "H. Peter Anvin" , the arch/x86 maintainers , Peter Zijlstra Subject: Re: [PATCH] x86/cpu: use smp_call_function_many() in arch_freq_prepare_all() In-Reply-To: References: <20220311011715.2440601-1-eric.dumazet@gmail.com> <87ee2jo2je.ffs@tglx> <87bkxnnzkj.ffs@tglx> Date: Wed, 30 Mar 2022 20:10:08 +0200 Message-ID: <878rsrnwfz.ffs@tglx> MIME-Version: 1.0 Content-Type: text/plain Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Mar 30 2022 at 10:05, Eric Dumazet wrote: > On Wed, Mar 30, 2022 at 10:02 AM Thomas Gleixner wrote: >> On Wed, Mar 30 2022 at 09:51, Eric Dumazet wrote: >> > On Wed, Mar 30, 2022 at 8:58 AM Thomas Gleixner wrote: >> >> which I hate with a passion because that allows *unpriviledged* user >> >> space to inject systemwide IPIs every 10ms just to read these counters >> >> which are providing not more than some estimate and are of no value for >> >> the only sane use case of /proc/cpuinfo, i.e. #1 above. >> > >> > You do realize that before my patch, this is already happening ? >> > >> > My "optimization" simply replace an open loop of individual IPI with >> > use of the broadcast IPI capability. >> > >> > Are you saying we should remove IPI broadcast and use loops >> > of IPI, one cpu at a time ? >> >> I rather have no IPIs at all... > > Can you send an actual patch, with a changelog then ? I can polish up the patch I sent, split it up and add changelogs. Sure. Thanks, tglx