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 88B51C77B73 for ; Tue, 6 Jun 2023 17:14:00 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id A717910E385; Tue, 6 Jun 2023 17:13:59 +0000 (UTC) Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [213.167.242.64]) by gabe.freedesktop.org (Postfix) with ESMTPS id 94B1710E385 for ; Tue, 6 Jun 2023 17:13:57 +0000 (UTC) Received: from pendragon.ideasonboard.com (om126253223039.31.openmobile.ne.jp [126.253.223.39]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id E828BAB; Tue, 6 Jun 2023 19:13:28 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1686071610; bh=Y4+aPNtD+8i5z2EkM/v0YcopLYBAi67VEz/R3NjWN3k=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=kNaEjfV2/a9eQ5DBvaWRM3349hA8qEN9AA3xbrvZfiPkX/PMcNC47Pp1asekxx3pe TosYoyjh3/lkGnyJ5kmk0lyZ+ZJ+5t6XZoW36Tqoj7wLNANrm5glEOXxK6KgS0HNn2 hIJaumLsOUCR8REHqgA1gEp5Z1xXh9/XnDTh6blo= Date: Tue, 6 Jun 2023 20:13:51 +0300 From: Laurent Pinchart To: Siddh Raman Pant Subject: Re: [PATCH v9 5/8] drm: Remove usage of deprecated DRM_ERROR Message-ID: <20230606171351.GK25679@pendragon.ideasonboard.com> References: <247297c1171bc0ddbde0e90d33961fd5636caf0f.1686047727.git.code@siddh.me> <20230606144452.GE5197@pendragon.ideasonboard.com> <18891ac9112.109b85f8126467.5521217359687209203@siddh.me> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <18891ac9112.109b85f8126467.5521217359687209203@siddh.me> X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Neil Armstrong , Robert Foss , Andrzej Hajda , Jonas Karlman , Thomas Zimmermann , dri-devel , linux-kernel , Maxime Ripard , Jernej Skrabec , Suraj Upadhyay Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" On Tue, Jun 06, 2023 at 10:36:25PM +0530, Siddh Raman Pant wrote: > On Tue, 06 Jun 2023 20:14:52 +0530, Laurent Pinchart wrote: > > Hi Siddh, > > > > Thank you for the patch. > > Anytime :) > > > > if (!crtcs || !modes || !enabled || !offsets) { > > > - DRM_ERROR("Memory allocation failed\n"); > > > + drm_err(client->dev, "Memory allocation failed\n"); > > > > We could probably drop this message as memory allocation functions are > > already vocal on failure, but that's a separate fix. > > Okay. Should I send a patch at the end of the series removing the > superfluous messages you pointed out in drm core? That would be nice, thanks. > > > if (!drm_core_init_complete) { > > > - DRM_ERROR("DRM core is not initialized\n"); > > > + drm_err(NULL, "DRM core is not initialized\n"); > > > > Could this use dev ? > > No, the drm_device's dev pointer is assigned later. See line 621. > > > > if (!vma_offset_manager) { > > > - DRM_ERROR("out of memory\n"); > > > + drm_err(dev, "out of memory\n"); > > > > Same here, I think the message could be dropped. > > Okay. > > > > if (!ht->table) { > > > - DRM_ERROR("Out of memory for hash table\n"); > > > + drm_err(NULL, "Out of memory for hash table\n"); > > > > Same. > > Okay. > > > With the commit message fixed as mentioned in the review of an earlier > > patch in this series, and the issue in drm_dev_init() addressed if > > needed, > > > > Reviewed-by: Laurent Pinchart laurent.pinchart+renesas@ideasonboard.com> -- Regards, Laurent Pinchart