Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp2817299imu; Sun, 23 Dec 2018 08:26:54 -0800 (PST) X-Google-Smtp-Source: ALg8bN4G/cEZBxUW/xIs2rpd9v0EXYWLwp1x5ze2QYqBOMLl1st+C/I3JyEzGfaiAfp7LEOrFSZF X-Received: by 2002:a17:902:a40f:: with SMTP id p15mr10380141plq.286.1545582414480; Sun, 23 Dec 2018 08:26:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1545582414; cv=none; d=google.com; s=arc-20160816; b=VkH8u5xx6uDk3sA9Le3aNLqwy2qIO1gc+I7wu5nJ1HNHsbnelNTjdOM3aCybrLcedi lZqrR4CYwx9WEKYkMJDtdrqgYuXm6N+S6Sb22LaZ8IU8LYTMRA4H7R5YN3Up4T7BGRyS Ex+wlWbAbPwBY8mz+1d22xgO1G7UZdEWg7lWQyru8W6MFQ87i3CVmN3RgItSzkaNdrZ4 c+SL4McRf/Ga94XKgE9SNzRIqqrQpnqLImSQsWxMGxQiSzpPyONHWxE7rhGv2wSSuhbW AHz+sWcHAk81gJjPSXxRUqkwX0BeusOtOQresIKfh5XNlXpbzAxYlpIgVJh0at0V6miX aQAQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :mime-version:dkim-signature; bh=tIoUx+rDCOr9dfitvi3SphB8uxcVWDTDEjxEkguAV0o=; b=MT/scP3vME6UOkgFRpeSMuZ8mQvuzEktvkgJMSSNoy02oss1+th6l/HDRllRrurBtW K+B5vB/ccHWHdFvKGp88S7CxOk4q8M4B932PMMJVNwgxbKWw7bmKi0tU8pK/kbGcSo/O sgH2A+V+pwnFoTwbGvG93NIAQOX4zQrxiCi8PMTc18orwA8SARFKsyF/w1jlfbK4ql2k DI6fsQhDUz08NzytDLUeI6KYhevwcWbMk9kxSBW90QN4vXx/dMZji2Wou2QEbouLhYQ6 QsOJhXIWROjCmVlpt2If06DaNNw1OvFEenp1a/E8nQdxwEjaY62NYm+uzCzstjmC3349 yOjg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=mShVEmsa; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e17si25353141pgj.142.2018.12.23.08.26.38; Sun, 23 Dec 2018 08:26:54 -0800 (PST) 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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=mShVEmsa; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2390783AbeLVSTM (ORCPT + 99 others); Sat, 22 Dec 2018 13:19:12 -0500 Received: from mail-oi1-f196.google.com ([209.85.167.196]:36122 "EHLO mail-oi1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730804AbeLVSTL (ORCPT ); Sat, 22 Dec 2018 13:19:11 -0500 Received: by mail-oi1-f196.google.com with SMTP id x23so7389522oix.3; Sat, 22 Dec 2018 10:19:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to:cc; bh=tIoUx+rDCOr9dfitvi3SphB8uxcVWDTDEjxEkguAV0o=; b=mShVEmsaIyGDscM18GNsQM+8gat122oxMnNezgmK1ixmrcDhgDObBWb3uJMGKSdh5U RKMXmSy8s/aa57c7nvvqBfiEOoYDSutC6568LTuL2FEFI43RG46diOdUdUNNTeaza6fJ FkZGnOJOWolQCFxSCH7a5um6khRSROnEXHwwP4CVLTiRHA9hYb4C8H8HnUBqg+kPBdP2 GYomW0yLSx7dRSqUJxXB6CH1asYVCymK6CmIpup38+obI63iDSEiZNPIAjHF+ic0RgEd H43B8/W3JxLy/mKRWPRDH65WhWClx2BoPeM6CsanXi63ux3l/jwYyHqfXfMfC/3Qn/dP eSdg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to:cc; bh=tIoUx+rDCOr9dfitvi3SphB8uxcVWDTDEjxEkguAV0o=; b=mXk1plJdpOKfknapvkSry0T7xc7o2GZdxZhT05M8F2HRRFm2XEyw76KCyQmiuCcw/9 higCisF74iPSZC5eDFAZ7oNMcaWsbzGwqbqUmGCmQTnBcMU9/tCnyqnWlN0gSvdQn+Qp ED0Vy7tIhWk3Pp0ve0fvJVeqvih03gv4e4b97zB/KKEm1mHFjnZ76cnbt2Vy6/sAdSq5 sSzTiOnOh+THDqsKuxFEC1/N6b2nUjnC4F/PMn/Cw1FLyQIdmrl6fqoutTga9vExdjll kzG4hL9C0n5oPGAXFBiF/n0zTPmHLpdJ9IulU9Lyei7HE107+tv0Ax3BtN2bm0wsrG/j op0g== X-Gm-Message-State: AA+aEWYVJTu5cU9op4BF1j1+owytasTBeY55SmETnfMSK9c5tOgExlwH wPn4AgSjjJ/722Qn+Fiq/7bhlofDI17isB8flpzEngYu X-Received: by 2002:aca:3c06:: with SMTP id j6mr3028326oia.126.1545454230904; Fri, 21 Dec 2018 20:50:30 -0800 (PST) MIME-Version: 1.0 From: yu Date: Sat, 22 Dec 2018 12:50:19 +0800 Message-ID: Subject: How to force RC to forward p2p TLPs To: linux-pci@vger.kernel.org Cc: linux-kernel@vger.kernel.org, kkndyu Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi all, We have a PCIE card which has a PEX8732 switch on-board, and there are two endpoint SOCs like graphic decoder behind the switch, and by default the ACS is enabled in 8732. We use the p2p DMA to transfer data between these two endpoint SOCs, and if the host server is not enable ACS in BIOS, the p2p works well, but when ACS is enabled in BIOS, the p2p is always failed. With the help of a protocol analyzer, we can see that the TLP is redirected to RC, and RC just discard it. I tried to find how to make RC forward redirected TLP to its original target, but nothing found, it seems this is highly related to the RC vendors. In the PCIE 4.0 spec, the section of the RC behavior of the p2p request redirect said that ''implementation-specific logic within the RC that determines whether the request is directed towards its original target, or blocked as an ACS Violation error. the algorithms and specific controls for making this determination are not architected by this spec''. So is there some spec or document to describe how to set the RC? Any suggestion is appreciated. Regards, Eric