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 4/8] introduce dpcd module.
Date: Tue, 21 Jul 2015 18:03:42 +0200	[thread overview]
Message-ID: <55AE6D5E.7050408@greensocs.com> (raw)
In-Reply-To: <E439C2F435589E4DA34D847245F141A4AFF83DB7@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 4/8] introduce dpcd module.
>>
>> From: KONRAD Frederic <fred.konrad@greensocs.com>
>>
>> This introduces a DPCD module. It wires on a aux-bus and can be accessed
>> by
>> driver to get lane-speed, etc.
>>
>> Signed-off-by: KONRAD Frederic <fred.konrad@greensocs.com>
>> ---
>>   default-configs/aarch64-softmmu.mak |   1 +
>>   hw/display/Makefile.objs            |   1 +
>>   hw/display/dpcd.c                   | 157
>> ++++++++++++++++++++++++++++++++++++
>>   hw/display/dpcd.h                   |  94 +++++++++++++++++++++
>>   4 files changed, 253 insertions(+)
>>   create mode 100644 hw/display/dpcd.c
>>   create mode 100644 hw/display/dpcd.h
>>
>> diff --git a/default-configs/aarch64-softmmu.mak b/default-
>> configs/aarch64-softmmu.mak
>> index d3a2665..87165b7 100644
>> --- a/default-configs/aarch64-softmmu.mak
>> +++ b/default-configs/aarch64-softmmu.mak
>> @@ -4,4 +4,5 @@
>>   include arm-softmmu.mak
>>
>>   CONFIG_AUX=y
>> +CONFIG_DPCD=y
>>   CONFIG_XLNX_ZYNQMP=y
>> diff --git a/hw/display/Makefile.objs b/hw/display/Makefile.objs
>> index dd8ea76..6d7004a 100644
>> --- a/hw/display/Makefile.objs
>> +++ b/hw/display/Makefile.objs
>> @@ -38,3 +38,4 @@ common-obj-$(CONFIG_QXL) += qxl.o qxl-logger.o qxl-
>> render.o
>>   obj-$(CONFIG_VIRTIO) += virtio-gpu.o
>>   obj-$(CONFIG_VIRTIO_PCI) += virtio-gpu-pci.o
>>   obj-$(CONFIG_VIRTIO_VGA) += virtio-vga.o
>> +obj-$(CONFIG_DPCD) += dpcd.o
>> diff --git a/hw/display/dpcd.c b/hw/display/dpcd.c
>> new file mode 100644
>> index 0000000..cf666f8
>> --- /dev/null
>> +++ b/hw/display/dpcd.c
>> @@ -0,0 +1,157 @@
>> +/*
>> + * dpcd.c
> [snip]
>
>> +
>> +static void dpcd_reset(DeviceState *dev)
>> +{
>> +    DPCDState *s = DPCD(dev);
>> +
>> +    memset(&(s->dpcd_info), 0, sizeof(s->dpcd_info));
>> +
>> +    s->dpcd_info[DPCD_REVISION] = DPCD_REV_1_0;
>> +    s->dpcd_info[DPCD_MAX_LINK_RATE] = DPCD_5_4GBPS;
>> +    s->dpcd_info[DPCD_MAX_LANE_COUNT] = DPCD_ONE_LANE;
> In my opinion, it's better to use the maximum value. Thus, I'd use DPCD_FOUR_LANES here.
>
>> +    s->dpcd_info[DPCD_RECEIVE_PORT0_CAP_0] = DPCD_EDID_PRESENT;
>> +    /* buffer size */
>> +    s->dpcd_info[DPCD_RECEIVE_PORT0_CAP_1] = 0xFF;
>> +
>> +    s->dpcd_info[DPCD_LANE0_1_STATUS] = DPCD_LANE0_CR_DONE
>> +                                      | DPCD_LANE0_CHANNEL_EQ_DONE
>> +                                      | DPCD_LANE0_SYMBOL_LOCKED;
>> +
>> +    s->dpcd_info[DPCD_LANE_ALIGN_STATUS_UPDATED] =
>> DPCD_INTERLANE_ALIGN_DONE;
>> +    s->dpcd_info[DPCD_SINK_STATUS] = DPCD_RECEIVE_PORT_0_STATUS;
>> +}
> For some reason, on my set up, this dpcd_reset() functions isn't being called. I had to add it to the dpcd_init() as before. I'm not sure if that is from using different baseline. Please make sure the dpcd is initialized correctly.
>
> Thanks,
> -hyun

Ok this seems to be called.. I can't reproduce the issue.

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 [this message]
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
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=55AE6D5E.7050408@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).