From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-0.6 required=3.0 tests=DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_PASS autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id CC494C10F03 for ; Tue, 23 Apr 2019 20:07:52 +0000 (UTC) Received: from shelob.surriel.com (shelob.surriel.com [96.67.55.147]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 839E9217D9 for ; Tue, 23 Apr 2019 20:07:52 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="X0zIqK5a" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 839E9217D9 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=fail smtp.mailfrom=kernelnewbies-bounces@kernelnewbies.org Received: from localhost ([::1] helo=shelob.surriel.com) by shelob.surriel.com with esmtp (Exim 4.91) (envelope-from ) id 1hJ1hT-0003IZ-Mg; Tue, 23 Apr 2019 16:07:31 -0400 Received: from mail-lf1-x142.google.com ([2a00:1450:4864:20::142]) by shelob.surriel.com with esmtps (TLSv1.2:ECDHE-RSA-AES128-GCM-SHA256:128) (Exim 4.91) (envelope-from ) id 1hJ1hR-0003IS-Oc for kernelnewbies@kernelnewbies.org; Tue, 23 Apr 2019 16:07:29 -0400 Received: by mail-lf1-x142.google.com with SMTP id u17so12721873lfi.3 for ; Tue, 23 Apr 2019 13:07:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=tlIrWR0K4Yl2+S7w/LqCiRgA9Jnli2eeMyai9usKC9g=; b=X0zIqK5au4yhsHoJx2flngad4XHlroZwMltd+H9CpXkeMbibMVil4ApmXReA0iJV3Z L+5BuG5CEyN3aS+Vm6BLUtCwKiqulTo/lbp+Fn3eOkAXuF97f9c4Zj3UeLQzI3y6eIDK tDYwNOqI0z9wRz1ZWU5a0p6N1a1xCPBA34iiyeOGmZTnTCM11RUEcAcRXHmK6Rpaqy+J C9oXLVQ1tUZmd3OYBjtkCpRyvUA9mxdkjoe9RUNCOaGppPo7nL/mUIDViHAYrCQsApQd VOF/jKx7PnZkcz5rTiOsUmo3yZ00MKLX539eEj5m6hNijXTPe097zmx+MG6LqimpbQA+ xwAQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=tlIrWR0K4Yl2+S7w/LqCiRgA9Jnli2eeMyai9usKC9g=; b=rjhtlDx9SWqwon4fyMsKUmkb/qLXiuZ6e/zzCQZEco7ii3Inu4uIZ+Dkn3oEK6JeEc vRdiBFnINaah04BfS3+Ncswkuyp/4dPtmPwixrdOrhl9Ees4q/MM0N50KiFwfLYNv6Sy C4+EdOe1i5in11ouuHpgOkzSD8cwk/2CJjqeSpt/qeygL22Wet7UP/BOhoBL3ghq690N 3AsxiIofK9Gbu+v61emKF1h4hvONtkbrLOwzb7KR0Zr2Gev5UI4KRxYvnzfYoK0rQskm A2nHTKOiSl1Vo27Ahoj2VddwAd0WAQjcaOjgLig+9vEuwNjGbZ4maqTTCFNfUlEyc5E3 dy7g== X-Gm-Message-State: APjAAAUfAeYODaeThOXqmEp+VL1ZZ9w9HxHu3lCTnsg3L53nRJsDTIPS Oi+2hGcuePp54UiG+tRNgqx1ux51qAQNGONpOM86JKXqZ+6Jpw== X-Google-Smtp-Source: APXvYqzGr4wKSp2hAI/bjtAfvFIMQZ3tUjxj5kmMxtDfJ8eqdruhmZJvQUWynVNWAaNhUABtzscGR+i62UrXYbWtRUs= X-Received: by 2002:ac2:5928:: with SMTP id v8mr3601237lfi.157.1556050045827; Tue, 23 Apr 2019 13:07:25 -0700 (PDT) MIME-Version: 1.0 From: Guilherme Costa Date: Tue, 23 Apr 2019 17:07:14 -0300 Message-ID: Subject: __clksrc_of_table and "clocksource_probe: no matching clocksources found" To: kernelnewbies@kernelnewbies.org X-BeenThere: kernelnewbies@kernelnewbies.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: Learn about the Linux kernel List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: kernelnewbies-bounces@kernelnewbies.org Hi, I'm working with kernel 4.9.51 LTSI on a custom board with an AM3352. The system seems to be working just fine, but I'm getting the following message on boot: "clocksource_probe: no matching clocksources found" I did some snooping around and this message is printed by clocksource_probe(), called during time_init(). This is the function code: void __init clocksource_probe(void) { struct device_node *np; const struct of_device_id *match; of_init_fn_1_ret init_func_ret; unsigned clocksources = 0; int ret; for_each_matching_node_and_match(np, __clksrc_of_table, &match) { if (!of_device_is_available(np)) continue; init_func_ret = match->data; ret = init_func_ret(np); if (ret) { pr_err("Failed to initialize '%s': %d", of_node_full_name(np), ret); continue; } clocksources++; } clocksources += acpi_probe_device_table(clksrc); if (!clocksources) pr_crit("%s: no matching clocksources found\n", __func__); } >From the code, we can see that the message was printed because clocksources == 0. This implies that there were no matching nodes on the device tree, and that acpi_probe_device_table returned 0 (which is correct, seeing that the kernel has no ACPI support). This leaves me with two questions: 1 - Is this message a problem indicator? I'm assuming it is, because it's printed with a pr_crit... 2 - Why is for_each_matching_node_and_match not getting any matches? I did not find where __clksrc_of_table is initialized, so maybe it's because it is empty? Cheers, Guilherme _______________________________________________ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies