Received: by 10.223.185.116 with SMTP id b49csp5376447wrg; Tue, 27 Feb 2018 12:12:36 -0800 (PST) X-Google-Smtp-Source: AH8x224PYkN1+qWLurEbvhtGejeoAAiw1UscKgZVXPMg/GIsVgSVJ68V/KGgyx5K6skeHP7MhN5x X-Received: by 10.101.93.135 with SMTP id f7mr11811655pgt.82.1519762356153; Tue, 27 Feb 2018 12:12:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519762356; cv=none; d=google.com; s=arc-20160816; b=PoDKzLA2zsJNt6LDuPNj69WhumgJMelcqRh1sKFMH1b37IgUSpV+Dd+JMeQ203h52n sjtyGz80FQAO2iNb42SgPwUuXX3gcZU3N9F2dxMIfZaTIgKRzXdfgv980u99RzOmMQw9 LCJigP6w0+juitWrLIBZhS9QTxkOHb2nyrclwSaBYZJSN2Gmq1t4UGYgz4W6zHWwZpx0 2HLIv9ZL2BNCfeVqB0RFP5lYj0YWtViEQ5KC6HS+k+vFm13foAjfZikHZKkTLh+ygIT1 9fgGMQhLe+Yedo72xE2SaYFPh1u6G10NPh89EJxoOw8a462LTbl3D7RCVB/Cabg0mYas V6wA== 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-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature:arc-authentication-results; bh=sgp1+/nzXg3bmOAe0U0WQzceyz9kjWIVoKqAHxQVOEE=; b=Fqeh+i5u9f5QzdDBABkKsU0ni+uqHtv9wVn62UkGYHt2YnjoCLKofz4ZKRotTxs5BZ 1OKh4l7kR69CypVsShukigaI8+JIVXViyqaNB8mWY1BRP/OCsCNvXLjIohI+JuEnin/J QgmcZPsh/iIkY2Yqlrv2Gtc4OfHLi6QlgIEn8xsYKPGbbFRRwCDlGJ6taCYGxN3Y7+Od U9uabBCZrORiOf5L9wOaPm+h90OuLfx96RoYjgAAiD529zPm1z+0WfPM4JGhalj1pq/w SJuXH1j7UvurXVB3gdOOw8hxk4XjCxutS02fgeycS+XNWKcLFPMkMWL5ZPtkSVwk9nPe F4Cw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amdcloud.onmicrosoft.com header.s=selector1-amd-com header.b=nDbNTWdz; 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 b195si7434532pga.552.2018.02.27.12.12.21; Tue, 27 Feb 2018 12:12:36 -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=@amdcloud.onmicrosoft.com header.s=selector1-amd-com header.b=nDbNTWdz; 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 S1751981AbeB0ULf (ORCPT + 99 others); Tue, 27 Feb 2018 15:11:35 -0500 Received: from mail-by2nam01on0050.outbound.protection.outlook.com ([104.47.34.50]:12704 "EHLO NAM01-BY2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751539AbeB0ULb (ORCPT ); Tue, 27 Feb 2018 15:11:31 -0500 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=sgp1+/nzXg3bmOAe0U0WQzceyz9kjWIVoKqAHxQVOEE=; b=nDbNTWdzB/7YzmaYfLUXzsLGWRSTF01brlDALu4fRdvagM+dYIlWnb59Yk75JOAX5x1I/N/PN33Z6cPF05alRpc0E5rCRTYE/boLpUFwuaywOVZudTVIOC6C86GhIhsJEYeCKIA8ffbkxpjopCfzCQvoDgKe7tDE5Xd0hD/EtD8= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Gary.Hook@amd.com; Received: from [10.236.109.62] (165.204.78.1) by BLUPR12MB0690.namprd12.prod.outlook.com (10.163.218.140) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.527.15; Tue, 27 Feb 2018 20:11:28 +0000 Subject: Re: Can a driver->probe be called for two devices at the same time (WAS: Re: [PATCH] crypto/ccp: don't disable interrupts while setting up debugfs) To: Sebastian Andrzej Siewior , Greg Kroah-Hartman Cc: "Hook, Gary" , linux-crypto@vger.kernel.org, Tom Lendacky , Herbert Xu , linux-kernel@vger.kernel.org References: <20180223223307.18882-1-bigeasy@linutronix.de> <3f0e1a62-a7ea-6d0c-d305-67080803aefd@amd.com> <20180226083508.th2m3xssp36lx3zh@linutronix.de> <372b353d-017d-a72c-b750-9417f6265874@amd.com> <20180227173314.uko5xpf4od2fn74g@linutronix.de> <20180227184034.GI20601@kroah.com> <20180227193605.nhkagbqjkadqqruo@linutronix.de> From: Gary R Hook Message-ID: Date: Tue, 27 Feb 2018 14:11:24 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: <20180227193605.nhkagbqjkadqqruo@linutronix.de> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [165.204.78.1] X-ClientProxiedBy: BN6PR11CA0029.namprd11.prod.outlook.com (10.173.25.15) To BLUPR12MB0690.namprd12.prod.outlook.com (10.163.218.140) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: bc2ab9b8-fa91-44cf-95bb-08d57e1e4958 X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(7020095)(4652020)(48565401081)(4534165)(4627221)(201703031133081)(201702281549075)(5600026)(4604075)(2017052603307)(7153060)(7193020);SRVR:BLUPR12MB0690; X-Microsoft-Exchange-Diagnostics: 1;BLUPR12MB0690;3:isSYOPbzbNw3g24OD1iBtrCw2LxRaFRU90ALkhBztuR7kHvbFJ3ZLxDllEYn7AdgClpZfPJ4UCgla/JPwgxwH6GaGXX3XiFd3edsbfakdneEiaAyc4r4BiP0u0tMhp4wd7L4H0kpgublRSTg+32fNm5dVq4S7KlfVXaNzog/0OPXk4AmFM+aFlAcMEh6XNz4jd/zicCUjlxI1OLDyIu7weuChGITwtP1ZgOZr/3hUyW16w2YOLiavUxRv3CiOoUD;25:SUvXR5LbZTzmNbS/ltf1AsyPzlswuqC7DhZu68bptC6qoZZY9yREpy6JqkaKPyA8b2R0ufQX3y31ndaoWMhAqY/C7eyTom+JgGmL/wbUYrhoIthSyNetFqSivWfd1iA9sstXFR3TBocUWO8xmUG1VgJqVx2MRYxmkd3i+rlJclV+Gc7gScbH/1ISJiepir+cwGDrVzwE/6htsjoIWqbnlSOI5E0pyOF4zF3eggeF4goDikGFYHx8Sa+FKCEP0LJo/nwAIf6I4pYUx1/CQ4TxPA1KMy+fEvwjQHI3tlpIsRaaAVN96BR6m+T5DL0/QW/Mx1CwwEHRiz3CViy+x5U/lA==;31:yP2Cm79ZbDzO6bAypuEbqf72Zv7DhoquBHHD2wqXxYos4avd8YFUx1fzziAGO71/XoJTmQY4NXaqU2dpaA+w+thEWflzZa3lcB050Nxmje5hwnrIvXcU3V6SWGgLTXxWoK6a+V+eM8eL7oBs7DgBKKmAWPKRXxFkkbFOpM54NSTgWP78aatVBrOYStgydr8r1dhJbLAtYQaigPG0Zo2MI/5BGJFI6C4eGgyUfpl057s= X-MS-TrafficTypeDiagnostic: BLUPR12MB0690: X-Microsoft-Exchange-Diagnostics: 1;BLUPR12MB0690;20:VackdF4c1Gjt1/nJtRtPGEfwAKHmitcFLF5UEYdR6Uvsc4vI0jm+pf3t1XcrksMtwrFRZuNCfTGfN7sVAowrKuLWy39jgZurr2wNd+EoWtiDcoBfK8prFRfQaKjZOCIfrJiL8d7MKgWUj6q27H9lnOATzac546kXqVrFOB6O1e6ba2P8ZOym9TtvxTBiZuDB1gh2uTVpgSqVYXNiTfBIgc7pNzgoO52KFH68w92tCMfynk+LH/GE1HVjRYky84ZSCnUA/NChk0Sv4A9EksYJzq6Cwx+tpSRoD/s/2YpuGwgdyBlpZAmd7pxRwHy+4TBWhaupl4TrVnRmWn+OcMQ7bDS4tvEQlUQWFVofEPD7wZTw2PbEdscaLB17pItw3+0bhVbYVRNZE1qj1VOHmCca8A9OUF0j6De5yfRQPG83HaHg/WaswnLzRWWUraStf5Zs6pmbPe3BYoxGCPhPpIZqxypl17xfKQeBC+F/R7+wDsG/oFsg29CwIs5XBeWkdy5W;4:wqk2GK4QgloVyzYLPEw8iRU27SvZxoE/1nn/CZpYFhafQrEttpFtSHnqBCDTlDpU79Zr9F1NPxuJQdqCCj3KG2SOfrEDpCHJ7xUefuQeM+Ub33f//PgBZF4hzLr3gRFu+HkqOtZNRVUyK1yj5U1a0vM+cOE/wEatT5NOQqfmhfFVdDNShFSfr3mJNzZ7ymdxEmktSQTJpEBOPVmDrbeJHrEI9K9Tpj/0qCvFtt7ulnTKKCwqE8trVPTEqwcLo78YdZEhUzbofwb7IT+ojlAicA== X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(8211001083)(6040501)(2401047)(5005006)(8121501046)(3002001)(93006095)(93001095)(10201501046)(3231220)(944501161)(52105095)(6055026)(6041288)(20161123558120)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123562045)(20161123564045)(20161123560045)(6072148)(201708071742011);SRVR:BLUPR12MB0690;BCL:0;PCL:0;RULEID:;SRVR:BLUPR12MB0690; X-Forefront-PRVS: 05961EBAFC X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10009020)(6049001)(396003)(39860400002)(366004)(346002)(376002)(39380400002)(189003)(377424004)(199004)(6116002)(3846002)(16576012)(97736004)(47776003)(6486002)(66066001)(316002)(90366009)(186003)(76176011)(31686004)(8936002)(65806001)(386003)(23676004)(52146003)(59450400001)(53546011)(86362001)(93886005)(25786009)(72206003)(58126008)(52116002)(31696002)(105586002)(478600001)(50466002)(68736007)(81156014)(54906003)(65956001)(16526019)(2906002)(26005)(6666003)(230700001)(64126003)(4326008)(2486003)(2950100002)(305945005)(53936002)(77096007)(81166006)(67846002)(8676002)(110136005)(6246003)(7736002)(36756003)(106356001)(5660300001)(65826007)(229853002);DIR:OUT;SFP:1101;SCL:1;SRVR:BLUPR12MB0690;H:[10.236.109.62];FPR:;SPF:None;PTR:InfoNoRecords;MX:1;A:1;LANG:en; Received-SPF: None (protection.outlook.com: amd.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?utf-8?B?MTtCTFVQUjEyTUIwNjkwOzIzOjhnZ1VobklCVlYvTGlaS29TV0pLL3BsMXJ1?= =?utf-8?B?T2pscjJPdWY2N2E2eWIzd3JUS1Q1UmZReTJtQlJWSEhqbll3RnBrRlRFVDU3?= =?utf-8?B?NzkxK2lGalF4UTlnekxaRUhGM3IzUXFRUzR5ZkhGMW8vYTEvSzcwNTZvdUEy?= =?utf-8?B?R2liMXZsY0lzN1hHVXRiT1BJZ25DZXluUys0a0ZEb09sbDJuTFRLcEhhbkxL?= =?utf-8?B?aGxtaGs5MzJCNXNFMjJ6MmE4Q01aMUtvT0t6L1RiLzY2aGtPeHk3Vi8rTnhT?= =?utf-8?B?NHYyUHNLVzJOUnpGS1BXWUhCRW15dEZ3c1FKTG9Ea1dYVWlubGpYMUxaOWo4?= =?utf-8?B?OHdIYU9ycndJME1EM0puTXpncmlyMUpSVERoTXNFWUYwcVdFOTQ5VmkzRmRs?= =?utf-8?B?bk03dVVieTlJSUxoZ1dSdD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rg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 27 Feb 2018 20:11:28.3235 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: bc2ab9b8-fa91-44cf-95bb-08d57e1e4958 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-Transport-CrossTenantHeadersStamped: BLUPR12MB0690 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 02/27/2018 01:36 PM, Sebastian Andrzej Siewior wrote: > On 2018-02-27 19:40:34 [+0100], Greg Kroah-Hartman wrote: >> On Tue, Feb 27, 2018 at 06:33:14PM +0100, Sebastian Andrzej Siewior wrote: >>> On 2018-02-27 11:08:56 [-0600], Gary R Hook wrote: >>>> That issue remains unclear to me: Are probes of PCI devices guaranteed to be >>>> serialized? Observations on my CCPs says that they occur in order, but I >>>> don't know for certain that serialization is guaranteed. >>>> >>>> Is there a definitive statement on this somewhere that I just don't know >>>> about? >> >> The bus enforces this. >> >>> So the question if a driver can probe two devices simultaneously. >> >> Depends on the bus type. > > PCI So the question is whether or not PCI enforces serial activity within a domain. The CCPs are all on different buses, so that doesn't matter. I think we don't care in this situation, given that the CCP driver has minor requirements for locking. I just found it an interesting (albeit somewhat academic) question. Thanks, Gary