Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp7075509ybi; Thu, 13 Jun 2019 09:09:19 -0700 (PDT) X-Google-Smtp-Source: APXvYqwLfUcWoP57ihDJ+6/gqKuxqK6RsX8Yc8TAs6QBpkQxq/sJrINTfKF6EURrw0anSnlK7tdM X-Received: by 2002:a62:3447:: with SMTP id b68mr37040468pfa.67.1560442159678; Thu, 13 Jun 2019 09:09:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560442159; cv=none; d=google.com; s=arc-20160816; b=ihI5GUYn7QLPz3MYT99zhOCyDgVedorTja/cKlpe5dtN7+Jn2uxl9yLuBCcT/zf5pZ 7phMAjNJ9qNm0J8NBDCIiEh0EXvuF/1vnLKVqMMRwkCbo3m8dTn8GfN8MYByXmN1WyUs sAJCvqyoLKsy0vx/eEHYRkfKG1rkUu0p+rWMUAmjEnZKCgEZgRmW+56ceQSa9nzzWr3J xsZkihEf1l1bK0gUtTh9vkYAWbhVjwJTINKtrDXgS8mABY6/yFe27D4LP6xVx1hdcFPr 6quvYhhXm9nnePhaLnEc9+WhlfYkojXnka/GqGQSnwZ+z7EL9o+JRz+3eoNGxFU0Bckv ZOLQ== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=iqJGmcBVKwIO4vTf/xN426zkK4zoeLzo+W5E9ouw52M=; b=EvuU3kj7EBbUVSO5bMEUorBvavlbK90eAC6GeCJ4RiltwjpPIQUoaNXGH+auB9Nflw g/0BNKy6z4MYKAmAVM+zLsRqF9u4VJd3nUFckIx9HzaWyo65tsScwSBqBEwJA4chx5mn YwF8jYe5+XSJ7Ic9CRKBTtvNk7JwcfP/dLPxs6KgUHP4rjFOGUmfnYZbFDh+SVAouMNd NKCtZZOZCQUZTtsHdV5/bjNrCszdi0o9zm++ZUvo8q3QHZBrY7Wk4KbqKA9g5ifx5YNv VfuCj1ZgDKLHhccW28UDUX+BcUSAM0L/a5EUut8qSo5t4j6z71VuZF4Xq3PsWcsuxvuW idvg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=MDfkENea; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s12si106183pgp.572.2019.06.13.09.09.05; Thu, 13 Jun 2019 09:09:19 -0700 (PDT) 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=MDfkENea; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2391356AbfFMQHU (ORCPT + 99 others); Thu, 13 Jun 2019 12:07:20 -0400 Received: from mail.kernel.org ([198.145.29.99]:34238 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731303AbfFMIpa (ORCPT ); Thu, 13 Jun 2019 04:45:30 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (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 85FFD20851; Thu, 13 Jun 2019 08:45:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1560415530; bh=nZ9mjRNW1Bgexwp8v7itdN7Ro72sgff9guZIoOH2c2A=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=MDfkENeapAzeb7QQphLa0rh1oJIgLl4G3BvOdzkTN0AOZfHuY5fHm+tge5as8iwzc 4RVeRb8119W2u3Utp8qyzQEQbzPJarBCiHBqwyfXGi3pevhW1XA54bkW/bEfk2rDMw IKR2QxS1ll1fyRCCv1rW51gqGINlyroD5w5NTAlU= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Peteris Rudzusiks , Ben Skeggs , Sasha Levin Subject: [PATCH 5.1 033/155] drm/nouveau: fix duplication of nv50_head_atom struct Date: Thu, 13 Jun 2019 10:32:25 +0200 Message-Id: <20190613075654.866267624@linuxfoundation.org> X-Mailer: git-send-email 2.22.0 In-Reply-To: <20190613075652.691765927@linuxfoundation.org> References: <20190613075652.691765927@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org [ Upstream commit c4a52d669690423ee3c99d8eda1e69cd0821fcad ] nv50_head_atomic_duplicate_state() makes a copy of nv50_head_atom struct. This patch adds copying of struct member named "or", which previously was left uninitialized in the duplicated structure. Due to this bug, incorrect nhsync and nvsync values were sometimes used. In my particular case, that lead to a mismatch between the output resolution of the graphics device (GeForce GT 630 OEM) and the reported input signal resolution on the display. xrandr reported 1680x1050, but the display reported 1280x1024. As a result of this mismatch, the output on the display looked like it was cropped (only part of the output was actually visible on the display). git bisect pointed to commit 2ca7fb5c1cc6 ("drm/nouveau/kms/nv50: handle SetControlOutputResource from head"), which added the member "or" to nv50_head_atom structure, but forgot to copy it in nv50_head_atomic_duplicate_state(). Fixes: 2ca7fb5c1cc6 ("drm/nouveau/kms/nv50: handle SetControlOutputResource from head") Signed-off-by: Peteris Rudzusiks Signed-off-by: Ben Skeggs Signed-off-by: Sasha Levin --- drivers/gpu/drm/nouveau/dispnv50/head.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpu/drm/nouveau/dispnv50/head.c b/drivers/gpu/drm/nouveau/dispnv50/head.c index 8efb778a3b20..06ee23823a68 100644 --- a/drivers/gpu/drm/nouveau/dispnv50/head.c +++ b/drivers/gpu/drm/nouveau/dispnv50/head.c @@ -413,6 +413,7 @@ nv50_head_atomic_duplicate_state(struct drm_crtc *crtc) asyh->ovly = armh->ovly; asyh->dither = armh->dither; asyh->procamp = armh->procamp; + asyh->or = armh->or; asyh->dp = armh->dp; asyh->clr.mask = 0; asyh->set.mask = 0; -- 2.20.1