Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp5024294rwb; Mon, 21 Nov 2022 15:32:40 -0800 (PST) X-Google-Smtp-Source: AA0mqf7HPG+VMdWqGziUgtlXTUJHuGDv7IJP+uB1fCBUNtJvjfGDH3r/gPy1eqq/VCFFac5L45x4 X-Received: by 2002:a17:906:278d:b0:78d:cd84:9a40 with SMTP id j13-20020a170906278d00b0078dcd849a40mr7372741ejc.167.1669073560456; Mon, 21 Nov 2022 15:32:40 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1669073560; cv=pass; d=google.com; s=arc-20160816; b=ZY1W3mq9yUKD1QyFqzrZr91h8WffW8LIIFXktPekXvp4XFcgpPmj+6V7Z/y8xoy9fP Kj/P6uuNg2lOP2Sx9/SFc5reLzvtrOUtptEgO/KuUM9J39HmgLZTidrDJv3U0Xyh6mmi nbffPuOTPFy0EEyBLTIDjGQ6hx0MlYlnQFDYlNNqrdISuxH/Fstfy7NpFLjWchg3Z3il QBdkL1cddOOFQpsAMSL5XuY8sJUQ6m8vP0wla7DLt5oPnIqKHpgpo3rrXGtaN2rUYqPS bAQUA6ge5CMQbaZtV1bjEN74fs9QNsVMClQuGT79KCeF8lcJrigGJ5Fgt1yjOHFs5oR9 VDNg== 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:from:references:cc:to:content-language:subject :user-agent:date:message-id:dkim-signature; bh=DBvebb4dQoIg8K3iWPU/Zr1rpI4qFKDTXdlG0ONEZzQ=; b=FVgtMr/Qi+Fe8t975GR+IDZUCoD/0VjwMe/QUctEqRD38zGIj8aUs1wtSrUHGqcAwo kraZcNjmD/VgiVNh3ZcNjsaKm4GzaveZBLVHU405eri1szwBekALutsQm14l9ZVAGM9f jeYRy3Sc90okbdA5IUPmJCjqBIWFD8VZ+ffb7qeVYyQs0ghejyZdIU/SV8twd1BiuVj3 ec+gf9K0wIIdNEmZy520gDbio6cGgO/amTAbLtwtbpmV/YjLl6PhCx2qz1XLp9uu9AXo qYDw2RjzHe1Y2tdoHN+ioEgzXAWJ2/Ap4S/AV5psAT9gHx0Ry8L/wqq2DEUUZ95q83pL CqRQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amd.com header.s=selector1 header.b=l3qvPyNt; 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 qa18-20020a170907869200b007ae7d10a27bsi11333747ejc.15.2022.11.21.15.32.16; Mon, 21 Nov 2022 15:32:40 -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=l3qvPyNt; 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 S230142AbiKUXHD (ORCPT + 91 others); Mon, 21 Nov 2022 18:07:03 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57564 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231300AbiKUXGx (ORCPT ); Mon, 21 Nov 2022 18:06:53 -0500 Received: from NAM10-DM6-obe.outbound.protection.outlook.com (mail-dm6nam10on2049.outbound.protection.outlook.com [40.107.93.49]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5552ACB96B for ; Mon, 21 Nov 2022 15:06:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Smzhu+BD+7ZkaCo2EzcNSqkWqQrni9wVJYSplH7XkChDYMmVVG2lPtFB2mXwlP9kMcMsz9hHnNrw8gnze5W6xLXIAns52OA3XvwZTm1d1DT6I1lednUxKLyY9vpn/i2RYDvh9yMV1p7YeXIQs26MFUSFwPmyAvJDUZTFWrWlbrSyCtrW92tr5tWHWtMskI4z/h4CO+87cYRep70nTweyjF0tY+0uB3ZvQV/YG14Rj2dSdZy578DP0TnvE+itc21UwfNRbn8IUtZsrhdtrB80RxfSEnObD//wNvVSvBrwfUhVueZt5fZEgO8enixMba/QnmN7OBjd8SqA4p8knUBEBA== 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=DBvebb4dQoIg8K3iWPU/Zr1rpI4qFKDTXdlG0ONEZzQ=; b=cMSt22wCYHYnG2nRYFEBypWQO7zlC6q7OAXYGgpRfIDJrhB+pMqVD/9Yx7If8WJwF3xL6i/hbVk3jQLQ15s/552JqJDsh2KMD547hOZQG8FEuRzrX24d0SwRg8A0EzkxVHcixz22byGH40AZmkDoQHF3s2ape4V0NV7vigrOJjuG+3z9dpgo0PwIiSw1ZcpbtRHj1p+/xftny7Yqs7mtiUny+HjNsVEH60WYmTYaf+sLueYTVlzaPCnMzmdZXZbwuFKa2R98bIz5Nhi9kwd2YlqLq7Z+M7tjMze8OOvsQZFqaEICMsSeJub4J2xc0RrOZuHRUR1ThecxlxI+939gqw== 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=DBvebb4dQoIg8K3iWPU/Zr1rpI4qFKDTXdlG0ONEZzQ=; b=l3qvPyNtuYPHg9swZko59c9OQOjNLqSPIfFlpoXfYxYeaB03AwfN0cfoJl2iry2BpRkYxJMM0PomLkOMvbglhVGKbuQ84HEDfODtuQoluOg0mtLNkLBUrbLBNcMPRqnizFEgAVG5GiINNIrIJrD9Y8XHVP/HDV82uccl3r5aZoE= 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 CY8PR12MB7563.namprd12.prod.outlook.com (2603:10b6:930:96::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5834.15; Mon, 21 Nov 2022 23:06:48 +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; Mon, 21 Nov 2022 23:06:48 +0000 Message-ID: <02c514c0-62c4-1cdf-5d3f-b3d8942ef005@amd.com> Date: Mon, 21 Nov 2022 15:06:44 -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 Content-Language: en-US To: Oded Gabbay 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 , Greg Kroah-Hartman , Jagan Teki , Daniel Vetter , David Airlie References: <20221119204435.97113-1-ogabbay@kernel.org> From: Sonal Santan In-Reply-To: <20221119204435.97113-1-ogabbay@kernel.org> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-ClientProxiedBy: BYAPR01CA0013.prod.exchangelabs.com (2603:10b6:a02:80::26) To MN2PR12MB4502.namprd12.prod.outlook.com (2603:10b6:208:263::20) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: MN2PR12MB4502:EE_|CY8PR12MB7563:EE_ X-MS-Office365-Filtering-Correlation-Id: 8e8d123d-9b9e-440b-5b15-08dacc151116 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: Mdum9taGacItL0e0J0zDXhoOSluOurEt2bjZufyknWiqTmL1zX924RTZ6sPP6PC8435sFJBZEt0ZewuC3Y2isU7JxrjIkCeyKsbhzTFYMI0X07/H5/ScHAz5zQAoyaOQdMsdH0sdPYwnOdyMKhk7A//qJKr6qd+E8QNnIJywPtVM1pZJ/+z6V+98nGMrE8DHxpsviLMWFS4yYF8JRbFHm6A7TfaiupOS8NRbkn6Lql0sdLp3kCk443wSyqGeGzBTgAxGHHEU+D/wISo3ff419ZEbWl0olsIrXbhqnqfWDfNZ+4gkleGypw/eN4yXIWpGVlEPlw4FNLCcE+MVOOjT/y5mwWR6C3EPy5/VFYh3lI6ga2r7vagNEJBxyvVd7+KRTB2j1qMpX+Rm35ggxu6131eH+dfgOYkXzdOX+S3+QGme59tcZ1xDEne0m74BACeQvaxtIv+7fEqbnqn6SNjmOOVfLNjQIDxaDQewjDE0p1ELIX1pllBGUmm5Bsk1YNEA4w3j2GY4imQ8oOvfKRCh/wKYTaQ8+2p/8bdZ11MsZad8W8Q3ntTO87QiNSvP5zljFbSQh0t8y1ru7o7hWIcaGlGJ/ACo0jkVpMFNbK/CkhCSd275ygR1tG/IQs6Bcd1l28fBa9bouI1TIt4gnPlUwKWkwNXH8mLTNxEx+DZ6EmhwpyfX0asjFRIWNEZFuzeIxzB7wE1BOKkL6JSrbOY4t42hyi1r22WCrF46x5N7R2j3qwj4kwH6cq7ytErcxkmRQmYgCRmd+HenUCEnSCo0AKmmJU1AAnYO2tT2bHD5nBE= 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)(346002)(396003)(136003)(376002)(366004)(39860400002)(451199015)(66556008)(66946007)(66476007)(36756003)(53546011)(8676002)(4326008)(5660300002)(8936002)(31696002)(41300700001)(6512007)(86362001)(6666004)(44832011)(26005)(6506007)(83380400001)(186003)(2616005)(54906003)(6916009)(6486002)(316002)(966005)(38100700002)(478600001)(7416002)(31686004)(2906002)(45980500001)(43740500002);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?LzhSejRCVGRWZlVHT29YTEM1eFRETnFWa0hRQ20zb0N5V1N6MFFlUEFqNW9a?= =?utf-8?B?UkdEdU9VTTVXTHg0cFJNWm1qWFVnYzFyOXhzWEVOSlVEcmZqZFNudzBXQllY?= =?utf-8?B?RjB6czJnUWIxc3ViZFdwTmk1RHFmWlV6QTVoUWJ2WVQ5a2dzWG1CdEtoaWo1?= =?utf-8?B?VC9INW5tR1BuRlQ4VWVOTlRlTGJSRmRrVDRnT0pyVXd0VWUwK01QYUZNZHdC?= =?utf-8?B?a0RrN1JTMFRNTVlZT2tYQlF4SWcyNjhZajdmcDJzY3pLTWlhUHdsdWpYZ1ZE?= =?utf-8?B?MkJWcVdtM1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-8?Q?wJ+I52EPnySNFxdmqjeVu4CqP?= X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-Network-Message-Id: 8e8d123d-9b9e-440b-5b15-08dacc151116 X-MS-Exchange-CrossTenant-AuthSource: MN2PR12MB4502.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 21 Nov 2022 23:06:48.0965 (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: VX1Qka41YHQW35T7ahutMLFFbvF6A863XA1QEjRPpxMd7ThJteFqQcBsB6Q+YV4t X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY8PR12MB7563 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/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. -Sonal > > Thanks, > Oded. > > Oded Gabbay (4): > drivers/accel: define kconfig and register a new major > accel: add dedicated minor for accelerator devices > drm: initialize accel framework > doc: add documentation for accel subsystem > > Documentation/accel/index.rst | 17 ++ > Documentation/accel/introduction.rst | 109 +++++++++ > Documentation/admin-guide/devices.txt | 5 + > Documentation/subsystem-apis.rst | 1 + > MAINTAINERS | 9 + > drivers/Kconfig | 2 + > drivers/accel/Kconfig | 24 ++ > drivers/accel/drm_accel.c | 323 ++++++++++++++++++++++++++ > drivers/gpu/drm/Makefile | 1 + > drivers/gpu/drm/drm_drv.c | 102 +++++--- > drivers/gpu/drm/drm_file.c | 2 +- > drivers/gpu/drm/drm_sysfs.c | 24 +- > include/drm/drm_accel.h | 97 ++++++++ > include/drm/drm_device.h | 3 + > include/drm/drm_drv.h | 8 + > include/drm/drm_file.h | 21 +- > 16 files changed, 711 insertions(+), 37 deletions(-) > create mode 100644 Documentation/accel/index.rst > create mode 100644 Documentation/accel/introduction.rst > create mode 100644 drivers/accel/Kconfig > create mode 100644 drivers/accel/drm_accel.c > create mode 100644 include/drm/drm_accel.h > > -- > 2.25.1 >