From patchwork Mon Feb 13 18:56:58 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frank Rowand X-Patchwork-Id: 56473 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp2515576wrn; Mon, 13 Feb 2023 10:58:53 -0800 (PST) X-Google-Smtp-Source: AK7set9WCa3SpSfvfDvmbfAFy+7QTi9qFpQxYOedM2TRsW/gbJUgWN8pygUloDrEejL6O9iw4Yyk X-Received: by 2002:a17:906:a0d1:b0:883:be32:cd33 with SMTP id bh17-20020a170906a0d100b00883be32cd33mr31140653ejb.35.1676314733235; Mon, 13 Feb 2023 10:58:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1676314733; cv=none; d=google.com; s=arc-20160816; b=S8X68zmk4sUyst5HnpMQmzyXh/CupS8x5NS38/17IlDKhq2AXUaM1bxNiMpEvH8ErB kHWx5KJdnEoUtFkOFEENWES3LGkkmIpjg0RnawewY1Lh0tv8PO6bYDH/a5hKxGIZI7R7 hVenIfbATMkgx4meae0O+94gonjVvctzsKOsRwgp26jWtGf7nQ8T6WLSYcd1XcWFKZHn u8KuP7bbc03gf7T8Q90HZyBBJxJgbmdtjRCyGcddCsILCW9/Ju/F9fNmA/7CuLJ6Vlyh zn1q5GiNarOKGBN0Iup0WhYW5BTqmXzIimscS/B1wXZABJRY2qBiSldVsKKRYh1ph6D1 LnHA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=kHyn+Iq5kDFceNl3I1U0GgQ46vN33MHSRz9J5NGp5vU=; b=Sr0wzCwIFo1bvOA8XZxm2KBSvtuFUtYE+d4V82wm4etFvi6bf5hf5XKtLlzJhFjajF Vu9xjWN1A8u4rhUNOJG1653tWfnnLXJ4eEX/bioURnDoF7iBYfjIlQJMHiUbwJNh93+i 3LrtrnY0ECF60KyFj83bUbHsYK9/7DT5CQuI9r8mvHhkqviTp21J8VWkWDjDn1JI7qAR 8mr4RfZQ/RAl5NRyZCTyEL1jB//RCOXEoy9ALm2myVQvv/q8AklSLON6cOjN6dzSsipp XSdOkxpSxPaBqIKH+BA7LNLJ8zAnMjunqj9CWYWPuk95Qa+aOWwn7PdBudKWOq3wxzIL wVXg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=U7JpZQ1g; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id wg15-20020a1709078f0f00b008a9a111ce8dsi13432688ejc.4.2023.02.13.10.58.30; Mon, 13 Feb 2023 10:58:53 -0800 (PST) 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=@gmail.com header.s=20210112 header.b=U7JpZQ1g; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230361AbjBMS57 (ORCPT + 99 others); Mon, 13 Feb 2023 13:57:59 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55784 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230160AbjBMS5r (ORCPT ); Mon, 13 Feb 2023 13:57:47 -0500 Received: from mail-oa1-x2b.google.com (mail-oa1-x2b.google.com [IPv6:2001:4860:4864:20::2b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6D347126E5; Mon, 13 Feb 2023 10:57:46 -0800 (PST) Received: by mail-oa1-x2b.google.com with SMTP id 586e51a60fabf-16a7f5b6882so16261768fac.10; Mon, 13 Feb 2023 10:57:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=kHyn+Iq5kDFceNl3I1U0GgQ46vN33MHSRz9J5NGp5vU=; b=U7JpZQ1g9CQpoTz6vURu+kEOjs3644ilNrBedisqBKcqVEJHUBlupRfJwgqLsatmsW nZHnilMgjXEPezYlYBRISCkAKZGV+fgpAIUhvbUZi5HT8luC7CAgOVKsFgGrnIF6c0cI cxtvgvmk2o+ln4w1Uibo3ZNNoLaTgt+emFpNFbhSZFeDsDX643H6GaXxD0icFkiZozpT dlPqzwIHj46a3GTF/SxKI+xJeTQsttNdKdswDP2Ld7K+FMPbs76kTRln7sIrob3ptVNc NsEXnOu9SXViqe+DPs2TdQq88esSxvTWT+WDv9jHUohu+p2n6DPxGQJ+JWfmV4AtOy3w ajGw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=kHyn+Iq5kDFceNl3I1U0GgQ46vN33MHSRz9J5NGp5vU=; b=3cAdeUm0TkH4fEzm0wuLTl1Gy/GRN//C7I5q0RxJAitSNCdFQyxee62JUIFXFbd8pH G75qmT3mG5x4NUm3PKH2lerBZVSx/O4V8XvhRdb3BK78JEilQFZ1DZc5kkId8BRiuaq1 i20V6XHz38+UDqQRbRNclm3QdYHoh6gJjh3TNaDzvqmgbdUJXSO6ojaQPVoOMfvTTE1j ad76h5rGF+LNoTDKw2PfgldzV6WMwOyFSVBpM6w5SHwYkcIXLjrYRXfBAfVPAtJPXPsB hvfoW4Xhnz0xkGdYGdX0ucIwlP0UaxYn0WaDVn9kHOp8xa+EEQRPS5BptsnFVzIs8SYW Znhg== X-Gm-Message-State: AO0yUKU+5aN5wmH38b2gxrPXg2yq2WtJ2nAU2lgZ0av7VTs9oZxJXKp3 dGEpuBHE5yEmkRv+dxOLQmE= X-Received: by 2002:a05:6870:470e:b0:16a:a965:87e0 with SMTP id b14-20020a056870470e00b0016aa96587e0mr10937388oaq.54.1676314665730; Mon, 13 Feb 2023 10:57:45 -0800 (PST) Received: from xps8900.attlocal.net ([2600:1700:2442:6db0:5829:dabf:a50e:e9f2]) by smtp.gmail.com with ESMTPSA id ef15-20020a0568701a8f00b0016df97ab05bsm1654958oab.31.2023.02.13.10.57.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 13 Feb 2023 10:57:45 -0800 (PST) From: Frank Rowand To: Rob Herring Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 3/7] of: update kconfig unittest help Date: Mon, 13 Feb 2023 12:56:58 -0600 Message-Id: <20230213185702.395776-4-frowand.list@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230213185702.395776-1-frowand.list@gmail.com> References: <20230213185702.395776-1-frowand.list@gmail.com> MIME-Version: 1.0 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1757743397584233673?= X-GMAIL-MSGID: =?utf-8?q?1757743397584233673?= Add more information about the impact the of unittests have on the live devicetree and why the tests should only be enabled for developer kernels. Add information about processing the test output such that the results are more complete and comprehendable. Signed-off-by: Frank Rowand --- drivers/of/Kconfig | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/drivers/of/Kconfig b/drivers/of/Kconfig index 80b5fd44ab1c..644386833a7b 100644 --- a/drivers/of/Kconfig +++ b/drivers/of/Kconfig @@ -23,7 +23,19 @@ config OF_UNITTEST that are executed once at boot time, and the results dumped to the console. - If unsure, say N here, but this option is safe to enable. + This option should only be enabled for a development kernel. The tests + will taint the kernel with TAINT_TEST. The tests will cause ERROR and + WARNING messages to print on the console. The tests will cause stack + traces to print on the console. It is possible that the tests will + leave the devicetree in a corrupted state. + + The unittest output will be verbose. Copy the output to a file + via capturing the console output or via the dmesg command. Process + this file with scripts/dtc/of_unittest_expect to reduce the + verbosity, test whether expected output is present, and to + summarize the results. + + If unsure, say N here. This option is not safe to enable. config OF_ALL_DTBS bool "Build all Device Tree Blobs"