Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp3679174ybz; Mon, 4 May 2020 07:43:18 -0700 (PDT) X-Google-Smtp-Source: APiQypK1RzMIXByFUrgGCWHQh5VMEoIK/DeAnAJsi9mmeL7LTzRpqmlVZS4q6sDFBymGiuQ5ak7U X-Received: by 2002:a17:906:131b:: with SMTP id w27mr15187860ejb.230.1588603398039; Mon, 04 May 2020 07:43:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588603398; cv=none; d=google.com; s=arc-20160816; b=XLVxAH40W+JbEv3rdjV/nK3mmtVigXkTGZRnuNwwu10iDColSCpjUp7B8bfNeA42TZ /s7sZOOPEz4JMzGTnEPJWGyj3uQgt2+SpLFFdnrdJAFWZkVpk54zBX33IpQECbRZcXn8 q93XnrZ/wmFkSB6l7+FTZAhKVCkr1Q+fkBATi6PZAXDHKucWDYB3e0zMqwXqU3DA+WZV BhcqQXGeo/78a/MwSKrEM9EVvPjrbZLvtidylG7Jbqrf9FORs3w3lZzHe/hkMV8h7A4F +R8+tSlfshoX9oAXLQ034v2cRATLdvR9esRn1/MswVzlHJf55P/Mq3vuxHvwDt5eLBEm /ucA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=UMNcIlbSFVLU3Wa4ZdiVbcd/h1/cMb1IhxbYjcynbwI=; b=BdTpuhPaEd1KJUSuCnWehGwMxp4SrFF2DohitfR4hldU1mpX2P/W5HXYoJ+WqRdZDF 27P1XbCo3Ft2t55Y+y55ZD+NRtk3fjUITJVHa2f7SQiA22w8aHELnNxNNdR/TUznocqq dxtPtfGWG5EFziFUq25fIFG8Vpt2EZYhVhbkOGjk31awnxIEn30vfTAHeiRLMBxssXmD 4QOIztp+owL0n6Sh7aXpMtZLxVXZmhnNT7hMU4G5UJ5RrWW1HRp/4WGpwjDuE0J2+Ijw PlQY/lqLTd+iEnkEpdtluAM/gqgJvdym3crZ7mrVpuxo756C1ytdGS+hMtU072l1mcku k2+w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="M7/KxBZ5"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id t9si6704749ejr.422.2020.05.04.07.42.54; Mon, 04 May 2020 07:43:18 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="M7/KxBZ5"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728803AbgEDOk1 (ORCPT + 99 others); Mon, 4 May 2020 10:40:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53830 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728219AbgEDOk1 (ORCPT ); Mon, 4 May 2020 10:40:27 -0400 Received: from mail-wm1-x342.google.com (mail-wm1-x342.google.com [IPv6:2a00:1450:4864:20::342]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5F680C061A0E for ; Mon, 4 May 2020 07:40:25 -0700 (PDT) Received: by mail-wm1-x342.google.com with SMTP id y24so9408377wma.4 for ; Mon, 04 May 2020 07:40:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=UMNcIlbSFVLU3Wa4ZdiVbcd/h1/cMb1IhxbYjcynbwI=; b=M7/KxBZ5XzimbtUhN6RRKrjEVlCkEj4NzUOP9Kc444ElO6wJDueL/eN76CHLf8294X 9NADHFTz9JoVaee6qN40eOAiZ+YmOx2inS4dyl7U7AsqqjLglLYTY4eOzD2c+vsAx25h YzEJxwrRCBMLuVQjLTLBYqP3LzCAEWNuYarVKR2h8gHZrHLA1exVW0nsY5ioTZS/oLVa XiP8GwhViqmttqnOAf78uUD0kgTETqerlTBPYSO5mALlho6MP6V4RAiPd3+NRmwUm/Yx ToYFwH7jBF2GEoWMDpckgTAJDlgPtR9Gg2YqgH3cpNLd29+669owb4ijnRwfivk/Kc/G NZlQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=UMNcIlbSFVLU3Wa4ZdiVbcd/h1/cMb1IhxbYjcynbwI=; b=g8w9PihFlzrqiuxb7YXi/bMTFgXcwSeEaK6jhjBigGdRdApijeCLNTFlWX2kCAAHSp oNRkcRX50oplFacgKY0D8uTp7GO6ft0w0RXG+utKqBa+Xet1zAPYBZULedNvWa8JIaUq WnVzBPmr9LG+HfJ3yRhMs8PrGOjE6zIP7Nv1roe1T79lisGA4JIXrUtFScGtarB1A7Rf KQALiJJAEXlFvXp3WIcRaJvHBozwpW98jnSMxIJ+T7Yg3mRGki1AyOjuSoq9BDGXBIry OA8rjcrYAiwiy/vKNcyThx0CrIW6I4PU4ZkrHkOMojhNB6ewnZv50fN5ZAswPs7c7BA6 THSA== X-Gm-Message-State: AGi0PuZkOJEJUIbFp1uBwECe2B40gdJbCeJVGJUxdTz4md0XvmsMYC4+ e1dVI+CWm0nldAjuXWifkOviTw== X-Received: by 2002:a05:600c:2c0f:: with SMTP id q15mr16461206wmg.185.1588603223998; Mon, 04 May 2020 07:40:23 -0700 (PDT) Received: from holly.lan (cpc141214-aztw34-2-0-cust773.18-1.cable.virginm.net. [86.9.19.6]) by smtp.gmail.com with ESMTPSA id u188sm14313631wmg.37.2020.05.04.07.40.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 May 2020 07:40:23 -0700 (PDT) Date: Mon, 4 May 2020 15:40:21 +0100 From: Daniel Thompson To: Douglas Anderson Cc: jason.wessel@windriver.com, gregkh@linuxfoundation.org, agross@kernel.org, kgdb-bugreport@lists.sourceforge.net, catalin.marinas@arm.com, linux-serial@vger.kernel.org, sumit.garg@linaro.org, corbet@lwn.net, mingo@redhat.com, will@kernel.org, hpa@zytor.com, tglx@linutronix.de, frowand.list@gmail.com, bp@alien8.de, bjorn.andersson@linaro.org, jslaby@suse.com, Andrew Morton , Juergen Gross , Mauro Carvalho Chehab , Pawan Gupta , linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v3 08/11] Documentation: kgdboc: Document new kgdboc_earlycon parameter Message-ID: <20200504144021.kdr3zwvpqh2pj3cs@holly.lan> References: <20200428211351.85055-1-dianders@chromium.org> <20200428141218.v3.8.I7d5eb42c6180c831d47aef1af44d0b8be3fac559@changeid> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200428141218.v3.8.I7d5eb42c6180c831d47aef1af44d0b8be3fac559@changeid> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Apr 28, 2020 at 02:13:48PM -0700, Douglas Anderson wrote: > The recent patch ("kgdboc: Add kgdboc_earlycon to support early kgdb > using boot consoles") adds a new kernel command line parameter. > Document it. > > Note that the patch adding the feature does some comparing/contrasting > of "kgdboc_earlycon" vs. the existing "ekgdboc". See that patch for > more details, but briefly "ekgdboc" can be used _instead_ of "kgdboc" > and just makes "kgdboc" do its normal initialization early (only works > if your tty driver is already ready). The new "kgdboc_earlycon" works > in combination with "kgdboc" and is backed by boot consoles. > > Signed-off-by: Douglas Anderson > Reviewed-by: Greg Kroah-Hartman > --- > > Changes in v3: > - Added example in kgdb.rst > - Removed unneeded sentence in kerenel-parameters doc. > - Renamed earlycon_kgdboc to kgdboc_earlycon. > - Suggest people use kgdboc_earlycon instead of ekgdboc. > > Changes in v2: None > > .../admin-guide/kernel-parameters.txt | 20 ++++++++++++++++ > Documentation/dev-tools/kgdb.rst | 24 +++++++++++++++++++ > 2 files changed, 44 insertions(+) > > diff --git a/Documentation/admin-guide/kernel-parameters.txt b/Documentation/admin-guide/kernel-parameters.txt > index 7bc83f3d9bdf..3b5ae06a98aa 100644 > --- a/Documentation/admin-guide/kernel-parameters.txt > +++ b/Documentation/admin-guide/kernel-parameters.txt > @@ -1190,6 +1190,11 @@ > This is designed to be used in conjunction with > the boot argument: earlyprintk=vga > > + This parameter works in place of the kgdboc parameter > + but can only be used if the backing tty is available > + very early in the boot process. For early debugging > + via a serial port see kgdboc_earlycon instead. > + > edd= [EDD] > Format: {"off" | "on" | "skip[mbr]"} > > @@ -2105,6 +2110,21 @@ > kms, kbd format: kms,kbd > kms, kbd and serial format: kms,kbd,[,baud] > > + kgdboc_earlycon= [KGDB,HW] > + If the boot console provides the ability to read > + characters and can work in polling mode, you can use > + this parameter to tell kgdb to use it as a backend > + until the normal console is registered. Intended to > + be used together with the kgdboc parameter which > + specifies the normal console to transition to. > + > + The the name of the early console should be specified s/The the/The/ Other than that: Reviewed-by: Daniel Thompson