Received: by 2002:a05:7208:9594:b0:7e:5202:c8b4 with SMTP id gs20csp1413975rbb; Mon, 26 Feb 2024 08:30:53 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCXB9OIxwSnS+qg/1BLI8JqXYYVGn9rwQ7VyAJXm+aUgKwDZFwV4GEE/vDKVlh6aKpu/uRXltJAWMSupaFHhB/efhM/3UxgdWrXo16pwTQ== X-Google-Smtp-Source: AGHT+IFA5ECHs4JScTDoCsfb12etQ7yyFNuv7DA6JzPE2IpgokAU5i0xv0F1u3RbkhQ8tjhwgXLc X-Received: by 2002:a05:6402:3903:b0:561:ea0:e234 with SMTP id fe3-20020a056402390300b005610ea0e234mr6219757edb.16.1708965053557; Mon, 26 Feb 2024 08:30:53 -0800 (PST) Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id u13-20020a056402110d00b0056472b1ce38si2183222edv.445.2024.02.26.08.30.53 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 26 Feb 2024 08:30:53 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-81912-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@intel.com header.s=Intel header.b=UP2T5gRo; arc=fail (body hash mismatch); spf=pass (google.com: domain of linux-kernel+bounces-81912-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-81912-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 514951F2DF9D for ; Mon, 26 Feb 2024 16:30:53 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3F1AB12F5BC; Mon, 26 Feb 2024 16:30:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=intel.com header.i=@intel.com header.b="UP2T5gRo" Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.21]) (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 E46C212F5A8 for ; Mon, 26 Feb 2024 16:30:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.21 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708965034; cv=none; b=EUeAdtpsLO9KGzbxUrOzL7/WpfKpNDe6gMQhjMpwYAu64jPYjVTcx8gHb4HrT7bmSbHt7avJ/PpRXWJkzgca4OQ0xWhpekK5dogC9YoOOghM5qVJZO2t4VY5gUUwhq2Vw81QL2d77ZmubgWQLYfo5znEJLM7rDlTGJfgAjcJylc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708965034; c=relaxed/simple; bh=WkaRCtgixD/AVecS0IPHxFCKd9hFe12qK+vvbOWbbW0=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=CDAp5clezJLe4QLrHGSP3gT3AU6KfhzaPOlo9EeNUXaSsENaQ27EP1bj+m2O2SDs0A69JXt0//JFDYWc7KtmQiUylTqwDv/xr08QQREHEfE02nqfndlIh0JmEzRbdzV6Gs4r6Eqok30f25oFk7dW14rIzJdkX+ZL6IaUAte52kg= 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=UP2T5gRo; arc=none smtp.client-ip=198.175.65.21 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 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1708965033; x=1740501033; h=date:from:to:cc:subject:message-id:references: mime-version:content-transfer-encoding:in-reply-to; bh=WkaRCtgixD/AVecS0IPHxFCKd9hFe12qK+vvbOWbbW0=; b=UP2T5gRoAKEtI03IV9PvaJjlP92WqFY5mkSvHUpVDbtTG2dDmoto+3jS YRsN0+dHrS6LWgLy/0OL6NplJtpHIJhWLL4Sj66PDVw2uFLaQ8AsMPLcY TLmX3UszKZtDORRVgCePs1GLfNcK4kNQUyCYJb/WLUUcjqtnaeKQv1yjc jIkuNVF6d0u31PL4yx4dIEGXwPVKQSRNHgW02Ea5nd/jZ4KQZ1+R32UtP PscjWjJnQttG8aenMOO8qhX5AGNWoBbS91fJXIno1tLb5tT+iZPMqr/Pa tULglp6mGysqZKmkzBXCgfLJ7zGxe5nzMYgk+RbgMl/FDqy6KTgd1EwJ8 g==; X-IronPort-AV: E=McAfee;i="6600,9927,10996"; a="3185271" X-IronPort-AV: E=Sophos;i="6.06,186,1705392000"; d="scan'208";a="3185271" Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by orvoesa113.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 26 Feb 2024 08:30:33 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10996"; a="913881165" X-IronPort-AV: E=Sophos;i="6.06,186,1705392000"; d="scan'208";a="913881165" Received: from smile.fi.intel.com ([10.237.72.54]) by fmsmga002.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 26 Feb 2024 08:30:29 -0800 Received: from andy by smile.fi.intel.com with local (Exim 4.97) (envelope-from ) id 1reds2-00000007jUm-1XIb; Mon, 26 Feb 2024 18:30:26 +0200 Date: Mon, 26 Feb 2024 18:30:26 +0200 From: Andy Shevchenko To: Jani Nikula Cc: Ville =?iso-8859-1?Q?Syrj=E4l=E4?= , Rodrigo Vivi , intel-gfx@lists.freedesktop.org, Petr Mladek , Steven Rostedt , Rasmus Villemoes , Sergey Senozhatsky , linux-kernel@vger.kernel.org Subject: Re: [PATCH 01/12] drm/i915: Indicate which pipe failed the fastset check overall Message-ID: References: <20240215164055.30585-1-ville.syrjala@linux.intel.com> <20240215164055.30585-2-ville.syrjala@linux.intel.com> <87bk83mfwp.fsf@intel.com> <878r37me5k.fsf@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=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <878r37me5k.fsf@intel.com> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo On Mon, Feb 26, 2024 at 05:35:51PM +0200, Jani Nikula wrote: > On Mon, 26 Feb 2024, Andy Shevchenko wrote: > > On Mon, Feb 26, 2024 at 04:57:58PM +0200, Jani Nikula wrote: > >> On Fri, 23 Feb 2024, Ville Syrj?l? wrote: > >> > On Thu, Feb 22, 2024 at 04:46:12PM -0500, Rodrigo Vivi wrote: .. > >> > I think the proper solution would be to have actually > >> > sensible conversion specifiers in the format string. > >> > So instead of % we'd have something > >> > more like %{drm_crtc} (or whatever color you want to throw > >> > on that particular bikeshed). > >> > >> Personally I suck at remembering even the standard printf conversion > >> specifiers, let alone all the kernel extensions. I basically have to > >> look them up every time. I'd really love some %{name} format for named > >> pointer things. And indeed preferrably without the %p. Just %{name}. > > > > It will become something like %{name[:subextensions]}, where subextensions > > is what we now have with different letters/numbers after %pX (X is a letter > > which you proposed to have written as name AFAIU). > > Thanks, I appreciate it, a lot! Oh, I meant "can" rather than "will". > But could you perhaps try to go with just clean %{name} only instead of > adding [:subextensions] right away, please? > > I presume the suggestion comes from an implementation detail, and I > guess it would be handy to reuse the current implementation for > subextension. > > For example, %pb -> %{bitmap} and %pbl -> %{bitmap:l}. But really I > think the better option would be for the latter to become, say, > %{bitmap-list}. The goal here is to make them easy to remember and > understand, without resorting to looking up the documentation! Okay, so it seems you have something in mind, perhaps you can submit a draft of the list of those "names"? > >> And then we could discuss adding support for drm specific things. I > >> guess one downside is that the functions to do this would have to be in > >> vsprintf.c instead of drm. Unless we add some code in drm for this > >> that's always built-in. -- With Best Regards, Andy Shevchenko