All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Alex Bennée" <alex.bennee@linaro.org>
To: Peter Maydell <peter.maydell@linaro.org>
Cc: "Claudio Fontana" <claudio.fontana@huawei.com>,
	"QEMU Developers" <qemu-devel@nongnu.org>,
	"Andreas Färber" <afaerber@suse.de>
Subject: Re: [Qemu-devel] [PATCH v3] integrator: fix Linux boot failure by emulating dbg region
Date: Fri, 18 Oct 2013 14:19:20 +0100	[thread overview]
Message-ID: <p1sivyn2cn.fsf@linaro.org> (raw)
In-Reply-To: <CAFEAcA9aUrTzx80_t4vmi75FNs62jQ8qkUT0pKJnMZYkw9dkMg@mail.gmail.com>


peter.maydell@linaro.org writes:

> On 18 October 2013 12:45,  <alex.bennee@linaro.org> wrote:
>> From: Alex Bennée <alex@bennee.com>
>>
>> Commit 9b8c69243 (since reverted) broke the ability to boot the kernel
>> as the value returned by unassigned_mem_read returned non-zero and left
>> the kernel looping forever waiting for it to change (see
>> integrator_led_set in the kernel code).
>>
>> Relying on a varying implementation detail is incorrect anyway so this
>> introduces a basic stub of a memory region for the debug/LED section
>> on the integrator board.
>>
>> Signed-off-by: Alex Bennée <alex@bennee.com>
>> ---
>>  hw/arm/Makefile.objs              |   3 +-
>>  hw/arm/integrator_debug.c         | 103 ++++++++++++++++++++++++++++++++++++++
<snip>
>
> Oh, and this belongs in hw/misc/, since it's a standalone
> device model.
<snip>

Ahh I was pondering this. Surely as it's only associated with ARM (and
specifically integrator) it gets grouped with that?

I was following up on Andreas' comments and deciding between:

hw/misc/arm_integrator_debug.c with include/hw/misc/arm_integrator_debug.c

and what I went with.

The existing devices are a mix of inline ones in integratorcp.c and
integrator_pit which is in hw/timer/arm_timer.c.

Perhaps there should be an addendum to HACKING.txt or a doc/src_layout.txt?

-- 
Alex Bennée

  reply	other threads:[~2013-10-18 13:19 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-10-18 11:45 [Qemu-devel] [PATCH v3 0/1] integrator: fix Linux boot failure alex.bennee
2013-10-18 11:45 ` [Qemu-devel] [PATCH v3] integrator: fix Linux boot failure by emulating dbg region alex.bennee
2013-10-18 11:49   ` Peter Maydell
2013-10-18 12:37     ` Alex Bennée
2013-10-18 13:01   ` Peter Maydell
2013-10-18 13:19     ` Alex Bennée [this message]
2013-10-18 13:30       ` Peter Maydell

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=p1sivyn2cn.fsf@linaro.org \
    --to=alex.bennee@linaro.org \
    --cc=afaerber@suse.de \
    --cc=claudio.fontana@huawei.com \
    --cc=peter.maydell@linaro.org \
    --cc=qemu-devel@nongnu.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.