Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp662972pxv; Thu, 15 Jul 2021 12:50:05 -0700 (PDT) X-Google-Smtp-Source: ABdhPJySdFdQzyb4/JwILrk4p1a2ArbrFjWo2MhGQ8JSt5+3jqnjTIqE1gilyOcLZvGyIWedqA9s X-Received: by 2002:a05:6402:17d3:: with SMTP id s19mr9302834edy.49.1626378605425; Thu, 15 Jul 2021 12:50:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626378605; cv=none; d=google.com; s=arc-20160816; b=GxKq4grYmioxhBK4yv1uZKoxFxQ788vme6Yur77KCsha7zw/3wWa78kjOOqvTRPUhM JqTiCL2/ngpAaIg6ygl7Ahoo/dFQ3KGC9kCeIJLZzTj3BqgyJbRVIly6d4iXk5thCsNR YwSMCEmh03EBKX5NEB6KFDb3zwf95tORTJQ249v+8zmsfSeRC3vZ5XhZKXYF3aLcuJiU zy79KPY8XFesG7zxa82QTWhtyiFvqPhYwinjl0w6T78l+ejPp20waB9MyIgC7jJruZ+O Jqe+kMSBWgHDXZ8bQf/uTL9LbQ7g95LKyElVUMb0tkrZ168T/NyJhDs6Fola3SpugkTu TvEg== 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=knZs0cH6iXQ2o4GpXu3ekGU0nHSH0TzWilwwMmRjRz2SR///iHc4n9+MN6HR+UMy// laYB4/mha4d77/JYfO/OJbJSlQu+1P0OyfnPZiRj7lXBKBsQbDWVBHmG9d8X1xY4UVQv I03iULqdnlpHfp1kbrwoFga1tZyjGYwQlKweey5J/OQw9ZBZIXrH4Wu5JsUgs+R5CmWX +MFCXYNyGQ/HgYljVQoMZ+sR1gBBGbr71uXZ+xE9h7zY7gEQr5/SnMT/DhlfFGvnuZUT JIWtOjKG6AKhCAkLKMvA//xqfN63MZZeEGRaiFF5oU7hshwcUqqbOkFpGcs1Da3eXU8r nFuw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=1b3N+ukz; 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 kv11si9015875ejc.524.2021.07.15.12.49.41; Thu, 15 Jul 2021 12:50:05 -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=1b3N+ukz; 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 S245298AbhGOTs4 (ORCPT + 99 others); Thu, 15 Jul 2021 15:48:56 -0400 Received: from mail.kernel.org ([198.145.29.99]:58962 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244401AbhGOTSJ (ORCPT ); Thu, 15 Jul 2021 15:18:09 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 0C0B061421; Thu, 15 Jul 2021 19:13:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1626376395; bh=P3nul/DVQE1yucoSl3ntix5TE48M+uyV2iDO53DBZQU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=1b3N+ukzyX1addTobLMGNjqUYUmLM2aVnJQeVHW3kLAfSftSJyAzft6HSSvCNqr8r i9HhovhcLt1IJ3JW1Sr/WaomprHmjPDPYcw2pC1P+8YT0DuCOljQpd3+FEAR0uHTh8 pxdQHYdaih/UCgfgGGQ90okmo5Zp4uzV0TG0/JQc= 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.13 212/266] ata: ahci_sunxi: Disable DIPM Date: Thu, 15 Jul 2021 20:39:27 +0200 Message-Id: <20210715182647.159848335@linuxfoundation.org> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20210715182613.933608881@linuxfoundation.org> References: <20210715182613.933608881@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,