Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp2263769ybc; Sun, 17 Nov 2019 17:28:56 -0800 (PST) X-Google-Smtp-Source: APXvYqzNndMpo38fG5WVbMiSyrMYPtzOttxUxoxhcho+fOcrGKq1D9OMuIYQANtuaP77B27vB0fr X-Received: by 2002:a17:907:2070:: with SMTP id qp16mr22874272ejb.115.1574040536109; Sun, 17 Nov 2019 17:28:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574040536; cv=none; d=google.com; s=arc-20160816; b=u93CjGqxIiGWIecAPj/9hN6yqhu/8i3jP8IHddjQaJ6MP7AoQa/OLca4Xjbes5mKX6 EnISzAYS3QZzgKqsp5uh2NxrXQOEXQfc8wfClqhjMBm8EUiuhAX1KusJy0pkPjoQO625 pYjshmbH++Nq5Xdi5B6jhIBoCHzyWvTrfcPynXnIPD5hNd4A6bhfbxRz8gB1y1aHWdXo WppFxmX0AnBDuDm1BeUYI/oO7TAnsFJdDiF6c6MosKIn906KSW1be9vFEo6oYSy7OnAX khoakFWqTTwcf956iGyz9fhvAtCUcs20kZq0Fbj0w3sl6jDQ5o9HvLGqx7P+Wus6ah+T 289w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:organization:from:references:cc:to:subject; bh=AqJCz9cprKP7tlcD0vjwzaQZecGTSOD/RbFnPdJCWSM=; b=YZEaYqZy3G3G4xD6buCpEmHwUo3iBpDOdWtn0RnzPXaViBRQTjVPJnh7ifr6tjarPm QzP0/hrOHS9/Nmc7Q+Rr5ZnssnEwZa+GS75+ipPDvbh5DcGs66e3k6eot/hpyz+uk2cB bZDyFWeJRrZ79A78uK5ymoApStqR++DX/dLwKoyd20IWtTHZ5U03VI4oDQjzZxFMspFS /HSiINgPrpyOmml0g/fMCrcv2UzF2pAdU3eWOxG4LA+GEknavCZE4ly2tnu94Itq0V6x hlXRafvkHBziNbDYVPNpbly6DpwFtOFvrxwqd9s3n/9XWG1vC6fxkaVuZy7VRA2UIOIh YQQw== ARC-Authentication-Results: i=1; mx.google.com; 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 la4si10808805ejb.297.2019.11.17.17.28.31; Sun, 17 Nov 2019 17:28:56 -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; 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 S1726688AbfKRBYe (ORCPT + 99 others); Sun, 17 Nov 2019 20:24:34 -0500 Received: from mx2.suse.de ([195.135.220.15]:33200 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726063AbfKRBYe (ORCPT ); Sun, 17 Nov 2019 20:24:34 -0500 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id 3043EAC53; Mon, 18 Nov 2019 01:24:31 +0000 (UTC) Subject: Re: [PATCH v3 3/8] ARM: dts: Prepare Realtek RTD1195 and MeLE X1000 To: Marc Zyngier Cc: linux-realtek-soc@lists.infradead.org, Mark Rutland , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Rob Herring , linux-arm-kernel@lists.infradead.org, James Tai References: <20191117072109.20402-1-afaerber@suse.de> <20191117072109.20402-4-afaerber@suse.de> <20191117104726.2b1fccb8@why> <61bf74ad-b4a1-f443-bf99-be354b4d942b@suse.de> <86a78ujwwd.wl-maz@kernel.org> From: =?UTF-8?Q?Andreas_F=c3=a4rber?= Organization: SUSE Software Solutions Germany GmbH Message-ID: <25965de3-cc82-7fe6-6b3d-5754c329ac07@suse.de> Date: Mon, 18 Nov 2019 02:24:29 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.2.1 MIME-Version: 1.0 In-Reply-To: <86a78ujwwd.wl-maz@kernel.org> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Am 17.11.19 um 17:22 schrieb Marc Zyngier: > On Sun, 17 Nov 2019 15:40:59 +0000, > Andreas Färber wrote: >> Am 17.11.19 um 11:47 schrieb Marc Zyngier: >>> On Sun, 17 Nov 2019 08:21:04 +0100 >>> Andreas Färber wrote: >>>> + timer { >>>> + compatible = "arm,armv7-timer"; >>>> + interrupts = >>> + (GIC_CPU_MASK_SIMPLE(2) | IRQ_TYPE_LEVEL_LOW)>, >>>> + >>> + (GIC_CPU_MASK_SIMPLE(2) | IRQ_TYPE_LEVEL_LOW)>, >>>> + >>> + (GIC_CPU_MASK_SIMPLE(2) | IRQ_TYPE_LEVEL_LOW)>, >>>> + >>> + (GIC_CPU_MASK_SIMPLE(2) | IRQ_TYPE_LEVEL_LOW)>; >>>> + clock-frequency = <27000000>; >>> >>> This is 2019, and yet it feels like 2011. This should be setup in the >>> bootloader, not in DT... >> >> What exactly - the whole node, the GIC CPU mask, the >> clock-frequency? > > The clock frequency. Having to rely on such hacks 8 years down the > line makes me feel like we've achieved nothing... > Unfortunately I can confirm that without clock-frequency property I get: [ 0.000000] arch_timer: frequency not available [ 0.000000] ------------[ cut here ]------------ [ 0.000000] WARNING: CPU: 0 PID: 0 at kernel/time/clockevents.c:38 cev_delta2ns+0x148/0x170 [ 0.000000] Modules linked in: [ 0.000000] CPU: 0 PID: 0 Comm: swapper/0 Not tainted 5.4.0-rc7-next-20191115+ #213 [ 0.000000] Hardware name: Realtek RTD1195 [ 0.000000] [] (unwind_backtrace) from [] (show_stack+0x10/0x14) [ 0.000000] [] (show_stack) from [] (dump_stack+0x84/0x98) [ 0.000000] [] (dump_stack) from [] (__warn+0xbc/0xd8) [ 0.000000] [] (__warn) from [] (warn_slowpath_fmt+0x64/0xc4) [ 0.000000] [] (warn_slowpath_fmt) from [] (cev_delta2ns+0x148/0x170) [ 0.000000] [] (cev_delta2ns) from [] (clockevents_config.part.0+0x54/0x74) [ 0.000000] [] (clockevents_config.part.0) from [] (clockevents_config_and_register+0x20/0x2c) [ 0.000000] [] (clockevents_config_and_register) from [] (arch_timer_starting_cpu+0xcc/0x208) [ 0.000000] [] (arch_timer_starting_cpu) from [] (cpuhp_issue_call+0x110/0x130) [ 0.000000] [] (cpuhp_issue_call) from [] (__cpuhp_setup_state_cpuslocked+0x10c/0x2b4) [ 0.000000] [] (__cpuhp_setup_state_cpuslocked) from [] (__cpuhp_setup_state+0x98/0x14c) [ 0.000000] [] (__cpuhp_setup_state) from [] (arch_timer_of_init+0x2a8/0x34c) [ 0.000000] [] (arch_timer_of_init) from [] (timer_probe+0x74/0xec) [ 0.000000] [] (timer_probe) from [] (start_kernel+0x310/0x488) [ 0.000000] [] (start_kernel) from [<00000000>] (0x0) [ 0.000000] ---[ end trace c2db367029c1ec1a ]--- [ 0.000000] arch_timer: cp15 timer(s) running at 0.00MHz (virt). [ 0.000000] Division by zero in kernel. [ 0.000000] CPU: 0 PID: 0 Comm: swapper/0 Tainted: G W 5.4.0-rc7-next-20191115+ #213 [ 0.000000] Hardware name: Realtek RTD1195 [ 0.000000] [] (unwind_backtrace) from [] (show_stack+0x10/0x14) [ 0.000000] [] (show_stack) from [] (dump_stack+0x84/0x98) [ 0.000000] [] (dump_stack) from [] (Ldiv0_64+0x8/0x18) [ 0.000000] [] (Ldiv0_64) from [] (clocks_calc_max_nsecs+0x24/0x80) [ 0.000000] [] (clocks_calc_max_nsecs) from [] (__clocksource_update_freq_scale+0x130/0x1ec) [ 0.000000] [] (__clocksource_update_freq_scale) from [] (__clocksource_register_scale+0x14/0xc0) [ 0.000000] [] (__clocksource_register_scale) from [] (arch_timer_common_init+0x198/0x1e4) [ 0.000000] [] (arch_timer_common_init) from [] (timer_probe+0x74/0xec) [ 0.000000] [] (timer_probe) from [] (start_kernel+0x310/0x488) [ 0.000000] [] (start_kernel) from [<00000000>] (0x0) [ 0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x0, max_idle_ns: 0 ns [ 0.000000] Division by zero in kernel. [ 0.000000] CPU: 0 PID: 0 Comm: swapper/0 Tainted: G W 5.4.0-rc7-next-20191115+ #213 [ 0.000000] Hardware name: Realtek RTD1195 [ 0.000000] [] (unwind_backtrace) from [] (show_stack+0x10/0x14) [ 0.000000] [] (show_stack) from [] (dump_stack+0x84/0x98) [ 0.000000] [] (dump_stack) from [] (Ldiv0_64+0x8/0x18) [ 0.000000] [] (Ldiv0_64) from [] (clocks_calc_mult_shift+0xec/0x10c) [ 0.000000] [] (clocks_calc_mult_shift) from [] (sched_clock_register+0x80/0x278) [ 0.000000] [] (sched_clock_register) from [] (arch_timer_common_init+0x1d0/0x1e4) [ 0.000000] [] (arch_timer_common_init) from [] (timer_probe+0x74/0xec) [ 0.000000] [] (timer_probe) from [] (start_kernel+0x310/0x488) [ 0.000000] [] (start_kernel) from [<00000000>] (0x0) [ 0.000000] Division by zero in kernel. [ 0.000000] CPU: 0 PID: 0 Comm: swapper/0 Tainted: G W 5.4.0-rc7-next-20191115+ #213 [ 0.000000] Hardware name: Realtek RTD1195 [ 0.000000] [] (unwind_backtrace) from [] (show_stack+0x10/0x14) [ 0.000000] [] (show_stack) from [] (dump_stack+0x84/0x98) [ 0.000000] [] (dump_stack) from [] (Ldiv0_64+0x8/0x18) [ 0.000000] [] (Ldiv0_64) from [] (clocks_calc_max_nsecs+0x24/0x80) [ 0.000000] [] (clocks_calc_max_nsecs) from [] (sched_clock_register+0xbc/0x278) [ 0.000000] [] (sched_clock_register) from [] (arch_timer_common_init+0x1d0/0x1e4) [ 0.000000] [] (arch_timer_common_init) from [] (timer_probe+0x74/0xec) [ 0.000000] [] (timer_probe) from [] (start_kernel+0x310/0x488) [ 0.000000] [] (start_kernel) from [<00000000>] (0x0) [ 0.000000] sched_clock: 56 bits at 0 Hz, resolution 0ns, wraps every 0ns [ 0.000000] Failed to initialize '/timer': -6 [ 0.000000] timer_probe: no matching timers found Regards, Andreas -- SUSE Software Solutions Germany GmbH Maxfeldstr. 5, 90409 Nürnberg, Germany GF: Felix Imendörffer HRB 36809 (AG Nürnberg)