Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp2498294rwb; Mon, 3 Oct 2022 01:21:41 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5+qsh9xabbkU6ytkMlRCdVSJkfpe9qGtevE3lJAfIwwTNKnbk42G8raKfEICDwHDc+6SCS X-Received: by 2002:a05:6a00:140d:b0:52a:d561:d991 with SMTP id l13-20020a056a00140d00b0052ad561d991mr21366210pfu.46.1664785301678; Mon, 03 Oct 2022 01:21:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664785301; cv=none; d=google.com; s=arc-20160816; b=EVllPYMglODeX+OqK9UclM9BMRxShdV5Y+2BMur1gfnZiQjbL38x/mZkviUUHhYSka IgTNvCY6aSWYsHEBtkoj7qR2n+bb/ZfwGKFsYd7GbfMLh71V7yzjDlvhniSpjj5zlq/s OGlINAcCFPGdIyW5HFx35L0qUafnNMHXdvhpDtiFpQeDIckvDP3n5dkQnIdgtwo7vFyP ORGZ93qoaRoxJKTPTLUDbfdIdPZ0vmRWTTQk9urMWwYiN4B2fgLUViI9em+01g8zTJUQ 6AAkQwSfvf70h9wfLt66SaB0pD+7FtCar+oErS6x6qdS5CF3Bc/NX1RYb1fSDzsStLgu +0oQ== 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=eaiwv4E8h8gDPerRuTE5jI8Aa4XsSrFRyZ3zJkj8HO0=; b=elrpOAdVZ8go7ph/iErw3cmGc90sWUH1/FbskHf8SMt1KjAcDxaSNsPyz2Y3kVxdOT L/lTWgQ+GfMPOfskroaANmN2BtGwdm5ofD43vGNF6FsH/PUm+0bDQyhX0h9w1UllSuZb M5/kSduRjwGEDd66tHCM80GxtmBEZs7lUSed/INGgoYqtVXrIPXU+S6nkVVBuIc0l6ad 4FqGsNTDY7RK6pjxfMgU3RzMbJ/XcTmCngUOZJ2wKNAGD+GelXT0OiWUeO1WWZPa/BxY 1UZmEgPDetLSYfjeQmhQzPUiKNiqECMjqNe1L1qXyCEyD3RTDY26PyFusMdLgNG6GMb4 oxBA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="HsW/gc7w"; 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 np1-20020a17090b4c4100b002032bda9a61si8370214pjb.69.2022.10.03.01.21.29; Mon, 03 Oct 2022 01:21:41 -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="HsW/gc7w"; 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 S232134AbiJCHpW (ORCPT + 99 others); Mon, 3 Oct 2022 03:45:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52590 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232265AbiJCHoB (ORCPT ); Mon, 3 Oct 2022 03:44:01 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D16664B9AF; Mon, 3 Oct 2022 00:25:42 -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 ams.source.kernel.org (Postfix) with ESMTPS id 75299B80E71; Mon, 3 Oct 2022 07:17:37 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id D95C8C433C1; Mon, 3 Oct 2022 07:17:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1664781456; bh=Oddoo6UBftHoWQju6iQajBFBoQjhODuWFDBcjMPDH08=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=HsW/gc7w5Ds+jS5ag1nMEzzZ4/q6woRS5wnJj3dCTUo8P9OA+cC6uovS55iANdEbr 8DWbE6HngL+AyXKBi65jyB1z8xJmJ5TWvJ/A+dt49v3JHmtdNzyYODel3CD3wuxg/4 3IZpLtKP6E8uR/gJ5ln+YUZt5YwnpZxVRni12vhY= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Jaap Berkhout , Niklas Cassel , Mario Limonciello , Damien Le Moal Subject: [PATCH 5.15 26/83] libata: add ATA_HORKAGE_NOLPM for Pioneer BDR-207M and BDR-205 Date: Mon, 3 Oct 2022 09:10:51 +0200 Message-Id: <20221003070722.651594151@linuxfoundation.org> X-Mailer: git-send-email 2.37.3 In-Reply-To: <20221003070721.971297651@linuxfoundation.org> References: <20221003070721.971297651@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 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: Niklas Cassel commit ea08aec7e77bfd6599489ec430f9f859ab84575a upstream. Commit 1527f69204fe ("ata: ahci: Add Green Sardine vendor ID as board_ahci_mobile") added an explicit entry for AMD Green Sardine AHCI controller using the board_ahci_mobile configuration (this configuration has later been renamed to board_ahci_low_power). The board_ahci_low_power configuration enables support for low power modes. This explicit entry takes precedence over the generic AHCI controller entry, which does not enable support for low power modes. Therefore, when commit 1527f69204fe ("ata: ahci: Add Green Sardine vendor ID as board_ahci_mobile") was backported to stable kernels, it make some Pioneer optical drives, which was working perfectly fine before the commit was backported, stop working. The real problem is that the Pioneer optical drives do not handle low power modes correctly. If these optical drives would have been tested on another AHCI controller using the board_ahci_low_power configuration, this issue would have been detected earlier. Unfortunately, the board_ahci_low_power configuration is only used in less than 15% of the total AHCI controller entries, so many devices have never been tested with an AHCI controller with low power modes. Fixes: 1527f69204fe ("ata: ahci: Add Green Sardine vendor ID as board_ahci_mobile") Cc: stable@vger.kernel.org Reported-by: Jaap Berkhout Signed-off-by: Niklas Cassel Reviewed-by: Mario Limonciello Signed-off-by: Damien Le Moal Signed-off-by: Greg Kroah-Hartman --- drivers/ata/libata-core.c | 4 ++++ 1 file changed, 4 insertions(+) --- a/drivers/ata/libata-core.c +++ b/drivers/ata/libata-core.c @@ -3961,6 +3961,10 @@ static const struct ata_blacklist_entry { "PIONEER DVD-RW DVR-212D", NULL, ATA_HORKAGE_NOSETXFER }, { "PIONEER DVD-RW DVR-216D", NULL, ATA_HORKAGE_NOSETXFER }, + /* These specific Pioneer models have LPM issues */ + { "PIONEER BD-RW BDR-207M", NULL, ATA_HORKAGE_NOLPM }, + { "PIONEER BD-RW BDR-205", NULL, ATA_HORKAGE_NOLPM }, + /* Crucial BX100 SSD 500GB has broken LPM support */ { "CT500BX100SSD1", NULL, ATA_HORKAGE_NOLPM },