Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp4164704pxf; Tue, 30 Mar 2021 00:25:21 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxFVGSNqanvldE4V/8MLqbN2sqAWkpMH5nIPBK2VuuG0zrsVLTZAKnvmeqOIMRLcN3tJNIm X-Received: by 2002:a05:6402:31e9:: with SMTP id dy9mr32755545edb.186.1617089121239; Tue, 30 Mar 2021 00:25:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617089121; cv=none; d=google.com; s=arc-20160816; b=Z00oKBphC2nOgyrQE/BaJIcMhw06tiOnKqSS3WdPMqmYRhuzPmEQcO/HyO56LCWgU8 wi2adKZXoGyitE4S+HPk6KDChcihxWoeXmlulB4aRtZ3rTeDeGn3BdR0IBwvuPa5amjZ 5ftHupunYGAhSbZcC9VeW/ZDt6KLMqesQhPkYML+xXFiKjcNTxfa+nCjo5Gb63jX9ecO GPz/Z7fMp4vdWzTHsMwgUCzWb5S9+kDJHNQEBfeXl/t+sA2m8tIG+lzZNXcTDfax/vFc KSGPsVUCHlNlEntxmGYT8+2M9HfqVK3wEm+mtjN+Ldbfw7EMLtV/PuGv0hed29J9UeXM N2lg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:reply-to:cc:from:to :dkim-signature:date; bh=uyxiiNlmIpUqH5pV51j68OH6R9OIx2NMn7HBlqoxjWA=; b=he1czyy69x+pK+u7tdGLJF2ugl7n+xcbZ04TIYfOZWVQHhduBZ4q+1C8dyWIemgUdG BnuADG16wkYGXRtJoag4rHIabAS2FszaITD6sv+QRK667W8sjH0X+rmgXXNyAivzwFdz WZN169rNyLtrGNpPlDmiNvTv+UyquHLB87xpE9kwydNtmCsA17e2Fbx20j/j9rEJz0v1 OxFIcWWpElbJrsdtYcuZh4KcnDcgCrNOVTITelqxwYZbOPMfms45gJZ6fZ8YuWaPVoMh QV01ATANZbJgqUqlkhV1/8eOOQtC2YT/uk8P+pPRH3BbX9CQiKJ+BLg009hJJhAZUJJj ooTA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@emersion.fr header.s=protonmail3 header.b=rmdyZIi1; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=emersion.fr Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f7si14147930edu.503.2021.03.30.00.24.58; Tue, 30 Mar 2021 00:25:21 -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 header.i=@emersion.fr header.s=protonmail3 header.b=rmdyZIi1; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=emersion.fr Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231295AbhC3HXw (ORCPT + 99 others); Tue, 30 Mar 2021 03:23:52 -0400 Received: from mail-40136.protonmail.ch ([185.70.40.136]:30064 "EHLO mail-40136.protonmail.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231422AbhC3HXe (ORCPT ); Tue, 30 Mar 2021 03:23:34 -0400 Date: Tue, 30 Mar 2021 07:23:12 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=emersion.fr; s=protonmail3; t=1617089008; bh=uyxiiNlmIpUqH5pV51j68OH6R9OIx2NMn7HBlqoxjWA=; h=Date:To:From:Cc:Reply-To:Subject:In-Reply-To:References:From; b=rmdyZIi1rI9f6E7lkoqWOHQnEjeuf+fMw8xGgnB1pafJJytQTJHD08d6TnZpwCV1H wn50aEcMlFQFsPnYEiQDxK6CeQLGIgJW6Qi8nTjEeVHD9tF33Gy87vur4wU7cEIPRQ IdYxvkfa1ksytU6Lw2iGx/qHe60sKXHcaQIsJUKjjVh1LvKVeCiQOYzF++BXrLvqty 7XyzUWtBa1ijJ2T3m+BY32SwGVYvwjc47hrmQBMRYbUYt+fHRoB2bDouMO6Mh3zCcc oE8jjvWgpnJsV+Chm84hVMT9LjE3vpqIQ9T7v30RoNto1nezDwANJEBqW7gffXtGaw ylJdCpXAOvwZA== To: Paul Cercueil From: Simon Ser Cc: David Airlie , Daniel Vetter , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , Sam Ravnborg , od@zcrc.me, linux-mips@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, stable@vger.kernel.org Reply-To: Simon Ser Subject: Re: [PATCH 1/2] drm/ingenic: Switch IPU plane to type OVERLAY Message-ID: In-Reply-To: <20210329175046.214629-2-paul@crapouillou.net> References: <20210329175046.214629-1-paul@crapouillou.net> <20210329175046.214629-2-paul@crapouillou.net> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-1.2 required=10.0 tests=ALL_TRUSTED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF shortcircuit=no autolearn=disabled version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on mailout.protonmail.ch Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > It should have been an OVERLAY from the beginning. The documentation > stipulates that there should be an unique PRIMARY plane per CRTC. Thanks for the quick patch! One comment below=E2=80=A6 > Fixes: fc1acf317b01 ("drm/ingenic: Add support for the IPU") > Cc: # 5.8+ > Signed-off-by: Paul Cercueil > --- > drivers/gpu/drm/ingenic/ingenic-drm-drv.c | 11 +++++------ > drivers/gpu/drm/ingenic/ingenic-ipu.c | 2 +- > 2 files changed, 6 insertions(+), 7 deletions(-) > > diff --git a/drivers/gpu/drm/ingenic/ingenic-drm-drv.c b/drivers/gpu/drm/= ingenic/ingenic-drm-drv.c > index 29742ec5ab95..09225b770bb8 100644 > --- a/drivers/gpu/drm/ingenic/ingenic-drm-drv.c > +++ b/drivers/gpu/drm/ingenic/ingenic-drm-drv.c > @@ -419,7 +419,7 @@ static void ingenic_drm_plane_enable(struct ingenic_d= rm *priv, > =09unsigned int en_bit; > > =09if (priv->soc_info->has_osd) { > -=09=09if (plane->type =3D=3D DRM_PLANE_TYPE_PRIMARY) > +=09=09if (plane !=3D &priv->f0) I don't know about this driver but=E2=80=A6 is this really the same as the = previous condition? The previous condition would match two planes, this one seems to match only a single plane. What am I missing?