Received: by 10.192.165.148 with SMTP id m20csp1226218imm; Thu, 10 May 2018 07:32:05 -0700 (PDT) X-Google-Smtp-Source: AB8JxZo2EDffTWJQu7rxS0ROFe/SBwEdpOAz8K1jHnuTdEDtS0njWT77dz02m486VVBZziltYfuL X-Received: by 2002:a17:902:4603:: with SMTP id o3-v6mr1682659pld.49.1525962725807; Thu, 10 May 2018 07:32:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525962725; cv=none; d=google.com; s=arc-20160816; b=y8B7cVp7ZjU0dhERbsLEZ5t5Wac+lLrwDTo6YbJWr7mfmn6AcaTpuJw9gIoWgqztG1 vyexcLJOcooAQD5jUraiQrE9p1qi46Ch5vAKwTrwjTEfBNE3naBXZpBTp+vuybmDdQuO zEz7Rypiy8CRUGu3iwqQjJ0vpOX7ZUiyO2WTub5j0ZQ4CrGAQTglP5G41Z3x/4lrMxp8 Q0GE1e+q3e7oCRK5ZPHhcLMhvJyxV/fcw7XvfVGK7Ux6dODdsToMUqJtfxetS6CL7gAI 5V8LoB60ggIOv0JQfp2Jt4Kfrdh7c3TzCCi83rTtRXRV7zD5cFaAW+Ps6HB/G9oIsCis Jk8A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:spamdiagnosticmetadata :spamdiagnosticoutput:content-language:content-transfer-encoding :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature:arc-authentication-results; bh=3lG4/5tF2rfizYSfF48QWlIkk4/MrlHknyOfdeyDEnA=; b=ZZ76LnKyiz+ivhPyqJO8kGxc/n1jz6pZkphYl+7H+RVIDWDj5qbWWExEG98Z2GbLlO X+Nu6v7YG4FEg3mjlXIEyVqyMyojRnQUCrFjY5zOdf/lAnkGVCYGBc5CpBtnFDErDSWe uqw5OxnxqKOG/8J2r1B/JKEkfZeFlLBKD8TWmOSPv0TNMZb4FrsqoTCaHEmrK3ZM/cAv ShCju9tXk8CsWPOJAMoGBWr5a4cdbk29WgDLFoOYSaJhwYL1bFLotvaYzAKOUTyiNbXs DNxTsYxf6jQPjlUUXtrqu4gLfT86HZBWJnq1uzvrF/hjXXVzw2i/V1/zFsIPbn3MD0Y5 8gDg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amdcloud.onmicrosoft.com header.s=selector1-amd-com header.b=45aKUF77; 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 3-v6si935778plv.323.2018.05.10.07.31.50; Thu, 10 May 2018 07:32:05 -0700 (PDT) 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=@amdcloud.onmicrosoft.com header.s=selector1-amd-com header.b=45aKUF77; 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 S966023AbeEJOaF (ORCPT + 99 others); Thu, 10 May 2018 10:30:05 -0400 Received: from mail-bn3nam01on0054.outbound.protection.outlook.com ([104.47.33.54]:10016 "EHLO NAM01-BN3-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S965664AbeEJOaB (ORCPT ); Thu, 10 May 2018 10:30:01 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amdcloud.onmicrosoft.com; s=selector1-amd-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=3lG4/5tF2rfizYSfF48QWlIkk4/MrlHknyOfdeyDEnA=; b=45aKUF7782+iWnkd+pzR90B9dBTtp4EZMtrfWNfvA0PnTuNzePuJpBb3ji5wHRsARRD1kIHnk5nsLL+hk1vBPZD416bVkRuFuPx7MeN/ZFZ0A+8k2q7wb8P7emxehC2UGdLqmgIxbk6/IOUFWSDiiHT8H8cWrhU75C+40JRMK40= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Christian.Koenig@amd.com; Received: from [IPv6:2a02:908:1257:4460:1ab8:55c1:a639:6740] (2a02:908:1257:4460:1ab8:55c1:a639:6740) by CY4PR12MB1718.namprd12.prod.outlook.com (2603:10b6:903:121::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.755.16; Thu, 10 May 2018 14:29:55 +0000 Subject: Re: [PATCH v4 04/14] PCI/P2PDMA: Clear ACS P2P flags for all devices behind switches To: Stephen Bates , Jerome Glisse Cc: Logan Gunthorpe , Alex Williamson , Bjorn Helgaas , "linux-kernel@vger.kernel.org" , "linux-pci@vger.kernel.org" , "linux-nvme@lists.infradead.org" , "linux-rdma@vger.kernel.org" , "linux-nvdimm@lists.01.org" , "linux-block@vger.kernel.org" , Christoph Hellwig , Jens Axboe , Keith Busch , Sagi Grimberg , Bjorn Helgaas , Jason Gunthorpe , Max Gurtovoy , Dan Williams , Benjamin Herrenschmidt References: <20180508133407.57a46902@w520.home> <5fc9b1c1-9208-06cc-0ec5-1f54c2520494@deltatee.com> <20180508141331.7cd737cb@w520.home> <20180508205005.GC15608@redhat.com> <7FFB9603-DF9F-4441-82E9-46037CB6C0DE@raithlin.com> <1775CC56-4651-422F-953A-18E024D3717C@raithlin.com> <20180509160722.GB4140@redhat.com> <366A8132-B88A-40F7-BDE3-DA542E45FC0C@raithlin.com> <20180509174952.GC4140@redhat.com> <405531AE-8315-4A4F-9B0C-8DBE49BFCAB4@raithlin.com> From: =?UTF-8?Q?Christian_K=c3=b6nig?= Message-ID: <73b6a454-bf84-1640-0b5e-137d03c0ad8c@amd.com> Date: Thu, 10 May 2018 16:29:44 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0 MIME-Version: 1.0 In-Reply-To: <405531AE-8315-4A4F-9B0C-8DBE49BFCAB4@raithlin.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US X-Originating-IP: [2a02:908:1257:4460:1ab8:55c1:a639:6740] X-ClientProxiedBy: AM5PR0402CA0002.eurprd04.prod.outlook.com (2603:10a6:203:90::12) To CY4PR12MB1718.namprd12.prod.outlook.com (2603:10b6:903:121::12) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(7020095)(4652020)(5600026)(48565401081)(4534165)(4627221)(201703031133081)(201702281549075)(2017052603328)(7153060)(7193020);SRVR:CY4PR12MB1718; X-Microsoft-Exchange-Diagnostics: 1;CY4PR12MB1718;3:5sUvqCvYpfKOxt5jrsd7ts77hrYw8N0CK2c7VomOJlOaVXlnVwjfaBKUkmpGmxDUa9K2hL+t+P12/GhdhWvQYNAXYYBhNHJ2B0++Ju7Z8Y12rj85fvooCSCFYigNh6gAK6OYJDG8uMG0Cw3OkWCXqUHPAczyAPscfO5DD/PzGHpcpwwiZIRN4ZFUn05UN7jCn1DihJswzY2Bl2ysfmrNNxvJ3TQiy7XqPJVbkQKeqOOdl+KTWZeW8hIXCep7mbnT;25:cmhnkSwLkZwg5bk3t7xEspZB+aEyIXC3AQBEDxXlqjnrCWa5+mwa0PQzpxlvAqyI+MZrEa76y6FbBtRLZeNlYEO4yVDhhYUmdZRw3amyVv9vhOUTFMSs2f8NLtvCwfnl/RRn1axUaYVSCrGNR4YOgdncgpRKouxcIfyAk1/I0zj6u4V3BchBdVEM6EsghCuFXZWWit3Qra0vA2Epwy7C0JdsnVdlyx0E9rkt6blh0Crkp/2bEaZ/5RX42OvXR60AOsBec8drdRpgGvkt6rr7FLsvmkEzRaETfUoQk7iizJBnK8S+GqTHjtXc/JS9GD9zpRBEwY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Xm28+AeeTuM8LbNKgrs4xSzHvLWMvKfNDMhZgvbUCUaOly5qubwS/pj/LIucHX38fMipfgmByBwBqqa04X11IC X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(17755550239193); X-MS-Exchange-SenderADCheck: 1 X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(8211001083)(6040522)(2401047)(8121501046)(5005006)(93006095)(93001095)(3002001)(10201501046)(3231254)(944501410)(52105095)(6055026)(149027)(150027)(6041310)(20161123560045)(20161123564045)(20161123562045)(20161123558120)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(6072148)(201708071742011);SRVR:CY4PR12MB1718;BCL:0;PCL:0;RULEID:;SRVR:CY4PR12MB1718; X-Forefront-PRVS: 066898046A X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10009020)(39860400002)(376002)(396003)(346002)(39380400002)(366004)(199004)(189003)(69234005)(16526019)(97736004)(186003)(46003)(6246003)(64126003)(31686004)(93886005)(8936002)(81156014)(81166006)(53936002)(23676004)(2486003)(305945005)(105586002)(551934003)(52116002)(52146003)(52396003)(7736002)(76176011)(386003)(106356001)(8676002)(54906003)(58126008)(110136005)(4326008)(316002)(7416002)(5660300001)(229853002)(25786009)(6666003)(65826007)(6116002)(1706002)(67846002)(230700001)(6486002)(50466002)(486006)(2906002)(476003)(31696002)(72206003)(86362001)(47776003)(11346002)(36756003)(446003)(2616005)(478600001)(65956001)(68736007)(65806001)(581084001);DIR:OUT;SFP:1101;SCL:1;SRVR:CY4PR12MB1718;H:[IPv6:2a02:908:1257:4460:1ab8:55c1:a639:6740];FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;A:1;MX:1; Received-SPF: None (protection.outlook.com: amd.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?utf-8?B?MTtDWTRQUjEyTUIxNzE4OzIzOmVpTEgrSFByNlBYK2lOcE5BS0d5QTBHVHRs?= =?utf-8?B?T1VqRnJhK0RWU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P9IyPz3VLcuTye84vW5RPR0d76I=;24:9nM8Br8aXgvU+RlrVY+DCLrBt5VPLkX7xJR8gYbtJqi2EOgoILoat9LK5wN9CK5ynF95Y7dZ0Szv3esh0AQOJP4N9Mh/oEVaW+AO8n26lHU= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1;CY4PR12MB1718;7:UxP3WWDcNgDukRnZcFjzKBKUIgyieluS03KR3JJKxgb4NYDwA+P0+RGDamv0VdJwVxnSQ+wrslnsvu+bW4zZSo9g0r3VnhHXweEGXCtUjmpgQUwYvCkbp0jxklpVCLa1bER39Vlv78aCPAZCJmpQ0ifEF1YGJo/xDFFOpw7/RLfpOppEbBiO/HI8nJVHHVRDBKK5yjmi+wuldgTDmjKPa/AYD/zZGYqdDD3GNSxvxfMt+uExzjENnsRYiOttj4En;20:K83C3a0rv2A9d/W6AzL3OJIfRI4PbZTdHVa1k50wKGPtmjgijPOE0GKpM6A9Iz3RYfuimU2NYY40ajcdcff0o6MuTG9z+4eQ0M8obtWsu7mcNM7T6n6zpoUXmqC89y5Kjp3YK81KqjmP5AhvSWNJlHXT2Kx2JVbfhVkt2yfFME23IO6AyCn0RDfaftVEbEmpjNxR+SX0v2hq4MY1JgwBiCUJ2b9UoZt7+AWpo8TPrrXL9w2pQH89UYSEzr4OMii1 X-MS-Office365-Filtering-Correlation-Id: ae42ab76-b617-4b52-9bd9-08d5b68281f7 X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 May 2018 14:29:55.1379 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: ae42ab76-b617-4b52-9bd9-08d5b68281f7 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY4PR12MB1718 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Am 10.05.2018 um 16:20 schrieb Stephen Bates: > Hi Jerome > >> As it is tie to PASID this is done using IOMMU so looks for caller >> of amd_iommu_bind_pasid() or intel_svm_bind_mm() in GPU the existing >> user is the AMD GPU driver see: > > Ah thanks. This cleared things up for me. A quick search shows there are still no users of intel_svm_bind_mm() but I see the AMD version used in that GPU driver. Just FYI: There is also another effort ongoing to give both the AMD, Intel as well as ARM IOMMUs a common interface so that drivers can use whatever the platform offers fro SVM support. > One thing I could not grok from the code how the GPU driver indicates which DMA events require ATS translations and which do not. I am assuming the driver implements someway of indicating that and its not just a global ON or OFF for all DMAs? The reason I ask is that I looking at if NVMe was to support ATS what would need to be added in the NVMe spec above and beyond what we have in PCI ATS to support efficient use of ATS (for example would we need a flag in the submission queue entries to indicate a particular IO's SGL/PRP should undergo ATS). Oh, well that is complicated at best. On very old hardware it wasn't a window, but instead you had to use special commands in your shader which indicated that you want to use an ATS transaction instead of a normal PCIe transaction for your read/write/atomic. As Jerome explained on most hardware we have a window inside the internal GPU address space which when accessed issues a ATS transaction with a configurable PASID. But on very newer hardware that window became a bit in the GPUVM page tables, so in theory we now can control it on a 4K granularity basis for the internal 48bit GPU address space. Christian. > > Cheers > > Stephen >