Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp2196655imu; Thu, 10 Jan 2019 09:50:52 -0800 (PST) X-Google-Smtp-Source: ALg8bN5FM1rqA7Y3fIJNoU/JaZ5wQjs74jxua8NpYUNz+tgKg48AiFYNfmxFpGWhMjhm2e2xUAGo X-Received: by 2002:a62:be0c:: with SMTP id l12mr10858795pff.51.1547142652785; Thu, 10 Jan 2019 09:50:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547142652; cv=none; d=google.com; s=arc-20160816; b=HvMVXj3Fsfknxj4danlnVPlpMisXQixoZMxB3W6ktN4TgSusKRwmMY9xzMJSKCocVc hiHTWczw/+JNRhF4aKkXvZ7TZCluOycXcu082DwEDVYZ0ey+d9uX9sptRoTsIKZyWClU l0kNmCbFtbvLUhN811PKeWmtk4iV8NWpWLlIkZ8pgOC9/9/ReW/rrAabiy7K7kQEgCyy 8oUs1wtjyIR9rqu8+1zj3qgZU9X5/U0oDbdZCUBDJkLb+fRI+W8aG0tKSESdD5RNLdDn 3BBHDW1xmdQzBU0VaB9l7p9n26dGls+DxhPCQApj2HKm7apaPAWiC6ChpbErXGdtXQXK ExwQ== 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:subject:cc:to:from:date :dkim-signature; bh=UuSU7vYSe4+hKw2f1oDmV9DJzG89jyYiwtit2bWwMJo=; b=ya9wjO1qLZyxGEzgA56s1PQUo9Hh8/7zkfJdeJOyuNvhoRMSjiYm64Nq5r5heKgnO0 O9fq8QxWGADnGvNa/7gAix4aNuRJTpwHRVx/uUWwr1yh1Nkj3pYOYqGeYC3j1OyFHPgc nblOvK08wgappHIJLxxgko8wELFmHygQI/N15GvShk33RYH24aey+ixA5MN+3tPxroYi sBYUPoe1XJjiXFcNBrtU/8nuFVuYE0qlmrg2Ewje6YeroEcvaGCVb1LQm4MkxqP34Rv9 WnPBWvdtsuEhKawwqtVsCyDJQISVC4ba+OJbZ42zWiK6IqwuA1NuubabM7E4QxziMWGA yj8g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=tqHxnX1L; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b11si23806159pfo.240.2019.01.10.09.50.37; Thu, 10 Jan 2019 09:50:52 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=tqHxnX1L; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730612AbfAJRsf (ORCPT + 99 others); Thu, 10 Jan 2019 12:48:35 -0500 Received: from mail.kernel.org ([198.145.29.99]:55572 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729480AbfAJRsf (ORCPT ); Thu, 10 Jan 2019 12:48:35 -0500 Received: from bbrezillon (91-160-177-164.subs.proxad.net [91.160.177.164]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 0F8EF20685; Thu, 10 Jan 2019 17:48:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1547142514; bh=xYOCS96HW86Q+ESJdvapp7SjBLQTTrQ+OilUo7KtzFI=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=tqHxnX1Lfk9eQmtwFJQK0PTsjuSmXKFG0qZ/8i2JAJPtRVLn+RUe0PC1q9YnxrY7I kIjJ4XL8YZR/tJcljC07osZtaDbyTpAuceVhi1d6yEMrKXMbR6RWo+Ss6TpzIXSq40 EJJTUjd6gAkBCZyvoNHWKcdUaV30UWJ6OGEh7Qhg= Date: Thu, 10 Jan 2019 18:48:25 +0100 From: Boris Brezillon To: Peter Rosin Cc: "linux-kernel@vger.kernel.org" , Alexandre Belloni , David Airlie , "dri-devel@lists.freedesktop.org" , Boris Brezillon , "linux-arm-kernel@lists.infradead.org" Subject: Re: [PATCH 2/4] drm/atmel-hlcdc: do not swap w/h of the crtc when a plane is rotated Message-ID: <20190110184816.63350396@bbrezillon> In-Reply-To: <20190110151020.30468-3-peda@axentia.se> References: <20190110151020.30468-1-peda@axentia.se> <20190110151020.30468-3-peda@axentia.se> X-Mailer: Claws Mail 3.16.0 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 10 Jan 2019 15:10:39 +0000 Peter Rosin wrote: > The destination crtc rectangle is independent of source plane rotation. > > Signed-off-by: Peter Rosin > --- > drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_plane.c | 3 --- > 1 file changed, 3 deletions(-) > > diff --git a/drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_plane.c b/drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_plane.c > index ea8fc0deb814..d6f93f029020 100644 > --- a/drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_plane.c > +++ b/drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_plane.c > @@ -642,9 +642,6 @@ static int atmel_hlcdc_plane_atomic_check(struct drm_plane *p, > * Swap width and size in case of 90 or 270 degrees rotation > */ > if (drm_rotation_90_or_270(state->base.rotation)) { > - tmp = state->crtc_w; > - state->crtc_w = state->crtc_h; > - state->crtc_h = tmp; Again, I guess I assumed ->crtc_h/w were the width and height before rotation when I initially added rotation support. This change might break users too. > tmp = state->src_w; > state->src_w = state->src_h; > state->src_h = tmp;