Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp639129rwi; Fri, 14 Oct 2022 06:54:41 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5hWiIn/1AfiSudQ7EdcXsr6dGOOnSjfm6toUN2Fdo0rNksc6cvq10WKuBgDiDVa4CyKdTT X-Received: by 2002:a05:6402:254d:b0:45d:3ed3:8aa9 with SMTP id l13-20020a056402254d00b0045d3ed38aa9mr75992edb.157.1665755681391; Fri, 14 Oct 2022 06:54:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665755681; cv=none; d=google.com; s=arc-20160816; b=mAuyCJieDAYgl3pfHNWzy0C7yuKybH9CPgBVuK7LmtVfuUnnvQQMTcArtdi/Sd1H0D 8PqiqgnYuoDWysH95Oy+kuFkEChcno1MbF00tfg1XScdaoM+2o/LxiL91G+n8ZEBBDZK Qy2Di8rBeAEEBxEDwMNmF6Z1rxi/GZJswHw5sqh5QjllxBWJm+Ewls0gPBuJIacHPS67 Ct9tAzExsICa+sU2BjNITayYyD72cLYDCJkmf36urJjYDQrmz3AFjpfEVAVfDjCGK5uY wSNrobNHDtbxR/TQa5j52v5T8cDvL2h7SKwXD7EKpkDT7SKdUk2pClIC80GHRsUstY5j 3OJA== 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=DFhKs9MrirQaiOZ32oCvGy48XkIsr8wHKoyoiWR3Cp8=; b=yp3qph6X0BhHuo8mHu85gO+/a8CHCGDpkTgZ7ejhiyAxQGnhV3saFvZcPb8B2GeDCw B4vZEnd9WztAR6UQ1ojOd5Ej0d8D5zu1iPsInF3UCLHr/9mKLbb6fSkfBBnCrh0j1KNl 6LtORozrZERekjmD77x2McmUJVexIjXlE7cpWh0+Dmd7cjAN+8YNqpM4Wfol/aNFbbIT Z7R4/JlODxuVT+Wf+zVjcaeNkIeIu699MVgGcgcRWT7nyGFuieS4cSljVzX58psv7Cx7 XnlgpmGVQh7BbEIwnEtQCFrpQU0mJLVkuV00b9+OBf3VgAUes/++3NnhP9nPxD/ffzMm x+Rg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baikalelectronics.ru header.s=post header.b=GMMV3fVo; 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=REJECT sp=REJECT dis=NONE) header.from=baikalelectronics.ru Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id rn5-20020a170906d92500b007801a579899si1945944ejb.448.2022.10.14.06.54.15; Fri, 14 Oct 2022 06:54:41 -0700 (PDT) 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=@baikalelectronics.ru header.s=post header.b=GMMV3fVo; 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=REJECT sp=REJECT dis=NONE) header.from=baikalelectronics.ru Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229872AbiJNNpQ (ORCPT + 99 others); Fri, 14 Oct 2022 09:45:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42776 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229673AbiJNNpN (ORCPT ); Fri, 14 Oct 2022 09:45:13 -0400 Received: from post.baikalelectronics.com (post.baikalelectronics.com [213.79.110.86]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id DADAC61107; Fri, 14 Oct 2022 06:45:03 -0700 (PDT) Received: from post.baikalelectronics.com (localhost.localdomain [127.0.0.1]) by post.baikalelectronics.com (Proxmox) with ESMTP id 6861EE0EAF; Fri, 14 Oct 2022 16:36:24 +0300 (MSK) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= baikalelectronics.ru; h=cc:cc:content-type:content-type:date :from:from:in-reply-to:message-id:mime-version:references :reply-to:subject:subject:to:to; s=post; bh=DFhKs9MrirQaiOZ32oCv Gy48XkIsr8wHKoyoiWR3Cp8=; b=GMMV3fVoX7j4TBDp+8qrYzp29d4RSyIj77yI T73LVMMS/6rs1XvOtSleAl2gKkSkw6nuS90aZf5Ixzn03N2tqOqPJj19ukNQCY/x aEW1PYu6dNVBbr4HwudSYXy0tMQjHqWdgXGc5wyFxCYs+ouKMf1lBUuhrb8DKcCn hwTs38A= Received: from mail.baikal.int (mail.baikal.int [192.168.51.25]) by post.baikalelectronics.com (Proxmox) with ESMTP id 51CC6E0E6A; Fri, 14 Oct 2022 16:36:24 +0300 (MSK) Received: from mobilestation (192.168.168.10) by mail (192.168.51.25) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Fri, 14 Oct 2022 16:36:24 +0300 Date: Fri, 14 Oct 2022 16:36:23 +0300 From: Serge Semin To: Damien Le Moal , Anders Roxell CC: Serge Semin , Naresh Kamboju , open list , Linux ARM , , "open list:LIBATA SUBSYSTEM (Serial and Parallel ATA drivers)" , , Lukas Bulwahn , Niklas Cassel , Arnd Bergmann Subject: Re: TI: X15 the connected SSD is not detected on Linux next 20221006 tag Message-ID: <20221014133623.l6w4o7onoyhv2q34@mobilestation> References: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: X-Originating-IP: [192.168.168.10] X-ClientProxiedBy: MAIL.baikal.int (192.168.51.25) To mail (192.168.51.25) X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_PASS,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 Hello Damien, Anders On Fri, Oct 14, 2022 at 09:22:34AM +0900, 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 ? No. My board isn't using them. As a quick-fix they could be got back to the generic driver. But please see below. > > Serge ? > Any idea ? The only difference between ahci_platform.c and ahci_dwc.c relevant to these compatibles is in calling the next methods: ahci_dwc_check_cap(hpriv); ahci_dwc_init_timer(hpriv); ahci_dwc_init_dmacr(hpriv); As a first step on debugging the problem I would comment them out and try to boot the system with the snps,dwc-ahci device being probed by the ahci_dwc.c driver. Let's try to test that out first. Then we can narrow down the scale by commenting out one of these methods and then up to some parts of it. What do you think? -Sergey > > -- > Damien Le Moal > Western Digital Research > >