Received: by 2002:ab2:6486:0:b0:1ef:eae8:a797 with SMTP id de6csp443431lqb; Sat, 16 Mar 2024 10:24:47 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVmk0Kexo2/FXQA0auC7Ut6IdA6klEGIoVXGAxQYF0uHYf9kxS/9JNSHPUFeaOXCPWdm116gqyG1kX3yAVXY/Oto0imXaCHlKdDHA2ECg== X-Google-Smtp-Source: AGHT+IEa31bzJPx2CIpRxBDEnmew7AzInk+yenxIF4O+UyqIJhGXfR4NDOAPDUP9dos8OA8m1tIz X-Received: by 2002:a17:907:7da8:b0:a46:8c03:b659 with SMTP id oz40-20020a1709077da800b00a468c03b659mr3746262ejc.42.1710609887400; Sat, 16 Mar 2024 10:24:47 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710609887; cv=pass; d=google.com; s=arc-20160816; b=gqTVj+cf0WgLGhECX2GQMNEVjONlDCY50V2+ZKCRhJvg9R5c/2FUgICq1/V5NiyK8x E21ZMYo4htWrZJX6gXLsy5k1llWvPudeuolm4xAtX2t3dSe+oT7C5CWhx0t3EQ1T3mas vKFE8d16qZxoqZrQVBwwHoNX2N5vgcjNLtpd22aO55fEa+RnljZs25GFdXdHVd52tdw1 c3qW0v5vpgku8rSwTGo+/rJnrZcFUHfFBYBoj4DEjrJrdkplMZuS1oG/eUw8JA/U+01A S9N84O5NSp5L8DvsrzAzC6NvCAEbGMnkRqwet+4FTn+18VdV1lWHDa/spbfzzOYd9Cds x0sA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :references:message-id:subject:cc:to:from:date:dkim-signature; bh=QYzU6ZVsHgW535Jjy6dsmf8oCaEFc1GlxHTzEJwgD+Q=; fh=LNu0c3gNPK1mYjOca90icpQXFsjqhO0esU5jl/im0Do=; b=vfIC78N78yTZVuA9/g6AOnNL82zZv+A1sYjP+Ei2Njrzd+jJd2qkrT+/UNrv0rjJlP scNSJzrOe0BW+wDSM1MHPPyYzh3ncgTkzQ++aroy5fpwcXekWRdUS+CcstMaNtrRyfzN sBTZsXa69Xho5NImtJuDPIzD9UXtn1/Q8P77+iHQaApbw235lVCimZZzdhubUH/WIEBB do4KIrys+9Zx4Usrmpg/rmXsTQZXZFZKW7RJMI9qzBmTxwMxa3udwxdaZEPvpBujW0ZC Ur/LLQpqTW3/c388za0ffRsarGhGckmpP8Ikhtl0HaOLrmiO77MCDejO8ue52PCOWpYs +g0A==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Vallxqpk; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-105248-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-105248-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id sa1-20020a1709076d0100b00a462a14ec0esi2755352ejc.525.2024.03.16.10.24.47 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 16 Mar 2024 10:24:47 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-105248-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Vallxqpk; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-105248-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-105248-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=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 1C96E1F21D30 for ; Sat, 16 Mar 2024 17:24:47 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id DB5F41BF34; Sat, 16 Mar 2024 17:24:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="Vallxqpk" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 0DEBC1BDCE; Sat, 16 Mar 2024 17:24:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710609880; cv=none; b=iSHn0yJZ1+2JhjdZML3RohdTSk4aWmntnZemAlEznVttMgewHo0uzOH/uHHTWoBXR7whBfMvfrDVzzxjTP71zb9mHgvts8QzlQXMhM4OzpoyfaA695gk1FYjAhDIQqE0/PCS5+QBrpl6zmFi1XwKvGUAb4N6fmxWRTMDbus626Q= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710609880; c=relaxed/simple; bh=t2f9OCV2id9IXt90SjuS1wuibjrWOdvYSHURUhVXBCc=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=eWFFBOA0pxe0Fp0fZok10XlmJEf6F8oWeaj5AzBIxTPa+2FjPg8Bqpg1y4sYF7vzOsu7hUEiH6h3mJlUTD6OxoYjzb2DsXtSF0HKeecq5M32iOlOsxrbrHZFei6yDGkgPU1YVUOwkaBkJw1kJyxjMqnz9SMuBFqds3Qgxihqs+0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=Vallxqpk; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9E307C433F1; Sat, 16 Mar 2024 17:24:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1710609879; bh=t2f9OCV2id9IXt90SjuS1wuibjrWOdvYSHURUhVXBCc=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Vallxqpk8xB2VeXjticMxlwQFQ+em2yaUhv4FF8f7i7m5oXFD2XPtOz2UXt/g0WUe E+5wMuOdRVJ4ZCVl37W3G3fI3RKhS6bhHatbPqRYeMhPhgLFeKZz/zXdAExgpxqMi0 dsPtdKld/ezhDUxzDUrJfDf5Y4hFcN5qbLg7vyhGtzA4okLqTiiQ1IPmIKViE60d0F EzuNoYwYsI4Rz72rWcHiOdWduAiNAsZpwnC8yyU6oYyoMv+hUCVKvRJAEef0o3pYc/ WFjFnONb3j2WXGa3UHKj/cYOrXEKN5LGEyuNMBzQmXJ54o4MRhvzW4H7dxFWWOLQIW v8RmQvBhVDxHg== Date: Sat, 16 Mar 2024 12:24:36 -0500 From: Bjorn Andersson To: Bartosz Golaszewski 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 Subject: Re: [PATCH v7 08/12] firmware: qcom: qseecom: convert to using the TZ allocator Message-ID: References: <20240205182810.58382-1-brgl@bgdev.pl> <20240205182810.58382-9-brgl@bgdev.pl> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: On Sun, Mar 03, 2024 at 05:18:18PM +0100, Bartosz Golaszewski wrote: > On Tue, Feb 27, 2024 at 5:53 PM 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'm not asking you to split every patch into two, unless that makes sense. > I absolutely don't see how this makes any sense. I find it unnecessarily hard to determine which parts of _this_ patch is functional and which is cleanup. > 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. > The old interface is kzalloc(). I haven't used the cleanup mechanism myself yet, but are you saying that there's no cleanup support for kzalloc()? Regards, Bjorn