Received: by 2002:a05:6358:5282:b0:b5:90e7:25cb with SMTP id g2csp3329131rwa; Tue, 23 Aug 2022 02:58:57 -0700 (PDT) X-Google-Smtp-Source: AA6agR5VBytyu2ImXJb+zwTiBfusE4TdByGSWvTVYWe4KW75EvHyNK2bD3G7KiMhzY3Lv2PIOkIM X-Received: by 2002:aa7:c790:0:b0:443:a086:6877 with SMTP id n16-20020aa7c790000000b00443a0866877mr2991116eds.84.1661248736926; Tue, 23 Aug 2022 02:58:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661248736; cv=none; d=google.com; s=arc-20160816; b=HORO6iZAgDbzouYldWNxH9KhhlyWXtEYmLJZOwzTdhw1g7e0dK3zm15hcxLnOvP0ec SJBKZjgRWlka30hel3MsxRcPiKakPqfSR7p/5xfYyK6z0BJA7D1S1UbV9rShLYgeWi16 9oTssbuUYU7goP8BfXPJDm8qkNSlBkCYSf4AqbllrEXWO5d+wMeDtk03ZOwUjRAL1hbM gF7pPflnPmIHAyBs04qiQ0T8MypMqAQKIkJo2klwHhBOHb1u/PN8cn5+z3opGc77GGPA U+JYGxhkD1KbL8Xh6v+j/JUlWdm7cmHkd4CK78lOselYpTuvMD8tZMKxgdLqNk2dEZ9K jO0g== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=vaYZdL9TGcZDmgpGbn7oi18jNlfQEZJGVYBvTpsyS94=; b=gKTZ9Xsx+6NXo7YromzfZEmgHqCzl5EDm1HUncYv7xbc9bM9fywU1uu1VK26JbhD4b Tv0y61+Bev00lmWhdwR+D/vSl8W6jCVOCQrK0sMLQra6IXYcNDI1AFSQSvNo0f3kR625 aJDXv53RGnXLkaPqGUmyOzc/vBmzzvqPlRXZ4CPoPSrqPlxGEVC4V+sWGzHkk5Y2PcBz Bl0BhSQ8I1pwIR7nWn6RFZEpzqZruPZDg1F3YGN2M0WK/lQgIUGxIZgdgL2OV9fCDIde YCP1SxkrIBYwtcNF0/b8mFMRT1AR6IwLHifdk79OudrW92FtqqZKhoodFiA8SvFek/70 LNOQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=yLcWpmtg; 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=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ku24-20020a170907789800b0073d6b88fdc5si6348351ejc.944.2022.08.23.02.58.29; Tue, 23 Aug 2022 02:58:56 -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=@linuxfoundation.org header.s=korg header.b=yLcWpmtg; 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=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233343AbiHWJn0 (ORCPT + 99 others); Tue, 23 Aug 2022 05:43:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39870 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1351933AbiHWJkl (ORCPT ); Tue, 23 Aug 2022 05:40:41 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 33426785A8; Tue, 23 Aug 2022 01:41:37 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id AC93961499; Tue, 23 Aug 2022 08:41:36 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id B85CAC433C1; Tue, 23 Aug 2022 08:41:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1661244096; bh=wAb9caDwUzbk7UBhI7cFlk+Z8maI1Aajsuhg8IEI720=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=yLcWpmtgdjrstJAB7S7tzy8bY+NoiTwGTMgHhhTQXzVIwUrDIBS50Cy2Lq6E0okxy QhezDdKG8OFNWrSek4CYH8wC/UXtCfcTSxhMdmoWNVgHWmYL7gQ1lKOK9Szjz7KzWy h/R3YIyU20a3NHwvnX28eTxRhBKuORK4SHtxycxw= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Qifu Zhang , Tony Luck , "Rafael J. Wysocki" Subject: [PATCH 5.15 036/244] Documentation: ACPI: EINJ: Fix obsolete example Date: Tue, 23 Aug 2022 10:23:15 +0200 Message-Id: <20220823080100.270015157@linuxfoundation.org> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20220823080059.091088642@linuxfoundation.org> References: <20220823080059.091088642@linuxfoundation.org> User-Agent: quilt/0.67 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 From: Qifu Zhang commit 9066e151c37950af92c3be6a7270daa8e8063db9 upstream. Since commit 488dac0c9237 ("libfs: fix error cast of negative value in simple_attr_write()"), the EINJ debugfs interface no longer accepts negative values as input. Attempt to do so will result in EINVAL. Fixes: 488dac0c9237 ("libfs: fix error cast of negative value in simple_attr_write()") Signed-off-by: Qifu Zhang Reviewed-by: Tony Luck Signed-off-by: Rafael J. Wysocki Signed-off-by: Greg Kroah-Hartman --- Documentation/firmware-guide/acpi/apei/einj.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/Documentation/firmware-guide/acpi/apei/einj.rst +++ b/Documentation/firmware-guide/acpi/apei/einj.rst @@ -168,7 +168,7 @@ An error injection example:: 0x00000008 Memory Correctable 0x00000010 Memory Uncorrectable non-fatal # echo 0x12345000 > param1 # Set memory address for injection - # echo $((-1 << 12)) > param2 # Mask 0xfffffffffffff000 - anywhere in this page + # echo 0xfffffffffffff000 > param2 # Mask - anywhere in this page # echo 0x8 > error_type # Choose correctable memory error # echo 1 > error_inject # Inject now