Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp1752968rwb; Mon, 7 Nov 2022 05:30:19 -0800 (PST) X-Google-Smtp-Source: AMsMyM7y4+BflQ3LKsMs3IERsYjSuXWgP8eCB69z1V94U7KTIY0ptBNqrMPTgrs9y1Waa2EwHRpj X-Received: by 2002:a17:906:4783:b0:780:5be5:c81b with SMTP id cw3-20020a170906478300b007805be5c81bmr48039482ejc.76.1667827819004; Mon, 07 Nov 2022 05:30:19 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1667827819; cv=pass; d=google.com; s=arc-20160816; b=Gr8Dpq+8ItCOXgAh9NR01qGRlshRwL73cx77zJcQhaspUGvyAmsHlq4jr88Eso6HPU nYQmPBSSjsBf1qo+KsnPbpo+qWETgiWeixx8ZQOkCcM6k/biYRGyQcTM1ETcDtzaitOs LwKp4+iqHGdfuHKwWrRD4w0IaqLw3Lt6SG2HB3DLnhS5Fmc/WCjd5xd8c5I1Wal4hQgq IVcni8WTOzh+kauyk2nBQbdilhIYnU1zrQ5B1PnOc1o5rU78as5oU/kBNO4vw4YiHEvW XXUvCh0ppzVyz0F0NEjYTVqLD3HK0wG4tev/eo9PSgU4r2PAgeFZEO4LZcx/W2NGxXTV 97Vg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:in-reply-to:content-disposition :references:message-id:subject:cc:to:from:date:dkim-signature; bh=oqKqjz6TvoIf6pNrM9HS5lAEf/wnj+3mO/SkHcn291w=; b=NSpyHVsfiqDoYzuf0mAAHGRnxp/QfwHwYpyZOJ+MNoWHiQPC0Hv+fZ+iMOxzJNrKDL SfBz1UBuGucZg1QrlFlksxukUuJ9EUEz3EBktoCilDCNB+s9WP0vQqOlZOX93ldjyoNo 9s6PpK45wBLVCyRQioOdQsx4+slcumRXpGvl/TJ3HmpTfqsvUGPtfNwsCakrw4xIOiZO M7tgC4nSIYT4rboCXIJvVl2GS2+e65tNWjVFfGSj268vJspJdibgg5eKKbPSKXp1Vaa+ u0qQMnCLhh9wcySLbjpY4XZsA+kLoRWOLvexyXb2pgyK9deBkOLm6AFgXOq3X+L3lhse 1YkA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@Nvidia.com header.s=selector2 header.b=hs9cl1mn; arc=pass (i=1 spf=pass spfdomain=nvidia.com dkim=pass dkdomain=nvidia.com dmarc=pass fromdomain=nvidia.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=REJECT sp=REJECT dis=NONE) header.from=nvidia.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id qk35-20020a1709077fa300b007ae6076db35si6753262ejc.315.2022.11.07.05.29.57; Mon, 07 Nov 2022 05:30:18 -0800 (PST) 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=@Nvidia.com header.s=selector2 header.b=hs9cl1mn; arc=pass (i=1 spf=pass spfdomain=nvidia.com dkim=pass dkdomain=nvidia.com dmarc=pass fromdomain=nvidia.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=REJECT sp=REJECT dis=NONE) header.from=nvidia.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232124AbiKGNKo (ORCPT + 93 others); Mon, 7 Nov 2022 08:10:44 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50216 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231829AbiKGNKm (ORCPT ); Mon, 7 Nov 2022 08:10:42 -0500 Received: from NAM10-MW2-obe.outbound.protection.outlook.com (mail-mw2nam10on2044.outbound.protection.outlook.com [40.107.94.44]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 96F0D1C429 for ; Mon, 7 Nov 2022 05:10:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=k2bqnGOotXERKUtRCgBVi+Mz1+di9uWGwt/FQ7qC4R3I/cT/ZNLI8R0fnGSefQFVOwQk01SKC055Pajyy59yWg77QzdRC8urIRC2+kSvD+6NileQqK95FTKkeujtyNg4kvzq6G0xGQFvwF3rQ7WY5zxhc9m2yJAZRS60Iwcx5mEXQgRP08s7AAEaA46jVvIUVW6FdtS5EpXHMx0qhC0Ju0tChLvAiuCzZPw7L2093WHc5G2/PGEErOGiYKU3/uFkZR4U3V7rBLVyWesCJBESINEQZwtm9+W2HGjzEjvzFQAgOxO6KKYgnJNPCjF1gEgPEC+Y53NxyFLSKCOPhNiMmg== 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=oqKqjz6TvoIf6pNrM9HS5lAEf/wnj+3mO/SkHcn291w=; b=eyFYHsg1e5DVUov+yIOpB3xCovgBODWw73dyStuqfwVHKE7q7Js2EKkEFUkClEiXFDwlSBwhotzIH0xGMNpisZJrsVq6Qk8wH0g/11SlQSCgEdh+f+nMjsAQDF19Mrc4sm66/7YHJG0wJXVa8BZfD+qrFWIdI4473uVe0BxSv11xico4kQcBjxLNjDTiyIJaEypxk+YhnnhSFz5aAPdbSmBrkPLOr22sicj1XeDIsJiHjFZqKtUm2SaYc+xCPH38T4ZCr7bQ+nchgbgfl179u86WkfHrf0veLbGU1MolOjPKPj+zg3J6MIPrtHd1GU8yIHUV3Shf38FZy333v7KGWQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nvidia.com; dmarc=pass action=none header.from=nvidia.com; dkim=pass header.d=nvidia.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Nvidia.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=oqKqjz6TvoIf6pNrM9HS5lAEf/wnj+3mO/SkHcn291w=; b=hs9cl1mnRgRuB7dmM7fyzkJaaaPcxthwi0UfyWE0J24cRGmF7daUHzsOU6XvtnZelNe1wEfiQB0n7HcS7GKHBjwI2mufTetvvCElMyJl+IMgbMrs4lrfG9G5vMLIiDPsK+J3CvdGk/PRG6rnEztPnktSzLN7bad54WKwlGXYgofF/qfRVMnRjDuActQQGvod3ICbG+iae0ZpDXXv/jAj3s0BiKC6ACsafjcT0g6Vsk6ycyDoD9wx5YBpeo1xx1qyCNtmo5ex6D3rE2cmBeu6UxETQF53L/bGNY7Ne1BbYhDEo4JCDqJMNzzvvecSZcEW5z/FjIAiKuzuSbvSJ5n7oA== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nvidia.com; Received: from LV2PR12MB5869.namprd12.prod.outlook.com (2603:10b6:408:176::16) by BL1PR12MB5899.namprd12.prod.outlook.com (2603:10b6:208:397::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5791.24; Mon, 7 Nov 2022 13:10:37 +0000 Received: from LV2PR12MB5869.namprd12.prod.outlook.com ([fe80::7a81:a4e4:bb9c:d1de]) by LV2PR12MB5869.namprd12.prod.outlook.com ([fe80::7a81:a4e4:bb9c:d1de%6]) with mapi id 15.20.5791.026; Mon, 7 Nov 2022 13:10:37 +0000 Date: Mon, 7 Nov 2022 09:10:36 -0400 From: Jason Gunthorpe To: Oded Gabbay Cc: Greg Kroah-Hartman , David Airlie , Daniel Vetter , Arnd Bergmann , linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, John Hubbard , Alex Deucher , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , Yuji Ishikawa , Jiho Chu , Daniel Stone , Tvrtko Ursulin , Jeffrey Hugo , Christoph Hellwig , Kevin Hilman , Jagan Teki , Jacek Lawrynowicz , Maciej Kwapulinski , stanislaw.gruszka@intel.com Subject: Re: [RFC PATCH v2 1/3] drivers/accel: define kconfig and register a new major Message-ID: References: <20221102203405.1797491-1-ogabbay@kernel.org> <20221102203405.1797491-2-ogabbay@kernel.org> Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-ClientProxiedBy: MN2PR13CA0022.namprd13.prod.outlook.com (2603:10b6:208:160::35) To LV2PR12MB5869.namprd12.prod.outlook.com (2603:10b6:408:176::16) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: LV2PR12MB5869:EE_|BL1PR12MB5899:EE_ X-MS-Office365-Filtering-Correlation-Id: 2a7c7b5c-bbf5-4d32-de09-08dac0c1766c X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 30v1+qG0w0fg8ItlvweheFgATMARAClNIbtaiXDlWvcJeniieKAwQX/Z7KunxEjupTNf+OgheQ9t/4RYKCV+WSWCm1ToHAk9CaGtmwK2uhQFnsxSCEwi3sneNU/upX6DPfeBP9RvhOrsZlg7/kdnSQve5lJrBItBmJ8xg9LYC/i1EtVwEptZSVbQy0NZK2G1iy9LSnKtH5T3WLdqL06PIIH/2+WgQpXEyhN2i2KEGtmSmAhhuS6KYNIfh7DrXkViS+fUh/EG3k7zXQkNTAIKDgow51GBMYIypgg24NWnQUS4gSNPZqY48UQpj+fTdX+U8jRdXsgn08VTPG6D06rpf6TMgNVX58YBDp9bLJ5tWU+j5lqC8EHosRFdD4mEhDld/EtJuvYkml8UQrDSvLaChOF8m3oodKntZkcDoLoD5/jPIkI6nGri6K+slAuGq1lnZ8Kk/rSdqoVnWLrNteABkK67VrTAQZ/btlpkGD6lIoVW0F36dvP/pXK8WReLgtuvz7I4Yw0JqSPeRjhBKm3pclOWUA3mwsTQslCQ3pJIRK30kU1kN+tHagyeJNPj15g9oUeYynE6A7pQuqSqWr08sRGqI3tylX3QM5h4e7QHLHVzGXV2ffOYjA1XsMdJOlaPE1w7Ov9TWtSx3sRp2x9u12j/Po2hi7zmIhYt4zGTSf2OxaR9LLzOIVsB6oYgcekUMD8+76gpn/Z5Ag4DcZJtZg== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:LV2PR12MB5869.namprd12.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230022)(4636009)(396003)(39860400002)(136003)(346002)(366004)(376002)(451199015)(4744005)(186003)(66476007)(7416002)(6916009)(54906003)(8936002)(36756003)(316002)(5660300002)(41300700001)(6506007)(8676002)(4326008)(66556008)(66946007)(83380400001)(26005)(2906002)(6512007)(2616005)(6486002)(478600001)(86362001)(38100700002);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?ZO0Y1LtClZqf/Jj8n37kfcnL5PODN7NRzf9GufEzZaBTHbeYaOfMNlfgvMfC?= =?us-ascii?Q?E2BikF3l4wDrr3nsXFPyYEtMlPj3yjp9Tx4+QzjAGBBblAdhnt8H3g47brsN?= =?us-ascii?Q?jpQl7sTzRKdxHwKUrc2Fht9HdL3xG7Y+PvNSIFZAThtXiWWsbaUyZX3d9hGx?= =?us-ascii?Q?qKo0jVgtTAvneDW9JcelaHRhpwPOyLKVEeSPE0ssoi2sm3+FsmIPZ53y9Hqi?= =?us-ascii?Q?4K7IlvTlF0nAYzeQt+ZWgysioM446C7azFaWyxeZZPVodetZmI4Wy2MljyHf?= =?us-ascii?Q?ugcXI25L4jgzprgefwokC/gov7dvuIf5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?2yxL4Wxj1dJG4CqNSqCnlR+v+2HFjBxqwm1TZbP8raAsJMVZNjqrWKpD34LM?= =?us-ascii?Q?NU0DCXV0MiM0BfxIsRP5wvs9TGODjU9Idl8wvHjQBMwWDpKPxVvshfyakG+G?= =?us-ascii?Q?zu2N9SNKO8t729418rw5L25VbHR9WjlqeFtTeWMRHe+mlDC4cD1sf9DPDLX+?= =?us-ascii?Q?nx8bo/um5Gf4nIL93QcOzvyMCH7DliU/FbGoIGKaYB+nUwa0a/r59WOsAyxg?= =?us-ascii?Q?pJpoJz+n3glNQ5L6nyrlhaLrtVe1PMDYDBVnUObqj+tr7Hsx0fTYsVL4WAED?= =?us-ascii?Q?dDpTrO0xSlf0D8UYb8nLiDI8Vl++sd443cqDzHQ2jEqNx42s2quIhhsPJKR1?= =?us-ascii?Q?DwLU7RG+Bx9OtTljPso=3D?= X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-Network-Message-Id: 2a7c7b5c-bbf5-4d32-de09-08dac0c1766c X-MS-Exchange-CrossTenant-AuthSource: LV2PR12MB5869.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 07 Nov 2022 13:10:37.6757 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: 1gfFOii9Xqs7sykpBsFA7ywoCoGIjaxVGipfNPT2x0VsATY4AV6Svp3azNiXuIaf X-MS-Exchange-Transport-CrossTenantHeadersStamped: BL1PR12MB5899 X-Spam-Status: No, score=-1.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FORGED_SPF_HELO, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_NONE autolearn=no 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 On Mon, Nov 07, 2022 at 03:01:08PM +0200, Oded Gabbay wrote: > I don't agree with your statement that it should be "a layer over top of DRM". > Anything on top of DRM is a device driver. > Accel is not a device driver, it is a new type of drm minor / drm driver. Yeah, I still think this is not the right way, you are getting almost nothing from DRM and making everything more complicated in the process. > The only alternative imo to that is to abandon the idea of reusing > drm, and just make an independant accel core code. Not quite really, layer it properly and librarize parts of DRM into things accel can re-use so they are not intimately tied to the DRM struct device notion. IMHO this is much better, because accel has very little need of DRM to manage a struct device/cdev in the first place. Jason