Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp907729pxb; Wed, 27 Oct 2021 14:58:10 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzMuEbwERwklmcHIR7QDIEF185rJ8FvQuzbrayodzw9lQuqoAbDVL9WGwaT/pAjcN8l6BJf X-Received: by 2002:a17:906:d116:: with SMTP id b22mr282160ejz.266.1635371890418; Wed, 27 Oct 2021 14:58:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1635371890; cv=none; d=google.com; s=arc-20160816; b=DL+o6SkbyZcis0lASIj4gg3zaRMXicWkzPIqiS61MIKpOLCGJWOyOwIHiE3aFyC+ij Ka//yXtn10wtEkBvpXnBYyizfX6bw5WAqbgxng8c1cgbLxMvWYRkQ6rmp4fnWv7j5uBn 3Mq3wAbvcHUEOKLyGYQUXv7oJLuv37T4RA74YpncoX+dmIbza5TL6aHa0wc2Om0KhTMI tI9L7PQbRu4sjtfqhUAmv5CUCiJGpW+tZ7J8MSOzfb/NYSSeiFRB4z50iDuovd3PPsH/ h55Wpu6GrDyHvcs6ZLEGc3ikLc24Tb0ZmquozAz93TgWwtZcyAr6WYq/yxBtCXynVORG lU1w== 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=nCNQHlbjSMM2CGvN6dzLZPv8GWF53RnZvJTy86S2nNE=; b=svJgwSR4oFHbfYrylLTlgk0pHMlC1TcU6Jio9UxLSoydjUFazw026aqfVPpTriDH55 jkfqBhJM5fgNQfBTjOKGcNcRHiiCj27Y/iIISZYoBHKnuoBUIPVdiuEdq9eni/DHcjca HpL/3G+ZssZRvG1Lo/bp3vaMPK5qtB2GwwHplYHM4njAmKrgUBLY3JhD0aYu9N9rtngB DQmxNRHaFN7zAnFPgFHRT37HdvVgMzCf+Bo7fWMN890D20L9b7/BjVJDg15+7PwuKNbN qo2gz5TlmCG+EZl8tFQVS/ywGjp/LoNC1zX20f35DV7XNDm+33zJOHD1hvq8WbNyvtqo jE+g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=GHKqE+sh; 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 hd33si1568793ejc.287.2021.10.27.14.57.47; Wed, 27 Oct 2021 14:58:10 -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=GHKqE+sh; 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 S235859AbhJ0Igv (ORCPT + 99 others); Wed, 27 Oct 2021 04:36:51 -0400 Received: from perceval.ideasonboard.com ([213.167.242.64]:48354 "EHLO perceval.ideasonboard.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233389AbhJ0Igu (ORCPT ); Wed, 27 Oct 2021 04:36:50 -0400 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 2389D596; Wed, 27 Oct 2021 10:34:24 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1635323664; bh=vUCM09iiTIAViQw+K7ABY38FS6eG4PlhTe+YM+DHN/I=; h=Subject:To:Cc:References:From:Date:In-Reply-To:From; b=GHKqE+shzWZVKmMFzZ6jF8tYyd1AdmSIGaAOKbCbuY/jKtEQyjISPPL2SaRprXrgw aJj8JzFbBZlRMNwJ4uxqNqP4jYhCUg1x637W2mRCEBRqeLT/lvTe2ONj+EaQhh9t+3 BIIIrcRLdBiV1/gPbuiHlUJu8vvEZ4gAKsvzyKB8= Subject: Re: [PATCH v6 2/9] drm/omap: Add ability to check if requested plane modes can be supported 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-3-narmstrong@baylibre.com> From: Tomi Valkeinen Message-ID: Date: Wed, 27 Oct 2021 11:34:21 +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-3-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 > > We currently assume that an overlay has the same maximum width and > maximum height as the overlay manager. This assumption is incorrect. On > some variants the overlay manager maximum width is twice the maximum > width that the overlay can handle. We need to add the appropriate data > per variant as well as export a helper function to retrieve the data so > check can be made dynamically in omap_plane_atomic_check(). > > Signed-off-by: Benoit Parrot > Signed-off-by: Neil Armstrong > --- > drivers/gpu/drm/omapdrm/dss/dispc.c | 22 ++++++++++++++++++++++ > drivers/gpu/drm/omapdrm/dss/dss.h | 2 ++ > drivers/gpu/drm/omapdrm/omap_plane.c | 14 ++++++++++++++ > 3 files changed, 38 insertions(+) Reviewed-by: Tomi Valkeinen Tomi