Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1292542
| From | Daniel Lezcano <daniel.lezcano@linaro.org> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH] clocksource/drivers/pistachio: Fix wrong calculated clocksource read value |
| Date | 2015-12-15 22:00 +0100 |
| Message-ID | <qG4Rs-MI-17@gated-at.bofh.it> (permalink) |
| References | <qyKuv-8c2-47@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On 11/25/2015 04:42 PM, Jisheng Zhang wrote: > Let's assume the counter value is 0xf000000, the pistachio clocksource > read cycles function would return 0xffffffff0fffffff, but it should > return 0xfffffff. > > We fix this issue by calculating bitwise-not counter, then cast to > cycle_t. > > Signed-off-by: Jisheng Zhang <jszhang@marvell.com> Hi Jisheng, I tried to reproduce this behavior on x86_64 but without success. On which architecture did you produce this result ? Do you have a simple test program to check with ? Thanks -- Daniel -- <http://www.linaro.org/> Linaro.org │ Open source software for ARM SoCs Follow Linaro: <http://www.facebook.com/pages/Linaro> Facebook | <http://twitter.com/#!/linaroorg> Twitter | <http://www.linaro.org/linaro-blog/> Blog -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Back to linux.kernel | Previous | Next — Next in thread | Find similar | Unroll thread
Re: [PATCH] clocksource/drivers/pistachio: Fix wrong calculated clocksource read value Daniel Lezcano <daniel.lezcano@linaro.org> - 2015-12-15 22:00 +0100
Re: [PATCH] clocksource/drivers/pistachio: Fix wrong calculated clocksource read value Jisheng Zhang <jszhang@marvell.com> - 2015-12-16 08:20 +0100
Re: [PATCH] clocksource/drivers/pistachio: Fix wrong calculated clocksource read value Jisheng Zhang <jszhang@marvell.com> - 2015-12-16 08:40 +0100
Re: [PATCH] clocksource/drivers/pistachio: Fix wrong calculated clocksource read value Jisheng Zhang <jszhang@marvell.com> - 2015-12-16 08:50 +0100
Re: [PATCH] clocksource/drivers/pistachio: Fix wrong calculated clocksource read value Jisheng Zhang <jszhang@marvell.com> - 2015-12-16 09:00 +0100
Re: [PATCH] clocksource/drivers/pistachio: Fix wrong calculated clocksource read value Daniel Lezcano <daniel.lezcano@linaro.org> - 2015-12-16 10:30 +0100
Re: [PATCH] clocksource/drivers/pistachio: Fix wrong calculated clocksource read value Russell King - ARM Linux <linux@arm.linux.org.uk> - 2015-12-16 10:40 +0100
Re: [PATCH] clocksource/drivers/pistachio: Fix wrong calculated clocksource read value Russell King - ARM Linux <linux@arm.linux.org.uk> - 2015-12-16 11:40 +0100
Re: [PATCH] clocksource/drivers/pistachio: Fix wrong calculated clocksource read value Daniel Lezcano <daniel.lezcano@linaro.org> - 2015-12-16 17:30 +0100
Re: [PATCH] clocksource/drivers/pistachio: Fix wrong calculated clocksource read value Jisheng Zhang <jszhang@marvell.com> - 2015-12-17 10:20 +0100
Re: [PATCH] clocksource/drivers/pistachio: Fix wrong calculated clocksource read value Daniel Lezcano <daniel.lezcano@linaro.org> - 2015-12-16 11:40 +0100
Re: [PATCH] clocksource/drivers/pistachio: Fix wrong calculated clocksource read value Daniel Lezcano <daniel.lezcano@linaro.org> - 2015-12-16 10:10 +0100
Re: [PATCH] clocksource/drivers/pistachio: Fix wrong calculated clocksource read value Daniel Lezcano <daniel.lezcano@linaro.org> - 2015-12-16 10:10 +0100
csiph-web