From: b.zolnierkie@samsung.com (Bartlomiej Zolnierkiewicz)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH v2 1/7] arm: firmware: Check firmware is running or not
Date: Mon, 02 Jun 2014 15:05:54 +0200 [thread overview]
Message-ID: <7579658.qxmXgWLkvU@amdc1032> (raw)
In-Reply-To: <538C7342.4000700@gmail.com>
Hi,
On Monday, June 02, 2014 02:51:14 PM Tomasz Figa wrote:
> Hi,
>
> On 02.06.2014 14:35, Bartlomiej Zolnierkiewicz wrote:
> > From: Kyungmin Park <kyungmin.park@samsung.com>
> >
> > To support multi-platform, it needs to know it's running under secure
> > OS or not. Sometimes it needs to access physical address by SMC calls.
> >
> > e.g.,
> > if (firmware_run()) {
> > addr = physical address;
> > } else {
> > addr = virtual address;
> > }
> >
> > call_firmware_ops(read_address, addr, &value);
>
> Hmm, I don't understand the code above. It first asks whether the
> firmware is available and then calls a firmware operation anyway
> (assuming that firmware is available regardless of the check above)...
>
> I don't like the idea of this function, because we have designed the
> firmware API to not require this kind of checks. Instead, you just call
> whatever firmware operation you need and if it returns -ENOSYS you need
> to fallback to legacy (firmware-less) way of doing it.
>
> Could you provide your use case for which this doesn't work?
Please take a look at patch #7.
Best regards,
--
Bartlomiej Zolnierkiewicz
Samsung R&D Institute Poland
Samsung Electronics
next prev parent reply other threads:[~2014-06-02 13:05 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-06-02 12:35 [PATCH v2 0/7] ARM: EXYNOS: cpuidle: fix AFTR mode on boards with secure firmware enabled Bartlomiej Zolnierkiewicz
2014-06-02 12:35 ` [PATCH v2 1/7] arm: firmware: Check firmware is running or not Bartlomiej Zolnierkiewicz
2014-06-02 12:51 ` Tomasz Figa
2014-06-02 13:05 ` Bartlomiej Zolnierkiewicz [this message]
2014-06-02 12:35 ` [PATCH v2 2/7] ARM: EXYNOS: add support for firmware-assisted c15resume Bartlomiej Zolnierkiewicz
2014-06-02 12:56 ` Tomasz Figa
2014-06-02 12:35 ` [PATCH v2 3/7] ARM: EXYNOS: add AFTR mode support to firmware do_idle method Bartlomiej Zolnierkiewicz
2014-06-02 13:01 ` Tomasz Figa
2014-06-02 12:35 ` [PATCH v2 4/7] ARM: EXYNOS: PM: replace EXYNOS_BOOT_VECTOR_* macros by static inlines Bartlomiej Zolnierkiewicz
2014-06-02 13:05 ` Tomasz Figa
2014-06-02 13:16 ` Bartlomiej Zolnierkiewicz
2014-06-02 16:13 ` Daniel Lezcano
2014-06-02 12:35 ` [PATCH v2 5/7] ARM: EXYNOS: PM: use c15resume firmware method if secure firmware is enabled Bartlomiej Zolnierkiewicz
2014-06-02 13:07 ` Tomasz Figa
2014-06-02 12:35 ` [PATCH v2 6/7] ARM: EXYNOS: PM: fix register setup on EXYNOS4x12 for AFTR mode code Bartlomiej Zolnierkiewicz
2014-06-02 13:10 ` Tomasz Figa
2014-06-02 12:35 ` [PATCH v2 7/7] ARM: EXYNOS: cpuidle: add secure firmware support to " Bartlomiej Zolnierkiewicz
2014-06-02 13:15 ` Tomasz Figa
2014-06-02 13:40 ` Bartlomiej Zolnierkiewicz
2014-06-02 16:28 ` Daniel Lezcano
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=7579658.qxmXgWLkvU@amdc1032 \
--to=b.zolnierkie@samsung.com \
--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