From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932918AbdKQMuN (ORCPT ); Fri, 17 Nov 2017 07:50:13 -0500 Received: from mail-oi0-f42.google.com ([209.85.218.42]:39530 "EHLO mail-oi0-f42.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755989AbdKQMuE (ORCPT ); Fri, 17 Nov 2017 07:50:04 -0500 X-Google-Smtp-Source: AGs4zMaOf3fp5JF+ZtZmRqxh947P+nWZq0kmLpgdPOcPQ3O+nUc+yhsxWi2Nourzjmqab31/Iq6A8W/8y4OJmHaO7JU= MIME-Version: 1.0 In-Reply-To: References: <7278eca76456b412e02d9baa5dc164e83199cbab.1510118606.git.green.hu@gmail.com> From: Arnd Bergmann Date: Fri, 17 Nov 2017 13:50:02 +0100 X-Google-Sender-Auth: xN0RrdSJH0wLM-1m3Nm0bi9Ki4s Message-ID: Subject: Re: [PATCH 26/31] nds32: Build infrastructure To: Greentime Hu 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 List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. Arnd