Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp184596ybe; Tue, 3 Sep 2019 20:29:53 -0700 (PDT) X-Google-Smtp-Source: APXvYqw2YtYNdbLNV/iaevpPo6HC5jkB/m3NHL4H1XfoK+UXRq0LHiMCYOEWcwGNLlh/X+J9eprV X-Received: by 2002:a63:2004:: with SMTP id g4mr31802966pgg.97.1567567793089; Tue, 03 Sep 2019 20:29:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567567793; cv=none; d=google.com; s=arc-20160816; b=f8adTRi5QOyGDzLDf1W54ussHvIL/9ryOWAlc0t/vYZJ+Qx8hggcNPnGTGJMEIg/cd o0Ch1T+4ovSkcUUPbOeth1jXJmJp3Zo9mkBRk3DHTgSPJLMyNsZEPqNKCZBRMp5UoHLh MGPVlufs4c4AzQowGce7rwB1O8lzBZSa4Gyu83bGvAkvcsRGigiQNKPArDxLm4p52jUR bCSqdqiz3cfmZMRr9FXbVBapTDO5osKv8KGZonsYbczASUOzAhIlwBuB5bluoGPK2HRw DEFYOwhne4qpDmNETG1UWEgBKMK/DbViU73TtVfqO6Jcs8v3OqvVzfvAIr8vNZvfHkw9 QWGA== 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 :in-reply-to:references:mime-version; bh=AgXSmzwyZZlC9RGIALdPqPvVz8SuZyV2bVF/XPSrAps=; b=ZOSR+fNX3+wUn5S3LEf6dvfCa6waryYkd6Wpq25OJ4shGQlRfydSCp5pdS3RHT3NpE +/ElSrCWT1ietgbbs0WIJgf7G8Wumt7Ye8UI1LmuWxh1ed0sCrs9DFSxzw1C9HJp1zjo FUAZrDHM2jc6GYygS70yc9zKrycyIRkxuYciZjXzRzXaCTh/9dmKoB6zwqzOuF7hGuQV rchZ5GEnZ+8qS/OwCEMH0jVtnNpNpyzI/wdx5493Ox8HrJgt/KjFS41XUWjXhBww3Rvs kU5LE52PtQR49XB7lKwmoTspYTsOWF74XwbvwjhoWTOm9PKzWQEIvUXrTO062hgl/mfV k2uA== 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 c1si11111248pld.370.2019.09.03.20.29.37; Tue, 03 Sep 2019 20:29:53 -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 S1728045AbfIDD2u (ORCPT + 99 others); Tue, 3 Sep 2019 23:28:50 -0400 Received: from mail-io1-f67.google.com ([209.85.166.67]:39375 "EHLO mail-io1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727374AbfIDD2u (ORCPT ); Tue, 3 Sep 2019 23:28:50 -0400 Received: by mail-io1-f67.google.com with SMTP id d25so38454375iob.6; Tue, 03 Sep 2019 20:28:50 -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; bh=AgXSmzwyZZlC9RGIALdPqPvVz8SuZyV2bVF/XPSrAps=; b=Efo1R4/yAj50n+N8aNIUjsL5/wz8GYZ+lwgSxZeRX/PNSETumZROhNcjvj5cZWbwej HctERQiMgLIY7UCLyKlKqVlxEMmF9Txa+DHDjoJe8NiIi22DOL4jq5L/0m0s0X+zv4CR LRzVd8I3+L6c9W6mEc12XGmvnPqYYQi4fjOlYBnlItHXan8GLPgmNFeazcai1qo/NCUU BmjxmhlImq0oTK1/qtgGIc4K4Guhy/6veI0xGTtmTDXqOvSPQtNtEOTkbHMAetByIlLy 30iyMGfVaFikdl0lqTAEdW1d6girJzLXcLkzbGEbyNa9pGoJBkVDZOKxoXgm0fL0TMl+ hgGQ== X-Gm-Message-State: APjAAAU/ndKyme6mK9O/dKM0Q21qf2QWsD0T3ybQhKIodVKkNmmUuT59 ktF91M2V3Cq9MHNOGv/TNH/ugg7R1u0KHBxadx0= X-Received: by 2002:a6b:ef0b:: with SMTP id k11mr6023481ioh.143.1567567729507; Tue, 03 Sep 2019 20:28:49 -0700 (PDT) MIME-Version: 1.0 References: <20190827085302.5197-1-jiaxun.yang@flygoat.com> <20190827085302.5197-12-jiaxun.yang@flygoat.com> <20190827204105.7nyt4pi7lvxse5ij@pburton-laptop> <20190903085904.bwmm4knaodopvzvd@pburton-laptop> In-Reply-To: <20190903085904.bwmm4knaodopvzvd@pburton-laptop> From: Huacai Chen Date: Wed, 4 Sep 2019 11:33:20 +0800 Message-ID: Subject: Re: [PATCH 11/13] dt-bindings: mips: Add loongson cpus & boards To: Paul Burton Cc: Rob Herring , Jiaxun Yang , "open list:MIPS" , Thomas Gleixner , Jason Cooper , Marc Zyngier , "linux-kernel@vger.kernel.org" , Mark Rutland , "devicetree@vger.kernel.org" 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 On Tue, Sep 3, 2019 at 5:08 PM Paul Burton wrote: > > Hi Rob, > > On Mon, Sep 02, 2019 at 03:50:47PM +0100, Rob Herring wrote: > > > In general on MIPS we detect CPU properties at runtime from coprocessor > > > 0 registers & similar sources of information, so there's not really a > > > need to specify anything about the CPU in devicetree. > > > > We thought the same thing initially for Arm... Mostly what is in DT is > > not what is discoverable. Are clock speeds, power domains, low power > > states, etc. all discoverable? > > No, that's a good point - clocks etc may need to be specified in DT. I > just don't see any of that in this patchset - it appears all that is > specified is cache sizes which we already detect. So in this case I > don't see a need for including CPUs in DT at all. > > Jiaxun - did you add all this information to DT to avoid the "cacheinfo: > Unable to detect cache hierarchy for CPU" messages during boot? If so > that should be fixed by commit b8bea8a5e5d9 ("mips: fix cacheinfo"). If > not, could you describe why the CPU nodes are needed here? Yes, this can avoid "cacheinfo: Unable to detect cache hierarchy for CPU". In our own git repository we have already reverted commit b8bea8a5e5d9 ("mips: fix cacheinfo") Huacai > > Thanks, > Paul