Received: by 2002:ab2:1149:0:b0:1f3:1f8c:d0c6 with SMTP id z9csp1952899lqz; Tue, 2 Apr 2024 02:48:28 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUq6mdk6FYih2IxM8wRusdXClEm9Oz0dXZDs+WRxNLx+WoRYmOd3CzTmSjeyN61ZxGopjnabxClR4qc+jjFWv7GxPepmV8SCwWs/TK14Q== X-Google-Smtp-Source: AGHT+IFbuZ11zyd4s4zFhzH/srEwiCjIKkHe5gUTsKC7Bul3fhXNwreOEGkUaLseEX2Czw1jD5zn X-Received: by 2002:a05:6a00:1703:b0:6ea:d17f:ae9e with SMTP id h3-20020a056a00170300b006ead17fae9emr15948898pfc.4.1712051308603; Tue, 02 Apr 2024 02:48:28 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712051308; cv=pass; d=google.com; s=arc-20160816; b=gO73gE3z/54yGlyAZgxxXISPFf8NCJrexkVTEMCCZah2f62CruCM90stWX+frDWdup 1UZtRvzZaA2Ph9XUQTpRrguRwJafxuFwoJ4LPT4nvFkJzTHtCf1pcO08keONfhM+OpsX inkCD0yQK/O9gA8K9EiiP/sjt3XhBeYRaII+JRdblA6/RMLy5QozIsu12VFnJkOhQcac ll9HFGi2MfxwvJgh4uLLjsopdn37UcISLYrCPv0Lz57RldFFTX4jtmVTjaj065wQNt7o ff9DDgMj6u0xooc8ltpfq1QMRR0JGTcuLup93vxMIex/0KTiA2U3tL/M81rm/p97vxpe LBYQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=q3IzUDTGA+qb6viFGbq1/XCjFFQY+f33uVg0Jns5ZNU=; fh=0gzaUhzAYX/qowNkDODPq6z0bvywRd7Qfxw3fJ+o45M=; b=CdxQpPhHOxpOUlB5fi1YxrPRj3k2oGbsQePE+xNg0mS8J/EfbGS/+4nhmXShPV2ol/ NXylP4MxB9zDYbO7dazJpRSzihV8w2Tti9ZdfPVJOWf9GTeJDLYqSBEB/HPGnplYiS35 uYGcLUBiJdGgCiSU9XRCEZ+hnFk0Z28W1Uq+qiDpu2DWS14ea3q2EdECgWtc+Rb4egCk HJye1iA4SpXmoj67ZLsgMT6ydDO6OypKeX7qrivD5S6h332tpZ0DjyKDeRCnpHh87O7d B1gSC4ukcEECtpkkgb7XAIcMZP0CnQiGuq236u8X48JFqXkfeIHiKBsSv9r6XiyYXfU1 wKOg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@bgdev-pl.20230601.gappssmtp.com header.s=20230601 header.b="i/GPU6/P"; arc=pass (i=1 dkim=pass dkdomain=bgdev-pl.20230601.gappssmtp.com); spf=pass (google.com: domain of linux-kernel+bounces-127575-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-127575-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id o20-20020a637314000000b005d8e352afefsi11013729pgc.695.2024.04.02.02.48.28 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 02 Apr 2024 02:48:28 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-127575-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@bgdev-pl.20230601.gappssmtp.com header.s=20230601 header.b="i/GPU6/P"; arc=pass (i=1 dkim=pass dkdomain=bgdev-pl.20230601.gappssmtp.com); spf=pass (google.com: domain of linux-kernel+bounces-127575-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-127575-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 54907B21033 for ; Tue, 2 Apr 2024 08:44:55 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E9A7145948; Tue, 2 Apr 2024 08:44:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bgdev-pl.20230601.gappssmtp.com header.i=@bgdev-pl.20230601.gappssmtp.com header.b="i/GPU6/P" Received: from mail-lj1-f177.google.com (mail-lj1-f177.google.com [209.85.208.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 40B4E3FB14 for ; Tue, 2 Apr 2024 08:44:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.177 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712047485; cv=none; b=qPrvNvP920v0wffs0JqESI7QOmyjnUbXwjwHDy9zLGOfOveLWMDHBmx0+YOFyh1kloagM0eI0uNsAjk+06abVwbe/IiAEU49XrRGX30Jn+3gkKhdVflir9MZt+Lgqp/+6zr0trv3QKX+djm7o0xMAzfs18PLq4esRuzQnadkQNU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712047485; c=relaxed/simple; bh=zcYPc3kIDg6rlnh2gZjjeIvpIPzvaeFy4b1q5o+QnUA=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=VH4J1hRp4+VvObEKZr/zNBFLlf1QRzQSJsqVc/JaMmR2tDEZRwMXK9RGQbZ2rwto+gQvdRk3fHjMV+hZB2w6RywNs2ZgnTN/se3gL9qBbLISIVIZxOaDo2LqhJWddc4Z6f0p3k/2szNwqkXz9dFJNn284fac50hvf7QzHoUgDQk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=bgdev.pl; spf=none smtp.mailfrom=bgdev.pl; dkim=pass (2048-bit key) header.d=bgdev-pl.20230601.gappssmtp.com header.i=@bgdev-pl.20230601.gappssmtp.com header.b=i/GPU6/P; arc=none smtp.client-ip=209.85.208.177 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=bgdev.pl Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=bgdev.pl Received: by mail-lj1-f177.google.com with SMTP id 38308e7fff4ca-2d52e65d4a8so68309931fa.0 for ; Tue, 02 Apr 2024 01:44:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20230601.gappssmtp.com; s=20230601; t=1712047482; x=1712652282; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=q3IzUDTGA+qb6viFGbq1/XCjFFQY+f33uVg0Jns5ZNU=; b=i/GPU6/PwF05cXrBInMN32uDAecOmqunsSopmS7f2fLx/OBCz3G1VAkP0LnVoD607v p+xtEvySzVcPnyDOLLmhRY4kBFmNkESzSuX9FpUupZweABiGd8PR0c7/lnZnxfq0VQNt PC7+ZPklPJSuuPQR+aLjKMTxIPt2mzEyulW+gfAxblF7eiVWeOTRHO6FFrg+1BSCUOcL Lbn48bawRY5XmNfHfk+nzBtClwohr6eRI0EWrAM9qZIrkldq5MLuyWtLpDPiH51Ublpv iFA9SZGYrhdHb6kXPRoXvN9iBiDk3dvtPAV8+qCglbChIkq1pi3xbz8UVQ1q6qducfJP iBxA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712047482; x=1712652282; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=q3IzUDTGA+qb6viFGbq1/XCjFFQY+f33uVg0Jns5ZNU=; b=QM0ijFnn1WcP1dD4bqapgwR44N/hpCigTWVT/A29FtnGMTR9luD9rpktAaIXxagjkl 54ODh6jyoA78rFkIcti/PMQVA/be/W3OX5MjitJzaOkD6FZM8m61T9tAli9L1ryVKr74 mqCmQOaJYHII/jAnfQ6pU3LeDHctWUYBCuhD4VQ9O3Ph+kk6R6slrOewY5yzmXko86NU 7OyINDmRE9/FzU2/9pS4PINdjfyT8zFP/BoaWfpa6JzGOMJm82Sf9tBQn6XrX9e2wuGH unC60KHUDBY/Jsd8OfbhcVUYqUSjtOl+bM3WM/Y+7pHeVQJjQBXhY5sqE83ueZNcOFD4 Qhpw== X-Forwarded-Encrypted: i=1; AJvYcCWwGBd+GkWS4rt57IJ4J/T/oOFpvoWmFjGi25g9trOVzNHvnCE3Z+BaWpX8ociqNdYONTNIPs83Z5yX4IlGQR+FYU5ojohLuOofGTS/ X-Gm-Message-State: AOJu0YxS94zm/mtWnqppMacfN9ZEtAhgNWVQ/xiyNyCsgkH3F1mhciyF EowlZ1hzO4cGJeY7VVgRTyi5Fk7kkAhSdkxJPo+Y7WpuupwtV+JOeZyKNTUKLcIBIaLlVSclza7 RzbH/8sDiTPBXW4asAEzm3eBlDnAVbgLXT5kmJA== X-Received: by 2002:a2e:9d97:0:b0:2d8:2422:c1d3 with SMTP id c23-20020a2e9d97000000b002d82422c1d3mr1876534ljj.44.1712047482269; Tue, 02 Apr 2024 01:44:42 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240325100359.17001-1-brgl@bgdev.pl> <56e1c63a-4c09-4d92-9ef2-aad5390879cc@gmail.com> <82f94b54-82d1-49b9-badf-63d948b347fc@gmail.com> <97e1f121-9e84-4e63-9c9c-57e2de0b29d7@gmail.com> <2b1dc031-d645-494c-9103-a2bb422ea60b@gmail.com> <9b1e5ea0-bb32-4c42-b2e9-204bde31b905@gmail.com> <9db0fc7b-f24a-4d76-b8bd-ec577ecba0c6@gmail.com> In-Reply-To: From: Bartosz Golaszewski Date: Tue, 2 Apr 2024 10:44:30 +0200 Message-ID: Subject: Re: [PATCH v9 00/13] firmware: qcom: qseecom: convert to using the TZ allocator To: Maximilian Luz Cc: Andy Gross , Bjorn Andersson , Konrad Dybcio , Elliot Berman , Krzysztof Kozlowski , Guru Das Srinagesh , Andrew Halaney , Alex Elder , Srini Kandagatla , Arnd Bergmann , linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, kernel@quicinc.com, Bartosz Golaszewski Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Sat, Mar 30, 2024 at 8:16=E2=80=AFPM Bartosz Golaszewski = wrote: > > On Fri, 29 Mar 2024 20:57:52 +0100, Maximilian Luz said: > > On 3/29/24 8:46 PM, Bartosz Golaszewski wrote: > >> On Fri, 29 Mar 2024 at 20:39, Maximilian Luz = wrote: > >>> > >>> On 3/29/24 8:26 PM, Bartosz Golaszewski wrote: > >>>> On Fri, 29 Mar 2024 at 20:22, Maximilian Luz wrote: > >>>>> > >>>>> On 3/29/24 8:07 PM, Bartosz Golaszewski wrote: > >>>>>> > >>>>>> Both with and without SHM bridge? > >>>>> > >>>>> With CONFIG_QCOM_TZMEM_MODE_GENERIC=3Dy (and the upcoming fix) ever= ything > >>>>> works. With CONFIG_QCOM_TZMEM_MODE_SHMBRIDGE=3Dy things unfortunate= ly > >>>>> still get stuck at boot (regardless of the fix). I think that's > >>>>> happening even before anything efivar related should come up. > >>>>> > >>>> > >>>> This is on X13s? I will get one in 3 weeks. Can you get the bootlog > >>>> somehow? Does the laptop have any serial console? > >>> > >>> Surface Pro X (sc8180x), but it should be similar enough to the X13s = in > >>> that regard. At least from what people with access to the X13s told m= e, > >>> the qseecom stuff seems to behave the same. > >>> > >>> Unfortunately I don't have a direct serial console. Best I have is > >>> USB-serial, but it's not even getting there. I'll have to try and see= if > >>> I can get some more info on the screen. > >>> > >> > >> I have access to a sc8180x-primus board, does it make sense to test > >> with this one? If so, could you give me instructions on how to do it? > > > > I guess it's worth a shot. > > > > From what I can tell, there shouldn't be any patches in my tree that > > would conflict with it. So I guess it should just be building it with > > CONFIG_QCOM_TZMEM_MODE_SHMBRIDGE=3Dy and booting. > > > > I am currently testing it on top of a patched v6.8 tree though (but tha= t > > should just contain patches to get the Pro X running). You can find the > > full tree at > > > > https://github.com/linux-surface/kernel/tree/spx/v6.8 > > > > The last commit is the fix I mentioned, so you might want to revert > > that, since the shmem issue triggers regardless of that and it prevents > > your series from applying cleanly. > > > > Best regards, > > Max > > > > sc8180x-primus' support upstream is quite flaky. The board boots 50% of t= ime. > However it's true that with SHM bridge it gets to: > > mount: mounting efivarfs on /sys/firmware/efi/efivars failed: Operation n= ot supported > > and stops 100% of the time. Without SHM bridge I cannot boot it either be= cause > I suppose I need the patch you sent yesterday. I haven't had the time to > rebase it yet, it's quite intrusive to my series. > > I can confirm that with that patch the board still boots but still 50% of= the > time. > > Bart Hi! I was under the impression that until v8, the series worked on sc8180x but I'm seeing that even v7 has the same issue with SHM Bridge on sc8180x-primus. Could you confirm? Because I'm not sure if I should track the differences or the whole thing was broken for this platform from the beginning. Bart