Received: by 2002:a05:6a10:9e8c:0:0:0:0 with SMTP id y12csp1590pxx; Tue, 27 Oct 2020 18:48:30 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyS1aSXCCVoin8tC8E6QG9Z6Us8SMUGdMBo/ZJemTHYaTlGTeZSOfj+E6ncNygaX0qFRaVt X-Received: by 2002:a05:6402:941:: with SMTP id h1mr5153900edz.154.1603849710329; Tue, 27 Oct 2020 18:48:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603849710; cv=none; d=google.com; s=arc-20160816; b=XkCCX553ABQ+wWdYEsh3iOmF88lWhpE0BLhoxZjxF75sMv2TOyYnaKc8txzjxgxClG AcCAM/b0wIeGQRabTAZxcXAXnFkQl02C+dFjHVvfBIiyncSS0auHEk6ZBSIuYMBgDCuQ lW/FQAj03m24fUcaTwsbEn1t+GMkqXau/zwyCAtIWLg/u760dOIm1EfxMNcNTHaKzJiY Rk02iFnpGj4wI9yBs3AAhuPGoajgWFmN0kySbCviA2yEQjLzxqtkKfjYwGmx/Oo7gb4W 0m5LHoFym3JKQ9BmDXuUCs9SbRs8rOWkc16mNGg5PGEpqVMC/S0uD8X5+sAuQwev91sN frkw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:dkim-signature:mime-version:message-id:date :subject:cc:to:from; bh=ZAWrTnsJdsZBg4TX4fkbfnoBs45cYd0AJJa1fauq/mY=; b=J7MsRoYYSUBC1RsKn9hY4JMU1XreGV2zPeR7UHiP0Qtolm1giCOD+n0uoU0kWiCynw d4Ed39NIbjvxYSIgwO+mba2zq63MDfulQ8vfARGK8gfbZhDYX3UETHNtWxjfIycDEECE qbKjWU2UeN78ouVcp/Kn+WsDOHdmiGDhTif1E/pbsodZ8rrVTcmAQEEG5CGbdfc23h23 ixg+siJ1qoKXRnxTvj2tb/wNXlRkxiylPslwt950AVrtEr/eITWgHK/ZnOqkr0s5VR7H S5Q6XBEcCh50cCmvJVmF57bLVsd0WYLNWjQBMyUN83jZdlZewYwCnMkRMhTOUzTfkNmo xPPA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nvidia.com header.s=n1 header.b=GZzYa62K; 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 g15si2300836edp.174.2020.10.27.18.48.08; Tue, 27 Oct 2020 18:48:30 -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=n1 header.b=GZzYa62K; 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 S2508709AbgJ0IEM (ORCPT + 99 others); Tue, 27 Oct 2020 04:04:12 -0400 Received: from hqnvemgate26.nvidia.com ([216.228.121.65]:18936 "EHLO hqnvemgate26.nvidia.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2508680AbgJ0IDk (ORCPT ); Tue, 27 Oct 2020 04:03:40 -0400 Received: from hqmail.nvidia.com (Not Verified[216.228.121.13]) by hqnvemgate26.nvidia.com (using TLS: TLSv1.2, AES256-SHA) id ; Tue, 27 Oct 2020 01:03:19 -0700 Received: from HQMAIL109.nvidia.com (172.20.187.15) by HQMAIL105.nvidia.com (172.20.187.12) with Microsoft SMTP Server (TLS) id 15.0.1473.3; Tue, 27 Oct 2020 08:03:36 +0000 Received: from vidyas-desktop.nvidia.com (172.20.13.39) by mail.nvidia.com (172.20.187.15) with Microsoft SMTP Server id 15.0.1473.3 via Frontend Transport; Tue, 27 Oct 2020 08:03:32 +0000 From: Vidya Sagar To: , , , , , , , CC: , , , , , Subject: [PATCH V2 0/2] Add support to configure DWC for ECRC Date: Tue, 27 Oct 2020 13:33:28 +0530 Message-ID: <20201027080330.8877-1-vidyas@nvidia.com> X-Mailer: git-send-email 2.17.1 X-NVConfidentiality: public MIME-Version: 1.0 Content-Type: text/plain DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nvidia.com; s=n1; t=1603785799; bh=ZAWrTnsJdsZBg4TX4fkbfnoBs45cYd0AJJa1fauq/mY=; h=From:To:CC:Subject:Date:Message-ID:X-Mailer:X-NVConfidentiality: MIME-Version:Content-Type; b=GZzYa62KE36Sso9uw0od7w/l+3Zt2rKtEZyeyZA8l8ijHdfV+oHt/27Bj9owD4JFX jU5wSR8pF1ceZO7TuxjleH/v9RZXHQ9nQDf0tt8D4jwQyk7PlKHFrSGSwpAfAKW1Zu LNitf98aDI1NU6fWzbesjlZge71X8JxhAgsva8ntCN9zPMH9Ye7N+J4cU7k9MV0JCC E1YFVSTlzfoJM8iguStfb9ThfGWb64wsUPBjiE6tHl77EOu+kZtA0xyocEX5SQJ5R1 DklAEQe8nrKGA2eGlQ0Wvf3ixqx+GWWGPTDZvuweuYV5whRQhBDZo7tDMWcedV0eKP f1PAGwDC8rQRA== Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This series has two patches. Patch-1: Adds a public API to query if the system has ECRC policty turned on. Patch-2: DesignWare core PCIe IP has a TLP Digest (TD) override bit in one of its control registers of ATU. This bit needs to be programmed for proper ECRC functionality. This is currently identified as an issue with DesignWare IP version 4.90a. DWC code queries the PCIe sub-system through the API added in Patch-1 to find out if ECRC is turned on or not and configures ATU accordingly. V2: * Addressed Jingoo's review comments Vidya Sagar (2): PCI/AER: Add pcie_is_ecrc_enabled() API PCI: dwc: Add support to configure for ECRC drivers/pci/controller/dwc/pcie-designware.c | 8 ++++++-- drivers/pci/controller/dwc/pcie-designware.h | 1 + drivers/pci/pci.h | 2 ++ drivers/pci/pcie/aer.c | 11 +++++++++++ 4 files changed, 20 insertions(+), 2 deletions(-) -- 2.17.1