Message ID | 20231108102755.93079-1-jens.wiklander@linaro.org |
---|---|
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:aa0b:0:b0:403:3b70:6f57 with SMTP id k11csp818462vqo; Wed, 8 Nov 2023 02:28:26 -0800 (PST) X-Google-Smtp-Source: AGHT+IFX65K0gh5BWDbbD5BOBp9RT3jCPedl17BwDrv7ZWL1xbAQyxRvz0YRUytBvJCc6i+hX5R2 X-Received: by 2002:a05:6a20:da93:b0:13c:ca8b:7e29 with SMTP id iy19-20020a056a20da9300b0013cca8b7e29mr1925141pzb.12.1699439306532; Wed, 08 Nov 2023 02:28:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1699439306; cv=none; d=google.com; s=arc-20160816; b=f+PAYmoCpx7CTXfs6r5Tgt69np6S5uU0PrRTBCmADRltj1oNXGeXZuaQSd8CnuoXhd lCCbQaxUSbXUb3yEwnhxTs/Gxd62DWnBfMCUvMLnMbf3ZaLUstNc0LA6ls9rClt5n5a4 IRmjtzQdZNW0Rqj+wb+EXGFvd0WTj9CHZZiABcg6kVOKCkReBdWV6bNVVVYdLpntdPYx XzrZKEcarWq9+gYcSMr6fs5DR21hVwAljKCVzyzfSTCUJz73MOEAWkLk8JgBPfkKuiCB A4J7FSw9Orq6tGHauLXs30It/u9PTeJ0MeTLJqrKbH2aMQzgDl4gZqJsXI0uIWDdORiJ kx3A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=+f7Qsv7fU9oe3DrF6r+pW1sCOQYzyprdQzjLRQbosbo=; fh=SSmA14+Y2ZA2PO07peKpbI6W7vxD8MB28Dbup/soyB4=; b=Xcstvn9E8WvNEjRHWjZzB/rqLmr81ZoS7k99JtHIsTuvXNTpuDGa3M63A7Qm039R0R 1jcwaCu/lazAR0IL/WUceSeJKkHRKEAgw22PhgDkRYxailZpL0QUk8yJ2nwCgMBgqOVz qGN6McGMHTUrrDyVr3soDKTTdRKzYW8y1wU0oQySGujT0VGnHeJKcXYXMzwWU21ksZ45 TwJNS0eBrYeuELfDn2lOT76B1xemlGVjvt0vT+vzGQKXYzfct8jPjdXwmAumUwuulc52 xnCwD+uFiC3wRs7fJULLmS8gdDFfDgaZkCHj3/kcAULGaRPGYu1Tr7e+iMDLgqK7eyJq DCGA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=SNj91xff; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from lipwig.vger.email (lipwig.vger.email. [2620:137:e000::3:3]) by mx.google.com with ESMTPS id x8-20020a17090a8a8800b00274a5edad0csi1852781pjn.139.2023.11.08.02.28.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 08 Nov 2023 02:28:26 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) client-ip=2620:137:e000::3:3; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=SNj91xff; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id 895568244E5E; Wed, 8 Nov 2023 02:28:18 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344134AbjKHK2D (ORCPT <rfc822;jaysivo@gmail.com> + 32 others); Wed, 8 Nov 2023 05:28:03 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39490 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235217AbjKHK2C (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Wed, 8 Nov 2023 05:28:02 -0500 Received: from mail-ed1-x52c.google.com (mail-ed1-x52c.google.com [IPv6:2a00:1450:4864:20::52c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3778D1BD9 for <linux-kernel@vger.kernel.org>; Wed, 8 Nov 2023 02:28:00 -0800 (PST) Received: by mail-ed1-x52c.google.com with SMTP id 4fb4d7f45d1cf-53dd3f169d8so11158098a12.3 for <linux-kernel@vger.kernel.org>; Wed, 08 Nov 2023 02:28:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1699439278; x=1700044078; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=+f7Qsv7fU9oe3DrF6r+pW1sCOQYzyprdQzjLRQbosbo=; b=SNj91xffe2RKtapnO5qopKkcTxabs6cK0MAeIyhHbkGBTIgdCbJCsRpUB1QFoBUjgA Qe+PoqZt3wCsxl3gqY+KkvSME14rltwchzbVzgyy71GFv5b5Ttb+61EmuRWmj4oD1RQR ZpLy1ofjvwN+Xl5gdytgv+6Zz8KJH5SdY7amxUYdRwn+KA1pEVm3niQMnf7h3cT4rP54 Gc5VZZlaF0bYtd9rAM5ne9p/Z3dpAa0q5KPqM21DKEKzdt3XaMYYWkhihdbRPzas2DZI BrGocXtmceHHQUIYvghkxf+Q9xrRIvWmjicnARKcfoHqvPXZdNmA8RxNyQQUIekMsseE hokA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1699439278; x=1700044078; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=+f7Qsv7fU9oe3DrF6r+pW1sCOQYzyprdQzjLRQbosbo=; b=vobGSyoMs71fY1W9CsU3wfN9cfgjyrWKb7jGzfsjmXxUq50srSKvmfs+FP2vOXQjN9 B3X0ansJwonsXFjCA02cFAuFagvp5yIi8vhSdHk0jeR0LeJwz8N5blPtd3iSOXy56lJw r0VtgVNk/3Wj4+DVWUUhzBoS84NSuSXpdclj8B3LMMEyI8XenUs7bAfiN3L17pJFJole PSfeRTf8y4UVYr57CVjyv8dsiRdwOmCZ0s4qqPF1AVAvdwEFXJmWiG04WlvUXzuJuq5d FoyrV5nbPIBXx/CAAM3mkumzz/jR3KnKR8QybvU8mCBfE556d2VPQtRE851JNBLPmCre l41w== X-Gm-Message-State: AOJu0YxsGjVD1+ZI5QQCE06ojk2JBlxIKK4jR5DqYUsnrVGK6po0pnc7 JQU1CcuQ8SKZo9arngfaeas+AnpX9MQz7uRyavI= X-Received: by 2002:a17:907:7f0d:b0:9e0:2319:16f0 with SMTP id qf13-20020a1709077f0d00b009e0231916f0mr1226295ejc.65.1699439278292; Wed, 08 Nov 2023 02:27:58 -0800 (PST) Received: from rayden.urgonet (h-217-31-164-171.A175.priv.bahnhof.se. [217.31.164.171]) by smtp.gmail.com with ESMTPSA id bn22-20020a170906c0d600b009c3827134e5sm803257ejb.117.2023.11.08.02.27.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 08 Nov 2023 02:27:57 -0800 (PST) From: Jens Wiklander <jens.wiklander@linaro.org> To: linux-kernel@vger.kernel.org, op-tee@lists.trustedfirmware.org Cc: Sumit Garg <sumit.garg@linaro.org>, Jerome Forissier <jerome.forissier@linaro.org>, Shyam Saini <shyamsaini@linux.microsoft.com>, Jens Wiklander <jens.wiklander@linaro.org> Subject: [PATCH v2 0/2] OP-TEE kernel private shared memory optimizations Date: Wed, 8 Nov 2023 11:27:53 +0100 Message-Id: <20231108102755.93079-1-jens.wiklander@linaro.org> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (lipwig.vger.email [0.0.0.0]); Wed, 08 Nov 2023 02:28:18 -0800 (PST) X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.vger.email X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1781991270384316683 X-GMAIL-MSGID: 1781991270384316683 |
Series |
OP-TEE kernel private shared memory optimizations
|
|
Message
Jens Wiklander
Nov. 8, 2023, 10:27 a.m. UTC
Hi, This patch set optimizes OP-TEE driver private shared memory allocated as dynamic shared memory (not from the static shared memory pool). The first patch handles kernel private RPC allocatations larger than one page and the second changes from alloc_pages_exact() instead of alloc_pages() for more efficient memory usage. v1->v2: * Split into two patches as requested Jens Wiklander (2): optee: add page list to kernel private shared memory optee: allocate shared memory with alloc_pages_exact() drivers/tee/optee/core.c | 59 +++++++++++++++++++++++++------------ drivers/tee/optee/smc_abi.c | 45 +++++++++++++--------------- 2 files changed, 61 insertions(+), 43 deletions(-) base-commit: 05d3ef8bba77c1b5f98d941d8b2d4aeab8118ef1