Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp774338imm; Wed, 17 Oct 2018 08:08:15 -0700 (PDT) X-Google-Smtp-Source: ACcGV6185Ljr5xgzI89kzZRtzmGohddpIiuRc7apyt0V6BxIENfLa/6LlCWy8v5cXHvA7U1pu5Nu X-Received: by 2002:a17:902:7c0b:: with SMTP id x11-v6mr25954825pll.60.1539788894910; Wed, 17 Oct 2018 08:08:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539788894; cv=none; d=google.com; s=arc-20160816; b=jyr3tiigR9Xvymvbw1cjSKghtaQjNN7fc+NEFI0Ze4rnJJfDMRGFezUb/pL7nm9KGG Qkf9QHS79mQUz6mt7A5sdCegAWwsi5T0I3O9NkIVhYdAuNvAf4BvO62pdC92j+ae916B 6Y/6HDy819GSdSI8KOkcB7Q4j8dIByw5qquAFaMvLER0RPZl6FjYjeSgfowlduVGuCRq XXWg6UzxFsnkW4ZkvcrAXzBYuhN0DZLfHZ655Qdz/I0tmD6evvBbB4EAHRKyxJjVqx/2 7p7PtJlq9tvjPGXouBVX7VcAOTOXTMjFAx/TZ65bT03RBmeB6+j6aC2I4TWsuBbG0l0G Lv2Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version; bh=L0or5r1Soy+OWaDPchgeGqTzxeMwcpKGYG+CrdJwLK8=; b=z1bQw1gZgz1qJEs6l85B2Pa2E19mEVQHP1ub4dhqguTBlcVGT0f3gDB2gZUEBjIIit FXkrQDBw+UQjio0E51zNxK+80hPxgb2zdePeG85xzS/x6b9VEKO8m3038YaB1EEhc5Tv Zf8s+XKGT67Xy4OdRSWydaFYqXJdHHXNTKOya9Zmei6aFavNCMB0kgs1q5vHj7l8gPPn pd8oDnCP1D22KnOXhetGPIp586LFTZBwBkXSqA9nt56TDzJ4zV2olIROp8dDwSHvvUSw M0fwE9a1exG1d1agg6bY2HycDxG90sbuR40VCn2qHqt2YAAuMX1wTmE7dovTr2lhCfHb FDYw== 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 u8-v6si17513386plz.119.2018.10.17.08.07.59; Wed, 17 Oct 2018 08:08:14 -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 S1727795AbeJQXDV convert rfc822-to-8bit (ORCPT + 99 others); Wed, 17 Oct 2018 19:03:21 -0400 Received: from mail-qt1-f193.google.com ([209.85.160.193]:37759 "EHLO mail-qt1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727182AbeJQXDU (ORCPT ); Wed, 17 Oct 2018 19:03:20 -0400 Received: by mail-qt1-f193.google.com with SMTP id d14-v6so30379070qto.4; Wed, 17 Oct 2018 08:07:13 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=Uu7F1FIUy6q8tufwKSn/3QcWQYkNMcDoUKVw5bIPkR4=; b=hq2fSfz6vTYTdxrm7oQdO5LETKLPDU54dHZe07fym6pb5FTEVU2Z35rTHXX0UaOsc1 NteyBwiVqdTxlQHZoseGi7PnTZO0DJUWldNOih8PNN8slz+EI5UpD2tvcoD8pqJOtROe Ew2Ec/hLQ8UlL2R1DIU87cnSe+xduKexRwlEgAU4wX1hgApYp+xUMciIrqqUp9z+7aMK P3P8B3YtkR5h9hnFHEWEpuvAWoUB0Tr8U2vNsB1608t8wHpL1nVL0f4De2Rm/sUzTTrE ubu8Y3Ab6hNfh9BW1ltQK6RsdkEAgi3X98hsKf5pz8zke840IQcvM1eu5AqasvBcNN/N KiXg== X-Gm-Message-State: ABuFfogHGMKFNbKKbgMwCDrePDcGaPx7CU0zDcE3Waey9JgynMVqtUWA zy+B2IHJ1lsOzARtk7nHg/8DTXw3T3AuQcL7rqg= X-Received: by 2002:a0c:881c:: with SMTP id 28mr25572809qvl.40.1539788833205; Wed, 17 Oct 2018 08:07:13 -0700 (PDT) MIME-Version: 1.0 References: <783a90d35138634a1cb899e2c551c96f3b5178af.1539655731.git.ren_guo@c-sky.com> In-Reply-To: <783a90d35138634a1cb899e2c551c96f3b5178af.1539655731.git.ren_guo@c-sky.com> From: Arnd Bergmann Date: Wed, 17 Oct 2018 17:06:56 +0200 Message-ID: Subject: Re: [PATCH V9 07/21] csky: MMU and page table management To: Guo Ren Cc: Andrew Morton , Daniel Lezcano , David Miller , gregkh , Christoph Hellwig , Marc Zyngier , Mark Rutland , Peter Zijlstra , Rob Herring , Thomas Gleixner , Linux Kernel Mailing List , linux-arch , DTML , Rob Herring , c-sky_gcc_upstream@c-sky.com Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8BIT Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Oct 16, 2018 at 5:01 AM Guo Ren wrote: > > This patch adds files related to memory management and here is our > memory-layout: > > Fixmap : 0xffc02000 – 0xfffff000 (4 MB - 12KB) > Pkmap : 0xff800000 – 0xffc00000 (4 MB) > Vmalloc : 0xf0200000 – 0xff000000 (238 MB) > Lowmem : 0x80000000 – 0xc0000000 (1GB) > > abiv1 CPU (CK610) is VIPT cache and it doesn't support highmem. > abiv2 CPUs are all PIPT cache and they could support highmem. > > Lowmem is directly mapped by msa0 & msa1 reg, and we needn't setup > memory page table for it. > > Link:https://lore.kernel.org/lkml/20180518215548.GH17671@n2100.armlinux.org.uk/ > Signed-off-by: Guo Ren > Cc: Christoph Hellwig > Cc: Arnd Bergmann Reviewed-by: Arnd Bergmann Christoph had all the useful comments on this one, I just checked that I didn't spot anything beyond that. Arnd