Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp4968790rwb; Wed, 17 Aug 2022 08:51:23 -0700 (PDT) X-Google-Smtp-Source: AA6agR6NIROAPLfvJovofvrznhVyPXm7ZkP/7E06xEigfqbWKJ4/MrUZ/od1hqVKeBZnCifMeVH7 X-Received: by 2002:a05:6402:3689:b0:43e:43d6:6039 with SMTP id ej9-20020a056402368900b0043e43d66039mr23985701edb.341.1660751483708; Wed, 17 Aug 2022 08:51:23 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1660751483; cv=pass; d=google.com; s=arc-20160816; b=XGLZUwz4P6tc0reokUeZSvE1hK4F3EhnYr3terE9JQMjxI2xrEPs+Y4DbIaqc8Uc7+ TfGgwQgRI4eGXR0/u4guowlioMBqLmjiAfe+lHc0z51yqp9xYtXw2tKanZyccfe3f3iu +Al0zX/g2RvYkK0dzpTaG2NK/3mhAuC+U5s5KWIWwdCrZwS/crP88XjboJOr0p+G2z5N HUUQ1yXFgb9blh3MZwPOKXCgYlMNw8tnUSTT0Y9zKUHkeNgJLftQChQzaBprFR0SFx3T jMJYQovVktyCS9YY8ry/VTdfbPgSRXbTHOyEKnwFES6N2cOb72oxxpDaYWUIwMvkmhLv J0lg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :content-id:content-language:accept-language:in-reply-to:references :message-id:date:thread-index:thread-topic:subject:cc:to:from :dkim-signature; bh=XSw0rrIxodzCDT0eY1A489TJyiSPmcHpxev2OZG1/Kc=; b=iJgtZzg1+uw9ElV1XmYtGejMkym089fiAnBe3aXNuUuOSh+IrN7V5a4Gd/c0Uq8L4z nvbvCNEysxeb4jeS5HcwQbqewzpjb6KQJiEo4615NigkcZRZeEFIlGh9MCRL9sk1Nppk 8fEgXwtVYmKCCCKcdW3Jp7M1NwHOgF4dO0EyDnkvGaPDCWHF/O+ACxQddmwy8y4H19dx 6kNevJheDr1eSThpj7wfi5O/xbaYzIeEv8W0E5cMlzJhk6Nn2add5KN2YxLmszl0YUlu PogaXAOyNR7mIy+RqTxEvJ91Ebv5zo1xmFDElybu2L1a7k3GqZBJtluLKmAkGygTc7gi TVKw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=aB738HIb; arc=pass (i=1 spf=pass spfdomain=nxp.com dkim=pass dkdomain=nxp.com dmarc=pass fromdomain=nxp.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b8-20020a056402278800b0043dd6d38021si13773641ede.243.2022.08.17.08.50.53; Wed, 17 Aug 2022 08:51:23 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=aB738HIb; arc=pass (i=1 spf=pass spfdomain=nxp.com dkim=pass dkdomain=nxp.com dmarc=pass fromdomain=nxp.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240301AbiHQOwT (ORCPT + 99 others); Wed, 17 Aug 2022 10:52:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38128 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229503AbiHQOwR (ORCPT ); Wed, 17 Aug 2022 10:52:17 -0400 Received: from EUR02-VE1-obe.outbound.protection.outlook.com (mail-eopbgr20043.outbound.protection.outlook.com [40.107.2.43]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E993C91D2B; Wed, 17 Aug 2022 07:52:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Kq86fJtVUgElAkfdNHnMnpnmVP8VcNkZH/od8l32KLdIfxqwXM0W2pzQqpgyyJfL5RMElkslRyB8Lh9LL4PPCnJ/2EC5ySahi3i6/V6Zte2j0whIh598zfQb7gN0ijj5opCn/w6ftTuyCPyAnrGKE5Ymfh4JIEFJNlJslgjZnxWvVvJEFizEw6hUEem/V1vPrp2JuYe5/Aew9NMeqxeYm/icRu5KOsZUZP2XOCpns0I9D8jv+Ib+s1BQV7B15iOXq13IP+S0yZ+yyeukXZWjO6SEmE8ohETFPkWabagIx5xiZNQuV7ucVaqLyIgtpSXhfNBlZZ2nksbpjrMJ2RvZvA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=XSw0rrIxodzCDT0eY1A489TJyiSPmcHpxev2OZG1/Kc=; b=B+BIbciJjZX97dGNQnj6KV89x2Law028ZNRPgmJMNxnFujfRNRWhMeZj22qieKkFCo4B+HZ4LQqB4qhf7XyBfQiXOE8Hf6TJ/djMcpmRan6BwLzN8NqLMBYjD9Fo/VauQgq/x9i5XZ8yNVH4IFTe2Aa9fud9sFCT/c+9podPEVbuCWiwHNsOL8MuY7qKZTmh6w1DqsXHrtZ/CS2IFMcc01tdJm90x3dX0wMBjltJmcpTwxWRVwHG04uWRUnbhs8ceJpN10mNF/UW9/KhWZTnJBPMuwsz250Q66mvqw+gZnCOhexfZZ4A+MweSRuch7L+NqQhrQJKWEAjPjt/lQ4lRg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nxp.com; dmarc=pass action=none header.from=nxp.com; dkim=pass header.d=nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=XSw0rrIxodzCDT0eY1A489TJyiSPmcHpxev2OZG1/Kc=; b=aB738HIbAqVbgQfxe+xYYgDPLn0wN4ShwIuTUx0joi+CDDuR9tX1G0119Z26Fewu9R2srEk95zEmC/ZKY3ILsSVjxTGCFX3/GAfm30Sjt5401y61tJIEyRxh74JKHRZud0GGBJQfEec0Wmrs6dRIveBb5MPN2t/bYhzgxFMwmno= Received: from AM6PR04MB6743.eurprd04.prod.outlook.com (2603:10a6:20b:f1::11) by DBAPR04MB7366.eurprd04.prod.outlook.com (2603:10a6:10:1a0::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5525.10; Wed, 17 Aug 2022 14:52:13 +0000 Received: from AM6PR04MB6743.eurprd04.prod.outlook.com ([fe80::c27:3940:d92e:acd6]) by AM6PR04MB6743.eurprd04.prod.outlook.com ([fe80::c27:3940:d92e:acd6%4]) with mapi id 15.20.5525.011; Wed, 17 Aug 2022 14:52:13 +0000 From: Olivier Masse To: "nicolas@ndufresne.ca" , Cyrille Fleury , "brian.starkey@arm.com" CC: "sumit.semwal@linaro.org" , "linux-kernel@vger.kernel.org" , "linaro-mm-sig@lists.linaro.org" , "christian.koenig@amd.com" , "linux-media@vger.kernel.org" , "nd@arm.com" , =?iso-8859-15?Q?Cl=E9ment_Faure?= , "dri-devel@lists.freedesktop.org" , "benjamin.gaignard@collabora.com" Subject: Re: [EXT] Re: [PATCH 1/3] dma-buf: heaps: add Linaro secure dmabuf heap support Thread-Topic: [EXT] Re: [PATCH 1/3] dma-buf: heaps: add Linaro secure dmabuf heap support Thread-Index: AQHYqNLEB1kEEMDN2EiJXHn7b90D762gcg6AgASkiYCABmvpAIAF7/SAgAHHYgCAAAWHgA== Date: Wed, 17 Aug 2022 14:52:13 +0000 Message-ID: References: <20220805135330.970-1-olivier.masse@nxp.com> <20220805135330.970-2-olivier.masse@nxp.com> <20220805154139.2qkqxwklufjpsfdx@000377403353> <7e61668164f8bf02f6c4ee166e85abc42b5ee958.camel@nxp.com> <20220812163922.v7sf3havi5dpgi5u@000377403353> In-Reply-To: Accept-Language: fr-FR, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-mailer: Evolution 3.28.5-0ubuntu0.18.04.2 authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 9310a809-3542-4fd6-f4ab-08da8060121a x-ms-traffictypediagnostic: DBAPR04MB7366:EE_ x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: OnQfx/MCatWqjq9xB8J2XksQOZdlY5z8es0yRMzuDNI7KfQz8o7I55cjMBZPrKjynzslYJXcr6C/ev9cTAA9zI14otaIoOGrTjmg8NA3+4z60NW2N/CbQDJ24e6b3ypkA0zmDJOhEKvQyxKiO7ci6tW0atmhhR+M/7ISwt8RzJs1M6mgoYnAZ/mzuWBICoEwdjDynmFtjLNRoeWuXQzOx1VHTZUnn6D/0hLCWReDxGKK/AoocDvU1kNSroAO1y8bpJXjAcNz0Q0sUrbXWH/HKhS6M3uY5937CLza1Mn5X7YK9EHx/08GC8T2hEgsZ50sILWUzeiijxtOx0kzPNgfO8ov0k7bF2W/Bdp85yfZmJttpQkbuOShXdLrDrQ2q+PaYfOuwDFfJuBGjZv8X/UbY3LITLQKy/J86cqKht5j5AOyXNjGnE9JcRfRW16hWoWUtEbUTrzRpwqIZVrxDCjb5NoJ6/R9GecJVMylRLljcHHNxuOye8MVccHrOhf6kzEhh8Bve/Vl5SCcHNz6wr542+lBs0mbpL3qytUywvhKb8HWynhuQSVzyNTfAVayQRvidilEM3shOpNmKC2e54IqlTlaItqt4w1gDrW8ij8YizhoZmEfvl4LRhhuw1wAV4frUDuTX64ADjfcA+tKBk0MBUd9tIvsm2v6CKuWudPXdf0/luGGapLPjVGICV/BJy1IR4wsqdyWp5+mVz8DOLN118DxrwSDvUC+Da+rQ8xcz02yTgvXslGo45wh94ZBWdzC3k6cLhh4Ql90bechdJ0+LKcMEHaSPfu6bg8w/wCGZVZjBBVw5zEZkDA+I4l0/o72IRdQvTsZYgO5YiurURNj4g== x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:AM6PR04MB6743.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230016)(4636009)(396003)(136003)(346002)(39860400002)(376002)(366004)(71200400001)(66946007)(44832011)(186003)(54906003)(45080400002)(66574015)(110136005)(83380400001)(6506007)(316002)(41300700001)(26005)(36756003)(6512007)(2616005)(2906002)(38070700005)(6486002)(86362001)(7416002)(122000001)(66476007)(91956017)(64756008)(5660300002)(966005)(66556008)(66446008)(38100700002)(8676002)(4326008)(76116006)(478600001)(8936002)(99106002);DIR:OUT;SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?iso-8859-15?Q?hNxACc8j8Csi8NMCB546cLKI/4dXEPmN7YQF3oY4L7pzzhlk96OVdWPgU?= =?iso-8859-15?Q?fkjZdQGmZaZltrMmRagffEjGVNrzp+BsEFZVBxb/cBDkv+uBc4kKd1wwU?= =?iso-8859-15?Q?OCbrTCe6G2aJjMAvO38j/UasdoNtCgXUMa4b6ttKcds4y3o4wraZAWW3j?= =?iso-8859-15?Q?fjoXtWllQj6puq+HWPSJea6+pDUMsn3QPqp7df5vZ1FDGKx7fRouAQrWZ?= =?iso-8859-15?Q?XfMaSr/BmWewzs0pAXEvORx3mdXdEkGglukX3C8gpRb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S6j/pNSr+8YXwd9rw2w1UW/ovhYPg?= =?iso-8859-15?Q?sfZexaCELjBxplBYdGuqnhIcXgNcjjeihVxkZUuQFJiFW2D9eHenNeOx1?= =?iso-8859-15?Q?nJVrrvK4FPXDo5XQ3B5a34FyFxdCvVL5/jbF4vESuFc6kGY1If7df86RM?= =?iso-8859-15?Q?OQtZExoXZIEEpWRCqjChVYCJbjwvrOpagFOUwrEO3Bl9ZtPDdQYBfkWl3?= =?iso-8859-15?Q?+xVmzgobxLiFnfLBOHtI18JaFcv5InZhT1IB19A2qzzjHNgSInf+vhQn8?= =?iso-8859-15?Q?6iiDT6KpwIM2geMIm5dDpFKkruo2cigWV3SRNYwgjXhAKiR8K6mTxzMvx?= =?iso-8859-15?Q?38oVqZc9VFn1dWGcPLbwqwTnUKqVxNDB5f2MUokx00GcPcpcDkafT0pFR?= =?iso-8859-15?Q?JMLTeXgebohEpnyNAWaspZAPoQe6Q0H313573YyQtvymIPfRqon9Lhu1U?= =?iso-8859-15?Q?IHCoxbWQM+eoBtsShpuqkqALKK59c9NDuxqdDHPRcWjLl9HqWK3WhYhHC?= =?iso-8859-15?Q?15DP?= Content-Type: text/plain; charset="iso-8859-15" Content-ID: <4ABFF15485189A4C9207CD006FF5C4D6@eurprd04.prod.outlook.com> Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: AM6PR04MB6743.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 9310a809-3542-4fd6-f4ab-08da8060121a X-MS-Exchange-CrossTenant-originalarrivaltime: 17 Aug 2022 14:52:13.5162 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: VIjMtbpP5cMdo5w+c/oLt7oHTGQfi+LyPsQqdja+ct6se+rajNSG6lCC17TYFnb4YkOReC6weRhyi36NKfMIgQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DBAPR04MB7366 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_PASS,T_SCC_BODY_TEXT_LINE, URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org +Cyrille Hi Nicolas, On mer., 2022-08-17 at 10:29 -0400, Nicolas Dufresne wrote: > Caution: EXT Email >=20 > Hi Folks, >=20 > Le mardi 16 ao=FBt 2022 =E0 11:20 +0000, Olivier Masse a =E9crit : > > Hi Brian, > >=20 > >=20 > > On ven., 2022-08-12 at 17:39 +0100, Brian Starkey wrote: > > > Caution: EXT Ema > > >=20 >=20 > [...] >=20 > > >=20 > > > Interesting, that's not how the devices I've worked on operated. > > >=20 > > > Are you saying that you have to have a display controller driver > > > running in the TEE to display one of these buffers? > >=20 > > In fact the display controller is managing 3 plans : UI, PiP and > > video. The video plan is protected in secure as you can see on > > slide > > 11: > >=20 https://eur01.safelinks.protection.outlook.com/?url=3Dhttps%3A%2F%2Fstatic.= linaro.org%2Fconnect%2Fsan19%2Fpresentations%2Fsan19-107.pdf&data=3D05%= 7C01%7Colivier.masse%40nxp.com%7Ce0e00be789a54dff8e5208da805ce2f6%7C686ea1d= 3bc2b4c6fa92cd99c5c301635%7C0%7C1%7C637963433695707516%7CUnknown%7CTWFpbGZs= b3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C30= 00%7C%7C%7C&sdata=3DGHjEfbgqRkfHK16oyNaYJob4LRVqvoffRElKR%2F7Rtes%3D&am= p;reserved=3D0 >=20 >=20 >=20 > just wanted to highlight that all the WPE/GStreamer bit in this > presentation is > based on NXP Vendor Media CODEC design, which rely on their own i.MX > VPU API. I > don't see any effort to extend this to a wider audience. It is not > explaining > how this can work with a mainline kernel with v4l2 stateful or > stateless drivers > and generic GStreamer/FFMPEG/Chromium support. Maybe Cyrille can explain what it is currently done at NXP level regarding the integration of v4l2 with NXP VPU. >=20 > I'm raising this, since I'm worried that no one cares of solving that > high level > problem from a generic point of view. In that context, any additions > to the > mainline Linux kernel can only be flawed and will only serves > specific vendors > and not the larger audience. >=20 > Another aspect, is that this design might be bound to a specific (NXP > ?) > security design. I've learn recently that newer HW is going to use > multiple > level of MMU (like virtual machines do) to protect the memory rather > then > marking pages. Will all this work for that too ? our fire-walling hardware is protecting memory behind the MMU and so rely on physical memory layout. this work is only relying on a reserved physical memory. Regards, Olivier >=20 > regards, > Nicolas