Received: by 2002:a05:7412:bbc7:b0:fc:a2b0:25d7 with SMTP id kh7csp733131rdb; Fri, 2 Feb 2024 02:15:20 -0800 (PST) X-Google-Smtp-Source: AGHT+IGfXKRTyGpqZnAAG2UP4RJ+3o1RJxB/u/6Polk4SemQISdjeezcVIHkolqYi2Z4w1xZXcmZ X-Received: by 2002:a05:6a00:1491:b0:6dd:892f:e2a6 with SMTP id v17-20020a056a00149100b006dd892fe2a6mr2404484pfu.23.1706868920332; Fri, 02 Feb 2024 02:15:20 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706868920; cv=pass; d=google.com; s=arc-20160816; b=ISN7XNDiKP1urAndQHFy8aDU45Kmju14tZ91h2AlIijlf5GTywaaNmUs9jc781cnRk ESMap2iTLE+ae/VvXxW4iKAI+iJrrVhktL0xD0F/MS3tKK9khpQkig/dY/ob0E6Wcyu2 Soc8oAbmN/d9sUwCD4W69kaVpVpWMHOgLMIb0gppjsHVPthY6BYUIgvElRSMmT1Zmtf5 cwiYx0p97zkF0uqK7/nn5L57fBZhMHEBmWzG17NeyqtXfulNbBX7as1A06sZCqdjcHwy Y4VPpnvGBnlLeRLAT7fHHARoy5+MV5YLHMwJDfPoB5qA/8EXPwUrgiUnHJuDFqhOJhYo 0JPg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :references:message-id:subject:cc:to:from:date:dkim-signature; bh=oLfN6KoWDp7SJJDtG51IU5F3us3n4E7e6QFVHVgsnuY=; fh=OSXEQsGxWQbugu9alOkj1iHWtMOEL7JDSpbZniZaWFE=; b=bkLBijz6o50AABVnzbjtfRaEFQX6pqerf5g2Db0/gxpbaLFsUHwFL0+KJW5owj3rJI 1JHefmCh8PP1AL78eSnciDSXSaFqsTKwSJnKu22v5KMT+M5xv96YXjjK4hfRQAnAEbAx dbpZ8XsRXoI6R09hQUPoMFq9UMVnSvuRfIIagSglH0VgAbeqQ0bkObnyiyxeG6k1pPcU De9lssASEzfej4syKxM4VtsZEhljsARpBz/oxVNObf1SIJLZhrkWAqgT5LoTISsgMsBY /rt6FtOZu1s14O/AmvmsE9Ungefq02vQEOIUmFQNE1abrV0NUWbVbbkFVB8WvLkGbpWt GHxg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=zyYhOuUI; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-49613-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-49613-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org X-Forwarded-Encrypted: i=1; AJvYcCXuIrnTf95EWtiNNqJZjgAC6cv6aMxyTTTvqKhEW0vLba/v4Lml0U3L1OIrNAws4RS6JtMijO9QjDbh4b7uuTG9ENR3Mg+AWGTnRb2e3w== Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id z66-20020a626545000000b006de169e5800si1288312pfb.373.2024.02.02.02.15.19 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 02 Feb 2024 02:15:20 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-49613-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=zyYhOuUI; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-49613-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-49613-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 82C7BB334F4 for ; Fri, 2 Feb 2024 09:49:04 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 682B977F15; Fri, 2 Feb 2024 09:48:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="zyYhOuUI" Received: from mail-oi1-f176.google.com (mail-oi1-f176.google.com [209.85.167.176]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D96FE5578F for ; Fri, 2 Feb 2024 09:48:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.176 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706867309; cv=none; b=i+zppqRCdd4aAtirmiNfPzHPPoM+SvBgCkBIZsj6vmnKVjVqn8hiYJshLhP+xtW/nOXnTtEmMtWSbhpVKhne8vDw/EYqMIN0qiAPjEuYZVNZgYE+ehXQ5e72i+cRx6pgemBOFkfjZcFd95Afx6egc1jY6N5sxxLYqI7D6fK6eJg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706867309; c=relaxed/simple; bh=kzPaULzFvPF3PMCdaeoG/nw2+KHJM6ciXwfij0rgIrA=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=HwnZwUkkcFEPZzdrzNfoLz18YnRDuNO41leiwkuAktFHpGeT25wzlYieviPwNBmRktOb8TOZHxVj4jNbstHSFrCl1Woy9GFh6YKyOZMqE5+kAcrGeeL8dGC72jpn3FCgIHXbrot1KNK2TdgvAxM+ahW5OowV+NZFk+MNq7tWYqM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=zyYhOuUI; arc=none smtp.client-ip=209.85.167.176 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-oi1-f176.google.com with SMTP id 5614622812f47-3be6ff4f660so1101930b6e.3 for ; Fri, 02 Feb 2024 01:48:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1706867307; x=1707472107; darn=vger.kernel.org; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date:from:to :cc:subject:date:message-id:reply-to; bh=oLfN6KoWDp7SJJDtG51IU5F3us3n4E7e6QFVHVgsnuY=; b=zyYhOuUIfg4SYrYPE96gcl5STc37IHaThYkZiqNFg+Dqd5JzhSQPKepEFhcJZBDIoN D+sFuHqJQHfNYiquayOiF1Sg9M6A8VrmOppSoq8vXUmtfnawR7UMJ5q0FSva+dF0sxAk Yeb3pKR30MU8EXqQO8T2jD9aWimtzldXF59sQUmx+lYZPjvvxiJpQFtplBO+kz7udth1 0PGuwOQde2L07p/9StfQQacmGqwMU0zO5R2odHGwbi8ZjexwaiLmxb3zSdUEbnv2cHqV H5C5CGHIG+5THdmkFBijOgHg1/7+m5u4QYhXybMz/65ee0jQk+oZ0KGNYys6Qot0YXpF iwcA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706867307; x=1707472107; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=oLfN6KoWDp7SJJDtG51IU5F3us3n4E7e6QFVHVgsnuY=; b=JUcSINU2h0tbYYfAP3bcoO7Nq8sJ/78N0HZp5hmoopPTasKubdxMBOLKenEqA3gXtJ wlYmrfM8kfMrQXYtEX5IkZB0tauWAXt0jb1TeHJlEJIUcudgGNbpHpcUhYk/fCWK5QCV dsbUxF0k3n6wtlYDqqXvIJZwSEzD7duiYvGjCh6r/OYD3IWXc1YF/HEqKwJCMLn0+FBU U5xs5LMerOm619MAshW2plFJ1puIHeXyFbHj5q7ssVfzr2UlgPcpTk9x/IpW2QwLH9pm D8gdRbCxrWUrhdrr9O565YcfcdVc6mNL4xQPDXqje6khBF3T+7lNKRB3jopMTA87MsLA alyg== X-Gm-Message-State: AOJu0Ywpb9MCP9kQiaUFU+37l8lipexzOh+Loa3Qjd46nJwNKTdjGkgI 3+smLHEfdEg1utR6MXkxeriXeDMkhzL9Mz4PVbsN0I18+dr+uigyuzrLHFfpvXMXmdNzKk17bpA = X-Received: by 2002:a05:6808:23d1:b0:3bf:c37e:c781 with SMTP id bq17-20020a05680823d100b003bfc37ec781mr503171oib.4.1706867305593; Fri, 02 Feb 2024 01:48:25 -0800 (PST) X-Forwarded-Encrypted: i=0; AJvYcCVvCIbeHADoIhg8Tj5FXRQdduW2c/1/rso5VvJ20Cf6fzW2VgAr7yFE8PSYVZ+uxHjOk5ziT9qoqsKqtkV32Hql+Z2pffTMqLAP01Z4Q6T3qVJ05O5S/eqhQQZQkPT5R04GuRduEJjhM4HYFMb5vacrf6B4TWoc4+gAJOU4esRMzTNPpTaFvNZ7wl8Up5NhtSH2FvvJwmM8Z5SEiR5ZtDpyVFI9QnJgM2/CrVtK6JXjQw6VX1Jc8FQ5XjocWVBcnPMQFc79PSCxAsxFGKKfz5rwE231hB+Y0SzYoGXgMQPPFqkAa5CX/0Y= Received: from thinkpad ([120.56.198.122]) by smtp.gmail.com with ESMTPSA id d9-20020a056a0010c900b006ddb77d443asm1174306pfu.209.2024.02.02.01.48.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 02 Feb 2024 01:48:25 -0800 (PST) Date: Fri, 2 Feb 2024 15:18:20 +0530 From: Manivannan Sadhasivam To: Abel Vesa Cc: Konrad Dybcio , Bjorn Andersson , Lorenzo Pieralisi , Krzysztof =?utf-8?Q?Wilczy=C5=84ski?= , Rob Herring , Bjorn Helgaas , linux-pci@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2 2/2] PCI: qcom: Add X1E80100 PCIe support Message-ID: <20240202094820.GA8020@thinkpad> References: <20240129-x1e80100-pci-v2-0-a466d10685b6@linaro.org> <20240129-x1e80100-pci-v2-2-a466d10685b6@linaro.org> <30360d96-4513-40c4-9646-e3ae09121fa7@linaro.org> <20240202084806.GF2961@thinkpad> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: On Fri, Feb 02, 2024 at 11:31:50AM +0200, Abel Vesa wrote: > On 24-02-02 10:55:28, Abel Vesa wrote: > > On 24-02-02 14:18:06, Manivannan Sadhasivam wrote: > > > On Fri, Feb 02, 2024 at 10:41:03AM +0200, Abel Vesa wrote: > > > > On 24-02-01 20:20:40, Konrad Dybcio wrote: > > > > > On 29.01.2024 12:10, Abel Vesa wrote: > > > > > > Add the compatible and the driver data for X1E80100. > > > > > > > > > > > > Signed-off-by: Abel Vesa > > > > > > --- > > > > > > drivers/pci/controller/dwc/pcie-qcom.c | 1 + > > > > > > 1 file changed, 1 insertion(+) > > > > > > > > > > > > diff --git a/drivers/pci/controller/dwc/pcie-qcom.c b/drivers/pci/controller/dwc/pcie-qcom.c > > > > > > index 10f2d0bb86be..2a6000e457bc 100644 > > > > > > --- a/drivers/pci/controller/dwc/pcie-qcom.c > > > > > > +++ b/drivers/pci/controller/dwc/pcie-qcom.c > > > > > > @@ -1642,6 +1642,7 @@ static const struct of_device_id qcom_pcie_match[] = { > > > > > > { .compatible = "qcom,pcie-sm8450-pcie0", .data = &cfg_1_9_0 }, > > > > > > { .compatible = "qcom,pcie-sm8450-pcie1", .data = &cfg_1_9_0 }, > > > > > > { .compatible = "qcom,pcie-sm8550", .data = &cfg_1_9_0 }, > > > > > > + { .compatible = "qcom,pcie-x1e80100", .data = &cfg_1_9_0 }, > > > > > > > > > > I swear I'm not delaying everything related to x1 on purpose.. > > > > > > > > > > > > > No worries. > > > > > > > > > But.. > > > > > > > > > > Would a "qcom,pcie-v1.9.0" generic match string be a good idea? > > > > > > > > Sure. So that means this would be fallback compatible for all the following platforms: > > > > > > > > - sa8540p > > > > - sa8775p > > > > - sc7280 > > > > - sc8180x > > > > - sc8280xp > > > > - sdx55 > > > > - sm8150 > > > > - sm8250 > > > > - sm8350 > > > > - sm8450-pcie0 > > > > - sm8450-pcie1 > > > > - sm8550 > > > > - x1e80100 > > > > > > > > Will prepare a patchset. > > > > > > > > > > NO. Fallback should be based on the base SoC for this platform. > > > > Right, so since the SM8250 is the one that has the core version 1.9.0, > > should we just the sm8550 compatible as fallback for all other ones. > > > > Yes, I know that there is SM8150, which has core version 1.5.0, but it > > is still 1.9.0 compatible. > > > > Or maybe we should rename the config to 1_5_0 and have the sm8150 > > compatible as fallback for all these platforms. > > > > Actually no, that's a bad idea. I would break DT backwards compatibility. > Yes! > I'll just drop the compatible from driver and add fallback in DT for > X1E80100. > Sounds good. - Mani -- மணிவண்ணன் சதாசிவம்