Received: by 10.213.65.68 with SMTP id h4csp3508523imn; Tue, 3 Apr 2018 06:16:21 -0700 (PDT) X-Google-Smtp-Source: AIpwx49nD94SNhBZwFrGVZibqyv3iw29nwpDE0fsll+Ic0hozOdnv2axtuCij161cg4lOc6m+e5g X-Received: by 2002:a17:902:28c4:: with SMTP id f62-v6mr14192685plb.19.1522761381416; Tue, 03 Apr 2018 06:16:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522761381; cv=none; d=google.com; s=arc-20160816; b=yebqHaBOa7ciY/iFOW8fNXgG0SwwJgKA3jRwsgCIrAYOqOw6DlnumcdDHezHKLNash ragpa4lvcw6p12QVmjZnVHpJziit4sNVYuuSOr4Cda0WQZWAxW2q9wGNPEJDn4AQFTQC 1GM24TiDLFqHy0Y8Gf6QLzRhRtHPCkoZoFzMgHsbJX04/oX9IQqy8n0eZrZkWv77hHkg QKO6AwCP/sHY5rji3YF8/FEsVLjPDmhrO20UGTcXjmuoqEpr3FhlxsvcpzDawlTNc1/K jumHpx6cIp6HfEeeKsPW67zz2/Ijxc/xAva6YHprIILmiOUDz47FqV/6Eniemy0aSZBC Apmw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:arc-authentication-results; bh=I8m6nf8dBsFDMNyIRret5zPf/pCnbX44F4AKuCuBoyc=; b=0eKoaTD51/Qlwu+uPcd6A7R/sFZ7H6MdpSnVV/ukD88FPfsuvqroIHap6b1ty5oQ21 RTcUNRwJQJvejPpkrIveSR5dYlumLyloh5jd8B8ZFOQlfnRE8TsjOq1I2RqnF6i14v7Y NL+yc1EANFByKHlCag6cJsGIKk/dbGBuPRl6gtnv4gFpzBXbLeFVXUkEwadxDwKh2Vnj HN4ngabPRjXYnNDoP8zE9H8QJlGvJdR8vFwhZ3CR+pw73zHZ4kIamWEW79SnpILfLIgJ hSawO/PgEnlmCbfmHP04i71uySE0hebr7LjpaNJhim/R115gElOo04ZRAhYDMKhIgVy1 xDrw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=synopsys.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c66si1982439pga.494.2018.04.03.06.16.07; Tue, 03 Apr 2018 06:16:21 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=synopsys.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932302AbeDCNOT (ORCPT + 99 others); Tue, 3 Apr 2018 09:14:19 -0400 Received: from us01smtprelay-2.synopsys.com ([198.182.60.111]:52214 "EHLO smtprelay.synopsys.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932151AbeDCNOS (ORCPT ); Tue, 3 Apr 2018 09:14:18 -0400 Received: from mailhost.synopsys.com (mailhost1.synopsys.com [10.12.238.239]) by smtprelay.synopsys.com (Postfix) with ESMTP id A5E1910C0A41; Tue, 3 Apr 2018 06:14:17 -0700 (PDT) Received: from mailhost.synopsys.com (localhost [127.0.0.1]) by mailhost.synopsys.com (Postfix) with ESMTP id 860445A8B; Tue, 3 Apr 2018 06:14:17 -0700 (PDT) Received: from pt02.synopsys.com (pt02.internal.synopsys.com [10.107.23.240]) by mailhost.synopsys.com (Postfix) with ESMTP id ECCD25A87; Tue, 3 Apr 2018 06:14:16 -0700 (PDT) Received: from [127.0.0.1] (gustavo-e7480.internal.synopsys.com [10.107.25.102]) by pt02.synopsys.com (Postfix) with ESMTP id 27366831D; Tue, 3 Apr 2018 14:14:16 +0100 (WEST) Subject: Re: [PATCH 1/8] bindings: PCI: designware: Example update To: Kishon Vijay Abraham I , "bhelgaas@google.com" , "lorenzo.pieralisi@arm.com" , "Joao.Pinto@synopsys.com" , "jingoohan1@gmail.com" , "robh+dt@kernel.org" , "mark.rutland@arm.com" Cc: "linux-pci@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "devicetree@vger.kernel.org" References: <33aa86ee667e8b435db080b8c683cb5df1bd6544.1522235224.git.gustavo.pimentel@synopsys.com> <36a36857-2d79-2c2d-198d-a3b65cafc768@synopsys.com> <170b150d-d2c6-fee8-17f7-12a3107c13ff@ti.com> From: Gustavo Pimentel Message-ID: <342e7438-ef13-e297-cc51-3df3a43a45d4@synopsys.com> Date: Tue, 3 Apr 2018 14:13:24 +0100 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: <170b150d-d2c6-fee8-17f7-12a3107c13ff@ti.com> Content-Type: text/plain; charset=windows-1252 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Kishon, On 03/04/2018 11:53, Kishon Vijay Abraham I wrote: > Hi, > > On Tuesday 03 April 2018 04:22 PM, Kishon Vijay Abraham I wrote: >> >> >> On Tuesday 03 April 2018 04:03 PM, Gustavo Pimentel wrote: >>> Hi Kishon, >>> >>> On 02/04/2018 06:23, Kishon Vijay Abraham I wrote: >>>> Hi, >>>> >>>> On Wednesday 28 March 2018 05:08 PM, Gustavo Pimentel wrote: >>>>> Changes the IP registers size to accommodate the ATU unroll space. >>>>> >>>>> Replaces "ctrlreg" reg-name by "dbi" to be coherent with similar drivers. >>>>> >>>>> Replaces the pcie base address example by a real pcie base address in use. >>>>> >>>>> Signed-off-by: Gustavo Pimentel >>>>> --- >>>>> Documentation/devicetree/bindings/pci/designware-pcie.txt | 12 ++++++------ >>>>> 1 file changed, 6 insertions(+), 6 deletions(-) >>>>> >>>>> diff --git a/Documentation/devicetree/bindings/pci/designware-pcie.txt b/Documentation/devicetree/bindings/pci/designware-pcie.txt >>>>> index 1da7ade..6300762 100644 >>>>> --- a/Documentation/devicetree/bindings/pci/designware-pcie.txt >>>>> +++ b/Documentation/devicetree/bindings/pci/designware-pcie.txt >>>>> @@ -1,7 +1,8 @@ >>>>> * Synopsys DesignWare PCIe interface >>>>> >>>>> Required properties: >>>>> -- compatible: should contain "snps,dw-pcie" to identify the core. >>>>> +- compatible: >>>>> + "snps,dw-pcie" for RC mode; >>>> >>>> I think irrespective of RC mode or EP mode, "snps,dw-pcie" can be used to >>>> identify the pcie core? >>> >>> I guess so. What you suggest? I was just folling the same guideline present >>> here: https://urldefense.proofpoint.com/v2/url?u=https-3A__lkml.org_lkml_2017_11_3_310&d=DwIC-g&c=DPL6_X_6JkXFx7AXWqB0tg&r=bkWxpLoW-f-E3EdiDCCa0_h0PicsViasSlvIpzZvPxs&m=G1MqB_DY6ZwWtvS60L9PZMHnMe6rClMnrakAyQT_hDc&s=BhQYkrcp6y3QkD23qn1I6lU882BDUfLiXjBVWQ91cmg&e= >> >> Okay, I think you should have >> "snps,dw-pcie-rc", "snps,dw-pcie" for RC mode; >> >> and in the later patch >> "snps,dw-pcie-ep", "snps,dw-pcie" for EP mode; >> Ok, I'll change it. >>> >>>>> - reg: Should contain the configuration address space. >>>>> - reg-names: Must be "config" for the PCIe configuration space. >>>>> (The old way of getting the configuration address space from "ranges" >>>>> @@ -41,11 +42,11 @@ EP mode: >>>>> >>>>> Example configuration: >>>>> >>>>> - pcie: pcie@dffff000 { >>>>> + pcie: pcie@dfc00000 { >>>>> compatible = "snps,dw-pcie"; >>>>> - reg = <0xdffff000 0x1000>, /* Controller registers */ >>>>> - <0xd0000000 0x2000>; /* PCI config space */ >>>>> - reg-names = "ctrlreg", "config"; >>>>> + reg = <0xdfc00000 0x302000>, /* IP registers */ >>>> >>>> which version of synopsys IP is this. I think the ideal thing to do here is to >>>> have a separate register space for iATU. >>> >>> I also agree with that. The unroll iATU was introduced on Synopsys IP version >>> 4.80 and the kernel patch was release on 2016-08-10 >>> https://urldefense.proofpoint.com/v2/url?u=https-3A__patchwork.ozlabs.org_patch_657796_&d=DwIC-g&c=DPL6_X_6JkXFx7AXWqB0tg&r=bkWxpLoW-f-E3EdiDCCa0_h0PicsViasSlvIpzZvPxs&m=G1MqB_DY6ZwWtvS60L9PZMHnMe6rClMnrakAyQT_hDc&s=EgKKDbg4ywCxu4-lG_scYAgPMnxirsjS0uSS7SzBTeM&e= >>> However a separate register space for iATU implies some extra code do handle it >>> (and of course some tests) that don't fit into this patch series, in my point of >>> view. Can this task enter in the backlog in order to be done in another patch >>> series? >> >> Yes sure. I think we should also make sure existing binding doesn't break. I'll remove the any iATU unroll reference or change from this patch to avoid any confusion. > > And IMO we should have a new compatible "snps,dw-pcie-4.80" in order to enable > iATU unroll. > > Thanks > Kishon >