linux-gpio.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Krzysztof Kozlowski <krzk@kernel.org>
To: David Virag <virag.david003@gmail.com>,
	Ivaylo Ivanov <ivo.ivanov.ivanov1@gmail.com>,
	Krzysztof Kozlowski <krzk+dt@kernel.org>,
	Conor Dooley <conor+dt@kernel.org>,
	Alim Akhtar <alim.akhtar@samsung.com>,
	Sylwester Nawrocki <s.nawrocki@samsung.com>,
	Linus Walleij <linus.walleij@linaro.org>,
	Rob Herring <robh+dt@kernel.org>
Cc: linux-samsung-soc@vger.kernel.org,
	linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org,
	linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH v1 08/10] arm64: dts: exynos: Add initial support for exynos8895 SoC
Date: Fri, 9 Aug 2024 07:49:19 +0200	[thread overview]
Message-ID: <a29c1c92-0f22-4fe3-a965-8561f6dba059@kernel.org> (raw)
In-Reply-To: <225a94c3d0e8f70238aa9a486e7752ad6cb20283.camel@gmail.com>

On 07/08/2024 19:29, David Virag wrote:
> On Wed, 2024-08-07 at 14:20 +0300, Ivaylo Ivanov wrote:
>>
>> On 8/7/24 12:20, Krzysztof Kozlowski wrote:
>>> On 07/08/2024 10:28, ivo.ivanov.ivanov1@gmail.com wrote:
>>>> From: Ivaylo Ivanov <ivo.ivanov.ivanov1@gmail.com>
> [snip]
>>>>
>>>> +
>>>> +	timer {
>>>> +		compatible = "arm,armv8-timer";
>>>> +		/* Hypervisor Virtual Timer interrupt is not
>>>> wired to GIC */
>>>> +		interrupts = <GIC_PPI 13 (GIC_CPU_MASK_SIMPLE(8)
>>>> | IRQ_TYPE_LEVEL_LOW)>,
>>>> +			     <GIC_PPI 14 (GIC_CPU_MASK_SIMPLE(8)
>>>> | IRQ_TYPE_LEVEL_LOW)>,
>>>> +			     <GIC_PPI 11 (GIC_CPU_MASK_SIMPLE(8)
>>>> | IRQ_TYPE_LEVEL_LOW)>,
>>>> +			     <GIC_PPI 10 (GIC_CPU_MASK_SIMPLE(8)
>>>> | IRQ_TYPE_LEVEL_LOW)>;
>>>> +		clock-frequency = <26000000>;
>>> Hm? I think this was explicitly disallowed.
>>
>> It's weird. Without the clock-frequency property it fails early
>> during the
>>
>> boot process and I can't get any logs from pstore or simple-
>> framebuffer.
>>
>> Yet it's not set on similar platforms (exynos7885, autov9). Perhaps I
>>
>> could alias the node and set it in the board device tree..? That
>> doesn't
>>
>> sound right.
> 
> This sounds like CNTFRQ_EL0 is not set properly by the firmware.
> Now, if I read the documentation properly, this can be only set from
> EL3, which in your case is... not easy.
> 
> On my Galaxy A8 2018 (Exynos7885) I remember the old Android 8
> bootloader not being able to boot mainline, but Android 9 bootloaders
> did. I did not take the time to check if it was related to this, but it
> is my guess.
> 
> Your best bet is that maybe Samsung decided to fix this on the latest
> bootloader, and upgrading will fix it. (Though if it's already on an
> Android 9 based bootloader and it's still broken, my guess is a newer
> version won't fix it, but who knows)

If you can update your device to newer Android and it fixes the issue,
then please drop the property. If this does not work, then please add a
comment like: /* Non-updatable, broken stock Samsung bootloader does not
configure CNTFRQ_EL0 */

Best regards,
Krzysztof


  reply	other threads:[~2024-08-09  5:49 UTC|newest]

Thread overview: 25+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-08-07  8:28 [PATCH v1 00/10] Add minimal Exynos8895 SoC and SM-G950F support ivo.ivanov.ivanov1
2024-08-07  8:28 ` [PATCH v1 01/10] dt-bindings: arm: cpus: Add Samsung Mongoose M2 ivo.ivanov.ivanov1
2024-08-07  9:10   ` Krzysztof Kozlowski
2024-08-07  8:28 ` [PATCH v1 02/10] dt-bindings: hwinfo: samsung,exynos-chipid: add exynos8895 compatible ivo.ivanov.ivanov1
2024-08-07  8:28 ` [PATCH v1 03/10] soc: samsung: exynos-chipid: add exynos8895 SoC support ivo.ivanov.ivanov1
2024-08-07  9:14   ` Krzysztof Kozlowski
2024-08-07  8:28 ` [PATCH v1 04/10] dt-bindings: pinctrl: samsung: Add compatible for Exynos8895 SoC ivo.ivanov.ivanov1
2024-08-07  8:28 ` [PATCH v1 05/10] pinctrl: samsung: Add exynos8895 SoC pinctrl configuration ivo.ivanov.ivanov1
2024-08-07  8:28 ` [PATCH v1 06/10] dt-bindings: pinctrl: samsung: add exynos8895-wakeup-eint compatible ivo.ivanov.ivanov1
2024-08-23 15:59   ` Linus Walleij
2024-08-07  8:28 ` [PATCH v1 07/10] dt-bindings: soc: samsung: exynos-pmu: Add exynos8895 compatible ivo.ivanov.ivanov1
2024-08-07  9:16   ` Krzysztof Kozlowski
2024-08-07  8:28 ` [PATCH v1 08/10] arm64: dts: exynos: Add initial support for exynos8895 SoC ivo.ivanov.ivanov1
2024-08-07  9:20   ` Krzysztof Kozlowski
2024-08-07 11:20     ` Ivaylo Ivanov
2024-08-07 17:29       ` David Virag
2024-08-09  5:49         ` Krzysztof Kozlowski [this message]
2024-08-09  5:48       ` Krzysztof Kozlowski
2024-08-18 21:06         ` Ivaylo Ivanov
2024-08-07  8:28 ` [PATCH v1 09/10] dt-bindings: arm: samsung: Document dreamlte board binding ivo.ivanov.ivanov1
2024-08-07  8:28 ` [PATCH v1 10/10] arm64: dts: exynos: Add initial support for Samsung Galaxy S8 ivo.ivanov.ivanov1
2024-08-07  9:22   ` Krzysztof Kozlowski
2024-08-07  9:06 ` [PATCH v1 00/10] Add minimal Exynos8895 SoC and SM-G950F support Ivaylo Ivanov
2024-08-07  9:09   ` Krzysztof Kozlowski
2024-08-07  9:15     ` Ivaylo Ivanov

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=a29c1c92-0f22-4fe3-a965-8561f6dba059@kernel.org \
    --to=krzk@kernel.org \
    --cc=alim.akhtar@samsung.com \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=ivo.ivanov.ivanov1@gmail.com \
    --cc=krzk+dt@kernel.org \
    --cc=linus.walleij@linaro.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-gpio@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-samsung-soc@vger.kernel.org \
    --cc=robh+dt@kernel.org \
    --cc=s.nawrocki@samsung.com \
    --cc=virag.david003@gmail.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 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).