Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp4949691ybf; Wed, 4 Mar 2020 14:07:06 -0800 (PST) X-Google-Smtp-Source: ADFU+vtnOG9htY4T9t+QU1z1dqHh5/nHNMTDSZxAGaAuCfH6kQcNjZfV5ObK2p+3gwXkDwlyhFto X-Received: by 2002:a54:4804:: with SMTP id j4mr1079417oij.99.1583359626370; Wed, 04 Mar 2020 14:07:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1583359626; cv=none; d=google.com; s=arc-20160816; b=aa3sTRQZpruY/1TpgKsaYF3JVswOBBK+T3x2xG3+KU+hb2L3R1nt39Yrw2eBksDwDk 05bc7jxhWx/v7T5Mozglc0wINpBk8J6ipt3zkgc7le0XhRHlDhs/mEEikPx4E4Eo+PBw mBK6FC+l5Op6xOGrui6+VsnHSgieUKa4p2LNjA5r3hYOYojaQHH0J9GaE99WLMpOT3kd bFXBDjkQTs/cVSxjJGvuEORZZaV7e0YX+Grlho/5ffOpXa+h5xfPZdBCRmYPriS2ue5G 66JgY3ZLFHys57Bl24YFo2HetiGzGba6VYAf85pX+MV+f7qjva/PPMZqpaG4AZsHsv90 ll5g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:date:cc:to:from:subject:message-id; bh=D9PA1+QUWUGkiABsY89JqvLpqO7baC94b8BMry9kR9E=; b=IU4+y/qMWnUDWl0vI6DNrhYmLSCz/13I0umbdRtTJe3AsyuPgu59ky1dKehag44HeK htQjIXm2R1c7SFA+14RQebmeg+72+oc5b5RZTfsy1yTmkwrSG9uGJ0wTb5cQDuKueMxx jL5qpuG5uhzXrXm51i4KgnDMGC4m9feroxzNk/3jSF63iOsoFC2mmf6DNVMYw/FN0O/N rSr+ZjMtnFZn9d0VE0TmkUxYALq2vXY7tWwA024dlZggF0DR9DmqJeitiYzvoa0EjbsW WHRF9lU2aDrIrdpUxJdDURTH/o+5Czjl2spHzEhQhbjItIqvWjajR1mXoGmmQoieDnZl Xi1Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n17si1958952oic.145.2020.03.04.14.06.53; Wed, 04 Mar 2020 14:07:06 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388422AbgCDWGM (ORCPT + 99 others); Wed, 4 Mar 2020 17:06:12 -0500 Received: from mx0b-001b2d01.pphosted.com ([148.163.158.5]:5576 "EHLO mx0b-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388281AbgCDWGM (ORCPT ); Wed, 4 Mar 2020 17:06:12 -0500 Received: from pps.filterd (m0127361.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id 024Lwmcl133623; Wed, 4 Mar 2020 17:05:52 -0500 Received: from pps.reinject (localhost [127.0.0.1]) by mx0a-001b2d01.pphosted.com with ESMTP id 2yfkncewpc-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 04 Mar 2020 17:05:51 -0500 Received: from m0127361.ppops.net (m0127361.ppops.net [127.0.0.1]) by pps.reinject (8.16.0.36/8.16.0.36) with SMTP id 024Lws2D133806; Wed, 4 Mar 2020 17:05:51 -0500 Received: from ppma04dal.us.ibm.com (7a.29.35a9.ip4.static.sl-reverse.com [169.53.41.122]) by mx0a-001b2d01.pphosted.com with ESMTP id 2yfkncewp0-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 04 Mar 2020 17:05:51 -0500 Received: from pps.filterd (ppma04dal.us.ibm.com [127.0.0.1]) by ppma04dal.us.ibm.com (8.16.0.27/8.16.0.27) with SMTP id 024M0YaH030687; Wed, 4 Mar 2020 22:05:50 GMT Received: from b03cxnp08027.gho.boulder.ibm.com (b03cxnp08027.gho.boulder.ibm.com [9.17.130.19]) by ppma04dal.us.ibm.com with ESMTP id 2yffk77xby-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 04 Mar 2020 22:05:50 +0000 Received: from b03ledav005.gho.boulder.ibm.com (b03ledav005.gho.boulder.ibm.com [9.17.130.236]) by b03cxnp08027.gho.boulder.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 024M5n0U13304420 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 4 Mar 2020 22:05:49 GMT Received: from b03ledav005.gho.boulder.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 2C3C2BE0AC; Wed, 4 Mar 2020 22:05:49 +0000 (GMT) Received: from b03ledav005.gho.boulder.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id EEB24BE0A3; Wed, 4 Mar 2020 22:05:46 +0000 (GMT) Received: from leobras.br.ibm.com (unknown [9.18.235.190]) by b03ledav005.gho.boulder.ibm.com (Postfix) with ESMTP; Wed, 4 Mar 2020 22:05:46 +0000 (GMT) Message-ID: Subject: Re: [PATCH 1/1] powerpc/kernel: Enables memory hot-remove after reboot on pseries guests From: Leonardo Bras To: Bharata B Rao Cc: ndfont@gmail.com, "linux-kernel@vger.kernel.org" , arbab@linux.ibm.com, Claudio Carvalho , Michael Roth , Paul Mackerras , Greg Kroah-Hartman , Thomas Gleixner , linuxppc-dev , Hari Bathini Date: Wed, 04 Mar 2020 19:05:43 -0300 In-Reply-To: <621dd76a8e0b449db66ba2c3ad20fb2c743a1f1b.camel@linux.ibm.com> References: <20200228060439.52749-1-leonardo@linux.ibm.com> <621dd76a8e0b449db66ba2c3ad20fb2c743a1f1b.camel@linux.ibm.com> Content-Type: multipart/signed; micalg="pgp-sha256"; protocol="application/pgp-signature"; boundary="=-i+d4i/WWLm20T4rx7xB5" User-Agent: Evolution 3.34.4 (3.34.4-1.fc31) MIME-Version: 1.0 X-TM-AS-GCONF: 00 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.138,18.0.572 definitions=2020-03-04_09:2020-03-04,2020-03-04 signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 malwarescore=0 spamscore=0 mlxlogscore=897 lowpriorityscore=0 priorityscore=1501 bulkscore=0 adultscore=0 suspectscore=2 clxscore=1015 mlxscore=0 phishscore=0 impostorscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2001150001 definitions=main-2003040140 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --=-i+d4i/WWLm20T4rx7xB5 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Wed, 2020-03-04 at 04:18 -0300, Leonardo Bras wrote: > Humm, this makes sense. > But with mu change, these pieces of memory only get into ZONE_MOVABLE > if the boot parameter 'movable_node' gets passed to guest kernel.=20 Humm, I think your patch also does that. > So, even if we are unable to sort out some flag combination that work > fine for both use-cases, if PowerVM don't pass 'movable_node' as boot > parameter to kernel, it will behave just as today. Also, another option would be adding a new 'removable' flag, given it has a lot of free bytes. It would only be passed by qemu, so we would be safe with PowerVM.=20 Then we would have=20 + if(lmb->flags & DRCONF_MEM_REMOVABLE)=09 + early_init_dt_mark_hotplug_memory_arch(base, size); Do you know if it's possible? We would need to update the LOPAPR?=20 Leonardo --=-i+d4i/WWLm20T4rx7xB5 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEEMdeUgIzgjf6YmUyOlQYWtz9SttQFAl5gJjcACgkQlQYWtz9S ttSHtw/9EmfURu4xc28TKZKOR3RRVUWh04fm24UoyOjEiEQ//E0NsFKdT1sIx+uH CSL9M3nNE0+DFz9YOtFwRKNwvrleSJUzivvaJyLU0jOsgZu0XmRHw3Sz3faYeIwU fYke3nVYjqb+qrgJLhlX+EeVlAgpp0Wgr5gYxvMvjUrWhR163JOP8sXWZy2FW7vr EgGOasvyrNiX/tvAa4H9mGSeL0ivmDx6O9FB/EKaZIRMXPCT9L0+jIR/upFPhNBH 3dmoCd26vpy/D/vs2thMQRU77WoIYQcGVTniM7/zEuJ2X3v0B95GnfblHh/3dQM7 D796j+eXq/Io6DQyBh4EEjMWOyYuDb3KM1G/ZJuHPs/RhTCl31DveMBC6kK7e9Yw 51q+hyU2opLZKDV3DI7EzzUIbUkC/i/wp7SmsswZQHZCpwOfCcf8/K24h9q5yUZn yjce+OpcLy/VfhlZGhf0E5D8p+IOL0zJHFlpb3bGDAXtUecp1C8J82nLdXHFE0Pz GitCSImCzjjwfoLEx8VYRV/TjBS9NjNbHOnG1GVVVgAlL1BauySvHYqTTdc0SlMG f+NKuqE9U0b5hpG4+cu3PQMCnAngv4PzG9tiF4HW+2UQ4ETujvqUwMFilYJa94VT bgB2swZfVuFydKx99Wy9FuBdsiNbzriiIccjv9Nn7MgXkJFl/+s= =Sv41 -----END PGP SIGNATURE----- --=-i+d4i/WWLm20T4rx7xB5--