qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Frederic Konrad <fred.konrad@greensocs.com>
To: Hyun Kwon <hyun.kwon@xilinx.com>,
	"qemu-devel@nongnu.org" <qemu-devel@nongnu.org>
Cc: "peter.maydell@linaro.org" <peter.maydell@linaro.org>,
	"mark.burton@greensocs.com" <mark.burton@greensocs.com>,
	"guillaume.delbergue@greensocs.com"
	<guillaume.delbergue@greensocs.com>,
	Peter Crosthwaite <pcrost@xilinx.com>
Subject: Re: [Qemu-devel] [PATCH V3 6/8] Introduce xilinx dpdma.
Date: Tue, 21 Jul 2015 18:04:13 +0200	[thread overview]
Message-ID: <55AE6D7D.8080707@greensocs.com> (raw)
In-Reply-To: <E439C2F435589E4DA34D847245F141A4AFF83DCE@XSJ-PSEXMBX01.xlnx.xilinx.com>

On 11/07/2015 02:29, Hyun Kwon wrote:
> Hi Fred,
>
> Thanks for the patch.
>
>> -----Original Message-----
>> From: fred.konrad@greensocs.com [mailto:fred.konrad@greensocs.com]
>> Sent: Monday, July 06, 2015 9:22 AM
>> To: qemu-devel@nongnu.org
>> Cc: peter.maydell@linaro.org; Peter Crosthwaite; Hyun Kwon;
>> guillaume.delbergue@greensocs.com; mark.burton@greensocs.com;
>> fred.konrad@greensocs.com
>> Subject: [PATCH V3 6/8] Introduce xilinx dpdma.
>>
>> From: KONRAD Frederic <fred.konrad@greensocs.com>
>>
>> This is the implementation of the DPDMA.
>>
>> Signed-off-by: KONRAD Frederic <fred.konrad@greensocs.com>
>> ---
>>   hw/dma/Makefile.objs |   1 +
>>   hw/dma/xlnx_dpdma.c  | 789
>> +++++++++++++++++++++++++++++++++++++++++++++++++++
>>   hw/dma/xlnx_dpdma.h  |  77 +++++
>>   3 files changed, 867 insertions(+)
>>   create mode 100644 hw/dma/xlnx_dpdma.c
>>   create mode 100644 hw/dma/xlnx_dpdma.h
>>
>> diff --git a/hw/dma/Makefile.objs b/hw/dma/Makefile.objs
>> index 0e65ed0..5451836 100644
>> --- a/hw/dma/Makefile.objs
>> +++ b/hw/dma/Makefile.objs
>> @@ -8,6 +8,7 @@ common-obj-$(CONFIG_XILINX_AXI) += xilinx_axidma.o
>>   common-obj-$(CONFIG_ETRAXFS) += etraxfs_dma.o
>>   common-obj-$(CONFIG_STP2000) += sparc32_dma.o
>>   common-obj-$(CONFIG_SUN4M) += sun4m_iommu.o
>> +obj-$(CONFIG_XLNX_ZYNQMP) += xlnx_dpdma.o
>>
>>   obj-$(CONFIG_OMAP) += omap_dma.o soc_dma.o
>>   obj-$(CONFIG_PXA2XX) += pxa2xx_dma.o
>> diff --git a/hw/dma/xlnx_dpdma.c b/hw/dma/xlnx_dpdma.c
>> new file mode 100644
>> index 0000000..a327085
>> --- /dev/null
>> +++ b/hw/dma/xlnx_dpdma.c
>> @@ -0,0 +1,789 @@
>> +/*
>> + * xlnx_dpdma.c
> [snip]
>
>> +
>> +size_t xlnx_dpdma_start_operation(XlnxDPDMAState *s, uint8_t channel,
>> +                                    bool one_desc)
>> +{
>> +    uint64_t desc_addr;
>> +    uint64_t source_addr[6];
>> +    DPDMADescriptor desc;
>> +    bool done = false;
>> +    size_t ptr = 0;
>> +
>> +    assert(channel <= 5);
>> +
>> +    /* Trigger a VSYNC IRQ when the graphic callback asks for data. */
>> +    if (channel == 3) {
>> +        s->registers[DPDMA_ISR] |= (1 << 27);
>> +        xlnx_dpdma_update_irq(s);
>> +    }
> I'd rather make this VSYNC interrupt generation as a separate function, and have it called by whenever xlnx_dp_update_display() is called. Please see my comment in patch 7/8 as well.
>
> Thanks,
> -hyun

Ok I do that.

Thanks,
Fred

>
>
> This email and any attachments are intended for the sole use of the named recipient(s) and contain(s) confidential information that may be proprietary, privileged or copyrighted under applicable law. If you are not the intended recipient, do not read, copy, or forward this email message or any attachments. Delete this email message and any attachments immediately.
>

  reply	other threads:[~2015-07-21 16:04 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-07-06 16:21 [Qemu-devel] [PATCH V3 0/8] Xilinx DisplayPort fred.konrad
2015-07-06 16:21 ` [Qemu-devel] [PATCH V3 1/8] i2cbus: remove unused dev field fred.konrad
2015-07-06 16:21 ` [Qemu-devel] [PATCH V3 2/8] Introduce AUX bus fred.konrad
2015-07-06 16:21 ` [Qemu-devel] [PATCH V3 3/8] i2c: implement broadcast write fred.konrad
2015-07-06 16:21 ` [Qemu-devel] [PATCH V3 4/8] introduce dpcd module fred.konrad
2015-07-11  0:29   ` Hyun Kwon
2015-07-21 16:03     ` Frederic Konrad
2015-07-06 16:21 ` [Qemu-devel] [PATCH V3 5/8] hw/i2c-ddc.c: Implement DDC I2C slave fred.konrad
2015-07-06 16:21 ` [Qemu-devel] [PATCH V3 6/8] Introduce xilinx dpdma fred.konrad
2015-07-11  0:29   ` Hyun Kwon
2015-07-21 16:04     ` Frederic Konrad [this message]
2015-07-06 16:22 ` [Qemu-devel] [PATCH V3 7/8] Introduce xilinx dp fred.konrad
2015-07-11  0:29   ` Hyun Kwon
2015-07-21 16:16     ` Frederic Konrad
2015-07-06 16:22 ` [Qemu-devel] [PATCH V3 8/8] arm: xlnx-zynqmp: Add DisplayPort and DPDMA fred.konrad

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=55AE6D7D.8080707@greensocs.com \
    --to=fred.konrad@greensocs.com \
    --cc=guillaume.delbergue@greensocs.com \
    --cc=hyun.kwon@xilinx.com \
    --cc=mark.burton@greensocs.com \
    --cc=pcrost@xilinx.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 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).