Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp451573imm; Tue, 3 Jul 2018 23:29:26 -0700 (PDT) X-Google-Smtp-Source: AAOMgpcQxmgdQzfC0O0SO1lr3W1T+VQ8AKraauEs4Gc6qQw9JYI+LByRIJwsxEh25AVhrW/bow33 X-Received: by 2002:a62:5e06:: with SMTP id s6-v6mr801208pfb.253.1530685766016; Tue, 03 Jul 2018 23:29:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530685765; cv=none; d=google.com; s=arc-20160816; b=iXc4Glvoa7tTKgoTzMdGIwtETo0/wfun98a3ShTA/gL0q5o/FfamBOyNI6OAOCMgiz Hx3nu9/HbfFmD6YrTe2d8y2EYMOSwXypZibu/04mbSLieVBp95BxEJo5XSU/Xrwoy3zO yzLKjDj/GEW9lqJ05GQBG+SNN1W2lC9kbQkOK9G+V9lk+PUhKA7WDPc+7RZ5PbYOKXQe 8eFVPvum7j0w+tklqczu1ncZwNAJMWo/qlJ7wimhPhcDgs5Al04GV4gBvX0AFcuGefcZ 5+1D8n/oYaZd/+EC1ak0EqUtdkCnHCuvJ1VCNIgnKbdFakFPGbAuPK4Z/TIyuWGlA1PV XQMg== 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=T5gFaBnW8oRY1gacYb8YSCUoPOQcsjyYc7Km2ViIl3g=; b=ez8LykOP+XWJ1B8on77FyJtZupfAV9BlGFdRBlrirU6o0K/S91v3jCZXSk18x1mbWI IbJ8cg8WKRAiMdZ93dIK51HjqMbSKYaTiZzh2hI+qPlQqz/sI7fWILrbv4PT/yRKGv0/ i6W7kAg1MSir3z8dnZ10Y1iBKqa3RYYHImpgdWMLrApUoteQQ4lek1cslaHn0Snz3Io9 FWJYBjp7h/EfAL3tyJjof+iUmiVDdJS19esny5jhHwdw896PnCOOrIVURripnmO7mowV G1bj0dc3tvvlU1UKkQdog8L3czzcnDPdipG0EXBIIUBw56TI13PH0nK1jfhDvHwUEA9W Ufhg== 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 w15-v6si2807374plq.455.2018.07.03.23.29.11; Tue, 03 Jul 2018 23:29:25 -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 S933056AbeGDG21 (ORCPT + 99 others); Wed, 4 Jul 2018 02:28:27 -0400 Received: from mx0b-001b2d01.pphosted.com ([148.163.158.5]:51054 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S932500AbeGDG20 (ORCPT ); Wed, 4 Jul 2018 02:28:26 -0400 Received: from pps.filterd (m0098421.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.22/8.16.0.22) with SMTP id w646O3cR047586 for ; Wed, 4 Jul 2018 02:28:25 -0400 Received: from e06smtp01.uk.ibm.com (e06smtp01.uk.ibm.com [195.75.94.97]) by mx0a-001b2d01.pphosted.com with ESMTP id 2k0qjqu78n-1 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=NOT) for ; Wed, 04 Jul 2018 02:28:25 -0400 Received: from localhost by e06smtp01.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Wed, 4 Jul 2018 07:28:24 +0100 Received: from b06cxnps3075.portsmouth.uk.ibm.com (9.149.109.195) by e06smtp01.uk.ibm.com (192.168.101.131) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; (version=TLSv1/SSLv3 cipher=AES256-GCM-SHA384 bits=256/256) Wed, 4 Jul 2018 07:28:21 +0100 Received: from d06av22.portsmouth.uk.ibm.com (d06av22.portsmouth.uk.ibm.com [9.149.105.58]) by b06cxnps3075.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id w646SKZY39387182 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Wed, 4 Jul 2018 06:28:20 GMT Received: from d06av22.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id CD51A4C052; Wed, 4 Jul 2018 09:28:45 +0100 (BST) Received: from d06av22.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 39E674C044; Wed, 4 Jul 2018 09:28:44 +0100 (BST) Received: from rapoport-lnx (unknown [9.148.8.160]) by d06av22.portsmouth.uk.ibm.com (Postfix) with ESMTPS; Wed, 4 Jul 2018 09:28:44 +0100 (BST) Received: by rapoport-lnx (sSMTP sendmail emulation); Wed, 04 Jul 2018 09:28:18 +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 v2 0/3] m68k: switch to MEMBLOCK + NO_BOOTMEM Date: Wed, 4 Jul 2018 09:28:13 +0300 X-Mailer: git-send-email 2.7.4 X-TM-AS-GCONF: 00 x-cbid: 18070406-4275-0000-0000-00000294F555 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 18070406-4276-0000-0000-0000379C772D Message-Id: <1530685696-14672-1-git-send-email-rppt@linux.vnet.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2018-07-04_02:,, 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=725 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1806210000 definitions=main-1807040077 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 v2: * fix reservation of the kernel text/data/bss for ColdFire MMU 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 | 13 +++++++------ arch/m68k/mm/motorola.c | 35 +++++++++++------------------------ arch/m68k/sun3/config.c | 4 ---- 9 files changed, 36 insertions(+), 64 deletions(-) -- 2.7.4