Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp4515814pxb; Mon, 27 Sep 2021 20:02:49 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyz/SkBwG+6nKa7ahz0dQo09zHiIIHnn9iUq+h5qNvnsTWGwx8yRfeFIRB+2MkUlcsr+3Hm X-Received: by 2002:a05:6402:2913:: with SMTP id ee19mr4728291edb.332.1632798169413; Mon, 27 Sep 2021 20:02:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632798169; cv=none; d=google.com; s=arc-20160816; b=SaXgWbOhZJVZh/XvqpFmxfTImVxJ0xTHyUmg+ef501/2JMw7rO/x5KVLzW7pfr2gu2 0JUVKZyW8ef+X9n12AoTt9d3SMrMLdfaZ62e6Kh7PcjG0dZxJEtfJODnnHUXsu1pdFJJ la93pweV7R9w1SZpoE3d+/bp8cDs5VmQWPD/KcmM82xYsEq1bu35Hjepk6wbTsiSnpWX IUR2FWlYJ+P4bvOGjiVEf9l0237kAPpGgbVItwaSXMCqPW8/i3xbmKrYWLi6HtPpSna3 WILYjQPKHgU6IWcz1ciCXM29kH0ySCq6Jcq065Pwu42SBsfEwiHq+oSFrQh1xn9lVGvE l2MA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from; bh=931IsQotfAaMXZU6PYBPuJWDCm2X0ZXKyT6a1M6Pa9k=; b=pup/aDRY4XGiOJgoQLAC13Q819yKgqa8bnF21eBjz+ZZtintAr/o2Jpb9GGofzSZ5W ZtOxF9TmAomB0OAd+z6ne6uIBQvGklwyup8a7JYR6EhmRs1pyUytQpGizH1FiQzPbuQr SLlMwZpzn7cDfKGT4li6/E/YQTjkgLTVjlCUi/lIv0chIsPo4jKAAT54MkiaPwTe5wAZ 4XMryS1m/FDDsGGclRGMpZB9ZcXRD8IXBDHx9+5VD2oTRQEg7VXGQVXCjG4YMAZM++R2 8kvdU8VxUNjTQ3D5yN/ugbSaSLrAwF2NFJ6cCM5aOiMKNAqTPQg0R4i4+9x2TPTHHbs3 LTBA== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id 9si18566192ejj.312.2021.09.27.20.02.25; Mon, 27 Sep 2021 20:02:49 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238814AbhI1DAD (ORCPT + 99 others); Mon, 27 Sep 2021 23:00:03 -0400 Received: from twspam01.aspeedtech.com ([211.20.114.71]:12559 "EHLO twspam01.aspeedtech.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238786AbhI1C77 (ORCPT ); Mon, 27 Sep 2021 22:59:59 -0400 Received: from mail.aspeedtech.com ([192.168.0.24]) by twspam01.aspeedtech.com with ESMTP id 18S2aUKk072690; Tue, 28 Sep 2021 10:36:30 +0800 (GMT-8) (envelope-from tommy_huang@aspeedtech.com) Received: from tommy0527-VirtualBox.aspeedtech.com (192.168.2.141) by TWMBX02.aspeed.com (192.168.0.24) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Tue, 28 Sep 2021 10:57:11 +0800 From: tommy-huang To: , , , , , , , , , CC: Subject: [PATCH 4/6] HACK: drm/aspeed: INTR_STS hadndling Date: Tue, 28 Sep 2021 10:57:01 +0800 Message-ID: <20210928025703.10909-5-tommy_huang@aspeedtech.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20210928025703.10909-1-tommy_huang@aspeedtech.com> References: <20210928025703.10909-1-tommy_huang@aspeedtech.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [192.168.2.141] X-ClientProxiedBy: TWMBX02.aspeed.com (192.168.0.24) To TWMBX02.aspeed.com (192.168.0.24) X-DNSRBL: X-MAIL: twspam01.aspeedtech.com 18S2aUKk072690 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Joel Stanley The 2600 uses this register differently. THis is a TODO to come up with a method of handling that. Signed-off-by: Joel Stanley Signed-off-by: tommy-huang --- drivers/gpu/drm/aspeed/aspeed_gfx_drv.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/aspeed/aspeed_gfx_drv.c b/drivers/gpu/drm/aspeed/aspeed_gfx_drv.c index ea9cb0a4f16c..33095477cc03 100644 --- a/drivers/gpu/drm/aspeed/aspeed_gfx_drv.c +++ b/drivers/gpu/drm/aspeed/aspeed_gfx_drv.c @@ -126,7 +126,8 @@ static irqreturn_t aspeed_gfx_irq_handler(int irq, void *data) if (reg & CRT_CTRL_VERTICAL_INTR_STS) { drm_crtc_handle_vblank(&priv->pipe.crtc); - writel(reg, priv->base + CRT_CTRL1); + /* TODO */ + writel(CRT_CTRL_VERTICAL_INTR_STS, priv->base + CRT_STATUS); return IRQ_HANDLED; } -- 2.17.1