Re: [PATCH] powerpc/pseries: Drop unnecessary continue

2014-08-21 Thread Robert Jennings
-BEGIN PGP SIGNED MESSAGE- Hash: SHA512 On 08/20/2014 11:41 PM, Michael Ellerman wrote: On Wed, 2014-08-13 at 14:48 +0530, Himangi Saraogi wrote: Continue is not needed at the bottom of a loop. True. I wonder though, is the code trying to continue to the outer loop? I stared at

Re: [PATCH 2/2] powerpc: Move local setup.h declarations to arch includes

2013-10-28 Thread Robert Jennings
* Michael Ellerman (mich...@ellerman.id.au) wrote: On Fri, Oct 25, 2013 at 02:25:07PM -0500, Robert C Jennings wrote: Move the few declarations from arch/powerpc/kernel/setup.h into arch/powerpc/include/asm/setup.h. This resolves a sparse warning for arch/powerpc/mm/numa.c which defines

Re: [PATCH] powerpc: VPHN topology change updates all siblings

2013-07-24 Thread Robert Jennings
* Benjamin Herrenschmidt (b...@kernel.crashing.org) wrote: On Tue, 2013-07-23 at 07:33 -0500, Robert Jennings wrote: When an associativity level change is found for one thread, the siblings threads need to be updated as well. This is done today for PRRN in stage_topology_update

[PATCH v2] powerpc: VPHN topology change updates all siblings

2013-07-24 Thread Robert Jennings
this patch, a single thread may be flagged for a topology change, leaving it in a different node from its siblings, which is incorrect. This causes problems for the scheduler where overlapping scheduler groups are created and a loop is formed in those groups. Signed-off-by: Robert Jennings r

[PATCH v3] powerpc: VPHN topology change updates all siblings

2013-07-24 Thread Robert Jennings
-by: Robert Jennings r...@linux.vnet.ibm.com --- v2. cpu_sibling_mask is now defined for UP which fixes that build break. v3. Corrected with Cc:stable under singed-off-by and improved description of impact of this issue. - While re-enabled only in v3.9, hardware VPHN support was available prior

[PATCH] powerpc: VPHN topology change updates all siblings

2013-07-23 Thread Robert Jennings
...@redhat.com Signed-off-by: Robert Jennings r...@linux.vnet.ibm.com Cc: sta...@vger.kernel.org --- Looking to get this fix in 3.11. This is requested for the 3.10 stable tree as well, it fixes a bug that presents as a scheduler issue when VPHN is active. VPHN was enabled in the v3.9 window in commit

[PATCH][v2] powerpc: Bring all threads online prior to migration/hibernation

2013-05-07 Thread Robert Jennings
that are offline (H_CEDE'd) will not be woken to make the H_JOIN call and the OS will be deadlocked (all threads either JOIN'd or CEDE'd). Cc: sta...@kernel.org Signed-off-by: Robert Jennings r...@linux.vnet.ibm.com --- v2: Fixed for UP build --- arch/powerpc/include/asm/rtas.h |2

Re: [PATCH] powerpc: Bring all threads online prior to migration/hibernation

2013-05-01 Thread Robert Jennings
* Benjamin Herrenschmidt (b...@kernel.crashing.org) wrote: On Wed, 2013-05-01 at 10:25 -0500, Nathan Fontenot wrote: On 04/26/2013 04:32 PM, Robert Jennings wrote: With this patch before a migration/hibernation all threads present but not online will be brought online. After migration

[PATCH] powerpc: Bring all threads online prior to migration/hibernation

2013-04-26 Thread Robert Jennings
, threads that are offline (H_CEDE'd) will not be woken to make the H_JOIN call and the OS will be deadlocked (all threads either JOIN'd or CEDE'd). Cc: sta...@kernel.org Signed-off-by: Robert Jennings r...@linux.vnet.ibm.com --- arch/powerpc/include/asm/rtas.h |2 + arch/powerpc/kernel

Re: [PATCH] scsi/ibmvscsi: add module alias for ibmvscsic

2012-09-07 Thread Robert Jennings
matches the driver hotplug name and fixes auto-load issues. Signed-off-by: Benjamin Herrenschmidt benh@kernel.crashing. I've give this a quick test and I prefer this cleanup, it solves the initial problem nicely. James, please consider pulling this patch. Thanks. Acked-by: Robert Jennings r

Re: [PATCH] scsi/ibmvscsi: /sys/class/scsi_host/hostX/config doesn't show any information

2012-09-07 Thread Robert Jennings
in an empty config from the server. Signed-off-by: Benjamin Herrenschmidt b...@kernel.crashing.org CC: sta...@vger.kernel.org James, can this be added to your for-next branch so that we can also get this to the stable trees? Thanks. Acked-by: Robert Jennings r...@linux.vnet.ibm.com --- diff

Re: [PATCH] scsi/ibmvscsi: /sys/class/scsi_host/hostX/config doesn't show any information

2012-08-16 Thread Robert Jennings
is our standard PAGE_SIZE) doesn't work and result in an empty config from the server. Signed-off-by: Benjamin Herrenschmidt b...@kernel.crashing.org CC: sta...@vger.kernel.org Acked-by: Robert Jennings r...@linux.vnet.ibm.com Tested with an IBM i host and confirmed the fix. --- diff --git

Re: [PATCH] scsi/ibmvscsi: add module alias for ibmvscsic

2012-07-31 Thread Robert Jennings
On Tue, Jul 31, 2012 at 11:20 AM, Brian King brk...@linux.vnet.ibm.com wrote: On 07/30/2012 10:08 PM, Benjamin Herrenschmidt wrote: On Mon, 2012-07-30 at 21:06 +0200, Olaf Hering wrote: So while this would work, I do wonder however whether we could instead fix it by simplifying the whole

Re: [PATCH] scsi/ibmvscsi: add module alias for ibmvscsic

2012-07-31 Thread Robert Jennings
On Tue, Jul 31, 2012 at 11:20 AM, Brian King brk...@linux.vnet.ibm.comwrote: On 07/30/2012 10:08 PM, Benjamin Herrenschmidt wrote: On Mon, 2012-07-30 at 21:06 +0200, Olaf Hering wrote: So while this would work, I do wonder however whether we could instead fix it by simplifying the whole

Re: [PATCH] powerpc: Support lower minimum entitlement for virtual processors

2012-05-10 Thread Robert Jennings
* Benjamin Herrenschmidt (b...@kernel.crashing.org) wrote: On Fri, 2012-03-23 at 16:22 -0500, Robert Jennings wrote: This patch changes the architecture vector to advertise support for a lower minimum virtual processor entitled capacity. The default minimum without this patch is 10

[PATCH][v2] powerpc: Support lower minimum entitlement for virtual processors

2012-05-10 Thread Robert Jennings
This patch changes the architecture vector to advertise support for a lower minimum virtual processor entitled capacity. The default minimum without this patch is 10%, this patch specifies 1%. Signed-off-by: Robert Jennings r...@linux.vnet.ibm.com --- Dropped minimum to 1% and tested to ensure

Re: [PATCH v3 03/17] powerpc: Add PFO support to the VIO bus

2012-05-10 Thread Robert Jennings
* Benjamin Herrenschmidt (b...@kernel.crashing.org) wrote: Hrm... I don't like that much: + if (op-timeout) + deadline = jiffies + msecs_to_jiffies(op-timeout); + + while (true) { + hret = plpar_hcall_norets(H_COP, op-flags, +

[PATCH] powerpc: ONLINE to OFFLINE CPU state transition during removal

2010-07-22 Thread Robert Jennings
changes the preferred offline state to OFFLINE when an CPU is in the ONLINE state. After cpu_down() is called in dlpar_offline_cpu() the CPU will be OFFLINE and CPU removal can continue. Signed-off-by: Robert Jennings r...@linux.vnet.ibm.com --- diff --git a/arch/powerpc/platforms/pseries

Re: [patch 3/3] [v2] powerpc: make the CMM memory hotplug aware

2009-11-20 Thread Robert Jennings
* Andrew Morton (a...@linux-foundation.org) wrote: On Wed, 18 Nov 2009 12:59:08 -0600 Robert Jennings r...@linux.vnet.ibm.com wrote: The Collaborative Memory Manager (CMM) module allocates individual pages over time that are not migratable. On a long running system this can severely

Re: [patch 3/3] [v2] powerpc: make the CMM memory hotplug aware

2009-11-18 Thread Robert Jennings
to allow the hypervisor time to adjust. Signed-off-by: Robert Jennings r...@linux.vnet.ibm.com Cc: Mel Gorman m...@csn.ul.ie Cc: Ingo Molnar mi...@elte.hu Cc: Brian King brk...@linux.vnet.ibm.com Cc: Paul Mackerras pau...@samba.org Cc: Martin Schwidefsky schwidef...@de.ibm.com Cc: Gerald Schaefer

[PATCH 2/2][v5] powerpc: Make the CMM memory hotplug aware

2009-10-22 Thread Robert Jennings
to allow the hypervisor time to adjust. Signed-off-by: Robert Jennings r...@linux.vnet.ibm.com --- Changes since v4: * The structures for recording loaned pages are not allocated as MOVABLE * The structures for recording loaned pages are removed from sections being taken offline by moving

Re: [PATCH 1/2][v2] mm: add notifier in pageblock isolation for balloon drivers

2009-10-13 Thread Robert Jennings
=== 11.50 149005 1245075 Average 1.75 715817738 StdDev Regards, Robert Jennings ___ Linuxppc-dev mailing list Linuxppc-dev@lists.ozlabs.org https://lists.ozlabs.org/listinfo/linuxppc-dev

Re: [PATCH 2/2][v3] powerpc: Make the CMM memory hotplug aware

2009-10-12 Thread Robert Jennings
* Benjamin Herrenschmidt (b...@kernel.crashing.org) wrote: On Fri, 2009-10-09 at 15:41 -0500, Robert Jennings wrote: The Collaborative Memory Manager (CMM) module allocates individual pages over time that are not migratable. On a long running system this can severely impact the ability

[PATCH 2/2][v4] powerpc: Make the CMM memory hotplug aware

2009-10-12 Thread Robert Jennings
to allow the hypervisor time to adjust. Signed-off-by: Robert Jennings r...@linux.vnet.ibm.com --- Changes since v3: * Changed from atomic to mutex for hotplug state tracking. * Clarified documentation for the new module parameter description. Changes since v2: * None, resent with parent

Re: [PATCH 1/2][v2] mm: add notifier in pageblock isolation for balloon drivers

2009-10-09 Thread Robert Jennings
* KAMEZAWA Hiroyuki (kamezawa.hir...@jp.fujitsu.com) wrote: On Fri, 2 Oct 2009 13:44:58 -0500 Robert Jennings r...@linux.vnet.ibm.com wrote: Memory balloon drivers can allocate a large amount of memory which is not movable but could be freed to accomodate memory hotplug remove. Prior

Re: [PATCH 1/2][v2] mm: add notifier in pageblock isolation for balloon drivers

2009-10-09 Thread Robert Jennings
* Mel Gorman (m...@csn.ul.ie) wrote: On Fri, Oct 02, 2009 at 01:44:58PM -0500, Robert Jennings wrote: Memory balloon drivers can allocate a large amount of memory which is not movable but could be freed to accomodate memory hotplug remove. Prior to calling the memory hotplug notifier

Re: [PATCH 1/2][v2] mm: add notifier in pageblock isolation for balloon drivers

2009-10-09 Thread Robert Jennings
* Andrew Morton (a...@linux-foundation.org) wrote: On Fri, 2 Oct 2009 13:44:58 -0500 Robert Jennings r...@linux.vnet.ibm.com wrote: Memory balloon drivers can allocate a large amount of memory which is not movable but could be freed to accomodate memory hotplug remove. Prior

[PATCH 1/2][v3] mm: add notifier in pageblock isolation for balloon drivers

2009-10-09 Thread Robert Jennings
) using a notifier chain. If all of the non-movable pages are owned by a balloon, they can be freed later through the memory notifier chain and the range can still be isolated in set_migratetype_isolate(). Signed-off-by: Robert Jennings r...@linux.vnet.ibm.com --- Testing: * With the patch memory

[PATCH 2/2][v3] powerpc: Make the CMM memory hotplug aware

2009-10-09 Thread Robert Jennings
to allow the hypervisor time to adjust. Signed-off-by: Robert Jennings r...@linux.vnet.ibm.com --- I'm not entirely sure of the ettiquette, but there are no changes to this patch. I'm resending to keep it with the changes to the parent patch. arch/powerpc/platforms/pseries/cmm.c | 207

Re: [PATCH 2/2][v2] powerpc: Make the CMM memory hotplug aware

2009-10-08 Thread Robert Jennings
for the balloon page list can? Robert Jennings wrote: @@ -110,6 +125,9 @@ static long cmm_alloc_pages(long nr) cmm_dbg(Begin request for %ld pages\n, nr); while (nr) { +if (atomic_read(hotplug_active)) +break; + addr = __get_free_page(GFP_NOIO

Re: [PATCH 1/2] mm: add notifier in pageblock isolation for balloon drivers

2009-10-02 Thread Robert Jennings
* Nathan Fontenot (nf...@austin.ibm.com) wrote: Robert Jennings wrote: Memory balloon drivers can allocate a large amount of memory which is not movable but could be freed to accommodate memory hotplug remove. Prior to calling the memory hotplug notifier chain the memory in the pageblock

Re: [PATCH 1/2] mm: add notifier in pageblock isolation for balloon drivers

2009-10-02 Thread Robert Jennings
* Mel Gorman (m...@csn.ul.ie) wrote: On Thu, Oct 01, 2009 at 02:53:11PM -0500, Robert Jennings wrote: Memory balloon drivers can allocate a large amount of memory which is not movable but could be freed to accommodate memory hotplug remove. Prior to calling the memory hotplug notifier

[PATCH 1/2][v2] mm: add notifier in pageblock isolation for balloon drivers

2009-10-02 Thread Robert Jennings
of the non-movable pages are owned by a balloon, they can be freed later through the memory notifier chain and the range can still be isolated in set_migratetype_isolate(). Signed-off-by: Robert Jennings r...@linux.vnet.ibm.com --- drivers/base/memory.c | 19 +++ include/linux

[PATCH 2/2][v2] powerpc: Make the CMM memory hotplug aware

2009-10-02 Thread Robert Jennings
to allow the hypervisor time to adjust. Signed-off-by: Robert Jennings r...@linux.vnet.ibm.com --- Minor update to cmm_count_pages() to account for changes in struct memory_isolate_notify. --- arch/powerpc/platforms/pseries/cmm.c | 207 ++- 1 file changed, 201

[PATCH 1/2] mm: add notifier in pageblock isolation for balloon drivers

2009-10-01 Thread Robert Jennings
of the non-movable pages are owned by a balloon, they can be freed later through the memory notifier chain and the range can still be isolated in set_migratetype_isolate(). Signed-off-by: Robert Jennings r...@linux.vnet.ibm.com --- drivers/base/memory.c | 19 +++ include/linux

[PATCH 2/2] powerpc: Make the CMM memory hotplug aware

2009-10-01 Thread Robert Jennings
-off-by: Robert Jennings r...@linux.vnet.ibm.com --- arch/powerpc/platforms/pseries/cmm.c | 211 ++- 1 file changed, 205 insertions(+), 6 deletions(-) Index: b/arch/powerpc/platforms/pseries/cmm.c

[PATCH] [v2] powerpc: CMO unused page hinting

2009-04-15 Thread Robert Jennings
slower to give up unused memory to other partitions. This adds the kernel parameter 'cmo_free_hint' to disable this functionality. Signed-off-by: Brian King brk...@linux.vnet.ibm.com Signed-off-by: Robert Jennings r...@linux.vnet.ibm.com --- Documentation/kernel-parameters.txt |7 + arch

[PATCH] powerpc: VRM unused page hinting

2009-04-13 Thread Robert Jennings
slower to give up unused memory to other partitions. Signed-off-by: Brian King brk...@linux.vnet.ibm.com Signed-off-by: Robert Jennings r...@linux.vnet.ibm.com --- arch/powerpc/include/asm/page.h |5 +++ arch/powerpc/platforms/pseries/lpar.c | 52 ++ 2

[PATCH] powerpc: Correct VIO bus accounting problem in CMO env.

2009-01-22 Thread Robert Jennings
, this patch adds the return that is needed in the error path. Signed-off-by: Robert Jennings r...@linux.vnet.ibm.com --- arch/powerpc/kernel/vio.c |7 --- 1 file changed, 4 insertions(+), 3 deletions(-) Index: b/arch/powerpc/kernel/vio.c

[PATCH] powerpc: Correct page-in counter for CMM

2008-11-14 Thread Robert Jennings
the number of pages. This patch uses PAGE_FACTOR to correct the reporting to the hypervisor. Reported-by: Andrew Theurer [EMAIL PROTECTED] Signed-off-by: Robert Jennings [EMAIL PROTECTED] --- arch/powerpc/mm/fault.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) Index: b/arch/powerpc/mm

[PATCH 1/3 v2] powerpc: make CMO paging space pool ID and page size available

2008-08-18 Thread Robert Jennings
During platform setup, save off the primary/secondary paging space pool IDs and the page size. Added accessors in hvcall.h for these variables. Signed-off-by: Robert Jennings [EMAIL PROTECTED] --- I wrote Submitted-by on the last patch for some strange reason, that't the only thing changed here

Re: [PATCH v2] powerpc: Improve message for vio bus entitlement panic

2008-08-18 Thread Robert Jennings
Add information regarding the available and required entitlement amounts to the message displayed for the panic when insufficient entitlement is provided at boot. Signed-off-by: Robert Jennings [EMAIL PROTECTED] --- I had typed Submitted-by instead of Signed-off-by previously. --- arch/powerpc

[PATCH 0/3] powerpc: cmo fix page loaning and add info to lparcfg

2008-08-15 Thread Robert Jennings
/ppc64/lparcfg in the second patch. The first patch makes the data available and the other two patches (unrelated to each other) depend on the first. Regards, Robert Jennings ___ Linuxppc-dev mailing list Linuxppc-dev@ozlabs.org https://ozlabs.org/mailman

[PATCH 2/3] powerpc: Fix CMM page loaning on 64k page kernel with 4k hardware pages

2008-08-15 Thread Robert Jennings
and mark them all as loaned/active. Signed-off-by: Brian King [EMAIL PROTECTED] Signed-off-by: Robert Jennings [EMAIL PROTECTED] --- arch/powerpc/platforms/pseries/plpar_wrappers.h | 27 ++-- 1 file changed, 25 insertions(+), 2 deletions(-) Index: b/arch/powerpc/platforms

[PATCH 3/3] powerpc: add CMO enabled flag and paging space data to lparcfg

2008-08-15 Thread Robert Jennings
Add a field in lparcfg output to indicate whether the kernel is running on a dedicated or shared memory lpar. Added fields to show the paging space pool IDs and the CMO page size. Submitted-by: Robert Jennings [EMAIL PROTECTED] --- arch/powerpc/kernel/lparcfg.c |5 + 1 file changed

[PATCH 00/16 v4] powerpc: pSeries Cooperative Memory Overcommitment support

2008-07-23 Thread Robert Jennings
enabled environments. This patch set has been written against 2.6.26 and has been tested at that level. Regards, Robert Jennings ___ Linuxppc-dev mailing list Linuxppc-dev@ozlabs.org https://ozlabs.org/mailman/listinfo/linuxppc-dev

[PATCH 01/16 v4] powerpc: Remove extraneous error reporting for hcall failures in lparcfg

2008-07-23 Thread Robert Jennings
From: Nathan Fontenot [EMAIL PROTECTED] Remove the extraneous error reporting used when a hcall made from lparcfg fails. Signed-off-by: Nathan Fontenot [EMAIL PROTECTED] Signed-off-by: Robert Jennings [EMAIL PROTECTED] Acked-by: Paul Mackerras [EMAIL PROTECTED] --- arch/powerpc/kernel

[PATCH 02/16 v4] powerpc: Split processor entitlement retrieval and gat

2008-07-23 Thread Robert Jennings
Fontenot [EMAIL PROTECTED] Signed-off-by: Robert Jennings [EMAIL PROTECTED] --- Updated patch to remove checking the return code from the h_call for H_PIC. This reverts the reporting back to its original state. --- arch/powerpc/kernel/lparcfg.c | 166

[PATCH 03/16 v4] powerpc: Add memory entitlement capabilities to /proc/ppc64/lparcfg

2008-07-23 Thread Robert Jennings
[EMAIL PROTECTED] Signed-off-by: Robert Jennings [EMAIL PROTECTED] --- Updated patch, increment the lparcfg module version number. --- arch/powerpc/kernel/lparcfg.c | 121 ++ include/asm-powerpc/hvcall.h | 18 ++ 2 files changed, 137 insertions(+), 2

[PATCH 04/16 v4] powerpc: Split retrieval of processor entitlement data into a helper routine

2008-07-23 Thread Robert Jennings
Split the retrieval of processor entitlement data returned in the H_GET_PPP hcall into its own helper routine. Signed-off-by: Nathan Fontenot [EMAIL PROTECTED] Signed-off-by: Robert Jennings [EMAIL PROTECTED] --- Updated patch to correct the reporting of pool_capcity. --- arch/powerpc/kernel

[PATCH 05/16 v4] powerpc: Enable CMO feature during platform setup

2008-07-23 Thread Robert Jennings
From: Robert Jennings [EMAIL PROTECTED] For Cooperative Memory Overcommitment (CMO), set the FW_FEATURE_CMO flag in powerpc_firmware_features from the rtas ibm,get-system-parameters table prior to calling iommu_init_early_pSeries. With this, any CMO specific functionality can be controlled

[PATCH 06/16 v4] powerpc: Utilities to set firmware page state

2008-07-23 Thread Robert Jennings
From: Brian King [EMAIL PROTECTED] Newer versions of firmware support page states, which are used by the collaborative memory manager (future patch) to loan pages to the hypervisor for use by other partitions. Signed-off-by: Brian King [EMAIL PROTECTED] Signed-off-by: Robert Jennings [EMAIL

[PATCH 07/16 v4] powerpc: Add collaborative memory manager

2008-07-23 Thread Robert Jennings
] Signed-off-by: Robert Jennings [EMAIL PROTECTED] --- Added a config option PPC_SMLPAR (Support for shared-memory logical partitions) to the platform. This will select LPARCFG and address the issue where h_get_mpp() may not have been present when compiling. This new config option is now used

[PATCH 08/16 v4] powerpc: Add CMO paging statistics

2008-07-23 Thread Robert Jennings
-off-by: Robert Jennings [EMAIL PROTECTED] --- arch/powerpc/kernel/lparcfg.c | 20 include/asm-powerpc/lppaca.h |5 - 2 files changed, 24 insertions(+), 1 deletion(-) Index: b/arch/powerpc/kernel/lparcfg.c

[PATCH 09/16 v4] powerpc: iommu enablement for CMO

2008-07-23 Thread Robert Jennings
functions need to change to indicate failure. * all other platforms will need updates to iommu functions to match the new calling semantics; they will return 0 on success. The other platforms default configs have been built, but no further testing was performed. Signed-off-by: Robert

[PATCH 10/16 v4] powerpc: vio bus support for CMO

2008-07-23 Thread Robert Jennings
From: Robert Jennings [EMAIL PROTECTED] This is a large patch but the normal code path is not affected. For non-pSeries platforms the code is ifdef'ed out and for non-CMO enabled pSeries systems this does not affect the normal code path. Devices that do not perform DMA operations do not need

[PATCH 11/16 v4] powerpc: Verify CMO memory entitlement updates with virtual I/O

2008-07-23 Thread Robert Jennings
From: Nathan Fontenot [EMAIL PROTECTED] Verify memory entitlement updates can be handled by vio. Signed-off-by: Nathan Fontenot [EMAIL PROTECTED] Signed-off-by: Robert Jennings [EMAIL PROTECTED] --- arch/powerpc/kernel/lparcfg.c | 10 ++ 1 file changed, 10 insertions(+) Index: b

[PATCH 12/16 v4] ibmveth: Automatically enable larger rx buffer pools for larger mtu

2008-07-23 Thread Robert Jennings
From: Santiago Leon [EMAIL PROTECTED] Activates larger rx buffer pools when the MTU is changed to a larger value. This patch de-activates the large rx buffer pools when the MTU changes to a smaller value. Signed-off-by: Santiago Leon [EMAIL PROTECTED] Signed-off-by: Robert Jennings [EMAIL

[PATCH 13/16 v4] ibmveth: enable driver for CMO

2008-07-23 Thread Robert Jennings
, ibmveth_replenish_buffer_pool() is corrected to check the return from dma_map_single and fail gracefully. * The driver will have a get_desired_dma function defined to function in a CMO environment. * When the MTU is changed, the driver will update the device IO entitlement Signed-off-by: Robert

[PATCH 14/16 v4] ibmvscsi: driver enablement for CMO

2008-07-23 Thread Robert Jennings
From: Robert Jennings [EMAIL PROTECTED] Enable the driver to function in a Cooperative Memory Overcommitment (CMO) environment. The following changes are made to enable the driver for CMO: * DMA mapping errors will not result in error messages if entitlement has been exceeded and resources

[PATCH 15/16 v4] ibmvfc: Add support for collaborative memory overcommit

2008-07-23 Thread Robert Jennings
From: Brian King [EMAIL PROTECTED] Adds support to the ibmvfc driver for collaborative memory overcommit. Signed-off-by: Brian King [EMAIL PROTECTED] Signed-off-by: Robert Jennings [EMAIL PROTECTED] --- We would like to take this patch through linuxppc-dev with the full change set

[PATCH 16/16 v4] powerpc: Update arch vector to indicate support for CMO

2008-07-23 Thread Robert Jennings
From: Nathan Fontenot [EMAIL PROTECTED] Update the architecture vector to indicate that Cooperative Memory Overcommitment is supported if CONFIG_PPC_SMLPAR is set. Signed-off-by: Nathan Fontenot [EMAIL PROTECTED] Signed-off-by: Robert Jennings [EMAIL PROTECTED] --- This is the last patch

Re: [PATCH 10/16 v3] powerpc: iommu enablement for CMO

2008-07-22 Thread Robert Jennings
* Paul Mackerras ([EMAIL PROTECTED]) wrote: Robert Jennings writes: To support Cooperative Memory Overcommitment (CMO), we need to check for failure from some of the tce hcalls. This patch runs into context mismatches because of changes made by Michael Ellerman's patch Fix sparse

Re: [PATCH 10/16 v3] [v2] powerpc: iommu enablement for CMO

2008-07-22 Thread Robert Jennings
* Paul Mackerras ([EMAIL PROTECTED]) wrote: Robert Jennings writes: Minor change to add a call to align the return from the device's get_desired_dma() function with IOMMU_PAGE_ALIGN(). Also removed a comment referring to a non-existent structure member. Anyway, my first comment

[PATCH] powerpc: Correct CMO entitlement accounting for map_sg

2008-07-21 Thread Robert Jennings
-off-by: Robert Jennings [EMAIL PROTECTED] --- This applies on top of the existing CMO patchset. --- arch/powerpc/kernel/vio.c |7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) Index: b/arch/powerpc/kernel/vio.c

[PATCH] powerpc: correct CMO feature flag enablement

2008-07-15 Thread Robert Jennings
Correct string conversion for rtas value being read for CMO configuration. A value of -1 in the string indicates that CMO is not enabled and we had used simple_strtoul rather than simple_strtol which caused problems. Signed-off-by: Robert Jennings [EMAIL PROTECTED] --- This patch applies on top

Re: [PATCH 15/16 v3] ibmvscsi: driver enablement for CMO

2008-07-08 Thread Robert Jennings
* Brian King ([EMAIL PROTECTED]) wrote: Robert Jennings wrote: @@ -1613,6 +1624,26 @@ static struct scsi_host_template driver_ }; /** + * ibmvscsi_get_desired_dma - Calculate IO entitlement needed by the driver + * + * @vdev: struct vio_dev for the device whose entitlement

Re: [PATCH 15/16 v3] [v2] ibmvscsi: driver enablement for CMO

2008-07-08 Thread Robert Jennings
From: Robert Jennings [EMAIL PROTECTED] I removed references to 'entitlement' after having changed the function 'get_io_entitlement' to 'get_desired_dma' to correctly indicate what the function was doing. Also, this function does not need to page align the return value, the VIO bus

Re: [PATCH 14/16 v3] [v2] ibmveth: enable driver for CMO

2008-07-08 Thread Robert Jennings
environment. * When the MTU is changed, the driver will update the device IO entitlement Signed-off-by: Robert Jennings [EMAIL PROTECTED] Signed-off-by: Brian King [EMAIL PROTECTED] Signed-off-by: Santiago Leon [EMAIL PROTECTED] --- drivers/net/ibmveth.c | 169

Re: [PATCH 10/16 v3] [v2] powerpc: iommu enablement for CMO

2008-07-08 Thread Robert Jennings
From: Robert Jennings [EMAIL PROTECTED] Minor change to add a call to align the return from the device's get_desired_dma() function with IOMMU_PAGE_ALIGN(). Also removed a comment referring to a non-existent structure member. This is a large patch but the normal code path is not affected

[PATCH 00/16 v3] powerpc: pSeries Cooperative Memory Overcommitment support

2008-07-04 Thread Robert Jennings
written against 2.6.26-rc8 and has been tested at that level. Regards, Robert Jennings ___ Linuxppc-dev mailing list Linuxppc-dev@ozlabs.org https://ozlabs.org/mailman/listinfo/linuxppc-dev

[PATCH 01/16 v3] powerpc: Remove extraneous error reporting for hcall failures in lparcfg

2008-07-04 Thread Robert Jennings
From: Nathan Fontenot [EMAIL PROTECTED] Remove the extraneous error reporting used when a hcall made from lparcfg fails. Signed-off-by: Nathan Fontenot [EMAIL PROTECTED] Signed-off-by: Robert Jennings [EMAIL PROTECTED] --- arch/powerpc/kernel/lparcfg.c | 32

[PATCH 02/16 v3] powerpc: Split processor entitlement retrieval and gathering to helper routines

2008-07-04 Thread Robert Jennings
] Signed-off-by: Robert Jennings [EMAIL PROTECTED] --- arch/powerpc/kernel/lparcfg.c | 168 ++--- 1 file changed, 90 insertions(+), 78 deletions(-) Index: b/arch/powerpc/kernel/lparcfg.c

[PATCH 03/16 v3] powerpc: Add memory entitlement capabilities to /proc/ppc64/lparcfg

2008-07-04 Thread Robert Jennings
[EMAIL PROTECTED] Signed-off-by: Robert Jennings [EMAIL PROTECTED] --- arch/powerpc/kernel/lparcfg.c | 119 ++ include/asm-powerpc/hvcall.h | 18 ++ 2 files changed, 136 insertions(+), 1 deletion(-) Index: b/arch/powerpc/kernel/lparcfg.c

[PATCH 04/16 v3] powerpc: Split retrieval of processor entitlement data into a helper routine

2008-07-04 Thread Robert Jennings
From: Nathan Fontenot [EMAIL PROTECTED] Split the retrieval of processor entitlement data returned in the H_GET_PPP hcall into its own helper routine. Signed-off-by: Nathan Fontenot [EMAIL PROTECTED] Signed-off-by: Robert Jennings [EMAIL PROTECTED] --- arch/powerpc/kernel/lparcfg.c | 80

[PATCH 05/16 v3] powerpc: Enable CMO feature during platform setup

2008-07-04 Thread Robert Jennings
From: Robert Jennings [EMAIL PROTECTED] For Cooperative Memory Overcommitment (CMO), set the FW_FEATURE_CMO flag in powerpc_firmware_features from the rtas ibm,get-system-parameters table prior to calling iommu_init_early_pSeries. With this, any CMO specific functionality can be controlled

[PATCH 05/16 v3] powerpc: Enable CMO feature during platform setup

2008-07-04 Thread Robert Jennings
From: Robert Jennings [EMAIL PROTECTED] For Cooperative Memory Overcommitment (CMO), set the FW_FEATURE_CMO flag in powerpc_firmware_features from the rtas ibm,get-system-parameters table prior to calling iommu_init_early_pSeries. With this, any CMO specific functionality can be controlled

[PATCH 06/16 v3] powerpc: Utilities to set firmware page state

2008-07-04 Thread Robert Jennings
From: Brian King [EMAIL PROTECTED] Newer versions of firmware support page states, which are used by the collaborative memory manager (future patch) to loan pages to the hypervisor for use by other partitions. Signed-off-by: Brian King [EMAIL PROTECTED] Signed-off-by: Robert Jennings [EMAIL

[PATCH 06/16 v3] powerpc: Utilities to set firmware page state

2008-07-04 Thread Robert Jennings
From: Brian King [EMAIL PROTECTED] Newer versions of firmware support page states, which are used by the collaborative memory manager (future patch) to loan pages to the hypervisor for use by other partitions. Signed-off-by: Brian King [EMAIL PROTECTED] Signed-off-by: Robert Jennings [EMAIL

[PATCH 07/16 v3] powerpc: Add collaborative memory manager

2008-07-04 Thread Robert Jennings
From: Brian King [EMAIL PROTECTED] Adds a collaborative memory manager, which acts as a simple balloon driver for System p machines that support cooperative memory overcommitment (CMO). Signed-off-by: Brian King [EMAIL PROTECTED] Signed-off-by: Robert Jennings [EMAIL PROTECTED] --- arch

[PATCH 08/16 v3] powerpc: Do not probe PCI buses or eBus devices if CMO is enabled

2008-07-04 Thread Robert Jennings
-by: Robert Jennings [EMAIL PROTECTED] --- arch/powerpc/kernel/ibmebus.c |6 ++ arch/powerpc/platforms/pseries/setup.c |4 2 files changed, 10 insertions(+) Index: b/arch/powerpc/kernel/ibmebus.c === --- a/arch

[PATCH 09/16 v3] powerpc: Add CMO paging statistics

2008-07-04 Thread Robert Jennings
-off-by: Robert Jennings [EMAIL PROTECTED] --- arch/powerpc/kernel/lparcfg.c | 20 include/asm-powerpc/lppaca.h |5 - 2 files changed, 24 insertions(+), 1 deletion(-) Index: b/arch/powerpc/kernel/lparcfg.c

[PATCH 10/16 v3] powerpc: iommu enablement for CMO

2008-07-04 Thread Robert Jennings
functions need to change to indicate failure. * all other platforms will need updates to iommu functions to match the new calling semantics; they will return 0 on success. The other platforms default configs have been built, but no further testing was performed. Signed-off-by: Robert

[PATCH 11/16 v3] powerpc: vio bus support for CMO

2008-07-04 Thread Robert Jennings
From: Robert Jennings [EMAIL PROTECTED] This is a large patch but the normal code path is not affected. For non-pSeries platforms the code is ifdef'ed out and for non-CMO enabled pSeries systems this does not affect the normal code path. Devices that do not perform DMA operations do not need

[PATCH 12/16 v3] powerpc: Verify CMO memory entitlement updates with virtual I/O

2008-07-04 Thread Robert Jennings
From: Nathan Fontenot [EMAIL PROTECTED] Verify memory entitlement updates can be handled by vio. Signed-off-by: Nathan Fontenot [EMAIL PROTECTED] Signed-off-by: Robert Jennings [EMAIL PROTECTED] --- arch/powerpc/kernel/lparcfg.c | 10 ++ 1 file changed, 10 insertions(+) Index: b

[PATCH 13/16 v3] ibmveth: Automatically enable larger rx buffer pools for larger mtu

2008-07-04 Thread Robert Jennings
From: Santiago Leon [EMAIL PROTECTED] Activates larger rx buffer pools when the MTU is changed to a larger value. This patch de-activates the large rx buffer pools when the MTU changes to a smaller value. Signed-off-by: Santiago Leon [EMAIL PROTECTED] Signed-off-by: Robert Jennings [EMAIL

[PATCH 14/16 v3] ibmveth: enable driver for CMO

2008-07-04 Thread Robert Jennings
, ibmveth_replenish_buffer_pool() is corrected to check the return from dma_map_single and fail gracefully. * The driver will have a get_desired_dma function defined to function in a CMO environment. * When the MTU is changed, the driver will update the device IO entitlement Signed-off-by: Robert

[PATCH 15/16 v3] ibmvscsi: driver enablement for CMO

2008-07-04 Thread Robert Jennings
From: Robert Jennings [EMAIL PROTECTED] Enable the driver to function in a Cooperative Memory Overcommitment (CMO) environment. The following changes are made to enable the driver for CMO: * DMA mapping errors will not result in error messages if entitlement has been exceeded and resources

[PATCH 16/16 v3] powerpc: Update arch vector to indicate support for CMO

2008-07-04 Thread Robert Jennings
] Signed-off-by: Robert Jennings [EMAIL PROTECTED] --- arch/powerpc/kernel/prom_init.c |5 - 1 file changed, 4 insertions(+), 1 deletion(-) Index: b/arch/powerpc/kernel/prom_init.c === --- a/arch/powerpc/kernel/prom_init.c +++ b

[PATCH 00/18 v2] powerpc: pSeries Cooperative Memory Overcommitment support

2008-06-25 Thread Robert Jennings
at that level. Regards, Robert Jennings ___ Linuxppc-dev mailing list Linuxppc-dev@ozlabs.org https://ozlabs.org/mailman/listinfo/linuxppc-dev

[PATCH 01/18 v2] powerpc: Remove extraneous error reporting for hcall failures in lparcfg

2008-06-25 Thread Robert Jennings
From: Nathan Fontenot [EMAIL PROTECTED] Remove the extraneous error reporting used when a hcall made from lparcfg fails. Signed-off-by: Nathan Fontenot [EMAIL PROTECTED] Signed-off-by: Robert Jennings [EMAIL PROTECTED] --- arch/powerpc/kernel/lparcfg.c | 32

[PATCH 02/18 v2] powerpc: Split processor entitlement retrieval and gathering to helper routines

2008-06-25 Thread Robert Jennings
] Signed-off-by: Robert Jennings [EMAIL PROTECTED] --- arch/powerpc/kernel/lparcfg.c | 168 ++--- 1 file changed, 90 insertions(+), 78 deletions(-) Index: b/arch/powerpc/kernel/lparcfg.c

[PATCH 03/18 v2] powerpc: Add memory entitlement capabilities to /proc/ppc64/lparcfg

2008-06-25 Thread Robert Jennings
[EMAIL PROTECTED] Signed-off-by: Robert Jennings [EMAIL PROTECTED] --- arch/powerpc/kernel/lparcfg.c | 119 ++ include/asm-powerpc/hvcall.h | 18 ++ 2 files changed, 136 insertions(+), 1 deletion(-) Index: b/arch/powerpc/kernel/lparcfg.c

[PATCH 04/18 v2] powerpc: Split retrieval of processor entitlement data into a helper routine

2008-06-25 Thread Robert Jennings
From: Nathan Fontenot [EMAIL PROTECTED] Split the retrieval of processor entitlement data returned in the H_GET_PPP hcall into its own helper routine. Signed-off-by: Nathan Fontenot [EMAIL PROTECTED] Signed-off-by: Robert Jennings [EMAIL PROTECTED] --- arch/powerpc/kernel/lparcfg.c | 80

[PATCH 05/18 v2] powerpc: Enable CMO feature during platform setup

2008-06-25 Thread Robert Jennings
From: Robert Jennings [EMAIL PROTECTED] For Cooperative Memory Overcommitment (CMO), set the FW_FEATURE_CMO flag in powerpc_firmware_features from the rtas ibm,get-system-parameters table prior to calling iommu_init_early_pSeries. With this, any CMO specific functionality can be controlled

[PATCH 06/18 v2] powerpc: Utilities to set firmware page state

2008-06-25 Thread Robert Jennings
From: Brian King [EMAIL PROTECTED] Newer versions of firmware support page states, which are used by the collaborative memory manager (future patch) to loan pages to the hypervisor for use by other partitions. Signed-off-by: Brian King [EMAIL PROTECTED] Signed-off-by: Robert Jennings [EMAIL

[PATCH 07/18 v2] powerpc: Add collaborative memory manager

2008-06-25 Thread Robert Jennings
From: Brian King [EMAIL PROTECTED] Adds a collaborative memory manager, which acts as a simple balloon driver for System p machines that support cooperative memory overcommitment (CMO). Signed-off-by: Brian King [EMAIL PROTECTED] Signed-off-by: Robert Jennings [EMAIL PROTECTED] --- arch

[PATCH 08/18 v2] powerpc: Do not probe PCI buses or eBus devices if CMO is enabled

2008-06-25 Thread Robert Jennings
-by: Robert Jennings [EMAIL PROTECTED] --- arch/powerpc/kernel/ibmebus.c |6 ++ arch/powerpc/platforms/pseries/setup.c |4 2 files changed, 10 insertions(+) Index: b/arch/powerpc/kernel/ibmebus.c === --- a/arch

[PATCH 09/18 v2] powerpc: Add CMO paging statistics

2008-06-25 Thread Robert Jennings
-off-by: Robert Jennings [EMAIL PROTECTED] --- arch/powerpc/kernel/lparcfg.c | 20 include/asm-powerpc/lppaca.h |5 - 2 files changed, 24 insertions(+), 1 deletion(-) Index: b/arch/powerpc/kernel/lparcfg.c

[PATCH 11/18 v2] powerpc: vio bus support for CMO

2008-06-25 Thread Robert Jennings
From: Robert Jennings [EMAIL PROTECTED] Enable bus level entitled memory accounting for Cooperative Memory Overcommitment (CMO) environments. The normal code path should not be affected. The following changes are made that the VIO bus layer for CMO: * add IO memory accounting per device

  1   2   >