Received: by 10.223.164.202 with SMTP id h10csp911292wrb; Fri, 17 Nov 2017 10:38:07 -0800 (PST) X-Google-Smtp-Source: AGs4zMbJWK0BgfMvJzFINkAmPz3BxicIZ6yky7hmMR22OUEEKKDgBOet/DzCkJJTMa2binWSRQxk X-Received: by 10.101.65.6 with SMTP id w6mr5946230pgp.365.1510943887601; Fri, 17 Nov 2017 10:38:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1510943887; cv=none; d=google.com; s=arc-20160816; b=uiIKvHvC9+jjp0oLQQUaCaZ85Bkxu2o1wrhjNynv6VMJnsPqPY0JoXLZ+CfL0LAsk8 wNKWpMi8JtEi8o+1TaQyLxs9zsu4BPhCXXzeIPEhhW0Jl4rE+oQZdxmSe8WhkeATjpwK 9rrBesvRukf+VTvGBGgjMFrg4Mfd68JbrezVliZqbtPPQSQV/ygbnIcy+1D4zO6pJU7t 1NBJd3VJgUZ2gZNKXSbJbTeqW83zabXq6yXvdfsKZhgxD4jS0EgifA8f//irJY8hbnmY cDR1zBGLypYItgvEkdw5orjiA4rhKGk1UsA1rE9QvIxrFs75+Lrx4y1MYLpWFhAjUVq+ 6DVw== 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=ikHFJa0YASfPv3gU9xTABTJ6L3rIcL4S+I+FmWcBQts=; b=n/Pgk7FpAQQ1+CzdVR6NuNdsp15ZVOhYDmX7zAfvfMfGu1wpddjEDmYif5bT7ZsuQp ZMdR9HEE9Ma9qZkWEjN6xfQSdudJyNXnWVI7E9hIN7xDh1o2t0mxH/Bab+IHB39AdDX+ Qyfu/Kc/28fxe20J9SYoPYdQrR70xMrLuB/55kh21BZIlRn/L1XzUbCW12S6JbyVosdN zoRnSGKMape44Gmu3XMVFJaMuslifD65yGrl/7+298fL+JuHlLH/uXs/M2XvCFpTEp8W ay9cT5Jj0xUAwJpZC2rusYM7GZkjWfx6VcE/UjK8LN5FfHKZzzz9CuLZ/GjZF5l06IVa fueA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=i0QgugjO; 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 q4si3132817pgr.170.2017.11.17.10.37.54; Fri, 17 Nov 2017 10:38:07 -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=fail header.i=@gmail.com header.s=20161025 header.b=i0QgugjO; 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 S932895AbdKQMuM (ORCPT + 93 others); Fri, 17 Nov 2017 07:50:12 -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 Received: by mail-oi0-f42.google.com with SMTP id r190so1547921oie.6; Fri, 17 Nov 2017 04:50:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=ikHFJa0YASfPv3gU9xTABTJ6L3rIcL4S+I+FmWcBQts=; b=i0QgugjO9tBb0uqGLOja/O2rBRkRWo58566E9Y9TqVU3M10VaFgoPlTUJgIwwjBKoC k5IU2+dFIzJEHX+uw03mKrFm+KtUsLRrnJHDrhCorDb39k43f4XLTaJr7GbJLXiCJ0Bz lM33Z3td4L7wjYrhwVnZJkE1y+E7g5inE0ghZHGI0aLo3Hu6MKaarJ+oxTsRj9Ej3K9f 8SLsGEs9iiM7xlVEKMjKpDdzxQsJOqoEkuELaYpUipNHghOvwECkMMJWmqKSkEo65umL uPqzR8HNPGrgqGIc4+QHZ2Yw2bOigo6NQrqYe9jQfWGrRart+lKfRzYZwegizixp88Jj VMHg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=ikHFJa0YASfPv3gU9xTABTJ6L3rIcL4S+I+FmWcBQts=; b=Sb6qq0l1mpsZGrbjeDsclBLx27GpET0h1R9H+kWC55NRJUcTyBMMv5DDBmjP2vFgCQ DT5GagKYnM5ZeP1EN/wdrp47QT0X0d0hUfeoNOmeNerdJ9jzJ1RVnY6M/BjBp40q29MA AMKz/GERNFrR9tsqPREQlFVxH9n3gIZ+ALKO3jbNUCSGjTUk/DRZps3YcLjxvAKqeOaq vc8CwDU2TnbrOUaH9SPpFD1Y7JI7gpteSmPUyfJAe+JBM00AAjUpd9Z++YICsLp6VnUT uRmOFn+9aytvSafRxEptwQwAlvVbJO+1HitoT9oHcj6c8ttp0V0PasICddcLfzi3/0E4 ZtDA== X-Gm-Message-State: AJaThX5z/Q79dHmyXk5qmbUk/A8aR+Ho+hAw2FA9zkWhgCrSR6QDNXR9 9m9LRTNrtqdttlrseR6ZamJv98lS783x1TqMkGg= X-Received: by 10.202.215.130 with SMTP id o124mr1137289oig.228.1510923003438; Fri, 17 Nov 2017 04:50:03 -0800 (PST) MIME-Version: 1.0 Received: by 10.157.43.3 with HTTP; Fri, 17 Nov 2017 04:50:02 -0800 (PST) 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 Precedence: bulk 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 From 1584229833824536820@xxx Thu Nov 16 13:35:03 +0000 2017 X-GM-THRID: 1583483358934427114 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread