Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp1938086ybk; Sun, 17 May 2020 05:25:16 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy09vGJzt8r7abPoFsln5bkNxkNlFT7oFYMoFcj2vyqYMyAM5MyEsg2a4efQWBFD1OGXs0J X-Received: by 2002:a17:906:1313:: with SMTP id w19mr9800905ejb.79.1589718316573; Sun, 17 May 2020 05:25:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589718316; cv=none; d=google.com; s=arc-20160816; b=O1vALOVDifiRJfgJpG5ihlT2/W3Bqy389AgFRRKT+jzOQa1t7zj1gm1Dg9Om68SQKN uGAQ5qElRWOhHQlBzBvnM7sRopp/5dGwiNIQ5wGGoWm5Egv/h9HNcE+abmPMNrB6JQVW As8XV6fViSX8CSOS4ZLHADY0rPMK98xaCCYgjg6aoF8tr5INiUNZRqZscGFIVKKJeT48 PuYWBfAEenFhw1z2yPPxuRxFDO8oZoiYW43cDHlmIx6Z5GJrE5v6L8VY/G9uQgCEoH9K VQpmXutFUwCS61efj0+tpcM21t5GZQgTpy7xrXVIjBKHNEcQWRz7wGGn46x7uW88F53X WlsQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:cc:to:subject:from:date :dkim-signature; bh=m6rR31/j2rzqBrfWiu7P6GCD7jhwshKtwnMGtC/OSLY=; b=MayIqH2mEUcUEoeCOD4J4TYWdFj+1q9ak+ECwRLbwjR+mXK/uVfhwhlhlAhgNk7Q9K xShlCtYXCC31NNx8/+baoopa4LQSUlp4w8W7urwXWfXjliK1nPry86/n18yjF602b04N IFjEeHCr9wXqe2t2Kap5LJNQuckGGHLDqPu0NBp0szIsKQa4wrruc1OZB5jEjapoDR9Z GQSAoJ3tPrnPV4goe7aVeVX1NcUUrlzV+UXFj8Z1zycfeuWxCCFLhYNFh/hSlLBXVUZ2 nZt1UyjMv7X89R5MJsZ5FhejNlLEtzZiXb+4CTxk6D+vAr3UcmRn8cYuyz4Lr6LHnPAr ifSg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@crapouillou.net header.s=mail header.b=fuS89dnm; 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=fail (p=NONE sp=NONE dis=NONE) header.from=crapouillou.net Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f14si4564405ejr.30.2020.05.17.05.24.38; Sun, 17 May 2020 05:25:16 -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=fail header.i=@crapouillou.net header.s=mail header.b=fuS89dnm; 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=fail (p=NONE sp=NONE dis=NONE) header.from=crapouillou.net Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727936AbgEQMT2 (ORCPT + 99 others); Sun, 17 May 2020 08:19:28 -0400 Received: from outils.crapouillou.net ([89.234.176.41]:45644 "EHLO crapouillou.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727833AbgEQMT1 (ORCPT ); Sun, 17 May 2020 08:19:27 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=crapouillou.net; s=mail; t=1589717965; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=m6rR31/j2rzqBrfWiu7P6GCD7jhwshKtwnMGtC/OSLY=; b=fuS89dnmSKIjpFcz/qNlJ+E8jHHaHdPlWnM24ibfuN+m1Jqhubn8n0Bh4nKT4jncckq/lQ FWcQUBihGzB60pDmo3T87kL/WrnWkNYFcrYwRsupHAJEDdKNKUTvdCTZgau7p1pudvpXTE gum5raRCQxfIwdDXQNnqai/sCrm6VPk= Date: Sun, 17 May 2020 14:19:14 +0200 From: Paul Cercueil Subject: Re: [PATCH 04/12] gpu/drm: ingenic: Fix bogus crtc_atomic_check callback To: Sam Ravnborg Cc: David Airlie , Daniel Vetter , Rob Herring , Greg Kroah-Hartman , "Rafael J . Wysocki" , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, stable@vger.kernel.org, od@zcrc.me, dri-devel@lists.freedesktop.org Message-Id: <286HAQ.VQDCISW6S4DW2@crapouillou.net> In-Reply-To: <20200517061737.GC609600@ravnborg.org> References: <20200516215057.392609-1-paul@crapouillou.net> <20200516215057.392609-4-paul@crapouillou.net> <20200517061737.GC609600@ravnborg.org> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Sam, Le dim. 17 mai 2020 =E0 8:17, Sam Ravnborg a =E9crit : > On Sat, May 16, 2020 at 11:50:49PM +0200, Paul Cercueil wrote: >> The code was comparing the SoC's maximum height with the mode's=20 >> width, >> and vice-versa. D'oh. >>=20 >> Cc: stable@vger.kernel.org # v5.6 >> Fixes: a7c909b7c037 ("gpu/drm: ingenic: Check for display size in=20 >> CRTC atomic check") >> Signed-off-by: Paul Cercueil >=20 > Looks correct. > Acked-by: Sam Ravnborg Pushed to drm-misc-fixes, thanks for the review. -Paul >> --- >>=20 >> Notes: >> This patch was previously sent standalone. >> I marked it as superseded in patchwork. >> Nothing has been changed here. >>=20 >> drivers/gpu/drm/ingenic/ingenic-drm.c | 4 ++-- >> 1 file changed, 2 insertions(+), 2 deletions(-) >>=20 >> diff --git a/drivers/gpu/drm/ingenic/ingenic-drm.c=20 >> b/drivers/gpu/drm/ingenic/ingenic-drm.c >> index 632d72177123..0c472382a08b 100644 >> --- a/drivers/gpu/drm/ingenic/ingenic-drm.c >> +++ b/drivers/gpu/drm/ingenic/ingenic-drm.c >> @@ -330,8 +330,8 @@ static int ingenic_drm_crtc_atomic_check(struct=20 >> drm_crtc *crtc, >> if (!drm_atomic_crtc_needs_modeset(state)) >> return 0; >>=20 >> - if (state->mode.hdisplay > priv->soc_info->max_height || >> - state->mode.vdisplay > priv->soc_info->max_width) >> + if (state->mode.hdisplay > priv->soc_info->max_width || >> + state->mode.vdisplay > priv->soc_info->max_height) >> return -EINVAL; >>=20 >> rate =3D clk_round_rate(priv->pix_clk, >> -- >> 2.26.2 >>=20 >> _______________________________________________ >> dri-devel mailing list >> dri-devel@lists.freedesktop.org >> https://lists.freedesktop.org/mailman/listinfo/dri-devel