Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp711849pxv; Thu, 15 Jul 2021 14:09:55 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzuwP0tbeCUMYdt9VxrXoxk7Cb8J1K9HQnfL2tUWCeSyjsBbGvu7Q8dOhBe8rHLFL5pkJm3 X-Received: by 2002:a17:907:2d8a:: with SMTP id gt10mr7719561ejc.10.1626383395039; Thu, 15 Jul 2021 14:09:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626383395; cv=none; d=google.com; s=arc-20160816; b=J8UWi6tTf3V5oKzFyUxv3rUoyDgbShLEoJLXTUvJay4d9nDCWEsYwYeGeFO/aaAb8g VEJ6Cg5lma9DXN6WnOweLG05UZ+AXvynAyBJOEGqXdNJF4h5ZX2mA7Wfmjr8LtjkW5IM 5MkU6TN0AojWJaoQLuuAW4EvNHfUnYrgBs85jnH5sJ22Q/n/QSJ+DB4wczAOC/pFdicr A/pkJwS2dT4b//hXj5vLBArKCeyai71dUCsSDzuJBlTVHV81KfJQOPEPgGxrj82F4oko EnFUj2eiaJdqctv1Iiz6LgPoUUGuUV3OeOuqbzkwu5VHtZWwVIDvo0C4/41hVfjwnyRU Uf4Q== 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=mOfAc+jIUZ9FYem/XUXa+CIYFaFoNf4ypHf3dR/4MdPMpWan5yiO23MlqDZ4t0ufFn xSo0rlvGjG4xaNrFeU2bl2skMAz30hR4li1vkgqmP+7CPgl1paTFta+wogAM486SWLXd BC5h6WDyKE/MkI3/JAcyvgI2YAHZKk3joqAUjBflRLbeSxx4aq4MWYzA2v84LGOsGADR F7P1KqIt5gBoPVrfu4px/DqyvYpvJVaYnmYjg1wGupJbg72u+sZv0AuF5uC5jDUYkVJT 2J+kK21apQS2ulQF7/5bITgTRsGfqgNkApHRy8AOCKgTX6kk2aqaeO7MVkZGOsF/MkeY /dUw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=nAvBSBIt; 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 m2si8985505eds.563.2021.07.15.14.09.32; Thu, 15 Jul 2021 14:09:54 -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=nAvBSBIt; 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 S245632AbhGOTT5 (ORCPT + 99 others); Thu, 15 Jul 2021 15:19:57 -0400 Received: from mail.kernel.org ([198.145.29.99]:38428 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242596AbhGOTFM (ORCPT ); Thu, 15 Jul 2021 15:05:12 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 79E0361417; Thu, 15 Jul 2021 19:01:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1626375678; bh=P3nul/DVQE1yucoSl3ntix5TE48M+uyV2iDO53DBZQU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=nAvBSBItTDv8qv6hfIdOqZDcHedG2wWrLFoNOoykQb5oAFe6FuMyO5zrl6DeyIrc3 NnR6aIIpnUWp0RcI3RR8Vzx8txRsS4oJbDBTl51igkr0rU7d8ehsf5odhkYVA/Aobs aF/XCO6B1shSh4cplV3PDViXAqUbaCqiQ3GI5NLk= 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.12 188/242] ata: ahci_sunxi: Disable DIPM Date: Thu, 15 Jul 2021 20:39:10 +0200 Message-Id: <20210715182626.355345852@linuxfoundation.org> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20210715182551.731989182@linuxfoundation.org> References: <20210715182551.731989182@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,