Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1472839
| From | Andy Gross <andy.gross@linaro.org> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH 1/2] arm64: kernel: Add SMC Session ID to results |
| Date | 2016-08-30 22:20 +0200 |
| Message-ID | <sbXFM-1b9-23@gated-at.bofh.it> (permalink) |
| References | (2 earlier) <s8XLY-6Xy-11@gated-at.bofh.it> <s8Y5j-7jf-13@gated-at.bofh.it> <s8YRH-7Bq-11@gated-at.bofh.it> <s97UZ-53o-3@gated-at.bofh.it> <s9hhE-2L7-31@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On Tue, Aug 23, 2016 at 11:38:41AM +0100, Lorenzo Pieralisi wrote: > On Mon, Aug 22, 2016 at 05:38:31PM -0700, Stephen Boyd wrote: > > [...] > > > This all comes about because the firmware generates a session id > > for the SMC call and jams it in x6. The assembly on the > > non-secure side is written with a tight loop around the smc > > instruction so that when the return value indicates > > "interrupted", x6 is kept intact and the non-secure OS can jump > > back to the secure OS without register reloading. Perhaps > > referring to x6 as result value is not correct because it's > > really a session id that's irrelevant once the smc call > > completes. > > Sorry I missed this bit. The session id is _generated_ by secure > firmware (probably only when the value passed in x6 == 0 (?)) > and actually returned to the caller so that subsequent (interrupted) > calls can re-issue the same value, is that correct ? > > If that's the case the value in x6 is a result value from an SMCCC > perspective and your current FW is not SMCCC compliant. > So is Will's solution to this ok? If so I will respin with the minor change to get it working and resend. If not, do I roll my own smccc wrapper? Regards, Andy
Back to linux.kernel | Previous | Next — Next in thread | Find similar | Unroll thread
Re: [PATCH 1/2] arm64: kernel: Add SMC Session ID to results Andy Gross <andy.gross@linaro.org> - 2016-08-30 22:20 +0200 Re: [PATCH 1/2] arm64: kernel: Add SMC Session ID to results Will Deacon <will.deacon@arm.com> - 2016-08-31 16:40 +0200
csiph-web