All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Edgar E. Iglesias" <edgar.iglesias@gmail.com>
To: qemu-devel@nongnu.org
Cc: figlesia@xilinx.com, peter.maydell@linaro.org,
	sstabellini@kernel.org, edgar.iglesias@xilinx.com,
	sai.pavan.boddu@xilinx.com, frasse.iglesias@gmail.com,
	alistair@alistair23.me, richard.henderson@linaro.org,
	frederic.konrad@adacore.com, qemu-arm@nongnu.org,
	philmd@redhat.com, luc.michel@greensocs.com
Subject: [PATCH v1 2/5] dma/xlnx-zdma: Populate DBG0.CMN_BUF_FREE
Date: Thu,  2 Apr 2020 15:47:18 +0200	[thread overview]
Message-ID: <20200402134721.27863-3-edgar.iglesias@gmail.com> (raw)
In-Reply-To: <20200402134721.27863-1-edgar.iglesias@gmail.com>

From: "Edgar E. Iglesias" <edgar.iglesias@xilinx.com>

Populate DBG0.CMN_BUF_FREE so that SW can see some free space.

Signed-off-by: Edgar E. Iglesias <edgar.iglesias@xilinx.com>
---
 hw/dma/xlnx-zdma.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/hw/dma/xlnx-zdma.c b/hw/dma/xlnx-zdma.c
index a6c5b2304a..6a4699757a 100644
--- a/hw/dma/xlnx-zdma.c
+++ b/hw/dma/xlnx-zdma.c
@@ -680,6 +680,12 @@ static RegisterAccessInfo zdma_regs_info[] = {
     },{ .name = "ZDMA_CH_DBG0",  .addr = A_ZDMA_CH_DBG0,
         .rsvd = 0xfffffe00,
         .ro = 0x1ff,
+
+        /*
+         * There's SW out there that will check the debug regs for free space.
+         * Claim that we always have 0x100 free.
+         */
+        .reset = 0x100
     },{ .name = "ZDMA_CH_DBG1",  .addr = A_ZDMA_CH_DBG1,
         .rsvd = 0xfffffe00,
         .ro = 0x1ff,
-- 
2.20.1



  parent reply	other threads:[~2020-04-02 13:48 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-04-02 13:47 [PATCH v1 0/5] dma/xlnx-zdma: Bug fixes Edgar E. Iglesias
2020-04-02 13:47 ` [PATCH v1 1/5] dma/xlnx-zdma: Remove comment Edgar E. Iglesias
2020-04-02 16:57   ` Alistair Francis
2020-04-03  6:48   ` Francisco Iglesias
2020-04-02 13:47 ` Edgar E. Iglesias [this message]
2020-04-02 17:13   ` [PATCH v1 2/5] dma/xlnx-zdma: Populate DBG0.CMN_BUF_FREE Alistair Francis
2020-04-03  6:48   ` Francisco Iglesias
2020-04-02 13:47 ` [PATCH v1 3/5] dma/xlnx-zdma: Clear DMA_DONE when halting Edgar E. Iglesias
2020-04-02 17:15   ` Alistair Francis
2020-04-03  6:49   ` Francisco Iglesias
2020-04-02 13:47 ` [PATCH v1 4/5] dma/xlnx-zdma: Advance the descriptor address when stopping Edgar E. Iglesias
2020-04-02 17:16   ` Alistair Francis
2020-04-03  6:49   ` Francisco Iglesias
2020-04-02 13:47 ` [PATCH v1 5/5] dma/xlnx-zdma: Reorg to fix CUR_DSCR Edgar E. Iglesias
2020-04-02 22:47   ` Alistair Francis
2020-04-03  6:50   ` Francisco Iglesias
2020-04-03 18:39   ` Peter Maydell
2020-04-03 18:53 ` [PATCH v1 0/5] dma/xlnx-zdma: Bug fixes Peter Maydell
2020-04-04 12:29   ` Edgar E. Iglesias

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=20200402134721.27863-3-edgar.iglesias@gmail.com \
    --to=edgar.iglesias@gmail.com \
    --cc=alistair@alistair23.me \
    --cc=edgar.iglesias@xilinx.com \
    --cc=figlesia@xilinx.com \
    --cc=frasse.iglesias@gmail.com \
    --cc=frederic.konrad@adacore.com \
    --cc=luc.michel@greensocs.com \
    --cc=peter.maydell@linaro.org \
    --cc=philmd@redhat.com \
    --cc=qemu-arm@nongnu.org \
    --cc=qemu-devel@nongnu.org \
    --cc=richard.henderson@linaro.org \
    --cc=sai.pavan.boddu@xilinx.com \
    --cc=sstabellini@kernel.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.