Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp634382pxv; Thu, 15 Jul 2021 12:04:19 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyT64/+xoVkL9SlZOmPL0rNEYD9KhieiIoy50C/who8kBHN75tG/u78soysbaP3p396BX+N X-Received: by 2002:a17:906:2752:: with SMTP id a18mr7367647ejd.458.1626375859654; Thu, 15 Jul 2021 12:04:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626375859; cv=none; d=google.com; s=arc-20160816; b=zw61Y0CG2+PZ9iDlYYtZ75KvcVeGw0YbO9UiM8KUH77RM0I6G5S7O6zvariP6bI6As rl6mMIClX/XFuYK/d3a8Dy9xzc+3KvVs9zJ75G/iGzH7xNVxMyZfNTwCqqqbGiJW1Jg7 kTUvnWQYdvmnV9JEmkSMgOtaPLmq9B70oF+U/ijdAtcYAeb5DXur6kr4GNttAFKJlQxj Rw7w4Qfoi6JZ9UEwh9l0xVgve6Fu345KEo9b0iIRV9Li8dUCIT17QKv4+8pY8oZUgWly QH9Jv4vcv8MiY4V/tzCsy1dhEj3viHPkubP0QMQ5s4FkVQTtRpL6IY9Im5FKThx6ESoF biDQ== 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=C0pigSwUnY9FbNxcz0WTzp3ILbjVIYDc2JX4qXtIHfM=; b=s7ORC0wAmExcKpuRKx9uBcXvXLxu2ujKChy4hMeFryXLg3oCvJ6a7VAcAZkinBmk5t zUQiyvM7uK9FK1VoDRsfchQgtMVlWHMyjuJK2PZmWQEV53Zn/ac9Edbx4VRKoCnXCV05 ES1CsNjgggLj6xZDG07rdKWgcw6mkECbb43NQJ5mYXlGVtQO5jFPrXGu6nz6ap0Xnve0 2qeLia4xWL+4cwbaEI/eR7o3/3Q53SulINKYI7fGsPNhcbXuNvSHnzcmy4FHD2PhcTn+ 343x63SqPCG3W7d+j4248Pn4/c95UyWNgSVLLvh0h45znURuc5rfErnTwPHdqN5VgrHy us6g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="G6Xr/VMV"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id qx23si8273425ejb.137.2021.07.15.12.03.55; Thu, 15 Jul 2021 12:04:19 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="G6Xr/VMV"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S240935AbhGOTDT (ORCPT + 99 others); Thu, 15 Jul 2021 15:03:19 -0400 Received: from mail.kernel.org ([198.145.29.99]:59196 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242263AbhGOSy7 (ORCPT ); Thu, 15 Jul 2021 14:54:59 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 08E6D610C7; Thu, 15 Jul 2021 18:52:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1626375125; bh=P3nul/DVQE1yucoSl3ntix5TE48M+uyV2iDO53DBZQU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=G6Xr/VMV+g0+CGbtuovGdBY6wk45TSzzp8czDkmH4miULBW9FemXJMCXTk6YF7u17 o+EVshl4k2il98xwG9l/jiJh47S820N8bf2UZQo860s1+/oPQaMVRd91nFULZHNzlB BhEza/Upub6t47yZr1ffkrUz0dJfC2lThcvU6da8= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Timo Sigurdsson , Jens Axboe Subject: [PATCH 5.10 170/215] ata: ahci_sunxi: Disable DIPM Date: Thu, 15 Jul 2021 20:39:02 +0200 Message-Id: <20210715182629.611367855@linuxfoundation.org> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20210715182558.381078833@linuxfoundation.org> References: <20210715182558.381078833@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Timo Sigurdsson commit f6bca4d91b2ea052e917cca3f9d866b5cc1d500a upstream. DIPM is unsupported or broken on sunxi. Trying to enable the power management policy med_power_with_dipm on an Allwinner A20 SoC based board leads to immediate I/O errors and the attached SATA disk disappears from the /dev filesystem. A reset (power cycle) is required to make the SATA controller or disk work again. The A10 and A20 SoC data sheets and manuals don't mention DIPM at all [1], so it's fair to assume that it's simply not supported. But even if it was, it should be considered broken and best be disabled in the ahci_sunxi driver. [1] https://github.com/allwinner-zh/documents/tree/master/ Fixes: c5754b5220f0 ("ARM: sunxi: Add support for Allwinner SUNXi SoCs sata to ahci_platform") Cc: stable@vger.kernel.org Signed-off-by: Timo Sigurdsson Tested-by: Timo Sigurdsson Link: https://lore.kernel.org/r/20210614072539.3307-1-public_timo.s@silentcreek.de Signed-off-by: Jens Axboe Signed-off-by: Greg Kroah-Hartman --- drivers/ata/ahci_sunxi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/ata/ahci_sunxi.c +++ b/drivers/ata/ahci_sunxi.c @@ -200,7 +200,7 @@ static void ahci_sunxi_start_engine(stru } static const struct ata_port_info ahci_sunxi_port_info = { - .flags = AHCI_FLAG_COMMON | ATA_FLAG_NCQ, + .flags = AHCI_FLAG_COMMON | ATA_FLAG_NCQ | ATA_FLAG_NO_DIPM, .pio_mask = ATA_PIO4, .udma_mask = ATA_UDMA6, .port_ops = &ahci_platform_ops,