Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp4902118rdh; Wed, 29 Nov 2023 14:14:45 -0800 (PST) X-Google-Smtp-Source: AGHT+IHiyAWFo5/hHMAYaTg1EbBQWqfH80+BzW2OU0LF3JT93qieg9NaRAprWx3xcSGxNqUfgr23 X-Received: by 2002:a05:6a20:d396:b0:18b:d31f:7d25 with SMTP id iq22-20020a056a20d39600b0018bd31f7d25mr23448416pzb.38.1701296085163; Wed, 29 Nov 2023 14:14:45 -0800 (PST) Return-Path: Received: from snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id c13-20020a056a000acd00b0068a54522bb0si15861691pfl.144.2023.11.29.14.14.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 29 Nov 2023 14:14:45 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=BLflA+qe; arc=fail (signature failed); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 363A080BC515; Wed, 29 Nov 2023 14:14:37 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232693AbjK2WO2 (ORCPT + 99 others); Wed, 29 Nov 2023 17:14:28 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59680 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229658AbjK2WO0 (ORCPT ); Wed, 29 Nov 2023 17:14:26 -0500 Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.9]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AE5B2A3 for ; Wed, 29 Nov 2023 14:14:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1701296073; x=1732832073; h=from:to:cc:subject:date:message-id: content-transfer-encoding:mime-version; bh=PNTCXipTZKu7TlhAPFJ72vBS4tMF6WeHCPQIRaENK34=; b=BLflA+qeA2DB7Os0RmeDH1/HZ5xj6aOZb9v3MuOmHE4sx+CiR1InO+SK egnUf6npofNpaHKTFuYBJ74p5DX82OkBDtzo5ha5fIneTPgsoyU3t7v6T 2GmYPOpIhHozyo1GzkXkdTPQC75dS3Z5ryPyZ21apcngc8RdTDdjCCpQh nw0beBKYE4KuZh1SBQNxpMb1xQVzOw9pIzd/xK3POyqYF44n+5wPjqXVw pRbmVBUObHV1Bwq6tfiVlVwx6y/G53SK5hFFyiG2nPErRBUB1w0jr14LE Q7Q+N5sPaOCaBkYxlN/piRi1RoQqAoYJktDUZkyJH5zQk2yjp41Dls6wV g==; X-IronPort-AV: E=McAfee;i="6600,9927,10909"; a="11935197" X-IronPort-AV: E=Sophos;i="6.04,237,1695711600"; d="scan'208";a="11935197" Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by orvoesa101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 29 Nov 2023 14:14:33 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10909"; a="912984067" X-IronPort-AV: E=Sophos;i="6.04,237,1695711600"; d="scan'208";a="912984067" Received: from orsmsx602.amr.corp.intel.com ([10.22.229.15]) by fmsmga001.fm.intel.com with ESMTP/TLS/AES256-GCM-SHA384; 29 Nov 2023 14:14:31 -0800 Received: from orsmsx611.amr.corp.intel.com (10.22.229.24) by ORSMSX602.amr.corp.intel.com (10.22.229.15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.34; Wed, 29 Nov 2023 14:14:31 -0800 Received: from ORSEDG601.ED.cps.intel.com (10.7.248.6) by orsmsx611.amr.corp.intel.com (10.22.229.24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.34 via Frontend Transport; Wed, 29 Nov 2023 14:14:31 -0800 Received: from NAM12-BN8-obe.outbound.protection.outlook.com (104.47.55.168) by edgegateway.intel.com (134.134.137.102) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.34; Wed, 29 Nov 2023 14:14:31 -0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=MgFEt0I+nR93Ju4Su0A8Hf+oa7rFT5S7XZT11DpVx12AkHbX/+U19jLhfrq1WDU7ZurZMThQ+JfIE5MEFnUYQBFB/f5BpvQVq/EuMEDG2xGnZrUm5etORxLihe1UuC/sY7B5JO8n0q+M9maJ1MYzTZABorrd7FNn8Q17qRfwO+zM+UrYL22bspS21djhKX8ITDSM+ejxAD4rEIgLfTCIwqiqklHU/wzu0XnLGz1g292LcfNlItRuSRieL9GeFyGxOKuYo28nSQdj+7ME2pAdvSbrB/Gk9BdT+2xtq6a95UhCZ2rUTKJKFJ07J8+dd/XHsjEOfM/zLx7F1Cl7PjNi6Q== 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=nUxbC840QJZwzqjaVtD+y/vWh9daMYyj/GRc15uUAUA=; b=R9KQwd6RTClAIcB88+oW3vTBnlR9Ym2tXksr3sBkvVuX25mkiZy5zk2MPkwIrtpC/jNrwU8Qw8cB5LTcHQmYj+lJaUPRvGy/BgkbzvtMAf4TLO+rJAraTO+ItX9jCDtXAGKvtm7vSp1UmobTCtyd/G9QJV3IajtD9b3k5RGUT8v2K+BQDIbUmaaH1BsKWA5yDHvcxOtdhkiaOCupjl4JC+tZZZJ1zqq2gOAWHj2Np/bTRWNh5fNlHNYnXFfESZTu68MdgHK+Kh8tBYPHZbeGTYyqFT2ve4N0bByn3OcUMq24R0TXTuRma20R599qT8gKrM1IQOnH0vwPWY6uwwFoNw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=intel.com; dmarc=pass action=none header.from=intel.com; dkim=pass header.d=intel.com; arc=none Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=intel.com; Received: from DM4PR11MB5373.namprd11.prod.outlook.com (2603:10b6:5:394::7) by CY8PR11MB6914.namprd11.prod.outlook.com (2603:10b6:930:5a::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7002.27; Wed, 29 Nov 2023 22:14:28 +0000 Received: from DM4PR11MB5373.namprd11.prod.outlook.com ([fe80::f105:47dd:6794:6821]) by DM4PR11MB5373.namprd11.prod.outlook.com ([fe80::f105:47dd:6794:6821%4]) with mapi id 15.20.7046.015; Wed, 29 Nov 2023 22:14:28 +0000 From: =?UTF-8?q?Micha=C5=82=20Winiarski?= To: , , CC: Rodrigo Vivi , Michal Wajdeczko , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Daniel Vetter , Javier Martinez Canillas , =?UTF-8?q?Ma=C3=ADra=20Canal?= , =?UTF-8?q?Micha=C5=82=20Winiarski?= Subject: [PATCH 0/2] drm/managed: Add drmm_release_action Date: Wed, 29 Nov 2023 23:14:10 +0100 Message-ID: <20231129221412.1180549-1-michal.winiarski@intel.com> X-Mailer: git-send-email 2.43.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit X-ClientProxiedBy: WA1P291CA0022.POLP291.PROD.OUTLOOK.COM (2603:10a6:1d0:19::29) To DM4PR11MB5373.namprd11.prod.outlook.com (2603:10b6:5:394::7) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DM4PR11MB5373:EE_|CY8PR11MB6914:EE_ X-MS-Office365-Filtering-Correlation-Id: e11285ba-29cc-4439-58ba-08dbf1288dc9 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: W4/CrxrzGzdP2HPS6gWZbmbdRQ6jzG+ZklUY1d+zrL/ZtlHEfzM6okGqP5N9z2GYxqNH0YRsSQOlc40o/5czseONQITAhyTQO2WQYeOYEr5d2E/1pQal/tHdDoYMdNgIfpqO2ycaz0yiSyD7Yo0JgMzsOWWbVNHxjNOIM4uiH2pyRIZannbO3fndcfOxneFm5IlhkvffiodCg/328VFCWAywpzTyzDfEQuVg8s2FEAtmtdEnoI4XJWelpnrKokNhr1P6WOa5ILN1+Ofz0MPaX2cOKy4v0aHtX9JUzt+/VLs3yYZqMOpYuzDPWxwW/v0A8E3wg1LC5oVpbMSjICX2g51bMgGO0AufYRDWAQWT/Pzd83eQpyX1yIoo05vR6lFyKykFL9Z0Xnz4U8PcVbcYg9KBG/mb9hx8wSaJq9uNPDzZmSF0lWz8LeHwz+Sik7mfluT2gWNdISZpt2+2GDw73VgKXxXAFCiCIYc0djtITA72Fv/0XDo/+pX1ZXGUa+N4xAyKQ98PapE8v0wnWPaZrVUCopsSV2mY7R5wRBlfAjAU7vm6nY6wkC7FCIAz1WF094R1Ek3gTM4C08wG9aE8yJnnRBX1EZH56p034VDzfJ/owocHARpFZwOcKQkdrPHQ X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DM4PR11MB5373.namprd11.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(136003)(396003)(376002)(366004)(39860400002)(346002)(230922051799003)(64100799003)(186009)(451199024)(1800799012)(2906002)(4744005)(7416002)(5660300002)(4326008)(38100700002)(86362001)(82960400001)(36756003)(8676002)(8936002)(202311291699003)(41300700001)(66476007)(54906003)(2616005)(478600001)(66946007)(316002)(66556008)(1076003)(26005)(83380400001)(6666004)(6512007)(6486002)(6506007);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?ZzFyZ2VwTzFWU0lOT0RtREx1MTgya0VvVVFKRE0zZWUvaTJPUGNIajlvVGtI?= =?utf-8?B?dXJPdWg4QStyQytRQmNRb29RUUtLc0YvcEU4aEFxYTlHZTZmRXlxTnljMy9h?= =?utf-8?B?RzhvMVdzWGk5aTI2cy9LdjBFNnZEZXVaMHUxUWwrak5GM1NLay9JaWRXeGpU?= =?utf-8?B?VE9BdjVTV3h0MEVwcTkzRHhpWm5GcDZWTzNKNGlJMENzdC9FWFRTbmFJOEww?= =?utf-8?B?SnJWZnhpbXZoTlI2c3dtLzMrSk9nNnhhMUhhM0FkSHVYcHhwZUJONENtTHAr?= =?utf-8?B?UVJLTENZT2pyWjhmSFRWYUp2WFBhVXU3YVVEUDd2UWtPOHJxRFMxTHRvdndv?= =?utf-8?B?QlM1ZUg3RHA3aTY0NEJ4bDFLbTNodVFac0ZGWWNjcGljNWNDZ0JCMVNHdk9R?= =?utf-8?B?czBIcHZYeFBYam4yYURlNWJ6MDR1MXhFWUs1RHNsdVFoTTJtKzVXRkRuRWoy?= =?utf-8?B?b3dnRWtnSEtwV3VNKzFKcEoxVTVhbmZyQll4RDdkR205MWkrdzhScUl4YXds?= =?utf-8?B?UFdpVTc2dXN4dVhib3hValljeDZaUytFQi8rZllJNzZMcXo1TU9TZEJwZEZw?= =?utf-8?B?ZDNEMmVFcmlCN0ZuVXhxRjBtRWRPS1YyeUYvUy9aS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OYldpVnFkZnBvWjM4VVh1QWZTaHlQVnlU?= =?utf-8?B?WlZlcUlEdXp6VHB2TllQeDFSWU82LzR2RUgvNUJIMTBUUVJPbWJXWktNOUpO?= =?utf-8?B?enlsZHo5M0s2VVpkWFptcjR6b0d1RVRHV3JFMWtaODE5OU9qZ3JXU0VONWYw?= =?utf-8?B?eFJzdlBGa0QxZVU4WFBxTXZ4NmFkdVlmZ0lkM0tjYW90M29kcGlOK2hYbnlT?= =?utf-8?B?NzQ1OFB0eEJkeEtGNzM0eXJoTWw1OWxRMzlKRXRxZnJBcjgyMGsrMUR5MmlU?= =?utf-8?B?SjU4YTBuRkpoZU1MVytLa2RWc290ekJFZGtsYXBic2xXb2NJcmk4em14ZkxG?= =?utf-8?B?R08yYkVPbDBabnJaYi9aQUhILy91dFJFR09KWVF6Tnk2WUkxRzJYcDFnbzVU?= =?utf-8?B?MURNODdtQ0tqbkxMZlExdnNYYzhja0xaTm1oYnJ6U1NsVzArTFAwblZkWitW?= =?utf-8?B?ZzVyMWVvOUF0cnYxMys4T0p0akRmdTNXdkhDKyt1T3RKZFl0UVptUDdJc0NW?= =?utf-8?B?anhoWVRKU2pGZjFSSTNNakxtcUp3dmVNMlE3VHBNZzlheGh6b2M1TGE4ZCt2?= =?utf-8?B?UW9LVzUrT2pKc1JCZWNJdFllOER3YTZxeitCRUIvVGhPQ1BUVklJUUc4OW5j?= =?utf-8?B?VFE9PQ==?= X-MS-Exchange-CrossTenant-Network-Message-Id: e11285ba-29cc-4439-58ba-08dbf1288dc9 X-MS-Exchange-CrossTenant-AuthSource: DM4PR11MB5373.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 29 Nov 2023 22:14:28.4169 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 46c98d88-e344-4ed4-8496-4ed7712e255d X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: PNJBm0A2y4ljJGZxfUk5UUHW1B2hYkztSOszFPsCGPg3iqjJNcqe3bjDN/nNOjDuRopz2wZj3NRhYAvWRDKbQ2qB7XxFXtEbgObD/CP5HRE= X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY8PR11MB6914 X-OriginatorOrg: intel.com X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE 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 X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Wed, 29 Nov 2023 14:14:37 -0800 (PST) Upcoming Intel Xe driver will need to have a more fine-grained control over DRM managed actions - namely, the ability to release a given action, triggering it manually at a different point in time than the final drm_dev_put(). This series adds a drmm_release_action function (which is similar to devres devm_release_action) and a simple test that uses it. MichaƂ Winiarski (2): drm/managed: Add drmm_release_action drm/tests: managed: Add a simple test for drmm_managed_release drivers/gpu/drm/drm_managed.c | 39 ++++++++++++++ drivers/gpu/drm/tests/drm_managed_test.c | 65 ++++++++++++++++++------ include/drm/drm_managed.h | 4 ++ 3 files changed, 93 insertions(+), 15 deletions(-) -- 2.43.0