Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp9259359imu; Sat, 29 Dec 2018 14:30:44 -0800 (PST) X-Google-Smtp-Source: ALg8bN7M23iqZXDrgmPJI/IRP6JEtNKJgVq49VOBvJpo2LkWwQtP4y9W5z9ie3iuPMHssIN5Hy3Z X-Received: by 2002:a17:902:8c91:: with SMTP id t17mr31524540plo.119.1546122644399; Sat, 29 Dec 2018 14:30:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1546122644; cv=none; d=google.com; s=arc-20160816; b=F3v5N3glf/nz4V9LlogGaHGE/bba91OyncxOyuYg63aH8JstCkPyNWBn+ydcEeurng /E5v5R0tVo5Bj3W+/p4nhSgMc/qMoiVrJXMfs8v92aY6CimYIDVGoIE7wz7Dk2j5Fh2V brMMeEp5b56EYEdW8qR52wldvnRZp1blRGTFCbdUamyrNI/qKtOR2k/Nf7caepQUre5x 9BWgOyL6dh8qQHwKXIILoG9Yv/r85vuNUHPxLh5m4fVgn0xtk6c7oFW4tTsAU2Uu5DcK plY6P6z5r6UtKSfIn0RtsU+Qsu+EoD/bP7Ri1wH3C5rs8be/P6smpzwP+56fldBu1MxK siSA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:subject:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to; bh=EbrTlCL/GeuUj7D9utZdUDy25nNgE/XJwJELW77llkc=; b=dA6MJNmPMcgrNJzukoS9qws4YOwic58t66nvBOMSpKW+YF5QX/VwJ92piYxrLF0hf7 u0ygx0u3NWxxYa+6xfEOOWHC23UEKk4Nr7Ehl8fO9AzT688jxu5IwTiMuHg96FjGry1P 6TxwtiA9hK1N+18DjPwIY3eXKPlMpmW9GEDInbdBvFmG8bqVGysvl1HTmurhSjzDihqH gZPzQ+/FXSc3jiJxxCsPvkXF3Zm/rZoP5++xzMa9gttkX/p9IRiimGRdYo8SwwdEPBKS bHat0Ebv55rFAMw1iYyOogW0QA1x6HauH9pJgjvPGaQYhenI2Q2a9GlMscVf5pKqTtt9 CKGA== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z86si1836414pfl.209.2018.12.29.14.30.29; Sat, 29 Dec 2018 14:30:44 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728033AbeL2TSP (ORCPT + 99 others); Sat, 29 Dec 2018 14:18:15 -0500 Received: from ale.deltatee.com ([207.54.116.67]:34852 "EHLO ale.deltatee.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727944AbeL2TSO (ORCPT ); Sat, 29 Dec 2018 14:18:14 -0500 Received: from s0106602ad0811846.cg.shawcable.net ([68.147.191.165] helo=[192.168.0.12]) by ale.deltatee.com with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.89) (envelope-from ) id 1gdK7Z-00050t-R7; Sat, 29 Dec 2018 12:18:06 -0700 To: Bjorn Helgaas , yu Cc: linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org, Stephen Bates , Jonathan Cameron , Eric Wehage , Alexander Duyck References: <20181229022923.GA159477@google.com> From: Logan Gunthorpe Message-ID: <2aa4d13a-83c5-7e15-261f-b8f69def5224@deltatee.com> Date: Sat, 29 Dec 2018 12:18:03 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.3.0 MIME-Version: 1.0 In-Reply-To: <20181229022923.GA159477@google.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-SA-Exim-Connect-IP: 68.147.191.165 X-SA-Exim-Rcpt-To: alexander.h.duyck@linux.intel.com, Eric.Wehage@huawei.com, jonathan.cameron@huawei.com, sbates@raithlin.com, linux-kernel@vger.kernel.org, linux-pci@vger.kernel.org, kkndyu@gmail.com, helgaas@kernel.org X-SA-Exim-Mail-From: logang@deltatee.com X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on ale.deltatee.com X-Spam-Level: X-Spam-Status: No, score=-6.9 required=5.0 tests=ALL_TRUSTED,BAYES_00 autolearn=ham autolearn_force=no version=3.4.2 Subject: Re: How to force RC to forward p2p TLPs X-SA-Exim-Version: 4.2.1 (built Tue, 02 Aug 2016 21:08:31 +0000) X-SA-Exim-Scanned: Yes (on ale.deltatee.com) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2018-12-28 7:29 p.m., Bjorn Helgaas wrote: >> 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. As far as I know, this is not possible with any RCs I've worked with. For our work, we ensure we disable ACS on paths between peers that want to communicate. This is why we introduced the 'disable_acs_redir' kernel parameter[1] to selectively disable ACS for bridges along P2P paths. >> So is there some spec or document to describe how to set the RC? Any >> suggestion is appreciated. If there is, it would be the documentation for your specific RC. Odds are, the RC simply does not support this. Logan [1] https://patchwork.kernel.org/patch/10549279/