From: "Corvin Köhne" <C.Koehne@beckhoff.com>
To: "peter.maydell@linaro.org" <peter.maydell@linaro.org>,
"qemu-devel@nongnu.org" <qemu-devel@nongnu.org>
Cc: "Yannick Voßen" <Y.Vossen@beckhoff.com>
Subject: Re: [PULL 08/21] hw/misc/zynq_slcr: Add logic for DCI configuration
Date: Tue, 7 Jul 2026 12:42:41 +0000 [thread overview]
Message-ID: <e6a5de30cd451e820007513b869a87bf5fe4890d.camel@beckhoff.com> (raw)
In-Reply-To: <CAFEAcA_Lg3ebEiefKmf1K_RHY4NozezGese2rFf2w6af3oPccQ@mail.gmail.com>
[-- Attachment #1: Type: text/plain, Size: 3739 bytes --]
Hi Peter,
sry, for the late response. I've checked the manual [1]. 0xb70 is the right
offset for R_DDRIOB_DCI_CTRL. Additionally, the correct reset value is 0x20 not
0x21. The commit also requires 0x20 as reset value because it tries to detect a
toggle of the reset bit (bit 0). Do you fix the commit or should we do it?
Thanks for catching!
[1]
https://docs.amd.com/r/en-US/ug585-zynq-7000-SoC-TRM/Register-slcr-DDRIOB_DCI_CTRL
--
Best regards,
Corvin
On Tue, 2026-07-07 at 11:58 +0100, Peter Maydell wrote:
> Ping -- Corvin, Yannick, please could you suggest the right resolution
> for this bug?
>
> thanks
> -- PMM
>
>
> On Mon, 22 Jun 2026 at 15:49, Peter Maydell <peter.maydell@linaro.org> wrote:
> >
> > On Fri, 29 May 2026 at 12:47, Peter Maydell <peter.maydell@linaro.org>
> > wrote:
> > >
> > > From: YannickV <Y.Vossen@beckhoff.com>
> > >
> > > The registers for the digitally controlled impedance (DCI) clock are
> > > part of the system level control registers (SLCR). The DONE bit in
> > > the status register indicates a successfull DCI calibration. An
> > > description of the calibration process can be found here:
> > > https://urldefense.com/v3/__https://docs.amd.com/r/en-US/ug585-zynq-7000-SoC-TRM/DDR-IOB-Impedance-Calibration__;!!PlYMe_wG1g!lthDLWtCQd7a8JMN8G4iIPO8hmKqHg5ON9qsiI2YQGx5fTuThS3u5WwV6IeiZCeJf2gNSKMWSZ2wKu91Kb6gVFdpPQ$
> > >
> > > The DCI control register and status register have been added. As soon
> > > as the ENABLE and RESET bit are set, the RESET bit has also been toggled
> > > to 0 before and the UPDATE_CONTROL is not set, the DONE bit in the status
> > > register is set. If these bits change the DONE bit is reset. Note that the
> > > option bits are not taken into consideration.
> >
> > Hi; we've just had a Coverity Scan run that went over this code,
> > and it points out an issue:
> >
> > > REG32(DDRIOB, 0xb40)
> > > +REG32(DDRIOB_DCI_CTRL, 0xb70)
> >
> > These REG32() macros define R_DDRIOB as 0xb40 / 4 == 0x2d0,
> > and R_DDRIOB_DCI_CTRL as 0xb70 / 4 == 0x2dc...
> >
> > > @@ -418,6 +428,8 @@ static void zynq_slcr_reset_init(Object *obj,
> > > ResetType type)
> > > s->regs[R_DDRIOB + 4] = s->regs[R_DDRIOB + 5] = s->regs[R_DDRIOB + 6]
> > > = 0x00000e00;
> > > s->regs[R_DDRIOB + 12] = 0x00000021;
> > > +
> > > + s->regs[R_DDRIOB_DCI_CTRL] = 0x00000020;
> >
> > ...and here in the reset function we are now initializing
> > both s->regs[R_DDRIOB + 12] and s->regs[R_DDRIOB_DCI_CTRL], but
> > those are the same array element (since 0x2d0 + 12 == 0x2dc).
> >
> > What was the intention here? Which reset value is correct?
> > Should we be resetting some other register where we currently
> > are resetting s->regs[R_DDRIOB + 12] ?
> >
> > thanks
> > -- PMM
This email contains confidential information. If you have received it in error, you must not read, use, copy or pass on this e-mail or its attachments.
If you have received the e-mail in error, please inform me immediately by reply e-mail and then delete this e-mail from your system. Thank you
Diese E-Mail enthält vertrauliche Informationen. Sollten Sie sie irrtümlich erhalten haben, dürfen Sie diese E-Mail oder ihre Anhänge nicht lesen, verwenden, kopieren oder weitergeben.
Sollten Sie die Mail versehentlich erhalten haben, teilen Sie mir dies bitte umgehend per Antwort-E-Mail mit und löschen Sie diese E-Mail dann aus Ihrem System. Vielen Dank
Beckhoff Automation GmbH & Co. KG
Managing Director: Dipl. Phys. Hans Beckhoff
Registered office: Verl, Germany
Register court: Guetersloh HRA 7075
DisclaimerID:x9d5u140
[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
next prev parent reply other threads:[~2026-07-07 12:43 UTC|newest]
Thread overview: 41+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-05-29 11:47 [PULL 00/21] target-arm queue Peter Maydell
2026-05-29 11:47 ` [PULL 01/21] target/arm: Enable REVD for SVE2.1 Peter Maydell
2026-05-29 11:47 ` [PULL 02/21] hw/dma/zynq-devcfg: Handle bitstream loading via DMA to 0xffffffff Peter Maydell
2026-05-29 11:47 ` [PULL 03/21] hw/arm/zynq-devcfg: Prevent unintended unlock during initialization Peter Maydell
2026-05-29 11:47 ` [PULL 04/21] hw/dma/zynq: Ensure PCFG_DONE bit remains set to indicate PL is in user mode Peter Maydell
2026-05-29 11:47 ` [PULL 05/21] hw/dma/zynq-devcfg: Simulate dummy PL reset Peter Maydell
2026-05-29 11:47 ` [PULL 06/21] hw/dma/zynq-devcfg: Indicate power-up status of PL Peter Maydell
2026-05-29 11:47 ` [PULL 07/21] hw/misc: Add dummy ZYNQ DDR controller Peter Maydell
2026-05-29 11:47 ` [PULL 08/21] hw/misc/zynq_slcr: Add logic for DCI configuration Peter Maydell
2026-06-22 14:49 ` Peter Maydell
2026-07-07 10:58 ` Peter Maydell
2026-07-07 12:42 ` Corvin Köhne [this message]
2026-07-07 12:47 ` Peter Maydell
2026-05-29 11:47 ` [PULL 09/21] hw/block/m25p80: Add HAS_SR_TB flag for is25lp016d Peter Maydell
2026-05-29 11:47 ` [PULL 10/21] hw/arm/xilinx_zynq: Split xilinx_zynq into header and implementation files Peter Maydell
2026-05-29 11:47 ` [PULL 11/21] target/arm: Add feature predicate for FEAT_CMPBR Peter Maydell
2026-05-29 11:47 ` [PULL 12/21] target/arm: Implement CB, CBB, CBH Peter Maydell
2026-05-29 11:47 ` [PULL 13/21] target/arm: Implement CB (immediate) Peter Maydell
2026-05-29 11:47 ` [PULL 14/21] target/arm: Enable FEAT_CMPBR for -cpu max Peter Maydell
2026-05-29 11:47 ` [PULL 15/21] target/arm: Don't assert if 64-bit EL2 AT insn sees a Domain fault Peter Maydell
2026-05-29 11:47 ` [PULL 16/21] target/arm: SME BFCVT, BFCVTN have "Alternate BFloat16 behaviors" Peter Maydell
2026-05-29 11:47 ` [PULL 17/21] target/arm: implement FEAT_RNG_TRAP for RNDR/RNDRRS Peter Maydell
2026-06-07 10:42 ` Zenghui Yu
2026-06-07 18:04 ` Jason L. Wright'
2026-06-08 8:57 ` Alex Bennée
2026-06-07 18:22 ` [PATCH] target/arm/hvf: manually sync ID_AA64ISAR0_EL1 on vCPU init Jason Wright
2026-06-08 13:07 ` Peter Maydell
2026-06-08 15:56 ` Jason L. Wright'
2026-06-08 16:05 ` Peter Maydell
2026-06-23 8:27 ` Philippe Mathieu-Daudé
2026-06-23 8:42 ` Peter Maydell
2026-06-29 17:48 ` Jason L. Wright'
2026-06-29 20:52 ` [PATCH v2] target/arm/hvf: seed NO_RAW ID registers from isar.idregs[] " Jason Wright
2026-06-30 14:31 ` Richard Henderson
2026-07-01 14:17 ` Zenghui Yu
2026-07-03 10:03 ` Peter Maydell
2026-05-29 11:47 ` [PULL 18/21] target/arm: advertise FEAT_RNG_TRAP on cortex-max Peter Maydell
2026-05-29 11:47 ` [PULL 19/21] hw/dma/omap_dma: Remove unused ifdeffed out code Peter Maydell
2026-05-29 11:47 ` [PULL 20/21] hw/dma/omap_dma: Fix coding style in omap_dma_transfer_setup() Peter Maydell
2026-05-29 11:47 ` [PULL 21/21] hw/dma/omap_dma: Fix indentation after ifdef removal Peter Maydell
2026-05-29 19:49 ` [PULL 00/21] target-arm queue Stefan Hajnoczi
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=e6a5de30cd451e820007513b869a87bf5fe4890d.camel@beckhoff.com \
--to=c.koehne@beckhoff.com \
--cc=Y.Vossen@beckhoff.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.