From patchwork Tue Jan 17 17:44:46 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Nirmoy Das X-Patchwork-Id: 13104949 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 9F530C3DA78 for ; Tue, 17 Jan 2023 17:45:25 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 8B02D10E2F0; Tue, 17 Jan 2023 17:45:24 +0000 (UTC) Received: from mga12.intel.com (mga12.intel.com [192.55.52.136]) by gabe.freedesktop.org (Postfix) with ESMTPS id BC82D10E2F0; Tue, 17 Jan 2023 17:45:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1673977521; x=1705513521; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=ubh/DFz9VR75xvB1bkoItkO1Y6HAmMWGYEXAyyGVRMI=; b=KzxwbWkCeP1iy0J25ZxoU4/VWzj2LDiqLnMixL3E4MA9lOAgZ3kNlWl0 F6MuqTGjwy2g4Cn+TSD0xO9sAfvVTj9uQ3pGAPnVvpqZLCQm/IdawPIag jPevmCUbyIjWm2h2dyDOvc8Wp6vdpvj9ZL0dwp2+H9wHsWNTLzUKjja6l jiQPI8PuNZVrFOttiZxKC4SdxLbcpIhIaibQfoyM6sSOg/ePf0L4TxDFK Rj/UMbtb/LhkuH2qHVh23v/R/qth4yDdhSvGDgalJ+Lef9IqMtYcC4wJU X3nneTUPnklLwHOxNsqZuVbG1h8mOWRVHGhFLSNOpuBD/WRn6QlFogxMC w==; X-IronPort-AV: E=McAfee;i="6500,9779,10592"; a="304447943" X-IronPort-AV: E=Sophos;i="5.97,224,1669104000"; d="scan'208";a="304447943" Received: from orsmga005.jf.intel.com ([10.7.209.41]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 17 Jan 2023 09:45:20 -0800 X-IronPort-AV: E=McAfee;i="6500,9779,10592"; a="833250882" X-IronPort-AV: E=Sophos;i="5.97,224,1669104000"; d="scan'208";a="833250882" Received: from nirmoyda-desk.igk.intel.com ([10.102.42.231]) by orsmga005-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 17 Jan 2023 09:45:19 -0800 From: Nirmoy Das To: dri-devel@lists.freedesktop.org Subject: [PATCH 1/2] drm/radeon: Do not use deprecated drm log API Date: Tue, 17 Jan 2023 18:44:46 +0100 Message-Id: <20230117174447.21870-1-nirmoy.das@intel.com> X-Mailer: git-send-email 2.39.0 MIME-Version: 1.0 Organization: Intel Deutschland GmbH, Registered Address: Am Campeon 10, 85579 Neubiberg, Germany, Commercial Register: Amtsgericht Muenchen HRB 186928 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: Alex Deucher , =?utf-8?q?Christian_K=C3=B6nig?= , amd-gfx@lists.freedesktop.org, Nirmoy Das Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" Replace deprecated DRM_DEBUG_KMS_RATELIMITED() and DRM_ERROR() with proper APIs. Cc: Alex Deucher Cc: Christian König Signed-off-by: Nirmoy Das --- drivers/gpu/drm/radeon/radeon_dp_auxch.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/gpu/drm/radeon/radeon_dp_auxch.c b/drivers/gpu/drm/radeon/radeon_dp_auxch.c index 69379b95146e..76ce66efb5f8 100644 --- a/drivers/gpu/drm/radeon/radeon_dp_auxch.c +++ b/drivers/gpu/drm/radeon/radeon_dp_auxch.c @@ -158,7 +158,7 @@ radeon_dp_aux_transfer_native(struct drm_dp_aux *aux, struct drm_dp_aux_msg *msg } while (retry_count++ < 1000); if (retry_count >= 1000) { - DRM_ERROR("auxch hw never signalled completion, error %08x\n", tmp); + pr_err("auxch hw never signalled completion, error %08x\n", tmp); ret = -EIO; goto done; } @@ -168,8 +168,7 @@ radeon_dp_aux_transfer_native(struct drm_dp_aux *aux, struct drm_dp_aux_msg *msg goto done; } if (tmp & AUX_RX_ERROR_FLAGS) { - DRM_DEBUG_KMS_RATELIMITED("dp_aux_ch flags not zero: %08x\n", - tmp); + drm_dbg_kms_ratelimited(dev, "dp_aux_ch flags not zero: %08x\n", tmp); ret = -EIO; goto done; } From patchwork Tue Jan 17 17:44:47 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nirmoy Das X-Patchwork-Id: 13104950 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 7A1EFC54E76 for ; Tue, 17 Jan 2023 17:45:34 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 27C6288CE4; Tue, 17 Jan 2023 17:45:28 +0000 (UTC) Received: from mga12.intel.com (mga12.intel.com [192.55.52.136]) by gabe.freedesktop.org (Postfix) with ESMTPS id BAF4010E2F0; Tue, 17 Jan 2023 17:45:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1673977523; x=1705513523; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=8zU6bxT4r/JWO5cPz6eZBPjLUrBxy5fVwdyiqBMMcK4=; b=Tyq/ezuVsbNS1Dk+BmMVOHQvqSL5NAthgg5/8rZKkT5bDFtYS9G5XfXG UIupDxiEB/XUBRWGqUIiGugAJD/F3is3UmsRJU320XL4cM1+DebBaJc0M NqP6IyNAxReU49S79Ru7YblnX3aFZfq+gf6WXWh4AjJOEaOPYt6DKlUiT JZtAi0JwN4XiYKOCj/3WBqmWq9R7JRfAPpMryRSP41/5a4hcG2vKYXWG4 sRF+nYh8yTTTzs8XLAxzKvUl/MkPaZojDR9Af5ga4lANXpi9WFcWJN7h9 wT8q9K1ZaSgtO2B9rbBnjUqb5IkdC64laNp13p7PQdKcEwLvyiJL6InHd Q==; X-IronPort-AV: E=McAfee;i="6500,9779,10592"; a="304447951" X-IronPort-AV: E=Sophos;i="5.97,224,1669104000"; d="scan'208";a="304447951" Received: from orsmga005.jf.intel.com ([10.7.209.41]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 17 Jan 2023 09:45:23 -0800 X-IronPort-AV: E=McAfee;i="6500,9779,10592"; a="833250900" X-IronPort-AV: E=Sophos;i="5.97,224,1669104000"; d="scan'208";a="833250900" Received: from nirmoyda-desk.igk.intel.com ([10.102.42.231]) by orsmga005-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 17 Jan 2023 09:45:20 -0800 From: Nirmoy Das To: dri-devel@lists.freedesktop.org Subject: [PATCH 2/2] drm_print: Remove deprecated DRM_DEBUG_KMS_RATELIMITED() Date: Tue, 17 Jan 2023 18:44:47 +0100 Message-Id: <20230117174447.21870-2-nirmoy.das@intel.com> X-Mailer: git-send-email 2.39.0 In-Reply-To: <20230117174447.21870-1-nirmoy.das@intel.com> References: <20230117174447.21870-1-nirmoy.das@intel.com> MIME-Version: 1.0 Organization: Intel Deutschland GmbH, Registered Address: Am Campeon 10, 85579 Neubiberg, Germany, Commercial Register: Amtsgericht Muenchen HRB 186928 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: Sam Ravnborg , amd-gfx@lists.freedesktop.org, Thomas Zimmermann , Nirmoy Das Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" There are no current users of DRM_DEBUG_KMS_RATELIMITED() so remove it. Cc: Maarten Lankhorst Cc: Maxime Ripard Cc: Thomas Zimmermann Cc: David Airlie Cc: Daniel Vetter Cc: Sam Ravnborg Signed-off-by: Nirmoy Das Reviewed-by: Sam Ravnborg --- include/drm/drm_print.h | 3 --- 1 file changed, 3 deletions(-) diff --git a/include/drm/drm_print.h b/include/drm/drm_print.h index a44fb7ef257f..c3753da97c4e 100644 --- a/include/drm/drm_print.h +++ b/include/drm/drm_print.h @@ -605,9 +605,6 @@ void __drm_err(const char *format, ...); #define drm_dbg_kms_ratelimited(drm, fmt, ...) \ __DRM_DEFINE_DBG_RATELIMITED(KMS, drm, fmt, ## __VA_ARGS__) -/* NOTE: this is deprecated in favor of drm_dbg_kms_ratelimited(NULL, ...). */ -#define DRM_DEBUG_KMS_RATELIMITED(fmt, ...) drm_dbg_kms_ratelimited(NULL, fmt, ## __VA_ARGS__) - /* * struct drm_device based WARNs *