Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp1056201iob; Fri, 13 May 2022 21:23:06 -0700 (PDT) X-Google-Smtp-Source: ABdhPJykeJAq1fN/BWIf+KLBCQoJE6U1JFSr8RYkXb2Rjf/1BdyVCol6nlY8S15ORYkuUouDgdY3 X-Received: by 2002:a5d:564f:0:b0:20c:412e:1e4e with SMTP id j15-20020a5d564f000000b0020c412e1e4emr6095276wrw.334.1652502186115; Fri, 13 May 2022 21:23:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652502186; cv=none; d=google.com; s=arc-20160816; b=vxJzVvPGQoHf8KkJM9aOQgQsminLD4nxWw55FCh+ktZvs1OnIEi+SxfiZqZzi51ez1 0JLxQ3pgUZs8QntgVAsGdLGgR2pQYbrd07qv41Ri5T74TdOlMwEtvbt0GSGZXLNQnUAR 7RTscwLf+pqo2Km7GHa2O1rtSttzzeW9TTIlTpZQUNQpW8gDihBuxowD1T0IwqITL12W b1kibOgW03eCp5snrd1333TR7NmiJAXOzhc0G4FuGJ47Wqt7ONXz7h+MbuMUDwM2E3dn 2NAKHwkQAe3hI5ssXnmyAoZH9Ve2hN4pU6VxyX8OeJ8jeeOAIelwlPLu3Lb4iGV7hk7R V1DQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=SP8KU1Zyk9jNa/xKyuzqu1SnKet+21cERUU7KBm9m4c=; b=UTCiL1m4HS6fejfsR4NY5iCVBUA9AWtoCOTik0wiAhc5JBlM3OgGiwESBNwBopmKwf yYr1PPkTC5ngimRQD7Drv/x8piA/MqEFxg9hy5LDCDY/uz6Kpk/dtl8j1+mFb+bC1lh6 3S19NjT/MbG9XPCqljoenczuu+0P9hmovmKgTD/PLWRlf7Dv8AI/ihloubPooNkXHQRv oi7gQcYD0G4EGBxb79by8u8321e73JUu/3BGKwOPLa0t9k90tbFFL2b8OLKR+HXasBaN P9DIK7kZynIsIwfA2RqmExCqO3oisGJoJfLl8Ym2Wf0FYxJLykawOgLYzNICcWcImxOB hoMA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=Mah62wU8; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 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 lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id e6-20020a056000178600b0020c4018c252si4816964wrg.520.2022.05.13.21.23.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 May 2022 21:23:06 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=Mah62wU8; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 2427C4A0DD5; Fri, 13 May 2022 17:53:19 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232628AbiEMXOh (ORCPT + 99 others); Fri, 13 May 2022 19:14:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51558 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230098AbiEMXOe (ORCPT ); Fri, 13 May 2022 19:14:34 -0400 Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0A093320CB5 for ; Fri, 13 May 2022 16:14:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1652483661; x=1684019661; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=+wjfqOqIYe6TZTMHFU68r4+WktU+l0Y6oPd5aHItbaM=; b=Mah62wU8ASEQE1z70AZpSnzFUBLvtPJuqVJ3Mt1gQrhJ0/84a7PfWviq Z/PSEKxIFaRpTOhB0xC5aLD03avu4vapzKtH79L4cD1wh/t3ZnrSgQ0rP v45JYY77S8659Q+VqAMwPf/+bAs+/6Li/f2cAYa5GfWX5OnILlnGJffFh 00ZcySfLIbavc65EiwxIlsF99jcxopppAk5zo4b8gO1ax9AdUwIMgqARZ 7f6TSfcLqohQjZgg/tBnxCVy7jorN7GYBiW6r+2CamyYfi8PXEc2/3fyO its2hLyPXkNvRBXEt0whNg4jnnjGctQJbR+fQ/hcNlOeLmuJBAZxITPTe A==; X-IronPort-AV: E=McAfee;i="6400,9594,10346"; a="356855218" X-IronPort-AV: E=Sophos;i="5.91,223,1647327600"; d="scan'208";a="356855218" Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 13 May 2022 16:14:19 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.91,223,1647327600"; d="scan'208";a="815594245" Received: from ranerica-svr.sc.intel.com ([172.25.110.23]) by fmsmga006.fm.intel.com with ESMTP; 13 May 2022 16:14:19 -0700 Date: Fri, 13 May 2022 16:17:54 -0700 From: Ricardo Neri To: Nicholas Piggin Cc: Thomas Gleixner , x86@kernel.org, Andi Kleen , Andrew Morton , Lu Baolu , David Woodhouse , Stephane Eranian , iommu@lists.linux-foundation.org, Joerg Roedel , linux-kernel@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, "Ravi V. Shankar" , Ricardo Neri , Suravee Suthikulpanit , Tony Luck Subject: Re: [PATCH v6 24/29] watchdog/hardlockup: Use parse_option_str() to handle "nmi_watchdog" Message-ID: <20220513231754.GB9074@ranerica-svr.sc.intel.com> References: <20220506000008.30892-1-ricardo.neri-calderon@linux.intel.com> <20220506000008.30892-25-ricardo.neri-calderon@linux.intel.com> <1652179333.fnu2fjiffn.astroid@bobo.none> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1652179333.fnu2fjiffn.astroid@bobo.none> User-Agent: Mutt/1.9.4 (2018-02-28) X-Spam-Status: No, score=-2.5 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=unavailable 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 Tue, May 10, 2022 at 08:46:41PM +1000, Nicholas Piggin wrote: > Excerpts from Ricardo Neri's message of May 6, 2022 10:00 am: > > Prepare hardlockup_panic_setup() to handle a comma-separated list of > > options. Thus, it can continue parsing its own command-line options while > > ignoring parameters that are relevant only to specific implementations of > > the hardlockup detector. Such implementations may use an early_param to > > parse their own options. > > It can't really handle comma separated list though, until the next > patch. nmi_watchdog=panic,0 does not make sense, so you lost error > handling of that. Yes that is true. All possible combinations need to be checked. > > And is it kosher to double handle options like this? I'm sure it > happens but it's ugly. > > Would you consider just add a new option for x86 and avoid changing > this? Less code and patches. Sure, I can not modify this code and add a x86-specific command-line option. Thanks and BR, Ricardo