From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.4 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,NICE_REPLY_A,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id E3697C4741F for ; Wed, 4 Nov 2020 09:50:37 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 8080B20781 for ; Wed, 4 Nov 2020 09:50:37 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=nvidia.com header.i=@nvidia.com header.b="sPRAHZSM" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729010AbgKDJug (ORCPT ); Wed, 4 Nov 2020 04:50:36 -0500 Received: from hqnvemgate25.nvidia.com ([216.228.121.64]:12108 "EHLO hqnvemgate25.nvidia.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726029AbgKDJug (ORCPT ); Wed, 4 Nov 2020 04:50:36 -0500 Received: from hqmail.nvidia.com (Not Verified[216.228.121.13]) by hqnvemgate25.nvidia.com (using TLS: TLSv1.2, AES256-SHA) id ; Wed, 04 Nov 2020 01:50:34 -0800 Received: from [10.26.45.122] (10.124.1.5) by HQMAIL107.nvidia.com (172.20.187.13) with Microsoft SMTP Server (TLS) id 15.0.1473.3; Wed, 4 Nov 2020 09:50:28 +0000 Subject: Re: [PATCH 0/3] Add support to handle prefetchable memory To: Thierry Reding , Jingoo Han CC: Vidya Sagar , "gustavo.pimentel@synopsys.com" , "lorenzo.pieralisi@arm.com" , "bhelgaas@google.com" , "amurray@thegoodpenguin.co.uk" , "robh@kernel.org" , "linux-pci@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "kthota@nvidia.com" , "mmaddireddy@nvidia.com" , "sagar.tv@gmail.com" References: <20201023195655.11242-1-vidyas@nvidia.com> <20201026123012.GA356750@ulmo> From: Jon Hunter Message-ID: Date: Wed, 4 Nov 2020 09:50:26 +0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: <20201026123012.GA356750@ulmo> Content-Type: text/plain; charset="windows-1252" Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [10.124.1.5] X-ClientProxiedBy: HQMAIL105.nvidia.com (172.20.187.12) To HQMAIL107.nvidia.com (172.20.187.13) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nvidia.com; s=n1; t=1604483434; bh=x0tsrQWHp+jRS8jI31fiEmMu3MtZ85XlMJrfLIuois4=; h=Subject:To:CC:References:From:Message-ID:Date:User-Agent: MIME-Version:In-Reply-To:Content-Type:Content-Language: Content-Transfer-Encoding:X-Originating-IP:X-ClientProxiedBy; b=sPRAHZSMFhbGefZd6xoA+fYxy/sXh0jELLoZLWHeQsnkGdV/i0os/CoVU7m5hm/Pz z5ytkNQWoi4pxPsQqNsLf2l/+C1Qltkkq6LI5l6M76UkB5UPdWt2M78DF+7JtXWN4n rF0JsuqgymBpgTr5Cnm0AoESerDHPkHdqfpV1xKod2kkLj2cYDSNxMikMONEkkiblP 6/KJq+3XGnsxMU6Br6n162ZAmGlAg6JvV58hFmsttuYN0WI+Snh7z00b7F1Mqn0Xb7 v8jNEl37rXqFmFSneeUEkOy6iFLY0cZD13k0dkqrsTiHAHHDB6CSKHfAh3vXGvzPnk Jg62H+qdzy3nw== Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 26/10/2020 12:32, Thierry Reding wrote: > On Sat, Oct 24, 2020 at 04:03:41AM +0000, Jingoo Han wrote: >> On 10/23/20, 3:57 PM, Vidya Sagar wrote: >>> >>> This patch series adds support for configuring the DesignWare IP's ATU >>> region for prefetchable memory translations. >>> It first starts by flagging a warning if the size of non-prefetchable >>> aperture goes beyond 32-bit as PCIe spec doesn't allow it. >>> And then adds required support for programming the ATU to handle higher >>> (i.e. >4GB) sizes and then finally adds support for differentiating >>> between prefetchable and non-prefetchable regions and configuring one of >>> the ATU regions for prefetchable memory translations purpose. >>> >>> Vidya Sagar (3): >>> PCI: of: Warn if non-prefetchable memory aperture size is > 32-bit >>> PCI: dwc: Add support to program ATU for >4GB memory aperture sizes >>> PCI: dwc: Add support to handle prefetchable memory mapping >> >> For 2nd & 3rd, >> Acked-by: Jingoo >> But, I still want someone to ack 1st patch, not me. >> >> To Vidya, >> If possible, can you ask your coworker to give 'Tested-by'? It will be very helpful. >> Thank you. > > On next-20201026 (but also going back quite a while) I'm seeing this > during boot on Jetson AGX Xavier (Tegra194): > > [ 3.493382] ahci 0001:01:00.0: version 3.0 > [ 3.493889] ahci 0001:01:00.0: SSS flag set, parallel bus scan disabled > [ 4.497706] ahci 0001:01:00.0: controller reset failed (0xffffffff) > [ 4.498114] ahci: probe of 0001:01:00.0 failed with error -5 > > After applying this series, AHCI over PCI is back to normal: > > [ 3.543230] ahci 0001:01:00.0: AHCI 0001.0000 32 slots 1 ports 6 Gbps 0x1 impl SATA mode > [ 3.550841] ahci 0001:01:00.0: flags: 64bit ncq sntf led only pmp fbs pio slum part sxs > [ 3.559747] scsi host0: ahci > [ 3.561998] ata1: SATA max UDMA/133 abar m512@0x1230010000 port 0x1230010100 irq 63 > > So for the series: > > Tested-by: Thierry Reding FWIW ... Tested-by: Jon Hunter Cheers Jon -- nvpublic