Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp881993pxb; Wed, 27 Oct 2021 14:23:51 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxMtxErL+UiIsHTqf+QVibwPGn8AMZrLs6hcabcHe8lgjpaNCKKMuX57z+6AKzlnmeivkFh X-Received: by 2002:a50:e089:: with SMTP id f9mr470252edl.290.1635369831575; Wed, 27 Oct 2021 14:23:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1635369831; cv=none; d=google.com; s=arc-20160816; b=MJKvoref7wfeVqnZmgRl7UH+EXNrtHHo16ykLrcOeP5qR3XDJjEvu/0D0VXrwk+KPI 1FBZsk0sFGpPTgrJnTKE//q0kbrgSqv3l+ntrrHKiksfJ7hodaLb6fsvXwu+gRIzKMZB IRFDkL6WlwLi2x4pc+YKf9pQAGcTjLjHFYjIOGvU8Nc9FNtRWmVz9W4RVs/Ktp4o4gnc NyPIVGMn02Lzz3n4Wu3TVUwMQ0WORuHcFb9LA1frJbKLwYQql7k9OLCxGwJytYLZNmcM UbKtz0SjcBPKuFSYsKrBJm6USvOMpMU0jFBGwrL51XeDsKpHxfDXaZmkV/Maw5uUhKqV UztA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=p4t9T03+6g8pIq9xGz0yeFFXXVNAQhImtWBBzuHp+Wk=; b=Wq8sYgfThgc/xQlev6oULkGgXm3dM6LxAvtCzgGdD+OHS7YxC5puLuCOQ0c1ASWcdq sH5FRnRfU+6Jt8B59m9EA+z2ix4fQdHCT431H5jMOWP8OAN1k97ESFp9mJs1+OjeZx2T fkXJG+ewGQ/PYnzLt7ImEmZQbvlp1NeI0Kbjy+Ho4FdlHu9MKGi+4O/lWnbggc337zSA bS1MLmopdCvid4J39CtytGD9SbP6IBNLe7wno7rJ8qzbUajthUHsxsNxcQq+lpfHw17O ++H5p/MezgPqX5nFvI5fkjq/gakBsfyzH2jJnwNTi/6fS6akW2R4big3pwI1d9FzEJ14 ki0g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=pzf4vD1k; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id p5si1180850edi.454.2021.10.27.14.23.28; Wed, 27 Oct 2021 14:23:51 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=pzf4vD1k; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239692AbhJ0Kwd (ORCPT + 97 others); Wed, 27 Oct 2021 06:52:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49852 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236103AbhJ0Kwd (ORCPT ); Wed, 27 Oct 2021 06:52:33 -0400 Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [IPv6:2001:4b98:dc2:55:216:3eff:fef7:d647]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A8E15C061570; Wed, 27 Oct 2021 03:50:07 -0700 (PDT) Received: from [192.168.1.111] (91-158-153-130.elisa-laajakaista.fi [91.158.153.130]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 75548596; Wed, 27 Oct 2021 12:50:03 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1635331803; bh=aDpMfGkY/pVbewju2AuvzED9MYgdhbzFcPl/WwUDvjE=; h=Subject:To:Cc:References:From:Date:In-Reply-To:From; b=pzf4vD1kSgwnc51Vkhp8FvzNLNBMg2G//VeSsWf+x5krxUO+36z2wcpy1Pj9GkQPb 9hITUfTMWHyD6e+7vpGPTZGB36/zdXyQrYcwyNSOaRt9LHt2eOF4FjBPiurvQpU1ao ko7naKvI9Z2o7ZVhNmSrH4Bu8DAA1WbyMyf6Bo3c= Subject: Re: [PATCH v6 4/9] drm/omap: introduce omap_hw_overlay To: Neil Armstrong Cc: linux-omap@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, khilman@baylibre.com, Benoit Parrot References: <20211018142842.2511200-1-narmstrong@baylibre.com> <20211018142842.2511200-5-narmstrong@baylibre.com> From: Tomi Valkeinen Message-ID: Date: Wed, 27 Oct 2021 13:50:00 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.13.0 MIME-Version: 1.0 In-Reply-To: <20211018142842.2511200-5-narmstrong@baylibre.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 18/10/2021 17:28, Neil Armstrong wrote: > From: Benoit Parrot > > Split out the hardware overlay specifics from omap_plane. > To start, the hw overlays are statically assigned to planes. > > The goal is to eventually assign hw overlays dynamically to planes > during plane->atomic_check() based on requested caps (scaling, YUV, > etc). And then perform hw overlay re-assignment if required. > > Signed-off-by: Benoit Parrot > Signed-off-by: Neil Armstrong > --- > drivers/gpu/drm/omapdrm/Makefile | 1 + > drivers/gpu/drm/omapdrm/omap_drv.c | 9 ++- > drivers/gpu/drm/omapdrm/omap_drv.h | 4 ++ > drivers/gpu/drm/omapdrm/omap_overlay.c | 84 ++++++++++++++++++++++++++ > drivers/gpu/drm/omapdrm/omap_overlay.h | 30 +++++++++ > drivers/gpu/drm/omapdrm/omap_plane.c | 54 +++++++---------- > 6 files changed, 148 insertions(+), 34 deletions(-) > create mode 100644 drivers/gpu/drm/omapdrm/omap_overlay.c > create mode 100644 drivers/gpu/drm/omapdrm/omap_overlay.h Reviewed-by: Tomi Valkeinen Tomi