Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1449176

Re: [PATCH -next] xtensa: Fix build error due to missing include file

Path csiph.com!eternal-september.org!feeder.eternal-september.org!aioe.org!gothmog.csi.it!bofh.it!news.nic.it!robomod
From Guenter Roeck <linux@roeck-us.net>
Newsgroups linux.kernel
Subject Re: [PATCH -next] xtensa: Fix build error due to missing include file
Date Sun, 24 Jul 2016 18:30:02 +0200
Message-ID <rYurU-1F7-47@gated-at.bofh.it> (permalink)
References <rYfsR-Wz-1@gated-at.bofh.it> <rYfMd-12O-3@gated-at.bofh.it> <rYkLT-4im-3@gated-at.bofh.it> <rYszL-xx-1@gated-at.bofh.it> <rYtma-12W-3@gated-at.bofh.it>
X-Original-To Rob Herring <robh@kernel.org>, Max Filippov <jcmvbkbc@gmail.com>
Dkim-Signature v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=roeck-us.net; s=default; h=Content-Transfer-Encoding:Content-Type: In-Reply-To:MIME-Version:Date:Message-ID:From:Cc:References:To:Subject; bh=GoYN1K4p/j26I8cVPQr6VYYy+7KfVAl7EZ5UyP1xHz8=; b=ow1z4BczHfpPyLG8DZ21l7Zhbq WSJLRFAkoY61RCAaaJjBenDNawEoa4balnrNTq91ySYS/qNl0VuoJm80/N9yePItoKRZrQVS4Yeq7 hdXW6nKatY/ogP04ufDbohAMPbhObJ32JRHBZ6uemj3ZnjYipfeYJ591Kb4Z1shqx4QAtcYyWzHzZ FzcQnY6p5A05rXUISekBmEw3VZkDUtTcWmT/o9JwLl+MYxo/ezppsNKUshvupHSaeD3nQG9yTunNI MzgLIhKgLTXiYR3y9RVTk9g3F5kGfq8gUst6eThp/KDDNVxwDOjI/A3i4cvu5SPre4UNa3uMdftRp rwIcZCbQ==;
User-Agent Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.8.0
MIME-Version 1.0
Content-Type text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding 8bit
X-Authenticated_Sender linux@roeck-us.net
X-Outgoing-Spam-Status No, score=-1.0
X-Antiabuse This header was added to track abuse, please include it with any abuse report
X-Antiabuse Primary Hostname - bh-25.webhostbox.net
X-Antiabuse Original Domain - vger.kernel.org
X-Antiabuse Originator/Caller UID/GID - [47 12] / [47 12]
X-Antiabuse Sender Address Domain - roeck-us.net
X-Get-Message-Sender-Via bh-25.webhostbox.net: authenticated_id: linux@roeck-us.net
X-Authenticated-Sender bh-25.webhostbox.net: linux@roeck-us.net
Sender robomod@news.nic.it
List-ID <linux-kernel.vger.kernel.org>
X-Mailing-List linux-kernel@vger.kernel.org
Approved robomod@news.nic.it
Lines 59
Organization linux.* mail to news gateway
X-Original-Cc Chris Zankel <chris@zankel.net>, "linux-xtensa@linux-xtensa.org" <linux-xtensa@linux-xtensa.org>, LKML <linux-kernel@vger.kernel.org>, Kefeng Wang <wangkefeng.wang@huawei.com>
X-Original-Date Sun, 24 Jul 2016 09:27:25 -0700
X-Original-Message-ID <5794EC6D.4050504@roeck-us.net>
X-Original-References <1469319895-17578-1-git-send-email-linux@roeck-us.net> <CAMo8BfK_iOCpByVPdOSceSktVEcL+35=dkwiB7j5oLFuYZPb0w@mail.gmail.com> <5794596C.6040809@roeck-us.net> <CAMo8BfJLFXWrh+SJTBkovN4ktat0vTO9-qDmbPK5YR=aEnwDQw@mail.gmail.com> <CAL_JsqJy9K3Rty87Y=qFPNM5JBUFXDBowsAdKbJU-ewLwkUD0Q@mail.gmail.com>
X-Original-Sender linux-kernel-owner@vger.kernel.org
Xref csiph.com linux.kernel:1449176

Show key headers only | View raw


On 07/24/2016 08:18 AM, Rob Herring wrote:
> On Sun, Jul 24, 2016 at 9:20 AM, Max Filippov <jcmvbkbc@gmail.com> wrote:
>> On Sun, Jul 24, 2016 at 9:00 AM, Guenter Roeck <linux@roeck-us.net> wrote:
>>> On 07/23/2016 05:45 PM, Max Filippov wrote:
>>>>
>>>> On Sun, Jul 24, 2016 at 3:24 AM, Guenter Roeck <linux@roeck-us.net> wrote:
>>>>>
>>>>> Commit 69d99e6c0d621f ("xtensa: Remove unnecessary of_platform_populate
>>>>> with default match table") dropped various include files from
>>>>> arch/xtensa/kernel/setup.c. This results in the following build error.
>>>>>
>>>>> arch/xtensa/kernel/setup.c: In function ‘xtensa_dt_io_area’:
>>>>> arch/xtensa/kernel/setup.c:213:2: error:
>>>>>           implicit declaration of function ‘of_read_ulong’
>>>>>
>>>>> Fixes: 69d99e6c0d621f ("xtensa: Remove unnecessary of_platform_populate
>>>>> with default match table")
>>>>> Cc: Kefeng Wang <wangkefeng.wang@huawei.com>
>>>>> Cc: Rob Herring <robh@kernel.org>
>>>>> Signed-off-by: Guenter Roeck <linux@roeck-us.net>
>>>>> ---
>>>>> I would suggest to merge this patch into the commit causing the problem
>>>>> if possible.
>>>>>
>>>>>    arch/xtensa/kernel/setup.c | 1 +
>>>>>    1 file changed, 1 insertion(+)
>>>>
>>>>
>>>> Acked-by: Max Filippov <jcmvbkbc@gmail.com>
>>>>
>>>
>>> Heads up: xtensa images build after this patch, but the image that
>>> previously failed to build (generic_kc705_defconfig) doesn't boot,
>>> at least not with qemu. I don't know if this is caused by 69d99e6c0d621f
>>> or by some other patch.
>>
>> It seems to be booting, but serial console is non-functional.
>> With commit 69d99e6c0d621f ("xtensa: Remove unnecessary of_platform_populate
>> with default match table") I see the following message during boot:
>>
>> [    6.375284] of_serial fd050020.serial: clk or clock-frequency not defined
>>
>> Reverting that commit fixes serial console for me.
>> Any suggestions on what might go wrong?
>
> Probably the init order changed somehow and deferred probe is not
> supported correctly.
>

While the message is due to -EPROBE_DEFER (and there should really be no message
in this case), I suspect that the underlying problem is that of_clk_init() is
now called way too early, before the clock source is fully initialized.
Specifically, the call now happens before the message "clocksource: Switched
to clocksource ccount", which at least looks suspicious.

If I move of_clk_init() back into xtensa_device_probe(), to be called as
device_initcall(), everything is fine.

Guenter

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH -next] xtensa: Fix build error due to missing include file Guenter Roeck <linux@roeck-us.net> - 2016-07-24 02:30 +0200
  Re: [PATCH -next] xtensa: Fix build error due to missing include file Max Filippov <jcmvbkbc@gmail.com> - 2016-07-24 02:50 +0200
    Re: [PATCH -next] xtensa: Fix build error due to missing include file Guenter Roeck <linux@roeck-us.net> - 2016-07-24 08:10 +0200
      Re: [PATCH -next] xtensa: Fix build error due to missing include file Max Filippov <jcmvbkbc@gmail.com> - 2016-07-24 16:30 +0200
        Re: [PATCH -next] xtensa: Fix build error due to missing include file Rob Herring <robh@kernel.org> - 2016-07-24 17:20 +0200
          Re: [PATCH -next] xtensa: Fix build error due to missing include file Guenter Roeck <linux@roeck-us.net> - 2016-07-24 18:30 +0200
            Re: [PATCH -next] xtensa: Fix build error due to missing include file Max Filippov <jcmvbkbc@gmail.com> - 2016-07-25 10:10 +0200
              Re: [PATCH -next] xtensa: Fix build error due to missing include file Rob Herring <robh@kernel.org> - 2016-07-25 15:30 +0200
                Re: [PATCH -next] xtensa: Fix build error due to missing include file Max Filippov <jcmvbkbc@gmail.com> - 2016-07-25 22:10 +0200
              Re: [PATCH -next] xtensa: Fix build error due to missing include file Guenter Roeck <linux@roeck-us.net> - 2016-07-25 23:00 +0200

csiph-web