From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mx0a-001b2d01.pphosted.com (mx0a-001b2d01.pphosted.com [148.163.156.1]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 3t2nCx59vMzDvj7 for ; Tue, 25 Oct 2016 06:58:53 +1100 (AEDT) Received: from pps.filterd (m0098404.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.17/8.16.0.17) with SMTP id u9OJwm8f058003 for ; Mon, 24 Oct 2016 15:58:51 -0400 Received: from e35.co.us.ibm.com (e35.co.us.ibm.com [32.97.110.153]) by mx0a-001b2d01.pphosted.com with ESMTP id 269ntp6gtj-1 (version=TLSv1.2 cipher=AES256-SHA bits=256 verify=NOT) for ; Mon, 24 Oct 2016 15:58:51 -0400 Received: from localhost by e35.co.us.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Mon, 24 Oct 2016 13:58:50 -0600 Received: from b03cxnp08027.gho.boulder.ibm.com (b03cxnp08027.gho.boulder.ibm.com [9.17.130.19]) by d03dlp01.boulder.ibm.com (Postfix) with ESMTP id 74D861FF0025 for ; Mon, 24 Oct 2016 13:58:28 -0600 (MDT) Subject: Re: [PATCH V6 7/8] powerpc: Check arch.vec earlier during boot for memory features To: Michael Bringmann , linuxppc-dev@lists.ozlabs.org References: From: Nathan Fontenot Date: Mon, 24 Oct 2016 14:58:47 -0500 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Message-Id: List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On 09/21/2016 09:17 AM, Michael Bringmann wrote: > architecture.vec5 features: The boot-time memory management needs to > know the form of the "ibm,dynamic-memory-v2" property early during > scanning of the flattened device tree. This patch moves execution of > the function pseries_probe_fw_features() early enough to be before > the scanning of the memory properties in the device tree to allow > recognition of the supported properties. > > [V2: No change] > [V3: Updated after commit 3808a88985b4f5f5e947c364debce4441a380fb8.] > [V4: Update comments] > [V5: Resynchronize/resubmit] > [V6: Resync to v4.7 kernel code] > > Signed-off-by: Michael Bringmann > --- > diff --git a/arch/powerpc/kernel/prom.c b/arch/powerpc/kernel/prom.c > index 946e34f..2034edc 100644 > --- a/arch/powerpc/kernel/prom.c > +++ b/arch/powerpc/kernel/prom.c > @@ -753,6 +753,9 @@ void __init early_init_devtree(void *params) > */ > of_scan_flat_dt(early_init_dt_scan_chosen_ppc, boot_command_line); > > + /* Now try to figure out if we are running on LPAR and so on */ > + pseries_probe_fw_features(); > + I'll have to defer to others on whether calling this earlier in boot is ok. I do notice that you do not remove the call later on, any reason? -Nathan > /* Scan memory nodes and rebuild MEMBLOCKs */ > of_scan_flat_dt(early_init_dt_scan_root, NULL); > of_scan_flat_dt(early_init_dt_scan_memory_ppc, NULL); >