Received: by 2002:a05:6a10:a841:0:0:0:0 with SMTP id d1csp68171pxy; Tue, 27 Apr 2021 23:02:59 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz7PcUCprIL5CzzhTrgYQtPxM7a6vrltKIlCZhSDWJnXGwnF/zLU+jWmssxZUzFsisRuLCx X-Received: by 2002:a05:6402:1a52:: with SMTP id bf18mr8887246edb.289.1619589778983; Tue, 27 Apr 2021 23:02:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1619589778; cv=none; d=google.com; s=arc-20160816; b=D+NYhNODW6dfhvLNBlW2rt0SxQfKBwiVTDswRSEfgcYFmZVIEOfD7RG8Xj0zAvcCYD q2cIdL+xGZ464s/+1LsSv3XLEDOZOx1La0s+F3fzk8ZtRT3fvDzbZeq+rVQY3QF5Uo8m JsuU/q5xs5QRXO1bpuEw30TXn4pGda12zwmY9TqBy9T+zMxh4XVOm8qhHgSikDwenNi+ MAYRTVTtmvb5b590DhBThUDOj2XQpPBG5cXK3VXIeGRT4P30nS2yB9Z2Y5Mz/0Mob3Kz 0q5WXiBrRotK6p4HnfcbDXvAHLLraPxPCdAvZ0OBujDpuwpOxEgxMKQLU87N6BSBuQfw m9kQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=ej7KJhgoHiDHjYr7d5rgDHAmtrpNZFAKw26eq/AWM7w=; b=t+Oz/BwM0qg98/2k01RHuHY10Vcqwwdq6XCfjXIe7ka6S4x4Cij04GiyqzG1C7PXTS RAupkw4UkMehNHVWjKK/InDDnYx0CEO8X3pi5+DsHUJJV/7SObiFXckG/j6oPCCO7MNf +FPIEblrYelZDxtR+ck36Zr3eW5NSGEn4Py9RH9j1iz9kQRdH1aCXPaQtwMnZynEZ8SU +etPuwC2+0/nANdgaKsG3hMYLtZFo1z9tTW9QLNC/BqzgiGrkhpWIcShoGJplzXfw4xE FGV3kwYcA27jh2ygIJPpobOhHCIDVBwOkuifQyAAlNuRBxQYMTaRSLc/xxPcYBCSOYj8 VjfA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=15ttKwTu; 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 21si1990496ejv.432.2021.04.27.23.02.35; Tue, 27 Apr 2021 23:02:58 -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=15ttKwTu; 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 S235977AbhD1GAV (ORCPT + 99 others); Wed, 28 Apr 2021 02:00:21 -0400 Received: from mail.kernel.org ([198.145.29.99]:39324 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235809AbhD1GAS (ORCPT ); Wed, 28 Apr 2021 02:00:18 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id E6EB5613FB; Wed, 28 Apr 2021 05:59:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1619589573; bh=PzXRzqyaN0AHEgEDWQ7ORDtLyuOZqfpRHAtszxM+aMo=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=15ttKwTuuNivW2WUxOzPsphx0FRf9V1T8rt8jHcNnVVId6Lvj5uNEq3xV/c5gCrt8 kUKvwWswbZa1rZYStYXr3DoADlotDZXvS1mi3zdsqzkseIBK48Yce+nLvCDqZtFmnq u1wakr7dYWCrxLNgwu1w0kUdlF1b42NPjmrWwnYo= Date: Wed, 28 Apr 2021 07:59:28 +0200 From: Greg KH To: Timo Sigurdsson Cc: axboe@kernel.dk, mripard@kernel.org, wens@csie.org, jernej.skrabec@siol.net, linux-ide@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-sunxi@lists.linux.dev, linux-kernel@vger.kernel.org, oliver@schinagl.nl, stable@vger.kernel.org Subject: Re: [PATCH] ata: ahci_sunxi: Disable DIPM Message-ID: References: <20210427230537.21423-1-public_timo.s@silentcreek.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210427230537.21423-1-public_timo.s@silentcreek.de> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Apr 28, 2021 at 01:05:37AM +0200, Timo Sigurdsson wrote: > 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 were, it should be considered broken and best be > disabled in the ahci_sunxi driver. > > Fixes: c5754b5220f0 ("ARM: sunxi: Add support for Allwinner SUNXi SoCs sata to ahci_platform") > > [1] https://github.com/allwinner-zh/documents/tree/master/ > > Signed-off-by: Timo Sigurdsson > Tested-by: Timo Sigurdsson > --- > drivers/ata/ahci_sunxi.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/ata/ahci_sunxi.c b/drivers/ata/ahci_sunxi.c > index cb69b737cb49..56b695136977 100644 > --- a/drivers/ata/ahci_sunxi.c > +++ b/drivers/ata/ahci_sunxi.c > @@ -200,7 +200,7 @@ static void ahci_sunxi_start_engine(struct ata_port *ap) > } > > 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, > -- > 2.26.2 > This is not the correct way to submit patches for inclusion in the stable kernel tree. Please read: https://www.kernel.org/doc/html/latest/process/stable-kernel-rules.html for how to do this properly.