Received: by 2002:ab2:1149:0:b0:1f3:1f8c:d0c6 with SMTP id z9csp646932lqz; Sat, 30 Mar 2024 12:16:50 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWYKNAtNGrJqdSh43grE59evnu3736+HqHyYIc1r3G+4q2FSaCGRVQrdXPhvh69I6tlIJ2LsgWy2OhkxzeImKN9pYyRHuCZE18Pg67ehQ== X-Google-Smtp-Source: AGHT+IFkz6kGiP05l853jmRrge9pegf5EYwZz8KacaDRseE68mBa0+2vQC87bb1R8dHrrsuB2pL5 X-Received: by 2002:a05:6a20:548e:b0:1a7:c63:add2 with SMTP id i14-20020a056a20548e00b001a70c63add2mr2328755pzk.10.1711826209839; Sat, 30 Mar 2024 12:16:49 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711826209; cv=pass; d=google.com; s=arc-20160816; b=Ci/UWyWEpdLJw40TVhsLmRa0Xq+gsGoRAAUvhRc8h1QQ9uBYojrE1a7WP1rhpQ7y0j PkYxlHw3Clqyy1jLs2Y6qTdJPEJtY22sdu8Im8VS7Mpxl6BlLMngMCHah3/Mouy/Pf64 K+ttfeDB3aIPAovR+hngMakPswB8pmR4FWnpxQiA+6G4jyBJ42+3jCqctFGZk3B9BgxQ UAWEUrnmwYHOC/G++fuzpgAnl49uV5cp5KCSdlrGbQGRwPSf1QtodtN3imHPbhrvVKFe KjL5IgbMei0Qe2YjYe3aTJ/JHkj2zDJM6L8gBgENtfP6BZ70ptqTwvNvwG2ekoDw7bnF h7zw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:subject:message-id:date:references:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:in-reply-to:from :dkim-signature; bh=AzNO0eylLRmxl5CKnUgMEhP824tSUajOLCWbmq5S9Gk=; fh=EOjx10/ffN5yl/WXR5qoBKLT8vJWTMHNjYTbca/T5v0=; b=ot105CCyLHJwFPI9JkHVKdNjEcO8HTyuWLIen6gbFEWMyGHZCC4DyVwuP9dsK1wN6B gR13xdg2Ma0DldZ/Ya425jyZBLp7Go+Tig8SCH4ceVzjjH2jkNdvqZGUopMO8p3+k2Yn nwNCrCxWNqMC9xsLZd69XmiMwVk+p8wRx2XbvPa9/lifnUWWwYEBxzlFgqiSFtQTcwED D5AdtiQfRdGkPBxQzN4JJ3ZoWEJHfuv4Rsy2mVQDmfx5h74mFJuCpWLgfgh7rdat/ypx v9mAthWrSszgJDNfR3qxDgvTCBapG+q6fo/PvcfBCCUvQXNFAL22TOxiY1FvipJikMwv es7Q==; 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=qmNRCtzQ; arc=pass (i=1 dkim=pass dkdomain=bgdev-pl.20230601.gappssmtp.com); spf=pass (google.com: domain of linux-kernel+bounces-125823-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-125823-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id z21-20020a63e555000000b005bd27be66e1si6035737pgj.719.2024.03.30.12.16.49 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 30 Mar 2024 12:16:49 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-125823-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@bgdev-pl.20230601.gappssmtp.com header.s=20230601 header.b=qmNRCtzQ; arc=pass (i=1 dkim=pass dkdomain=bgdev-pl.20230601.gappssmtp.com); spf=pass (google.com: domain of linux-kernel+bounces-125823-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-125823-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 7A7902823FD for ; Sat, 30 Mar 2024 19:16:49 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1A9C14176B; Sat, 30 Mar 2024 19:16:43 +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="qmNRCtzQ" Received: from mail-lj1-f171.google.com (mail-lj1-f171.google.com [209.85.208.171]) (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 76E8F1FB2 for ; Sat, 30 Mar 2024 19:16:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.171 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711826202; cv=none; b=jLfrIt7QqZeU8nV4j+L2ocOXgn6b0UsPR8rZAJolOnmdbeN3D8Zm1giSns65DzvXO+oCSH1G3/YEKfAf1XflX567fOifZw52ouC5mYPYovwRb+UmqjcxFYHcRA1DBGpdvpl1K0bCp1IT1npPWJy5FWCqErN8yDtLXUoLBSeFk34= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711826202; c=relaxed/simple; bh=PQzYSWdGRZ4cP6dDQDh9zJNjx7idEEFn4m16bjTIUgQ=; h=From:In-Reply-To:MIME-Version:References:Date:Message-ID:Subject: To:Cc:Content-Type; b=BcSnppYGQGOWJRBSfLGg5SKX8P99zpK1CGmiowqq6lIUBCzb4EVyT3XNMlqXxcjX+4/F8tXla9oyUrGhqzSQDOsA5VKRDgTTTxPnJ0GsCg84i1Mlfoxikea8Q+9s+/xRykx0K/csZUihZO9ulHQ9FONwJ7NpwSvFg/xbtzKMrNY= 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=qmNRCtzQ; arc=none smtp.client-ip=209.85.208.171 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-f171.google.com with SMTP id 38308e7fff4ca-2d109e82bd0so36866971fa.3 for ; Sat, 30 Mar 2024 12:16:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20230601.gappssmtp.com; s=20230601; t=1711826198; x=1712430998; darn=vger.kernel.org; h=cc:to:subject:message-id:date:references:mime-version:in-reply-to :from:from:to:cc:subject:date:message-id:reply-to; bh=AzNO0eylLRmxl5CKnUgMEhP824tSUajOLCWbmq5S9Gk=; b=qmNRCtzQ4TlZgMH9rV8P4aNkkaD618EiJK30N8EMak4Lvpk5SQ/mzg+5+uVRjm6zAO gSseMDaSYsz8oZv+gWq0LBFDCfRjVfW2hyLWfWPKZSrzvCDjLEVrLSq8QO+L+UM96qlf RK6nUUInRsM4iky1vMZgnV9z32awsM6/Ihwhnq/pK3zwh2pW7ls8xD54qlKAfnT7jr8F xZUGAYo3q5/+kgJHhtnbpOyEFkdeBhjeXqdMeAOQNpoaFl9rT/OUrZzG4VWeyPg0qhfz 3wnK/LY1/4WK10zlgM2/VvbHFC4I7gjNJ1icrogVIyM497JOfcFLzKXmsmNAFnSaZWSi cEMw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1711826198; x=1712430998; h=cc:to:subject:message-id:date:references:mime-version:in-reply-to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=AzNO0eylLRmxl5CKnUgMEhP824tSUajOLCWbmq5S9Gk=; b=PaAkxhFcVeGUVuG1hzlB9YRJx3XuWc4JOhpuezn9tTcs2JOI4HvspSstOaxVKgl5iK XF9dCVw8bivKVEicglDnN7YIcAp47PvqWDxmaiFg+g7uPJrG3hChNuJc2X9H0XNo7Rxg xw4pfXg8zLW3V7X6fmyD49EsLqQoCA8WooiTH3LKg7JwrYvJRDgfdsnKrYPpfDHntz+u 9u6hHbYJ0Phmv8IWyfhHc/6owXnYt9Tug06KQEkBKPSFSqyTAkBnuycPaC8I/NcrbIbL mvxHaS1Noq0UzaslzsGAPMz4YkdvH60woj1bTf2Ev6yDzeJn0V0uqBRAf1bwnB/WYI+F cmvg== X-Forwarded-Encrypted: i=1; AJvYcCWHkdt+EdJpKOjpqLsQnLynybxHVx+q3OYbEWi2IUSxaZsSptUNHjrG3fCzL/VSXmZ948/JcfyZH/UMUAwo8jFaALLJQKFN8O7yLobb X-Gm-Message-State: AOJu0YwC01Lj/cjrIiP9adz+w46DQHEjodwCt81Frx1y+jLLjRqbreGZ TsSq1DZfNPWDKzV+BQMkOQH9y4+p5dLSr5PAWhhQ6lzz79foJt5fu+rfpUKwQM5PrHA3J9vb/QI pneibesU+MnctYrGDLglD1Gmf8DnZvu5vH3LHcw== X-Received: by 2002:a05:651c:20c:b0:2d4:5d3e:9650 with SMTP id y12-20020a05651c020c00b002d45d3e9650mr3886410ljn.43.1711826198066; Sat, 30 Mar 2024 12:16:38 -0700 (PDT) Received: from 969154062570 named unknown by gmailapi.google.com with HTTPREST; Sat, 30 Mar 2024 12:16:37 -0700 From: Bartosz Golaszewski In-Reply-To: <9db0fc7b-f24a-4d76-b8bd-ec577ecba0c6@gmail.com> 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> Date: Sat, 30 Mar 2024 12:16:37 -0700 Message-ID: Subject: Re: [PATCH v9 00/13] firmware: qcom: qseecom: convert to using the TZ allocator To: Maximilian Luz Cc: Bartosz Golaszewski , 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" 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=y (and the upcoming fix) everything >>>>> works. With CONFIG_QCOM_TZMEM_MODE_SHMBRIDGE=y things unfortunately >>>>> 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 me, >>> 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=y and booting. > > I am currently testing it on top of a patched v6.8 tree though (but that > 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 time. However it's true that with SHM bridge it gets to: mount: mounting efivarfs on /sys/firmware/efi/efivars failed: Operation not supported and stops 100% of the time. Without SHM bridge I cannot boot it either because 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