From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.20]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 8DAFA157A5C for ; Thu, 6 Feb 2025 19:14:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.20 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1738869254; cv=none; b=ep+0mQ7N1FinmU1O02mux5yavBj7BetGoYtWFws2idm3y7BHfR1YxNQDcmCKNmPcn6KqSDr/Q1pG+AqIfHfIduq5WWm4u1XwO4jqfy3IkCB0faBimHRtUU3qmfYFrpPp3cDnx2eHlIJ6qRGU73J3jogRaIKhkkHzWtmRBmq1hWY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1738869254; c=relaxed/simple; bh=6qZMePHjYGI3HrblpDkkzq2CCyuYf7jkYyTtV03nb8M=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=OMNcdmGmOtCqBvUHxYW/2uMUQ4CFe3NNmqsVo00H8+2VobBL9MorCjvGaqn7DCPGJEXrtbmhL/VQkdcOvIPm1BrYO4y2KxLMSrOM+nZt+Kj3VilkLcfpkroJomtsF9Gq2UPq6Iic34ifZtED9lVr4fIlHs4uBmJKXZ02CDC0FyE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com; spf=none smtp.mailfrom=linux.intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=mjsar08E; arc=none smtp.client-ip=198.175.65.20 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="mjsar08E" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1738869253; x=1770405253; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=6qZMePHjYGI3HrblpDkkzq2CCyuYf7jkYyTtV03nb8M=; b=mjsar08EgB8e9S3lJ11oswyNBXeHICbqRXrNB18v4S5qI9cuj1kkqJzH ny/u898LHZiETBRSDEL3FIHtJiMpgN05arS6ZA14OlnJ1hOOvr7XnmuUp BFyIrwwRpIOMjV17pyl5xUoP2+oo+VVJfnItZiPIxUdcfmv3l34Vuvk4P po7rKfoiq4JOjq/tDtQDEh1Kgb7T03s4vkfvRnqSvob+gQBVBouE9eTsL QVevhsvBQMeTURjTPM/IzT57PTH7P/pxqdOZjxbaC31uBDRQWvSZNIFY0 S/qnyZJAW1vzR4qkIhAD2lCJpv0RoUsdi6JXu1IOa+pnMbltUpcffX4/A g==; X-CSE-ConnectionGUID: TOfbTplYSNSmm4v9zRMVHQ== X-CSE-MsgGUID: meE5BV6QT8CQOKLVtK5Cag== X-IronPort-AV: E=McAfee;i="6700,10204,11336"; a="39189369" X-IronPort-AV: E=Sophos;i="6.13,265,1732608000"; d="scan'208";a="39189369" Received: from orviesa008.jf.intel.com ([10.64.159.148]) by orvoesa112.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 06 Feb 2025 11:14:01 -0800 X-CSE-ConnectionGUID: T5K8LW2ARDupRejRwQiSDw== X-CSE-MsgGUID: 7uyCuQqjQeCVbAhIwhFN3g== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.12,224,1728975600"; d="scan'208";a="112198601" Received: from smile.fi.intel.com ([10.237.72.58]) by orviesa008.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 06 Feb 2025 11:13:59 -0800 Received: from andy by smile.fi.intel.com with local (Exim 4.98) (envelope-from ) id 1tg7K0-00000008pHL-03ht; Thu, 06 Feb 2025 21:13:56 +0200 Date: Thu, 6 Feb 2025 21:13:55 +0200 From: Andy Shevchenko To: Ofir Bitton , dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Cc: Oded Gabbay Subject: Re: [PATCH v1 1/1] accel/habanalabs: Switch to use %ptTs Message-ID: References: <20250206154855.1125731-1-andriy.shevchenko@linux.intel.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20250206154855.1125731-1-andriy.shevchenko@linux.intel.com> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo On Thu, Feb 06, 2025 at 05:48:55PM +0200, Andy Shevchenko wrote: > Use %ptTs instead of open-coded variant to print contents of time64_t type > in human readable form. ... > dev_err(hdev->dev, > - "EQ: {CI %u, HB counter %u, last HB time: %s}, PQ: {PI: %u, CI: %u (%u), last HB time: %s}\n", > + "EQ: {CI %u, HB counter %u, last HB time: %ptTs}, PQ: {PI: %u, CI: %u (%u), last HB time: %ptTs}\n", > hdev->event_queue.ci, > heartbeat_debug_info->heartbeat_event_counter, > - eq_time_str, > + hdev->heartbeat_debug_info.last_eq_heartbeat_ts, This has to be a pointer... > hdev->kernel_queues[cpu_q_id].pi, > atomic_read(&hdev->kernel_queues[cpu_q_id].ci), > atomic_read(&hdev->kernel_queues[cpu_q_id].ci) & pq_pi_mask, > - pq_time_str); > + hdev->heartbeat_debug_info.last_pq_heartbeat_ts); ...and this. I will fix these typos in v2. -- With Best Regards, Andy Shevchenko