Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp3387969rwr; Sun, 7 May 2023 10:31:24 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6/kuBAG4zdSC+G0SPCchYwO3gTcui7gVW8si9pI+aMAsVXQF0kPdhmkEYAQwMnMSzJ47x5 X-Received: by 2002:a05:6a20:160b:b0:db:f682:65ed with SMTP id l11-20020a056a20160b00b000dbf68265edmr10631890pzj.61.1683480683663; Sun, 07 May 2023 10:31:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683480683; cv=none; d=google.com; s=arc-20160816; b=jgNsduzsrClk8/TC00IFUdSe4eySdQadD7QAmD6fUALV8PNWMkkviiYS7b0G4X3Bnj xbM/ZWO/a6mjPp4Zkyu39CJz0DdY8qj79HlN3GHLzgWtjMmmWgYIjGD0eSCRd3va8nDJ 6tIhrkVj1qpT0lRslxEvPXoZgn7f7ORX87AYJCxp6LxwDlihV9XZPWfaT27bXNqhb50W KvYqW6iLCo1t9+DSKEaOJxw+9zZs+VzQYKRM8wVU6/DqvQZSXqdjeD5tJ5xyEtUGH9sY l/yzb0Pm2ef5oFMcHO13fLFdrG+Rw+3oCONZoLieaDIOtKAX+8SrN1lKGjAaD0lXQ4fv EsCw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=VZjhU8K9yNscHwfFIedpFnb9T5NjtGy9r4a8tOJPjGs=; b=psxu9MdAE29JDGMtdFj2DKruiRmbtwnti+w9nGYLSdiWv4tBkIj6Fn23DKjCUjzVd+ 7ncnA75JsTdlIk4KJgHkyyEqLZve1AO4qH+Hdko0fUHsXBMm9Xw8B/P6qv4VeEEXGpdB lv1ZIP1kPjcMETvFT00zM53Gq62OBmAjBxp1Royhm9WSz0Lrh9MVln8HLkhVjWB/6XGp UgfaQxv+C51APNjuy6v5g0t6jlxRmDtt5gfKdFblwe6vx/hVpgQ9v1IoLdtF8gIlcFZw S+3CjzHWOirzl5Z7vDtT8LzNAlcHBE4zLM321LaF/IGVIejq3kMeyNl2GxJLeFg8Sac1 FhQQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=UwySByN+; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id x27-20020a63b21b000000b0052c4fdb2c7esi6810888pge.466.2023.05.07.10.31.08; Sun, 07 May 2023 10:31:23 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=UwySByN+; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231583AbjEGRMp (ORCPT + 99 others); Sun, 7 May 2023 13:12:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54722 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229948AbjEGRMm (ORCPT ); Sun, 7 May 2023 13:12:42 -0400 Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 16455100D9; Sun, 7 May 2023 10:12:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1683479559; x=1715015559; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=xadsDlIqSLYDH8jAUQJ+rU/bh9AyzgsU04VnNDkPNZk=; b=UwySByN+YkfSAk6pK1Oydz5lI4I53iHIoPty4SiLewuSURi7QhMFP7wK XlMjkw+mt7iIFUjnxMwqa48Y5uDSIq88PgE9Vq79VtBuqOEwN5emMtWUE LBYycJ5thV3HhRleCYnYlXemCbyK29p4vtDPBdAzvXahdS+Z+CS1yyIz4 u+Ts4o4fO7fUA3AE9oewIkQohzyBmTmBZsz8G5cSs+uFXoqJ6Ok87Gmq1 cmcGE6Mw8VdCiZF3kf6zTJiHo7gF6Rjjv3yweMe+QLT5WeO3uMYC9BDRT D3A5MB7UwnXYQgYzwTuu+V2tLi1WmVKEc18LwNvZJQZVUDarlbCrQrZVv Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10703"; a="333933231" X-IronPort-AV: E=Sophos;i="5.99,257,1677571200"; d="scan'208";a="333933231" Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 07 May 2023 10:12:38 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10703"; a="842466547" X-IronPort-AV: E=Sophos;i="5.99,257,1677571200"; d="scan'208";a="842466547" Received: from tassilo.jf.intel.com (HELO tassilo) ([10.54.38.190]) by fmsmga001-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 07 May 2023 10:12:37 -0700 Date: Sun, 7 May 2023 10:12:29 -0700 From: Andi Kleen To: Doug Anderson Cc: Ian Rogers , ravi.v.shankar@intel.com, ricardo.neri@intel.com, Stephane Eranian , Petr Mladek , Andrew Morton , Lecopzer Chen , Daniel Thompson , Stephen Boyd , Chen-Yu Tsai , linux-arm-kernel@lists.infradead.org, kgdb-bugreport@lists.sourceforge.net, Marc Zyngier , linux-perf-users@vger.kernel.org, Mark Rutland , Masayoshi Mizuma , Will Deacon , ito-yuichi@fujitsu.com, Sumit Garg , Catalin Marinas , Colin Cross , Matthias Kaehlcke , Guenter Roeck , Tzung-Bi Shih , Alexander Potapenko , AngeloGioacchino Del Regno , Dan Williams , Geert Uytterhoeven , Ingo Molnar , John Ogness , Josh Poimboeuf , Juergen Gross , Kees Cook , Laurent Dufour , Liam Howlett , Marco Elver , Matthias Brugger , Michael Ellerman , Miguel Ojeda , Nathan Chancellor , Nick Desaulniers , "Paul E. McKenney" , Peter Zijlstra , Randy Dunlap , Rasmus Villemoes , Sami Tolvanen , Stefano Stabellini , Vlastimil Babka , Zhaoyang Huang , Zhen Lei , linux-kernel@vger.kernel.org, linux-mediatek@lists.infradead.org Subject: Re: [PATCH] hardlockup: detect hard lockups using secondary (buddy) cpus Message-ID: References: <20230421155255.1.I6bf789d21d0c3d75d382e7e51a804a7a51315f2c@changeid> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,SPF_HELO_NONE,SPF_NONE, T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Apr 24, 2023 at 08:23:59AM -0700, Doug Anderson wrote: > HPET system seems to have a single CPU in charge of processing the > main NMI and then that single CPU is in charge of checking all the > others. If that single CPU goes out to lunch then the system couldn't > detect hard lockups. > > In any case, I'm happy to let others debate about the HPET system. For > now, I'll take my action items to be: We don't really seem to make any progress on the HPET series, so even if it is better in some way a series that is never merged is always worse than one that is. My experience is that cases where everything locks up are very rare. I suspect as long as we cover the garden variety single CPU lockup case well it is likely very diminishing returns to handle more complex cases. So whatever gets the job done is fine. Yes freeing the Perfmon resources is big advantage of either. -Andi