Received: by 10.223.164.202 with SMTP id h10csp584678wrb; Wed, 8 Nov 2017 23:25:47 -0800 (PST) X-Google-Smtp-Source: ABhQp+RSr5J2ddhZTzhCxM5kWcSjX9/os58KVcewRlxM4q5nwHoWaoZc92H4jiCzX0JhYfF0YtxG X-Received: by 10.84.233.200 with SMTP id m8mr2276259pln.424.1510212347067; Wed, 08 Nov 2017 23:25:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1510212347; cv=none; d=google.com; s=arc-20160816; b=e7fFEQlxikXZiaYlcL5vbLb+C1XAvwjPZAND15D9BWORhNT77e2oBicYTj9inR5f8R SMpKl5LLcvT4cTPPeyHdq7Xn7uFs0tuKc0gEL4ppvmWhs/uL/fHYUWigRRCC2/4YUBkK GveDBhca+0/z1ysk1RKzv6uHscRd2au25MdraRolMbDIIj8m9w7Y+d5ENKTf+3EjodZA YqPtzwVGTBk0Ydj04AyzMGXOpNO5nsyNJ5jJ/kw+s4zZRaoBsRsLV2xume7fpUZ4QYBc ts1Bfdh15laJGFGPbGhN68YnAG3eWsvNLXrIgBj2z0awPqAmgXidGgNB9RTng25VfOZS qnmQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=2rTxImQYAhGTw3pWc0Oh5lbqKl7EIHqb3fDpIh9fvOE=; b=aPvwf74CSVmF9fFHWK0GxLpLrRRVqI/BiGnPZvfcdtRJmFfjK375pJoLWjIsJjbOxB qEjyEm5Qb8J1gVe0Fog4lDo0Fyrv6np9rT8GLBORC9yf78CdD4GC5osV7uDIWa6oyDPI 0EKTHMO85YpMl4PVWQL2ltv2VhQRFQLaqJIssqi9HDJgbP8a90Ubi20TRbJ24oAuN99r o9GqCSZqxHPsO8g7gP5W6B7E5U9TtqgsTStl1+CWq+sfytBP16fmqUSZdn5w8BkjVW1r x7h9hLfAwqp699kNQh9IohtonlCFXcT1fCkCkeGC3W9rfci4Un/DlCLKqDBbRDTHgzwd BLIg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=a6aAzPgg; 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=pass (p=NONE sp=NONE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l68si5747115pgl.128.2017.11.08.23.25.35; Wed, 08 Nov 2017 23:25:47 -0800 (PST) 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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=a6aAzPgg; 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=pass (p=NONE sp=NONE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752774AbdKIHYv (ORCPT + 82 others); Thu, 9 Nov 2017 02:24:51 -0500 Received: from mail-vk0-f68.google.com ([209.85.213.68]:54629 "EHLO mail-vk0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750837AbdKIHYt (ORCPT ); Thu, 9 Nov 2017 02:24:49 -0500 Received: by mail-vk0-f68.google.com with SMTP id b18so1050894vkd.11; Wed, 08 Nov 2017 23:24:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=2rTxImQYAhGTw3pWc0Oh5lbqKl7EIHqb3fDpIh9fvOE=; b=a6aAzPggyLYjqMFSDJ7CS/1SyV70yj8/QPaW858wlAAH+AWc1ZN4sT/6tIocLq23QK /IIhFtAla0ywDaY36yUE33IrmXkWPj0e8Ugc63y99wxSbBOJ4n4JvLkZqvCEotXWol6x mu9sWJJ/PCVe5Ogk3nl1m4+F5hAdYFqT5mPbEV0NmCgy9AL6eEQn1iSZ/NLy5XthypiV 78Ptcnd/ABbGI2DdDtJlOSmE5PiEnvVi22vuLo/55KgFIiLMXNS0u4x66AS8zK4+NIbu /9mDHcxHOhx8nRoT8ukfKfkkpk78apAKyqegBijMsScKO+NC/QMxx+Cgt7Q8ZcTbOTrm Us4w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=2rTxImQYAhGTw3pWc0Oh5lbqKl7EIHqb3fDpIh9fvOE=; b=Mx2B/sjUTZIyyBp8V29WweyEgY/1Lza0x240chSBfOtLFESmPljiNaxWMVokh/UqIf 0s+DSc+cru5Ev1KTGGeP6ocgURQmRjVtGbZDDkJq901RbjwwggOn/XHRQRuGsun3vPw2 C1PwTAXhl/YNwYbkbsh5HcMizKXTiVg2B0ISWXpl2ga5S9R3QbAOfkxQAzS3vTFD78i6 2L/vtNraoj/wOK21QcfeMiZHL3zUGIwyT3lmCDounTBMKJkKjlCSIm6dRMaakTTxWVUO Mmqu2Ji6HnKvT7SE0oIJcmJK76Vc0Q2XNcCVjNxN89GyMNYoulzm4WSNJdph85luyATh 16FQ== X-Gm-Message-State: AJaThX746xemNvffm49KfVtW4dZnpg2hXjV+QZwqafAmohD4TcC1fciR /yH0B1oCuR0ywjFjCq5GRr6ptR/79ekF4l0BzPc= X-Received: by 10.31.170.142 with SMTP id t136mr2507161vke.198.1510212288379; Wed, 08 Nov 2017 23:24:48 -0800 (PST) MIME-Version: 1.0 Received: by 10.159.62.8 with HTTP; Wed, 8 Nov 2017 23:24:08 -0800 (PST) In-Reply-To: References: From: Greentime Hu Date: Thu, 9 Nov 2017 15:24:08 +0800 Message-ID: Subject: Re: [PATCH 20/31] nds32: L2 cache support To: Arnd Bergmann Cc: Greentime , Linux Kernel Mailing List , linux-arch , Thomas Gleixner , Jason Cooper , Marc Zyngier , Rob Herring , Networking , Vincent Chen , deanbo422@gmail.com Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 2017-11-08 17:48 GMT+08:00 Arnd Bergmann : > On Wed, Nov 8, 2017 at 6:55 AM, Greentime Hu wrote: >> From: Greentime Hu >> >> Signed-off-by: Vincent Chen >> Signed-off-by: Greentime Hu > >> + >> +/* This is defined for head.S to use due to device tree is not yet built. */ >> +#define L2CC_PA_BASE 0x90F00000 > > This looks problematic, since it prevents you from using the same head.S for > multiple SoCs that have different L2 controllers or that have them at different > addresses. > > What does head.S actually do to the L2CC? Could the boot protocol require > that to be done by the boot loader before entering the kernel instead? > Thanks. It will disable and invalidate L2 cache. I think we can do these things in bootloader. I will refine it in the next version patch. From 1583490926326282493@xxx Wed Nov 08 09:50:26 +0000 2017 X-GM-THRID: 1583483423987459509 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread