From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752000AbdATMfE (ORCPT ); Fri, 20 Jan 2017 07:35:04 -0500 Received: from mx0b-001b2d01.pphosted.com ([148.163.158.5]:46978 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751812AbdATMfC (ORCPT ); Fri, 20 Jan 2017 07:35:02 -0500 From: Heiko Carstens To: Andrew Morton Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: [PATCH 0/3] memblock: physical memory list cleanups Date: Fri, 20 Jan 2017 13:34:53 +0100 X-Mailer: git-send-email 2.8.4 X-TM-AS-GCONF: 00 X-Content-Scanned: Fidelis XPS MAILER x-cbid: 17012012-0040-0000-0000-0000031AA3BA X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 17012012-0041-0000-0000-000023E20B28 Message-Id: <20170120123456.46508-1-heiko.carstens@de.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:,, definitions=2017-01-20_09:,, signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 spamscore=0 suspectscore=0 malwarescore=0 phishscore=0 adultscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1612050000 definitions=main-1701200178 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Just a couple of trivial memblock patches, which could also be merged into one patch; whatever is preferred. Since commit 70210ed950b5 ("mm/memblock: add physical memory list") the memblock structure knows about a physical memory list. The memblock code should also print a sane name instead of "unknown" if it calls memblock_type_name() to get a name for the physmem memblock type. In addition the physmem list should also be dumped, if present, and memblock_dump_all is called to improve debugability. The last patch embeds the memblock type name into the memblock type structure in order to hopefully make the code a bit more easier and to get rid of a bit of code duplication. Thanks, Heiko Heiko Carstens (3): memblock: let memblock_type_name know about physmem type memblock: also dump physmem list within __memblock_dump_all memblock: embed memblock type name within struct memblock_type arch/s390/kernel/crash_dump.c | 1 + include/linux/memblock.h | 1 + mm/memblock.c | 32 +++++++++++++------------------- 3 files changed, 15 insertions(+), 19 deletions(-) -- 2.8.4