Message ID | 20230830154546.499987-3-suijingfeng@loongson.cn |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:a7d1:0:b0:3f2:4152:657d with SMTP id p17csp4724238vqm; Wed, 30 Aug 2023 12:08:22 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHPVKF9oWm6c7OdklraPbul8lsMI4jDOtYCkIKeFA3LYeYmSoH/+Sc/9B+QRWQ0VRendfpU X-Received: by 2002:a17:907:9501:b0:9a5:c3f9:c89d with SMTP id ew1-20020a170907950100b009a5c3f9c89dmr1938183ejc.24.1693422501993; Wed, 30 Aug 2023 12:08:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1693422501; cv=none; d=google.com; s=arc-20160816; b=rPElHmodvQJhc09NaP7/mtXtyPUzBM9tFmBbUzPyDI282qrTTfhUV9ENvUd53YEBpF GQqIBwd/I0E5ADloJ+0IFBoghq59E6SKtb1iGdtbW5Ui8qdczVdKS32CmHAvZ5HjWZRd vJ7hA//mfmvXb73lZSGz3QRmyCUf6nuSP3Idl6U9/kwi1XKAhoaNbgmHppZa/xMs6pxI cuV6oHu9WZLlJv7F/ni1K6J5/nUqkMEjucS34YzVB9SxH6KKkPV30bwyaaBp8ZXfEyhp 0UheazBkWohFci1FfmZMF6D20jFmpFCqPEt3rPU4p2SQuDIsWZCJXN2Yu02ivgYbE0SK j10g== 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 :references:in-reply-to:message-id:date:subject:cc:to:from; bh=XaQC47vb9n6iQQLnwtF1sXAjvvKW9qqkYrM4yVEgpso=; fh=F322SQGktmtfJ1ONvgY0z4T/sqHVXRDKHFKKMjSETX0=; b=nV1Q8JBlieg11X79fXgzTjLe6cEqtnB/7rrZvhymLHbEC4HszNE2yTKHmaWu6fT/wR afFpqdNGKY48Tx+iRiEWwoNB7L5vSQEE85NFWMkCRe76IstJrnkvpfZB0rzAS85O+O8i 8nDY/PDxhfo/tp2+KKi+/0MSmLQqAO4glP0Gwoja/LQ3f70T36Bpet3U93Yz07b1v5B4 rCmG2b+dHSd2ND6sy9tBEKvuBJJPbrcvEP8cjun6yOxnt2KoPBKxTV+P8gbabRGLwF8T ui1O20D90XWsGx2oaZmlhYoFm1OltNsX1//FXNnND8XYAM6kTtpv4vsWOPBTBwk4rTvx fkEw== ARC-Authentication-Results: i=1; mx.google.com; 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id gl11-20020a170906e0cb00b00996d0a9b50csi6434764ejb.234.2023.08.30.12.07.52; Wed, 30 Aug 2023 12:08:21 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232571AbjH3TEG (ORCPT <rfc822;kiss.andras.p@gmail.com> + 99 others); Wed, 30 Aug 2023 15:04:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43306 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S245640AbjH3Ppw (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Wed, 30 Aug 2023 11:45:52 -0400 Received: from mail.loongson.cn (mail.loongson.cn [114.242.206.163]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 16E88132 for <linux-kernel@vger.kernel.org>; Wed, 30 Aug 2023 08:45:48 -0700 (PDT) Received: from loongson.cn (unknown [10.20.42.43]) by gateway (Coremail) with SMTP id _____8Cx7+sqZO9kmyEdAA--.58305S3; Wed, 30 Aug 2023 23:45:46 +0800 (CST) Received: from openarena.loongson.cn (unknown [10.20.42.43]) by localhost.localdomain (Coremail) with SMTP id AQAAf8DxviMqZO9kjVRnAA--.12491S4; Wed, 30 Aug 2023 23:45:46 +0800 (CST) From: Sui Jingfeng <suijingfeng@loongson.cn> To: Patrik Jakobsson <patrik.r.jakobsson@gmail.com>, David Airlie <airlied@gmail.com>, Daniel Vetter <daniel@ffwll.ch> Cc: dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Subject: [PATCH 2/3] drm/gma500: Print the start address of the GTT Date: Wed, 30 Aug 2023 23:45:45 +0800 Message-Id: <20230830154546.499987-3-suijingfeng@loongson.cn> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230830154546.499987-1-suijingfeng@loongson.cn> References: <20230830154546.499987-1-suijingfeng@loongson.cn> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-CM-TRANSID: AQAAf8DxviMqZO9kjVRnAA--.12491S4 X-CM-SenderInfo: xvxlyxpqjiv03j6o00pqjv00gofq/ X-Coremail-Antispam: 1Uk129KBj9xXoW7GrW5WF4fWw1xurWxZF1UJwc_yoWfXFXEga yUArZxGryqkFs8GFs7Zrs5AFy2ya4avF4vvan2qa43Gr98Ar17X34jgF95X3yxXa17KFnr JwnrXF10kFsFkosvyTuYvTs0mTUanT9S1TB71UUUUU7qnTZGkaVYY2UrUUUUj1kv1TuYvT s0mT0YCTnIWjqI5I8CrVACY4xI64kE6c02F40Ex7xfYxn0WfASr-VFAUDa7-sFnT9fnUUI cSsGvfJTRUUUb7xYFVCjjxCrM7AC8VAFwI0_Jr0_Gr1l1xkIjI8I6I8E6xAIw20EY4v20x vaj40_Wr0E3s1l1IIY67AEw4v_JF0_JFyl8cAvFVAK0II2c7xJM28CjxkF64kEwVA0rcxS w2x7M28EF7xvwVC0I7IYx2IY67AKxVWUCVW8JwA2z4x0Y4vE2Ix0cI8IcVCY1x0267AKxV WUJVW8JwA2z4x0Y4vEx4A2jsIE14v26F4UJVW0owA2z4x0Y4vEx4A2jsIEc7CjxVAFwI0_ Cr1j6rxdM2AIxVAIcxkEcVAq07x20xvEncxIr21l57IF6xkI12xvs2x26I8E6xACxx1l5I 8CrVACY4xI64kE6c02F40Ex7xfMcIj6xIIjxv20xvE14v26r1q6rW5McIj6I8E87Iv67AK xVW8JVWxJwAm72CE4IkC6x0Yz7v_Jr0_Gr1lF7xvr2IYc2Ij64vIr41l42xK82IYc2Ij64 vIr41l4I8I3I0E4IkC6x0Yz7v_Jr0_Gr1lx2IqxVAqx4xG67AKxVWUJVWUGwC20s026x8G jcxK67AKxVWUGVWUWwC2zVAF1VAY17CE14v26r126r1DMIIYrxkI7VAKI48JMIIF0xvE2I x0cI8IcVAFwI0_JFI_Gr1lIxAIcVC0I7IYx2IY6xkF7I0E14v26r1j6r4UMIIF0xvE42xK 8VAvwI8IcIk0rVWUJVWUCwCI42IY6I8E87Iv67AKxVWUJVW8JwCI42IY6I8E87Iv6xkF7I 0E14v26r1j6r4UYxBIdaVFxhVjvjDU0xZFpf9x07j5l1kUUUUU= X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1775682193810158761 X-GMAIL-MSGID: 1775682193810158761 |
Series |
[1/3] drm/gma500: Print the stolen memory base and size with drm_info()
|
|
Commit Message
Sui Jingfeng
Aug. 30, 2023, 3:45 p.m. UTC
The PGTBL_CTL register provides the starting physical memory address of
the Graphics Translation Table (GTT). We want to see what's the value in
it. This patch is useful for debug.
Signed-off-by: Sui Jingfeng <suijingfeng@loongson.cn>
---
drivers/gpu/drm/gma500/gtt.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/drivers/gpu/drm/gma500/gtt.c b/drivers/gpu/drm/gma500/gtt.c index 379bc218aa6b..112418301866 100644 --- a/drivers/gpu/drm/gma500/gtt.c +++ b/drivers/gpu/drm/gma500/gtt.c @@ -243,6 +243,8 @@ static void psb_gtt_init_ranges(struct drm_psb_private *dev_priv) gtt_mem = &pdev->resource[PSB_GATT_RESOURCE]; } + drm_info(dev, "Phys start of GTT: 0x%llx\n", (u64)gtt_phys_start); + pg->gtt_phys_start = gtt_phys_start; pg->mmu_gatt_start = mmu_gatt_start; pg->gtt_start = gtt_start;