Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp7419076rwb; Wed, 23 Nov 2022 06:21:42 -0800 (PST) X-Google-Smtp-Source: AA0mqf44pXSYatk+aV9NKPUAo7u1yRsjlvoDmMRUaeuBxcvpFQlOvARIhQ3MXLx+I2Ogy1h2xf6w X-Received: by 2002:a17:906:b14b:b0:78d:cede:91f4 with SMTP id bt11-20020a170906b14b00b0078dcede91f4mr23867979ejb.764.1669213302048; Wed, 23 Nov 2022 06:21:42 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1669213302; cv=pass; d=google.com; s=arc-20160816; b=ECjt6h3nrIUmfdzjHjbUqzgbMlL15WJPuptCw2C3EPeqe8yfYCV70JfpQp15p393mS pTh4S2Vi4y53+Q6EqkIr2W6NUQBpq0rksD5qibCMcXEu0Yg3TslUMIDyPD5NIZIJUcGn WEffNU2c3gkQVkmS941C0Jy4W50ScbmqqLhPOf2thLYl1/3nP8zhRO6qkDzx97+YkmU4 KHPJ8I5zO3j3vvAewIbMzQHmEHOJVRx6NZAt4CGcT09VU5MCVNipZf6UjIZ/b1FeaUpf 2W1koeKx8131cvyjq3wCHqoq6J/atAWsHGVazzsQE4nwMeEoc5bp8qJrkYiLhL7YYd1Q JAmw== 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 :in-reply-to:cc:from:content-language:references:to:subject :user-agent:date:message-id:dkim-signature; bh=Iv8gYaw/qRtI0HwMFyuckvTW0U2lSCpcSLdSybVmV0M=; b=UCZlQIxeOtxNtuezjSFvS/3y8GQyoEb4R++WaSI0wWBZcsQenvIcv8ZiwRWthDsrlu AcP743d2Nb0eceRYZ671TX0Ir/yNRBPnmA8xZOfOv+xnzgbXTI1vqkce2H3iWrImMJ7x o24XTR3hfAK1Lc49aROcvIl5jWNBD6JfWu70taDG8JDzvRI6F0sSVIV8KWn4rwpNyVnj 6E2rwrBurPmomFFs4WTgx5TzukByROp67P9vnMJkjwKAtRW8XPpDVYzF+NQ0eAsKbvyv uy33CS4HRPAKiW4HTAf28blWdTFOurovhUZz9kXz80e6zPBOtuLfHaA4wGkw2AfnPmO0 Sg8g== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amd.com header.s=selector1 header.b=INZoQWQM; arc=pass (i=1 spf=pass spfdomain=amd.com dkim=pass dkdomain=amd.com dmarc=pass fromdomain=amd.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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amd.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l10-20020a056402254a00b0045d9ceae669si16183934edb.404.2022.11.23.06.21.19; Wed, 23 Nov 2022 06:21:42 -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=@amd.com header.s=selector1 header.b=INZoQWQM; arc=pass (i=1 spf=pass spfdomain=amd.com dkim=pass dkdomain=amd.com dmarc=pass fromdomain=amd.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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amd.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236316AbiKWOGZ (ORCPT + 89 others); Wed, 23 Nov 2022 09:06:25 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58640 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238317AbiKWOGI (ORCPT ); Wed, 23 Nov 2022 09:06:08 -0500 Received: from NAM10-MW2-obe.outbound.protection.outlook.com (mail-mw2nam10on2078.outbound.protection.outlook.com [40.107.94.78]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 98A89F1E for ; Wed, 23 Nov 2022 06:02:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=GPZ/H7CGCrARxGTii/SjrAwr9uFvpJGi5nZFWk5ePAX9HRKIzHiLrkPSyFM5RAQ2g+RXfQC3qy5FbqsB9l/0Mj4W5MnTdb4GvqfttIlp9jp41TWOoL4DoB8aj0tHEpxs+H3qtNmL7cwuzmaDYcr9t1UKOHP4bkdtH0ME2jfqO6hkex1Tq/KY4XOTwbuS7sqkS9X8yjRo4OFPaj3rjBUeZGsU3VSRzgR0jXBP4D4ACHTSvmKygsRmA2Rwrix22+P+LHgaCcRggyIovF50mECRcmNYmG57zFfXOsa1v3KVASShRZHc/jxXQ/KCjMabHvkVr7EwRFX2P2uQ3ULdJRLVUg== 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=Iv8gYaw/qRtI0HwMFyuckvTW0U2lSCpcSLdSybVmV0M=; b=BThDzPnEIz2RKBsIzfAZ24qIPmSyQZV8Abf70EJPoztgoVw9k7TwfW/NypVC5IziXcWxb+wAXRvN+MP0FHkJ0E3sbiGp62j5qL+stcSHmzqhs584jD2/eumKXPyglaeWZrXhqJd1MyDwAKw91pNU65a9wmBzjMeACkOMTcTB1eQpzIegniIQUx6DPI/x011elgkBZPIeqfMVkjBWrFN5vTTJpoj1O7jnAYW6gYJAIwSEGa31TjbnLczzrLloNOst2T6KnwnfeeyQ4XUrsJV3VG3FA1OvZQyl9ki+0yYYqK8FKXEoJRXNM6zrU/K3bjtBTYqu0AXQc372OyB0WD2oqA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=amd.com; dmarc=pass action=none header.from=amd.com; dkim=pass header.d=amd.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amd.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Iv8gYaw/qRtI0HwMFyuckvTW0U2lSCpcSLdSybVmV0M=; b=INZoQWQMQJiTDTFNQfBBXUPWlZW3SPIhF6qgznjoApuCaxWA65CvEvMKJ4aUMQ5GYTwhXZ0VNvQr5RQ6ysMUSP1fYx/L1kXEG0cvlkSdUlNVl8yHqpIWZBGdm/TcSsGWBrVQn9uRWXba+D0NcKkC3RrwIpxkUGhqVrNdxOdpLnY= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=amd.com; Received: from MN2PR12MB4502.namprd12.prod.outlook.com (2603:10b6:208:263::20) by CY8PR12MB7146.namprd12.prod.outlook.com (2603:10b6:930:5e::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5834.15; Wed, 23 Nov 2022 14:02:34 +0000 Received: from MN2PR12MB4502.namprd12.prod.outlook.com ([fe80::ff07:a59a:76b4:f06]) by MN2PR12MB4502.namprd12.prod.outlook.com ([fe80::ff07:a59a:76b4:f06%9]) with mapi id 15.20.5834.015; Wed, 23 Nov 2022 14:02:34 +0000 Message-ID: <799672c1-c2fa-900d-326d-8673ce9e6e7a@amd.com> Date: Wed, 23 Nov 2022 06:02:29 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.4.2 Subject: Re: [PATCH v4 0/4] new subsystem for compute accelerator devices To: Dave Airlie , Oded Gabbay , Daniel Vetter , Greg Kroah-Hartman References: <20221119204435.97113-1-ogabbay@kernel.org> <02c514c0-62c4-1cdf-5d3f-b3d8942ef005@amd.com> Content-Language: en-US From: Sonal Santan Cc: Tvrtko Ursulin , Jacek Lawrynowicz , Jeffrey Hugo , Jason Gunthorpe , Arnd Bergmann , Jiho Chu , John Hubbard , linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, Christoph Hellwig , Christopher Friedt , Thomas Zimmermann , Kevin Hilman , Alex Deucher , Yuji Ishikawa , Maciej Kwapulinski , Jagan Teki In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-ClientProxiedBy: PH0PR07CA0087.namprd07.prod.outlook.com (2603:10b6:510:f::32) To MN2PR12MB4502.namprd12.prod.outlook.com (2603:10b6:208:263::20) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: MN2PR12MB4502:EE_|CY8PR12MB7146:EE_ X-MS-Office365-Filtering-Correlation-Id: 52b9d575-cdcd-4607-9c4b-08dacd5b5ee0 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: C7y2y2gmTS2JG4mInTzTv2qssdnaZdVBOPo/NIAhBqXxyPOATx5n3OzCSirnvPrVTIHPPg+BFzdUF05oso93Y7aEdsrGxGpJj4wcRf+adP8NZsucxFhlHz2LwOEm/O5mzm8QYpz95BMgr8McJuYcLkEOtDYkm2sCGmC3O/HWz4ed21hfxhe+7BYSOUxPxp/IfqRfC5QEpl/HNTJEJsMH7z4vkGYtZr8iJNQ9xTYjQpdQMOP0MmadM5yvBM0K8CrrYB16dZkqdi/j9VRwh1N+uPvXoYTHeQV+OcHzpcNqBRKBHF2sSkTBEff5+UgevI3KNvQ2Lt1lQB6u3JpE13PjDPU26dICZy5dDTlTVU0emiqOfbQoLqnt5MMXDSS+Ko85tXfeEVwndcFy/U55raP2TqwP036MUV46bu4XgNHVcGNEitH++/Va9o3cXza8AmeNgjFXLE7NesKdGSgcrkVw7djkX4+JNth9eCDqV9Dps28G5QHLshZe3Uclw5OX48THHixjNH6W398x0b8N8jM/BpoEsZ72vQm/NnKZALduwlsetfbuu/dFiHbHQWDes5hflHd+AILNXCDW9J8h68Vw5DpZz0qrFrrCb+wFDeAWxjJFeb6WU6KNMRwywL+5cr9rluejD++WlhxdGk+jl1QnMWOB54Xijx+fA5WkYwpwowo8TkJOtVW7lORCoT9EjaMKXL24EBjfGEUgbnipTQdN1SSdmuLow3mOmyiIQrEpMk3AMW4s4oiCUtY45KF5kckA/C0bJrkQew+sWdhCh4KMTJ5u3XGU0BrTU5FepbWsFjQ= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:MN2PR12MB4502.namprd12.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230022)(4636009)(39860400002)(346002)(136003)(376002)(396003)(366004)(451199015)(186003)(53546011)(2616005)(316002)(110136005)(54906003)(31686004)(6512007)(6506007)(26005)(6666004)(66946007)(44832011)(5660300002)(8676002)(66476007)(38100700002)(66556008)(4326008)(36756003)(86362001)(7416002)(8936002)(2906002)(966005)(6486002)(478600001)(31696002)(41300700001)(43740500002)(45980500001);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?T3JTYnVJSm9qNlQ5Rm5zNDRPNm1NdjBZV3l4UzhIU0ZYQnBCMXd0bm1NdFVJ?= =?utf-8?B?SGx2aklGeSs1eEhiUUtzQmxkbmN4VnBqQzhRSzdoOUF0UE1FMWZjTXh6NStX?= =?utf-8?B?cXVKakVvODM0NzZUdzFIc2lRRWNMM2hlWjVLd3lUM3gyNlROaWVQa0pHZ0Yw?= =?utf-8?B?eG9IbU10MUlsZVd5blhrUkpWOXpiOTI1Qk4wWVJRRlhVQXBaczEzcldaa3lj?= =?utf-8?B?WDN2RnpQVmtnQVlvVkRzdlRLSS8vM09qdldPOUN2QllsRVBiT0JhOHQ5djFa?= =?utf-8?B?YU9HcC8yVGozd2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M01iUGZOMzRuejZ0VGt0?= =?utf-8?Q?v4qG68raKVXpT2bcDQgjVpDnn?= X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-Network-Message-Id: 52b9d575-cdcd-4607-9c4b-08dacd5b5ee0 X-MS-Exchange-CrossTenant-AuthSource: MN2PR12MB4502.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 23 Nov 2022 14:02:34.5405 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: fL/xpenKoLl4x09UVTt+XDAd6MB8EKcGquH2kY6LdMkgbjy8P2o9u1M6BJu8khUU X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY8PR12MB7146 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_PASS 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 On 11/22/22 06:54, Daniel Vetter wrote: > On Tue, Nov 22, 2022 at 03:46:25PM +1000, Dave Airlie wrote: >> On Tue, 22 Nov 2022 at 09:06, Sonal Santan wrote: >>> >>> On 11/19/22 12:44, Oded Gabbay wrote: >>>> This is the fourth (and hopefully last) version of the patch-set to add the >>>> new subsystem for compute accelerators. I removed the RFC headline as >>>> I believe it is now ready for merging. >>>> >>>> Compare to v3, this patch-set contains one additional patch that adds >>>> documentation regarding the accel subsystem. I hope it's good enough for >>>> this stage. In addition, there were few very minor fixes according to >>>> comments received on v3. >>>> >>>> The patches are in the following repo: >>>> https://git.kernel.org/pub/scm/linux/kernel/git/ogabbay/accel.git/log/?h=accel_v4 >>>> >>>> As in v3, The HEAD of that branch is a commit adding a dummy driver that >>>> registers an accel device using the new framework. This can be served >>>> as a simple reference. >>>> >>>> v1 cover letter: >>>> https://lkml.org/lkml/2022/10/22/544 >>>> >>>> v2 cover letter: >>>> https://lore.kernel.org/lkml/20221102203405.1797491-1-ogabbay@kernel.org/T/ >>>> >>>> v3 cover letter: >>>> https://lore.kernel.org/lkml/20221106210225.2065371-1-ogabbay@kernel.org/T/ >>> >>> Thanks for defining the new accel subsystem. We are currently working on >>> DRM based drivers for unannounced acceleration devices. I am fine with >>> these changes with the assumption that the choice of using classic DRM >>> or accel is left up to the individual driver. >> >> I don't think that decision should be up to any individual driver >> author. It will have to be consensus with me/Daniel/Oded and the >> driver authors. > > Plus the entire point of this is that it's _still_ a drm based driver. So > aside from changing a flag in the kernel driver and adjusting userspace to > find the right chardev, there should be zero changes need for an existing > drm based driver stack that gets ported to drivers/accel. > > And of course if we realize there's issues as we add drivers, we can fix > things up. This is just to kick things off, not something that's going to > be cast in stone for all eternity. > > Sonal, with that clarification/explanation, is this entire thing > reasonable in principal and you can drop an Ack onto the series? > > Thanks, Daniel Sounds good. The accel patch series is: Acked-by: Sonal Santan -Sonal