Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1238106

Re: [PATCH] soc: mediatek: Fix random hang up issue while kernel init

From James Liao <jamesjj.liao@mediatek.com>
Newsgroups linux.kernel
Subject Re: [PATCH] soc: mediatek: Fix random hang up issue while kernel init
Date 2015-10-02 12:40 +0200
Message-ID <qf5US-LE-3@gated-at.bofh.it> (permalink)
References (6 earlier) <qeH69-6r6-1@gated-at.bofh.it> <qeIlB-8lU-43@gated-at.bofh.it> <qeIYi-SO-27@gated-at.bofh.it> <qeYTo-7EU-3@gated-at.bofh.it> <qf4P8-7Gp-13@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


HI Daniel,

On Fri, 2015-10-02 at 17:25 +0800, Daniel Kurtz wrote:
> Actually, I should have proposed adding prepare / unprepare callbacks
> to mtk_clk_gate_ops in which we prepare_enable/disable_unprepare
> venc_sel (& mm_sel).
> This should correctly track all of the clk reference counting needed
> to access the venc clock control registers.
> 
> 
> However, this would not actually solve the issue that this patch is
> trying to fix, since nobody would have called the
> prepare_clk(venc_cke0) before clk_disable_unused_subtree(venc_cke0).
> Bummer.

Hmm... it's true.

> I think the crux of the original issue is that the mediatek/clk-gate.c
> is_enabled() callbacks may be called at a point in time when venc_sel
> is disabled but VENC PD is enabled.
> So, perhaps an easier, but still a little hacky way out is to keep the
> clk & PD problems separate, and just check __clk_is_enabled(venc_sel)
> before reading the venc clk status register.
> 
> WDYT?

This may be a way to resolve this issue, but model the prerequisite
clock of subsystem clocks is not straightforward. And once we model the
prerequisite clocks, someone may suggest us to enable prerequisite
clocks before operate subsystem clocks, which may have concerns on
overhead and complexity.

> By the way, I'm not really opposed to your current implementation
> either, I was just helping Matthias & Lucas understand in enough
> detail that they can help review.

I know and many thanks for your suggestion on this patch.


Best regards,

James

--
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 | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH] soc: mediatek: Fix random hang up issue while kernel init James Liao <jamesjj.liao@mediatek.com> - 2015-09-25 08:40 +0200
  Re: [PATCH] soc: mediatek: Fix random hang up issue while kernel  init Lucas Stach <l.stach@pengutronix.de> - 2015-09-25 10:30 +0200
    Re: [PATCH] soc: mediatek: Fix random hang up issue while kernel init Matthias Brugger <matthias.bgg@gmail.com> - 2015-09-27 13:30 +0200
      Re: [PATCH] soc: mediatek: Fix random hang up issue while kernel init Daniel Kurtz <djkurtz@chromium.org> - 2015-09-29 12:30 +0200
        Re: [PATCH] soc: mediatek: Fix random hang up issue while kernel  init Lucas Stach <l.stach@pengutronix.de> - 2015-09-30 11:10 +0200
          Re: [PATCH] soc: mediatek: Fix random hang up issue while kernel  init James Liao <jamesjj.liao@mediatek.com> - 2015-10-01 09:20 +0200
            Re: [PATCH] soc: mediatek: Fix random hang up issue while kernel init Daniel Kurtz <djkurtz@chromium.org> - 2015-10-01 10:10 +0200
              Re: [PATCH] soc: mediatek: Fix random hang up issue while kernel  init James Liao <jamesjj.liao@mediatek.com> - 2015-10-01 11:30 +0200
                Re: [PATCH] soc: mediatek: Fix random hang up issue while kernel init Daniel Kurtz <djkurtz@chromium.org> - 2015-10-01 12:10 +0200
                Re: [PATCH] soc: mediatek: Fix random hang up issue while kernel  init James Liao <jamesjj.liao@mediatek.com> - 2015-10-02 05:10 +0200
                Re: [PATCH] soc: mediatek: Fix random hang up issue while kernel init Daniel Kurtz <djkurtz@chromium.org> - 2015-10-02 11:30 +0200
                Re: [PATCH] soc: mediatek: Fix random hang up issue while kernel  init James Liao <jamesjj.liao@mediatek.com> - 2015-10-02 12:40 +0200
        Re: [PATCH] soc: mediatek: Fix random hang up issue while kernel  init James Liao <jamesjj.liao@mediatek.com> - 2015-10-01 09:00 +0200

csiph-web