Skip to content

Commit f110ca4

Browse files
Alex Chiangjbarnes993
authored andcommitted
PCI Hotplug: schedule fakephp for feature removal
Now that the PCI core is capable of function-level remove and rescan as well as bus-level rescan, there's no functional need to keep fakephp anymore. We keep it around for userspace compatibility reasons, schedule removal in three years. Signed-off-by: Alex Chiang <achiang@hp.com> Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
1 parent 8ffd254 commit f110ca4

1 file changed

Lines changed: 33 additions & 0 deletions

File tree

‎Documentation/feature-removal-schedule.txt‎

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -335,6 +335,7 @@ Why: In 2.6.18 the Secmark concept was introduced to replace the "compat_net"
335335
Secmark, it is time to deprecate the older mechanism and start the
336336
process of removing the old code.
337337
Who: Paul Moore <paul.moore@hp.com>
338+
338339
---------------------------
339340

340341
What: sysfs ui for changing p4-clockmod parameters
@@ -344,3 +345,35 @@ Why: See commits 129f8ae9b1b5be94517da76009ea956e89104ce8 and
344345
Removal is subject to fixing any remaining bugs in ACPI which may
345346
cause the thermal throttling not to happen at the right time.
346347
Who: Dave Jones <davej@redhat.com>, Matthew Garrett <mjg@redhat.com>
348+
349+
---------------------------
350+
351+
What: fakephp and associated sysfs files in /sys/bus/pci/slots/
352+
When: 2011
353+
Why: In 2.6.27, the semantics of /sys/bus/pci/slots was redefined to
354+
represent a machine's physical PCI slots. The change in semantics
355+
had userspace implications, as the hotplug core no longer allowed
356+
drivers to create multiple sysfs files per physical slot (required
357+
for multi-function devices, e.g.). fakephp was seen as a developer's
358+
tool only, and its interface changed. Too late, we learned that
359+
there were some users of the fakephp interface.
360+
361+
In 2.6.30, the original fakephp interface was restored. At the same
362+
time, the PCI core gained the ability that fakephp provided, namely
363+
function-level hot-remove and hot-add.
364+
365+
Since the PCI core now provides the same functionality, exposed in:
366+
367+
/sys/bus/pci/rescan
368+
/sys/bus/pci/devices/.../remove
369+
/sys/bus/pci/devices/.../rescan
370+
371+
there is no functional reason to maintain fakephp as well.
372+
373+
We will keep the existing module so that 'modprobe fakephp' will
374+
present the old /sys/bus/pci/slots/... interface for compatibility,
375+
but users are urged to migrate their applications to the API above.
376+
377+
After a reasonable transition period, we will remove the legacy
378+
fakephp interface.
379+
Who: Alex Chiang <achiang@hp.com>

0 commit comments

Comments
 (0)