Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp586606iog; Mon, 13 Jun 2022 08:38:22 -0700 (PDT) X-Google-Smtp-Source: AGRyM1tVUdhwuS4nXOybMdr5vu1MNbPBJr3als7Fys2zavDKZt+hIQasxG9znrgIVFW3ZeDmWsNJ X-Received: by 2002:a17:90a:bd89:b0:1e3:50de:5ccf with SMTP id z9-20020a17090abd8900b001e350de5ccfmr421493pjr.104.1655134702088; Mon, 13 Jun 2022 08:38:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655134702; cv=none; d=google.com; s=arc-20160816; b=Ng1Z3nEMMWAg1o3k7sZIu3GIL4jeXHSHmrGYBqJZwGT76OVjqXpqpiq+Z/uhGuchEd bWxE6uv1ZX6oubeXZhjPWpWM2iSMJ9d/jqTXyBYVipfjvX6LgAzcYmIL9dZQkhJF/2Az x7p7VlQ8cNuUsZvuKFd5ykoNxkCt+iEHFHbFBa0zdCHj8Eozt3Fq/7DtoB/NB0EGu/gV w3cteH+npioy0gQn0tFlN2u7CV3ubHc4JS3uWcKWkMgcq8sgkSU0Wacoe///GEg+rC8F xfcL/wKAbAo3JkKhERrtYb7tTDmFV8HW0l9h6wzKXHZPJhmtG0QDpJWuFRrHmReZGYJx Fw7w== 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=f8siTi7q48eVsgb5AFE3s9pvNt7WkB4KNWAlbRhhvZI=; b=y+vucM/ahnDjdY+ccc4IOx2oCSPqdccKRX/0JhfTjeuo4mR7cIEflEh9Nf41jsuk6s 3QgqFe0JUeXNx/FbspD1g5SkYotJRYKblE6J2/3Qs8Y5WpYLcAsDiDZ/wqV8oCKUoH3c OPbmGGxtsoxRZcEffb+j2Mvz5oNzcUri74VTUnvaynbdlIKZrsCmWS++JkVrcJXdirJd x1fgFlpLrtNPOCPHHjztH1F2EENqCrxiuob9LdrIa3aetk9xs/tKezsXCVmQNfcIdTxB hIdz+e8iZ5egBkn81vm3tpkYip1HmaULXSDxl+qwtuQ5yaGk72ck+vQZP/AzbRzJ0Rj7 csRw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=lrP1+tRd; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w9-20020a17090a380900b001e345e5d5a3si9696222pjb.21.2022.06.13.08.38.09; Mon, 13 Jun 2022 08:38:22 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=lrP1+tRd; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S1376838AbiFMNXh (ORCPT + 99 others); Mon, 13 Jun 2022 09:23:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55064 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1377389AbiFMNUU (ORCPT ); Mon, 13 Jun 2022 09:20:20 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2D8226AA48; Mon, 13 Jun 2022 04:23:32 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 840FBB80EB4; Mon, 13 Jun 2022 11:22:55 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id EB442C34114; Mon, 13 Jun 2022 11:22:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1655119374; bh=f9w0RMtTN7/ak4qcChXR91LxINoxcn46kANf2Z88ZOc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=lrP1+tRdMJ8eV+PZsOnAKqNW+mbS8qa7myZ/UaPL+Ujc76zTiOAQt5ODZwzNwBygP lmSU6ChwI8OhWgoI44tmPVX3Yhuo4DxD3I4iTylLIyRe3CWBZmI44HMMUSJN36yPHz I8AGBijVulsFFwENR+nGw4GvnKtIcveA7AXQqdIs= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, KuoHsiang Chou , Thomas Zimmermann Subject: [PATCH 5.15 240/247] drm/ast: Create threshold values for AST2600 Date: Mon, 13 Jun 2022 12:12:22 +0200 Message-Id: <20220613094930.226878454@linuxfoundation.org> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220613094922.843438024@linuxfoundation.org> References: <20220613094922.843438024@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-8.3 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: KuoHsiang Chou commit bcc77411e8a65929655cef7b63a36000724cdc4b upstream. The threshold value is used for AST2600 only. Signed-off-by: KuoHsiang Chou Signed-off-by: Thomas Zimmermann Link: https://patchwork.freedesktop.org/patch/msgid/20220117083643.41493-1-kuohsiang_chou@aspeedtech.com Signed-off-by: Greg Kroah-Hartman --- drivers/gpu/drm/ast/ast_mode.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) --- a/drivers/gpu/drm/ast/ast_mode.c +++ b/drivers/gpu/drm/ast/ast_mode.c @@ -474,7 +474,10 @@ static void ast_set_color_reg(struct ast static void ast_set_crtthd_reg(struct ast_private *ast) { /* Set Threshold */ - if (ast->chip == AST2300 || ast->chip == AST2400 || + if (ast->chip == AST2600) { + ast_set_index_reg(ast, AST_IO_CRTC_PORT, 0xa7, 0xe0); + ast_set_index_reg(ast, AST_IO_CRTC_PORT, 0xa6, 0xa0); + } else if (ast->chip == AST2300 || ast->chip == AST2400 || ast->chip == AST2500) { ast_set_index_reg(ast, AST_IO_CRTC_PORT, 0xa7, 0x78); ast_set_index_reg(ast, AST_IO_CRTC_PORT, 0xa6, 0x60);