Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp3302765pxj; Mon, 14 Jun 2021 20:29:49 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwl9MOTXeISXpYrQ57AETtrPFS9vgkBEESPy3a71LPMrr3s1OIITda5xVJERJMEEawrXeLs X-Received: by 2002:a5d:9c88:: with SMTP id p8mr17094171iop.31.1623727789442; Mon, 14 Jun 2021 20:29:49 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1623727789; cv=pass; d=google.com; s=arc-20160816; b=x8MOoRkY3x5O9747bVHFmdFfNO9E7PsK+iy8EfeYAEuUTBLPOyXzQzKhi8bqBXYEJ8 o/mqspDctR1auttrIYLy7B4xb7WUQQny13WyLHa7WD0SFtHE4bq8V56ZsqqN04fCGG2y KjVUYDYlGS0MYEUQGGnfbYwQDfuh6SCinn39jZlGJ7VbquWryPUgMUoXWtYpb+a0QMxY h/gzIM/5KhFSEhHTDRLf4Y62rbiKyHPkvsRwc/vUqt7VARZlTm1fLl1uNDgimj4cpzSP tk35XJA/ziaWuU+IfkpHxjR3N1sfZu+BxzXpBzr8C1dPUqcDhF/JilKW/1EMEQp+4gwU XH3w== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=B0xqGiKolo13urEJyjMTTwg6+3Zu0nDGlgF//K9DoPY=; b=CzQkL9sOqKq1C6DrnsYS+qJ9AjSpSP9m5jryMsuevFwoKZfacZMJE7K453qqrSfqQd EKKtnN35MK9dD1nH8XETHVBMQ/7HozOkmhllH90xgvlkbw/Ecaa1NEkL6kcCaBRLGOy5 gihR63xaG1Ry/nkt/0G463s2oOJqhbO/jo0KkcPJNjISkM2sBBOKJpuZLubuiWwG0x6W af2ssO1giZNF3Zpt65Txn+aBUIchGkbcHVFU0uzH0lBP28xgM+Nq1oOqn4UJVFaqab64 idPXk5jd9mN18kY9gBXImG2e8/7MdEQDNKwgLRy4f9pZ5qKj73l+0/88PJcQ4IJxGAwF Ee4Q== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@Nvidia.com header.s=selector2 header.b=FMT2MvGI; arc=pass (i=1 spf=pass spfdomain=nvidia.com dmarc=pass fromdomain=nvidia.com); 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=nvidia.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g12si16296675ilf.112.2021.06.14.20.29.37; Mon, 14 Jun 2021 20:29:49 -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=@Nvidia.com header.s=selector2 header.b=FMT2MvGI; arc=pass (i=1 spf=pass spfdomain=nvidia.com dmarc=pass fromdomain=nvidia.com); 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=nvidia.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229931AbhFODah (ORCPT + 99 others); Mon, 14 Jun 2021 23:30:37 -0400 Received: from mail-mw2nam12on2073.outbound.protection.outlook.com ([40.107.244.73]:58744 "EHLO NAM12-MW2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S229609AbhFODah (ORCPT ); Mon, 14 Jun 2021 23:30:37 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=n7LtDsI72P4AaCzfX6PHe5NDg/KBLoEvMFymJOtxtTyD9j3HZM8Rdg5KvA1BKS7/cPn8ze6dkJCnbg9TVIP3/P+60K1df0WQWEtHz5Hx1G5GTO91RUHgVWrQweIXhzKT771mcbG7KppF0PfNnYpn+oBC9kpHbtXPiWavddmLlnZjQ+i/S1/3941CiBVbz1wn/6izEERrQedy+toWnJg3gKgm+udMTXQPM2+teLs/1yesQaA+pU4KN6UAhKmfQdkiodnxUy+MEs3prhfG002FMR/iXnLCeuwNBt/u0x0qGSwk2575TF97d0rU48oDY1H21KeCxA9TajgvepRJMQOp9g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=B0xqGiKolo13urEJyjMTTwg6+3Zu0nDGlgF//K9DoPY=; b=XBO839s5thxMOxRFFd0nEj2GK/8UmGig/hkIPoPlKeBhMPz/9cO0UDC2IQiE1dLBGFsI0owZZO+FGtL1wJA+sJT/tZ8rkWDFFRJJFlYavdq0+lO1tV+oAkZUPP24unryYIK5vUX8q/NUkDsNHoC436CosrTchr1CT2gVA+QXGaB6fEkjMWtsi4dKdsCH05JW/ZiYHqDuIlb9TyS8MobNQvVfk+6DGqhfGhBz7tUmJXV+FvlQwd/4nEts+xvz9ytuJyki8+V9BiEaGj4crIxIC8B/J6uXIcS85QNaYDDyDn8RBA5REkw8dkB3QBi3qswdB3oAg/lLeMGZXL5C+LufVA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.112.34) smtp.rcpttodomain=synopsys.com smtp.mailfrom=nvidia.com; dmarc=pass (p=none sp=none pct=100) action=none header.from=nvidia.com; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Nvidia.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=B0xqGiKolo13urEJyjMTTwg6+3Zu0nDGlgF//K9DoPY=; b=FMT2MvGI5VRjdcYgXMo+yfJ2nbgS5y8fxru3SVXjAquIgLXLqG+CooMR5nSsjFkzYcnJ9Y9h6HkVoXTce5pu6185jSGOFyJJmJLfH6JlPOAqR/Fkm+JnzCjXKjzcxWtrs/pV3oZvvZRzfrmxbX5IXxDewrDJID4yp7mwzKHEBfo5tdodztNBkTKXunHtCOXR2v71lGLImTm7s1Q22yUEiUqsfmBaeHYSBP0K76IfYj47Tto4pS7AZYZ+lzA0XOB3Z1vnxobYa5EuQRlHIkxbsGEjShJDAmV1/limYY+T5Npq2HVYUJV03ZMZE4pWUSEAQW0TKHWDAvCG4hMEq4ZfOg== Received: from BN8PR12CA0025.namprd12.prod.outlook.com (2603:10b6:408:60::38) by DM5PR12MB1931.namprd12.prod.outlook.com (2603:10b6:3:109::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4219.21; Tue, 15 Jun 2021 03:28:32 +0000 Received: from BN8NAM11FT006.eop-nam11.prod.protection.outlook.com (2603:10b6:408:60:cafe::62) by BN8PR12CA0025.outlook.office365.com (2603:10b6:408:60::38) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4219.21 via Frontend Transport; Tue, 15 Jun 2021 03:28:32 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 216.228.112.34) smtp.mailfrom=nvidia.com; synopsys.com; dkim=none (message not signed) header.d=none;synopsys.com; dmarc=pass action=none header.from=nvidia.com; Received-SPF: Pass (protection.outlook.com: domain of nvidia.com designates 216.228.112.34 as permitted sender) receiver=protection.outlook.com; client-ip=216.228.112.34; helo=mail.nvidia.com; Received: from mail.nvidia.com (216.228.112.34) by BN8NAM11FT006.mail.protection.outlook.com (10.13.177.21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.4219.21 via Frontend Transport; Tue, 15 Jun 2021 03:28:31 +0000 Received: from [10.25.75.2] (172.20.187.5) by HQMAIL107.nvidia.com (172.20.187.13) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Tue, 15 Jun 2021 03:28:28 +0000 Subject: Re: Query regarding the use of pcie-designware-plat.c file To: Thierry Reding , "bhelgaas@google.com" , "lorenzo.pieralisi@arm.com" CC: Gustavo Pimentel , "robh+dt@kernel.org" , "amurray@thegoodpenguin.co.uk" , "jingoohan1@gmail.com" , Joao Pinto , Jonathan Hunter , Krishna Thota , "linux-pci@vger.kernel.org" , "linux-kernel@vger.kernel.org" References: <34650ed1-6567-3c8f-fe29-8816f0fd74f2@nvidia.com> From: Vidya Sagar Message-ID: <26a86c55-7c35-484a-2e6f-9d5c36b078f4@nvidia.com> Date: Tue, 15 Jun 2021 08:58:26 +0530 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.10.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset="windows-1252"; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [172.20.187.5] X-ClientProxiedBy: HQMAIL105.nvidia.com (172.20.187.12) To HQMAIL107.nvidia.com (172.20.187.13) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 2e21e2c1-3005-41fc-310b-08d92fada67e X-MS-TrafficTypeDiagnostic: DM5PR12MB1931: X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:10000; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: Zz9UIzt1ZgEDU7ClKTaDlw0UcW4I5/pE9ChAOPMRDY5NJNiZ4eHva1oFKUYJYOnBrDwxQT8DJUfyUaQ60CHxyEnYvg12Negl8cMdeJIgxHtI1FUOsgc18AYZJzgIzRtOKJfhtMN9LMTcojZabmM2pAowJUFC1LtPkdCy2oTcGknf9FroCj+IqDg1/BsPaOZ/GUvh/tkmRPljFlZMCHuuQ9cVj0ypP7AYKdSh+QYyUCRlmlW9QOaT+/5myFeHwfEEemYrt+BQYG9fF1Qb7VLV1BE43MkkHpPqfdBYZ6Noo+lc2M9tJIJKIZ5DGRToWmFQvNadVrhjgwxkTBPJxhJe96J+IoTLfVb63ytYfjVSGSwLCesSvOlq4Of4TgpraAfLigECSaftlD4nXgEXjPpQwQHGCjQzFZF9+m9DODAfqFL7mW443LipGZHTDFGDV/6EeucHvAqqr9xu60GO+soshTcaUDQizgUV0Ohcfk8ADo/f3LtHwclm6XfuPFvfn1uBDCpdwiO+ezp0UZecP2OlFpufbcuMrNik1RmufqSAq4ydyRi9hsXdlibMh6ciqMl9vf68757E77+MeHNz1EJi7ZEbBCNHUvnpvOQsrJYdXTw03N7FuMbRLVa2wG+AIi8VbdqdEBDR27UjPQmzmj89Qim8EkIkxuyntSJwqRqjO7GhbHtR2T/e8AtRP6w5yPWL X-Forefront-Antispam-Report: CIP:216.228.112.34;CTRY:US;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:mail.nvidia.com;PTR:schybrid03.nvidia.com;CAT:NONE;SFS:(4636009)(346002)(396003)(376002)(136003)(39860400002)(46966006)(36840700001)(8936002)(4326008)(31696002)(70586007)(31686004)(82740400003)(53546011)(426003)(336012)(26005)(47076005)(36860700001)(16526019)(70206006)(186003)(2616005)(110136005)(316002)(2906002)(86362001)(16576012)(5660300002)(54906003)(478600001)(36906005)(8676002)(356005)(36756003)(82310400003)(7636003)(43740500002);DIR:OUT;SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 15 Jun 2021 03:28:31.6972 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 2e21e2c1-3005-41fc-310b-08d92fada67e X-MS-Exchange-CrossTenant-Id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=43083d15-7273-40c1-b7db-39efd9ccc17a;Ip=[216.228.112.34];Helo=[mail.nvidia.com] X-MS-Exchange-CrossTenant-AuthSource: BN8NAM11FT006.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR12MB1931 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Bjorn / Lorenzo, Could you please comment on the options proposed by Thierry? - Vidya Sagar On 6/9/2021 3:19 PM, Thierry Reding wrote: > On Wed, Jun 09, 2021 at 10:56:48AM +0530, Vidya Sagar wrote: >> >> >> On 6/9/2021 2:47 AM, Gustavo Pimentel wrote: >>> External email: Use caution opening links or attachments >>> >>> >>> Hi Vidya, >>> >>> The pcie-designware-plat.c is the driver for the Synopsys PCIe RC IP >>> prototype. >> Thanks for the info Gustavo. >> But, I don't see any DT file having only "snps,dw-pcie" compatibility >> string. All the DT files that have "snps,dw-pci" compatibility string also >> have their platform specific compatibility string and their respective host >> controller drivers. Also, it is the platform specific compatibility string >> that is used for binding purpose with their respective drivers and not the >> "snps,dw-pcie". So, wondering when will pcie-designware-plat.c be used as >> there is not DT file which has only "snps,dw-pcie" as the compatibility >> string. > > Sounds to me like we have two options: > > 1. If there's indeed real hardware that's identified by the existing > "snps,dw-pcie" compatible string, then it's wrong for other devices > to list that in their compatible string because they are likely not > compatible with that (i.e. they might be from a register point of > view, but at least from an integration point of view they usually > differ). > > 2. If "snps,dw-pcie" is meant to describe the fact that these are all > based off the same IP but may be differently integrated, then there > should be no driver matching on that compatible string. > > Option 2 is not very robust because somebody could easily add a matching > driver at some point in the future. Also, if we don't match on a > compatible string there's not a lot of use in listing it in DT in the > first place. > > So I think option 1 would be preferred. > > Thierry >