From patchwork Wed Mar 3 13:42:27 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 392063 Delivered-To: patch@linaro.org Received: by 2002:a02:290e:0:0:0:0:0 with SMTP id p14csp5132701jap; Wed, 3 Mar 2021 05:43:40 -0800 (PST) X-Google-Smtp-Source: ABdhPJzdFIw1FPsqfdU8b/HeaFMGGaMNjFdkgx2lCRvzp/FSLC80lE3L57vARrY30YtWVE3nfRwc X-Received: by 2002:a17:90a:9b18:: with SMTP id f24mr9302965pjp.96.1614779020178; Wed, 03 Mar 2021 05:43:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614779020; cv=none; d=google.com; s=arc-20160816; b=rikvpihFFHUOaRI8pLoB55mw+VJqCGaMZM3nj6dZGA59lraAkYuZi1fk5ThBubpgsp miHvEZAGI1DvBbuMUX7iVVWVbHUTt5bf1qiIBQFAz9Y8Pd5aNS9/DhVieZhpVL5tj4sO g/BvBGfW+wB25HiBVaibzAWhwQgbvb6yM5A5937wvR5UDIp9SkVnGFJSEJWrG/J4TOYV xPLUdZqopHWmz+6IGMobeYPIL1jTJY0zpzHjo/A8i4CcxPK0ZXjcamKdD85/yuPCNanz MOQmgQw2YUBUYtgHGcDTUW0S4XEiR+0hF51FGoeYXzY+kanLD0ux8DpgwbbjKRAGn3HZ qsnQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:cc:list-subscribe :list-help:list-post:list-archive:list-unsubscribe:list-id :precedence:mime-version:references:in-reply-to:message-id:date :subject:to:from:dkim-signature:delivered-to; bh=bp0FyHR1Z8Mq/gaCRs+tw6R/CfyIezIe/9TPGWccy2E=; b=H1rjSuglbldpmFgFDncm5P3vtQCVNvHrmSEhwzfRqhpj7AYJtdOfVjG+/sdBr2tgBK rIFDJATJ4VB+wI66pLfRnDjF4PO6nzDWjuiNukezDSthNKKjlDG/sTRGamaWkVP2zWnj GtSGEhifxPFV/gRvxhj9wcVPis27fhhYpSlFsr74buYfjVck524CDDq+vPfV7ELmKJAL IDCSZ1lwCy5SODOfqSmZhO1YCcoP9rsRACwglLjB6x/78N3uyQXH+4S6+FRd5BntUL5d V7CkQePC/Oh4oP/ihR0uRYk7xurssKnsKWBrRTvMaDQZFlEKrzyn7n087HrMcHvwlWdH qzkQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=jNr7oHsO; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from gabe.freedesktop.org (gabe.freedesktop.org. [131.252.210.177]) by mx.google.com with ESMTPS id i14si24504845pfa.177.2021.03.03.05.43.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Mar 2021 05:43:40 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) client-ip=131.252.210.177; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=jNr7oHsO; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 279516E3FE; Wed, 3 Mar 2021 13:43:33 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wm1-x333.google.com (mail-wm1-x333.google.com [IPv6:2a00:1450:4864:20::333]) by gabe.freedesktop.org (Postfix) with ESMTPS id 989556E3FE for ; Wed, 3 Mar 2021 13:43:31 +0000 (UTC) Received: by mail-wm1-x333.google.com with SMTP id n22so5226751wmc.2 for ; Wed, 03 Mar 2021 05:43:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=VYzn1VsttDc5u7AelF9CkTnKusclemxo5lG9PEnIZr0=; b=jNr7oHsOT04g1yNHff0yGlC1v3fdmOxQwzE2KqGqNvNirPbvYeUj8OL2XnwVwL0i/W 0j2woMBhKCKz9wkx4NhLm+Cllk970UDAaCHbP/C/VUtpxkBNmcxh3ACLYB/N3sIpcjab //iOC+O/56x2527HqQIrSEz1Oif1sCMC88p3v+escuIw9+EtrUto7prawcARSz3bkQf6 ZrnMIR2Nlwc6KMmEQsGO56/huE2ALJCMkF1mfbjcqa/vDw28bgnAHT3OAuKgmTVlqWgD 7Ng9R578XN5Vin3nmgvZxPgL9KAABp0NvgCECwgeYh+gIdQmcMbRSUq245YUZmu+38JN g8zA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=VYzn1VsttDc5u7AelF9CkTnKusclemxo5lG9PEnIZr0=; b=YPyTot/Hf2G4nf7aEGEBw3AvRBmlosfFc3Ha4nnTq3GJ4IBTQETYV8cyCUmbdVQQl1 n0I8wFp3RZD92Xe4JiEkPFuvIxckHWIMX093Pwk1Hcy9wFj+N31IZrKyMYvz9BS3P8ga 9itzJNTO+iCUO7aCpTTb4cDIQUzkur9xEzZXRlnrqQzIG4ftw01ds2ej3LH1hhdv4yzP plFklNZrJGU/UMSIEPkY1SzgAZqFGqdo9Btn9izrh5JM4l0kyCfniYQbKKeHttSrkfUg XedyawTXRFdblX7iZM1WsuNtCpRcq1/xVvp/nUVjEtWo7rdt1vM+teAUtRhIZplq4Lqd 08nw== X-Gm-Message-State: AOAM531uVarsF6D+5yeywEv8byUVOAVBw5MMsfmwxkn9R7RP5xMV4K8m DB1NVRluPzrhIgOXfZ9xVntAgQ== X-Received: by 2002:a7b:c0c4:: with SMTP id s4mr9367454wmh.9.1614779010136; Wed, 03 Mar 2021 05:43:30 -0800 (PST) Received: from dell.default ([91.110.221.155]) by smtp.gmail.com with ESMTPSA id w18sm6109524wrr.7.2021.03.03.05.43.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Mar 2021 05:43:29 -0800 (PST) From: Lee Jones To: lee.jones@linaro.org Subject: [PATCH 01/53] drm/nouveau/nvkm/subdev/bios/init: Demote obvious abuse of kernel-doc Date: Wed, 3 Mar 2021 13:42:27 +0000 Message-Id: <20210303134319.3160762-2-lee.jones@linaro.org> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20210303134319.3160762-1-lee.jones@linaro.org> References: <20210303134319.3160762-1-lee.jones@linaro.org> MIME-Version: 1.0 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: David Airlie , nouveau@lists.freedesktop.org, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, Ben Skeggs Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" Fixes the following W=1 kernel build warning(s): drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c:584: warning: Function parameter or member 'init' not described in 'init_reserved' drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c:611: warning: Function parameter or member 'init' not described in 'init_done' drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c:622: warning: Function parameter or member 'init' not described in 'init_io_restrict_prog' drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c:659: warning: Function parameter or member 'init' not described in 'init_repeat' drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c:685: warning: Function parameter or member 'init' not described in 'init_io_restrict_pll' drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c:725: warning: Function parameter or member 'init' not described in 'init_end_repeat' NB: Trimmed for brevity (lots of these!) Cc: Ben Skeggs Cc: David Airlie Cc: Daniel Vetter Cc: dri-devel@lists.freedesktop.org Cc: nouveau@lists.freedesktop.org Signed-off-by: Lee Jones --- .../gpu/drm/nouveau/nvkm/subdev/bios/init.c | 204 ++++++------------ 1 file changed, 68 insertions(+), 136 deletions(-) -- 2.27.0 _______________________________________________ dri-devel mailing list dri-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/dri-devel diff --git a/drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c b/drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c index 9de74f41dcd2a..5a91dc4e5c8ec 100644 --- a/drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c +++ b/drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c @@ -575,9 +575,8 @@ init_tmds_reg(struct nvbios_init *init, u8 tmds) * init opcode handlers *****************************************************************************/ -/** +/* * init_reserved - stub for various unknown/unused single-byte opcodes - * */ static void init_reserved(struct nvbios_init *init) @@ -602,9 +601,8 @@ init_reserved(struct nvbios_init *init) init->offset += length; } -/** +/* * INIT_DONE - opcode 0x71 - * */ static void init_done(struct nvbios_init *init) @@ -613,9 +611,8 @@ init_done(struct nvbios_init *init) init->offset = 0x0000; } -/** +/* * INIT_IO_RESTRICT_PROG - opcode 0x32 - * */ static void init_io_restrict_prog(struct nvbios_init *init) @@ -650,9 +647,8 @@ init_io_restrict_prog(struct nvbios_init *init) trace("}]\n"); } -/** +/* * INIT_REPEAT - opcode 0x33 - * */ static void init_repeat(struct nvbios_init *init) @@ -676,9 +672,8 @@ init_repeat(struct nvbios_init *init) init->repeat = repeat; } -/** +/* * INIT_IO_RESTRICT_PLL - opcode 0x34 - * */ static void init_io_restrict_pll(struct nvbios_init *init) @@ -716,9 +711,8 @@ init_io_restrict_pll(struct nvbios_init *init) trace("}]\n"); } -/** +/* * INIT_END_REPEAT - opcode 0x36 - * */ static void init_end_repeat(struct nvbios_init *init) @@ -732,9 +726,8 @@ init_end_repeat(struct nvbios_init *init) } } -/** +/* * INIT_COPY - opcode 0x37 - * */ static void init_copy(struct nvbios_init *init) @@ -759,9 +752,8 @@ init_copy(struct nvbios_init *init) init_wrvgai(init, port, index, data); } -/** +/* * INIT_NOT - opcode 0x38 - * */ static void init_not(struct nvbios_init *init) @@ -771,9 +763,8 @@ init_not(struct nvbios_init *init) init_exec_inv(init); } -/** +/* * INIT_IO_FLAG_CONDITION - opcode 0x39 - * */ static void init_io_flag_condition(struct nvbios_init *init) @@ -788,9 +779,8 @@ init_io_flag_condition(struct nvbios_init *init) init_exec_set(init, false); } -/** +/* * INIT_GENERIC_CONDITION - opcode 0x3a - * */ static void init_generic_condition(struct nvbios_init *init) @@ -840,9 +830,8 @@ init_generic_condition(struct nvbios_init *init) } } -/** +/* * INIT_IO_MASK_OR - opcode 0x3b - * */ static void init_io_mask_or(struct nvbios_init *init) @@ -859,9 +848,8 @@ init_io_mask_or(struct nvbios_init *init) init_wrvgai(init, 0x03d4, index, data &= ~(1 << or)); } -/** +/* * INIT_IO_OR - opcode 0x3c - * */ static void init_io_or(struct nvbios_init *init) @@ -878,9 +866,8 @@ init_io_or(struct nvbios_init *init) init_wrvgai(init, 0x03d4, index, data | (1 << or)); } -/** +/* * INIT_ANDN_REG - opcode 0x47 - * */ static void init_andn_reg(struct nvbios_init *init) @@ -895,9 +882,8 @@ init_andn_reg(struct nvbios_init *init) init_mask(init, reg, mask, 0); } -/** +/* * INIT_OR_REG - opcode 0x48 - * */ static void init_or_reg(struct nvbios_init *init) @@ -912,9 +898,8 @@ init_or_reg(struct nvbios_init *init) init_mask(init, reg, 0, mask); } -/** +/* * INIT_INDEX_ADDRESS_LATCHED - opcode 0x49 - * */ static void init_idx_addr_latched(struct nvbios_init *init) @@ -942,9 +927,8 @@ init_idx_addr_latched(struct nvbios_init *init) } } -/** +/* * INIT_IO_RESTRICT_PLL2 - opcode 0x4a - * */ static void init_io_restrict_pll2(struct nvbios_init *init) @@ -977,9 +961,8 @@ init_io_restrict_pll2(struct nvbios_init *init) trace("}]\n"); } -/** +/* * INIT_PLL2 - opcode 0x4b - * */ static void init_pll2(struct nvbios_init *init) @@ -994,9 +977,8 @@ init_pll2(struct nvbios_init *init) init_prog_pll(init, reg, freq); } -/** +/* * INIT_I2C_BYTE - opcode 0x4c - * */ static void init_i2c_byte(struct nvbios_init *init) @@ -1025,9 +1007,8 @@ init_i2c_byte(struct nvbios_init *init) } } -/** +/* * INIT_ZM_I2C_BYTE - opcode 0x4d - * */ static void init_zm_i2c_byte(struct nvbios_init *init) @@ -1051,9 +1032,8 @@ init_zm_i2c_byte(struct nvbios_init *init) } } -/** +/* * INIT_ZM_I2C - opcode 0x4e - * */ static void init_zm_i2c(struct nvbios_init *init) @@ -1085,9 +1065,8 @@ init_zm_i2c(struct nvbios_init *init) } } -/** +/* * INIT_TMDS - opcode 0x4f - * */ static void init_tmds(struct nvbios_init *init) @@ -1111,9 +1090,8 @@ init_tmds(struct nvbios_init *init) init_wr32(init, reg + 0, addr); } -/** +/* * INIT_ZM_TMDS_GROUP - opcode 0x50 - * */ static void init_zm_tmds_group(struct nvbios_init *init) @@ -1138,9 +1116,8 @@ init_zm_tmds_group(struct nvbios_init *init) } } -/** +/* * INIT_CR_INDEX_ADDRESS_LATCHED - opcode 0x51 - * */ static void init_cr_idx_adr_latch(struct nvbios_init *init) @@ -1168,9 +1145,8 @@ init_cr_idx_adr_latch(struct nvbios_init *init) init_wrvgai(init, 0x03d4, addr0, save0); } -/** +/* * INIT_CR - opcode 0x52 - * */ static void init_cr(struct nvbios_init *init) @@ -1188,9 +1164,8 @@ init_cr(struct nvbios_init *init) init_wrvgai(init, 0x03d4, addr, val | data); } -/** +/* * INIT_ZM_CR - opcode 0x53 - * */ static void init_zm_cr(struct nvbios_init *init) @@ -1205,9 +1180,8 @@ init_zm_cr(struct nvbios_init *init) init_wrvgai(init, 0x03d4, addr, data); } -/** +/* * INIT_ZM_CR_GROUP - opcode 0x54 - * */ static void init_zm_cr_group(struct nvbios_init *init) @@ -1229,9 +1203,8 @@ init_zm_cr_group(struct nvbios_init *init) } } -/** +/* * INIT_CONDITION_TIME - opcode 0x56 - * */ static void init_condition_time(struct nvbios_init *init) @@ -1256,9 +1229,8 @@ init_condition_time(struct nvbios_init *init) init_exec_set(init, false); } -/** +/* * INIT_LTIME - opcode 0x57 - * */ static void init_ltime(struct nvbios_init *init) @@ -1273,9 +1245,8 @@ init_ltime(struct nvbios_init *init) mdelay(msec); } -/** +/* * INIT_ZM_REG_SEQUENCE - opcode 0x58 - * */ static void init_zm_reg_sequence(struct nvbios_init *init) @@ -1298,9 +1269,8 @@ init_zm_reg_sequence(struct nvbios_init *init) } } -/** +/* * INIT_PLL_INDIRECT - opcode 0x59 - * */ static void init_pll_indirect(struct nvbios_init *init) @@ -1317,9 +1287,8 @@ init_pll_indirect(struct nvbios_init *init) init_prog_pll(init, reg, freq); } -/** +/* * INIT_ZM_REG_INDIRECT - opcode 0x5a - * */ static void init_zm_reg_indirect(struct nvbios_init *init) @@ -1336,9 +1305,8 @@ init_zm_reg_indirect(struct nvbios_init *init) init_wr32(init, addr, data); } -/** +/* * INIT_SUB_DIRECT - opcode 0x5b - * */ static void init_sub_direct(struct nvbios_init *init) @@ -1362,9 +1330,8 @@ init_sub_direct(struct nvbios_init *init) init->offset += 3; } -/** +/* * INIT_JUMP - opcode 0x5c - * */ static void init_jump(struct nvbios_init *init) @@ -1380,9 +1347,8 @@ init_jump(struct nvbios_init *init) init->offset += 3; } -/** +/* * INIT_I2C_IF - opcode 0x5e - * */ static void init_i2c_if(struct nvbios_init *init) @@ -1407,9 +1373,8 @@ init_i2c_if(struct nvbios_init *init) init_exec_force(init, false); } -/** +/* * INIT_COPY_NV_REG - opcode 0x5f - * */ static void init_copy_nv_reg(struct nvbios_init *init) @@ -1433,9 +1398,8 @@ init_copy_nv_reg(struct nvbios_init *init) init_mask(init, dreg, ~dmask, (data & smask) ^ sxor); } -/** +/* * INIT_ZM_INDEX_IO - opcode 0x62 - * */ static void init_zm_index_io(struct nvbios_init *init) @@ -1451,9 +1415,8 @@ init_zm_index_io(struct nvbios_init *init) init_wrvgai(init, port, index, data); } -/** +/* * INIT_COMPUTE_MEM - opcode 0x63 - * */ static void init_compute_mem(struct nvbios_init *init) @@ -1469,9 +1432,8 @@ init_compute_mem(struct nvbios_init *init) init_exec_force(init, false); } -/** +/* * INIT_RESET - opcode 0x65 - * */ static void init_reset(struct nvbios_init *init) @@ -1496,9 +1458,8 @@ init_reset(struct nvbios_init *init) init_exec_force(init, false); } -/** +/* * INIT_CONFIGURE_MEM - opcode 0x66 - * */ static u16 init_configure_mem_clk(struct nvbios_init *init) @@ -1555,9 +1516,8 @@ init_configure_mem(struct nvbios_init *init) init_exec_force(init, false); } -/** +/* * INIT_CONFIGURE_CLK - opcode 0x67 - * */ static void init_configure_clk(struct nvbios_init *init) @@ -1589,9 +1549,8 @@ init_configure_clk(struct nvbios_init *init) init_exec_force(init, false); } -/** +/* * INIT_CONFIGURE_PREINIT - opcode 0x68 - * */ static void init_configure_preinit(struct nvbios_init *init) @@ -1615,9 +1574,8 @@ init_configure_preinit(struct nvbios_init *init) init_exec_force(init, false); } -/** +/* * INIT_IO - opcode 0x69 - * */ static void init_io(struct nvbios_init *init) @@ -1655,9 +1613,8 @@ init_io(struct nvbios_init *init) init_wrport(init, port, data | value); } -/** +/* * INIT_SUB - opcode 0x6b - * */ static void init_sub(struct nvbios_init *init) @@ -1682,9 +1639,8 @@ init_sub(struct nvbios_init *init) init->offset += 2; } -/** +/* * INIT_RAM_CONDITION - opcode 0x6d - * */ static void init_ram_condition(struct nvbios_init *init) @@ -1701,9 +1657,8 @@ init_ram_condition(struct nvbios_init *init) init_exec_set(init, false); } -/** +/* * INIT_NV_REG - opcode 0x6e - * */ static void init_nv_reg(struct nvbios_init *init) @@ -1719,9 +1674,8 @@ init_nv_reg(struct nvbios_init *init) init_mask(init, reg, ~mask, data); } -/** +/* * INIT_MACRO - opcode 0x6f - * */ static void init_macro(struct nvbios_init *init) @@ -1743,9 +1697,8 @@ init_macro(struct nvbios_init *init) init->offset += 2; } -/** +/* * INIT_RESUME - opcode 0x72 - * */ static void init_resume(struct nvbios_init *init) @@ -1755,9 +1708,8 @@ init_resume(struct nvbios_init *init) init_exec_set(init, true); } -/** +/* * INIT_STRAP_CONDITION - opcode 0x73 - * */ static void init_strap_condition(struct nvbios_init *init) @@ -1773,9 +1725,8 @@ init_strap_condition(struct nvbios_init *init) init_exec_set(init, false); } -/** +/* * INIT_TIME - opcode 0x74 - * */ static void init_time(struct nvbios_init *init) @@ -1794,9 +1745,8 @@ init_time(struct nvbios_init *init) } } -/** +/* * INIT_CONDITION - opcode 0x75 - * */ static void init_condition(struct nvbios_init *init) @@ -1811,9 +1761,8 @@ init_condition(struct nvbios_init *init) init_exec_set(init, false); } -/** +/* * INIT_IO_CONDITION - opcode 0x76 - * */ static void init_io_condition(struct nvbios_init *init) @@ -1828,9 +1777,8 @@ init_io_condition(struct nvbios_init *init) init_exec_set(init, false); } -/** +/* * INIT_ZM_REG16 - opcode 0x77 - * */ static void init_zm_reg16(struct nvbios_init *init) @@ -1845,9 +1793,8 @@ init_zm_reg16(struct nvbios_init *init) init_wr32(init, addr, data); } -/** +/* * INIT_INDEX_IO - opcode 0x78 - * */ static void init_index_io(struct nvbios_init *init) @@ -1867,9 +1814,8 @@ init_index_io(struct nvbios_init *init) init_wrvgai(init, port, index, data | value); } -/** +/* * INIT_PLL - opcode 0x79 - * */ static void init_pll(struct nvbios_init *init) @@ -1884,9 +1830,8 @@ init_pll(struct nvbios_init *init) init_prog_pll(init, reg, freq); } -/** +/* * INIT_ZM_REG - opcode 0x7a - * */ static void init_zm_reg(struct nvbios_init *init) @@ -1904,9 +1849,8 @@ init_zm_reg(struct nvbios_init *init) init_wr32(init, addr, data); } -/** +/* * INIT_RAM_RESTRICT_PLL - opcde 0x87 - * */ static void init_ram_restrict_pll(struct nvbios_init *init) @@ -1934,9 +1878,8 @@ init_ram_restrict_pll(struct nvbios_init *init) } } -/** +/* * INIT_RESET_BEGUN - opcode 0x8c - * */ static void init_reset_begun(struct nvbios_init *init) @@ -1945,9 +1888,8 @@ init_reset_begun(struct nvbios_init *init) init->offset += 1; } -/** +/* * INIT_RESET_END - opcode 0x8d - * */ static void init_reset_end(struct nvbios_init *init) @@ -1956,9 +1898,8 @@ init_reset_end(struct nvbios_init *init) init->offset += 1; } -/** +/* * INIT_GPIO - opcode 0x8e - * */ static void init_gpio(struct nvbios_init *init) @@ -1972,9 +1913,8 @@ init_gpio(struct nvbios_init *init) nvkm_gpio_reset(gpio, DCB_GPIO_UNUSED); } -/** +/* * INIT_RAM_RESTRICT_ZM_GROUP - opcode 0x8f - * */ static void init_ram_restrict_zm_reg_group(struct nvbios_init *init) @@ -2010,9 +1950,8 @@ init_ram_restrict_zm_reg_group(struct nvbios_init *init) } } -/** +/* * INIT_COPY_ZM_REG - opcode 0x90 - * */ static void init_copy_zm_reg(struct nvbios_init *init) @@ -2027,9 +1966,8 @@ init_copy_zm_reg(struct nvbios_init *init) init_wr32(init, dreg, init_rd32(init, sreg)); } -/** +/* * INIT_ZM_REG_GROUP - opcode 0x91 - * */ static void init_zm_reg_group(struct nvbios_init *init) @@ -2049,9 +1987,8 @@ init_zm_reg_group(struct nvbios_init *init) } } -/** +/* * INIT_XLAT - opcode 0x96 - * */ static void init_xlat(struct nvbios_init *init) @@ -2077,9 +2014,8 @@ init_xlat(struct nvbios_init *init) init_mask(init, daddr, ~dmask, data); } -/** +/* * INIT_ZM_MASK_ADD - opcode 0x97 - * */ static void init_zm_mask_add(struct nvbios_init *init) @@ -2098,9 +2034,8 @@ init_zm_mask_add(struct nvbios_init *init) init_wr32(init, addr, data); } -/** +/* * INIT_AUXCH - opcode 0x98 - * */ static void init_auxch(struct nvbios_init *init) @@ -2122,9 +2057,8 @@ init_auxch(struct nvbios_init *init) } } -/** +/* * INIT_AUXCH - opcode 0x99 - * */ static void init_zm_auxch(struct nvbios_init *init) @@ -2144,9 +2078,8 @@ init_zm_auxch(struct nvbios_init *init) } } -/** +/* * INIT_I2C_LONG_IF - opcode 0x9a - * */ static void init_i2c_long_if(struct nvbios_init *init) @@ -2183,9 +2116,8 @@ init_i2c_long_if(struct nvbios_init *init) init_exec_set(init, false); } -/** +/* * INIT_GPIO_NE - opcode 0xa9 - * */ static void init_gpio_ne(struct nvbios_init *init) From patchwork Wed Mar 3 13:42:28 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 392064 Delivered-To: patch@linaro.org Received: by 2002:a02:290e:0:0:0:0:0 with SMTP id p14csp5132738jap; Wed, 3 Mar 2021 05:43:43 -0800 (PST) X-Google-Smtp-Source: ABdhPJyY+PS6ymHRTDXbFQq/C5/Ykt+yJBk6Mehtqd1cG6gYFR9/TPC+R9UeRbsPbvJ+6wdLRsRC X-Received: by 2002:a63:cb4c:: with SMTP id m12mr22953101pgi.51.1614779023482; Wed, 03 Mar 2021 05:43:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614779023; cv=none; d=google.com; s=arc-20160816; b=otQlOiqleFgOROswsW2JOzlEYQn+4lhrl1gxWtR4xj8OEDJ+Cu6Xm4WNRxv0R6SqD0 p0DLawt0BEGG2SaQuRJ204q+5s8WgHjNKJ3Ekj/fMy/72nn0RXX0QzbwLIv8AUzjACyq 1n+iEg1phbJOTSeM1hnOidJAbrdmJYR5baaheIeOEcFYUyly6Gcqc4anFzZ5aJ++/boS W32vUc2QfUrJpXaRvGws+9ltA8Bcb9/Nhd/BlUtelaHsW3YILco3bVZrY64KXxTJR/M2 3i0SoAQa80JrtSY1xv5VyWoMcwosPIeY8jdq3YttQlmjxCCXhWbZGkuFob3TQS0oaih3 kusw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:cc:list-subscribe :list-help:list-post:list-archive:list-unsubscribe:list-id :precedence:mime-version:references:in-reply-to:message-id:date :subject:to:from:dkim-signature:delivered-to; bh=AnTDIhagjLIFk4/IU9hD9d5oUyI4Yz+0dOQByZIcO1w=; b=j04d+V2wk6UhCbnWhXhjxvUydy5VmDqlZY4T3f0owYdmvRyjJ2100iaHkCqWKSnTZI F4nvmwrup/KunthDe5WzlBUuaOw6CiQxC87i5/n27JaZ+p/EJX/dgsIpIj1UeA+H00B7 LJOCgUilcXcLp4mlQrYVacfsTGTyz++vWL26iNG1eR+SC9a+KCCZuoenRvWYmKWjehO7 v0L+CnYz75X0OKwMzIoul5V908mAa8QfGJXNvurseK7Xb+cZtC9FIR+Pd7Dnh4vHcCXU B2azdDkWq6r+34X7Q7dXRJLCPj83/8lgV/1bVUbY4SfOTCl2DOSKcXA2jzclmj6I+1Jf ATFQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=sRgB8t25; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 2610:10:20:722:a800:ff:fe36:1795 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from gabe.freedesktop.org (gabe.freedesktop.org. [2610:10:20:722:a800:ff:fe36:1795]) by mx.google.com with ESMTPS id e7si23301936pgk.527.2021.03.03.05.43.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Mar 2021 05:43:43 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 2610:10:20:722:a800:ff:fe36:1795 as permitted sender) client-ip=2610:10:20:722:a800:ff:fe36:1795; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=sRgB8t25; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 2610:10:20:722:a800:ff:fe36:1795 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id EAE226E8F4; Wed, 3 Mar 2021 13:43:34 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wm1-x332.google.com (mail-wm1-x332.google.com [IPv6:2a00:1450:4864:20::332]) by gabe.freedesktop.org (Postfix) with ESMTPS id 41E5989E69 for ; Wed, 3 Mar 2021 13:43:32 +0000 (UTC) Received: by mail-wm1-x332.google.com with SMTP id e23so5213846wmh.3 for ; Wed, 03 Mar 2021 05:43:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=RtDwwCGh7BV2jdAMFgyU0jxW3SadS1NJKEYSwbpKHII=; b=sRgB8t25PZ10NkKal1+Peihtxu3GBrpIEwtbkDw27UzpVFQ3vx8N1Mf2WTQ7ghbjVQ Xl76lwrOvw1fNHzen5mLV36KjI+ddlwXHlxOFhD0iqCJg9U/mdhCaSpzgc5ppVg7T+kA tAcDT+por1yZTddeRmmq1oEn72Qig/It4dAOaIhLvuW4PJFhrOa8jzeYlneKPloH7vKQ 8EMprRzfE6UxTKOqziJbd+JBDsTyYgkr0ZdR7nvsGLCtsQTIBRql7VF76lFxSiwe6A0y Gociy9qIFajV/I1guI1glaRMFdlcm1bOgG2ONLUZ9H8DB4KHNtljK5w8/L5xkCFNKA2U hChQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=RtDwwCGh7BV2jdAMFgyU0jxW3SadS1NJKEYSwbpKHII=; b=KEySSUr7W0BR+REfo/NjpcdoBDmwqLXaVCXqjkGn/+XsM36T7TBnMAuz0jVv+0sa87 ecsuzahT4kfJrNmRoiCuAczbkf5rtZMtrVa3AFjzEcjYapact8x/kBaP6MJHhJ7+1htM Maq0izSzsiAfJWVhDvUm2/+uxYfNmkQCqIFge8JO92j+7Py8bj8b6ObWWsTKZKfuvbMl AbRIzvlPH6dhXK3pB1StbRbsObVA+6/V9/ZFXTsdLIfljZRsXmJgIdN6G7pU9LlKKlKM 24ljgpLcaWtAv1a1WA8/RkUqaJ0p4jfgkOoId1X7kKIVJaC0rf2HH4dPtb5zPBLP+1mk EnJQ== X-Gm-Message-State: AOAM530dIjzewY3ZidFDms5f7GhDA3YktIRIulYwfUavriz0izDpNnZU VNb1efgwUpiD/5xOHwKqWSx/8w== X-Received: by 2002:a1c:400b:: with SMTP id n11mr9078519wma.167.1614779011028; Wed, 03 Mar 2021 05:43:31 -0800 (PST) Received: from dell.default ([91.110.221.155]) by smtp.gmail.com with ESMTPSA id w18sm6109524wrr.7.2021.03.03.05.43.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Mar 2021 05:43:30 -0800 (PST) From: Lee Jones To: lee.jones@linaro.org Subject: [PATCH 02/53] drm/nouveau/dispnv50/disp: Remove unused variable 'ret' Date: Wed, 3 Mar 2021 13:42:28 +0000 Message-Id: <20210303134319.3160762-3-lee.jones@linaro.org> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20210303134319.3160762-1-lee.jones@linaro.org> References: <20210303134319.3160762-1-lee.jones@linaro.org> MIME-Version: 1.0 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: David Airlie , nouveau@lists.freedesktop.org, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, Ben Skeggs Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" Fixes the following W=1 kernel build warning(s): drivers/gpu/drm/nouveau/dispnv50/disp.c:1381:6: warning: variable ‘ret’ set but not used [-Wunused-but-set-variable] Cc: Ben Skeggs Cc: David Airlie Cc: Daniel Vetter Cc: dri-devel@lists.freedesktop.org Cc: nouveau@lists.freedesktop.org Signed-off-by: Lee Jones --- drivers/gpu/drm/nouveau/dispnv50/disp.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/gpu/drm/nouveau/dispnv50/disp.c b/drivers/gpu/drm/nouveau/dispnv50/disp.c index 196612addfd61..c51efca82ac78 100644 --- a/drivers/gpu/drm/nouveau/dispnv50/disp.c +++ b/drivers/gpu/drm/nouveau/dispnv50/disp.c @@ -1410,10 +1410,9 @@ nv50_mstm_prepare(struct nv50_mstm *mstm) { struct nouveau_drm *drm = nouveau_drm(mstm->outp->base.base.dev); struct drm_encoder *encoder; - int ret; NV_ATOMIC(drm, "%s: mstm prepare\n", mstm->outp->base.base.name); - ret = drm_dp_update_payload_part1(&mstm->mgr); + drm_dp_update_payload_part1(&mstm->mgr); drm_for_each_encoder(encoder, mstm->outp->base.base.dev) { if (encoder->encoder_type == DRM_MODE_ENCODER_DPMST) { From patchwork Wed Mar 3 13:42:29 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 392067 Delivered-To: patch@linaro.org Received: by 2002:a02:290e:0:0:0:0:0 with SMTP id p14csp5132831jap; Wed, 3 Mar 2021 05:43:51 -0800 (PST) X-Google-Smtp-Source: ABdhPJzIBgzfpiWzlDfKG3qlFo+bIAmIaujcdliOZx1wanIY6sRxOXVGeoQsymnuQaqEDsQXwZTg X-Received: by 2002:a63:cf05:: with SMTP id j5mr23772440pgg.384.1614779031630; Wed, 03 Mar 2021 05:43:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614779031; cv=none; d=google.com; s=arc-20160816; b=HSUcdFPM9IicINSbrVhMQDbBxPluqFzNb8Z1twPuZyUIgSQGKwOkIwxlCHuIKTaSvE qoaSqZH5awD55jEjm1TLf4ShotDBus7A8vr135rOpNaQolJqT9fGHAt5BiAg8eIfwWdx J8lZmhlUQvjiSPnTXOd2GDJdvUzZDYKxvB2ROWmDspqo9HKJHPnGf3/fivImmea4a+KO 1KOERtCFgBAdVFZ8MOJludw2/9TiMWlGMT/5HlFBv3Xg1FO8gHpIr8a83Zu8x4EKmGr0 WhYSCJgw9WeKF87UReLKzKa9gL+f4OUlBWZ+ViWP7Bt52896pUUErDy1bKd3+oLA2I7z loUA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:cc:list-subscribe :list-help:list-post:list-archive:list-unsubscribe:list-id :precedence:mime-version:references:in-reply-to:message-id:date :subject:to:from:dkim-signature:delivered-to; bh=W+/oroL3XD2YlYqTDQFkYDYCwajo9Zsx8Hh1KP2sDlo=; b=SDa/DydGTT2ylAmIY/Mjfo6OhiEqcJIajyNu7CXPfkY7dvrsND1seZQi1bQOwuFZbV j767nUWq8IztbQSZSvY0kmLY4/xZbnDkDcdXF6fDJX0e0mq4BZ6Igfv5pPVICyHmaH7o DsKaUp7E4uO8kcrhQ6ezEYxvtXRY20PvQ/zvRiBcS04LCD4cBb4ezIRsC0G+2Wmps7kA ZcfOYk47RebEUEcPK0da+007SXs5grPyJxda1oZjVBvdWy5e9dUCTVRVJw8YUDCWpkfE 7qKRLJ2Cz1QFSyrYLXIFvzk5/xHqDrLliUD3l8cZYhYSaDkItha4q0WaCpsx3WEQsMY+ 5QsA== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=dhSUUgmE; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 2610:10:20:722:a800:ff:fe36:1795 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from gabe.freedesktop.org (gabe.freedesktop.org. [2610:10:20:722:a800:ff:fe36:1795]) by mx.google.com with ESMTPS id 9si11384003pgr.371.2021.03.03.05.43.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Mar 2021 05:43:51 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 2610:10:20:722:a800:ff:fe36:1795 as permitted sender) client-ip=2610:10:20:722:a800:ff:fe36:1795; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=dhSUUgmE; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 2610:10:20:722:a800:ff:fe36:1795 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id B965A6E8DE; Wed, 3 Mar 2021 13:43:38 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wm1-x329.google.com (mail-wm1-x329.google.com [IPv6:2a00:1450:4864:20::329]) by gabe.freedesktop.org (Postfix) with ESMTPS id BF0976E8D8 for ; Wed, 3 Mar 2021 13:43:33 +0000 (UTC) Received: by mail-wm1-x329.google.com with SMTP id u125so6378466wmg.4 for ; Wed, 03 Mar 2021 05:43:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=/33rrW6tAmVtxRYoiv0PK1lc5LAomei+z6FwtqsCisM=; b=dhSUUgmE7ZX33ei022sF4B/eNLt7eRn6jyC6OPLLge7KLxxCOeCa28VOHm8A2NqkOz rC5HtpmrZfFZTpr1oxG4X536z+qSdFWpmImIvI0zypVu71zTpz2EWNslYDCj5a+ibt09 TKB3YH++0UGqcXv4EqTw863+Sup2Nio3mTY788B7rDNCTnhq8t7oYkaqgvC9Oi9Ns5U8 PEDhLB0l5/UlEsh2yZkvIGxEOwr2hdNd1JAEm3lzqNhrZ/F78oTmE/S2AGHFnm+F3W41 wAL/9MqBdbhvvMpKruwntRhuemSAEs9b4568GTwFsUW57U544g+jjXC8m4uaD4PGB/sh niIg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=/33rrW6tAmVtxRYoiv0PK1lc5LAomei+z6FwtqsCisM=; b=DTzDDwPkbngJco5grgcjR0cIZ+irkRybDy3qi1v5LDDbf82SvPNgUBSgIvWnck0rm/ 2Ncazp0ejlTL7N3QEexyesHZvJZdCn1qFDHWyQj2tNb2ojTo2UgyoGlmExbLukoUzACg vA5E99rikVrEWYGCw5VlyLgumBhLHv2vNmbI9wLJqLfMi9R7Bx3xlGvhaIGiFMDpEyry BxRGT8Ukyc7wYMGlwL4FXEiuylIHcC2v91/jrame2ia7ii5RGLxwcs1h5QOdlySe1HQV 3uuyB+Mp2AGLb4eQAzah1EqesnaenohTo/En6H3ZDPHMqXmqrBmF8BCaNonfaGq9SOzs y1dg== X-Gm-Message-State: AOAM532SYWAFJ0W876rjZ7Zt4j66EP3MtuUvVPauYnJdC9oBEkIoyn4A nDwMsGuH3yO/JGDhlptXHtZ1/g== X-Received: by 2002:a1c:f30a:: with SMTP id q10mr9539427wmq.159.1614779012467; Wed, 03 Mar 2021 05:43:32 -0800 (PST) Received: from dell.default ([91.110.221.155]) by smtp.gmail.com with ESMTPSA id w18sm6109524wrr.7.2021.03.03.05.43.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Mar 2021 05:43:31 -0800 (PST) From: Lee Jones To: lee.jones@linaro.org Subject: [PATCH 03/53] drm/msm/dp/dp_display: Remove unused variable 'hpd' Date: Wed, 3 Mar 2021 13:42:29 +0000 Message-Id: <20210303134319.3160762-4-lee.jones@linaro.org> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20210303134319.3160762-1-lee.jones@linaro.org> References: <20210303134319.3160762-1-lee.jones@linaro.org> MIME-Version: 1.0 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: freedreno@lists.freedesktop.org, David Airlie , linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, Kuogee Hsieh , Sean Paul Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" Fixes the following W=1 kernel build warning(s): drivers/gpu/drm/msm/dp/dp_display.c: In function ‘dp_display_usbpd_attention_cb’: drivers/gpu/drm/msm/dp/dp_display.c:496:19: warning: variable ‘hpd’ set but not used [-Wunused-but-set-variable] Cc: Rob Clark Cc: Sean Paul Cc: David Airlie Cc: Daniel Vetter Cc: Kuogee Hsieh Cc: linux-arm-msm@vger.kernel.org Cc: dri-devel@lists.freedesktop.org Cc: freedreno@lists.freedesktop.org Signed-off-by: Lee Jones --- drivers/gpu/drm/msm/dp/dp_display.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/gpu/drm/msm/dp/dp_display.c b/drivers/gpu/drm/msm/dp/dp_display.c index 5a39da6e1eaf2..31bf2a40a9eb2 100644 --- a/drivers/gpu/drm/msm/dp/dp_display.c +++ b/drivers/gpu/drm/msm/dp/dp_display.c @@ -493,7 +493,6 @@ static int dp_display_usbpd_attention_cb(struct device *dev) int rc = 0; u32 sink_request; struct dp_display_private *dp; - struct dp_usbpd *hpd; if (!dev) { DRM_ERROR("invalid dev\n"); @@ -507,8 +506,6 @@ static int dp_display_usbpd_attention_cb(struct device *dev) return -ENODEV; } - hpd = dp->usbpd; - /* check for any test request issued by sink */ rc = dp_link_process_request(dp->link); if (!rc) { From patchwork Wed Mar 3 13:42:30 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 392065 Delivered-To: patch@linaro.org Received: by 2002:a02:290e:0:0:0:0:0 with SMTP id p14csp5132773jap; Wed, 3 Mar 2021 05:43:46 -0800 (PST) X-Google-Smtp-Source: ABdhPJwoJ0oYUsP18EHrv4zFK1P6dSckmHahXpAd4PpkpUcfdSVn3UUAx3IEZIjbbsZv9qlKcJER X-Received: by 2002:a17:90a:d903:: with SMTP id c3mr9603107pjv.27.1614779026240; Wed, 03 Mar 2021 05:43:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614779026; cv=none; d=google.com; s=arc-20160816; b=I7sktnUhGuZ7KW/+65t4X/jDzG5hRT08HgPmn/a303kogacB1c2VVeka9doj2bNyz3 fZdTbgHUvMo5AHI2l+mQW+EdprJyS/hju/6YmtmKd8cD5WhD0pmlDV5gS2cDMBQ2GrWg uPE0Ao0/NdS306SpuEsGeUttgfcOLymYjZiYERnvT16jnsq8n0Da6NAe6bte7Yb9orUr 6tgR9LB++opU/ZWv1YfxX8JpcX83rx3BjPSTRnEKetG5qSoPAcFUzsXNlbbchYvCnYfU YWIwuA5UR4A/YUgx1V177fg/nQzoNHYkjFI3cR9OWe+PDs1u6ukrYDR9gm6FodVhjqVF HvSw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:cc:list-subscribe :list-help:list-post:list-archive:list-unsubscribe:list-id :precedence:mime-version:references:in-reply-to:message-id:date :subject:to:from:dkim-signature:delivered-to; bh=1mafSIgGcHb9AI6UxN2AZl4OPpM67TaMUlyNA3T52qE=; b=PpEJNi+qXDQKfEZOW6i+Aq/KbTKzJ/U1zC9US1iEf+LnidU/Oz58PwODcanlGiEXKq w2adumc07GBghieIktI14QQ8tHkjUkD8VMtsSUlpqsSPzHrIX2FvqTcC9MaN09lyGmAw vEuEarYfzmnRwhHKDbvqw0TL4Wv1U4nYQNDGitGtYBkKWZsscT9bIje11QPRZKpOOgrL 7vI4foO6MmvjFXI5ciVU8RN04scg0W0Ist+9iT7mJfebz8C857z2BIe9KWpDTv9nV/Ja eltJQEgPNvyJPagR0x74Sx1agn0P53K2GBTJIP2Z9z/PpLflx86/HmRlXfFrLTmHgtsn zRVw== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=gVaHkDSR; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 2610:10:20:722:a800:ff:fe36:1795 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from gabe.freedesktop.org (gabe.freedesktop.org. [2610:10:20:722:a800:ff:fe36:1795]) by mx.google.com with ESMTPS id o2si24530681pgh.466.2021.03.03.05.43.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Mar 2021 05:43:46 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 2610:10:20:722:a800:ff:fe36:1795 as permitted sender) client-ip=2610:10:20:722:a800:ff:fe36:1795; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=gVaHkDSR; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 2610:10:20:722:a800:ff:fe36:1795 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id BEEEF6E8D8; Wed, 3 Mar 2021 13:43:35 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wm1-x32b.google.com (mail-wm1-x32b.google.com [IPv6:2a00:1450:4864:20::32b]) by gabe.freedesktop.org (Postfix) with ESMTPS id C9E306E8F0 for ; Wed, 3 Mar 2021 13:43:34 +0000 (UTC) Received: by mail-wm1-x32b.google.com with SMTP id u125so6378508wmg.4 for ; Wed, 03 Mar 2021 05:43:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=ZlgsgeTsQs4mZ0QqFliW9MCgKZA8P4oKnuooJz0fj/s=; b=gVaHkDSRZ4XCGVHSPIw1rAYthoVgCtFdJwAry/SmYPLZyI0PyvecSEKZI/EXW4DvSV Bpqd9vwVd/8ZCypvVCmxBpYRy57M4/FRgGKDqYIq0nFYClOoTrnQyJ7ln/Q0lLfhi52t HJOLWHJFbgS7wZfDLdRrcP0fCEy+Ve3sqsGrlB4WrSqCuqfDM/tPNCgGnyEGnPCDCY3x 26PaTDSTZzi+HCKHiHpvMLoshvx2IMO5xc3fAyRXCSpdqidzTstYHM2n8/XnXM+vLmYe 4f+bhSH7K0S7757hRV6lRhNX0psijhfk3dfwCgxMunapIqceXx8QTX1q8jsGn3kYAkmf QNbg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=ZlgsgeTsQs4mZ0QqFliW9MCgKZA8P4oKnuooJz0fj/s=; b=J1rflDgriqq8cw2wa6puQkFmS+fJ2OptXx6DJhcUtri+B40a9bg2a4QJLL6BJATpr2 6651HZIRoFYYk1yxGZHx4zfqV/XxvuMeYh9lvzi6APdOjRkbPFYrEht/vStBKUuE8UwW sqy53+I9sC4rScdzzT2WuVDtPmCXJAtrbZMf84dg00c+57vcG05Egkb+pb5SEwLS9uNe 53t6x7/YDruGEtqsvRV0f+wAVDQQ/Z22ZZh10XZFnEjEbNWdp7G5W4t8r5mTpX/n1CY9 nz7BPiOPKBqJWFsNomiUzufjpVJh+s4LlrdrLxBDk2Jw9WBTLqHRrKf/TkpwXO/Fv5NG 9cEw== X-Gm-Message-State: AOAM53286zOBi5nnuch23VxsRyC8v5YRyJn03LWzMdqsPX3nbH5bOZn6 39SlLBSu9hH3YOG76df9uqf2zA== X-Received: by 2002:a1c:6543:: with SMTP id z64mr9300311wmb.50.1614779013487; Wed, 03 Mar 2021 05:43:33 -0800 (PST) Received: from dell.default ([91.110.221.155]) by smtp.gmail.com with ESMTPSA id w18sm6109524wrr.7.2021.03.03.05.43.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Mar 2021 05:43:33 -0800 (PST) From: Lee Jones To: lee.jones@linaro.org Subject: [PATCH 04/53] drm/amd/display/dc/bios/command_table: Remove unused variable Date: Wed, 3 Mar 2021 13:42:30 +0000 Message-Id: <20210303134319.3160762-5-lee.jones@linaro.org> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20210303134319.3160762-1-lee.jones@linaro.org> References: <20210303134319.3160762-1-lee.jones@linaro.org> MIME-Version: 1.0 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: Leo Li , dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, Qinglang Miao , David Airlie , amd-gfx@lists.freedesktop.org, Alex Deucher , =?utf-8?q?Christian_K=C3=B6?= =?utf-8?q?nig?= Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" None of the surrounding code was removed just in case even a small fraction of it was functional. Fixes the following W=1 kernel build warning(s): drivers/gpu/drm/amd/amdgpu/../display/dc/bios/command_table.c: In function ‘adjust_display_pll_v2’: drivers/gpu/drm/amd/amdgpu/../display/dc/bios/command_table.c:1459:35: warning: variable ‘params’ set but not used [-Wunused-but-set-variable] Cc: Harry Wentland Cc: Leo Li Cc: Alex Deucher Cc: "Christian König" Cc: David Airlie Cc: Daniel Vetter Cc: Qinglang Miao Cc: amd-gfx@lists.freedesktop.org Cc: dri-devel@lists.freedesktop.org Signed-off-by: Lee Jones --- drivers/gpu/drm/amd/display/dc/bios/command_table.c | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/drivers/gpu/drm/amd/display/dc/bios/command_table.c b/drivers/gpu/drm/amd/display/dc/bios/command_table.c index afc10b954ffa7..9d3bc3a073821 100644 --- a/drivers/gpu/drm/amd/display/dc/bios/command_table.c +++ b/drivers/gpu/drm/amd/display/dc/bios/command_table.c @@ -1517,20 +1517,14 @@ static enum bp_result adjust_display_pll_v2( struct bp_adjust_pixel_clock_parameters *bp_params) { enum bp_result result = BP_RESULT_FAILURE; - ADJUST_DISPLAY_PLL_PS_ALLOCATION params = { 0 }; /* We need to convert from KHz units into 10KHz units and then convert * output pixel clock back 10KHz-->KHz */ uint32_t pixel_clock_10KHz_in = bp_params->pixel_clock / 10; - params.usPixelClock = cpu_to_le16((uint16_t)(pixel_clock_10KHz_in)); - params.ucTransmitterID = - bp->cmd_helper->encoder_id_to_atom( - dal_graphics_object_id_get_encoder_id( - bp_params->encoder_object_id)); - params.ucEncodeMode = - (uint8_t)bp->cmd_helper->encoder_mode_bp_to_atom( - bp_params->signal_type, false); + bp->cmd_helper->encoder_id_to_atom( + dal_graphics_object_id_get_encoder_id(bp_params->encoder_object_id)); + bp->cmd_helper->encoder_mode_bp_to_atom(bp_params->signal_type, false); return result; } From patchwork Wed Mar 3 13:42:31 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 392066 Delivered-To: patch@linaro.org Received: by 2002:a02:290e:0:0:0:0:0 with SMTP id p14csp5132801jap; Wed, 3 Mar 2021 05:43:49 -0800 (PST) X-Google-Smtp-Source: ABdhPJwuEbp6P7XWEB9vAwv1BlCEQdVqf63TxyrpOHh5cbKSUTpgzD2sNMOYP9rZDL7M/sKhluT7 X-Received: by 2002:a63:c601:: with SMTP id w1mr16791360pgg.11.1614779029071; Wed, 03 Mar 2021 05:43:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614779029; cv=none; d=google.com; s=arc-20160816; b=dleK9jfGNqbhtOQ+uQld8YcR9ctBlaPqqkDepD47mRnjoXw/Hz2ZvL5lXwRNhVuZXl sN6NVEo2ne1Ydi8E6062S9iRi491dlG5SxkNZz84ACizsr7X56IYhFsoTGDKZHGdGLb+ 7X+s+U2bx5F3rovtv7aBQYtxQiwcC9VmvozbG0Goqb70Nup/PqUlAMMHZsOj9qmvxwJ6 /0W2IKlbnd4NmIVrCJFZYwI8TFXHN18VyE+uxt79SIDMWyk2EaQw+ijtw9UYuZdS210f CVSVSDj8+8wzuhnXaijAlocURGQjcj61hh5HbQebT0N12MpWnRGiV3eXffJDMx1hECuA 2yEw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:cc:list-subscribe :list-help:list-post:list-archive:list-unsubscribe:list-id :precedence:mime-version:references:in-reply-to:message-id:date :subject:to:from:dkim-signature:delivered-to; bh=Iuud5cLp2BT70WR+fBTpmPa5rz5CiAtPlEr71+1JxO0=; b=TxDcMdnLcdrNZIZEd+IfbyiK3rjCt7vAa0I+4IboIvETQpHHPXdeHxfgBwzQZAvDqX 8TnrXiK6ygdTJWyJ+N56LSsnX1IWmGT7hGqrddSSJEhUVF86ad3Ua7WhmzvC9NFqT73W 39vkTVJvmFKVaftajylvxvwnubtpQhViIIZBveRyWFSsfcKD3L+aJ+vfyOwq4kjDxKFr 5NGoNWOYsvgEvgnD5AOz5aHliPVPu6VyE1wqULMYRlZSYctSDUUlioshjl2NfwUa5l3M 7LIgfcECQyjru7iBeExq/3JLpkWyBg3vXwpa5ZDEcQWVS2+qb4zr4hdyKECXTu0mGwtM FDpw== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=ycKjNwxV; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from gabe.freedesktop.org (gabe.freedesktop.org. [131.252.210.177]) by mx.google.com with ESMTPS id 18si1288970pll.183.2021.03.03.05.43.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Mar 2021 05:43:49 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) client-ip=131.252.210.177; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=ycKjNwxV; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id E7F066E869; Wed, 3 Mar 2021 13:43:36 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wm1-x32a.google.com (mail-wm1-x32a.google.com [IPv6:2a00:1450:4864:20::32a]) by gabe.freedesktop.org (Postfix) with ESMTPS id B5BA86E86D for ; Wed, 3 Mar 2021 13:43:35 +0000 (UTC) Received: by mail-wm1-x32a.google.com with SMTP id i9so5240226wml.0 for ; Wed, 03 Mar 2021 05:43:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=sSYYF9avR+ibuwGTDH+u4wL/4B2uArbe+K5Pi6OSJeE=; b=ycKjNwxVRbCbFBAENcOkX967iuzNILRBy64Agv/v6AoZsMb6fh2R8wRdvYyJH6Cj2D TgcS8VnsiDfrUZ4+cXJGZ7euWyTdOdLNdKMr+YOK635Vr7OgrzD4hBE02dgD7nopt4ZM w0Lut7zaa1OSOrPr2NtQ7k3kyGq7LnzgpWxg/3jlkxOLCPITPG/yUPcRKl6OLgvuy9yI AMlLutx1kgcc7QtPN/Xk2FNrgBpBoYKNVwWWNI0+HI/7NtZ9Vvkzae0XtKZKuVpk3BQ5 fDtXc95a7S4ZQr7B2TODC9Z/hm0uLpjbMGGrYxonprBaU5PcGThm2OYN0sDp65mrMGI5 7v2w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=sSYYF9avR+ibuwGTDH+u4wL/4B2uArbe+K5Pi6OSJeE=; b=SszQzcdIK0RysD1Uc6E+OLrG/6q/aN64IXML0n2x+sjPmZ0CW+cs9rUQPrjccccoWR q38kpjswDVsgr9Utzcj2Y/Pbs8Cdow51hOe77ZJHjcPppbvQrNF1bmwmNYoTMVQv2XoX G5ty6ufU3VFIHMSgWDtpd3f8sAlGuy+j7JMCE0/n9QA33CK2LCBJAA3swG/6X0XaCb4m HTC4Glidocz9bvB0taf3+o0V6YF/W1WPodYnTzCOsTGoUEz67DTdQ6BwKYF7i7yZna0N WrOCP7sdYCjvzL2RgBf2hHK4CyrSNnURb5XmooHOE4v+UhcxPIyLkEvS9zIJEIFJpIH4 BXhg== X-Gm-Message-State: AOAM530O5S+VMdfy4hBZ+Rg7kVti1do2+fXYr1oAzULCg1apGuMVucv9 nVsx5NR+vun6FDFjgIJj1o6Zjw== X-Received: by 2002:a1c:68c5:: with SMTP id d188mr8916602wmc.119.1614779014483; Wed, 03 Mar 2021 05:43:34 -0800 (PST) Received: from dell.default ([91.110.221.155]) by smtp.gmail.com with ESMTPSA id w18sm6109524wrr.7.2021.03.03.05.43.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Mar 2021 05:43:34 -0800 (PST) From: Lee Jones To: lee.jones@linaro.org Subject: [PATCH 05/53] include: drm: drm_atomic: Make use of 'new_plane_state' Date: Wed, 3 Mar 2021 13:42:31 +0000 Message-Id: <20210303134319.3160762-6-lee.jones@linaro.org> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20210303134319.3160762-1-lee.jones@linaro.org> References: <20210303134319.3160762-1-lee.jones@linaro.org> MIME-Version: 1.0 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: David Airlie , linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, Thomas Zimmermann Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" In the macro for_each_oldnew_plane_in_state() 'new_plane_state' is provided as a container for state->planes[i].new_state, but is not utilised in some use-cases, so we fake-use it instead. Fixes the following W=1 kernel build warning(s): drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm.c: In function ‘amdgpu_dm_commit_cursors’: drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm.c:7649:44: warning: variable ‘new_plane_state’ set but not used [-Wunused-but-set-variable] Cc: Maarten Lankhorst Cc: Maxime Ripard Cc: Thomas Zimmermann Cc: David Airlie Cc: Daniel Vetter Cc: Rob Clark Cc: dri-devel@lists.freedesktop.org Signed-off-by: Lee Jones --- include/drm/drm_atomic.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/drm/drm_atomic.h b/include/drm/drm_atomic.h index ce7023e9115d7..a71c19e1d785c 100644 --- a/include/drm/drm_atomic.h +++ b/include/drm/drm_atomic.h @@ -867,7 +867,8 @@ void drm_state_dump(struct drm_device *dev, struct drm_printer *p); ((plane) = (__state)->planes[__i].ptr, \ (void)(plane) /* Only to avoid unused-but-set-variable warning */, \ (old_plane_state) = (__state)->planes[__i].old_state,\ - (new_plane_state) = (__state)->planes[__i].new_state, 1)) + (new_plane_state) = (__state)->planes[__i].new_state, \ + (void)(new_plane_state) /* Only to avoid unused-but-set-variable warning */, 1)) /** * for_each_oldnew_plane_in_state_reverse - iterate over all planes in an atomic From patchwork Wed Mar 3 13:42:32 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 392068 Delivered-To: patch@linaro.org Received: by 2002:a02:290e:0:0:0:0:0 with SMTP id p14csp5132854jap; Wed, 3 Mar 2021 05:43:54 -0800 (PST) X-Google-Smtp-Source: ABdhPJzJOEMnTH87qgIbk/iohxvvsgrL0eZzyKaSf70EPsIU39dOBoRu/UTMOZT+vKg3CbUUnpSq X-Received: by 2002:a63:588:: with SMTP id 130mr129441pgf.375.1614779034258; Wed, 03 Mar 2021 05:43:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614779034; cv=none; d=google.com; s=arc-20160816; b=qfNjMch2u1hwXsrPX5yfOq4o6sZirvpuZR8Hw1kaJsYvbfpx65qaZl7v37xUxcq6Om 5STgLKvdSUHg10iclUSFvSmrfwCNXgBwSnPUVITfzwPgmPQ5WAGSWHk3g+ZNbFFz6S6h OcFBIDehBgDB0EXfF/F0D/a+6fSekWzzQYrFV/9yuDekD3d2ol9zO5/E5sH9nqpZytcU UbUhMPLQ+zKXBrFB6BuF+0GAHhofLJij5YABCwyzZAjZ/JWYfgFUuwpQGIp0heQFZBVD M6nabzZfTbnZ/rtbHlDQSKXFwXSYhhBRP3joJv6BoiIykE4t0Mb/KFgf35z7c74MCnFB HEdA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:cc:list-subscribe :list-help:list-post:list-archive:list-unsubscribe:list-id :precedence:mime-version:references:in-reply-to:message-id:date :subject:to:from:dkim-signature:delivered-to; bh=RwYM/eDmYh4PhaNUwD2SZo2M6WM54O9lBsEFinRwius=; b=xGs5zO/XYi87pw7yTTTDO0e1CAZE5iTgQMWmpSePOVaOPS0qz8Ls4/tDKE2MtnJaO0 QUDeenH0AE22/CSBVW14aNkffRpztqKNa+fsdVO02Ye+TBWGB4db19Q7YtbJu7a9pMmH 1hxEvsoIh/UrPzj423Xh8jzPYG6I23IrffmWWbcl0vlyVsp9g8AI0sq7ad2JXncYhsiR 0X8Mk9r0zXyNYhjDIhjs0Z+YjZYGwTd8KwtmPfZCYGB0wT2oau4lOEmTNXOIyOTN0f9J IiXy7yl98LDy/Fht9pEefIhZ0DcQkKLddHAZYOeZoyHv+jBfu1tzAeFDyPVgtAO36ONp UMRg== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=N3q181yJ; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from gabe.freedesktop.org (gabe.freedesktop.org. [131.252.210.177]) by mx.google.com with ESMTPS id v4si7080020plo.40.2021.03.03.05.43.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Mar 2021 05:43:54 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) client-ip=131.252.210.177; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=N3q181yJ; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id B7C616E8DD; Wed, 3 Mar 2021 13:43:38 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wr1-x42c.google.com (mail-wr1-x42c.google.com [IPv6:2a00:1450:4864:20::42c]) by gabe.freedesktop.org (Postfix) with ESMTPS id 0BD8F6E8D9 for ; Wed, 3 Mar 2021 13:43:37 +0000 (UTC) Received: by mail-wr1-x42c.google.com with SMTP id u16so5731919wrt.1 for ; Wed, 03 Mar 2021 05:43:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=K5sJeJ74F8ymxQq/7xf9FhHZmcrAt5y0yMPNHooyiic=; b=N3q181yJisryPIByDaizfjLwDLbgVp2sSUSlV1VTGiJIerqGb19KH2SBPvAKguZifR I/iBsFNFweL2WQUEyLnk4hzJijHleRbyOOxWWFxboGtV6plw4vkLLVhRVDF0qymFFDqh w8gomQnPFF0fUFn87WrNRwqG9HWCghz9iplUle3MXnVjy2mHL6Y3m3Ae4i+B2jY23gZp zpMdZFt4R3rikBkgzyz/bOQklHbTOzqFE8FKqLCfx6LT7FdVi9UQS0PBAAmWEXMQr+cv hdTuBN3aQssflEmx5QR+Wmnna7UAkSRvdCRqviYtZRMjwHvmJrflxvVf/+lNtZxIyDrY ZlOw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=K5sJeJ74F8ymxQq/7xf9FhHZmcrAt5y0yMPNHooyiic=; b=Xl/5yKkQqI5giAekRYsxrGGrmDsCLGGlLq+1OO7aNIAUU814/ZuCf85pyTIxwUw9xP U/PKrmlSxWWC6KMW3ZVFCIcSW3EFVxvpWJVTziMzJMIQ1Qt/pf3VAd773/W+/4uKVjfn Au5C0tQqgkjY3+0sCWG0PVDabreM7o7ojnA4tOSQ4J5CBa3PMquBWH4aX13Gi5L/uDHQ +5heehBD8aYPeUAkZ5lFESK8bPzsNxX/kc9WoJ8vL10ZpQtfHiQcxmZZheI6/LW43R+8 ToND33NgDyvJbVvheSXuvL1gSmr05cRZ7WViXbOEeAOPqYHaedJB9F1AGH6jVhrwoTm4 hrSA== X-Gm-Message-State: AOAM530P7/WepgOowk6EWwDIflXhvfk8drw8vgi3r81dy8A5z/Fcg7Xh SPCvChcdOfJpdsg4SFPw6qcakQ== X-Received: by 2002:a5d:404f:: with SMTP id w15mr22817085wrp.106.1614779015699; Wed, 03 Mar 2021 05:43:35 -0800 (PST) Received: from dell.default ([91.110.221.155]) by smtp.gmail.com with ESMTPSA id w18sm6109524wrr.7.2021.03.03.05.43.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Mar 2021 05:43:35 -0800 (PST) From: Lee Jones To: lee.jones@linaro.org Subject: [PATCH 06/53] drm/nouveau/nvkm/subdev/volt/gk20a: Demote non-conformant kernel-doc headers Date: Wed, 3 Mar 2021 13:42:32 +0000 Message-Id: <20210303134319.3160762-7-lee.jones@linaro.org> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20210303134319.3160762-1-lee.jones@linaro.org> References: <20210303134319.3160762-1-lee.jones@linaro.org> MIME-Version: 1.0 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: David Airlie , nouveau@lists.freedesktop.org, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, Ben Skeggs Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" Fixes the following W=1 kernel build warning(s): drivers/gpu/drm/nouveau/nvkm/subdev/volt/gk20a.c:53: warning: Function parameter or member 'speedo' not described in 'gk20a_volt_get_cvb_voltage' drivers/gpu/drm/nouveau/nvkm/subdev/volt/gk20a.c:53: warning: Function parameter or member 's_scale' not described in 'gk20a_volt_get_cvb_voltage' drivers/gpu/drm/nouveau/nvkm/subdev/volt/gk20a.c:53: warning: Function parameter or member 'coef' not described in 'gk20a_volt_get_cvb_voltage' drivers/gpu/drm/nouveau/nvkm/subdev/volt/gk20a.c:69: warning: Function parameter or member 'speedo' not described in 'gk20a_volt_get_cvb_t_voltage' drivers/gpu/drm/nouveau/nvkm/subdev/volt/gk20a.c:69: warning: Function parameter or member 'temp' not described in 'gk20a_volt_get_cvb_t_voltage' drivers/gpu/drm/nouveau/nvkm/subdev/volt/gk20a.c:69: warning: Function parameter or member 's_scale' not described in 'gk20a_volt_get_cvb_t_voltage' drivers/gpu/drm/nouveau/nvkm/subdev/volt/gk20a.c:69: warning: Function parameter or member 't_scale' not described in 'gk20a_volt_get_cvb_t_voltage' drivers/gpu/drm/nouveau/nvkm/subdev/volt/gk20a.c:69: warning: Function parameter or member 'coef' not described in 'gk20a_volt_get_cvb_t_voltage' Cc: Ben Skeggs Cc: David Airlie Cc: Daniel Vetter Cc: dri-devel@lists.freedesktop.org Cc: nouveau@lists.freedesktop.org Signed-off-by: Lee Jones --- drivers/gpu/drm/nouveau/nvkm/subdev/volt/gk20a.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) -- 2.27.0 _______________________________________________ dri-devel mailing list dri-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/dri-devel diff --git a/drivers/gpu/drm/nouveau/nvkm/subdev/volt/gk20a.c b/drivers/gpu/drm/nouveau/nvkm/subdev/volt/gk20a.c index 8c2faa9645111..ccac88da88648 100644 --- a/drivers/gpu/drm/nouveau/nvkm/subdev/volt/gk20a.c +++ b/drivers/gpu/drm/nouveau/nvkm/subdev/volt/gk20a.c @@ -45,7 +45,7 @@ static const struct cvb_coef gk20a_cvb_coef[] = { /* 852 */ { 1608418, -21643, -269, 0, 763, -48}, }; -/** +/* * cvb_mv = ((c2 * speedo / s_scale + c1) * speedo / s_scale + c0) */ static inline int @@ -58,7 +58,7 @@ gk20a_volt_get_cvb_voltage(int speedo, int s_scale, const struct cvb_coef *coef) return mv; } -/** +/* * cvb_t_mv = * ((c2 * speedo / s_scale + c1) * speedo / s_scale + c0) + * ((c3 * speedo / s_scale + c4 + c5 * T / t_scale) * T / t_scale) From patchwork Wed Mar 3 13:42:33 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 392070 Delivered-To: patch@linaro.org Received: by 2002:a02:290e:0:0:0:0:0 with SMTP id p14csp5132904jap; Wed, 3 Mar 2021 05:43:58 -0800 (PST) X-Google-Smtp-Source: ABdhPJx5XtXUEBwIehd5zrhq8Tf8SjiALAzSRFMPf1O2Jtx3YkW9fvksdD8S8cMkc639HhYAYbbr X-Received: by 2002:a62:1506:0:b029:1ee:ebf9:fbe5 with SMTP id 6-20020a6215060000b02901eeebf9fbe5mr3163882pfv.15.1614779038470; Wed, 03 Mar 2021 05:43:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614779038; cv=none; d=google.com; s=arc-20160816; b=l/dsycggc8CB3+1xtirl5RNJmdDczkAWjKOvIQmBHFoJ/1wmWavpW8h0wOMHNKLJrC yqu/0Jz8fLFTsUtvW34Us7kBEK2XJACz4JOlu/Hc6br0IJMa5HhRBYn496azitNz6YeE lSIucoPtKGe2vREUygby1YCp9W7C1nsBYvqPjjMUu8VOUSA9uywPxwXFFY/h7i/D07CO ZODYZ/D8BDudA4C58JV5Ia40ljom5svsSO+QgriwAiJX3yssDHwML5MqcDI4YbcKDnLS n5s/Is1y8OM3a0t2QaMDgOqjRglVhAPx3QtiqMuWP2sls29pDImDXp24xtAyvXeVFBF5 gasg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:cc:list-subscribe :list-help:list-post:list-archive:list-unsubscribe:list-id :precedence:mime-version:references:in-reply-to:message-id:date :subject:to:from:dkim-signature:delivered-to; bh=EJK8NorLKF6Zojw6u5DZjuVt+TgX9vGqNqEE/u34hMc=; b=Uw90qrUvlQUG2vjyz3AEN39Pl1dMMyzHyiW1i0VK1I+O0aNwe+Lla5IwNGDqCJGhcV qei+E+r60LQ+vdbFnGD9v7yKwTvb3flbFMDNw9grvXRcYmj75xjsUKxm7KU/1zGhYAvQ 4caZk+w8GtxdrQQMJvtNs6lw5k8+qofUuc1v5Rvpal1ThrUzzK5ouXg7qLd7FzLmghbA Obp2yTMPZ1NRnULA/YcXxKlSFcXjpkvdPkx48N83SWLGhckT9riKOXzwhLWOpfc7/qbk S4EKPn0ORTj9CHfF6R2q9H3cWdaj66y+KqATVo6ggFPrNv8lZhOTGNvxQF5pf8BROoSJ vQuQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=UZEv1Tix; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 2610:10:20:722:a800:ff:fe36:1795 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from gabe.freedesktop.org (gabe.freedesktop.org. [2610:10:20:722:a800:ff:fe36:1795]) by mx.google.com with ESMTPS id e11si21104284pgk.422.2021.03.03.05.43.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Mar 2021 05:43:58 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 2610:10:20:722:a800:ff:fe36:1795 as permitted sender) client-ip=2610:10:20:722:a800:ff:fe36:1795; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=UZEv1Tix; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 2610:10:20:722:a800:ff:fe36:1795 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 744FF6E8E8; Wed, 3 Mar 2021 13:43:41 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wr1-x435.google.com (mail-wr1-x435.google.com [IPv6:2a00:1450:4864:20::435]) by gabe.freedesktop.org (Postfix) with ESMTPS id 2D3526E8D9 for ; Wed, 3 Mar 2021 13:43:38 +0000 (UTC) Received: by mail-wr1-x435.google.com with SMTP id j2so10883444wrx.9 for ; Wed, 03 Mar 2021 05:43:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=wtdOZUPejXIxG4DafVTSnIWvo2XUWaKv8nLuUC2cuVs=; b=UZEv1TixOjptA51Xf0D3ZWP6qBa1BuK4fprFPpRVDcuJ49xPXUPJGp6E+dNYNXVJVb +wirSDrdZyG+W4R4vXCa+dP800Du/zenIk68HzB2fuoOISKqgdhiA0Yo9Dw6klTLejAP njUqmMMsdKiLqi/ldUnjDL3a/hP1xjda+KEfypBrkeXVvofjvEQ/A/MZ4RtN27PbnryP 0Fp/Tpi1gfoz7AUMR+Ibx7IharnIQuPfmLONZAFKP0/IGEiKunj9r4odx6NNNPjayLCZ JfFU7iUcQlv+uNB5/2b5otcEpP3m/Dd0Eeq1XR9kHdAkIqe8fzQggTMec9s32vZPWYbr 8Yqw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=wtdOZUPejXIxG4DafVTSnIWvo2XUWaKv8nLuUC2cuVs=; b=WdI7yahOgGIgmvYzSZa7CtNrVCzuzV98im7vFduE86oEVSOfWu+Bkw2Zq0/5HMKgTs PeI5BaOCAlCj6bcdQuLcWXbAKnfqS2pFfWJkDovZnwJDus1t0XqhEiVkFK7VhHIfxZ4U 8havPmfV/qx5rjnAeMq+9TfQMmfQdesncu6BvXpbyTYDdhHKNKupaCWE1pXinj+NcWdv mSYmpc/GX/aJ7G1cnqSY/YhSx6Ri13e5dgqse7hH6KlBmotSBJp8h+jHT6WhRIfmw7S1 //W2MgDHd5fo8Jnl/kpsm7b57v+HOhGIygTvzKAuMBe94hF5N/YnXL0NV+wE7JHQmCJ4 fTzg== X-Gm-Message-State: AOAM5338jZZ5yeJmCoGdzcdbEbr2bGlYHphWyS86R6nnsYzV/kPzJCFw rV4cE9Z2SiyRO+rfl1btaZhRdQ== X-Received: by 2002:a5d:6d0c:: with SMTP id e12mr26589790wrq.136.1614779016850; Wed, 03 Mar 2021 05:43:36 -0800 (PST) Received: from dell.default ([91.110.221.155]) by smtp.gmail.com with ESMTPSA id w18sm6109524wrr.7.2021.03.03.05.43.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Mar 2021 05:43:36 -0800 (PST) From: Lee Jones To: lee.jones@linaro.org Subject: [PATCH 07/53] drm/amd/display/dc/bios/command_table: Remove unused variable and associated comment Date: Wed, 3 Mar 2021 13:42:33 +0000 Message-Id: <20210303134319.3160762-8-lee.jones@linaro.org> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20210303134319.3160762-1-lee.jones@linaro.org> References: <20210303134319.3160762-1-lee.jones@linaro.org> MIME-Version: 1.0 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: Leo Li , linux-kernel@vger.kernel.org, amd-gfx@lists.freedesktop.org, David Airlie , dri-devel@lists.freedesktop.org, Alex Deucher , =?utf-8?q?Christian_K=C3=B6nig?= Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" Fixes the following W=1 kernel build warning(s): drivers/gpu/drm/amd/amdgpu/../display/dc/bios/command_table.c: In function ‘adjust_display_pll_v2’: drivers/gpu/drm/amd/amdgpu/../display/dc/bios/command_table.c:1462:11: warning: unused variable ‘pixel_clock_10KHz_in’ [-Wunused-variable] Cc: Harry Wentland Cc: Leo Li Cc: Alex Deucher Cc: "Christian König" Cc: David Airlie Cc: Daniel Vetter Cc: Lee Jones Cc: amd-gfx@lists.freedesktop.org Cc: dri-devel@lists.freedesktop.org Signed-off-by: Lee Jones --- drivers/gpu/drm/amd/display/dc/bios/command_table.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/drivers/gpu/drm/amd/display/dc/bios/command_table.c b/drivers/gpu/drm/amd/display/dc/bios/command_table.c index 9d3bc3a073821..e879ceb0c49ed 100644 --- a/drivers/gpu/drm/amd/display/dc/bios/command_table.c +++ b/drivers/gpu/drm/amd/display/dc/bios/command_table.c @@ -1518,10 +1518,6 @@ static enum bp_result adjust_display_pll_v2( { enum bp_result result = BP_RESULT_FAILURE; - /* We need to convert from KHz units into 10KHz units and then convert - * output pixel clock back 10KHz-->KHz */ - uint32_t pixel_clock_10KHz_in = bp_params->pixel_clock / 10; - bp->cmd_helper->encoder_id_to_atom( dal_graphics_object_id_get_encoder_id(bp_params->encoder_object_id)); bp->cmd_helper->encoder_mode_bp_to_atom(bp_params->signal_type, false); From patchwork Wed Mar 3 13:42:34 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 392069 Delivered-To: patch@linaro.org Received: by 2002:a02:290e:0:0:0:0:0 with SMTP id p14csp5132879jap; Wed, 3 Mar 2021 05:43:56 -0800 (PST) X-Google-Smtp-Source: ABdhPJxhR6gWpfHOnwENpNphqOlTDpxXavExOE7BOZEC67NyFJuXMMn5oadw25mDyx+cCZbWqg2q X-Received: by 2002:a17:90a:f2ce:: with SMTP id gt14mr9394441pjb.221.1614779036219; Wed, 03 Mar 2021 05:43:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614779036; cv=none; d=google.com; s=arc-20160816; b=aUSQkAwfr/1BxpXlNHWb3oDuYeG+Rf1L+TnPrimB1zh5TAOSGPO9cX3GWgB7iESZgy eLfJ0wrQc3cNpGgg6rqrJtulkx+ZtbNH34PHY76osI1TsU5anTqm0s42dJCagBWPGcZq hWoioKEgtSTZsLV5IuSRFKat96GAVSa5wUV25StQwr0okR4+hVs6JPaDNge608FzHejG NB1csn0vgp4kcgldGaEsXdEWY5sxgLYeza2a0kCtAokelD6zoP3EFTOXL9/syUCgzvpQ dtHajjJ/s71NoxZkhgXVHhFKBEOAGxMpSuobGZzlD1JxubgsbSxnbwd8YFdQO8BJc0wC OLHQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:cc:list-subscribe :list-help:list-post:list-archive:list-unsubscribe:list-id :precedence:mime-version:references:in-reply-to:message-id:date :subject:to:from:dkim-signature:delivered-to; bh=is/vxxjXGchAOSrx+TVkMFAFZOt7NYf6CsmervxTQlI=; b=XxYU4HGHaGajunZB1OQ7l63UVJwFJB3LyTI/QWNEQpevLkZuieNxVXruB1ioK099Cj wEtU1qc2ijYPkIMJRA8byZcX6YOj5DUR5mZhpT1MIDtAjnUQK6jufQjY8YMosSweZOKA kWJTBFMxJkQuTbQOFTUjPk0uVXpWTonaJmYVdd6dAohK4BtCpStWEQkGzT1sk7vBkgRU 9SZJKp7qpH2RAbbIhGIdKk1fopfju7jZiUHf6qlb6ZavnfTFhXQdpsmijc2xOCfKghnq aWSoommb1XQM5klNf+plqS8FVvd0dCr4fWW1ZnMqAM4aUWmTcLWy/D4Era1dtA9UoPtx +r5w== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=ZsyMPRW9; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 2610:10:20:722:a800:ff:fe36:1795 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from gabe.freedesktop.org (gabe.freedesktop.org. [2610:10:20:722:a800:ff:fe36:1795]) by mx.google.com with ESMTPS id k11si24415448pgi.63.2021.03.03.05.43.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Mar 2021 05:43:56 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 2610:10:20:722:a800:ff:fe36:1795 as permitted sender) client-ip=2610:10:20:722:a800:ff:fe36:1795; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=ZsyMPRW9; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 2610:10:20:722:a800:ff:fe36:1795 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 499D56E8E7; Wed, 3 Mar 2021 13:43:41 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wr1-x42e.google.com (mail-wr1-x42e.google.com [IPv6:2a00:1450:4864:20::42e]) by gabe.freedesktop.org (Postfix) with ESMTPS id 9CAB26E8E2 for ; Wed, 3 Mar 2021 13:43:39 +0000 (UTC) Received: by mail-wr1-x42e.google.com with SMTP id j2so10883546wrx.9 for ; Wed, 03 Mar 2021 05:43:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=Quc2kUn4zxyJwPjFnwIzGGrQHrzECWlhqtsSXbJueZc=; b=ZsyMPRW9QBkC/Ih85kKhmz4YGoEObQ/YxdodsqQrvvAe4BorhfF8b0CVqsxplW4lZJ G6nXul6/Poxd7MlR+c60M/IowDeDVmsoSNAO7/XZofVeoq0Wx+U73wYVvL9gD+ecPCTa SdkbYZTluzU7XVX6LBWI1Z2WYNNfuTvs9rn7OWz/Ud1K5KnZJG5i5a7fj0LIB2MJE+bT hsjumX83elTXdLYYw/z3vZ9IxGOtgTVucQn18omtvAXrzksJoibAz0enmNfcdvJYIrib YrnNGjo+6n1FULBR+nT8xa26l3ctUCgLASQSzuE9nyZNcfID+1sRyXk+z/2C9uPVOH7n gD5w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=Quc2kUn4zxyJwPjFnwIzGGrQHrzECWlhqtsSXbJueZc=; b=Kwc1q2EotYhHQKcoWpuLVwl3HuAi+twdftKoeqChVFoq4ApSJOjjDlYuOkEpwluqsT 65E5NTJeLn5VpcHWYl5Yqiko2JFD5jDhTqsFwo/sea/RxUbol/TnZ/vDOQdA+mLDti37 jZpr/By5tpZt7SElKnS/ZTTEZpiWpbEVidfjkexAZlyiamQ4GtFP+uKWx7Pm1VLCfeiE idlBl3YwPuf8RepTwsOHFk4SlL0QzejK++pJGj4sJbnGdx2FEzZ8vvouiphTkNUdpUOd sgxOLx0ZoAgRBgAsvW8+IAevGs8+QWrX5ep+4G7igiJ92ZZ9cU8HsSX5Gu4aLrVS31k7 wyig== X-Gm-Message-State: AOAM533PmoukJCpKGH+HSKcVOhLBlL9UgiIwkVh9wXs/I5sQWyO5f1jQ vdqguv75drn+hEiObSX5FDm6wA== X-Received: by 2002:a5d:64ac:: with SMTP id m12mr27033016wrp.138.1614779018312; Wed, 03 Mar 2021 05:43:38 -0800 (PST) Received: from dell.default ([91.110.221.155]) by smtp.gmail.com with ESMTPSA id w18sm6109524wrr.7.2021.03.03.05.43.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Mar 2021 05:43:37 -0800 (PST) From: Lee Jones To: lee.jones@linaro.org Subject: [PATCH 08/53] drm/amd/display/dc/calcs/dce_calcs: Move some large variables from the stack to the heap Date: Wed, 3 Mar 2021 13:42:34 +0000 Message-Id: <20210303134319.3160762-9-lee.jones@linaro.org> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20210303134319.3160762-1-lee.jones@linaro.org> References: <20210303134319.3160762-1-lee.jones@linaro.org> MIME-Version: 1.0 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: Leo Li , linux-kernel@vger.kernel.org, amd-gfx@lists.freedesktop.org, David Airlie , dri-devel@lists.freedesktop.org, Alex Deucher , Colin Ian King , =?utf-8?q?Christian_K?= =?utf-8?b?w7ZuaWc=?= Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" Fixes the following W=1 kernel build warning(s): drivers/gpu/drm/amd/amdgpu/../display/dc/calcs/dce_calcs.c: In function ‘calculate_bandwidth’: drivers/gpu/drm/amd/amdgpu/../display/dc/calcs/dce_calcs.c:2016:1: warning: the frame size of 1216 bytes is larger than 1024 bytes [-Wframe-larger-than=] Cc: Harry Wentland Cc: Leo Li Cc: Alex Deucher Cc: "Christian König" Cc: David Airlie Cc: Daniel Vetter Cc: Colin Ian King Cc: amd-gfx@lists.freedesktop.org Cc: dri-devel@lists.freedesktop.org Signed-off-by: Lee Jones --- .../gpu/drm/amd/display/dc/calcs/dce_calcs.c | 29 ++++++++++++++++--- 1 file changed, 25 insertions(+), 4 deletions(-) diff --git a/drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c b/drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c index e633f8a51edb6..4f0474a3bbcad 100644 --- a/drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c +++ b/drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c @@ -98,16 +98,16 @@ static void calculate_bandwidth( int32_t num_cursor_lines; int32_t i, j, k; - struct bw_fixed yclk[3]; - struct bw_fixed sclk[8]; + struct bw_fixed *yclk; + struct bw_fixed *sclk; bool d0_underlay_enable; bool d1_underlay_enable; bool fbc_enabled; bool lpt_enabled; enum bw_defines sclk_message; enum bw_defines yclk_message; - enum bw_defines tiling_mode[maximum_number_of_surfaces]; - enum bw_defines surface_type[maximum_number_of_surfaces]; + enum bw_defines *tiling_mode; + enum bw_defines *surface_type; enum bw_defines voltage; enum bw_defines pipe_check; enum bw_defines hsr_check; @@ -122,6 +122,22 @@ static void calculate_bandwidth( int32_t number_of_displays_enabled_with_margin = 0; int32_t number_of_aligned_displays_with_no_margin = 0; + yclk = kcalloc(3, sizeof(*yclk), GFP_KERNEL); + if (!yclk) + return; + + sclk = kcalloc(8, sizeof(*sclk), GFP_KERNEL); + if (!sclk) + return; + + tiling_mode = kcalloc(maximum_number_of_surfaces, sizeof(*tiling_mode), GFP_KERNEL); + if (!tiling_mode) + return; + + surface_type = kcalloc(maximum_number_of_surfaces, sizeof(*surface_type), GFP_KERNEL); + if (!surface_type) + return; + yclk[low] = vbios->low_yclk; yclk[mid] = vbios->mid_yclk; yclk[high] = vbios->high_yclk; @@ -2013,6 +2029,11 @@ static void calculate_bandwidth( } } } + + kfree(tiling_mode); + kfree(surface_type); + kfree(yclk); + kfree(sclk); } /******************************************************************************* From patchwork Wed Mar 3 13:42:35 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 392071 Delivered-To: patch@linaro.org Received: by 2002:a02:290e:0:0:0:0:0 with SMTP id p14csp5132925jap; Wed, 3 Mar 2021 05:44:00 -0800 (PST) X-Google-Smtp-Source: ABdhPJxa7liHDKPxzqXL+wpzjQmktJYpekducLMgy/lhurfqHTRNEdnDkQ5HR1XnqVdZMh+W5EOs X-Received: by 2002:a62:7f12:0:b029:1ed:d708:ac31 with SMTP id a18-20020a627f120000b02901edd708ac31mr24172198pfd.21.1614779039988; Wed, 03 Mar 2021 05:43:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614779039; cv=none; d=google.com; s=arc-20160816; b=bHs0goxNIYdvT53jPzIUlMTFRA1i6Fka0r0c5/wni7bnM+vDU/fabKITlq7dl9r1TS EFgAZv/2TJ4maOkY78OHoisYA2dtUqTgQ7jE4NyTsvJk/4Usb0UQUKrvLrzos2MRaJDK ltcIr0CxP0OfhFZQzM/Z05jQxYgNPmrBcP62UAaOUgj4Fh6i9OTZaQU7KBw7HGLIqwFG deUsw23U9kQyaE6v4XnNEa68vfpisLCgzmj7obQHdMMwsu9esW7hw/4maNi6ZaEth3LL zv7wV+3iZrxmrr874eYfqLcWiLoZGGyHAWEZFvewWbnGKB3uQcMkiMl8roGyuBTQjn3O cLCg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:cc:list-subscribe :list-help:list-post:list-archive:list-unsubscribe:list-id :precedence:mime-version:references:in-reply-to:message-id:date :subject:to:from:dkim-signature:delivered-to; bh=yUZGxuvlROFUHGGII9fOtkqWP40Rxj/szydJyiBV4n8=; b=Puf5EHPGpiRZPb0XbTztHDx2mVyKC9j4laYrUzNjkFOk7NPnN5HCQ8TIM0MeK60d0l ZykndF0I2AHdTqa2v/SPvjzHUm3c5O1j4X/B1r3bIq3uOyGkQh5enDQZbt93oZjVLQIs XGF9sKt1r4Z0RlAlmFUIBoGXaNC+8pJfJovK1u8WmFx2n+OILSO9uHixIoYGpjewuXmn 7Ib7B9iy4kdo26y6CvZRmHe5C8L++XLEUwEbs6N9Ahdt6s5aqNXRafuIIpfAUPatleOE mJkCahTXfD+auqYMQIjN5q8ot6HZ2MPyUlyrYfFoWRcFP0c/CtXp1Bnm5+UUtMM1OGmM iELQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=RECUpYls; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 2610:10:20:722:a800:ff:fe36:1795 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from gabe.freedesktop.org (gabe.freedesktop.org. [2610:10:20:722:a800:ff:fe36:1795]) by mx.google.com with ESMTPS id q21si24815903pgg.113.2021.03.03.05.43.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Mar 2021 05:43:59 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 2610:10:20:722:a800:ff:fe36:1795 as permitted sender) client-ip=2610:10:20:722:a800:ff:fe36:1795; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=RECUpYls; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 2610:10:20:722:a800:ff:fe36:1795 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id C34E56E8E2; Wed, 3 Mar 2021 13:43:43 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wr1-x42e.google.com (mail-wr1-x42e.google.com [IPv6:2a00:1450:4864:20::42e]) by gabe.freedesktop.org (Postfix) with ESMTPS id 159C06E8E2 for ; Wed, 3 Mar 2021 13:43:41 +0000 (UTC) Received: by mail-wr1-x42e.google.com with SMTP id v15so23746344wrx.4 for ; Wed, 03 Mar 2021 05:43:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=9AJAppzBH/POa0q/AoG/7N37bnuqBzuHZqtW8TtPzFs=; b=RECUpYls0GDGdiRxdJXQ7K3xbf7r5BbWp6b2iHMwQQovUW+jx9jVB6WvZjmq0D+A1K aoPgXGH3ekd2uakq+SVcZ1FxgI2/2YTwPUW5kmT7+0B3tj9vWChB3h6klOyX1ghnjTJe wIjSunvPdEabWbgRcE5eTUAz+Yc9GZmusfhMKCS15X/BRJcamnQoB7ZgTyZt/CGEjxJF xyPOrTZlc9U9s+3zS2hx2Qdw7gpy9PviI1zXFn4ANPjnl163zlyVln/5/CdXCxRuCF9d Hm7R8eOZtQqUhVMr1qAg8I0pewTiScdbq7whaHZMuPRBLe1jhcJBNiIztCsrxkOVCI0n h5aA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=9AJAppzBH/POa0q/AoG/7N37bnuqBzuHZqtW8TtPzFs=; b=J1BswtqwbDbi1j1rbZk2r1oU+wFHYq7tGq7h2W1R7DLJh/XNnCjp/Ge5Rng+10EGEz aggB51EoV0yZuWgWbqOM7rwa8iGksj8/H/3zhV7oFtGKq7mfMrL/bODyc2/jm3LG3JeX U6q9GgcwotDspWn5DFZ9Iu+S635FZfYvcrnRofF3r9zGc2J4VidWIJSugG4J16mM8ovB 44BL/bV/rWRrO6w7699ViAYTZW3kcMA08m+8gbPQcRaLsXoEDWb8Rkf6u81TLoM0K54M kCgLyE05V8UpQ7JqqHo47W0qVQ8hVAonz0drAsMlVZz2Ad0EcrLo3VXQ39L2GmYiVxzH UWUg== X-Gm-Message-State: AOAM532DBKatixiZwhzKDmduYanbpTgegRCTOn1pzaWuP5E8hCUFWJfp lnNwYKHl4ssIeIlru01fd0lfEg== X-Received: by 2002:a5d:528f:: with SMTP id c15mr27391407wrv.142.1614779019564; Wed, 03 Mar 2021 05:43:39 -0800 (PST) Received: from dell.default ([91.110.221.155]) by smtp.gmail.com with ESMTPSA id w18sm6109524wrr.7.2021.03.03.05.43.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Mar 2021 05:43:38 -0800 (PST) From: Lee Jones To: lee.jones@linaro.org Subject: [PATCH 09/53] drm/amd/display/dc/calcs/dce_calcs: Remove some large variables from the stack Date: Wed, 3 Mar 2021 13:42:35 +0000 Message-Id: <20210303134319.3160762-10-lee.jones@linaro.org> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20210303134319.3160762-1-lee.jones@linaro.org> References: <20210303134319.3160762-1-lee.jones@linaro.org> MIME-Version: 1.0 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: Leo Li , linux-kernel@vger.kernel.org, amd-gfx@lists.freedesktop.org, David Airlie , dri-devel@lists.freedesktop.org, Alex Deucher , =?utf-8?q?Christian_K=C3=B6nig?= Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" Fixes the following W=1 kernel build warning(s): drivers/gpu/drm/amd/amdgpu/../display/dc/calcs/dce_calcs.c: In function ‘bw_calcs_init’: drivers/gpu/drm/amd/amdgpu/../display/dc/calcs/dce_calcs.c:2726:1: warning: the frame size of 1336 bytes is larger than 1024 bytes [-Wframe-larger-than=] Cc: Harry Wentland Cc: Leo Li Cc: Alex Deucher Cc: "Christian König" Cc: David Airlie Cc: Daniel Vetter Cc: amd-gfx@lists.freedesktop.org Cc: dri-devel@lists.freedesktop.org Signed-off-by: Lee Jones --- .../gpu/drm/amd/display/dc/calcs/dce_calcs.c | 1122 +++++++++-------- 1 file changed, 567 insertions(+), 555 deletions(-) diff --git a/drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c b/drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c index 4f0474a3bbcad..53f5c170d9c97 100644 --- a/drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c +++ b/drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c @@ -2043,707 +2043,719 @@ void bw_calcs_init(struct bw_calcs_dceip *bw_dceip, struct bw_calcs_vbios *bw_vbios, struct hw_asic_id asic_id) { - struct bw_calcs_dceip dceip = { 0 }; - struct bw_calcs_vbios vbios = { 0 }; + struct bw_calcs_dceip *dceip; + struct bw_calcs_vbios *vbios; enum bw_calcs_version version = bw_calcs_version_from_asic_id(asic_id); - dceip.version = version; + dceip = kzalloc(sizeof(dceip), GFP_KERNEL); + if (!dceip) + return; + + vbios = kzalloc(sizeof(vbios), GFP_KERNEL); + if (!vbios) { + kfree(dceip); + return; + } + + dceip->version = version; switch (version) { case BW_CALCS_VERSION_CARRIZO: - vbios.memory_type = bw_def_gddr5; - vbios.dram_channel_width_in_bits = 64; - vbios.number_of_dram_channels = asic_id.vram_width / vbios.dram_channel_width_in_bits; - vbios.number_of_dram_banks = 8; - vbios.high_yclk = bw_int_to_fixed(1600); - vbios.mid_yclk = bw_int_to_fixed(1600); - vbios.low_yclk = bw_frc_to_fixed(66666, 100); - vbios.low_sclk = bw_int_to_fixed(200); - vbios.mid1_sclk = bw_int_to_fixed(300); - vbios.mid2_sclk = bw_int_to_fixed(300); - vbios.mid3_sclk = bw_int_to_fixed(300); - vbios.mid4_sclk = bw_int_to_fixed(300); - vbios.mid5_sclk = bw_int_to_fixed(300); - vbios.mid6_sclk = bw_int_to_fixed(300); - vbios.high_sclk = bw_frc_to_fixed(62609, 100); - vbios.low_voltage_max_dispclk = bw_int_to_fixed(352); - vbios.mid_voltage_max_dispclk = bw_int_to_fixed(467); - vbios.high_voltage_max_dispclk = bw_int_to_fixed(643); - vbios.low_voltage_max_phyclk = bw_int_to_fixed(540); - vbios.mid_voltage_max_phyclk = bw_int_to_fixed(810); - vbios.high_voltage_max_phyclk = bw_int_to_fixed(810); - vbios.data_return_bus_width = bw_int_to_fixed(32); - vbios.trc = bw_int_to_fixed(50); - vbios.dmifmc_urgent_latency = bw_int_to_fixed(4); - vbios.stutter_self_refresh_exit_latency = bw_frc_to_fixed(153, 10); - vbios.stutter_self_refresh_entry_latency = bw_int_to_fixed(0); - vbios.nbp_state_change_latency = bw_frc_to_fixed(19649, 1000); - vbios.mcifwrmc_urgent_latency = bw_int_to_fixed(10); - vbios.scatter_gather_enable = true; - vbios.down_spread_percentage = bw_frc_to_fixed(5, 10); - vbios.cursor_width = 32; - vbios.average_compression_rate = 4; - vbios.number_of_request_slots_gmc_reserves_for_dmif_per_channel = 256; - vbios.blackout_duration = bw_int_to_fixed(0); /* us */ - vbios.maximum_blackout_recovery_time = bw_int_to_fixed(0); - - dceip.max_average_percent_of_ideal_port_bw_display_can_use_in_normal_system_operation = 100; - dceip.max_average_percent_of_ideal_drambw_display_can_use_in_normal_system_operation = 100; - dceip.percent_of_ideal_port_bw_received_after_urgent_latency = 100; - dceip.large_cursor = false; - dceip.dmif_request_buffer_size = bw_int_to_fixed(768); - dceip.dmif_pipe_en_fbc_chunk_tracker = false; - dceip.cursor_max_outstanding_group_num = 1; - dceip.lines_interleaved_into_lb = 2; - dceip.chunk_width = 256; - dceip.number_of_graphics_pipes = 3; - dceip.number_of_underlay_pipes = 1; - dceip.low_power_tiling_mode = 0; - dceip.display_write_back_supported = false; - dceip.argb_compression_support = false; - dceip.underlay_vscaler_efficiency6_bit_per_component = + vbios->memory_type = bw_def_gddr5; + vbios->dram_channel_width_in_bits = 64; + vbios->number_of_dram_channels = asic_id.vram_width / vbios->dram_channel_width_in_bits; + vbios->number_of_dram_banks = 8; + vbios->high_yclk = bw_int_to_fixed(1600); + vbios->mid_yclk = bw_int_to_fixed(1600); + vbios->low_yclk = bw_frc_to_fixed(66666, 100); + vbios->low_sclk = bw_int_to_fixed(200); + vbios->mid1_sclk = bw_int_to_fixed(300); + vbios->mid2_sclk = bw_int_to_fixed(300); + vbios->mid3_sclk = bw_int_to_fixed(300); + vbios->mid4_sclk = bw_int_to_fixed(300); + vbios->mid5_sclk = bw_int_to_fixed(300); + vbios->mid6_sclk = bw_int_to_fixed(300); + vbios->high_sclk = bw_frc_to_fixed(62609, 100); + vbios->low_voltage_max_dispclk = bw_int_to_fixed(352); + vbios->mid_voltage_max_dispclk = bw_int_to_fixed(467); + vbios->high_voltage_max_dispclk = bw_int_to_fixed(643); + vbios->low_voltage_max_phyclk = bw_int_to_fixed(540); + vbios->mid_voltage_max_phyclk = bw_int_to_fixed(810); + vbios->high_voltage_max_phyclk = bw_int_to_fixed(810); + vbios->data_return_bus_width = bw_int_to_fixed(32); + vbios->trc = bw_int_to_fixed(50); + vbios->dmifmc_urgent_latency = bw_int_to_fixed(4); + vbios->stutter_self_refresh_exit_latency = bw_frc_to_fixed(153, 10); + vbios->stutter_self_refresh_entry_latency = bw_int_to_fixed(0); + vbios->nbp_state_change_latency = bw_frc_to_fixed(19649, 1000); + vbios->mcifwrmc_urgent_latency = bw_int_to_fixed(10); + vbios->scatter_gather_enable = true; + vbios->down_spread_percentage = bw_frc_to_fixed(5, 10); + vbios->cursor_width = 32; + vbios->average_compression_rate = 4; + vbios->number_of_request_slots_gmc_reserves_for_dmif_per_channel = 256; + vbios->blackout_duration = bw_int_to_fixed(0); /* us */ + vbios->maximum_blackout_recovery_time = bw_int_to_fixed(0); + + dceip->max_average_percent_of_ideal_port_bw_display_can_use_in_normal_system_operation = 100; + dceip->max_average_percent_of_ideal_drambw_display_can_use_in_normal_system_operation = 100; + dceip->percent_of_ideal_port_bw_received_after_urgent_latency = 100; + dceip->large_cursor = false; + dceip->dmif_request_buffer_size = bw_int_to_fixed(768); + dceip->dmif_pipe_en_fbc_chunk_tracker = false; + dceip->cursor_max_outstanding_group_num = 1; + dceip->lines_interleaved_into_lb = 2; + dceip->chunk_width = 256; + dceip->number_of_graphics_pipes = 3; + dceip->number_of_underlay_pipes = 1; + dceip->low_power_tiling_mode = 0; + dceip->display_write_back_supported = false; + dceip->argb_compression_support = false; + dceip->underlay_vscaler_efficiency6_bit_per_component = bw_frc_to_fixed(35556, 10000); - dceip.underlay_vscaler_efficiency8_bit_per_component = + dceip->underlay_vscaler_efficiency8_bit_per_component = bw_frc_to_fixed(34286, 10000); - dceip.underlay_vscaler_efficiency10_bit_per_component = + dceip->underlay_vscaler_efficiency10_bit_per_component = bw_frc_to_fixed(32, 10); - dceip.underlay_vscaler_efficiency12_bit_per_component = + dceip->underlay_vscaler_efficiency12_bit_per_component = bw_int_to_fixed(3); - dceip.graphics_vscaler_efficiency6_bit_per_component = + dceip->graphics_vscaler_efficiency6_bit_per_component = bw_frc_to_fixed(35, 10); - dceip.graphics_vscaler_efficiency8_bit_per_component = + dceip->graphics_vscaler_efficiency8_bit_per_component = bw_frc_to_fixed(34286, 10000); - dceip.graphics_vscaler_efficiency10_bit_per_component = + dceip->graphics_vscaler_efficiency10_bit_per_component = bw_frc_to_fixed(32, 10); - dceip.graphics_vscaler_efficiency12_bit_per_component = + dceip->graphics_vscaler_efficiency12_bit_per_component = bw_int_to_fixed(3); - dceip.alpha_vscaler_efficiency = bw_int_to_fixed(3); - dceip.max_dmif_buffer_allocated = 2; - dceip.graphics_dmif_size = 12288; - dceip.underlay_luma_dmif_size = 19456; - dceip.underlay_chroma_dmif_size = 23552; - dceip.pre_downscaler_enabled = true; - dceip.underlay_downscale_prefetch_enabled = true; - dceip.lb_write_pixels_per_dispclk = bw_int_to_fixed(1); - dceip.lb_size_per_component444 = bw_int_to_fixed(82176); - dceip.graphics_lb_nodownscaling_multi_line_prefetching = false; - dceip.stutter_and_dram_clock_state_change_gated_before_cursor = + dceip->alpha_vscaler_efficiency = bw_int_to_fixed(3); + dceip->max_dmif_buffer_allocated = 2; + dceip->graphics_dmif_size = 12288; + dceip->underlay_luma_dmif_size = 19456; + dceip->underlay_chroma_dmif_size = 23552; + dceip->pre_downscaler_enabled = true; + dceip->underlay_downscale_prefetch_enabled = true; + dceip->lb_write_pixels_per_dispclk = bw_int_to_fixed(1); + dceip->lb_size_per_component444 = bw_int_to_fixed(82176); + dceip->graphics_lb_nodownscaling_multi_line_prefetching = false; + dceip->stutter_and_dram_clock_state_change_gated_before_cursor = bw_int_to_fixed(0); - dceip.underlay420_luma_lb_size_per_component = bw_int_to_fixed( + dceip->underlay420_luma_lb_size_per_component = bw_int_to_fixed( 82176); - dceip.underlay420_chroma_lb_size_per_component = + dceip->underlay420_chroma_lb_size_per_component = bw_int_to_fixed(164352); - dceip.underlay422_lb_size_per_component = bw_int_to_fixed( + dceip->underlay422_lb_size_per_component = bw_int_to_fixed( 82176); - dceip.cursor_chunk_width = bw_int_to_fixed(64); - dceip.cursor_dcp_buffer_lines = bw_int_to_fixed(4); - dceip.underlay_maximum_width_efficient_for_tiling = + dceip->cursor_chunk_width = bw_int_to_fixed(64); + dceip->cursor_dcp_buffer_lines = bw_int_to_fixed(4); + dceip->underlay_maximum_width_efficient_for_tiling = bw_int_to_fixed(1920); - dceip.underlay_maximum_height_efficient_for_tiling = + dceip->underlay_maximum_height_efficient_for_tiling = bw_int_to_fixed(1080); - dceip.peak_pte_request_to_eviction_ratio_limiting_multiple_displays_or_single_rotated_display = + dceip->peak_pte_request_to_eviction_ratio_limiting_multiple_displays_or_single_rotated_display = bw_frc_to_fixed(3, 10); - dceip.peak_pte_request_to_eviction_ratio_limiting_single_display_no_rotation = + dceip->peak_pte_request_to_eviction_ratio_limiting_single_display_no_rotation = bw_int_to_fixed(25); - dceip.minimum_outstanding_pte_request_limit = bw_int_to_fixed( + dceip->minimum_outstanding_pte_request_limit = bw_int_to_fixed( 2); - dceip.maximum_total_outstanding_pte_requests_allowed_by_saw = + dceip->maximum_total_outstanding_pte_requests_allowed_by_saw = bw_int_to_fixed(128); - dceip.limit_excessive_outstanding_dmif_requests = true; - dceip.linear_mode_line_request_alternation_slice = + dceip->limit_excessive_outstanding_dmif_requests = true; + dceip->linear_mode_line_request_alternation_slice = bw_int_to_fixed(64); - dceip.scatter_gather_lines_of_pte_prefetching_in_linear_mode = + dceip->scatter_gather_lines_of_pte_prefetching_in_linear_mode = 32; - dceip.display_write_back420_luma_mcifwr_buffer_size = 12288; - dceip.display_write_back420_chroma_mcifwr_buffer_size = 8192; - dceip.request_efficiency = bw_frc_to_fixed(8, 10); - dceip.dispclk_per_request = bw_int_to_fixed(2); - dceip.dispclk_ramping_factor = bw_frc_to_fixed(105, 100); - dceip.display_pipe_throughput_factor = bw_frc_to_fixed(105, 100); - dceip.scatter_gather_pte_request_rows_in_tiling_mode = 2; - dceip.mcifwr_all_surfaces_burst_time = bw_int_to_fixed(0); /* todo: this is a bug*/ + dceip->display_write_back420_luma_mcifwr_buffer_size = 12288; + dceip->display_write_back420_chroma_mcifwr_buffer_size = 8192; + dceip->request_efficiency = bw_frc_to_fixed(8, 10); + dceip->dispclk_per_request = bw_int_to_fixed(2); + dceip->dispclk_ramping_factor = bw_frc_to_fixed(105, 100); + dceip->display_pipe_throughput_factor = bw_frc_to_fixed(105, 100); + dceip->scatter_gather_pte_request_rows_in_tiling_mode = 2; + dceip->mcifwr_all_surfaces_burst_time = bw_int_to_fixed(0); /* todo: this is a bug*/ break; case BW_CALCS_VERSION_POLARIS10: /* TODO: Treat VEGAM the same as P10 for now * Need to tune the para for VEGAM if needed */ case BW_CALCS_VERSION_VEGAM: - vbios.memory_type = bw_def_gddr5; - vbios.dram_channel_width_in_bits = 32; - vbios.number_of_dram_channels = asic_id.vram_width / vbios.dram_channel_width_in_bits; - vbios.number_of_dram_banks = 8; - vbios.high_yclk = bw_int_to_fixed(6000); - vbios.mid_yclk = bw_int_to_fixed(3200); - vbios.low_yclk = bw_int_to_fixed(1000); - vbios.low_sclk = bw_int_to_fixed(300); - vbios.mid1_sclk = bw_int_to_fixed(400); - vbios.mid2_sclk = bw_int_to_fixed(500); - vbios.mid3_sclk = bw_int_to_fixed(600); - vbios.mid4_sclk = bw_int_to_fixed(700); - vbios.mid5_sclk = bw_int_to_fixed(800); - vbios.mid6_sclk = bw_int_to_fixed(974); - vbios.high_sclk = bw_int_to_fixed(1154); - vbios.low_voltage_max_dispclk = bw_int_to_fixed(459); - vbios.mid_voltage_max_dispclk = bw_int_to_fixed(654); - vbios.high_voltage_max_dispclk = bw_int_to_fixed(1108); - vbios.low_voltage_max_phyclk = bw_int_to_fixed(540); - vbios.mid_voltage_max_phyclk = bw_int_to_fixed(810); - vbios.high_voltage_max_phyclk = bw_int_to_fixed(810); - vbios.data_return_bus_width = bw_int_to_fixed(32); - vbios.trc = bw_int_to_fixed(48); - vbios.dmifmc_urgent_latency = bw_int_to_fixed(3); - vbios.stutter_self_refresh_exit_latency = bw_int_to_fixed(5); - vbios.stutter_self_refresh_entry_latency = bw_int_to_fixed(0); - vbios.nbp_state_change_latency = bw_int_to_fixed(45); - vbios.mcifwrmc_urgent_latency = bw_int_to_fixed(10); - vbios.scatter_gather_enable = true; - vbios.down_spread_percentage = bw_frc_to_fixed(5, 10); - vbios.cursor_width = 32; - vbios.average_compression_rate = 4; - vbios.number_of_request_slots_gmc_reserves_for_dmif_per_channel = 256; - vbios.blackout_duration = bw_int_to_fixed(0); /* us */ - vbios.maximum_blackout_recovery_time = bw_int_to_fixed(0); - - dceip.max_average_percent_of_ideal_port_bw_display_can_use_in_normal_system_operation = 100; - dceip.max_average_percent_of_ideal_drambw_display_can_use_in_normal_system_operation = 100; - dceip.percent_of_ideal_port_bw_received_after_urgent_latency = 100; - dceip.large_cursor = false; - dceip.dmif_request_buffer_size = bw_int_to_fixed(768); - dceip.dmif_pipe_en_fbc_chunk_tracker = false; - dceip.cursor_max_outstanding_group_num = 1; - dceip.lines_interleaved_into_lb = 2; - dceip.chunk_width = 256; - dceip.number_of_graphics_pipes = 6; - dceip.number_of_underlay_pipes = 0; - dceip.low_power_tiling_mode = 0; - dceip.display_write_back_supported = false; - dceip.argb_compression_support = true; - dceip.underlay_vscaler_efficiency6_bit_per_component = + vbios->memory_type = bw_def_gddr5; + vbios->dram_channel_width_in_bits = 32; + vbios->number_of_dram_channels = asic_id.vram_width / vbios->dram_channel_width_in_bits; + vbios->number_of_dram_banks = 8; + vbios->high_yclk = bw_int_to_fixed(6000); + vbios->mid_yclk = bw_int_to_fixed(3200); + vbios->low_yclk = bw_int_to_fixed(1000); + vbios->low_sclk = bw_int_to_fixed(300); + vbios->mid1_sclk = bw_int_to_fixed(400); + vbios->mid2_sclk = bw_int_to_fixed(500); + vbios->mid3_sclk = bw_int_to_fixed(600); + vbios->mid4_sclk = bw_int_to_fixed(700); + vbios->mid5_sclk = bw_int_to_fixed(800); + vbios->mid6_sclk = bw_int_to_fixed(974); + vbios->high_sclk = bw_int_to_fixed(1154); + vbios->low_voltage_max_dispclk = bw_int_to_fixed(459); + vbios->mid_voltage_max_dispclk = bw_int_to_fixed(654); + vbios->high_voltage_max_dispclk = bw_int_to_fixed(1108); + vbios->low_voltage_max_phyclk = bw_int_to_fixed(540); + vbios->mid_voltage_max_phyclk = bw_int_to_fixed(810); + vbios->high_voltage_max_phyclk = bw_int_to_fixed(810); + vbios->data_return_bus_width = bw_int_to_fixed(32); + vbios->trc = bw_int_to_fixed(48); + vbios->dmifmc_urgent_latency = bw_int_to_fixed(3); + vbios->stutter_self_refresh_exit_latency = bw_int_to_fixed(5); + vbios->stutter_self_refresh_entry_latency = bw_int_to_fixed(0); + vbios->nbp_state_change_latency = bw_int_to_fixed(45); + vbios->mcifwrmc_urgent_latency = bw_int_to_fixed(10); + vbios->scatter_gather_enable = true; + vbios->down_spread_percentage = bw_frc_to_fixed(5, 10); + vbios->cursor_width = 32; + vbios->average_compression_rate = 4; + vbios->number_of_request_slots_gmc_reserves_for_dmif_per_channel = 256; + vbios->blackout_duration = bw_int_to_fixed(0); /* us */ + vbios->maximum_blackout_recovery_time = bw_int_to_fixed(0); + + dceip->max_average_percent_of_ideal_port_bw_display_can_use_in_normal_system_operation = 100; + dceip->max_average_percent_of_ideal_drambw_display_can_use_in_normal_system_operation = 100; + dceip->percent_of_ideal_port_bw_received_after_urgent_latency = 100; + dceip->large_cursor = false; + dceip->dmif_request_buffer_size = bw_int_to_fixed(768); + dceip->dmif_pipe_en_fbc_chunk_tracker = false; + dceip->cursor_max_outstanding_group_num = 1; + dceip->lines_interleaved_into_lb = 2; + dceip->chunk_width = 256; + dceip->number_of_graphics_pipes = 6; + dceip->number_of_underlay_pipes = 0; + dceip->low_power_tiling_mode = 0; + dceip->display_write_back_supported = false; + dceip->argb_compression_support = true; + dceip->underlay_vscaler_efficiency6_bit_per_component = bw_frc_to_fixed(35556, 10000); - dceip.underlay_vscaler_efficiency8_bit_per_component = + dceip->underlay_vscaler_efficiency8_bit_per_component = bw_frc_to_fixed(34286, 10000); - dceip.underlay_vscaler_efficiency10_bit_per_component = + dceip->underlay_vscaler_efficiency10_bit_per_component = bw_frc_to_fixed(32, 10); - dceip.underlay_vscaler_efficiency12_bit_per_component = + dceip->underlay_vscaler_efficiency12_bit_per_component = bw_int_to_fixed(3); - dceip.graphics_vscaler_efficiency6_bit_per_component = + dceip->graphics_vscaler_efficiency6_bit_per_component = bw_frc_to_fixed(35, 10); - dceip.graphics_vscaler_efficiency8_bit_per_component = + dceip->graphics_vscaler_efficiency8_bit_per_component = bw_frc_to_fixed(34286, 10000); - dceip.graphics_vscaler_efficiency10_bit_per_component = + dceip->graphics_vscaler_efficiency10_bit_per_component = bw_frc_to_fixed(32, 10); - dceip.graphics_vscaler_efficiency12_bit_per_component = + dceip->graphics_vscaler_efficiency12_bit_per_component = bw_int_to_fixed(3); - dceip.alpha_vscaler_efficiency = bw_int_to_fixed(3); - dceip.max_dmif_buffer_allocated = 4; - dceip.graphics_dmif_size = 12288; - dceip.underlay_luma_dmif_size = 19456; - dceip.underlay_chroma_dmif_size = 23552; - dceip.pre_downscaler_enabled = true; - dceip.underlay_downscale_prefetch_enabled = true; - dceip.lb_write_pixels_per_dispclk = bw_int_to_fixed(1); - dceip.lb_size_per_component444 = bw_int_to_fixed(245952); - dceip.graphics_lb_nodownscaling_multi_line_prefetching = true; - dceip.stutter_and_dram_clock_state_change_gated_before_cursor = + dceip->alpha_vscaler_efficiency = bw_int_to_fixed(3); + dceip->max_dmif_buffer_allocated = 4; + dceip->graphics_dmif_size = 12288; + dceip->underlay_luma_dmif_size = 19456; + dceip->underlay_chroma_dmif_size = 23552; + dceip->pre_downscaler_enabled = true; + dceip->underlay_downscale_prefetch_enabled = true; + dceip->lb_write_pixels_per_dispclk = bw_int_to_fixed(1); + dceip->lb_size_per_component444 = bw_int_to_fixed(245952); + dceip->graphics_lb_nodownscaling_multi_line_prefetching = true; + dceip->stutter_and_dram_clock_state_change_gated_before_cursor = bw_int_to_fixed(1); - dceip.underlay420_luma_lb_size_per_component = bw_int_to_fixed( + dceip->underlay420_luma_lb_size_per_component = bw_int_to_fixed( 82176); - dceip.underlay420_chroma_lb_size_per_component = + dceip->underlay420_chroma_lb_size_per_component = bw_int_to_fixed(164352); - dceip.underlay422_lb_size_per_component = bw_int_to_fixed( + dceip->underlay422_lb_size_per_component = bw_int_to_fixed( 82176); - dceip.cursor_chunk_width = bw_int_to_fixed(64); - dceip.cursor_dcp_buffer_lines = bw_int_to_fixed(4); - dceip.underlay_maximum_width_efficient_for_tiling = + dceip->cursor_chunk_width = bw_int_to_fixed(64); + dceip->cursor_dcp_buffer_lines = bw_int_to_fixed(4); + dceip->underlay_maximum_width_efficient_for_tiling = bw_int_to_fixed(1920); - dceip.underlay_maximum_height_efficient_for_tiling = + dceip->underlay_maximum_height_efficient_for_tiling = bw_int_to_fixed(1080); - dceip.peak_pte_request_to_eviction_ratio_limiting_multiple_displays_or_single_rotated_display = + dceip->peak_pte_request_to_eviction_ratio_limiting_multiple_displays_or_single_rotated_display = bw_frc_to_fixed(3, 10); - dceip.peak_pte_request_to_eviction_ratio_limiting_single_display_no_rotation = + dceip->peak_pte_request_to_eviction_ratio_limiting_single_display_no_rotation = bw_int_to_fixed(25); - dceip.minimum_outstanding_pte_request_limit = bw_int_to_fixed( + dceip->minimum_outstanding_pte_request_limit = bw_int_to_fixed( 2); - dceip.maximum_total_outstanding_pte_requests_allowed_by_saw = + dceip->maximum_total_outstanding_pte_requests_allowed_by_saw = bw_int_to_fixed(128); - dceip.limit_excessive_outstanding_dmif_requests = true; - dceip.linear_mode_line_request_alternation_slice = + dceip->limit_excessive_outstanding_dmif_requests = true; + dceip->linear_mode_line_request_alternation_slice = bw_int_to_fixed(64); - dceip.scatter_gather_lines_of_pte_prefetching_in_linear_mode = + dceip->scatter_gather_lines_of_pte_prefetching_in_linear_mode = 32; - dceip.display_write_back420_luma_mcifwr_buffer_size = 12288; - dceip.display_write_back420_chroma_mcifwr_buffer_size = 8192; - dceip.request_efficiency = bw_frc_to_fixed(8, 10); - dceip.dispclk_per_request = bw_int_to_fixed(2); - dceip.dispclk_ramping_factor = bw_frc_to_fixed(105, 100); - dceip.display_pipe_throughput_factor = bw_frc_to_fixed(105, 100); - dceip.scatter_gather_pte_request_rows_in_tiling_mode = 2; - dceip.mcifwr_all_surfaces_burst_time = bw_int_to_fixed(0); + dceip->display_write_back420_luma_mcifwr_buffer_size = 12288; + dceip->display_write_back420_chroma_mcifwr_buffer_size = 8192; + dceip->request_efficiency = bw_frc_to_fixed(8, 10); + dceip->dispclk_per_request = bw_int_to_fixed(2); + dceip->dispclk_ramping_factor = bw_frc_to_fixed(105, 100); + dceip->display_pipe_throughput_factor = bw_frc_to_fixed(105, 100); + dceip->scatter_gather_pte_request_rows_in_tiling_mode = 2; + dceip->mcifwr_all_surfaces_burst_time = bw_int_to_fixed(0); break; case BW_CALCS_VERSION_POLARIS11: - vbios.memory_type = bw_def_gddr5; - vbios.dram_channel_width_in_bits = 32; - vbios.number_of_dram_channels = asic_id.vram_width / vbios.dram_channel_width_in_bits; - vbios.number_of_dram_banks = 8; - vbios.high_yclk = bw_int_to_fixed(6000); - vbios.mid_yclk = bw_int_to_fixed(3200); - vbios.low_yclk = bw_int_to_fixed(1000); - vbios.low_sclk = bw_int_to_fixed(300); - vbios.mid1_sclk = bw_int_to_fixed(400); - vbios.mid2_sclk = bw_int_to_fixed(500); - vbios.mid3_sclk = bw_int_to_fixed(600); - vbios.mid4_sclk = bw_int_to_fixed(700); - vbios.mid5_sclk = bw_int_to_fixed(800); - vbios.mid6_sclk = bw_int_to_fixed(974); - vbios.high_sclk = bw_int_to_fixed(1154); - vbios.low_voltage_max_dispclk = bw_int_to_fixed(459); - vbios.mid_voltage_max_dispclk = bw_int_to_fixed(654); - vbios.high_voltage_max_dispclk = bw_int_to_fixed(1108); - vbios.low_voltage_max_phyclk = bw_int_to_fixed(540); - vbios.mid_voltage_max_phyclk = bw_int_to_fixed(810); - vbios.high_voltage_max_phyclk = bw_int_to_fixed(810); - vbios.data_return_bus_width = bw_int_to_fixed(32); - vbios.trc = bw_int_to_fixed(48); - if (vbios.number_of_dram_channels == 2) // 64-bit - vbios.dmifmc_urgent_latency = bw_int_to_fixed(4); + vbios->memory_type = bw_def_gddr5; + vbios->dram_channel_width_in_bits = 32; + vbios->number_of_dram_channels = asic_id.vram_width / vbios->dram_channel_width_in_bits; + vbios->number_of_dram_banks = 8; + vbios->high_yclk = bw_int_to_fixed(6000); + vbios->mid_yclk = bw_int_to_fixed(3200); + vbios->low_yclk = bw_int_to_fixed(1000); + vbios->low_sclk = bw_int_to_fixed(300); + vbios->mid1_sclk = bw_int_to_fixed(400); + vbios->mid2_sclk = bw_int_to_fixed(500); + vbios->mid3_sclk = bw_int_to_fixed(600); + vbios->mid4_sclk = bw_int_to_fixed(700); + vbios->mid5_sclk = bw_int_to_fixed(800); + vbios->mid6_sclk = bw_int_to_fixed(974); + vbios->high_sclk = bw_int_to_fixed(1154); + vbios->low_voltage_max_dispclk = bw_int_to_fixed(459); + vbios->mid_voltage_max_dispclk = bw_int_to_fixed(654); + vbios->high_voltage_max_dispclk = bw_int_to_fixed(1108); + vbios->low_voltage_max_phyclk = bw_int_to_fixed(540); + vbios->mid_voltage_max_phyclk = bw_int_to_fixed(810); + vbios->high_voltage_max_phyclk = bw_int_to_fixed(810); + vbios->data_return_bus_width = bw_int_to_fixed(32); + vbios->trc = bw_int_to_fixed(48); + if (vbios->number_of_dram_channels == 2) // 64-bit + vbios->dmifmc_urgent_latency = bw_int_to_fixed(4); else - vbios.dmifmc_urgent_latency = bw_int_to_fixed(3); - vbios.stutter_self_refresh_exit_latency = bw_int_to_fixed(5); - vbios.stutter_self_refresh_entry_latency = bw_int_to_fixed(0); - vbios.nbp_state_change_latency = bw_int_to_fixed(45); - vbios.mcifwrmc_urgent_latency = bw_int_to_fixed(10); - vbios.scatter_gather_enable = true; - vbios.down_spread_percentage = bw_frc_to_fixed(5, 10); - vbios.cursor_width = 32; - vbios.average_compression_rate = 4; - vbios.number_of_request_slots_gmc_reserves_for_dmif_per_channel = 256; - vbios.blackout_duration = bw_int_to_fixed(0); /* us */ - vbios.maximum_blackout_recovery_time = bw_int_to_fixed(0); - - dceip.max_average_percent_of_ideal_port_bw_display_can_use_in_normal_system_operation = 100; - dceip.max_average_percent_of_ideal_drambw_display_can_use_in_normal_system_operation = 100; - dceip.percent_of_ideal_port_bw_received_after_urgent_latency = 100; - dceip.large_cursor = false; - dceip.dmif_request_buffer_size = bw_int_to_fixed(768); - dceip.dmif_pipe_en_fbc_chunk_tracker = false; - dceip.cursor_max_outstanding_group_num = 1; - dceip.lines_interleaved_into_lb = 2; - dceip.chunk_width = 256; - dceip.number_of_graphics_pipes = 5; - dceip.number_of_underlay_pipes = 0; - dceip.low_power_tiling_mode = 0; - dceip.display_write_back_supported = false; - dceip.argb_compression_support = true; - dceip.underlay_vscaler_efficiency6_bit_per_component = + vbios->dmifmc_urgent_latency = bw_int_to_fixed(3); + vbios->stutter_self_refresh_exit_latency = bw_int_to_fixed(5); + vbios->stutter_self_refresh_entry_latency = bw_int_to_fixed(0); + vbios->nbp_state_change_latency = bw_int_to_fixed(45); + vbios->mcifwrmc_urgent_latency = bw_int_to_fixed(10); + vbios->scatter_gather_enable = true; + vbios->down_spread_percentage = bw_frc_to_fixed(5, 10); + vbios->cursor_width = 32; + vbios->average_compression_rate = 4; + vbios->number_of_request_slots_gmc_reserves_for_dmif_per_channel = 256; + vbios->blackout_duration = bw_int_to_fixed(0); /* us */ + vbios->maximum_blackout_recovery_time = bw_int_to_fixed(0); + + dceip->max_average_percent_of_ideal_port_bw_display_can_use_in_normal_system_operation = 100; + dceip->max_average_percent_of_ideal_drambw_display_can_use_in_normal_system_operation = 100; + dceip->percent_of_ideal_port_bw_received_after_urgent_latency = 100; + dceip->large_cursor = false; + dceip->dmif_request_buffer_size = bw_int_to_fixed(768); + dceip->dmif_pipe_en_fbc_chunk_tracker = false; + dceip->cursor_max_outstanding_group_num = 1; + dceip->lines_interleaved_into_lb = 2; + dceip->chunk_width = 256; + dceip->number_of_graphics_pipes = 5; + dceip->number_of_underlay_pipes = 0; + dceip->low_power_tiling_mode = 0; + dceip->display_write_back_supported = false; + dceip->argb_compression_support = true; + dceip->underlay_vscaler_efficiency6_bit_per_component = bw_frc_to_fixed(35556, 10000); - dceip.underlay_vscaler_efficiency8_bit_per_component = + dceip->underlay_vscaler_efficiency8_bit_per_component = bw_frc_to_fixed(34286, 10000); - dceip.underlay_vscaler_efficiency10_bit_per_component = + dceip->underlay_vscaler_efficiency10_bit_per_component = bw_frc_to_fixed(32, 10); - dceip.underlay_vscaler_efficiency12_bit_per_component = + dceip->underlay_vscaler_efficiency12_bit_per_component = bw_int_to_fixed(3); - dceip.graphics_vscaler_efficiency6_bit_per_component = + dceip->graphics_vscaler_efficiency6_bit_per_component = bw_frc_to_fixed(35, 10); - dceip.graphics_vscaler_efficiency8_bit_per_component = + dceip->graphics_vscaler_efficiency8_bit_per_component = bw_frc_to_fixed(34286, 10000); - dceip.graphics_vscaler_efficiency10_bit_per_component = + dceip->graphics_vscaler_efficiency10_bit_per_component = bw_frc_to_fixed(32, 10); - dceip.graphics_vscaler_efficiency12_bit_per_component = + dceip->graphics_vscaler_efficiency12_bit_per_component = bw_int_to_fixed(3); - dceip.alpha_vscaler_efficiency = bw_int_to_fixed(3); - dceip.max_dmif_buffer_allocated = 4; - dceip.graphics_dmif_size = 12288; - dceip.underlay_luma_dmif_size = 19456; - dceip.underlay_chroma_dmif_size = 23552; - dceip.pre_downscaler_enabled = true; - dceip.underlay_downscale_prefetch_enabled = true; - dceip.lb_write_pixels_per_dispclk = bw_int_to_fixed(1); - dceip.lb_size_per_component444 = bw_int_to_fixed(245952); - dceip.graphics_lb_nodownscaling_multi_line_prefetching = true; - dceip.stutter_and_dram_clock_state_change_gated_before_cursor = + dceip->alpha_vscaler_efficiency = bw_int_to_fixed(3); + dceip->max_dmif_buffer_allocated = 4; + dceip->graphics_dmif_size = 12288; + dceip->underlay_luma_dmif_size = 19456; + dceip->underlay_chroma_dmif_size = 23552; + dceip->pre_downscaler_enabled = true; + dceip->underlay_downscale_prefetch_enabled = true; + dceip->lb_write_pixels_per_dispclk = bw_int_to_fixed(1); + dceip->lb_size_per_component444 = bw_int_to_fixed(245952); + dceip->graphics_lb_nodownscaling_multi_line_prefetching = true; + dceip->stutter_and_dram_clock_state_change_gated_before_cursor = bw_int_to_fixed(1); - dceip.underlay420_luma_lb_size_per_component = bw_int_to_fixed( + dceip->underlay420_luma_lb_size_per_component = bw_int_to_fixed( 82176); - dceip.underlay420_chroma_lb_size_per_component = + dceip->underlay420_chroma_lb_size_per_component = bw_int_to_fixed(164352); - dceip.underlay422_lb_size_per_component = bw_int_to_fixed( + dceip->underlay422_lb_size_per_component = bw_int_to_fixed( 82176); - dceip.cursor_chunk_width = bw_int_to_fixed(64); - dceip.cursor_dcp_buffer_lines = bw_int_to_fixed(4); - dceip.underlay_maximum_width_efficient_for_tiling = + dceip->cursor_chunk_width = bw_int_to_fixed(64); + dceip->cursor_dcp_buffer_lines = bw_int_to_fixed(4); + dceip->underlay_maximum_width_efficient_for_tiling = bw_int_to_fixed(1920); - dceip.underlay_maximum_height_efficient_for_tiling = + dceip->underlay_maximum_height_efficient_for_tiling = bw_int_to_fixed(1080); - dceip.peak_pte_request_to_eviction_ratio_limiting_multiple_displays_or_single_rotated_display = + dceip->peak_pte_request_to_eviction_ratio_limiting_multiple_displays_or_single_rotated_display = bw_frc_to_fixed(3, 10); - dceip.peak_pte_request_to_eviction_ratio_limiting_single_display_no_rotation = + dceip->peak_pte_request_to_eviction_ratio_limiting_single_display_no_rotation = bw_int_to_fixed(25); - dceip.minimum_outstanding_pte_request_limit = bw_int_to_fixed( + dceip->minimum_outstanding_pte_request_limit = bw_int_to_fixed( 2); - dceip.maximum_total_outstanding_pte_requests_allowed_by_saw = + dceip->maximum_total_outstanding_pte_requests_allowed_by_saw = bw_int_to_fixed(128); - dceip.limit_excessive_outstanding_dmif_requests = true; - dceip.linear_mode_line_request_alternation_slice = + dceip->limit_excessive_outstanding_dmif_requests = true; + dceip->linear_mode_line_request_alternation_slice = bw_int_to_fixed(64); - dceip.scatter_gather_lines_of_pte_prefetching_in_linear_mode = + dceip->scatter_gather_lines_of_pte_prefetching_in_linear_mode = 32; - dceip.display_write_back420_luma_mcifwr_buffer_size = 12288; - dceip.display_write_back420_chroma_mcifwr_buffer_size = 8192; - dceip.request_efficiency = bw_frc_to_fixed(8, 10); - dceip.dispclk_per_request = bw_int_to_fixed(2); - dceip.dispclk_ramping_factor = bw_frc_to_fixed(105, 100); - dceip.display_pipe_throughput_factor = bw_frc_to_fixed(105, 100); - dceip.scatter_gather_pte_request_rows_in_tiling_mode = 2; - dceip.mcifwr_all_surfaces_burst_time = bw_int_to_fixed(0); + dceip->display_write_back420_luma_mcifwr_buffer_size = 12288; + dceip->display_write_back420_chroma_mcifwr_buffer_size = 8192; + dceip->request_efficiency = bw_frc_to_fixed(8, 10); + dceip->dispclk_per_request = bw_int_to_fixed(2); + dceip->dispclk_ramping_factor = bw_frc_to_fixed(105, 100); + dceip->display_pipe_throughput_factor = bw_frc_to_fixed(105, 100); + dceip->scatter_gather_pte_request_rows_in_tiling_mode = 2; + dceip->mcifwr_all_surfaces_burst_time = bw_int_to_fixed(0); break; case BW_CALCS_VERSION_POLARIS12: - vbios.memory_type = bw_def_gddr5; - vbios.dram_channel_width_in_bits = 32; - vbios.number_of_dram_channels = asic_id.vram_width / vbios.dram_channel_width_in_bits; - vbios.number_of_dram_banks = 8; - vbios.high_yclk = bw_int_to_fixed(6000); - vbios.mid_yclk = bw_int_to_fixed(3200); - vbios.low_yclk = bw_int_to_fixed(1000); - vbios.low_sclk = bw_int_to_fixed(678); - vbios.mid1_sclk = bw_int_to_fixed(864); - vbios.mid2_sclk = bw_int_to_fixed(900); - vbios.mid3_sclk = bw_int_to_fixed(920); - vbios.mid4_sclk = bw_int_to_fixed(940); - vbios.mid5_sclk = bw_int_to_fixed(960); - vbios.mid6_sclk = bw_int_to_fixed(980); - vbios.high_sclk = bw_int_to_fixed(1049); - vbios.low_voltage_max_dispclk = bw_int_to_fixed(459); - vbios.mid_voltage_max_dispclk = bw_int_to_fixed(654); - vbios.high_voltage_max_dispclk = bw_int_to_fixed(1108); - vbios.low_voltage_max_phyclk = bw_int_to_fixed(540); - vbios.mid_voltage_max_phyclk = bw_int_to_fixed(810); - vbios.high_voltage_max_phyclk = bw_int_to_fixed(810); - vbios.data_return_bus_width = bw_int_to_fixed(32); - vbios.trc = bw_int_to_fixed(48); - if (vbios.number_of_dram_channels == 2) // 64-bit - vbios.dmifmc_urgent_latency = bw_int_to_fixed(4); + vbios->memory_type = bw_def_gddr5; + vbios->dram_channel_width_in_bits = 32; + vbios->number_of_dram_channels = asic_id.vram_width / vbios->dram_channel_width_in_bits; + vbios->number_of_dram_banks = 8; + vbios->high_yclk = bw_int_to_fixed(6000); + vbios->mid_yclk = bw_int_to_fixed(3200); + vbios->low_yclk = bw_int_to_fixed(1000); + vbios->low_sclk = bw_int_to_fixed(678); + vbios->mid1_sclk = bw_int_to_fixed(864); + vbios->mid2_sclk = bw_int_to_fixed(900); + vbios->mid3_sclk = bw_int_to_fixed(920); + vbios->mid4_sclk = bw_int_to_fixed(940); + vbios->mid5_sclk = bw_int_to_fixed(960); + vbios->mid6_sclk = bw_int_to_fixed(980); + vbios->high_sclk = bw_int_to_fixed(1049); + vbios->low_voltage_max_dispclk = bw_int_to_fixed(459); + vbios->mid_voltage_max_dispclk = bw_int_to_fixed(654); + vbios->high_voltage_max_dispclk = bw_int_to_fixed(1108); + vbios->low_voltage_max_phyclk = bw_int_to_fixed(540); + vbios->mid_voltage_max_phyclk = bw_int_to_fixed(810); + vbios->high_voltage_max_phyclk = bw_int_to_fixed(810); + vbios->data_return_bus_width = bw_int_to_fixed(32); + vbios->trc = bw_int_to_fixed(48); + if (vbios->number_of_dram_channels == 2) // 64-bit + vbios->dmifmc_urgent_latency = bw_int_to_fixed(4); else - vbios.dmifmc_urgent_latency = bw_int_to_fixed(3); - vbios.stutter_self_refresh_exit_latency = bw_int_to_fixed(5); - vbios.stutter_self_refresh_entry_latency = bw_int_to_fixed(0); - vbios.nbp_state_change_latency = bw_int_to_fixed(250); - vbios.mcifwrmc_urgent_latency = bw_int_to_fixed(10); - vbios.scatter_gather_enable = false; - vbios.down_spread_percentage = bw_frc_to_fixed(5, 10); - vbios.cursor_width = 32; - vbios.average_compression_rate = 4; - vbios.number_of_request_slots_gmc_reserves_for_dmif_per_channel = 256; - vbios.blackout_duration = bw_int_to_fixed(0); /* us */ - vbios.maximum_blackout_recovery_time = bw_int_to_fixed(0); - - dceip.max_average_percent_of_ideal_port_bw_display_can_use_in_normal_system_operation = 100; - dceip.max_average_percent_of_ideal_drambw_display_can_use_in_normal_system_operation = 100; - dceip.percent_of_ideal_port_bw_received_after_urgent_latency = 100; - dceip.large_cursor = false; - dceip.dmif_request_buffer_size = bw_int_to_fixed(768); - dceip.dmif_pipe_en_fbc_chunk_tracker = false; - dceip.cursor_max_outstanding_group_num = 1; - dceip.lines_interleaved_into_lb = 2; - dceip.chunk_width = 256; - dceip.number_of_graphics_pipes = 5; - dceip.number_of_underlay_pipes = 0; - dceip.low_power_tiling_mode = 0; - dceip.display_write_back_supported = true; - dceip.argb_compression_support = true; - dceip.underlay_vscaler_efficiency6_bit_per_component = + vbios->dmifmc_urgent_latency = bw_int_to_fixed(3); + vbios->stutter_self_refresh_exit_latency = bw_int_to_fixed(5); + vbios->stutter_self_refresh_entry_latency = bw_int_to_fixed(0); + vbios->nbp_state_change_latency = bw_int_to_fixed(250); + vbios->mcifwrmc_urgent_latency = bw_int_to_fixed(10); + vbios->scatter_gather_enable = false; + vbios->down_spread_percentage = bw_frc_to_fixed(5, 10); + vbios->cursor_width = 32; + vbios->average_compression_rate = 4; + vbios->number_of_request_slots_gmc_reserves_for_dmif_per_channel = 256; + vbios->blackout_duration = bw_int_to_fixed(0); /* us */ + vbios->maximum_blackout_recovery_time = bw_int_to_fixed(0); + + dceip->max_average_percent_of_ideal_port_bw_display_can_use_in_normal_system_operation = 100; + dceip->max_average_percent_of_ideal_drambw_display_can_use_in_normal_system_operation = 100; + dceip->percent_of_ideal_port_bw_received_after_urgent_latency = 100; + dceip->large_cursor = false; + dceip->dmif_request_buffer_size = bw_int_to_fixed(768); + dceip->dmif_pipe_en_fbc_chunk_tracker = false; + dceip->cursor_max_outstanding_group_num = 1; + dceip->lines_interleaved_into_lb = 2; + dceip->chunk_width = 256; + dceip->number_of_graphics_pipes = 5; + dceip->number_of_underlay_pipes = 0; + dceip->low_power_tiling_mode = 0; + dceip->display_write_back_supported = true; + dceip->argb_compression_support = true; + dceip->underlay_vscaler_efficiency6_bit_per_component = bw_frc_to_fixed(35556, 10000); - dceip.underlay_vscaler_efficiency8_bit_per_component = + dceip->underlay_vscaler_efficiency8_bit_per_component = bw_frc_to_fixed(34286, 10000); - dceip.underlay_vscaler_efficiency10_bit_per_component = + dceip->underlay_vscaler_efficiency10_bit_per_component = bw_frc_to_fixed(32, 10); - dceip.underlay_vscaler_efficiency12_bit_per_component = + dceip->underlay_vscaler_efficiency12_bit_per_component = bw_int_to_fixed(3); - dceip.graphics_vscaler_efficiency6_bit_per_component = + dceip->graphics_vscaler_efficiency6_bit_per_component = bw_frc_to_fixed(35, 10); - dceip.graphics_vscaler_efficiency8_bit_per_component = + dceip->graphics_vscaler_efficiency8_bit_per_component = bw_frc_to_fixed(34286, 10000); - dceip.graphics_vscaler_efficiency10_bit_per_component = + dceip->graphics_vscaler_efficiency10_bit_per_component = bw_frc_to_fixed(32, 10); - dceip.graphics_vscaler_efficiency12_bit_per_component = + dceip->graphics_vscaler_efficiency12_bit_per_component = bw_int_to_fixed(3); - dceip.alpha_vscaler_efficiency = bw_int_to_fixed(3); - dceip.max_dmif_buffer_allocated = 4; - dceip.graphics_dmif_size = 12288; - dceip.underlay_luma_dmif_size = 19456; - dceip.underlay_chroma_dmif_size = 23552; - dceip.pre_downscaler_enabled = true; - dceip.underlay_downscale_prefetch_enabled = true; - dceip.lb_write_pixels_per_dispclk = bw_int_to_fixed(1); - dceip.lb_size_per_component444 = bw_int_to_fixed(245952); - dceip.graphics_lb_nodownscaling_multi_line_prefetching = true; - dceip.stutter_and_dram_clock_state_change_gated_before_cursor = + dceip->alpha_vscaler_efficiency = bw_int_to_fixed(3); + dceip->max_dmif_buffer_allocated = 4; + dceip->graphics_dmif_size = 12288; + dceip->underlay_luma_dmif_size = 19456; + dceip->underlay_chroma_dmif_size = 23552; + dceip->pre_downscaler_enabled = true; + dceip->underlay_downscale_prefetch_enabled = true; + dceip->lb_write_pixels_per_dispclk = bw_int_to_fixed(1); + dceip->lb_size_per_component444 = bw_int_to_fixed(245952); + dceip->graphics_lb_nodownscaling_multi_line_prefetching = true; + dceip->stutter_and_dram_clock_state_change_gated_before_cursor = bw_int_to_fixed(1); - dceip.underlay420_luma_lb_size_per_component = bw_int_to_fixed( + dceip->underlay420_luma_lb_size_per_component = bw_int_to_fixed( 82176); - dceip.underlay420_chroma_lb_size_per_component = + dceip->underlay420_chroma_lb_size_per_component = bw_int_to_fixed(164352); - dceip.underlay422_lb_size_per_component = bw_int_to_fixed( + dceip->underlay422_lb_size_per_component = bw_int_to_fixed( 82176); - dceip.cursor_chunk_width = bw_int_to_fixed(64); - dceip.cursor_dcp_buffer_lines = bw_int_to_fixed(4); - dceip.underlay_maximum_width_efficient_for_tiling = + dceip->cursor_chunk_width = bw_int_to_fixed(64); + dceip->cursor_dcp_buffer_lines = bw_int_to_fixed(4); + dceip->underlay_maximum_width_efficient_for_tiling = bw_int_to_fixed(1920); - dceip.underlay_maximum_height_efficient_for_tiling = + dceip->underlay_maximum_height_efficient_for_tiling = bw_int_to_fixed(1080); - dceip.peak_pte_request_to_eviction_ratio_limiting_multiple_displays_or_single_rotated_display = + dceip->peak_pte_request_to_eviction_ratio_limiting_multiple_displays_or_single_rotated_display = bw_frc_to_fixed(3, 10); - dceip.peak_pte_request_to_eviction_ratio_limiting_single_display_no_rotation = + dceip->peak_pte_request_to_eviction_ratio_limiting_single_display_no_rotation = bw_int_to_fixed(25); - dceip.minimum_outstanding_pte_request_limit = bw_int_to_fixed( + dceip->minimum_outstanding_pte_request_limit = bw_int_to_fixed( 2); - dceip.maximum_total_outstanding_pte_requests_allowed_by_saw = + dceip->maximum_total_outstanding_pte_requests_allowed_by_saw = bw_int_to_fixed(128); - dceip.limit_excessive_outstanding_dmif_requests = true; - dceip.linear_mode_line_request_alternation_slice = + dceip->limit_excessive_outstanding_dmif_requests = true; + dceip->linear_mode_line_request_alternation_slice = bw_int_to_fixed(64); - dceip.scatter_gather_lines_of_pte_prefetching_in_linear_mode = + dceip->scatter_gather_lines_of_pte_prefetching_in_linear_mode = 32; - dceip.display_write_back420_luma_mcifwr_buffer_size = 12288; - dceip.display_write_back420_chroma_mcifwr_buffer_size = 8192; - dceip.request_efficiency = bw_frc_to_fixed(8, 10); - dceip.dispclk_per_request = bw_int_to_fixed(2); - dceip.dispclk_ramping_factor = bw_frc_to_fixed(105, 100); - dceip.display_pipe_throughput_factor = bw_frc_to_fixed(105, 100); - dceip.scatter_gather_pte_request_rows_in_tiling_mode = 2; - dceip.mcifwr_all_surfaces_burst_time = bw_int_to_fixed(0); + dceip->display_write_back420_luma_mcifwr_buffer_size = 12288; + dceip->display_write_back420_chroma_mcifwr_buffer_size = 8192; + dceip->request_efficiency = bw_frc_to_fixed(8, 10); + dceip->dispclk_per_request = bw_int_to_fixed(2); + dceip->dispclk_ramping_factor = bw_frc_to_fixed(105, 100); + dceip->display_pipe_throughput_factor = bw_frc_to_fixed(105, 100); + dceip->scatter_gather_pte_request_rows_in_tiling_mode = 2; + dceip->mcifwr_all_surfaces_burst_time = bw_int_to_fixed(0); break; case BW_CALCS_VERSION_STONEY: - vbios.memory_type = bw_def_gddr5; - vbios.dram_channel_width_in_bits = 64; - vbios.number_of_dram_channels = asic_id.vram_width / vbios.dram_channel_width_in_bits; - vbios.number_of_dram_banks = 8; - vbios.high_yclk = bw_int_to_fixed(1866); - vbios.mid_yclk = bw_int_to_fixed(1866); - vbios.low_yclk = bw_int_to_fixed(1333); - vbios.low_sclk = bw_int_to_fixed(200); - vbios.mid1_sclk = bw_int_to_fixed(600); - vbios.mid2_sclk = bw_int_to_fixed(600); - vbios.mid3_sclk = bw_int_to_fixed(600); - vbios.mid4_sclk = bw_int_to_fixed(600); - vbios.mid5_sclk = bw_int_to_fixed(600); - vbios.mid6_sclk = bw_int_to_fixed(600); - vbios.high_sclk = bw_int_to_fixed(800); - vbios.low_voltage_max_dispclk = bw_int_to_fixed(352); - vbios.mid_voltage_max_dispclk = bw_int_to_fixed(467); - vbios.high_voltage_max_dispclk = bw_int_to_fixed(643); - vbios.low_voltage_max_phyclk = bw_int_to_fixed(540); - vbios.mid_voltage_max_phyclk = bw_int_to_fixed(810); - vbios.high_voltage_max_phyclk = bw_int_to_fixed(810); - vbios.data_return_bus_width = bw_int_to_fixed(32); - vbios.trc = bw_int_to_fixed(50); - vbios.dmifmc_urgent_latency = bw_int_to_fixed(4); - vbios.stutter_self_refresh_exit_latency = bw_frc_to_fixed(158, 10); - vbios.stutter_self_refresh_entry_latency = bw_int_to_fixed(0); - vbios.nbp_state_change_latency = bw_frc_to_fixed(2008, 100); - vbios.mcifwrmc_urgent_latency = bw_int_to_fixed(10); - vbios.scatter_gather_enable = true; - vbios.down_spread_percentage = bw_frc_to_fixed(5, 10); - vbios.cursor_width = 32; - vbios.average_compression_rate = 4; - vbios.number_of_request_slots_gmc_reserves_for_dmif_per_channel = 256; - vbios.blackout_duration = bw_int_to_fixed(0); /* us */ - vbios.maximum_blackout_recovery_time = bw_int_to_fixed(0); - - dceip.max_average_percent_of_ideal_port_bw_display_can_use_in_normal_system_operation = 100; - dceip.max_average_percent_of_ideal_drambw_display_can_use_in_normal_system_operation = 100; - dceip.percent_of_ideal_port_bw_received_after_urgent_latency = 100; - dceip.large_cursor = false; - dceip.dmif_request_buffer_size = bw_int_to_fixed(768); - dceip.dmif_pipe_en_fbc_chunk_tracker = false; - dceip.cursor_max_outstanding_group_num = 1; - dceip.lines_interleaved_into_lb = 2; - dceip.chunk_width = 256; - dceip.number_of_graphics_pipes = 2; - dceip.number_of_underlay_pipes = 1; - dceip.low_power_tiling_mode = 0; - dceip.display_write_back_supported = false; - dceip.argb_compression_support = true; - dceip.underlay_vscaler_efficiency6_bit_per_component = + vbios->memory_type = bw_def_gddr5; + vbios->dram_channel_width_in_bits = 64; + vbios->number_of_dram_channels = asic_id.vram_width / vbios->dram_channel_width_in_bits; + vbios->number_of_dram_banks = 8; + vbios->high_yclk = bw_int_to_fixed(1866); + vbios->mid_yclk = bw_int_to_fixed(1866); + vbios->low_yclk = bw_int_to_fixed(1333); + vbios->low_sclk = bw_int_to_fixed(200); + vbios->mid1_sclk = bw_int_to_fixed(600); + vbios->mid2_sclk = bw_int_to_fixed(600); + vbios->mid3_sclk = bw_int_to_fixed(600); + vbios->mid4_sclk = bw_int_to_fixed(600); + vbios->mid5_sclk = bw_int_to_fixed(600); + vbios->mid6_sclk = bw_int_to_fixed(600); + vbios->high_sclk = bw_int_to_fixed(800); + vbios->low_voltage_max_dispclk = bw_int_to_fixed(352); + vbios->mid_voltage_max_dispclk = bw_int_to_fixed(467); + vbios->high_voltage_max_dispclk = bw_int_to_fixed(643); + vbios->low_voltage_max_phyclk = bw_int_to_fixed(540); + vbios->mid_voltage_max_phyclk = bw_int_to_fixed(810); + vbios->high_voltage_max_phyclk = bw_int_to_fixed(810); + vbios->data_return_bus_width = bw_int_to_fixed(32); + vbios->trc = bw_int_to_fixed(50); + vbios->dmifmc_urgent_latency = bw_int_to_fixed(4); + vbios->stutter_self_refresh_exit_latency = bw_frc_to_fixed(158, 10); + vbios->stutter_self_refresh_entry_latency = bw_int_to_fixed(0); + vbios->nbp_state_change_latency = bw_frc_to_fixed(2008, 100); + vbios->mcifwrmc_urgent_latency = bw_int_to_fixed(10); + vbios->scatter_gather_enable = true; + vbios->down_spread_percentage = bw_frc_to_fixed(5, 10); + vbios->cursor_width = 32; + vbios->average_compression_rate = 4; + vbios->number_of_request_slots_gmc_reserves_for_dmif_per_channel = 256; + vbios->blackout_duration = bw_int_to_fixed(0); /* us */ + vbios->maximum_blackout_recovery_time = bw_int_to_fixed(0); + + dceip->max_average_percent_of_ideal_port_bw_display_can_use_in_normal_system_operation = 100; + dceip->max_average_percent_of_ideal_drambw_display_can_use_in_normal_system_operation = 100; + dceip->percent_of_ideal_port_bw_received_after_urgent_latency = 100; + dceip->large_cursor = false; + dceip->dmif_request_buffer_size = bw_int_to_fixed(768); + dceip->dmif_pipe_en_fbc_chunk_tracker = false; + dceip->cursor_max_outstanding_group_num = 1; + dceip->lines_interleaved_into_lb = 2; + dceip->chunk_width = 256; + dceip->number_of_graphics_pipes = 2; + dceip->number_of_underlay_pipes = 1; + dceip->low_power_tiling_mode = 0; + dceip->display_write_back_supported = false; + dceip->argb_compression_support = true; + dceip->underlay_vscaler_efficiency6_bit_per_component = bw_frc_to_fixed(35556, 10000); - dceip.underlay_vscaler_efficiency8_bit_per_component = + dceip->underlay_vscaler_efficiency8_bit_per_component = bw_frc_to_fixed(34286, 10000); - dceip.underlay_vscaler_efficiency10_bit_per_component = + dceip->underlay_vscaler_efficiency10_bit_per_component = bw_frc_to_fixed(32, 10); - dceip.underlay_vscaler_efficiency12_bit_per_component = + dceip->underlay_vscaler_efficiency12_bit_per_component = bw_int_to_fixed(3); - dceip.graphics_vscaler_efficiency6_bit_per_component = + dceip->graphics_vscaler_efficiency6_bit_per_component = bw_frc_to_fixed(35, 10); - dceip.graphics_vscaler_efficiency8_bit_per_component = + dceip->graphics_vscaler_efficiency8_bit_per_component = bw_frc_to_fixed(34286, 10000); - dceip.graphics_vscaler_efficiency10_bit_per_component = + dceip->graphics_vscaler_efficiency10_bit_per_component = bw_frc_to_fixed(32, 10); - dceip.graphics_vscaler_efficiency12_bit_per_component = + dceip->graphics_vscaler_efficiency12_bit_per_component = bw_int_to_fixed(3); - dceip.alpha_vscaler_efficiency = bw_int_to_fixed(3); - dceip.max_dmif_buffer_allocated = 2; - dceip.graphics_dmif_size = 12288; - dceip.underlay_luma_dmif_size = 19456; - dceip.underlay_chroma_dmif_size = 23552; - dceip.pre_downscaler_enabled = true; - dceip.underlay_downscale_prefetch_enabled = true; - dceip.lb_write_pixels_per_dispclk = bw_int_to_fixed(1); - dceip.lb_size_per_component444 = bw_int_to_fixed(82176); - dceip.graphics_lb_nodownscaling_multi_line_prefetching = false; - dceip.stutter_and_dram_clock_state_change_gated_before_cursor = + dceip->alpha_vscaler_efficiency = bw_int_to_fixed(3); + dceip->max_dmif_buffer_allocated = 2; + dceip->graphics_dmif_size = 12288; + dceip->underlay_luma_dmif_size = 19456; + dceip->underlay_chroma_dmif_size = 23552; + dceip->pre_downscaler_enabled = true; + dceip->underlay_downscale_prefetch_enabled = true; + dceip->lb_write_pixels_per_dispclk = bw_int_to_fixed(1); + dceip->lb_size_per_component444 = bw_int_to_fixed(82176); + dceip->graphics_lb_nodownscaling_multi_line_prefetching = false; + dceip->stutter_and_dram_clock_state_change_gated_before_cursor = bw_int_to_fixed(0); - dceip.underlay420_luma_lb_size_per_component = bw_int_to_fixed( + dceip->underlay420_luma_lb_size_per_component = bw_int_to_fixed( 82176); - dceip.underlay420_chroma_lb_size_per_component = + dceip->underlay420_chroma_lb_size_per_component = bw_int_to_fixed(164352); - dceip.underlay422_lb_size_per_component = bw_int_to_fixed( + dceip->underlay422_lb_size_per_component = bw_int_to_fixed( 82176); - dceip.cursor_chunk_width = bw_int_to_fixed(64); - dceip.cursor_dcp_buffer_lines = bw_int_to_fixed(4); - dceip.underlay_maximum_width_efficient_for_tiling = + dceip->cursor_chunk_width = bw_int_to_fixed(64); + dceip->cursor_dcp_buffer_lines = bw_int_to_fixed(4); + dceip->underlay_maximum_width_efficient_for_tiling = bw_int_to_fixed(1920); - dceip.underlay_maximum_height_efficient_for_tiling = + dceip->underlay_maximum_height_efficient_for_tiling = bw_int_to_fixed(1080); - dceip.peak_pte_request_to_eviction_ratio_limiting_multiple_displays_or_single_rotated_display = + dceip->peak_pte_request_to_eviction_ratio_limiting_multiple_displays_or_single_rotated_display = bw_frc_to_fixed(3, 10); - dceip.peak_pte_request_to_eviction_ratio_limiting_single_display_no_rotation = + dceip->peak_pte_request_to_eviction_ratio_limiting_single_display_no_rotation = bw_int_to_fixed(25); - dceip.minimum_outstanding_pte_request_limit = bw_int_to_fixed( + dceip->minimum_outstanding_pte_request_limit = bw_int_to_fixed( 2); - dceip.maximum_total_outstanding_pte_requests_allowed_by_saw = + dceip->maximum_total_outstanding_pte_requests_allowed_by_saw = bw_int_to_fixed(128); - dceip.limit_excessive_outstanding_dmif_requests = true; - dceip.linear_mode_line_request_alternation_slice = + dceip->limit_excessive_outstanding_dmif_requests = true; + dceip->linear_mode_line_request_alternation_slice = bw_int_to_fixed(64); - dceip.scatter_gather_lines_of_pte_prefetching_in_linear_mode = + dceip->scatter_gather_lines_of_pte_prefetching_in_linear_mode = 32; - dceip.display_write_back420_luma_mcifwr_buffer_size = 12288; - dceip.display_write_back420_chroma_mcifwr_buffer_size = 8192; - dceip.request_efficiency = bw_frc_to_fixed(8, 10); - dceip.dispclk_per_request = bw_int_to_fixed(2); - dceip.dispclk_ramping_factor = bw_frc_to_fixed(105, 100); - dceip.display_pipe_throughput_factor = bw_frc_to_fixed(105, 100); - dceip.scatter_gather_pte_request_rows_in_tiling_mode = 2; - dceip.mcifwr_all_surfaces_burst_time = bw_int_to_fixed(0); + dceip->display_write_back420_luma_mcifwr_buffer_size = 12288; + dceip->display_write_back420_chroma_mcifwr_buffer_size = 8192; + dceip->request_efficiency = bw_frc_to_fixed(8, 10); + dceip->dispclk_per_request = bw_int_to_fixed(2); + dceip->dispclk_ramping_factor = bw_frc_to_fixed(105, 100); + dceip->display_pipe_throughput_factor = bw_frc_to_fixed(105, 100); + dceip->scatter_gather_pte_request_rows_in_tiling_mode = 2; + dceip->mcifwr_all_surfaces_burst_time = bw_int_to_fixed(0); break; case BW_CALCS_VERSION_VEGA10: - vbios.memory_type = bw_def_hbm; - vbios.dram_channel_width_in_bits = 128; - vbios.number_of_dram_channels = asic_id.vram_width / vbios.dram_channel_width_in_bits; - vbios.number_of_dram_banks = 16; - vbios.high_yclk = bw_int_to_fixed(2400); - vbios.mid_yclk = bw_int_to_fixed(1700); - vbios.low_yclk = bw_int_to_fixed(1000); - vbios.low_sclk = bw_int_to_fixed(300); - vbios.mid1_sclk = bw_int_to_fixed(350); - vbios.mid2_sclk = bw_int_to_fixed(400); - vbios.mid3_sclk = bw_int_to_fixed(500); - vbios.mid4_sclk = bw_int_to_fixed(600); - vbios.mid5_sclk = bw_int_to_fixed(700); - vbios.mid6_sclk = bw_int_to_fixed(760); - vbios.high_sclk = bw_int_to_fixed(776); - vbios.low_voltage_max_dispclk = bw_int_to_fixed(460); - vbios.mid_voltage_max_dispclk = bw_int_to_fixed(670); - vbios.high_voltage_max_dispclk = bw_int_to_fixed(1133); - vbios.low_voltage_max_phyclk = bw_int_to_fixed(540); - vbios.mid_voltage_max_phyclk = bw_int_to_fixed(810); - vbios.high_voltage_max_phyclk = bw_int_to_fixed(810); - vbios.data_return_bus_width = bw_int_to_fixed(32); - vbios.trc = bw_int_to_fixed(48); - vbios.dmifmc_urgent_latency = bw_int_to_fixed(3); - vbios.stutter_self_refresh_exit_latency = bw_frc_to_fixed(75, 10); - vbios.stutter_self_refresh_entry_latency = bw_frc_to_fixed(19, 10); - vbios.nbp_state_change_latency = bw_int_to_fixed(39); - vbios.mcifwrmc_urgent_latency = bw_int_to_fixed(10); - vbios.scatter_gather_enable = false; - vbios.down_spread_percentage = bw_frc_to_fixed(5, 10); - vbios.cursor_width = 32; - vbios.average_compression_rate = 4; - vbios.number_of_request_slots_gmc_reserves_for_dmif_per_channel = 8; - vbios.blackout_duration = bw_int_to_fixed(0); /* us */ - vbios.maximum_blackout_recovery_time = bw_int_to_fixed(0); - - dceip.max_average_percent_of_ideal_port_bw_display_can_use_in_normal_system_operation = 100; - dceip.max_average_percent_of_ideal_drambw_display_can_use_in_normal_system_operation = 100; - dceip.percent_of_ideal_port_bw_received_after_urgent_latency = 100; - dceip.large_cursor = false; - dceip.dmif_request_buffer_size = bw_int_to_fixed(2304); - dceip.dmif_pipe_en_fbc_chunk_tracker = true; - dceip.cursor_max_outstanding_group_num = 1; - dceip.lines_interleaved_into_lb = 2; - dceip.chunk_width = 256; - dceip.number_of_graphics_pipes = 6; - dceip.number_of_underlay_pipes = 0; - dceip.low_power_tiling_mode = 0; - dceip.display_write_back_supported = true; - dceip.argb_compression_support = true; - dceip.underlay_vscaler_efficiency6_bit_per_component = + vbios->memory_type = bw_def_hbm; + vbios->dram_channel_width_in_bits = 128; + vbios->number_of_dram_channels = asic_id.vram_width / vbios->dram_channel_width_in_bits; + vbios->number_of_dram_banks = 16; + vbios->high_yclk = bw_int_to_fixed(2400); + vbios->mid_yclk = bw_int_to_fixed(1700); + vbios->low_yclk = bw_int_to_fixed(1000); + vbios->low_sclk = bw_int_to_fixed(300); + vbios->mid1_sclk = bw_int_to_fixed(350); + vbios->mid2_sclk = bw_int_to_fixed(400); + vbios->mid3_sclk = bw_int_to_fixed(500); + vbios->mid4_sclk = bw_int_to_fixed(600); + vbios->mid5_sclk = bw_int_to_fixed(700); + vbios->mid6_sclk = bw_int_to_fixed(760); + vbios->high_sclk = bw_int_to_fixed(776); + vbios->low_voltage_max_dispclk = bw_int_to_fixed(460); + vbios->mid_voltage_max_dispclk = bw_int_to_fixed(670); + vbios->high_voltage_max_dispclk = bw_int_to_fixed(1133); + vbios->low_voltage_max_phyclk = bw_int_to_fixed(540); + vbios->mid_voltage_max_phyclk = bw_int_to_fixed(810); + vbios->high_voltage_max_phyclk = bw_int_to_fixed(810); + vbios->data_return_bus_width = bw_int_to_fixed(32); + vbios->trc = bw_int_to_fixed(48); + vbios->dmifmc_urgent_latency = bw_int_to_fixed(3); + vbios->stutter_self_refresh_exit_latency = bw_frc_to_fixed(75, 10); + vbios->stutter_self_refresh_entry_latency = bw_frc_to_fixed(19, 10); + vbios->nbp_state_change_latency = bw_int_to_fixed(39); + vbios->mcifwrmc_urgent_latency = bw_int_to_fixed(10); + vbios->scatter_gather_enable = false; + vbios->down_spread_percentage = bw_frc_to_fixed(5, 10); + vbios->cursor_width = 32; + vbios->average_compression_rate = 4; + vbios->number_of_request_slots_gmc_reserves_for_dmif_per_channel = 8; + vbios->blackout_duration = bw_int_to_fixed(0); /* us */ + vbios->maximum_blackout_recovery_time = bw_int_to_fixed(0); + + dceip->max_average_percent_of_ideal_port_bw_display_can_use_in_normal_system_operation = 100; + dceip->max_average_percent_of_ideal_drambw_display_can_use_in_normal_system_operation = 100; + dceip->percent_of_ideal_port_bw_received_after_urgent_latency = 100; + dceip->large_cursor = false; + dceip->dmif_request_buffer_size = bw_int_to_fixed(2304); + dceip->dmif_pipe_en_fbc_chunk_tracker = true; + dceip->cursor_max_outstanding_group_num = 1; + dceip->lines_interleaved_into_lb = 2; + dceip->chunk_width = 256; + dceip->number_of_graphics_pipes = 6; + dceip->number_of_underlay_pipes = 0; + dceip->low_power_tiling_mode = 0; + dceip->display_write_back_supported = true; + dceip->argb_compression_support = true; + dceip->underlay_vscaler_efficiency6_bit_per_component = bw_frc_to_fixed(35556, 10000); - dceip.underlay_vscaler_efficiency8_bit_per_component = + dceip->underlay_vscaler_efficiency8_bit_per_component = bw_frc_to_fixed(34286, 10000); - dceip.underlay_vscaler_efficiency10_bit_per_component = + dceip->underlay_vscaler_efficiency10_bit_per_component = bw_frc_to_fixed(32, 10); - dceip.underlay_vscaler_efficiency12_bit_per_component = + dceip->underlay_vscaler_efficiency12_bit_per_component = bw_int_to_fixed(3); - dceip.graphics_vscaler_efficiency6_bit_per_component = + dceip->graphics_vscaler_efficiency6_bit_per_component = bw_frc_to_fixed(35, 10); - dceip.graphics_vscaler_efficiency8_bit_per_component = + dceip->graphics_vscaler_efficiency8_bit_per_component = bw_frc_to_fixed(34286, 10000); - dceip.graphics_vscaler_efficiency10_bit_per_component = + dceip->graphics_vscaler_efficiency10_bit_per_component = bw_frc_to_fixed(32, 10); - dceip.graphics_vscaler_efficiency12_bit_per_component = + dceip->graphics_vscaler_efficiency12_bit_per_component = bw_int_to_fixed(3); - dceip.alpha_vscaler_efficiency = bw_int_to_fixed(3); - dceip.max_dmif_buffer_allocated = 4; - dceip.graphics_dmif_size = 24576; - dceip.underlay_luma_dmif_size = 19456; - dceip.underlay_chroma_dmif_size = 23552; - dceip.pre_downscaler_enabled = true; - dceip.underlay_downscale_prefetch_enabled = false; - dceip.lb_write_pixels_per_dispclk = bw_int_to_fixed(1); - dceip.lb_size_per_component444 = bw_int_to_fixed(245952); - dceip.graphics_lb_nodownscaling_multi_line_prefetching = true; - dceip.stutter_and_dram_clock_state_change_gated_before_cursor = + dceip->alpha_vscaler_efficiency = bw_int_to_fixed(3); + dceip->max_dmif_buffer_allocated = 4; + dceip->graphics_dmif_size = 24576; + dceip->underlay_luma_dmif_size = 19456; + dceip->underlay_chroma_dmif_size = 23552; + dceip->pre_downscaler_enabled = true; + dceip->underlay_downscale_prefetch_enabled = false; + dceip->lb_write_pixels_per_dispclk = bw_int_to_fixed(1); + dceip->lb_size_per_component444 = bw_int_to_fixed(245952); + dceip->graphics_lb_nodownscaling_multi_line_prefetching = true; + dceip->stutter_and_dram_clock_state_change_gated_before_cursor = bw_int_to_fixed(1); - dceip.underlay420_luma_lb_size_per_component = bw_int_to_fixed( + dceip->underlay420_luma_lb_size_per_component = bw_int_to_fixed( 82176); - dceip.underlay420_chroma_lb_size_per_component = + dceip->underlay420_chroma_lb_size_per_component = bw_int_to_fixed(164352); - dceip.underlay422_lb_size_per_component = bw_int_to_fixed( + dceip->underlay422_lb_size_per_component = bw_int_to_fixed( 82176); - dceip.cursor_chunk_width = bw_int_to_fixed(64); - dceip.cursor_dcp_buffer_lines = bw_int_to_fixed(4); - dceip.underlay_maximum_width_efficient_for_tiling = + dceip->cursor_chunk_width = bw_int_to_fixed(64); + dceip->cursor_dcp_buffer_lines = bw_int_to_fixed(4); + dceip->underlay_maximum_width_efficient_for_tiling = bw_int_to_fixed(1920); - dceip.underlay_maximum_height_efficient_for_tiling = + dceip->underlay_maximum_height_efficient_for_tiling = bw_int_to_fixed(1080); - dceip.peak_pte_request_to_eviction_ratio_limiting_multiple_displays_or_single_rotated_display = + dceip->peak_pte_request_to_eviction_ratio_limiting_multiple_displays_or_single_rotated_display = bw_frc_to_fixed(3, 10); - dceip.peak_pte_request_to_eviction_ratio_limiting_single_display_no_rotation = + dceip->peak_pte_request_to_eviction_ratio_limiting_single_display_no_rotation = bw_int_to_fixed(25); - dceip.minimum_outstanding_pte_request_limit = bw_int_to_fixed( + dceip->minimum_outstanding_pte_request_limit = bw_int_to_fixed( 2); - dceip.maximum_total_outstanding_pte_requests_allowed_by_saw = + dceip->maximum_total_outstanding_pte_requests_allowed_by_saw = bw_int_to_fixed(128); - dceip.limit_excessive_outstanding_dmif_requests = true; - dceip.linear_mode_line_request_alternation_slice = + dceip->limit_excessive_outstanding_dmif_requests = true; + dceip->linear_mode_line_request_alternation_slice = bw_int_to_fixed(64); - dceip.scatter_gather_lines_of_pte_prefetching_in_linear_mode = + dceip->scatter_gather_lines_of_pte_prefetching_in_linear_mode = 32; - dceip.display_write_back420_luma_mcifwr_buffer_size = 12288; - dceip.display_write_back420_chroma_mcifwr_buffer_size = 8192; - dceip.request_efficiency = bw_frc_to_fixed(8, 10); - dceip.dispclk_per_request = bw_int_to_fixed(2); - dceip.dispclk_ramping_factor = bw_frc_to_fixed(105, 100); - dceip.display_pipe_throughput_factor = bw_frc_to_fixed(105, 100); - dceip.scatter_gather_pte_request_rows_in_tiling_mode = 2; - dceip.mcifwr_all_surfaces_burst_time = bw_int_to_fixed(0); + dceip->display_write_back420_luma_mcifwr_buffer_size = 12288; + dceip->display_write_back420_chroma_mcifwr_buffer_size = 8192; + dceip->request_efficiency = bw_frc_to_fixed(8, 10); + dceip->dispclk_per_request = bw_int_to_fixed(2); + dceip->dispclk_ramping_factor = bw_frc_to_fixed(105, 100); + dceip->display_pipe_throughput_factor = bw_frc_to_fixed(105, 100); + dceip->scatter_gather_pte_request_rows_in_tiling_mode = 2; + dceip->mcifwr_all_surfaces_burst_time = bw_int_to_fixed(0); break; default: break; } - *bw_dceip = dceip; - *bw_vbios = vbios; + *bw_dceip = *dceip; + *bw_vbios = *vbios; + kfree(dceip); + kfree(vbios); } /* From patchwork Wed Mar 3 13:42:36 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 392072 Delivered-To: patch@linaro.org Received: by 2002:a02:290e:0:0:0:0:0 with SMTP id p14csp5132950jap; Wed, 3 Mar 2021 05:44:02 -0800 (PST) X-Google-Smtp-Source: ABdhPJy/Xrn4JWkc+DHUgOoqHI/MleD2OZdB2vz0x1gGju8FZNpwzhdyPDIZJzEOV7aCRZdyXJU/ X-Received: by 2002:a62:a507:0:b029:1ce:ddad:79de with SMTP id v7-20020a62a5070000b02901ceddad79demr8340026pfm.19.1614779041826; Wed, 03 Mar 2021 05:44:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614779041; cv=none; d=google.com; s=arc-20160816; b=IrgO+LkEqa8o/FW+OwdGEgt/19AiYbttgUb41y1ymFlVzhtkP+S2jtIIgeU1B367iE SpNOU7SBLQdtXzXDsO/Aay4KJFiYsDOGo70oaaVObSUuAD5JhCAgEcuRg8IUPjvrnUbP YqdNAp6mrE61LLRSCEM5F6HOYpp3GcrIA1y/rkPSKBo818pGGKABL7fiTKpNzbsy24NC +leM7NrzMNTJDvdI6gJqcEGGXJFZpnUCzf6weRak9+i5izXcfxmWO3Db68C9Jbuv2sG2 s68Vf5trK3VSOfSqbAxByrlIVJ8EcQ23hV3GWAjc4axNLBe7hzsqWV6yXHwSSwqeLOle e2cg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:cc:list-subscribe :list-help:list-post:list-archive:list-unsubscribe:list-id :precedence:mime-version:references:in-reply-to:message-id:date :subject:to:from:dkim-signature:delivered-to; bh=OBiflEMBrcRSzWIrY9IyZp26BYMgzazkPCZkMmONeNk=; b=PLKCUsPD+01ZwUZBCFbwpBqwhkmTsb6MTwN9MQoYwDXEVwXRUsqTruBFCWimCxN2JB 1iBwTmI7xMBEc8c1xSXlp0kYJDPS5oR07CW+jA9sCIJ2ZQGOcbDU/rIx3PqvF4QMcV6p FI4powFtRa66hROlSoIQDaptDtg5VdbEt/bsqBDuQ9+/LgqTGanPXFhhOCcdHQu+9LuY p8j3IOrDn9M2ZbKkzIAcaSTLfi+aUSOipUwZoM2NymuL8mvJ6MWCIw/Pb7A0GckhycVf OB7p0x8KxlQpVLMuEacrQTNb2IrLswaO3iJU9gpNGhzcGAFLsk3Bpki2eYff7MzYQCwh iBCQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=jLQUoxJt; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 2610:10:20:722:a800:ff:fe36:1795 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from gabe.freedesktop.org (gabe.freedesktop.org. [2610:10:20:722:a800:ff:fe36:1795]) by mx.google.com with ESMTPS id p24si24939894plq.399.2021.03.03.05.44.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Mar 2021 05:44:01 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 2610:10:20:722:a800:ff:fe36:1795 as permitted sender) client-ip=2610:10:20:722:a800:ff:fe36:1795; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=jLQUoxJt; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 2610:10:20:722:a800:ff:fe36:1795 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id BEA436E8DB; Wed, 3 Mar 2021 13:43:43 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wr1-x42a.google.com (mail-wr1-x42a.google.com [IPv6:2a00:1450:4864:20::42a]) by gabe.freedesktop.org (Postfix) with ESMTPS id 02E186E8EB for ; Wed, 3 Mar 2021 13:43:41 +0000 (UTC) Received: by mail-wr1-x42a.google.com with SMTP id h98so23716483wrh.11 for ; Wed, 03 Mar 2021 05:43:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=/QIOJ+jcry9nSq3nprw2igH3RHK7U5zFD/JMioUS840=; b=jLQUoxJt4yKOi/a2LytqC3f9MXcNn4Ges2MV13JFH21+ISQZPa1bJwuNQ2Ri6hUvPf MSCY27ncYgC6IN6vgmZzR1T6D4pKHZPwAFmVroWGy7jSbLeWj3I+8YIATC3TFK7Z6kyo vsWNJ9T5qyAgtOynq6rfhL+oGtnJfDzITSbdlRvMIPjJHTq0KCY9YZ2NqolFx35lLnuZ Fdf0r9DNAO000lpRErN5MfZq56OW1eVu9aqHf9dFahotdxPJV3nNJiSfioRK+IYOClkU 5ZwV5WPy849dLVNUZVUPEVDWGrMSkK2uTWDPrsxdHMjmSy87hgYuzeOHLUfZzpc9NE0U 6+DA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=/QIOJ+jcry9nSq3nprw2igH3RHK7U5zFD/JMioUS840=; b=j583RLaSQOYQI3gL1hmNFGBDADWOOQROzJIk8Ga9LJUT1EjBqBaSy2prK9ies7LRzX mRZWwCBzb3Pl98BbKwl65YcOuUMq7l6TqVouobhbFe4mZ+4hg1Fi85ZuADoDDa0Z3WwW BSHKWAzSgy+XyqRow5mgYN85dGqNfYpO030o0V0QtLgDPKtiP7eHlVeLT/PMdzIn3ZRn YQHbKr6rdVtZdXWgRW0NAH2RocYaGvT0Qn1Q0Oqds+isyHCXt4p11Eqm3BItlDP8UW7z KZw5UZYE+Pf+4xrRkcKV5HDJbV4i7iqI1qNsr+9SMNBXDC3vCIR3ub7PR41nw+R2ZSo+ uQmw== X-Gm-Message-State: AOAM532gq4Q5GRaSSBAweJjUcClwYDNJVQH3g/gqwWU3lFJyivJfJ6RE d+tmk4UwByglNFMlXxfwgx2xeQ== X-Received: by 2002:adf:fb49:: with SMTP id c9mr27869115wrs.72.1614779020649; Wed, 03 Mar 2021 05:43:40 -0800 (PST) Received: from dell.default ([91.110.221.155]) by smtp.gmail.com with ESMTPSA id w18sm6109524wrr.7.2021.03.03.05.43.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Mar 2021 05:43:40 -0800 (PST) From: Lee Jones To: lee.jones@linaro.org Subject: [PATCH 10/53] drm/amd/display/dc/dce/dce_aux: Remove duplicate line causing 'field overwritten' issue Date: Wed, 3 Mar 2021 13:42:36 +0000 Message-Id: <20210303134319.3160762-11-lee.jones@linaro.org> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20210303134319.3160762-1-lee.jones@linaro.org> References: <20210303134319.3160762-1-lee.jones@linaro.org> MIME-Version: 1.0 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: Leo Li , linux-kernel@vger.kernel.org, amd-gfx@lists.freedesktop.org, David Airlie , dri-devel@lists.freedesktop.org, Alex Deucher , =?utf-8?q?Christian_K=C3=B6nig?= Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" Fixes the following W=1 kernel build warning(s): In file included from drivers/gpu/drm/amd/amdgpu/../display/dc/dce112/dce112_resource.c:59: drivers/gpu/drm/amd/amdgpu/../include/asic_reg/dce/dce_11_2_sh_mask.h:10014:58: warning: initialized field overwritten [-Woverride-init] drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_aux.h:214:16: note: in expansion of macro ‘AUX_SW_DATA__AUX_SW_AUTOINCREMENT_DISABLE__SHIFT’ drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_aux.h:127:2: note: in expansion of macro ‘AUX_SF’ drivers/gpu/drm/amd/amdgpu/../display/dc/dce112/dce112_resource.c:177:2: note: in expansion of macro ‘DCE_AUX_MASK_SH_LIST’ drivers/gpu/drm/amd/amdgpu/../include/asic_reg/dce/dce_11_2_sh_mask.h:10014:58: note: (near initialization for ‘aux_shift.AUX_SW_AUTOINCREMENT_DISABLE’) drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_aux.h:214:16: note: in expansion of macro ‘AUX_SW_DATA__AUX_SW_AUTOINCREMENT_DISABLE__SHIFT’ drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_aux.h:127:2: note: in expansion of macro ‘AUX_SF’ drivers/gpu/drm/amd/amdgpu/../display/dc/dce112/dce112_resource.c:177:2: note: in expansion of macro ‘DCE_AUX_MASK_SH_LIST’ drivers/gpu/drm/amd/amdgpu/../include/asic_reg/dce/dce_11_2_sh_mask.h:10013:56: warning: initialized field overwritten [-Woverride-init] drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_aux.h:214:16: note: in expansion of macro ‘AUX_SW_DATA__AUX_SW_AUTOINCREMENT_DISABLE_MASK’ drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_aux.h:127:2: note: in expansion of macro ‘AUX_SF’ drivers/gpu/drm/amd/amdgpu/../display/dc/dce112/dce112_resource.c:181:2: note: in expansion of macro ‘DCE_AUX_MASK_SH_LIST’ drivers/gpu/drm/amd/amdgpu/../include/asic_reg/dce/dce_11_2_sh_mask.h:10013:56: note: (near initialization for ‘aux_mask.AUX_SW_AUTOINCREMENT_DISABLE’) drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_aux.h:214:16: note: in expansion of macro ‘AUX_SW_DATA__AUX_SW_AUTOINCREMENT_DISABLE_MASK’ drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_aux.h:127:2: note: in expansion of macro ‘AUX_SF’ Cc: Harry Wentland Cc: Leo Li Cc: Alex Deucher Cc: "Christian König" Cc: David Airlie Cc: Daniel Vetter Cc: amd-gfx@lists.freedesktop.org Cc: dri-devel@lists.freedesktop.org Signed-off-by: Lee Jones --- drivers/gpu/drm/amd/display/dc/dce/dce_aux.h | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/gpu/drm/amd/display/dc/dce/dce_aux.h b/drivers/gpu/drm/amd/display/dc/dce/dce_aux.h index 775e24926380e..566b1bddd8cc6 100644 --- a/drivers/gpu/drm/amd/display/dc/dce/dce_aux.h +++ b/drivers/gpu/drm/amd/display/dc/dce/dce_aux.h @@ -100,7 +100,6 @@ struct dce110_aux_registers { AUX_SF(AUX_SW_CONTROL, AUX_SW_GO, mask_sh),\ AUX_SF(AUX_SW_DATA, AUX_SW_AUTOINCREMENT_DISABLE, mask_sh),\ AUX_SF(AUX_SW_DATA, AUX_SW_DATA_RW, mask_sh),\ - AUX_SF(AUX_SW_DATA, AUX_SW_AUTOINCREMENT_DISABLE, mask_sh),\ AUX_SF(AUX_SW_DATA, AUX_SW_INDEX, mask_sh),\ AUX_SF(AUX_SW_DATA, AUX_SW_DATA, mask_sh),\ AUX_SF(AUX_SW_STATUS, AUX_SW_REPLY_BYTE_COUNT, mask_sh),\ From patchwork Wed Mar 3 13:42:38 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 392073 Delivered-To: patch@linaro.org Received: by 2002:a02:290e:0:0:0:0:0 with SMTP id p14csp5132998jap; Wed, 3 Mar 2021 05:44:05 -0800 (PST) X-Google-Smtp-Source: ABdhPJy1uLyicrWhUq+bcsDY+GI7DbadQCUtIVLw/KhWUpBeB2DixouEkfC/xfbrVURF4hfae79S X-Received: by 2002:a17:902:ed94:b029:de:8844:a650 with SMTP id e20-20020a170902ed94b02900de8844a650mr25099331plj.56.1614779045467; Wed, 03 Mar 2021 05:44:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614779045; cv=none; d=google.com; s=arc-20160816; b=rlt3+4IwNWD1Dk9FK1DNcQZaHZ3+aZGKiZUAXaiQSos5LCdeuSjBXlPb+3PEzzgRUJ yWOjC32ou4HvsiVXKfz0qm3zh1OLW25EViDDyXCO7e9mhgKZp005N/x4U52zybRdjtbD cJFjRo51vu/ugmijOFIQolV2D4nVIEGSkAEHCGijgrkPY16wLvo0kamkyE/Y30YPcNgk x7xbwa0ls83nSI0RJXxgaJUEAC7IOIcq6D2ge3N2Mnyq/ZHnoTk6tvehoGlnCMtGhE2P jy6fBdqKHCoUFVaS2Mn4ShSjKy5Xh9UPGTgZMRFzEJnkuONFT8hXGIy0AXIcBJdlTLaC 9hfw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:cc:list-subscribe :list-help:list-post:list-archive:list-unsubscribe:list-id :precedence:mime-version:references:in-reply-to:message-id:date :subject:to:from:dkim-signature:delivered-to; bh=vDgL7DMqi5Ztgd1gcZ+vBq6m8rAl9kMVpT540Ja4OuQ=; b=vk2R5o5l0YpTYrE5gGMxg0tPwcPrRpVSzYAVLVjd7lPPFM+D5xNjpo5lHdKtng8mDy ud+pic0v5Cm4RTIUR6K00tMR/5rI7JtlPexHSJRx9blrI3RRKuQgeB8RTwD6tvQBE5Yt H6ILF6ENctY5cpukviHxXjAHpNExCjbdUn/1MGtwMl1RdMa9/WRyAWIk9hrX8eW7qnuL Btfx2dg7Jd7eOSNcelnSDQ2xmsRK9AoMqhbRgRNXN2M7IeVUU9/kkK0+1/p8TsKZlD5r fPgMkX3vzT4+8HipXDe+EX1jca/QrHPFOoWELFcPcaIfF5XHf63W4I/cYYA7MN5fstR+ 4WQQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=Lt9BZLEK; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from gabe.freedesktop.org (gabe.freedesktop.org. [131.252.210.177]) by mx.google.com with ESMTPS id mv4si5708218pjb.132.2021.03.03.05.44.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Mar 2021 05:44:05 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) client-ip=131.252.210.177; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=Lt9BZLEK; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 1169B6E8D9; Wed, 3 Mar 2021 13:43:46 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wm1-x335.google.com (mail-wm1-x335.google.com [IPv6:2a00:1450:4864:20::335]) by gabe.freedesktop.org (Postfix) with ESMTPS id 761F86E8E4 for ; Wed, 3 Mar 2021 13:43:44 +0000 (UTC) Received: by mail-wm1-x335.google.com with SMTP id o16so6405334wmh.0 for ; Wed, 03 Mar 2021 05:43:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=U3+jQ9deg+F+hwlthzV/g98whTMSIMZPgh43ftXDf7Y=; b=Lt9BZLEKeX6vZm5O1anyCQVHXnHAylqWnmLnxySRpm1uwZYBNJrww3+26dI4sP4eTZ 3zZSDTnpns8MDlaOgJfHoN6qh+cm4BiWZzB1zBpqrWLL+E7kmxRHVKPXKqHib53fQIiD vhgBOjv906Y8rlLoQzee6gXFbwV4KGSgzl83yL9lO2lzIb4ewpLRrwJzPyeFn8nJb88x GM3CPy0U1XHTu697oiHMzETTXMJZjVYfe4oMQpLdhMuQ2LTsEoaqGxNeZLtU5stvUbeQ dlSdbiTfPzFjWFK3xqPiapITv1hmqABmayWWM7trUot3POqVeapO2PX4C25ehIPmg3ez rvsg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=U3+jQ9deg+F+hwlthzV/g98whTMSIMZPgh43ftXDf7Y=; b=reZ53NSKzao3mdIXrGkg97NxUaVeY+1QyY89UFpmNrtR26GdJh2eM3iqYBEGYwhZL8 9riJvevMeaX8vQOmtwT6MDHDk/TNa5V6u2M64/IezCxA7C7IOwUKe0zINtSxPgViWEMt F4lwBFNvOL6V5AGuWmg5occRPRZCEoCGm0H5EEz8mAMW5ALGx9mDUnr9xfRpvzS0RMY4 0WFOMngso+ZnvieIweipiG4/DRqxQMGG3pJp6m5yjgTLsKbjIJ7rsdiRedJBGU2V76z1 +FfVyV+ns/2M8iepDNs4Aj8iXzZbk2BDq009oupUTps/BU5mKvpYJR7rQH789vZ/IAZx QsIg== X-Gm-Message-State: AOAM533taa1pf0kzNrnWKFeD4YP0oQrX2XDH2JuFIsUueeV4ke+B9m/D gi4Rgiz3M0z/6U9NjXSwcKe6uwh2XdoSvQ== X-Received: by 2002:a1c:f30a:: with SMTP id q10mr9540066wmq.159.1614779023095; Wed, 03 Mar 2021 05:43:43 -0800 (PST) Received: from dell.default ([91.110.221.155]) by smtp.gmail.com with ESMTPSA id w18sm6109524wrr.7.2021.03.03.05.43.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Mar 2021 05:43:42 -0800 (PST) From: Lee Jones To: lee.jones@linaro.org Subject: [PATCH 12/53] drm/nouveau/nvkm/engine/gr/gf100: Demote non-conformant kernel-doc header Date: Wed, 3 Mar 2021 13:42:38 +0000 Message-Id: <20210303134319.3160762-13-lee.jones@linaro.org> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20210303134319.3160762-1-lee.jones@linaro.org> References: <20210303134319.3160762-1-lee.jones@linaro.org> MIME-Version: 1.0 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: David Airlie , nouveau@lists.freedesktop.org, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, Ben Skeggs Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" Fixes the following W=1 kernel build warning(s): drivers/gpu/drm/nouveau/nvkm/engine/gr/gf100.c:992: warning: Function parameter or member 'gr' not described in 'gf100_gr_wait_idle' Cc: Ben Skeggs Cc: David Airlie Cc: Daniel Vetter Cc: dri-devel@lists.freedesktop.org Cc: nouveau@lists.freedesktop.org Signed-off-by: Lee Jones --- drivers/gpu/drm/nouveau/nvkm/engine/gr/gf100.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.27.0 _______________________________________________ dri-devel mailing list dri-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/dri-devel diff --git a/drivers/gpu/drm/nouveau/nvkm/engine/gr/gf100.c b/drivers/gpu/drm/nouveau/nvkm/engine/gr/gf100.c index 397ff4fe9df89..69e6008f99196 100644 --- a/drivers/gpu/drm/nouveau/nvkm/engine/gr/gf100.c +++ b/drivers/gpu/drm/nouveau/nvkm/engine/gr/gf100.c @@ -982,7 +982,7 @@ gf100_gr_zbc_init(struct gf100_gr *gr) } } -/** +/* * Wait until GR goes idle. GR is considered idle if it is disabled by the * MC (0x200) register, or GR is not busy and a context switch is not in * progress. From patchwork Wed Mar 3 13:42:39 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 392074 Delivered-To: patch@linaro.org Received: by 2002:a02:290e:0:0:0:0:0 with SMTP id p14csp5133020jap; Wed, 3 Mar 2021 05:44:07 -0800 (PST) X-Google-Smtp-Source: ABdhPJyWuqRBRsG5iASyRN8DddmE0Ki5kA+5GMX8bsppsU0ya+AWlPYP/4SXCIbOEK7HM+4tSZKS X-Received: by 2002:a17:90a:a481:: with SMTP id z1mr9667466pjp.161.1614779046811; Wed, 03 Mar 2021 05:44:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614779046; cv=none; d=google.com; s=arc-20160816; b=nlBj9Sxew/AT/jn8dRqPnHaCImt4a0nyNnNEvatX7TLUG9bU/8pzUwIUHKy4SqE5WX XG01o/TPBrmqHeY+sztQHajGCfpd/AU3uBcKUr2uLJLwfRY5FfWMBqSHEegeheS/JjJ+ 1tELpqT1UJn47KMEvPzC5sQd4GmN/1Ay6PPYvZxbKglMKC77wQ3aM0dd2zeJgq8mYvAN JyjMtRBwQtIunR/ZfVj3nr9PVozNqij/O1Xe8LYfolMPK/ydUyWNGp8NCbNjw+dVdiYB IE4bl4EoqSsOX8hFyYAXOjptKlaW6LCZYe7RJ1BGGlOYqBeqAYVkg4Vd6He29ltkjTtj iydg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:cc:list-subscribe :list-help:list-post:list-archive:list-unsubscribe:list-id :precedence:mime-version:references:in-reply-to:message-id:date :subject:to:from:dkim-signature:delivered-to; bh=8ihl0DQC3qwyoP9Iq3oGERWtLMndnto8K1RtLC5/6B4=; b=xQmDE5Mveo5NtcAaqZ+QGTwaeibsZ84X7FIhmu9NRHyktR9Tif44y1uMbv8FFCtu7L lB1SXSGPaOfMqp+jqQb60O+Ix4RL/xYJFlXo1/lVod5DAwy0wSwCL2/ASbXSEaJpirqM 9kXXlR1UC3cBKgTj65AFL/IXT26K41NWV+SaUpj6+ulfRWJ6MxRyEmmemfAUiELgh5I1 j5OISj6AqJB8TH8etZqiLpDZ15sjMrauCXJiEJvpsleEnoe2c+pyYxnXTD1+8F3kPkHr HL3J8btGroYtk6ipIFZ0BW8YHLqaopJinW7PqhXHxOQVSnnEWX5a11z8a69yB3OHksb4 8ffg== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=JAR371RM; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from gabe.freedesktop.org (gabe.freedesktop.org. [131.252.210.177]) by mx.google.com with ESMTPS id s24si5698225pjr.46.2021.03.03.05.44.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Mar 2021 05:44:06 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) client-ip=131.252.210.177; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=JAR371RM; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id B25D56E8F1; Wed, 3 Mar 2021 13:43:46 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wm1-x336.google.com (mail-wm1-x336.google.com [IPv6:2a00:1450:4864:20::336]) by gabe.freedesktop.org (Postfix) with ESMTPS id BDC9B6E8D9 for ; Wed, 3 Mar 2021 13:43:45 +0000 (UTC) Received: by mail-wm1-x336.google.com with SMTP id u125so6379092wmg.4 for ; Wed, 03 Mar 2021 05:43:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=LL2CIStDBvdCQ2ilvl+8GEJmSghnQSGgGmDvpCxTU0Q=; b=JAR371RMHMFvNknWC4hTcGuEAbhD8bdPwtV8wy/zEUaqExQqn49iQu+3FZE5JeJ482 TTxTOhGQXqFarSADpG3hoP9sVweTfSwdInfl4ijt+5NNYhYgK44aT6oWR0AHJYEjy/NW 63j4wlV4giSCXJZMusdcHGwj83XWUOM3WtrQJMgEDJfDXyDq4YtRQdhQZ/g926iBrhok aTczenLvwexE8X+xuU8Zvz4M9PaqcOEwh7ohl+xI+weOigImuBmjT1S44SOWRe/BziJm LxsHNW9IXmqiXjDhBPGZdGejytI0y1AcpsV0fAhpF/9Gj5rVWwsbJrNWCXuMbunOUnkz koog== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=LL2CIStDBvdCQ2ilvl+8GEJmSghnQSGgGmDvpCxTU0Q=; b=Ku8W8EN69uLWZ5G86dALHiYsXzwa3nstHYJ+bl4GUMajnsxIeMTvRCNC84JUUKmh1U 7aW/P/zZG+BxhfbTi9x5k4j4un4stfxgyxoDXqU3lSk8vawgt9f8OW666B3dLQ8o7mJv SY+tyoTUI4A+zliwMb5v6jO020XiNPEXyOb/GLXECpcRCINM1nJ4Y1WqmiV9GlR+Fe0a GLk2Zb5XIGd8hAd7JCA44iaqL51LF1HMF8Gi4oWDOxiGqjvCByh2JRou8gJmKNZt+lSp 1bhA488yzERKvEDIVybj3Rqc5U+OR4qJb3fSz/3FT/fbo77sUjz8Gj5/z7xlevEN38gW RlqA== X-Gm-Message-State: AOAM533E+JrilU0J1BoymPo/hiOj2GAHCzsgn5SjEDc8y9msaep6DrTw RTujPlULSUrpc2E1cECc8Zh2ow== X-Received: by 2002:a7b:c755:: with SMTP id w21mr9451964wmk.89.1614779024289; Wed, 03 Mar 2021 05:43:44 -0800 (PST) Received: from dell.default ([91.110.221.155]) by smtp.gmail.com with ESMTPSA id w18sm6109524wrr.7.2021.03.03.05.43.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Mar 2021 05:43:43 -0800 (PST) From: Lee Jones To: lee.jones@linaro.org Subject: [PATCH 13/53] drm/nouveau/nouveau_bo: Remove unused variables 'dev' Date: Wed, 3 Mar 2021 13:42:39 +0000 Message-Id: <20210303134319.3160762-14-lee.jones@linaro.org> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20210303134319.3160762-1-lee.jones@linaro.org> References: <20210303134319.3160762-1-lee.jones@linaro.org> MIME-Version: 1.0 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: Jeremy Kolb , David Airlie , nouveau@lists.freedesktop.org, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, linaro-mm-sig@lists.linaro.org, Ben Skeggs , =?utf-8?q?Christian_K=C3=B6nig?= , linux-media@vger.kernel.org Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" Fixes the following W=1 kernel build warning(s): drivers/gpu/drm/nouveau/nouveau_bo.c: In function ‘nouveau_ttm_tt_populate’: drivers/gpu/drm/nouveau/nouveau_bo.c:1228:17: warning: variable ‘dev’ set but not used [-Wunused-but-set-variable] drivers/gpu/drm/nouveau/nouveau_bo.c: In function ‘nouveau_ttm_tt_unpopulate’: drivers/gpu/drm/nouveau/nouveau_bo.c:1252:17: warning: variable ‘dev’ set but not used [-Wunused-but-set-variable] Cc: Ben Skeggs Cc: David Airlie Cc: Daniel Vetter Cc: Sumit Semwal Cc: "Christian König" Cc: Jeremy Kolb Cc: dri-devel@lists.freedesktop.org Cc: nouveau@lists.freedesktop.org Cc: linux-media@vger.kernel.org Cc: linaro-mm-sig@lists.linaro.org Signed-off-by: Lee Jones --- drivers/gpu/drm/nouveau/nouveau_bo.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/drivers/gpu/drm/nouveau/nouveau_bo.c b/drivers/gpu/drm/nouveau/nouveau_bo.c index 2375711877cf3..0b94f8ae77291 100644 --- a/drivers/gpu/drm/nouveau/nouveau_bo.c +++ b/drivers/gpu/drm/nouveau/nouveau_bo.c @@ -1251,7 +1251,6 @@ nouveau_ttm_tt_populate(struct ttm_bo_device *bdev, { struct ttm_tt *ttm_dma = (void *)ttm; struct nouveau_drm *drm; - struct device *dev; bool slave = !!(ttm->page_flags & TTM_PAGE_FLAG_SG); if (ttm_tt_is_populated(ttm)) @@ -1264,7 +1263,6 @@ nouveau_ttm_tt_populate(struct ttm_bo_device *bdev, } drm = nouveau_bdev(bdev); - dev = drm->dev->dev; return ttm_pool_alloc(&drm->ttm.bdev.pool, ttm, ctx); } @@ -1274,14 +1272,12 @@ nouveau_ttm_tt_unpopulate(struct ttm_bo_device *bdev, struct ttm_tt *ttm) { struct nouveau_drm *drm; - struct device *dev; bool slave = !!(ttm->page_flags & TTM_PAGE_FLAG_SG); if (slave) return; drm = nouveau_bdev(bdev); - dev = drm->dev->dev; return ttm_pool_free(&drm->ttm.bdev.pool, ttm); } From patchwork Wed Mar 3 13:42:40 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 392075 Delivered-To: patch@linaro.org Received: by 2002:a02:290e:0:0:0:0:0 with SMTP id p14csp5133046jap; Wed, 3 Mar 2021 05:44:08 -0800 (PST) X-Google-Smtp-Source: ABdhPJyXXTvbrenDridhRKx1acjj10wkMWhZRYRFYSVl9/muDZPb41Eylsvs5+r2lkw/XQcfn0Hn X-Received: by 2002:aa7:8d92:0:b029:1ee:75d1:c87 with SMTP id i18-20020aa78d920000b02901ee75d10c87mr3177593pfr.9.1614779048504; Wed, 03 Mar 2021 05:44:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614779048; cv=none; d=google.com; s=arc-20160816; b=q2ipB/pP4ybGM/p8gwcMxTUf1y39gnMBe2JeOJlAj5o0DyxEcTXE8jO78Y4bEEDVAQ iJXhwInOHoGTvZROU5EOPG64/568Lr0DbwlN9IChXeYAR0EeJjJtCxt3XkO+x/fSghhx GJA3CxU+k34iv9FH3bG17q249ltE24KCZxwO6aQ/RMG9Y0cXQHaccAULcQJqc0GZq76L 60UEFLZRRloQYljGqA8TqXuIxgKtS8rlrq2fCYTmTjt+SdGyG+gnL5qbG6wPz8jwE7xo 0ZW03uBl+qGwOf1l3rnge4D6+wQx/v/TNXrbb5odjTEPBxHdLhDPQqsnfi3tIuaKSRkD +OLg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:cc:list-subscribe :list-help:list-post:list-archive:list-unsubscribe:list-id :precedence:mime-version:references:in-reply-to:message-id:date :subject:to:from:dkim-signature:delivered-to; bh=C2c1VEPUVUy8LW7W/3PaIDQKT2SI8CDlJyJhHwiFiew=; b=iOw+RWJLsOlNyh2A6PgeM98/By0HKf1RN7f0qb6dopU24Vwg34XluxxVAJOHK7kpIr M7qHobEZKzEPjxrGb9znP9iiFMq/xTXRCPas4Qo5FaYQilPqlhCuEwmJJIGnjSYVZunw CukjYF0F4qBOjOYXYEy4wvJzAqQe+23/A8TsTt/eSJ0PXwe0GfTlo+YVqmXm+uyqFyGA J+FdWwz3Kj6Jrtcoi2vrQHIMXXtDntjj/ysvmUJgKzbFp6gSZrTrkVcEcgV08nnFX1wE DNzUstyaQpTwRc4bMcjALrGeomi0t7wber3XDsj6+GfCQ0hFOYnoPwZz1kDbElAQ9PZZ dW5A== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=MYUt36BH; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 2610:10:20:722:a800:ff:fe36:1795 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from gabe.freedesktop.org (gabe.freedesktop.org. [2610:10:20:722:a800:ff:fe36:1795]) by mx.google.com with ESMTPS id s3si14558453plg.2.2021.03.03.05.44.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Mar 2021 05:44:08 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 2610:10:20:722:a800:ff:fe36:1795 as permitted sender) client-ip=2610:10:20:722:a800:ff:fe36:1795; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=MYUt36BH; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 2610:10:20:722:a800:ff:fe36:1795 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 5810F6E8F8; Wed, 3 Mar 2021 13:43:47 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wr1-x436.google.com (mail-wr1-x436.google.com [IPv6:2a00:1450:4864:20::436]) by gabe.freedesktop.org (Postfix) with ESMTPS id 7D46E6E8EC for ; Wed, 3 Mar 2021 13:43:46 +0000 (UTC) Received: by mail-wr1-x436.google.com with SMTP id f12so19930928wrx.8 for ; Wed, 03 Mar 2021 05:43:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=dhEuhGFXr/bQGRE4okPVNID5UMggkL9a7rhCimuP+ao=; b=MYUt36BHKi3+/nFVEwYOKehOixCmGYE75NoUp9lQ8IyUA60ZXrT1kCGasQIb3lerEi lxYGVvqkhzzo/2mnZiWA+W4MS59e6NtKYarYxEBxC+js4/3KVp0aw5VOIjykL++ohZVw vfAvPed6+VgGAZbh06xm+D8naHhdyuSh/hTJR8EzknQF2KvLpM+rdVOOq60lPonItUL4 mPzZ+j8K33j6sFxolR4hFZhxfXxg7yM1dbjJwGafe1/xdnM1EWJtn1mUjQdFepJh+Cuv jBBIrRfR6UP7ZgbhkaPzubfZrW0jzRTPi5ZxfRdjQ5OiMSMzrpkw0VqIeg9AvY+dXGRH DHnw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=dhEuhGFXr/bQGRE4okPVNID5UMggkL9a7rhCimuP+ao=; b=ssZ9NOrFzhXUrh+uEbs0CVtO9THNMuR3XR19o40Q1taWbnPprwiMTmHoWO7QqhE6hG Ikb8xEKB5vg7bnjU23XyHRstgwRSqI6stG6ulg5Yt/db0mvjBZ3etjXE+rhGk4AIRFSa VR1g0eXxfD2y6WeENLFEynxJaE2FoDlBlWnaLC22LboldiILAzTNW2dJzlQ04fDsFdoY JucznZhAgemANhkVqbbqR4SG70w7Z7rwVk6dmuGykZK4qeWMGzliu340tBroonkGfwf6 cwRQ6d/RvTJT+myWdMAUaxZNIYdONlnulajqRz7oaeAwVK478EuEjUPhPaHzC1Q73lqY PQew== X-Gm-Message-State: AOAM533vGKHR9oT61E7ZKPIoTOP333mnVbel4zzpC4j5fqIU9nx6iiAE h93aQnBNEm6DUlsVzl0DWu2mQw== X-Received: by 2002:a5d:5104:: with SMTP id s4mr28478476wrt.62.1614779025255; Wed, 03 Mar 2021 05:43:45 -0800 (PST) Received: from dell.default ([91.110.221.155]) by smtp.gmail.com with ESMTPSA id w18sm6109524wrr.7.2021.03.03.05.43.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Mar 2021 05:43:44 -0800 (PST) From: Lee Jones To: lee.jones@linaro.org Subject: [PATCH 14/53] drm/nouveau/nouveau_display: Remove set but unused variable 'width' Date: Wed, 3 Mar 2021 13:42:40 +0000 Message-Id: <20210303134319.3160762-15-lee.jones@linaro.org> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20210303134319.3160762-1-lee.jones@linaro.org> References: <20210303134319.3160762-1-lee.jones@linaro.org> MIME-Version: 1.0 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: David Airlie , nouveau@lists.freedesktop.org, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, Ben Skeggs Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" Fixes the following W=1 kernel build warning(s): drivers/gpu/drm/nouveau/nouveau_display.c: In function ‘nouveau_framebuffer_new’: drivers/gpu/drm/nouveau/nouveau_display.c:309:15: warning: variable ‘width’ set but not used [-Wunused-but-set-variable] Cc: Ben Skeggs Cc: David Airlie Cc: Daniel Vetter Cc: dri-devel@lists.freedesktop.org Cc: nouveau@lists.freedesktop.org Signed-off-by: Lee Jones --- drivers/gpu/drm/nouveau/nouveau_display.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/gpu/drm/nouveau/nouveau_display.c b/drivers/gpu/drm/nouveau/nouveau_display.c index 17831ee897ea4..0849f367631a9 100644 --- a/drivers/gpu/drm/nouveau/nouveau_display.c +++ b/drivers/gpu/drm/nouveau/nouveau_display.c @@ -306,7 +306,7 @@ nouveau_framebuffer_new(struct drm_device *dev, struct nouveau_bo *nvbo = nouveau_gem_object(gem); struct drm_framebuffer *fb; const struct drm_format_info *info; - unsigned int width, height, i; + unsigned int height, i; uint32_t tile_mode; uint8_t kind; int ret; @@ -346,9 +346,9 @@ nouveau_framebuffer_new(struct drm_device *dev, info = drm_get_format_info(dev, mode_cmd); for (i = 0; i < info->num_planes; i++) { - width = drm_format_info_plane_width(info, - mode_cmd->width, - i); + drm_format_info_plane_width(info, + mode_cmd->width, + i); height = drm_format_info_plane_height(info, mode_cmd->height, i); From patchwork Wed Mar 3 13:42:41 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 392076 Delivered-To: patch@linaro.org Received: by 2002:a02:290e:0:0:0:0:0 with SMTP id p14csp5133058jap; Wed, 3 Mar 2021 05:44:10 -0800 (PST) X-Google-Smtp-Source: ABdhPJyEoWsgiSqVLTx7JIJ37FIsRvqcMJ5xxg4ZAAU4d3Cn4nvvr8JIlujZCFRaeIVPxQLsIB9L X-Received: by 2002:a17:90b:2307:: with SMTP id mt7mr9784297pjb.37.1614779049891; Wed, 03 Mar 2021 05:44:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614779049; cv=none; d=google.com; s=arc-20160816; b=dwnV/cM0x+d+H0bFGWPt/nsUylwvMKu2NQkb6YhoLLyXnNLL6PnEHkD40vzQoZwhTi NUhSFnbvNtPsvbbsYEdg4muslSMW2JOVitdqnlv8dWuSAD5EXiLqBErKSA7TjY81OSqR S+WUkB5IaIVvRgGcfFsdYRzcrPE9Fd7kwISDzrPB32QGqiv3Fv4NVX1UumFARQy8Vqk8 5y7bBjQOqGca5DNmxARw1dl+aQxL1AVwvcYRh3Y/9EqRij3HhfyCrXVA0fNRx2Dp9Uic Q/sZyuRQn/Ue8889G+lMBJuNtxNzctxgqBh0XOcFEPFRtDJHK3Xx18QOWO9dXf4zncWv mTrw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:cc:list-subscribe :list-help:list-post:list-archive:list-unsubscribe:list-id :precedence:mime-version:references:in-reply-to:message-id:date :subject:to:from:dkim-signature:delivered-to; bh=lvu8wOP7dv+QlJixjEiGEL0gmgYxiEnshqWhxpgYwx8=; b=cAsaMvJJ4BUOIlYPkmk0iuRmaai7nAKKqrz7AAjxjZOxeC5dc3v6YLaBbQGYunaMOU AE8y+NdLM3WSzzF4fuGQqbAevWR2VKhr+YaZobDZqQ/+nTVXwrF/TgEHYrDIw2ewlzNd 97t024J6jhmF0P6D7KjWEqLReuGijvqjncIS7mdWXXxqvBz8zpeSTepVutXB5I1awOqz 2l80FyTCXje3HIpS8rZ81GuTSfEcAqB/4nyPa+IA0RlwO7eE1Bjh1CpSKnhsB4UvqYWx a8q3S42ouSieaWqw92rSz8YEI3fyeZ5sWfnG/s6tWLMY7ASzICg9ABGpHt5yT/BgIy7R kGKw== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=NJfqDB9N; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from gabe.freedesktop.org (gabe.freedesktop.org. [131.252.210.177]) by mx.google.com with ESMTPS id c24si6206495pjo.136.2021.03.03.05.44.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Mar 2021 05:44:09 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) client-ip=131.252.210.177; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=NJfqDB9N; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id AD6C36E8E9; Wed, 3 Mar 2021 13:43:48 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wr1-x436.google.com (mail-wr1-x436.google.com [IPv6:2a00:1450:4864:20::436]) by gabe.freedesktop.org (Postfix) with ESMTPS id 6C5006E8F9 for ; Wed, 3 Mar 2021 13:43:47 +0000 (UTC) Received: by mail-wr1-x436.google.com with SMTP id b18so17252361wrn.6 for ; Wed, 03 Mar 2021 05:43:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=l3BFodeOPTMMoMJFhYQYaXV3COFge4hJ56ydgoQMcn0=; b=NJfqDB9NHKQ/wGFMa43GPx+ixK4Rx/iRwTH9xXN65p2FK/n8vZ3ebEhihmL73C5coI DguDr3o/fpfTpc2qnQydLiHkjZ4bxu4aWvn3pP1QXvssbFa5mh5/bCtluGHYYaEXnsrj ao7HNvCYertCxSwgtEEfj3yBD9hLNIReP6NupahkoGPbgNJmX+ZF3+ZvWQCwXs79H8y8 yYs+F2bbN16FlLS9tu585Ll/UW2o+l4lQ9Bf04G3MHgnC4aF3ccqBI3fY3jejXQORchb Y0UfUNF+Eys+Rvl8q/L8zHzCYI7N8r0yk+FqbwNRd4XUHrLtP2m6uihF8mfgfWK71x20 ++Eg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=l3BFodeOPTMMoMJFhYQYaXV3COFge4hJ56ydgoQMcn0=; b=oPAhKuFhH2rvEcgcPSZ30Ws7pjIGc8085xGYuIwQ5gMvj0u//kujem7BWxNSUfh6wN F77Z98IX27r1UlkLi2GqTRIh+b6C0uBQEIbQaX5px1pkeFQBnwg2mRfkWfrGWfTFHWMx l6M4K412caiRse1+Ki9s0CaDWFTDIgrLRlIIxVups/MhWsxlJkTR4s1mRTa4W9mS1VkZ rnHjXwLPWsjvCQ1Q992Dvnqt7J+QFhkpTGexLa5QPplYsZXrNXKBTdQDljBEvhdPMr+W 0LL9x/AhLtJGTd6V1ozoo2I7fbjvWWQzfyeHtZnmXRwbdU7d23o5idBFZ25V7yS80zsV IqKQ== X-Gm-Message-State: AOAM530GcGk+chIYGnZpVpVYAYEogQdr/hAe/om9vm9H6PpSVDooPjzI 1ePiNeZfdHx9buzQoUVmRV3bOQ== X-Received: by 2002:adf:f2c3:: with SMTP id d3mr27870193wrp.380.1614779026168; Wed, 03 Mar 2021 05:43:46 -0800 (PST) Received: from dell.default ([91.110.221.155]) by smtp.gmail.com with ESMTPSA id w18sm6109524wrr.7.2021.03.03.05.43.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Mar 2021 05:43:45 -0800 (PST) From: Lee Jones To: lee.jones@linaro.org Subject: [PATCH 15/53] drm/nouveau/dispnv04/crtc: Demote non-conforming kernel-doc headers Date: Wed, 3 Mar 2021 13:42:41 +0000 Message-Id: <20210303134319.3160762-16-lee.jones@linaro.org> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20210303134319.3160762-1-lee.jones@linaro.org> References: <20210303134319.3160762-1-lee.jones@linaro.org> MIME-Version: 1.0 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: David Airlie , nouveau@lists.freedesktop.org, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, Ben Skeggs Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" Fixes the following W=1 kernel build warning(s): drivers/gpu/drm/nouveau/dispnv04/crtc.c:462: warning: Function parameter or member 'crtc' not described in 'nv_crtc_mode_set_regs' drivers/gpu/drm/nouveau/dispnv04/crtc.c:462: warning: Function parameter or member 'mode' not described in 'nv_crtc_mode_set_regs' drivers/gpu/drm/nouveau/dispnv04/crtc.c:640: warning: Function parameter or member 'crtc' not described in 'nv_crtc_mode_set' drivers/gpu/drm/nouveau/dispnv04/crtc.c:640: warning: Function parameter or member 'mode' not described in 'nv_crtc_mode_set' drivers/gpu/drm/nouveau/dispnv04/crtc.c:640: warning: Function parameter or member 'adjusted_mode' not described in 'nv_crtc_mode_set' drivers/gpu/drm/nouveau/dispnv04/crtc.c:640: warning: Function parameter or member 'x' not described in 'nv_crtc_mode_set' drivers/gpu/drm/nouveau/dispnv04/crtc.c:640: warning: Function parameter or member 'y' not described in 'nv_crtc_mode_set' drivers/gpu/drm/nouveau/dispnv04/crtc.c:640: warning: Function parameter or member 'old_fb' not described in 'nv_crtc_mode_set' Cc: Ben Skeggs Cc: David Airlie Cc: Daniel Vetter Cc: dri-devel@lists.freedesktop.org Cc: nouveau@lists.freedesktop.org Signed-off-by: Lee Jones --- drivers/gpu/drm/nouveau/dispnv04/crtc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) -- 2.27.0 _______________________________________________ dri-devel mailing list dri-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/dri-devel diff --git a/drivers/gpu/drm/nouveau/dispnv04/crtc.c b/drivers/gpu/drm/nouveau/dispnv04/crtc.c index f9e962fd94d0d..f9a276ea5a9e0 100644 --- a/drivers/gpu/drm/nouveau/dispnv04/crtc.c +++ b/drivers/gpu/drm/nouveau/dispnv04/crtc.c @@ -449,7 +449,7 @@ nv_crtc_mode_set_vga(struct drm_crtc *crtc, struct drm_display_mode *mode) regp->Attribute[NV_CIO_AR_CSEL_INDEX] = 0x00; } -/** +/* * Sets up registers for the given mode/adjusted_mode pair. * * The clocks, CRTCs and outputs attached to this CRTC must be off. @@ -625,7 +625,7 @@ nv_crtc_swap_fbs(struct drm_crtc *crtc, struct drm_framebuffer *old_fb) return ret; } -/** +/* * Sets up registers for the given mode/adjusted_mode pair. * * The clocks, CRTCs and outputs attached to this CRTC must be off. From patchwork Wed Mar 3 13:42:42 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 392078 Delivered-To: patch@linaro.org Received: by 2002:a02:290e:0:0:0:0:0 with SMTP id p14csp5133101jap; Wed, 3 Mar 2021 05:44:13 -0800 (PST) X-Google-Smtp-Source: ABdhPJwhRg4LKYMQKLO+b51vcBSvatiEFhwco3v0CMdn7qaibrB4GWRXj/fb1WdaUp+MhkpVYWDY X-Received: by 2002:a17:902:e906:b029:e5:c6d2:7dd0 with SMTP id k6-20020a170902e906b02900e5c6d27dd0mr2810085pld.12.1614779052845; Wed, 03 Mar 2021 05:44:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614779052; cv=none; d=google.com; s=arc-20160816; b=cyWFBYXCgoWj8kuX3LokQ6yRbW8tklmfDOM39KKma+IQdoIiCFcaL0efq1V9ErPyoU mz41Rffb4qbupdIZ5jm16GOyrCyIr/D9+vFqY2jnWIFebNr1vw7R2id5vS25AkI+KopZ lFZYqHgS7UXHQin1z/yMr+15QD0zuEbwZ22e/6iME7akhzlNGeFD0doecnaodDbOqNSd 7/kAL9E0y0dAivb/nUb1TxIdozF2Y0nf/WQZab04Nkp2FoSswc7CPFU/VdcSf0CjEkVD C6RM2rbsMMFETvziOD8gD+0T5LanmINE3t/n89exLPHcbliMotc0/w4lDqXu65VDiU5t 7hkw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:cc:list-subscribe :list-help:list-post:list-archive:list-unsubscribe:list-id :precedence:mime-version:references:in-reply-to:message-id:date :subject:to:from:dkim-signature:delivered-to; bh=CF10ar8h9eQWeb3AfR5u/aawBjHts6wzSPudz03ba/Y=; b=DXgeQhzW59aL16qCW5B3kJcJZ7dvxVAq1WdTxG5j7jsdlqQ42MTkZzyXEVv8ijrvZH WMwN4zxGQBesnu8RqEx6H0BCFu5I3Pz2WxwfADYyHoNeLv1wINO2h1aCkn0AbAkwytDb HuNM/6JoiyLXsxrvXcIhMlTqyEZ/qv3C8DW5LTuhEtVDLvRUPG3n11FVR3y7ngOvu7HA hM46GwJ44o0QqOozYlJmrEOxcRPSoSqSwkmEq2rBaserhPWsC3ptj9bVx/Hcwkbcc9Cf OvQdowvNa8lI2H7YXGZzfHe44Y7ZWhmUU/ZAo0I8orxmYeKW19xzaqtK5LcoAOAFKdfy WVOg== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=PFvYLvLO; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from gabe.freedesktop.org (gabe.freedesktop.org. [131.252.210.177]) by mx.google.com with ESMTPS id i17si25183655pfa.242.2021.03.03.05.44.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Mar 2021 05:44:12 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) client-ip=131.252.210.177; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=PFvYLvLO; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 46FF36E8F0; Wed, 3 Mar 2021 13:43:50 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wr1-x42b.google.com (mail-wr1-x42b.google.com [IPv6:2a00:1450:4864:20::42b]) by gabe.freedesktop.org (Postfix) with ESMTPS id 76C756E8F0 for ; Wed, 3 Mar 2021 13:43:48 +0000 (UTC) Received: by mail-wr1-x42b.google.com with SMTP id a18so15531434wrc.13 for ; Wed, 03 Mar 2021 05:43:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=1D64SVMvmhdwuXpC8yQyBurTfGArjqR5f88yUwkGnjo=; b=PFvYLvLOQQyWQMQRv4QlSlNwCBMSEjOKXmCpUftQ+PvbDpgZOJKJWEzuCJ/uFmzDFT uGEpjSkOlZNv2tRYz7PFRV4iWltZDCbgb1FFE5BEUmtSbT0XQ8EnMYsuCBcmYL8V9En3 1V8IKzlZVWlD9//2RJlxWN+ye9+ba1OnpWhjakABlRSfaGY6fSdvmD0scUf55SI8fba9 Zu3Gk7arkZw39XPrAAOH6i6RInJWfI7pOUsy26ANUMBndF7AIzmvFRgdZ30pAmtKcbZb WtOtgpOrP8xBW1/Ii2jnB1Jy11P7zdZk5bjEoEcvU9EezBqTQ6m1frK5HvQLasK+erwD EnQA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=1D64SVMvmhdwuXpC8yQyBurTfGArjqR5f88yUwkGnjo=; b=Uzbz2iAPMrxH8SL+MNqd8P3Al1aJeedwi+i3wPJ7bETMN677ryi2ALGhj9ECKa5pRb Yeo5QD4EJZSYs6lC55BXkmWK+1ezs2Zqs8BXbQtBf7NzI3bOfwOmuHK04ETmKVunKh1Y awsTN3tbGCU2Q8I0vyuGL0ld7g1U4sf8uztARzNiRBy5YPBV82GEP4rSg3w4EfnLKyne k1tJYWD/LytGqbhQLUDhl89en8w5T+c3NdFZaycGyvzVLuaIedqUnxcNkCgpHLIYBPeC moLl81G7ly4ewbHpmaaz2zhAhitbyFVCQtvmHXbjioDJnG6ebBsyvzS3dONxcO3MJCer viWw== X-Gm-Message-State: AOAM533C0KG3rYcqlc6s9mCqDfbOAquONI77b9wRvcIQF0S9+PodVTgS TuMdVBvZbsn1MT2+RBtClATm/g== X-Received: by 2002:adf:ffc8:: with SMTP id x8mr16151717wrs.384.1614779027164; Wed, 03 Mar 2021 05:43:47 -0800 (PST) Received: from dell.default ([91.110.221.155]) by smtp.gmail.com with ESMTPSA id w18sm6109524wrr.7.2021.03.03.05.43.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Mar 2021 05:43:46 -0800 (PST) From: Lee Jones To: lee.jones@linaro.org Subject: [PATCH 16/53] drm/nouveau/dispnv50/disp: Remove unused variable 'ret' from function returning void Date: Wed, 3 Mar 2021 13:42:42 +0000 Message-Id: <20210303134319.3160762-17-lee.jones@linaro.org> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20210303134319.3160762-1-lee.jones@linaro.org> References: <20210303134319.3160762-1-lee.jones@linaro.org> MIME-Version: 1.0 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: David Airlie , nouveau@lists.freedesktop.org, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, Ben Skeggs Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" Fixes the following W=1 kernel build warning(s): drivers/gpu/drm/nouveau/dispnv50/disp.c: In function ‘nv50_mstm_cleanup’: drivers/gpu/drm/nouveau/dispnv50/disp.c:1357:6: warning: variable ‘ret’ set but not used [-Wunused-but-set-variable] Cc: Ben Skeggs Cc: David Airlie Cc: Daniel Vetter Cc: dri-devel@lists.freedesktop.org Cc: nouveau@lists.freedesktop.org Signed-off-by: Lee Jones --- drivers/gpu/drm/nouveau/dispnv50/disp.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/gpu/drm/nouveau/dispnv50/disp.c b/drivers/gpu/drm/nouveau/dispnv50/disp.c index c51efca82ac78..828f48d5bdd4e 100644 --- a/drivers/gpu/drm/nouveau/dispnv50/disp.c +++ b/drivers/gpu/drm/nouveau/dispnv50/disp.c @@ -1386,12 +1386,11 @@ nv50_mstm_cleanup(struct nv50_mstm *mstm) { struct nouveau_drm *drm = nouveau_drm(mstm->outp->base.base.dev); struct drm_encoder *encoder; - int ret; NV_ATOMIC(drm, "%s: mstm cleanup\n", mstm->outp->base.base.name); - ret = drm_dp_check_act_status(&mstm->mgr); + drm_dp_check_act_status(&mstm->mgr); - ret = drm_dp_update_payload_part2(&mstm->mgr); + drm_dp_update_payload_part2(&mstm->mgr); drm_for_each_encoder(encoder, mstm->outp->base.base.dev) { if (encoder->encoder_type == DRM_MODE_ENCODER_DPMST) { From patchwork Wed Mar 3 13:42:43 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 392077 Delivered-To: patch@linaro.org Received: by 2002:a02:290e:0:0:0:0:0 with SMTP id p14csp5133103jap; Wed, 3 Mar 2021 05:44:13 -0800 (PST) X-Google-Smtp-Source: ABdhPJwPFpmIIbZ+kFPCaNfbgverkZ6X3K3iAl2zcOtlnrb+16TeR3hMvZams1Dkxq/k8VyCJy/p X-Received: by 2002:a17:90a:602:: with SMTP id j2mr9415617pjj.65.1614779053098; Wed, 03 Mar 2021 05:44:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614779053; cv=none; d=google.com; s=arc-20160816; b=cSJleaWrRxB/E1r6bHqyoHb947UL/kIur6cbzUCNV+FILNG5uEAFW/uZS8oBZECqUk bo0xT510p+p3PEpcTqNAfnJzLXVa5bDfgs76bXhn7FZKg3eDeITaJuN/C2bYJlIe2XBY pH9kzP+lbyyncj6FbAXN9LlREL3rI44x4PLJzDQWYp82cNjniTvoMK8dx9S/V0QDJ301 +13bn3Xp6UJIBIXQiMpdQNbf60BPNniLgxzwGERoJZnOpYVExVoCs/uWnm2KcCMHpPcR X3jxJmjPm7Y/ZIsFLpW029gMWT7ZmYYfuyy4rpThV31smvQA1RimhttzAy5HzsCo9yCq WIEQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:cc:list-subscribe :list-help:list-post:list-archive:list-unsubscribe:list-id :precedence:mime-version:references:in-reply-to:message-id:date :subject:to:from:dkim-signature:delivered-to; bh=TsUp/0scBd11CGaHJe91dBVrESLjwxUnXmKDZxDfl9E=; b=Kw/JheR59g268IMV70hYkIjDv22sWTh91HgT4iw4dp7lZdjMYZGMdyOziD9jcVfQyq Vjp4LQ2lRE8XCmYu6lQgn442fWg2xzlMmlyXteitKcJG7/6YQYTTbuijv/cB5TIy4ROo ilUpu161QCzI6HH/MnvNNBPg961DpCRyq/P6/5DTt7al8PFGj7OtQ1k/iRv9wiFVBtSW Y3OOuLVnRmdGwge4AD1F2kACekt1ddvdtT5i8E7F1tbv7lMt7nqrWCnjGy/vyfnBYZJG utTJDkXR7cWYJoumaKxtTJIOLEJdomj+VnO5ubCbHrrwLrjxofAkOeA5ZjC/wz59LLe6 UAQQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=b8s1GADM; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from gabe.freedesktop.org (gabe.freedesktop.org. [131.252.210.177]) by mx.google.com with ESMTPS id d18si2575886plg.180.2021.03.03.05.44.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Mar 2021 05:44:13 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) client-ip=131.252.210.177; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=b8s1GADM; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 0A8796E8FC; Wed, 3 Mar 2021 13:43:51 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wr1-x436.google.com (mail-wr1-x436.google.com [IPv6:2a00:1450:4864:20::436]) by gabe.freedesktop.org (Postfix) with ESMTPS id 769FE6E8EA for ; Wed, 3 Mar 2021 13:43:49 +0000 (UTC) Received: by mail-wr1-x436.google.com with SMTP id 7so23755573wrz.0 for ; Wed, 03 Mar 2021 05:43:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=9yFPCpC+KcvysSHE/TzUxgB6C7mqpr36eNkZECpHJ1c=; b=b8s1GADMy3KCr1xBwRkJxqrHKcPwaqZuz/sooEbpFBd2wLj+LQxrMwWz3TBw/Vlja7 9WlmxMg3FND6FswMAyNnsSIunYjTbwzz3+KFzk9Rd8fwcKLsPbG3JWLJ57I6S+zBV8uw N5LxB9/i1sAnWt65VqWTe3+gddF+brZb0ZhOl7kzIzYGu6ErsNhO02pFM6qk0r/JPqGx PQ59WcXnAdN6Al+FNN0k/T6klL5epStV/txWxabOxawEY5hEM3Ir+uhkuDsngHx2eeod 4vdzgdGYV6/hW/g0s46y8B9nkF0v3AdxgmJWsMn/VnDTuOXSn+yweuNGiBmmEFVB5HoX eMuw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=9yFPCpC+KcvysSHE/TzUxgB6C7mqpr36eNkZECpHJ1c=; b=fF0KrJ6janYsfdFPxCtY8kdzwjuDNLTFmH5AQEVnoGJBVfcZlfuuiJDiOE5y9O9vvJ X5CxZIeWb/yTNDo5rCCRWMi3GIE+Woec6gNR04s2Fs0VGD3dmdrC4soaO5vgSNkUFbuC W8+1YfrWSJAWUz7tMpAlEOmQhJyQ66BVQ0N1U/MPZRGVHYYf19IDzaMNz6DTZa70PMC0 BIWXN1CDD3/tR/tQC5LLKUGl86d/Obe2GYwtzyks1vgC7K0oN02xN4mp9R+t5Mt/jlAM GxLPoolNcNG1WNyYGzakoXviVjnsE9vgwOWB+a8eBPRAj3bRTFeTvL8A6ReKCjxn0qof 0+NQ== X-Gm-Message-State: AOAM533bWBNIR+JB1FVzVHz4UoyqTfGajAGOq7Nm90oqxPMK4aCqgMkf lH+mutnp8zIYY/8K5XhaiZX5KA== X-Received: by 2002:adf:fec5:: with SMTP id q5mr16913767wrs.43.1614779028142; Wed, 03 Mar 2021 05:43:48 -0800 (PST) Received: from dell.default ([91.110.221.155]) by smtp.gmail.com with ESMTPSA id w18sm6109524wrr.7.2021.03.03.05.43.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Mar 2021 05:43:47 -0800 (PST) From: Lee Jones To: lee.jones@linaro.org Subject: [PATCH 17/53] drm/nouveau/dispnv50/headc57d: Make local function 'headc57d_olut' static Date: Wed, 3 Mar 2021 13:42:43 +0000 Message-Id: <20210303134319.3160762-18-lee.jones@linaro.org> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20210303134319.3160762-1-lee.jones@linaro.org> References: <20210303134319.3160762-1-lee.jones@linaro.org> MIME-Version: 1.0 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: David Airlie , nouveau@lists.freedesktop.org, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, Ben Skeggs Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" Fixes the following W=1 kernel build warning(s): drivers/gpu/drm/nouveau/dispnv50/headc57d.c:173:1: warning: no previous prototype for ‘headc57d_olut’ [-Wmissing-prototypes] Cc: Ben Skeggs Cc: David Airlie Cc: Daniel Vetter Cc: Lyude Paul Cc: dri-devel@lists.freedesktop.org Cc: nouveau@lists.freedesktop.org Signed-off-by: Lee Jones Reviewed-by: Lyude Paul --- drivers/gpu/drm/nouveau/dispnv50/headc57d.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/nouveau/dispnv50/headc57d.c b/drivers/gpu/drm/nouveau/dispnv50/headc57d.c index fd51527b56b83..bdcfd240d61c8 100644 --- a/drivers/gpu/drm/nouveau/dispnv50/headc57d.c +++ b/drivers/gpu/drm/nouveau/dispnv50/headc57d.c @@ -169,7 +169,7 @@ headc57d_olut_load(struct drm_color_lut *in, int size, void __iomem *mem) writew(readw(mem - 4), mem + 4); } -bool +static bool headc57d_olut(struct nv50_head *head, struct nv50_head_atom *asyh, int size) { if (size != 0 && size != 256 && size != 1024) From patchwork Wed Mar 3 13:42:44 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 392079 Delivered-To: patch@linaro.org Received: by 2002:a02:290e:0:0:0:0:0 with SMTP id p14csp5133129jap; Wed, 3 Mar 2021 05:44:15 -0800 (PST) X-Google-Smtp-Source: ABdhPJwWwFD6TGW+gOMrKCWPMFF/wPugDv/ZUl5lvEuPmcNMf8PH7f+F/jn8TmDg2B8iPyFb/g1t X-Received: by 2002:aa7:8ad5:0:b029:1df:5a5a:80e1 with SMTP id b21-20020aa78ad50000b02901df5a5a80e1mr24788472pfd.52.1614779055401; Wed, 03 Mar 2021 05:44:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614779055; cv=none; d=google.com; s=arc-20160816; b=JEz/+urbyo1VmGnGRrEh+UO6+pcZNpFTx6dVarxInPZjeFRlzrHARR1ReEUizQX5lX mqDUHJZA8lKLk66NAsItDkcC6Nv0gsO0Zdp3xRlv62odjQ9zOp9wEst04HVbYAgzS20/ HjvtS4TEwoSNmBnVE/xWGP9ATgWjggexzPtl5xDBVCazCY8Xde5pojS8A64wfQTzr0pn YVqaVFNiHjOR7mepGClk/zZqKANZa9VWiwwVi1fx6j2hcF1TEfbbVJzKzcpgZ8733hDz 04PAR+wbKqSPVMoDiYONzDH1n7r4AHDo99nz/fmV6K3WBbuYlCpZ7Ix4LA9ag/qg74ux kOfg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:cc:list-subscribe :list-help:list-post:list-archive:list-unsubscribe:list-id :precedence:mime-version:references:in-reply-to:message-id:date :subject:to:from:dkim-signature:delivered-to; bh=y8jOaxtElLQfRw0/wyZGdQJBRPprlkf1XzdhEe6Q4As=; b=KX7z/95UULI2y0F2KCMpG2Sf196rytRvsJb+2qrGkRTGGTsDENC3t+q2Uz/NxHkmi5 VgWyGRfrB9CmBu3xLxQgVAwUtprQxMFgl7MAYk+3ha/tSzqnyaiyg0F2MpyVSmeLhjHa ehxPcz9ihU/Qf/uNd+UGerpb/wHOL3ailQZ2cv/r52VAvNrzZKpbE9bV2MsC9vjoZpk3 cfCl3R3Vzj17alTjzYFJWCNxBwRAYLmC708jUK9NIhmiq4pwaTKiivO37UHUDfwrmoIr Wb3dB0ZVSEgAr7NoANb49G0s21PUV/kF3idjy6k8OCjopm58yD3erjNK6RzrBQ7zmZJs cwKQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=DDM5R4xs; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from gabe.freedesktop.org (gabe.freedesktop.org. [131.252.210.177]) by mx.google.com with ESMTPS id s6si23780983pfh.146.2021.03.03.05.44.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Mar 2021 05:44:15 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) client-ip=131.252.210.177; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=DDM5R4xs; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id CD3D76E8F3; Wed, 3 Mar 2021 13:43:52 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wm1-x336.google.com (mail-wm1-x336.google.com [IPv6:2a00:1450:4864:20::336]) by gabe.freedesktop.org (Postfix) with ESMTPS id 81BFA6E8F9 for ; Wed, 3 Mar 2021 13:43:50 +0000 (UTC) Received: by mail-wm1-x336.google.com with SMTP id o16so6405640wmh.0 for ; Wed, 03 Mar 2021 05:43:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=lgIHEbwNozF8CQjai0jy8D0j5kT9wSfHdAr6OHIEyt8=; b=DDM5R4xsGiTVpRIEPuVyLljyb6ERGlg1KlQqC4FxmUKm7EgZzmf3FUqCqwRnWSzS1M W1Jt8E+Xi1w8AAO3crFj2UNIosYF9a5C5S2xPLVYbdKOz4DNyidBnrZNgND5NXGIo82m MwolqE2yBrUUnTQZgwYF00WIuelEBzNqvX5BX16/ko2vetUGo9U2CNIOEW1iva5w9dQL DzKQexO8SiTvO2U2ipzDN5VfW8AFExyg6NFrMlYQ0qSEmUutSy3cpsMN39c5j9UJa9xm IMN58C0+q+YtF2ntzuUIWAwHfQ8+AGB8BtnY9hrIBv3Y9aGYwpn2ACZZVULICZMS4JQw 3qrA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=lgIHEbwNozF8CQjai0jy8D0j5kT9wSfHdAr6OHIEyt8=; b=t0vGTXr/C/gvrsscZ5f3oJm7Aa08Z1tDs92mdkX4vsSvv6YXI5RaWlA7rzqgWkUt+I PSxqtldKVc2/Sb6Uu2qd5AhF7oDTCsgqmhy/W+CllA9seRKK056g//Q2L8rV5a9RjZmC sumZYm578fH+OcIYpGNa7CY+iN3kkOIDUEQfDZML4j2n0zt1hAIJ1TkgT63Jq+Yef7oo 3/JCoMhHpYhCol50tEPoqupGnJ3fYKMWHOFmZsiILjEK7p3G44Km0bt3GaaSTUmXjpAj oAf3CWnSQt4Tq1tQc2UXl8ti5gS5HJ18SiKHuURh5uFGV7/sBOgUWt1GLIMYmMnyAmxe DnrA== X-Gm-Message-State: AOAM5333d+DtjmxfB/rIHr0fV5mUHaWsMZazkACGDHZ7jiWvBarlXOeW JffoGzRNOhkqk1A2++zzT2bBgg== X-Received: by 2002:a1c:f212:: with SMTP id s18mr9320896wmc.133.1614779029145; Wed, 03 Mar 2021 05:43:49 -0800 (PST) Received: from dell.default ([91.110.221.155]) by smtp.gmail.com with ESMTPSA id w18sm6109524wrr.7.2021.03.03.05.43.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Mar 2021 05:43:48 -0800 (PST) From: Lee Jones To: lee.jones@linaro.org Subject: [PATCH 18/53] drm/nouveau/nv50_display: Remove superfluous prototype for local static functions Date: Wed, 3 Mar 2021 13:42:44 +0000 Message-Id: <20210303134319.3160762-19-lee.jones@linaro.org> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20210303134319.3160762-1-lee.jones@linaro.org> References: <20210303134319.3160762-1-lee.jones@linaro.org> MIME-Version: 1.0 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: David Airlie , nouveau@lists.freedesktop.org, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, Ben Skeggs Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" Fixes the following build error: drivers/gpu/drm/nouveau/dispnv50/disp.c:2530:1: error: conflicting types for ‘nv50_display_fini’ In file included from drivers/gpu/drm/nouveau/dispnv50/disp.c:71: drivers/gpu/drm/nouveau/nv50_display.h:36:6: note: previous declaration of ‘nv50_display_fini’ was her In file included from drivers/gpu/drm/nouveau/dispnv50/disp.c:71: drivers/gpu/drm/nouveau/nv50_display.h:35:6: note: previous declaration of ‘nv50_display_init’ was here drivers/gpu/drm/nouveau/dispnv50/disp.c:2581:1: error: static declaration of ‘nv50_display_destroy’ follows non-static declaration In file included from drivers/gpu/drm/nouveau/dispnv50/disp.c:71: drivers/gpu/drm/nouveau/nv50_display.h:34:6: note: previous declaration of ‘nv50_display_destroy’ was here Cc: Ben Skeggs Cc: David Airlie Cc: Daniel Vetter Cc: dri-devel@lists.freedesktop.org Cc: nouveau@lists.freedesktop.org Signed-off-by: Lee Jones --- drivers/gpu/drm/nouveau/nv50_display.h | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/gpu/drm/nouveau/nv50_display.h b/drivers/gpu/drm/nouveau/nv50_display.h index fbd3b15583bc8..2421401d12636 100644 --- a/drivers/gpu/drm/nouveau/nv50_display.h +++ b/drivers/gpu/drm/nouveau/nv50_display.h @@ -31,7 +31,4 @@ #include "nouveau_reg.h" int nv50_display_create(struct drm_device *); -void nv50_display_destroy(struct drm_device *); -int nv50_display_init(struct drm_device *); -void nv50_display_fini(struct drm_device *); #endif /* __NV50_DISPLAY_H__ */ From patchwork Wed Mar 3 13:42:45 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 392080 Delivered-To: patch@linaro.org Received: by 2002:a02:290e:0:0:0:0:0 with SMTP id p14csp5133146jap; Wed, 3 Mar 2021 05:44:16 -0800 (PST) X-Google-Smtp-Source: ABdhPJw/a9Wk7gjuQ8hVP/WxqkwgcfzTdXzf6hdDXvhYhxBh2NTqnKVmOgUEj6ghmnBAszla/VqW X-Received: by 2002:a63:6f8a:: with SMTP id k132mr23822780pgc.59.1614779056340; Wed, 03 Mar 2021 05:44:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614779056; cv=none; d=google.com; s=arc-20160816; b=FEkBUNH+OVhM+9YY61vhIHTTfKnkdvOqVoZ08O1W05lZsXw97ktE3wKE1E6Li9H/Yl R3U7isFP89KXtaeDDRULLG1SM0nxdga4bD+GNmJKvefD+foeIKlrq3I6wUw2opHai72y uvj+dnTW3MfllKtjxsfxkdaLOuz2tTaouXWLcEgEQesusSFitVk+Ok5Gxz6nUnZT7+yr +LuOgwEY+qZtKSQkxiThOe182GGVCafpjj4XLDzXIxTv/o/WzStygs3kRaKqeb6B5nZM zIyAuOOKZNAmPxd4tb96vZfWsxEPRQosdEkA+GEYvwXw2oZZvTh3OoAQ9rOWaUczB+Ji PIOQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:cc:list-subscribe :list-help:list-post:list-archive:list-unsubscribe:list-id :precedence:mime-version:references:in-reply-to:message-id:date :subject:to:from:dkim-signature:delivered-to; bh=6pgMhqhq1SlL8AMoJa+7Rfz5VfYaIC9gL6n/7otxDDQ=; b=GvRAS2CjQqMRA7jUbidqiBhVN/hyPZ39kWWSRabpIhwB12YS+rIgqQEdChiJuLroee zP4RZIykgjluX6EYb/CmrkDgQ9MUMuM4lmxDeBaI1NAB4L+kZe0MVBBJtbssAY7szqd/ 3BHvnJc1wfLsKF7xSm98X19Ja+gJS1f7qjqVTY+k71q/J+/3a1/GZGOJT38aWq1OJMkN iHZmwdiB8x5Q5I6qf8iZ6JuPr3S81QggGqL5z4xZyK5l8oQ6/jU2u4NODyiiMH5NjoJG mfmY4VOR2mjSQB9NVreCxEwQDNPU8PzvLzAp1/18kfPzbN9+rY1tRc3u78Z7eKiUn0uJ kjvA== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=iMTh4dk0; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from gabe.freedesktop.org (gabe.freedesktop.org. [131.252.210.177]) by mx.google.com with ESMTPS id t5si24413586plr.402.2021.03.03.05.44.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Mar 2021 05:44:16 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) client-ip=131.252.210.177; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=iMTh4dk0; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id D5C646E8FB; Wed, 3 Mar 2021 13:43:53 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wm1-x32c.google.com (mail-wm1-x32c.google.com [IPv6:2a00:1450:4864:20::32c]) by gabe.freedesktop.org (Postfix) with ESMTPS id F36B06E406 for ; Wed, 3 Mar 2021 13:43:51 +0000 (UTC) Received: by mail-wm1-x32c.google.com with SMTP id o16so6405693wmh.0 for ; Wed, 03 Mar 2021 05:43:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=WQfVByDMubjxteIKJEZ6P0NR+Mqv9ZNp4le53NfYrp8=; b=iMTh4dk09sGxqAE/qzSGNAZyvWAptULs+nQCYT2OtIn3+7m0+6HrnZE1aUNidOxkd1 HmBXyCE2zeEgjrHTRb3VZSeT3uOaMbsogo1LT36zL6TJcnQSaeedSmHxTVD7t846xMCV eDdK6AYjTARDjg8E/gMjAKx0AYRKmz5xxP6aPwaFs9bQtLq/cDZ+1G8tJCD8Sw6/+Si1 oWKD8iQuNbtQnxKs9XREiEA3GzeA3/ge0ObQRTj0uRHSotea1Ndx9pvJUsW1OI6UJwh1 m8FyDR4OSbUUM46rq97np9+8LfZYnGxDKtK3Vl0ooMSjZ2eHgo1Le9Z/NLIU8vnm9XBF UUCg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=WQfVByDMubjxteIKJEZ6P0NR+Mqv9ZNp4le53NfYrp8=; b=R5kzTsz1tbBzXshdZY+KcSCu/FcJWPwT5pbIuQwnwX2BxVlhZ4Ast/DzB1OPLfz0lZ 91jmj5MSbhWLLIPE8WqEDd2ztFSbUdraunDIKGkN71XJmnULY6r1h6HpyIKGkcFjj66j c/ar1xCH4sO77Cli5jj33aVTnTH14p3A/QFK7lM1ci6tY0kYpiZaRWsk5/xk2rMs3NN9 OkdtVEFWn8tjC1zoj+UBl420DwC7prvLfRboRnCvforvuo/7Kn23PtlIj3XgueGhp23/ e6jR/zvhQ9GJNzig9fiUtB5bjlHyK18RIB3HhEp7DmMaQNn0HjsxkyRK6giiSA18e4aL dOcA== X-Gm-Message-State: AOAM532ipoNjYUTPidTmcuZVEU/BEOXvC4V7JGRTsLhTGLE4gOd61N7R bhrMmnvYYk+tPMJJJzBELbA/Pg== X-Received: by 2002:a1c:400b:: with SMTP id n11mr9079631wma.167.1614779030643; Wed, 03 Mar 2021 05:43:50 -0800 (PST) Received: from dell.default ([91.110.221.155]) by smtp.gmail.com with ESMTPSA id w18sm6109524wrr.7.2021.03.03.05.43.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Mar 2021 05:43:50 -0800 (PST) From: Lee Jones To: lee.jones@linaro.org Subject: [PATCH 19/53] drm/nouveau/dispnv50/disp: Include header containing our prototypes Date: Wed, 3 Mar 2021 13:42:45 +0000 Message-Id: <20210303134319.3160762-20-lee.jones@linaro.org> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20210303134319.3160762-1-lee.jones@linaro.org> References: <20210303134319.3160762-1-lee.jones@linaro.org> MIME-Version: 1.0 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: David Airlie , nouveau@lists.freedesktop.org, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, Ben Skeggs Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" Fixes the following W=1 kernel build warning(s): drivers/gpu/drm/nouveau/dispnv50/disp.c:2599:1: warning: no previous prototype for ‘nv50_display_create’ [-Wmissing-prototypes] Cc: Ben Skeggs Cc: David Airlie Cc: Daniel Vetter Cc: dri-devel@lists.freedesktop.org Cc: nouveau@lists.freedesktop.org Signed-off-by: Lee Jones --- drivers/gpu/drm/nouveau/dispnv50/disp.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/gpu/drm/nouveau/dispnv50/disp.c b/drivers/gpu/drm/nouveau/dispnv50/disp.c index 828f48d5bdd4e..cd16431422198 100644 --- a/drivers/gpu/drm/nouveau/dispnv50/disp.c +++ b/drivers/gpu/drm/nouveau/dispnv50/disp.c @@ -68,6 +68,8 @@ #include +#include "nv50_display.h" + /****************************************************************************** * EVO channel *****************************************************************************/ From patchwork Wed Mar 3 13:42:46 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 392082 Delivered-To: patch@linaro.org Received: by 2002:a02:290e:0:0:0:0:0 with SMTP id p14csp5133189jap; Wed, 3 Mar 2021 05:44:20 -0800 (PST) X-Google-Smtp-Source: ABdhPJyXInp34aWkE7fEyAMwAP+xkEqA1/RLSg9V4TRQBkLUXA0eyl2hSzhveKpCSCL+MtVkPsJ/ X-Received: by 2002:a17:90a:ab09:: with SMTP id m9mr10184208pjq.122.1614779060286; Wed, 03 Mar 2021 05:44:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614779060; cv=none; d=google.com; s=arc-20160816; b=HtEVZq4wDpxvVHbNUr47SfaVjoGy+hgoZ8Yxsuju/MVcRqLhR4+rN/3rJIN09WIrry QltfqZfeenKTr+KmE3oFhTBs5CeLCDcDN+Oq0Uo/oIdCFZhHzBtItqCuF+n1TwnzJmA1 nzNymPd/I3Bc4NfNUw6cSqP4TPRDaYq2Vst06oO5yOH/dJh2hnu/bl6cAtxWrdbul0/l R7lMD36hVaWeKC0k8oS3Z7AFmqrDSEosn9XlD73WpZsV6qtfz2ZpLaHFdKqY8Su0frX4 +7LSyoOPlelnz4W7NAIyCH4xMNfRprqeli/9P+b5kHikY/oAj6KFTgopDDYybXqd2/Rr cV6A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:cc:list-subscribe :list-help:list-post:list-archive:list-unsubscribe:list-id :precedence:mime-version:references:in-reply-to:message-id:date :subject:to:from:dkim-signature:delivered-to; bh=uQ0+CEjBPRdBK52J12hXWP/hRNuEvTTYayB7H6Qgy+I=; b=0r7N6QbatQcXpbzIJ9UcXuBz1WaVZPbAT/6OjhDFA33x1fVeoz0aaMicohkVjoTPyj PjhrhVYE2e+Srn35/bjTvkzxNqAEUrMqpbAxWia2r65kVW751NDCRbHuHYrNmhh+yhhv l81VfvKpJ6DDhii7ONyYRJWoQoFizRp3HJ4tTk+R6Gt9XRM9nMa1tzi4viwC/1K0OeTu 9hZ/LyNoUMTl2DCa6n1lSkPm+H4InyhnAtquc6/bR4Csyetk/WXuw4DmcWVgsIy/F0uu 9Dfb+rN2svQJ8ifv3+X8/DFiOJPOGVOX4KE9dr0yLEqOYQChqv5sbAuVIhivCsZ4QkHo 5Cng== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=NUDheECZ; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from gabe.freedesktop.org (gabe.freedesktop.org. [131.252.210.177]) by mx.google.com with ESMTPS id w24si5962623pjq.99.2021.03.03.05.44.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Mar 2021 05:44:20 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) client-ip=131.252.210.177; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=NUDheECZ; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id E946B6E8F7; Wed, 3 Mar 2021 13:43:55 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wm1-x331.google.com (mail-wm1-x331.google.com [IPv6:2a00:1450:4864:20::331]) by gabe.freedesktop.org (Postfix) with ESMTPS id 3628B6E8F7 for ; Wed, 3 Mar 2021 13:43:53 +0000 (UTC) Received: by mail-wm1-x331.google.com with SMTP id o16so6405739wmh.0 for ; Wed, 03 Mar 2021 05:43:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=QN4aBNwxKOCABxwfpyuG0Xk/7oUm3WT2PgkGnXFzadY=; b=NUDheECZVxO5psCuCN1jM1xoZZajGPU7kVwWlnJ5mOiEUeZbufPZ3v7TtA6Mx91EwB 1/eF9EQNvIVocgKdeUQr0i2ecHyxb2WvhGSpDs7vAlW79wJXc8BwVpIvUK9osgeDoQK9 WQFjHYVajsn3pUsX0ce82bUYFY4YdoT9oAONAQt5o8wD29NlaynJv1vdmr+WN3q/P8ig cw4qY6aUnXiA+GZMlw1UE6KTSoQw6EYAjVktZ74xQsBtNL7ncpmrBeeEkrJG0GmoPSAE Im1UMfhp+V3Mgq1bA3ZghrYEcOE/U0l0pugJp5ElXdJaz/8FqB6GR2egDZ/lE4fpw9st YE+g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=QN4aBNwxKOCABxwfpyuG0Xk/7oUm3WT2PgkGnXFzadY=; b=Wjno5kRS8BmcTRUsE6dvGeOg5eOgIdZhAd4H5FHeedIeWBuN/vkiJAj2d2AWsS2PbJ A9MbsmnqfyQf0rYVmfnAxN2do63FvSUJenn7No44P6oXTSk+zMuQiQUFFCAwP7kiBY7L ygM88DoPPlLawZobaA66H9RZmQYvk/gKshudzhLljRTF4CbIL8SGmcbefZoTdmRqxFWv DBsTmyHQJTDY2/LFKAttthexIzjoRhFoTc4MQ2a/1vwI0F/H219e9R2Md4fRUrfmBQWT PhEaumrpfppxx+qxUYFE9LfmoRPOKg33y23SHcKUbdSV9NuFjvBOpcR8/c1+D3BM/Bmp 1RIw== X-Gm-Message-State: AOAM530pe3VrkWmxEMj6QzgbTkXr36gHZV9m0HtsSk1zfedA0GPTysIf sFkKQ4ZHJTjYzEzPT+rg6F0Lkw== X-Received: by 2002:a1c:2c05:: with SMTP id s5mr9141833wms.70.1614779031936; Wed, 03 Mar 2021 05:43:51 -0800 (PST) Received: from dell.default ([91.110.221.155]) by smtp.gmail.com with ESMTPSA id w18sm6109524wrr.7.2021.03.03.05.43.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Mar 2021 05:43:51 -0800 (PST) From: Lee Jones To: lee.jones@linaro.org Subject: [PATCH 20/53] drm/nouveau/nouveau_ioc32: File headers are not good candidates for kernel-doc Date: Wed, 3 Mar 2021 13:42:46 +0000 Message-Id: <20210303134319.3160762-21-lee.jones@linaro.org> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20210303134319.3160762-1-lee.jones@linaro.org> References: <20210303134319.3160762-1-lee.jones@linaro.org> MIME-Version: 1.0 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: David Airlie , nouveau@lists.freedesktop.org, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, Ben Skeggs Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" Fixes the following W=1 kernel build warning(s): drivers/gpu/drm/nouveau/nouveau_ioc32.c:2: warning: Cannot understand * file mga_ioc32.c Cc: Ben Skeggs Cc: David Airlie Cc: Daniel Vetter Cc: dri-devel@lists.freedesktop.org Cc: nouveau@lists.freedesktop.org Signed-off-by: Lee Jones --- drivers/gpu/drm/nouveau/nouveau_ioc32.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.27.0 _______________________________________________ dri-devel mailing list dri-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/dri-devel diff --git a/drivers/gpu/drm/nouveau/nouveau_ioc32.c b/drivers/gpu/drm/nouveau/nouveau_ioc32.c index adf01ca9e035d..8ddf9b2325a42 100644 --- a/drivers/gpu/drm/nouveau/nouveau_ioc32.c +++ b/drivers/gpu/drm/nouveau/nouveau_ioc32.c @@ -1,4 +1,4 @@ -/** +/* * \file mga_ioc32.c * * 32-bit ioctl compatibility routines for the MGA DRM. From patchwork Wed Mar 3 13:42:47 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 392081 Delivered-To: patch@linaro.org Received: by 2002:a02:290e:0:0:0:0:0 with SMTP id p14csp5133171jap; Wed, 3 Mar 2021 05:44:18 -0800 (PST) X-Google-Smtp-Source: ABdhPJyCR5P5zJZU1mGeaZJ5b0rl2C/ZmedVcPPu9WMmbQk75ZGrsN8Qo4vhhP+/1ywmW3MmSoFT X-Received: by 2002:a63:461d:: with SMTP id t29mr22836968pga.192.1614779058683; Wed, 03 Mar 2021 05:44:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614779058; cv=none; d=google.com; s=arc-20160816; b=B4G6G5PmwYRP8IlyFQRlT+Ky/b+0PFvhPazwvBALH9OWxAov99QbZQDOvlHx1LG+mi FkOi7hA8xtMugrd2+/s5UVTp6bEH8OX/b3/P9YgG2FEk/9RGGsKD77a7OJPkv+n5zvt7 e3N/vec7xBh66LaLYz8Wl95moMipQIapCri33EMoSoPHMA8eKWlN5SkmQC0ewCnelSXZ xKQX/KWLNgl4TjjwLb8+C3tdfJNdA5FccidE/bKvcgVYK29vk6ycHekMFoH/R9EBgdUH 3yuOreGeSnqi22wezJ93wR/0Pwx1GVKe8Fn0RIzbTqoHKABigRD6wnuy8NX0/IX2RhtM gpVg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:cc:list-subscribe :list-help:list-post:list-archive:list-unsubscribe:list-id :precedence:mime-version:references:in-reply-to:message-id:date :subject:to:from:dkim-signature:delivered-to; bh=Xvx8OW/mz1LZwcG2sTOceeS1KGNEDstBKmCwckNzKVw=; b=d3h9iId9V0ZZ6Mi3k7S4qs68vD3l+/8xVr8NTi+FZvEMUSuPn7u7LO+CafXBbgaJtI UVFyV6LYJciNgk9PbR6/7CHZ9w5XUaFPwbkF1G6O9FcXrFHgVPavujPffPhKMBiOWACo 7DE2y3bBqSVM1NcsU38m2FMvKiUy06rGAvaf/VCobffEdI+NNJbLrTEKH4n2OyhZ7ap4 z3MJBsBTVtlHIH7aaz/pfc/F7fk29I979JUmaUEtd8cn5ZfR0LvYFUdSj62nGBs46mK1 7lh4+gPXlByjS7uT600I7p8+INN6VOMOOqtDTyd3KJBMT3hAsjsrt9lINqGgwWtJ5nHy uMbA== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=Hv3a0tcA; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 2610:10:20:722:a800:ff:fe36:1795 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from gabe.freedesktop.org (gabe.freedesktop.org. [2610:10:20:722:a800:ff:fe36:1795]) by mx.google.com with ESMTPS id u127si2793626pfu.16.2021.03.03.05.44.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Mar 2021 05:44:18 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 2610:10:20:722:a800:ff:fe36:1795 as permitted sender) client-ip=2610:10:20:722:a800:ff:fe36:1795; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=Hv3a0tcA; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 2610:10:20:722:a800:ff:fe36:1795 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 988226E8F2; Wed, 3 Mar 2021 13:43:55 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wm1-x331.google.com (mail-wm1-x331.google.com [IPv6:2a00:1450:4864:20::331]) by gabe.freedesktop.org (Postfix) with ESMTPS id 25EDF6E8FD for ; Wed, 3 Mar 2021 13:43:54 +0000 (UTC) Received: by mail-wm1-x331.google.com with SMTP id n22so5227800wmc.2 for ; Wed, 03 Mar 2021 05:43:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=eTcc77PaUiGKf9phoAd/vzPQm0tz3YbgYP/6lveIZh4=; b=Hv3a0tcAo2K75m0PVXruwEWL4rfLpWzsc4Q8ptX+wlRQui8I+T9dLgLHzoAzZ504j/ XcEzu5iref2iOCnTh/o7cuHw+viXjLLMy8clfd4ZxtHnXl0RQYy2eGfS2ggWC1qnxc5p xC4l5DEddko48sXzz7/SS7YKf1p0wal7oJ5cXs9QtL18zSF/4lmjSmI2HgSN3tyE6B1S /FTU0+aJKxH890PwQM1AEg3ZlrQQ+JU2ilGVGkvuv97eQX2CwvOuTVNBVkTMCDWRoCS6 t3to01UjR2QuViV0QUnqOsUPl5w4dzGd0Yi/iMWuHy/RtGZ8ifOVWd3phAkfkQ8RvNOA kRGQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=eTcc77PaUiGKf9phoAd/vzPQm0tz3YbgYP/6lveIZh4=; b=a1YSMkU4wIu6rBY/MVTeclQFErIIo75vfxvVNu22VRD4vhR6iyVy8TO6+UfHkGPsc2 94g3XbLIvGTxJhMDb/L+M9g2qP1yVDFwbRNpx13Yktp+9nZMjiIbeeweXsKUSBezCaKN 6Z7rfYwXpq2aP17NAvs/2oWFqzVzTiizhFRvqxGrDFkLsI+TwWVCwyU0coDifh8rMAg4 zHmPWVrqK9TZv8ntmFOOl/M9fuqDQZdK0gpZidXwayeaImHNX9+ch2Sq50ssQici1ps8 WmzrE9bMyO4CWsZg+/C/UPIAni3YC0zSpqcwprXKxW0QVPZOn9zNEpcgt2PXlyI45uKP rExg== X-Gm-Message-State: AOAM533rwDUmwggPHDGdnMmH77s55ilFEmDD83MxrhM2rTMw2TDH2GL5 w7s8kze7WmOAWlZhyMGCKL54Jw== X-Received: by 2002:a05:600c:190a:: with SMTP id j10mr9157109wmq.140.1614779032867; Wed, 03 Mar 2021 05:43:52 -0800 (PST) Received: from dell.default ([91.110.221.155]) by smtp.gmail.com with ESMTPSA id w18sm6109524wrr.7.2021.03.03.05.43.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Mar 2021 05:43:52 -0800 (PST) From: Lee Jones To: lee.jones@linaro.org Subject: [PATCH 21/53] drm/nouveau/nouveau_svm: Remove unused variable 'ret' from void function Date: Wed, 3 Mar 2021 13:42:47 +0000 Message-Id: <20210303134319.3160762-22-lee.jones@linaro.org> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20210303134319.3160762-1-lee.jones@linaro.org> References: <20210303134319.3160762-1-lee.jones@linaro.org> MIME-Version: 1.0 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: David Airlie , nouveau@lists.freedesktop.org, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, Ben Skeggs Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" Fixes the following W=1 kernel build warning(s): drivers/gpu/drm/nouveau/nouveau_svm.c: In function ‘nouveau_pfns_map’: drivers/gpu/drm/nouveau/nouveau_svm.c:810:6: warning: variable ‘ret’ set but not used [-Wunused-but-set-variable] Cc: Ben Skeggs Cc: David Airlie Cc: Daniel Vetter Cc: dri-devel@lists.freedesktop.org Cc: nouveau@lists.freedesktop.org Signed-off-by: Lee Jones --- drivers/gpu/drm/nouveau/nouveau_svm.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/gpu/drm/nouveau/nouveau_svm.c b/drivers/gpu/drm/nouveau/nouveau_svm.c index 1c3f890377d2c..26af6ee915368 100644 --- a/drivers/gpu/drm/nouveau/nouveau_svm.c +++ b/drivers/gpu/drm/nouveau/nouveau_svm.c @@ -811,7 +811,6 @@ nouveau_pfns_map(struct nouveau_svmm *svmm, struct mm_struct *mm, unsigned long addr, u64 *pfns, unsigned long npages) { struct nouveau_pfnmap_args *args = nouveau_pfns_to_args(pfns); - int ret; args->p.addr = addr; args->p.size = npages << PAGE_SHIFT; @@ -819,8 +818,8 @@ nouveau_pfns_map(struct nouveau_svmm *svmm, struct mm_struct *mm, mutex_lock(&svmm->mutex); svmm->vmm->vmm.object.client->super = true; - ret = nvif_object_ioctl(&svmm->vmm->vmm.object, args, sizeof(*args) + - npages * sizeof(args->p.phys[0]), NULL); + nvif_object_ioctl(&svmm->vmm->vmm.object, args, sizeof(*args) + + npages * sizeof(args->p.phys[0]), NULL); svmm->vmm->vmm.object.client->super = false; mutex_unlock(&svmm->mutex); From patchwork Wed Mar 3 13:42:48 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 392083 Delivered-To: patch@linaro.org Received: by 2002:a02:290e:0:0:0:0:0 with SMTP id p14csp5133202jap; Wed, 3 Mar 2021 05:44:21 -0800 (PST) X-Google-Smtp-Source: ABdhPJzaoQzQclHdPSs8B08hjO0oQs9mLiG9t2sZb6U2WjvFnatZHXyjXQGsd0h7IE954EphFQio X-Received: by 2002:a17:90a:8b82:: with SMTP id z2mr9492263pjn.25.1614779061667; Wed, 03 Mar 2021 05:44:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614779061; cv=none; d=google.com; s=arc-20160816; b=IbVJ68Nw9UBrStRYh3TUpW1+vqdUSMmVitCxYzwZFPEWMgItMoBNGHe0VDT5OHxhQ1 5GRh1xgPaTML/diXo8+A13lQRvOZuTASlXBNen9z3oV0gggrwfephU9UsYZtSbKkO2hA 33nZn1eJ+6ox3AjyST+5/I7niPs9dsMPJ6WM3QuX55CwlGeJGe9C9rMSA4nDTKw9eSVD rdcKBwQkaTjd09x6gWGdiLsXMUitDBulixgPg+Tt3e68pZO3/ll7lyJ8USOrUZP0BBK+ jJ6J95vN35llgLnstYXoQgLQh2o0uVWBdkV0XPccEpWvrAZs+w4eLbuefrFUOj0xFZ7I UULQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:cc:list-subscribe :list-help:list-post:list-archive:list-unsubscribe:list-id :precedence:mime-version:references:in-reply-to:message-id:date :subject:to:from:dkim-signature:delivered-to; bh=lVhpekAWdhQkmwR8Tu86PRLahnapQpeu5Z4DLhmnc+Y=; b=sti6wtmFuCnqP5ZuynE4Fl06iirA3mDEGG+T0T+X7NBJv1Yy049PVi4ytKirm47NsU xBPElDqQ1s8Om8D/UaElQYxkICLXzy0ZVnNFrgzomjL85aussMf3Q8zuBjdm7csA35Lu CRZEdfVSV3iqjZO6jpkNR+yQYo06RqOil1mfc5z3KTHxbaSIZ/wClpCTR67FesSYcdmI ZOI6QCkOVN5gUgNa3rTdzHA07IFN5u1P4hggB1AXUGMld+eKadkVZwHNFQ3YA32QC1TA ThHArDu7hBh2ggM10I6ZIZV+QLOEL8sEVG0HWTuixFkqaaOZSswAHUVPGGakUifajIFg Afsg== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=Ng8hdaWR; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 2610:10:20:722:a800:ff:fe36:1795 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from gabe.freedesktop.org (gabe.freedesktop.org. [2610:10:20:722:a800:ff:fe36:1795]) by mx.google.com with ESMTPS id y7si6008035pjn.150.2021.03.03.05.44.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Mar 2021 05:44:21 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 2610:10:20:722:a800:ff:fe36:1795 as permitted sender) client-ip=2610:10:20:722:a800:ff:fe36:1795; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=Ng8hdaWR; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 2610:10:20:722:a800:ff:fe36:1795 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 649126E8FE; Wed, 3 Mar 2021 13:43:57 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wr1-x42e.google.com (mail-wr1-x42e.google.com [IPv6:2a00:1450:4864:20::42e]) by gabe.freedesktop.org (Postfix) with ESMTPS id 9E5A46E8F9 for ; Wed, 3 Mar 2021 13:43:55 +0000 (UTC) Received: by mail-wr1-x42e.google.com with SMTP id w11so23713344wrr.10 for ; Wed, 03 Mar 2021 05:43:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=BenSWVQP2zN1koiPW0t4kws5hTFRiEoau/BE1y9GfNM=; b=Ng8hdaWRiiyvyJ7rnmG9yRryrouH4pj2frjYm54JU0V/Kij/mLkEoTUEP+yMJyN858 43bEo3V8esgmfbqdFHDVhOX+SYmO5tr9O/V0Mceqz5W1Xcgm7WGS+5ivEqcwlqOs8Ds7 gUsslo0geHrYU/ZKFsr3zq/YneNyJndoy2Em75uprLvmdbJe7KRxkSvIsl559Ym/lM8a V4HEidvwkXJY7TwiMQqabQmXvPddzJPgihMF4HHRUsKPHxZdQKO0HpYJ2lh1WlJB06N5 cC4fLLZcxrlhDnzlMsFU70uqIMOuAxIpB4tT9G1IKwKiYZzRepB8asZvagjaujELaLUf SRXw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=BenSWVQP2zN1koiPW0t4kws5hTFRiEoau/BE1y9GfNM=; b=I/NK64xOsX36FFO8jBr4/dxRunHq96lM0VCGcvRIF6AcQj7DOFJiGwFT363YA2GwW0 CwnASVIuP2ImwmPypDicl/MhrKoNkLGrzSMY4JGySzMFcVWWJweqkyewaSQXWX6EKTuW mRD4p+HBE59tw0uY4Xzqe2hyIfbL8uLPX4NowVpSWr7jEfbXgqTITg5ULsRmxwQxkEFx TGGnsbWFlxI7+hvvMV9mqKVA9TiTaC6O9+15A400n1duK3ho/nH5a2zXer6hvogRvCT/ UiLp+2I8vfpeBXSZ6jM9CyE1VTi1aKXrJ9cvFlPLH7iy/7FH/9o8d7FfTypK3n6Ylo06 UuOA== X-Gm-Message-State: AOAM533rwW3Nc7v4oeiVXKlChbS4iHDUEIlFdmcug7Ngdf5n6Pw6Q9sF pHKN2WYmv2/aoQGivpONol8p/g== X-Received: by 2002:a5d:6042:: with SMTP id j2mr28094272wrt.336.1614779034339; Wed, 03 Mar 2021 05:43:54 -0800 (PST) Received: from dell.default ([91.110.221.155]) by smtp.gmail.com with ESMTPSA id w18sm6109524wrr.7.2021.03.03.05.43.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Mar 2021 05:43:53 -0800 (PST) From: Lee Jones To: lee.jones@linaro.org Subject: [PATCH 22/53] drm/nouveau/nouveau_ioc32: Demote kernel-doc abuse to standard comment block Date: Wed, 3 Mar 2021 13:42:48 +0000 Message-Id: <20210303134319.3160762-23-lee.jones@linaro.org> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20210303134319.3160762-1-lee.jones@linaro.org> References: <20210303134319.3160762-1-lee.jones@linaro.org> MIME-Version: 1.0 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: David Airlie , nouveau@lists.freedesktop.org, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, Ben Skeggs Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" Fixes the following W=1 kernel build warning(s): drivers/gpu/drm/nouveau/nouveau_ioc32.c:52: warning: Function parameter or member 'filp' not described in 'nouveau_compat_ioctl' drivers/gpu/drm/nouveau/nouveau_ioc32.c:52: warning: Function parameter or member 'cmd' not described in 'nouveau_compat_ioctl' drivers/gpu/drm/nouveau/nouveau_ioc32.c:52: warning: Function parameter or member 'arg' not described in 'nouveau_compat_ioctl' Cc: Ben Skeggs Cc: David Airlie Cc: Daniel Vetter Cc: dri-devel@lists.freedesktop.org Cc: nouveau@lists.freedesktop.org Signed-off-by: Lee Jones --- drivers/gpu/drm/nouveau/nouveau_ioc32.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.27.0 _______________________________________________ dri-devel mailing list dri-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/dri-devel diff --git a/drivers/gpu/drm/nouveau/nouveau_ioc32.c b/drivers/gpu/drm/nouveau/nouveau_ioc32.c index 8ddf9b2325a42..2af3615c5205c 100644 --- a/drivers/gpu/drm/nouveau/nouveau_ioc32.c +++ b/drivers/gpu/drm/nouveau/nouveau_ioc32.c @@ -38,7 +38,7 @@ #include "nouveau_ioctl.h" -/** +/* * Called whenever a 32-bit process running under a 64-bit kernel * performs an ioctl on /dev/dri/card. * From patchwork Wed Mar 3 13:42:49 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 392084 Delivered-To: patch@linaro.org Received: by 2002:a02:290e:0:0:0:0:0 with SMTP id p14csp5133227jap; Wed, 3 Mar 2021 05:44:23 -0800 (PST) X-Google-Smtp-Source: ABdhPJydkcAWa+fagvLPZQkrJJQhYLTaHJuKy50usq+oMepsFg6ypESwUypQ7Te1/ofDWhtxcVNp X-Received: by 2002:a63:e84f:: with SMTP id a15mr22695921pgk.249.1614779063610; Wed, 03 Mar 2021 05:44:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614779063; cv=none; d=google.com; s=arc-20160816; b=hMIuzQhZVR9wwXvidxst09m3qPHJAh/Fl2ha0Nuuw+H2+y9szCkWmbIoJwLcayoRFX uzBGRNGwv46/9bZ8XBgEFkM1VBp9xsC+n6xoz21AEyJFw6OCeRSBxnKlvB/PCuAxI0Hw 3X0BXrIa1C0Ip2sZhIwuB9i1AUyfz07+xM3vLIW1ANdFM5InNlhQ+69SaLyzk8vEB8Yc OCvB5RPqgtpdaJNTAwdrCqaIpYR4mLHAabznxeMV2QrcPXE7inXadlbjRRXHl/7T9GFK Vh+00gWcxiKBESBzud53GukQoo1pTtzTM3FIDony+R0WH1+CO+Vo+Mx194YGuqAAz/Q4 Zu3g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:cc:list-subscribe :list-help:list-post:list-archive:list-unsubscribe:list-id :precedence:mime-version:references:in-reply-to:message-id:date :subject:to:from:dkim-signature:delivered-to; bh=rG9Qz9hHj5rpuRM0H5tSRrITIe+hC2xnKmrbNOs3ryg=; b=BVlr72MjFa+2jara9z2utqP0QQR1M1vpOC2JPiuCSUj94eozGoHpuzPXDMClCvVku+ Q+PTWxG2DMIazBA4FfTp9e3TT+ALxJrjXmy2QcW1WwSxC5hZK3Mm/hoXAZqyenuLDhN1 5nTW8YBOLdePlcRyHSUyZGCPnJOdpZrA1pt+U3PSkjIB2Zm59nRv+GAUuAzX4uqiggk7 g6P4YC8XjaWpXZ8GFgBHvYQD7MLB4vuWqoos9bqS0OHaS/GFIlpORf2y3JXDZC5F/vMy E0DeC1FqYk9XTDBMRz34F7Jc/Qp/bpVDYFk5YLy+do47CfOuZAg3Y2m6xPOlanyYfK3k YjOg== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=JN+pNUBN; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from gabe.freedesktop.org (gabe.freedesktop.org. [131.252.210.177]) by mx.google.com with ESMTPS id p3si9765660plq.277.2021.03.03.05.44.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Mar 2021 05:44:23 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) client-ip=131.252.210.177; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=JN+pNUBN; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id A7A2A6E8E3; Wed, 3 Mar 2021 13:43:58 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wm1-x331.google.com (mail-wm1-x331.google.com [IPv6:2a00:1450:4864:20::331]) by gabe.freedesktop.org (Postfix) with ESMTPS id 2E7C16E8FF for ; Wed, 3 Mar 2021 13:43:57 +0000 (UTC) Received: by mail-wm1-x331.google.com with SMTP id u125so6379692wmg.4 for ; Wed, 03 Mar 2021 05:43:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=sFatDrTTk8QqhpQrxXr3ebT1Fq28H33Kmdp2vbOtLEY=; b=JN+pNUBNmoRVzmyxYCjZbYRzO+sgBe9ntzqJZE5KsicmUm686iLD/gtmxYujDKuJFG EdpRwSuIDzKvMWWzXFpuVyMc0Z/8oUsNVwiD+Y/98rL1O3nZEEKacuG5oLnsEkg7UI32 i/CCJxLvq75MhT+jqReyFzFhOcB3Ylyl7+og6zurPtuI4vzr+pKkdbhT4YWhZroN0g9W QEpW44HNpHbO0XdwwhQPRYfcZ0zLnpSBGGVbFjs6xMKu1KcDzu6p2/SaXzYgDREiY++R DCboisRRX6fh4D+fEPxrtkhtVJvaSJO2vW3gA4YJgiU93YagoCJzCGGfPssKAzZTYNmx vCyA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=sFatDrTTk8QqhpQrxXr3ebT1Fq28H33Kmdp2vbOtLEY=; b=RnowRjLtHmeKvFJGxPJGu3YyjIK1O7OyN969RSDoEEaZcQJsUFnouKi/MXeRpHztAA oth0+eF8PtkPJ2SJXlQSxwiW32NiSgl+QM5mj5YXfybsVTL514A5+uqeIW8mplfdzyBF 9C1AVWurrBLsS4OdlMv/GjNcfKsz63yk//TmoLsWIGbGWVrUTGMEWHpOAq4JxTufc5U7 xr9gCQ2ddRxH9iRB2CaK8Ownw188lm+DCSWfulb5YuHB+MzQ90pLa8ZeSRhMjFIMjEMT nXi2A3IAl1CvRaJD7wYj3zjJi9c5GTAhx6WcvZKmwe8Ftl/yt0KoCFQq8G+mgArmwVU1 W/Xg== X-Gm-Message-State: AOAM531oLThBj4oHShbDZ8XU2zLmzGhvXHPjjQOGkHEq3H6ROwwS8kZ7 VjC1S9DJPw3XyN3IE4h9WbSFHA== X-Received: by 2002:a1c:2288:: with SMTP id i130mr9151603wmi.62.1614779035907; Wed, 03 Mar 2021 05:43:55 -0800 (PST) Received: from dell.default ([91.110.221.155]) by smtp.gmail.com with ESMTPSA id w18sm6109524wrr.7.2021.03.03.05.43.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Mar 2021 05:43:55 -0800 (PST) From: Lee Jones To: lee.jones@linaro.org Subject: [PATCH 23/53] drm/vmwgfx/vmwgfx_execbuf: Fix some kernel-doc related issues Date: Wed, 3 Mar 2021 13:42:49 +0000 Message-Id: <20210303134319.3160762-24-lee.jones@linaro.org> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20210303134319.3160762-1-lee.jones@linaro.org> References: <20210303134319.3160762-1-lee.jones@linaro.org> MIME-Version: 1.0 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: David Airlie , Roland Scheidegger , linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, =?utf-8?q?Christian_K=C3=B6nig?= , linaro-mm-sig@lists.linaro.org, VMware Graphics , linux-media@vger.kernel.org Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" Fixes the following W=1 kernel build warning(s): drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c:89: warning: Enum value 'vmw_res_rel_max' not described in enum 'vmw_resource_relocation_type' drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c:136: warning: Function parameter or member 'func' not described in 'vmw_cmd_entry' drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c:136: warning: Function parameter or member 'cmd_name' not described in 'vmw_cmd_entry' drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c:212: warning: Function parameter or member 'res' not described in 'vmw_cmd_ctx_first_setup' drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c:523: warning: Function parameter or member 'sw_context' not described in 'vmw_resource_relocation_add' drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c:523: warning: Excess function parameter 'list' description in 'vmw_resource_relocation_add' drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c:653: warning: Function parameter or member 'p_res' not described in 'vmw_cmd_res_check' drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c:653: warning: Excess function parameter 'p_val' description in 'vmw_cmd_res_check' drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c:1716: warning: Function parameter or member 'res' not described in 'vmw_cmd_res_switch_backup' drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c:1716: warning: Excess function parameter 'val_node' description in 'vmw_cmd_res_switch_backup' drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c:3757: warning: Function parameter or member 'file_priv' not described in 'vmw_execbuf_fence_commands' drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c:3757: warning: Function parameter or member 'dev_priv' not described in 'vmw_execbuf_fence_commands' drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c:3757: warning: Function parameter or member 'p_fence' not described in 'vmw_execbuf_fence_commands' drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c:3757: warning: Function parameter or member 'p_handle' not described in 'vmw_execbuf_fence_commands' drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c:3954: warning: Function parameter or member 'kernel_commands' not described in 'vmw_execbuf_cmdbuf' Cc: VMware Graphics Cc: Roland Scheidegger Cc: David Airlie Cc: Daniel Vetter Cc: Sumit Semwal Cc: "Christian König" Cc: dri-devel@lists.freedesktop.org Cc: linux-media@vger.kernel.org Cc: linaro-mm-sig@lists.linaro.org Signed-off-by: Lee Jones Signed-off-by: Zack Rusin Link: https://patchwork.freedesktop.org/patch/msgid/20210115181313.3431493-4-lee.jones@linaro.org --- drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c b/drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c index 462f173207085..7a24196f92c38 100644 --- a/drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c +++ b/drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c @@ -80,7 +80,8 @@ struct vmw_relocation { * with a NOP. * @vmw_res_rel_cond_nop: Conditional NOP relocation. If the resource id after * validation is -1, the command is replaced with a NOP. Otherwise no action. - */ + * @vmw_res_rel_max: Last value in the enum - used for error checking +*/ enum vmw_resource_relocation_type { vmw_res_rel_normal, vmw_res_rel_nop, @@ -122,9 +123,11 @@ struct vmw_ctx_validation_info { /** * struct vmw_cmd_entry - Describe a command for the verifier * + * @func: Call-back to handle the command. * @user_allow: Whether allowed from the execbuf ioctl. * @gb_disable: Whether disabled if guest-backed objects are available. * @gb_enable: Whether enabled iff guest-backed objects are available. + * @cmd_name: Name of the command. */ struct vmw_cmd_entry { int (*func) (struct vmw_private *, struct vmw_sw_context *, @@ -203,6 +206,7 @@ static void vmw_bind_dx_query_mob(struct vmw_sw_context *sw_context) * * @dev_priv: Pointer to the device private: * @sw_context: The command submission context + * @res: Pointer to the resource * @node: The validation node holding the context resource metadata */ static int vmw_cmd_ctx_first_setup(struct vmw_private *dev_priv, @@ -509,7 +513,7 @@ static int vmw_resource_context_res_add(struct vmw_private *dev_priv, /** * vmw_resource_relocation_add - Add a relocation to the relocation list * - * @list: Pointer to head of relocation list. + * @sw_context: Pointer to the software context. * @res: The resource. * @offset: Offset into the command buffer currently being parsed where the id * that needs fixup is located. Granularity is one byte. @@ -639,7 +643,7 @@ static int vmw_resources_reserve(struct vmw_sw_context *sw_context) * @converter: User-space visisble type specific information. * @id_loc: Pointer to the location in the command buffer currently being parsed * from where the user-space resource id handle is located. - * @p_val: Pointer to pointer to resource validalidation node. Populated on + * @p_res: Pointer to pointer to resource validalidation node. Populated on * exit. */ static int @@ -1700,7 +1704,7 @@ static int vmw_cmd_check_define_gmrfb(struct vmw_private *dev_priv, * * @dev_priv: Pointer to a device private struct. * @sw_context: The software context being used for this batch. - * @val_node: The validation node representing the resource. + * @res: Pointer to the resource. * @buf_id: Pointer to the user-space backup buffer handle in the command * stream. * @backup_offset: Offset of backup into MOB. @@ -3739,7 +3743,7 @@ static int vmw_resize_cmd_bounce(struct vmw_sw_context *sw_context, return 0; } -/** +/* * vmw_execbuf_fence_commands - create and submit a command stream fence * * Creates a fence object and submits a command stream marker. @@ -3939,9 +3943,9 @@ static int vmw_execbuf_submit_cmdbuf(struct vmw_private *dev_priv, * On successful return, the function returns a pointer to the data in the * command buffer and *@header is set to non-NULL. * - * If command buffers could not be used, the function will return the value of - * @kernel_commands on function call. That value may be NULL. In that case, the - * value of *@header will be set to NULL. + * @kernel_commands: If command buffers could not be used, the function will + * return the value of @kernel_commands on function call. That value may be + * NULL. In that case, the value of *@header will be set to NULL. * * If an error is encountered, the function will return a pointer error value. * If the function is interrupted by a signal while sleeping, it will return From patchwork Wed Mar 3 13:42:50 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 392086 Delivered-To: patch@linaro.org Received: by 2002:a02:290e:0:0:0:0:0 with SMTP id p14csp5133268jap; Wed, 3 Mar 2021 05:44:26 -0800 (PST) X-Google-Smtp-Source: ABdhPJyL7PlR1CQGls/KFHlRyYs4izG4wn7S0ywc1em6PKEBIMlTdl1iW9pTbC+CeODYFiMO53c1 X-Received: by 2002:a63:205c:: with SMTP id r28mr23977016pgm.183.1614779066494; Wed, 03 Mar 2021 05:44:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614779066; cv=none; d=google.com; s=arc-20160816; b=nyUqklcrhfhyrY6UZHoy8wY2D9w7GY5jfXQu6c0PJFb9tDXszvZ8c7On7kufAZwfTN Y8h6zDV07Sf1Ld9QtgRMewx20x6Gid8OYFxlusbqn60Vjp13AfLTPVQG5VcG1X764Bk9 iIRSJl+vCHbO/0+qY7v7pojqVEY8ZEHF1xdLeNY+6psVq32eeMs9Bmnb9YS4wMFg35Mr Jujr4+XaxyBhFQw7/RrYmfSd9WtXl7NBgcmQzyeTCTtFFNE3SD/KvUC6IIu6sqBGau3V wb4DjN99Pxomjx1FwvZAQvpKe8KGH6uLGPWxMWq8nRy94KZGVcZ1W8mWUigLDcyYdCuT Ch8Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:cc:list-subscribe :list-help:list-post:list-archive:list-unsubscribe:list-id :precedence:mime-version:references:in-reply-to:message-id:date :subject:to:from:dkim-signature:delivered-to; bh=2AtMLPDvRjHaWLY2k6bOdulYuXiaurMtcI8l+oJrIrA=; b=TTtqdRR946FW6iipNwRXazh/VG5emlGLppTC6sjKqVrpS2lZtHrHgOwPSuNTuT5o1P ZkvUzCuHqBCOyM7bS98MWzr1sgJPhy3rf/6D+vMtbHob/XTqC0SLr09tQAx6+i2iAk/2 Yn5fKxvLXtWXuFxjoUMot/E8X39pNowvkFytQN8FflBL7lrU/MwWShh34De/iUg/8Ikf rLZCGE+zY4v8g/vTZOFlvCz/VpdMeScUygTAQFey61Tkyf7iJLWyXMN/gPCMJHACk+GZ yXE/91Br/QSKz4b/QOYQAKdxqXOF0pDNV0lL/D9JvBKu6sZlIwZ/Zgx3Y1gWdneayHev 4ESg== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=TgIkGyP9; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 2610:10:20:722:a800:ff:fe36:1795 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from gabe.freedesktop.org (gabe.freedesktop.org. [2610:10:20:722:a800:ff:fe36:1795]) by mx.google.com with ESMTPS id cp7si6164897pjb.112.2021.03.03.05.44.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Mar 2021 05:44:26 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 2610:10:20:722:a800:ff:fe36:1795 as permitted sender) client-ip=2610:10:20:722:a800:ff:fe36:1795; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=TgIkGyP9; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 2610:10:20:722:a800:ff:fe36:1795 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id EC2906E8FA; Wed, 3 Mar 2021 13:44:00 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wm1-x32a.google.com (mail-wm1-x32a.google.com [IPv6:2a00:1450:4864:20::32a]) by gabe.freedesktop.org (Postfix) with ESMTPS id 3BAFC6E8FA for ; Wed, 3 Mar 2021 13:43:58 +0000 (UTC) Received: by mail-wm1-x32a.google.com with SMTP id m1so6399389wml.2 for ; Wed, 03 Mar 2021 05:43:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=njsbuAXEhvSkC6YoNxprxAwF24DaUFg/QS4093pyPFU=; b=TgIkGyP9JIU32AbI5hfadU2xhCSdtLwfumK9mSGqfAJPwMDpJ6ZZqpcu4zeW8Td11Q lRM81CYzICCagh40F6VzmooVY7+P5gBzN26tOhDsZgvRp/hkh+GyB4AG4FYQnj65q2ji piYJQpj7qDS0dG5ivvzUopT+srl6Dh8w5NryTWR6YHsYwVSLrL1Vs3R5Ko/mkg7ezVPJ glNsEfOZLP7CZLkamEsNtZht3f8x66dFgrIzH8NvwaqkDyxMUl8AvkxgT/XYDi1Fop8D qynT7C6kiMsYtdGh2o7N2Hd9tL/S9YYSCTBL1nylThfIeAUktbqcBVs9FTkUXWMCxbgk hPhg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=njsbuAXEhvSkC6YoNxprxAwF24DaUFg/QS4093pyPFU=; b=RZy7nSI/2dVX2l5D4S0puLYgucWtWUUNA7pNluIPI93LSBIh2DAKPefZDttRigxjtv P3SOwuRnO9OT/zv8KdcXHrGI/xNp9T8Cd2zG1SYMY3vjGJ5a9qiq+5Et6MurO+jVe2d0 YhQq0pxi8xWzXaipgoFlxHYaEd+bklUh6etSHn6GHwN9lVb0J80BUBl7SfkmzMLas9Mr r7MDdjyYKKjkRyboUyolkdpb7AHnvJsONA/u53684J321D/Ek5QFMN07G2yvv4J/OF6M +iIHudNwu02NSZymqtqCfuSfTy1xaokh8jcugQZNHyU0MFZ4sQ5nv9qUTdhwpKWvcKRQ QntQ== X-Gm-Message-State: AOAM5305TlGcXmPvyHOzhMsH5+1EKqFr8WGN6/vxxhM3O+ACf+iz2ERA mY1a9/kGe+J7VE9tCGyusW5Rhw== X-Received: by 2002:a1c:a98a:: with SMTP id s132mr9569035wme.12.1614779036972; Wed, 03 Mar 2021 05:43:56 -0800 (PST) Received: from dell.default ([91.110.221.155]) by smtp.gmail.com with ESMTPSA id w18sm6109524wrr.7.2021.03.03.05.43.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Mar 2021 05:43:56 -0800 (PST) From: Lee Jones To: lee.jones@linaro.org Subject: [PATCH 24/53] drm/vmwgfx/vmwgfx_kms: Remove unused variable 'ret' from 'vmw_du_primary_plane_atomic_check()' Date: Wed, 3 Mar 2021 13:42:50 +0000 Message-Id: <20210303134319.3160762-25-lee.jones@linaro.org> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20210303134319.3160762-1-lee.jones@linaro.org> References: <20210303134319.3160762-1-lee.jones@linaro.org> MIME-Version: 1.0 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: David Airlie , Roland Scheidegger , linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, VMware Graphics Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" Fixes the following W=1 kernel build warning(s): drivers/gpu/drm/vmwgfx/vmwgfx_kms.c: In function ‘vmw_du_primary_plane_atomic_check’: drivers/gpu/drm/vmwgfx/vmwgfx_kms.c:460:31: warning: variable ‘vcs’ set but not used [-Wunused-but-set-variable] Cc: VMware Graphics Cc: Roland Scheidegger Cc: David Airlie Cc: Daniel Vetter Cc: dri-devel@lists.freedesktop.org Signed-off-by: Lee Jones Signed-off-by: Zack Rusin Link: https://patchwork.freedesktop.org/patch/msgid/20210115181313.3431493-5-lee.jones@linaro.org --- drivers/gpu/drm/vmwgfx/vmwgfx_kms.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/gpu/drm/vmwgfx/vmwgfx_kms.c b/drivers/gpu/drm/vmwgfx/vmwgfx_kms.c index 9a89f658e501c..9293dc19a7683 100644 --- a/drivers/gpu/drm/vmwgfx/vmwgfx_kms.c +++ b/drivers/gpu/drm/vmwgfx/vmwgfx_kms.c @@ -453,10 +453,9 @@ int vmw_du_primary_plane_atomic_check(struct drm_plane *plane, if (!ret && new_fb) { struct drm_crtc *crtc = state->crtc; - struct vmw_connector_state *vcs; struct vmw_display_unit *du = vmw_crtc_to_du(crtc); - vcs = vmw_connector_state_to_vcs(du->connector.state); + vmw_connector_state_to_vcs(du->connector.state); } From patchwork Wed Mar 3 13:42:51 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 392085 Delivered-To: patch@linaro.org Received: by 2002:a02:290e:0:0:0:0:0 with SMTP id p14csp5133250jap; Wed, 3 Mar 2021 05:44:25 -0800 (PST) X-Google-Smtp-Source: ABdhPJydGaIS9rph2cbb5tStZaBMWU9SEbbpGfIz+xz8ctMFdebhiAD10eGwFzV1a7apnRY4wLHq X-Received: by 2002:a65:5c42:: with SMTP id v2mr23364550pgr.339.1614779065066; Wed, 03 Mar 2021 05:44:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614779065; cv=none; d=google.com; s=arc-20160816; b=q7Z3H3f2QufZfF3zvEHNLYv/7BYdgOqEim3FqPTuJoMuLL5ysHlagZo8DxF8RU9Z56 WwM69U4rTQ04FMstsfBJPDkFkMMQHDWDejqxb+tkkXR7AUdvJEx1HLAGijDK/bSVbXaB 0dnS0fPNrRtKYsLJIl3mjkXr/UPqy8Kfj4k4WwW03RC7S3HIbMivKv+PNFwHbV/twV5j sJbdcHJZOvJq9An/qfqDPXIS/6OskpibnLV8DgG8DbM5U/dB7GypLxz2vDHr9jSPDQTX 0o6xjip030DWD3DvbYh2jVfECSUOd7R5lmrFRRfYSLGiAFfBNDdqhb6x1+Xsv6xHgxmz H7SA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:cc:list-subscribe :list-help:list-post:list-archive:list-unsubscribe:list-id :precedence:mime-version:references:in-reply-to:message-id:date :subject:to:from:dkim-signature:delivered-to; bh=iOYvAC1zwWppv7Yxu37WUTIT2hfcf+nJI9+++ydspO8=; b=aWhGc0hTzphT6j0DPbmwfvrUbHYSNeCd0FwGocm1zJHHab2b8hF4VmTKSUC1UVzfwl Uj8ExgRQRuwzEO5yNmSYgBO+W4z279btpT9dY/fpfn91Q6aQNGV8vr1ga9p7XNCMVkBY iZIvDtBJpzo+o/gcKNkKuigNLmPTagZxB0ek67TEHogIAXSERyqfuoeXGcJYZ/m45b1Y 31RzsvN6ngYFlB1WXWMn7S53dqqsO+8FOmEjxGnxVicxVFJ399ke3uXUzjm1PiLW0E+C 9Gpol0I65lk4UmjUOzB3nHQFXyK20Ne/UwUK5ntaYEbRFeLLtVOhVkqtcu00Kze4xYra CssQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=yCtW0Uu0; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from gabe.freedesktop.org (gabe.freedesktop.org. [131.252.210.177]) by mx.google.com with ESMTPS id bj7si23627012plb.365.2021.03.03.05.44.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Mar 2021 05:44:25 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) client-ip=131.252.210.177; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=yCtW0Uu0; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id B18DD6E8F9; Wed, 3 Mar 2021 13:44:00 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wm1-x334.google.com (mail-wm1-x334.google.com [IPv6:2a00:1450:4864:20::334]) by gabe.freedesktop.org (Postfix) with ESMTPS id B4CBF6E406 for ; Wed, 3 Mar 2021 13:43:59 +0000 (UTC) Received: by mail-wm1-x334.google.com with SMTP id o2so5882905wme.5 for ; Wed, 03 Mar 2021 05:43:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=87fsu4OIs39RkiShLHPl5EVCCmtcdhx0DNDxe5fguYo=; b=yCtW0Uu0wfAY7fOoVNPYGtXF8o5hem7JHg0aQPaKs1sqYNr2HI1Kz92nBLlu9Sgyzp gWRNdVmIkZmVmLYE87d51DQTZHDHFkInhe/0uWOYHxNS8ylaiX2lc4+/1L2qlCYAJU83 2I6YOzEaC4vuqy2Anc91mviMDAV3TFqX9FlV9TOgUfzYTAm6uXMDo6ZSFTxzgFmT4o2e EL6Xwwx7p4d4NvcyXm1e2ZuX2otL/va7ZXsp+vQRLQdgNJUZ10wrAs0RU+n+aM+s0KtK 9eEzRhiUuu1U2KC5dk77+h1PMAqrexS05ly8M7vuiqWh+vjHhwDdW8L5JTU/IqEifW2c kaqA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=87fsu4OIs39RkiShLHPl5EVCCmtcdhx0DNDxe5fguYo=; b=m61uh9stRkjkr8GmXhjncLnYcH5Je8tMKrxrypgyS0L96lBVNm+kgNtRWiWyylret1 w0jHOhvZJzRd9c7qjve6EjJackbSiVqE1sbhrr9tSy1T3JOFfzyrG6c7boM3/95Ce8lW t2CzlFq8CCDHTaLf0KDrIWn9IQ1kwiiFce2zdFRjYqg8TBCI0RchV1bp09HPHU24CTM2 t6Jry+IphYgyYs0DhljBT7+uCYOXzxd0PyAOaqReB9tksSi5dX1p8yyLXXZf79cwpik2 TZhw/iRa0Idb81ZyPvyyld0pLxLJPc9FZhvfzySF7jVe5SeMeXO6Px1p+piK/FUNptO6 fByg== X-Gm-Message-State: AOAM531N2o8eQtETaj5dKrExNjDYSn4G8GlRWRdUti/NoQUKkfz5sHJF RfyPF0cL1usBDlj77osqLqiYY/O3YffYyg== X-Received: by 2002:a05:600c:d1:: with SMTP id u17mr9479504wmm.64.1614779038337; Wed, 03 Mar 2021 05:43:58 -0800 (PST) Received: from dell.default ([91.110.221.155]) by smtp.gmail.com with ESMTPSA id w18sm6109524wrr.7.2021.03.03.05.43.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Mar 2021 05:43:57 -0800 (PST) From: Lee Jones To: lee.jones@linaro.org Subject: [PATCH 25/53] drm/vmwgfx/vmwgfx_kms: Mark vmw_{cursor, primary}_plane_formats as __maybe_unused Date: Wed, 3 Mar 2021 13:42:51 +0000 Message-Id: <20210303134319.3160762-26-lee.jones@linaro.org> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20210303134319.3160762-1-lee.jones@linaro.org> References: <20210303134319.3160762-1-lee.jones@linaro.org> MIME-Version: 1.0 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: David Airlie , Roland Scheidegger , linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, VMware Graphics Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" Fixes the following W=1 kernel build warning(s): drivers/gpu/drm/vmwgfx/vmwgfx_kms.h:256:23: warning: ‘vmw_cursor_plane_formats’ defined but not used [-Wunused-const-variable=] drivers/gpu/drm/vmwgfx/vmwgfx_kms.h:248:23: warning: ‘vmw_primary_plane_formats’ defined but not used [-Wunused-const-variable=] drivers/gpu/drm/vmwgfx/vmwgfx_kms.h:256:23: warning: ‘vmw_cursor_plane_formats’ defined but not used [-Wunused-const-variable=] drivers/gpu/drm/vmwgfx/vmwgfx_kms.h:248:23: warning: ‘vmw_primary_plane_formats’ defined but not used [-Wunused-const-variable=] drivers/gpu/drm/vmwgfx/vmwgfx_kms.h:256:23: warning: ‘vmw_cursor_plane_formats’ defined but not used [-Wunused-const-variable=] drivers/gpu/drm/vmwgfx/vmwgfx_kms.h:248:23: warning: ‘vmw_primary_plane_formats’ defined but not used [-Wunused-const-variable=] Cc: VMware Graphics Cc: Roland Scheidegger Cc: David Airlie Cc: Daniel Vetter Cc: dri-devel@lists.freedesktop.org Signed-off-by: Lee Jones Signed-off-by: Zack Rusin Link: https://patchwork.freedesktop.org/patch/msgid/20210115181313.3431493-8-lee.jones@linaro.org --- drivers/gpu/drm/vmwgfx/vmwgfx_kms.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/vmwgfx/vmwgfx_kms.h b/drivers/gpu/drm/vmwgfx/vmwgfx_kms.h index 03f3694015cec..6267ccf54944e 100644 --- a/drivers/gpu/drm/vmwgfx/vmwgfx_kms.h +++ b/drivers/gpu/drm/vmwgfx/vmwgfx_kms.h @@ -245,7 +245,7 @@ struct vmw_framebuffer_bo { }; -static const uint32_t vmw_primary_plane_formats[] = { +static const uint32_t __maybe_unused vmw_primary_plane_formats[] = { DRM_FORMAT_XRGB1555, DRM_FORMAT_RGB565, DRM_FORMAT_RGB888, @@ -253,7 +253,7 @@ static const uint32_t vmw_primary_plane_formats[] = { DRM_FORMAT_ARGB8888, }; -static const uint32_t vmw_cursor_plane_formats[] = { +static const uint32_t __maybe_unused vmw_cursor_plane_formats[] = { DRM_FORMAT_ARGB8888, }; From patchwork Wed Mar 3 13:42:52 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 392087 Delivered-To: patch@linaro.org Received: by 2002:a02:290e:0:0:0:0:0 with SMTP id p14csp5133286jap; Wed, 3 Mar 2021 05:44:28 -0800 (PST) X-Google-Smtp-Source: ABdhPJyWfgCMTwLqji73eaBmHL9EEpIedg/UpLt49ACM61+qWmM83zgujKXNoeOxzTvLNMrOuEaw X-Received: by 2002:a17:90b:941:: with SMTP id dw1mr9936117pjb.35.1614779067943; Wed, 03 Mar 2021 05:44:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614779067; cv=none; d=google.com; s=arc-20160816; b=OmhVX73Ica8fnce/Slv7344XlC6PoRD92kD/k0dtG1a8ySg9PHeS7GYCbqX/aLZBKp 1J2vcOBAJ3Eyvnah6ye5BVhXIahfmfgEfXAWPXHaZF0T5ojj1jC/tgccE4MA6P4KRfF2 gQd7NzpvJpNYdTE/Zjt+XkKnrVPdiTQToMuWNk8q2cu2UMbYDmCFGH8BD7U/b2UBQ616 0mHYOt1e7q0ohAczBD50FlbDwtFTDHZ1xx2LdZ6Jab53zFqgEPtFUxqhbdNaV1yafj/m 9DdLIK42wb5xQ6FwS5Xk/6UB5/uhsHpHbbwbo0TgKk2x0mYtfIss02mlT47HNLKKlm/t tvog== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:cc:list-subscribe :list-help:list-post:list-archive:list-unsubscribe:list-id :precedence:mime-version:references:in-reply-to:message-id:date :subject:to:from:dkim-signature:delivered-to; bh=siwbbcujJL+x3cCASFaPCnfls0cz9dtF7e0sPFcdgJI=; b=Z91h/vibfA8I1JTO5znCpy5fv45ihXfvp6qDU1ZPArpBmd9l1jDD0YDFeUQkAcRF7n MklDmRbPGc6pin6DwNxzFd8F6+CXLL6D7E7QxriRqENy66l2uysZoAzBeacpHWjB9BNH DIMvLg5oO7CWm8HWzDSWEwxAglBIUYKka2AqPN3RIBtG66/ZtbqsW+jMEty7Ig69+puX K/6yP46VYMxZQkgH2X4pze9lEIPmIJGVPY5vc8821zZnLQitYOUo53IKzRFG5vUu6Eg9 60yG97ufKw4ONAzuRKhJxciCLXCn77zUXdJJMGgRpitOYHqSxWq1ZVLdhLXBsP9xqYHa EY+A== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=H3A2bX0q; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from gabe.freedesktop.org (gabe.freedesktop.org. [131.252.210.177]) by mx.google.com with ESMTPS id c14si11012562pgc.592.2021.03.03.05.44.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Mar 2021 05:44:27 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) client-ip=131.252.210.177; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=H3A2bX0q; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id C68986E406; Wed, 3 Mar 2021 13:44:01 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wm1-x334.google.com (mail-wm1-x334.google.com [IPv6:2a00:1450:4864:20::334]) by gabe.freedesktop.org (Postfix) with ESMTPS id A8C376E406 for ; Wed, 3 Mar 2021 13:44:00 +0000 (UTC) Received: by mail-wm1-x334.google.com with SMTP id w7so5211594wmb.5 for ; Wed, 03 Mar 2021 05:44:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=b0iGOR+oUMpMNe+ms/bEjIiPtMEjVOFpPaMripgJlBc=; b=H3A2bX0qU2J5eGZ//pel/mRnd6dBhTswU4+t4zHgTV1HaBUd95Rb0EzZSbPgzbZrjq j8ESjAX9QTleaddGPj46Px/f02U74SKXKsnFH2XyTcqMSfbp+1XAD5FLrihvK8hM+EhA 2ASRRySAxjh/USI9McXkFJpFLpzo9+Cg7uFLx6Xb5QDNMaihiJ3Slp/Y4qpVN3DMfBIu xFGZJIGlBr/M83m8F/+IbGa3yazSF3ygRCyOMPnZ8yoAUy4BWCfWQ+jS3gylTb1AIgRs VKb0OC//m7ammGv/OHvD29p4+5R5ui6nO1sYFJZyinjRzkAkz/VWvti6q5motDgxnvBH KdSQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=b0iGOR+oUMpMNe+ms/bEjIiPtMEjVOFpPaMripgJlBc=; b=Pc55pH8lTniStegumL9V+FI87HfBlM74K64FjN3OEHGR7YFa5y3dvFQSs98Cv6EIB5 obETXnNVcv3jvbx7CkDNDfWwN186u+cPAnl/jJgQG+wRmPhqDX0sFuHjS5UPxHo2Kct4 I3bJ/Gp0ngTZA3ooT6VPiZVzCJtLI/eV5aZ5mJe34Tv9rI+OGO7RHXZFU6SSHZiZjj5b CmnBvvbJL40Ji1rwSlx9bxQTG+z9Lg18W6JA3bsgxCrszltEn3gv0quIinDMGrDUWiuY 1IzqQhITld/eehRnLWzll40lR6lPeYo35CV3RGXaK5fvhOOSEPJgWEboIOm4jUtwU0mG HHmw== X-Gm-Message-State: AOAM532xTIINtgGwGgCOuu934dqcC34cF5D9CjYkkjfniDq9CtJDEMfM PCminGACXsiq9VnZ+cXyP5XogA== X-Received: by 2002:a7b:cb05:: with SMTP id u5mr9207361wmj.46.1614779039360; Wed, 03 Mar 2021 05:43:59 -0800 (PST) Received: from dell.default ([91.110.221.155]) by smtp.gmail.com with ESMTPSA id w18sm6109524wrr.7.2021.03.03.05.43.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Mar 2021 05:43:58 -0800 (PST) From: Lee Jones To: lee.jones@linaro.org Subject: [PATCH 26/53] drm/vmwgfx/vmwgfx_drv: Fix some kernel-doc misdemeanours Date: Wed, 3 Mar 2021 13:42:52 +0000 Message-Id: <20210303134319.3160762-27-lee.jones@linaro.org> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20210303134319.3160762-1-lee.jones@linaro.org> References: <20210303134319.3160762-1-lee.jones@linaro.org> MIME-Version: 1.0 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: David Airlie , Roland Scheidegger , linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, VMware Graphics Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" Fixes the following W=1 kernel build warning(s): drivers/gpu/drm/vmwgfx/vmwgfx_drv.c:164: warning: Function parameter or member 'ioctl' not described in 'VMW_IOCTL_DEF' drivers/gpu/drm/vmwgfx/vmwgfx_drv.c:164: warning: Function parameter or member 'func' not described in 'VMW_IOCTL_DEF' drivers/gpu/drm/vmwgfx/vmwgfx_drv.c:164: warning: Function parameter or member 'flags' not described in 'VMW_IOCTL_DEF' drivers/gpu/drm/vmwgfx/vmwgfx_drv.c:170: warning: cannot understand function prototype: 'const struct drm_ioctl_desc vmw_ioctls[] = ' drivers/gpu/drm/vmwgfx/vmwgfx_drv.c:542: warning: Function parameter or member 'dev_priv' not described in 'vmw_get_initial_size' drivers/gpu/drm/vmwgfx/vmwgfx_drv.c:611: warning: Function parameter or member 'dev_priv' not described in 'vmw_dma_masks' drivers/gpu/drm/vmwgfx/vmwgfx_drv.c:611: warning: Excess function parameter 'dev' description in 'vmw_dma_masks' Cc: VMware Graphics Cc: Roland Scheidegger Cc: David Airlie Cc: Daniel Vetter Cc: dri-devel@lists.freedesktop.org Signed-off-by: Lee Jones Signed-off-by: Zack Rusin Link: https://patchwork.freedesktop.org/patch/msgid/20210115181313.3431493-9-lee.jones@linaro.org --- drivers/gpu/drm/vmwgfx/vmwgfx_drv.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) -- 2.27.0 _______________________________________________ dri-devel mailing list dri-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/dri-devel diff --git a/drivers/gpu/drm/vmwgfx/vmwgfx_drv.c b/drivers/gpu/drm/vmwgfx/vmwgfx_drv.c index dd69b51c40e41..ef81a68dd4bd4 100644 --- a/drivers/gpu/drm/vmwgfx/vmwgfx_drv.c +++ b/drivers/gpu/drm/vmwgfx/vmwgfx_drv.c @@ -153,7 +153,7 @@ DRM_IOWR(DRM_COMMAND_BASE + DRM_VMW_MSG, \ struct drm_vmw_msg_arg) -/** +/* * The core DRM version of this macro doesn't account for * DRM_COMMAND_BASE. */ @@ -161,7 +161,7 @@ #define VMW_IOCTL_DEF(ioctl, func, flags) \ [DRM_IOCTL_NR(DRM_IOCTL_##ioctl) - DRM_COMMAND_BASE] = {DRM_IOCTL_##ioctl, flags, func} -/** +/* * Ioctl definitions. */ @@ -526,7 +526,7 @@ static void vmw_release_device_late(struct vmw_private *dev_priv) vmw_fifo_release(dev_priv, &dev_priv->fifo); } -/** +/* * Sets the initial_[width|height] fields on the given vmw_private. * * It does so by reading SVGA_REG_[WIDTH|HEIGHT] regs and then @@ -599,7 +599,7 @@ static int vmw_dma_select_mode(struct vmw_private *dev_priv) /** * vmw_dma_masks - set required page- and dma masks * - * @dev: Pointer to struct drm-device + * @dev_priv: Pointer to struct drm-device * * With 32-bit we can only handle 32 bit PFNs. Optionally set that * restriction also for 64-bit systems. From patchwork Wed Mar 3 13:42:53 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 392088 Delivered-To: patch@linaro.org Received: by 2002:a02:290e:0:0:0:0:0 with SMTP id p14csp5133299jap; Wed, 3 Mar 2021 05:44:29 -0800 (PST) X-Google-Smtp-Source: ABdhPJxKKIbbioBfr6OKov4C5x7znr5fyn/69VqYLxh74ouoM+1k9FVFD2saWHDNvYxN3iPCD2ly X-Received: by 2002:a63:e747:: with SMTP id j7mr23009029pgk.235.1614779069287; Wed, 03 Mar 2021 05:44:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614779069; cv=none; d=google.com; s=arc-20160816; b=Svudv/rcm+v9TnIDWZ+BkGvcnxdnNsQZjIZZb3zqzBC8MPyBagsj55mVDqI5fIcM5C Y2v9dnyQoHmIAovTO1S1cQ3gGbWQWUDqU3LkSFTxyM8t4GXHSuwkKPb9PDBo2U9Jfx+w id+owc4XENJ25BFWFycFddMYCPFVLrVil4y4eF0TyWgxE7ochvp2K00SC4mQPXDAYSux CnskpztbCDJibvPBEVwtWXPRes/ygZLn2TRheZn5tTQhFPvaOf9TB67Z/mDiuZrUzPmv 0IAze7VZFBRz9if5m+LP1vL/xj53JN1435PiOgfapP9znWfpEMcOQbrlbMGlA1wQTgdR lhaQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:cc:list-subscribe :list-help:list-post:list-archive:list-unsubscribe:list-id :precedence:mime-version:references:in-reply-to:message-id:date :subject:to:from:dkim-signature:delivered-to; bh=tKDeQlYYIIwF3RmOMxF3HhfQZSxNbXQ0dVm0ksckX+s=; b=BLS5d/bkRiB8gnEHT7DK0kYj/uMTBLfqGE1JXtcjh8eXwdg7UFbMclNu0WI1CQYwdW wdKTV6xZrGuCWJL+yYJHHyZFZViJGqAYqg68gjIv6/XFQN+SsuUETLz2kfz3pfeoa7n5 3vIG9LChfwFjpIJ5t39kSdqau+s7AswsxyKdpSX4Sc293CuZeI2B67JyYM3RLW11uaLQ AfyTG+j2TNUOGtYyjn/dEzIOyEx+H/qjV3bIcrmyeYpTOKoJ+8QnjPw9acQ68tkn54nf dzq71MvPGKN7uEma0pS+ZVRE+rCk+SY+dP5Jw+X24Vs83o0CB95jwYoM3W6bYWwsat1e Lv0w== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=yV5tYX7s; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from gabe.freedesktop.org (gabe.freedesktop.org. [131.252.210.177]) by mx.google.com with ESMTPS id u127si25561508pgc.27.2021.03.03.05.44.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Mar 2021 05:44:29 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) client-ip=131.252.210.177; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=yV5tYX7s; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id E43196E8E5; Wed, 3 Mar 2021 13:44:03 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wr1-x434.google.com (mail-wr1-x434.google.com [IPv6:2a00:1450:4864:20::434]) by gabe.freedesktop.org (Postfix) with ESMTPS id 0C8CF6E8FF for ; Wed, 3 Mar 2021 13:44:02 +0000 (UTC) Received: by mail-wr1-x434.google.com with SMTP id e10so23495879wro.12 for ; Wed, 03 Mar 2021 05:44:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=XZmI3Pr1jHFtcMrfTt6XXf4g0zv3hzYPvnP4OKNbsog=; b=yV5tYX7sM66C63eujllHcaOJ32XhnRuSYM/2ysLql2AqOw+0JFFtYrW1BeMOOIHrZ8 2UxRh0GBKyBo386hNVibHh13wK44EFoEUJTGtQTp9oqSnU7fby17L706jr/Wf3ztNjYM e0evuYs/GWXlUByzjSYua4Tix9Hu9A1wpB1z9zkkMtLkCPj9GJB0U3Y9GzJg0G0GTUFv zY2ExaVCmrwe0zXYkSET4B5WBIYN3G8+2iTBnc/2WURR17wbrq2tlLA6QGo9PzSCUQka 8MsbRoPLLrgWQvdGQr6UxayoAfr/mFvceRlGPzYb4pD9Hkm/WG0C4bvaPHLmwj9wJS3F I1CQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=XZmI3Pr1jHFtcMrfTt6XXf4g0zv3hzYPvnP4OKNbsog=; b=khznAqnNHLpXRlelG7atBk84IKSP8NwzSAkVaAcLHXCZTqq2KV3xPR0vIYT/fNtBn1 ZMUAH77HhcRi9fjKBATbmN8Ya5RKMGlzAK2NfQb9mcuElgdC6nIuhHhz9M4PNsvx18XM LeRVzAMHo0jpLVir2RG3HtVsAdGMkedeKtrp/I12EjS36scocK9OAgVw4gVCvKYC0j19 K+6wJqKmE1+z4C44kbz2epEQJbTR7i8KCKoCaddHETslgPbr0t7hdYRnEf0bRQAoPfjN n5r2pesofhd/+1zjS4KXPgBWj+iF8rCGNmZbOuqWZJcMjrEqcvCh246tONPsUGPj0DOd 5cSg== X-Gm-Message-State: AOAM5337gCgqx3St2D0AeSnN12wP9v0j6UtNtXl6Cyn6L9bo1RAZxRgt IrLY5UbAQnrjMm9vFOOaJWGNfA== X-Received: by 2002:adf:a1ce:: with SMTP id v14mr27677100wrv.228.1614779040787; Wed, 03 Mar 2021 05:44:00 -0800 (PST) Received: from dell.default ([91.110.221.155]) by smtp.gmail.com with ESMTPSA id w18sm6109524wrr.7.2021.03.03.05.43.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Mar 2021 05:44:00 -0800 (PST) From: Lee Jones To: lee.jones@linaro.org Subject: [PATCH 27/53] drm/vmwgfx/vmwgfx_ioctl: Provide missing '@' sign required by kernel-doc Date: Wed, 3 Mar 2021 13:42:53 +0000 Message-Id: <20210303134319.3160762-28-lee.jones@linaro.org> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20210303134319.3160762-1-lee.jones@linaro.org> References: <20210303134319.3160762-1-lee.jones@linaro.org> MIME-Version: 1.0 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: David Airlie , Roland Scheidegger , linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, VMware Graphics Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" Fixes the following W=1 kernel build warning(s): In file included from drivers/gpu/drm/vmwgfx/vmwgfx_ioctl.c:30: drivers/gpu/drm/vmwgfx/vmwgfx_ioctl.c:448: warning: Function parameter or member 'offset' not described in 'vmw_fops_read' Cc: VMware Graphics Cc: Roland Scheidegger Cc: David Airlie Cc: Daniel Vetter Cc: dri-devel@lists.freedesktop.org Signed-off-by: Lee Jones Signed-off-by: Zack Rusin Link: https://patchwork.freedesktop.org/patch/msgid/20210115181313.3431493-10-lee.jones@linaro.org --- drivers/gpu/drm/vmwgfx/vmwgfx_ioctl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.27.0 _______________________________________________ dri-devel mailing list dri-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/dri-devel diff --git a/drivers/gpu/drm/vmwgfx/vmwgfx_ioctl.c b/drivers/gpu/drm/vmwgfx/vmwgfx_ioctl.c index 80af8772b8c24..b36032964b2fe 100644 --- a/drivers/gpu/drm/vmwgfx/vmwgfx_ioctl.c +++ b/drivers/gpu/drm/vmwgfx/vmwgfx_ioctl.c @@ -437,7 +437,7 @@ __poll_t vmw_fops_poll(struct file *filp, struct poll_table_struct *wait) * @filp: See the linux fops read documentation. * @buffer: See the linux fops read documentation. * @count: See the linux fops read documentation. - * offset: See the linux fops read documentation. + * @offset: See the linux fops read documentation. * * Wrapper around the drm_read function that makes sure the device is * processing the fifo if drm_read decides to wait. From patchwork Wed Mar 3 13:42:54 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 392091 Delivered-To: patch@linaro.org Received: by 2002:a02:290e:0:0:0:0:0 with SMTP id p14csp5133383jap; Wed, 3 Mar 2021 05:44:34 -0800 (PST) X-Google-Smtp-Source: ABdhPJwsK8J5ZEjXMmG+j/cumsG0Cy3vNLaksuQqsiZijWsNzdjkaCeRgO6tA2VVOgzKk1sAFg+l X-Received: by 2002:a63:161c:: with SMTP id w28mr11593680pgl.341.1614779074711; Wed, 03 Mar 2021 05:44:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614779074; cv=none; d=google.com; s=arc-20160816; b=J1dBq7oj7abc0yYos6qbnp5ks2Z9a/AyOTY2NVP9feID51RwJaUCXL1ECjqzW2f+wb Ab98O0QU6cK4d5wh1Irraj3dQDeavA6lso62zGeALzon3LKo9Ngx1xnStUgLOagfnqIt NOsGDhRQlVYqVmaF+mvN3vbNn6Q6wN+gYdx0hh3TE1BhXuDpw6Q9NTtiBAQO0SFFlz/o KH9nsy25BhOMS8wAhOmMTfc1AQ4D2xyy3U41NmKEEc7NjlDI+Ei1Wrsb4J9tr0Wvna71 oYCUmXiMPU1XHXAs96OioKK0SlNDB30ke+3C/rsHx655tPcZiiWNIdfsaf4kfTEpRVwu V5/A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:cc:list-subscribe :list-help:list-post:list-archive:list-unsubscribe:list-id :precedence:mime-version:references:in-reply-to:message-id:date :subject:to:from:dkim-signature:delivered-to; bh=P5PEDOeguEmjGQTKDSJHpE5rWiq0ps9W/xFci15yh24=; b=iw6c6p/PUSAaqfaWHtdmpjd4LK2FzN/nmDrEo4nCWF59euC9aS+ORpN+060eNFKCTk Pgnl+5jtf3FO8tpLAeBayLzggRvwLu/gBcRQD/hmEGlqAV9sqHkkHlFriWAZaHmXR57R wNC+KrkS5Cmin81Tgv6vqZQvQjMRMl/uBUAbi0YPoGnTKiM6f+KvgSZ0w/yvZ5R7zGAG 45gD4kJ+ARTHa2K0UkVQP6kQE+QbXjhP2Sb4mKcwc0/Xkr0YKh+VS07yg2sctqEoQj67 sLelIKVsyBylBQvxMbDlJ8FtmxeuKZzMDYY33+xwRSYE2Ad7XkDMhh9FDRL55rtr7map vJPw== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=gwL9DeMn; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 2610:10:20:722:a800:ff:fe36:1795 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from gabe.freedesktop.org (gabe.freedesktop.org. [2610:10:20:722:a800:ff:fe36:1795]) by mx.google.com with ESMTPS id h1si24073096pgq.399.2021.03.03.05.44.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Mar 2021 05:44:34 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 2610:10:20:722:a800:ff:fe36:1795 as permitted sender) client-ip=2610:10:20:722:a800:ff:fe36:1795; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=gwL9DeMn; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 2610:10:20:722:a800:ff:fe36:1795 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id CC1C66E905; Wed, 3 Mar 2021 13:44:06 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wr1-x429.google.com (mail-wr1-x429.google.com [IPv6:2a00:1450:4864:20::429]) by gabe.freedesktop.org (Postfix) with ESMTPS id 5E20C6E905 for ; Wed, 3 Mar 2021 13:44:03 +0000 (UTC) Received: by mail-wr1-x429.google.com with SMTP id d15so8498913wrv.5 for ; Wed, 03 Mar 2021 05:44:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=40rMkjxWXVqNvj5udKCXGKEGtGQzZwRj2q8fY5x7CYk=; b=gwL9DeMnKXuT9d0yT8cDU0ip7wM4OSKTBI33zHiN5YgYPTQKSZoL8U48t0HgUWgPsy B92nExhX6Y/6Fi+iwlWRIe/IfTCwMKNaURr1k9mdlklZZX6MdJM5ZPi3UgaZZVpOm66l vo+u1h7vsrL50rG6qMxSqy6U/HKLaF0xUyvN4YZXAGOLLV6zNCUUPNY5eYQkJ/zmCBXw d8qk0/sfFHzoh5SLVrKDrolCgP2iZhufccuQszm+wbti42BRfknoJAl1zxUsMgQDCDE6 KLAJXM2tas5wfsHbvuLV4UOT5dVJT0KaRQXdma6pRJEieYc47vUKVnrweEPudfuH5kiy Pyzg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=40rMkjxWXVqNvj5udKCXGKEGtGQzZwRj2q8fY5x7CYk=; b=FdfdImN4O1sBqsW1n+fp2sl6hF5pw+8g590uJYJM7wcq1+14SXeglDSjc+25mXOBUi yWpxkDH1d6T1+94itlCkBSWxYYB/+uXjc7PjGBQrfexfuKRVlcu1wKDgYVDUtL9fadeG W1bDLs6GrN34QvBgQ3ZriB7aShXGbIE7EWMYMIuksudbUzO4nNoqIGE0MxmXlqRD/5af IsL3SxAKstoPnHapiKOPrXXWec3pBUr1vkPCMKzDHB+yGQXD6OgfiMPYC/dgv+aRZhzt Dbx8zOkLgjgg4Fu9MYAhlKjAdvmhatJBITyQytrHayry5vhHaUhlBA31L4xiA1xt3rNf IDRQ== X-Gm-Message-State: AOAM532Th5DDMRVZK2VJBfpQ3rHWb9EPZbAfVJ4/Uez1oTWrHOk1Dghb pXZq98cs7tQJOajynhHsFs/Wew== X-Received: by 2002:adf:fec5:: with SMTP id q5mr16914657wrs.43.1614779042019; Wed, 03 Mar 2021 05:44:02 -0800 (PST) Received: from dell.default ([91.110.221.155]) by smtp.gmail.com with ESMTPSA id w18sm6109524wrr.7.2021.03.03.05.44.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Mar 2021 05:44:01 -0800 (PST) From: Lee Jones To: lee.jones@linaro.org Subject: [PATCH 28/53] drm/vmwgfx/vmwgfx_resource: Fix worthy function headers demote some others Date: Wed, 3 Mar 2021 13:42:54 +0000 Message-Id: <20210303134319.3160762-29-lee.jones@linaro.org> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20210303134319.3160762-1-lee.jones@linaro.org> References: <20210303134319.3160762-1-lee.jones@linaro.org> MIME-Version: 1.0 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: David Airlie , Roland Scheidegger , linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, VMware Graphics Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" Fixes the following W=1 kernel build warning(s): drivers/gpu/drm/vmwgfx/vmwgfx_resource.c:215: warning: Excess function parameter 'obj_type' description in 'vmw_resource_init' drivers/gpu/drm/vmwgfx/vmwgfx_resource.c:303: warning: Excess function parameter 'p_res' description in 'vmw_user_resource_noref_lookup_handle' drivers/gpu/drm/vmwgfx/vmwgfx_resource.c:328: warning: Function parameter or member 'dev_priv' not described in 'vmw_user_lookup_handle' drivers/gpu/drm/vmwgfx/vmwgfx_resource.c:328: warning: Function parameter or member 'tfile' not described in 'vmw_user_lookup_handle' drivers/gpu/drm/vmwgfx/vmwgfx_resource.c:328: warning: Function parameter or member 'handle' not described in 'vmw_user_lookup_handle' drivers/gpu/drm/vmwgfx/vmwgfx_resource.c:328: warning: Function parameter or member 'out_surf' not described in 'vmw_user_lookup_handle' drivers/gpu/drm/vmwgfx/vmwgfx_resource.c:328: warning: Function parameter or member 'out_buf' not described in 'vmw_user_lookup_handle' drivers/gpu/drm/vmwgfx/vmwgfx_resource.c:398: warning: Function parameter or member 'dirtying' not described in 'vmw_resource_do_validate' drivers/gpu/drm/vmwgfx/vmwgfx_resource.c:601: warning: Function parameter or member 'interruptible' not described in 'vmw_resource_reserve' drivers/gpu/drm/vmwgfx/vmwgfx_resource.c:601: warning: Function parameter or member 'no_backup' not described in 'vmw_resource_reserve' drivers/gpu/drm/vmwgfx/vmwgfx_resource.c:987: warning: Function parameter or member 'interruptible' not described in 'vmw_resource_pin' Cc: VMware Graphics Cc: Roland Scheidegger Cc: David Airlie Cc: Daniel Vetter Cc: dri-devel@lists.freedesktop.org Signed-off-by: Lee Jones Signed-off-by: Zack Rusin Link: https://patchwork.freedesktop.org/patch/msgid/20210115181313.3431493-11-lee.jones@linaro.org --- drivers/gpu/drm/vmwgfx/vmwgfx_resource.c | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) -- 2.27.0 _______________________________________________ dri-devel mailing list dri-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/dri-devel diff --git a/drivers/gpu/drm/vmwgfx/vmwgfx_resource.c b/drivers/gpu/drm/vmwgfx/vmwgfx_resource.c index d1e7b9608145b..c4df51a2a9262 100644 --- a/drivers/gpu/drm/vmwgfx/vmwgfx_resource.c +++ b/drivers/gpu/drm/vmwgfx/vmwgfx_resource.c @@ -202,7 +202,6 @@ int vmw_resource_alloc_id(struct vmw_resource *res) * * @dev_priv: Pointer to a device private struct. * @res: The struct vmw_resource to initialize. - * @obj_type: Resource object type. * @delay_id: Boolean whether to defer device id allocation until * the first validation. * @res_free: Resource destructor. @@ -288,8 +287,6 @@ int vmw_user_resource_lookup_handle(struct vmw_private *dev_priv, * @tfile: Pointer to a struct ttm_object_file identifying the caller * @handle: The TTM user-space handle * @converter: Pointer to an object describing the resource type - * @p_res: On successful return the location pointed to will contain - * a pointer to a refcounted struct vmw_resource. * * If the handle can't be found or is associated with an incorrect resource * type, -EINVAL will be returned. @@ -315,7 +312,7 @@ vmw_user_resource_noref_lookup_handle(struct vmw_private *dev_priv, return converter->base_obj_to_res(base); } -/** +/* * Helper function that looks either a surface or bo. * * The pointer this pointed at by out_surf and out_buf needs to be null. @@ -388,6 +385,7 @@ static int vmw_resource_buf_alloc(struct vmw_resource *res, * @res: The resource to make visible to the device. * @val_buf: Information about a buffer possibly * containing backup data if a bind operation is needed. + * @dirtying: Transfer dirty regions. * * On hardware resource shortage, this function returns -EBUSY and * should be retried once resources have been freed up. @@ -586,7 +584,7 @@ vmw_resource_check_buffer(struct ww_acquire_ctx *ticket, return ret; } -/** +/* * vmw_resource_reserve - Reserve a resource for command submission * * @res: The resource to reserve. @@ -973,7 +971,7 @@ void vmw_resource_evict_all(struct vmw_private *dev_priv) mutex_unlock(&dev_priv->cmdbuf_mutex); } -/** +/* * vmw_resource_pin - Add a pin reference on a resource * * @res: The resource to add a pin reference on From patchwork Wed Mar 3 13:42:55 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 392089 Delivered-To: patch@linaro.org Received: by 2002:a02:290e:0:0:0:0:0 with SMTP id p14csp5133327jap; Wed, 3 Mar 2021 05:44:31 -0800 (PST) X-Google-Smtp-Source: ABdhPJxHnPZ8vVlUOJZ/YG2NDvpVtrBBwNqjVPcC7rBs2zy5Kw9D9G3cCQsjGQcPoNlKcgs0DGJ+ X-Received: by 2002:a62:6006:0:b029:1dd:3af9:965f with SMTP id u6-20020a6260060000b02901dd3af9965fmr25399195pfb.30.1614779071180; Wed, 03 Mar 2021 05:44:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614779071; cv=none; d=google.com; s=arc-20160816; b=kmTPJ+8vlLot++T6PQIL9Nti/LwF03jdrRFHbR3an3WGkokeXhLZRAXOV+m930vhxi KmdHylJVmY6A4bRI0z75GHQB6hGA1eJW3/t74LpQ3D43htiIySFPsGK0ilMuF2PDJrXs tFhuGOcK75IjknIi1TyMvXRTCUGL+iIzyc9jyBifw2HVWB4YkDM8hGFHqRe+2rq6E/ZE djDN1dMXZS03qMV689gLac9cMsjgi3zpL6ruw7qHxy4ZzJPNqcG7aXGHJBaEgM4JuPip UirMDCB7kpSOoiPG2YwSN9S5YMK2HHuCh94MBSDXJHd12GP3lHuSF20/3UOrKiE4JddL 7oUA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:cc:list-subscribe :list-help:list-post:list-archive:list-unsubscribe:list-id :precedence:mime-version:references:in-reply-to:message-id:date :subject:to:from:dkim-signature:delivered-to; bh=56sx7GOaDydJi2+LlJSCejQUdtm6ciTFu8M4AGPXllA=; b=uZ021P5WhU+kIehrMJalzauTVVqRpBJkoU5VXrDLDvqWZTiewUDtz1adPx8WgE7YD/ 8VHtQ3mvjdNQQxs9i7xnufszHs2un0iA8p1pqFLH+s16ZP8Odod8K05dIv4J4BB3WtbP 37hylxMMTmqasNglpGYpP/d328gqmQ0WHguK1y4b2B1Xw3HobuqtNPXRLkWQURooqvFO e2kLpVWk8tT1g+dx9Y6Bz+aoWhef0zSLXMp4PCN/N6d52KW2Ni5+qgu9ry3lntM+YzyB SMdjuIxIJ8hOoB5Peyk559tfAWOaE70S8ehV8F+c8ygdZoe268uThHY6MNvCoRIF0aft JwKw== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=hNtRCCCe; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from gabe.freedesktop.org (gabe.freedesktop.org. [131.252.210.177]) by mx.google.com with ESMTPS id q3si24982913pfu.235.2021.03.03.05.44.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Mar 2021 05:44:31 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) client-ip=131.252.210.177; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=hNtRCCCe; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 4BE5D6E902; Wed, 3 Mar 2021 13:44:05 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wr1-x42e.google.com (mail-wr1-x42e.google.com [IPv6:2a00:1450:4864:20::42e]) by gabe.freedesktop.org (Postfix) with ESMTPS id 74BF86E8FF for ; Wed, 3 Mar 2021 13:44:04 +0000 (UTC) Received: by mail-wr1-x42e.google.com with SMTP id v15so23747730wrx.4 for ; Wed, 03 Mar 2021 05:44:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=ZKXL5BSpeJS4vDI/7s0Xoa8UxotBBglASR7mfOE+iBg=; b=hNtRCCCeLUyw2wuwWNSPLsnqiGi3UnjiOYd/907z/VkaGS03CORudaoeEzoKYZ21wW +3n5IBsv3gkbasx+n2cCWCAVea13G1Q2ZSB42y0CxowYWrDBqA8kfycGf+Er+H0FFCao eOSqiLNTpDXNLn+wzbAXzjtF7CDA2C9NOgQidByinmGlam0z4LrTrH+o4lYwzfAyY4cf pFoNb7a7tau9SJERVtEOs1XJvnlQYlOHvSXJy21Bqs3m4amKs0motl60th9pOXMi8xb1 OP+1xku4Uf7V/QHBacsXBTLLPOqCCGr8UP9Ad8BEGyrrgUA5Jg6BxQ03ADsmG/MePKtP pCTw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=ZKXL5BSpeJS4vDI/7s0Xoa8UxotBBglASR7mfOE+iBg=; b=T3YxeEnrCDBSoxPJZ76oOMTXfRtZZa5XCialG22kZYgCxPLhkOTMCbl0Zc2lCGYVEi 0F+XrCvtpMxuE4xy3Ixp/IqrT2Jgj8gDyDth++A59oxB/W4b1f6YgqabF6H5bP5qZ5r8 BVb/vn17WqwbsKrwQyNRUJ19tq47oEmBstx4G/kwe3Biq6jX90+M7IzKDwFPfR2pgekh 6uVhOBPpKY3GkpWq7Cj9aT/6Gl403QH/ElhVYAPKDg7EGQsfrWdfqIC1hg6Y+OHJ+oLq jvDqqisF1zyRx5BzqLVPRf8McoI4qZcDJVcIj/AX356h3RbC+Aqp0SojfeZV5+2QEAyp d0/g== X-Gm-Message-State: AOAM530/yI3YXU3UYhQ8VLHG/I3JtZ5bx+S9r/qm/YxLjt2Y4x4O1M8b 5dC7QZkzSqmnw8ix42oipIjJvA== X-Received: by 2002:adf:b641:: with SMTP id i1mr27693700wre.295.1614779043159; Wed, 03 Mar 2021 05:44:03 -0800 (PST) Received: from dell.default ([91.110.221.155]) by smtp.gmail.com with ESMTPSA id w18sm6109524wrr.7.2021.03.03.05.44.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Mar 2021 05:44:02 -0800 (PST) From: Lee Jones To: lee.jones@linaro.org Subject: [PATCH 29/53] drm/vmwgfx/vmwgfx_ttm_buffer: Supply some missing parameter descriptions Date: Wed, 3 Mar 2021 13:42:55 +0000 Message-Id: <20210303134319.3160762-30-lee.jones@linaro.org> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20210303134319.3160762-1-lee.jones@linaro.org> References: <20210303134319.3160762-1-lee.jones@linaro.org> MIME-Version: 1.0 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: David Airlie , Roland Scheidegger , linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, VMware Graphics Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" Fixes the following W=1 kernel build warning(s): drivers/gpu/drm/vmwgfx/vmwgfx_ttm_buffer.c:275: warning: Function parameter or member 'p_offset' not described in 'vmw_piter_start' drivers/gpu/drm/vmwgfx/vmwgfx_ttm_buffer.c:676: warning: Function parameter or member 'evict' not described in 'vmw_move_notify' Cc: VMware Graphics Cc: Roland Scheidegger Cc: David Airlie Cc: Daniel Vetter Cc: dri-devel@lists.freedesktop.org Signed-off-by: Lee Jones Signed-off-by: Zack Rusin Link: https://patchwork.freedesktop.org/patch/msgid/20210115181313.3431493-12-lee.jones@linaro.org --- drivers/gpu/drm/vmwgfx/vmwgfx_ttm_buffer.c | 2 ++ 1 file changed, 2 insertions(+) -- 2.27.0 _______________________________________________ dri-devel mailing list dri-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/dri-devel diff --git a/drivers/gpu/drm/vmwgfx/vmwgfx_ttm_buffer.c b/drivers/gpu/drm/vmwgfx/vmwgfx_ttm_buffer.c index dbb068830d800..6a44567e4ba52 100644 --- a/drivers/gpu/drm/vmwgfx/vmwgfx_ttm_buffer.c +++ b/drivers/gpu/drm/vmwgfx/vmwgfx_ttm_buffer.c @@ -265,6 +265,7 @@ static dma_addr_t __vmw_piter_sg_addr(struct vmw_piter *viter) * * @viter: Pointer to the iterator to initialize * @vsgt: Pointer to a struct vmw_sg_table to initialize from + * @p_offset: Pointer offset used to update current array position * * Note that we're following the convention of __sg_page_iter_start, so that * the iterator doesn't point to a valid page after initialization; it has @@ -664,6 +665,7 @@ static int vmw_ttm_io_mem_reserve(struct ttm_bo_device *bdev, struct ttm_resourc * vmw_move_notify - TTM move_notify_callback * * @bo: The TTM buffer object about to move. + * @evict: Unused * @mem: The struct ttm_resource indicating to what memory * region the move is taking place. * From patchwork Wed Mar 3 13:42:56 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 392090 Delivered-To: patch@linaro.org Received: by 2002:a02:290e:0:0:0:0:0 with SMTP id p14csp5133349jap; Wed, 3 Mar 2021 05:44:33 -0800 (PST) X-Google-Smtp-Source: ABdhPJxGWdtuoxyONM7zxPcpo4489VZOw0mz1sl5DttJ0sUupgmcItqeprmkhkR3C6qDXhRA8zdK X-Received: by 2002:a17:90a:2a41:: with SMTP id d1mr9491923pjg.164.1614779073008; Wed, 03 Mar 2021 05:44:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614779073; cv=none; d=google.com; s=arc-20160816; b=uhn6cmzZfc3pWRlQutA3edmvNLY6Y3OfzD1b626Qi2AaZ9hHgs85xFzakpVtf1SmXx Gt6QgAk6EqLRsOKf6GubNif6nDFIMZXR2ZWbn0s4Ql192tWaS2LWDHKBpDL0raDmkoZW K0EXOjx6qtGVZQaqLnTbEWHJr5USG3Mvcd+rgUih5ftGzb5LVXV/GgJMMeO3dUHIuzxf ekKrI4k5o9MLJrJeIYsk3bWXHMBc9ErMzNXr8eNJ8Fz3VL3pgXzX/ucjSPdAZjof0dA/ yOAH6IK4xEO+KPf3Df5KgEoixrcgn9lPMWvneRd1fV7opM5tWWeWUdMOggdnmF9VK+JO 7s8Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:cc:list-subscribe :list-help:list-post:list-archive:list-unsubscribe:list-id :precedence:mime-version:references:in-reply-to:message-id:date :subject:to:from:dkim-signature:delivered-to; bh=EI0fWEeMW8P0kB58uzdWfHZ96NrRwEpqTjKsqEIOzG4=; b=gyYJDRIP2wR3OKFLurkQy7Va1rhUz23aLSd44TqZaUYN3wB86Wuk15uREobZgXgFtW szgrykwmfzVfeeckrvlFCJ6CnjaWyQe7DBufCXF3n9v/gjsh4oYpUp7EtV0Y39PAG4zO 0IFo2aEoJ7sO4fMTqXkngorkacAnd1WWYBtMGx8Wya7KtJ4a2CLO1NRW5zv0ey8EVuwx M6G6xgtHERubHs2IMkJNPz6ATsGAzwMeIh2XkLM6HotiIrWcvIWMaBjqaXAgOiD5dLUD qOI4M0jH5A0jrQgX3nK+7RI0POheNIX7rSddf15RBkmney90IZL8Dsbv3UHubIYX0i0h dd+w== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=sGQaCdMV; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from gabe.freedesktop.org (gabe.freedesktop.org. [131.252.210.177]) by mx.google.com with ESMTPS id bg6si25583633plb.405.2021.03.03.05.44.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Mar 2021 05:44:33 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) client-ip=131.252.210.177; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=sGQaCdMV; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 3FBD86E8FF; Wed, 3 Mar 2021 13:44:06 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wr1-x42f.google.com (mail-wr1-x42f.google.com [IPv6:2a00:1450:4864:20::42f]) by gabe.freedesktop.org (Postfix) with ESMTPS id B722B6E8FF for ; Wed, 3 Mar 2021 13:44:05 +0000 (UTC) Received: by mail-wr1-x42f.google.com with SMTP id w11so23713853wrr.10 for ; Wed, 03 Mar 2021 05:44:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=BjfwsSGdxPmrvaJOjBX9ijfyCI7yYPSZw53zZSFU+oQ=; b=sGQaCdMVqDriVS+b6KY0lBnm3pYMMCpz4EqqljOvMl7zgk5jRtBQ2i2oPWzoFCYHiP sz+9QyRiQeLU9+2j2CdDvc1h+dR8wwSwQ4ITxc+oKDq1N0/R8XSEkNboWDtqtZRMnXCa YoMKsx5UXZ2aTahxpyoVfcxkalHnJTobJl2WL5kI/S1/jtfJWJAav5w2Elr9j1T8x+Dh jpIeXoXtZ2FbJm1MLHx/hwVEq1Jn/d9lhTNu4mndi9xm78/Qc0H5eJXr6CNQ9RIcsbEf 88pL/SiRunxWo13GmHuvzJddVrxHN4wVC1cRR5BhEEa84NvYQTR1psg5kWSKOi2m0li5 tZjA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=BjfwsSGdxPmrvaJOjBX9ijfyCI7yYPSZw53zZSFU+oQ=; b=OgD31VGCMXaGkF0pYBL5iuHdm4F5ILI9MyeFUEsY2XsxFL2eIycFKykVlDhvg8dQAH KZ8I2gqc+KJTR6s5GqBXPVF9UGK/FSfeNRryEiV1MxyLzVIRuvERyKOWm2Vr4HyLtxUw 3GUQtClY2TMc5OHvHjsDnbEQbIQAgT7AsaFYqIuKns+fuuBrZVdT3EQWSqFySxYUmx03 6FGRLdwmPc4PDvaxxCOmuH/NDe6PGL5nmnveGdW8Y3rINPFj800DgqE4tZFxcGjZA+Xz 0rhMJY06zV6fkyAdlgSmH5vzcIfsElqJICNpqvFF5eKaW32KLf8cGmHhKiY/rRGG8auF VOHQ== X-Gm-Message-State: AOAM531Pf5W5leqclgDZ67jK/eLbeWyh6/1M+0s7ZepV8nJil6AEC1nN 7PpJl8PQC97lY0NmEBsZjvDslg== X-Received: by 2002:a5d:4564:: with SMTP id a4mr292223wrc.3.1614779044383; Wed, 03 Mar 2021 05:44:04 -0800 (PST) Received: from dell.default ([91.110.221.155]) by smtp.gmail.com with ESMTPSA id w18sm6109524wrr.7.2021.03.03.05.44.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Mar 2021 05:44:03 -0800 (PST) From: Lee Jones To: lee.jones@linaro.org Subject: [PATCH 30/53] drm/vmwgfx/vmwgfx_fifo: Demote non-conformant kernel-doc header Date: Wed, 3 Mar 2021 13:42:56 +0000 Message-Id: <20210303134319.3160762-31-lee.jones@linaro.org> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20210303134319.3160762-1-lee.jones@linaro.org> References: <20210303134319.3160762-1-lee.jones@linaro.org> MIME-Version: 1.0 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: David Airlie , Roland Scheidegger , linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, VMware Graphics Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" Fixes the following W=1 kernel build warning(s): drivers/gpu/drm/vmwgfx/vmwgfx_fifo.c:299: warning: Function parameter or member 'dev_priv' not described in 'vmw_local_fifo_reserve' drivers/gpu/drm/vmwgfx/vmwgfx_fifo.c:299: warning: Function parameter or member 'bytes' not described in 'vmw_local_fifo_reserve' Cc: VMware Graphics Cc: Roland Scheidegger Cc: David Airlie Cc: Daniel Vetter Cc: dri-devel@lists.freedesktop.org Signed-off-by: Lee Jones Signed-off-by: Zack Rusin Link: https://patchwork.freedesktop.org/patch/msgid/20210115181313.3431493-13-lee.jones@linaro.org --- drivers/gpu/drm/vmwgfx/vmwgfx_cmd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.27.0 _______________________________________________ dri-devel mailing list dri-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/dri-devel diff --git a/drivers/gpu/drm/vmwgfx/vmwgfx_cmd.c b/drivers/gpu/drm/vmwgfx/vmwgfx_cmd.c index 7400d617ae3cc..20246a7c97c9d 100644 --- a/drivers/gpu/drm/vmwgfx/vmwgfx_cmd.c +++ b/drivers/gpu/drm/vmwgfx/vmwgfx_cmd.c @@ -276,7 +276,7 @@ static int vmw_fifo_wait(struct vmw_private *dev_priv, return ret; } -/** +/* * Reserve @bytes number of bytes in the fifo. * * This function will return NULL (error) on two conditions: From patchwork Wed Mar 3 13:42:57 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 392092 Delivered-To: patch@linaro.org Received: by 2002:a02:290e:0:0:0:0:0 with SMTP id p14csp5133411jap; Wed, 3 Mar 2021 05:44:36 -0800 (PST) X-Google-Smtp-Source: ABdhPJzbuYhGBbHqrPMQEj8HY/4LCbWZxRRJ/eFV1nMzgbNhcj7O9rcN1ANrZ47OlWZ4VW8SZ1GI X-Received: by 2002:a17:90a:a584:: with SMTP id b4mr9900905pjq.190.1614779076145; Wed, 03 Mar 2021 05:44:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614779076; cv=none; d=google.com; s=arc-20160816; b=uVAov4oyhYgx8kdRmG70TMsfP+c7RauhJiCQcpvAQpX7I+ThX0MnYbpGC8oNbetRl+ tcmyEtu8JvvdTLE6j7ydLocjUt79jhfZBMsoUnCd/unzcsqlFUxuIhLVSaGVRqfPdwRa v8uMGPDdP3hd5jQmfFvddj3xB5tHCTFJ8w+fNMWP+/jfJZbV585hpIYVCVHPmARvQjNF Gi2sewnEQkclkpGDh5Psfwpar1I7xsOuj01jaYON9KC3wIWu99/8UbrcwoZ5VLaqPAm1 fw15KMCmiSMgPUKBchEQljm0ZgXMqdOXsQmujx3suzMSawUhYEsw4a7pK3mRBgVcVzsL yHoA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:cc:list-subscribe :list-help:list-post:list-archive:list-unsubscribe:list-id :precedence:mime-version:references:in-reply-to:message-id:date :subject:to:from:dkim-signature:delivered-to; bh=LTnppdm6MKPhsdRDLcxbyEEEpJO7UaGsjVNdbeH2y3Q=; b=vfscNJjruzDnEdvk5AwYnmz8aoTxAkaEFhEMyVnKmMXuNXYJtz2qqAC+jpjgqVNuIi mK7BpBiLl29djDdjcYeJ09SmQW028+7UpDVYFffaOdA0EBcbgDYpPh5rI1ck/FSgl08k PALieHq13SPOJAxFrPqEDAqUfPGnB94gV3i7ABQzRRcRa97qkgoGb243yNz1c1ZIDqlO tg9CJT0qOfpVNQVb1lMVvPlk+Sazzei/Q7Sb+7qjlRtKdzSVDI8z9G4NlYOq40oKuDQ5 JEvx7ABAcDUvbJB3EK4xDl4/TlNoaCEF7T2tQLuz6F5TlWbPfwNFlb6mnNNrX0lG6yKk gm/A== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=XG9g9Gqc; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from gabe.freedesktop.org (gabe.freedesktop.org. [131.252.210.177]) by mx.google.com with ESMTPS id v17si23965042pgk.427.2021.03.03.05.44.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Mar 2021 05:44:36 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) client-ip=131.252.210.177; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=XG9g9Gqc; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 0B2896E926; Wed, 3 Mar 2021 13:44:10 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wm1-x329.google.com (mail-wm1-x329.google.com [IPv6:2a00:1450:4864:20::329]) by gabe.freedesktop.org (Postfix) with ESMTPS id D14496E906 for ; Wed, 3 Mar 2021 13:44:06 +0000 (UTC) Received: by mail-wm1-x329.google.com with SMTP id l22so5230856wme.1 for ; Wed, 03 Mar 2021 05:44:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=tmSWc9lSX8plC+W5s/fzd/gmEeVkpduD+/cr5gvR47U=; b=XG9g9GqcUfSvxhKZ3LXb18saIpgWwFds4iItiADLUMMHBM00te+esEhv7OYwz62YS2 ZVXaG5uHxzk3+7ib+aQ1hfw+dx5mg2ohpnRw6S7Zgo51DC1RG/BJ6VkL6d8IzEwNchUG MLXBaQoleIiBHUZanNQJFIJD15MSH0bP+V/kKXMn0FcIuyeK/pscQ1iLvqWs6FopfsK8 BBPkuMQYZkq+FIvdehyn+ZmXrSCtpep1o7Xk5wX1lAZKkgtmQq8o7m7VERTrLRii1Y83 czQ5lbvifM4mqqyMn1QNeZOHJL2qfhdIpc9chnfmKHEY0lFgjeTJADscLImG+tswDopd IytA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=tmSWc9lSX8plC+W5s/fzd/gmEeVkpduD+/cr5gvR47U=; b=R3kVQUTjXtf/AtpyFmewEVt2Stb7Jm3W3n59qsDvzjXhN0+uxJA+LMM73u+YOoXVpQ y1J4Gf+QMqaK4o/Kk2NrNYRCUzW8szdfkUje3trYWkK0OmVyRvxzt+nvZz/lHlx4fnBt 2iEKINKuNx6ceqGDURs1kzxpNqpFVOVnqAOnefyxsFV+wxgx+Wo9xrCrG22sO3GiZ0AG ZdH8uUVobK7NIjKVE2lCnNd0KaJntSLZIW7y5/6/3AgdK0OFHQs5helD6tMXDuFpX0R0 wS6s9BNsH5KW1dgaR+NSPhGN3Y1waQCHWdscZsFdUqrLmzwO6reoqjvpmGCkljtUhGAy su4Q== X-Gm-Message-State: AOAM5333GTnFJpPUjG3r7+EXM3u+gK/0BrCNn4TI3Ps2U1++sTdlSCw4 Ccj7a0tsb43rfiSdVTWBHrVoVg== X-Received: by 2002:a05:600c:289:: with SMTP id 9mr9317471wmk.135.1614779045399; Wed, 03 Mar 2021 05:44:05 -0800 (PST) Received: from dell.default ([91.110.221.155]) by smtp.gmail.com with ESMTPSA id w18sm6109524wrr.7.2021.03.03.05.44.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Mar 2021 05:44:04 -0800 (PST) From: Lee Jones To: lee.jones@linaro.org Subject: [PATCH 31/53] drm/vmwgfx/vmwgfx_ldu: Supply descriptions for 'state' function parameter Date: Wed, 3 Mar 2021 13:42:57 +0000 Message-Id: <20210303134319.3160762-32-lee.jones@linaro.org> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20210303134319.3160762-1-lee.jones@linaro.org> References: <20210303134319.3160762-1-lee.jones@linaro.org> MIME-Version: 1.0 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: David Airlie , Roland Scheidegger , linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, VMware Graphics Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" Fixes the following W=1 kernel build warning(s): drivers/gpu/drm/vmwgfx/vmwgfx_ldu.c:55: warning: cannot understand function prototype: 'struct vmw_legacy_display_unit ' drivers/gpu/drm/vmwgfx/vmwgfx_ldu.c:218: warning: Function parameter or member 'state' not described in 'vmw_ldu_crtc_atomic_enable' drivers/gpu/drm/vmwgfx/vmwgfx_ldu.c:228: warning: Function parameter or member 'state' not described in 'vmw_ldu_crtc_atomic_disable' Cc: VMware Graphics Cc: Roland Scheidegger Cc: David Airlie Cc: Daniel Vetter Cc: dri-devel@lists.freedesktop.org Signed-off-by: Lee Jones Signed-off-by: Zack Rusin Link: https://patchwork.freedesktop.org/patch/msgid/20210115181313.3431493-14-lee.jones@linaro.org --- drivers/gpu/drm/vmwgfx/vmwgfx_ldu.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) -- 2.27.0 _______________________________________________ dri-devel mailing list dri-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/dri-devel diff --git a/drivers/gpu/drm/vmwgfx/vmwgfx_ldu.c b/drivers/gpu/drm/vmwgfx/vmwgfx_ldu.c index 9a9508edbc9ed..acae92a07f4f3 100644 --- a/drivers/gpu/drm/vmwgfx/vmwgfx_ldu.c +++ b/drivers/gpu/drm/vmwgfx/vmwgfx_ldu.c @@ -49,7 +49,7 @@ struct vmw_legacy_display { struct vmw_framebuffer *fb; }; -/** +/* * Display unit using the legacy register interface. */ struct vmw_legacy_display_unit { @@ -206,6 +206,7 @@ static void vmw_ldu_crtc_mode_set_nofb(struct drm_crtc *crtc) * vmw_ldu_crtc_atomic_enable - Noop * * @crtc: CRTC associated with the new screen + * @state: Unused * * This is called after a mode set has been completed. Here's * usually a good place to call vmw_ldu_add_active/vmw_ldu_del_active @@ -221,6 +222,7 @@ static void vmw_ldu_crtc_atomic_enable(struct drm_crtc *crtc, * vmw_ldu_crtc_atomic_disable - Turns off CRTC * * @crtc: CRTC to be turned off + * @state: Unused */ static void vmw_ldu_crtc_atomic_disable(struct drm_crtc *crtc, struct drm_atomic_state *state) From patchwork Wed Mar 3 13:42:58 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 392093 Delivered-To: patch@linaro.org Received: by 2002:a02:290e:0:0:0:0:0 with SMTP id p14csp5133427jap; Wed, 3 Mar 2021 05:44:37 -0800 (PST) X-Google-Smtp-Source: ABdhPJxu4BFbf+HFNdikVaCWPOE5xMnpzdwPOpdPETYFwKvXftIFkAYOBcH1H7w55P67uNH1hTGg X-Received: by 2002:a17:90a:86c9:: with SMTP id y9mr9681993pjv.205.1614779077697; Wed, 03 Mar 2021 05:44:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614779077; cv=none; d=google.com; s=arc-20160816; b=hcOAnNo+8cBsiOAuUImEDslyDPpEOIieJeX1UkGLBqGA+iQW6gB08veFJloAv4/Sad SBZjkd6qDSaRcF118L0BHAYh4a0l6NYl3MiBHhmQA7nAigWpRotxD+SiDe61tQmzBSBS ymsDjlNbFGdJKiJBiohN4Mu/t5f+zBA3R6oPNPJs8dgMRDILVFot3p7Vxf5l1SqEgu/N 8c7WT+Jt2qwdv8Pn99ocUfzGr5YCmhV3Q8vW12ARzZZ0wB5NBDSojWPDPBot0dOVKtjk oMGWSow0L4n6IozAPuc5xpsuPj+WljB/zeO60aVRS5sfARDY2YKYHSueT+/YOI14YCFy NUYg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:cc:list-subscribe :list-help:list-post:list-archive:list-unsubscribe:list-id :precedence:mime-version:references:in-reply-to:message-id:date :subject:to:from:dkim-signature:delivered-to; bh=6OmOwcVDknUeCqVyVeq8MXytfCDb0laq0vj+T1sS1TU=; b=RFHFHjXpoM0BSgbejBg+s9CY/hkFN2mZoMYzugmBZ7tjbBrfCDaZfz0MyZ5LKEQnDS /PJlKD9j37Jtv6qCmyvjP8+g+228Chae1GW8K0Juk/HGutM4tMg2sO2tFQtbD8lnfctl MbgMmJzh7tbLi6/Vaa8E3oAja5yvH5uJofLA0DzPMcEWrLDpTs4wnRJGry/SnXw1ne4Y LPM/Vi3h2eg7NemoHDGHda4FiNWTgVp2hcs2BouXvysfI9IoSsCB8DrXrgF3QhjitNU9 buMbdjMoKo5BsJwpySyHXlRra5vvL0utyptkDY/W7/jVTNqqJ1DNDbQrqy+JFQN+UlxJ AppA== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=bt2sZX3t; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 2610:10:20:722:a800:ff:fe36:1795 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from gabe.freedesktop.org (gabe.freedesktop.org. [2610:10:20:722:a800:ff:fe36:1795]) by mx.google.com with ESMTPS id b21si5799229pji.164.2021.03.03.05.44.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Mar 2021 05:44:37 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 2610:10:20:722:a800:ff:fe36:1795 as permitted sender) client-ip=2610:10:20:722:a800:ff:fe36:1795; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=bt2sZX3t; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 2610:10:20:722:a800:ff:fe36:1795 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 131836E927; Wed, 3 Mar 2021 13:44:10 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wr1-x432.google.com (mail-wr1-x432.google.com [IPv6:2a00:1450:4864:20::432]) by gabe.freedesktop.org (Postfix) with ESMTPS id 1D0CE6E90A for ; Wed, 3 Mar 2021 13:44:08 +0000 (UTC) Received: by mail-wr1-x432.google.com with SMTP id f12so19932189wrx.8 for ; Wed, 03 Mar 2021 05:44:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=Lf6C9KN2INyaFSGO743cOHm5zD9ZJ950nSP7LTkF5TI=; b=bt2sZX3tLNo53tzeRpyffFBZT6eJRI5MjhFu48OE8+BDQmPe4LWCB4ysm+1vshyG7x ys/adKdKThLKFPQ57Rg+UZ34+gEoc6Rk+xQDZm0blQ4U5EvJvgtexXyV373QK/J4mlUq 7nWbZhHdDX7/gfBSYdi9dCr8mU7n7YL3ndel8c/oJEClPabAF77gwl188EkqoCgCnYS9 FGks2rniFX7gWOyT4aPZvL8mqRtCsmAWDj3vUuPFhPeqJUG1qdzNKDZmT/vL6T7egPHH 0sdq/qd4eDfCZJWLt9nb6n2xgOXVLF9vNON1NS9l8jECLJjOV7h3EQWIOv+ffNmzTX7m Rm9Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=Lf6C9KN2INyaFSGO743cOHm5zD9ZJ950nSP7LTkF5TI=; b=caWvam7L55SBFCq4TP3VaObiT2ZVGcxyT2rSW2TV+jWgb83A06BOREk5KWNnnZoreD ZJo68egHVxBtAmdb5/lH76SPKIGAqg6yUPWge5a9oCUUD33fgCcDu1dbWqDcrpGpePvd IM7p5iUlLVO9g4h5KsdS8SSxXxfWPaDjQzRGsEzP4J5cWDB0MMZNhz5uybwE8XWc0WMU gFa4bOfxBD0PCwla0ee6k6DW9pDvicyhInMXt6Pd7oHDo8PuNE3/y99m67Z0JXqBXeow 4aaaPsURSQobvMb7YQVVASlTDpNtmfnGrcurXa06LkPCpiw6RBfGGr0fiKvKgKtg4c0B EkCw== X-Gm-Message-State: AOAM533yDYyOkS9EnZwkmM6lB+1nMhf1TRJmEUemWD/xZfn6sy8NFvyh VJxTM+af/HPpOi9mVGwjGZHvfbZ4d8VL8Q== X-Received: by 2002:a5d:64ac:: with SMTP id m12mr27034845wrp.138.1614779046711; Wed, 03 Mar 2021 05:44:06 -0800 (PST) Received: from dell.default ([91.110.221.155]) by smtp.gmail.com with ESMTPSA id w18sm6109524wrr.7.2021.03.03.05.44.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Mar 2021 05:44:06 -0800 (PST) From: Lee Jones To: lee.jones@linaro.org Subject: [PATCH 32/53] drm/vmwgfx/vmwgfx_kms: Update worthy function headers and demote others Date: Wed, 3 Mar 2021 13:42:58 +0000 Message-Id: <20210303134319.3160762-33-lee.jones@linaro.org> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20210303134319.3160762-1-lee.jones@linaro.org> References: <20210303134319.3160762-1-lee.jones@linaro.org> MIME-Version: 1.0 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: David Airlie , Roland Scheidegger , linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, VMware Graphics Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" Fixes the following W=1 kernel build warning(s): In file included from drivers/gpu/drm/vmwgfx/vmwgfx_kms.c:37: drivers/gpu/drm/vmwgfx/vmwgfx_kms.c:483: warning: Function parameter or member 'new_state' not described in 'vmw_du_cursor_plane_atomic_check' drivers/gpu/drm/vmwgfx/vmwgfx_kms.c:483: warning: Excess function parameter 'state' description in 'vmw_du_cursor_plane_atomic_check' drivers/gpu/drm/vmwgfx/vmwgfx_kms.c:1069: warning: Function parameter or member 'vfb' not described in 'vmw_framebuffer_pin' drivers/gpu/drm/vmwgfx/vmwgfx_kms.c:1281: warning: Function parameter or member 'dev_priv' not described in 'vmw_kms_srf_ok' drivers/gpu/drm/vmwgfx/vmwgfx_kms.c:1907: warning: Function parameter or member 'crtc' not described in 'vmw_get_vblank_counter' drivers/gpu/drm/vmwgfx/vmwgfx_kms.c:1915: warning: Function parameter or member 'crtc' not described in 'vmw_enable_vblank' drivers/gpu/drm/vmwgfx/vmwgfx_kms.c:1923: warning: Function parameter or member 'crtc' not described in 'vmw_disable_vblank' drivers/gpu/drm/vmwgfx/vmwgfx_kms.c:2131: warning: Function parameter or member 'mode' not described in 'vmw_guess_mode_timing' Cc: VMware Graphics Cc: Roland Scheidegger Cc: David Airlie Cc: Daniel Vetter Cc: dri-devel@lists.freedesktop.org Signed-off-by: Lee Jones Signed-off-by: Zack Rusin Link: https://patchwork.freedesktop.org/patch/msgid/20210115181313.3431493-21-lee.jones@linaro.org --- drivers/gpu/drm/vmwgfx/vmwgfx_kms.c | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) -- 2.27.0 _______________________________________________ dri-devel mailing list dri-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/dri-devel diff --git a/drivers/gpu/drm/vmwgfx/vmwgfx_kms.c b/drivers/gpu/drm/vmwgfx/vmwgfx_kms.c index 9293dc19a7683..84143b707cd32 100644 --- a/drivers/gpu/drm/vmwgfx/vmwgfx_kms.c +++ b/drivers/gpu/drm/vmwgfx/vmwgfx_kms.c @@ -467,7 +467,7 @@ int vmw_du_primary_plane_atomic_check(struct drm_plane *plane, * vmw_du_cursor_plane_atomic_check - check if the new state is okay * * @plane: cursor plane - * @state: info on the new plane state + * @new_state: info on the new plane state * * This is a chance to fail if the new cursor state does not fit * our requirements. @@ -1057,7 +1057,7 @@ static const struct drm_framebuffer_funcs vmw_framebuffer_bo_funcs = { .dirty = vmw_framebuffer_bo_dirty_ext, }; -/** +/* * Pin the bofer in a location suitable for access by the * display system. */ @@ -1267,6 +1267,7 @@ static int vmw_kms_new_framebuffer_bo(struct vmw_private *dev_priv, /** * vmw_kms_srf_ok - check if a surface can be created * + * @dev_priv: Pointer to device private struct. * @width: requested width * @height: requested height * @@ -1896,7 +1897,7 @@ bool vmw_kms_validate_mode_vram(struct vmw_private *dev_priv, } -/** +/* * Function called by DRM code called with vbl_lock held. */ u32 vmw_get_vblank_counter(struct drm_crtc *crtc) @@ -1904,7 +1905,7 @@ u32 vmw_get_vblank_counter(struct drm_crtc *crtc) return 0; } -/** +/* * Function called by DRM code called with vbl_lock held. */ int vmw_enable_vblank(struct drm_crtc *crtc) @@ -1912,7 +1913,7 @@ int vmw_enable_vblank(struct drm_crtc *crtc) return -EINVAL; } -/** +/* * Function called by DRM code called with vbl_lock held. */ void vmw_disable_vblank(struct drm_crtc *crtc) @@ -2120,7 +2121,7 @@ static struct drm_display_mode vmw_kms_connector_builtin[] = { * vmw_guess_mode_timing - Provide fake timings for a * 60Hz vrefresh mode. * - * @mode - Pointer to a struct drm_display_mode with hdisplay and vdisplay + * @mode: Pointer to a struct drm_display_mode with hdisplay and vdisplay * members filled in. */ void vmw_guess_mode_timing(struct drm_display_mode *mode) From patchwork Wed Mar 3 13:42:59 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 392094 Delivered-To: patch@linaro.org Received: by 2002:a02:290e:0:0:0:0:0 with SMTP id p14csp5133459jap; Wed, 3 Mar 2021 05:44:39 -0800 (PST) X-Google-Smtp-Source: ABdhPJwnBppvQXFYIGg3Xma8qp9RJ/9hL0kGTQFhmKgA51GuNZGJOHVt5WnywkCZR+hPLxgnuWsm X-Received: by 2002:a05:6a00:2c5:b029:1ee:6ebb:a9a6 with SMTP id b5-20020a056a0002c5b02901ee6ebba9a6mr17681032pft.74.1614779079402; Wed, 03 Mar 2021 05:44:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614779079; cv=none; d=google.com; s=arc-20160816; b=X+s4jV6A85pTjylPdPQpmUx/Fc74JBWJEoplMPm43PnizSB1toCanwX+J3b0iEzwuw zbPei6b3Ug69Eh1KIk/EISzy/DeI2PY/yVtHb7Ley0/LBi0YQAyW0tSrbLoU7xEV21BE /tNmdPTv+1AhcihJuayY7gJYoJ8vE6Baf1w9lCzL2pr9V+vh4CeNVHte5jNiyDu5yzHX xH0/hskMOKROn6FWuwFnbWJeNrtfoysuRPwUgrr/c2Wt6zvmQPBd2kuftSwNC1h+qgcO s8YLJ/ev1EUt2EVOep17YNUgLnwjUUy0UWkiS5QTmqFsRNpnCpJZXPX+WGluWw/DOzLb R+YA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:cc:list-subscribe :list-help:list-post:list-archive:list-unsubscribe:list-id :precedence:mime-version:references:in-reply-to:message-id:date :subject:to:from:dkim-signature:delivered-to; bh=K2IJiwNYlz/P0WIPNqGUdyooPffsSLtPpHOUROZ79QA=; b=p680B3by3Ix/nJPnzD1YPrpHaHOUl5IWaUZOgFvdX7hp0wCjjCnDKmanlwfG22FRvr wMOZ00R3p0OGhVMmtXv/0irj8a3d8CaTdfPlGmFeKCBt3QCfh2Aox8orrJRiillgv9ps ZY9ACD0+Os+HPXgHGNmwuA9iektEdgzovcLr3GoC6rAyEsTJDZwVsJhT7bPg8UP15Tz0 HRVLXQ1CBlatwl912VAEQXi+jqnIUXvrw+tlwyOepPTnlbtsH8KFV4dj/3BdRsO50Zkg 1PmTApl/NMisXyNuu3MYADJB/rBiGEhwwR/t4mHFWaK1JmKwEWwFlyPHMQWZb9jXdlpq t9RQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=bEmdaWNL; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 2610:10:20:722:a800:ff:fe36:1795 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from gabe.freedesktop.org (gabe.freedesktop.org. [2610:10:20:722:a800:ff:fe36:1795]) by mx.google.com with ESMTPS id w192si24888481pfc.80.2021.03.03.05.44.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Mar 2021 05:44:39 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 2610:10:20:722:a800:ff:fe36:1795 as permitted sender) client-ip=2610:10:20:722:a800:ff:fe36:1795; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=bEmdaWNL; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 2610:10:20:722:a800:ff:fe36:1795 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 424DC6E90A; Wed, 3 Mar 2021 13:44:12 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wr1-x42d.google.com (mail-wr1-x42d.google.com [IPv6:2a00:1450:4864:20::42d]) by gabe.freedesktop.org (Postfix) with ESMTPS id 957426E906 for ; Wed, 3 Mar 2021 13:44:09 +0000 (UTC) Received: by mail-wr1-x42d.google.com with SMTP id u14so23749896wri.3 for ; Wed, 03 Mar 2021 05:44:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=z4Bk/fTuFhVwU/7FdAPiJXssZfF9MOQHB9tTd64Ps9M=; b=bEmdaWNLhP8BgCpTYOqqi5FrXxWCwm/ouH5jo0mOjUndvlW/t72D+sET79M7hYkuf8 auszFOXzFkigj84a5CFL2GUvyYd4efIIAisNzb14GY7wbqPqL2SK4lBJLsKdiY1amcQn fM5Yp/MDNth96VhuiwO5pLQkBf9NsVQGRgydLWC6VMfF6Enyp5ZqM0Y2vLbJCcRVmlQf HmZmErIQDtfdd7a82n2ydHDC1PVXW4TEmBLhgG62/DcUF/O4a+4BioT/G0PTdrOHDiVC JjlAtgKdxW7t23lkmFYNl5ud93kWxJkYti8+8cQ0ymG1H8gy/QiU9GMiM6f0rgUCohym d9jg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=z4Bk/fTuFhVwU/7FdAPiJXssZfF9MOQHB9tTd64Ps9M=; b=MKKDppEYEXzkJKqYhpyxCl4rQP2eURzDSLrfr5fKvxsq4j5Igux0XIdqc4wJf+ISKi tcZ6llqHXY1uEPD+/fK+7MqOdmYCjoMBoayAoUeyFTKGonSZ/W7+UBp45KKc3kApuqwj iIMzAbOBGxA45l64VvhwNGu1t6Pj37wPJWSr77FUspg/Qj2NtOckufES9XfDvRS4IZ3w hGONfjm9dq0dVgawbO0Z5lHIYYgmP/iqLeyfFENCgTXreQzcg0HHoWfP6rElvu0zlFU7 H149BV/lUnq1KcYjpEnhktoLmbfELF9JBwR4ULE1dpAzT+kT5lWJJxyKgIauquOs8UeA BGTw== X-Gm-Message-State: AOAM53282ZjygXL10TJ+78rFGjbG5L+8Qi/aXXVbh4LgOW+dU14fBdhd 7Q1ko2bncOksMXhL3lkv+m91tQ== X-Received: by 2002:adf:fb49:: with SMTP id c9mr27871005wrs.72.1614779048260; Wed, 03 Mar 2021 05:44:08 -0800 (PST) Received: from dell.default ([91.110.221.155]) by smtp.gmail.com with ESMTPSA id w18sm6109524wrr.7.2021.03.03.05.44.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Mar 2021 05:44:07 -0800 (PST) From: Lee Jones To: lee.jones@linaro.org Subject: [PATCH 33/53] drm/vmwgfx/vmwgfx_overlay: Demote kernel-doc abuses to standard comment blocks Date: Wed, 3 Mar 2021 13:42:59 +0000 Message-Id: <20210303134319.3160762-34-lee.jones@linaro.org> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20210303134319.3160762-1-lee.jones@linaro.org> References: <20210303134319.3160762-1-lee.jones@linaro.org> MIME-Version: 1.0 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: David Airlie , Roland Scheidegger , linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, VMware Graphics Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" Fixes the following W=1 kernel build warning(s): drivers/gpu/drm/vmwgfx/vmwgfx_overlay.c:48: warning: cannot understand function prototype: 'struct vmw_overlay ' drivers/gpu/drm/vmwgfx/vmwgfx_overlay.c:98: warning: Function parameter or member 'dev_priv' not described in 'vmw_overlay_send_put' drivers/gpu/drm/vmwgfx/vmwgfx_overlay.c:98: warning: Function parameter or member 'buf' not described in 'vmw_overlay_send_put' drivers/gpu/drm/vmwgfx/vmwgfx_overlay.c:98: warning: Function parameter or member 'arg' not described in 'vmw_overlay_send_put' drivers/gpu/drm/vmwgfx/vmwgfx_overlay.c:98: warning: Function parameter or member 'interruptible' not described in 'vmw_overlay_send_put' drivers/gpu/drm/vmwgfx/vmwgfx_overlay.c:186: warning: Function parameter or member 'dev_priv' not described in 'vmw_overlay_send_stop' drivers/gpu/drm/vmwgfx/vmwgfx_overlay.c:186: warning: Function parameter or member 'stream_id' not described in 'vmw_overlay_send_stop' drivers/gpu/drm/vmwgfx/vmwgfx_overlay.c:186: warning: Function parameter or member 'interruptible' not described in 'vmw_overlay_send_stop' drivers/gpu/drm/vmwgfx/vmwgfx_overlay.c:228: warning: Function parameter or member 'dev_priv' not described in 'vmw_overlay_move_buffer' drivers/gpu/drm/vmwgfx/vmwgfx_overlay.c:228: warning: Function parameter or member 'buf' not described in 'vmw_overlay_move_buffer' drivers/gpu/drm/vmwgfx/vmwgfx_overlay.c:228: warning: Function parameter or member 'pin' not described in 'vmw_overlay_move_buffer' drivers/gpu/drm/vmwgfx/vmwgfx_overlay.c:228: warning: Function parameter or member 'inter' not described in 'vmw_overlay_move_buffer' drivers/gpu/drm/vmwgfx/vmwgfx_overlay.c:253: warning: Function parameter or member 'dev_priv' not described in 'vmw_overlay_stop' drivers/gpu/drm/vmwgfx/vmwgfx_overlay.c:253: warning: Function parameter or member 'stream_id' not described in 'vmw_overlay_stop' drivers/gpu/drm/vmwgfx/vmwgfx_overlay.c:253: warning: Function parameter or member 'pause' not described in 'vmw_overlay_stop' drivers/gpu/drm/vmwgfx/vmwgfx_overlay.c:253: warning: Function parameter or member 'interruptible' not described in 'vmw_overlay_stop' drivers/gpu/drm/vmwgfx/vmwgfx_overlay.c:301: warning: Function parameter or member 'dev_priv' not described in 'vmw_overlay_update_stream' drivers/gpu/drm/vmwgfx/vmwgfx_overlay.c:301: warning: Function parameter or member 'buf' not described in 'vmw_overlay_update_stream' drivers/gpu/drm/vmwgfx/vmwgfx_overlay.c:301: warning: Function parameter or member 'arg' not described in 'vmw_overlay_update_stream' drivers/gpu/drm/vmwgfx/vmwgfx_overlay.c:301: warning: Function parameter or member 'interruptible' not described in 'vmw_overlay_update_stream' drivers/gpu/drm/vmwgfx/vmwgfx_overlay.c:364: warning: Function parameter or member 'dev_priv' not described in 'vmw_overlay_resume_all' drivers/gpu/drm/vmwgfx/vmwgfx_overlay.c:398: warning: Function parameter or member 'dev_priv' not described in 'vmw_overlay_pause_all' Cc: VMware Graphics Cc: Roland Scheidegger Cc: David Airlie Cc: Daniel Vetter Cc: dri-devel@lists.freedesktop.org Signed-off-by: Lee Jones Signed-off-by: Zack Rusin Link: https://patchwork.freedesktop.org/patch/msgid/20210115181313.3431493-24-lee.jones@linaro.org --- drivers/gpu/drm/vmwgfx/vmwgfx_overlay.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) -- 2.27.0 _______________________________________________ dri-devel mailing list dri-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/dri-devel diff --git a/drivers/gpu/drm/vmwgfx/vmwgfx_overlay.c b/drivers/gpu/drm/vmwgfx/vmwgfx_overlay.c index d6d282c13b7f7..ac4a9b7222795 100644 --- a/drivers/gpu/drm/vmwgfx/vmwgfx_overlay.c +++ b/drivers/gpu/drm/vmwgfx/vmwgfx_overlay.c @@ -42,7 +42,7 @@ struct vmw_stream { struct drm_vmw_control_stream_arg saved; }; -/** +/* * Overlay control */ struct vmw_overlay { @@ -85,7 +85,7 @@ static inline void fill_flush(struct vmw_escape_video_flush *cmd, cmd->flush.streamId = stream_id; } -/** +/* * Send put command to hw. * * Returns @@ -174,7 +174,7 @@ static int vmw_overlay_send_put(struct vmw_private *dev_priv, return 0; } -/** +/* * Send stop command to hw. * * Returns @@ -216,7 +216,7 @@ static int vmw_overlay_send_stop(struct vmw_private *dev_priv, return 0; } -/** +/* * Move a buffer to vram or gmr if @pin is set, else unpin the buffer. * * With the introduction of screen objects buffers could now be @@ -235,7 +235,7 @@ static int vmw_overlay_move_buffer(struct vmw_private *dev_priv, return vmw_bo_pin_in_vram_or_gmr(dev_priv, buf, inter); } -/** +/* * Stop or pause a stream. * * If the stream is paused the no evict flag is removed from the buffer @@ -285,7 +285,7 @@ static int vmw_overlay_stop(struct vmw_private *dev_priv, return 0; } -/** +/* * Update a stream and send any put or stop fifo commands needed. * * The caller must hold the overlay lock. @@ -353,7 +353,7 @@ static int vmw_overlay_update_stream(struct vmw_private *dev_priv, return 0; } -/** +/* * Try to resume all paused streams. * * Used by the kms code after moving a new scanout buffer to vram. @@ -387,7 +387,7 @@ int vmw_overlay_resume_all(struct vmw_private *dev_priv) return 0; } -/** +/* * Pauses all active streams. * * Used by the kms code when moving a new scanout buffer to vram. From patchwork Wed Mar 3 13:43:00 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 392095 Delivered-To: patch@linaro.org Received: by 2002:a02:290e:0:0:0:0:0 with SMTP id p14csp5133479jap; Wed, 3 Mar 2021 05:44:41 -0800 (PST) X-Google-Smtp-Source: ABdhPJyLf4vZ+mIdjvu+SHSqkyzczB5CjCqgyWLc/SnFw8vurD2ZFWrc6xPIOE9J+ygoEb4btAK5 X-Received: by 2002:aa7:8c10:0:b029:1ee:ff57:8b96 with SMTP id c16-20020aa78c100000b02901eeff578b96mr1307717pfd.72.1614779081131; Wed, 03 Mar 2021 05:44:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614779081; cv=none; d=google.com; s=arc-20160816; b=pMrvHuBYGuOyg2qiBmg9BLHkk+6sli+AoaEMgfPXUWSDwrGaym7pOrv1hsRsqha6h7 AQsqepgGfOkj71+2/0fjP7w7T8Ii5Ra/sgSroQ9y5BTad8gsDxmKIwKwkMHz5wvG5CJq HUDtmqE7vST7eHNWBmAogNKvp1LVUeJJb92wC30NimAJ7UBe1OsSST6b+zRGsBxNyKu7 SdFX8bsXnrYk/fY6kA4+z+6rRqY8v5JmmsBwA357RwzBHoBDwpfUYAR0ZySB0eLm6P+n 8J29YvMFo9N7uR5YItXLVQmzlh8AfGgauYbYxrz+uSBfpgjoWfg4YMLghUrCLf3pBME1 bY2w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:cc:list-subscribe :list-help:list-post:list-archive:list-unsubscribe:list-id :precedence:mime-version:references:in-reply-to:message-id:date :subject:to:from:dkim-signature:delivered-to; bh=ASeG9SvhGv8QEt+8kqJJUHPbQOrtdaY6Ttm3xqRQFuY=; b=HI9oavAz8M6Ao4uE7k9oiJFoHOkp7r713zAaPASAnEby4Gn6ZLVITuO4+7i5BOLhv3 aqguYb38ThtMgUrNWHs6PlaBDPKc+0qREFEw5FTwrUI9bymYQkhigULyqsg1B4YLcxkB vjXng5xUEtvYZY5VIiAixWwHZDbxArOQXxmSoCNTFKKBnIj8oJHwyETYlLw+HoOJGf2E c4sqAc4/xUpPAzUGAmc2Ap/kHnSQxKrRNCXcEu/rRA3kbByCTwFR3+a9VdjmptO5htLM FjZIo9Qtnh/Xj4tVun9Ci7x+xNRdMh6FWvGZFAG9z1ldleyqlu4t7KwNo8UNaTXAkKDw q73Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=fth9eihh; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from gabe.freedesktop.org (gabe.freedesktop.org. [131.252.210.177]) by mx.google.com with ESMTPS id k28si23418559pgb.391.2021.03.03.05.44.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Mar 2021 05:44:41 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) client-ip=131.252.210.177; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=fth9eihh; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id E5C1E6E930; Wed, 3 Mar 2021 13:44:12 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wm1-x333.google.com (mail-wm1-x333.google.com [IPv6:2a00:1450:4864:20::333]) by gabe.freedesktop.org (Postfix) with ESMTPS id A157B6E906 for ; Wed, 3 Mar 2021 13:44:10 +0000 (UTC) Received: by mail-wm1-x333.google.com with SMTP id l22so5231020wme.1 for ; Wed, 03 Mar 2021 05:44:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=yJ/EY0CpLytL31e4vbvBGoD9fXz/ITb5FniloFYVPls=; b=fth9eihhtdzQbeSYvJf7E98nX3F1qwaKJid/2LAs8W8ejpmJFd5zCTTAu4t22jj694 4q5PYQxQxmsJL4MzqFOwHepz7BE3Ig0p+xL0EH0m3wXa7KowSJaYJrOmawSXWuNcjVo8 sPAf4GjUb7uB7kBrcejlHDObUvjzfH8jPeovCJ0/2uXTKy0bsQpNFjvrGPIqYZAljZQP m3z4DKaEqxXv1osCoSW+anx0GtTEaeiBOA4hqedbmew4eadlIw0bhmrb6d/5j5b0FxSQ wxrxxCwZY0uqH5JUbDmmLAYfrRMDknTei8gcYxkuRxquA/AGG3Xx8QvzLP8Zwg2CHACt Fgvg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=yJ/EY0CpLytL31e4vbvBGoD9fXz/ITb5FniloFYVPls=; b=GkzEkt/SEQy6BjFFIGokuBrT1xMaeBgk4vyqv+8eWtSld+23Q9zOT/0D2hCn84uqQI KA4vrEvtrYpRnLwlq9p1d/mYQ8beNIhnWCgBk0YDQ0309ZLBdppr8VshK1yg3q1igVyl wF7jqG+M2zytzht/+28vTn/R726WZ5U8SPgD34GmGd8H0J/4HJczgrq40PaqutjAFhCO 4gPNy/DeWmZSwPx+qY3jiHnZ7gGtxDI7MJMTaLSUyJVBoKhJKsrdrp9P3Kk0iFGWepnK KEyHOoThVh8K6b5KTtS89FtFiXPKYvUMnkkVK860YyRWuBBar48FngZVOkSGQWc/1EcA RbOw== X-Gm-Message-State: AOAM532dgUdderfXjduLYi+e32B4xA+H7LidgjiJmDXY7BIN95wsBe5O eU65s+XnQftePNY0TUKIzd7vbA== X-Received: by 2002:a1c:de05:: with SMTP id v5mr5495703wmg.25.1614779049321; Wed, 03 Mar 2021 05:44:09 -0800 (PST) Received: from dell.default ([91.110.221.155]) by smtp.gmail.com with ESMTPSA id w18sm6109524wrr.7.2021.03.03.05.44.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Mar 2021 05:44:08 -0800 (PST) From: Lee Jones To: lee.jones@linaro.org Subject: [PATCH 34/53] drm/vmwgfx/vmwgfx_fence: Add, remove and demote various documentation params/headers Date: Wed, 3 Mar 2021 13:43:00 +0000 Message-Id: <20210303134319.3160762-35-lee.jones@linaro.org> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20210303134319.3160762-1-lee.jones@linaro.org> References: <20210303134319.3160762-1-lee.jones@linaro.org> MIME-Version: 1.0 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: David Airlie , Roland Scheidegger , linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, =?utf-8?q?Christian_K=C3=B6nig?= , linaro-mm-sig@lists.linaro.org, VMware Graphics , linux-media@vger.kernel.org Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" Fixes the following W=1 kernel build warning(s): drivers/gpu/drm/vmwgfx/vmwgfx_fence.c:82: warning: Function parameter or member 'event' not described in 'vmw_event_fence_action' drivers/gpu/drm/vmwgfx/vmwgfx_fence.c:113: warning: Function parameter or member 'f' not described in 'vmw_fence_obj_destroy' drivers/gpu/drm/vmwgfx/vmwgfx_fence.c:261: warning: Function parameter or member 'work' not described in 'vmw_fence_work_func' drivers/gpu/drm/vmwgfx/vmwgfx_fence.c:720: warning: Function parameter or member 'fman' not described in 'vmw_fence_fifo_down' drivers/gpu/drm/vmwgfx/vmwgfx_fence.c:963: warning: Function parameter or member 'fence' not described in 'vmw_fence_obj_add_action' drivers/gpu/drm/vmwgfx/vmwgfx_fence.c:963: warning: Function parameter or member 'action' not described in 'vmw_fence_obj_add_action' drivers/gpu/drm/vmwgfx/vmwgfx_fence.c:1021: warning: Function parameter or member 'tv_sec' not described in 'vmw_event_fence_action_queue' drivers/gpu/drm/vmwgfx/vmwgfx_fence.c:1021: warning: Function parameter or member 'tv_usec' not described in 'vmw_event_fence_action_queue' Cc: VMware Graphics Cc: Roland Scheidegger Cc: David Airlie Cc: Daniel Vetter Cc: Sumit Semwal Cc: "Christian König" Cc: dri-devel@lists.freedesktop.org Cc: linux-media@vger.kernel.org Cc: linaro-mm-sig@lists.linaro.org Signed-off-by: Lee Jones Signed-off-by: Zack Rusin Link: https://patchwork.freedesktop.org/patch/msgid/20210115181313.3431493-27-lee.jones@linaro.org --- drivers/gpu/drm/vmwgfx/vmwgfx_fence.c | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/drivers/gpu/drm/vmwgfx/vmwgfx_fence.c b/drivers/gpu/drm/vmwgfx/vmwgfx_fence.c index 378ec7600154b..23523eb3cac2a 100644 --- a/drivers/gpu/drm/vmwgfx/vmwgfx_fence.c +++ b/drivers/gpu/drm/vmwgfx/vmwgfx_fence.c @@ -58,13 +58,11 @@ struct vmw_user_fence { /** * struct vmw_event_fence_action - fence action that delivers a drm event. * - * @e: A struct drm_pending_event that controls the event delivery. * @action: A struct vmw_fence_action to hook up to a fence. + * @event: A pointer to the pending event. * @fence: A referenced pointer to the fence to keep it alive while @action * hangs on it. * @dev: Pointer to a struct drm_device so we can access the event stuff. - * @kref: Both @e and @action has destructors, so we need to refcount. - * @size: Size accounted for this object. * @tv_sec: If non-null, the variable pointed to will be assigned * current time tv_sec val when the fence signals. * @tv_usec: Must be set if @tv_sec is set, and the variable pointed to will @@ -87,7 +85,7 @@ fman_from_fence(struct vmw_fence_obj *fence) return container_of(fence->base.lock, struct vmw_fence_manager, lock); } -/** +/* * Note on fencing subsystem usage of irqs: * Typically the vmw_fences_update function is called * @@ -250,7 +248,7 @@ static const struct dma_fence_ops vmw_fence_ops = { }; -/** +/* * Execute signal actions on fences recently signaled. * This is done from a workqueue so we don't have to execute * signal actions from atomic context. @@ -708,7 +706,7 @@ int vmw_wait_dma_fence(struct vmw_fence_manager *fman, } -/** +/* * vmw_fence_fifo_down - signal all unsignaled fence objects. */ @@ -948,8 +946,8 @@ static void vmw_event_fence_action_cleanup(struct vmw_fence_action *action) /** * vmw_fence_obj_add_action - Add an action to a fence object. * - * @fence - The fence object. - * @action - The action to add. + * @fence: The fence object. + * @action: The action to add. * * Note that the action callbacks may be executed before this function * returns. @@ -1001,6 +999,10 @@ static void vmw_fence_obj_add_action(struct vmw_fence_obj *fence, * @fence: The fence object on which to post the event. * @event: Event to be posted. This event should've been alloced * using k[mz]alloc, and should've been completely initialized. + * @tv_sec: If non-null, the variable pointed to will be assigned + * current time tv_sec val when the fence signals. + * @tv_usec: Must be set if @tv_sec is set, and the variable pointed to will + * be assigned the current time tv_usec val when the fence signals. * @interruptible: Interruptible waits if possible. * * As a side effect, the object pointed to by @event may have been From patchwork Wed Mar 3 13:43:01 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 392096 Delivered-To: patch@linaro.org Received: by 2002:a02:290e:0:0:0:0:0 with SMTP id p14csp5133498jap; Wed, 3 Mar 2021 05:44:42 -0800 (PST) X-Google-Smtp-Source: ABdhPJzZnrO1SABNVpI9OLtT/D95Kpy/B7dmA4hQfGbqiCsBixm25pIEJ27xFaEhAfYUwyl1uiyY X-Received: by 2002:a63:4f1f:: with SMTP id d31mr23735319pgb.104.1614779082604; Wed, 03 Mar 2021 05:44:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614779082; cv=none; d=google.com; s=arc-20160816; b=CDiKx65g/G/mD/3QDfG32IeK7DgQB31CWZuiVvIYGxU/uPAVNaRiTYFFCIG7tCBzph bh9p5NLXJzP07+libSTM05DLA4po0NRHyUq99hYn6A4JSzf6FA1KCqAzxaHAhQ4VcqBe h7MvMa6t+d6q5G0aIU3adyotZSq3sg54jLkAGGwZhoTqld6S/UacmfaUvGIJHUNf6Jfk dmDH84irDLSbaloA5xOkTJz+5+wr3LMT76mF1LPzHfu7VR/NSO80zE5V38NKBJzaS4HN 7ar6CTQ8CYOYfOwiynhvE+43lZERgI92IHQQxQgQ0RomqWxKUMjgj23P/p7w/NdFk46s XATA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:cc:list-subscribe :list-help:list-post:list-archive:list-unsubscribe:list-id :precedence:mime-version:references:in-reply-to:message-id:date :subject:to:from:dkim-signature:delivered-to; bh=twhKUr/Dd1dx1BvBfWxGeWsEt3Y0okFalQYsKT5gE3A=; b=dk9ectBH7/fQYog3I0ZTBp9T8n21sO21mhQy1u9xUlfM/yjBM0E1r6xX07DVqw9uZ8 LX74JJXWLSfGi82guXo/sjxcO6fZ96YdVztwgsxGmyr/ERMUGxK5Qmsc/mPZ2nkqU9Kg CRi6V9XfXFmTQ9I0nFN65F5tk6WJnTtPUWmde3tm2pTQdtwmj/I6lEju4rHNoKImOy3P HQodwhvImdQSwgCrA0hFFkZLs/GBaWICYZUZTmp3gNKrxpXpgndgTxtdQLm80LtEBR2X yadsAX+lnnHhyVUvguJtMb2T4AHjO4V6XIvx4dNCj6W0gQU3aPAl7JRXInhyJZc0cC+W UMXQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=saVDJ26t; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 2610:10:20:722:a800:ff:fe36:1795 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from gabe.freedesktop.org (gabe.freedesktop.org. [2610:10:20:722:a800:ff:fe36:1795]) by mx.google.com with ESMTPS id 64si20790489pfz.3.2021.03.03.05.44.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Mar 2021 05:44:42 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 2610:10:20:722:a800:ff:fe36:1795 as permitted sender) client-ip=2610:10:20:722:a800:ff:fe36:1795; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=saVDJ26t; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 2610:10:20:722:a800:ff:fe36:1795 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 4202F6E94B; Wed, 3 Mar 2021 13:44:14 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wm1-x335.google.com (mail-wm1-x335.google.com [IPv6:2a00:1450:4864:20::335]) by gabe.freedesktop.org (Postfix) with ESMTPS id B3A196E906 for ; Wed, 3 Mar 2021 13:44:11 +0000 (UTC) Received: by mail-wm1-x335.google.com with SMTP id w203-20020a1c49d40000b029010c706d0642so2883759wma.0 for ; Wed, 03 Mar 2021 05:44:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=ZfWPfWVAydp9c1JpExjEII7q1h7jeahnMQCqr/L+ySU=; b=saVDJ26t7oNKFUQwsL+FnoC2ZeIneC/6VVDLmxgPYUX1pI0oKfXk4WX6kmwcoLuznA RPNORFIetrA5fZ3XUOUmrTO49N/yLveaGeuNP/ZHO9hauUsb6wgXkxyJqiy5Y0eNJMCv SSbRJc3XSDmr9jQNPV3/aoZrr/oa6DvZJIiUxGj4gUlgv7/T48AWqh14qPdYZ8PQifmm Y9F58Q4TA1bVdvipYTzEZO8yx7iTtg2Yxwz2DZmFe+dLpVM/sVtdwhL5p6d1nKmyCP9F KSBBamRx9CwXZk+2h2/jK/4ybKIjSaYXgnAA17ObttEc6CjoRrAP4AVktpguf5AyiKaZ N6HA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=ZfWPfWVAydp9c1JpExjEII7q1h7jeahnMQCqr/L+ySU=; b=iaKcEGvRXWTWPW7J/TaUfxvub+aiBONJN+ZmCziX2+kXHHerB7Z+iJMjnT7YBQrZXV xldrgX8uEFV2Tf0bphl2tupafOWB/Be+XhywCxrMPhMgorAIXUkq6vYXCds7r1WPDubq IuPZOxXox8t0N3wrAQ2r4MsvFA+zH01q0QeSG6YKD1tB+JmwGnjOU3aR1zNLXfkXXA2+ fhSjE14TwocxcEel4gUxDSKX79OHHgK6rDQQ6AimT4bfqXPEsRCO/8Pu2NK1V0KnX6Yi c+zeO3NkK6IcQ4vTGNf+HOGYnTY3FrF5aUnIDbMXqJRpbQUtRKjqGhkzTqWuPtIXcpL/ V6EQ== X-Gm-Message-State: AOAM533hVhFHxVO1rZ7XjfDdPKv3O2leeH9bO5WgH+9CEsDiS6br/jRg rtU9zzC0V9yqg8ckt8ylN10iww== X-Received: by 2002:a1c:4e12:: with SMTP id g18mr8570012wmh.56.1614779050376; Wed, 03 Mar 2021 05:44:10 -0800 (PST) Received: from dell.default ([91.110.221.155]) by smtp.gmail.com with ESMTPSA id w18sm6109524wrr.7.2021.03.03.05.44.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Mar 2021 05:44:09 -0800 (PST) From: Lee Jones To: lee.jones@linaro.org Subject: [PATCH 35/53] drm/vmwgfx/vmwgfx_bo: Remove superfluous param description and supply another Date: Wed, 3 Mar 2021 13:43:01 +0000 Message-Id: <20210303134319.3160762-36-lee.jones@linaro.org> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20210303134319.3160762-1-lee.jones@linaro.org> References: <20210303134319.3160762-1-lee.jones@linaro.org> MIME-Version: 1.0 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: David Airlie , Roland Scheidegger , linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, VMware Graphics Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" Fixes the following W=1 kernel build warning(s): drivers/gpu/drm/vmwgfx/vmwgfx_bo.c:142: warning: Excess function parameter 'pin' description in 'vmw_bo_pin_in_vram_or_gmr' drivers/gpu/drm/vmwgfx/vmwgfx_bo.c:647: warning: Function parameter or member 'p_base' not described in 'vmw_user_bo_alloc' Cc: VMware Graphics Cc: Roland Scheidegger Cc: David Airlie Cc: Daniel Vetter Cc: dri-devel@lists.freedesktop.org Signed-off-by: Lee Jones Signed-off-by: Zack Rusin Link: https://patchwork.freedesktop.org/patch/msgid/20210115181313.3431493-28-lee.jones@linaro.org --- drivers/gpu/drm/vmwgfx/vmwgfx_bo.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.27.0 _______________________________________________ dri-devel mailing list dri-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/dri-devel diff --git a/drivers/gpu/drm/vmwgfx/vmwgfx_bo.c b/drivers/gpu/drm/vmwgfx/vmwgfx_bo.c index 63dbc44eebe0b..ab0844b47d4d7 100644 --- a/drivers/gpu/drm/vmwgfx/vmwgfx_bo.c +++ b/drivers/gpu/drm/vmwgfx/vmwgfx_bo.c @@ -131,7 +131,6 @@ int vmw_bo_pin_in_placement(struct vmw_private *dev_priv, * * @dev_priv: Driver private. * @buf: DMA buffer to move. - * @pin: Pin buffer if true. * @interruptible: Use interruptible wait. * Return: Zero on success, Negative error code on failure. In particular * -ERESTARTSYS if interrupted by a signal @@ -635,6 +634,7 @@ static void vmw_user_bo_ref_obj_release(struct ttm_base_object *base, * @handle: Pointer to where the handle value should be assigned. * @p_vbo: Pointer to where the refcounted struct vmw_buffer_object pointer * should be assigned. + * @p_base: The TTM base object pointer about to be allocated. * Return: Zero on success, negative error code on error. */ int vmw_user_bo_alloc(struct vmw_private *dev_priv, From patchwork Wed Mar 3 13:43:02 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 392098 Delivered-To: patch@linaro.org Received: by 2002:a02:290e:0:0:0:0:0 with SMTP id p14csp5133525jap; Wed, 3 Mar 2021 05:44:46 -0800 (PST) X-Google-Smtp-Source: ABdhPJwo2oDiKZMx0XmLq2TbTpH2Y0tXBnWRAAD2R/TshMcOCsxvQQxjbhzEDmjxZ8OsaQljahV2 X-Received: by 2002:a17:90b:1b47:: with SMTP id nv7mr9619359pjb.235.1614779085963; Wed, 03 Mar 2021 05:44:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614779085; cv=none; d=google.com; s=arc-20160816; b=JntGduTaWkqT3butu6PYJt25Fvjw2a5OKnYhIN/okNMjMJuBrVeeEKB7iUf5bTWNF2 vcMsGE0qA7WPAY4AU8rKYkU5y4Or7SWiA6g5Wf8gwHos2q/LEzg739EgyVjScy4L2nLs k0L5JbPJtWT8yS7GpkcjtPDDau6Qf0u5D7y1jpaZasJ+UWyYKkjQYJzbg6t4qQblQ4Il p11ndXNqnz5jg0BbUI4gm86MtnFC+7girvi9NMt+WCbdsq8j6fVOtEdt0c1v6qfPQQzk 5iY5Ik5d9+8jggFYOSflb2Gck4VPinlYCqIhcd7Z4vOHXop8KX+6kXFh3kKgPsq6n6ca yxmw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:cc:list-subscribe :list-help:list-post:list-archive:list-unsubscribe:list-id :precedence:mime-version:references:in-reply-to:message-id:date :subject:to:from:dkim-signature:delivered-to; bh=2vFQ/6f5qVt28R65PcIp09+SQmtJqhi7czjMJ/VzLSQ=; b=v8Qrf9O9hl95OQ95KFZjTgsfBroxY3jRv13LIMlsDDAASejCBz0MfuAbgW9Cbi4hyK WxpeQg9+bbE1Qt6fwpkNwSdWRjw92w/Ti/k+pY8u8ZMMYAzHwNlvgbl9SddEU7AnldBN +bbVc+1atT36fiJdfOx2kR954mLw6meCMdNcF37sUV3mto4SgsRa1oi+hwZ4zCFNGF7i mFxUhItEmb2NGU4T7bU2fql3T+PGJowJZsZ8wti7p/seGDWKu10N4SmtcxgyGmZNqu9x svitSrIn2ko7gMUMiImuyV0wb51uUXWpoBKCZOpMSAxIW7ZwFa9m1q9ikmWNw/7rADFm d5fQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=VeTo2b9j; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 2610:10:20:722:a800:ff:fe36:1795 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from gabe.freedesktop.org (gabe.freedesktop.org. [2610:10:20:722:a800:ff:fe36:1795]) by mx.google.com with ESMTPS id z20si25461552pfa.231.2021.03.03.05.44.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Mar 2021 05:44:45 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 2610:10:20:722:a800:ff:fe36:1795 as permitted sender) client-ip=2610:10:20:722:a800:ff:fe36:1795; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=VeTo2b9j; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 2610:10:20:722:a800:ff:fe36:1795 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id A71A56E96F; Wed, 3 Mar 2021 13:44:16 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wr1-x429.google.com (mail-wr1-x429.google.com [IPv6:2a00:1450:4864:20::429]) by gabe.freedesktop.org (Postfix) with ESMTPS id B810F6E906 for ; Wed, 3 Mar 2021 13:44:12 +0000 (UTC) Received: by mail-wr1-x429.google.com with SMTP id d15so8499518wrv.5 for ; Wed, 03 Mar 2021 05:44:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=9r1GQwee06HjD/ZuKzpJIH+jsbPeQe25QbvmJPlwsC8=; b=VeTo2b9j29UjrFvzdkFremTLs30Tgspf+4bLewOxS6oxCoibyoixpRWImY4tDNfArA mXFJYt5mb1NbqG4WWSiTZlJeNQpLg13sA/LboTN7FlfiP2c3CSh2Di+mLEjuF75LfgQc Igq8JaCD3A+j6emMVuTYJnRlsrE3gKaWU5orKL0Bpms/5BOWs+x7+/pGrR5s1N9DomxL tSw0RrAKY8y6agcfGqRqwDnNDn50hjb0HwymvixPEZmaY8u1WE8tuuhpLlRIGaebK7HX M5Ig1I5QsPlSTMQFlaqGB16FS2QX46ORiLdi6DgyH0Fv/CG5FVCkNen9faffd4DD4Pwk /JgA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=9r1GQwee06HjD/ZuKzpJIH+jsbPeQe25QbvmJPlwsC8=; b=EdnPaLMgGMwVsY5nb3VlPcpDho4U1EbO+I9Cwo+xzcIduUxfju18fIRDtWP1r8xyQR dYT9UcMtKU/lCcTbK+mRcy9hsHvGMLrgTl+4MSTQdd8mRRgvUucfXe+Z6SZ6NUp6FdW7 RXxCfam/IFIlODL8rpGYeniwRX8EeIzuWjsQXvP9Eq/r4Nie1otlyMpVT+C5Kkpss5E0 YbrwvFyj8GNnoVVY4k+/mUxpyA1YphNdBswAW7zAXEkbtApdjD24Ts5Pleq5wcj0J1av sKpmfie4EktQ2+2j2wOifLHgrqA/Hska5v7eX/mZN8/os6oMqrEpDkOQKH5dh6cgwhOx TjUw== X-Gm-Message-State: AOAM530RiS8ixm1CTWXnkmnOR1x9Ml62CAm9fkLjx4a7LINzGTGoDloB +lpjcAx29iLmuiCDbAhbYaXdMw== X-Received: by 2002:a5d:6042:: with SMTP id j2mr28095491wrt.336.1614779051401; Wed, 03 Mar 2021 05:44:11 -0800 (PST) Received: from dell.default ([91.110.221.155]) by smtp.gmail.com with ESMTPSA id w18sm6109524wrr.7.2021.03.03.05.44.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Mar 2021 05:44:10 -0800 (PST) From: Lee Jones To: lee.jones@linaro.org Subject: [PATCH 36/53] drm/vmwgfx/vmwgfx_context: Demote kernel-doc abuses Date: Wed, 3 Mar 2021 13:43:02 +0000 Message-Id: <20210303134319.3160762-37-lee.jones@linaro.org> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20210303134319.3160762-1-lee.jones@linaro.org> References: <20210303134319.3160762-1-lee.jones@linaro.org> MIME-Version: 1.0 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: David Airlie , Roland Scheidegger , linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, VMware Graphics Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" Fixes the following W=1 kernel build warning(s): drivers/gpu/drm/vmwgfx/vmwgfx_context.c:121: warning: Function parameter or member 'dev_priv' not described in 'vmw_context_cotables_unref' drivers/gpu/drm/vmwgfx/vmwgfx_context.c:121: warning: Function parameter or member 'uctx' not described in 'vmw_context_cotables_unref' drivers/gpu/drm/vmwgfx/vmwgfx_context.c:681: warning: Function parameter or member 'base' not described in 'vmw_user_context_base_to_res' drivers/gpu/drm/vmwgfx/vmwgfx_context.c:707: warning: Function parameter or member 'p_base' not described in 'vmw_user_context_base_release' Cc: VMware Graphics Cc: Roland Scheidegger Cc: David Airlie Cc: Daniel Vetter Cc: dri-devel@lists.freedesktop.org Signed-off-by: Lee Jones Signed-off-by: Zack Rusin Link: https://patchwork.freedesktop.org/patch/msgid/20210115181313.3431493-29-lee.jones@linaro.org --- drivers/gpu/drm/vmwgfx/vmwgfx_context.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) -- 2.27.0 _______________________________________________ dri-devel mailing list dri-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/dri-devel diff --git a/drivers/gpu/drm/vmwgfx/vmwgfx_context.c b/drivers/gpu/drm/vmwgfx/vmwgfx_context.c index 6f4d0da11ad87..4a5a3e246216d 100644 --- a/drivers/gpu/drm/vmwgfx/vmwgfx_context.c +++ b/drivers/gpu/drm/vmwgfx/vmwgfx_context.c @@ -112,7 +112,7 @@ static const struct vmw_res_func vmw_dx_context_func = { .unbind = vmw_dx_context_unbind }; -/** +/* * Context management: */ @@ -672,7 +672,7 @@ static int vmw_dx_context_destroy(struct vmw_resource *res) return 0; } -/** +/* * User-space context management: */ @@ -698,7 +698,7 @@ static void vmw_user_context_free(struct vmw_resource *res) vmw_user_context_size); } -/** +/* * This function is called when user space has no more references on the * base object. It releases the base-object's reference on the resource object. */ From patchwork Wed Mar 3 13:43:03 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 392097 Delivered-To: patch@linaro.org Received: by 2002:a02:290e:0:0:0:0:0 with SMTP id p14csp5133510jap; Wed, 3 Mar 2021 05:44:44 -0800 (PST) X-Google-Smtp-Source: ABdhPJyI0+MrD4T1n1uNzd6/ViJwQOGEDlUufb82aFOVqNwbS38Zpb/7VWAK8+N2kE78nW6Daipf X-Received: by 2002:a17:902:ea09:b029:e3:a720:b83 with SMTP id s9-20020a170902ea09b02900e3a7200b83mr25405300plg.51.1614779084292; Wed, 03 Mar 2021 05:44:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614779084; cv=none; d=google.com; s=arc-20160816; b=JyaqpHOmvc8ay2RHH6CHAjyzhyjRQ3fmUL3av3m6khwIf9oJeNN2hYqKKf+Cm4DQ+Z faK56CdMHDFIdx5d8Q8hTzqjzQ5dzrEZFAHcaLmGWPT+Qc5UyTMwwsB5PWL+zXPB9w53 YfhUyvPzssvpMmfSO8o9TgfoKu9ei9pKq00OIM7aUJVFaaYiqowMtiyiLSrJhVy39ub6 AdxD6qlfo97mn4gRUvY5wKxkhGeIyFP22vgKjGpfI2NoNxPGHhzt0jIH0vUE5ndenqIp TZJk5dz+VSN8nxi2uo3axF2pQAF4vKzPyyFq60iW0/TiKtR6CoPL3Ujv2WkHy0gta66G /+WQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:cc:list-subscribe :list-help:list-post:list-archive:list-unsubscribe:list-id :precedence:mime-version:references:in-reply-to:message-id:date :subject:to:from:dkim-signature:delivered-to; bh=T9jxxn09rSTh4f2dtcSiHJX3evrLxfSeomQpvUUmIiQ=; b=aJH0Bh9thkkh9AK6xUZGWIFpJAjzLZbjbkpqeHCQH9J68IN73dINU7AQeLpkNy5zgK R+e+L5wPqfjcGGbynL/1Shrzy/WAk3VfRLHM2ygeWYs/1OYHL1QBtRCJIazFmSfAoIj4 vRtghAOJC6yaUHwqna90H/WTLKd3U1qJwk8HwALarDq611+enrBBgU/75hkfzLMyWmcg VzhuMkC9uw1cAVv1n/W6ri/pjbXgZ3qGcAV7mpN5DHOhtbKRnMr2pxpuLnBKepB0p9jR Gcjrvp1HyR42asm7CErfaaL56AbQgGfZQT5vrIQxTOjcu3VO1Tzs0c6gHLTFsIMR3NCm cPYg== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=aCSLzlZk; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from gabe.freedesktop.org (gabe.freedesktop.org. [131.252.210.177]) by mx.google.com with ESMTPS id o11si23358890pgu.347.2021.03.03.05.44.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Mar 2021 05:44:44 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) client-ip=131.252.210.177; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=aCSLzlZk; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id DF0576E932; Wed, 3 Mar 2021 13:44:15 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wr1-x430.google.com (mail-wr1-x430.google.com [IPv6:2a00:1450:4864:20::430]) by gabe.freedesktop.org (Postfix) with ESMTPS id B53A66E932 for ; Wed, 3 Mar 2021 13:44:13 +0000 (UTC) Received: by mail-wr1-x430.google.com with SMTP id h98so23718305wrh.11 for ; Wed, 03 Mar 2021 05:44:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=7KdaK2Zgurdc2XBJ7TzojsBHhNgJ68uvnriIvTNra9Q=; b=aCSLzlZkfC4ASi5bh4N+pN0ysuREn9w+yJ09GOBz+DLieRSdo74iSzbbgy3fv5x468 6NKu6gBGbVxUe2gIDUv3NQWEMtBgr/SZiT5Y/Ml9z5G1K3JsSUs79ZwknNMJW8yIdgOB oOPEnjC/cbq3uY+dX5yhVuYwV7GNDWBbukZkRuZmTsi1Zg/k8E/H346MduYYs3flk2n6 L47IaocbQGIF3MgSMr+ElG7ccqQ5gPi2Z/cxEYqr3tUkWjAKRz1dBKK2JPbkt8XHhLZ5 Y5dLj0/i0yyCcGJ7X6yJ0nk9N//SRSE1YeE3B41NXhNz3XzQDMAQLACMBbNG5kLY0uAd P0Uw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=7KdaK2Zgurdc2XBJ7TzojsBHhNgJ68uvnriIvTNra9Q=; b=LxFm0x5e17Rmv4od6Vki90uTadqp//06o5DnTLMEp6j+V9CqxLhIYDe0+fe29Cm0OL /iC5yO2S7qfALYK8Yl4clfFnuXwfwLYUU4+wTIL/yRsZHdjc3+C4EE33BAXodu3T+RgU AbeodYnd5Rfm+mrloGxDdRZk2uA3i5k24dLcrS5rNOHX91ebMOphgtnh3OpRloHwASNJ YLYvsVZAFKFn/XiYeK2TCTfoi7H7VGp1eKvZZeXeUY2tp5C2veWeu9sGjmadQCDsjp8J 9FKUow/fHl+tt6sxcLbajwYHs4wWVg551hLwIyV3Y6Ryyj+gorsqG9NbEapEtEG3+5z7 Te6Q== X-Gm-Message-State: AOAM5328zDMgVK76xfVig7vRR7NLjL+4TMnAQYnKicbO82QF1CXCa9jL C3WBwPn9Aa7ICU3sf/poX8AwbQ== X-Received: by 2002:a5d:4a0e:: with SMTP id m14mr27416466wrq.73.1614779052427; Wed, 03 Mar 2021 05:44:12 -0800 (PST) Received: from dell.default ([91.110.221.155]) by smtp.gmail.com with ESMTPSA id w18sm6109524wrr.7.2021.03.03.05.44.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Mar 2021 05:44:11 -0800 (PST) From: Lee Jones To: lee.jones@linaro.org Subject: [PATCH 37/53] drm/vmwgfx/vmwgfx_scrn: Demote unworthy kernel-doc headers and update others Date: Wed, 3 Mar 2021 13:43:03 +0000 Message-Id: <20210303134319.3160762-38-lee.jones@linaro.org> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20210303134319.3160762-1-lee.jones@linaro.org> References: <20210303134319.3160762-1-lee.jones@linaro.org> MIME-Version: 1.0 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: David Airlie , Roland Scheidegger , linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, VMware Graphics Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" Fixes the following W=1 kernel build warning(s): drivers/gpu/drm/vmwgfx/vmwgfx_scrn.c:90: warning: cannot understand function prototype: 'struct vmw_screen_object_unit ' drivers/gpu/drm/vmwgfx/vmwgfx_scrn.c:122: warning: Function parameter or member 'dev_priv' not described in 'vmw_sou_fifo_create' drivers/gpu/drm/vmwgfx/vmwgfx_scrn.c:122: warning: Function parameter or member 'sou' not described in 'vmw_sou_fifo_create' drivers/gpu/drm/vmwgfx/vmwgfx_scrn.c:122: warning: Function parameter or member 'x' not described in 'vmw_sou_fifo_create' drivers/gpu/drm/vmwgfx/vmwgfx_scrn.c:122: warning: Function parameter or member 'y' not described in 'vmw_sou_fifo_create' drivers/gpu/drm/vmwgfx/vmwgfx_scrn.c:122: warning: Function parameter or member 'mode' not described in 'vmw_sou_fifo_create' drivers/gpu/drm/vmwgfx/vmwgfx_scrn.c:168: warning: Function parameter or member 'dev_priv' not described in 'vmw_sou_fifo_destroy' drivers/gpu/drm/vmwgfx/vmwgfx_scrn.c:168: warning: Function parameter or member 'sou' not described in 'vmw_sou_fifo_destroy' drivers/gpu/drm/vmwgfx/vmwgfx_scrn.c:283: warning: Function parameter or member 'state' not described in 'vmw_sou_crtc_atomic_enable' drivers/gpu/drm/vmwgfx/vmwgfx_scrn.c:293: warning: Function parameter or member 'state' not described in 'vmw_sou_crtc_atomic_disable' Cc: VMware Graphics Cc: Roland Scheidegger Cc: David Airlie Cc: Daniel Vetter Cc: dri-devel@lists.freedesktop.org Signed-off-by: Lee Jones Signed-off-by: Zack Rusin Link: https://patchwork.freedesktop.org/patch/msgid/20210115181313.3431493-30-lee.jones@linaro.org --- drivers/gpu/drm/vmwgfx/vmwgfx_scrn.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) -- 2.27.0 _______________________________________________ dri-devel mailing list dri-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/dri-devel diff --git a/drivers/gpu/drm/vmwgfx/vmwgfx_scrn.c b/drivers/gpu/drm/vmwgfx/vmwgfx_scrn.c index b0db059b8cfbe..6feb61a1a3041 100644 --- a/drivers/gpu/drm/vmwgfx/vmwgfx_scrn.c +++ b/drivers/gpu/drm/vmwgfx/vmwgfx_scrn.c @@ -84,7 +84,7 @@ struct vmw_kms_sou_define_gmrfb { SVGAFifoCmdDefineGMRFB body; }; -/** +/* * Display unit using screen objects. */ struct vmw_screen_object_unit { @@ -112,7 +112,7 @@ static void vmw_sou_crtc_destroy(struct drm_crtc *crtc) vmw_sou_destroy(vmw_crtc_to_sou(crtc)); } -/** +/* * Send the fifo command to create a screen. */ static int vmw_sou_fifo_create(struct vmw_private *dev_priv, @@ -160,7 +160,7 @@ static int vmw_sou_fifo_create(struct vmw_private *dev_priv, return 0; } -/** +/* * Send the fifo command to destroy a screen. */ static int vmw_sou_fifo_destroy(struct vmw_private *dev_priv, @@ -263,7 +263,7 @@ static void vmw_sou_crtc_mode_set_nofb(struct drm_crtc *crtc) /** * vmw_sou_crtc_helper_prepare - Noop * - * @crtc: CRTC associated with the new screen + * @crtc: CRTC associated with the new screen * * Prepares the CRTC for a mode set, but we don't need to do anything here. */ @@ -275,6 +275,7 @@ static void vmw_sou_crtc_helper_prepare(struct drm_crtc *crtc) * vmw_sou_crtc_atomic_enable - Noop * * @crtc: CRTC associated with the new screen + * @state: Unused * * This is called after a mode set has been completed. */ @@ -287,6 +288,7 @@ static void vmw_sou_crtc_atomic_enable(struct drm_crtc *crtc, * vmw_sou_crtc_atomic_disable - Turns off CRTC * * @crtc: CRTC to be turned off + * @state: Unused */ static void vmw_sou_crtc_atomic_disable(struct drm_crtc *crtc, struct drm_atomic_state *state) From patchwork Wed Mar 3 13:43:04 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 392099 Delivered-To: patch@linaro.org Received: by 2002:a02:290e:0:0:0:0:0 with SMTP id p14csp5133557jap; Wed, 3 Mar 2021 05:44:47 -0800 (PST) X-Google-Smtp-Source: ABdhPJx2x7bGAZF36uDcVHyCZ+KS6T2HIew8XISmzcW/gJENQat3+BbVOYAbimt6VOzrs9/+HZ+T X-Received: by 2002:a63:6dc3:: with SMTP id i186mr15761507pgc.314.1614779087519; Wed, 03 Mar 2021 05:44:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614779087; cv=none; d=google.com; s=arc-20160816; b=nQNENfvQHd8jAwj7O19GsXx7PFA1kiyckpPqZbjPpe2NGpzVZwrhFYidK686QcgSx+ RqTgTSPZbP/7dPM/uNMm75QNtK9aUcj0juSqzzVtWvs5myezRhw8s1hQkUu9BB9JllHM HibGbmjuYLoMlme3zKGZNu5SkozUK4zpIUBbuC5mjamhznONxggeKDsfZovtSIYMrwAe jzIkqMx36AKnEVW0IUQSuTz+WbWhuzqUM2ZJpYFa07NGJ7/dWmj77RgrKi6+yfIyXhDl WGAiB4oe4tvXnIgLNb94R76Q79C9HjFreBi86mNY3Dr/LlwWwHwG5Qh49OUwcZanjt3e r8GA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:cc:list-subscribe :list-help:list-post:list-archive:list-unsubscribe:list-id :precedence:mime-version:references:in-reply-to:message-id:date :subject:to:from:dkim-signature:delivered-to; bh=vdhonV5aiopANGYxW8x4C7SLgRVnxOQcupb1kAGA0LY=; b=kTRVQ8/yTFY+OG509y8b7ld7OG8TlSKnLDyXiOzV/44e/dyLmdEYFWv0vzmzGZbL9K KXKISebfDrcAKjS94iM1OdfF0m/hRLqdWT646rIHdTICI26UEDnJjylD9YczE9q/pnoM KXJOt32slR+eYO8HvmLTRdyrhcLRPJuMvmtS5B5ZGzISUHiIRE2vFetu+qavQawmiuGD eLxH2MP1tNvLRPr9BBy8HlQWP0SsNV5CmdR3f6TqkJlsgVcvJX60KEDhx6yLo3p+W//k YURmGFDKNMhBAJleN1ZNlKQZeWSp2OYm2St2ZEG7GFL7UG4JbEoX5+rDNUnm4+P6OE62 o5FQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=VYP0HDoL; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 2610:10:20:722:a800:ff:fe36:1795 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from gabe.freedesktop.org (gabe.freedesktop.org. [2610:10:20:722:a800:ff:fe36:1795]) by mx.google.com with ESMTPS id j1si24779744pfj.137.2021.03.03.05.44.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Mar 2021 05:44:47 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 2610:10:20:722:a800:ff:fe36:1795 as permitted sender) client-ip=2610:10:20:722:a800:ff:fe36:1795; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=VYP0HDoL; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 2610:10:20:722:a800:ff:fe36:1795 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 05DEC6E906; Wed, 3 Mar 2021 13:44:16 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wm1-x329.google.com (mail-wm1-x329.google.com [IPv6:2a00:1450:4864:20::329]) by gabe.freedesktop.org (Postfix) with ESMTPS id B86EE6E906 for ; Wed, 3 Mar 2021 13:44:14 +0000 (UTC) Received: by mail-wm1-x329.google.com with SMTP id l22so5231194wme.1 for ; Wed, 03 Mar 2021 05:44:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=skXCklvbLkMdUopRkkr7nz9lm78nkYKqb32FzAH7TqM=; b=VYP0HDoLjO3oZLwwUXl4OtppTMndAhsqKdA/I28iUr+7kmM0FBHDRY5Nfgy6V3kYLP B1AF5yzPzAWn62i1s+UOzUSBjCqjeaZ+qInKZgPpSux/544nyXDvOaKXw/351XXI4qN3 I0nUMq3JAkLpcUyCLUDbBpUs22MZnBfAqHUR6LNsWzPS9LZxtyuhzbEjiFqUaWdGJuhn TbLoxbcqysuDGfNlU1UvZVD3Ds0SurcGNzsA3R9vXsxlGtkccB6rgumvrSilo/mKlP8e BZ05EefhF15519Ozh159XAmZ8TrhLURNqOYKcsbSTI+swv1AXJhiliTHHjNpy8v4pRkZ 19iA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=skXCklvbLkMdUopRkkr7nz9lm78nkYKqb32FzAH7TqM=; b=RawbmNtWMnz6q9f+f9vKqdPHKU4XQZPUUvtDWn8yvb8+tda/djqkDXrckbIX4w3wVh e5U5qV0/ahU809j7IpMKAxGyOXy+yS5oO+Qo5YX3GFg58z/xjiqhlOhLhEZ81KRLYejU 3CPnvk5bUHFv1t+oNTEVhck9AOt4pIumm37A/bVv92jko4KfDTj/pmBt9TFKWJivG45C xAuK6g2poVR9lGZ9nTzsUHflpbrwzSZUXPcOYf4Adf9B5j2jl/+IgQejLywun5yH4lBI kaubouYv2Wc6zQXlyUL0H4uTkiBd+exL1dhJFmuEcTUKcPmmoH2ayNfQneZNTTQMhlj5 /pKQ== X-Gm-Message-State: AOAM533vqXijx+qz0kCjP3C6DUaDU7BquWAdybAsM6AlXU7HOkdnzdkP tW0rGOYvlxdf4/P4cYj4LrG6Bg== X-Received: by 2002:a1c:f30a:: with SMTP id q10mr9541891wmq.159.1614779053381; Wed, 03 Mar 2021 05:44:13 -0800 (PST) Received: from dell.default ([91.110.221.155]) by smtp.gmail.com with ESMTPSA id w18sm6109524wrr.7.2021.03.03.05.44.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Mar 2021 05:44:12 -0800 (PST) From: Lee Jones To: lee.jones@linaro.org Subject: [PATCH 38/53] drm/vmwgfx/vmwgfx_surface: Fix some kernel-doc related issues Date: Wed, 3 Mar 2021 13:43:04 +0000 Message-Id: <20210303134319.3160762-39-lee.jones@linaro.org> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20210303134319.3160762-1-lee.jones@linaro.org> References: <20210303134319.3160762-1-lee.jones@linaro.org> MIME-Version: 1.0 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: David Airlie , Roland Scheidegger , linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, VMware Graphics Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" Fixes the following W=1 kernel build warning(s): drivers/gpu/drm/vmwgfx/vmwgfx_surface.c:55: warning: Function parameter or member 'prime' not described in 'vmw_user_surface' drivers/gpu/drm/vmwgfx/vmwgfx_surface.c:55: warning: Function parameter or member 'backup_base' not described in 'vmw_user_surface' drivers/gpu/drm/vmwgfx/vmwgfx_surface.c:78: warning: cannot understand function prototype: 'struct vmw_surface_dirty ' drivers/gpu/drm/vmwgfx/vmwgfx_surface.c:173: warning: Function parameter or member 'header' not described in 'vmw_surface_dma' drivers/gpu/drm/vmwgfx/vmwgfx_surface.c:173: warning: Function parameter or member 'body' not described in 'vmw_surface_dma' drivers/gpu/drm/vmwgfx/vmwgfx_surface.c:173: warning: Function parameter or member 'cb' not described in 'vmw_surface_dma' drivers/gpu/drm/vmwgfx/vmwgfx_surface.c:173: warning: Function parameter or member 'suffix' not described in 'vmw_surface_dma' drivers/gpu/drm/vmwgfx/vmwgfx_surface.c:181: warning: Function parameter or member 'header' not described in 'vmw_surface_define' drivers/gpu/drm/vmwgfx/vmwgfx_surface.c:181: warning: Function parameter or member 'body' not described in 'vmw_surface_define' drivers/gpu/drm/vmwgfx/vmwgfx_surface.c:189: warning: Function parameter or member 'header' not described in 'vmw_surface_destroy' drivers/gpu/drm/vmwgfx/vmwgfx_surface.c:189: warning: Function parameter or member 'body' not described in 'vmw_surface_destroy' drivers/gpu/drm/vmwgfx/vmwgfx_surface.c:555: warning: Function parameter or member 'readback' not described in 'vmw_legacy_srf_unbind' drivers/gpu/drm/vmwgfx/vmwgfx_surface.c:1067: warning: Function parameter or member 'res' not described in 'vmw_gb_surface_create' drivers/gpu/drm/vmwgfx/vmwgfx_surface.c:1067: warning: Excess function parameter 'srf' description in 'vmw_gb_surface_create' drivers/gpu/drm/vmwgfx/vmwgfx_surface.c:1067: warning: Excess function parameter 'cmd_space' description in 'vmw_gb_surface_create' Cc: VMware Graphics Cc: Roland Scheidegger Cc: David Airlie Cc: Daniel Vetter Cc: dri-devel@lists.freedesktop.org Signed-off-by: Lee Jones Signed-off-by: Zack Rusin Link: https://patchwork.freedesktop.org/patch/msgid/20210115181313.3431493-34-lee.jones@linaro.org --- drivers/gpu/drm/vmwgfx/vmwgfx_surface.c | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) -- 2.27.0 _______________________________________________ dri-devel mailing list dri-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/dri-devel diff --git a/drivers/gpu/drm/vmwgfx/vmwgfx_surface.c b/drivers/gpu/drm/vmwgfx/vmwgfx_surface.c index f6cab77075a04..c3e55c1376eb8 100644 --- a/drivers/gpu/drm/vmwgfx/vmwgfx_surface.c +++ b/drivers/gpu/drm/vmwgfx/vmwgfx_surface.c @@ -41,10 +41,12 @@ /** * struct vmw_user_surface - User-space visible surface resource * + * @prime: The TTM prime object. * @base: The TTM base object handling user-space visibility. * @srf: The surface metadata. * @size: TTM accounting size for the surface. - * @master: master of the creating client. Used for security check. + * @master: Master of the creating client. Used for security check. + * @backup_base: The TTM base object of the backup buffer. */ struct vmw_user_surface { struct ttm_prime_object prime; @@ -69,7 +71,7 @@ struct vmw_surface_offset { }; /** - * vmw_surface_dirty - Surface dirty-tracker + * struct vmw_surface_dirty - Surface dirty-tracker * @cache: Cached layout information of the surface. * @size: Accounting size for the struct vmw_surface_dirty. * @num_subres: Number of subresources. @@ -162,7 +164,7 @@ static const struct vmw_res_func vmw_gb_surface_func = { .clean = vmw_surface_clean, }; -/** +/* * struct vmw_surface_dma - SVGA3D DMA command */ struct vmw_surface_dma { @@ -172,7 +174,7 @@ struct vmw_surface_dma { SVGA3dCmdSurfaceDMASuffix suffix; }; -/** +/* * struct vmw_surface_define - SVGA3D Surface Define command */ struct vmw_surface_define { @@ -180,7 +182,7 @@ struct vmw_surface_define { SVGA3dCmdDefineSurface body; }; -/** +/* * struct vmw_surface_destroy - SVGA3D Surface Destroy command */ struct vmw_surface_destroy { @@ -544,6 +546,7 @@ static int vmw_legacy_srf_bind(struct vmw_resource *res, * * @res: Pointer to a struct vmw_res embedded in a struct * vmw_surface. + * @readback: Readback - only true if dirty * @val_buf: Pointer to a struct ttm_validate_buffer containing * information about the backup buffer. * @@ -1060,8 +1063,8 @@ int vmw_surface_reference_ioctl(struct drm_device *dev, void *data, /** * vmw_surface_define_encode - Encode a surface_define command. * - * @srf: Pointer to a struct vmw_surface object. - * @cmd_space: Pointer to memory area in which the commands should be encoded. + * @res: Pointer to a struct vmw_resource embedded in a struct + * vmw_surface. */ static int vmw_gb_surface_create(struct vmw_resource *res) { From patchwork Wed Mar 3 13:43:05 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 392100 Delivered-To: patch@linaro.org Received: by 2002:a02:290e:0:0:0:0:0 with SMTP id p14csp5133575jap; Wed, 3 Mar 2021 05:44:49 -0800 (PST) X-Google-Smtp-Source: ABdhPJwHTaG6eZXtCn/w72JgceNTwN5aWgkkw/HBFT/dH50tdF4n+8L4nDD88+Y3IpapicxmLZz6 X-Received: by 2002:a63:1a1d:: with SMTP id a29mr24006304pga.236.1614779089334; Wed, 03 Mar 2021 05:44:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614779089; cv=none; d=google.com; s=arc-20160816; b=rUqcg0yjtUBneHEglhn/R0Bo0jfUICI3L7qK9JsIm+SmeQOfbBFEmeLnlMEcgGiMca rl69j5QBwuI9RpjE9BFzql0zClaWPf2qXwItZl4RRrEcu2fdRZiKwaEbm5TIP1dE9UdX 3K0nxFRqzqz62NnLch0UyqVZ9PjoDbdn3MsmGDq7ohOj6+hlUBvIfrlqP/wTweqLfNYX TgF8mEIeYuxUxYi6eidqd8dqZh3Tboiqn8EXCHQ7YHbWazmTxLE8Vb13lplVxdVX/XG9 HyO7MZF0SEMmTjQyQ7K4WN7kVLtl1YXljjuUbdJpYV7r0s42w5i8WAmUw1e4icpy/Xyl 5UKw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:cc:list-subscribe :list-help:list-post:list-archive:list-unsubscribe:list-id :precedence:mime-version:references:in-reply-to:message-id:date :subject:to:from:dkim-signature:delivered-to; bh=MkADKNG2UGgC+faIrs8CXcFsXvZyK0MgNBHdZf+rDjA=; b=kR1H4rJ1GwVO3XSmvQh9TmPeNcSBDNwu69/GG+2qkDIC09Wy9+VS+wEiPb08YSlxxK iSVtu+PNY52mlKrQEhLED8aw4Mr9uD8dQSdY3rRbr73yL8+qjii0HRTD9UvzZcJwQjkS ijEgy9brYis+jLM0LZx0O6tmY4OgqapHhw0vXxtqwWYytMzcVTT6F5FEzBwDRGqugEXX Q+xpXi+fPLbjdEGSBHeaBRCabq38s1uptnmZoUqn1FAR7WUtZmyVpSCaLK3O6yf552jM lSN75QnwEXWs7ExLAhaXDm0Xz77oxLkkaOhFB8LxMSDGi24Oa4BiG8Fp61VekzjcjhNx Z4Cg== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=q18eepXe; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 2610:10:20:722:a800:ff:fe36:1795 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from gabe.freedesktop.org (gabe.freedesktop.org. [2610:10:20:722:a800:ff:fe36:1795]) by mx.google.com with ESMTPS id q15si24739404pfn.180.2021.03.03.05.44.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Mar 2021 05:44:49 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 2610:10:20:722:a800:ff:fe36:1795 as permitted sender) client-ip=2610:10:20:722:a800:ff:fe36:1795; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=q18eepXe; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 2610:10:20:722:a800:ff:fe36:1795 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 8D15A6E976; Wed, 3 Mar 2021 13:44:17 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wr1-x42f.google.com (mail-wr1-x42f.google.com [IPv6:2a00:1450:4864:20::42f]) by gabe.freedesktop.org (Postfix) with ESMTPS id E240A6E947 for ; Wed, 3 Mar 2021 13:44:15 +0000 (UTC) Received: by mail-wr1-x42f.google.com with SMTP id u14so23750259wri.3 for ; Wed, 03 Mar 2021 05:44:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=oU+Wuk0/TjV8ruLVEbq6ixpjRneTtMF4qHY1z5Ned04=; b=q18eepXedncQkYrl7klqtSmyDsv1da3LROy3QdvrfbU4mhiYOow55NlC78cGMJgA4C +GqgDuboY2FgIAY9TSeBbzjPOkPhkKsh7+7UNDRyjUdgXfmDz9dnTN5wQfjwzcnDO+IP qEZJCDueuZ/8dUhqZuD3xLnZu0EtraaFy4HzVGdD+QsUgs89Lf8rJMxMG5Gt/5CSBmxv jhUsJhSCPxYAjbSqDfO8IaS2rxC5grdYGZUqLkV0/R7Th3+rmSYHFfLutzrfLU4Xclp+ 5j2th56OokJ5gqK0uC3EidXW/5JfJ+FoK7bL268Je2dRQZy9qy0mxxOCaJHt4o0sRu1r eU0A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=oU+Wuk0/TjV8ruLVEbq6ixpjRneTtMF4qHY1z5Ned04=; b=FMBxlMs5RxYqPiHjJeK7RwXJGSSWxpSpFrL/mNpx9ha4Uk5dSoBhd+GVE0ypsaI2jQ lzwve4Wl5uBIN1wsNxaHqRZaOoriM1i91SdynwQzsSGww1t8DFpD1cLjPyauqpJdSOX4 +CAZbXM3AT94lelsWWzfK7prmBBYQYfE/Wu8JR26m4oXoWBdGqkinBXqJhBL8vzdPc53 5ReEdNC3c8CCmhreg3fTSsRH3woJiUOci3Bp3dcFLIp3deRfadQrlNcxZ0WDRCK2Luvn efyIqiMTfSPCB2MDChvCp0YuSQkx3f5t3p0lW2gWXZCgIxrLM6cNvIchcXCtb8jxCRuj v0sA== X-Gm-Message-State: AOAM5321DQW8GNuTLW9oqiTsM4XgAvO8O/v8WdqGWU9wj8jFa6WuPpAl k4wD9fuXXmD7lB36ijbPuYjIQGMOn1gggw== X-Received: by 2002:adf:fecc:: with SMTP id q12mr27041197wrs.317.1614779054571; Wed, 03 Mar 2021 05:44:14 -0800 (PST) Received: from dell.default ([91.110.221.155]) by smtp.gmail.com with ESMTPSA id w18sm6109524wrr.7.2021.03.03.05.44.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Mar 2021 05:44:14 -0800 (PST) From: Lee Jones To: lee.jones@linaro.org Subject: [PATCH 39/53] drm/vmwgfx/vmwgfx_cmdbuf_res: Rename param description and remove another Date: Wed, 3 Mar 2021 13:43:05 +0000 Message-Id: <20210303134319.3160762-40-lee.jones@linaro.org> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20210303134319.3160762-1-lee.jones@linaro.org> References: <20210303134319.3160762-1-lee.jones@linaro.org> MIME-Version: 1.0 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: David Airlie , Roland Scheidegger , linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, VMware Graphics Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" Also fix a small formatting issue. Fixes the following W=1 kernel build warning(s): drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf_res.c:83: warning: Function parameter or member 'res_type' not described in 'vmw_cmdbuf_res_lookup' drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf_res.c:83: warning: Excess function parameter 'resource_type' description in 'vmw_cmdbuf_res_lookup' drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf_res.c:161: warning: Excess function parameter 'man' description in 'vmw_cmdbuf_res_revert' drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf_res.c:330: warning: Cannot understand * Cc: VMware Graphics Cc: Roland Scheidegger Cc: David Airlie Cc: Daniel Vetter Cc: dri-devel@lists.freedesktop.org Signed-off-by: Lee Jones Signed-off-by: Zack Rusin Link: https://patchwork.freedesktop.org/patch/msgid/20210115181313.3431493-36-lee.jones@linaro.org --- drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf_res.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) -- 2.27.0 _______________________________________________ dri-devel mailing list dri-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/dri-devel diff --git a/drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf_res.c b/drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf_res.c index 44d858ce4ce7f..92509fbf2fd1d 100644 --- a/drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf_res.c +++ b/drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf_res.c @@ -69,7 +69,7 @@ struct vmw_cmdbuf_res_manager { * vmw_cmdbuf_res_lookup - Look up a command buffer resource * * @man: Pointer to the command buffer resource manager - * @resource_type: The resource type, that combined with the user key + * @res_type: The resource type, that combined with the user key * identifies the resource. * @user_key: The user key. * @@ -148,7 +148,6 @@ void vmw_cmdbuf_res_commit(struct list_head *list) /** * vmw_cmdbuf_res_revert - Revert a list of command buffer resource actions * - * @man: Pointer to the command buffer resource manager * @list: Caller's list of command buffer resource action * * This function reverts a list of command buffer resource @@ -327,7 +326,6 @@ void vmw_cmdbuf_res_man_destroy(struct vmw_cmdbuf_res_manager *man) } /** - * * vmw_cmdbuf_res_man_size - Return the size of a command buffer managed * resource manager * From patchwork Wed Mar 3 13:43:06 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 392102 Delivered-To: patch@linaro.org Received: by 2002:a02:290e:0:0:0:0:0 with SMTP id p14csp5133613jap; Wed, 3 Mar 2021 05:44:52 -0800 (PST) X-Google-Smtp-Source: ABdhPJw0X6YBYHSwU2AXP2Ewf8+odDvmN3EHFUkbz+IJTMfOgpTaa30O/K7k0CrToECnoFomsoMs X-Received: by 2002:a63:5b57:: with SMTP id l23mr5181237pgm.445.1614779092235; Wed, 03 Mar 2021 05:44:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614779092; cv=none; d=google.com; s=arc-20160816; b=IHahwls3cg3KCMXCJZY9b3lwjrArcSia2kt5NiEsHq2TMttIzuvIqVV1b8nEYYB6vJ cSi6uBrddEJGp2yPqZeffAQtSpyVFY6DLdgJLTX6LhqB7AciH9J+ncYDWdnkOYI1flhw i4rO4zD0ayKCTySbxaZADm79DnJDPJXgMwBsCEn+kHawvzgnS9dKA5VT2UYoKpFKio89 IKM/yxSRXfzNYuavbVvFrF5fhGuezGXD9j6pxR/CqxNSHrqDCGYGH2/AQPOaVjQAocXD Es8+QBXHbVeJnB64Go9cNIai8WrK2lX2/xdcDn04UNBRJesQVepOVMY0gLau3bX/opZ8 uQow== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:cc:list-subscribe :list-help:list-post:list-archive:list-unsubscribe:list-id :precedence:mime-version:references:in-reply-to:message-id:date :subject:to:from:dkim-signature:delivered-to; bh=PWPCUEbUG5UlKAiKWgwfdDce0Fc9HDoMj4tlpY7tA0A=; b=iE6eW42bDCWZBRHHlpVQW4zx4t6QdStnquZVdcZmpbgpck0DvQ4px5gWMsbeY9AOnG chX1hZi9VrtaudPvs9yzdjcxLtDUO2ZgJUb639Bbmuz42XOdOY5+Sqow38P88VP737ik C6rZ3OJO8gitt7U8h3LuJtJ+hBbcHaK/vERu2lQi5FDM4JJrT4tqxYFDzR/Hkphp8KeH vXRiAqzuwmDomwjyqTvRob11twvEp2BJr9iXqLr0zJsC6gxZQtZ9HMELdwlCCQsYIq6p 0HaPEH6Jv08ixizP4KpwCkB/uMaDjgfGDdel5Ue4s1df43PEBYZMKFg1Y1Oknk1vfdA1 fa1g== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=ZxPSjAYB; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 2610:10:20:722:a800:ff:fe36:1795 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from gabe.freedesktop.org (gabe.freedesktop.org. [2610:10:20:722:a800:ff:fe36:1795]) by mx.google.com with ESMTPS id j4si2268807plx.315.2021.03.03.05.44.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Mar 2021 05:44:52 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 2610:10:20:722:a800:ff:fe36:1795 as permitted sender) client-ip=2610:10:20:722:a800:ff:fe36:1795; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=ZxPSjAYB; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 2610:10:20:722:a800:ff:fe36:1795 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 143976E958; Wed, 3 Mar 2021 13:44:21 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wr1-x432.google.com (mail-wr1-x432.google.com [IPv6:2a00:1450:4864:20::432]) by gabe.freedesktop.org (Postfix) with ESMTPS id 37E4B6E975 for ; Wed, 3 Mar 2021 13:44:17 +0000 (UTC) Received: by mail-wr1-x432.google.com with SMTP id u14so23750326wri.3 for ; Wed, 03 Mar 2021 05:44:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=N+MStikPfDla/YrgFsim+wcVpR21mbPxef0tFFhFog8=; b=ZxPSjAYBeY6Ew+0mFhPGBPYY8Lyk40dtOffmYtbori5yFJdKNqaMJMJ4bPkHDjQOR2 SiGlbR9HHyRVwl++Vt8ramhkvCPBZ4SM3jZl9MH6WQV+SQrw/OsXzrJh90N8kfG6oSc0 GtxuD7iALslsZBmuYINQ3CWxJ5jklICLZS8AdjWjmA95LTw3SAi8MxssOdHSPDoGwmv3 Q9CLG05cLv7lPoTsXOcobB03h3+yJ1Em7U7yN3iUbcWXb8JrDgPD/KbWF4u6HSfeDBqO hLuu+f7Db0t497c+BSz1rm4+dglWkMOMoJh/lt8OQqxBgiYpj3VTmnv7eUuTE1NBuS/U Q2+g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=N+MStikPfDla/YrgFsim+wcVpR21mbPxef0tFFhFog8=; b=NRjusFboJpwzQO4wsW+nrj65XO0Dyj/Ij3aZ9ntj9EjlOTIOZ5XO+huU6JAQHH1cZz jqel3C8Htf7SatIurRKzD4yKifaTCUO3bEHr4LUac+f2Nw8AU5GnxElaiauYNvBmkNED kuxNGjxU54kJ+0uP2xwVJXGIofKUeBPXkCevMrMPNYbrslMVoTvJFTGXOeQOfdaCvBto HwyvnGo2CSVP07MhxZ3Tyve++kOarP+2NuJWHhf8McyTUJyaeCt9LYj25zQWwS61l2FX LazVbIkQjtzEWJuRMsBKuNzBfk6LbVTN+mUKurYaHOFygGAfNtiqQwNF652Z7Mvwl5mV gF2g== X-Gm-Message-State: AOAM530XcNVY4L1djsVox+TTamCmpX2c/1SsG8kMoZrNKC2DY1q252nK TlkzSR0+1Q8UwHd904XJ+LBU9w== X-Received: by 2002:adf:f2c3:: with SMTP id d3mr27872270wrp.380.1614779055888; Wed, 03 Mar 2021 05:44:15 -0800 (PST) Received: from dell.default ([91.110.221.155]) by smtp.gmail.com with ESMTPSA id w18sm6109524wrr.7.2021.03.03.05.44.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Mar 2021 05:44:15 -0800 (PST) From: Lee Jones To: lee.jones@linaro.org Subject: [PATCH 40/53] drm/vmwgfx/vmwgfx_shader: Demote kernel-doc abuses and fix-up worthy headers Date: Wed, 3 Mar 2021 13:43:06 +0000 Message-Id: <20210303134319.3160762-41-lee.jones@linaro.org> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20210303134319.3160762-1-lee.jones@linaro.org> References: <20210303134319.3160762-1-lee.jones@linaro.org> MIME-Version: 1.0 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: David Airlie , Roland Scheidegger , linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, VMware Graphics Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" Fixes the following W=1 kernel build warning(s): drivers/gpu/drm/vmwgfx/vmwgfx_shader.c:134: warning: Function parameter or member 'res' not described in 'vmw_res_to_shader' drivers/gpu/drm/vmwgfx/vmwgfx_shader.c:663: warning: Function parameter or member 'base' not described in 'vmw_user_shader_base_to_res' drivers/gpu/drm/vmwgfx/vmwgfx_shader.c:695: warning: Function parameter or member 'p_base' not described in 'vmw_user_shader_base_release' drivers/gpu/drm/vmwgfx/vmwgfx_shader.c:965: warning: Function parameter or member 'dev_priv' not described in 'vmw_compat_shader_add' drivers/gpu/drm/vmwgfx/vmwgfx_shader.c:965: warning: Function parameter or member 'size' not described in 'vmw_compat_shader_add' drivers/gpu/drm/vmwgfx/vmwgfx_shader.c:965: warning: Excess function parameter 'tfile' description in 'vmw_compat_shader_add' Cc: VMware Graphics Cc: Roland Scheidegger Cc: David Airlie Cc: Daniel Vetter Cc: dri-devel@lists.freedesktop.org Signed-off-by: Lee Jones Signed-off-by: Zack Rusin Link: https://patchwork.freedesktop.org/patch/msgid/20210115181313.3431493-37-lee.jones@linaro.org --- drivers/gpu/drm/vmwgfx/vmwgfx_shader.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) -- 2.27.0 _______________________________________________ dri-devel mailing list dri-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/dri-devel diff --git a/drivers/gpu/drm/vmwgfx/vmwgfx_shader.c b/drivers/gpu/drm/vmwgfx/vmwgfx_shader.c index 905ae50aaa2ae..a0db065640131 100644 --- a/drivers/gpu/drm/vmwgfx/vmwgfx_shader.c +++ b/drivers/gpu/drm/vmwgfx/vmwgfx_shader.c @@ -125,7 +125,7 @@ static const struct vmw_res_func vmw_dx_shader_func = { .commit_notify = vmw_dx_shader_commit_notify, }; -/** +/* * Shader management: */ @@ -654,7 +654,7 @@ int vmw_dx_shader_add(struct vmw_cmdbuf_res_manager *man, -/** +/* * User-space shader management: */ @@ -686,7 +686,7 @@ static void vmw_shader_free(struct vmw_resource *res) vmw_shader_size); } -/** +/* * This function is called when user space has no more references on the * base object. It releases the base-object's reference on the resource object. */ @@ -945,13 +945,13 @@ int vmw_shader_remove(struct vmw_cmdbuf_res_manager *man, * vmw_compat_shader_add - Create a compat shader and stage it for addition * as a command buffer managed resource. * + * @dev_priv: Pointer to device private structure. * @man: Pointer to the compat shader manager identifying the shader namespace. * @user_key: The key that is used to identify the shader. The key is * unique to the shader type. * @bytecode: Pointer to the bytecode of the shader. * @shader_type: Shader type. - * @tfile: Pointer to a struct ttm_object_file that the guest-backed shader is - * to be created with. + * @size: Command size. * @list: Caller's list of staged command buffer resource actions. * */ From patchwork Wed Mar 3 13:43:07 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 392103 Delivered-To: patch@linaro.org Received: by 2002:a02:290e:0:0:0:0:0 with SMTP id p14csp5133641jap; Wed, 3 Mar 2021 05:44:54 -0800 (PST) X-Google-Smtp-Source: ABdhPJz5S0xMU3vZPey0KCTrSDLQq5hO7Qh/upzgYi8etzENyQQxGXOi5Gbxlkv86dpqdU7L3RE5 X-Received: by 2002:a17:902:c1c5:b029:e3:eec2:98e6 with SMTP id c5-20020a170902c1c5b02900e3eec298e6mr2781981plc.22.1614779093911; Wed, 03 Mar 2021 05:44:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614779093; cv=none; d=google.com; s=arc-20160816; b=xkJEby2yha79QV3OMNya1eX2WvlHL64L963ln9Z+8AUgjWXLVDr45RWmfB4Fphgpxx fmmHFXAvZPQuBeHWzy8hnyFaGnaW+P5/exDHvmHntsS5aYHhscT3usU/YVKg6eOBlMRN UQJkcgviIND0zQ+JRPBypZPRLl73ZwlFC2wDI8056chxhxaKiVuNNw2ptLH6q4pVSJnq RLIQDx2XYwh7zTE8pz+pMP4JBw9NMmWQe2M2td3rYtsz37l2+QhSSq94Xt6us/K4Vjve Q3NjC0yTY9D+WUIa8Kjt/AkVxu1bqLdUADx5aBay/86PfutbhXikcFYy6QyZerIRtJTq kJww== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:cc:list-subscribe :list-help:list-post:list-archive:list-unsubscribe:list-id :precedence:mime-version:references:in-reply-to:message-id:date :subject:to:from:dkim-signature:delivered-to; bh=psVY/L9/0AE+W4BuCW4jQUyOHe301Jyzo2Nz6oLcxUk=; b=bg+LHbrW218GWDH3Mx7RElLFh6//VlxDfxHmXoMxz98iVlNe/1/kXz0wPGT3HP4J3E Fq5dlXA4PGjxYToQ2BqD+SwSA2BmBmXThlvb2KbnQEwgC3ka1/y7YQlzMfFATmEGixX/ ucSm7rFBx4ISjLGnrlSf+cLvW0gEoA5bSy5VBopL5qIpDG2a3uGyjRmd5zIqn0JTYDSo IZlrOpkbJnGyOwbd386gTjrVkiXcdT7+hK2bI5RoFitH0z+0NcF8+lArACpMbvveM/IO 5yP9WsD+ZtuMbKM7W0OatAKjIkItNMe0IVpL6gvs4XE+Mm++BOuGtTwPT8Rk0Pg02pLI 6fBA== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=JDYmcNAN; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 2610:10:20:722:a800:ff:fe36:1795 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from gabe.freedesktop.org (gabe.freedesktop.org. [2610:10:20:722:a800:ff:fe36:1795]) by mx.google.com with ESMTPS id l3si6192771pjg.64.2021.03.03.05.44.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Mar 2021 05:44:53 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 2610:10:20:722:a800:ff:fe36:1795 as permitted sender) client-ip=2610:10:20:722:a800:ff:fe36:1795; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=JDYmcNAN; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 2610:10:20:722:a800:ff:fe36:1795 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 32FD06E973; Wed, 3 Mar 2021 13:44:21 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wr1-x42a.google.com (mail-wr1-x42a.google.com [IPv6:2a00:1450:4864:20::42a]) by gabe.freedesktop.org (Postfix) with ESMTPS id 761E36E947 for ; Wed, 3 Mar 2021 13:44:18 +0000 (UTC) Received: by mail-wr1-x42a.google.com with SMTP id l12so23738655wry.2 for ; Wed, 03 Mar 2021 05:44:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=FWkqFrvWeK76Y3iFCArRn0HDFC1AVp5EXu1AxGszpQA=; b=JDYmcNANhdbTHQufB6+ZlXI755geSXoJ34u2EDuKznl+G+oe16GAYHFpK8LqJ9InRv fb+qv2vU1wNpRN8GkIu8B78Z9MhFPYLvQ5RZBEPVwe9xuPfwJW7Uge8z3AMY/48S0sss L7Sfc3DpMwdYY3ITiVVa8R8wd1eD+keB1/dsz1g5oBRdrkgFPTiYrxT6iXC0QT2JHt8V uCSetT/eGRfMpqBjZy4oegCnccSqN6Qit6SfgAMwLFF9LOesQL3inwicuh4H/Ok8US1J pwqppOTdwzXNgF2uSPZdxJ9pkMK7AOSjheVbugoiIyOollZSLbhMV4S3GJ3PE3nHwso+ +WBA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=FWkqFrvWeK76Y3iFCArRn0HDFC1AVp5EXu1AxGszpQA=; b=YCQVrld8oIQw7EZ9WdJH/liFeinoa0bNoHCN9KkQ+JPVpkCGS2KfjAAVjBPhRAzuz/ pbunP/tNxnz6TRjtX3at4jyfyXN0s1IIlkAKzhheJPHXWXGfaAuz7uiPzz3t/3xqAiuv 5raYqfN+OVou4K4D6YFMSpUtO19Jz0mKp+mZ87QWTBecoW1SYhmF0eWnp+7dIwNT6UGS /S7ZN+pWsUQhxedQ/pdCygm3Hh94452fwZ6LvkMDbuwSFTkQDctboVq4BUUSInFctxpF rNBR6EvjexdlAMrChDnEQ8ytGyL+qsFQOwd4/JJUI3BiVNsCVY2EbT3MoYy1lBUDYA0G /isg== X-Gm-Message-State: AOAM530mhc1HVjeDcv8xCrWGYbyJkfOj/eNZXI6LIqYsqwo1FFKn3j95 OiaFuxJB/fVy/5RSd7E9iEcuS0Os0cWvCA== X-Received: by 2002:a5d:528f:: with SMTP id c15mr27393903wrv.142.1614779057184; Wed, 03 Mar 2021 05:44:17 -0800 (PST) Received: from dell.default ([91.110.221.155]) by smtp.gmail.com with ESMTPSA id w18sm6109524wrr.7.2021.03.03.05.44.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Mar 2021 05:44:16 -0800 (PST) From: Lee Jones To: lee.jones@linaro.org Subject: [PATCH 41/53] drm/vmwgfx/vmwgfx_cmdbuf: Fix a bunch of missing or incorrectly formatted/named params Date: Wed, 3 Mar 2021 13:43:07 +0000 Message-Id: <20210303134319.3160762-42-lee.jones@linaro.org> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20210303134319.3160762-1-lee.jones@linaro.org> References: <20210303134319.3160762-1-lee.jones@linaro.org> MIME-Version: 1.0 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: David Airlie , Roland Scheidegger , linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, VMware Graphics Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" Fixes the following W=1 kernel build warning(s): drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf.c:58: warning: Function parameter or member 'block_submission' not described in 'vmw_cmdbuf_context' drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf.c:109: warning: cannot understand function prototype: 'struct vmw_cmdbuf_man ' drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf.c:164: warning: Function parameter or member 'handle' not described in 'vmw_cmdbuf_header' drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf.c:257: warning: Function parameter or member 'header' not described in '__vmw_cmdbuf_header_free' drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf.c:380: warning: Function parameter or member 'notempty' not described in 'vmw_cmdbuf_ctx_process' drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf.c:1168: warning: Function parameter or member 'context' not described in 'vmw_cmdbuf_preempt' drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf.c:1193: warning: Function parameter or member 'context' not described in 'vmw_cmdbuf_startstop' Cc: VMware Graphics Cc: Roland Scheidegger Cc: David Airlie Cc: Daniel Vetter Cc: dri-devel@lists.freedesktop.org Signed-off-by: Lee Jones Signed-off-by: Zack Rusin Link: https://patchwork.freedesktop.org/patch/msgid/20210115181313.3431493-38-lee.jones@linaro.org --- drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf.c | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) -- 2.27.0 _______________________________________________ dri-devel mailing list dri-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/dri-devel diff --git a/drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf.c b/drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf.c index 45fbc41440f1e..3158924ffa852 100644 --- a/drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf.c +++ b/drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf.c @@ -48,6 +48,7 @@ * @hw_submitted: List of command buffers submitted to hardware. * @preempted: List of preempted command buffers. * @num_hw_submitted: Number of buffers currently being processed by hardware + * @block_submission: Identifies a block command submission. */ struct vmw_cmdbuf_context { struct list_head submitted; @@ -58,7 +59,7 @@ struct vmw_cmdbuf_context { }; /** - * struct vmw_cmdbuf_man: - Command buffer manager + * struct vmw_cmdbuf_man - Command buffer manager * * @cur_mutex: Mutex protecting the command buffer used for incremental small * kernel command submissions, @cur. @@ -143,7 +144,7 @@ struct vmw_cmdbuf_man { * @cb_context: The device command buffer context. * @list: List head for attaching to the manager lists. * @node: The range manager node. - * @handle. The DMA address of @cb_header. Handed to the device on command + * @handle: The DMA address of @cb_header. Handed to the device on command * buffer submission. * @cmd: Pointer to the command buffer space of this buffer. * @size: Size of the command buffer space of this buffer. @@ -249,7 +250,7 @@ static void vmw_cmdbuf_header_inline_free(struct vmw_cmdbuf_header *header) * __vmw_cmdbuf_header_free - Free a struct vmw_cmdbuf_header and its * associated structures. * - * header: Pointer to the header to free. + * @header: Pointer to the header to free. * * For internal use. Must be called with man::lock held. */ @@ -365,10 +366,11 @@ static void vmw_cmdbuf_ctx_submit(struct vmw_cmdbuf_man *man, } /** - * vmw_cmdbuf_ctx_submit: Process a command buffer context. + * vmw_cmdbuf_ctx_process - Process a command buffer context. * * @man: The command buffer manager. * @ctx: The command buffer context. + * @notempty: Pass back count of non-empty command submitted lists. * * Submit command buffers to hardware if possible, and process finished * buffers. Typically freeing them, but on preemption or error take @@ -1161,6 +1163,7 @@ static int vmw_cmdbuf_send_device_command(struct vmw_cmdbuf_man *man, * context. * * @man: The command buffer manager. + * @context: Device context to pass command through. * * Synchronously sends a preempt command. */ @@ -1184,6 +1187,7 @@ static int vmw_cmdbuf_preempt(struct vmw_cmdbuf_man *man, u32 context) * context. * * @man: The command buffer manager. + * @context: Device context to start/stop. * @enable: Whether to enable or disable the context. * * Synchronously sends a device start / stop context command. From patchwork Wed Mar 3 13:43:08 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 392101 Delivered-To: patch@linaro.org Received: by 2002:a02:290e:0:0:0:0:0 with SMTP id p14csp5133594jap; Wed, 3 Mar 2021 05:44:50 -0800 (PST) X-Google-Smtp-Source: ABdhPJyqd/wtAvpWelkwKDjwm4dOYdQogfGUTsU0HKhgYKOoiBlX6sZtF91prV7puoO8Nbu+acB6 X-Received: by 2002:a17:902:68:b029:e3:c8ea:a562 with SMTP id 95-20020a1709020068b02900e3c8eaa562mr2830558pla.23.1614779090793; Wed, 03 Mar 2021 05:44:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614779090; cv=none; d=google.com; s=arc-20160816; b=SjLsGh0oUBi6ycqPqI27V3jxkjjjw0+/bYvsWsc2+TIB55vP1AHOgMgZBiD4w75DFG EHotXgpz2xqnMCYsRZrNmLytQXNuiihKtgJBsfyNnkaLpo245SRDinxydAk4zLZdW7jt hQTppRL069efS+B7LPUgs28+SAZ5YrbaaRfEnbwWjnO5HlkS4ZiOu/Pwal831fAijcnD kVQOGd6IgthAGMa3KOynfpxnXp1xtnFieFN9QVqJVVDpbt8S66qAjfg9tuUf1fElhAhT U1+vRsKl/B8MokL149r2/SJ1z1TfVqpfgkSB6sW9smb97X7NeLFE7tl+cTMQkRVXcAcW 57jg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:cc:list-subscribe :list-help:list-post:list-archive:list-unsubscribe:list-id :precedence:mime-version:references:in-reply-to:message-id:date :subject:to:from:dkim-signature:delivered-to; bh=hfA6hRtIQ53RugVMQqgApjx0oivK8PlXWR4guTijmrQ=; b=kCPYYPcqNTXp91WlXUq2+icm4OeCgWnvAOitIni9fQwnig7kH5vwrxWcGo6ZJyaVFT Pmj/TvMPRou9l9lngCWQmE6Na8ixIMrkeU8CjSkNNtPrr4CxGXP50ixJl65FjGk4LYYb PrQ8I7DZbPXXMVGjR+MeUQM4Iz103QKS/kjD7WSyoVWpsfDjxwYuuVMb5YHDQZA9GuSD 3NsNXH1mOM13n9A422H9QpPOt/q6EzxVwg1WpQQzotIJdOrE84VrCLJHjJRToaoIvT7g RjFQ2g91bJ8u0tZuwzHn5j8HjIspK0dmnt3ZhBNQ8fIqJLjHIIjvRxQc3wKe250DdknS OodQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=mzLCVvzT; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from gabe.freedesktop.org (gabe.freedesktop.org. [131.252.210.177]) by mx.google.com with ESMTPS id q6si12118846pgt.2.2021.03.03.05.44.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Mar 2021 05:44:50 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) client-ip=131.252.210.177; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=mzLCVvzT; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 77D5D6E947; Wed, 3 Mar 2021 13:44:20 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wr1-x42b.google.com (mail-wr1-x42b.google.com [IPv6:2a00:1450:4864:20::42b]) by gabe.freedesktop.org (Postfix) with ESMTPS id 787426E958 for ; Wed, 3 Mar 2021 13:44:19 +0000 (UTC) Received: by mail-wr1-x42b.google.com with SMTP id f12so19932853wrx.8 for ; Wed, 03 Mar 2021 05:44:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=cWfSkLsOFqMqwFajDViY0GDy36kEao+sHnvIWX+OuUc=; b=mzLCVvzT8ZvO420Azr5mfjX30PlXUIrvbQHxMtN4US7RxeQlR04wUoXvV46MOWj67E TWBlNF4/fpmvc9jBPbo8VUcZihj5NbZNatn1o4r/fSJ+yH4/3bVrwGGDdLvQ3qZiVJh2 SkXaBry/0wkXurG3AA4Ii8agUSDhJfuQLrC0Fijehb/xyKuNWqT2fuZGhON2EEEwzyNf saNBVVglJJvtHS4T1+IJlUj26Hbale91MzMi3i9Y3teiy9iiWr0/Slz1czb37udJnR/E 7n7Q1YnI5xP0NRV/cB7DCp6C/uWjoNIIh7DO9fX7nE3KgwNNfcgC7mm34lRPE0XyViv4 o1ZA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=cWfSkLsOFqMqwFajDViY0GDy36kEao+sHnvIWX+OuUc=; b=hMSFpxlu2u5N5j2v/plOEgVJxwZwbYsUqiouPj3fNK29kmppSLJbOl5baDkpNgFZGO js0SU0awZpwvaxsdpgtsefDjo2Ar0DVSIbeutDd/s3RuUPFFRldtYJiwPBQj110AaUOC dFzqgtDdRiLJYFKKU5RM5N0D0ElPYPdUI6yAPCb49qNeqMqp760RPu5qUYefMmuYDNr9 5gr083Ensrn6jjy5HsA+M4sAvoR2gWvvawZKA6WXc2XARRKakIGlu9InzdeR5GTanCMr zPMuHEYkGW2vF0+oV2TWIYUypyhXutyY5teDo5jIRqHS5VCYLqITdQPN3H4VCvgdZO9y Vt3g== X-Gm-Message-State: AOAM5328u88u2maA4wYcPQqYRHWX1AkxVCGQ4reLW/WwL6L4pBamJIsh kO5HMnt536C1vVQk1mcugdiVQg== X-Received: by 2002:a05:6000:1281:: with SMTP id f1mr27793282wrx.243.1614779058227; Wed, 03 Mar 2021 05:44:18 -0800 (PST) Received: from dell.default ([91.110.221.155]) by smtp.gmail.com with ESMTPSA id w18sm6109524wrr.7.2021.03.03.05.44.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Mar 2021 05:44:17 -0800 (PST) From: Lee Jones To: lee.jones@linaro.org Subject: [PATCH 42/53] drm/vmwgfx/vmwgfx_cmdbuf_res: Remove unused variable 'ret' Date: Wed, 3 Mar 2021 13:43:08 +0000 Message-Id: <20210303134319.3160762-43-lee.jones@linaro.org> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20210303134319.3160762-1-lee.jones@linaro.org> References: <20210303134319.3160762-1-lee.jones@linaro.org> MIME-Version: 1.0 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: David Airlie , Roland Scheidegger , linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, VMware Graphics Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" Fixes the following W=1 kernel build warning(s): drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf_res.c: In function ‘vmw_cmdbuf_res_revert’: drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf_res.c:162:6: warning: variable ‘ret’ set but not used [-Wunused-but-set-variable] Cc: VMware Graphics Cc: Roland Scheidegger Cc: Zack Rusin Cc: David Airlie Cc: Daniel Vetter Cc: dri-devel@lists.freedesktop.org Signed-off-by: Lee Jones Signed-off-by: Zack Rusin Link: https://patchwork.freedesktop.org/patch/msgid/20210115181313.3431493-40-lee.jones@linaro.org --- drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf_res.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf_res.c b/drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf_res.c index 92509fbf2fd1d..b262d61d839d5 100644 --- a/drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf_res.c +++ b/drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf_res.c @@ -159,7 +159,6 @@ void vmw_cmdbuf_res_commit(struct list_head *list) void vmw_cmdbuf_res_revert(struct list_head *list) { struct vmw_cmdbuf_res *entry, *next; - int ret; list_for_each_entry_safe(entry, next, list, head) { switch (entry->state) { @@ -167,8 +166,7 @@ void vmw_cmdbuf_res_revert(struct list_head *list) vmw_cmdbuf_res_free(entry->man, entry); break; case VMW_CMDBUF_RES_DEL: - ret = drm_ht_insert_item(&entry->man->resources, - &entry->hash); + drm_ht_insert_item(&entry->man->resources, &entry->hash); list_del(&entry->head); list_add_tail(&entry->head, &entry->man->list); entry->state = VMW_CMDBUF_RES_COMMITTED; From patchwork Wed Mar 3 13:43:09 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 392106 Delivered-To: patch@linaro.org Received: by 2002:a02:290e:0:0:0:0:0 with SMTP id p14csp5133695jap; Wed, 3 Mar 2021 05:44:58 -0800 (PST) X-Google-Smtp-Source: ABdhPJyEALsDJVaqc4eYBJTa6YKtpJJyQIv1BmZOgiWD+wdR5akHlduxxteNLi92J7zNc5xTFeaz X-Received: by 2002:a17:902:8c97:b029:e2:8c58:153f with SMTP id t23-20020a1709028c97b02900e28c58153fmr2822301plo.79.1614779098570; Wed, 03 Mar 2021 05:44:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614779098; cv=none; d=google.com; s=arc-20160816; b=AnVvvgbZSEJWddfEyeEC02D1bnVDcYZht/JpjOCWUT3tPPPPWWFJgjJBsKuBmkxm9X ehidNNOxKhSUWzIhAfuAS5gNB3W2fuofZF9shiJUqaBdPJ9NSr467xmeFjJ8Rl+xySqm girWMe05OtnpOzGSclFFsldNqNbCKxTmLVWtRVkx3kj9UnmFSBP64smphmNCwd0Xh7ic vq+R5ccKWrSxvfM828gqe0DsORZ7I/4uHmVWAAF56Z8ziqbBZTyOdY4TOSG8UrLJpSE+ lK0NnrMhI8orR6/Q6xW/n+acPp/sOy3qKH4n5S2UBMrzvF3btk59M8PNh2UPABeuO/PM ruXg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:cc:list-subscribe :list-help:list-post:list-archive:list-unsubscribe:list-id :precedence:mime-version:references:in-reply-to:message-id:date :subject:to:from:dkim-signature:delivered-to; bh=A9LY8qPnrncUfKghcot+iLCZgIAvGYPqWbZNhPYul2k=; b=MwYtvBfwCk3/GyciVbsXq55ghiXASdl04/pqoYInzQWYQbHCrneCCVgFP5o/012q0g zEnLyaILVTglRu6xtxrXrVLBU5b3bIIbAab5K9itMfIRjLk1Hmc/Qy2Q5/rncdhqhlUM uXvu9TOq1JPW8qVhDajJBuNHOdeur7rDruoOMfsJjeBtbEMUIXk+YQLQn9uS0YVppvPZ csQA1gReg5OOYlo5AbUIHNMnKRHjA5+NnplDSvaNm3vN30osc06Xz+jdEw9+rgUldVrB hBSBgoL1IIizW232+l/5rxU1Ye2N41DfhALEQh/WT2xn7D88Pk7+7rcdIogSrRsQGMQq Z3aw== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=M3vfJNli; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 2610:10:20:722:a800:ff:fe36:1795 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from gabe.freedesktop.org (gabe.freedesktop.org. [2610:10:20:722:a800:ff:fe36:1795]) by mx.google.com with ESMTPS id q18si23833355pgn.591.2021.03.03.05.44.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Mar 2021 05:44:58 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 2610:10:20:722:a800:ff:fe36:1795 as permitted sender) client-ip=2610:10:20:722:a800:ff:fe36:1795; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=M3vfJNli; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 2610:10:20:722:a800:ff:fe36:1795 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 3EBBD6E97B; Wed, 3 Mar 2021 13:44:24 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wr1-x42e.google.com (mail-wr1-x42e.google.com [IPv6:2a00:1450:4864:20::42e]) by gabe.freedesktop.org (Postfix) with ESMTPS id 88AFD6E958 for ; Wed, 3 Mar 2021 13:44:20 +0000 (UTC) Received: by mail-wr1-x42e.google.com with SMTP id f12so19932910wrx.8 for ; Wed, 03 Mar 2021 05:44:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=vEJvtnthzxGLrB5bQwa4uMR+8QlI7X4kpk4nucMTE3c=; b=M3vfJNlivn2MoPxBwPRWD4bTTqeqqG8QnJoarAygkTYue/NKMFOklFxuJPRD4hPDGR n29NRPFIHqLXys8C0/TLJRC1IiyQJiSwdI96kiLnquGwIc1Q2EprMXp2s/OmL5e1ppvE zt3wJKtimq5Fqv6t/Tppo9p5QJyfYLq6DSVM7GywQNabq/fXvDzTtJmFfY368k5dufGZ JWZDg/rqsmdWQz54JeK6Q1eXYSl4Y2lcjN1Oe2yyQGBpUPnTab4IVQiS4C1Ch38dR81N u40lqKp3osyQFcCWbZOWzvUjCbweeaFd+Em42nbsPDkaab76WQxvgAxyopt4BKk0dHnD cS7w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=vEJvtnthzxGLrB5bQwa4uMR+8QlI7X4kpk4nucMTE3c=; b=IiQiaOOf3djLZwGI6ATHn6KH8enjUB606mqxbx0J8wpp2ZVsB3lKZAuoikgb94KSAb SDBOvDC7Wa6a9MXsrNL9oIZ9p4QdwWXvsNDjaNbZ3wy3tLlzcm3GsmQoOYGoD9/NiqFv ROeQMZE7vs0hD4CXsrx81ILaAdKn+bYfW4yIb6sYLLQdZSt2EkBC5Wsfx2JNU26RpHQE /CeZM8x2Kx66TCwk410KekbG4PRV5NW2B0O58HlRXM0dyUfpMH0yo7LQFRwmn4C09MS8 Abfh0+V429uosss1wXXO2coihjv5rIz6SAu44BoPXZWgJQppYOYpUu3qc3eT/XP0Lgjk bJxQ== X-Gm-Message-State: AOAM531G+cEyY4rRl5q6cvVgPbIR0oVUM1S6jmgoD3dw9XsPk7FeBEdM EYOm7kQbuaz8ZRpmAbWd1VGXXQ== X-Received: by 2002:adf:f743:: with SMTP id z3mr26906208wrp.304.1614779059267; Wed, 03 Mar 2021 05:44:19 -0800 (PST) Received: from dell.default ([91.110.221.155]) by smtp.gmail.com with ESMTPSA id w18sm6109524wrr.7.2021.03.03.05.44.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Mar 2021 05:44:18 -0800 (PST) From: Lee Jones To: lee.jones@linaro.org Subject: [PATCH 43/53] drm/vmwgfx/vmwgfx_stdu: Add some missing param/member descriptions Date: Wed, 3 Mar 2021 13:43:09 +0000 Message-Id: <20210303134319.3160762-44-lee.jones@linaro.org> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20210303134319.3160762-1-lee.jones@linaro.org> References: <20210303134319.3160762-1-lee.jones@linaro.org> MIME-Version: 1.0 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: David Airlie , Roland Scheidegger , linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, VMware Graphics Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" Fixes the following W=1 kernel build warning(s): drivers/gpu/drm/vmwgfx/vmwgfx_stdu.c:77: warning: Function parameter or member 'pitch' not described in 'vmw_stdu_dirty' drivers/gpu/drm/vmwgfx/vmwgfx_stdu.c:125: warning: Function parameter or member 'content_fb_type' not described in 'vmw_screen_target_display_unit' drivers/gpu/drm/vmwgfx/vmwgfx_stdu.c:125: warning: Function parameter or member 'display_width' not described in 'vmw_screen_target_display_unit' drivers/gpu/drm/vmwgfx/vmwgfx_stdu.c:125: warning: Function parameter or member 'display_height' not described in 'vmw_screen_target_display_unit' drivers/gpu/drm/vmwgfx/vmwgfx_stdu.c:125: warning: Function parameter or member 'cpp' not described in 'vmw_screen_target_display_unit' drivers/gpu/drm/vmwgfx/vmwgfx_stdu.c:682: warning: Function parameter or member 'user_fence_rep' not described in 'vmw_kms_stdu_dma' Cc: VMware Graphics Cc: Roland Scheidegger Cc: Zack Rusin Cc: David Airlie Cc: Daniel Vetter Cc: dri-devel@lists.freedesktop.org Signed-off-by: Lee Jones Signed-off-by: Zack Rusin Link: https://patchwork.freedesktop.org/patch/msgid/20210115181313.3431493-41-lee.jones@linaro.org --- drivers/gpu/drm/vmwgfx/vmwgfx_stdu.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) -- 2.27.0 _______________________________________________ dri-devel mailing list dri-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/dri-devel diff --git a/drivers/gpu/drm/vmwgfx/vmwgfx_stdu.c b/drivers/gpu/drm/vmwgfx/vmwgfx_stdu.c index fbe9778813648..01567534f4fae 100644 --- a/drivers/gpu/drm/vmwgfx/vmwgfx_stdu.c +++ b/drivers/gpu/drm/vmwgfx/vmwgfx_stdu.c @@ -61,6 +61,7 @@ enum stdu_content_type { * @bottom: Bottom side of bounding box. * @fb_left: Left side of the framebuffer/content bounding box * @fb_top: Top of the framebuffer/content bounding box + * @pitch: framebuffer pitch (stride) * @buf: buffer object when DMA-ing between buffer and screen targets. * @sid: Surface ID when copying between surface and screen targets. */ @@ -109,8 +110,11 @@ struct vmw_stdu_update_gb_image { * content_vfbs dimensions, then this is a pointer into the * corresponding field in content_vfbs. If not, then this * is a separate buffer to which content_vfbs will blit to. - * @content_type: content_fb type - * @defined: true if the current display unit has been initialized + * @content_fb_type: content_fb type + * @display_width: display width + * @display_height: display height + * @defined: true if the current display unit has been initialized + * @cpp: Bytes per pixel */ struct vmw_screen_target_display_unit { struct vmw_display_unit base; @@ -652,6 +656,7 @@ static void vmw_stdu_bo_cpu_commit(struct vmw_kms_dirty *dirty) * @file_priv: Pointer to a struct drm-file identifying the caller. May be * set to NULL, but then @user_fence_rep must also be set to NULL. * @vfb: Pointer to the buffer-object backed framebuffer. + * @user_fence_rep: User-space provided structure for fence information. * @clips: Array of clip rects. Either @clips or @vclips must be NULL. * @vclips: Alternate array of clip rects. Either @clips or @vclips must * be NULL. From patchwork Wed Mar 3 13:43:10 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 392105 Delivered-To: patch@linaro.org Received: by 2002:a02:290e:0:0:0:0:0 with SMTP id p14csp5133675jap; Wed, 3 Mar 2021 05:44:57 -0800 (PST) X-Google-Smtp-Source: ABdhPJzGhf/wKRCZGalae00LrNwgGiuZGdFKAjyEsvm3/RCuH+KWuwRao3sUReKAv1p53RJ67Sas X-Received: by 2002:a17:90a:4a8c:: with SMTP id f12mr9741633pjh.71.1614779097052; Wed, 03 Mar 2021 05:44:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614779097; cv=none; d=google.com; s=arc-20160816; b=RjI9wYiwbBVVCVeeLCajTECYPtskA28tN+xLhsYUBbjnzQUKzNwqTfM8YzcetrcJLb x4o9UovDwf1Sxy9wG30GpZxTT2KQvtEWGzUn8fmMqA2RV+Y7aToK2mt7+fEoRdPg50tc YaT+1tDWOd6UVLIZuOuF/8kL0QHyWU5hs7XX+nhZp6zp0/QpPe7MaqyGsQfm2HiIjGEr qlqT8a8LokppR4UKalwxCEiBBDzVpR3QFvWkEsbi+ZftwvNIsJBiu7S345bW0Fw4s7DQ zbaaWLQOAyuoW+d/AK90LgzihbhFQfriTS4FU8aEGj/hHvndlCAS0UXGYoqoC2VusZJS JP+Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:cc:list-subscribe :list-help:list-post:list-archive:list-unsubscribe:list-id :precedence:mime-version:references:in-reply-to:message-id:date :subject:to:from:dkim-signature:delivered-to; bh=DkNhurXksJDsr1W9WcLHJ5uPkp4AVRe+ycRMY0CBIo0=; b=ivw2CEENIWgJ7COVQDPgC8jF/RcAlfQ3c2W+a2v68Ru06H/mNmB+hQofe4Ti72nQ57 Ktf+Azxi9nrtzq4k4As+FyE+6yfhUQtEUGz1NW5p2TwS3Gt4ZwFemji8YjO1STmfxpCg NHVk9ZqP4trK9FEADAhdUbU5Acm8oI4VgIjWunPHqoIq9PfsxfJfY9lUaxqVv5xp9FY+ tbE6iQyTPqsXLIXTMsN9N+RplWfgzGUvsQAlPwTjkMZDp4/G0nn+3iaLy0lUjPWdaaVt UCV1IfGTbBEDjOq7njepChc7fMsxTIPIxO2UuMJNPgAWS1BCZ4FRk9rktzQNpzixYWDX MwWQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=x6AS3LdR; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 2610:10:20:722:a800:ff:fe36:1795 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from gabe.freedesktop.org (gabe.freedesktop.org. [2610:10:20:722:a800:ff:fe36:1795]) by mx.google.com with ESMTPS id oc9si5836818pjb.101.2021.03.03.05.44.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Mar 2021 05:44:57 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 2610:10:20:722:a800:ff:fe36:1795 as permitted sender) client-ip=2610:10:20:722:a800:ff:fe36:1795; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=x6AS3LdR; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 2610:10:20:722:a800:ff:fe36:1795 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id AC3496E975; Wed, 3 Mar 2021 13:44:23 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wr1-x434.google.com (mail-wr1-x434.google.com [IPv6:2a00:1450:4864:20::434]) by gabe.freedesktop.org (Postfix) with ESMTPS id 73CBB6E975 for ; Wed, 3 Mar 2021 13:44:21 +0000 (UTC) Received: by mail-wr1-x434.google.com with SMTP id d15so8499984wrv.5 for ; Wed, 03 Mar 2021 05:44:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=oOctN99VtPEuQxbAuDG+BL97SKhd9D03A4O1vAmIt6Y=; b=x6AS3LdRZBrN0y7y9+yjdOVvm8tDGN/HEUOtMVjCZPG+CFbIJ5nhNd18RoubmKm5nk QJrQ0u0DEhDPBCi/46gCWz5HvChhh3OpU8U/72idR18uOEYM9B25aUTkk2xjPzt5O6E8 y8xKk4QSRoGHmDGoQ0mj3IGsZoC4Zk+XhA9K6297bFOE27mhdEHeYx8av+etATMockOE xQBM2XqCPIbKdFQCvNfyw8mihI+Zlclsiv7/h3+FqOEEMVIaecA0WmUxksKdztL68oll b1doidTR/jl8lEl+3PZuWLX7sAqCTX4sjSe9fZTsJAcB+FMVnAyy1uaQ3ZuRlOKrwh3f 10tg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=oOctN99VtPEuQxbAuDG+BL97SKhd9D03A4O1vAmIt6Y=; b=rMPkbH13NknNQFNNr3QJObdHmFxHSAwDLFVE9L5YwneCdSTafyFHL9mfja7qYtmjUl ZuanbY10zg9APdfYapcBNu5hZq0ITVjG4h2aPiPCjo/5zfMYofn8s3KiizhNBc4oNEWz 7hwh2u7dudyBB6kmB1W5nRfmFMmrqPzYYIBP7YIRXkw3j+fkMM6RHajHNKyghLhE4gms ny15ZQgLdUYjeePZavjMbig/CBUcvXP4d/CjPfrG1sPEoHFHK4h40+9+UfM9FFE1yMMT Z+EPJ3qlr9O3WokroD2m8mPJtGiTF5/z7XyJjbFJY6dLWMsFN+cZaJEn34FOGglY8e8o +i4A== X-Gm-Message-State: AOAM533VXQxJ/w/LhhHs6OXpzSI59TPuHz+HF23iF9uvJEBme1dkVp+B y5pyJjxEO5EhUH+gDkrtUybbVnZdasCsxA== X-Received: by 2002:a5d:4a0e:: with SMTP id m14mr27417003wrq.73.1614779060225; Wed, 03 Mar 2021 05:44:20 -0800 (PST) Received: from dell.default ([91.110.221.155]) by smtp.gmail.com with ESMTPSA id w18sm6109524wrr.7.2021.03.03.05.44.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Mar 2021 05:44:19 -0800 (PST) From: Lee Jones To: lee.jones@linaro.org Subject: [PATCH 44/53] drm/vmwgfx/vmwgfx_cmdbuf: Fix misnaming of 'headers' should be plural Date: Wed, 3 Mar 2021 13:43:10 +0000 Message-Id: <20210303134319.3160762-45-lee.jones@linaro.org> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20210303134319.3160762-1-lee.jones@linaro.org> References: <20210303134319.3160762-1-lee.jones@linaro.org> MIME-Version: 1.0 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: David Airlie , Roland Scheidegger , linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, VMware Graphics Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" Fixes the following W=1 kernel build warning(s): drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf.c:137: warning: Function parameter or member 'headers' not described in 'vmw_cmdbuf_man' Cc: VMware Graphics Cc: Roland Scheidegger Cc: Zack Rusin Cc: David Airlie Cc: Daniel Vetter Cc: dri-devel@lists.freedesktop.org Signed-off-by: Lee Jones Signed-off-by: Zack Rusin Link: https://patchwork.freedesktop.org/patch/msgid/20210115181601.3432599-2-lee.jones@linaro.org --- drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.27.0 _______________________________________________ dri-devel mailing list dri-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/dri-devel diff --git a/drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf.c b/drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf.c index 3158924ffa852..2e23e537cdf52 100644 --- a/drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf.c +++ b/drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf.c @@ -89,7 +89,7 @@ struct vmw_cmdbuf_context { * @max_hw_submitted: Max number of in-flight command buffers the device can * handle. Immutable. * @lock: Spinlock protecting command submission queues. - * @header: Pool of DMA memory for device command buffer headers. + * @headers: Pool of DMA memory for device command buffer headers. * Internal protection. * @dheaders: Pool of DMA memory for device command buffer headers with trailing * space for inline data. Internal protection. From patchwork Wed Mar 3 13:43:11 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 392104 Delivered-To: patch@linaro.org Received: by 2002:a02:290e:0:0:0:0:0 with SMTP id p14csp5133657jap; Wed, 3 Mar 2021 05:44:55 -0800 (PST) X-Google-Smtp-Source: ABdhPJyCmDvRyg4q864si+tGsyyfI9uvaLwt4hygXWh0tG0AMoXIL1WIJzG1EcvdWev8R3Sgobzc X-Received: by 2002:a17:902:7481:b029:e4:5e6e:75f7 with SMTP id h1-20020a1709027481b02900e45e6e75f7mr24798329pll.3.1614779095462; Wed, 03 Mar 2021 05:44:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614779095; cv=none; d=google.com; s=arc-20160816; b=o8fJ+MOvxaXUEYgLAhKhkCshhAA6Vvb5oj3aF3izND37UoffK0seRplXIP7FzssAxz PRCKGmdntLKeXAGzcPekDOrUBYT9scQLf8uozeggS/A+/fsn/ScxXD5KGbSF7TMbeOgH C9aHbLzDP2cA/xePBXLtGNRVoIPt9LrfFz0qXL+dJXTRzdF5hjkIIMVD/daAZE5kTY9U cSWoQDfFpM5Sr+bb4rUtAFJetVtJcXOx+WXz7Y921101gljfuUZycmvK+v6XH+VBYYsS xDIf7hx7Ua3Ciu+SOrUSTdHJUWFZz/N7wcJoDNiGXrJuhSZVsuzPGMGz9xKNy2THBb+g XFQA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:cc:list-subscribe :list-help:list-post:list-archive:list-unsubscribe:list-id :precedence:mime-version:references:in-reply-to:message-id:date :subject:to:from:dkim-signature:delivered-to; bh=2F8a2NgCXH9jozG/kf55peioEagWbMqrp8YTK8ryQVE=; b=fiDSoMoqln1BZIOk1ExKgvrpyvt1rAVGOW5UcWK0JMFSgpdNsNzkkTj3tuB94Bt6lV y3Eflv0NspijV+oTENcJahGgeJAVFVDlMxWm1olZiu6jk3t4xnjcgz8itEmNxqbQ2Vh6 k7zn4mkNUi9qojk0skVI6Hx32mTvc8k/NUkFFIhgLSqNrxh6YuefFtq6hbcuf1sVrGOf ZndGKNATvmazyTiJyZT/9Xzd6ruIUKb0zbw/Hf6D/NL0aZXNdEkHlAp9T0XiIvvQwiMN 6luRy0hScvlB8zLS5FXkKBzfkXL+L24/C5wW5StCysujwa4rTIcFzBAWfBViHQeDF3dt aD4g== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=R5yJXjEr; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from gabe.freedesktop.org (gabe.freedesktop.org. [131.252.210.177]) by mx.google.com with ESMTPS id 97si8005254plf.331.2021.03.03.05.44.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Mar 2021 05:44:55 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) client-ip=131.252.210.177; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=R5yJXjEr; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id DFB336E982; Wed, 3 Mar 2021 13:44:23 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wr1-x436.google.com (mail-wr1-x436.google.com [IPv6:2a00:1450:4864:20::436]) by gabe.freedesktop.org (Postfix) with ESMTPS id 743A36E979 for ; Wed, 3 Mar 2021 13:44:22 +0000 (UTC) Received: by mail-wr1-x436.google.com with SMTP id w11so23714891wrr.10 for ; Wed, 03 Mar 2021 05:44:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=O3gvwy4PeYzRI9ULf7uVbTevm9nR5Ng81aAgPUCWA6Q=; b=R5yJXjEroR+aAi5Xo5prsTIr/z57v+n/ht4ttCxnmCgCgDUAoyafUan/HKuwL8hmru p6Xj+KOnUCFDgVgm/K+RfNQX0xdutyUZxzVweat79ABuc6H9HUmMKWNIX0GzuUvQEDK/ o+P1o9sT8ivFFizyKdZ0R/eRtXsqxYfOHVi8YmEB7fe8JaFj+jN+o3HSZVtT8r1Y8IAr /PZ8UmBQjMDa61BkBmQMRLCWB/+QCgExg2QROjsbEaxM5ltcy1QwgGgFsuZedmzp0YmQ x/3grCp1SksM5OttzERnm8ZwIcuL4Nk4ZzP8uGKYMoqiJIyNQY06zXNtYwBkoo8szfNz TFcQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=O3gvwy4PeYzRI9ULf7uVbTevm9nR5Ng81aAgPUCWA6Q=; b=dz5IJs3Js7hFmzJsLo94elgDQbWWKiNe7Cn/tz5hVDq1F5FTo9omzERdnoyGs3BVjf 7ln1wA/uwI5+P7b4agd1jbldO9ytfTSga9eIkVrnBadw5Z2KV8An47FdXuydIibZLBgs 8LWZurlD9vPoTa02uJ90shtMc7TqWQBzqImmcISMqZ44GnRSRh1TfYcvOtMfnzSgxf2p tE5ZCUrikLTRisBB6WUlJ4J2uQSOupeAR6S+Cl1hJ4LpcBYRi0ecXQtTRErl4A4JoikR idY8uzmQR/AKwlU9NnPkf0PwKG71zwj+49c5TSdJKgcGpbxoq9HaYgLbW26O38eIxCe4 5q+Q== X-Gm-Message-State: AOAM533LUgdnkTFcuCKmymVajb81goifPLUAq6i5fonpXv45613c1YFb ABm5sZS6/myjq3NMQFpAb5Z3xg== X-Received: by 2002:a5d:404f:: with SMTP id w15mr22820266wrp.106.1614779061148; Wed, 03 Mar 2021 05:44:21 -0800 (PST) Received: from dell.default ([91.110.221.155]) by smtp.gmail.com with ESMTPSA id w18sm6109524wrr.7.2021.03.03.05.44.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Mar 2021 05:44:20 -0800 (PST) From: Lee Jones To: lee.jones@linaro.org Subject: [PATCH 45/53] drm/vmwgfx/vmwgfx_cotable: Fix a couple of simple documentation problems Date: Wed, 3 Mar 2021 13:43:11 +0000 Message-Id: <20210303134319.3160762-46-lee.jones@linaro.org> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20210303134319.3160762-1-lee.jones@linaro.org> References: <20210303134319.3160762-1-lee.jones@linaro.org> MIME-Version: 1.0 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: David Airlie , Roland Scheidegger , linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, VMware Graphics Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" Fixes the following W=1 kernel build warning(s): drivers/gpu/drm/vmwgfx/vmwgfx_cotable.c:72: warning: Function parameter or member 'unbind_func' not described in 'vmw_cotable_info' drivers/gpu/drm/vmwgfx/vmwgfx_cotable.c:308: warning: Function parameter or member 'val_buf' not described in 'vmw_cotable_unbind' Cc: VMware Graphics Cc: Roland Scheidegger Cc: Zack Rusin Cc: David Airlie Cc: Daniel Vetter Cc: dri-devel@lists.freedesktop.org Signed-off-by: Lee Jones Signed-off-by: Zack Rusin Link: https://patchwork.freedesktop.org/patch/msgid/20210115181601.3432599-3-lee.jones@linaro.org --- drivers/gpu/drm/vmwgfx/vmwgfx_cotable.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) -- 2.27.0 _______________________________________________ dri-devel mailing list dri-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/dri-devel diff --git a/drivers/gpu/drm/vmwgfx/vmwgfx_cotable.c b/drivers/gpu/drm/vmwgfx/vmwgfx_cotable.c index ba658fa9cf6c6..42321b9c8129f 100644 --- a/drivers/gpu/drm/vmwgfx/vmwgfx_cotable.c +++ b/drivers/gpu/drm/vmwgfx/vmwgfx_cotable.c @@ -63,6 +63,7 @@ struct vmw_cotable { * @min_initial_entries: Min number of initial intries at cotable allocation * for this cotable type. * @size: Size of each entry. + * @unbind_func: Unbind call-back function. */ struct vmw_cotable_info { u32 min_initial_entries; @@ -297,7 +298,7 @@ int vmw_cotable_scrub(struct vmw_resource *res, bool readback) * * @res: Pointer to the cotable resource. * @readback: Whether to read back cotable data to the backup buffer. - * val_buf: Pointer to a struct ttm_validate_buffer prepared by the caller + * @val_buf: Pointer to a struct ttm_validate_buffer prepared by the caller * for convenience / fencing. * * Unbinds the cotable from the device and fences the backup buffer. From patchwork Wed Mar 3 13:43:12 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 392107 Delivered-To: patch@linaro.org Received: by 2002:a02:290e:0:0:0:0:0 with SMTP id p14csp5133713jap; Wed, 3 Mar 2021 05:45:00 -0800 (PST) X-Google-Smtp-Source: ABdhPJxlZmGTsVZ7PB3wBDzOIaGoOqVPsUfTJWAn4p6gCUBhVSZhaJG/aqozbLaab2VooHUtVo68 X-Received: by 2002:a63:207:: with SMTP id 7mr22716078pgc.346.1614779100069; Wed, 03 Mar 2021 05:45:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614779100; cv=none; d=google.com; s=arc-20160816; b=lBA8xMe229atEY6NPZ0uCX/8DtuED50h2APsqARY7DPcxMyU//0Qz7rVwrKTRHfeBw Ans6m6IGfrhF+y6ssmf9yDFNNdh1N9+vE4TXbBGbsYb0ezlekotn3U8JfMui+Dn+bsVu 0NWC2JVjTP/QZKBPGbbJ1sGigAR+XDe4RTUWP2VuwkLtzUxLdzYL+ufNqgcemy1cS/FF xzBge2gps8ey5jIiSRv8nEfRzatkU60b/dcxSfUQG/pcft2EMI7ZzTGKNZ/cJuwZGooo YDtaHI4yoTmEo4aWDlz7b5FcTpwr037Ygboez35vIDOhfDUPMx3ccBkN7JU+bKe9jtsT HbwA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:cc:list-subscribe :list-help:list-post:list-archive:list-unsubscribe:list-id :precedence:mime-version:references:in-reply-to:message-id:date :subject:to:from:dkim-signature:delivered-to; bh=HKAR8nWFM32enH6M3mQFoNpj4DMpXB83r/ZtMEAtEPI=; b=YmUYa2ZLkdffH2QT7uBUG34cfplu4kH9Aa4M0ljUXVbFitiziaUDNGjhiBnA+FCVD+ sq1mvLuOwPU055KvWXjJWWVxR/cQ3QysZZDGZaSftLdtWKH0yXPpRgnDb7Y3agO2WQPL 94xze6hxKODq496UibjBQe5ICl3BfsuilKiqjxwtpvxeWe8YWAmbyR8uJVxENvRAgy1B 2/Jl0sYHX6uVXSGacZOdNkQltDsWYU92dR/Hc+20kvhBwyfo2NnyzKqQqXCk+EiRfjI4 yYjQl26oNhDBIV6q5qS+KA44fzxrB6+RdMKVAC7Lk1jmvgi8S8QmLQEYJVWtSxyy9FaF UfYw== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b="n3k/mYhg"; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from gabe.freedesktop.org (gabe.freedesktop.org. [131.252.210.177]) by mx.google.com with ESMTPS id a7si23295847pff.159.2021.03.03.05.44.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Mar 2021 05:45:00 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) client-ip=131.252.210.177; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b="n3k/mYhg"; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 4E5BB6E984; Wed, 3 Mar 2021 13:44:26 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wr1-x436.google.com (mail-wr1-x436.google.com [IPv6:2a00:1450:4864:20::436]) by gabe.freedesktop.org (Postfix) with ESMTPS id 8923B6E97B for ; Wed, 3 Mar 2021 13:44:23 +0000 (UTC) Received: by mail-wr1-x436.google.com with SMTP id v15so23748849wrx.4 for ; Wed, 03 Mar 2021 05:44:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=TQZLwiGbcenEghtj8sEs+9poNaFVOCqZR7K7Xf38sg8=; b=n3k/mYhgTVnHgN7Ksfu7aElbcegmINNz9xrSIIvHZH18JgTBt11GqX7B0Y+I4LRWWA EwFoC9NUaYXdvKsaBubKCaIiZflXprHJfSsViCJHiSsOHixKTZFbYB5rh525AeiAVHSR 36oWRWiloNGWsDa+rxNY/prI4gFRA+mKYqo5blvhxgoS0Bwlkw+OxP/9BHEsGOK6qlW7 2LevQxx2Hk2c4vpJMepQpKQluHx3bvehHuffE9AL8WW2npB+naUskSkyeNGhA6WzSYAb Wa/xGxB1YZZ/W9nog6dOoDUdh8T1vKKGix0mPXr2JcLCIgpr0GfPRiF0eS2xi0osra1Q FamA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=TQZLwiGbcenEghtj8sEs+9poNaFVOCqZR7K7Xf38sg8=; b=s65P+TkWPw+l0/Ab0EV1bHg4P6RTv77wIVNUjGVT52BaPD8CYwcFEcAglpr2EMGCTE Ut8rsXWiEFYtMYROLqXdji6j9lv4l9yNhzPQ6G8ADkJZ1fl+V3df9zHRL2H3GAupp6mF NCvz91gz8LLUwDu6xkdH614w2YPa4HE6WYpqfDermvUaBHTcvGWmKNmOI/kMMg758f9J WlukB6q8MtCK4ckxzdKHI0nC/oZV3AaasMAycb4/PWmogFL/NPyxPViGLvEkB761JxcP 5buPccdJFnt48M8D6Agiu2EZxC6ydXWVxc0WCPT8zw1Utumx4yrNzSRz0t2WrzLhvX4s pXJg== X-Gm-Message-State: AOAM530NoG7BgXQ+ioQFtSyy/ey2LkHAMGoR8i1rTiihY0e5nMHrb0D3 pRDx3Na8dQmBrlGjGbSRb3WMYQ== X-Received: by 2002:a5d:6d0c:: with SMTP id e12mr26592738wrq.136.1614779062329; Wed, 03 Mar 2021 05:44:22 -0800 (PST) Received: from dell.default ([91.110.221.155]) by smtp.gmail.com with ESMTPSA id w18sm6109524wrr.7.2021.03.03.05.44.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Mar 2021 05:44:21 -0800 (PST) From: Lee Jones To: lee.jones@linaro.org Subject: [PATCH 46/53] drm/vmwgfx/vmwgfx_so: Add description for 'vmw_view's 'rcu' member Date: Wed, 3 Mar 2021 13:43:12 +0000 Message-Id: <20210303134319.3160762-47-lee.jones@linaro.org> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20210303134319.3160762-1-lee.jones@linaro.org> References: <20210303134319.3160762-1-lee.jones@linaro.org> MIME-Version: 1.0 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: David Airlie , Roland Scheidegger , linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, VMware Graphics Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" Fixes the following W=1 kernel build warning(s): drivers/gpu/drm/vmwgfx/vmwgfx_so.c:73: warning: Function parameter or member 'rcu' not described in 'vmw_view' Cc: VMware Graphics Cc: Roland Scheidegger Cc: Zack Rusin Cc: David Airlie Cc: Daniel Vetter Cc: dri-devel@lists.freedesktop.org Signed-off-by: Lee Jones Signed-off-by: Zack Rusin Link: https://patchwork.freedesktop.org/patch/msgid/20210115181601.3432599-4-lee.jones@linaro.org --- drivers/gpu/drm/vmwgfx/vmwgfx_so.c | 1 + 1 file changed, 1 insertion(+) -- 2.27.0 _______________________________________________ dri-devel mailing list dri-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/dri-devel diff --git a/drivers/gpu/drm/vmwgfx/vmwgfx_so.c b/drivers/gpu/drm/vmwgfx/vmwgfx_so.c index 7369dd86d3a9c..2877c7b43bd78 100644 --- a/drivers/gpu/drm/vmwgfx/vmwgfx_so.c +++ b/drivers/gpu/drm/vmwgfx/vmwgfx_so.c @@ -42,6 +42,7 @@ /** * struct vmw_view - view metadata * + * @rcu: RCU callback head * @res: The struct vmw_resource we derive from * @ctx: Non-refcounted pointer to the context this view belongs to. * @srf: Refcounted pointer to the surface pointed to by this view. From patchwork Wed Mar 3 13:43:13 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 392108 Delivered-To: patch@linaro.org Received: by 2002:a02:290e:0:0:0:0:0 with SMTP id p14csp5133734jap; Wed, 3 Mar 2021 05:45:01 -0800 (PST) X-Google-Smtp-Source: ABdhPJyNF+nFbTYZ09POdqkehB07jInuRJetbzQH5ISZtN0TeGOjR9073JEluO/ij7JHyvO0CfCd X-Received: by 2002:a17:90a:69c6:: with SMTP id s64mr9457689pjj.37.1614779101760; Wed, 03 Mar 2021 05:45:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614779101; cv=none; d=google.com; s=arc-20160816; b=SqrjVX32WiiY8CPVTJvBafI9zm3bjrzAf6NEcLG29UQ7fYrgZsVl66J8P2XJzOahhF mu9+oJPpTNPqUjG6Semq3Z0/xy+aeg+yUY1bzdmcFzmYOPx/ridPA371Z2fYRYVjsikS xVVWoEX5ZFzN/TL5AuMquUddDWWjTCJCEq05bI2vDUaHGyl5hqNaSPr7r56DDCya4Imj RrK7UQWObT8vPolAv3zX3u0hNSmNw01UKl3ND3Pqkh0v+uFKaa9HeSfYPl06apsOpI6T 1LMsXKoKXpBxFtzLl2E6y2YPBvSq9WbcXDb9Q8wSva4jsrHwLmImSdCOOY5Bq75/EFo0 VvxA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:cc:list-subscribe :list-help:list-post:list-archive:list-unsubscribe:list-id :precedence:mime-version:references:in-reply-to:message-id:date :subject:to:from:dkim-signature:delivered-to; bh=BmUcVej+n3zHZgazG6o6pyZsSkdRfMQvFkXkIM+aNkE=; b=zoXEEWPZddz0QY+8CNQFLdFe3xg944enspr0Knwt5li7Z+CQ5vmAcDaASx814chI+e FkV4AM/OK96dTa9sI9v8aaTUBFAQsJc0UJb/uwTDtbo1OOuBekK9nBIwRcF5+sBPy5mS tvZKeVxYwMen8FiNCzPc1Awop9r21GtV0Am1YNZahJrFV+y95+JW+hTapfvEypkI50A1 LEvY1wQGbKZmTLAHc4eN4OkEsxsphmu1XfdGrO7WTx0NAD2Iw/oQ/22P8lyVFvlWz0KH Eaa4cKS2gpEFx0niHxmpA104P4HJfeHVoAVCTRvM3vf2XTNJxoOj/0AZwg5rKxrlHCHg HxHw== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=KHHkfD9o; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 2610:10:20:722:a800:ff:fe36:1795 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from gabe.freedesktop.org (gabe.freedesktop.org. [2610:10:20:722:a800:ff:fe36:1795]) by mx.google.com with ESMTPS id p11si26415546pgh.514.2021.03.03.05.45.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Mar 2021 05:45:01 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 2610:10:20:722:a800:ff:fe36:1795 as permitted sender) client-ip=2610:10:20:722:a800:ff:fe36:1795; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=KHHkfD9o; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 2610:10:20:722:a800:ff:fe36:1795 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 72D3F6E980; Wed, 3 Mar 2021 13:44:27 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wm1-x330.google.com (mail-wm1-x330.google.com [IPv6:2a00:1450:4864:20::330]) by gabe.freedesktop.org (Postfix) with ESMTPS id 38A896E97D for ; Wed, 3 Mar 2021 13:44:25 +0000 (UTC) Received: by mail-wm1-x330.google.com with SMTP id o2so5884101wme.5 for ; Wed, 03 Mar 2021 05:44:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=7qqHnZY9azPURq/zESXDkivU/6fDs3hRcSOtRIxqVho=; b=KHHkfD9oMrDLgRGT9BRw5QflsrbtFF3LreHHXNdLoUenAu3jbytf104HvLb7XWSeoJ SVMtJgdIrBSIAa+e1T7fCS/BrqQEFmXq/pGqaG/qRCT4Q7/U4PKuGoQI5XV7TqfwzEM4 xhqFTH8QfJVdSkAgfFRES9Kuu4EwWaNLUWnD4JVXYvZhaGYMWphzo2zxOg0xlAGIsy24 nakblZCIrZoZjzEFp2tnyeLL/GC2ml/D70+t2ArnjLuPCHd8VaCfi0UwfN8mfFStkALw VoWDH1d7kIn49EJT0qO8PZSo/nMqEqbrR2n6UcOMgL/z3l1vgKv+qIydVp05R/0pkDB8 QFjQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=7qqHnZY9azPURq/zESXDkivU/6fDs3hRcSOtRIxqVho=; b=tGFw2cF5dbaSV5zkpW1NJTtyIZZRiTJelqKZBrnzr+n4SVxWObbmhSpsohZ7FgRnDR 5eWDQnfDHn18hixMcxyOe0e3tW5/DTghUCtfhsHc5holwbVpJq4Qykm1Qz79FXV3ueOn C3lgKzuVYkqnTLNmdjm8p7KKXzkHEsZSSvHjhW2oP8xUGlOeNy1jCkvnldPG0/yAN4L0 kXqzL7aFk9yWOEiRbT8Gw5XQuadFfcP0J9Ikg3KeyEeWmCsXpN1wYsSVGCMtI1+xZNMh 5C6AYt/yLRk7Rf/g62EXrcjzbkg/nIUlTC3aOsFRUJgu6bMbwx6TOQki0rKbr9feBE4T KEpg== X-Gm-Message-State: AOAM531QdkxQVdbIUgFwz4hfDlO/dp13vbmLb959Dd6dPkJXW6AMm9uI s3YquwywkahTCibIfasug9GXxw== X-Received: by 2002:a1c:f20e:: with SMTP id s14mr9055056wmc.104.1614779063880; Wed, 03 Mar 2021 05:44:23 -0800 (PST) Received: from dell.default ([91.110.221.155]) by smtp.gmail.com with ESMTPSA id w18sm6109524wrr.7.2021.03.03.05.44.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Mar 2021 05:44:23 -0800 (PST) From: Lee Jones To: lee.jones@linaro.org Subject: [PATCH 47/53] drm/vmwgfx/vmwgfx_binding: Provide some missing param descriptions and remove others Date: Wed, 3 Mar 2021 13:43:13 +0000 Message-Id: <20210303134319.3160762-48-lee.jones@linaro.org> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20210303134319.3160762-1-lee.jones@linaro.org> References: <20210303134319.3160762-1-lee.jones@linaro.org> MIME-Version: 1.0 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: David Airlie , Roland Scheidegger , linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, VMware Graphics Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" Fixes the following W=1 kernel build warning(s): drivers/gpu/drm/vmwgfx/vmwgfx_binding.c:340: warning: Function parameter or member 'shader_slot' not described in 'vmw_binding_add' drivers/gpu/drm/vmwgfx/vmwgfx_binding.c:340: warning: Function parameter or member 'slot' not described in 'vmw_binding_add' drivers/gpu/drm/vmwgfx/vmwgfx_binding.c:376: warning: Function parameter or member 'from' not described in 'vmw_binding_transfer' drivers/gpu/drm/vmwgfx/vmwgfx_binding.c:498: warning: Function parameter or member 'to' not described in 'vmw_binding_state_commit' drivers/gpu/drm/vmwgfx/vmwgfx_binding.c:498: warning: Excess function parameter 'ctx' description in 'vmw_binding_state_commit' drivers/gpu/drm/vmwgfx/vmwgfx_binding.c:498: warning: Excess function parameter 'scrubbed' description in 'vmw_binding_state_commit' drivers/gpu/drm/vmwgfx/vmwgfx_binding.c:520: warning: Function parameter or member 'cbs' not described in 'vmw_binding_rebind_all' drivers/gpu/drm/vmwgfx/vmwgfx_binding.c:520: warning: Excess function parameter 'ctx' description in 'vmw_binding_rebind_all' drivers/gpu/drm/vmwgfx/vmwgfx_binding.c:795: warning: Function parameter or member 'shader_slot' not described in 'vmw_emit_set_sr' Cc: VMware Graphics Cc: Roland Scheidegger Cc: Zack Rusin Cc: David Airlie Cc: Daniel Vetter Cc: dri-devel@lists.freedesktop.org Signed-off-by: Lee Jones Signed-off-by: Zack Rusin Link: https://patchwork.freedesktop.org/patch/msgid/20210115181601.3432599-5-lee.jones@linaro.org --- drivers/gpu/drm/vmwgfx/vmwgfx_binding.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) -- 2.27.0 _______________________________________________ dri-devel mailing list dri-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/dri-devel diff --git a/drivers/gpu/drm/vmwgfx/vmwgfx_binding.c b/drivers/gpu/drm/vmwgfx/vmwgfx_binding.c index 180f6dbc9460d..81f525a82b77f 100644 --- a/drivers/gpu/drm/vmwgfx/vmwgfx_binding.c +++ b/drivers/gpu/drm/vmwgfx/vmwgfx_binding.c @@ -330,6 +330,8 @@ static void vmw_binding_drop(struct vmw_ctx_bindinfo *bi) * * @cbs: Pointer to the context binding state tracker. * @bi: Information about the binding to track. + * @shader_slot: The shader slot of the binding. + * @slot: The slot of the binding. * * Starts tracking the binding in the context binding * state structure @cbs. @@ -367,6 +369,7 @@ void vmw_binding_add_uav_index(struct vmw_ctx_binding_state *cbs, uint32 slot, * vmw_binding_transfer: Transfer a context binding tracking entry. * * @cbs: Pointer to the persistent context binding state tracker. + * @from: Staged binding info built during execbuf * @bi: Information about the binding to track. * */ @@ -484,9 +487,8 @@ void vmw_binding_res_list_scrub(struct list_head *head) /** * vmw_binding_state_commit - Commit staged binding info * - * @ctx: Pointer to context to commit the staged binding info to. + * @to: Staged binding info area to copy into to. * @from: Staged binding info built during execbuf. - * @scrubbed: Transfer only scrubbed bindings. * * Transfers binding info from a temporary structure * (typically used by execbuf) to the persistent @@ -511,7 +513,7 @@ void vmw_binding_state_commit(struct vmw_ctx_binding_state *to, /** * vmw_binding_rebind_all - Rebind all scrubbed bindings of a context * - * @ctx: The context resource + * @cbs: Pointer to the context binding state tracker. * * Walks through the context binding list and rebinds all scrubbed * resources. @@ -789,6 +791,7 @@ static void vmw_collect_dirty_view_ids(struct vmw_ctx_binding_state *cbs, * vmw_binding_emit_set_sr - Issue delayed DX shader resource binding commands * * @cbs: Pointer to the context's struct vmw_ctx_binding_state + * @shader_slot: The shader slot of the binding. */ static int vmw_emit_set_sr(struct vmw_ctx_binding_state *cbs, int shader_slot) From patchwork Wed Mar 3 13:43:14 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 392109 Delivered-To: patch@linaro.org Received: by 2002:a02:290e:0:0:0:0:0 with SMTP id p14csp5133750jap; Wed, 3 Mar 2021 05:45:03 -0800 (PST) X-Google-Smtp-Source: ABdhPJwsfxnvfY1RhEdUMc9pYyoTTPwC4tzz6U8gAwY12Y0YAI24y5Enmk9WNZZ85FeDvl3LW0QO X-Received: by 2002:a17:902:7006:b029:e3:dd4d:85ac with SMTP id y6-20020a1709027006b02900e3dd4d85acmr25010512plk.41.1614779103553; Wed, 03 Mar 2021 05:45:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614779103; cv=none; d=google.com; s=arc-20160816; b=dMZVej+dYN5n8jN/AAtY6dDF3ZwTuRLD16Mq8wbZL5H+ILhZQepF8CrpR2G1x9EMq0 p7NE89JeWByiHx9MyvhnepH3gJQq+LdECz82qm4Qc1E4Ar5BKme0kgTP67bPili4/kov Scxg7LEC63hzjJJkYMzkCqJhSB7K+0vhwYjqpxzRzhsX8/GrF+HUiA4EyKyJGHdVbvyg kIzpF3EPr4FDiYYdtEqU2NwcnTOH+ScZtQQgO5zjhpP+nwEt04S9Al5rzneXMhK+aNP6 o14qOP+VuBQm8j3M6NxmqUnwt2DmD8F0MZgSuvFul8YFRdNegBB3yK+m+nvmlXad3S7M rnHQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:cc:list-subscribe :list-help:list-post:list-archive:list-unsubscribe:list-id :precedence:mime-version:references:in-reply-to:message-id:date :subject:to:from:dkim-signature:delivered-to; bh=1nfaNy/GtR/UO8gq5nAS/HAR4A0K7j/ixN04bVDXgmE=; b=ZZMpe75hb+kLaJLfcfTWYHtL7srWvC4KJAN4Fx12sHbqd19pP5oP9q2Cx10RnaplYa HSw1tOrrgNX4DJ44Md8BCay8uIlHackJRffR+XQGt6TCP6xH65S+QtCCARCD6WrX30Ii fhsRxIMldndtLxLrZsF0cwJywySlp3exnxOqdZSl7/S1fN7i5PurWcFXJ95umuZuRMsw Sq/IyfjwFeNlPj0PKtEu5K48L9EzRK1bk1Nblq174zKj2dXV8SFECk1b/V0kwYfD0xqv 5eJUWay7KPJvJxbgyKmaYQ9vTk/iuECMaCH7YiGzgBIpg9fX6p4thBpbqkJbZu3ZshEU fLrA== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=JBhtQCRK; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from gabe.freedesktop.org (gabe.freedesktop.org. [131.252.210.177]) by mx.google.com with ESMTPS id i3si5982681pjk.53.2021.03.03.05.45.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Mar 2021 05:45:03 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) client-ip=131.252.210.177; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=JBhtQCRK; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 915166E981; Wed, 3 Mar 2021 13:44:27 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wr1-x431.google.com (mail-wr1-x431.google.com [IPv6:2a00:1450:4864:20::431]) by gabe.freedesktop.org (Postfix) with ESMTPS id 31A466E983 for ; Wed, 3 Mar 2021 13:44:26 +0000 (UTC) Received: by mail-wr1-x431.google.com with SMTP id d11so23736239wrj.7 for ; Wed, 03 Mar 2021 05:44:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=H3xPEHi6egTkwvWXcCWYIyS0K3zaWAAbSzwMQ/qKgYI=; b=JBhtQCRKcqLPe0dwAMaSPsbnFi0wbQuCUn4xQf9Xb3MLfWa9Gekp03nTcRSi+Ab/+4 umFVmud0hLFrAqQlcj4BHxjvAb3WDfGHHr1ph2IViuFyrvlOe+0HHy5cZwlNjNsj2JWe CumSKeKBGrNyEpwGgKRtM7bifqHTKUspukU9gInkM1LspVA3xD+Lx2uGtaxgDfWc4vpP EkU9TQh2OqP0bvOkrAHO7jZhcjYEjJSyAGjKdhoX6ntx7DEdSqBMxl+/gBGPpXmJpyTD iXAR5/KdBwxlVrToW2OsLt2/arAH1yDev4SJGJd+7v0Zp8zIvVvzKlMpsKI0knh7wvK5 ww1A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=H3xPEHi6egTkwvWXcCWYIyS0K3zaWAAbSzwMQ/qKgYI=; b=Sg7OmM6iHd6prNS4PALXiqXGKFJT0H2uyTpcipivkHW8q/aoqY5yxHYdbNVOb1Nl7X Xz3deXRtkcDiKJEAUhyVc6Vezs3NWl/b8lPyJ9PbINl/DOSQQ+r3y4e5v8D5fRUf7wEk E6URZ/znrQ6+123G8SE0MRvhK7/O6sBXnOlQsfvwD41WcFVX8PoAljlwN5qe32zTCZtR +5c548c+TzG+dl+LVpWyHIs0WE2UcEEkrJugfKoBaXAGT7eO0I5hKEmw3+s2GTlhWmi/ yYAai5+KhHiJGbwtRE14faAXZ9oqxsEnHs2Pu03CqpmVqefTxnwIjY0SxuO0eu6s4B8L 2fhA== X-Gm-Message-State: AOAM531a3Nvo8BpMLVmF1e8nCKg94AZhTYzecE5QWVFyj6UeeI+Q7Gy1 WhhviUlGiZAjNdHCSNEZEpmqyQ== X-Received: by 2002:a5d:528f:: with SMTP id c15mr27394416wrv.142.1614779064899; Wed, 03 Mar 2021 05:44:24 -0800 (PST) Received: from dell.default ([91.110.221.155]) by smtp.gmail.com with ESMTPSA id w18sm6109524wrr.7.2021.03.03.05.44.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Mar 2021 05:44:24 -0800 (PST) From: Lee Jones To: lee.jones@linaro.org Subject: [PATCH 48/53] drm/vmwgfx/vmwgfx_msg: Fix misspelling of 'msg' Date: Wed, 3 Mar 2021 13:43:14 +0000 Message-Id: <20210303134319.3160762-49-lee.jones@linaro.org> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20210303134319.3160762-1-lee.jones@linaro.org> References: <20210303134319.3160762-1-lee.jones@linaro.org> MIME-Version: 1.0 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: David Airlie , Roland Scheidegger , linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, VMware Graphics Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" Fixes the following W=1 kernel build warning(s): drivers/gpu/drm/vmwgfx/vmwgfx_msg.c:261: warning: Function parameter or member 'msg' not described in 'vmw_send_msg' drivers/gpu/drm/vmwgfx/vmwgfx_msg.c:261: warning: Excess function parameter 'logmsg' description in 'vmw_send_msg' Cc: VMware Graphics Cc: Roland Scheidegger Cc: Zack Rusin Cc: David Airlie Cc: Daniel Vetter Cc: dri-devel@lists.freedesktop.org Signed-off-by: Lee Jones Signed-off-by: Zack Rusin Link: https://patchwork.freedesktop.org/patch/msgid/20210115181601.3432599-6-lee.jones@linaro.org --- drivers/gpu/drm/vmwgfx/vmwgfx_msg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.27.0 _______________________________________________ dri-devel mailing list dri-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/dri-devel diff --git a/drivers/gpu/drm/vmwgfx/vmwgfx_msg.c b/drivers/gpu/drm/vmwgfx/vmwgfx_msg.c index 15b5bde693242..609269625468d 100644 --- a/drivers/gpu/drm/vmwgfx/vmwgfx_msg.c +++ b/drivers/gpu/drm/vmwgfx/vmwgfx_msg.c @@ -253,7 +253,7 @@ static unsigned long vmw_port_hb_in(struct rpc_channel *channel, char *reply, * vmw_send_msg: Sends a message to the host * * @channel: RPC channel - * @logmsg: NULL terminated string + * @msg: NULL terminated string * * Returns: 0 on success */ From patchwork Wed Mar 3 13:43:15 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 392110 Delivered-To: patch@linaro.org Received: by 2002:a02:290e:0:0:0:0:0 with SMTP id p14csp5133774jap; Wed, 3 Mar 2021 05:45:05 -0800 (PST) X-Google-Smtp-Source: ABdhPJzOSu1Fi77HNijzluBpK4zF+0qHNVrXEjVybNrPl9FIzGLqF0X6hBXwyY6Yr237O5WFDG1S X-Received: by 2002:a65:5c42:: with SMTP id v2mr23366828pgr.339.1614779105060; Wed, 03 Mar 2021 05:45:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614779105; cv=none; d=google.com; s=arc-20160816; b=Y6+g5jKIEgA1t1EUyfZnoEhoVknNjCamW/niWVKU5quDfksz47G+uafH0EWr1buPBa 2saB1QyjA8cCZLPaWo8XFiduZy+gDFJqKVf7FfnVRbDrc0LagVdaomE5UmkQRccgkoqN KiNR/FOGBgvuseZk+8LFb2rnm8RSfIVTIE3RXq19ymOFTyPgNO15t5okExycZ2do4zvn B4nwzjpuQ3uhNLggd6fsI0wtJlWI94IemPwQp2LX1z2KhhwhPilCnvqtXv6WPsr8dyse wHT1xDR5RBgcM7KRafi3o3/RVxWvfdgY1MMGvLEnTAw3iIuLcXXatev47/1gwZcYoMSS a3Bg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:cc:list-subscribe :list-help:list-post:list-archive:list-unsubscribe:list-id :precedence:mime-version:references:in-reply-to:message-id:date :subject:to:from:dkim-signature:delivered-to; bh=4l9X6+kKdpAGM0o5mHEs/5yXE+X4sfYm8E2hI8Tk6Hs=; b=UcMXfWMKbkuotemanhl5y/Nt40ba0EEWUYJMDhQQgYqi24l3wK6erI1+Ny94IKa3g7 PLJF+glpU3qciTxeAz5a/pw2fVD1yVibGBTbJkI0GEXLGp0Npn9OOV3Z1lQZdOxHIdGp FT2tV8gTcKfqjezNpqbffq1ZI0J7/dYejY70wRfN1rBxPCFAdbH2zWPvh9ja3N9XM9Je gvgxfxPmMiGVH9XgZxe8uuxkyaaEmIvsztRcdBS8YOWDhGmd9eqwRbQAkqXz4pjw3J6c I/m9hRUziL3BGSfGoyLY/0gGSEBmVXncIXM1SlD/z31vJA7AzMQE5n8o8HSjRak1HAmT tOPg== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=thFldj+N; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 2610:10:20:722:a800:ff:fe36:1795 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from gabe.freedesktop.org (gabe.freedesktop.org. [2610:10:20:722:a800:ff:fe36:1795]) by mx.google.com with ESMTPS id z17si24052394plo.12.2021.03.03.05.45.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Mar 2021 05:45:05 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 2610:10:20:722:a800:ff:fe36:1795 as permitted sender) client-ip=2610:10:20:722:a800:ff:fe36:1795; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=thFldj+N; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 2610:10:20:722:a800:ff:fe36:1795 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 940266E983; Wed, 3 Mar 2021 13:44:28 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wr1-x42c.google.com (mail-wr1-x42c.google.com [IPv6:2a00:1450:4864:20::42c]) by gabe.freedesktop.org (Postfix) with ESMTPS id 27CDA6E97D for ; Wed, 3 Mar 2021 13:44:27 +0000 (UTC) Received: by mail-wr1-x42c.google.com with SMTP id u16so5734876wrt.1 for ; Wed, 03 Mar 2021 05:44:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=iycuw02Ze2lHNSA405Xw+zB9o0y7L/MHkkRIkUAmng8=; b=thFldj+NR7/yJQFlx5CmFrSDIqztiJhVtzEIncot0oT9IuZefM8LS0OIhOXMeciq+1 pt7Ymt7WJXTsvEKX/HUnsWKzPuFY48/YLBIW3LpFe+iOsB+uzaUF+EMcvtGogOomdHXM teioDoBTjwhsvvC5sObP3W4piv5q9tiMO4unVsGZV652CmmLfL+V0m3cSBas82wBMgaA w6NzkVxZ/IP+NegS6rg0+alFY9+A1Nfbdnj6glWZOyQ45oMiB/EfaNWGiSAUOoMwHENy 08FpX3SzMS2AdhNEaofx7ToAK0fWTQNl/Y3S1B/zlB2WyGJGfUuB7Yj14FiKCN40Tbfj VaZQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=iycuw02Ze2lHNSA405Xw+zB9o0y7L/MHkkRIkUAmng8=; b=Q1Fue1iAbPNDr3kWxr1lki2T3zo6x/2NM3Z/O3hWIXS9Mr3SRXPOEXwRQq80HK8KpX TGl1UgQyViKFdo1lbJ5dT6sRs5jxEoRYatZfQ+o4p+4AuF76AntfE3r3tAyGwaSoRCkB FwhrOPkn7xwlBCUBdbbb2Nxk7391fdRL7YhPJPNlVw2BALdCiH110AtG/8lCvgv5NWQN mbw9B9c9V/C4jFmu93fIBgS+BFn/MHIwTfRCb+Gf9lyUCzFgGd84yGGRWAlpp9mtkS7E /4w+QMZusdqzO+NwYuqydXG2skOYObUfwlSVuvKq9mFiHj/J4NaHInXpCrq6iMN93TCD HYdw== X-Gm-Message-State: AOAM531AELrkCeIHW5mMeQDawX4gmLNOXE55EbFG49JWn8XXf1G4mwko SczBDritR688ePn+ruHaLC7TFg== X-Received: by 2002:adf:fec5:: with SMTP id q5mr16916292wrs.43.1614779065836; Wed, 03 Mar 2021 05:44:25 -0800 (PST) Received: from dell.default ([91.110.221.155]) by smtp.gmail.com with ESMTPSA id w18sm6109524wrr.7.2021.03.03.05.44.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Mar 2021 05:44:25 -0800 (PST) From: Lee Jones To: lee.jones@linaro.org Subject: [PATCH 49/53] drm/vmwgfx/vmwgfx_blit: Add description for 'vmw_bo_cpu_blit's 'diff' param Date: Wed, 3 Mar 2021 13:43:15 +0000 Message-Id: <20210303134319.3160762-50-lee.jones@linaro.org> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20210303134319.3160762-1-lee.jones@linaro.org> References: <20210303134319.3160762-1-lee.jones@linaro.org> MIME-Version: 1.0 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: David Airlie , Roland Scheidegger , linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, VMware Graphics Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" Fixes the following W=1 kernel build warning(s): drivers/gpu/drm/vmwgfx/vmwgfx_blit.c:452: warning: Function parameter or member 'diff' not described in 'vmw_bo_cpu_blit' Cc: VMware Graphics Cc: Roland Scheidegger Cc: Zack Rusin Cc: David Airlie Cc: Daniel Vetter Cc: dri-devel@lists.freedesktop.org Signed-off-by: Lee Jones Signed-off-by: Zack Rusin Link: https://patchwork.freedesktop.org/patch/msgid/20210115181601.3432599-8-lee.jones@linaro.org --- drivers/gpu/drm/vmwgfx/vmwgfx_blit.c | 1 + 1 file changed, 1 insertion(+) -- 2.27.0 _______________________________________________ dri-devel mailing list dri-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/dri-devel diff --git a/drivers/gpu/drm/vmwgfx/vmwgfx_blit.c b/drivers/gpu/drm/vmwgfx/vmwgfx_blit.c index 9f2779ddcf083..118db24eb756c 100644 --- a/drivers/gpu/drm/vmwgfx/vmwgfx_blit.c +++ b/drivers/gpu/drm/vmwgfx/vmwgfx_blit.c @@ -431,6 +431,7 @@ static int vmw_bo_cpu_blit_line(struct vmw_bo_blit_line_data *d, * @src_stride: Source stride in bytes. * @w: Width of blit. * @h: Height of blit. + * @diff: The struct vmw_diff_cpy used to track the modified bounding box. * return: Zero on success. Negative error value on failure. Will print out * kernel warnings on caller bugs. * From patchwork Wed Mar 3 13:43:16 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 392111 Delivered-To: patch@linaro.org Received: by 2002:a02:290e:0:0:0:0:0 with SMTP id p14csp5133792jap; Wed, 3 Mar 2021 05:45:06 -0800 (PST) X-Google-Smtp-Source: ABdhPJxggke5LyXGv36oQofUQ2ieax8hjY4UcJUao8tX/I4HyFhdCLAdEtnYhKyq1NFTE57wvuZ8 X-Received: by 2002:a62:6585:0:b029:1b9:d8d9:1af2 with SMTP id z127-20020a6265850000b02901b9d8d91af2mr3324039pfb.17.1614779106807; Wed, 03 Mar 2021 05:45:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614779106; cv=none; d=google.com; s=arc-20160816; b=HcItYAij+UuA6W1ywhVI1Obhdfs6hHdSwAVLj3qN7pTsrqsLY9VSTGdc3ozOfqgNJD vTxRrgIaZ5//ZiwGMAwG+grneyuVfvGYHUYq7veW8sL75adXTscMDXCNKNDBN7Kj8vGv PECvWCJzkGl3iD9FEBZV7bC72DWQKoJUKPB1glt1mubCqKfhMRSWMBy376XjClyCRurR O+yqPbkaCE2DlOV7jUMHiabhTjUXY5TO2gALqlKgQD+tOXjOiQjPQXpLbsHlZRE+b17s xikwV/a1uuyCIWweOuraXDyqV7nMU+aCRSpoIkhzrfV8Df6NtqUCBzEoVuFMJKMf2HQk 2mPA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:cc:list-subscribe :list-help:list-post:list-archive:list-unsubscribe:list-id :precedence:mime-version:references:in-reply-to:message-id:date :subject:to:from:dkim-signature:delivered-to; bh=lj4kA3uNiIZa5QMOMgUCTIfROkXsolwstcDt3zBm/Ww=; b=NCLuLsOe7QF1be1p7u1g5w9cOr3P7SwGyNDam00+/LCmJYhC0crIeQMH1IaNfDQekz UjWnSjyZNWrrQisSSe4vrUoyQ75JklKIf2Dhdrs493KAZmejuSbnsJ3zimP0Kx02YAOk QWt7dQM4OItY2xj2IMTN/NpMP3cAM3Cs1Gnd4p4oW7P9oU0IflIfQ6q7+xiOROIykLWU kbXuWf7PoX3kqCxYRIsokdodcX6v9DFAKcESB0pCcz5XtiUtqKytOUUFT4YcfINc1rDf cZAYupJdCiTRCySJ5q1PO9pGTobPoHGKIpWJcoO1USIH4o6PHGWHNihOdHFGynw8kzdQ p/MQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=iRy5Bujr; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 2610:10:20:722:a800:ff:fe36:1795 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from gabe.freedesktop.org (gabe.freedesktop.org. [2610:10:20:722:a800:ff:fe36:1795]) by mx.google.com with ESMTPS id lk13si6118178pjb.85.2021.03.03.05.45.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Mar 2021 05:45:06 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 2610:10:20:722:a800:ff:fe36:1795 as permitted sender) client-ip=2610:10:20:722:a800:ff:fe36:1795; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=iRy5Bujr; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 2610:10:20:722:a800:ff:fe36:1795 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 20CC16E97D; Wed, 3 Mar 2021 13:44:29 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wr1-x42a.google.com (mail-wr1-x42a.google.com [IPv6:2a00:1450:4864:20::42a]) by gabe.freedesktop.org (Postfix) with ESMTPS id 255056E97D for ; Wed, 3 Mar 2021 13:44:28 +0000 (UTC) Received: by mail-wr1-x42a.google.com with SMTP id f12so19933381wrx.8 for ; Wed, 03 Mar 2021 05:44:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=sz9Cp9ck6lJ+tMgVjEzPh2tJa07UDmiPup+Dgs8FC3o=; b=iRy5BujrVB9UEC5KMSnntpLfMBSYx0sVYaWNWZtKRMbnfDlkW/xumxxReE2x6f5B+j C0YnAMlW/JaMuXcrib4m8rvnxbyOZ36xtoSET7LYyASMvRURQhfJ7pf8bl+g61GAK/np twPqCvB89X+kHDseXK0/0AcK3ZFQREgadEuf4s6F5u7rpsa9yGgbVByv8gCdVwye7pZR eW4VH77/+ncFbnovCOdTWhN12gKBWETnnMn3yqNib52JMaMAjMggvud4liml0Oznjr6H NUrXh02BQETuPOpXgl6++cFz53olwrsHgUlUBbSl/5PfOJnaoV20ZB2d0nKg42s3n9Mg 3MGg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=sz9Cp9ck6lJ+tMgVjEzPh2tJa07UDmiPup+Dgs8FC3o=; b=emsSEX0E3OSxX04nE5AILzdCQv1/9ee1JXY5rmQPOuKg4FmXVBrFWQSTso7QKgySCU Ilr2MIHQY/cbKey1sdabhDIt6xDga8eZrkPbJwesS7hl9IWBdfpCdpsHXN5F5GA++faR sCAJzH4Iixv4+BVQaLAzP8dKA/4S5lDOqSgjl3zHifW4NNSvMQW+5giazdRSxmt6TLFV ii6ev6B+iSi5+REyI1YuXb7kS3oA/bbXra/fwFym/fSD9ycvD9eP20irFAsbTHmOuHFA FYQf22IEfEiv93xM7MxJ1ykqaRxdC6waTGTVrKIqz+177I4tLDw9/MoQPUgTA4jnm6kt eN6Q== X-Gm-Message-State: AOAM5327HPHS9URjQyioD+Po3kef0/UsxEbtnkTBOLM7tIUbgVBSIOJ/ n0ZMQr+RGdDnMGzEcYNaTkRjrg== X-Received: by 2002:a05:6000:18a:: with SMTP id p10mr27897680wrx.166.1614779066850; Wed, 03 Mar 2021 05:44:26 -0800 (PST) Received: from dell.default ([91.110.221.155]) by smtp.gmail.com with ESMTPSA id w18sm6109524wrr.7.2021.03.03.05.44.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Mar 2021 05:44:26 -0800 (PST) From: Lee Jones To: lee.jones@linaro.org Subject: [PATCH 50/53] drm/vmwgfx/vmwgfx_validation: Add some missing struct member/function param descriptions Date: Wed, 3 Mar 2021 13:43:16 +0000 Message-Id: <20210303134319.3160762-51-lee.jones@linaro.org> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20210303134319.3160762-1-lee.jones@linaro.org> References: <20210303134319.3160762-1-lee.jones@linaro.org> MIME-Version: 1.0 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: David Airlie , Roland Scheidegger , linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, VMware Graphics Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" Fixes the following W=1 kernel build warning(s): drivers/gpu/drm/vmwgfx/vmwgfx_validation.c:85: warning: Function parameter or member 'dirty' not described in 'vmw_validation_res_node' drivers/gpu/drm/vmwgfx/vmwgfx_validation.c:85: warning: Function parameter or member 'dirty_set' not described in 'vmw_validation_res_node' drivers/gpu/drm/vmwgfx/vmwgfx_validation.c:216: warning: Function parameter or member 'res' not described in 'vmw_validation_find_res_dup' drivers/gpu/drm/vmwgfx/vmwgfx_validation.c:216: warning: Excess function parameter 'vbo' description in 'vmw_validation_find_res_dup' Cc: VMware Graphics Cc: Roland Scheidegger Cc: Zack Rusin Cc: David Airlie Cc: Daniel Vetter Cc: dri-devel@lists.freedesktop.org Signed-off-by: Lee Jones Signed-off-by: Zack Rusin Link: https://patchwork.freedesktop.org/patch/msgid/20210115181601.3432599-9-lee.jones@linaro.org --- drivers/gpu/drm/vmwgfx/vmwgfx_validation.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) -- 2.27.0 _______________________________________________ dri-devel mailing list dri-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/dri-devel diff --git a/drivers/gpu/drm/vmwgfx/vmwgfx_validation.c b/drivers/gpu/drm/vmwgfx/vmwgfx_validation.c index f2e2bf6d1421f..e7570f422400d 100644 --- a/drivers/gpu/drm/vmwgfx/vmwgfx_validation.c +++ b/drivers/gpu/drm/vmwgfx/vmwgfx_validation.c @@ -48,7 +48,6 @@ struct vmw_validation_bo_node { u32 as_mob : 1; u32 cpu_blit : 1; }; - /** * struct vmw_validation_res_node - Resource validation metadata. * @head: List head for the resource validation list. @@ -64,6 +63,8 @@ struct vmw_validation_bo_node { * @first_usage: True iff the resource has been seen only once in the current * validation batch. * @reserved: Whether the resource is currently reserved by this process. + * @dirty_set: Change dirty status of the resource. + * @dirty: Dirty information VMW_RES_DIRTY_XX. * @private: Optionally additional memory for caller-private data. * * Bit fields are used since these structures are allocated and freed in @@ -205,7 +206,7 @@ vmw_validation_find_bo_dup(struct vmw_validation_context *ctx, * vmw_validation_find_res_dup - Find a duplicate resource entry in the * validation context's lists. * @ctx: The validation context to search. - * @vbo: The buffer object to search for. + * @res: Reference counted resource pointer. * * Return: Pointer to the struct vmw_validation_bo_node referencing the * duplicate, or NULL if none found. From patchwork Wed Mar 3 13:43:17 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 392112 Delivered-To: patch@linaro.org Received: by 2002:a02:290e:0:0:0:0:0 with SMTP id p14csp5133801jap; Wed, 3 Mar 2021 05:45:08 -0800 (PST) X-Google-Smtp-Source: ABdhPJyc0FLNUPNOuVav5Ne3fN2DtcfxXIealagVY0FwXOSSAmMC1M8IeEZAzs5uwja9v3EnD6Gm X-Received: by 2002:a63:1845:: with SMTP id 5mr23296041pgy.244.1614779108633; Wed, 03 Mar 2021 05:45:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614779108; cv=none; d=google.com; s=arc-20160816; b=In/pgiuOtp7ss7OVR69fNx810ACeCGfo7XoTVnpeociusAB5+Z3pSETafeWVWxlwJA qV4QCXA7w+aPAZoJrm1J+cpSmGwKhrLEyO9Z9mfc5NbOrl/QYZRBkf6AqwASHp+eanJ8 iIk7y38Q4Boc3inCI6aBKZKZf9jamsM+4HWbFyX3nrVuT80KvfcYBli7fdFbOTMkX6JJ u0cDUQY38A5U3PXqTanjptdVX59z84KMDG5C79bEf1hPoVc2rw2xiIpoeK92rpGe05Fr OzrM6mvKWus3RSpvB0P/gVxY3ZKQMnVZAHbvNocH+s+qwHk463IddaxCCAIylpX0jJGc 29Rg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:cc:list-subscribe :list-help:list-post:list-archive:list-unsubscribe:list-id :precedence:mime-version:references:in-reply-to:message-id:date :subject:to:from:dkim-signature:delivered-to; bh=rjZgejmCzm9XZNgAJ5ZPzW17PlKnDS5Dqpc61S7mYW8=; b=O0MSRJzQpgVH+tgSMqWLBTiOY9NYZkhGbTiRYLBZbEMrwk509+zFoKVeHAwSnygeSQ XucpCEGAK0Hm8v2J3BcrB9s6QzuOTOCa9TQYs2ldnWlH4cw8EqRXvFAKeptXkoeAtvBI VwE9uHXQ5/LlbAbsPvGzA/3dQixok+QgtKJoeKjry2y5U2vE/5n9mEE7Tm1KV0ld5/hR Ybep1fU6zCkbZNMSnydKMzAqo73T9MB7A3NQaoVnxsL59MnR9ZfgH5iRRm6+30zXv7wl vdDWkSZsgwC5PMmn7ZQRrLmk/taTwimM+ZEHJvCF/o4X3x6HM9ljZSikFEuYXSFVyGF9 MaYw== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=HffZHJVg; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from gabe.freedesktop.org (gabe.freedesktop.org. [131.252.210.177]) by mx.google.com with ESMTPS id 15si6108877pgp.50.2021.03.03.05.45.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Mar 2021 05:45:08 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) client-ip=131.252.210.177; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=HffZHJVg; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id A959F6E988; Wed, 3 Mar 2021 13:44:31 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wr1-x433.google.com (mail-wr1-x433.google.com [IPv6:2a00:1450:4864:20::433]) by gabe.freedesktop.org (Postfix) with ESMTPS id 567596E986 for ; Wed, 3 Mar 2021 13:44:29 +0000 (UTC) Received: by mail-wr1-x433.google.com with SMTP id u14so23751031wri.3 for ; Wed, 03 Mar 2021 05:44:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=9a8uG82AXGJJSEoRJJovLig/Ib2BpsFPbqufrjPoPFE=; b=HffZHJVgQU5P83AadrIRV6kXhbhGJisP4W7b8otP0l/09h8RopTD8AL57+IPoMuxWH js+ROx/MDvMANLCUB9CyNR/x2FKJwnDELJQnh4+ac0bXc31jeBOfT3ewtZg/8yvpnmDp qIE4t59LPglLuXZo0+53Y3BK7gkBowNzY8yiDgfrBlnm91X9JixLzZFxO9uFBR1I/kj5 OvOsE1aUyrTuj4+Amvtt+mc8m6dfwxBPwty2SEvO6mACifZA+bcWDtAPiHK9hKVipUrs HzzmA9SYmLPC2T+qee/iCGuZNUkVVyeADeW1TA86UxlHyJ5EOoQLVC2KdYPFG7Whf7td inwQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=9a8uG82AXGJJSEoRJJovLig/Ib2BpsFPbqufrjPoPFE=; b=auCqlhDlf4MrG7MUG/q7CYkn83Rk4t80pi+5D+KhHkTpZShhzI3DgrUMRRzH1lYy+Q wnv3fCPGNs7kpvwhcoHEpKvutEih2dkzgckrlapHXlmQGJyLNdYjzWWc36fpjQhf3OOQ m3wekoQAKzZyiJU6HqTMsnyvgS7i/SyZNxFk6+C3WxK8BvbsCDDYonfpWaIrdmfVi1kF wz90nZYqi4DtNdffL83d/iIP4Ksxq07pOq5pxbgpdkgVnehj7Db8oFUE+LZOZdhhgALu yQCtwqUppU/PPQJ4rocN2Aj52VKJOSvICfFYG2yWwR6RX76nnfZ9biGci9kfjkGlzlK3 kjJg== X-Gm-Message-State: AOAM532c/5sBOjtQfVCMewpyTSFzsYm3oY73OEpdE/93zpot4mK2o9uo uVNoPVk/Zow+IyMoAMQzFfEwTA== X-Received: by 2002:adf:9bcf:: with SMTP id e15mr26672762wrc.276.1614779067956; Wed, 03 Mar 2021 05:44:27 -0800 (PST) Received: from dell.default ([91.110.221.155]) by smtp.gmail.com with ESMTPSA id w18sm6109524wrr.7.2021.03.03.05.44.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Mar 2021 05:44:27 -0800 (PST) From: Lee Jones To: lee.jones@linaro.org Subject: [PATCH 51/53] drm/vmwgfx/ttm_object: Demote half-assed headers and fix-up another Date: Wed, 3 Mar 2021 13:43:17 +0000 Message-Id: <20210303134319.3160762-52-lee.jones@linaro.org> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20210303134319.3160762-1-lee.jones@linaro.org> References: <20210303134319.3160762-1-lee.jones@linaro.org> MIME-Version: 1.0 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: David Airlie , Roland Scheidegger , linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, =?utf-8?q?Christian_K=C3=B6nig?= , linaro-mm-sig@lists.linaro.org, VMware Graphics , Dave Airlie , Rob Clark , linux-media@vger.kernel.org Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" Fixes the following W=1 kernel build warning(s): drivers/gpu/drm/vmwgfx/ttm_object.c:60: error: Cannot parse struct or union! drivers/gpu/drm/vmwgfx/ttm_object.c:97: warning: Function parameter or member 'mem_glob' not described in 'ttm_object_device' drivers/gpu/drm/vmwgfx/ttm_object.c:97: warning: Function parameter or member 'ops' not described in 'ttm_object_device' drivers/gpu/drm/vmwgfx/ttm_object.c:97: warning: Function parameter or member 'dmabuf_release' not described in 'ttm_object_device' drivers/gpu/drm/vmwgfx/ttm_object.c:97: warning: Function parameter or member 'dma_buf_size' not described in 'ttm_object_device' drivers/gpu/drm/vmwgfx/ttm_object.c:97: warning: Function parameter or member 'idr' not described in 'ttm_object_device' drivers/gpu/drm/vmwgfx/ttm_object.c:128: warning: Function parameter or member 'rcu_head' not described in 'ttm_ref_object' drivers/gpu/drm/vmwgfx/ttm_object.c:128: warning: Function parameter or member 'tfile' not described in 'ttm_ref_object' drivers/gpu/drm/vmwgfx/ttm_object.c:582: warning: Function parameter or member 'dmabuf' not described in 'get_dma_buf_unless_doomed' drivers/gpu/drm/vmwgfx/ttm_object.c:582: warning: Excess function parameter 'dma_buf' description in 'get_dma_buf_unless_doomed' Cc: VMware Graphics Cc: Roland Scheidegger Cc: Zack Rusin Cc: David Airlie Cc: Daniel Vetter Cc: Sumit Semwal Cc: "Christian König" Cc: Dave Airlie Cc: Rob Clark Cc: dri-devel@lists.freedesktop.org Cc: linux-media@vger.kernel.org Cc: linaro-mm-sig@lists.linaro.org Signed-off-by: Lee Jones Signed-off-by: Zack Rusin Link: https://patchwork.freedesktop.org/patch/msgid/20210115181601.3432599-10-lee.jones@linaro.org --- drivers/gpu/drm/vmwgfx/ttm_object.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/gpu/drm/vmwgfx/ttm_object.c b/drivers/gpu/drm/vmwgfx/ttm_object.c index 0fe869d0fad12..b3fdc630497cb 100644 --- a/drivers/gpu/drm/vmwgfx/ttm_object.c +++ b/drivers/gpu/drm/vmwgfx/ttm_object.c @@ -73,7 +73,7 @@ struct ttm_object_file { struct kref refcount; }; -/** +/* * struct ttm_object_device * * @object_lock: lock that protects the object_hash hash table. @@ -96,7 +96,7 @@ struct ttm_object_device { struct idr idr; }; -/** +/* * struct ttm_ref_object * * @hash: Hash entry for the per-file object reference hash. @@ -568,7 +568,7 @@ void ttm_object_device_release(struct ttm_object_device **p_tdev) /** * get_dma_buf_unless_doomed - get a dma_buf reference if possible. * - * @dma_buf: Non-refcounted pointer to a struct dma-buf. + * @dmabuf: Non-refcounted pointer to a struct dma-buf. * * Obtain a file reference from a lookup structure that doesn't refcount * the file, but synchronizes with its release method to make sure it has From patchwork Wed Mar 3 13:43:18 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 392113 Delivered-To: patch@linaro.org Received: by 2002:a02:290e:0:0:0:0:0 with SMTP id p14csp5133829jap; Wed, 3 Mar 2021 05:45:10 -0800 (PST) X-Google-Smtp-Source: ABdhPJzVCYIY2CpWT64CFgThaV/jFTlP3QfZEz+TRsQaH0mFHQ8pntd5V8vpBWOkyrGpTMlMuIpS X-Received: by 2002:a17:903:2301:b029:e4:9026:4c7b with SMTP id d1-20020a1709032301b02900e490264c7bmr8184650plh.76.1614779110480; Wed, 03 Mar 2021 05:45:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614779110; cv=none; d=google.com; s=arc-20160816; b=ZslzTT9sq2zYrpaH+0lTJuEUimSbHYWAuSh5sDPYCpI/QqtRPbaUfhJ4aN84r/FAMS 4QZn6f3Qu6ejQFBJbKsPcKfYJBkqz3/HfxuxReDvXG7JGHSJzauT6uX66AXmTd/Nu/vh O0JYwslFi76goZkCtMv0uh6kD7K4aAL0dsfgYzW0mR6dmDLwJjmckbGa8DT/NkTQ+sku P5Jrl2uuC1sucZs37mTGBtBKaJVrMvKdacPjh7rs7yU5QXa121D4Lmjt5VnIQhGRneHe XxJUrhwpVeAS14BRqIxpmp8Ez+twkDLZ7ovQD+Vsm9GxC9cCNJjIsOtlA/NLcp4q6P2T o27A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:cc:list-subscribe :list-help:list-post:list-archive:list-unsubscribe:list-id :precedence:mime-version:references:in-reply-to:message-id:date :subject:to:from:dkim-signature:delivered-to; bh=z4IcAiRoT8Q3+jgdGIOH611m7ZyncvN2MEIIsD/DOSY=; b=xxUjwdwvsx76zigfcHPt5dvGZL649/Aie3TwGGFfHbS49njbhqCmi164hvMRYIrZNb ODf35uttfoh9yrmCbxi809Wc8UKUL1PAEsBIAyk8oOcdyh2Ch1WiHQskCtHNiKcC5M7i wJTgR1ibJ4VNUxtmIsnENYpuCDpb1F/4Y8LX0wNHeNmpEdgUMNwN0f8enT90alDb2L4l wn1QBhM0Cv5NHF2Po1Z4QcQIXYvXebcW5/BC9vuXslvfioAESUILkax+pv4DqifwOZNh 16zPbj53y60irTmcX0mh//7dawVLFIiEw8xNVlXpD6gz3mpQmVYfhcAHtuWQR92namGK E6Rw== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=IwKQ0n8S; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from gabe.freedesktop.org (gabe.freedesktop.org. [131.252.210.177]) by mx.google.com with ESMTPS id t33si22497552pfg.82.2021.03.03.05.45.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Mar 2021 05:45:10 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) client-ip=131.252.210.177; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=IwKQ0n8S; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id D2E216E985; Wed, 3 Mar 2021 13:44:31 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wr1-x436.google.com (mail-wr1-x436.google.com [IPv6:2a00:1450:4864:20::436]) by gabe.freedesktop.org (Postfix) with ESMTPS id 510766E988 for ; Wed, 3 Mar 2021 13:44:30 +0000 (UTC) Received: by mail-wr1-x436.google.com with SMTP id b18so17254757wrn.6 for ; Wed, 03 Mar 2021 05:44:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=UZJKNhLRXc9aoEUlg60mpCU3bbdn2u+HfyOeJ90k/g4=; b=IwKQ0n8S1aPrrgbMmJrQkxt9jO0zGLong8mRdLUcm4bLTCRQCscWGXmbesP2pAaCj1 KVQvWMt7U2Bh4XLHxlmDHJdRw510PtfXw1U0vG3Js+p2DL0DRvmm8YKtfVuQS5Us/3v+ Id6LAkTfKW7yFddEx3M0+VzuBlePAZ0t+pzxJb/fRVoewrv5/U7PzFAwW4vBzmlsFU/V KZW8MFmUxaJ8fVujnwvdDa/2ht6IQ5yvOcXqYsljYx1sV1tKc9pKecEr5Chw8INcqHi5 LBvh9ixQF6gSYz0Qxw/b1aCqym2pCLWTi68wISXhKkqlXr2+hgcyf0bFjPuPVOs8G03E 6FqA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=UZJKNhLRXc9aoEUlg60mpCU3bbdn2u+HfyOeJ90k/g4=; b=JQACXmiZewts5ZPH/JDEqUTfNLqgxskEUdMRY3RimD/vZxoDbNnrs+5DQzxhqlhg8Z kl27qmcmMNOqlC0PBqJiHnyXZw8rMSkq2KHL3aNqZXPFVXRDFIw0UIryplySsVi2lP9X aclvA6DcZHOTvJDOYMjwHna6xzxSOqp4sL+YFvANEY8yJpbAQiv7FQVXjw4j9S+TNbzD H/t5bpSygP6fxJbhvJxZBkYql77oMFAuaSFndqXsJOdsIgRnCEId8g1zIf9s2v8khpbz 1E4vnxXJdy06VWqx570NNVHbW4vSNNu4PMWjGApf6xqU2N6eOXmNCjLLb68oqEO9BveD +n6Q== X-Gm-Message-State: AOAM5326HZ0j8qvtiXyDE/erKw1bVEpE7yxAR/Yhsoyr8J1VyI1HqgZ/ zZvN5rJK62IpparDj6RQuIXiig== X-Received: by 2002:a5d:570c:: with SMTP id a12mr27653085wrv.209.1614779069069; Wed, 03 Mar 2021 05:44:29 -0800 (PST) Received: from dell.default ([91.110.221.155]) by smtp.gmail.com with ESMTPSA id w18sm6109524wrr.7.2021.03.03.05.44.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Mar 2021 05:44:28 -0800 (PST) From: Lee Jones To: lee.jones@linaro.org Subject: [PATCH 52/53] drm/vmwgfx/vmwgfx_thp: Add description for 'vmw_thp_manager's member 'manager' Date: Wed, 3 Mar 2021 13:43:18 +0000 Message-Id: <20210303134319.3160762-53-lee.jones@linaro.org> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20210303134319.3160762-1-lee.jones@linaro.org> References: <20210303134319.3160762-1-lee.jones@linaro.org> MIME-Version: 1.0 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: David Airlie , Roland Scheidegger , linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, VMware Graphics Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" Fixes the following W=1 kernel build warning(s): drivers/gpu/drm/vmwgfx/vmwgfx_thp.c:21: warning: Function parameter or member 'manager' not described in 'vmw_thp_manager' Cc: VMware Graphics Cc: Roland Scheidegger Cc: Zack Rusin Cc: David Airlie Cc: Daniel Vetter Cc: dri-devel@lists.freedesktop.org Signed-off-by: Lee Jones Signed-off-by: Zack Rusin Link: https://patchwork.freedesktop.org/patch/msgid/20210115181601.3432599-11-lee.jones@linaro.org --- drivers/gpu/drm/vmwgfx/vmwgfx_thp.c | 1 + 1 file changed, 1 insertion(+) -- 2.27.0 _______________________________________________ dri-devel mailing list dri-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/dri-devel diff --git a/drivers/gpu/drm/vmwgfx/vmwgfx_thp.c b/drivers/gpu/drm/vmwgfx/vmwgfx_thp.c index e8e79de255cf7..eb63cbe64909d 100644 --- a/drivers/gpu/drm/vmwgfx/vmwgfx_thp.c +++ b/drivers/gpu/drm/vmwgfx/vmwgfx_thp.c @@ -11,6 +11,7 @@ /** * struct vmw_thp_manager - Range manager implementing huge page alignment * + * @manager: TTM resource manager. * @mm: The underlying range manager. Protected by @lock. * @lock: Manager lock. */ From patchwork Wed Mar 3 13:43:19 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 392114 Delivered-To: patch@linaro.org Received: by 2002:a02:290e:0:0:0:0:0 with SMTP id p14csp5133872jap; Wed, 3 Mar 2021 05:45:12 -0800 (PST) X-Google-Smtp-Source: ABdhPJySFC9PwWKUJzHN51zpduglHsIIY/TPdGERgAlR13gm66cqo7rnflXd6QCpqb/Nc3xIZoog X-Received: by 2002:a17:90b:947:: with SMTP id dw7mr9798357pjb.178.1614779112779; Wed, 03 Mar 2021 05:45:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614779112; cv=none; d=google.com; s=arc-20160816; b=JIdfM1oFBeg3q3ER+RL7H0AKg4/uGDqFqahxwbauwkPqsJLbHb1GqQZhkYPyEbCZ49 e+RPUYq/sa8Mb+wf9GGLl15z8q+hjw71smEufeVIcL9VT8ztgDh961kikw1iMBAsxota 5Ak3CieLiaobsxMyHQsKqszGyVLZb+iGRhSMH7+oinDmz5IVLuAmnPe2X5AuckUrkHd+ 34rpWpivwl4IkqUwmZ5VR9qKwMl+QESuLnKOOPpjiD+kg766xq42x6kD1Xl6BzEdw6eR 1Q2zK56wXFKPfPOUHRq7aKLRF1Xr0Y6hj+2Ptt2CYTgoR0LkAEC7wt9lsYbPxZ8EdGHo j3qg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:cc:list-subscribe :list-help:list-post:list-archive:list-unsubscribe:list-id :precedence:mime-version:references:in-reply-to:message-id:date :subject:to:from:dkim-signature:delivered-to; bh=evHyRsGwaEe+e9OD2VNmQC/UTFjwcSFKpuhUwlcReEQ=; b=ZSyjFJXJmuHE4QJgjTGd1wAlXIMe5zaY26cmPuSmk/wWnfyb9Oq8cszeNs05ca9avG Im+Yx3QqHz6jngEswSUkcPDb+WhaN8xfUv7X9L1D8ZbB/f806w8UbcNLfATKP43WRSJ6 XVvTtSLin1/SI6A9Rza2FwdzFvF4sbKcO5gZjlcDa7uxLciBgQ/ZSdQrZtwJM4en74cO MQmfL4NVNj+ax0r4FhOlyq7kUGltiCi25SdGJvLCz4N7H7Lxit9dW0Wfn9qkD/rvbUIM GMjO22yp9crYwuJwzJHvzpZpYY2yC1WHs6JNx9ZHzL1TvjOk+s8eV8WEFx7eeVjhrQCs ClVQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b="eIs+/oNL"; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 2610:10:20:722:a800:ff:fe36:1795 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from gabe.freedesktop.org (gabe.freedesktop.org. [2610:10:20:722:a800:ff:fe36:1795]) by mx.google.com with ESMTPS id 189si24797235pgj.383.2021.03.03.05.45.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Mar 2021 05:45:12 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 2610:10:20:722:a800:ff:fe36:1795 as permitted sender) client-ip=2610:10:20:722:a800:ff:fe36:1795; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b="eIs+/oNL"; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 2610:10:20:722:a800:ff:fe36:1795 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id CA05C6E98C; Wed, 3 Mar 2021 13:44:32 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wr1-x42b.google.com (mail-wr1-x42b.google.com [IPv6:2a00:1450:4864:20::42b]) by gabe.freedesktop.org (Postfix) with ESMTPS id 54C926E985 for ; Wed, 3 Mar 2021 13:44:31 +0000 (UTC) Received: by mail-wr1-x42b.google.com with SMTP id u16so5735132wrt.1 for ; Wed, 03 Mar 2021 05:44:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=STeXZot7UNsWfWvi+ECfSVOes0yoTqiHgkq3rfNhNfU=; b=eIs+/oNLfkhdj6OT9dHSDH8W5WywMha6aMEKck0RmrxPz7iqr/11jJ4qds3prHui1K hck5bggU4m8/bTTDKgxh0Nkpf9mdXzbD9LK780fc9pZOuHC0aambtq3x8UULm1iZ5Zcz KrLopof08NjqlnH2p6jzv84EkH39sPi2gyq12F0LKblBEAiwfqPDkmSvMxK78bdvfnIW Jif+z9+EU+ox3nnMiPcVh8a7lg3Vdk6yO/f5wfBVB8XQtVBGQyPKJzmMFOapeMA3tH76 0yMwbK/kOvDFwKk4rUoRv91R35GZiyl1tWhiQFEdbqjhFObsxQCXi61w0V5NM/ri0z/9 ctVA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=STeXZot7UNsWfWvi+ECfSVOes0yoTqiHgkq3rfNhNfU=; b=Q+s8S31GpgNShlNfk9B/ionAQRCGlrLa1lESiIKWR8NkPCtVtLs4T6ZaPeuADGu/aF IR+RUBEDiELPGk8pDuUmxNEaFLn0SCJ9V5wZr7U1GeZq5WdEFambyNRQ9IJVT+EkitXV uAYEcZ7NIjWzzP/maQ1caCgldWVOsSgqTayiw3lPyH+Tl8e7+RHSP8v/Mj0514vbWyhe 5EtBN5E7wyEXWDviZkZDIqLEMrJI3HLBAWArn2ScMj8H0LM7/UsxI9342uOPhaf69R7t j65m7qWhqrSKCIMvH3pHqizLlIZ2elygEXOBZ/pyBsFd529eRtz/pEEZAjgwBYDpSoKM aLNg== X-Gm-Message-State: AOAM531vN7jhtsKpfy6jPPi39TipTa9yvS1HgyALjvzEknERgJ2hOYP1 IsKvFyiJsdmABVzfD+B/BLQQJg== X-Received: by 2002:a5d:404f:: with SMTP id w15mr22820915wrp.106.1614779070093; Wed, 03 Mar 2021 05:44:30 -0800 (PST) Received: from dell.default ([91.110.221.155]) by smtp.gmail.com with ESMTPSA id w18sm6109524wrr.7.2021.03.03.05.44.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Mar 2021 05:44:29 -0800 (PST) From: Lee Jones To: lee.jones@linaro.org Subject: [PATCH 53/53] drm/vmwgfx/ttm_object: Reorder header to immediately precede its struct Date: Wed, 3 Mar 2021 13:43:19 +0000 Message-Id: <20210303134319.3160762-54-lee.jones@linaro.org> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20210303134319.3160762-1-lee.jones@linaro.org> References: <20210303134319.3160762-1-lee.jones@linaro.org> MIME-Version: 1.0 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: David Airlie , Roland Scheidegger , linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, =?utf-8?q?Christian_K=C3=B6nig?= , linaro-mm-sig@lists.linaro.org, VMware Graphics , Dave Airlie , Rob Clark , linux-media@vger.kernel.org Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" Also add missing description for 'refcount' Fixes the following W=1 kernel build warning(s): drivers/gpu/drm/vmwgfx/ttm_object.c:60: error: Cannot parse struct or union! Cc: VMware Graphics Cc: Roland Scheidegger Cc: Zack Rusin Cc: David Airlie Cc: Daniel Vetter Cc: Sumit Semwal Cc: "Christian König" Cc: Dave Airlie Cc: Rob Clark Cc: dri-devel@lists.freedesktop.org Cc: linux-media@vger.kernel.org Cc: linaro-mm-sig@lists.linaro.org Signed-off-by: Lee Jones Signed-off-by: Zack Rusin Link: https://patchwork.freedesktop.org/patch/msgid/20210115181601.3432599-30-lee.jones@linaro.org --- drivers/gpu/drm/vmwgfx/ttm_object.c | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/drivers/gpu/drm/vmwgfx/ttm_object.c b/drivers/gpu/drm/vmwgfx/ttm_object.c index b3fdc630497cb..112394dd0ab6a 100644 --- a/drivers/gpu/drm/vmwgfx/ttm_object.c +++ b/drivers/gpu/drm/vmwgfx/ttm_object.c @@ -42,6 +42,14 @@ */ +#define pr_fmt(fmt) "[TTM] " fmt + +#include +#include +#include +#include +#include "ttm_object.h" + /** * struct ttm_object_file * @@ -55,16 +63,9 @@ * * @ref_hash: Hash tables of ref objects, one per ttm_ref_type, * for fast lookup of ref objects given a base object. + * + * @refcount: reference/usage count */ - -#define pr_fmt(fmt) "[TTM] " fmt - -#include -#include -#include -#include -#include "ttm_object.h" - struct ttm_object_file { struct ttm_object_device *tdev; spinlock_t lock;