Received: by 2002:a05:7412:251c:b0:e2:908c:2ebd with SMTP id w28csp2270580rda; Tue, 24 Oct 2023 19:11:27 -0700 (PDT) X-Google-Smtp-Source: AGHT+IE1zCfuv89lM5DkDKMLm/NdaldNKtEGoWgBl0GzD7GkFMqKZJ6LGTwN92c5eRzIilNNcKiv X-Received: by 2002:a9d:7c89:0:b0:6cd:a9d:bc57 with SMTP id q9-20020a9d7c89000000b006cd0a9dbc57mr15255994otn.32.1698199887188; Tue, 24 Oct 2023 19:11:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698199887; cv=none; d=google.com; s=arc-20160816; b=zkY+DOa9jpsw/Wb4z5PGA/qPEieT8tCjlHYcxsqKoX6F48NXU5Cn4bvVm4frQ3vhcS kHPWJ9nx7mIMMCD1rzzjU3BTvN0fM4gzkwOlfyoHdDGZX7I0Lqcb4dGzQ07+Rir+ohVa fPajm7po4lgjABpk2Dt5GXuRN0Kr5IiH224ukzBaz047DEPc9j1q1kXrnJzDlld9BnGx AsxRfsVOlK1HuyjtgHsGiMcUICejz77qdgF5YvX4PnWH4eSDSd6pRHzuMjCPvZArq804 D+qMDHz1abwHAYxc70ZN7+kXH5le37U/ftt0VfB1LQKpWcWEuo9i+u98xeYcBPlf9FHN apPQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to :organization:from:content-language:references:cc:to:subject :user-agent:mime-version:date:message-id:dkim-signature; bh=sgj5FeAMto//k7yae9T7VoBl7DHqWMyiDhoCzA0mfsg=; fh=3vHq785gmNxQKS7kfnz/Dma9aCIkqhwmkTa3hVBp4Xs=; b=tMudI3eQzQdklaj6JPAP4NqZpRYB2IZ9tGYe47/VHNJtddfi2gg1qJpEqlK4JUNOH1 dJcoZHjk3QM+4v2igU3+s+or+ZW8C9e3vfHPkyBNc8hlx9axDHlaQKiMOUdHdQY/eWOM Sf95tqh70gCxOrPy+UqXJ36SptSuSb1CGEK5XPy9+v7bIBDdeRQ5E00CIHIY2e73R/wJ EeH9NCoC6A839nbdjRmIOJQphrU7WDoxK/wZDpWvxH/rsv2XtYpDdRhpxem+ddFjne5j aD73uOxO2xERTPFGASCZOXTAOHzymzUqtzpfYYuPUe+XufWxjoacdwAtRbv6fqD5y0Iy i0bg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=TVWETUna; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from pete.vger.email (pete.vger.email. [2620:137:e000::3:6]) by mx.google.com with ESMTPS id w9-20020a816209000000b005a7b8fe714csi10216223ywb.63.2023.10.24.19.11.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 24 Oct 2023 19:11:27 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) client-ip=2620:137:e000::3:6; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=TVWETUna; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by pete.vger.email (Postfix) with ESMTP id 9849E802A1DB; Tue, 24 Oct 2023 19:11:23 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231478AbjJYCLQ (ORCPT + 99 others); Tue, 24 Oct 2023 22:11:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55394 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229548AbjJYCLO (ORCPT ); Tue, 24 Oct 2023 22:11:14 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AB0ABE5; Tue, 24 Oct 2023 19:11:12 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1BD15C433C7; Wed, 25 Oct 2023 02:11:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1698199872; bh=XqSsIpjt0jIyZn7qo3bPFPqEdb+PQBuF8ciog/cTS3k=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=TVWETUnaYoM74TyyGZNyWwa9rzO5bBRy5EHR8Bk9H4fieHqpt+dmZpTNC2wdiEnkU teFwryJJotMK4JcDktGOaXMzL5fic8dej3ViDt+rtfkyIIdf3oDG6n7Ro8UFX3kVnV sWFfla00iE0xEL9jWMO3evQcx6IJH6iv3mQnJB9WTkEQt4WdkaI/2QAzpfxY6JZvlW /XN2P+vrOEd4JhQbMTFhuV+Il7r/2ON+25CaFeozA1MT73BZcPT5+jctYBYQhkDUF+ zrTSeAgDJ5A467sNR80kkOi5IzY4MSqpq0nCmEBKekkc9hrOxVSN/UYLYMYqch3Hrf ELz4ZncJ/ZPVQ== Message-ID: Date: Wed, 25 Oct 2023 11:11:09 +0900 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: Fwd: bbbf096ea227607cbb348155eeda7af71af1a35b results in "dirty" shutdown To: Bagas Sanjaya , Linux Kernel Mailing List , Linux Regressions , Linux IDE and libata Cc: Hannes Reinecke , Geert Uytterhoeven , "Martin K. Petersen" , Tejun Heo , Totallyreal Name , loqs References: Content-Language: en-US From: Damien Le Moal Organization: Western Digital Research In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-1.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on pete.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (pete.vger.email [0.0.0.0]); Tue, 24 Oct 2023 19:11:24 -0700 (PDT) On 10/25/23 09:40, Bagas Sanjaya wrote: > Hi, > > I notice a regression report on Bugzilla that seems to have been > handled already there [1]. Quoting from it: > >> I have noticed that after each shutdown SMART would log +1 on each raw_value of drives that count power related issues. >> >> Here are some of the smart values where i noticed increase among different drives >> >> POR_Recovery_Count >> Unexpect_Power_Loss_Ct >> Power-Off_Retract_Count >> >> That doesn't happen on previous Kernels.. and it stops as soon as i switch back to LTS. >> I seeked through the Bug Reports but couldn't really find the issue. So i don't know if this has been reported or patched already. > > Another reporter had found the culprit: > >> >> >> This has been reported as being introduced in stable 6.5.8 [1]. Reverting commit bbbf096ea227607cbb348155eeda7af71af1a35b is reported to solve the issue [2]. bbbf096ea227607cbb348155eeda7af71af1a35b [3] is mainline commit aa3998dbeb3abce63653b7f6d4542e7dcd022590 [4] which was introduced in 6.6-rc4 which matches the original report. >> >> [1]: https://bugs.archlinux.org/task/80064 >> [2]: https://bugs.archlinux.org/task/80064#comment223100 >> [3]: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=bbbf096ea227607cbb348155eeda7af71af1a35b >> [4]: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=aa3998dbeb3abce63653b7f6d4542e7dcd022590 > > See Bugzilla for the full thread. I am aware of this and looking into it. The patch mentioned above seems to have introduced the issue that drives are not being stopped on shutdown with real PCs. But they are with qemu VM. So this seems to relate to ACPI shutdown as well. Not sure, looking into it. The main issue I have is that I cannot reproduce the old behavior mentioned in this case, which is, the counters not incrementing on shutdown. They do increase for me, always, even prior to the patch mentioned above. Digging. > Anyway, I'm adding this regression to regzbot: > > #regzbot introduced: aa3998dbeb3abc https://bugzilla.kernel.org/show_bug.cgi?id=218038 > #regzbot title: dirty shutdown due to disabling manage_system_start_stop on SCSI devices > #regzbot link: https://bugs.archlinux.org/task/80064 > > Thanks. > > [1]: https://bugzilla.kernel.org/show_bug.cgi?id=218038 > -- Damien Le Moal Western Digital Research