Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933047AbcKHLDW (ORCPT ); Tue, 8 Nov 2016 06:03:22 -0500 Received: from mail-db5eur01on0041.outbound.protection.outlook.com ([104.47.2.41]:8752 "EHLO EUR01-DB5-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S932219AbcKHLDU (ORCPT ); Tue, 8 Nov 2016 06:03:20 -0500 From: Noam Camus To: Daniel Lezcano CC: "robh+dt@kernel.org" , "mark.rutland@arm.com" , "tglx@linutronix.de" , "devicetree@vger.kernel.org" , "linux-kernel@vger.kernel.org" , Vineet Gupta Subject: RE: [PATCH v2 3/3] clocksource: Add clockevent support to NPS400 driver Thread-Topic: [PATCH v2 3/3] clocksource: Add clockevent support to NPS400 driver Thread-Index: AQHSLSbhhwuh/RDro0OnUw+cihxCf6DCb4uAgABKgfCAAeEsgIAKPV/A Date: Tue, 8 Nov 2016 08:30:03 +0000 Message-ID: References: <1477224748-25223-1-git-send-email-noamca@mellanox.com> <1477224748-25223-4-git-send-email-noamca@mellanox.com> <20161031105251.GD1506@mai> <20161101200141.GF1506@mai> In-Reply-To: <20161101200141.GF1506@mai> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=noamca@mellanox.com; x-originating-ip: [212.179.42.66] x-ms-office365-filtering-correlation-id: 53d5777d-26c8-4fd7-5582-08d407b17018 x-microsoft-exchange-diagnostics: 1;DB6PR0501MB2519;7:hAQ1hVrKxtqATF9NM2G9W8FSFd2e8EAnotp4xYjx4W7NkT4+cHhfiLbI5JXJqRRy2x2O4L5TeGMzX00lGyhfCEZJeUAr89KXob8h9W39QWMDBXcEmZyXN22Wt4beD5vQ3R1CG/xkgT+aN67KJ7rDquZGhOhDkTVZOwo8+cA8Oj6yXVwmsgbJekKzwPeeQOx5tVeIiaXsP2vSajiXDBreWESXjApBGGrCkIRbV0LaSNFoTqOBzgZN5/1v35tUleakHsSBWLLnCuWBKkpD7XerCFbmOUgrDSYVbklwybbyWn4ue5vJKzaDCdpA7z2CYks3cBTysmeXCErb+xxxwoUA5ESUb5n/u5/c0M2M++XZum0= x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:DB6PR0501MB2519; x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:; x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(6040176)(601004)(2401047)(5005006)(8121501046)(10201501046)(3002001)(6055026);SRVR:DB6PR0501MB2519;BCL:0;PCL:0;RULEID:;SRVR:DB6PR0501MB2519; x-forefront-prvs: 01208B1E18 x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(6009001)(7916002)(199003)(377454003)(189002)(93886004)(86362001)(2906002)(3660700001)(81166006)(4326007)(101416001)(33656002)(54356999)(106116001)(105586002)(74316002)(189998001)(76576001)(50986999)(76176999)(9686002)(8936002)(68736007)(305945005)(7736002)(97736004)(6916009)(92566002)(77096005)(7846002)(102836003)(586003)(66066001)(122556002)(81156014)(3846002)(8676002)(6116002)(106356001)(2900100001)(110136003)(7696004)(2950100002)(87936001)(5660300001)(3280700002)(47845001);DIR:OUT;SFP:1101;SCL:1;SRVR:DB6PR0501MB2519;H:DB6PR0501MB2518.eurprd05.prod.outlook.com;FPR:;SPF:None;PTR:InfoNoRecords;A:1;MX:1;LANG:en; spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 X-OriginatorOrg: Mellanox.com X-MS-Exchange-CrossTenant-originalarrivaltime: 08 Nov 2016 08:30:03.6190 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: a652971c-7d2e-4d9b-a6a4-d149256f461b X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB6PR0501MB2519 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by mail.home.local id uA8B3R5N006685 Content-Length: 5537 Lines: 224 > From: Daniel Lezcano [mailto:daniel.lezcano@linaro.org] > Sent: Tuesday, November 1, 2016 10:02 PM ... >Assuming cpu0 and cpu1 are sibling, does >taskset 0x1 time sleep 2 & taskset 0x2 time sleep 3 I will use 16,17 instead of 0,1 >give a correct result without a dmesg log ? [root@192.168.8.2 /]$ [root@192.168.8.2 /]$ taskset 65536 time sleep 2 & taskset 131072 time sleep 3 real 0m 2.54s user 0m 0.04s sys 0m 0.14s real 0m 3.47s user 0m 0.00s sys 0m 0.15s [1]+ Done taskset 65536 time sleep 2 Seem OK to me. > Can you give the content of the /proc/timer_list ? [root@192.168.8.2 /]$ cat /proc/timer_list Timer List Version: v0.8 HRTIMER_MAX_CLOCK_BASES: 4 now at 2421277626774 nsecs cpu: 0 clock 0: .base: 9fccb540 .index: 0 .resolution: 1 nsecs .get_time: ktime_get .offset: 0 nsecs active timers: #0: <9fccb69c>, tick_sched_timer, S:01 # expires at 2421140000000-2421140000000 nsecs [in -137626774 to -137626774 nsecs] clock 1: .base: 9fccb560 .index: 1 .resolution: 1 nsecs .get_time: ktime_get_real .offset: 0 nsecs active timers: clock 2: .base: 9fccb580 .index: 2 .resolution: 1 nsecs .get_time: ktime_get_boottime .offset: 0 nsecs active timers: clock 3: .base: 9fccb5a0 .index: 3 .resolution: 1 nsecs .get_time: ktime_get_clocktai .offset: 0 nsecs active timers: .expires_next : 2421140000000 nsecs .hres_active : 1 .nr_events : 615427 .nr_retries : 10052 .nr_hangs : 37 .max_hang_time : 682411010 .nohz_mode : 2 .last_tick : 0 nsecs .tick_stopped : 0 .idle_jiffies : 0 .idle_calls : 0 .idle_sleeps : 0 .idle_entrytime : 2421131605769 nsecs .idle_waketime : 0 nsecs .idle_exittime : 0 nsecs .idle_sleeptime : 1900903609165 nsecs .iowait_sleeptime: 0 nsecs .last_jiffies : 0 .next_timer : 0 .idle_expires : 0 nsecs jiffies: 212114 cpu: 16 clock 0: .base: 9fcd7540 .index: 0 .resolution: 1 nsecs .get_time: ktime_get .offset: 0 nsecs active timers: clock 1: .base: 9fcd7560 .index: 1 .resolution: 1 nsecs .get_time: ktime_get_real .offset: 0 nsecs active timers: clock 2: .base: 9fcd7580 .index: 2 .resolution: 1 nsecs .get_time: ktime_get_boottime .offset: 0 nsecs active timers: clock 3: .base: 9fcd75a0 .index: 3 .resolution: 1 nsecs .get_time: ktime_get_clocktai .offset: 0 nsecs active timers: .expires_next : 9223372036854775807 nsecs .hres_active : 1 .nr_events : 18 .nr_retries : 1 .nr_hangs : 0 .max_hang_time : 0 .nohz_mode : 2 .last_tick : 2410120000000 nsecs .tick_stopped : 1 .idle_jiffies : 211017 .idle_calls : 27 .idle_sleeps : 27 .idle_entrytime : 2410189597725 nsecs .idle_waketime : 2410189342725 nsecs .idle_exittime : 2410110197721 nsecs .idle_sleeptime : 2408852044732 nsecs .iowait_sleeptime: 0 nsecs .last_jiffies : 211019 .next_timer : 9223372036854775807 .idle_expires : 9223372036854775807 nsecs jiffies: 212114 cpu: 17 clock 0: .base: 9fce3540 .index: 0 .resolution: 1 nsecs .get_time: ktime_get .offset: 0 nsecs active timers: clock 1: .base: 9fce3560 .index: 1 .resolution: 1 nsecs .get_time: ktime_get_real .offset: 0 nsecs active timers: clock 2: .base: 9fce3580 .index: 2 .resolution: 1 nsecs .get_time: ktime_get_boottime .offset: 0 nsecs active timers: clock 3: .base: 9fce35a0 .index: 3 .resolution: 1 nsecs .get_time: ktime_get_clocktai .offset: 0 nsecs active timers: .expires_next : 9223372036854775807 nsecs .hres_active : 1 .nr_events : 22 .nr_retries : 1 .nr_hangs : 0 .max_hang_time : 0 .nohz_mode : 2 .last_tick : 2412120000000 nsecs .tick_stopped : 1 .idle_jiffies : 211212 .idle_calls : 32 .idle_sleeps : 32 .idle_entrytime : 2412123353729 nsecs .idle_waketime : 2412123049733 nsecs .idle_exittime : 2412110161733 nsecs .idle_sleeptime : 2410832354720 nsecs .iowait_sleeptime: 0 nsecs .last_jiffies : 211213 .next_timer : 9223372036854775807 .idle_expires : 9223372036854775807 nsecs jiffies: 212114 Tick Device: mode: 1 Per CPU device: 0 Clock Event Device: ARC Timer0 max_delta_ns: 51539607733 min_delta_ns: 1000 mult: 178956970 shift: 31 mode: 3 next_event: 2421140000000 nsecs set_next_event: arc_clkevent_set_next_event periodic: arc_clkevent_set_periodic event_handler: hrtimer_interrupt retries: 0 Tick Device: mode: 1 Per CPU device: 16 Clock Event Device: ARC Timer0 max_delta_ns: 51539607733 min_delta_ns: 1000 mult: 178956970 shift: 31 mode: 3 next_event: 9223372036854775807 nsecs set_next_event: arc_clkevent_set_next_event periodic: arc_clkevent_set_periodic event_handler: hrtimer_interrupt retries: 2 Tick Device: mode: 1 Per CPU device: 17 Clock Event Device: ARC Timer0 max_delta_ns: 51539607733 min_delta_ns: 1000 mult: 178956970 shift: 31 mode: 3 next_event: 9223372036854775807 nsecs set_next_event: arc_clkevent_set_next_event periodic: arc_clkevent_set_periodic event_handler: hrtimer_interrupt retries: 2 -Noam