Files
powerpc-utils/powerpc-utils-lsprop.patch

17 lines
378 B
Diff
Raw Permalink Normal View History

Upstream: TBD
References: lost in the mists of time
Index: powerpc-utils-1.3.4/src/lsprop.c
Accepting request 156267 from home:k0da:ppc:ras - Update to 1.2.16 * The drmgr command does not currently allow users to specify the drc index of the resource they wish to add/remove. This patch updates the drmgr command so that users can specify either a drc name or a drc index with the -s option. * This functionality is needed for the upcoming userspace handling of PRRN RTAS events. The rtas_errd will already have the drc index for the resources it needs, adding the capability to parse drc names from the device tree is not supported in rtas_errd though. * Update the man page for update_flash which had an out of date link to instructions for resetting a managed system to a non-partitioned configuration. * The upstream kernel has a feature in the pseries PCI code called DDW that inserts TCEs transparently to device drivers. The upstream kernel was recently sent a fix for DLPAR that ensured those TCEs would get cleared upon DLPAR remove (http://patchwork.ozlabs.org/patch/213735/), but for it to work, we need a corresponding change to drmgr for, at least, PHB remove, so that the notifier chain has fired before we call into the slot isolate code. Without such a change, there is no way to ensure the DDW TCEs are cleared, and the DLPAR will always fail. * Add and use dt_swap_int() to byte swap on little endian. * Also declare buf as unsigned char, so that we don't sign extend when printing values from it. OBS-URL: https://build.opensuse.org/request/show/156267 OBS-URL: https://build.opensuse.org/package/show/hardware/powerpc-utils?expand=0&rev=15
2013-02-24 17:01:51 +00:00
===================================================================
--- powerpc-utils-1.3.4.orig/src/lsprop.c
+++ powerpc-utils-1.3.4/src/lsprop.c
@@ -30,7 +30,7 @@
#endif
int recurse;
-int maxbytes = 128;
+int maxbytes = 64 * 1024;
int words_per_line = 0;
Accepting request 156267 from home:k0da:ppc:ras - Update to 1.2.16 * The drmgr command does not currently allow users to specify the drc index of the resource they wish to add/remove. This patch updates the drmgr command so that users can specify either a drc name or a drc index with the -s option. * This functionality is needed for the upcoming userspace handling of PRRN RTAS events. The rtas_errd will already have the drc index for the resources it needs, adding the capability to parse drc names from the device tree is not supported in rtas_errd though. * Update the man page for update_flash which had an out of date link to instructions for resetting a managed system to a non-partitioned configuration. * The upstream kernel has a feature in the pseries PCI code called DDW that inserts TCEs transparently to device drivers. The upstream kernel was recently sent a fix for DLPAR that ensured those TCEs would get cleared upon DLPAR remove (http://patchwork.ozlabs.org/patch/213735/), but for it to work, we need a corresponding change to drmgr for, at least, PHB remove, so that the notifier chain has fired before we call into the slot isolate code. Without such a change, there is no way to ensure the DDW TCEs are cleared, and the DLPAR will always fail. * Add and use dt_swap_int() to byte swap on little endian. * Also declare buf as unsigned char, so that we don't sign extend when printing values from it. OBS-URL: https://build.opensuse.org/request/show/156267 OBS-URL: https://build.opensuse.org/package/show/hardware/powerpc-utils?expand=0&rev=15
2013-02-24 17:01:51 +00:00
unsigned char *buf;