From: "Cédric Le Goater" <clg@kaod.org>
To: Linus Walleij <linus.walleij@linaro.org>, Joel Stanley <joel@jms.id.au>
Cc: Daniel Lezcano <daniel.lezcano@linaro.org>,
Thomas Gleixner <tglx@linutronix.de>,
Jonas Jensen <jonas.jensen@gmail.com>,
Janos Laube <janos.dev@gmail.com>,
Paulius Zaleckas <paulius.zaleckas@gmail.com>,
"linux-arm-kernel@lists.infradead.org"
<linux-arm-kernel@lists.infradead.org>,
Hans Ulli Kroll <ulli.kroll@googlemail.com>,
Florian Fainelli <f.fainelli@gmail.com>,
Linux Kernel Mailing List <linux-kernel@vger.kernel.org>,
Benjamin Herrenschmidt <benh@kernel.crashing.org>,
Ryan Chen <ryan_chen@aspeedtech.com>
Subject: Re: [PATCH 7/8] clocksource/drivers/fttmr010: Merge Moxa into FTTMR010
Date: Fri, 19 May 2017 09:59:32 +0200 [thread overview]
Message-ID: <c1104a03-df01-1edc-1c14-e13152991e67@kaod.org> (raw)
In-Reply-To: <92ab6fb5-7c4a-0909-ee5b-f573751427fa@kaod.org>
On 05/18/2017 11:09 PM, Cédric Le Goater wrote:
> On 05/18/2017 10:20 PM, Linus Walleij wrote:
>> On Thu, May 18, 2017 at 2:43 PM, Linus Walleij <linus.walleij@linaro.org> wrote:
>>> On Thu, May 18, 2017 at 9:22 AM, Joel Stanley <joel@jms.id.au> wrote:
>>>> On Wed, May 17, 2017 at 10:05 PM, Linus Walleij
>>>> <linus.walleij@linaro.org> wrote:
>>>>> This merges the Moxa Art timer driver into the Faraday FTTMR010
>>>>> driver and replaces all Kconfig symbols to use the Faraday
>>>>> driver instead. We are now so similar that the drivers can
>>>>> be merged by just adding a few lines to the Faraday timer.
>>>>
>>>> Nice work!
>>>>
>>>> I gave this a spin on hardware and it didn't work :(
>>>
>>> How typical.
>>
>> I sent a v2 patch set.
>>
>> I couldn't get qemu to work because Fedora's QEMU is not
>> up-to-date and I didn't want to venture into compiling from source...
>>
>> I did the second best and tested Gemini with downward counting
>> timers, after just adding that as general code path in the driver
>> in the commit merging the two drivers.
>>
>> Please test it, and I hope I'm not wasting too much of your time :/
>>
>> If it still doesn't work I guess I have to try to get qemu going.
>>
>> The fttmr010 branch in my git is updated:
>> https://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-nomadik.git/
>
> So a real AST2500 evb board boot fines with this branch but the timer
> model in QEMU crashes miserably :
>
> [ 0.000000] NR_IRQS:16 nr_irqs:16 16
> Floating point exception (core dumped)
This is because the FTTMR010 driver enables a timer before setting
its reload value. This is 'against' the specs but the HW works fine
as it only starts decrementing when a reload is set.
So, I changed the QEMU model.
Cheers,
C.
next prev parent reply other threads:[~2017-05-19 7:59 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-05-17 14:05 [PATCH 0/8] clocksource: Generalize Faraday timer Linus Walleij
2017-05-17 14:05 ` [PATCH 1/8] clocksource/drivers/fttmr010: Fix the clock handling Linus Walleij
2017-05-17 14:05 ` [PATCH 2/8] clocksource/drivers/fttmr010: Merge FTTMR010 DT bindings Linus Walleij
2017-05-23 0:51 ` Rob Herring
2017-05-17 14:05 ` [PATCH 3/8] clocksource/drivers/fttmr010: Drop Gemini specifics Linus Walleij
2017-05-17 14:05 ` [PATCH 4/8] clocksource/drivers/fttmr010: Use state container Linus Walleij
2017-05-17 14:05 ` [PATCH 5/8] clocksource/drivers/fttmr010: Switch to use bitops Linus Walleij
2017-05-17 14:05 ` [PATCH 6/8] clocksource/drivers/fttmr010: Switch to use TIMER2 src Linus Walleij
2017-05-17 14:05 ` [PATCH 7/8] clocksource/drivers/fttmr010: Merge Moxa into FTTMR010 Linus Walleij
2017-05-18 7:22 ` Joel Stanley
2017-05-18 12:43 ` Linus Walleij
2017-05-18 13:12 ` Cédric Le Goater
2017-05-18 20:20 ` Linus Walleij
2017-05-18 21:09 ` Cédric Le Goater
2017-05-19 7:59 ` Cédric Le Goater [this message]
2017-05-17 14:05 ` [PATCH 8/8] ARM: dts: augment Moxa and Aspeed DTS for FTTMR010 Linus Walleij
2017-05-18 10:32 ` [PATCH 0/8] clocksource: Generalize Faraday timer Jonas Jensen
2017-05-18 12:11 ` Linus Walleij
2017-05-18 13:31 ` Daniel Lezcano
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=c1104a03-df01-1edc-1c14-e13152991e67@kaod.org \
--to=clg@kaod.org \
--cc=benh@kernel.crashing.org \
--cc=daniel.lezcano@linaro.org \
--cc=f.fainelli@gmail.com \
--cc=janos.dev@gmail.com \
--cc=joel@jms.id.au \
--cc=jonas.jensen@gmail.com \
--cc=linus.walleij@linaro.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=paulius.zaleckas@gmail.com \
--cc=ryan_chen@aspeedtech.com \
--cc=tglx@linutronix.de \
--cc=ulli.kroll@googlemail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®