From patchwork Wed Aug 30 15:45:44 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sui Jingfeng X-Patchwork-Id: 137211 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:a7d1:0:b0:3f2:4152:657d with SMTP id p17csp4732761vqm; Wed, 30 Aug 2023 12:24:58 -0700 (PDT) X-Google-Smtp-Source: AGHT+IG/o5N6FhekeXxSJPmaH2O9WGJ+FFNUViZVMYfITdSIotjPo8aipYfG4AtYSD735mFgUSqL X-Received: by 2002:a17:906:51d4:b0:9a2:2635:dab6 with SMTP id v20-20020a17090651d400b009a22635dab6mr2608929ejk.47.1693423497948; Wed, 30 Aug 2023 12:24:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1693423497; cv=none; d=google.com; s=arc-20160816; b=ApvTG4r1wacUm9p5i+MkLCI5VinsBLqbeeuiYWmQcsXK7w5fbZOp9KOQxxa0uQ3Zuk mnGWtBEFxjR3MQ0MNA+3QeaocdadBJZPLc5LDnbZEMJl/AQJkD1fjEn8s9l03I8rYTrf wZ5psdQlj0v0Xv2wY+H8b5PJeRxzSkcsiS9L6yFZxm88QRx7G2EE68WDWKW1XG1FlpB+ tv2JtDiVCtyiZ5DchpSocXWhYE86hmMkzoUX8nU+gcRTcN2phT+Rp+PQtaLTNNgY8vv0 3pDvAHycXDJMZ+R+9H5pUjZa3gR7foyq73FYG0hZ7Xw8JGc3kVRLUnjy8IImz4W4MWHb ZuaQ== 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=EpugbVW7mtiiSW8eZXHNn4mn2mDo7nLoE6c1j8PnRfA=; fh=F322SQGktmtfJ1ONvgY0z4T/sqHVXRDKHFKKMjSETX0=; b=YbJoWze1Fz7GLZ7BiIg1HcgL3sIrq7xSo5UWVZnqrV+e3FvGTtNpcNv9XNW8BdeeoO a3JwNmn4RCJq3/ln536ayerc1owIbTEW/vQBiyayRSlTi/ZzNilnrdPexW+UG2saeorU FSHl3Ia5dXc25PrgCOx0d+2ypte5XCf7yTJlCB12VAHlPXJW1IhgThSVYMo+hRXhbmF/ xiWWe989Zm2gt1LHUksyYyHjKCNN3r3HVES9kI/PenXR5gc+CJkB8UTqAUBDi4NaGbpl x4l3omCaNzL+eiuy1/yoDvGTlfHX3v0djPu0dILejre/OBL17rSHz0ootiH5F3bQC01t ckxw== 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 z5-20020a170906714500b0099327746bd7si7376611ejj.520.2023.08.30.12.24.20; Wed, 30 Aug 2023 12:24:57 -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 S242071AbjH3TUF (ORCPT + 99 others); Wed, 30 Aug 2023 15:20:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43292 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S245639AbjH3Ppw (ORCPT ); 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 5E9D9122 for ; Wed, 30 Aug 2023 08:45:48 -0700 (PDT) Received: from loongson.cn (unknown [10.20.42.43]) by gateway (Coremail) with SMTP id _____8DxFegqZO9klyEdAA--.443S3; 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--.12491S3; Wed, 30 Aug 2023 23:45:46 +0800 (CST) From: Sui Jingfeng To: Patrik Jakobsson , David Airlie , Daniel Vetter Cc: dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Subject: [PATCH 1/3] drm/gma500: Print the stolen memory base and size with drm_info() Date: Wed, 30 Aug 2023 23:45:44 +0800 Message-Id: <20230830154546.499987-2-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 X-CM-TRANSID: AQAAf8DxviMqZO9kjVRnAA--.12491S3 X-CM-SenderInfo: xvxlyxpqjiv03j6o00pqjv00gofq/ X-Coremail-Antispam: 1Uk129KBj9xXoWrKF4kKr4UAF47AFWUur4rWFX_yoWfJFc_K3 ZxZrsxGr17uanrAF4rZr1S9r90y3WIvF48XF40qay5K3sruwnxX34j9r93WrW5Ja13Ga4D t3Z8Xr93tFn7GosvyTuYvTs0mTUanT9S1TB71UUUUUUqnTZGkaVYY2UrUUUUj1kv1TuYvT s0mT0YCTnIWjqI5I8CrVACY4xI64kE6c02F40Ex7xfYxn0WfASr-VFAUDa7-sFnT9fnUUI cSsGvfJTRUUUb7xYFVCjjxCrM7AC8VAFwI0_Jr0_Gr1l1xkIjI8I6I8E6xAIw20EY4v20x vaj40_Wr0E3s1l1IIY67AEw4v_Jrv_JF1l8cAvFVAK0II2c7xJM28CjxkF64kEwVA0rcxS w2x7M28EF7xvwVC0I7IYx2IY67AKxVWUJVWUCwA2z4x0Y4vE2Ix0cI8IcVCY1x0267AKxV WUJVW8JwA2z4x0Y4vEx4A2jsIE14v26F4UJVW0owA2z4x0Y4vEx4A2jsIEc7CjxVAFwI0_ Cr1j6rxdM2AIxVAIcxkEcVAq07x20xvEncxIr21l57IF6xkI12xvs2x26I8E6xACxx1l5I 8CrVACY4xI64kE6c02F40Ex7xfMcIj6xIIjxv20xvE14v26r126r1DMcIj6I8E87Iv67AK xVWUJVW8JwAm72CE4IkC6x0Yz7v_Jr0_Gr1lF7xvr2IYc2Ij64vIr41l42xK82IYc2Ij64 vIr41l4I8I3I0E4IkC6x0Yz7v_Jr0_Gr1lx2IqxVAqx4xG67AKxVWUJVWUGwC20s026x8G jcxK67AKxVWUGVWUWwC2zVAF1VAY17CE14v26r126r1DMIIYrxkI7VAKI48JMIIF0xvE2I x0cI8IcVAFwI0_Jr0_JF4lIxAIcVC0I7IYx2IY6xkF7I0E14v26r1j6r4UMIIF0xvE42xK 8VAvwI8IcIk0rVWUJVWUCwCI42IY6I8E87Iv67AKxVWUJVW8JwCI42IY6I8E87Iv6xkF7I 0E14v26r1j6r4UYxBIdaVFxhVjvjDU0xZFpf9x07j83kZUUUUU= 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: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1775683237691089345 X-GMAIL-MSGID: 1775683237691089345 while at it, also replace the 'K' with 'KiB'. Signed-off-by: Sui Jingfeng --- drivers/gpu/drm/gma500/gem.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/gma500/gem.c b/drivers/gpu/drm/gma500/gem.c index 4b7627a72637..6fe78f61e127 100644 --- a/drivers/gpu/drm/gma500/gem.c +++ b/drivers/gpu/drm/gma500/gem.c @@ -344,8 +344,8 @@ int psb_gem_mm_init(struct drm_device *dev) stolen_size = vram_stolen_size; - dev_dbg(dev->dev, "Stolen memory base 0x%x, size %luK\n", - dev_priv->stolen_base, vram_stolen_size / 1024); + drm_info(dev, "Stolen memory base 0x%x, size %luKiB\n", + dev_priv->stolen_base, vram_stolen_size / 1024); pg->stolen_size = stolen_size; dev_priv->vram_stolen_size = vram_stolen_size;