Received: by 2002:a05:7412:cfc7:b0:fc:a2b0:25d7 with SMTP id by7csp2397795rdb; Wed, 21 Feb 2024 06:35:37 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCWKaB+P2qJatP4206RtI6csNvGpRMaxS1s8OzUmKBm+STAJ5qVsc+49SlKdQX97LDmEZ8EInPyJfG0DHZC9o5yRbAkEALOtup/A/EOSLg== X-Google-Smtp-Source: AGHT+IGLI9B5rKTV9RGS58GgFkvCq8WaCgHSeCcc2KfuslgLSlvhi9/xqCzAUeAxw5Vs+lAmBDgh X-Received: by 2002:a0c:da88:0:b0:68f:a7ff:1106 with SMTP id z8-20020a0cda88000000b0068fa7ff1106mr1768181qvj.13.1708526136993; Wed, 21 Feb 2024 06:35:36 -0800 (PST) Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id gc14-20020a056214230e00b0068f7f227a64si5556633qvb.488.2024.02.21.06.35.36 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 21 Feb 2024 06:35:36 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-74905-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=FY0TNFGD; arc=fail (body hash mismatch); spf=pass (google.com: domain of linux-kernel+bounces-74905-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-74905-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 92A6E1C22F83 for ; Wed, 21 Feb 2024 14:35:36 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A889A7F7FC; Wed, 21 Feb 2024 14:35:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="FY0TNFGD" Received: from mail-ej1-f49.google.com (mail-ej1-f49.google.com [209.85.218.49]) (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 514667F7EA for ; Wed, 21 Feb 2024 14:35:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.49 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708526129; cv=none; b=Zn9wygrZy+1zEWba291Ijm10mipO2RrN+6SsCwdevo89cX0KWeLqBZmlYNJMvDgdrbQDukAIJXJH+xZSPGfCbohSz6QuZrQuc08aopXJu07bfUyG0s1JG/MYtlGVOIQbVc5vA1frM5gw5wkf+VCt127mX6eeQ+X/Paqd4VP7+Cg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708526129; c=relaxed/simple; bh=gPjB+RDXPuCjeR4Zvji9FM6UPTN7zM11Ylf5UeRzCcw=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=hrUZT60e93TfK8D7JvuKrcDdjyyJqxJXIcbc7tiOY+eHlrjQ7UdrynFRohVz+O8z6erpuR/71eIswBFX0qugkm5zg7H9nMnXOGrFkTdh6WOM/zp/hgZL7souW/JxwcoSIogkSYGTKlZEy3win8UAgMq/8SsZ9vnUKh1gJyblFl8= 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=FY0TNFGD; arc=none smtp.client-ip=209.85.218.49 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-ej1-f49.google.com with SMTP id a640c23a62f3a-a3d5e77cfbeso1169020666b.0 for ; Wed, 21 Feb 2024 06:35:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1708526125; x=1709130925; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:autocrypt:from:references:cc :to:content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=4mpg5rDXxuNVjHnT61EDD12HqwJ64u9R7UWEbZkDSa4=; b=FY0TNFGDlkpth+5cNVJnchAN8VkiR+qQgg9RsGg2IsgSP27kajfw6nfW2Pzj3rjB0D Pu5S2IzSWFxYBS59Ir3tgLDsvXZNFK1v0UmIUBpydOE5jJpHKezI0zgOXagScPEOh4Qd A5LxgIQXUjpnxof/GDxxeHCDKnzzfE1AOIosIHhD65qAEgCzulY/mBSObdi5Pjt7SMvT KAiJ46M2o+U7MM/mziGO3l03ImxgnnOC96v0Vh638LhDWnpgit897Y/DMVb9eBIQO10e HkkRtLcd/zJeJot5FMbDqVfgiupFiX3ByNxzXJ/n8JyC62fnyl1erHn2jplWCCg/FzdA 9OAw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708526125; x=1709130925; h=content-transfer-encoding:in-reply-to:autocrypt:from:references:cc :to:content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=4mpg5rDXxuNVjHnT61EDD12HqwJ64u9R7UWEbZkDSa4=; b=UvH8L9PXclgqIdCmJaq8ocItCq/rhuGJGfnJW/yoQwg7y7N2DZRZMGpNxZ+8W82tpo I5GiolyazF1suT29S5E0FCmlsRYlMFoV9bKvYSCZcp30plDi8uX69CKtcT0xfLOsCazY S0N/AD8YLwHMBmNs8Kb7lVZSV6/3G5Vx5l+tVxWatqaFwdg+vZuZcJ3bFDJdt7U0Kzuq y3DIn5e74XyUj9IZQ6SRQ3rYBJN5HM2EpWSlUnHXkXBJkVgEFQ3w2JITJMwYbM2Lwrsi BSgqxEEhWEkGG+DHzEJJVyZEtmne0x7OwV4RcKryGu/73nCyXeVPhvv3K/DvlRiEUoDj ro5A== X-Forwarded-Encrypted: i=1; AJvYcCUiwfldIsFv1tSTeefcp4N6ZA3Bb167mWCsnnCQXBlvdkMi41oaMkObCXHwgVoZEDYr+Q7G/YjGRzJ0n8JdaehKbXcjySRW8S9tdhlG X-Gm-Message-State: AOJu0Yxh6d3Os4TNJ8Bb1tdxgNuU2/l/yF4vMu38v7E5V+52EksNvKkl DemZaAsCtuhqY/822aDgn8syKV8vGmz0Mz6Wyjyl0OLNGT8dNIkbWsIHan0QltU= X-Received: by 2002:a17:906:565a:b0:a3f:1139:5a6b with SMTP id v26-20020a170906565a00b00a3f11395a6bmr4301459ejr.32.1708526125697; Wed, 21 Feb 2024 06:35:25 -0800 (PST) Received: from [192.168.1.20] ([178.197.222.116]) by smtp.gmail.com with ESMTPSA id r22-20020a170906281600b00a3d777aa8fesm4977610ejc.69.2024.02.21.06.35.23 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 21 Feb 2024 06:35:25 -0800 (PST) Message-ID: <6bfc66bb-a706-4881-bcbf-57ca7ebc300b@linaro.org> Date: Wed, 21 Feb 2024 15:35:22 +0100 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v1 3/3] PCI: qcom: Add support for detecting controller level PCIe errors Content-Language: en-US To: root , andersson@kernel.org, krzysztof.kozlowski+dt@linaro.org, jingoohan1@gmail.com, gustavo.pimentel@synopsys.com, konrad.dybcio@linaro.org, manivannan.sadhasivam@linaro.org, conor+dt@kernel.org, quic_nitegupt@quicinc.com Cc: quic_shazhuss@quicinc.com, quic_ramkri@quicinc.com, quic_nayiluri@quicinc.com, quic_krichai@quicinc.com, quic_vbadigan@quicinc.com, Nitesh Gupta , Mrinmay Sarkar , Bjorn Helgaas , Lorenzo Pieralisi , =?UTF-8?Q?Krzysztof_Wilczy=C5=84ski?= , Rob Herring , linux-arm-msm@vger.kernel.org, linux-pci@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org References: <20240221140405.28532-1-root@hu-msarkar-hyd.qualcomm.com> <20240221140405.28532-4-root@hu-msarkar-hyd.qualcomm.com> From: Krzysztof Kozlowski Autocrypt: addr=krzysztof.kozlowski@linaro.org; keydata= xsFNBFVDQq4BEAC6KeLOfFsAvFMBsrCrJ2bCalhPv5+KQF2PS2+iwZI8BpRZoV+Bd5kWvN79 cFgcqTTuNHjAvxtUG8pQgGTHAObYs6xeYJtjUH0ZX6ndJ33FJYf5V3yXqqjcZ30FgHzJCFUu JMp7PSyMPzpUXfU12yfcRYVEMQrmplNZssmYhiTeVicuOOypWugZKVLGNm0IweVCaZ/DJDIH gNbpvVwjcKYrx85m9cBVEBUGaQP6AT7qlVCkrf50v8bofSIyVa2xmubbAwwFA1oxoOusjPIE J3iadrwpFvsZjF5uHAKS+7wHLoW9hVzOnLbX6ajk5Hf8Pb1m+VH/E8bPBNNYKkfTtypTDUCj NYcd27tjnXfG+SDs/EXNUAIRefCyvaRG7oRYF3Ec+2RgQDRnmmjCjoQNbFrJvJkFHlPeHaeS BosGY+XWKydnmsfY7SSnjAzLUGAFhLd/XDVpb1Een2XucPpKvt9ORF+48gy12FA5GduRLhQU vK4tU7ojoem/G23PcowM1CwPurC8sAVsQb9KmwTGh7rVz3ks3w/zfGBy3+WmLg++C2Wct6nM Pd8/6CBVjEWq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J+cY qc+rJggwMQcJL9F+oDm3wX47nr6jIsEB5ZftdybIzpMZ5V9v45lUwmdnMrSzZVgC4jRGXzsU EViBQt2CopXtHtYfPAO5nAkIvKSNp3jmGxZw4aTc5xoAZBLo0OV+Ezo71pg3AYvq0a3/oGRG KQ06ztUMRrj8eVtpImjsWCd0bDWRaaR4vqhCHvAG9iWXZu4qh3ipie2Y0oSJygcZT7H3UZxq fyYKiqEmRuqsvv6dcbblD8ZLkz1EVZL6djImH5zc5x8qpVxlA0A0i23v5QvN00m6G9NFF0Le D2GYIS41Kv4Isx2dEFh+/Q== In-Reply-To: <20240221140405.28532-4-root@hu-msarkar-hyd.qualcomm.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 21/02/2024 15:04, root wrote: > From: Nitesh Gupta > > Synopsys Controllers provide capabilities to detect various controller > level errors. These can range from controller interface error to random > PCIe configuration errors. This patch intends to add support to detect > these errors and report it to userspace entity via sysfs, which can take > appropriate actions to mitigate the errors. > .. > + > static void qcom_pcie_init_debugfs(struct qcom_pcie *pcie) > { > struct dw_pcie *pci = pcie->pci; > @@ -1496,6 +1829,21 @@ static int qcom_pcie_probe(struct platform_device *pdev) > goto err_pm_runtime_put; > } > > + pcie->global_irq = platform_get_irq_byname(pdev, "global"); > + if (pcie->global_irq < 0) { > + ret = pcie->global_irq; > + goto err_pm_runtime_put; How does this work with old DTS and with all other platforms? Was it tested? Best regards, Krzysztof