From patchwork Fri Oct 14 15:25:25 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nirmoy Das X-Patchwork-Id: 13007113 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 8D8D6C4332F for ; Fri, 14 Oct 2022 15:25:56 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 72C6010EB07; Fri, 14 Oct 2022 15:25:55 +0000 (UTC) Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by gabe.freedesktop.org (Postfix) with ESMTPS id 1036B10E2AE for ; Fri, 14 Oct 2022 15:25:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1665761150; x=1697297150; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=6kFDV7Zv22HZf+ut8dKoUnzdRPKi7hSWUQJiX1xRRZs=; b=T9ttE4pOrYyw3vWYMFj4f9vrmujhZ0C/88D/Gg15rpIpjRbMbZxHam4f 5P95K29JHhync2iUi+ZA7cvg6EaFiUlvDW2YcFynwex/VAczrYblw8cN6 W9j5wFuVzchlvoePhjJQJF/VBXKg0pusG6Tl3rslR9dL1TFaG0QaXO1jt OOYCxnQhYiV+lOExafCfOyJ5krdDoor4LhGicqrWN+ixsjNb1SmCsW4XD WTTz4CENJ9tjA6H8pl7y5hDkIp3nX2ZsG9bdiBvVGfKQC0aQRHbWuh6ai c2jD1w1RqCqKlS4eEnWLD5FF0xc8k055lw8RBPNFdb9Wvnv8cq7thrL0i Q==; X-IronPort-AV: E=McAfee;i="6500,9779,10500"; a="391705996" X-IronPort-AV: E=Sophos;i="5.95,184,1661842800"; d="scan'208";a="391705996" Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 14 Oct 2022 08:25:33 -0700 X-IronPort-AV: E=McAfee;i="6500,9779,10500"; a="956618200" X-IronPort-AV: E=Sophos;i="5.95,184,1661842800"; d="scan'208";a="956618200" Received: from nirmoyda-desk.igk.intel.com ([10.102.13.19]) by fmsmga005-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 14 Oct 2022 08:25:32 -0700 From: Nirmoy Das To: intel-gfx@lists.freedesktop.org Date: Fri, 14 Oct 2022 17:25:25 +0200 Message-Id: <20221014152525.7683-1-nirmoy.das@intel.com> X-Mailer: git-send-email 2.37.3 MIME-Version: 1.0 Organization: Intel Deutschland GmbH, Registered Address: Am Campeon 10, 85579 Neubiberg, Germany, Commercial Register: Amtsgericht Muenchen HRB 186928 Subject: [Intel-gfx] [PATCH] drm/i915: Print return value on error X-BeenThere: intel-gfx@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Intel graphics driver community testing & development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Nirmoy Das Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" Print returned error code for better debuggability. References: https://gitlab.freedesktop.org/drm/intel/-/issues/7211 Signed-off-by: Nirmoy Das --- drivers/gpu/drm/i915/display/intel_fbdev.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/gpu/drm/i915/display/intel_fbdev.c b/drivers/gpu/drm/i915/display/intel_fbdev.c index 112aa0447a0d..015a854d9bec 100644 --- a/drivers/gpu/drm/i915/display/intel_fbdev.c +++ b/drivers/gpu/drm/i915/display/intel_fbdev.c @@ -175,7 +175,7 @@ static int intelfb_alloc(struct drm_fb_helper *helper, } if (IS_ERR(obj)) { - drm_err(&dev_priv->drm, "failed to allocate framebuffer\n"); + drm_err(&dev_priv->drm, "failed to allocate framebuffer(err = %pe)\n", obj); return PTR_ERR(obj); } @@ -256,7 +256,7 @@ static int intelfb_create(struct drm_fb_helper *helper, info = drm_fb_helper_alloc_fbi(helper); if (IS_ERR(info)) { - drm_err(&dev_priv->drm, "Failed to allocate fb_info\n"); + drm_err(&dev_priv->drm, "Failed to allocate fb_info(err = %pe)\n", info); ret = PTR_ERR(info); goto out_unpin; } @@ -291,7 +291,7 @@ static int intelfb_create(struct drm_fb_helper *helper, vaddr = i915_vma_pin_iomap(vma); if (IS_ERR(vaddr)) { drm_err(&dev_priv->drm, - "Failed to remap framebuffer into virtual memory\n"); + "Failed to remap framebuffer into virtual memory (err = %pe)\n", vaddr); ret = PTR_ERR(vaddr); goto out_unpin; }