Re: [PATCH kernel] KVM: PPC: Fix TCE handling for VFIO

2022-04-13 Thread David Gibson
s which is not that bad considering the size > of the cache (1024 TCEs or so). > > Fixes: ca1fc489cfa0 ("KVM: PPC: Book3S: Allow backing bigger guest IOMMU > pages with smaller physical pages") > Signed-off-by: Alexey Kardashevskiy Reviewed-by: David Gibson In additi

Re: [PATCH 0/5] KVM: PPC: Book3S: Modules cleanup and unification

2021-09-02 Thread David Gibson
On Thu, Sep 02, 2021 at 11:32:41AM -0300, Fabiano Rosas wrote: > David Gibson writes: > > > On Wed, Sep 01, 2021 at 02:33:52PM -0300, Fabiano Rosas wrote: > >> This series merges our three kvm modules kvm.ko, kvm-hv.ko and > >> kvm-pr.ko into one kvm.ko module. &

Re: [PATCH 0/5] KVM: PPC: Book3S: Modules cleanup and unification

2021-09-01 Thread David Gibson
h/powerpc/kvm/powerpc.c | 14 - > kernel/irq/irqdesc.c | 2 +- > 17 files changed, 125 insertions(+), 129 deletions(-) > -- David Gibson| I'll have my music baroque, and my code david AT gibson.dropbear.id.au | minimalist, thank you. NOT _the_ _other_ | _way_ _around_! http://www.ozlabs.org/~dgibson signature.asc Description: PGP signature

Re: [PATCH v8 5/5] powerpc/pseries: Add support for FORM2 associativity

2021-08-16 Thread David Gibson
onsidered > deprecated. This patch adds another resource grouping named FORM2. > > Signed-off-by: Daniel Henrique Barboza > Signed-off-by: Aneesh Kumar K.V Reviewed-by: David Gibson Though there a couple of cosmetic issues and one bad memory access issue (though only in the case of bu

Re: [PATCH v8 3/5] powerpc/pseries: Consolidate different NUMA distance update code paths

2021-08-16 Thread David Gibson
ing code for ibm,associativity and > ibm,associativity-lookup-arrays in the kernel. The associativity array > provided > by these device tree properties are very similar and hence can use > a helper to parse the node id and numa distance details. > > Signed-off-by: Aneesh K

Re: [PATCH v7 5/6] powerpc/pseries: Add support for FORM2 associativity

2021-08-11 Thread David Gibson
On Wed, Aug 11, 2021 at 09:39:32AM +0530, Aneesh Kumar K.V wrote: > David Gibson writes: > > > On Mon, Aug 09, 2021 at 10:54:33AM +0530, Aneesh Kumar K.V wrote: > >> PAPR interface currently supports two different ways of communicating > >> resource &

Re: [PATCH v7 3/6] powerpc/pseries: Consolidate different NUMA distance update code paths

2021-08-09 Thread David Gibson
initialize_form1_numa_distance(associativity); > + } else > nid = default_nid; > > fake_numa_create_new_node(((start + size) >> PAGE_SHIFT), ); > diff --git a/arch/powerpc/platforms/pseries/hotplug-cpu.c > b/arch/powerp

Re: [PATCH v7 5/6] powerpc/pseries: Add support for FORM2 associativity

2021-08-09 Thread David Gibson
{ > dbg("Using form 1 affinity\n"); > affinity_form = FORM1_AFFINITY; > @@ -366,9 +475,12 @@ static int __init find_primary_domain_index(void) > > index = of_read_number(_ref_points[1], 1); > } else { > + /* &

Re: [PATCH v7 6/6] powerpc/pseries: Consolidate form1 distance initialization into a helper

2021-08-09 Thread David Gibson
e > a helper to parse the node id and numa distance details. > > Signed-off-by: Aneesh Kumar K.V Reviewed-by: David Gibson Though I'd prefer to see these fixes folded in with the earlier patch. > --- > arch/powerpc/mm/numa.c | 104 +++-- >

Re: [PATCH v6 6/6] powerpc/pseries: Consolidate form1 distance initialization into a helper

2021-08-08 Thread David Gibson
On Fri, Aug 06, 2021 at 09:53:59PM +0530, Aneesh Kumar K.V wrote: > On 8/6/21 12:17 PM, David Gibson wrote: > > On Tue, Jul 27, 2021 at 03:33:11PM +0530, Aneesh Kumar K.V wrote: > > > Currently, we duplicate parsing code for ibm,associativity and > > > ibm,associativity-

Re: [PATCH v6 3/6] powerpc/pseries: Consolidate different NUMA distance update code paths

2021-08-06 Thread David Gibson
id = associativity_to_nid(associativity); > + __initialize_form1_numa_distance(associativity); > + } else > nid = default_nid; > > fake_numa_create_new_node(((start + size) >> PAGE_SHIFT), ); > diff --git a/arch/powerpc/p

Re: [PATCH v6 6/6] powerpc/pseries: Consolidate form1 distance initialization into a helper

2021-08-06 Thread David Gibson
drmem_lmb *lmb) > > if (primary_domain_index <= aa.array_sz && > !(lmb->flags & DRCONF_MEM_AI_INVALID) && lmb->aa_index < > aa.n_arrays) { > - index = lmb->aa_index * aa.array_sz + pri

Re: [PATCH v5 4/6] powerpc/pseries: Consolidate different NUMA distance update code paths

2021-07-26 Thread David Gibson
On Tue, Jul 27, 2021 at 09:02:33AM +0530, Aneesh Kumar K.V wrote: > David Gibson writes: > > > On Thu, Jul 22, 2021 at 12:37:46PM +0530, Aneesh Kumar K.V wrote: > >> David Gibson writes: > >> > >> > On Mon, Jun 28, 2021 a

Re: [PATCH v5 6/6] powerpc/pseries: Add support for FORM2 associativity

2021-07-25 Thread David Gibson
On Thu, Jul 22, 2021 at 01:04:42PM +0530, Aneesh Kumar K.V wrote: > David Gibson writes: > > > On Mon, Jun 28, 2021 at 08:41:17PM +0530, Aneesh Kumar K.V wrote: > >> PAPR interface currently supports two different ways of communicating > >> resource &

Re: [PATCH v5 4/6] powerpc/pseries: Consolidate different NUMA distance update code paths

2021-07-25 Thread David Gibson
On Thu, Jul 22, 2021 at 12:37:46PM +0530, Aneesh Kumar K.V wrote: > David Gibson writes: > > > On Mon, Jun 28, 2021 at 08:41:15PM +0530, Aneesh Kumar K.V wrote: > >> The associativity details of the newly added resourced are collected from > >> the hypervisor via

Re: [PATCH v5 5/6] powerpc/pseries: Add a helper for form1 cpu distance

2021-07-25 Thread David Gibson
On Thu, Jul 22, 2021 at 12:39:27PM +0530, Aneesh Kumar K.V wrote: > David Gibson writes: > > > On Mon, Jun 28, 2021 at 08:41:16PM +0530, Aneesh Kumar K.V wrote: > >> This helper is only used with the dispatch trace log collection. > >> A later patch w

Re: [PATCH v5 1/6] powerpc/pseries: rename min_common_depth to primary_domain_index

2021-07-25 Thread David Gibson
On Thu, Jul 22, 2021 at 10:47:49AM +0530, Aneesh Kumar K.V wrote: > On 7/22/21 8:06 AM, David Gibson wrote: > > On Thu, Jul 22, 2021 at 11:59:15AM +1000, David Gibson wrote: > > > On Mon, Jun 28, 2021 at 08:41:12PM +0530, Aneesh Kumar K.V wrote: > > > > No f

Re: [PATCH v5 1/6] powerpc/pseries: rename min_common_depth to primary_domain_index

2021-07-21 Thread David Gibson
On Thu, Jul 22, 2021 at 11:59:15AM +1000, David Gibson wrote: > On Mon, Jun 28, 2021 at 08:41:12PM +0530, Aneesh Kumar K.V wrote: > > No functional change in this patch. > > The new name does not match how you describe "primary domain index" in > the documentation fro

Re: [PATCH v5 2/6] powerpc/pseries: rename distance_ref_points_depth to max_associativity_domain_index

2021-07-21 Thread David Gibson
On Mon, Jun 28, 2021 at 08:41:13PM +0530, Aneesh Kumar K.V wrote: > No functional change in this patch > > Signed-off-by: Aneesh Kumar K.V Reviewed-by: David Gibson > --- > arch/powerpc/mm/numa.c | 20 ++-- > 1 file changed, 10 insertions(+), 10 deletions(

Re: [PATCH v5 1/6] powerpc/pseries: rename min_common_depth to primary_domain_index

2021-07-21 Thread David Gibson
ere it simply comes from the lengths of all the associativity properties. > > Reviewed-by: David Gibson > Signed-off-by: Aneesh Kumar K.V > --- > arch/powerpc/mm/numa.c | 38 +++--- > 1 file changed, 19 insertions(+), 19 deletions(-) > >

Re: [PATCH v5 4/6] powerpc/pseries: Consolidate different NUMA distance update code paths

2021-07-21 Thread David Gibson
ms/pseries/hotplug-memory.c > b/arch/powerpc/platforms/pseries/hotplug-memory.c > index 36f66556a7c6..40d350f31a34 100644 > --- a/arch/powerpc/platforms/pseries/hotplug-memory.c > +++ b/arch/powerpc/platforms/pseries/hotplug-memory.c > @@ -180,6 +180,8 @@ static int update_lmb_associativity_index(struct > drmem_lmb *lmb) > return -ENODEV; > } > > + update_numa_distance(lmb_node); > + > dr_node = of_find_node_by_path("/ibm,dynamic-reconfiguration-memory"); > if (!dr_node) { > dlpar_free_cc_nodes(lmb_node); > diff --git a/arch/powerpc/platforms/pseries/pseries.h > b/arch/powerpc/platforms/pseries/pseries.h > index 1f051a786fb3..663a0859cf13 100644 > --- a/arch/powerpc/platforms/pseries/pseries.h > +++ b/arch/powerpc/platforms/pseries/pseries.h > @@ -113,4 +113,5 @@ extern u32 pseries_security_flavor; > void pseries_setup_security_mitigations(void); > void pseries_lpar_read_hblkrm_characteristics(void); > > +void update_numa_distance(struct device_node *node); > #endif /* _PSERIES_PSERIES_H */ -- David Gibson| I'll have my music baroque, and my code david AT gibson.dropbear.id.au | minimalist, thank you. NOT _the_ _other_ | _way_ _around_! http://www.ozlabs.org/~dgibson signature.asc Description: PGP signature

Re: [PATCH v5 5/6] powerpc/pseries: Add a helper for form1 cpu distance

2021-07-21 Thread David Gibson
gt; the code to be called with FORM0 > > Reviewed-by: David Gibson > Signed-off-by: Aneesh Kumar K.V What makes it a "relative_distance" rather than just a "distance"? > --- > arch/powerpc/include/asm/topology.h | 4 ++-- > arch/powerpc/mm/numa.c

Re: [PATCH v5 6/6] powerpc/pseries: Add support for FORM2 associativity

2021-07-21 Thread David Gibson
ng form 2 affinity\n"); > + affinity_form = FORM2_AFFINITY; > } else if (firmware_has_feature(FW_FEATURE_FORM1_AFFINITY)) { > dbg("Using form 1 affinity\n"); > affinity_form = FORM1_AFFINITY; > @@ -367,8 +467,17 @@ static int __init

Re: [PATCH v5 2/6] powerpc/pseries: rename distance_ref_points_depth to max_associativity_domain_index

2021-07-21 Thread David Gibson
On Thu, Jul 22, 2021 at 10:59:09AM +1000, David Gibson wrote: > On Mon, Jun 28, 2021 at 08:41:13PM +0530, Aneesh Kumar K.V wrote: > > No functional change in this patch > > > > Signed-off-by: Aneesh Kumar K.V > > Reviewed-by: David Gibson No... wait, I take th

Re: [PATCH v8 3/6] KVM: PPC: Book3S HV: Add support for H_RPT_INVALIDATE

2021-07-04 Thread David Gibson
gt; + unsigned long psize, nr_pages; > + struct mmu_psize_def *def; > + bool flush_pid; > + > + /* > + * A H_RPTI_TYPE_ALL request implies RIC=3, hence > + * do a single IS=1 based flush. > + */ > + if ((type & H_RPTI_TYPE_ALL) == H_RPTI_TYPE_ALL) { > +

Re: [PATCH v4 7/7] powerpc/pseries: Add support for FORM2 associativity

2021-06-28 Thread David Gibson
On Thu, Jun 24, 2021 at 01:50:34PM +0530, Aneesh Kumar K.V wrote: > David Gibson writes: > > > On Thu, Jun 17, 2021 at 10:21:05PM +0530, Aneesh Kumar K.V wrote: > >> PAPR interface currently supports two different ways of communicating > >> resource &

Re: [RFC PATCH 8/8] powerpc/papr_scm: Use FORM2 associativity details

2021-06-23 Thread David Gibson
On Thu, Jun 17, 2021 at 04:29:01PM +0530, Aneesh Kumar K.V wrote: > On 6/17/21 1:16 PM, David Gibson wrote: > > On Tue, Jun 15, 2021 at 12:35:17PM +0530, Aneesh Kumar K.V wrote: > > > David Gibson writes: > > > > > > > On Tue, Jun 15, 2021 at 1

Re: [PATCH v4 4/7] powerpc/pseries: Consolidate DLPAR NUMA distance update

2021-06-23 Thread David Gibson
/platforms/pseries/pseries.h > b/arch/powerpc/platforms/pseries/pseries.h > index 1f051a786fb3..663a0859cf13 100644 > --- a/arch/powerpc/platforms/pseries/pseries.h > +++ b/arch/powerpc/platforms/pseries/pseries.h > @@ -113,4 +113,5 @@ extern u32 pseries_security_flavor; > void pseries_s

Re: [PATCH v4 2/7] powerpc/pseries: rename distance_ref_points_depth to max_associativity_domain_index

2021-06-23 Thread David Gibson
*/ > - if (distance_ref_points_depth > MAX_DISTANCE_REF_POINTS) { > + if (max_associativity_domain_index > MAX_DISTANCE_REF_POINTS) { > printk(KERN_WARNING "NUMA: distance array capped at " > "%d entries\n", MAX_DISTANCE_REF_POINTS); >

Re: [PATCH v4 7/7] powerpc/pseries: Add support for FORM2 associativity

2021-06-23 Thread David Gibson
t; + } > } > > static int __init find_primary_domain_index(void) > @@ -324,6 +453,9 @@ static int __init find_primary_domain_index(void) >*/ > if (firmware_has_feature(FW_FEATURE_OPAL)) { > affinity_form = FORM1_AFFINITY; > + } else if (

Re: [PATCH v4 1/7] powerpc/pseries: rename min_common_depth to primary_domain_index

2021-06-23 Thread David Gibson
On Thu, Jun 17, 2021 at 10:20:59PM +0530, Aneesh Kumar K.V wrote: > No functional change in this patch. > > Signed-off-by: Aneesh Kumar K.V Reviewed-by: David Gibson > --- > arch/powerpc/mm/numa.c | 38 +++--- > 1 file changed, 19 insertion

Re: [RFC PATCH 8/8] powerpc/papr_scm: Use FORM2 associativity details

2021-06-17 Thread David Gibson
On Tue, Jun 15, 2021 at 12:35:17PM +0530, Aneesh Kumar K.V wrote: > David Gibson writes: > > > On Tue, Jun 15, 2021 at 11:27:50AM +0530, Aneesh Kumar K.V wrote: > >> David Gibson writes: > >> > >> > On Mon, Jun 14, 2021 at 10:10:03PM +0530, Anees

Re: [RFC PATCH 7/8] powerpc/pseries: Add support for FORM2 associativity

2021-06-17 Thread David Gibson
On Tue, Jun 15, 2021 at 01:10:27PM +0530, Aneesh Kumar K.V wrote: > David Gibson writes: > > > On Tue, Jun 15, 2021 at 10:58:42AM +0530, Aneesh Kumar K.V wrote: > >> David Gibson writes: > >> > >> > On Mon, Jun 14, 2021 at 10:10:02PM +0530, Aneesh Kuma

Re: [RFC PATCH 8/8] powerpc/papr_scm: Use FORM2 associativity details

2021-06-15 Thread David Gibson
On Tue, Jun 15, 2021 at 11:27:50AM +0530, Aneesh Kumar K.V wrote: > David Gibson writes: > > > On Mon, Jun 14, 2021 at 10:10:03PM +0530, Aneesh Kumar K.V wrote: > >> FORM2 introduce a concept of secondary domain which is identical to the > >> conceept of FORM1

Re: [RFC PATCH 7/8] powerpc/pseries: Add support for FORM2 associativity

2021-06-15 Thread David Gibson
On Tue, Jun 15, 2021 at 10:58:42AM +0530, Aneesh Kumar K.V wrote: > David Gibson writes: > > > On Mon, Jun 14, 2021 at 10:10:02PM +0530, Aneesh Kumar K.V wrote: > >> Signed-off-by: Daniel Henrique Barboza > >> Signed-off-by: Aneesh Kumar K.V > &

Re: [RFC PATCH 6/8] powerpc/pseries: Add a helper for form1 cpu distance

2021-06-14 Thread David Gibson
gt; the code to be called with FORM0 > > Signed-off-by: Aneesh Kumar K.V Reviewed-by: David Gibson > --- > arch/powerpc/mm/numa.c | 10 +- > 1 file changed, 9 insertions(+), 1 deletion(-) > > diff --git a/arch/powerpc/mm/numa.c b/arch/powerpc/mm/numa.c > index 64caaf07cf

Re: [RFC PATCH 8/8] powerpc/papr_scm: Use FORM2 associativity details

2021-06-14 Thread David Gibson
init(>health_mutex); > > diff --git a/arch/powerpc/platforms/pseries/pseries.h > b/arch/powerpc/platforms/pseries/pseries.h > index 663a0859cf13..9c2a1fc9ded1 100644 > --- a/arch/powerpc/platforms/pseries/pseries.h > +++ b/arch/powerpc/platforms/pseries/pseries.h >

Re: [RFC PATCH 7/8] powerpc/pseries: Add support for FORM2 associativity

2021-06-14 Thread David Gibson
> @@ -324,6 +453,9 @@ static int __init find_primary_domain_index(void) >*/ > if (firmware_has_feature(FW_FEATURE_OPAL)) { > affinity_form = FORM1_AFFINITY; > + } else if (firmware_has_feature(FW_FEATURE_FORM2_AFFINITY)) { > + dbg("Usi

Re: [RFC PATCH 3/8] powerpc/pseries: Rename TYPE1_AFFINITY to FORM1_AFFINITY

2021-06-14 Thread David Gibson
On Mon, Jun 14, 2021 at 10:09:58PM +0530, Aneesh Kumar K.V wrote: > Also make related code cleanup that will allow adding FORM2_AFFINITY in > later patches. No functional change in this patch. > > Signed-off-by: Aneesh Kumar K.V Reviewed-by: David Gibson > --- > arch/p

Re: [RFC PATCH 1/8] powerpc/pseries: rename min_common_depth to primary_domain_index

2021-06-14 Thread David Gibson
i++) { > if (!node_possible(i)) > node_set(i, node_possible_map); > } > > prop_length /= sizeof(int); > - if (prop_length > min_common_depth + 2) > + if (prop_length > primary_domain_

Re: [RFC PATCH 4/8] powerpc/pseries: Consolidate DLPAR NUMA distance update

2021-06-14 Thread David Gibson
dlpar_free_cc_nodes(lmb_node); > diff --git a/arch/powerpc/platforms/pseries/pseries.h > b/arch/powerpc/platforms/pseries/pseries.h > index 1f051a786fb3..663a0859cf13 100644 > --- a/arch/powerpc/platforms/pseries/pseries.h > +++ b/arch/powerpc/platforms/pseries/pseries.h >

Re: [RFC PATCH 2/8] powerpc/pseries: rename distance_ref_points_depth to max_domain_index

2021-06-14 Thread David Gibson
@ static int __init find_primary_domain_index(void) >* Warn and cap if the hardware supports more than >* MAX_DISTANCE_REF_POINTS domains. >*/ > - if (distance_ref_points_depth > MAX_DISTANCE_REF_POINTS) { > + if (max_domain_index &

Re: [PATCH v2 1/3] powerpc/mm/hash: Avoid resizing-down HPT on first memory hotplug

2021-06-09 Thread David Gibson
On Wed, Jun 09, 2021 at 02:51:49AM -0300, Leonardo Brás wrote: > On Wed, 2021-06-09 at 14:40 +1000, David Gibson wrote: > > On Tue, Jun 08, 2021 at 09:52:10PM -0300, Leonardo Brás wrote: > > > On Mon, 2021-06-07 at 15:02 +1000, David Gibson wrote: > > > > On Fri, Ap

Re: [PATCH v2 3/3] powerpc/mm/hash: Avoid multiple HPT resize-downs on memory hotunplug

2021-06-09 Thread David Gibson
On Wed, Jun 09, 2021 at 02:30:36AM -0300, Leonardo Brás wrote: > On Mon, 2021-06-07 at 15:20 +1000, David Gibson wrote: > > On Fri, Apr 30, 2021 at 11:36:10AM -0300, Leonardo Bras wrote: > > > During memory hotunplug, after each LMB is removed, the HPT may be > > > r

Re: [PATCH v2 1/3] powerpc/mm/hash: Avoid resizing-down HPT on first memory hotplug

2021-06-08 Thread David Gibson
On Tue, Jun 08, 2021 at 09:52:10PM -0300, Leonardo Brás wrote: > On Mon, 2021-06-07 at 15:02 +1000, David Gibson wrote: > > On Fri, Apr 30, 2021 at 11:36:06AM -0300, Leonardo Bras wrote: > > > Because hypervisors may need to create HPTs without knowing the > > > guest &g

Re: [PATCH v2 3/3] powerpc/mm/hash: Avoid multiple HPT resize-downs on memory hotunplug

2021-06-06 Thread David Gibson
> > + if (!radix_enabled()) > + hash_batch_shrink_begin(); > + > for_each_drmem_lmb_in_range(lmb, start_lmb, end_lmb) { > if (!drmem_lmb_reserved(lmb)) > continue; > @@ -830,6 +852,10 @@ static int dlpar_memory_add_by_ic(u32 lmbs_to_add, u32 > drc_index) > > drmem_remove_lmb_reservation(lmb); > } > + > + if (!radix_enabled()) > + hash_batch_shrink_end(); > + > rc = -EINVAL; > } else { > for_each_drmem_lmb_in_range(lmb, start_lmb, end_lmb) { -- David Gibson| I'll have my music baroque, and my code david AT gibson.dropbear.id.au | minimalist, thank you. NOT _the_ _other_ | _way_ _around_! http://www.ozlabs.org/~dgibson signature.asc Description: PGP signature

Re: [PATCH v2 2/3] powerpc/mm/hash: Avoid multiple HPT resize-ups on memory hotplug

2021-06-06 Thread David Gibson
g), taking the number of > HPT resizes to at most one per memory hotplug action. > > Signed-off-by: Leonardo Bras Reviewed-by: David Gibson > --- > arch/powerpc/include/asm/book3s/64/hash.h | 2 ++ > arch/powerpc/mm/book3s64/hash_utils.c | 20 +++ >

Re: [PATCH v2 1/3] powerpc/mm/hash: Avoid resizing-down HPT on first memory hotplug

2021-06-06 Thread David Gibson
f-by: Leonardo Bras Sorry it's taken me so long to look at these I don't love the extra statefulness that the 'shrinking' parameter adds, but I can't see an elegant way to avoid it, so: Reviewed-by: David Gibson > --- > arch/powerpc/mm/book3s64/hash_utils.c | 36 --- >

Re: [PATCH v2 3/4] powerpc/pseries: break early in dlpar_memory_remove_by_count() loops

2021-05-12 Thread David Gibson
d', and it's now > being decremented each time a lmb reservation is removed, indicating > that the operation we're doing (adding back LMBs or releasing DRCs) is > completed. > > Signed-off-by: Daniel Henrique Barboza Reviewed-by: David Gibson The fact that DRCONF_MEM_RESERVED and DRME

Re: [PATCH v2 4/4] powerpc/pseries: minor enhancements in dlpar_memory_remove_by_ic()

2021-05-12 Thread David Gibson
return -EINVAL; > + } > } > > - if (lmbs_available < lmbs_to_remove) > - return -EINVAL; > - > for_each_drmem_lmb_in_range(lmb, start_lmb, end_lmb) { > + /* > + * dlpar_remove_lmb() will error out if the LMB is alr

Re: [PATCH v2 2/4] powerpc/pseries: check DRCONF_MEM_RESERVED in lmb_is_removable()

2021-05-12 Thread David Gibson
in the validation with the > 'not enough LMBs to satisfy request' message. > > Making a DRCONF_MEM_RESERVED check in lmb_is_removable() fixes all these > issues. > > Signed-off-by: Daniel Henrique Barboza Reviewed-by: David Gibson > --- > arch/powerpc/platforms/pseries/hotplug

Re: [PATCH 2/3] hotplug-memory.c: enhance dlpar_memory_remove* LMB checks

2021-05-12 Thread David Gibson
On Wed, May 12, 2021 at 05:35:39PM -0300, Daniel Henrique Barboza wrote: > > On 5/3/21 10:02 PM, David Gibson wrote: > > On Fri, Apr 30, 2021 at 09:09:16AM -0300, Daniel Henrique Barboza wrote: > > > dlpar_memory_remove_by_ic() validates the amount of LMBs to be remo

Re: [PATCH 2/3] hotplug-memory.c: enhance dlpar_memory_remove* LMB checks

2021-05-09 Thread David Gibson
On Fri, May 07, 2021 at 01:36:06PM -0300, Daniel Henrique Barboza wrote: > > > On 5/3/21 10:02 PM, David Gibson wrote: > > On Fri, Apr 30, 2021 at 09:09:16AM -0300, Daniel Henrique Barboza wrote: > > > dlpar_memory_remove_by_ic() validates the amount of LMBs to be r

Re: [PATCH 2/3] hotplug-memory.c: enhance dlpar_memory_remove* LMB checks

2021-05-03 Thread David Gibson
> lmbs_available++; > @@ -533,9 +534,6 @@ static int dlpar_memory_remove_by_ic(u32 lmbs_to_remove, > u32 drc_index) > return -EINVAL; > > for_each_drmem_lmb_in_range(lmb, start_lmb, end_lmb) { > - if (!(lmb-&g

Re: [PATCH 1/3] powerpc/pseries: Set UNISOLATE on dlpar_memory_remove_by_ic() error

2021-05-03 Thread David Gibson
as a no-op. > > Signed-off-by: Daniel Henrique Barboza Reviewed-by: David Gibson > --- > arch/powerpc/platforms/pseries/hotplug-memory.c | 7 +++ > 1 file changed, 7 insertions(+) > > diff --git a/arch/powerpc/platforms/pseries/hotplug-memory.c > b/arch/powerpc/plat

Re: [PATCH 3/3] powerpc/mm/hash: Avoid multiple HPT resize-downs on memory hotunplug

2021-04-18 Thread David Gibson
On Fri, Apr 09, 2021 at 12:31:03AM -0300, Leonardo Bras wrote: > Hello David, thanks for commenting. > > On Tue, 2021-03-23 at 10:45 +1100, David Gibson wrote: > > > @@ -805,6 +808,10 @@ static int resize_hpt_for_hotplug(unsigned long > > > new_mem_size, bool shrin

Re: [PATCH 2/3] powerpc/mm/hash: Avoid multiple HPT resize-ups on memory hotplug

2021-04-18 Thread David Gibson
On Thu, Apr 08, 2021 at 11:51:36PM -0300, Leonardo Bras wrote: > Hello David, thanks for the feedback! > > On Mon, 2021-03-22 at 18:55 +1100, David Gibson wrote: > > > +void hash_memory_batch_expand_prepare(unsigned long newsize) > > > +{ > > > + /* > >

Re: [PATCH 2/2] hotplug-cpu.c: set UNISOLATE on dlpar_cpu_remove() failure

2021-04-18 Thread David Gibson
gt; Signed-off-by: Daniel Henrique Barboza Reviewed-by: David Gibson except... > --- > arch/powerpc/platforms/pseries/hotplug-cpu.c | 9 - > 1 file changed, 8 insertions(+), 1 deletion(-) > > diff --git a/arch/powerpc/platforms/pseries/hotplug-cpu.c > b/arch/powerpc/platfo

Re: [PATCH 1/2] dlpar.c: introduce dlpar_unisolate_drc()

2021-04-18 Thread David Gibson
l Henrique Barboza Reviewed-by: David Gibson > --- > arch/powerpc/platforms/pseries/dlpar.c | 14 ++ > arch/powerpc/platforms/pseries/pseries.h | 1 + > 2 files changed, 15 insertions(+) > > diff --git a/arch/powerpc/platforms/pseries/dlpar.c > b/arch/po

Re: [PATCH 0/2] pseries: UNISOLATE DRCs to signal device removal error

2021-04-18 Thread David Gibson
tml > [3] https://github.com/danielhb/qemu/tree/unisolate_drc_callback_v1 > > Daniel Henrique Barboza (2): > dlpar.c: introduce dlpar_unisolate_drc() > hotplug-cpu.c: set UNISOLATE on dlpar_cpu_remove() failure > > arch/powerpc/platforms/pseries/dlpar.c

Re: [PATCH 3/3] powerpc/smp: Cache CPU to chip lookup

2021-04-18 Thread David Gibson
y read the value, then the error is likely to be much clearer. Likewise if someone looks at this value from a debugger, it will be clearer what's going on. > > > > > > Thus, perhaps we can initialize chip_id_lookup_table[idx] with a > > > different unique negative

Re: [PATCH 1/3] powerpc/smp: Reintroduce cpu_core_mask

2021-04-18 Thread David Gibson
On Fri, Apr 16, 2021 at 11:15:49AM +0530, Srikar Dronamraju wrote: > * David Gibson [2021-04-16 13:21:34]: > > Thanks for having a look at the patches. > > > On Thu, Apr 15, 2021 at 05:39:32PM +0530, Srikar Dronamraju wrote: > > > Daniel reported that with Commit

Re: [PATCH 1/3] powerpc/smp: Reintroduce cpu_core_mask

2021-04-15 Thread David Gibson
ly *only* exists on PAPR/qemu for that purpose, so if it's not serving it we need to come up with something else. > > Fixes: 4ca234a9cbd7 ("powerpc/smp: Stop updating cpu_core_mask") > Cc: linuxppc-dev@lists.ozlabs.org > Cc: qemu-...@nongnu.org > Cc: Cedric Le Goater &g

Re: [PATCH v3 1/9] powerpc/xive: Use cpu_to_node() instead of "ibm,chip-id" property

2021-03-31 Thread David Gibson
> Also to be noted that under QEMU/KVM "ibm,chip-id" is badly calculated > with unusual SMT configuration. This leads to a bogus chip id value > being returned by of_get_ibm_chip_id(). I *still* don't clearly understand what you think is bogus about the chip id value that qemu genera

Re: [PATCH v6 5/6] KVM: PPC: Book3S HV: Add KVM_CAP_PPC_RPT_INVALIDATE capability

2021-03-22 Thread David Gibson
On Thu, Mar 11, 2021 at 02:09:38PM +0530, Bharata B Rao wrote: > Now that we have H_RPT_INVALIDATE fully implemented, enable > support for the same via KVM_CAP_PPC_RPT_INVALIDATE KVM capability > > Signed-off-by: Bharata B Rao Reviewed-by: David Gibson > --- > Documentatio

Re: [PATCH v6 3/6] KVM: PPC: Book3S HV: Add support for H_RPT_INVALIDATE

2021-03-22 Thread David Gibson
> * If pid = 0 and NESTED is clear, then valid addresses are quadrant 3 > and quadrant 0 spaces, Else valid addresses are quadrant 0. > * Pages which are fully covered by the range are to be invalidated. >   Those which are partially covered are considered outside > invalid

Re: [PATCH v6 4/6] KVM: PPC: Book3S HV: Nested support in H_RPT_INVALIDATE

2021-03-22 Thread David Gibson
ar K.V > [Nested guest partition-scoped invalidation changes] Reviewed-by: David Gibson > --- > arch/powerpc/include/asm/kvm_book3s.h | 3 + > arch/powerpc/kvm/book3s_hv.c | 71 +- > arch/powerpc/kvm/book3s_hv_nested.c | 104 +

Re: [PATCH v6 6/6] KVM: PPC: Book3S HV: Use H_RPT_INVALIDATE in nested KVM

2021-03-22 Thread David Gibson
property. > > Signed-off-by: Bharata B Rao > Reviewed-by: Fabiano Rosas Reviewed-by: David Gibson > --- > arch/powerpc/kvm/book3s_64_mmu_radix.c | 27 +- > arch/powerpc/kvm/book3s_hv_nested.c| 12 ++-- > 2 files changed, 32 insertion

Re: [PATCH v6 2/6] powerpc/book3s64/radix: Add H_RPT_INVALIDATE pgsize encodings to mmu_psize_def

2021-03-22 Thread David Gibson
ee doesn't include the RPTI encodings. Oh well. Reveiwed-by: David Gibson > --- > arch/powerpc/include/asm/book3s/64/mmu.h | 1 + > arch/powerpc/mm/book3s64/radix_pgtable.c | 5 + > 2 files changed, 6 insertions(+) > > diff --git a/arch/powerpc/include/asm/book3s/64/mmu.h &g

Re: [PATCH v6 1/6] KVM: PPC: Book3S HV: Fix comments of H_RPT_INVALIDATE arguments

2021-03-22 Thread David Gibson
Aneesh Kumar K.V > Signed-off-by: Bharata B Rao Not sure the change really clarifies that much, but whatever Reviewed-by: David Gibson > --- > arch/powerpc/include/asm/hvcall.h | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/arch/powerpc/include/as

Re: [PATCH 3/3] powerpc/mm/hash: Avoid multiple HPT resize-downs on memory hotunplug

2021-03-22 Thread David Gibson
rc = -EINVAL; > } else { > for_each_drmem_lmb(lmb) { > @@ -814,6 +828,7 @@ static int dlpar_memory_add_by_ic(u32 lmbs_to_add, u32 > drc_index) > if (rc) { > pr_err("Memory indexed-count-add failed, removing any added > LMBs\n"); >

Re: [PATCH 1/3] powerpc/mm/hash: Avoid resizing-down HPT on first memory hotplug

2021-03-22 Thread David Gibson
ong end) > int rc = htab_remove_mapping(start, end, mmu_linear_psize, > mmu_kernel_ssize); > > - if (resize_hpt_for_hotplug(memblock_phys_mem_size()) == -ENOSPC) > + if (resize_hpt_for_hotplug(memblock_phys_mem_size(), true) == -ENO

Re: [PATCH 2/3] powerpc/mm/hash: Avoid multiple HPT resize-ups on memory hotplug

2021-03-22 Thread David Gibson
urn -EINVAL; > > + memory_batch_expand_prepare(memblock_phys_mem_size() + lmbs_to_add * > drmem_lmb_size()); > + > for_each_drmem_lmb_in_range(lmb, start_lmb, end_lmb) { > if (lmb->flags & DRCONF_MEM_ASSIGNED) >

Re: [PATCH] powerpc/numa: Fix topology_physical_package_id() on pSeries

2021-03-21 Thread David Gibson
(cpu_to_chip_id(cpu)) > +#define topology_physical_package_id(cpu)(cpu_to_node(cpu)) > > #define topology_sibling_cpumask(cpu)(per_cpu(cpu_sibling_map, cpu)) > #define topology_core_cpumask(cpu) (cpu_cpu_mask(cpu)) -- David Gibson| I'll have my music baroque, and

Re: Advice needed on SMP regression after cpu_core_mask change

2021-03-21 Thread David Gibson
e might be some sort of reasoning behind not having this on > PAPR, but I'll say in advance that the virtual machine should act as the > real hardware, as close as possible. This is the kind of hcall that could > be used in this situation. In the case of POWER, that's pretty much a lo

Re: [PATCH v2 1/8] powerpc/xive: Use cpu_to_node() instead of ibm,chip-id property

2021-03-11 Thread David Gibson
lt;0x00>; > ibm,chip-id = <0x00>; > ibm,chip-id = <0x00>; > > I think we should simply remove "ibm,chip-id" since it's not used and > not in the PAPR spec. As I mentioned to Daniel on our call this morning, oddly it *does* appear to be used in the RHEL kernel, even though that's 4.18 based. This patch seems to have caused a minor regression; not in the identification of NUMA nodes, but in the number of sockets shown be lscpu, etc. See https://bugzilla.redhat.com/show_bug.cgi?id=1934421 for more information. Since the value was used by some PAPR kernels - even if they shouldn't have - I think we should only remove this for newer machine types. We also need to check what we're not supplying that the guest kernel is showing a different number of sockets than specified on the qemu command line. > > Thanks, > > C. > > > > [...] > [...] > [...] > [...] > [...] > [...] > [...] > [...] > [...] > -- David Gibson Principal Software Engineer, Virtualization, Red Hat

Re: [PATCH v5 2/3] KVM: PPC: Book3S HV: Add support for H_RPT_INVALIDATE

2021-03-03 Thread David Gibson
On Tue, Mar 02, 2021 at 10:28:53AM +0530, Bharata B Rao wrote: > On Tue, Mar 02, 2021 at 12:45:18PM +1100, David Gibson wrote: > > > diff --git a/Documentation/virt/kvm/api.rst > > > b/Documentation/virt/kvm/api.rst > > > index 45fd862ac128..38ce3f21b21f 100644 >

Re: [PATCH v5 1/3] powerpc/book3s64/radix: Add H_RPT_INVALIDATE pgsize encodings to mmu_psize_def

2021-03-03 Thread David Gibson
On Tue, Mar 02, 2021 at 09:51:28AM +0530, Bharata B Rao wrote: > On Tue, Mar 02, 2021 at 12:28:34PM +1100, David Gibson wrote: > > On Wed, Feb 24, 2021 at 01:55:08PM +0530, Bharata B Rao wrote: > > > Add a field to mmu_psize_def to store the page size encodings > > >

Re: [PATCH v5 1/3] powerpc/book3s64/radix: Add H_RPT_INVALIDATE pgsize encodings to mmu_psize_def

2021-03-01 Thread David Gibson
ti_pgsize() look them up in the table. I guess that could be a followup change, though. > > mmu_psize_defs[MMU_PAGE_64K].shift = 16; > mmu_psize_defs[MMU_PAGE_64K].ap = 0x5; > + mmu_psize_defs[MMU_PAGE_64K].h_rpt_pgsize = > +

Re: [PATCH v5 2/3] KVM: PPC: Book3S HV: Add support for H_RPT_INVALIDATE

2021-03-01 Thread David Gibson
unsigned long page_size, > + unsigned long psize, bool also_pwc) > +{ > + asm volatile("ptesync" : : : "memory"); > + if (also_pwc) > + __tlbie_pid_lpid(pid, lpid, RIC_FLUSH_PWC); >

Re: [PATCH v4 2/3] KVM: PPC: Book3S HV: Add support for H_RPT_INVALIDATE

2021-02-22 Thread David Gibson
On Mon, Feb 22, 2021 at 12:16:08PM +0530, Bharata B Rao wrote: > On Wed, Feb 17, 2021 at 11:38:07AM +1100, David Gibson wrote: > > On Mon, Feb 15, 2021 at 12:05:41PM +0530, Bharata B Rao wrote: > > > Implement H_RPT_INVALIDATE hcall and add KVM capability > > >

Re: [PATCH v4 1/3] powerpc/book3s64/radix/tlb: tlbie primitives for process-scoped invalidations from guests

2021-02-16 Thread David Gibson
unsigned long psize, unsigned long ric) > { > @@ -547,6 +649,18 @@ static inline void _tlbie_va_range(unsigned long start, > unsigned long end, > asm volatile("eieio; tlbsync; ptesync": : :"memory"); > } > > +static inline void _tlbie_va_range_lpid(unsigned long start, unsigned long > end, > + unsigned long pid, unsigned long lpid, > + unsigned long page_size, > + unsigned long psize, bool also_pwc) > +{ > + asm volatile("ptesync" : : : "memory"); > + if (also_pwc) > + __tlbie_pid_lpid(pid, lpid, RIC_FLUSH_PWC); > + __tlbie_va_range_lpid(start, end, pid, lpid, page_size, psize); > + asm volatile("eieio; tlbsync; ptesync" : : : "memory"); > +} > + > static inline void _tlbiel_va_range_multicast(struct mm_struct *mm, > unsigned long start, unsigned long end, > unsigned long pid, unsigned long page_size, -- David Gibson| I'll have my music baroque, and my code david AT gibson.dropbear.id.au | minimalist, thank you. NOT _the_ _other_ | _way_ _around_! http://www.ozlabs.org/~dgibson signature.asc Description: PGP signature

Re: [PATCH kernel 2/2] powerpc/iommu: Do not immediately panic when failed IOMMU table allocation

2021-02-16 Thread David Gibson
all panic(). > > Signed-off-by: Alexey Kardashevskiy Reviewed-by: David Gibson > --- > arch/powerpc/kernel/iommu.c | 6 -- > arch/powerpc/platforms/cell/iommu.c | 3 ++- > arch/powerpc/platforms/pasemi/iommu.c | 4 +++- > arch/powerpc/platf

Re: [PATCH v4 2/3] KVM: PPC: Book3S HV: Add support for H_RPT_INVALIDATE

2021-02-16 Thread David Gibson
radix_kvm_prefetch_workaround(struct > mm_struct *mm) > } > } > EXPORT_SYMBOL_GPL(radix_kvm_prefetch_workaround); > + > +/* > + * Process-scoped invalidations for a given LPID. > + */ > +void do_h_rpt_invalidate(unsigned long pid, unsigned long lpid, > +

Re: [PATCH kernel 1/2] powerpc/iommu: Allocate it_map by vmalloc

2021-02-16 Thread David Gibson
when MMU is on. > > Signed-off-by: Alexey Kardashevskiy Reviewed-by: David Gibson > --- > arch/powerpc/kernel/iommu.c | 15 +++ > 1 file changed, 3 insertions(+), 12 deletions(-) > > diff --git a/arch/powerpc/kernel/iommu.c b/arch/powerpc/kernel/iommu.c > i

Re: [RFC Qemu PATCH v2 1/2] spapr: drc: Add support for async hcalls at the drc level

2021-02-07 Thread David Gibson
On Tue, Jan 19, 2021 at 12:40:31PM +0530, Shivaprasad G Bhat wrote: > Thanks for the comments! > > > On 12/28/20 2:08 PM, David Gibson wrote: > > > On Mon, Dec 21, 2020 at 01:08:53PM +0100, Greg Kurz wrote: > ... > > > The overall idea looks good but

Re: [RFC Qemu PATCH v2 1/2] spapr: drc: Add support for async hcalls at the drc level

2020-12-28 Thread David Gibson
h" > > > > #define TYPE_SPAPR_DR_CONNECTOR "spapr-dr-connector" > > #define SPAPR_DR_CONNECTOR_GET_CLASS(obj) \ > > @@ -168,6 +169,21 @@ typedef enum { > > SPAPR_DRC_STATE_PHYSICAL_CONFIGURED = 8, > > } SpaprDrcState; > > > &

Re: [PATCH v2 1/2] KVM: PPC: Book3S HV: Add support for H_RPT_INVALIDATE

2020-12-16 Thread David Gibson
v_translate_addr_nested(struct kvm_vcpu *vcpu, > struct kvm_nested_guest *gp, > diff --git a/arch/powerpc/kvm/powerpc.c b/arch/powerpc/kvm/powerpc.c > index 13999123b735..172a89187116 100644 > --- a/arch/powerpc/kvm/powerpc.c > +++ b/arch/powerpc/kvm/powerpc.c > @@ -678,6 +678,9 @@ int kvm_vm_ioctl_check_extension(struct kvm *kvm, long > ext) > r = hv_enabled && kvmppc_hv_ops->enable_svm && > !kvmppc_hv_ops->enable_svm(NULL); > break; > + case KVM_CAP_PPC_RPT_INVALIDATE: > + r = 1; > + break; > #endif > default: > r = 0; > diff --git a/arch/powerpc/mm/book3s64/radix_tlb.c > b/arch/powerpc/mm/book3s64/radix_tlb.c > index b487b489d4b6..3a2b12d1d49b 100644 > --- a/arch/powerpc/mm/book3s64/radix_tlb.c > +++ b/arch/powerpc/mm/book3s64/radix_tlb.c > @@ -18,10 +18,6 @@ > #include > #include > > -#define RIC_FLUSH_TLB 0 > -#define RIC_FLUSH_PWC 1 > -#define RIC_FLUSH_ALL 2 > - > /* > * tlbiel instruction for radix, set invalidation > * i.e., r=1 and is=01 or is=10 or is=11 > diff --git a/include/uapi/linux/kvm.h b/include/uapi/linux/kvm.h > index ca41220b40b8..c9ece825299e 100644 > --- a/include/uapi/linux/kvm.h > +++ b/include/uapi/linux/kvm.h > @@ -1053,6 +1053,7 @@ struct kvm_ppc_resize_hpt { > #define KVM_CAP_X86_USER_SPACE_MSR 188 > #define KVM_CAP_X86_MSR_FILTER 189 > #define KVM_CAP_ENFORCE_PV_FEATURE_CPUID 190 > +#define KVM_CAP_PPC_RPT_INVALIDATE 191 > > #ifdef KVM_CAP_IRQ_ROUTING > -- David Gibson| I'll have my music baroque, and my code david AT gibson.dropbear.id.au | minimalist, thank you. NOT _the_ _other_ | _way_ _around_! http://www.ozlabs.org/~dgibson signature.asc Description: PGP signature

Re: [PATCH v2 0/2] Support for H_RPT_INVALIDATE in PowerPC KVM

2020-12-16 Thread David Gibson
+ > arch/powerpc/kvm/book3s_hv_nested.c | 106 ++- > arch/powerpc/kvm/powerpc.c| 3 + > arch/powerpc/mm/book3s64/radix_tlb.c | 4 - > include/uapi/linux/kvm.h | 1 + > 9 files changed, 289 insertio

Re: [PATCH v1 1/2] KVM: PPC: Book3S HV: Add support for H_RPT_INVALIDATE (nested case only)

2020-12-14 Thread David Gibson
itself even if it is not going to be used in > KVM? That might be a good idea, if it's not excessively difficult. -- David Gibson| I'll have my music baroque, and my code david AT gibson.dropbear.id.au | minimalist, thank you. NOT _the_ _other_

Re: [PATCH v1 1/2] KVM: PPC: Book3S HV: Add support for H_RPT_INVALIDATE (nested case only)

2020-12-14 Thread David Gibson
On Fri, Dec 11, 2020 at 04:27:44PM +1100, Paul Mackerras wrote: > On Fri, Dec 11, 2020 at 12:16:39PM +1100, David Gibson wrote: > > On Thu, Dec 10, 2020 at 09:54:18AM +0530, Bharata B Rao wrote: > > > On Wed, Dec 09, 2020 at 03:15:42PM +1100, Paul Mackerras wrote: > >

Re: [PATCH v1 1/2] KVM: PPC: Book3S HV: Add support for H_RPT_INVALIDATE (nested case only)

2020-12-10 Thread David Gibson
ing > present. That should address the migration case that you mention > above. With that and leaving the new hcall enabled by default > is good okay? No. Assuming that guests will have some fallback is not how the qemu migration compatibility model works. If we specify an old machine t

Re: [PATCH] KVM: PPC: Book3S HV: Do not allocate HPT for a nested guest

2020-09-14 Thread David Gibson
ump: > [ 538.544821] f86d1098 6000 6000 4899 e8ad0fe8 e8c500a0 e9264140 > 75290002 > [ 538.544886] 7d1602a6 7cec42a6 40820008 7d0807b4 <7d164ba6> 7d083a14 > f90d10a0 480104fd > [ 538.544953] ---[ end trace 74423e2b948c2e0c ]--- > > This patch makes the KVM_PPC_ALLOC

[PATCH] powerpc: kvm: Increase HDEC threshold to enter guest

2020-08-10 Thread David Gibson
in this area. I'm still trying to determine what the cause of that difference is, but I think it's worth applying this change as a precaution in the interim. Signed-off-by: David Gibson --- arch/powerpc/kvm/book3s_hv.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch

Re: [PATCH v3 0/4] powerpc/mm/radix: Memory unplug fixes

2020-07-25 Thread David Gibson
ave tested memory hotplug/unplug for radix guest on zz platform and > >> > sanity-tested this for hash guest on P8. > >> > > >> > As noted above, mmu_hash_ops.resize_hpt will not be set for radix > >> > guest and hence we won't see any breakage. > >> > >> OK. > >> > >> That's probably fine as it is then. Or maybe just a comment in > >> resize_hpt_for_hotplug() pointing out that resize_hpt will be NULL if > >> we're using radix. > > > > Or we could move these calls to hpt-only routines like below? > > That looks like it would be equivalent, and would nicely isolate those > calls in hash specific code. So yeah I think that's worth sending as a > proper patch, even better if you can test it. > > > David - Do you remember if there was any particular reason to have > > these two hpt-resize calls within powerpc-generic memory hotplug code? > > I think the HPT resizing was developed before or concurrently with the > radix support, so I would guess it was just not something we thought > about at the time. Sounds about right; I don't remember for certain. -- David Gibson| I'll have my music baroque, and my code david AT gibson.dropbear.id.au | minimalist, thank you. NOT _the_ _other_ | _way_ _around_! http://www.ozlabs.org/~dgibson signature.asc Description: PGP signature

Re: [PATCH v3 0/4] powerpc/mm/radix: Memory unplug fixes

2020-07-22 Thread David Gibson
; >> So I think a follow-up patch is needed to make this more robust. > > >> > > >> Aneesh/Bharata what platform did you test this series on? I'm curious > > >> how this didn't break. > > > > > > I have tested memory hotplug/

Re: [PATCH] KVM: PPC: Book3S HV: Use feature flag CPU_FTR_P9_TIDR when accessing TIDR

2020-07-20 Thread David Gibson
he SET_ONE_REG for > the TIDR. I don't think the lack of TIDR is worth failing the > migration for given that TIDR only actually does anything if you are > using an accelerator, and KVM has never supported use of accelerators > in guests. I'm cc'ing David Gibson for his comments o

[PATCHv2] tpm: ibmvtpm: Wait for ready buffer before probing for TPM2 attributes

2020-06-18 Thread David Gibson
: 18b3670d79ae9 ("tpm: ibmvtpm: Add support for TPM2") Signed-off-by: David Gibson --- Changes from v1: * Fixed a formatting error in the commit message * Added some more detail to the commit message drivers/char/tpm/tpm_ibmvtpm.c | 14 +++--- 1 file changed, 7 insert

[PATCH] tpm: ibmvtpm: Wait for ready buffer before probing for TPM2 attributes

2020-06-05 Thread David Gibson
/ TPM implementation doesn't respond quickly enough. I find it fails almost every time with an 8 vcpu guest under KVM with software emulated TPM. Fixes: 18b3670d79ae9 "tpm: ibmvtpm: Add support for TPM2" Signed-off-by: David Gibson --- drivers/char/tpm/tpm_ibmvtpm.c | 14 +++-

Re: [PATCH] target/ppc: Fix mtmsr(d) L=1 variant that loses interrupts

2020-04-16 Thread David Gibson
next); > #if defined(TARGET_PPC64) > tcg_gen_deposit_tl(msr, cpu_msr, cpu_gpr[rS(ctx->opcode)], 0, 32); > @@ -4422,10 +4431,9 @@ static void gen_mtmsr(DisasContext *ctx) > #endif > gen_helper_store_msr(cpu_env, msr); > tcg_temp_free(msr); > -/* Must stop the tra

  1   2   3   4   5   6   7   8   9   10   >