From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: ** X-Spam-Status: No, score=2.5 required=3.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,HTML_MESSAGE,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 5897CC433E0 for ; Mon, 1 Feb 2021 16:47:52 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id F3D4164EAB for ; Mon, 1 Feb 2021 16:47:51 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org F3D4164EAB Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 5D1156E840; Mon, 1 Feb 2021 16:47:51 +0000 (UTC) Received: from mail-lj1-x230.google.com (mail-lj1-x230.google.com [IPv6:2a00:1450:4864:20::230]) by gabe.freedesktop.org (Postfix) with ESMTPS id D2FB56E840; Mon, 1 Feb 2021 16:47:50 +0000 (UTC) Received: by mail-lj1-x230.google.com with SMTP id a25so20454579ljn.0; Mon, 01 Feb 2021 08:47:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=yIZiOJ02BYreIZzEaXfykuQ92i8lgVKM8HuqwHuBPWc=; b=qgZJnkcssMWM+89wIgyQw+SQ4SVW47u/G/Dc2hHiebYRA1VAndqCaGhfST0cohXPDj 5z0ks432uKnR4bkAmOREXcHJ/TDOrB3N1WynzryP+HfANmi2jxQNnNVRiePRQbHnirUx rTepZWehTgMZ73kP1TT2hCJAhTSSf9blZIeVSRRZb78vScyCtkyUFoCJQ9WONlbTEy6t 2fd9okCvRpH5tTrbm+WuP9PcrOOcPEadQRJhspoeXA+8bjgLZrH/H3R9ANIu0xiofxIj xOoRAxLnzOKZ8y49ocUK/9MCBsi3nbuxMnWFXHRjjUd6DVHKtxAbakzFoqiZn/tRVqEA V49g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=yIZiOJ02BYreIZzEaXfykuQ92i8lgVKM8HuqwHuBPWc=; b=hWeekuoUdffxkqWJ53xRNF8RMqcxc0YJAkC80bpB+kKfKnqj3XOI7boEMSYZP6sQV8 QikhpWgKyMowai/7qp2wSO4e1rnCrF9S4vcbtQRZe5hYtCoIFsuL5mWWR3AbiZnF7i5L mEabphdDNC6s980Skb/E0bly9kKZwxEijZvex+A4fpMq8vGmKxpbaC0ZN01K6VOeqcbN jnIgybRczK1zhdhi7KwBvBG1vlmqezAYk/AEFDmO1zaGcLBdIFyNZRuG6s7f/zMBhy4T azuQUQaSIzAYmN5SurOmuhHmI+kyvAaSvuoBanyWbBUssCCxsw7djEsBTRmEuCo/OO5+ 9DZQ== X-Gm-Message-State: AOAM5334EZ+eLCfWlDhDmqCd6lScl0c0w3lfkM/+hCvly8nhTpdEL+gH 3hqxOlx402CKB3BoFU6M7F0vf9N4UnNiJ1K6U4Q= X-Google-Smtp-Source: ABdhPJyVksRp7dMQFreT6iFGkvyIERFPWm8QjTXwXG+7UDkdzz/KPtPtHl3yLc6PyzhjU98Vtf5kjidXFzK+Ikds2kQ= X-Received: by 2002:a2e:a0ce:: with SMTP id f14mr10339298ljm.180.1612198069310; Mon, 01 Feb 2021 08:47:49 -0800 (PST) MIME-Version: 1.0 References: <20201007152355.2446741-1-Kenny.Ho@amd.com> <20201103053244.khibmr66p7lhv7ge@ast-mbp.dhcp.thefacebook.com> <20201103210418.q7hddyl7rvdplike@ast-mbp.dhcp.thefacebook.com> <20201103232805.6uq4zg3gdvw2iiki@ast-mbp.dhcp.thefacebook.com> In-Reply-To: From: Kenny Ho Date: Mon, 1 Feb 2021 11:47:38 -0500 Message-ID: Subject: Re: [RFC] Add BPF_PROG_TYPE_CGROUP_IOCTL To: Daniel Vetter X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Song Liu , Andrii Nakryiko , DRI Development , Daniel Borkmann , Kenny Ho , "open list:CONTROL GROUP \(CGROUP\)" , Brian Welty , John Fastabend , Alexei Starovoitov , amd-gfx list , Martin KaFai Lau , Linux-Fsdevel , Alexander Viro , Network Development , KP Singh , Yonghong Song , bpf , Alexei Starovoitov , Alex Deucher Content-Type: multipart/mixed; boundary="===============0886988651==" Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" --===============0886988651== Content-Type: multipart/alternative; boundary="0000000000003a990405ba491d13" --0000000000003a990405ba491d13 Content-Type: text/plain; charset="UTF-8" On Mon, Feb 1, 2021 at 9:49 AM Daniel Vetter wrote: > > - there's been a pile of cgroups proposal to manage gpus at the drm > subsystem level, some by Kenny, and frankly this at least looks a bit > like a quick hack to sidestep the consensus process for that. > No Daniel, this is quick *draft* to get a conversation going. Bpf was actually a path suggested by Tejun back in 2018 so I think you are mischaracterizing this quite a bit. "2018-11-20 Kenny Ho: To put the questions in more concrete terms, let say a user wants to expose certain part of a gpu to a particular cgroup similar to the way selective cpu cores are exposed to a cgroup via cpuset, how should we go about enabling such functionality? 2018-11-20 Tejun Heo: Do what the intel driver or bpf is doing? It's not difficult to hook into cgroup for identification purposes." Kenny --0000000000003a990405ba491d13 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

On Mon, Feb 1, 2021 at 9:49 AM Daniel Vet= ter <daniel@ffwll.ch> wrote:

- there's been a pile of cgroups proposal to manage gpus at the drm
=C2=A0 subsystem level, some by Kenny, and frankly this at least looks a bi= t
=C2=A0 like a quick hack to sidestep the consensus process for that.
No Daniel, this is quick *draft* to get a conversation going= .=C2=A0 Bpf was actually a path suggested by Tejun back in 2018 so I think = you are mischaracterizing this quite a bit.

"2018-11= -20 Kenny Ho:
To put the questions in more conc= rete terms, let say a user wants to
=C2=A0expose certain part of a gpu t= o a particular cgroup similar to the
=C2=A0way selective cpu cores are e= xposed to a cgroup via cpuset, how
=C2=A0should we go about enabling suc= h functionality?

2018-11-20 Tejun Heo:
Do what the intel driver or bpf is doing?= =C2=A0 It's not difficult to hook
into cgroup for identification purposes."

Kenny
--0000000000003a990405ba491d13-- --===============0886988651== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ dri-devel mailing list dri-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/dri-devel --===============0886988651==--