qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Jan Kiszka <jan.kiszka@web.de>
To: Peter Maydell <peter.maydell@linaro.org>
Cc: qemu-devel <qemu-devel@nongnu.org>
Subject: Re: [Qemu-devel] [PATCH] integrator/cp: Wire up MMC card detection
Date: Tue, 03 Feb 2015 21:21:26 +0100	[thread overview]
Message-ID: <54D12DC6.80004@web.de> (raw)
In-Reply-To: <CAFEAcA_thcX6wEpbkCxdOEDECwAE5n4xBDgXh4mGgVomLEituQ@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 1359 bytes --]

On 2015-02-03 19:03, Peter Maydell wrote:
> On 30 January 2015 at 20:19, Jan Kiszka <jan.kiszka@siemens.com> wrote:
>> This allows to use MMC emulation with the Integrator/CP model. Well,
>> mostly. There seems to be timing issues with Linux so that the card is
>> not always detected (but most of the time).
>>
>> Note that the read-only pin is intentionally left unconnected because
>> the PIC model could deliver it incorrectly as interrupt to the guest
>> while the spec says that this pin is just for status reading.
> 
> I'm not sure what you mean here. The WPROT signal isn't wired
> up to the SIC at all as far as I can see -- it's just a read-only
> bit in the CP_INTREG register in what we model as "icp_control".
> 
> Your patch doesn't seem to do anything with the icp_control at all,
> which doesn't look right, because the docs say that to clear the
> 'card insert' interrupt reported by the SIC you need to write
> to the CP_INTREG register.
> 
> The gpio out line from the PL181 is just a status line (high when
> a card is present, low if not); there needs to be a latch somewhere
> in here that gets reset by the CP_INTREG write, the PL181 line
> isn't just wired directly to the SIC.

Indeed, read this too quickly. Let's see if modeling this more correctly
will also improve the detection reliability.

Jan



[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 181 bytes --]

      reply	other threads:[~2015-02-03 20:21 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-01-30 20:19 [Qemu-devel] [PATCH] integrator/cp: Wire up MMC card detection Jan Kiszka
2015-02-03 18:03 ` Peter Maydell
2015-02-03 20:21   ` Jan Kiszka [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=54D12DC6.80004@web.de \
    --to=jan.kiszka@web.de \
    --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 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).