Received: by 2002:a05:6a10:a841:0:0:0:0 with SMTP id d1csp3931319pxy; Mon, 26 Apr 2021 13:22:12 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx12qtbjVMvz6gxcAGusoGvoab7IpsyGxyQqnp+o+Dwy8Zpdtf5kMwgVPX0I9/APMPV9Uey X-Received: by 2002:a17:90a:e003:: with SMTP id u3mr929711pjy.77.1619468532166; Mon, 26 Apr 2021 13:22:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1619468532; cv=none; d=google.com; s=arc-20160816; b=uH80wA8CjtOijCBESUK6n85bj92/qm5j8QsKIrjN9A6pad7QnmMrVgVBzAPBOdV3Y7 Eh3Q59nnIwgvAOckY4aaVNLzVvn4cojvWsoqnbqgSD1/S8yGYPGNl//vzPKzUsNvB5Ni D2jyo16FkROFVsglLEic6sox6j8srYCvjoJc83Gm4tia04UrWxK/sAYWjTgptIqZEfdo h3Fz163YufMAxmLuxUXlhdlwES8epopyIX1Yl/+liOoz7Us7yzOfF/Aj3CP4yQoGd9EN VLnTg+EmQ+1MFbfwmewAuWPJXK+LMuTckoIEKN3RzW8qv2DLfYasstTCwO67WoFeF+n4 CQ8A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=hu/O6kjV+ayX6H+srxTD5OhjR3joShOstPqgPMhXlRY=; b=hg+dg0pmsRgFVc6lq9sWF315svM5jbVMwPaz2rYFQBwsBC9+6atlfYOjerieSJ65q2 Pk6rN/9GyszAW5T4v3zQWITisbdKMtGXjb4VV8ZnUsNoEb8+J5PrmnmBKcpr2AlWmjkM J7hSiCiMTz2zE6J3i8MOyaj7zH3yga8Lig0xvRIbGE2Oww9aNxDrNHHPa4QF648wFZFA WWU4F98lg+eGIbO5lQsRlqMS7ETtMdSLdyxZ1zM3pF5J2Yf6ZZBP9Nv5LOLtmW3ZjyDF PrH9MAdOLOh12ByJy3nWtlo4hWMD6oiGyJX8td6LyEjPHWkBLStfTpAnTt6dBTZ0nR4m U5ZA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=O+nxianC; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f12si23424451pgg.225.2021.04.26.13.21.56; Mon, 26 Apr 2021 13:22:12 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=O+nxianC; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241598AbhDZTtm (ORCPT + 99 others); Mon, 26 Apr 2021 15:49:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33886 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241661AbhDZTtV (ORCPT ); Mon, 26 Apr 2021 15:49:21 -0400 Received: from mail-lf1-x12e.google.com (mail-lf1-x12e.google.com [IPv6:2a00:1450:4864:20::12e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E28ABC06175F for ; Mon, 26 Apr 2021 12:48:36 -0700 (PDT) Received: by mail-lf1-x12e.google.com with SMTP id 4so30178597lfp.11 for ; Mon, 26 Apr 2021 12:48:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=hu/O6kjV+ayX6H+srxTD5OhjR3joShOstPqgPMhXlRY=; b=O+nxianCcFegGRK1s69+e+erwUh5FFbkPGGe/FuY2GqsZJKR/Oge7ZOlZDxaTMsw6A C1kuarMhKrcAOyYngCsa24OF+gAzv8uoy28yfMflStTHSYJWB7+MfqEHUWDFN1pQcwEE 2lpPONUV85ttYNP9UWMQgp7j+UqzzQ7xYq43cPw9zFqdnJKoYa0cKU3gtnGe50ZlW2Fg wbm6ywMFnTuB3+sUQitug6l+m6FAnouemjIBnwqGtf6ngDiFZMtEeVigxSvIniyNeNQR TOQuzZYT6Efly/9FdFXdU2j1aMJ9rC8kpfplYqSL0E2V5iSoF0R1zA+ORo3PGC/qahf2 BGUA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=hu/O6kjV+ayX6H+srxTD5OhjR3joShOstPqgPMhXlRY=; b=PW+iSAjflQ/K5tn7f6h+CAxjChiHe1BbGcjeqYGSmDNnruah5wj07je7VkUDjlUB6f bMURK5KiA+XQyw4+tjZy/5cnJjqJUqEOpBqhS5weIIF1+KAPq/0EH+bFdTEs5phZJhtX iEHoJU1yvKOTBWGIj0tChY1wsjfCUHdmqgih8EI5eowPTcA8gvE2cHegrMeMAq38eefP SjEGg59T4TatF3hnzti3Wlk916xXBIdEd40FP8LUFEZ3IjKRP+mqsR4McUpGdUlMPQuX ky6v7hZsCj9Y3n5iQOXWCdiAfIVjvnE0kgUQlL5YMV3ZCKxy7wZ/e9OWo6OO6h7/tjuM B28A== X-Gm-Message-State: AOAM5314GrWTUbf0Tnt6sNdzVVPASiujn9FyHhvyfjTHtzGSny2X58vs gR36cq6RzQ+tvTteowMOoJmJf5NgicUnw1zWd0tdOQ== X-Received: by 2002:a19:354:: with SMTP id 81mr7756832lfd.174.1619466515188; Mon, 26 Apr 2021 12:48:35 -0700 (PDT) MIME-Version: 1.0 References: <20210424021631.1972022-1-rajatja@google.com> <20210424021631.1972022-2-rajatja@google.com> <79b994f2476249498797e1784f735fd7@AcuMS.aculab.com> In-Reply-To: <79b994f2476249498797e1784f735fd7@AcuMS.aculab.com> From: Rajat Jain Date: Mon, 26 Apr 2021 12:47:59 -0700 Message-ID: Subject: Re: [PATCH v2 2/2] pci: Support "removable" attribute for PCI devices To: David Laight Cc: "Rafael J. Wysocki" , Oliver Neukum , Greg Kroah-Hartman , Bjorn Helgaas , Alan Stern , Linux Kernel Mailing List , Linux PCI , "open list:ULTRA-WIDEBAND (UWB) SUBSYSTEM:" , Bjorn Helgaas , Rajat Jain , Jesse Barnes , Dmitry Torokhov Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Apr 26, 2021 at 6:01 AM David Laight wrote: > > From: Rafael J. Wysocki > > Sent: 26 April 2021 12:49 > > > > On Mon, Apr 26, 2021 at 11:17 AM Oliver Neukum wrote: > > > > > > Am Freitag, den 23.04.2021, 19:16 -0700 schrieb Rajat Jain: > > > > Export the already available info, to the userspace via the > > > > device core, so that userspace can implement whatever policies it > > > > wants to, for external removable devices. > > > > > > Hi, > > > > > > is there a way to tell apart whether a device can undergo regular > > > surprise removal? > > > > PCI devices located under a removable parent can undergo surprise > > removal. The ones on a Thunderbolt chain too. > > > > > Do we want that? > > > > Do you mean surprise removal? Yes, we do. > > Always been true - think of cardbus (PCI pcmcia) cards with > PCI bridges to external PCI expansion chassis containing > additional PCI slots. > The cardbus card is hot removable. Hi Oliver / Folks, please let me know if there is a suggestion for me here, or if there is still a question for me to answer. Thanks, Rajat PS: To give some background about this change, we'd like to implement some policies around disabling user plugged devices when a user logs out, and collect statistics around use of such devices. > > David > > - > Registered Address Lakeside, Bramley Road, Mount Farm, Milton Keynes, MK1 1PT, UK > Registration No: 1397386 (Wales)