Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp934356ybp; Wed, 9 Oct 2019 06:31:57 -0700 (PDT) X-Google-Smtp-Source: APXvYqwa5KBlwyK7N3Ya8XUJFlE/UEufNFfmbxpIlLbK7l9m6jbSq/XY2nE8aOqOHfGn0aSN26Ca X-Received: by 2002:aa7:c257:: with SMTP id y23mr3009775edo.39.1570627917197; Wed, 09 Oct 2019 06:31:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570627917; cv=none; d=google.com; s=arc-20160816; b=aMwx3uo0oex9XcLKnEeCTVaEhHS+EfRq8z4VCEUVMjwmR8taP4XRUTj7VXyfQTIcCt 7jdY3AdMYNYpGS6Co8cN+vbygEd3H6z7HjS+63gA94n4wNjMcXszUlePtgzLFbCw9Sfa 1RSJ+8qYQr1J0ycJdhSvf24WVFs/OlOuVhvakqLkNDDR+DcovL+CTzsHfrQ/OFth3/f9 YEHWD6YnhCASIeftE2ez7nYWhoVd05SKAtY6Hv7ljPxczlfUOiJkWzY1XoVUzG+FRgei XVpfbPtEWK9R19M9dPp9AehMMPEsQkpu2Ihvo3+0FJ5MDn8Cgvcv1KilU880mMoOIpzo Q/Lw== 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:to:from; bh=AbLU83qXLqR5baz7Cy7eTHcgV2THrJqei4E4yGtMj/k=; b=ND+zbKJmcPC5JheVSY0DH1wFdVNuiY6kA1lYSUx0E9SrPunO7ZIPMCscMIp4ln8hBu W323+JQw6twksUpXr/yQdvjfNAf4UzYO57eGRyocGkxNUN+WCjfhNGM3DfYDADaR9tMq OeIe+a2w8BVzR1DpyfSVy6ulkmRqmCw7KVgXxRsqGImcapbx1DlmGOtBIJUh1shG+/1l PiBmUOXr0Ziadl1iVrnYIM2gKucm+4fCd9MVMOtdhjUFGncfMYmYHy4oo0OXQVq3w9Zy t6wM5biiNeGJG3xl6WR13uDPhzb1IL3c8YykdrWh/PcMmS39OQZmU4vuZOTT/EYsx5xD Jm8A== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g11si1169243ejc.366.2019.10.09.06.31.33; Wed, 09 Oct 2019 06:31:57 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731424AbfJIN1a (ORCPT + 99 others); Wed, 9 Oct 2019 09:27:30 -0400 Received: from mx2.suse.de ([195.135.220.15]:47412 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1731152AbfJIN1a (ORCPT ); Wed, 9 Oct 2019 09:27:30 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id 70562AC6E; Wed, 9 Oct 2019 13:27:28 +0000 (UTC) From: Thomas Bogendoerfer To: Ralf Baechle , Paul Burton , James Hogan , linux-mips@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 0/6] Clean up ARC code and fix IP22/28 early printk Date: Wed, 9 Oct 2019 15:27:11 +0200 Message-Id: <20191009132718.25346-1-tbogendoerfer@suse.de> X-Mailer: git-send-email 2.16.4 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org While fixing the problem of not working EARLY_PRINTK on IP22/IP28 I've removed not used ARC function and made 32bit ARC PROMs working with 64bit kernels. By switching to memory detection via PROM calls EARLY_PRINTK works now. And by using the regular 64bit spaces maximum memory of 384MB on Indigo2 R4k machines is working, too. Thomas Bogendoerfer (6): MIPS: fw: arc: remove unused ARC code MIPS: fw: arc: use call_o32 to call ARC prom from 64bit kernel MIPS: Kconfig: always select ARC_MEMORY and ARC_PROMLIB for platform MIPS: fw: arc: workaround 64bit kernel/32bit ARC problems MIPS: SGI-IP22: set PHYS_OFFSET to memory start MIPS: SGI-IP22/28: Use PROM for memory detection arch/mips/Kconfig | 32 +++----- arch/mips/fw/arc/Makefile | 2 +- arch/mips/fw/arc/env.c | 6 -- arch/mips/fw/arc/file.c | 49 ------------ arch/mips/fw/arc/identify.c | 5 ++ arch/mips/fw/arc/init.c | 5 ++ arch/mips/fw/arc/memory.c | 9 +++ arch/mips/fw/arc/misc.c | 59 -------------- arch/mips/fw/arc/promlib.c | 25 +++++- arch/mips/fw/arc/salone.c | 25 ------ arch/mips/fw/arc/time.c | 25 ------ arch/mips/fw/arc/tree.c | 127 ------------------------------- arch/mips/include/asm/bootinfo.h | 1 + arch/mips/include/asm/mach-ip22/spaces.h | 12 +-- arch/mips/include/asm/sgialib.h | 12 --- arch/mips/include/asm/sgiarcs.h | 103 ++++++++----------------- arch/mips/sgi-ip22/ip22-mc.c | 74 +++++------------- 17 files changed, 105 insertions(+), 466 deletions(-) delete mode 100644 arch/mips/fw/arc/salone.c delete mode 100644 arch/mips/fw/arc/time.c delete mode 100644 arch/mips/fw/arc/tree.c -- 2.16.4