All of lore.kernel.org
 help / color / mirror / Atom feed
From: Volodymyr Babchuk <Volodymyr_Babchuk@epam.com>
To: Stephan Gerhold <stephan@gerhold.net>
Cc: Caleb Connolly <caleb.connolly@linaro.org>,
	"u-boot@lists.denx.de" <u-boot@lists.denx.de>,
	Elmar Psilog <epsi@gmx.de>,
	Joe Hershberger <joe.hershberger@ni.com>,
	Jonas Karlman <jonas@kwiboo.se>,
	Kever Yang <kever.yang@rock-chips.com>,
	Konrad Dybcio <konrad.dybcio@linaro.org>,
	Ley Foon Tan <leyfoon.tan@starfivetech.com>,
	Lukasz Majewski <lukma@denx.de>, Marek Vasut <marex@denx.de>,
	Michal Simek <michal.simek@amd.com>,
	Neil Armstrong <neil.armstrong@linaro.org>,
	Ramon Fried <rfried.dev@gmail.com>,
	Sean Anderson <seanga2@gmail.com>, Simon Glass <sjg@chromium.org>,
	Sumit Garg <sumit.garg@linaro.org>,
	Svyatoslav Ryhel <clamor95@gmail.com>,
	Tom Rini <trini@konsulko.com>,
	Yanhong Wang <yanhong.wang@starfivetech.com>
Subject: Re: [PATCH 0/8] Add support for Qualcomm SA8155-ADP board
Date: Mon, 4 Mar 2024 15:51:22 +0000	[thread overview]
Message-ID: <87r0gq3shy.fsf@epam.com> (raw)
In-Reply-To: <ZeXN7EZHU89qS5PF@gerhold.net>


Hi Stephan,

Stephan Gerhold <stephan@gerhold.net> writes:

> On Fri, Mar 01, 2024 at 06:25:39PM +0000, Volodymyr Babchuk wrote:
>> Caleb Connolly <caleb.connolly@linaro.org> writes:
>> > On 29/02/2024 14:21, Volodymyr Babchuk wrote:
>> >> This patch series adds support for Qualcomm SA8155-ADP development
>> >> board. Main motivation for this series is to allow running
>> >> virtualization software on this board and U-Boot is a good way to
>> >> break Qualcomm's boot chain at EL2 with more convenient ways for
>> >> uploading and running the code. With this patches applied it is
>> >> possible to upload and run Xen on this board. KVM probably should work
>> >> too.
>> >
>> > This is really cool! I've experimented with this on SDM845 and SM8250
>> > but never really did anything with it... I'd love to take a look at your
>> > Xen branch?
>> 
>> Honestly, there is nothing to look at right now. I just implemented
>> early printk serial driver for the qcom, made hacks to the device tree
>> and trying to boot Dom0. I already expecting issues with the GPU,
>> because it has own SMMU without virtualization support and Xen already
>> complains about it. So I had to remove it from the DTS for a time being.
>> 
>
> Did you enable all the clocks/power domains/etc for the GPU SMMU? If I
> remember correctly it is off by default and all registers read as
> zeroes. The SMMU driver could easily get confused about the capabilities
> of the SMMU (e.g. the stage 2/virtualization support) if all the ID
> registers read as zeroes.

Ah, this is a great idea, thanks. I tried a quick test by enabling only
clocks that are provided by GCC, but looks like I need to enable GPUCC
clocks as well. So I need to write a driver for GPUCC or at least
figure which registers to write with a debugger. I'll try this later.

By the way, do you have any suggestion about my second issue? When Linux
in the Dom0 tries to access UFS, CPU gets a secure interrupt and hangs in
TZ. I had the same exactly behavior when I tried to access EMAC without enabling
clocks and power domains in U-Boot. But Linux should enable all
prerequisites for UFS... I suspect that there is an additional
initialization needs to be done, but I didn't figured it yet.

-- 
WBR, Volodymyr

  reply	other threads:[~2024-03-04 16:30 UTC|newest]

Thread overview: 27+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-02-29 14:21 [PATCH 0/8] Add support for Qualcomm SA8155-ADP board Volodymyr Babchuk
2024-02-29 14:21 ` [PATCH 1/8] clk: qcom: clear div mask before assigning new divider Volodymyr Babchuk
2024-03-01 16:04   ` Caleb Connolly
2024-02-29 14:21 ` [PATCH 3/8] net: dw_eth_qos: add support for Qualcomm SM8150 SoC Volodymyr Babchuk
2024-03-05  6:49   ` Sumit Garg
2024-02-29 14:21 ` [PATCH 2/8] dts: qcom: import device trees and bindings for SA8155P-ADP Volodymyr Babchuk
2024-02-29 20:45   ` Krzysztof Kozlowski
2024-02-29 14:21 ` [PATCH 5/8] clk: qcom: add driver for SM8150 SoC Volodymyr Babchuk
2024-03-01 17:16   ` Caleb Connolly
2024-03-01 18:45     ` Volodymyr Babchuk
2024-03-01 19:31       ` Caleb Connolly
2024-02-29 14:21 ` [PATCH 6/8] pinctr: qcom: pass pin number to get_function_mux callback Volodymyr Babchuk
2024-03-01 16:28   ` Caleb Connolly
2024-02-29 14:21 ` [PATCH 4/8] clk: qcom: add support for power domains uclass Volodymyr Babchuk
2024-02-29 14:49   ` Dan Carpenter
2024-03-02  0:05   ` Konrad Dybcio
2024-02-29 14:21 ` [PATCH 8/8] board: add support for Qualcomm SA8155P-ADP board Volodymyr Babchuk
2024-03-04 13:38   ` Stephan Gerhold
2024-03-04 15:55     ` Volodymyr Babchuk
2024-02-29 14:21 ` [PATCH 7/8] pinctrl: qcom: add driver for SM8150 SoC Volodymyr Babchuk
2024-03-01 16:25 ` [PATCH 0/8] Add support for Qualcomm SA8155-ADP board Caleb Connolly
2024-03-01 18:25   ` Volodymyr Babchuk
2024-03-01 18:49     ` Caleb Connolly
2024-03-04 13:34     ` Stephan Gerhold
2024-03-04 15:51       ` Volodymyr Babchuk [this message]
2024-03-04 16:50         ` Caleb Connolly
2024-03-04 17:43         ` Konrad Dybcio

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=87r0gq3shy.fsf@epam.com \
    --to=volodymyr_babchuk@epam.com \
    --cc=caleb.connolly@linaro.org \
    --cc=clamor95@gmail.com \
    --cc=epsi@gmx.de \
    --cc=joe.hershberger@ni.com \
    --cc=jonas@kwiboo.se \
    --cc=kever.yang@rock-chips.com \
    --cc=konrad.dybcio@linaro.org \
    --cc=leyfoon.tan@starfivetech.com \
    --cc=lukma@denx.de \
    --cc=marex@denx.de \
    --cc=michal.simek@amd.com \
    --cc=neil.armstrong@linaro.org \
    --cc=rfried.dev@gmail.com \
    --cc=seanga2@gmail.com \
    --cc=sjg@chromium.org \
    --cc=stephan@gerhold.net \
    --cc=sumit.garg@linaro.org \
    --cc=trini@konsulko.com \
    --cc=u-boot@lists.denx.de \
    --cc=yanhong.wang@starfivetech.com \
    /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.