Received: by 2002:a05:7412:bbc7:b0:fc:a2b0:25d7 with SMTP id kh7csp2497638rdb; Mon, 5 Feb 2024 08:17:46 -0800 (PST) X-Google-Smtp-Source: AGHT+IGlfydW1pIXmabHiwuziy9q9nd23eGHk3+/rqvD4WHOXx9vQqxmjzjywbbEF0M6wsC5WHTP X-Received: by 2002:a05:6358:33a1:b0:178:75f5:33e6 with SMTP id i33-20020a05635833a100b0017875f533e6mr357715rwd.19.1707149866679; Mon, 05 Feb 2024 08:17:46 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707149866; cv=pass; d=google.com; s=arc-20160816; b=K4GIYR9pWIk+iCW8Jc+i2Yxtxgg0KelsTvrtmmIFJAwLl2Q53GDVgA7d2S/FDMKQ8Z 961pb4i2oCewOTpff5hXfnXdd9Kq5riY/ONTzKFyB+LJUS0CpS0GGkXSvfwtv1sOKHcD JPUv3USu1dxMsAxQlAZ7XIvuh80B1VviNXBUGybr1gylGf2yDDCiirffnNph6e0qmGR7 o3GFbf82E9cKEVwqbDPX4wabaC/YGjuXbDUSgB1Kg3RRvwJP+XepSJIZPseQgcF6uXDc niqZirkMKKxe42CgxKS0EtL4x4+p7bYein7BEBXv6psnvwlwJSxLHqUQGTcfyih80txD rALw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=mWs3XxIiekf4ykBqDshkGBWbwskUmdfaLl80WuHxcB4=; fh=SjOxUVe1I6IvXyDPtQPmp8ubnynZMv/7m3yUgRyxTmU=; b=H2iOMD1DYunAgsGh/X2UXBsASR+czT7eY8iemW7p2KjGJuhSPvU2bu0XPNhFoDAesq CNBcPQ6mAzaBokyKxQveHkaNFImRnaWThvqHrT7gtSU1bJgRJzPVBZLRmCeh/DgPAa+I skJEBLdzzS/a3V0BPs56ptG2o2SdBpx9JcKqYfzZ9gEzsfJYufVuTrcOA3lQYc09TJUY hWKn12uoGC1+PwosPivu5IG+513PYN+/MsSEha1pWamgobPH/F0EzkoCOHYpQS//ZrB/ bx/LQFWuEXnNl5eORNAjWkgdAwFbi1ncIH2LJjjyP1j5IjwXOk/K/h+vFNij1z/nCzpW wsIQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=J6XFbwqH; arc=pass (i=1 spf=pass spfdomain=intel.com dkim=pass dkdomain=intel.com dmarc=pass fromdomain=intel.com); spf=pass (google.com: domain of linux-kernel+bounces-53001-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-53001-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com X-Forwarded-Encrypted: i=1; AJvYcCUSEtoZoXBztrZxX6nbnSG0pqbXV4rZUC3Elyoo4uoPdowxKI/RLQRltc+KH74IH7qUvPKKS5IjALGoEAcM9Czh3woAplfsRHocuNa3yw== Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id l16-20020a05612207d000b004c03d3d77adsi69545vkr.59.2024.02.05.08.17.46 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 05 Feb 2024 08:17:46 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-53001-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=J6XFbwqH; arc=pass (i=1 spf=pass spfdomain=intel.com dkim=pass dkdomain=intel.com dmarc=pass fromdomain=intel.com); spf=pass (google.com: domain of linux-kernel+bounces-53001-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-53001-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 58D921C21ECE for ; Mon, 5 Feb 2024 16:17:46 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 58D7632C9C; Mon, 5 Feb 2024 16:17:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="J6XFbwqH" Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.9]) (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 1B06A3FB32 for ; Mon, 5 Feb 2024 16:17:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.9 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707149860; cv=none; b=EprNmFW94CFjzF4Oo30Pd5t+10dwyQKWtyNNH0YkE4ajFz+QNd3oubIxmLzqEO08XhwAMu1HifKlg4MyEU0xpwR1yLHWQN+bMj9lAz7FnIa0Zh5IgjqYyLBW8ElhdfQ01dXFel3+HufwNbCfotKfkcIZnIdY4dvOCCGqzGuoPhw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707149860; c=relaxed/simple; bh=DNaO54IRI7/2oh1XNOcunI96AdtlbD9Mn82BtlCzBqA=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=erAjblJgnP1N0WI93taw9whtlalQNrYWuQEE5Xihnse/2FYiTYxAGs0KYo0DZxY0KgbNIF50zmtWTLbEnJNzHAO7HGiazfdoJ9EPakttgijcqxzBe/xDpRJ9wCgkjo6RTGQ4k7diwYTUCfdp1pPirfypcTlY6svtuPaSd82dBC4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com; spf=pass smtp.mailfrom=intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=J6XFbwqH; arc=none smtp.client-ip=198.175.65.9 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1707149859; x=1738685859; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=DNaO54IRI7/2oh1XNOcunI96AdtlbD9Mn82BtlCzBqA=; b=J6XFbwqHZ+pqApQHXjgDTu2sLYSjkDePIggbwkcWOaGVXjwiwxyXbVje DvAnnYkWqpQuYIrWgLZnkpbTio6S4v9RN50/UP1l9Cy1+hhf42pCtnUVK lg+kPhY/BuLyRcO+NQ5YMtwCu+YWT8TZQbySGAaSDaukvnl8osNAhDifz 8FE9VME9pX++rpT3SpizvtuYbPH5qZ8hrObv01dgkvkGHbb7x6gS7ESy+ xd0qYO6zeMt6yCEdZzCQuJ9Dd7joR/ZiFTiRN5AIanxKRxP+mLnTIqZu2 456dQj1qD/VxobOlMbIaNgEOtJHda9AaolI53fGhTC3q3fLUaDj/Hvsst Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10975"; a="23033460" X-IronPort-AV: E=Sophos;i="6.05,245,1701158400"; d="scan'208";a="23033460" Received: from fmviesa002.fm.intel.com ([10.60.135.142]) by orvoesa101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 05 Feb 2024 08:17:38 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.05,245,1701158400"; d="scan'208";a="24003295" Received: from lkp-server01.sh.intel.com (HELO 01f0647817ea) ([10.239.97.150]) by fmviesa002.fm.intel.com with ESMTP; 05 Feb 2024 08:17:33 -0800 Received: from kbuild by 01f0647817ea with local (Exim 4.96) (envelope-from ) id 1rX1f0-0000dm-3A; Mon, 05 Feb 2024 16:17:30 +0000 Date: Tue, 6 Feb 2024 00:17:01 +0800 From: kernel test robot To: "mac.shen" , chunkuang.hu@kernel.org, p.zabel@pengutronix.de, airlied@gmail.com, daniel@ffwll.ch, matthias.bgg@gmail.com, angelogioacchino.delregno@collabora.com, jitao.shi@mediatek.com Cc: oe-kbuild-all@lists.linux.dev, mac.shen@mediatek.com, shuijing.li@mediatek.com, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-mediatek@lists.infradead.org, linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH v2 1/3] Subject: [PATCH] drm/mediatek/dp: Add tee client application for HDCP feature Message-ID: <202402052342.Y5awT1T2-lkp@intel.com> References: <20240205055055.25340-2-mac.shen@mediatek.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: <20240205055055.25340-2-mac.shen@mediatek.com> Hi mac.shen, kernel test robot noticed the following build warnings: [auto build test WARNING on drm-misc/drm-misc-next] [also build test WARNING on pza/reset/next linus/master v6.8-rc3 next-20240205] [cannot apply to pza/imx-drm/next] [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/mac-shen/Subject-PATCH-drm-mediatek-dp-Add-tee-client-application-for-HDCP-feature/20240205-163727 base: git://anongit.freedesktop.org/drm/drm-misc drm-misc-next patch link: https://lore.kernel.org/r/20240205055055.25340-2-mac.shen%40mediatek.com patch subject: [PATCH v2 1/3] Subject: [PATCH] drm/mediatek/dp: Add tee client application for HDCP feature config: arm64-defconfig (https://download.01.org/0day-ci/archive/20240205/202402052342.Y5awT1T2-lkp@intel.com/config) compiler: aarch64-linux-gcc (GCC) 13.2.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240205/202402052342.Y5awT1T2-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/202402052342.Y5awT1T2-lkp@intel.com/ All warnings (new ones prefixed by >>): >> drivers/gpu/drm/mediatek/tlc_dp_hdcp.c:34: warning: Function parameter or struct member 'dp_tee_priv' not described in 'dp_tee_op_send' >> drivers/gpu/drm/mediatek/tlc_dp_hdcp.c:34: warning: Function parameter or struct member 'cmd_id' not described in 'dp_tee_op_send' vim +34 drivers/gpu/drm/mediatek/tlc_dp_hdcp.c 13 14 /* 15 * TA_FTPM_UUID: 99975014-3c7c-54ea-8487-a80d215ea92c 16 * 17 * Randomly generated, and must correspond to the GUID on the TA side. 18 * Defined here in the reference implementation: 19 * https://github.com/microsoft/ms-tpm-20-ref/blob/master/Samples/ARM32-FirmwareTPM/optee_ta/fTPM/include/fTPM.h#L42 20 */ 21 static const uuid_t dp_ta_uuid = 22 UUID_INIT(0x99975014, 0x3c7c, 0x54ea, 23 0x84, 0x87, 0xa8, 0x0d, 0x21, 0x5e, 0xa9, 0x2c); 24 25 /** 26 * dp_tee_op_send() - send dp commands through the TEE shared memory. 27 * @len: the number of bytes to send. 28 * 29 * Return: 30 * In case of success, returns 0. 31 * On failure, -errno 32 */ 33 static int dp_tee_op_send(struct dp_tee_private *dp_tee_priv, size_t len, u32 cmd_id) > 34 { 35 int rc; 36 u8 *temp_buf; 37 struct tee_ioctl_invoke_arg transceive_args; 38 struct tee_param command_params[4]; 39 struct tee_shm *shm = dp_tee_priv->shm; 40 41 if (len > MAX_COMMAND_SIZE) { 42 TLCERR("%s: len=%zd exceeds MAX_COMMAND_SIZE supported by dp TA\n", __func__, len); 43 return -EIO; 44 } 45 46 memset(&transceive_args, 0, sizeof(transceive_args)); 47 memset(command_params, 0, sizeof(command_params)); 48 dp_tee_priv->resp_len = 0; 49 50 /* Invoke FTPM_OPTEE_TA_SUBMIT_COMMAND function of dp TA */ 51 transceive_args = (struct tee_ioctl_invoke_arg) { 52 .func = cmd_id, 53 .session = dp_tee_priv->session, 54 .num_params = 4, 55 }; 56 57 /* Fill FTPM_OPTEE_TA_SUBMIT_COMMAND parameters */ 58 command_params[0] = (struct tee_param) { 59 .attr = TEE_IOCTL_PARAM_ATTR_TYPE_MEMREF_INPUT, 60 .u.memref = { 61 .shm = shm, 62 .size = len, 63 .shm_offs = 0, 64 }, 65 }; 66 67 command_params[1] = (struct tee_param) { 68 .attr = TEE_IOCTL_PARAM_ATTR_TYPE_MEMREF_INOUT, 69 .u.memref = { 70 .shm = shm, 71 .size = MAX_RESPONSE_SIZE, 72 .shm_offs = MAX_COMMAND_SIZE, 73 }, 74 }; 75 76 rc = tee_client_invoke_func(dp_tee_priv->ctx, &transceive_args, command_params); 77 if (rc < 0 || transceive_args.ret != 0) { 78 TLCERR("%s: invoke error: 0x%x\n", __func__, transceive_args.ret); 79 return (rc < 0) ? rc : transceive_args.ret; 80 } 81 82 temp_buf = tee_shm_get_va(shm, command_params[1].u.memref.shm_offs); 83 if (IS_ERR(temp_buf)) { 84 TLCERR("%s: tee_shm_get_va failed for receive\n", __func__); 85 return PTR_ERR(temp_buf); 86 } 87 88 /* Sanity checks look good, cache the response */ 89 memcpy(dp_tee_priv->resp_buf, temp_buf, MAX_RESPONSE_SIZE / 2); 90 dp_tee_priv->resp_len = MAX_RESPONSE_SIZE / 2; 91 92 return 0; 93 } 94 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki