From: Johan Hovold <johan@kernel.org>
To: Bartosz Golaszewski <brgl@bgdev.pl>
Cc: Johan Hovold <johan+linaro@kernel.org>,
Maximilian Luz <luzmaximilian@gmail.com>,
Bjorn Andersson <andersson@kernel.org>,
Konrad Dybcio <konrad.dybcio@linaro.org>,
Amirreza Zarrabi <quic_azarrabi@quicinc.com>,
Bartosz Golaszewski <bartosz.golaszewski@linaro.org>,
Elliot Berman <quic_eberman@quicinc.com>,
linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org,
regressions@lists.linux.dev
Subject: Re: [PATCH] Revert "firmware: qcom: qseecom: convert to using the TZ allocator"
Date: Mon, 29 Jul 2024 12:28:15 +0200 [thread overview]
Message-ID: <Zqduv66H2OczRgaH@hovoldconsulting.com> (raw)
In-Reply-To: <CAMRc=McuqEv1Sk9O6kn4aHo9wOfzskZS0z2QxzNM=q2N8XZ3zw@mail.gmail.com>
On Mon, Jul 29, 2024 at 12:03:55PM +0200, Bartosz Golaszewski wrote:
> On Mon, Jul 29, 2024 at 11:58 AM Johan Hovold <johan+linaro@kernel.org> wrote:
> >
> > This reverts commit 6612103ec35af6058bb85ab24dae28e119b3c055.
> >
> > Using the "TZ allocator" for qcseecom breaks efivars on machines like
> > the Lenovo ThinkPad X13s and x1e80100 CRD:
> >
> > qcom_scm firmware:scm: qseecom: scm call failed with error -22
> >
> > Reverting to the 6.10 state makes qseecom work again.
> >
> > Fixes: 6612103ec35a ("firmware: qcom: qseecom: convert to using the TZ allocator")
> > Cc: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
> > Signed-off-by: Johan Hovold <johan+linaro@kernel.org>
> > ---
> > Cc: regressions@lists.linux.dev
> >
> > #regzbot introduced: 6612103ec35a
>
> How about at least giving me the chance to react to the report and fix
> it instead of reverting it right away?
Lots of folks have been running linux-next on Qualcomm machines for a
month without reporting or fixing the issue. And v10 of the offending
patch was apparently never even tested before being merged.
I'm sure you'll have a few days to look at this before we revert.
I'll be on holiday for a few weeks, but you have an X13s so you should
be able to reproduce this yourself.
> Are there any other messages about SHM bridge/SCM calls in the kernel log?
I've also seen this combo:
[ 3.219296] qcom_scm firmware:scm: qseecom: scm call failed with error -22
[ 3.227153] efivars: get_next_variable: status=8000000000000007
But usually the first message is the only hint why efivars is completely
broken.
> Do you have QCOM_TZMEM_MODE_GENERIC=y or QCOM_TZMEM_MODE_SHM_BRIDGE=y
> in your config? If the latter: can you try changing it to the former
> and retest?
I have the former in my config but have tested both, made no difference.
> > It's a little frustrating to find that no-one tested this properly or
> > even noticed the regression for the past month that this has been
> > sitting in linux-next.
>
> I have tested many platforms and others have done the same but
> unfortunately cannot possibly test every single use-case on every
> platform. This is what next is for after all.
I doubt this is specific to sc8280xp and x1e80100. Which platforms did
you test qseecom and efivars on?
> > Looks like Maximilian may have hit this with v9 too:
> >
> > https://lore.kernel.org/lkml/CAMRc=Mf_pvrh2VMfTVE-ZTypyO010p=to-cd8Q745DzSDXLGFw@mail.gmail.com/
> >
> > even if there were further issues with that revision.
>
> This is a different issue that was fixed in a later iteration.
The symptoms appear to be the same once you get past the locking splats:
[ 2.507347] qcom_scm firmware:scm: qseecom: scm call failed with error -22
[ 2.507813] efivars: get_next_variable: status=8000000000000007
So it's possible that this never worked.
Johan
next prev parent reply other threads:[~2024-07-29 10:28 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-07-29 9:55 [PATCH] Revert "firmware: qcom: qseecom: convert to using the TZ allocator" Johan Hovold
2024-07-29 10:03 ` Bartosz Golaszewski
2024-07-29 10:28 ` Johan Hovold [this message]
2024-07-29 12:35 ` Bartosz Golaszewski
2024-07-29 12:49 ` Johan Hovold
2024-07-30 11:35 ` Bartosz Golaszewski
2024-07-30 11:51 ` Bartosz Golaszewski
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=Zqduv66H2OczRgaH@hovoldconsulting.com \
--to=johan@kernel.org \
--cc=andersson@kernel.org \
--cc=bartosz.golaszewski@linaro.org \
--cc=brgl@bgdev.pl \
--cc=johan+linaro@kernel.org \
--cc=konrad.dybcio@linaro.org \
--cc=linux-arm-msm@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=luzmaximilian@gmail.com \
--cc=quic_azarrabi@quicinc.com \
--cc=quic_eberman@quicinc.com \
--cc=regressions@lists.linux.dev \
/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