Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org 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 smtp.lore.kernel.org (Postfix) with ESMTPS id 89CFFC433EF for ; Wed, 4 May 2022 09:57:09 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id BCC721120D3; Wed, 4 May 2022 09:57:08 +0000 (UTC) Received: from mail-ej1-x631.google.com (mail-ej1-x631.google.com [IPv6:2a00:1450:4864:20::631]) by gabe.freedesktop.org (Postfix) with ESMTPS id ADD7B1120C1 for ; Wed, 4 May 2022 09:57:07 +0000 (UTC) Received: by mail-ej1-x631.google.com with SMTP id y3so1821795ejo.12 for ; Wed, 04 May 2022 02:57:07 -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=vW7YIzZMa129gfNfbbxMbYwvr2kEsDCwx8t4akRiVHo=; b=U/FBB9O0nt6azJcRY8rkD6V9zpm1ZxvzvTmuoNMQEAD3opth4WC61UMt4ZFr0cuUDF BdZGwdDCv5nk7p8T7warfiGK6VSlCUHhIoFX7SzgR82XClugJcvFc6txuTOD5dUrVtkt Rfol7s1uDvvJtczv8dOs0PS3gY1VQuO9leiB8= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=vW7YIzZMa129gfNfbbxMbYwvr2kEsDCwx8t4akRiVHo=; b=1Pdzdse+tae6DC89Pd0pWQYRqbVKNA1LvRhHfd4s9pkLS/l+tCHYcIw2zyBsQ9thVm F8lZJqxXY5xTg3E7kLQuAcF6Q38p1ZnM1JAX6zqpD7sUl75Y7W+UODC4UHni2Hvc1fjB V7ikRjdJSaGaNGxotprDhChHElzWD6/mSGajEiXvwDN99kazrFu/wfB6Pgv1be25b/EL wP6Z5k46JFipdq1gu80FxDQmDZ1tFHjrLYqYL6vdYz+u76RDTLuW2gVNRHYFjXC0atUR kKTNpH61DNfIOkSARfZwyrMbkuaZHlE5sa+jaulsAhXIlyXpjGWWWZrRyR+jIfe1y+m/ ykEg== X-Gm-Message-State: AOAM532Kc7wiQA7uvYtyLqQ9NMFCq5u3mj4S88yL8Z1mwgwHg95+ZFIR 2obiJBNzXjgP3Wp/FWarHlXVhA== X-Google-Smtp-Source: ABdhPJzctONoWnyKgUqmMsq7UUzj4EQYp1BtPQJ6de3UXR0Q23eFpD1rKhCfHzpQ5X1hS6Q3VfVR3w== X-Received: by 2002:a17:907:3f04:b0:6e8:4b0e:438d with SMTP id hq4-20020a1709073f0400b006e84b0e438dmr19504123ejc.391.1651658226202; Wed, 04 May 2022 02:57:06 -0700 (PDT) Received: from phenom.ffwll.local ([2a02:168:57f4:0:efd0:b9e5:5ae6:c2fa]) by smtp.gmail.com with ESMTPSA id w6-20020a170907270600b006f3ef214dcdsm5575298ejk.51.2022.05.04.02.57.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 04 May 2022 02:57:05 -0700 (PDT) Date: Wed, 4 May 2022 11:57:04 +0200 From: Daniel Vetter To: "Kandpal, Suraj" Subject: Re: [Intel-gfx] [PATCH 0/3] i915 private writeback framework Message-ID: References: <20220502054219.2083162-1-suraj.kandpal@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Operating-System: Linux phenom 5.10.0-8-amd64 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: "Nikula, Jani" , "intel-gfx@lists.freedesktop.org" , "dri-devel@lists.freedesktop.org" , "Murthy, Arun R" Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" On Wed, May 04, 2022 at 09:52:34AM +0000, Kandpal, Suraj wrote: > Hi Daniel, > > > > A patch series was floated in the drm mailing list which aimed to > > > change the drm_connector and drm_encoder fields to pointer in the > > > drm_connector_writeback structure, this received a huge pushback from > > > the community but since i915 expects each connector present in the > > > drm_device list to be a intel_connector but drm_writeback framework. > > > [1] > > > https://patchwork.kernel.org/project/dri-devel/patch/20220202081702.22 > > > 119-1-suraj.kandpal@intel.com/ [2] > > > https://patchwork.kernel.org/project/dri-devel/patch/20220202085429.22 > > > 261-6-suraj.kandpal@intel.com/ This forces us to use a drm_connector > > > which is not embedded in intel_connector the current drm_writeback > > > framework becomes very unfeasible to us as it would mean a lot of > > > checks at a lot of places to take into account the above issue.Since > > > no one had an issue with encoder field being changed into a pointer it > > > was decided to break the connector and encoder pointer changes into > > > two different series.The encoder field changes is currently being > > > worked upon by Abhinav Kumar > > > [3]https://patchwork.kernel.org/project/dri-devel/list/?series=633565 > > > In the meantime for i915 to start using the writeback functionality we > > > came up with a interim solution to own writeback pipeline bypassing > > > one provided by drm which is what these patches do. > > > Note: these are temp patches till we figure out how we can either > > > change drm core writeback to work with our intel_connector structure > > > or find a different solution which allows us to work with the current > > > > I'm assuming this is just fyi to keep development moving and not being > > planned for merging? > Yes we do plan to get it merged as a proper implementation that uses drm-core > will require significant time and to unblock the writeback functionality these interim > series of patches have been floated. No, I really don't think merging some interim hack is the way to go. It's not display, but on the gem side there was this huge exception about "hey we need to merge guc scheduler and it's totally ready but it's not done properly like it should have been for upstream". And surprise it wasn't ready and took a year just to get the hack job complete, and now no one seems to be working on doing things properly. So I'm not eager at all to ack more hack jobs for i915. Do it right before merging to upstream please. -Daniel -- Daniel Vetter Software Engineer, Intel Corporation http://blog.ffwll.ch