Received: by 2002:a05:6358:e9c4:b0:b2:91dc:71ab with SMTP id hc4csp4388811rwb; Sun, 7 Aug 2022 23:16:27 -0700 (PDT) X-Google-Smtp-Source: AA6agR5cDBm0xgKXveFUbpet7bfVUHBRcEtl/IwcDwusafzl+op1ejp9Z+rQ/hPgaTSaxRYnnVze X-Received: by 2002:a17:906:9b86:b0:6fe:d37f:b29d with SMTP id dd6-20020a1709069b8600b006fed37fb29dmr12923042ejc.327.1659939386745; Sun, 07 Aug 2022 23:16:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1659939386; cv=none; d=google.com; s=arc-20160816; b=G4VblR83tS9WHZhlw9khC/lVuvf0kWMZtEBFKMo9EvUXP3pvgRClYK1Gt5bQTagOHA I3hFk0sbKGqxbmQdYjE/ZupaFksuDkTjcJx9cdIVRImHmFJtNYQROJ0pQDkUn4rs7CMf AP0u50L7WlZqx6/fWvNrSEfiQ6SfO/Xro0P/vYGS9Ak0ZPEY+4MdxLsvaDjCp+R+wn32 KdkOYUYn6KP6s+R9xgvEAULhVnXlrEfn1uWvBT1BGetk8TPgQ4vJSsbSYJK6ak8tS2TX UbdMEHGekK0d0Lie+nFhQWqSzkaOu6pBc3HYGMT4W4+pLa8rZmto7AO9Nznd7C+oFtMZ 7HXg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=PaHbWnWpNabIPo2mQ4vhIOFBw+yYyYbdr6HIOKoXyKg=; b=pPlehAOEzlVErmd91y1t6n+NZdMQeL5k0k5xga8bGkegW65unMKmIi8Ri6aPoNwtIp niBMg8ymon6/X9sQKMS/WYbxpZcsn33UoRA/3WbKmqpgOmkGuG5YKFnp/ZMji0RCmQN9 YqPE3e6j03hkHsN9iqnQl1nhJURd7cAF6s6DtRqdMkl58AL0tquIFnwyhfQiXHHKPCkx frcfc9in8kEBm2CNB9SeUSe9hJt5uo1k7djN/ZywoFTB8YhBJ5Vd6j+kpFX/nOa8YNh1 OW3muQBSw9/t1i3mHnSwMP5PN+XGbavGVL2hOBEeGc1GlkmGlyoasHFgzL0jDq+JkN23 AhGQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=j6yOW3vS; 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=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id mf23-20020a170906cb9700b007314bba0ecdsi2691886ejb.377.2022.08.07.23.16.01; Sun, 07 Aug 2022 23:16:26 -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=@linuxfoundation.org header.s=korg header.b=j6yOW3vS; 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=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235452AbiHHGKa (ORCPT + 99 others); Mon, 8 Aug 2022 02:10:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49272 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229524AbiHHGK2 (ORCPT ); Mon, 8 Aug 2022 02:10:28 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 59443269 for ; Sun, 7 Aug 2022 23:10:27 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 11FD5B80B2B for ; Mon, 8 Aug 2022 06:10:26 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 26816C433D6; Mon, 8 Aug 2022 06:10:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1659939024; bh=prPU/aopyKRDsjHYcvgmv2DD/iUz2d5q+aQvdBeZFmw=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=j6yOW3vSmcgY0li+94Vw7hwRwSFYrKaQZHDMhOHQoLLhvGYREdNomx1gCQtq/k9j5 /BMqfkZQB3D5+oJn4EGP472gEWdur/GA4jGhDKdNZuCVBBJ5OZ2oebtRThSDUgjywo mJK/MFoKdkk3VE9TbaxBGiCP+CpIZDTargFrQyJ4= Date: Mon, 8 Aug 2022 08:10:22 +0200 From: Greg Kroah-Hartman To: Oded Gabbay Cc: Jason Gunthorpe , Dave Airlie , dri-devel , Yuji Ishikawa , Jiho Chu , Arnd Bergmann , "Linux-Kernel@Vger. Kernel. Org" Subject: Re: New subsystem for acceleration devices Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-7.7 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,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 On Sun, Aug 07, 2022 at 02:25:33PM +0300, Oded Gabbay wrote: > 2. Common code to handle drivers that want to allow a single user at a > time to run open the device char file. Note, that's an impossible request, and one that the kernel should never worry about, so don't even try it. Think about userspace doing an call to dup() on an open char file descriptor and then passing that off somewhere else. thanks, greg k-h