Received: by 10.223.185.116 with SMTP id b49csp5227874wrg; Tue, 27 Feb 2018 09:47:24 -0800 (PST) X-Google-Smtp-Source: AH8x2247oPitF3mkj4U6mr5hc+bXIAS/IIdX50XA3EcQf87dPmqgTtahsEKf3ipQXzkdxMTF4vr6 X-Received: by 2002:a17:902:7485:: with SMTP id h5-v6mr15307794pll.236.1519753644445; Tue, 27 Feb 2018 09:47:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519753644; cv=none; d=google.com; s=arc-20160816; b=hSW4XHfLYvokv9galc59AjbM+dDDwlYXMDFtgpWZSbaqbmIK03j2cEQMsUcxvDMfR4 nKFIMgNuHFZn4/rGp08CG0/+vXdiEUj3msvJWhNOR5+25ATqCgKMfFtw/nwNwjs8mgc9 w2FApjMjdE48AVMJ4qW61K9njxpYLB8OhvBgRkvKyCIL2Oc9FPE/QzC0ggzyo8otsLtz 49lWGE6FLNk/AKrTEwsRoNqlaip0dO6uRfXwaA9EeN4MYbYFaG9lB9fmKRY85IHBLMz+ nTqMqeb2hJzspdNq9Napx0qdjcl1ngaljPVic/bajR2ghUKVjF2JuANNA9HFVTMJGDFU C0nQ== 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=XJJJnDA9dobNjHqDTGLZaFjQXRpSH35hYcet4JR+apo=; b=eDQz/U5LGt5uuyz6XmwD4hHuSjDkHZk9j5OAnCsGIpdRwvdEQpPtsihJ5WDdfksxZW kztjZ1MJsWEEO14k0aiiysrco8oc2Biq0NWdAEbZTkLucxfVOW4Jx3j4cS7jbalzZ/we 8xsaHr2+sqvYQSkrxr62kRL8lzU82OMdBuBhFogTneypagzzYiR2oQ6cEbydDDM5Mw6T A/R76aRKjqrr9faRfuEZZLaF4gyZRmP7a+CBsCe45sKsKuLrkEAuysHvVNxDylSymNtM wvmrR1BYWejcYct6pPoHCpuUtzriy1ZEVQ1hq/dSpeHKwlcl1veQyWrJBoXhQhLOFpvy KkUQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amdcloud.onmicrosoft.com header.s=selector1-amd-com header.b=i4S0U+Js; 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 z2-v6si8784211plk.240.2018.02.27.09.47.09; Tue, 27 Feb 2018 09:47:24 -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=i4S0U+Js; 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 S1751821AbeB0RqK (ORCPT + 99 others); Tue, 27 Feb 2018 12:46:10 -0500 Received: from mail-cys01nam02on0065.outbound.protection.outlook.com ([104.47.37.65]:35200 "EHLO NAM02-CY1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751117AbeB0RqH (ORCPT ); Tue, 27 Feb 2018 12:46:07 -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=XJJJnDA9dobNjHqDTGLZaFjQXRpSH35hYcet4JR+apo=; b=i4S0U+JsVtrDB6HCMBdmp26dv3Yvzn2jLdT4qxcRgjMtPAya5FAsdeTjcxix7wmZOLbfwy4YSx5BdEO+lcaCVZ6UJjq6oUZsEBmVp2ptuUhH+5j0I8SZDmSrEkf/0a65y81GO0Ec6WoBVOme0d5cNHEYVqcRy4thAPWLwXLNuFs= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Gary.Hook@amd.com; Received: from [10.236.109.62] (165.204.78.1) by SN1PR12MB0702.namprd12.prod.outlook.com (2a01:111:e400:c42a::16) 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 17:46:04 +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 Cc: "Hook, Gary" , linux-crypto@vger.kernel.org, Tom Lendacky , Herbert Xu , Greg Kroah-Hartman , 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> From: Gary R Hook Message-ID: <6a32bb01-209b-cdf2-093c-fe749627c806@amd.com> Date: Tue, 27 Feb 2018 11:45:59 -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: <20180227173314.uko5xpf4od2fn74g@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: MWHPR21CA0059.namprd21.prod.outlook.com (2603:10b6:300:db::21) To SN1PR12MB0702.namprd12.prod.outlook.com (2a01:111:e400:c42a::16) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: 914b4e22-fe6c-4609-f0dd-08d57e09f9a5 X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(7020095)(4652020)(4534165)(4627221)(201703031133081)(201702281549075)(48565401081)(5600026)(4604075)(2017052603307)(7153060)(7193020);SRVR:SN1PR12MB0702; X-Microsoft-Exchange-Diagnostics: 1;SN1PR12MB0702;3:vbSkSGcCWCha+REVBAUMMfrc1e1fvAMgToGyaEvdt3vsMXs2Uw5lDb973QSovqd8mmpi8t3yQiQqYPWGoNP0C2GMxdMP6CNjKIe6kW/2w9skyruLWXqJaWGDR19Ypbevf3njndFGHlomeHWX0lGUhJnr0AVxfJrhN//mlJg6EnUayC5DnMe0lkc6NL/uAi8o7WI+n1aEwn2NX9GI80HF6qB/Ox1wpa3jWkSBGFC7AFcqjV8dSJFUlDFTjEhV4OTQ;25:bUTxTyhWTjT1veoeuUTFr9r7ldXLdXz9aZjbnJkljtIwMMxwl8yq82wCFYhXSFl1/M+hu2xLA/jfe2WKDwunY0lgamvlQmve2HaX7RkI5j/jEozcRYBX46Sxa9jOoSBNVqbx15iNkXNFUYME+QORUhEtzBWIT7FarxsD8t/CBJMkpEZyb6P4ZXyLLeEYa1OwB3n0qONRR1HXX4V/KyjY0R2ifWsifqX5HSoTkv1Y7Ip9sTeOtWkk2poRkX2MpUTXtvYrE4G8eQr9H01BeniUK1IJuawHn0Z3Y6tRXo6VTFn/9+t0AzKb+DsJTveZEsJc9V8I1iqK3XvWxNuU2OdqCw==;31:fx2M/+4I2kEhdVbNh0arSJSvvS98lU2pL9mHf17SLZY/EO0a3rU8pGThprXNYo1CytHKHsMxGgzBZrrcQAui7y9MpYNS48J6PaJWd1zerIRKknq4+IKPDBHaFFI663wLMguCnRdxVft0tLPAnL8dL8eoLG9ElpyPMUplJDw1fjCwrWhkkUEymxLC6nNIuE9nEgoXnxj9YW4jasBFglVL7T1FGj6GndgqJds+34kK68A= X-MS-TrafficTypeDiagnostic: SN1PR12MB0702: X-Microsoft-Exchange-Diagnostics: 1;SN1PR12MB0702;20:OZn/fk5/fMS8VtrBoOJk2iXp0x6OXjbUkXEBJaLeRbR1tKbyxBKh+DdJvRoYpaXStDt3a35u0kbjN7ZbN9PzmRt29ye9FK22Ey51p7QnCxYMpsag2Wq3xM4XY34+wRXsrKO/PjDPZbL9+bjxkpAXGdXkkOKcAtF8gi20Z+5IayiPlCrYySRRaJDZC4rZsvnPpnU+bkRtVRTduMz3q1cHRU/LaGYxGamdpeBWe3QPGxv3M+H0JuwUoS7OkQbfkkHsf+3q/g+iU1P55yAKZcygTELYR5cTr4t8rBRp4qv+avVBQuP7gKVe7ytBhAnBp0JX1N1PTdYvdkbhPOELVM/6+n9pVeDo7nCyixLmCL9Jx+VSmnTJTC0nsXQJ5e89g8tA16ldH3aR2i1Owp3cCCNLw2oOseJ1yVdnZDrg/fQ1FGq/9Ytq24ooGJGJvzlOM0sSXhSnnB/JZ62nvxo0442x/EAUnXrZ8IgTXG6ikzO/ABntxONZMQqoo7ONK7VNhKt1;4:lJPfQqVl0Kkmo8p1lMpuuH/REaBDiJW5dVtjtHLAL7vUjwxGJDTNpSHhLbxNtfFmosR4yof+Fwj6CDHitMC/y6d7N9JZqmjTq170KVFWIWZN4MIgh4bfMGw5gNwp1maSy2G96/f1wbQ+Fkqw8l5/VtpgOEpdRP9XN+65RA8mVYhyCqNojW6XOZftggzq3Yrj93QoEZHI8k6fQ2+aEvZuFDVepBSX96Yc0EHrDGaUwfZEhk8s6rUUivDVYvGgjzKVPo9Ad8Rw0xWZ8RUG/eUGOA== X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(8211001083)(6040501)(2401047)(8121501046)(5005006)(3002001)(93006095)(93001095)(3231220)(944501161)(52105095)(10201501046)(6055026)(6041288)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123560045)(20161123562045)(20161123558120)(20161123564045)(6072148)(201708071742011);SRVR:SN1PR12MB0702;BCL:0;PCL:0;RULEID:;SRVR:SN1PR12MB0702; X-Forefront-PRVS: 05961EBAFC X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10009020)(6049001)(39860400002)(39380400002)(346002)(366004)(396003)(376002)(377424004)(199004)(189003)(230700001)(16576012)(31696002)(58126008)(386003)(53546011)(77096007)(54906003)(6916009)(229853002)(67846002)(186003)(16526019)(50466002)(2950100002)(36756003)(106356001)(53936002)(31686004)(316002)(105586002)(6246003)(59450400001)(6666003)(93886005)(26005)(64126003)(478600001)(4326008)(97736004)(65826007)(72206003)(8936002)(6486002)(25786009)(65956001)(65806001)(66066001)(5660300001)(47776003)(76176011)(52146003)(3846002)(2486003)(52116002)(23676004)(6116002)(2906002)(81156014)(86362001)(81166006)(305945005)(68736007)(8676002)(7736002);DIR:OUT;SFP:1101;SCL:1;SRVR:SN1PR12MB0702;H:[10.236.109.62];FPR:;SPF:None;PTR:InfoNoRecords;A:1;MX:1;LANG:en; Received-SPF: None (protection.outlook.com: amd.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?utf-8?B?MTtTTjFQUjEyTUIwNzAyOzIzOldsSWFLVFc2YnlBNUVEbTdpTllGdFNHb2k4?= =?utf-8?B?aExoS3BxMjJJOUF3YnU0UkxJRVdOdmJrcHhmTzBYbU1iNUdrSVdHOHQwMFJn?= =?utf-8?B?RzZJSTZ6aWZGL2hnUzk0U216R1VneUl3WU1EY1Nma2tHM0xBbW94SEoyMkk2?= =?utf-8?B?VG5IMDVqek1GeTZTYXYyR0ZyMjNjSDN2YmVuMDQ0K0g5TVJTd0NNWDBQZXR2?= =?utf-8?B?ZXA3WWVlNTY4THJjMGdIQ2s0dExpOEtjTjdEUm9jWm1DLzBsWVBtU0Q5MHJ1?= =?utf-8?B?QVRzQkYzY0xZSVNGdGh4S3lsZmtOS3dud2tSWXl0cS81RUVuZHlRRGNSTlQ3?= =?utf-8?B?WFBINlpUdE1WVE9EMnYyWEhrdUk4T2VMam5RUEoyTk05SmQ2VENYelMxZWRz?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JYtEr9ZvIwlQWNYG2TrYaXDJ7VPGz9u9Q4qm9tMw73bpWCdk67fdl6n2JAGnYVgN59Jzl5BDUgZWfreCjCAeQk144YfKd1K8/BaDFTD+c+6pnwqazbCUCYPZ3YdW9ynyO9zdy4hNNZ63pqJEwmstEY47co2+mv9MB4RCGtTfaPug=;5:bn251ALo9h2YIUfuBME2uslHVsee0cnozQFsGmzBzGhUWfBUn+/ORGkw63HTgmXegy6FDWv4oJocNlMKkrLbU2TXBq40lrmFZssjKoAgydQ4RfvMJspGQBpojxeX1w2A2XDPWGiCRdJA3dl2joT6sY1diJAM2/0CIkcGcZiXKXw=;24:MOpz+XviegxiUaM0On26r2NgTlbFrmFuxwzzdlfbqB+v0Uffn66PX8wKPOfkmvBF65olPSDPacWYn/+53aWJFic52LqUdnKyUfZ18OA3/es=;7:4tg61T5H4J+wNQod+A+MXcpey+VxMH2rxn+cmx3czOZxcrplihsFSNNX7A7j/6vQrF0VRcSi1ebtVSpYZmLPzqJ/7fjep2VSNJO9Md6NKw1TyZS3WqEM7xs2G/LUODGnMjzrBuqzpL3wIQusNqoNwYlqXlDITooQvxLjv8gZlhaeO6sVd9Y+3kHQ2BBsBqxLl70Ud8YpEaqh/YSx4eFtcJfjRCeJqtf+Ha2zqUZ6kRNzCJK4oqf+awDTk0YIGT1j SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1;SN1PR12MB0702;20:9YfI2bymtuW1nwThxwS1hRoJor4jsxpBBQitC0P/vd+TjqIGD1zGayPVacQ4aVbyKOPAiEXJBvZ2VlMY9hjf0Cox/vTKCceqZmNGDl7UlVem+5LTGG+4sdye/+Qb6CkTikDcnqz+nrujP3d9CqafPjJGOle7CgB1daZiZE/+0iBPkC0hsy3i8fX7CYnPN66H0WU7hrcJ6zeVU2qM6dCfNGZCrIoTltseb/87rg/lf75OFv8OB/L7bICqB6YKrmM4 X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 27 Feb 2018 17:46:04.0843 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 914b4e22-fe6c-4609-f0dd-08d57e09f9a5 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN1PR12MB0702 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 02/27/2018 11:33 AM, 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? > > So the question if a driver can probe two devices simultaneously. I'm > not sure. We have PROBE_PREFER_ASYNCHRONOUS which defers the probe to > worker. However I have no idea if two of those worker can run at the > same time. > >> I think a mutex would be just fine; I got this wrong, clearly. Let me work >> up a patch using a mutex. > > I've sent one. Why not just ack it and be done with it? > >> Gary > > Sebastian > Sorry, too much chaos right now. Of course.