Received: by 2002:ab2:3141:0:b0:1ed:23cc:44d1 with SMTP id i1csp1401448lqg; Sun, 3 Mar 2024 08:18:40 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXcaVgVKskMXDP1xofOnxFe8r30ZT6RHUvC4BXgiQuJ8oE5vDlEKpD1nZ4E+G9MFDWmNpE5kMY56q6Nj7V74wDp/maKRVuki3k0vAvNCQ== X-Google-Smtp-Source: AGHT+IFMvpOVEXdaYiHa519VLJ3rpflFJoG5Yoe9FygEg3GiD4JASIdqko/BCi60nciQmA7v4fj5 X-Received: by 2002:a17:906:40cf:b0:a3f:1cb6:fb00 with SMTP id a15-20020a17090640cf00b00a3f1cb6fb00mr4962203ejk.69.1709482720541; Sun, 03 Mar 2024 08:18:40 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709482720; cv=pass; d=google.com; s=arc-20160816; b=c/MMVyJWlZLUM8J/Xl51VRODCp9Lv5mtkdoFZoiKj2QZMcNtNK5pfnW8xLHlHzuRnL G3GO4aFtp/tMDU91/pmCdGL+5m5jdGoDGlWk2EC3InUhPo1jCQ1v/mWwKqxDYD0PwLn2 /AoLSPkcJRiVrKdJ7wa9tC6dyap2fij4Tp+4lPmZPJUI8hZlcP9BO5auVPvWAr552jLV bp3LY5NbZTTUqxT/hY5oQ7U/IoAWOCLvsVO+DtHdCfs1UFtUk9F/cvUc+TFCL7xIsCbe E4PKxgAK9MAPAOfXeuLw9K9o3HSMBVJ4dAGjqlmye3ALe6KSWwZ0T2HMUT4Zs7fa0ehM ebYA== 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=5lbWX20jXzbZW13RUe2xknNtpt+9FhgCimtMs0ceGPE=; fh=6h8ScADTiFubKzTk3SbyilJbKGYc7Y3udf2ZZ668/BA=; b=Ls4ec4FNfNOVyE1Te/P8JMnh5Ck98srXd/PP71oCN6idfndtIkCSU+3ns2dwGMeOWF iHwMdaNk9dgTt6ecQmVuWgAogpCB28j/b20kVwYZ5dCL0FFTd1qP7Gn9MR3iRIPrSu9E hGPmyjlungbHe9jMLUvF0RfNA12Odtx/hvVvwKr+e7NrghoYU3GN+5P4Nqv3Ym1AqcJr hE50s71xsA/LB0qldXAv6lrCish0/9DABuw4SC+ZwlJYbCMImKBrQ1/apUvBXgZE7NIc zMqzo4dJmbnGSBzSHQwJlHza+EMMVilC9PIQMhtyrKgUujSW/mtEyM0/smf5O9xBgzKz SBwQ==; 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="eLo/brN7"; arc=pass (i=1 dkim=pass dkdomain=bgdev-pl.20230601.gappssmtp.com); spf=pass (google.com: domain of linux-kernel+bounces-89815-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-89815-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id se19-20020a170906ce5300b00a3e95937621si3207523ejb.449.2024.03.03.08.18.40 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 03 Mar 2024 08:18:40 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-89815-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@bgdev-pl.20230601.gappssmtp.com header.s=20230601 header.b="eLo/brN7"; arc=pass (i=1 dkim=pass dkdomain=bgdev-pl.20230601.gappssmtp.com); spf=pass (google.com: domain of linux-kernel+bounces-89815-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-89815-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 am.mirrors.kernel.org (Postfix) with ESMTPS id 4846E1F21657 for ; Sun, 3 Mar 2024 16:18:40 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id DFD746BFA4; Sun, 3 Mar 2024 16:18:32 +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="eLo/brN7" Received: from mail-ua1-f51.google.com (mail-ua1-f51.google.com [209.85.222.51]) (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 7DD946A8C4 for ; Sun, 3 Mar 2024 16:18:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.222.51 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709482712; cv=none; b=gwtTfaGkAnp7Ldl8RtHdGbmNmMMEctGFbVWvpkX6cTnCnbPtp1JHX8iEnU8ro3F5a/bTibRoBB6DCa/wU08/VYm8KU/sYBm/bd16sH2/nLBh1j8C4Axbc7FkfmSq7duJIFaMygDI0lpq/pdTQxLJXyHBGSDa7TNA/wrc8qbRe5o= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709482712; c=relaxed/simple; bh=5lbWX20jXzbZW13RUe2xknNtpt+9FhgCimtMs0ceGPE=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=Qmv7DaOP3Pk97yONoZaU2giWg8wHlS1Pd4AyyzkVVxgw7cLQTUdOW5ous4sF+l9m7x3ba9sgXgRf618ePRTefEVgPMTbHAFFK3DhTFLSR3WBiMSapLR/6G64FtAY4Rn8RHVwvNiaSJpoerz1K2H27a0OXUVnPQjGrfHFDZO4QPA= 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=eLo/brN7; arc=none smtp.client-ip=209.85.222.51 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-ua1-f51.google.com with SMTP id a1e0cc1a2514c-7d995bd557eso2346590241.0 for ; Sun, 03 Mar 2024 08:18:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20230601.gappssmtp.com; s=20230601; t=1709482709; x=1710087509; 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=5lbWX20jXzbZW13RUe2xknNtpt+9FhgCimtMs0ceGPE=; b=eLo/brN7mFBTp6q8PJNFot+TRAaKn8SbwNgFjudD+VLy61FCATcgnEq44dvkuMmzdN MR04XyNAMC02gwam8CPEIB/X/Ug0iNpmOKCj21YO+jODaSZathoePpP+x6aklzBDnhgt kx0xzB+PRczaFgEhgTpz9ESM+8DjazA1XSsd40SWVg3D8hE72G06Zl2Rk1x4wFR/NIEo JLuyolJozghgvaJrn7yVeFnNBcyAqh++uemRF1mvE4GEOzwLogZ3s10cpyB+8+LL7P9E A8b1OytcaEu9QapUY/ZQGPRXIY2N+nGA/edin78YaMajyaGJ3m2bEKB3ueY9qRiPvRZy W/IA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709482709; x=1710087509; 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=5lbWX20jXzbZW13RUe2xknNtpt+9FhgCimtMs0ceGPE=; b=C6H14PaUNoPDMawj0ShGOAlY1Nm+3uAoP7Ao8XGoDYQGeb7eDuuoALHM3yogvSo7SR rsoisVk0cY+jHYMMgPc+ATd/nyeEkMKCLx73TrYySOxueE2BUJ6XbaS1q6cOFe/70gtT Y/ZmK4X02GpKSwICzOwrN6asQ/ASAY42M65Om4///q5YCjKTWYJgejX+Xv/hm7IawXRu Rby4GMr5PCsJ+Ebuwz5udC3Ty1ChnUk6QjmAyfFafDZdYW6COU7gFXOCnMaF5tK42QmX YNTM35WgYIj6Lz5njNhTmmFwj10RO47BQ8Xj1wwYskCv711eBzXSvCK9GnrFwrAoyk3u qK1Q== X-Forwarded-Encrypted: i=1; AJvYcCV1qaEM65g1PKcHjB2SQbWAyKGrzwfqpNQlV3oQZQhj2GV/ctq5/Nlo/PEIpSdE5Sp15TLhl0cWB9sABfvyhh/mrCkhUsfyFe/80BvR X-Gm-Message-State: AOJu0YwLldgiSyucCh6Dh/7mk3REVLaeJu1ig/7sI3vzokS3DfKCz8rG oISWL4JAk/FCiAGRxPDoNeMf5W/CzVkeku73cvfixG1QuIYGqqA1KZgcmTMnciq14DRkCudP7NA lhm0vjYhZHZdrty8q34p4ABWcaVz/s3XpbTG3Tw== X-Received: by 2002:a05:6102:559c:b0:472:a0f3:9c5f with SMTP id dc28-20020a056102559c00b00472a0f39c5fmr5276276vsb.23.1709482709397; Sun, 03 Mar 2024 08:18:29 -0800 (PST) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240205182810.58382-1-brgl@bgdev.pl> <20240205182810.58382-9-brgl@bgdev.pl> In-Reply-To: From: Bartosz Golaszewski Date: Sun, 3 Mar 2024 17:18:18 +0100 Message-ID: Subject: Re: [PATCH v7 08/12] firmware: qcom: qseecom: convert to using the TZ allocator To: Bjorn Andersson Cc: Andy Gross , Konrad Dybcio , Elliot Berman , Krzysztof Kozlowski , Guru Das Srinagesh , Andrew Halaney , Maximilian Luz , 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 , Deepti Jaggi Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Tue, Feb 27, 2024 at 5:53=E2=80=AFPM Bjorn Andersson wrote: > > On Tue, Feb 20, 2024 at 10:54:02AM +0100, Bartosz Golaszewski wrote: > > > > I disagree. If we have a better interface in place, then let's use it > > right away, otherwise it's just useless churn. > > > > The functional change and the use of cleanup macros, could be done > independently of each other, each one fully beneficial on their own. > > As such I don't find it hard to claim that they are two independent > changes. > This series would be 50% bigger for no reason if we split every patch using the new allocator into two. I absolutely don't see how this makes any sense. We're removing the calls to old interfaces and using the new ones instead. The new ones happen to support cleanup so we use it right away. If the old ones supported cleanup then maybeeee it would make some sense to convert them first and then use tzmem. As it is, there's really no point. Bart