From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-18.2 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id DC67AC6377D for ; Thu, 22 Jul 2021 13:14:03 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id A233861285 for ; Thu, 22 Jul 2021 13:14:03 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org A233861285 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=linaro.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=386rnLfC1QSWRKWLk3TE8xl6RjgUQm1gEquWBJisw1w=; b=FluHATjEwXUt9a MtpQsCPLb4zHtDk0bsw75rUXTnOGesQXB5tnSadqWr0sDPOIe6YhAzUyMjf3vogNzP8EccB+ztZif hIu1opVJFvu0A0Y+IIFjAj3+OkiYdBB/CapIfFAnLXfywdJEXM9sE25ayAv4hbZ35GBX7/peyCOrl d47kU2nOlmBEHDbdmDqC/q3hNFdayq74Q61OqnSMI2TGAvzBb1IrQCrvg64s/l3JrwHSSPPW5lRFu IwcUhN3XqHZd/6MV5cufUbV7KVyAEJkZyjST6IWAutnaXvL6UvC+dTyXexJFn11Z3zJX2Dv5OmEUX zPSWKk7je/fvYAzX6OCQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1m6YTe-001bcJ-7o; Thu, 22 Jul 2021 13:11:05 +0000 Received: from mail-lj1-x235.google.com ([2a00:1450:4864:20::235]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1m6XeV-001T7U-0y for linux-arm-kernel@lists.infradead.org; Thu, 22 Jul 2021 12:18:13 +0000 Received: by mail-lj1-x235.google.com with SMTP id t3so7073060ljc.3 for ; Thu, 22 Jul 2021 05:18:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=Jho2K68ga+5iTIj/1FJanSXtGPFIBOymH8GgUKHdmJg=; b=n4Cd5KUlVp+rn78A7tSLeP1QaCRnUqd5Wo68GOklD8bEXOYq87gcZd5mOYtFr8Jwru VqI6QbD72tfLd26xc7jJwPjsSgpevZ7i7V5uB8e+yWtkDO9IdWspQvYRq2+klkkkjigm BDTLd7cT9nJ+PLLGY/DGEGP0RJSidE5xmun3+CcbvNdCGXW0/N+Ut6+pKZiDf7pZ6XQZ XBDXipn2wntiiUDqGmzxIyF6LyJRhkB0Kmgrb9r6DS80GpUOqZdTxfnm/nPoQLR9p8oC eqvOJ69gI4kq7YoK/Btv/ikDII3s97K7mJnzJEu1PKXXul1rJiCis5xpJcLE+zPzZcUp TnpQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=Jho2K68ga+5iTIj/1FJanSXtGPFIBOymH8GgUKHdmJg=; b=fwt1uHoJz9AmBpyhdo1VHYOYQ+NadBNHD74cEslbxGKRk3yOH2x9PG+QG/sPcIh30T XtDp55iys1SQFhcXcLummwZL9+c91LdDMEPdQopn9Rceux4VYy3Yodjj4nxgSzJphPt2 qn+dkqByDDFobewfwvrkqJSV1K37my3DYlIwMYqSgCd45QY6AyiPlh8AwhViTs0iHeiI 5krGzPg9+3+Dir5rPozGpReOUlNjIRfM5UPKYb+9r07khY5hNCck1JNJ3IGdZ7TanUND Mqf3UzOj0VUScjp4Ebl/iCIVT+XPez7TG43SLTrBKXFYNlWQ54t9HDDZsTWnfzS/TMT5 CczA== X-Gm-Message-State: AOAM532qih26LyC8WSFvb/NVqlz4O3Fb5hXN+JunbNcM+x8OcRYkACPl bEIVmVtPWOaimGWvslNIyt95hw== X-Google-Smtp-Source: ABdhPJxnX8s7IJblRfGI601d0Xtre+S/15kMK0Xhbddqz/BBy7LbQb6cZZ+5iKTudiLDPhSMvO0beA== X-Received: by 2002:a2e:9695:: with SMTP id q21mr7034810lji.509.1626956287123; Thu, 22 Jul 2021 05:18:07 -0700 (PDT) Received: from jade.urgonet (h-94-254-48-165.A175.priv.bahnhof.se. [94.254.48.165]) by smtp.gmail.com with ESMTPSA id b41sm845090ljr.67.2021.07.22.05.18.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 22 Jul 2021 05:18:06 -0700 (PDT) From: Jens Wiklander To: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, op-tee@lists.trustedfirmware.org Cc: Sumit Garg , Sudeep Holla , Marc Bonnici , Jerome Forissier , sughosh.ganu@linaro.org, Jens Wiklander Subject: [PATCH v3 1/5] tee: add sec_world_id to struct tee_shm Date: Thu, 22 Jul 2021 14:17:53 +0200 Message-Id: <20210722121757.1944658-2-jens.wiklander@linaro.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210722121757.1944658-1-jens.wiklander@linaro.org> References: <20210722121757.1944658-1-jens.wiklander@linaro.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210722_051811_138152_39625D91 X-CRM114-Status: GOOD ( 13.70 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Adds sec_world_id to struct tee_shm which describes a shared memory object. sec_world_id can be used by a driver to store an id assigned by secure world. Signed-off-by: Jens Wiklander --- include/linux/tee_drv.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/include/linux/tee_drv.h b/include/linux/tee_drv.h index 54269e47ac9a..1a29f0e66e13 100644 --- a/include/linux/tee_drv.h +++ b/include/linux/tee_drv.h @@ -196,7 +196,11 @@ int tee_session_calc_client_uuid(uuid_t *uuid, u32 connection_method, * @num_pages: number of locked pages * @dmabuf: dmabuf used to for exporting to user space * @flags: defined by TEE_SHM_* in tee_drv.h - * @id: unique id of a shared memory object on this device + * @id: unique id of a shared memory object on this device, shared + * with user space + * @sec_world_id: + * secure world assigned id of this shared memory object, not + * used by all drivers * * This pool is only supposed to be accessed directly from the TEE * subsystem and from drivers that implements their own shm pool manager. @@ -212,6 +216,7 @@ struct tee_shm { struct dma_buf *dmabuf; u32 flags; int id; + u64 sec_world_id; }; /** -- 2.31.1 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel