Received: by 2002:ab2:1149:0:b0:1f3:1f8c:d0c6 with SMTP id z9csp2611742lqz; Wed, 3 Apr 2024 03:30:51 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWeILljMK/b/4XlGFHrxlUJ7mfWDrGaUS6ryEAyHinf8h4l9X1ayqu8zWgGlVkZ0cdlakV9BtCKUZ4k/AMWF6U1Nm8CkvRZakuubtwlQQ== X-Google-Smtp-Source: AGHT+IHisAUqBlItF8xeFuvRY7kr5p+8le8o8v/BSf5YRKkCcECIhWZhgCDLVALeH4QRR251kDbv X-Received: by 2002:a05:6a00:4607:b0:6ea:d149:c4e with SMTP id ko7-20020a056a00460700b006ead1490c4emr15881709pfb.14.1712140250845; Wed, 03 Apr 2024 03:30:50 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712140250; cv=pass; d=google.com; s=arc-20160816; b=hGwxzW1s6d2P6OFA7eqnwvSBwle/0gp/zJme4JTUso2lU1TLKusN91Dq3tsYw5Au+0 vRI+FVxAYDuT2hypIvQYJLlB25lPBWS2V55km5Yb0uBj2sO6xlcZwJxr9slslKJ/CNXd Te48sAPFD/bGKknreQ3K1C8s047pxuI7poYkEmUDekMEDp/K8UxeQYJA/T5A/zWtC8n+ dhgMIaU0JMdxbjY6lfWwxKhYaHDG65jZNowUvrMTdH6xCKaPlNoEWFhbsD0elXUwFmNb 2aqHEP1sLrpsnr5qlxuxwOSIN/4Pj6c33qKRj2OJ3yb91kExfczLBEc0KeqGGJUqgXL4 BKWg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=ZryZl/fS6pc78wdeFePflYUHBIKbUg/O9hvHU797WQA=; fh=EvIbZlf6OO1rViCe0A3QOWAufGKzNzy1ruI5T+Catxs=; b=DHgcpsU2hvh1A5Rf86aQBbClRkb/hriPQqYC2cTUoPx3Fem04CfKnyOVXtzxc1dRye ytR0Ak4gJ4KjPiQBVMr9JBpR2ndzOg6z7rZ9jesuimeMrcWzKhq9M3MuKxjh3eanjJZ8 LY0mqzwC/SlGy1X07xNJ704oBoHxV2U+F8vFymzIBzK17MYfTdKdnWL2Psd0DzuN/Jru DZhS/sA3+TmrEbcR1Oel+azd6i9hXX8pkrt5HQS0Np5lumEucHd4ZgZV1qiz2fim6BqR +JQf+Kj3nLjqG/qJjQLr0smcouB0OKDfZrjFqI3hD4iy82XttoWahFNEIctENdcoA2va Kgug==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=DpJ0S1pu; arc=pass (i=1 spf=pass spfdomain=mediatek.com dkim=pass dkdomain=mediatek.com dmarc=pass fromdomain=mediatek.com); spf=pass (google.com: domain of linux-kernel+bounces-129545-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-129545-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=mediatek.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id o5-20020a056a00214500b006e74608ea4esi12647537pfk.344.2024.04.03.03.30.50 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Apr 2024 03:30:50 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-129545-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=DpJ0S1pu; arc=pass (i=1 spf=pass spfdomain=mediatek.com dkim=pass dkdomain=mediatek.com dmarc=pass fromdomain=mediatek.com); spf=pass (google.com: domain of linux-kernel+bounces-129545-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-129545-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=mediatek.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 3053B28BA8A for ; Wed, 3 Apr 2024 10:29:24 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 821D513BAC6; Wed, 3 Apr 2024 10:27:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=mediatek.com header.i=@mediatek.com header.b="DpJ0S1pu" Received: from mailgw01.mediatek.com (unknown [60.244.123.138]) (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 A95D8137C24; Wed, 3 Apr 2024 10:27:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=60.244.123.138 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712140032; cv=none; b=oXBOjWOMKgo/7vWQGBMURCN6rQjHMyyNuRbeOElXQX0pZ7ai2GwkrtTBYvGAKnOD/cPfJOYmhbAAo8XniuD2o30WG/lFWPSl+4nxQHb79WUnLuStOUP4A3+6o5NYfkr/HzJ+YoBNj3Vv9jtaxMsWTpKhLsrc2IsPG6gCX6cfBhw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712140032; c=relaxed/simple; bh=c7xTobvxNcUoi+22SqLi61QDBjn/V6GU1bryobi7w58=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=OjjrawL7XFAE0XyyWLgWtutwlRzeCaZAxlAvE5tlZvFZwJcP+/BwYc8ye7oluwGLjDem9D5uAOhb8JujvGwWXNkplEPKjIcLatvmYFR3HeiOkhJUQUSKXeGkBt8reANjgA77ETzJ3PvsdE/mvsJqlF4mv8tySkJzEO1HbFiM9FQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=mediatek.com; spf=pass smtp.mailfrom=mediatek.com; dkim=pass (1024-bit key) header.d=mediatek.com header.i=@mediatek.com header.b=DpJ0S1pu; arc=none smtp.client-ip=60.244.123.138 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=mediatek.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=mediatek.com X-UUID: b6933d74f1a411eeb8927bc1f75efef4-20240403 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mediatek.com; s=dk; h=Content-Type:MIME-Version:References:In-Reply-To:Message-ID:Date:Subject:CC:To:From; bh=ZryZl/fS6pc78wdeFePflYUHBIKbUg/O9hvHU797WQA=; b=DpJ0S1pucdlREvjKQmq4QoA1aBhcmc7wLeyhmYWtIQVZLWqFAAFIzvSUzlzsqUq2mtUkLU/sCjsMFze22OM4AsArXPbTpk5GboX929P04ThcunJcfdnypY2DwSQ2Y7/UKLiN3etQZ0VPPRbX9v3mQK8MjkRhSk2MKdd4Hw0MtU8=; X-CID-P-RULE: Release_Ham X-CID-O-INFO: VERSION:1.1.37,REQID:e5499c2c-c2e3-4b34-aafb-732c6d75a729,IP:0,U RL:0,TC:0,Content:0,EDM:0,RT:0,SF:0,FILE:0,BULK:0,RULE:Release_Ham,ACTION: release,TS:0 X-CID-META: VersionHash:6f543d0,CLOUDID:5571aa00-c26b-4159-a099-3b9d0558e447,B ulkID:nil,BulkQuantity:0,Recheck:0,SF:102,TC:nil,Content:0,EDM:-3,IP:nil,U RL:0,File:nil,RT:nil,Bulk:nil,QS:nil,BEC:nil,COL:0,OSI:0,OSA:0,AV:0,LES:1, SPR:NO,DKR:0,DKP:0,BRR:0,BRE:0 X-CID-BVR: 0 X-CID-BAS: 0,_,0,_ X-CID-FACTOR: TF_CID_SPAM_SNR X-UUID: b6933d74f1a411eeb8927bc1f75efef4-20240403 Received: from mtkmbs14n1.mediatek.inc [(172.21.101.75)] by mailgw01.mediatek.com (envelope-from ) (Generic MTA with TLSv1.2 ECDHE-RSA-AES256-GCM-SHA384 256/256) with ESMTP id 1845160214; Wed, 03 Apr 2024 18:27:03 +0800 Received: from mtkmbs13n1.mediatek.inc (172.21.101.193) by mtkmbs11n2.mediatek.inc (172.21.101.187) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.26; Wed, 3 Apr 2024 18:27:02 +0800 Received: from mtksdccf07.mediatek.inc (172.21.84.99) by mtkmbs13n1.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.2.1118.26 via Frontend Transport; Wed, 3 Apr 2024 18:27:02 +0800 From: Shawn Sung To: Chun-Kuang Hu CC: Philipp Zabel , David Airlie , Daniel Vetter , Matthias Brugger , AngeloGioacchino Del Regno , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , Sumit Semwal , =?UTF-8?q?Christian=20K=C3=B6nig?= , , , , , , , Jason-JH.Lin , Hsiao Chien Sung Subject: [PATCH v5 1/9] drm/mediatek/uapi: Add DRM_MTK_GEM_CREATE_ENCRYPTED flag Date: Wed, 3 Apr 2024 18:26:53 +0800 Message-ID: <20240403102701.369-2-shawn.sung@mediatek.com> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20240403102701.369-1-shawn.sung@mediatek.com> References: <20240403102701.369-1-shawn.sung@mediatek.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain X-MTK: N From: "Jason-JH.Lin" Add DRM_MTK_GEM_CREATE_ENCRYPTED flag to allow user to allocate a secure buffer to support secure video path feature. Signed-off-by: Jason-JH.Lin Signed-off-by: Hsiao Chien Sung --- include/uapi/drm/mediatek_drm.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/uapi/drm/mediatek_drm.h b/include/uapi/drm/mediatek_drm.h index b0dea00bacbc4..e9125de3a24ad 100644 --- a/include/uapi/drm/mediatek_drm.h +++ b/include/uapi/drm/mediatek_drm.h @@ -54,6 +54,7 @@ struct drm_mtk_gem_map_off { #define DRM_MTK_GEM_CREATE 0x00 #define DRM_MTK_GEM_MAP_OFFSET 0x01 +#define DRM_MTK_GEM_CREATE_ENCRYPTED 0x02 #define DRM_IOCTL_MTK_GEM_CREATE DRM_IOWR(DRM_COMMAND_BASE + \ DRM_MTK_GEM_CREATE, struct drm_mtk_gem_create) -- 2.18.0