Linux M68K Architecture development
 help / color / mirror / Atom feed
From: Jean-Michel Hautbois <jeanmichel.hautbois@yoseli.org>
To: Greg Ungerer <gerg@linux-m68k.org>,
	Geert Uytterhoeven <geert@linux-m68k.org>,
	Daniel Lezcano <daniel.lezcano@linaro.org>,
	Thomas Gleixner <tglx@linutronix.de>
Cc: linux-m68k@lists.linux-m68k.org, linux-kernel@vger.kernel.org,
	linux-m68k@vger.kernel.org
Subject: Re: [PATCH 0/2] m68k: Add DMA timers support for M5441x
Date: Thu, 12 Dec 2024 11:39:10 +0100	[thread overview]
Message-ID: <125431ab-e486-43a7-a903-76c831da4985@yoseli.org> (raw)
In-Reply-To: <20241202-m5441x_dma_tmr-v1-0-94087efe4243@yoseli.org>

Hi !

On 02/12/2024 10:29, Jean-Michel Hautbois wrote:
> This patch series adds support for DMA timers for the M5441x coldfire
> family. The aim is to provide finer scheduler resolution and support for
> high-resolution timers.
> 
> The first patch fixes the clocks and a typo. The second one is the
> timers support addition. As there is no device tree, I did not use
> TIMER_OF_DECLARE().
> 
> Signed-off-by: Jean-Michel Hautbois <jeanmichel.hautbois@yoseli.org>
> ---
> Jean-Michel Hautbois (2):
>        m68k: coldfire: Use proper clock rate for timers
>        m68k: m5441x: Add DMA timer support
> 
>   MAINTAINERS                         |   6 +
>   arch/m68k/coldfire/m5441x.c         |  20 +--
>   arch/m68k/include/asm/m5441xsim.h   |  18 +++
>   drivers/clocksource/Kconfig         |   9 ++
>   drivers/clocksource/Makefile        |   1 +
>   drivers/clocksource/mcf_dma_timer.c | 240 ++++++++++++++++++++++++++++++++++++
>   6 files changed, 284 insertions(+), 10 deletions(-)
> ---
> base-commit: e3f432391d55ec21274bd16a04659b4a24678535
> change-id: 20241202-m5441x_dma_tmr-d969f4cc30a8
> 
> Best regards,

Gentle ping, as I don't know if anyone is interested by this patch :-) ?

I think it makes coldfire really better but it certainly has issues !

On my kernel, m54418, I observed a few things.

First, when launching cyclictest I get sometimes a bad irq handle:
[  720.442175] irq 24, desc: 6b62142b, depth: 1, count: 0, unhandled: 0
[  720.442329] ->handle_irq():  e4232a91, handle_bad_irq+0x0/0x1e6
[  720.442498] ->irq_data.chip(): 66a62b77, 0x4183e868
[  720.442613] ->action(): 00000000
[  720.442667] unexpected IRQ trap at vector 18

These IRQ numbers are a bit weird, I suppose it is a spurious IRQ, but 
not sure ?

Next, cyclictest might experience *very* long delay if the CPU is very 
busy and a ping flood burst comes in:
# cyclictest -m -p 98 --secaligned
WARN: stat /dev/cpu_dma_latency failed: No such file or directory
policy: fifo: loadavg: 2.24 1.94 1.03 1/127 252

T: 0 (  251) P:98 I:1000 C:  53113 Min:    116 Act:  327 Avg:  209 Max: 
  60353

Any review would be appreciated, at least to know if it is totally off 
or not that bad and needs a few fixes ?

Thanks,
JM

      parent reply	other threads:[~2024-12-12 10:39 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-12-02  9:29 [PATCH 0/2] m68k: Add DMA timers support for M5441x Jean-Michel Hautbois
2024-12-02  9:29 ` [PATCH 1/2] m68k: coldfire: Use proper clock rate for timers Jean-Michel Hautbois
2024-12-18 12:36   ` Greg Ungerer
2024-12-18 14:42     ` Jean-Michel Hautbois
2024-12-02  9:29 ` [PATCH 2/2] m68k: m5441x: Add DMA timer support Jean-Michel Hautbois
2024-12-22 13:41   ` Greg Ungerer
2024-12-22 14:30     ` Jean-Michel Hautbois
2024-12-02 10:14 ` [PATCH 0/2] m68k: Add DMA timers support for M5441x Jean-Michel Hautbois
2024-12-12 10:39 ` Jean-Michel Hautbois [this message]

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=125431ab-e486-43a7-a903-76c831da4985@yoseli.org \
    --to=jeanmichel.hautbois@yoseli.org \
    --cc=daniel.lezcano@linaro.org \
    --cc=geert@linux-m68k.org \
    --cc=gerg@linux-m68k.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-m68k@lists.linux-m68k.org \
    --cc=linux-m68k@vger.kernel.org \
    --cc=tglx@linutronix.de \
    /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