Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp1614321pxb; Mon, 11 Oct 2021 09:31:05 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzyYrRNwYHMsmQfg4FBGgZGMAkcLCm8fcZpLFGPuTD8jPnS82SUw4sY6G01hJF/lldWbaGB X-Received: by 2002:a05:6a00:23d3:b0:44c:a67f:49af with SMTP id g19-20020a056a0023d300b0044ca67f49afmr27019284pfc.50.1633969864766; Mon, 11 Oct 2021 09:31:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1633969864; cv=none; d=google.com; s=arc-20160816; b=0969rbZe9VXiSJkC0zoNCzzhpOLQwGnXX2cRC8fd2kMLS6qdwkNY7uJ/L7vStdhD6A e8Puk6mtw2C0+ghsIvv3RpTg+U+9kxAfNYR1vGePwIA+fjV3tDYoOtwHo5a/4XPizYQ2 BVCrbGSx09eYJXi/q3vgVjdcFSBQIR/Gpl5l01Ji+Cr+qVzGxdtihERVafI9X9PPnOxB iHEbznDOiDRVARSVmwMQ5BMfoSLnlgFiBaNyoDzz94CFxSOZ9QqYbii0+lA12mOqWnJt WfOmdCMCcCirhMrIu/v2mYTtMlWDmiipHrFiW4mgs+9ARj+gMUtsGQZN9yEZAGtkI/Qp po3g== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=W0rrs1DdgsmH9gFBLSK9Lui//g+OkhMJVWTjmnlZOtE=; b=HEQGq42XefZ7SBjrZ6XZpuJrUudtVQRKAGpKyGzbWBCSu5ztaop+NTy1vMYWwHWmRn LC1V856B7xVKvscx4O6zzXAInpTKSaa9/+eMuR6LEebEnA+Alzr3WO6ByN+KC30N4q0b J7dXRIOPLhTImsrzrVVN0Ro0u6ONBh2X5o7SeAB15X2ZSsp7lamqsMcKYnNo5pq7NngJ iubKliKTGVe8H83XvhFg80t+vK4hLj8mBB4vg20A85OPk9C6Iq1NP7tKVspOAKRfkuR9 tqLROEpw/Y+mwuM3VFLEBe6lGAEj4AgdpTZQ/od6z9ZC4JxXz/07HbHmg+bRzFvugGII 9rUQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=dXpV4jc4; 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=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id mu4si26530668pjb.174.2021.10.11.09.30.51; Mon, 11 Oct 2021 09:31:04 -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=@linuxfoundation.org header.s=korg header.b=dXpV4jc4; 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=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237859AbhJKN4s (ORCPT + 99 others); Mon, 11 Oct 2021 09:56:48 -0400 Received: from mail.kernel.org ([198.145.29.99]:40706 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237840AbhJKNyr (ORCPT ); Mon, 11 Oct 2021 09:54:47 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 5CCD3610A4; Mon, 11 Oct 2021 13:52:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1633960353; bh=DKjwj0we8hROzswdrZhtDKWg7WmZvgXO/7gtE4x/+0w=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=dXpV4jc4Peh3ptozzVVwbqgryOa3/qmEOzTIe3regStx4h6LXaVYiODDTHrYTpwBZ rRL1i/dg0Zm80fFM/o8p/myIhEYltJ/G0l2DPN7immTwupGyx5DLx10206TIQxQsPW bEdp3lfdt+FwXVkyzpFQ7VhVIr6rmgP5NpLMqKpQ= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Ben Skeggs , Lyude Paul , Karol Herbst , Maarten Lankhorst Subject: [PATCH 5.10 06/83] drm/nouveau/kms/tu102-: delay enabling cursor until after assign_windows Date: Mon, 11 Oct 2021 15:45:26 +0200 Message-Id: <20211011134508.573362197@linuxfoundation.org> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20211011134508.362906295@linuxfoundation.org> References: <20211011134508.362906295@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Ben Skeggs commit f732e2e34aa08493fdd762f3daa4e5f16bbf1e45 upstream. Prevent NVD core channel error code 67 occuring and hanging display, managed to reproduce on GA102 while testing suspend/resume scenarios. Required extension of earlier commit to fix interactions with EFI. Fixes: e78b1b545c6c ("drm/nouveau/kms/nv50: workaround EFI GOP window channel format differences") Signed-off-by: Ben Skeggs Cc: Lyude Paul Cc: Karol Herbst Cc: # v5.12+ Reviewed-by: Karol Herbst Signed-off-by: Karol Herbst Link: https://patchwork.freedesktop.org/patch/msgid/20210906005628.11499-2-skeggsb@gmail.com Signed-off-by: Maarten Lankhorst Signed-off-by: Greg Kroah-Hartman --- drivers/gpu/drm/nouveau/dispnv50/head.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/gpu/drm/nouveau/dispnv50/head.c +++ b/drivers/gpu/drm/nouveau/dispnv50/head.c @@ -51,6 +51,7 @@ nv50_head_flush_clr(struct nv50_head *he void nv50_head_flush_set_wndw(struct nv50_head *head, struct nv50_head_atom *asyh) { + if (asyh->set.curs ) head->func->curs_set(head, asyh); if (asyh->set.olut ) { asyh->olut.offset = nv50_lut_load(&head->olut, asyh->olut.buffer, @@ -66,7 +67,6 @@ nv50_head_flush_set(struct nv50_head *he if (asyh->set.view ) head->func->view (head, asyh); if (asyh->set.mode ) head->func->mode (head, asyh); if (asyh->set.core ) head->func->core_set(head, asyh); - if (asyh->set.curs ) head->func->curs_set(head, asyh); if (asyh->set.base ) head->func->base (head, asyh); if (asyh->set.ovly ) head->func->ovly (head, asyh); if (asyh->set.dither ) head->func->dither (head, asyh);