All of lore.kernel.org
 help / color / mirror / Atom feed
From: Ley Foon Tan <lftan.linux@gmail.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH] ARM: socfpga: Remove socfpga_sdram_apply_static_cfg()
Date: Mon, 9 Mar 2020 16:50:13 +0800	[thread overview]
Message-ID: <CAFiDJ59unTE=UYdF7QCxTF0pE6UqroMWSGBMhhh+Jg10X5NAdw@mail.gmail.com> (raw)
In-Reply-To: <e4bb04d381dc6bc5046ccec2d4fbd6d0469482ca.camel@linux.intel.com>

On Thu, Feb 13, 2020 at 2:52 AM Dalon L Westergreen
<dalon.westergreen@linux.intel.com> wrote:
>
> I am reading through this thread, and want to point out that it is not that the
> FPGA bridge need be actively used in the fpga, but
> rather that this port be configured in the FPGA configuration.  This is an
> important distinction, ecery FPGA design that
> instantiates the HPS does configure the F2S Bridge.  it drives select pins,
> control pins, data pins, etc, on the interface to known values,
> and so the apply can always be done as all SoC FPGA designs have the soc
> instantiated.  If someone boots the arm, and uses an
> FPGA design without having the soc instantiated, it may then cause issues, but i
> would argue that is not a supported use
> in the first place.
>
> --dalon
>

I can reproduce the issue if without setting applycfg bit. Access to
F2sdram interface will cause system hang.

From the Cyclone 5 Soc datasheet:
applycfg - Write with this bit set to apply all the settings loaded in
SDR registers to the memory interface. This bit is write-only and
always returns 0 if read.

Software should set applycfg bit if change any register under SDR
register range. SW is allowed to set this bit multiple times, the only
condition is SDRAM need to be idle.
My suggestion is we add back socfpga_sdram_apply_static_cfg(), but
change the sequence to below:
writel(iswgrp_handoff[3], &sdr_ctrl->fpgaport_rst);
socfpga_sdram_apply_static_cfg();

Marek and Simon, are you okay with this? If yes, I will submit patch for this.

Thanks.

Regards
Ley Foon

  reply	other threads:[~2020-03-09  8:50 UTC|newest]

Thread overview: 39+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-02-06 10:50 [U-Boot] [PATCH] ARM: socfpga: Remove socfpga_sdram_apply_static_cfg() Nico Becker
2020-02-06 11:53 ` Marek Vasut
2020-02-06 12:57   ` Nico Becker
2020-02-06 13:00     ` Marek Vasut
2020-02-06 14:13       ` Nico Becker
2020-02-06 14:57         ` Simon Goldschmidt
2020-02-07  7:55           ` Marek Vasut
2020-02-07 12:09             ` Simon Goldschmidt
2020-02-07 12:27               ` Marek Vasut
2020-02-07 13:44                 ` Simon Goldschmidt
2020-02-07 13:49                   ` Marek Vasut
2020-02-12 18:52                     ` Dalon L Westergreen
2020-03-09  8:50                       ` Ley Foon Tan [this message]
2020-03-09 12:57                         ` Marek Vasut
2020-03-09 14:10                           ` Simon Goldschmidt
2020-03-09 14:15                             ` Marek Vasut
2020-03-09 14:24                               ` Simon Goldschmidt
2020-03-09 14:25                                 ` Marek Vasut
2020-03-12 15:54                                   ` Dalon L Westergreen
2020-03-12 15:57                                     ` Marek Vasut
2020-03-16 18:04                                       ` Dalon L Westergreen
2020-03-16 19:04                                         ` Simon Goldschmidt
2020-03-16 19:06                                           ` Marek Vasut
2020-03-16 19:09                                             ` Simon Goldschmidt
2020-03-16 19:19                                               ` Marek Vasut
2020-03-16 19:55                                             ` Dalon L Westergreen
2020-03-16 20:01                                               ` Simon Goldschmidt
2020-03-20  7:52                                                 ` Ley Foon Tan
2020-03-31  8:13                                                   ` Ley Foon Tan
2020-03-31 11:27                                                     ` Marek Vasut
2020-03-11  9:54                             ` Ley Foon Tan
2020-03-11  9:58                               ` Marek Vasut
2020-03-12  9:31                                 ` Ley Foon Tan
2020-03-12 11:34                                   ` Marek Vasut
  -- strict thread matches above, loose matches on Subject: below --
2019-04-23 16:14 Marek Vasut
2019-04-26  6:39 ` Simon Goldschmidt
2019-04-29  8:34   ` Marek Vasut
2019-04-29 13:02     ` See, Chin Liang
2019-04-29 21:29       ` Marek Vasut

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='CAFiDJ59unTE=UYdF7QCxTF0pE6UqroMWSGBMhhh+Jg10X5NAdw@mail.gmail.com' \
    --to=lftan.linux@gmail.com \
    --cc=u-boot@lists.denx.de \
    /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.