Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp2554095rwb; Mon, 3 Oct 2022 02:27:57 -0700 (PDT) X-Google-Smtp-Source: AMsMyM40R65iJXuBX7QfspyPDsntocFJaoPfnc8+1LjSpNSQVrah1qc9iZ30Zn6XCmyU5hzC+Rbb X-Received: by 2002:a17:907:e94:b0:782:1b85:f887 with SMTP id ho20-20020a1709070e9400b007821b85f887mr14998646ejc.222.1664789276962; Mon, 03 Oct 2022 02:27:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664789276; cv=none; d=google.com; s=arc-20160816; b=tfpfy3+nMW8ONv9O3EorrYA5NO4n6jn7vy9ZVzLkTjzxJcivTTCgs+LTvllFlxJ4yb uhC6HQ1Vapi8AKd5sbl+soFZ5nGM6XEwxk2J5nhFh2Kmn0j9YgC6Ru9oS+OK3UmgvaNf RR7ikTFYImnkxYn1h3b6m8iP3B8ekbGS6ZuiQJrTeSz+lgRvVVHSi2/42rUZkmv5G5qp ooiGqYQPvNqKFEEgETTKyj67oU639l8ZXXp0+ye3STihgOPfjCxFYQMwyySRwO9lVH+2 Z4kEFM99SOon5E6dIKsGjus14t+/Q1jxvcEmOc4lumzXuWPZyNComT4ZO9n0QNgpAQU4 XQAQ== 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=NXw7Poaij0ruVOYtQ9SzwrbN2pgd1O5BR1w7S0oN1jQ=; b=K1+OPWjCgXCNRL/2JCwquiX9e7MogHbRR9XEcnwiigwl1nUFFqa9lg76wd+5qGLE5f V5SySjozXBMB40BJ5MqJhodR8Wa0FdvxMD5UmEgu6wcR8pZUQJX1ZtzKndHyv6TGj87u HChgTGpQcrL9eW05qXbdNCjHPBj5BWIkun4EwqzdteslQ7m9OVsP2XLSYRfkpUfAl1TH PR22jBoeQwcPbxO9J+I0BpDIDl79urWDQpZANuw9h28kWussC6IF//6mbvxY47Ya3xal yRAmMoad9lXvIbpYt9tKQiSCrWVCvs5G0m8DDKw3qRUnAMo+bKsNp4lI6/di1ST1LvKt KvSw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=K2I3nJGG; 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 r18-20020a05640251d200b00457d6a92180si7260697edd.538.2022.10.03.02.27.31; Mon, 03 Oct 2022 02:27: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=K2I3nJGG; 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 S232201AbiJCHvh (ORCPT + 99 others); Mon, 3 Oct 2022 03:51:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42048 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232168AbiJCHvB (ORCPT ); Mon, 3 Oct 2022 03:51:01 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1051B4D274; Mon, 3 Oct 2022 00:29:03 -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 404E860F08; Mon, 3 Oct 2022 07:21:10 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4AAEFC433D6; Mon, 3 Oct 2022 07:21:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1664781669; bh=CXEbBTnR8AgKq3AZKykNF/J/yDkcEAUyJcKoYOeiXWA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=K2I3nJGGSgR691SvwWa1yHs5igHCJKgv22+/vzgMtLeg+y0XE7O8Gyvb4Ln51JmDn HE53h1Ww3Vu1joR8P9jKTCFvUM9pS7zD5luMqbVvPVLejxneu9cinmuFWAtJikL+V6 spR5ySQcydwIxiJrcJVNDWfbOaMEk9myQA1Im0pw= 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.10 20/52] libata: add ATA_HORKAGE_NOLPM for Pioneer BDR-207M and BDR-205 Date: Mon, 3 Oct 2022 09:11:27 +0200 Message-Id: <20221003070719.328481285@linuxfoundation.org> X-Mailer: git-send-email 2.37.3 In-Reply-To: <20221003070718.687440096@linuxfoundation.org> References: <20221003070718.687440096@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 @@ -3936,6 +3936,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 },