Received: by 10.223.164.202 with SMTP id h10csp1107181wrb; Fri, 17 Nov 2017 14:06:47 -0800 (PST) X-Google-Smtp-Source: AGs4zMaTRkulzBdpowkoUtcN8fLsI2mi5JuQ/WZsXUxV6HUqAkLumjj5iOl6IirZXMDrIJQnahbi X-Received: by 10.98.19.23 with SMTP id b23mr3432315pfj.63.1510956407214; Fri, 17 Nov 2017 14:06:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1510956407; cv=none; d=google.com; s=arc-20160816; b=w/3F9j2niQzE45ihCN6IioFbDqNo7mbfw9Rm5MtjURlthAwO64+ScOcZZx8lMt144T xhAy9QKL3e12mHe9q6SAGBg55MYa1RQULxLHZ7IcS4fRoJ/o7l57cU+e7q8hz7QUTK+f G0ymOlBPsZ4m34CtadrrCSBnuycSNCcipJ9F63bLTNM5mXpRTgBg2j6HI2MRoKvYjHtC sfbDBlUMz7J+K0SIW0g3QEiERy0hZWDaluRvxBr+NKi04jx5z1CHMEAhB45UJhzGjuce wm2vPEBs5lqEHvVxjEC3KM27xzWk9g74GS0s7kLqmJZLEJaDSh0aCPwH/e4dlnnKxqAm WCwA== 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=PPXgJv6hMskPibD55eJRKI7BtKGz5uDzdOvr7Gvjkss=; b=FMihRaOE9mZIX9MP+yMT9K6uhkM5edwwP2QKyO70/lTiR5AuccigiaCCBF0H9ZZJSK +u9FLRJ0yyVjTWrfQkY3eQ5nkyYMGPE2BZ5JpSWhO6D01+zd9qyxx2e7bA3wYtC2TSw1 R/NnoM9B4jQYACh1iIUmZtXBZb7gXBvrPa1hEIVf+1jccd7wqb0KOIvxsL48YM4wSLRC W4snZakLIZiJozFwD1FwUcaFdYGeHwtqrsSims+E/HZt7c/9nexxMkTRWyCHgtjEJ5wz QS06slZ5xruXcSASqRp1aFWiCGBVlLujo8cSGzqMUFFH/qCcx9f8CM1a3vcmvOiiNpGh 6mdQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Nx8obvHO; 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 1si3453424plz.646.2017.11.17.14.06.34; Fri, 17 Nov 2017 14:06: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=Nx8obvHO; 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 S1757623AbdKQNvb (ORCPT + 92 others); Fri, 17 Nov 2017 08:51:31 -0500 Received: from mail-ua0-f181.google.com ([209.85.217.181]:43577 "EHLO mail-ua0-f181.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751135AbdKQNvY (ORCPT ); Fri, 17 Nov 2017 08:51:24 -0500 Received: by mail-ua0-f181.google.com with SMTP id e10so1441243uah.10; Fri, 17 Nov 2017 05:51:24 -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=PPXgJv6hMskPibD55eJRKI7BtKGz5uDzdOvr7Gvjkss=; b=Nx8obvHOmecl0BCiIahljflulyjF1KDGC4XFFtIHzx+ZvL98OQrxkbAowY4iV9ZD4Q ETKwTH35DnAiOfhvJpfHYa8GL0ty+q6Omcn2FJMNl7HcmeqaApH4ghNLdlCihrwJ3q17 rSqc+pjP0PzmC4qLzuHC8MO8ZkGd5zhbJZ80R8XOk69lE2mpxERob3MzlSWj5hnQLEVN 2fPzSyxI04n5buVf9YCHMixlS9GWANC6Hngi/ewAzLBT/RPj4WGkNPly6+zLVzkK/egw yKxfeWZnWnjgN0TdcyvYLHrqM0e/81tXQkSvDyzcbBJ6Q0E27mI8P8cLrUsukWyP0/jK V1/w== 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=PPXgJv6hMskPibD55eJRKI7BtKGz5uDzdOvr7Gvjkss=; b=SVhedWD1LU4+gzdT5OZvQDfK1gJVRmliQEiD3eOizlXLprA6dWIsIkOKjzZKdqjb54 PXAlTUB5Udg32o1qQT4pmnlpWvNW4ykzafGXjFY5LiftANjHJt2Gbp4kKTbJfc/mwZb6 oUjX7Eb7AH8ziQW5d1Xxy1kc1f7VbZMX8EfiNB5w19WWlp0Bn/6VgRj9q+dIO96J7ici uQ+EicVq764Y5PqSMWrGC15kA61IJe1O+wOjqse3heKxa+LbxwhcxsB+EMF9uH/h/4bz NAHlDc2NZqL0tEseFEu/CP8f262fcrwiYtQUSPHGGBhLcBsGQqas9vBZvbWpvgmqZ0bg XonA== X-Gm-Message-State: AJaThX5Ex5EUwXWPAlP6sGvga+2NNhEoWAz+biqBbH3P6WKHWF33Sxtk uSr1qvEadmQZHe1q+JcAL8RTIOWt2ed2005P6R6gKg== X-Received: by 10.176.91.195 with SMTP id z3mr4520941uae.111.1510926683783; Fri, 17 Nov 2017 05:51:23 -0800 (PST) MIME-Version: 1.0 Received: by 10.159.62.8 with HTTP; Fri, 17 Nov 2017 05:50:43 -0800 (PST) In-Reply-To: References: <7278eca76456b412e02d9baa5dc164e83199cbab.1510118606.git.green.hu@gmail.com> From: Greentime Hu Date: Fri, 17 Nov 2017 21:50:43 +0800 Message-ID: Subject: Re: [PATCH 26/31] nds32: Build infrastructure To: Arnd Bergmann Cc: Greentime , Linux Kernel Mailing List , linux-arch , Thomas Gleixner , Jason Cooper , Marc Zyngier , Rob Herring , Networking , Vincent Chen 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-17 20:50 GMT+08:00 Arnd Bergmann : > On Fri, Nov 17, 2017 at 1:39 PM, Greentime Hu wrote: >> 2017-11-10 16:26 GMT+08:00 Greentime Hu : >>> 2017-11-09 18:33 GMT+08:00 Arnd Bergmann : >>>> On Thu, Nov 9, 2017 at 10:02 AM, Greentime Hu wrote: >>>>> 2017-11-08 18:16 GMT+08:00 Arnd Bergmann : >>>>>> On Wed, Nov 8, 2017 at 6:55 AM, Greentime Hu wrote: >>>> >>>>>>> +config GENERIC_CALIBRATE_DELAY >>>>>>> + def_bool y >>>>>> >>>>>> It's better to avoid the delay loop completely and skip the calibration, >>>>>> if your hardware allows. >>>>> >>>>> Thanks. >>>>> Do you mean that this config should be def_bool n? >>>>> why? Almost all arch enable it. >>>> >>>> It depends on what your hardware can do. If you have a way to see how much >>>> time has passed that is guaranteed to be reliable on all machines, then >>>> use that instead. >>>> >>>> On a lot of architectures, it's not possible, so they have to fall back to using >>>> the delay loop. >>> >>> I get it. I will discuss it with our HW colleagues. >>> We may get these informations in some registers. >> >> Hi, Arnd: >> >> I think I can't set it to default n because it will be called in start_kernel. >> >> start_kernel() -> calibrate_delay() >> >> If I don't enable this config, it will link error because it didn't >> build init/calibrate.c > > You will have to provide an architecture-specific implementation of > this function, please ahve a look at what others are doing, e.g. tile, > openrisc or > h8300. Thanks. I got you. From 1584351215292595331@xxx Fri Nov 17 21:44:22 +0000 2017 X-GM-THRID: 1583483358934427114 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread