Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp8267654rwi; Tue, 25 Oct 2022 04:47:17 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4Nfx5GO6cBXKnmqa6wtHLhPgXsUryB0c1FFHttgZnI5/Ri/Glz7sKC9bP+ATW1+Du4NB27 X-Received: by 2002:a05:6a00:140d:b0:528:5a5a:d846 with SMTP id l13-20020a056a00140d00b005285a5ad846mr17481705pfu.9.1666698437651; Tue, 25 Oct 2022 04:47:17 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1666698437; cv=pass; d=google.com; s=arc-20160816; b=aYY5DI/6f1QF3DnUwHiC7NIhqAxL5/e3x5ZeyHyBH1D6ERdc5lXpJnroIu7fn1Ui8B 4n+/6SilZ2UzebPsd/QA/o+y5+6WSNRkqR64N/w1itYnuOnnWR20N+KfXmS4DmwKuFfX il64h0QI+7eL4y9bcMq1S1UWoFBAJUc2o55I6EuWijcmdb7qD1kqgDvF7JzU8Zu8WhG5 zKf+Cf5S/PPDHrg3rFI+1EA1rQD0g0y8Tukujt75oE6D44wajSE2aHn0YIgaoKkX8D80 /c/SMjv5TjW3fbUKO6lxyS6bLKHPq9DSsfVL6BmiRUuX7SjYzg1AWteW/FHvOfDU2LhZ xmWQ== 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=6AxNLGCBw6eqRe4iZu7SFM5ub1eNn7QisVS+TiijpVs=; b=jdmKS1PyYeHmJr9Q6X9HR06FxCBRb/yW0jPGCXz2tD7rtevjwLqslK8U/QrXjKWdkQ FpYN+yp+ZKQCctwk++XRjb2bnYga/cW6AArFcSXwTlGVFjxTZiaD/X+yfZr2NGK7GRy7 vy8yssqUJ3RKcmcOMl9sh9g4v4FfPEY/uXAOtA/J8hCKHiVdpjtekqyejD9APbb2Ue0u Rh25MxoTMY0Bvy6uFZq42B3yymClvDCJyvPEdfdZHVNp/GBVv4GAXq78Op8v+ik0FoKS AuMqE9Ez96AVX7t9kC4t1zvrDELRnJdH6ujycd65BVoUtBSeSFylUOxjFUZZK/FnpINS Mn1g== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@Nvidia.com header.s=selector2 header.b=crKIDlQ6; 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 h193-20020a636cca000000b0045d1aa2a589si2584529pgc.840.2022.10.25.04.47.05; Tue, 25 Oct 2022 04:47:17 -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=@Nvidia.com header.s=selector2 header.b=crKIDlQ6; 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 S231217AbiJYLPY (ORCPT + 99 others); Tue, 25 Oct 2022 07:15:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38398 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231144AbiJYLPV (ORCPT ); Tue, 25 Oct 2022 07:15:21 -0400 Received: from NAM12-MW2-obe.outbound.protection.outlook.com (mail-mw2nam12on2054.outbound.protection.outlook.com [40.107.244.54]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B203110EE47 for ; Tue, 25 Oct 2022 04:15:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=HzFkEX9EvDKnol5BFxyqzIagO3y1586+pJWy5I5139/kZD4d1eYLGL7HSCYLgmDZ4xENp/PijTgUar7EpVmn23tZjcpFMMXfW9bAECnSuv2fo5F9n1GrkeIX33CGv+bins5mMt8Z/btUVQdKvJ8ovNz94g2C0/U1P/cDR+n5z4DNGdTam1p/D3b8qUyhtJb/75Bic9q2L1qwc6I40HIxZbtQ4otEqDIf9Qy8dBbn9TcgYkC/nw7a3jsnOqnUSrEy5Pz0F/QNFDaiRo2/OeugeYuBrqLCckaE0gWV9pIQ2NEHKV3za/TmzcWu8qWcN7YUs4eB0a8UrEx0h25ktN3V1g== 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=6AxNLGCBw6eqRe4iZu7SFM5ub1eNn7QisVS+TiijpVs=; b=JhxeZMNQgSpGK5ibIf1Pn+dJhlJJbZ0pL/7y1GV7w2SfaMqVmxh3BDtXGOb9GghVznzlfxJzlvBAiiLqQJ0lIf5wi7rEYpCOMY6iR1ekBwXxhyM5M486o6ZSiqT/XxjPfkXj3laepmE7FKfRVgsGEe5Nc3tJ94cWrxp1KDH9iD3tHLyHDYCbunApclodK9mp3JrmAKx1sbe8aeYPtv2w7TqdRsV02rn8f3XfAE5Vcjq0ZvZHd5dlk+ModYEG95ue8u6HHx36vf2dU4+BS3rO3mWY/RMkNZaHk7mF3b/ctG/Pk8xEqySXCzTgfIJ0Kz9J/kO+FqWoNmRfYDf8FkGqjQ== 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=6AxNLGCBw6eqRe4iZu7SFM5ub1eNn7QisVS+TiijpVs=; b=crKIDlQ6uNanB2hIjiXBe5/DzDfgNHzoWOO0IbCOuR7riJNjKL5b2mrrt9gWkzr4tAEeVtO4Q7pGMAJqmR5oUv2eRVDSDOD6Q4cPtXa9dLoa8nN5gky/dQ83KJNzKGJXcc2+zBSAvnoauAJs1Pd0O0thcwwfqTmTTMJzVgkRASUIdoSqq51dSHz1EGOIwh/rMEy/n47Knfc2p+wowoec0nXqO0Quch0vo8/J23h7qfYmgl3TDIhEyRSo++P28hYV8SZGWHQK+BW+3+vljuGVDhSC+rp/9VnBzN0SQOJNX/gZQUiM2hnnT2PETOtqqxsAk+nSsst73bN10rlChR93qw== 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 CH0PR12MB5345.namprd12.prod.outlook.com (2603:10b6:610:d4::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5723.35; Tue, 25 Oct 2022 11:15:17 +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.5746.021; Tue, 25 Oct 2022 11:15:17 +0000 Date: Tue, 25 Oct 2022 08:15:16 -0300 From: Jason Gunthorpe To: Dave Airlie Cc: John Hubbard , Oded Gabbay , Thomas Zimmermann , Daniel Vetter , Arnd Bergmann , Greg Kroah-Hartman , linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, Alex Deucher , Maarten Lankhorst , Maxime Ripard , Yuji Ishikawa , Jiho Chu , Daniel Stone , Tvrtko Ursulin , Jeffrey Hugo , Christoph Hellwig , Kevin Hilman , Jagan Teki , Jacek Lawrynowicz , Maciej Kwapulinski Subject: Re: [RFC PATCH 0/3] new subsystem for compute accelerator devices Message-ID: References: <20221022214622.18042-1-ogabbay@kernel.org> Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-ClientProxiedBy: BLAPR05CA0008.namprd05.prod.outlook.com (2603:10b6:208:36e::11) To LV2PR12MB5869.namprd12.prod.outlook.com (2603:10b6:408:176::16) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: LV2PR12MB5869:EE_|CH0PR12MB5345:EE_ X-MS-Office365-Filtering-Correlation-Id: 885835b3-9427-4f7a-cba4-08dab67a3272 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: AdkhpVSLcnPdir78sK0Pv+GKs2W5f1DDZY4Aofp7HXo+NFIW7SWt9ED2JLcURPrY4rIcDfKfEpD/NueS7kaiaRaQohdbAkX12l4BZAZxxEzrs7SZPAWLJm3NbcIe10VJoO7NtUkUyVNVCGE815ljUDaBvJa9PrzmVab9ZjJCe1rYO/gfWic1aCxrg2qE8uN1ysmO9P1PtI08pb/W5PH+5ZJ8qrBrjFqpPKCpPnKt7OKkkvHeNeNHx/1PL2x5nx2jIXN+rZJoINr3w8qbDA5md5AhBN52yxp06wk8eefcmt51as8U181VTSNYjFiqwjcEZrUBkkHlEsYpoSzAP3Cvh1xpa5Ng7hv9V2vElWsW3ky6m8VShyUoO6yQjqC1krsBSRGcoqnRsqrQI1PM7dPhmjo9RNqvPr31Pg2aRhtzxMLp6/F602OLoxdyjfKI0d+PhNZuBFZqZyhygh2JQdgxA2FoVFxZEN2my5L7H8OhtCuFcY9CHa8BvsNviKNlUeZoWitDUi8aBshrUvlKSCNonu9XkoSpMOsHCPemLPNdvrwIhlsJVI5TxZWbxDqM5xodAKnnUdSiQ3UEWHIGiMZpOeXq9GGsyWU5zqM2Trpi9xOH8Do/2mbMpZLSStWB4Rux6b21WkRiUZiqJJ5N/iPvIbRDHA4ImIhbxeuQvXeB56/GB1nqKLwR2s9taSH0xS9Qk7ZeIZ3TJ2GU/H4Wo6mUwinwimkAAIuqRWlbYaEoFdIgH6KBypkTwWvzFNTztLdI 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)(136003)(376002)(396003)(39860400002)(346002)(366004)(451199015)(86362001)(54906003)(478600001)(6486002)(6916009)(316002)(38100700002)(7416002)(5660300002)(41300700001)(66556008)(8676002)(66946007)(4326008)(6512007)(26005)(36756003)(2906002)(2616005)(186003)(8936002)(6506007)(66476007)(4744005)(67856001);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?nwwg54+PEtjKnU72kp5xVP5/qxNfJdm0WDCRLOnTZxLAW1dMql8scT/65jag?= =?us-ascii?Q?pJ3YMyILoCMOX97H3N0q9jODgl1INB7UzASuttdvWxSr0+ONozGSF4xkUWyp?= =?us-ascii?Q?81Su/kTCLR3KYcjJIQRZtoERiqRvO9qCIz+ZuyA3i8/fPY5TxgcZMWSJwHMN?= =?us-ascii?Q?QWoTJa8aCTK+v7gRucdxtyG0bN1sthk1euLyGI5Px7bomYZxLspvnLGWk2rz?= =?us-ascii?Q?0fGK6LKUUPfjnn0riKNtBGz1g2bx04HkHJyPNE7VZJsDrwVpUJBuBzkQEQPi?= =?us-ascii?Q?tUc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f+MMV?= =?us-ascii?Q?KinVs7Sp8tc7ovpHGfYg8x8ItWHhz+PmfM4embBjCWtL/4LTFSJBFGoXvCyK?= =?us-ascii?Q?samcl2rlaZ9uOEtMC2bYQY7m+aoQPWDAQie0WQMYoV17fgkTPpLO2sXC5JGF?= =?us-ascii?Q?FMXUwYBJImRVwoh+ZpqrS+ey9YV/Kx0IvWFOO3pXrUsoecuzmo7jrxW2KMYJ?= =?us-ascii?Q?TKXSgVh56yOPzqAN68693M1WsA2SGELfSlXoGyH5seupSEvIKzGN/zUaMw/y?= =?us-ascii?Q?YiaX4dSAoiSHhal/vrwBTnP3a74cHP2ya+VkL2T7uiawAlNrFLaInJqyuajx?= =?us-ascii?Q?u4l42S7dREK/tZ7QMHSsKxBNTufE6bUirhdALYFGAOWV2lLnLI0cPbHdRQmG?= =?us-ascii?Q?R2Tv8j5w0UZxxQRSZQg=3D?= X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-Network-Message-Id: 885835b3-9427-4f7a-cba4-08dab67a3272 X-MS-Exchange-CrossTenant-AuthSource: LV2PR12MB5869.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 Oct 2022 11:15:17.6870 (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: IfCNMwBWqqxKXyIw7PFFNLWYaGW91+uomkDO9ktZ6IRWeHc4e5aP6eXpQ6tPXO1n X-MS-Exchange-Transport-CrossTenantHeadersStamped: CH0PR12MB5345 X-Spam-Status: No, score=-1.6 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, URIBL_BLOCKED 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 Tue, Oct 25, 2022 at 12:27:11PM +1000, Dave Airlie wrote: > The userspace for those is normally bespoke like ROCm, which uses > amdkfd, and amdkfd doesn't operate like most device files from what I > know, so I'm not sure we'd want it to operate as an accel device. I intensely dislike this direction that drivers will create their own char devs buried inside their device driver with no support or supervision. We've been here before with RDMA and it is just a complete mess. Whatever special non-drm stuff amdkfd need to do should be supported through the new subsystem, in a proper maintainable way. Jason