Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp982583imm; Tue, 3 Jul 2018 03:32:29 -0700 (PDT) X-Google-Smtp-Source: AAOMgpdnlPvsc8XzUcpdSjI2r1x5WExBe5FunDGhTcUtTQe950gVLKuGnx0fjezMxrKB3CiztnWO X-Received: by 2002:a62:6b44:: with SMTP id g65-v6mr6050010pfc.226.1530613949929; Tue, 03 Jul 2018 03:32:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530613949; cv=none; d=google.com; s=arc-20160816; b=OxzetSiIhrAsGPPB7O6ccP0x57U4cGeKGwO0gdhP7AzeXbx8rFic5mRk9JvpKHMFEN vsJ6uNDd/2Pir8SxpWTbhrxEHm1HbY3uRCBgxGqYtT8VbEPte33oD/Nt5R7DhqsfU2lh Ch1pZUBFLMbbYymGiq7mKNujMAsD9447U0KRsIJXP1xlb0qq/kp7cGKg1m3qoWsoheiN E0VdJX94Fs2R46RqH+uYUkUFhjpAPz45/di1t7ZtsNO+fX8c8kM+xrUWC/RFiuU0c1PR 1EHLU4rJtA3LBK9y1I3mMnMg3IVMW752DePJjsAwgof8wgkfXmDLOyURVgP529sJhPQc q0+g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :arc-authentication-results; bh=qMgfYzBIyE/Sgd7n8+FXyza9Jp0/1Ri2fnKQFR4FqN4=; b=DKeldVNLSWO87050AJlq8sriEhamliNk9es7gkWkrZgKaIznyAZWJ/Jc9lL7JknjB+ Eg9Pb8W1vYtPp8fynBOqaSphVNcDaglVawGRFK3LysxAdrQdbuXWDhq8Dx1o9LzGls/z wJw6nK9yENHR+Jncu2zb0KlerS6ZstYCS7/o9W1CIrrBwSLEbXToX9Rdlt/GpiyTWdKn pCt7gSF3uBZ84y/54CZaCFMlI3nNHrx33XdeHoA8eA1XeLG7CJ00L52palNbc/b+VMNM wMkf5PRH+31qhpFEMk3Hl+wiIElmU0w9MT+f5oRVceBV9G8BqJkf9IZhIOtZg004RWCD R5Vw== 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 u21-v6si843764pfd.78.2018.07.03.03.32.15; Tue, 03 Jul 2018 03:32:29 -0700 (PDT) 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 S1754799AbeGCKaJ (ORCPT + 99 others); Tue, 3 Jul 2018 06:30:09 -0400 Received: from mx0b-001b2d01.pphosted.com ([148.163.158.5]:34146 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1754665AbeGCKaH (ORCPT ); Tue, 3 Jul 2018 06:30:07 -0400 Received: from pps.filterd (m0098416.ppops.net [127.0.0.1]) by mx0b-001b2d01.pphosted.com (8.16.0.22/8.16.0.22) with SMTP id w63AOK8s133054 for ; Tue, 3 Jul 2018 06:30:06 -0400 Received: from e06smtp03.uk.ibm.com (e06smtp03.uk.ibm.com [195.75.94.99]) by mx0b-001b2d01.pphosted.com with ESMTP id 2k07348wf6-1 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=NOT) for ; Tue, 03 Jul 2018 06:30:05 -0400 Received: from localhost by e06smtp03.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Tue, 3 Jul 2018 11:30:03 +0100 Received: from b06cxnps3074.portsmouth.uk.ibm.com (9.149.109.194) by e06smtp03.uk.ibm.com (192.168.101.133) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; (version=TLSv1/SSLv3 cipher=AES256-GCM-SHA384 bits=256/256) Tue, 3 Jul 2018 11:30:00 +0100 Received: from d06av25.portsmouth.uk.ibm.com (d06av25.portsmouth.uk.ibm.com [9.149.105.61]) by b06cxnps3074.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id w63ATxJ745809902 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Tue, 3 Jul 2018 10:29:59 GMT Received: from d06av25.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id A7C0311C052; Tue, 3 Jul 2018 13:30:24 +0100 (BST) Received: from d06av25.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id DEC7811C04A; Tue, 3 Jul 2018 13:30:22 +0100 (BST) Received: from rapoport-lnx (unknown [9.148.206.209]) by d06av25.portsmouth.uk.ibm.com (Postfix) with ESMTPS; Tue, 3 Jul 2018 13:30:22 +0100 (BST) Received: by rapoport-lnx (sSMTP sendmail emulation); Tue, 03 Jul 2018 13:29:56 +0300 From: Mike Rapoport To: Geert Uytterhoeven , Greg Ungerer , Sam Creasey Cc: Michal Hocko , linux-m68k@lists.linux-m68k.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org, Mike Rapoport Subject: [PATCH 0/3] m68k: switch to MEMBLOCK + NO_BOOTMEM Date: Tue, 3 Jul 2018 13:29:52 +0300 X-Mailer: git-send-email 2.7.4 X-TM-AS-GCONF: 00 x-cbid: 18070310-0012-0000-0000-000002863D44 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 18070310-0013-0000-0000-000020B7B8F5 Message-Id: <1530613795-6956-1-git-send-email-rppt@linux.vnet.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2018-07-03_03:,, signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 malwarescore=0 suspectscore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=678 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1806210000 definitions=main-1807030120 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, These patches switch m68k boot time memory allocators from bootmem to memblock + no_bootmem. The first two patches update __ffs() and __va() definitions to be inline with other arches and asm-generic. This is required to avoid compilation warnings in mm/memblock.c and mm/nobootmem.c. The third patch performs the actual switch of the boot time mm. Its changelog has detailed description of the changes. I've tested the !MMU version with qemu-system-m68k -M mcf5208evb and the MMU version with q800 using qemu from [1]. I've also build tested allyesconfig and *_defconfig. [1] https://github.com/vivier/qemu-m68k.git Mike Rapoport (3): m68k/bitops: convert __ffs to match generic declaration m68k/page_no.h: force __va argument to be unsigned long m68k: switch to MEMBLOCK + NO_BOOTMEM arch/m68k/Kconfig | 3 +++ arch/m68k/include/asm/bitops.h | 8 ++++++-- arch/m68k/include/asm/page_no.h | 2 +- arch/m68k/kernel/setup_mm.c | 14 ++++---------- arch/m68k/kernel/setup_no.c | 20 ++++---------------- arch/m68k/mm/init.c | 1 - arch/m68k/mm/mcfmmu.c | 11 +++++++---- arch/m68k/mm/motorola.c | 35 +++++++++++------------------------ arch/m68k/sun3/config.c | 4 ---- 9 files changed, 36 insertions(+), 62 deletions(-) -- 2.7.4