Received: by 2002:ab2:7a55:0:b0:1f4:4a7d:290d with SMTP id u21csp237882lqp; Thu, 4 Apr 2024 11:37:25 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXPl+4SGk19MfV+kObqFGj3lc/SVvJMAoWhjRdUztQj8CJ48V28hx8+T3lD0gR82X0YN8smY3AfCGfBcPAEbAfxGqaI7nApXvkd59oIbA== X-Google-Smtp-Source: AGHT+IHY1DzplBjpFP1cU44YUQ0VoH8lh3tPETZRhGKJE2e/qOemcFg11EoN+mJEWhIw7uErhSSw X-Received: by 2002:a17:903:4283:b0:1e0:a805:4885 with SMTP id ju3-20020a170903428300b001e0a8054885mr2629554plb.50.1712255844850; Thu, 04 Apr 2024 11:37:24 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712255844; cv=pass; d=google.com; s=arc-20160816; b=XmixNdSSJSsDBd283cuusylIp/c5Xz+xSnDVV03ix96BYfEDN4OMruMR5qihoSrb4g YK8tuQQ9S11hikhs2/55zQYViuL3a+BrurOO4z1bfwXw8AaO8ZxdBqBHi7xHC3Esy4Xw ZzXSVu6xl0yQbEd0YWWZR6CtiYInFN9w5yWJP1gdCk7Qq5NcZeEpSX2LbNXHYCAY6WZz 0gOBWh0c8HrpH2tyhbtAFuhl4g+ENZog+saKFJSYHDM7hQNzX+o2oV+PW/Yj/WJJTPJ5 9tfYgfU0hZPu7yjlMzgyUjjodHjbP9kne3qoPIGnBvi4qEmtflkEI4nked8397OejfoN ks8Q== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=TKZ76EB+xPDP2hiO+m9b6JZfXv6mCVaRqGHumTmPatc=; fh=+r0TIjTceHzachntUBy3A1MOxnNj7SAIHUOJ1XCrd0Y=; b=UefavPEPj8zu1iRIrZTPoITzt/5Ej2JjmJYxvySPwpJItWirIhbmDrJ2yOH9Vb1Z4y u0MIX+ryRG5VSahdgqA2idfgYUiSMb7Ss5hOKIBbj4hqnQ75hjPHg0yu/+q37xTHTIDR bY7SSyOA9v9pOf2q9l0wpewX5y13Yw7ioy1iOV7+ul1z96RREQZC9bR/N9gKGbI0YmKp 4nNa+1Vy6bjiTV/pFN2dN3NeAvWhp3u7dDMsmtAAtYHm9SVkknV++2CulB0ghw8PQQIL f302CQuF7vJjVbA4Hd6dEStLhPZyM4nEznNVLjphpNLKbA3jHi5eqAoJmjY0MFZ3XroJ tjEQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=Q7L031P6; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-131969-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-131969-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id b17-20020a170902e95100b001dde10a6b04si16071540pll.187.2024.04.04.11.37.24 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 04 Apr 2024 11:37:24 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-131969-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=@gmail.com header.s=20230601 header.b=Q7L031P6; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-131969-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-131969-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com 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 80CC628AA3A for ; Thu, 4 Apr 2024 18:37:24 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id BFA881339AB; Thu, 4 Apr 2024 18:36:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="Q7L031P6" Received: from mail-lj1-f178.google.com (mail-lj1-f178.google.com [209.85.208.178]) (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 E9E8C1327FD; Thu, 4 Apr 2024 18:36:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.178 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712255769; cv=none; b=ZenDZ3iCOwRTI/9mDUEvVtkRfdzBadJLomw1ZgjcToda5eYfKqd0GCkH+1dA5aZf7eAV2IxPCpC7B3GGoMASETvUM9q+fL56KxLoevZWEug17AvBUJHd/pZEurRqjGC9bWs7HZVHw9z5ZthybQZ0PibN5K4hyDJR0x7qBq8pwoQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712255769; c=relaxed/simple; bh=Z/1fyCo41lS+AmGEgJmU2z5lD/1fcc9M1Qe0AELx5Gg=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=bO5s79QjxK3rnkCDGvu1Oa6imfQiIQlOkzFoVlyvSM8gzPcmF5R+O0Utmkthd0TjRrWfJY42HEkmdnn1L+mv6egFKNK07WYM5RHczQDj9d4n2oUBivdLrXjigul+Wo3vDeeX8zKDktdL+fT8pUnJ/3L/sGmD0NHVxJSy0H7joVY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=Q7L031P6; arc=none smtp.client-ip=209.85.208.178 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-lj1-f178.google.com with SMTP id 38308e7fff4ca-2d848973b57so16894491fa.3; Thu, 04 Apr 2024 11:36:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1712255766; x=1712860566; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=TKZ76EB+xPDP2hiO+m9b6JZfXv6mCVaRqGHumTmPatc=; b=Q7L031P63FNKJuYlQvrDosH2d2tin3HU3bykLuvrbAbaWyh7TzOX5s6hRWHRtHQ10o /g1bxJ+vnoDOgG/gFsQf34960vCfQFH6hwnQP7oda2H8Dl7jh8B5+YeO//EyXNAvOd2O 4eIM32E+OHHlQDcw/GHUHck9rRMg0zCZcliQXs32zeamG75JlIC3wyYFxPhO3sjMLATU xlkoueKIsiEjrrciX3Nmv7BOT6rnfhb1Svf/3dsElZwSEX2fHEg44d++4MvUDy72mTgB ByGi/iFttwNXdLbJnn98/54adBmVVsebSkSbfEmilmOrByRUdY3EtdzOCupD/dkY6pJH Jrag== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712255766; x=1712860566; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=TKZ76EB+xPDP2hiO+m9b6JZfXv6mCVaRqGHumTmPatc=; b=GZFr8dJU+ploJvdP5JSVBkMVtioCajx1aluMwqQ+yIlCBxng9eYP9m3kQmcl4hzyHw 267m+nPG6jD0qPZm9Lbk9O4/VAFmjDwaTw3ialkKTVwopF8y2z0rVRqSy1gKNyMYX8Xm 311CBnVw39fTMyaCgsiOfMbXLFam/XsTiAeNiEAkqSg94cVWrzKJNC7hL0r0JoqkQqRK yQuYxgnSeq8EwAlsg2B7uDlTOnLSeowuUNYm8ZYnDSECHuBHrwHizH450S1zA+5bp2F3 4SXXqX7zhcgjuuL1MSuEm4V4YpMh2JckCcShjZD+4MlEccuf4GwZzIG+ZocqcWrm2rT7 Wz+g== X-Forwarded-Encrypted: i=1; AJvYcCVtWeSvuwoOmGAl+BHSAn5Zhb6dK+5T4lky+S2rWEERYC1DIEZxqCPcy2myWy5/sg3jBIJXJ45ukVpa9Pa3xoDEGEW4Bzeg9WYaFz+qT0jOgMbkKyy9+T548gfkCwSghXD6Y3EOecmhjQYXZg== X-Gm-Message-State: AOJu0YyFHhl+DT3eYuZ44j33uGqGxOCnldXGNNiicJgyGDzoHdGTBvjc qBAbYPY97jiUr8DOp9Ph58CoKZ4iqniGVT3QvydAlEHOzaK+3moN X-Received: by 2002:a2e:9141:0:b0:2d7:10a1:481e with SMTP id q1-20020a2e9141000000b002d710a1481emr2536459ljg.31.1712255765826; Thu, 04 Apr 2024 11:36:05 -0700 (PDT) Received: from ?IPV6:2a02:8071:b783:140:927c:82ba:d32d:99c1? ([2a02:8071:b783:140:927c:82ba:d32d:99c1]) by smtp.gmail.com with ESMTPSA id hn3-20020a05600ca38300b004162b578d8bsm67368wmb.1.2024.04.04.11.36.04 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 04 Apr 2024 11:36:05 -0700 (PDT) Message-ID: Date: Thu, 4 Apr 2024 20:36:03 +0200 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v9 00/13] firmware: qcom: qseecom: convert to using the TZ allocator To: Bartosz Golaszewski 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 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> Content-Language: en-US From: Maximilian Luz In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit On 4/2/24 10:44 AM, Bartosz Golaszewski wrote: > On Sat, Mar 30, 2024 at 8:16 PM 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=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 > > 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. Hi, sorry for the delay. Unfortunately I haven't had the time to test anything since v3. I don't remember all the details, but based on what I wrote back then, enabling the SHM bridge option did not lead to this result. I can try to test v7 (and others) on the weekend. Best regards, Max