linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
From: ecc@cmu.edu (Eric Cooper)
To: linux-arm-kernel@lists.infradead.org
Subject: advice needed on how best to fix kirkwood kexec
Date: Tue, 1 Feb 2011 16:50:59 -0500	[thread overview]
Message-ID: <20110201215059.GC7547@localhost> (raw)

I found the problem with kexec'ing kirkwood kernels:

During late initialization, the kirkwood_clock_gate function powers
down unused units, including the PCIe.  But the early initialization
(kirkwood_timer_init) relies on reading the device ID register, which
is in the PCIe space, so it will hang when started by kexec.

My question is, should I patch the kexec code or the initialization code?

Patching the kexec code is much more useful, because it allows
kexec'ing the existing kirkwood kernels that are already "out there",
in distros, etc.  But it requires a kirkwood-specific operation in the
otherwise generic machine_kexec().

Patching just the kirkwood initialization is better from an
"information hiding" perspective, but won't provide any benefit until
it makes its way into the kernels that people might want to kexec.

-- 
Eric Cooper             e c c @ c m u . e d u

             reply	other threads:[~2011-02-01 21:50 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-02-01 21:50 Eric Cooper [this message]
2011-02-02  4:11 ` advice needed on how best to fix kirkwood kexec Nicolas Pitre

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=20110201215059.GC7547@localhost \
    --to=ecc@cmu.edu \
    --cc=linux-arm-kernel@lists.infradead.org \
    /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;
as well as URLs for NNTP newsgroup(s).