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=-13.6 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=unavailable 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 CE4C3C433C1 for ; Tue, 23 Mar 2021 13:18:23 +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 810A4619BA for ; Tue, 23 Mar 2021 13:18:23 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 810A4619BA Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=ffwll.ch Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=intel-gfx-bounces@lists.freedesktop.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id E80566E906; Tue, 23 Mar 2021 13:18:21 +0000 (UTC) Received: from mail-wr1-x433.google.com (mail-wr1-x433.google.com [IPv6:2a00:1450:4864:20::433]) by gabe.freedesktop.org (Postfix) with ESMTPS id DF3AF6E906 for ; Tue, 23 Mar 2021 13:18:20 +0000 (UTC) Received: by mail-wr1-x433.google.com with SMTP id x16so20731344wrn.4 for ; Tue, 23 Mar 2021 06:18:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ffwll.ch; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=d31tAy4LHdJGKZG/7KvKbLGdDszUDjOkGzIleuY1jbg=; b=Zh0tcVj/dUje61OND1Rzx+r4Tie3fG7fisa+9jojAjwYkap3v71R41rdfWtgaQoRha gkY1mE29YYvdHoAIc7KEdBIsYSAAdCsP/SdzUgc7iG8GkXIWGI6tmsQ0Un1btwG/Jodg ufV45Fi1jnB5wi4Xrp02/knSb7BBnYhP5Ocqc= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=d31tAy4LHdJGKZG/7KvKbLGdDszUDjOkGzIleuY1jbg=; b=FHpJ21xJpsrtY9CutvhzQlV1CMxjA7d+U4V3YVTKbMyN+zMryHzoxkkPm9vu4C4SZV kOaZi9Fy1kEO/BqbSXwcA4JbSm5XFMSH43vz8shlqx1Nns6cuHSpGKk7wOOheoMCNPnf yHPvug372mNXifWQwnfTSyqMDex+Vi79d52Y8c86ZH2PdMS6/ndVEVo2xDfg5qYBoaMe 0IfU8yz981HY2F9z7uSkPCdbCYoUgGgQRlVbvlXfCEKTX3h4z5/1dC1W5PHgfE52SKqT kXuAkxUvledgE8C7K6f9sVifCGWvuCxztP5IteZvSaHm0CmPsJUBvJiCZKJ3G9ZHvwDt gWGw== X-Gm-Message-State: AOAM531NhQZb8wjYu3aIHFT+lTkinFJD5Z0BxqNow4YUFIpqxETNS9sg FimQponrCDxx23nVxJWNNRhUYw== X-Google-Smtp-Source: ABdhPJwRgxcq3jhl8GRG8kQOZaKFgxSWV4EsDlE71AJ/RWJXWJqmAJyXZbCReernz99gTv8tjL3IMg== X-Received: by 2002:adf:e482:: with SMTP id i2mr3948008wrm.392.1616505499625; Tue, 23 Mar 2021 06:18:19 -0700 (PDT) Received: from phenom.ffwll.local ([2a02:168:57f4:0:efd0:b9e5:5ae6:c2fa]) by smtp.gmail.com with ESMTPSA id m5sm3201702wrq.15.2021.03.23.06.18.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 23 Mar 2021 06:18:18 -0700 (PDT) Date: Tue, 23 Mar 2021 14:18:17 +0100 From: Daniel Vetter To: Rodrigo Vivi Message-ID: References: <20210323084453.366863-1-daniel.vetter@ffwll.ch> <874kh25gaw.fsf@intel.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: X-Operating-System: Linux phenom 5.7.0-1-amd64 Subject: Re: [Intel-gfx] [PATCH 1/2] drm/i915: add gem/gt TODO X-BeenThere: intel-gfx@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Intel graphics driver community testing & development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Daniel Vetter , Intel Graphics Development , DRI Development , Daniel Vetter , Dave Airlie Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" On Tue, Mar 23, 2021 at 08:34:55AM -0400, Rodrigo Vivi wrote: > On Tue, Mar 23, 2021 at 12:57:39PM +0100, Daniel Vetter wrote: > > On Tue, Mar 23, 2021 at 12:13:11PM +0200, Jani Nikula wrote: > > > On Tue, 23 Mar 2021, Daniel Vetter wrote: > > > > We've discussed a bit how to get the gem/gt team better integrated > > > > and collaborate more with the wider community and agreed to the > > > > following: > > > > > > > > - all gem/gt patches are reviewed on dri-devel for now. That's > > > > overkill, but in the past there was definitely too little of that. > > > > > > > > - i915-gem folks are encouraged to cross review core patches from > > > > other teams > > > > > > > > - big features (especially uapi changes) need to be discussed in an > > > > rfc patch that documents the interface and big picture design, > > > > before we get lost in the details of the code > > > > > > > > - Also a rough TODO (can be refined as we go ofc) to get gem/gt back > > > > on track, like we've e.g. done with DAL/DC to get that in shape. > > > > > > I personally think there should be a lower bar for discussing and > > > editing the TODO items than via patches on the mailing list. Granted, > > > the TODO file enforces the discussion happens at a large enough > > > audience, but for at least some of the items I'd suggest filing gitlab > > > issues [1], with todo label, and tracking there. > > I also don't like the todo list in files and I agree that gitlab issues > section should be better... > > > In general yes, and I'd go even further: it's up to each team/contributor > > how they track review feedback and further work, whether that's gitlab or > > some notes or just in their heads. > > > > This is a different situation here, and the "changes require big audience" > > is a feature, not a bug. But it is a very exceptional situation, I think > > this is only the 2nd time we're using a formal TODO for a gpu driver. If > > we ignore gma500 in staging, which for me only showed that the separate > > staging tree doesn't work so well for complex drivers like we have. > > ... but I understand the motivation, so > > Acked-by: Rodrigo Vivi > > However... what about: > > 1. moving the smaller items to gitlab at least? > 2. having both, all the entries in the todo file have gitlab issue > associated and the number-id is also here in the todo file? Yeah that sounds reasonable. tbh we haven't started any of the intel-internal planning on most of these (ttm and scheduler are started), so none of these tracking things exist yet at all ... -Daniel > > > -Daniel > > > > > > > > BR, > > > Jani. > > > > > > > > > [1] https://gitlab.freedesktop.org/drm/intel/-/issues > > > > > > > > > > > > > > > > > Cc: Jani Nikula > > > > Cc: Joonas Lahtinen > > > > Cc: Rodrigo Vivi > > > > Cc: Jason Ekstrand > > > > Cc: Dave Airlie > > > > Signed-off-by: Daniel Vetter > > > > --- > > > > drivers/gpu/drm/i915/TODO.txt | 36 +++++++++++++++++++++++++++++++++++ > > > > 1 file changed, 36 insertions(+) > > > > create mode 100644 drivers/gpu/drm/i915/TODO.txt > > > > > > > > diff --git a/drivers/gpu/drm/i915/TODO.txt b/drivers/gpu/drm/i915/TODO.txt > > > > new file mode 100644 > > > > index 000000000000..d2e5bbb6339d > > > > --- /dev/null > > > > +++ b/drivers/gpu/drm/i915/TODO.txt > > > > @@ -0,0 +1,36 @@ > > > > +gem/gt TODO items > > > > +----------------- > > > > + > > > > +- For discrete memory manager, merge enough dg1 to be able to refactor it to > > > > + TTM. Then land pci ids (just in case that turns up an uapi problem). TTM has > > > > + improved a lot the past 2 years, there's no reason anymore not to use it. > > > > + > > > > +- Come up with a plan what to do with drm/scheduler and how to get there. > > > > + > > > > +- There's a lot of complexity added past few years to make relocations faster. > > > > + That doesn't make sense given hw and gpu apis moved away from this model years > > > > + ago: > > > > + 1. Land a modern pre-bound uapi like VM_BIND > > > > + 2. Any complexity added in this area past few years which can't be justified > > > > + with VM_BIND using userspace should be removed. Looking at amdgpu dma_resv on > > > > + the bo and vm, plus some lru locks is all that needed. No complex rcu, > > > > + refcounts, caching, ... on everything. > > > > + This is the matching task on the vm side compared to ttm/dma_resv on the > > > > + backing storage side. > > > > + > > > > +- i915_sw_fence seems to be the main structure for the i915-gem dma_fence model. > > > > + How-to-dma_fence is core and drivers really shouldn't build their own world > > > > + here, treating everything else as a fixed platform. i915_sw_fence concepts > > > > + should be moved to dma_fence, drm/scheduler or atomic commit helpers. Or > > > > + removed if dri-devel consensus is that it's not a good idea. Once that's done > > > > + maybe even remove it if there's nothing left. > > > > + > > > > +Smaller things: > > > > +- i915_utils.h needs to be moved to the right places. > > > > + > > > > +- dma_fence_work should be in drivers/dma-buf > > > > + > > > > +- i915_mm.c should be moved to the right places. Some of the helpers also look a > > > > + bit fishy: > > > > + > > > > + https://lore.kernel.org/linux-mm/20210301083320.943079-1-hch@lst.de/ > > > > > > -- > > > Jani Nikula, Intel Open Source Graphics Center > > > > -- > > Daniel Vetter > > Software Engineer, Intel Corporation > > http://blog.ffwll.ch -- Daniel Vetter Software Engineer, Intel Corporation http://blog.ffwll.ch _______________________________________________ Intel-gfx mailing list Intel-gfx@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/intel-gfx