linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
From: cov@codeaurora.org (Christopher Covington)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH v10 4/6] ARM: add vdso user-space code
Date: Fri, 20 Feb 2015 16:52:16 -0500	[thread overview]
Message-ID: <54E7AC90.40209@codeaurora.org> (raw)
In-Reply-To: <loom.20150218T122348-60@post.gmane.org>

Hi Venkappa,

On 02/18/2015 07:12 AM, Venkappa Mala wrote:
> Catalin Marinas <catalin.marinas <at> arm.com> writes:
> 
> 
>> I highly doubt you are having a problem with [1] since you mentioned
>> Cortex-A7 which falls under [2]. If you have a _processor_
>> implementation with generic timers but no Hyp, as per the ARMv7 ARM 
> the
>> CNTVCT == CNTPCT, otherwise it is a CPU bug.
>>
>> What you actually have is [2] but without code to initialise the Hyp
>> mode. If your kernel is running non-secure, sane Hyp registers
>> initialisation is mandatory even when the kernel does not boot in Hyp.
> yes, cortexA7 is falling under [2]. i.e. my mistake. Thanks for the 
> correction.
> 
>> Even for the kernel, this should be the case unless
>> "arm,cpu-registers-not-fw-configured" is passed in the DT (this was
>> really only meant as workaround for broken firmware; I think
>> Documentation/arm/Booting needs to be updated with the state of the
>> generic timers on entry).
> It will be good and it helps a lot if it updates.
>  
>> IIRC there were some discussions about Linux booting in secure mode on
>> ARMv7 with no firmware to initialise the Hyp registers. If that's the
>> case for you, we could restart that discussion and try to initialise
>> CNTVOFF in the kernel running in _secure_ mode (possibly with some CPU
>> notifiers in the generic timer code).
> My test environment is like CNTVOFF initialization is not taken care in 
> the firmware, HYP mode is disabled and kernel is booted with Secure SVC 
> PL1 mode. As you have mentioned about restarting the thread, perhaps, it 
> will be good to have a discussion in the following  thread rather than 
> restarting the thread.
> arm: Handle starting up in secure mode
> https://lkml.org/lkml/2014/9/16/552
> 
> May I know your opinion about this one?

Catalin pointed out that accesses to NSACR may trap. I have not yet found a
reason why trying to write to CNTFRQ wouldn't work. Peter pointed out that
VBAR can't be used on systems without the security extensions, so something
has to be changed there as well.

In the long term I may be able to post an updated version, but I have no idea
how long that might take. In the short term feel free to CC me on any related
work you do, which I might be able to review, test, or both.

Chris

-- 
Qualcomm Innovation Center, Inc.
The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum,
a Linux Foundation Collaborative Project

  reply	other threads:[~2015-02-20 21:52 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-09-22 19:17 [PATCH v10 0/6] ARM: VDSO Nathan Lynch
2014-09-22 19:18 ` [PATCH v10 1/6] ARM: use _install_special_mapping for sigpage Nathan Lynch
2014-09-22 19:18 ` [PATCH v10 2/6] ARM: place sigpage at a random offset above stack Nathan Lynch
2014-09-22 19:18 ` [PATCH v10 3/6] ARM: miscellaneous vdso infrastructure, preparation Nathan Lynch
2014-09-22 19:18 ` [PATCH v10 4/6] ARM: add vdso user-space code Nathan Lynch
2015-02-13  4:36   ` Venkappa Mala
2015-02-13 10:54     ` Catalin Marinas
2015-02-13 12:01       ` Venkappa Mala
2015-02-13 14:14         ` Catalin Marinas
2015-02-13 14:56           ` Venkappa Mala
2015-02-13 15:32             ` Catalin Marinas
2015-02-18 12:12               ` Venkappa Mala
2015-02-20 21:52                 ` Christopher Covington [this message]
2015-02-24 10:17                   ` Catalin Marinas
2015-02-25 16:56                     ` Christopher Covington
2015-02-25 17:17                       ` Catalin Marinas
2015-02-16 20:05     ` Nathan Lynch
2015-02-19 12:26       ` Venkappa Mala
2014-09-22 19:18 ` [PATCH v10 5/6] ARM: vdso initialization, mapping, and synchronization Nathan Lynch
2014-09-22 19:18 ` [PATCH v10 6/6] ARM: add CONFIG_VDSO Kconfig and Makefile bits Nathan Lynch

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=54E7AC90.40209@codeaurora.org \
    --to=cov@codeaurora.org \
    --cc=linux-arm-kernel@lists.infradead.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).