Received: by 2002:ab2:620c:0:b0:1ef:ffd0:ce49 with SMTP id o12csp437430lqt; Mon, 18 Mar 2024 12:06:46 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUL7FAgBSh8FQemwRzoyDU0LZUD63BMigjl8X7FodYUuRiYsIv8JpMAS6feUOVjsym7jediE/s7uPxuv38UY5U5fIQAJZg6RONNfMdlbA== X-Google-Smtp-Source: AGHT+IEfkiXuaWz6+XHLHiD4T30yYtCq7LD4ssV6rMLHpdSogwSpsXilxNGeGdpFZEE23zSygcqG X-Received: by 2002:a17:90a:f598:b0:29b:ad3e:8eb6 with SMTP id ct24-20020a17090af59800b0029bad3e8eb6mr9235224pjb.30.1710788805754; Mon, 18 Mar 2024 12:06:45 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710788805; cv=pass; d=google.com; s=arc-20160816; b=rRMTQXpbpXfswE0Itcmhp7kRgeV2QCb/2LGURYDE++EIbEEWc3Vk0Ls67SwcGhgQtY tkm3GNKFy+kPS4XzDaxbdDGGCNDca/Rz3xJa7a0Djyljri6NkgENPYVqe7ibibWC12RQ oDIXKF3z21+4IL5nTZc9oArxWSEwUm+dr8vGG3NY9D7HaWaKekKJip9ag0rENDHdvllv 5p+SHZB6j1LLFgyGQYQ7Dt2k4+K/RHJu13tK4A+bH8PXwYuhiTwVGzgd0Dv4M4gM4rKf AXVqsMuqWSq0JURNy27TYvY5NseuarhXmTXda/JrX3O+B7wRTRt9ZV8f+CYHZYJ866mL Lmig== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:dkim-signature:message-id; bh=aI53OR+8o+dtnjSJRsKHjwQWA3OPclhRJ779bxvtMIA=; fh=G+tTXngCC2xMSi/h/LZ5hfryqiJ473rPDJLJ/jqzPT8=; b=CZta+XsXP6iXq7xiSmIvp9RSizGPRnXTWDX2ouDSvG8wpasT0xqpeMEFQQas0f2gHG oGmN80HDjOmt9Qwd/JQhWswjKbMm6uJJvA8gHFNpv+EUm4fsM1xKZom9KWmfExh7c9a1 fkAQWG7bCg1HO2zTEMiC10jMugAcgIM722Q4iexHTF6YWTR2UffThNl3YvJSH7CRNNQo wMBgb5Tblrfc01O6BOCVoWcZKxieGTxL5mEDYOU7sQYm1/SPgvB0kjPs8WfXNl5R2y/f Z7758QLfGT1FrJNkzgOSAOuoqoOJIbSoksPKoDHUeCEtYJ/qb87qhj/yj9ycBWHK/ohH eQ2Q==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=IV5qgkfK; arc=pass (i=1 spf=pass spfdomain=linux.dev dkim=pass dkdomain=linux.dev dmarc=pass fromdomain=linux.dev); spf=pass (google.com: domain of linux-kernel+bounces-106545-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-106545-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id w6-20020a17090a780600b0029fb80a4abcsi1962679pjk.88.2024.03.18.12.06.45 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 Mar 2024 12:06:45 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-106545-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=IV5qgkfK; arc=pass (i=1 spf=pass spfdomain=linux.dev dkim=pass dkdomain=linux.dev dmarc=pass fromdomain=linux.dev); spf=pass (google.com: domain of linux-kernel+bounces-106545-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-106545-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev 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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 41FC7B22D2A for ; Mon, 18 Mar 2024 19:06:16 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 208F956467; Mon, 18 Mar 2024 19:06:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b="IV5qgkfK" Received: from out-182.mta0.migadu.com (out-182.mta0.migadu.com [91.218.175.182]) (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 A022855C14 for ; Mon, 18 Mar 2024 19:06:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=91.218.175.182 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710788766; cv=none; b=BUD3ZIFYk/5d6exXXlfPqemZH/t8ZeyH0DKweeOh8EzIf1NGGvf3D6SHoSDOrchh6XSRIh8TmLjGaVUD89L9eR2+j0LL30VV1XJgIpAHyT2355ppCV5PW0ocnISrxq2Sgox2oAtMC1eo/RGNIaf3K6Tj7Qwq4fOgQmkx2PZeKtc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710788766; c=relaxed/simple; bh=74ZSPlVYVJNFzX2CjhuI7nZPYa4reYpe31xx8MLhPLY=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=PB2Z/sjqNksz+KKqszTknGIRzy1iR1nvWgcECDQGCJ3Ss1eEkKPPxx/qaGoJVILy6TAypAg4u3PgiAtpehreHZ8x0wdJsSuI+0gi1ujPL+X0snxGVqcTcFaAHPsCB6O3x9tXcRygBC21jwqv5L9IMOkQ521XIJWs0vT/XHl+LUE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev; spf=pass smtp.mailfrom=linux.dev; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b=IV5qgkfK; arc=none smtp.client-ip=91.218.175.182 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.dev Message-ID: <6b44c9b7-e1e2-4b69-a443-4616ceab6f17@linux.dev> DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1710788761; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=aI53OR+8o+dtnjSJRsKHjwQWA3OPclhRJ779bxvtMIA=; b=IV5qgkfKSkQIYLWNQUflil6tfdnHRjp+RSS4A8Y6mtVmRh/JmXNI0eXK0Ru+4uPD61kQKz /RBKDMPWbuC8WIUZC82MvShrtpw5g2omWnjWt5FLLts5o5SdVBrpxFfCnibUlOZuWzXZiT d31TfX4l0nWmOpSjEtutiSfcvjs5fdw= Date: Mon, 18 Mar 2024 15:05:57 -0400 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Subject: Re: [PATCH 6/6] drm: zynqmp_dp: Add debugfs interface for compliance testing Content-Language: en-US To: Laurent Pinchart Cc: kernel test robot , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , dri-devel@lists.freedesktop.org, oe-kbuild-all@lists.linux.dev, David Airlie , linux-kernel@vger.kernel.org, Michal Simek , linux-arm-kernel@lists.infradead.org, Daniel Vetter References: <20240315230916.1759060-7-sean.anderson@linux.dev> <202403161704.ACHJdSJG-lkp@intel.com> <20240318175032.GM13682@pendragon.ideasonboard.com> X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Sean Anderson In-Reply-To: <20240318175032.GM13682@pendragon.ideasonboard.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Migadu-Flow: FLOW_OUT On 3/18/24 13:50, Laurent Pinchart wrote: > On Mon, Mar 18, 2024 at 11:06:40AM -0400, Sean Anderson wrote: >> On 3/16/24 06:14, kernel test robot wrote: >> > Hi Sean, >> > >> > kernel test robot noticed the following build warnings: >> > >> > [auto build test WARNING on v6.8] >> > [cannot apply to drm-misc/drm-misc-next linus/master next-20240315] >> > [If your patch is applied to the wrong git tree, kindly drop us a note. >> > And when submitting patch, we suggest to use '--base' as documented in >> > https://git-scm.com/docs/git-format-patch#_base_tree_information] >> > >> > url: https://github.com/intel-lab-lkp/linux/commits/Sean-Anderson/drm-zynqmp_dp-Downgrade-log-level-for-aux-retries-message/20240316-071208 >> > base: v6.8 >> > patch link: https://lore.kernel.org/r/20240315230916.1759060-7-sean.anderson%40linux.dev >> > patch subject: [PATCH 6/6] drm: zynqmp_dp: Add debugfs interface for compliance testing >> > config: microblaze-allmodconfig (https://download.01.org/0day-ci/archive/20240316/202403161704.ACHJdSJG-lkp@intel.com/config) >> > compiler: microblaze-linux-gcc (GCC) 13.2.0 >> > reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240316/202403161704.ACHJdSJG-lkp@intel.com/reproduce) >> > >> > If you fix the issue in a separate patch/commit (i.e. not just a new version of >> > the same patch/commit), kindly add following tags >> > | Reported-by: kernel test robot >> > | Closes: https://lore.kernel.org/oe-kbuild-all/202403161704.ACHJdSJG-lkp@intel.com/ >> > >> > All warnings (new ones prefixed by >>): >> > >> > drivers/gpu/drm/xlnx/zynqmp_dp.c: In function 'zynqmp_dp_bridge_debugfs_init': >> >>> drivers/gpu/drm/xlnx/zynqmp_dp.c:2168:31: warning: 'sprintf' may write a terminating nul past the end of the destination [-Wformat-overflow=] >> > 2168 | sprintf(name, fmt, i); >> > | ^~~ >> > drivers/gpu/drm/xlnx/zynqmp_dp.c:2168:17: note: 'sprintf' output between 18 and 20 bytes into a destination of size 19 >> > 2168 | sprintf(name, fmt, i); >> > | ^~~~~~~~~~~~~~~~~~~~~ >> >> Not a bug, as i will be at most 4, which uses 1 digit. > > The compiler can't know that. Please fix this, there's a zero warning > policy. I cannot reproduce this with GCC 13.2.0. So given that this is not a bug and I can't reproduce it, I don't see how I can verify any fix. --Sean >> > vim +/sprintf +2168 drivers/gpu/drm/xlnx/zynqmp_dp.c >> > >> > 2136 >> > 2137 DEFINE_DEBUGFS_ATTRIBUTE(fops_zynqmp_dp_rate, zynqmp_dp_rate_get, >> > 2138 zynqmp_dp_rate_set, "%llu\n"); >> > 2139 >> > 2140 static void zynqmp_dp_bridge_debugfs_init(struct drm_bridge *bridge, >> > 2141 struct dentry *root) >> > 2142 { >> > 2143 struct zynqmp_dp *dp = bridge_to_dp(bridge); >> > 2144 struct dentry *test; >> > 2145 int i; >> > 2146 >> > 2147 dp->test.bw_code = DP_LINK_BW_5_4; >> > 2148 dp->test.link_cnt = dp->num_lanes; >> > 2149 >> > 2150 test = debugfs_create_dir("test", root); >> > 2151 #define CREATE_FILE(name) \ >> > 2152 debugfs_create_file(#name, 0600, test, dp, &fops_zynqmp_dp_##name) >> > 2153 CREATE_FILE(pattern); >> > 2154 CREATE_FILE(enhanced); >> > 2155 CREATE_FILE(downspread); >> > 2156 CREATE_FILE(active); >> > 2157 CREATE_FILE(custom); >> > 2158 CREATE_FILE(rate); >> > 2159 CREATE_FILE(lanes); >> > 2160 >> > 2161 for (i = 0; i < dp->num_lanes; i++) { >> > 2162 static const char fmt[] = "lane%d_preemphasis"; >> > 2163 char name[sizeof(fmt)]; >> > 2164 >> > 2165 dp->debugfs_train_set[i].dp = dp; >> > 2166 dp->debugfs_train_set[i].lane = i; >> > 2167 >> >> 2168 sprintf(name, fmt, i); >> > 2169 debugfs_create_file(name, 0600, test, >> > 2170 &dp->debugfs_train_set[i], >> > 2171 &fops_zynqmp_dp_preemphasis); >> > 2172 >> > 2173 sprintf(name, "lane%d_swing", i); >> > 2174 debugfs_create_file(name, 0600, test, >> > 2175 &dp->debugfs_train_set[i], >> > 2176 &fops_zynqmp_dp_swing); >> > 2177 } >> > 2178 } >> > 2179 >