Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp7429442rwd; Tue, 6 Jun 2023 10:32:59 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5MrFId2huhFp4Jt4PRKvODgViyGFIvl9gZoaklaCwNI5WdW+/rK3Ig2iyfTMAX/nJeJ2AK X-Received: by 2002:a05:620a:3b01:b0:75d:4e60:6146 with SMTP id tl1-20020a05620a3b0100b0075d4e606146mr419665qkn.44.1686072779072; Tue, 06 Jun 2023 10:32:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686072779; cv=none; d=google.com; s=arc-20160816; b=RyrNnPa7Qi2sTJ5HWkyywg5JdhejM0kfmDgDtQ8XPsrH74Byb0TWA79NXP2xtaoNgE eF0TDylaEyzJqYZRuVwqZcVnRZhqjvMe6+zMZQcSPFBRXDzTOI1yZ/9grJuijxkqGBCJ HMUTOfnyFyD4Psz+xSJAYYR/5KewJexmGiTdRHJdUbZw33GdJ5NuCIOS7+YzqhC1kUOZ 9QCU2Xw+E8RdWgFnRuvzv+Q/2vv4mzhKdBxOwn6kyqvNNIR7J7RUrXqrb4flnKb2XjuH LsCJ1trRNxP1A6+9tSwoHhILJkfbtWyEHQbmi6d2TA5MAy1tcgIhtoNteprC3OxNKyXc KIuA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=WDxRNfWu2/fXXNE82I644Aic0hwQSa5oC+9iX6yB4fc=; b=HZYng5tAYqjIHO+d/gWtz5F8pf6nf8/1EkyFU1EXPLoG+8FzfRjPuCJPzetarz/wyi yCc/guvFxzhEKaGqxZj8Eb1PUfjutZ2EPRVmf/Cu0Mmx2banxdKUH64A9y/Dv3T6G0Rh 5UO9cz4oU0pTnZuJ9k0CHoJ5bmE6VwTkMNRFKqNQ6734zXinZ1SZB+3AHAY+Lo+mfah9 LeuRT1vqZIz4GxPPWNNtEW+8Gr/ub7XZNIW3kw2aj0OVr6kXpy0mnG5mDrQ56ghPhZvS v32+DZzOsEFX4kGpOdD/fH3YxF2oqK9neaPItugqliEkTHL70q+AVa/8kDOiOl1tCW6R 8Dpw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=kNaEjfV2; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id h19-20020a37de13000000b0075b2f6649f6si6208188qkj.741.2023.06.06.10.32.44; Tue, 06 Jun 2023 10:32:59 -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; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=kNaEjfV2; 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 S233678AbjFFRN7 (ORCPT + 99 others); Tue, 6 Jun 2023 13:13:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56500 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233272AbjFFRN6 (ORCPT ); Tue, 6 Jun 2023 13:13:58 -0400 Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [213.167.242.64]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4752318E for ; Tue, 6 Jun 2023 10:13:57 -0700 (PDT) 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 Cc: Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Daniel Vetter , Andrzej Hajda , Neil Armstrong , Robert Foss , Jonas Karlman , Jernej Skrabec , Jani Nikula , dri-devel , linux-kernel , Suraj Upadhyay 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-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_PASS,SPF_PASS, T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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 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