Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp2106623rwb; Wed, 30 Nov 2022 02:22:47 -0800 (PST) X-Google-Smtp-Source: AA0mqf7WOUfNkcQlTeoVQHyYRkQ4jqWvwk9+F6sdFur8t08QjJqyuCzxWIZwgVjNYqpT94shLcEj X-Received: by 2002:aa7:c1d0:0:b0:46b:431f:f2d4 with SMTP id d16-20020aa7c1d0000000b0046b431ff2d4mr11599736edp.198.1669803767193; Wed, 30 Nov 2022 02:22:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669803767; cv=none; d=google.com; s=arc-20160816; b=wPInfVIQKVyifdlnqr2cvtAsvZYBQN7vyo2lQ5dCIJlELVdtkfA6dmYfnh9Ya3HNZm LUp38Dh+7rAhS0GJ20GsAz0pnkOwhbXCrKYsV+p1p/t/EXptJjY0ETRT9Ayiqfqynwgi sPxVzdS0ZYq96rSgfwPPIXRJZ7i904fNUPEO1LV/Bsr05j4IHf4hX/q72I1WQ2gyieIT 9t2A14NqeYWbfE8YTkgrkc79ab+eOqN+14FokUthGbUByi74JPdDyEIomOznadwPHuel KyyAZa6mwxzmRQSbjYFlSHlZqhVmUhqIMR40bPn9MARtHBlZq0oKk0f9ER87voYpLnwT 810w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=AQat4vhVRPhTXaZs0nu09wTFQazHaXBzXg5iczgp6mA=; b=pkMkpjjm0iHLS1NfAz3AUQrmB+S7yaDVGNjsuA3n8jnmFRjCgMjePLk/gcZMgWdPUu 5uZ6Giy8PyqARZlvqb/lVWeIkTW5bq7JIBD6VLZyU0+SM6UaJromFpDhvEnCVwNkWaP7 kXvnTiJHraMyM/5R/lvJFFJKC9IYvHS4XUYpn4/Fyd64/xDfISGRQQKIfI4mHJCqUhiX JCeI+/2GbHkFcqPEEFGREai9d1+xWa/fe/Nx+umWWYp6gizuczmGVDpo2691NrfogTue fRgqMJhKzhk4ZwNS/GWbBdpNN+DPNWF9VXU/zYwGs6mn+WpTKeOfkFxRI2iXUXqSedkr PV3w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ofFQSuVu; 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=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f2-20020a50fe02000000b0046ba0b760dbsi855115edt.466.2022.11.30.02.22.26; Wed, 30 Nov 2022 02:22:47 -0800 (PST) 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=@linaro.org header.s=google header.b=ofFQSuVu; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233224AbiK3JlT (ORCPT + 84 others); Wed, 30 Nov 2022 04:41:19 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41276 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233860AbiK3Jk7 (ORCPT ); Wed, 30 Nov 2022 04:40:59 -0500 Received: from mail-yw1-x112f.google.com (mail-yw1-x112f.google.com [IPv6:2607:f8b0:4864:20::112f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C58AB2DDC for ; Wed, 30 Nov 2022 01:40:50 -0800 (PST) Received: by mail-yw1-x112f.google.com with SMTP id 00721157ae682-3c090251d59so109765527b3.4 for ; Wed, 30 Nov 2022 01:40:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=AQat4vhVRPhTXaZs0nu09wTFQazHaXBzXg5iczgp6mA=; b=ofFQSuVu5ajzpYIwE9gi63qtctlx+tugjpXcFVn+OQ8mO6YwPj9HI58bKcWk7zumYv XNR0qwORgC9sVXJ8gS14hgXIuQX8R3T8Ty3x79W5OrEDVZXE/Hw+0SqKfo/DDFINBgOl uSSNAS9yprw0w9JhW/8PqKPmaRAxXg02jlaX60YgdzWMsybxxa9YLHCOHapdm6JrJ0n7 R2fRFhtzZp2vpSnTTFTSz9SS30ly920A3drIJqME4jrl3Ys6ImIlW3q5wiJ7BYc2yL9d +MuoEm8iDljhVIhZfrXBl+DYv7dp+gMoh3EmxUyvWA10PS7G1W0JdqeZUgkSTEtWRH0Q Vktw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=AQat4vhVRPhTXaZs0nu09wTFQazHaXBzXg5iczgp6mA=; b=2a2yqOom81ewbFTE6TcyJANXKGkikz+4vdMs8O9PmG43NwlOfWIaZpkxnKbar93Sjt WGKz5o+w+WddZQoCzpwVtv0iPlBhjEL/SACFLdF3QTlcZtmIzL9CTWJL2BinivPZvO3C IS/FikJSoz3zBNeoHuzSP2pMIMrKASh7Acr/EPVAw/9vqT90TAkCpUDGOc5ehb2dllMe lYB1I+e/PFdlWSINsEkkA/RcsBbSjGzU0gWegysyvE+5ilXMKvp4s8e71tlZ3hGzOoij WX4lFtL5hZpkOekZow8eVoQIBXnbmoIblmuYVk0U6YI/Nw9RHvjpcfkRe+8aLCEJUvFR Eqqg== X-Gm-Message-State: ANoB5pntU9sUOSH+O8siiY91Fud/D6hh6N/ob2CDmTcAuM35MoWhf25n uePJTqHeB6MQFDnijRIegtbAfSZ7htXMSehW/EHugg== X-Received: by 2002:a0d:cbcb:0:b0:3c5:469e:b93 with SMTP id n194-20020a0dcbcb000000b003c5469e0b93mr15813361ywd.443.1669801249762; Wed, 30 Nov 2022 01:40:49 -0800 (PST) MIME-Version: 1.0 References: <7ee4a1bd-0674-42d8-8980-8b029ca09e71@app.fastmail.com> <75eaeab3-7781-d60a-ae61-ae837f5dcec9@opensource.wdc.com> <20221014140633.mlypet7skkxvt453@mobilestation> <20221017155246.zxal2cfehjgaajcu@mobilestation> In-Reply-To: <20221017155246.zxal2cfehjgaajcu@mobilestation> From: Naresh Kamboju Date: Wed, 30 Nov 2022 15:10:37 +0530 Message-ID: Subject: Re: TI: X15 the connected SSD is not detected on Linux next 20221006 tag To: Serge Semin , Praneeth Bajjuri , Arnd Bergmann Cc: Anders Roxell , Serge Semin , Damien Le Moal , open list , Linux ARM , regressions@lists.linux.dev, "open list:LIBATA SUBSYSTEM (Serial and Parallel ATA drivers)" , lkft-triage@lists.linaro.org, Lukas Bulwahn , Niklas Cassel , Carlos Hernandez , Sumit Semwal Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, 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 On Mon, 17 Oct 2022 at 21:22, Serge Semin wrote: > > On Mon, Oct 17, 2022 at 09:43:24AM +0200, Anders Roxell wrote: > > On Fri, 14 Oct 2022 at 16:06, Serge Semin > > wrote: > > > > > > On Fri, Oct 14, 2022 at 11:22:38AM +0200, Anders Roxell wrote: > > > > On Fri, 14 Oct 2022 at 09:53, Damien Le Moal > > > > wrote: > > > > > > > > > > On 10/14/22 16:31, Arnd Bergmann wrote: > > > > > > On Fri, Oct 14, 2022, at 2:22 AM, Damien Le Moal wrote: > > > > > >> On 10/14/22 07:07, Anders Roxell wrote: > > > > > >> [...] > > > > > >>>> 8) > > > > > >>>>> If reverting these patches restores the eSATA port on this board, then you need > > > > > >>>>> to fix the defconfig for that board. > > > > > >>>> > > > > > >>>> OTOH, > > > > > >>>> Anders, enabled the new config CONFIG_AHCI_DWC=y and tried but the > > > > > >>>> device failed to boot. > > > > > >>> > > > > > >>> I thought it would work with enabling CONFIG_AHCI_DWC=y, but it didn't... > > > > > >> > > > > > >> As mentioned in my previous reply to Naresh, this is a new driver added in > > > > > >> 6.1. Your board was working before so this should not be the driver needed > > > > > >> for it. > > > > > >> > > > > > >>> However, reverting patch 33629d35090f ("ata: ahci: Add DWC AHCI SATA > > > > > >>> controller support") > > > > > >>> from next-20221013 was a success, kernel booted and the 'mkfs.ext4' cmd was > > > > > >>> successful. > > > > > >> > > > > > >> Which is very strange... There is only one hunk in that commit that could > > > > > >> be considered suspicious: > > > > > >> > > > > > >> diff --git a/drivers/ata/ahci_platform.c b/drivers/ata/ahci_platform.c > > > > > >> index 9b56490ecbc3..8f5572a9f8f1 100644 > > > > > >> --- a/drivers/ata/ahci_platform.c > > > > > >> +++ b/drivers/ata/ahci_platform.c > > > > > >> @@ -80,9 +80,7 @@ static SIMPLE_DEV_PM_OPS(ahci_pm_ops, ahci_platform_suspend, > > > > > >> static const struct of_device_id ahci_of_match[] = { > > > > > >> { .compatible = "generic-ahci", }, > > > > > >> /* Keep the following compatibles for device tree compatibility */ > > > > > >> - { .compatible = "snps,spear-ahci", }, > > > > > >> { .compatible = "ibm,476gtr-ahci", }, > > > > > >> - { .compatible = "snps,dwc-ahci", }, > > > > > >> { .compatible = "hisilicon,hisi-ahci", }, > > > > > >> { .compatible = "cavium,octeon-7130-ahci", }, > > > > > >> { /* sentinel */ } > > > > > >> > > > > > >> Is your board using one of these compatible string ? > > > > > > > > > > > > The x15 uses "snps,dwc-ahci". I would expect it to detect the device > > > > > > with the new driver if that is loaded, but it's possible that the > > > > > > driver does not work on all versions of the dwc-ahci hardware. > > > > > > > > > > > > Anders, can you provide the boot log from a boot with the new driver > > > > > > built in? There should be some messages from dwc-ahci about finding > > > > > > the device, but then not ultimately working. > > > > > > > > > > > > Depending on which way it goes wrong, the safest fallback for 6.1 is > > > > > > probably to move the "snps,spear-ahci" and "snps,dwc-ahci" compatible > > > > > > strings back into the old driver, and leave the new one only for > > > > > > the "baikal,bt1-ahci" implementation of it, until it has been > > > > > > successfully verified on TI am5/dra7, spear13xx and exynos. > > > > > > > > > > OK. So a fix patch until further tests/debug is completed would be this: > > > > > > > > > > diff --git a/drivers/ata/ahci_dwc.c b/drivers/ata/ahci_dwc.c > > > > > index 8fb66860db31..7a0cbab00843 100644 > > > > > --- a/drivers/ata/ahci_dwc.c > > > > > +++ b/drivers/ata/ahci_dwc.c > > > > > @@ -469,8 +469,6 @@ static struct ahci_dwc_plat_data ahci_bt1_plat = { > > > > > }; > > > > > > > > > > static const struct of_device_id ahci_dwc_of_match[] = { > > > > > - { .compatible = "snps,dwc-ahci", &ahci_dwc_plat }, > > > > > - { .compatible = "snps,spear-ahci", &ahci_dwc_plat }, > > > > > { .compatible = "baikal,bt1-ahci", &ahci_bt1_plat }, > > > > > {}, > > > > > }; > > > > > diff --git a/drivers/ata/ahci_platform.c b/drivers/ata/ahci_platform.c > > > > > index 8f5572a9f8f1..9b56490ecbc3 100644 > > > > > --- a/drivers/ata/ahci_platform.c > > > > > +++ b/drivers/ata/ahci_platform.c > > > > > @@ -80,7 +80,9 @@ static SIMPLE_DEV_PM_OPS(ahci_pm_ops, ahci_platform_suspend, > > > > > static const struct of_device_id ahci_of_match[] = { > > > > > { .compatible = "generic-ahci", }, > > > > > /* Keep the following compatibles for device tree compatibility */ > > > > > + { .compatible = "snps,spear-ahci", }, > > > > > { .compatible = "ibm,476gtr-ahci", }, > > > > > + { .compatible = "snps,dwc-ahci", }, > > > > > { .compatible = "hisilicon,hisi-ahci", }, > > > > > { .compatible = "cavium,octeon-7130-ahci", }, > > > > > { /* sentinel */ } FYI, We have been noticing this problem [a] & [b] on Linux mainline master 6.1.0-rc7 Test error: mkfs.ext4 /dev/disk/by-id/ata-SanDisk_SSD_PLUS_120GB_190702A00D84 failed; job exit Please suggest a way forward on this reported issue on arm32 TI BeagleBoard X15 device. Build and Kernel configs details provided in the metadata section. metadata: git_ref: master git_repo: https://gitlab.com/Linaro/lkft/mirrors/torvalds/linux-mainline git_sha: b7b275e60bcd5f89771e865a8239325f86d9927d git_describe: v6.1-rc7 kernel_version: 6.1.0-rc7 kernel-config: https://builds.tuxbuild.com/2I9I42JhhQqS9GOpFppfRiuqtRW/config build-url: https://gitlab.com/Linaro/lkft/mirrors/torvalds/linux-mainline/-/pipelines/706371149 artifact-location: https://builds.tuxbuild.com/2I9I42JhhQqS9GOpFppfRiuqtRW toolchain: gcc-10 [a] https://lkft.validation.linaro.org/scheduler/job/5892099 [b] https://lore.kernel.org/all/20221017155246.zxal2cfehjgaajcu@mobilestation/ - Naresh