{"id":795901,"url":"http://patchwork.ozlabs.org/api/patches/795901/?format=json","web_url":"http://patchwork.ozlabs.org/project/linuxppc-dev/patch/20170731181759.13839-1-danielhb@linux.vnet.ibm.com/","project":{"id":2,"url":"http://patchwork.ozlabs.org/api/projects/2/?format=json","name":"Linux PPC development","link_name":"linuxppc-dev","list_id":"linuxppc-dev.lists.ozlabs.org","list_email":"linuxppc-dev@lists.ozlabs.org","web_url":"https://github.com/linuxppc/wiki/wiki","scm_url":"https://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux.git","webscm_url":"https://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux.git/","list_archive_url":"https://lore.kernel.org/linuxppc-dev/","list_archive_url_format":"https://lore.kernel.org/linuxppc-dev/{}/","commit_url_format":"https://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux.git/commit/?id={}"},"msgid":"<20170731181759.13839-1-danielhb@linux.vnet.ibm.com>","list_archive_url":"https://lore.kernel.org/linuxppc-dev/20170731181759.13839-1-danielhb@linux.vnet.ibm.com/","date":"2017-07-31T18:17:59","name":"[RFC] powerpc: Disabling MEMORY_HOTPLUG_DEFAULT_ONLINE option for PPC64 arch","commit_ref":null,"pull_url":null,"state":"rejected","archived":true,"hash":"939d214808cdee49fa4f9304352e51b4e105c108","submitter":{"id":64623,"url":"http://patchwork.ozlabs.org/api/people/64623/?format=json","name":"Daniel Henrique Barboza","email":"danielhb@linux.vnet.ibm.com"},"delegate":null,"mbox":"http://patchwork.ozlabs.org/project/linuxppc-dev/patch/20170731181759.13839-1-danielhb@linux.vnet.ibm.com/mbox/","series":[],"comments":"http://patchwork.ozlabs.org/api/patches/795901/comments/","check":"pending","checks":"http://patchwork.ozlabs.org/api/patches/795901/checks/","tags":{},"related":[],"headers":{"Return-Path":"<linuxppc-dev-bounces+patchwork-incoming=ozlabs.org@lists.ozlabs.org>","X-Original-To":["patchwork-incoming@ozlabs.org","linuxppc-dev@lists.ozlabs.org"],"Delivered-To":["patchwork-incoming@ozlabs.org","linuxppc-dev@lists.ozlabs.org"],"Received":["from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3])\n\t(using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits))\n\t(No client certificate requested)\n\tby ozlabs.org (Postfix) with ESMTPS id 3xLnmx43Ymz9s4s\n\tfor <patchwork-incoming@ozlabs.org>;\n\tTue,  1 Aug 2017 04:20:17 +1000 (AEST)","from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3])\n\tby lists.ozlabs.org (Postfix) with ESMTP id 3xLnmx1rZwzDrKW\n\tfor <patchwork-incoming@ozlabs.org>;\n\tTue,  1 Aug 2017 04:20:17 +1000 (AEST)","from mx0a-001b2d01.pphosted.com (mx0b-001b2d01.pphosted.com\n\t[148.163.158.5])\n\t(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256\n\tbits)) (No client certificate requested)\n\tby lists.ozlabs.org (Postfix) with ESMTPS id 3xLnkZ1pBTzDsPt\n\tfor <linuxppc-dev@lists.ozlabs.org>;\n\tTue,  1 Aug 2017 04:18:14 +1000 (AEST)","from pps.filterd (m0098421.ppops.net [127.0.0.1])\n\tby mx0a-001b2d01.pphosted.com (8.16.0.21/8.16.0.21) with SMTP id\n\tv6VIDuoj038619\n\tfor <linuxppc-dev@lists.ozlabs.org>; Mon, 31 Jul 2017 14:18:11 -0400","from e24smtp04.br.ibm.com (e24smtp04.br.ibm.com [32.104.18.25])\n\tby mx0a-001b2d01.pphosted.com with ESMTP id 2c26xegkp5-1\n\t(version=TLSv1.2 cipher=AES256-SHA bits=256 verify=NOT)\n\tfor <linuxppc-dev@lists.ozlabs.org>; Mon, 31 Jul 2017 14:18:10 -0400","from localhost\n\tby e24smtp04.br.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use\n\tOnly! Violators will be prosecuted\n\tfor <linuxppc-dev@lists.ozlabs.org> from\n\t<danielhb@linux.vnet.ibm.com>; Mon, 31 Jul 2017 15:18:09 -0300","from d24relay02.br.ibm.com (9.13.39.42)\n\tby e24smtp04.br.ibm.com (10.172.0.140) with IBM ESMTP SMTP Gateway:\n\tAuthorized Use Only! Violators will be prosecuted; \n\tMon, 31 Jul 2017 15:18:07 -0300","from d24av01.br.ibm.com (d24av01.br.ibm.com [9.8.31.91])\n\tby d24relay02.br.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id\n\tv6VII6kD23330862\n\tfor <linuxppc-dev@lists.ozlabs.org>; Mon, 31 Jul 2017 15:18:06 -0300","from d24av01.br.ibm.com (localhost [127.0.0.1])\n\tby d24av01.br.ibm.com (8.14.4/8.14.4/NCO v10.0 AVout) with ESMTP id\n\tv6VII684010823\n\tfor <linuxppc-dev@lists.ozlabs.org>; Mon, 31 Jul 2017 15:18:07 -0300","from localhost.localdomain ([9.80.223.205])\n\tby d24av01.br.ibm.com (8.14.4/8.14.4/NCO v10.0 AVin) with ESMTP id\n\tv6VII4YA010737\n\tfor <linuxppc-dev@lists.ozlabs.org>; Mon, 31 Jul 2017 15:18:05 -0300"],"From":"Daniel Henrique Barboza <danielhb@linux.vnet.ibm.com>","To":"linuxppc-dev@lists.ozlabs.org","Subject":"[RFC PATCH] powerpc: Disabling MEMORY_HOTPLUG_DEFAULT_ONLINE option\n\tfor PPC64 arch","Date":"Mon, 31 Jul 2017 15:17:59 -0300","X-Mailer":"git-send-email 2.9.4","X-TM-AS-MML":"disable","x-cbid":"17073118-0028-0000-0000-000001CCF74E","X-IBM-AV-DETECTION":"SAVI=unused REMOTE=unused XFE=unused","x-cbparentid":"17073118-0029-0000-0000-000014CF6890","Message-Id":"<20170731181759.13839-1-danielhb@linux.vnet.ibm.com>","X-Proofpoint-Virus-Version":"vendor=fsecure engine=2.50.10432:, ,\n\tdefinitions=2017-07-31_06:, , signatures=0","X-Proofpoint-Spam-Details":"rule=outbound_notspam policy=outbound score=0\n\tspamscore=0 suspectscore=1\n\tmalwarescore=0 phishscore=0 adultscore=0 bulkscore=0 classifier=spam\n\tadjust=0 reason=mlx scancount=1 engine=8.0.1-1706020000\n\tdefinitions=main-1707310307","X-BeenThere":"linuxppc-dev@lists.ozlabs.org","X-Mailman-Version":"2.1.23","Precedence":"list","List-Id":"Linux on PowerPC Developers Mail List\n\t<linuxppc-dev.lists.ozlabs.org>","List-Unsubscribe":"<https://lists.ozlabs.org/options/linuxppc-dev>,\n\t<mailto:linuxppc-dev-request@lists.ozlabs.org?subject=unsubscribe>","List-Archive":"<http://lists.ozlabs.org/pipermail/linuxppc-dev/>","List-Post":"<mailto:linuxppc-dev@lists.ozlabs.org>","List-Help":"<mailto:linuxppc-dev-request@lists.ozlabs.org?subject=help>","List-Subscribe":"<https://lists.ozlabs.org/listinfo/linuxppc-dev>,\n\t<mailto:linuxppc-dev-request@lists.ozlabs.org?subject=subscribe>","Errors-To":"linuxppc-dev-bounces+patchwork-incoming=ozlabs.org@lists.ozlabs.org","Sender":"\"Linuxppc-dev\"\n\t<linuxppc-dev-bounces+patchwork-incoming=ozlabs.org@lists.ozlabs.org>"},"content":"Commit 943db62c316c (\"powerpc/pseries: Revert 'Auto-online\nhotplugged memory'\") reverted the auto-online feature for pseries due\nto problems with LMB removals not updating the device struct properly.\nAmong other things, this commit made the following change in\narch/powerpc/configs/pseries_defconfig:\n\n@@ -58,7 +58,6 @@ CONFIG_KEXEC_FILE=y\n CONFIG_IRQ_ALL_CPUS=y\n CONFIG_MEMORY_HOTPLUG=y\n CONFIG_MEMORY_HOTREMOVE=y\n-CONFIG_MEMORY_HOTPLUG_DEFAULT_ONLINE=y\n CONFIG_KSM=y\n\nThe intent was to disable the option in the defconfig of pseries, since\nafter that the code doesn't have this support anymore. However, this change\nalone isn't enough to prevent situations such as [1], where\ndistros can enable the option unaware of the consequences of\ndoing it (e.g. breaking LMB hotplug altogether).\n\nInstead of relying on all distros knowing that pseries can't handle\nCONFIG_MEMORY_HOTPLUG_DEFAULT_ONLINE=y after 943db62c316c, this patch\nchanges mm/Kconfig to make the MEMORY_HOTPLUG_DEFAULT_ONLINE config\nunavailable for the PPC64 arch.\n\n[1] https://bugzilla.redhat.com/show_bug.cgi?id=1476380\n\nFixes: 943db62c316c (\"powerpc/pseries: Revert 'Auto-online hotplugged memory'\")\nSigned-off-by: Daniel Henrique Barboza <danielhb@linux.vnet.ibm.com>\n---\n mm/Kconfig | 2 +-\n 1 file changed, 1 insertion(+), 1 deletion(-)","diff":"diff --git a/mm/Kconfig b/mm/Kconfig\nindex 48b1af4..a342c77 100644\n--- a/mm/Kconfig\n+++ b/mm/Kconfig\n@@ -169,7 +169,7 @@ config MEMORY_HOTPLUG_SPARSE\n config MEMORY_HOTPLUG_DEFAULT_ONLINE\n         bool \"Online the newly added memory blocks by default\"\n         default n\n-        depends on MEMORY_HOTPLUG\n+        depends on MEMORY_HOTPLUG && !PPC64\n         help\n \t  This option sets the default policy setting for memory hotplug\n \t  onlining policy (/sys/devices/system/memory/auto_online_blocks) which\n","prefixes":["RFC"]}