From patchwork Tue Nov 10 19:30:43 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 322855 Delivered-To: patch@linaro.org Received: by 2002:a05:6e02:5ce:0:0:0:0 with SMTP id l14csp500161ils; Tue, 10 Nov 2020 11:31:29 -0800 (PST) X-Google-Smtp-Source: ABdhPJz7IknD0aSuCuajfu0x8yl1Erv769NzLpZ1y3JHOz+gF62WF2tT2STSZn9MolIj1PXcduvI X-Received: by 2002:a17:902:7c86:b029:d5:f680:f756 with SMTP id y6-20020a1709027c86b02900d5f680f756mr7533819pll.39.1605036689071; Tue, 10 Nov 2020 11:31:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605036689; cv=none; d=google.com; s=arc-20160816; b=zePMePw1a9mJAAmDVU25vvolVDvMxu2nq9gJjvkoVkQ4CGzJa7+5NXtGyj65btPhep NDtyLRlnw9oFFgt7DYYYy5pjGGuuo2oCGaVCuPtiBSQ4rh4G3H1iGIUOxRb7EpUDlNV+ J++P/WsvMWhnEdKwQphi/d23NEK5WBRFI/Eca1tin28q3hpg3fcSlPc2LwTISRxN+YhQ p/TD0WvdWGLX4mfkS4W1kdS8KHjR8lRUUDXrTidHBhUxfwd/b79S/F5FhEtb8HwpyDFr 0qNcgr0m1x6AC3jHkll8kINrtp/YKHE8PO7sFsayMxnfewn0HhqBRXK4uyNAdYGEkQUm eGEw== 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=alrcQNY9nAE87P9IS2I/rDybR0rpLkiBmnX9/jYIEig=; b=Iv7YRE3TwTZ6wC45pVKB+RWzWSam4F1T0gc6WlSm7D2+7Ip+CWLAfBmm9IsObh4ZB0 2LU8baFEjNhCnE0r/BFB8TcFRMpsfCuyI5ic5vNusS8gHfmSmP8XtKTYnH7sHOGHIWF+ xUT6SyOIy25sc0Y/rpU8VPgTdn7RHTHgTid1Gt/PlppD+lu1eu5uDnrdn1IiQUl+N9Ix /chUerd+n4ghxwp/Og2weFyD2N03NOfbxsf8ncb3y7i7Bbl2n38dJlyuaTOhAJrwM+23 MCcirKLYjraear/Ou3NC9+kEbFw+IdWFh+xAqsi4+DPdp4Dz/veTViBXY/HcLhI32XBz vu5A== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=tMF+3pG5; 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 25si8560736pgn.286.2020.11.10.11.31.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 10 Nov 2020 11:31: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=tMF+3pG5; 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 8849F89BD2; Tue, 10 Nov 2020 19:31:22 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wm1-x344.google.com (mail-wm1-x344.google.com [IPv6:2a00:1450:4864:20::344]) by gabe.freedesktop.org (Postfix) with ESMTPS id 3616F89BD5 for ; Tue, 10 Nov 2020 19:31:19 +0000 (UTC) Received: by mail-wm1-x344.google.com with SMTP id c16so4309329wmd.2 for ; Tue, 10 Nov 2020 11:31: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=C+zBR+LtvSmQF6WK85h0NeZVtoTEWkwyfZr5+ZdAWFg=; b=tMF+3pG5AXC3vlK8/vqtMujSz3Ljj+0p0heESDtpmL4we/th6iHGh+8nFxtYussM0a bMz4xEQZrR9KqTeE5hNq4bcSASyfm9uV4r+G23Av61RM+6SOH6NnB1Ynyq+Xs/TMfwpP WYnsHEtHkeSxZHAqsaWMDvHEkiDyYfdZD4ckndsph6cVHgRSb5Di9q3kfRjfy4Qf9qSm S1Z7kx0IqXLikmDSocmxhrrCXxtVPuqbtPgiLglKGcXr3YDrt1aGKXNzHSCwyzgE9ZN5 jtMiGwewAgwbjqbxNG4AdtVdOklXLu36yfH1kB3UQxNm8ywdFzklqlvYLJttGr9JN7N6 HQTg== 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=C+zBR+LtvSmQF6WK85h0NeZVtoTEWkwyfZr5+ZdAWFg=; b=OS/3pi/wOc6mJwQL8KIbtpE5eO1sMP231JSyPQnNBENi189hshRR7Euw0E4vU6kA5Q pOENzWDXtKFQsY95dGUI/UCHgrDm5fHre5vcFUN46oRxOzgSFW2ZiXqC8wIRoXA2IXwO YXyRm6hQCPWa9YsuJAp/5PFJPvrUAVRcnc92dQwh27+0cOMaBNmzRdjMrpMutq+OjPdX enJGcB93WmXbY3CfDwrUyGUb+nIY34U7MwQqhIzRezmUYJteoVncP/TnaJYPyU/4mz6R HsIw0K0dEVXZgsBq2kxp/Xi4rt1EwAdcVEhl0l5gV4015Vj4W+NMkPxGsdfg2GFY1P/6 StAw== X-Gm-Message-State: AOAM530qswPXAYHxruREj0bNU+HszUpJmwmnc91zem+FwTe+0G9hN+hb 3Dw3uQKqfCK9PQZE6hPzY0kHzw== X-Received: by 2002:a1c:5946:: with SMTP id n67mr726295wmb.162.1605036677804; Tue, 10 Nov 2020 11:31:17 -0800 (PST) Received: from dell.default ([91.110.221.139]) by smtp.gmail.com with ESMTPSA id 30sm17635335wrs.84.2020.11.10.11.31.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 10 Nov 2020 11:31:17 -0800 (PST) From: Lee Jones To: lee.jones@linaro.org Subject: [PATCH 01/30] drm/radeon/evergreen: Add comment for 'evergreen_page_flip()'s 'async' param Date: Tue, 10 Nov 2020 19:30:43 +0000 Message-Id: <20201110193112.988999-2-lee.jones@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20201110193112.988999-1-lee.jones@linaro.org> References: <20201110193112.988999-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, amd-gfx@lists.freedesktop.org, dri-devel@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" Fixes the following W=1 kernel build warning(s): drivers/gpu/drm/radeon/evergreen.c: In function ‘evergreen_gpu_init’: drivers/gpu/drm/radeon/evergreen.c:1419: warning: Function parameter or member 'async' not described in 'evergreen_page_flip' 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/radeon/evergreen.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpu/drm/radeon/evergreen.c b/drivers/gpu/drm/radeon/evergreen.c index 4eb3f9bc8fa8b..c9a9a87959f9e 100644 --- a/drivers/gpu/drm/radeon/evergreen.c +++ b/drivers/gpu/drm/radeon/evergreen.c @@ -1412,6 +1412,7 @@ void dce4_wait_for_vblank(struct radeon_device *rdev, int crtc) * @rdev: radeon_device pointer * @crtc_id: crtc to cleanup pageflip on * @crtc_base: new address of the crtc (GPU MC address) + * @async: Set retrace * * Triggers the actual pageflip by updating the primary * surface base address (evergreen+). From patchwork Tue Nov 10 19:30:44 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 322854 Delivered-To: patch@linaro.org Received: by 2002:a05:6e02:5ce:0:0:0:0 with SMTP id l14csp500119ils; Tue, 10 Nov 2020 11:31:26 -0800 (PST) X-Google-Smtp-Source: ABdhPJwA3MG4itdYcTkT7woXG74R0aloiaTRMVTg2F0ZV8IClabyhpy2NvRTWMehTpZS6GxFYn3g X-Received: by 2002:a05:6a00:148a:b029:18b:1ce6:4741 with SMTP id v10-20020a056a00148ab029018b1ce64741mr2213890pfu.49.1605036686311; Tue, 10 Nov 2020 11:31:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605036686; cv=none; d=google.com; s=arc-20160816; b=PbgxrIYCGXaw+dbskvPKtKJqe9WWzdxtohexzrJM47OHvuj0jyvMQqKrgzDKX2qahl eTolNvqTwuAbWQIo/rZ5QlEHj8aUM5i+xPBCUJoB7fMhb/gHyY8Z0HWryM2FiLvd1+9U yTDsaEBvrCRgxp8HKG6wsrSZE+277LC8WjIq5pyPxa6ngTcMDTxGGlZziqZ0FzEGlTPO aiL7J4DLr41dPPwHgREWGCGZmi6m8jaPvbbsZVJBkJRHZu1lDeVwik1pJOmBiTkYGxFO 3O9LTuR85AlaQA82AGhydxeZ7O/EsOVaLGMaeMCPmUR5we2KcuKA70LE6WH5A8LHVUZt /XtA== 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=8Bl3TkGq8owf4TIOFT2qbbCSd4sFhUkgjhlOPxMeZKs=; b=HvobOSfcyyB9BvQkjXDgadfqdWxGqH4wszt2/pToilHPkRhiTh+upa3Q+AkvrpI3ha eGG/0wVsrJB7S2FHl5akYAywI+d2+r0dEyTSl3K+Yg+1C7tgAsg94xJjE7OQDeO77hqw 0HGP/ADayHA3BewyISRb6mTnrGUvlRVR4NuZ9ITFQeVYyX2WYnbNoqm2BcvO654xWtcC xBiwV1IGIprjiqR/NbT55PwfzN+4TSbu60XfZitUvmWVGO7HUEKeHnBS4df58FTIW7ik aOwFEwTKCSwGx+QaYfYmWNWi46jZgKMknburYtLwWHbAV+DfhTBRYODCNlrq3o+t6cmJ 9iAw== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=CmiXRc4v; 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 z22si12379992pfk.277.2020.11.10.11.31.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 10 Nov 2020 11:31: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=CmiXRc4v; 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 9F17B89BEC; Tue, 10 Nov 2020 19:31:21 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wm1-x343.google.com (mail-wm1-x343.google.com [IPv6:2a00:1450:4864:20::343]) by gabe.freedesktop.org (Postfix) with ESMTPS id 5C75E89BE8 for ; Tue, 10 Nov 2020 19:31:20 +0000 (UTC) Received: by mail-wm1-x343.google.com with SMTP id h62so4311284wme.3 for ; Tue, 10 Nov 2020 11:31: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=ZQX81Ctm9sTtgsQoGgQawTW9+eghPr6miXi9Ld6UbB8=; b=CmiXRc4v8Kl5jmW2EN11kUgPzLzq6Ark8ALqQCkz7GSbVukMERLz7d42Srtb/5WZf0 9GGVvNS/FOFrNkCI2tC+GVapoUfn3vxiA/2KGrNqIlUJuTVatDxWbLsoqyjpWdrsxfKw 2koS0NDXH7HziyogXgW4QacBGKC2Zo4tkuZYo8up3YFUB6bl1jTDN3iWO15YazabMPTo GxLWm0N9zlhFo0tAcj5TGPHZF8oyEK5bM96EaQpH7iqLceE5jm8NEMIYaJoLFqSRa8Oy iIfkHJ0VjJp+5NAo2Mftgh+iev5UvoFwfRFjqqciW/UHlHutNrL1V9oUVAyVk8sM9Z4F zmFw== 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=ZQX81Ctm9sTtgsQoGgQawTW9+eghPr6miXi9Ld6UbB8=; b=UoT9sCZ4zNqnAbRDVrBeTxzEUhqXuvNUsIGnZVqawlo4c+9tj7V3NgwGT+M360xFbW EBS8Tz5N/4pNYc5ZKi7ejYBkdhOgTISJchLfNRJdoB52mWwkypyuYR2dca896alvS0YH V2zFsRaFit27/po3QEbPg/3ryCOsw8KiMnpwBzH468zM08AJmOZm74U/savkF2cutCmZ wWV13EjN1KDGAInNvJjjYGI0TKXD69rELO/vTROxP0sEeXyUEP/iJG1xvVhen8+rPK2a silGBXrRUQ7tMCgSO0HLVBT6zMuza6x9hiAmjITKBw4bIT6BJH1TiPlanktSpS1QoLWW satA== X-Gm-Message-State: AOAM532MyEJ9n3+X5sO/QeQkokLDdcUuq5NOEjzUYOATYsEPTUXDJ2UI TD54QnagX6KOvGAy1Nlqok0VpNs6Kf4aE5rV X-Received: by 2002:a1c:b041:: with SMTP id z62mr712398wme.183.1605036679051; Tue, 10 Nov 2020 11:31:19 -0800 (PST) Received: from dell.default ([91.110.221.139]) by smtp.gmail.com with ESMTPSA id 30sm17635335wrs.84.2020.11.10.11.31.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 10 Nov 2020 11:31:18 -0800 (PST) From: Lee Jones To: lee.jones@linaro.org Subject: [PATCH 02/30] drm/radeon/evergreen: Remove set but unused variable 'mc_shared_chmap' Date: Tue, 10 Nov 2020 19:30:44 +0000 Message-Id: <20201110193112.988999-3-lee.jones@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20201110193112.988999-1-lee.jones@linaro.org> References: <20201110193112.988999-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, amd-gfx@lists.freedesktop.org, dri-devel@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" Fixes the following W=1 kernel build warning(s): drivers/gpu/drm/radeon/evergreen.c: In function ‘evergreen_gpu_init’: drivers/gpu/drm/radeon/evergreen.c:3135:6: warning: variable ‘mc_shared_chmap’ set but not used [-Wunused-but-set-variable] 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/radeon/evergreen.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/radeon/evergreen.c b/drivers/gpu/drm/radeon/evergreen.c index c9a9a87959f9e..efb19c445e48f 100644 --- a/drivers/gpu/drm/radeon/evergreen.c +++ b/drivers/gpu/drm/radeon/evergreen.c @@ -3135,7 +3135,7 @@ static int evergreen_cp_resume(struct radeon_device *rdev) static void evergreen_gpu_init(struct radeon_device *rdev) { u32 gb_addr_config; - u32 mc_shared_chmap, mc_arb_ramcfg; + u32 mc_arb_ramcfg; u32 sx_debug_1; u32 smx_dc_ctl0; u32 sq_config; @@ -3399,7 +3399,7 @@ static void evergreen_gpu_init(struct radeon_device *rdev) evergreen_fix_pci_max_read_req_size(rdev); - mc_shared_chmap = RREG32(MC_SHARED_CHMAP); + RREG32(MC_SHARED_CHMAP); if ((rdev->family == CHIP_PALM) || (rdev->family == CHIP_SUMO) || (rdev->family == CHIP_SUMO2)) From patchwork Tue Nov 10 19:30:45 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 322857 Delivered-To: patch@linaro.org Received: by 2002:a05:6e02:5ce:0:0:0:0 with SMTP id l14csp500228ils; Tue, 10 Nov 2020 11:31:34 -0800 (PST) X-Google-Smtp-Source: ABdhPJxTszo4tAHhE4srAXnxQFA0C7HBDiHTndlnzMC361euZh/pVWTsmrHAitJsYnXIY4ARTB3H X-Received: by 2002:a63:1845:: with SMTP id 5mr2943489pgy.393.1605036694311; Tue, 10 Nov 2020 11:31:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605036694; cv=none; d=google.com; s=arc-20160816; b=MhRSE6glBuhvvn260La2NkzbCGuACVp+tb3KU3hwZeIx5hy9vdC/ZSQF1WvWrcs1oi Dm67JY19WRBPIOYzaHikZRI0/vozYnSA/99UiYjYLsvQ7n0jjafOVNk4ER9+ucbfpFVP snZ/ZrBwYG10acTdur9iDkGVll4rDHKuIoBeJs9fEebeMx793BgSuVOTarOdLOYgaQ7V ldaxAW9cusuqATU3V4zIqzwJFswkOC7CV7MMQ9exrz4/uFh76gr56DYiYciteYRg/CoI 7Z3nMwVul2DBMki+m/Hps1swwSoi2bTkY0X5rXWah8cmb10Q08hQptwj+mVmYOdj21h9 KZvQ== 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=GfWPbZbKn/WyhH1BurJ1OwlWpP0vst2BXpt+FeVXXys=; b=kSrYDIe5PtLgdD5lv0y6B6YJB7NkKaobWo6HkTA3wCOSfZgycWWlJpWsFiimAgLfB6 mgutfV+apTU/KwkTaFf91R9uPHWEKch11VHtV8PeBFXhkXnXcBpq3gwZtlbDYZoRtNHg kgVokjSH2Z452iBNB7aNyRviL06DC9WAgwdr+CUSPmNHitMQXf19m9FubYbHyGYEMpEZ WLWHDle3ibd8phISDwgp4UIRC6mIS1ppwkAYD4I30TEsqnSSJ3g6SmLfOl6vEVJynCg8 OyDBKDS9zt9dTnBijeQfgWsn/KfcKvVJjyO5hfr4XGdWWwpKc9C+c5afq/uzW9+Cf3ZL DipA== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=scT86LXl; 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 t14si1663787pgr.326.2020.11.10.11.31.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 10 Nov 2020 11:31: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=scT86LXl; 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 A104289BDB; Tue, 10 Nov 2020 19:31:25 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wm1-x341.google.com (mail-wm1-x341.google.com [IPv6:2a00:1450:4864:20::341]) by gabe.freedesktop.org (Postfix) with ESMTPS id 9578F89BE8 for ; Tue, 10 Nov 2020 19:31:21 +0000 (UTC) Received: by mail-wm1-x341.google.com with SMTP id w24so4331015wmi.0 for ; Tue, 10 Nov 2020 11:31: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=ToBBreDHzaPMHuGxgWs2PDlm690Qx/WYYnHDqhADX+E=; b=scT86LXlhwD/DGSbfeKqxrvBZQbUfExTEwqwwRUosV9TeiTlMaBH/+fiuQk7cwD1HG NQhIz85g6rfkkDEVxoHAm0VjR/WaNbxZi3M2QSb9BAjqckjkOR3fgvY/dSvULx6sTGOs 8Y3EVQg2T1B1gYfsHlhsiyxoVsaEqZm57YEldw87P7kssVR6nNYY6jw5zxZ3MsrnHpN4 rXRXNn6hEOWRrg5OOWPspraA76rLCQXC19a/bVYTFw+cKXqSE9k1Do3I9rcO7sUVTrkR /DinK+Qgi0KZfaVkPhLkKWtGVDswYtdOp6bK0cDnrpYgOXmfbY0UrzMdkxOEbI7tTFLP jUlg== 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=ToBBreDHzaPMHuGxgWs2PDlm690Qx/WYYnHDqhADX+E=; b=MHkPpFc0gjN8Hr4HURLyNiea4VPp9e5glG/s1sUuEFHiZfvWx96VODphkwHJHvx7pt Abur58nkTm4UMIDzK3CaYxUR+CSojccUuJvHj7QNct1YoMNGGPydxJsUF/WwglLFBmVa yOzAX8/AVd5jMUk8NoBs66t2sLcDTBkainI7BkwuVoZp3miz8X1Yp42gY4tJsSXN+dXa hXYIc2NR3Q/HhkW+JCTunnYU44FpBo67FuWXRU4+II71G6pdiqWUY/lLkFEJTSW6qiZp nrz1ViQeZ7JT6aL1YIieV1Rs9joHq7XnyOrjImLvxDr6/BvbYRQkPzBGx2ryPnO/1j1r PbGA== X-Gm-Message-State: AOAM530vzsxFUddXbkZvFn8NyF4tPhLUrO+quqIx/FagyeGfEyhrGoQv VE2Kv6So1d6gjwO02pwQ0E9l5Q== X-Received: by 2002:a1c:3103:: with SMTP id x3mr705693wmx.107.1605036680213; Tue, 10 Nov 2020 11:31:20 -0800 (PST) Received: from dell.default ([91.110.221.139]) by smtp.gmail.com with ESMTPSA id 30sm17635335wrs.84.2020.11.10.11.31.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 10 Nov 2020 11:31:19 -0800 (PST) From: Lee Jones To: lee.jones@linaro.org Subject: [PATCH 03/30] drm/radeon/ni: Demote vague attempt at function header doc Date: Tue, 10 Nov 2020 19:30:45 +0000 Message-Id: <20201110193112.988999-4-lee.jones@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20201110193112.988999-1-lee.jones@linaro.org> References: <20201110193112.988999-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, amd-gfx@lists.freedesktop.org, dri-devel@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" Fixes the following W=1 kernel build warning(s): drivers/gpu/drm/radeon/ni.c: In function ‘cayman_gpu_init’: drivers/gpu/drm/radeon/ni.c:2679: warning: Function parameter or member 'ring' not described in 'cayman_vm_flush' drivers/gpu/drm/radeon/ni.c:2679: warning: Function parameter or member 'vm_id' not described in 'cayman_vm_flush' drivers/gpu/drm/radeon/ni.c:2679: warning: Function parameter or member 'pd_addr' not described in 'cayman_vm_flush' 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/radeon/ni.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/gpu/drm/radeon/ni.c b/drivers/gpu/drm/radeon/ni.c index 53a4d5c109794..12dd082069649 100644 --- a/drivers/gpu/drm/radeon/ni.c +++ b/drivers/gpu/drm/radeon/ni.c @@ -2668,11 +2668,9 @@ void cayman_vm_decode_fault(struct radeon_device *rdev, block, mc_id); } -/** +/* * cayman_vm_flush - vm flush using the CP * - * @rdev: radeon_device pointer - * * Update the page table base and flush the VM TLB * using the CP (cayman-si). */ From patchwork Tue Nov 10 19:30:46 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 322856 Delivered-To: patch@linaro.org Received: by 2002:a05:6e02:5ce:0:0:0:0 with SMTP id l14csp500199ils; Tue, 10 Nov 2020 11:31:31 -0800 (PST) X-Google-Smtp-Source: ABdhPJxDZ8Htar1kEqWP4OTivzSpPfqL53s/UM3YBJzfUIytTZAxRiK4MhX/KGiyQv56jL21m33n X-Received: by 2002:a17:902:a503:b029:d6:d9d:f901 with SMTP id s3-20020a170902a503b02900d60d9df901mr14000232plq.54.1605036691732; Tue, 10 Nov 2020 11:31:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605036691; cv=none; d=google.com; s=arc-20160816; b=ybiSgK2pYwGDzbHCcMuJcWwUPQYDmQxs0DZ+lGEYN2hQsRYUN6Wy56VpJhGhZVKG8N GOx9D4r5gJI5YXgcDmJDeDx3WZw1eghZcKe9vjID3iJzhJkIivjfVE6KNscfAFYw4AZb oLKub7pMPz0i2lbC+4n1injRpyJTlLtGbPghqWmNOy+1BEa8rop9k3GOERG8usdlGIEw Cl58ACMTeUTBw/pV7mynnsmVbVUNXgdAc1iuOqJTlu7tTuaWK4f75/j8yS7QPaAFYXGF clGXaIk9p9z70DTXHdI7sev2EjeKFJB8dNXnyeGLVjZLJ4HNFX2RlaTdHAO2hNpCwmkG bkPg== 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=NRbXVUG2vmZO13su5tWQTsvbP7pj0nhrxrDlNWLzlvU=; b=OOPxXKcU6xlbve3TJq/WvO9mKqhWBbnna1iwFUSNFVymRq9QHcdOLXUU9pdeHuCVCC HMLvj3F53KhiuyLMuz15p7SspOJMN3se1uab2uDBjsinWAiAPu1AdRFCv1scW+hJdJg8 G6gcOhVeFaV3o2r+sslh05ttfVgP+7VHcog6Oxy/HosJf38V/8kpH78JNOpmFK/BjdF9 GXbStQoVWgTltVdTyJ1cAe7mI65TXPUt0+z6+ayvgNUhtJKwFu8gp2169i34Ar9R1vhU 7sDOQEurdALo5PJeFXYu10FlgW+nLnHaf8MYoXcTnpN1hEvnx06cMbmWUtmcf389cpxN /XZQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=mZZml1jy; 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 d5si12986640plr.46.2020.11.10.11.31.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 10 Nov 2020 11:31: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=mZZml1jy; 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 9BB0189BD5; Tue, 10 Nov 2020 19:31:25 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wm1-x342.google.com (mail-wm1-x342.google.com [IPv6:2a00:1450:4864:20::342]) by gabe.freedesktop.org (Postfix) with ESMTPS id C27A589BE8 for ; Tue, 10 Nov 2020 19:31:22 +0000 (UTC) Received: by mail-wm1-x342.google.com with SMTP id h2so4361557wmm.0 for ; Tue, 10 Nov 2020 11:31: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=StAAQEcBU7NR52Iv4O4K3Wzt60gqSmLeuRfVm5ltXDE=; b=mZZml1jytN4/9i59YihQPrNuAaWkUZdpVAXKmHE+4/4U0iTDxxXftQINnq5G5KzB7G YesRLVtr9cgChuzabdGh9KH2EuSxiXVqGIXVcVPQt0PXeGOfgTM5dOjXbabrkCeznPMS M/oG817gEvJDwb4E3oJv+VQi0vnLJ71+SwUju8DAErlpIANOm0L3QGER585yKxQzU2Sf ebwUEsuVFPKaXemnBJXXnWktrStj7pS8IV4rj3r73hdlRkZN+oQgb3LOacCljFAfP4Mj WTSoGT13avpp4RioJ2BY4M491H5h2fw29JW0vttsqLYfbm7NEnYd57MfEAr1ELF2pGoA MX9Q== 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=StAAQEcBU7NR52Iv4O4K3Wzt60gqSmLeuRfVm5ltXDE=; b=KoptQKcDago7JXPXc90oyMxpRkf74kb4NhJxdG7aqgsti3LqyF4RVc5ZpmkyaaIEX9 ymRnPwYPHAoyNrzEED3orC5joQm5fHX//L2r+aaHvBeGndxJAtWmDtmWFSvobEdCi0ja hGp0BONpP/cgEYhc/4oQSMCDzjwWtt2cDf19ksgn2JAsLsx7Xp4WY2rhIzXz9fguhP4B al+GWkTK3RpjIAaU/HRKxIYXNg1Fux8R+IHY7lJO84t2nF/iz1eJbjit4G3DzEoDPwmL VuhTOeDBszl1XWbP8d8bJ8AEvNIXE1ChdTUxG38PVnUDjPx1iO0BpyGo4rvyZ5ZpvUOh 3eUA== X-Gm-Message-State: AOAM533L53YPguYECCmufPVXsIGy7X9/cs7p8Zi6UtRYlCBevfhlij+P 6pD5unKc87/GK4onR9/CkdUgpA== X-Received: by 2002:a1c:7c02:: with SMTP id x2mr717105wmc.64.1605036681441; Tue, 10 Nov 2020 11:31:21 -0800 (PST) Received: from dell.default ([91.110.221.139]) by smtp.gmail.com with ESMTPSA id 30sm17635335wrs.84.2020.11.10.11.31.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 10 Nov 2020 11:31:20 -0800 (PST) From: Lee Jones To: lee.jones@linaro.org Subject: [PATCH 04/30] drm/radeon/si: Remove set but unused variable 'mc_shared_chmap' Date: Tue, 10 Nov 2020 19:30:46 +0000 Message-Id: <20201110193112.988999-5-lee.jones@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20201110193112.988999-1-lee.jones@linaro.org> References: <20201110193112.988999-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, amd-gfx@lists.freedesktop.org, dri-devel@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" Fixes the following W=1 kernel build warning(s): drivers/gpu/drm/radeon/si.c: In function ‘si_gpu_init’: drivers/gpu/drm/radeon/si.c:3090:6: warning: variable ‘mc_shared_chmap’ set but not used [-Wunused-but-set-variable] 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/radeon/si.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/radeon/si.c b/drivers/gpu/drm/radeon/si.c index c27af89785f34..45076c27d7ded 100644 --- a/drivers/gpu/drm/radeon/si.c +++ b/drivers/gpu/drm/radeon/si.c @@ -3088,7 +3088,7 @@ static void si_setup_rb(struct radeon_device *rdev, static void si_gpu_init(struct radeon_device *rdev) { u32 gb_addr_config = 0; - u32 mc_shared_chmap, mc_arb_ramcfg; + u32 mc_arb_ramcfg; u32 sx_debug_1; u32 hdp_host_path_cntl; u32 tmp; @@ -3200,7 +3200,7 @@ static void si_gpu_init(struct radeon_device *rdev) WREG32(BIF_FB_EN, FB_READ_EN | FB_WRITE_EN); - mc_shared_chmap = RREG32(MC_SHARED_CHMAP); + RREG32(MC_SHARED_CHMAP); mc_arb_ramcfg = RREG32(MC_ARB_RAMCFG); rdev->config.si.num_tile_pipes = rdev->config.si.max_tile_pipes; From patchwork Tue Nov 10 19:30:47 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 322858 Delivered-To: patch@linaro.org Received: by 2002:a05:6e02:5ce:0:0:0:0 with SMTP id l14csp500257ils; Tue, 10 Nov 2020 11:31:36 -0800 (PST) X-Google-Smtp-Source: ABdhPJyMVr8bucseidx0lt3D6bvNiCSOMJGfYwyqyfAkkiH1otYWmwHIFurf+MVHfy++0cj90T86 X-Received: by 2002:a63:d349:: with SMTP id u9mr6255309pgi.218.1605036696377; Tue, 10 Nov 2020 11:31:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605036696; cv=none; d=google.com; s=arc-20160816; b=lPt1AHHotwt9X1RCJlBRCnqia4hceUC1nClSfy8cZfmCyY0EZXGKx7Cj/wMSY7KAye yVi0EW8XtVN6E97FYRU9HZpknJ9pRO8eKKguLmaHPlhry8GEq74uj2IUvQRN906vQH39 Pv+lZ+8L26rO1GUQ7lktWFXysCf3wR6OJVbkaEFQtVKoz6n93kBaQTlvkF05MZhmtWJB YxlD7tvADu7t+oGOx/iTspNkiWX0+xSYHqn8DPIpUvbP0z8z2Pe5gVWfDYXu+x6+RQRt 0eSUgRbR1xCHV1OpyxgAxGWl1xIZqm8WCr77+Ra7SmBGZr68y2dtcrtyu6dwtBMRoR/6 eJVg== 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=QwQJbpvjz3fKbcN8GYX3uyLVFAXYEy9obFsZF6ikbN0=; b=XPu/b8XfAhd82wIMxRl5WJiSQcr3hseTicJ5fjtRWs8jJC+f1ffQPx0AQkGowkozLV b/Y4F6xjEfmPJnBP5kJa373TY4FFJGi7FkBMjAXdaCAPbhlwH8t5PCxNadLJwROwVyuA COtdZEKjMsYhGFc3FDcSOStUpregn8NGW2jQYx8d1sAU+gDWB+rVlW+l0aSu6PzsPI2c D+H4RBhF4OrbUBJ9eQfhFYPmshF33TPhiQB8DlIP4IEHJhYDvhM6vIleLexnlSPUwyMM X7/TLZEkd63IV4gIy6iVxJU/s+tUv7xC9sFxHiWAo2LjDTlCgYubKA+8wGQ53q5A2as6 oqjg== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=VXWEbmSQ; 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 d3si10837938pld.76.2020.11.10.11.31.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 10 Nov 2020 11:31:36 -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=VXWEbmSQ; 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 12A4489BF0; Tue, 10 Nov 2020 19:31:26 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wr1-x444.google.com (mail-wr1-x444.google.com [IPv6:2a00:1450:4864:20::444]) by gabe.freedesktop.org (Postfix) with ESMTPS id 10FAF89BDB for ; Tue, 10 Nov 2020 19:31:24 +0000 (UTC) Received: by mail-wr1-x444.google.com with SMTP id c17so14000106wrc.11 for ; Tue, 10 Nov 2020 11:31: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=wRyVj7QwW9m8+QJhWlLMpTOCKbqNO9FAw2XMc+XmqfM=; b=VXWEbmSQdarwlsBZu0sGfm2zUAEFee1etW65JRLgltUoi+G+TEfeOZuvcOFOtETnCl BR5u0aCXUDMEWbkQM8dypexH5UgRgI4h6cG10ovPBfrlnJlxBhDfQdojqGQiEzWjkbv2 IP4UAKUedp43K+i37H+yZhL1bcqhNEp8De6a/VguzFgKA4iokYZ+bFOl3qn9hbp8enbe wxHwYjyBP15UyrKgnwQGKu5uSOZB5y9CI009lwCVp0s83UX9oHeQM4fjPomRExZibnxt pPN7DIs/GidNsVTpHOIdaS1azDjBDcohEpKiQ8LdZDfycd5MpkEQCRUpk8za67UsVFxp D19w== 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=wRyVj7QwW9m8+QJhWlLMpTOCKbqNO9FAw2XMc+XmqfM=; b=cxAyXrTVa74PJRl/sgpfdocGzDFHjJqeedIrgaf7ozibRJM/2EILf6jr7TycOQtylo x3jP0giUhGjrgWX3vqb0vHonn/8kjAmJVQf5rc+xbRPtwGxXIMTUe7SxCDupJl+pUfop SJsqxoD05hCPrVGdMrcbkb+GStAtwFHJ8IYbK4xLu9yBbBSCnpErGaiLv0pNmsJaHgwS UMxgsfpCjGgxUTq50KFdSeEKznp0GcoYXpwj2vqrFqOd8s6MVEVFWYCRTsgSa0QygM32 vbHTBbTHQXOHMfdB5z+VpOHSEdLbdV9VX8O683Oon/vCGiaTRDQz5cdkjhy73xuWIenj hxPg== X-Gm-Message-State: AOAM533TDIycZo8bA2yBVNd8HQyo1fI+qc5PhZrhHMuzf7hKA1AUZcPh YKX8Ayh23sNMFFLjhxypWCFAiQ== X-Received: by 2002:a5d:634c:: with SMTP id b12mr10100178wrw.130.1605036682691; Tue, 10 Nov 2020 11:31:22 -0800 (PST) Received: from dell.default ([91.110.221.139]) by smtp.gmail.com with ESMTPSA id 30sm17635335wrs.84.2020.11.10.11.31.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 10 Nov 2020 11:31:22 -0800 (PST) From: Lee Jones To: lee.jones@linaro.org Subject: [PATCH 05/30] drm/radeon/cik: Remove set but unused variable 'mc_shared_chmap' Date: Tue, 10 Nov 2020 19:30:47 +0000 Message-Id: <20201110193112.988999-6-lee.jones@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20201110193112.988999-1-lee.jones@linaro.org> References: <20201110193112.988999-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, amd-gfx@lists.freedesktop.org, =?utf-8?q?Christian_K=C3=B6nig?= , linaro-mm-sig@lists.linaro.org, dri-devel@lists.freedesktop.org, Alex Deucher , 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/radeon/cik.c: In function ‘cik_gpu_init’: drivers/gpu/drm/radeon/cik.c:3180:6: warning: variable ‘mc_shared_chmap’ set but not used [-Wunused-but-set-variable] Cc: Alex Deucher Cc: "Christian König" Cc: David Airlie Cc: Daniel Vetter Cc: Sumit Semwal Cc: amd-gfx@lists.freedesktop.org Cc: dri-devel@lists.freedesktop.org Cc: linux-media@vger.kernel.org Cc: linaro-mm-sig@lists.linaro.org Signed-off-by: Lee Jones --- drivers/gpu/drm/radeon/cik.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/radeon/cik.c b/drivers/gpu/drm/radeon/cik.c index 4494f9122fd91..b94e2e678f255 100644 --- a/drivers/gpu/drm/radeon/cik.c +++ b/drivers/gpu/drm/radeon/cik.c @@ -3177,7 +3177,7 @@ static void cik_setup_rb(struct radeon_device *rdev, static void cik_gpu_init(struct radeon_device *rdev) { u32 gb_addr_config = RREG32(GB_ADDR_CONFIG); - u32 mc_shared_chmap, mc_arb_ramcfg; + u32 mc_arb_ramcfg; u32 hdp_host_path_cntl; u32 tmp; int i, j; @@ -3270,7 +3270,7 @@ static void cik_gpu_init(struct radeon_device *rdev) WREG32(BIF_FB_EN, FB_READ_EN | FB_WRITE_EN); - mc_shared_chmap = RREG32(MC_SHARED_CHMAP); + RREG32(MC_SHARED_CHMAP); mc_arb_ramcfg = RREG32(MC_ARB_RAMCFG); rdev->config.cik.num_tile_pipes = rdev->config.cik.max_tile_pipes; From patchwork Tue Nov 10 19:30:48 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 322861 Delivered-To: patch@linaro.org Received: by 2002:a05:6e02:5ce:0:0:0:0 with SMTP id l14csp500333ils; Tue, 10 Nov 2020 11:31:42 -0800 (PST) X-Google-Smtp-Source: ABdhPJy8wfXE7rBncKq4LeII1SDMZJGZc3xnKyLSltzxZyx/QdxOTOmDyq2Oeq53VnLTmQXT8Lql X-Received: by 2002:a17:902:7402:b029:d6:8558:7920 with SMTP id g2-20020a1709027402b02900d685587920mr17536966pll.8.1605036701902; Tue, 10 Nov 2020 11:31:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605036701; cv=none; d=google.com; s=arc-20160816; b=gfNDmctfCggvl7vmxmz18aY9qmF1EU7CM9xhWc3VAWv6T/LEI3jr7JRz0ynkTGiGeg h4S3tRwbWwLUV4T3+WmSISBMTtZxMMX4k3AcklW9h/3yfKSBECfkwmLjSQc2bbDykecN 9qaC4IP76BzKClX6DEF4bunbUbUvQ1K1ReeVo6KQwEdvcv9LO+ZNx99R56ADiFn/ZuYv opzbntnuI6mBajlwa4ZHUpEE2sp4HVjF5CjI6s7ITWAxMepFhR3s2cGv3C3OTtB5dPBa oRrs3UfJEF+cdbw6y4G6zIo1egvzUvSPFJOKovYIBu7DlbrS+hIV19twtZWlTAqL1Xos oiSw== 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=4OdMHix9d/XtW0AHP7cNAdmXH4Kr0MT5R7LC0zVtk5I=; b=wB5sHftHvx3kC83xrmBL8yaYiHw+P5v5lCHTPvYXiVLomEjsreYoYT/mvRrGmNd5JJ DVcTXOJYC30+vMwarh+cwlpn21nCxZBXXeisCIEpxsTFHBhcvWor/0CPjTVUctdN+jnp qFhicgmOyDYaUoFEG1snD9PyGu7dwtHzJZ47E9mkOcHWiNrRuF8+rdP+9M5mo/Qw6HeL ONyHK+i5QTtsVsutpFjHRhcBE5NV8Gv9avU8dShfjsaj+4E5fJuWnBkxZtUtk+d/5Zxy A/utbkjsELYLK6+xQJl7Kv4nJoWqefSxZ92LdyriYI5n8uXs5FVDLYlLGtcDhH4Wv10Z xHtQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=kLlPJRNg; 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 3si661664pfg.129.2020.11.10.11.31.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 10 Nov 2020 11:31: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=kLlPJRNg; 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 71F1889BF5; Tue, 10 Nov 2020 19:31:30 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wm1-x342.google.com (mail-wm1-x342.google.com [IPv6:2a00:1450:4864:20::342]) by gabe.freedesktop.org (Postfix) with ESMTPS id 590AA89BF0 for ; Tue, 10 Nov 2020 19:31:25 +0000 (UTC) Received: by mail-wm1-x342.google.com with SMTP id s13so4299909wmh.4 for ; Tue, 10 Nov 2020 11:31: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=Xcbh8O+/omHL2VrpacAkpBtVFmAXD+djrz0urDPaJVQ=; b=kLlPJRNgN1F9oKbujE00llAPCqrZ6ps66Ok/S6/KvHh1EKNq12UMi2auweIku5QZ+d kHgomKu/9dundePmvfQOGcT3iLzJpwwonRbLSzxLYarevW+J9jAwUduNxg5s+KKMBtIs zcB01rcJI9EQSfNlkP7Kz+lx5eGQyi7U35uMuSzgK4juZGPgYBVkN083Z3gQ4bksEj83 MgScucPUFTtvTp6/SqtM/6ITyUMzS7vQsX78dK9WlKYUcs3TF+DG0c8eZ7hrua/sAJo9 VGaE8FoAHbQc0tOPZbBtQxjA+q4Z91crPXwSM7Sol4f4JqTBUOx6t7l+5es/l4561Q/S pWTQ== 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=Xcbh8O+/omHL2VrpacAkpBtVFmAXD+djrz0urDPaJVQ=; b=oTpqRfEdOi/3P1S55uKkcdDLpHBJUGnkVV1m9eL2KuA/iqmM/Pj5krWLu7SDYqx9ZK s2DPyYoKVERU+5Ak66CiyOlr9OExK12BLA5xh29UZR3yqQS3qPDCgI9XvqroxyFNSOzy 3+tG18Qd8yjPzrHb/OLwdQ+CfnWmbtVYwXBHRvl4WkmkvjmKLa9h/Kota3qF/LR1PCOb PF3CzjxD1f4h4R9A/Spq2AWjo8UvqXBqZXk5W09VJ506kLKfyQ88tjtRp88c+8iNWrPr kIKVHJoR5RuzuWVk58mJMetstHiTlNG2hOL4IFAoe9k+Q12mA/e2CQdtxr1GxoJgRaAK rgCw== X-Gm-Message-State: AOAM531ytNj5s4JbqBjw72bPK0G05kL6lBt0Vjfkf6NPX9CBUPzHbaz0 SmjUTRP9NJ4vJyYeG3A0vmmQPw== X-Received: by 2002:a1c:964d:: with SMTP id y74mr669038wmd.129.1605036683897; Tue, 10 Nov 2020 11:31:23 -0800 (PST) Received: from dell.default ([91.110.221.139]) by smtp.gmail.com with ESMTPSA id 30sm17635335wrs.84.2020.11.10.11.31.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 10 Nov 2020 11:31:23 -0800 (PST) From: Lee Jones To: lee.jones@linaro.org Subject: [PATCH 06/30] drm/radeon/trinity_dpm: Remove some defined but never used arrays Date: Tue, 10 Nov 2020 19:30:48 +0000 Message-Id: <20201110193112.988999-7-lee.jones@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20201110193112.988999-1-lee.jones@linaro.org> References: <20201110193112.988999-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, amd-gfx@lists.freedesktop.org, dri-devel@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" Fixes the following W=1 kernel build warning(s): drivers/gpu/drm/radeon/trinity_dpm.c:146:18: warning: ‘trinity_sysls_default’ defined but not used [-Wunused-const-variable=] drivers/gpu/drm/radeon/trinity_dpm.c:131:18: warning: ‘trinity_mgcg_shls_disable’ defined but not used [-Wunused-const-variable=] drivers/gpu/drm/radeon/trinity_dpm.c:120:18: warning: ‘trinity_mgcg_shls_enable’ defined but not used [-Wunused-const-variable=] 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/radeon/trinity_dpm.c | 44 ---------------------------- 1 file changed, 44 deletions(-) diff --git a/drivers/gpu/drm/radeon/trinity_dpm.c b/drivers/gpu/drm/radeon/trinity_dpm.c index 4d93b84aa7397..e005c18aac00e 100644 --- a/drivers/gpu/drm/radeon/trinity_dpm.c +++ b/drivers/gpu/drm/radeon/trinity_dpm.c @@ -116,55 +116,11 @@ static const u32 trinity_mgcg_shls_default[] = 0x00009220, 0x00090008, 0xffffffff, 0x00009294, 0x00000000, 0xffffffff }; - -static const u32 trinity_mgcg_shls_enable[] = -{ - /* Register, Value, Mask */ - 0x0000802c, 0xc0000000, 0xffffffff, - 0x000008f8, 0x00000000, 0xffffffff, - 0x000008fc, 0x00000000, 0x000133FF, - 0x000008f8, 0x00000001, 0xffffffff, - 0x000008fc, 0x00000000, 0xE00B03FC, - 0x00009150, 0x96944200, 0xffffffff -}; - -static const u32 trinity_mgcg_shls_disable[] = -{ - /* Register, Value, Mask */ - 0x0000802c, 0xc0000000, 0xffffffff, - 0x00009150, 0x00600000, 0xffffffff, - 0x000008f8, 0x00000000, 0xffffffff, - 0x000008fc, 0xffffffff, 0x000133FF, - 0x000008f8, 0x00000001, 0xffffffff, - 0x000008fc, 0xffffffff, 0xE00B03FC -}; #endif #ifndef TRINITY_SYSLS_SEQUENCE #define TRINITY_SYSLS_SEQUENCE 100 -static const u32 trinity_sysls_default[] = -{ - /* Register, Value, Mask */ - 0x000055e8, 0x00000000, 0xffffffff, - 0x0000d0bc, 0x00000000, 0xffffffff, - 0x0000d8bc, 0x00000000, 0xffffffff, - 0x000015c0, 0x000c1401, 0xffffffff, - 0x0000264c, 0x000c0400, 0xffffffff, - 0x00002648, 0x000c0400, 0xffffffff, - 0x00002650, 0x000c0400, 0xffffffff, - 0x000020b8, 0x000c0400, 0xffffffff, - 0x000020bc, 0x000c0400, 0xffffffff, - 0x000020c0, 0x000c0c80, 0xffffffff, - 0x0000f4a0, 0x000000c0, 0xffffffff, - 0x0000f4a4, 0x00680fff, 0xffffffff, - 0x00002f50, 0x00000404, 0xffffffff, - 0x000004c8, 0x00000001, 0xffffffff, - 0x0000641c, 0x00000000, 0xffffffff, - 0x00000c7c, 0x00000000, 0xffffffff, - 0x00006dfc, 0x00000000, 0xffffffff -}; - static const u32 trinity_sysls_disable[] = { /* Register, Value, Mask */ From patchwork Tue Nov 10 19:30:49 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 322860 Delivered-To: patch@linaro.org Received: by 2002:a05:6e02:5ce:0:0:0:0 with SMTP id l14csp500301ils; Tue, 10 Nov 2020 11:31:40 -0800 (PST) X-Google-Smtp-Source: ABdhPJxhUFkM1S/1KBKedM0vOn9z5MxM9xE7VXWOhef4RzBdtj2beXaSjAulYAsfUHwLdoE00Qbg X-Received: by 2002:a62:f211:0:b029:18c:28cf:89ff with SMTP id m17-20020a62f2110000b029018c28cf89ffmr8187037pfh.71.1605036700152; Tue, 10 Nov 2020 11:31:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605036700; cv=none; d=google.com; s=arc-20160816; b=Pg1QG4+D1pMPkVg/1k+rqiqjv5pOPiHCXBBhrrGnc39bOJdCH9x+VV7lDH4mZ9S/f8 43NTSafHillvQcdfMZ2x0zuWF/Vsex/Ze9oJHoX4aWvtu8vn6QXD3mQh52qx7+PjpeWJ yqPk+Gcm8G8j0SGwuHMGyLnqRM8Ydm2gWMvsn0b5inZJmQ+t7MLIqjnh5SbFBb4JcZKz E3kYzPSWc6t/nODreEilCl+2cv/itvPK+5hVTmz51Dgvkx7+DrvCaSfrRBjH6/IwZITU 8/kDO2Ger6XMby+MNhJGnphmb14QzWwJlLPBr9mkAfyI66awOry/kLhb8swT1xcpNYRg Z3xg== 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=RzUyGiHJ+4i8ANbXAw3TB+q7FS6SRIkirNY+k+Y+Q6k=; b=u1ucEZCFjfUIH4cCYJcrSHgNnO59dl+joqbwtClz2bu29M2z8Kl4xVW/TKl4fklfc1 AqdXU3HYr0MrxBDp3QD4zIN1hpnRXvjVuJrYIK+Hb5rK08uof94CaHdb+GhaQCF0s98W ZZZhuI/mCLRp/2Hp9hwAPJPgEpiSLxBVqrqHqIKCvY4OIS0P4+15cq+rNzqX2ieuXqLR 3GDdEMfXkSNrIK9NI1WrDRdU/DduGcxIgsVx5iTu5hSKR9V4gnoiQqibNbc+iaNpY6mX Fwh6SDCZreQHeApFU814axvv1N9rW6Z01lgEQA1GZBMrMz9nS4Pv44kBygF1eJCh1pkC VIPw== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=tmfnWr1P; 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 y2si1298906plk.176.2020.11.10.11.31.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 10 Nov 2020 11:31:40 -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=tmfnWr1P; 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 20C6189BF3; Tue, 10 Nov 2020 19:31:30 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wm1-x343.google.com (mail-wm1-x343.google.com [IPv6:2a00:1450:4864:20::343]) by gabe.freedesktop.org (Postfix) with ESMTPS id 7479189BF5 for ; Tue, 10 Nov 2020 19:31:26 +0000 (UTC) Received: by mail-wm1-x343.google.com with SMTP id d142so4344772wmd.4 for ; Tue, 10 Nov 2020 11:31: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=EMKJYN4cADZ/51nOTydJW9dcnK9yEI29SFRHcdhKjx0=; b=tmfnWr1PFAZjvFUoR70C/EeiHh5YP6TtNv8y7lYw9Nw/feqC/lAHTDFMby7fV5FYcU Xba3hs1WRtRejNsmv02L/hFQLaAYQDGw6Och/0RDZf6Ho1Amyy0v8jPCl2v4pRL715vh 4XrOLlYqOBrdIoiV//72GwFAqDwm38Ob165dWEIj1YbMTku/gm1pH8F4vhZe9F7BoK0C qG3uSnS1N2HGx9nyo23hGifKjDayTPAB7nk1cnK3ZhwdAyZvOd8xei3kfhXCOJUU21Yy pMyLIP58Uo9TymtizzG224a6YIiOduHQ64qsLYpu1vtbBoYwqJdERv9byTxsUSlKAXZE QACg== 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=EMKJYN4cADZ/51nOTydJW9dcnK9yEI29SFRHcdhKjx0=; b=Zh3ql9IB4KwirOrX404/ecf6S/+/3kIOyQyv8WhSeUtPH4GL75qmDIZRFSq7m/hUZV GCkY5pYl8FgM8yVrZ4NIKLd3WJ21JagT/LV+3niH3Cr8wY+XJFvDhutPfjlehONTEMM8 IZU/jvrkOkyOUAa2CBhEFkX4Yt7mPAozeoU0nH9K1Ji0b4mke4GCuRahAHQha1ptatis eVK+Vh2KGuaG1CK9AB9AwW5I3AyJbdKUwnAEJe6HT1vxwHw9NQI/cBxLqp5nGGd7TwLA VNkCvqNmJzzDOPI9dT2VLq9aaHsC9lO3+MEMDvFKGSAeYMl9u104OZ2HdCi9mow9BpTQ HVzQ== X-Gm-Message-State: AOAM531QL4OmAHt5gVPJj9/9ltcSOIq7JRGMhFf4m17fR1/ySvblFOEJ lmwX/SDYMofd59CYxwbMCrpjuA== X-Received: by 2002:a1c:3846:: with SMTP id f67mr750176wma.33.1605036685081; Tue, 10 Nov 2020 11:31:25 -0800 (PST) Received: from dell.default ([91.110.221.139]) by smtp.gmail.com with ESMTPSA id 30sm17635335wrs.84.2020.11.10.11.31.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 10 Nov 2020 11:31:24 -0800 (PST) From: Lee Jones To: lee.jones@linaro.org Subject: [PATCH 07/30] drm/radeon/kv_dpm: Strip out unused functions and their tables Date: Tue, 10 Nov 2020 19:30:49 +0000 Message-Id: <20201110193112.988999-8-lee.jones@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20201110193112.988999-1-lee.jones@linaro.org> References: <20201110193112.988999-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, amd-gfx@lists.freedesktop.org, dri-devel@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" These haven't been used since the driver was upstreamed in 2013. Fixes the following W=1 kernel build warning(s): drivers/gpu/drm/radeon/kv_dpm.c:161:40: warning: ‘cpl_cac_config_reg’ defined but not used [-Wunused-const-variable=] drivers/gpu/drm/radeon/kv_dpm.c:156:40: warning: ‘mc3_cac_config_reg’ defined but not used [-Wunused-const-variable=] drivers/gpu/drm/radeon/kv_dpm.c:151:40: warning: ‘mc2_cac_config_reg’ defined but not used [-Wunused-const-variable=] drivers/gpu/drm/radeon/kv_dpm.c:146:40: warning: ‘mc1_cac_config_reg’ defined but not used [-Wunused-const-variable=] drivers/gpu/drm/radeon/kv_dpm.c:141:40: warning: ‘mc0_cac_config_reg’ defined but not used [-Wunused-const-variable=] drivers/gpu/drm/radeon/kv_dpm.c:136:40: warning: ‘sx0_cac_config_reg’ defined but not used [-Wunused-const-variable=] drivers/gpu/drm/radeon/kv_dpm.c:104:43: warning: ‘cpl_local_cac_cfg_kv’ defined but not used [-Wunused-const-variable=] drivers/gpu/drm/radeon/kv_dpm.c:98:43: warning: ‘mc3_local_cac_cfg_kv’ defined but not used [-Wunused-const-variable=] drivers/gpu/drm/radeon/kv_dpm.c:92:43: warning: ‘mc2_local_cac_cfg_kv’ defined but not used [-Wunused-const-variable=] drivers/gpu/drm/radeon/kv_dpm.c:86:43: warning: ‘mc1_local_cac_cfg_kv’ defined but not used [-Wunused-const-variable=] drivers/gpu/drm/radeon/kv_dpm.c:80:43: warning: ‘mc0_local_cac_cfg_kv’ defined but not used [-Wunused-const-variable=] drivers/gpu/drm/radeon/kv_dpm.c:67:43: warning: ‘sx_local_cac_cfg_kv’ defined but not used [-Wunused-const-variable=] 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/radeon/kv_dpm.c | 205 +------------------------------- 1 file changed, 1 insertion(+), 204 deletions(-) diff --git a/drivers/gpu/drm/radeon/kv_dpm.c b/drivers/gpu/drm/radeon/kv_dpm.c index 5e6086eb18073..f7735da07feb9 100644 --- a/drivers/gpu/drm/radeon/kv_dpm.c +++ b/drivers/gpu/drm/radeon/kv_dpm.c @@ -64,105 +64,6 @@ extern void cik_exit_rlc_safe_mode(struct radeon_device *rdev); extern void cik_update_cg(struct radeon_device *rdev, u32 block, bool enable); -static const struct kv_lcac_config_values sx_local_cac_cfg_kv[] = -{ - { 0, 4, 1 }, - { 1, 4, 1 }, - { 2, 5, 1 }, - { 3, 4, 2 }, - { 4, 1, 1 }, - { 5, 5, 2 }, - { 6, 6, 1 }, - { 7, 9, 2 }, - { 0xffffffff } -}; - -static const struct kv_lcac_config_values mc0_local_cac_cfg_kv[] = -{ - { 0, 4, 1 }, - { 0xffffffff } -}; - -static const struct kv_lcac_config_values mc1_local_cac_cfg_kv[] = -{ - { 0, 4, 1 }, - { 0xffffffff } -}; - -static const struct kv_lcac_config_values mc2_local_cac_cfg_kv[] = -{ - { 0, 4, 1 }, - { 0xffffffff } -}; - -static const struct kv_lcac_config_values mc3_local_cac_cfg_kv[] = -{ - { 0, 4, 1 }, - { 0xffffffff } -}; - -static const struct kv_lcac_config_values cpl_local_cac_cfg_kv[] = -{ - { 0, 4, 1 }, - { 1, 4, 1 }, - { 2, 5, 1 }, - { 3, 4, 1 }, - { 4, 1, 1 }, - { 5, 5, 1 }, - { 6, 6, 1 }, - { 7, 9, 1 }, - { 8, 4, 1 }, - { 9, 2, 1 }, - { 10, 3, 1 }, - { 11, 6, 1 }, - { 12, 8, 2 }, - { 13, 1, 1 }, - { 14, 2, 1 }, - { 15, 3, 1 }, - { 16, 1, 1 }, - { 17, 4, 1 }, - { 18, 3, 1 }, - { 19, 1, 1 }, - { 20, 8, 1 }, - { 21, 5, 1 }, - { 22, 1, 1 }, - { 23, 1, 1 }, - { 24, 4, 1 }, - { 27, 6, 1 }, - { 28, 1, 1 }, - { 0xffffffff } -}; - -static const struct kv_lcac_config_reg sx0_cac_config_reg[] = -{ - { 0xc0400d00, 0x003e0000, 17, 0x3fc00000, 22, 0x0001fffe, 1, 0x00000001, 0 } -}; - -static const struct kv_lcac_config_reg mc0_cac_config_reg[] = -{ - { 0xc0400d30, 0x003e0000, 17, 0x3fc00000, 22, 0x0001fffe, 1, 0x00000001, 0 } -}; - -static const struct kv_lcac_config_reg mc1_cac_config_reg[] = -{ - { 0xc0400d3c, 0x003e0000, 17, 0x3fc00000, 22, 0x0001fffe, 1, 0x00000001, 0 } -}; - -static const struct kv_lcac_config_reg mc2_cac_config_reg[] = -{ - { 0xc0400d48, 0x003e0000, 17, 0x3fc00000, 22, 0x0001fffe, 1, 0x00000001, 0 } -}; - -static const struct kv_lcac_config_reg mc3_cac_config_reg[] = -{ - { 0xc0400d54, 0x003e0000, 17, 0x3fc00000, 22, 0x0001fffe, 1, 0x00000001, 0 } -}; - -static const struct kv_lcac_config_reg cpl_cac_config_reg[] = -{ - { 0xc0400d80, 0x003e0000, 17, 0x3fc00000, 22, 0x0001fffe, 1, 0x00000001, 0 } -}; - static const struct kv_pt_config_reg didt_config_kv[] = { { 0x10, 0x000000ff, 0, 0x0, KV_CONFIGREG_DIDT_IND }, @@ -254,32 +155,6 @@ static struct kv_power_info *kv_get_pi(struct radeon_device *rdev) return pi; } -#if 0 -static void kv_program_local_cac_table(struct radeon_device *rdev, - const struct kv_lcac_config_values *local_cac_table, - const struct kv_lcac_config_reg *local_cac_reg) -{ - u32 i, count, data; - const struct kv_lcac_config_values *values = local_cac_table; - - while (values->block_id != 0xffffffff) { - count = values->signal_id; - for (i = 0; i < count; i++) { - data = ((values->block_id << local_cac_reg->block_shift) & - local_cac_reg->block_mask); - data |= ((i << local_cac_reg->signal_shift) & - local_cac_reg->signal_mask); - data |= ((values->t << local_cac_reg->t_shift) & - local_cac_reg->t_mask); - data |= ((1 << local_cac_reg->enable_shift) & - local_cac_reg->enable_mask); - WREG32_SMC(local_cac_reg->cntl, data); - } - values++; - } -} -#endif - static int kv_program_pt_config_registers(struct radeon_device *rdev, const struct kv_pt_config_reg *cac_config_regs) { @@ -398,39 +273,6 @@ static int kv_enable_didt(struct radeon_device *rdev, bool enable) return 0; } -#if 0 -static void kv_initialize_hardware_cac_manager(struct radeon_device *rdev) -{ - struct kv_power_info *pi = kv_get_pi(rdev); - - if (pi->caps_cac) { - WREG32_SMC(LCAC_SX0_OVR_SEL, 0); - WREG32_SMC(LCAC_SX0_OVR_VAL, 0); - kv_program_local_cac_table(rdev, sx_local_cac_cfg_kv, sx0_cac_config_reg); - - WREG32_SMC(LCAC_MC0_OVR_SEL, 0); - WREG32_SMC(LCAC_MC0_OVR_VAL, 0); - kv_program_local_cac_table(rdev, mc0_local_cac_cfg_kv, mc0_cac_config_reg); - - WREG32_SMC(LCAC_MC1_OVR_SEL, 0); - WREG32_SMC(LCAC_MC1_OVR_VAL, 0); - kv_program_local_cac_table(rdev, mc1_local_cac_cfg_kv, mc1_cac_config_reg); - - WREG32_SMC(LCAC_MC2_OVR_SEL, 0); - WREG32_SMC(LCAC_MC2_OVR_VAL, 0); - kv_program_local_cac_table(rdev, mc2_local_cac_cfg_kv, mc2_cac_config_reg); - - WREG32_SMC(LCAC_MC3_OVR_SEL, 0); - WREG32_SMC(LCAC_MC3_OVR_VAL, 0); - kv_program_local_cac_table(rdev, mc3_local_cac_cfg_kv, mc3_cac_config_reg); - - WREG32_SMC(LCAC_CPL_OVR_SEL, 0); - WREG32_SMC(LCAC_CPL_OVR_VAL, 0); - kv_program_local_cac_table(rdev, cpl_local_cac_cfg_kv, cpl_cac_config_reg); - } -} -#endif - static int kv_enable_smc_cac(struct radeon_device *rdev, bool enable) { struct kv_power_info *pi = kv_get_pi(rdev); @@ -1227,9 +1069,7 @@ int kv_dpm_enable(struct radeon_device *rdev) return ret; } kv_program_vc(rdev); -#if 0 - kv_initialize_hardware_cac_manager(rdev); -#endif + kv_start_am(rdev); if (pi->enable_auto_thermal_throttling) { ret = kv_enable_auto_thermal_throttling(rdev); @@ -1330,26 +1170,6 @@ void kv_dpm_disable(struct radeon_device *rdev) kv_update_current_ps(rdev, rdev->pm.dpm.boot_ps); } -#if 0 -static int kv_write_smc_soft_register(struct radeon_device *rdev, - u16 reg_offset, u32 value) -{ - struct kv_power_info *pi = kv_get_pi(rdev); - - return kv_copy_bytes_to_smc(rdev, pi->soft_regs_start + reg_offset, - (u8 *)&value, sizeof(u16), pi->sram_end); -} - -static int kv_read_smc_soft_register(struct radeon_device *rdev, - u16 reg_offset, u32 *value) -{ - struct kv_power_info *pi = kv_get_pi(rdev); - - return kv_read_smc_sram_dword(rdev, pi->soft_regs_start + reg_offset, - value, pi->sram_end); -} -#endif - static void kv_init_sclk_t(struct radeon_device *rdev) { struct kv_power_info *pi = kv_get_pi(rdev); @@ -1939,29 +1759,6 @@ void kv_dpm_setup_asic(struct radeon_device *rdev) kv_init_sclk_t(rdev); } -#if 0 -void kv_dpm_reset_asic(struct radeon_device *rdev) -{ - struct kv_power_info *pi = kv_get_pi(rdev); - - if (rdev->family == CHIP_KABINI || rdev->family == CHIP_MULLINS) { - kv_force_lowest_valid(rdev); - kv_init_graphics_levels(rdev); - kv_program_bootup_state(rdev); - kv_upload_dpm_settings(rdev); - kv_force_lowest_valid(rdev); - kv_unforce_levels(rdev); - } else { - kv_init_graphics_levels(rdev); - kv_program_bootup_state(rdev); - kv_freeze_sclk_dpm(rdev, true); - kv_upload_dpm_settings(rdev); - kv_freeze_sclk_dpm(rdev, false); - kv_set_enabled_level(rdev, pi->graphics_boot_level); - } -} -#endif - //XXX use sumo_dpm_display_configuration_changed static void kv_construct_max_power_limits_table(struct radeon_device *rdev, From patchwork Tue Nov 10 19:30:50 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 322865 Delivered-To: patch@linaro.org Received: by 2002:a05:6e02:5ce:0:0:0:0 with SMTP id l14csp500426ils; Tue, 10 Nov 2020 11:31:48 -0800 (PST) X-Google-Smtp-Source: ABdhPJznTUDS5aUoDaY0vKR9dvvqPtbsUQ7jeVuh8jR2E9lmUwr3Uok4GhVHcNRRTn9NmqYq1ju5 X-Received: by 2002:a17:902:9347:b029:d3:b2c6:1500 with SMTP id g7-20020a1709029347b02900d3b2c61500mr2115638plp.5.1605036708269; Tue, 10 Nov 2020 11:31:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605036708; cv=none; d=google.com; s=arc-20160816; b=dgzddc8DmtyyIeBqmEaeLt1ufjRrywBW1PKyK0XVcEhrtxvzeAFtZOoOeS6xcHC8iz mjigkan2GTpFCeSccfC+J9zgyxC8uXqfjuoPaTK5P/3yYc18/LbivHHKTuzQVGXTeEuG FIyFERsY6IVgBbRbscOYkog+oaj9UQ2Gs9SZ0n11aMKeFNIgN65igx+YzLscRwwetkQY ouEG0OEKit6X526jcSzJdho0AN9VS5nn1w0msP1A2XYB61u1LJVWiy8VpqbeHc8hsGzn Wehwk3+8uev2fhLqMuKPebT9tPxNHDnxdpRNncpP4cFBQfJi1dD1VyDJla4id3XccXrl PXyQ== 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=yMB7sqmeMyiCodBKDUa2bwpjWWs/ROpF9EdUh0fcA+c=; b=kXqvmme/aYw/SlTlHvSazdhm2btqYfSrkJjnHuxxGV4GFC2LatD6AG9nsTJ9ffPLjb /X0N7k6mHc/nOeQ6tL/vhNfjP9Ote3D7sn1ROYU56+Z+vhQTl5AQ76x+R/hf0ThvKfMp W8URKtBTLvETiU+90cf/RbqLbgjOywvwNR2QzpocATamFCeqB6CeO0IhQbD6OYa1/E4w xdry5LKuw1hajF1u6h1GuQ8yOnR8mbZlsjSxSoRiMWuA9g0P6o7Oy16Su1Qhrrk1JK/0 gZMjVDwDiz2XfXqBoEAnDAUFCIdXzzN9JNFwATekgaxlA5x1uVXDKcCpMuVNlWa9le0B GNIw== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=wZeGjKIo; 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 ba7si3115536plb.153.2020.11.10.11.31.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 10 Nov 2020 11:31:48 -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=wZeGjKIo; 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 39AA189C03; Tue, 10 Nov 2020 19:31:35 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wm1-x344.google.com (mail-wm1-x344.google.com [IPv6:2a00:1450:4864:20::344]) by gabe.freedesktop.org (Postfix) with ESMTPS id C422C89BF1 for ; Tue, 10 Nov 2020 19:31:27 +0000 (UTC) Received: by mail-wm1-x344.google.com with SMTP id d142so4344831wmd.4 for ; Tue, 10 Nov 2020 11:31: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=WSjLdlLWJSq+5kS7GDyIv4rvxAPSqu/8nkKg/bHUTUY=; b=wZeGjKIorbPA0c0PrlnhLlnJk1itC4n0nTzOcbguHLU7XW0VZKuUzrj6ysHsa+HgNf w80Z4ZeECtO1M3dSL3w3Km0+DR8inGbS+ShcfNMffu1CCsTlpt6i1jnIPaOWiagzdSsF KB/Qkz60IzImuWaMW9jQO2moRwFqPcXUHZALrSO8+nwWhPW4OLj9h32zxfuCObMGF9Y9 BSaHqq6YxNO/GPXJY9vH4OokQ4Tsg4I5CXONrwyGmojixpVvyZaWI1FfECBoomawAlB3 ERQO8NE4MsR79/f7r0YqSxeqgu1rnXeqaWlkb7gxWwisrbJppmH2hD7OItJ6C9wbbQk0 QpiA== 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=WSjLdlLWJSq+5kS7GDyIv4rvxAPSqu/8nkKg/bHUTUY=; b=tnu+BJ+z+IHgmLt3odfn1nZmucCFodvZIt7YGi6FDj0U6RH/obHEzfJewC1M+psgLC 5IUHmaiNfi2QLSDS9WFliGB9dXMPn0hftMSM0HN8F6W/T1qgshTVnMzXFErjSx96fWZ6 6psZByX+7Pyxl9PxHylR0iz0V7BIr5HB91aoZVUSkiChi3DUpHlwxuU3R+Z6HjwxDO23 TjhyTSslYzioVJb91tREqxncV3NInK5ArFKrJZygLwN+zY691GeuMoyguwMx3vqgryi2 H4Zns74QMsB7JcgYuQzI/6Tin575liTuERZUiv9tJ1Eh7VGY2+bHrE2FKWcfryZ5YhCF KLig== X-Gm-Message-State: AOAM532nDC7QmuMFQI/ieOIOA36fPl7Ii+wGNA8KcmG1Z/yPu6Djkb8v PuxHT6oH4oqqH5+8NOy2Pg1rYw== X-Received: by 2002:a1c:448:: with SMTP id 69mr736733wme.12.1605036686390; Tue, 10 Nov 2020 11:31:26 -0800 (PST) Received: from dell.default ([91.110.221.139]) by smtp.gmail.com with ESMTPSA id 30sm17635335wrs.84.2020.11.10.11.31.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 10 Nov 2020 11:31:25 -0800 (PST) From: Lee Jones To: lee.jones@linaro.org Subject: [PATCH 08/30] drm/radeon/ci_dpm: Remove set but unused variable 'dpm_event_src' Date: Tue, 10 Nov 2020 19:30:50 +0000 Message-Id: <20201110193112.988999-9-lee.jones@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20201110193112.988999-1-lee.jones@linaro.org> References: <20201110193112.988999-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, amd-gfx@lists.freedesktop.org, dri-devel@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" And the piece of code that has never been executed. Fixes the following W=1 kernel build warning(s): drivers/gpu/drm/radeon/ci_dpm.c: In function ‘ci_set_dpm_event_sources’: drivers/gpu/drm/radeon/ci_dpm.c:1369:28: warning: variable ‘dpm_event_src’ set but not used [-Wunused-but-set-variable] 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/radeon/ci_dpm.c | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/drivers/gpu/drm/radeon/ci_dpm.c b/drivers/gpu/drm/radeon/ci_dpm.c index 886e9959496fe..8324aca5fd006 100644 --- a/drivers/gpu/drm/radeon/ci_dpm.c +++ b/drivers/gpu/drm/radeon/ci_dpm.c @@ -1366,7 +1366,6 @@ static void ci_set_dpm_event_sources(struct radeon_device *rdev, u32 sources) { struct ci_power_info *pi = ci_get_pi(rdev); bool want_thermal_protection; - enum radeon_dpm_event_src dpm_event_src; u32 tmp; switch (sources) { @@ -1376,28 +1375,17 @@ static void ci_set_dpm_event_sources(struct radeon_device *rdev, u32 sources) break; case (1 << RADEON_DPM_AUTO_THROTTLE_SRC_THERMAL): want_thermal_protection = true; - dpm_event_src = RADEON_DPM_EVENT_SRC_DIGITAL; break; case (1 << RADEON_DPM_AUTO_THROTTLE_SRC_EXTERNAL): want_thermal_protection = true; - dpm_event_src = RADEON_DPM_EVENT_SRC_EXTERNAL; break; case ((1 << RADEON_DPM_AUTO_THROTTLE_SRC_EXTERNAL) | (1 << RADEON_DPM_AUTO_THROTTLE_SRC_THERMAL)): want_thermal_protection = true; - dpm_event_src = RADEON_DPM_EVENT_SRC_DIGIAL_OR_EXTERNAL; break; } if (want_thermal_protection) { -#if 0 - /* XXX: need to figure out how to handle this properly */ - tmp = RREG32_SMC(CG_THERMAL_CTRL); - tmp &= DPM_EVENT_SRC_MASK; - tmp |= DPM_EVENT_SRC(dpm_event_src); - WREG32_SMC(CG_THERMAL_CTRL, tmp); -#endif - tmp = RREG32_SMC(GENERAL_PWRMGT); if (pi->thermal_protection) tmp &= ~THERMAL_PROTECTION_DIS; From patchwork Tue Nov 10 19:30:51 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 322859 Delivered-To: patch@linaro.org Received: by 2002:a05:6e02:5ce:0:0:0:0 with SMTP id l14csp500272ils; Tue, 10 Nov 2020 11:31:38 -0800 (PST) X-Google-Smtp-Source: ABdhPJwSIqGfTUrm9v1z7QnTRF7hzxzFc51lG0eL9/Qr8rEfrGbNmXwk0cKCiRFbD7wF5EiAqtZ3 X-Received: by 2002:a05:6a00:7d7:b029:18c:5ac1:d6b4 with SMTP id n23-20020a056a0007d7b029018c5ac1d6b4mr2788387pfu.32.1605036698399; Tue, 10 Nov 2020 11:31:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605036698; cv=none; d=google.com; s=arc-20160816; b=qYeN1WNBI8ay2wO7dmsGX0K+CCHgUkIdWBtjosjW4a0Pc6PYa8wOpaN7DxAd+E+rVe WGgJka8jnRLPChO1iArkHQOsPlvKnt2ugDCZFzimzloCP3V3ZM/T7XH48PJkAkvVIOaM 0tqBksIn1x9ZLaWnQ+wV3R9S5cOC0s/RDS6Z/LaM3HHgc45YWcvnEVgrnWRIN6SAIpuA 25f+xYnW+aBDYqR1TmYU70w/rVujkPgIW9PzahP4iUDjmt3GQu00J2joaI+fKRM0Zjp/ 781iH61JcMrC7B5oMhRI5eFKmfz74uq0MGRsmMyVKNRENNJJzk18cogVSs5m3E21sMup Kbeg== 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=IZ6b/QMXPG0fAiQZ74HQvizbv7r2zZP/I5P4lG3UpVQ=; b=sQBjWMoaZYGGgeL9y9irrZ0S08Haj10a02v0BLg5wV/318dIBODWYkRW7xS5iYhpd2 5x6bphZ2foEAaEGIP8GtcZT9reWJH/OnHH50kQpLPdZMMc/pReDlPHDzvfQgEM3MyGEy WeygSE92vUmSVj2SK+hYkttZedllGObVmXfN+Cjd0/s95PrWPWLCdRpi9Q5y1E9Cmxoi Pu/87DCqS6PluIiuRay3iWu9L5Z4GvL6eRUtkLUNA2komoydPkDt3USgqJaHfS1/i0ms 6Yw8M1qfzW8LNXIgmF6ecw5UKSK2mrNyNZhNXOOMrxbMkasJlttKtC5/9xkZafs4J8bp MkWA== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=ZoCAeWqO; 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 s188si12421130pgc.165.2020.11.10.11.31.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 10 Nov 2020 11:31:38 -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=ZoCAeWqO; 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 C781489BE8; Tue, 10 Nov 2020 19:31:29 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wr1-x444.google.com (mail-wr1-x444.google.com [IPv6:2a00:1450:4864:20::444]) by gabe.freedesktop.org (Postfix) with ESMTPS id 1973389BE8 for ; Tue, 10 Nov 2020 19:31:29 +0000 (UTC) Received: by mail-wr1-x444.google.com with SMTP id o15so6164846wru.6 for ; Tue, 10 Nov 2020 11:31: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=niuclzZLrXXllUvyLIlNhRMSWO6LD3jFvv7VGpxMEl8=; b=ZoCAeWqOWnwlTA6KsKAUyspJhNqifj65RCAJ2Bbve89rw9W2XKZNT8qx9vnCUrG+70 +CFU7uXuG2uDCdH4IBNlSUQYOHyma6KqozSOVJNzx7fLBiC495M1QHG0kXo7/De7OnpV ignD954xFpyTo1V0XphVRlSM9fXgFrtktfiGjgPGjjmbnm/3S9aSybfx0jc/kSFQhwP1 M8jJ9JEPfjZZ8zvDkowuVkWPF6K0LaTkW3Dw+aOje1kLR+21+ODvaMmJT1B9jfNaVC4f gukHJ0YC7YiPPKt1NOhnmVXVnDaLevKvD6A1tTGEjelGUVGvJaZjHxf7qmgAI4Q66Thf wtQw== 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=niuclzZLrXXllUvyLIlNhRMSWO6LD3jFvv7VGpxMEl8=; b=C7+fBT1Jjhx2fzPGA4NhBS++HPIstatWylR03Lz0Ziwztig8u49NysJpPnQKSmIpTM ye1fHPGJ5xhE67kfJNFbARSRB8Rb0cAXAaT9/0ycak+PnZidLRnwbaWC+yLY+LsLOPxh sFueHml9koEOfExK7+e+5r1tiW+4SaEOPH6fexMNTiOhAYjWm6C56DKWOAgexEZSFbYW RWlNcujHM2mz5ES8KhZnB/FFVcg9jbYWU0bDWMlh9TlT5KIJVPhWNCccNBlnp12jgAX5 AaWMlI6oM0lG/9X4HWis8WdfocgzMXY62BMs421yYa5/0UZffUM4uUSCB/TRUzfITJLj a3ZA== X-Gm-Message-State: AOAM533YLNKCQ3TP5ft5aZcaGkBn9eH4EDNpGDd4DETXm2CDkMjOLAl3 9WSkdRxgGicRSj3Lr/aaCSjbFQ== X-Received: by 2002:a5d:670f:: with SMTP id o15mr8801086wru.204.1605036687702; Tue, 10 Nov 2020 11:31:27 -0800 (PST) Received: from dell.default ([91.110.221.139]) by smtp.gmail.com with ESMTPSA id 30sm17635335wrs.84.2020.11.10.11.31.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 10 Nov 2020 11:31:26 -0800 (PST) From: Lee Jones To: lee.jones@linaro.org Subject: [PATCH 09/30] drm/radeon/radeon_vm: Fix some function parameter documentation Date: Tue, 10 Nov 2020 19:30:51 +0000 Message-Id: <20201110193112.988999-10-lee.jones@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20201110193112.988999-1-lee.jones@linaro.org> References: <20201110193112.988999-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, amd-gfx@lists.freedesktop.org, dri-devel@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" Fixes the following W=1 kernel build warning(s): drivers/gpu/drm/radeon/radeon_vm.c:131: warning: Function parameter or member 'rdev' not described in 'radeon_vm_get_bos' drivers/gpu/drm/radeon/radeon_vm.c:643: warning: Excess function parameter 'start' description in 'radeon_vm_update_page_directory' drivers/gpu/drm/radeon/radeon_vm.c:643: warning: Excess function parameter 'end' description in 'radeon_vm_update_page_directory' drivers/gpu/drm/radeon/radeon_vm.c:819: warning: Function parameter or member 'ib' not described in 'radeon_vm_update_ptes' drivers/gpu/drm/radeon/radeon_vm.c:915: warning: Function parameter or member 'bo_va' not described in 'radeon_vm_bo_update' drivers/gpu/drm/radeon/radeon_vm.c:915: warning: Excess function parameter 'vm' description in 'radeon_vm_bo_update' drivers/gpu/drm/radeon/radeon_vm.c:915: warning: Excess function parameter 'bo' description in 'radeon_vm_bo_update' drivers/gpu/drm/radeon/radeon_vm.c:1155: warning: Excess function parameter 'vm' description in 'radeon_vm_bo_invalidate' 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/radeon/radeon_vm.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/drivers/gpu/drm/radeon/radeon_vm.c b/drivers/gpu/drm/radeon/radeon_vm.c index 27b14eff532cb..71f2edcac6ea0 100644 --- a/drivers/gpu/drm/radeon/radeon_vm.c +++ b/drivers/gpu/drm/radeon/radeon_vm.c @@ -119,6 +119,7 @@ void radeon_vm_manager_fini(struct radeon_device *rdev) /** * radeon_vm_get_bos - add the vm BOs to a validation list * + * @rdev: radeon_device pointer * @vm: vm providing the BOs * @head: head of validation list * @@ -629,8 +630,6 @@ static uint32_t radeon_vm_page_flags(uint32_t flags) * * @rdev: radeon_device pointer * @vm: requested vm - * @start: start of GPU address range - * @end: end of GPU address range * * Allocates new page tables if necessary * and updates the page directory (cayman+). @@ -802,6 +801,7 @@ static void radeon_vm_frag_ptes(struct radeon_device *rdev, * * @rdev: radeon_device pointer * @vm: requested vm + * @ib: indirect buffer to use for the update * @start: start of GPU address range * @end: end of GPU address range * @dst: destination address to map to @@ -900,8 +900,7 @@ static void radeon_vm_fence_pts(struct radeon_vm *vm, * radeon_vm_bo_update - map a bo into the vm page table * * @rdev: radeon_device pointer - * @vm: requested vm - * @bo: radeon buffer object + * @bo_va: radeon buffer object * @mem: ttm mem * * Fill in the page table entries for @bo (cayman+). @@ -1145,7 +1144,6 @@ void radeon_vm_bo_rmv(struct radeon_device *rdev, * radeon_vm_bo_invalidate - mark the bo as invalid * * @rdev: radeon_device pointer - * @vm: requested vm * @bo: radeon buffer object * * Mark @bo as invalid (cayman+). From patchwork Tue Nov 10 19:30:52 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 322863 Delivered-To: patch@linaro.org Received: by 2002:a05:6e02:5ce:0:0:0:0 with SMTP id l14csp500376ils; Tue, 10 Nov 2020 11:31:45 -0800 (PST) X-Google-Smtp-Source: ABdhPJyHRTIczSsXTtcDMnJXIZP5tB9L7SD2jR7sYO46uuCjiV5aZiJ8AU0vsXRzvytcSkXk9nD1 X-Received: by 2002:aa7:9ece:0:b029:18c:4931:a4e6 with SMTP id r14-20020aa79ece0000b029018c4931a4e6mr4436964pfq.56.1605036705073; Tue, 10 Nov 2020 11:31:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605036705; cv=none; d=google.com; s=arc-20160816; b=0W9A49skyqTPP3nODBYtGSLhZcc+Ieh6VXBQ6GWWc+emNaoeY4xDpat9qd9q0Af2Au lzltB7aJ9w19l/sX7MVzpsdGEatWvP1Zb8MAUfxR0GwnwqkGsYfgNhb+wwi04tFwyNyw X4M5mw5e3aD9Gnl9+W3rRO7cdo/v4+ouMO14WxILopRl/I2/l/EJsLDkVBimicGIm2B0 X/ypIbSWqv16+663uMLSyAkaViR6rEj+JEkEXfD/188MLDxlmGH2+W/cgIltuqrkPXSt TMwYLY22xrFgqmDSg46u00Wo5ac95r+znNDYmdopW5ZttoxNoBs4QrE7GpfGkfSiW3fD 3LRA== 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=1OPF/QaVq6tBQ0cLf0yzrt7QxhP/eommQQLF28IXLwk=; b=FyOppC6lHlLLJjD8+V4BYCtiOz3FHKJPqI7GXLs21EaT+n9TAb5W090bcj6ohNZinl QkDG4aUzuEVczNWIYYrqmtbXO6zhtZte/5YV50T2otKgw+jB3ywTnM/ziS7RQYD7dwOc CySzLc9Jlnj8aqCIFRbs+rWpMhbDyiPHNexkAPF6HmRfKak1q9UsRb+yaGyvqcQg/dy6 PLLHLNUVAmxcY6cV5FZdFFoPAdN8wH+vBtIaJKTyEfE0hD51HJjawi00x7P5W7MVodNH J3C5m8vBOXX9MmgtEM6Pg9nFnSCX5eX/tpMTLpsUFwomhPDXxMkuExx9+h9RhmpZGXZC eBkQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=oRjNGtc4; 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 x10si13091533pll.377.2020.11.10.11.31.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 10 Nov 2020 11:31:45 -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=oRjNGtc4; 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 05FD289BF6; Tue, 10 Nov 2020 19:31:35 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wr1-x441.google.com (mail-wr1-x441.google.com [IPv6:2a00:1450:4864:20::441]) by gabe.freedesktop.org (Postfix) with ESMTPS id 81F1E89BF6 for ; Tue, 10 Nov 2020 19:31:30 +0000 (UTC) Received: by mail-wr1-x441.google.com with SMTP id p8so13205286wrx.5 for ; Tue, 10 Nov 2020 11:31: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=BMGz1Go+pEr1OAoO/uoDpgq9jEcR7kKbucOo/rEyug8=; b=oRjNGtc4H3+Om+51bGN+MLhDkMLLGJE4P9jCjdCKIl0vqVd9TW09aAjP68FcKpOe2I HxP90vSfbxnkJJ6RPe4Tj3qiXJd0s1E3HHlMaNVtDLYm8exe5AfqiCeJdHm9SBer0vJB xiVK+DwOIDPZqybrvsBcqJX5B6ANJ5QEM/AoUnIM6pyX9FMbYDuPD/iimPCqRNUX8cbT g+4Q+wGcAOdelme77sLR3z8woRPdo1jM//1XQTuSZsGs9gBUcj3W2gVsKohL291vpX9n /U9CHZN1HdaoV34HMDyVChxZJ1uDh+aBWSnVp7RAyjuDyxsJFyD/ikfXkF1Q0Ld3gaNy PHBg== 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=BMGz1Go+pEr1OAoO/uoDpgq9jEcR7kKbucOo/rEyug8=; b=tLF9F/mWLasu4hI/B5VAqFwPap0pqGZu+x07msom6oznWI1aRBL0SlLKYCAPQIYWuy /xQ1VQpjoXxvqy47XDavv/45ln/8mWjM14KO3VAjoqZxIvIJQqMKTgPux1rxSz/0l0ok N8SYlWLJUGymZXmzyzD7+nfOgDfB/RtOPBPzYZGQdNq8HI1VRPwG2ZhMM+wPrdSNqK41 oqsC/o/qr27tcpk4ZZVJwnuBHbPNs2D0dYVRbxvZ4prr4BOD1FwECMW+0qQGCwLzN/Fu ztUIo4pq1BVX+yCbTnw2FlwWCHE+OXnR9kpcbAcUHVSzHLEIc7+GOoeD94VSyJbQ4PwS r0fQ== X-Gm-Message-State: AOAM5306wEG3P0mZ84G3XWN4Owy63ZIl26aVq//hbyS0G2O6szw4IDdD +TIBIqUGaSQgrKvjCMn1H4W3zw== X-Received: by 2002:a5d:6411:: with SMTP id z17mr863570wru.112.1605036689143; Tue, 10 Nov 2020 11:31:29 -0800 (PST) Received: from dell.default ([91.110.221.139]) by smtp.gmail.com with ESMTPSA id 30sm17635335wrs.84.2020.11.10.11.31.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 10 Nov 2020 11:31:28 -0800 (PST) From: Lee Jones To: lee.jones@linaro.org Subject: [PATCH 10/30] drm/radeon/radeon_sync: Add description for function param 'rdev' Date: Tue, 10 Nov 2020 19:30:52 +0000 Message-Id: <20201110193112.988999-11-lee.jones@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20201110193112.988999-1-lee.jones@linaro.org> References: <20201110193112.988999-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, amd-gfx@lists.freedesktop.org, =?utf-8?q?Christian_K=C3=B6nig?= , linaro-mm-sig@lists.linaro.org, dri-devel@lists.freedesktop.org, Alex Deucher , 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/radeon/radeon_sync.c:92: warning: Function parameter or member 'rdev' not described in 'radeon_sync_resv' Cc: Alex Deucher Cc: "Christian König" Cc: David Airlie Cc: Daniel Vetter Cc: Sumit Semwal Cc: amd-gfx@lists.freedesktop.org Cc: dri-devel@lists.freedesktop.org Cc: linux-media@vger.kernel.org Cc: linaro-mm-sig@lists.linaro.org Signed-off-by: Lee Jones --- drivers/gpu/drm/radeon/radeon_sync.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpu/drm/radeon/radeon_sync.c b/drivers/gpu/drm/radeon/radeon_sync.c index 55cc77a73c7b7..5d3302945076b 100644 --- a/drivers/gpu/drm/radeon/radeon_sync.c +++ b/drivers/gpu/drm/radeon/radeon_sync.c @@ -79,6 +79,7 @@ void radeon_sync_fence(struct radeon_sync *sync, /** * radeon_sync_resv - use the semaphores to sync to a reservation object * + * @rdev: radeon_device pointer * @sync: sync object to add fences from reservation object to * @resv: reservation object with embedded fence * @shared: true if we should only sync to the exclusive fence From patchwork Tue Nov 10 19:30:53 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 322864 Delivered-To: patch@linaro.org Received: by 2002:a05:6e02:5ce:0:0:0:0 with SMTP id l14csp500404ils; Tue, 10 Nov 2020 11:31:46 -0800 (PST) X-Google-Smtp-Source: ABdhPJy5GMWaVxMoTRVaKtIs1CfOm4darYb8TakgDL81YeWqmlAQgrmeiThfCkAP+3gge+0KUGZE X-Received: by 2002:a17:90b:3252:: with SMTP id jy18mr688979pjb.191.1605036706599; Tue, 10 Nov 2020 11:31:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605036706; cv=none; d=google.com; s=arc-20160816; b=xzHjUF/4EB8B0855ed02veWvrP5t0VbQnONt0GezHAYKYvv6BlzO3+WOxR4fKotcIk lbCURDtR4WA3KHqPJ++Ato9XDiKLPzr7pmZo7lNCiaBM9JPfVFQVwv6A/H8x/zSgIdD/ mxXjlj+ApmuiA3uwWVl9FxHNXhwDe+N55wbke9I1LZW5+JzMP4du0pM0lHG/Fg62nTdU pIK+SK1tke3ZmY3f9PGWmkRyctaxGnePskYdkOP7mpLrkz/MypQnCi4Isfuk4PlAHdnH 0jImFbvCYOb/bEJrlR/K0nPZ2W3O0/J6ItRmrOmBCNB7Plj1InWiSowij5AaZt6pjwW1 XLJg== 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=4pRsChCwlFSyv5TS9DeuM1TlV1viJ6oRjUDAqCvLIG0=; b=jMUdz9/QU+GzJsmKZz5Jrhkwx60+T6qxQ9M3EzEaCS6dHGi5rgpToj9wTOy8g/c7T8 p/dKN7YQx4+7CqNFrF1oIJXdmR5LbsgoYCuVDPX35fWwpurjhhyAv1BV9gOAXJyHFqVJ Oegp4AeRHzkCt/1S+xbFGy5fjVC7qSgg12/gbHc/7lp3P71vDiBi70CqGjiuv3gFYmeV LtvyDd6EXb0AbnUROdlUS6bHiwA5Tqzv/SgHZKz0IlXUB5QPn3TzqEiyGhObZa3/QBQ3 G6Es7NuJR0ClXnJ97Lr5xcwWdBkPwwsY3bfHjhjnUi0/zTuEbkbXzlFpHzHjE3qzweuj 6M9g== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=vS46JKcE; 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 s6si12740144pgo.140.2020.11.10.11.31.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 10 Nov 2020 11:31:46 -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=vS46JKcE; 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 2BF3C89BFF; Tue, 10 Nov 2020 19:31:35 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wm1-x343.google.com (mail-wm1-x343.google.com [IPv6:2a00:1450:4864:20::343]) by gabe.freedesktop.org (Postfix) with ESMTPS id A439889BF8 for ; Tue, 10 Nov 2020 19:31:31 +0000 (UTC) Received: by mail-wm1-x343.google.com with SMTP id h62so4311838wme.3 for ; Tue, 10 Nov 2020 11:31: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=xLMSTbAF92ExvmzWs2JoLwFgJtHWMDt9gk+mh90YZlk=; b=vS46JKcEmSWEQ3jxokyfU3VpP+Kg5LtmqXQcuf/5Lpde1IBpJDp2rXzKHT9D2/Sn5J yCgGGCxwdlJNzYtFFtYduZNnDZW8g7uzYAawpyS49TyAd1vEMgQLCnuL7DuH22jt4jmE /flXpNq4bfxjgNX0LGd6afTlsweLI1uevM8eoFZSv5F3HHg0BuqX6D262fuEtKnk/n9/ slWy4R9tVgQaF1FOGG56x8ognPP/x2Grl1EEOyXYILf0zJAIguIzqxePHoQLKZ90QQyN BJdcIKLygprzsTLHGs4qnZzfIJUPOjadAD49f8ag10HK38i0fzolUac0mlThHXgdqn4F hZLQ== 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=xLMSTbAF92ExvmzWs2JoLwFgJtHWMDt9gk+mh90YZlk=; b=g4UDk2xq3jfqbWdtFiHPxdfdA7uEMY732NHOiVROLjJaKR+MQ4MW4SAC/NEky7jZaX 9US0aMW/+xw0u/3RcDl/rL3JBO209sjjNLMQRDXAqLv+Cq3kQ0h8JDHB3ylEJ9wax4/0 spkrgEX5hZuLp0iy8VMlM8jjeIDTZHoGVwBSUMJ+7XEG4S/AnZsA//Ae6sc3tc2Sgr4z rW7gDUYWSwXADV0Xx3HKaLJAeXKpeAVu7Rjisuxf09MZWRRMXJpd1cXGEicT6tRJIzlj 5Y528ZmzA+YQqJDqd9auVkhrs6oC3mhdUrtbieeC40ClbfS1z6g1q4LgH/wScjaTirK0 slGA== X-Gm-Message-State: AOAM532kXRavWlMcCy+Hi2pZiTT7Jkb/VMaYanEQ9GDaVEhNJXzWOyvq g6RZ0KErLOVSFGjq63REIE/Ukw== X-Received: by 2002:a1c:99d3:: with SMTP id b202mr764766wme.0.1605036690396; Tue, 10 Nov 2020 11:31:30 -0800 (PST) Received: from dell.default ([91.110.221.139]) by smtp.gmail.com with ESMTPSA id 30sm17635335wrs.84.2020.11.10.11.31.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 10 Nov 2020 11:31:29 -0800 (PST) From: Lee Jones To: lee.jones@linaro.org Subject: [PATCH 11/30] drm/radeon/radeon_ib: Supply description for 'radeon_ib_get's get param Date: Tue, 10 Nov 2020 19:30:53 +0000 Message-Id: <20201110193112.988999-12-lee.jones@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20201110193112.988999-1-lee.jones@linaro.org> References: <20201110193112.988999-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, amd-gfx@lists.freedesktop.org, dri-devel@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" Fixes the following W=1 kernel build warning(s): drivers/gpu/drm/radeon/radeon_ib.c:61: warning: Function parameter or member 'vm' not described in 'radeon_ib_get' 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/radeon/radeon_ib.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpu/drm/radeon/radeon_ib.c b/drivers/gpu/drm/radeon/radeon_ib.c index 9fd55e9c616b0..c1fca2ba443c9 100644 --- a/drivers/gpu/drm/radeon/radeon_ib.c +++ b/drivers/gpu/drm/radeon/radeon_ib.c @@ -48,6 +48,7 @@ static int radeon_debugfs_sa_init(struct radeon_device *rdev); * * @rdev: radeon_device pointer * @ring: ring index the IB is associated with + * @vm: requested vm * @ib: IB object returned * @size: requested IB size * From patchwork Tue Nov 10 19:30:54 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 322862 Delivered-To: patch@linaro.org Received: by 2002:a05:6e02:5ce:0:0:0:0 with SMTP id l14csp500361ils; Tue, 10 Nov 2020 11:31:43 -0800 (PST) X-Google-Smtp-Source: ABdhPJxwHV4Dnz2JHhSbS3ag/cZEf41wzaOxPq4xfVefWBMEP96j3rKDmuMN94J56CBKg0ctO/YH X-Received: by 2002:a17:90a:6b0d:: with SMTP id v13mr705588pjj.206.1605036703536; Tue, 10 Nov 2020 11:31:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605036703; cv=none; d=google.com; s=arc-20160816; b=CiQwrM5zytN3ytwRVRGSRzgObJfgw5eMZ5t5NQmihn1IghcAIzW3Q8MPZPLhxwQEYh Bf1svZDYt57RFkgvjBSddKV4BtIuK6KroW1+5j3amiLZBXWlVDS9mjMt3hoO5REvIHxC rS107T/rkvFcutTvLojcQgvoMa95zXfQU0H84jNyiTDQOauTMxRiEQoOSKEJ7MYKwOWf QS2U7SrqUD9NTBT65399hXmtl+pVv4+hr/uBAMvSYRQhj6wCKY0iEKQtLiDsuf5/blg+ ZdsvciOwrGoV56pIy8XBFGGmLOxknwUzXmntATIKGu+8yJ9F5wu9wuGd3/tSyJWTCRig JTgw== 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=4M+OHfQuSobGZUDCMsLPIeOm6J74mMwXt+zkmWsXa58=; b=0MmJwmYwHKoZjA/c/+9154ytlepCw1qhzmdp6A397lhL5X0On8wqCVV947TJ1qmvfO /2ELjoHbuW8vNm89ZUru3qwnO34IzRc1p/3KjMBsHJPrj8GFwrftGv9EOXg6S9r5iNu3 dhSipeuvwB3WebwO0aEqgjxzAJxIjqmS60d0ZzkYVzkH7mH7ocvRJxkcgd2ff205RppW a2NXV6Zf6j+Oe9wWQvvIhoKgbwuE/cDrnp34e48L6x2Rf8lk8RY926rwf2HigL702VEq RzRUavHZIMKkBarSXBvR97n2PTqQEoIyXXid6cNepJG3l6pl8YYnrdkpuqLgFpIX9qZq h8fQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=iM7SQKT+; 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 e6si12385487pfd.161.2020.11.10.11.31.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 10 Nov 2020 11:31: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=iM7SQKT+; 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 1938689BFE; Tue, 10 Nov 2020 19:31:35 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wr1-x441.google.com (mail-wr1-x441.google.com [IPv6:2a00:1450:4864:20::441]) by gabe.freedesktop.org (Postfix) with ESMTPS id D7CF189BFC for ; Tue, 10 Nov 2020 19:31:32 +0000 (UTC) Received: by mail-wr1-x441.google.com with SMTP id b8so14010239wrn.0 for ; Tue, 10 Nov 2020 11:31: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=Ya0KOHBj5YEQtB7YNRLKjFwwnQlrRlrUyTmR5vFE0Ms=; b=iM7SQKT+43Kp8b2PREMcIXXq6cm29sGsG50wr3Rsh3aEH7Av9D+TiUBErtQWNcLtXu KWhzdxVXzoDCE642pA6rkWKWOcuUB830UwNmIg5rI7bKtD0mRnFHwRZ7AYtu+ctpym6k Tv4e4S2Y9b82lfK4juqKqwKn6ajT1oJ7QO9ZuT+GEKDlGc7d7bNzT68wq/W+PlmFdEbR 2b6Yc1zmKfBSPLgkTMmSM5aamjvOh0AJ0bHPv6XqHaIY0V8EgpCpLUb5UZUY4Bft1GhC ydBGXYmD6ryT8HLVarK9aWMLDjremqLMcAuMrtFWZ4saFKoTrAKLg3FgYe17JBQ/UHAr 3Z6g== 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=Ya0KOHBj5YEQtB7YNRLKjFwwnQlrRlrUyTmR5vFE0Ms=; b=CBIEfFpGoSPWgDVbbupS9Kjs026AGKsynn8JRkfnai8B7ia62rHgAC/N2+2KekdE4g 4yHlN+u0BZK6K3R/qDG0+El7yrdH4rUXHD5gqIGmIYM1ifqLsL/6sHJZbzfDMcEe4I5J vazzc1ScT4KfqonI9K+QymsIFzgZWGAKhrnOVIBpTRl1HBsEETG2LEh/Yo3qv0afXW13 bbz/sFWxQOtKpftrSXthKL40gdTNfV+euL1l59Xr5cVJnvRo59XxXuBSzt/Fg2Ogm5Uz P5wSfSYGFE9DZRz/vjvTEu0GYGsSF/+WylGW3TCYds56fxjpnGVh6a3PwFsk/3p0Mnww rs1A== X-Gm-Message-State: AOAM531Z85a7fDwj+KDeJ6qRUloQWsO1zjSyhn+hng7a+tLy3GeeRzZ+ c0plmAZ1rDCYfTkEIWfQgkEpvg== X-Received: by 2002:adf:f644:: with SMTP id x4mr26076211wrp.5.1605036691550; Tue, 10 Nov 2020 11:31:31 -0800 (PST) Received: from dell.default ([91.110.221.139]) by smtp.gmail.com with ESMTPSA id 30sm17635335wrs.84.2020.11.10.11.31.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 10 Nov 2020 11:31:30 -0800 (PST) From: Lee Jones To: lee.jones@linaro.org Subject: [PATCH 12/30] drm/radeon/radeon_dp_mst: Remove unused variable 'ret' from radeon_mst_encoder_dpms() Date: Tue, 10 Nov 2020 19:30:54 +0000 Message-Id: <20201110193112.988999-13-lee.jones@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20201110193112.988999-1-lee.jones@linaro.org> References: <20201110193112.988999-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, amd-gfx@lists.freedesktop.org, dri-devel@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" Fixes the following W=1 kernel build warning(s): drivers/gpu/drm/radeon/radeon_dp_mst.c: In function ‘radeon_mst_encoder_dpms’: drivers/gpu/drm/radeon/radeon_dp_mst.c:366:6: warning: variable ‘ret’ set but not used [-Wunused-but-set-variable] 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/radeon/radeon_dp_mst.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/drivers/gpu/drm/radeon/radeon_dp_mst.c b/drivers/gpu/drm/radeon/radeon_dp_mst.c index 008308780443c..2c32186c4acd9 100644 --- a/drivers/gpu/drm/radeon/radeon_dp_mst.c +++ b/drivers/gpu/drm/radeon/radeon_dp_mst.c @@ -363,7 +363,7 @@ radeon_mst_encoder_dpms(struct drm_encoder *encoder, int mode) struct radeon_connector *radeon_connector; struct drm_crtc *crtc; struct radeon_crtc *radeon_crtc; - int ret, slots; + int slots; s64 fixed_pbn, fixed_pbn_per_slot, avg_time_slots_per_mtp; if (!ASIC_IS_DCE5(rdev)) { DRM_ERROR("got mst dpms on non-DCE5\n"); @@ -418,10 +418,10 @@ radeon_mst_encoder_dpms(struct drm_encoder *encoder, int mode) slots = drm_dp_find_vcpi_slots(&radeon_connector->mst_port->mst_mgr, mst_enc->pbn); - ret = drm_dp_mst_allocate_vcpi(&radeon_connector->mst_port->mst_mgr, - radeon_connector->port, - mst_enc->pbn, slots); - ret = drm_dp_update_payload_part1(&radeon_connector->mst_port->mst_mgr); + drm_dp_mst_allocate_vcpi(&radeon_connector->mst_port->mst_mgr, + radeon_connector->port, + mst_enc->pbn, slots); + drm_dp_update_payload_part1(&radeon_connector->mst_port->mst_mgr); radeon_dp_mst_set_be_cntl(primary, mst_enc, radeon_connector->mst_port->hpd.hpd, true); @@ -436,9 +436,9 @@ radeon_mst_encoder_dpms(struct drm_encoder *encoder, int mode) atombios_dig_encoder_setup2(&primary->base, ATOM_ENCODER_CMD_DP_VIDEO_ON, 0, mst_enc->fe); - ret = drm_dp_check_act_status(&radeon_connector->mst_port->mst_mgr); + drm_dp_check_act_status(&radeon_connector->mst_port->mst_mgr); - ret = drm_dp_update_payload_part2(&radeon_connector->mst_port->mst_mgr); + drm_dp_update_payload_part2(&radeon_connector->mst_port->mst_mgr); break; case DRM_MODE_DPMS_STANDBY: @@ -450,7 +450,7 @@ radeon_mst_encoder_dpms(struct drm_encoder *encoder, int mode) return; drm_dp_mst_reset_vcpi_slots(&radeon_connector->mst_port->mst_mgr, mst_enc->port); - ret = drm_dp_update_payload_part1(&radeon_connector->mst_port->mst_mgr); + drm_dp_update_payload_part1(&radeon_connector->mst_port->mst_mgr); drm_dp_check_act_status(&radeon_connector->mst_port->mst_mgr); /* and this can also fail */ From patchwork Tue Nov 10 19:30:55 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 322866 Delivered-To: patch@linaro.org Received: by 2002:a05:6e02:5ce:0:0:0:0 with SMTP id l14csp500449ils; Tue, 10 Nov 2020 11:31:49 -0800 (PST) X-Google-Smtp-Source: ABdhPJxulJ68ENkFREv0RL+4nm2bxt5951Wvy75Qf/PDQdDOCqY+rpVSu1olxW+GZEdJAdvXy7iW X-Received: by 2002:a17:90b:2152:: with SMTP id kt18mr725586pjb.10.1605036709614; Tue, 10 Nov 2020 11:31:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605036709; cv=none; d=google.com; s=arc-20160816; b=mOPSTlVKpz33StJtgama5630Vuw6dDEoDbxxP9qVFWcMF4uqf4GRt0xDRDIVsFBFD5 ydhQZLiR8V+lrsI4JUd7ju83la62Xh9cwrB+A3WKjVki4GqBrqYzSKSw2dxZISmVxF+/ x0oRCVtDkNGT4x+nBl9e6gq7hXgfEIB6CXk6Aa75MXRPcSwdPRJDuGEs+fTKKTK3XSRG NaBlGhWDcASfX7h7pZIOy6eBxgjBN3UhIYT8+kspuyJMKSeD2BrZiO3vPXlix+25SZT+ VieIeaQOzLJzwEKtfk0NTTOPs6hMivtW+FNjUr2Mu+DP+7dNgwHeBYHrdGwamutPxTZf hd0g== 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=mL65ZYN7ZTqafhdLjZem0dYN0hXEfmkjM13Z233lN34=; b=LPX3NCJYNvzHJBGX24maC+htUXtoktCV/jXawVklnD8R5K2KrLrT9Z1er7siZTppLn AgWrG9sxW/SDkeHLcZzFXyHpyQAGU3J9jylS76V8wSPufsw7U16ELRRvvTzL1HAUbJZ+ lHuWGh6yLyYH4AwUGfufMsSw5la5YmyVJqZ7OxUnAFkLXgR2qmrSDHsJzudjF/h6lqdP ZZuSNmskYYyQ9zlPX2UJAoZlAmbIjvNcoldVRIQYDm+H9+lH/sEkt/I7pIeT4KFiW/Ad sAfdhryrOIE07UJXRjiQS55w4TMTebNdH55BVG63K5+xbozLPCNFcyx0IG9mp1PyGhU/ el5Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=w2cAylpR; 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 l23si12077979pgt.367.2020.11.10.11.31.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 10 Nov 2020 11:31: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=w2cAylpR; 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 1900389C05; Tue, 10 Nov 2020 19:31:37 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wm1-x344.google.com (mail-wm1-x344.google.com [IPv6:2a00:1450:4864:20::344]) by gabe.freedesktop.org (Postfix) with ESMTPS id 2351989BFF for ; Tue, 10 Nov 2020 19:31:34 +0000 (UTC) Received: by mail-wm1-x344.google.com with SMTP id 10so4353842wml.2 for ; Tue, 10 Nov 2020 11:31: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=OiQsD+EhT8Lfi4WTa7HEKxexbw01KKvzh7y2CIqIZUI=; b=w2cAylpRUwyxpJxnkGOH1jYHVFj+w4ZCRrbjx0+dHVK/k1SkFYcPeOrIv+gyvgruNi Y9pmut0MJLCqKVCoxh64xgrnCLtmBui1QC8BuC7C9/SyEufCphx7aeEWfu9jvC3U9III ZceExYSW02hI3ANgMEoVc/gxUujRkVafXEX36lKkxEJdphEcj+Nt4JFH1GUruisyFyb+ 29utA9JZezZormWyyDou7bDSGqHFbvgM5R5KhivIJLJ50sK25XDmyMYhwevxCu0Ro86Q gL5NDS6YAntMe0J1XRsZ/gdpqa72ODvsBFQ7YoDDIP0oYwu/XnoqidkCr8GBJVcGfCnd WUrw== 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=OiQsD+EhT8Lfi4WTa7HEKxexbw01KKvzh7y2CIqIZUI=; b=LMg3w8uAp3mGMIxDbAe6E4A9olo8vbLnsxYMyvhH8VA1NFu9c1QYf586AaCNs/8k4t 6RTIB5uZqPWaXtwFpfZxSfV8nMVM121ec298c09I9zidd3qnNmT9ZNqjyPjGlssJNOSI s5Df6JXsIVxywSvKWeFnIZdKHy9L++WY7tOjXZDsMiA7OYpN8qTfbrFv5jF+r3qQBsxg L4lXOm955voKTSvtgPwVqwSGfixYk2ZuSLBYnHhTMU5SnzmhrqTb1gFMXegB9InKU18I C4636tV0UWQm1X2ENXaARZbtR0+mOOUREs6VF7mmiBpdAlYwGT+kl7B4JE9JtmN0tJ9X Qvow== X-Gm-Message-State: AOAM532UpkI8u83ghqzsNNeyQQ1+n/wFIj8u1MKhkADa0k/Vr3/A2nUK gHdrXZP7EJBCcueDkVT8y4SZkA== X-Received: by 2002:a1c:660b:: with SMTP id a11mr663260wmc.159.1605036692771; Tue, 10 Nov 2020 11:31:32 -0800 (PST) Received: from dell.default ([91.110.221.139]) by smtp.gmail.com with ESMTPSA id 30sm17635335wrs.84.2020.11.10.11.31.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 10 Nov 2020 11:31:32 -0800 (PST) From: Lee Jones To: lee.jones@linaro.org Subject: [PATCH 13/30] drm/radeon/radeon_mn: Supply description for 'cur_seq' even if it is unused Date: Tue, 10 Nov 2020 19:30:55 +0000 Message-Id: <20201110193112.988999-14-lee.jones@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20201110193112.988999-1-lee.jones@linaro.org> References: <20201110193112.988999-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, amd-gfx@lists.freedesktop.org, dri-devel@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" Fixes the following W=1 kernel build warning(s): drivers/gpu/drm/radeon/radeon_mn.c:51: warning: Function parameter or member 'cur_seq' not described in 'radeon_mn_invalidate' 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/radeon/radeon_mn.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpu/drm/radeon/radeon_mn.c b/drivers/gpu/drm/radeon/radeon_mn.c index 97b9b6dd6dd3b..3c4c4213a7b57 100644 --- a/drivers/gpu/drm/radeon/radeon_mn.c +++ b/drivers/gpu/drm/radeon/radeon_mn.c @@ -41,6 +41,7 @@ * * @mn: our notifier * @range: the VMA under invalidation + * @cur_seq: unused * * We block for all BOs between start and end to be idle and * unmap them by move them into system domain again. From patchwork Tue Nov 10 19:30:56 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 322871 Delivered-To: patch@linaro.org Received: by 2002:a05:6e02:5ce:0:0:0:0 with SMTP id l14csp500589ils; Tue, 10 Nov 2020 11:31:58 -0800 (PST) X-Google-Smtp-Source: ABdhPJztuf+6CFeGTzpVHvUUiftLTXB8DK7yu6YHl8VRHM5xtiAXg8YCMCZ503ZDwryp9C2VBDq/ X-Received: by 2002:a17:90a:ab91:: with SMTP id n17mr722325pjq.23.1605036718480; Tue, 10 Nov 2020 11:31:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605036718; cv=none; d=google.com; s=arc-20160816; b=k1Njvp/ico7eiExehUeZO/UmMy3Mxu5YA28T4C2REAdEtA7oBy9IrP+qMQGzg/ctmo y7Bep19Z8IpDQZFDagPLJ8na+A0UdvLSpPa/H19DbhjGDej5gjkTn6HYLn/29mbtEAWW guj7SXvXlsCHvGGvmJWInmtaivG9TTBNYArHaASpHIatnGIUqJTcJxWCSGVlPW5/ux56 p91BVjJyeMOYD/eOoafpbA4qOQ1gQMEjMyYYOtDy8Dg1xyY88mlkWLLJE5ZT/koIbrv5 lc3KmtggolgGaJupTegKOlzl9TERxnSTDxKFBaskWkBeCQsx0MszVR0gUqzfKG1CpPcH TUXw== 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=/o86k9fjBTa2VdlQ1m6kR/gz6QYeF/62bTuH1k7JYXE=; b=ZZKDfaZgE48C4HhhlI/HV1isydMSIRWufoD37Rr6DHDnedJMmLcwFELdFPpEekUMUN SZbYUcnib4akPgg0kDRKVRBdZcOvJZtCoj4MvjeLoDgNAjwhfsFm8EQzAUwu6n/XnlyJ DN1UG91Wj2Yv4JqvBgsKzY1EqANnAfk6xcYwcU6ybWlmuJLD7AqttNB4dqDBBAjo+nnD FhqIddxhlmx/m9FcmTC8SJ2d1TnkrSKAXeGWZ/zqzNK3f6fd+kyITsABMr+H/eQLwu5l fpcj1yYqHst6gxNtkP9ZFVmtMuOxhiIo/Diq3hSHe7KLTbRTkursU/+JXBNh9fOQu+vo 6KQw== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=He1zbyiM; 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 k8si3110144pjy.43.2020.11.10.11.31.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 10 Nov 2020 11:31: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=He1zbyiM; 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 145FC89BFC; Tue, 10 Nov 2020 19:31:50 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wr1-x442.google.com (mail-wr1-x442.google.com [IPv6:2a00:1450:4864:20::442]) by gabe.freedesktop.org (Postfix) with ESMTPS id 5279889C07 for ; Tue, 10 Nov 2020 19:31:35 +0000 (UTC) Received: by mail-wr1-x442.google.com with SMTP id o15so6165125wru.6 for ; Tue, 10 Nov 2020 11:31: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=5XOKsZA/efGGZlOKtpGd/v3CZQozhQA1lVakbps4Q9E=; b=He1zbyiMjWMGE0Hn/kJ/07B4HvpFF4l2fTCYTzQKm73uxkjgAjO49RrZRywLhDWfaH mwUj+LJz3HGK4QfSLcNaXCBytZS1llthv7u10eGTB373PipUwbEupelVcIq5Emg5XGDh Bcdhoy88TTDCPJeEjI9zrKilUdxFkSMMJtN7Pc9UPkc8pMoSvIPOi+Uoo7TKU96RG/FT 2GAHytLMKR8eElYDMdfPYN5G7EMIy5w2B0a0ILkXtKkXEfgyzehz9JFZgpVbm9iCGsci Ov7rfylLaADoV7Jwk/GvUCXDXmaDoYOWHbOjRUzQqe1vqM5K679Kncl2/mopONbChafV qBgQ== 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=5XOKsZA/efGGZlOKtpGd/v3CZQozhQA1lVakbps4Q9E=; b=dAf+IfFadsC+6yCqkYUzU1zdweJr8Q4XXtXe5VvoPAi5vOHSGKpGYcaUt45mG916VA +VY9lpsDwj7d2UndwrAeJYg+vB4t0TgnS06FfX4ZSk+RzlA21suHaN/iRICnW1B0f1k2 wnI1pbiYTFsjnci1iolhV2idLVXdilJU6BXwchsd4ABbyCPqk5T0rvcz4Rh4Oz/eBGCH QysB0dG0stwpCWZjUSwlKlyhAoM1+/EDspiA1pTwD264ilGvJxr6xHohj87wVRNegsXF ivIvI212nj9K4N0Eh/0AQkt74CXVJKW5R/X6l2pbZjE7QF0rLWdjatMRC+UzQTGgHB1x f9fQ== X-Gm-Message-State: AOAM532um8iBg/AKWG7Y/u7kPdp4DIN1wHBZFAXuwAmngTueUJlUldw3 QEfQV1F6avegDhfnDyJ8t52MmQ== X-Received: by 2002:a5d:68cb:: with SMTP id p11mr16338979wrw.89.1605036693922; Tue, 10 Nov 2020 11:31:33 -0800 (PST) Received: from dell.default ([91.110.221.139]) by smtp.gmail.com with ESMTPSA id 30sm17635335wrs.84.2020.11.10.11.31.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 10 Nov 2020 11:31:33 -0800 (PST) From: Lee Jones To: lee.jones@linaro.org Subject: [PATCH 14/30] drm/radeon/evergreen_dma: Fix doc-rot of function parameter 'resv' Date: Tue, 10 Nov 2020 19:30:56 +0000 Message-Id: <20201110193112.988999-15-lee.jones@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20201110193112.988999-1-lee.jones@linaro.org> References: <20201110193112.988999-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, amd-gfx@lists.freedesktop.org, =?utf-8?q?Christian_K=C3=B6nig?= , linaro-mm-sig@lists.linaro.org, dri-devel@lists.freedesktop.org, Alex Deucher , 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/radeon/evergreen_dma.c:112: warning: Function parameter or member 'resv' not described in 'evergreen_copy_dma' drivers/gpu/drm/radeon/evergreen_dma.c:112: warning: Excess function parameter 'fence' description in 'evergreen_copy_dma' Cc: Alex Deucher Cc: "Christian König" Cc: David Airlie Cc: Daniel Vetter Cc: Sumit Semwal Cc: amd-gfx@lists.freedesktop.org Cc: dri-devel@lists.freedesktop.org Cc: linux-media@vger.kernel.org Cc: linaro-mm-sig@lists.linaro.org Signed-off-by: Lee Jones --- drivers/gpu/drm/radeon/evergreen_dma.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/radeon/evergreen_dma.c b/drivers/gpu/drm/radeon/evergreen_dma.c index a46ee6c2099dd..767857d4a8c5c 100644 --- a/drivers/gpu/drm/radeon/evergreen_dma.c +++ b/drivers/gpu/drm/radeon/evergreen_dma.c @@ -98,7 +98,7 @@ void evergreen_dma_ring_ib_execute(struct radeon_device *rdev, * @src_offset: src GPU address * @dst_offset: dst GPU address * @num_gpu_pages: number of GPU pages to xfer - * @fence: radeon fence object + * @resv: reservation object with embedded fence * * Copy GPU paging using the DMA engine (evergreen-cayman). * Used by the radeon ttm implementation to move pages if From patchwork Tue Nov 10 19:30:57 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 322869 Delivered-To: patch@linaro.org Received: by 2002:a05:6e02:5ce:0:0:0:0 with SMTP id l14csp500556ils; Tue, 10 Nov 2020 11:31:55 -0800 (PST) X-Google-Smtp-Source: ABdhPJy3eApk3sAhaxcdfWIySFiboQORTMRXs98qJ6FPExquDqUU772Hz2LLENTgkvqxCrW3wOwT X-Received: by 2002:a17:90a:154b:: with SMTP id y11mr674133pja.75.1605036715541; Tue, 10 Nov 2020 11:31:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605036715; cv=none; d=google.com; s=arc-20160816; b=idsAaLY9GTEmpOtXSKW+VJNNqBI6bPfDAYG7tHCO9IqjQvJPVrFfY9lEZieUrullES QgwgjiXbw0TJEq/hcwmUlriGnJW1KP0qICXK//Z+dvoTf09f1z7gF6b/5jebvql2MoYH KUDpbU+UKzRXFgb7uRqxJTUnOMqfN9ku86BnhxVxOytFwGQ9HaZG/sVJTnJdxDc1InJG gGDxK5Zes+ID9iSvSs2FRRwlCv8SIPigWbBB0E0Bai7iacWs7Wl2i2D/HsFwejenc6MF Cl0LjafE1kdGk18cfOjfhD3h0sStKnSfZ8Y180MHjELrk6Ff00bkAgIBcoEsCl2aLnNq dn1Q== 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=nW6S501jOgsRukYiq1vk2mtXSjBx2WNc+95bNnu3cgs=; b=HmgU+kQQyq/M3+M+iDXz4lH1HdFjwt4LH24q79PzG5msb8Mx3D7jjIaGqjW583kXoj vUCj9MgcAPpueIvsOw5Lw3K/Vf9ed+iZZbpHhDpeyrnT1A7/6qTADb8VEHMQLjbVyzne 8FEDxRp/oLmoiBmyuT4ROkPvd+tT1zDAQj69M0V7AKIPq6Io1fTE0+FnZndUGexusnMO wBcLO9PgJEao+sL9I6kNnR2L8VlZ6u+hZcxl6vGVyxOQHMweRU4+oTFOz/CNEiX25JK4 CSQOwFQu/4+E4SU6sY2RnSSqyY5PvmiWTdzeDp8uGm9PKazTb2BqCqVkUT0A2hjP0/iA hrfg== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=fASKJQ1F; 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 w188si12479823pff.166.2020.11.10.11.31.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 10 Nov 2020 11:31: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=fASKJQ1F; 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 580B689C07; Tue, 10 Nov 2020 19:31:43 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wm1-x341.google.com (mail-wm1-x341.google.com [IPv6:2a00:1450:4864:20::341]) by gabe.freedesktop.org (Postfix) with ESMTPS id B3B7789BFC for ; Tue, 10 Nov 2020 19:31:36 +0000 (UTC) Received: by mail-wm1-x341.google.com with SMTP id s13so4300478wmh.4 for ; Tue, 10 Nov 2020 11:31: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=sNPdGWABv4jG6EjCUZH3w6oQTK+ox++FdPmHOUbRD6w=; b=fASKJQ1F2LCs/AXSrcItfdLVqsf0CAL2+ISvgcB4CsEelSk6mnK06tXoPNySTK7MHU 1TEc5IRZOgZd6Q+mBlBBeCLeVUEo7SuJqHyCRR9YXaMmYcLXdhPNTgxIFrRW+Mh/TBVy 2R0rZoZXmlUx7+E+do7U1FoKSGq6OyO/n8XM74q9QAJN8kiU3gqLtgxe7Twd8VZ0ZQr6 BzEzhavEf5cCFsfsimr552j4Kqo7jIJ3YNsiNF2ht4DN0WNJJ+eSrIcXid5p/sbfUHdb MVorhUAzWurm5GkOqUYzYaThJsDwVkA5gWpGY6HJZZItFJohZ6GAEU17mxG6lF2296+z FhqQ== 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=sNPdGWABv4jG6EjCUZH3w6oQTK+ox++FdPmHOUbRD6w=; b=SwOaV7m3dQfoPwyQQ8vud90xe4k2mIqOT2XyWPnUPIuKySBRDTcnp16+hPkkvIsJWW QcHUwAjGSxI4itJvuiPBDhgzDKJE1OAX7ty50Quz+h3qSeXEFCj06IBW5lgqisrppTHj EvFVXXIXMKODLGOukQGpAQn7910ulYfsQ6XzRIRBF2IbBO7C42hOnneANtDdtMK9vT12 xYcNlz6YmAED+OtMj2Ke3g3sbeRDyC9u59eZPPhnNFG0LL3JliHfS9Fyfnk5se+II+vF JRCi0Mdm5R8Dbcmc4x2tZUckV+e5+kq7cZPsJi5IYZunNnC7/gBdCUuw5HTLfNM0sv9G JqCg== X-Gm-Message-State: AOAM532+L8XGkuy7ihAdgg8cGqpdKpAiD90+dWOYEfDTr0kCdv1Tjkmp vAZFkpNrVACGQ2BMOViOOxGaRw== X-Received: by 2002:a1c:b041:: with SMTP id z62mr713702wme.183.1605036695387; Tue, 10 Nov 2020 11:31:35 -0800 (PST) Received: from dell.default ([91.110.221.139]) by smtp.gmail.com with ESMTPSA id 30sm17635335wrs.84.2020.11.10.11.31.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 10 Nov 2020 11:31:34 -0800 (PST) From: Lee Jones To: lee.jones@linaro.org Subject: [PATCH 15/30] drm/radeon/cik_sdma: Demote vague attempt at kernel-doc Date: Tue, 10 Nov 2020 19:30:57 +0000 Message-Id: <20201110193112.988999-16-lee.jones@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20201110193112.988999-1-lee.jones@linaro.org> References: <20201110193112.988999-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, amd-gfx@lists.freedesktop.org, =?utf-8?q?Christian_K=C3=B6nig?= , linaro-mm-sig@lists.linaro.org, dri-devel@lists.freedesktop.org, Alex Deucher , 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/radeon/cik_sdma.c:949: warning: Function parameter or member 'ring' not described in 'cik_dma_vm_flush' drivers/gpu/drm/radeon/cik_sdma.c:949: warning: Function parameter or member 'vm_id' not described in 'cik_dma_vm_flush' drivers/gpu/drm/radeon/cik_sdma.c:949: warning: Function parameter or member 'pd_addr' not described in 'cik_dma_vm_flush' Cc: Alex Deucher Cc: "Christian König" Cc: David Airlie Cc: Daniel Vetter Cc: Sumit Semwal Cc: amd-gfx@lists.freedesktop.org Cc: dri-devel@lists.freedesktop.org Cc: linux-media@vger.kernel.org Cc: linaro-mm-sig@lists.linaro.org Signed-off-by: Lee Jones --- drivers/gpu/drm/radeon/cik_sdma.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/gpu/drm/radeon/cik_sdma.c b/drivers/gpu/drm/radeon/cik_sdma.c index 68403e77756d3..3c709ebe8d1ab 100644 --- a/drivers/gpu/drm/radeon/cik_sdma.c +++ b/drivers/gpu/drm/radeon/cik_sdma.c @@ -936,11 +936,9 @@ void cik_sdma_vm_pad_ib(struct radeon_ib *ib) ib->ptr[ib->length_dw++] = SDMA_PACKET(SDMA_OPCODE_NOP, 0, 0); } -/** +/* * cik_dma_vm_flush - cik vm flush using sDMA * - * @rdev: radeon_device pointer - * * Update the page table base and flush the VM TLB * using sDMA (CIK). */ From patchwork Tue Nov 10 19:30:58 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 322867 Delivered-To: patch@linaro.org Received: by 2002:a05:6e02:5ce:0:0:0:0 with SMTP id l14csp500484ils; Tue, 10 Nov 2020 11:31:51 -0800 (PST) X-Google-Smtp-Source: ABdhPJwSTVZYQHlgNhgJXgkCGA5xbMVYnyA2g11/PPZ2erH/+WT4qsDT+b8NuKAUdHTPc2hO/d5Q X-Received: by 2002:aa7:9521:0:b029:18b:b43:6cc with SMTP id c1-20020aa795210000b029018b0b4306ccmr14720495pfp.73.1605036711462; Tue, 10 Nov 2020 11:31:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605036711; cv=none; d=google.com; s=arc-20160816; b=SXFYN8TtX0MEwrvQ39s35SQp56Or0x2SvlbU9xHGwxjANGF0fCQH4Dei8pY2LphCle XnvRVMLpVAZFcVIi6ZT/1Yi18zUExNLbvl8+iDjT+fHoyqm8spZoIYNsHPjB1k9ted4Z CIu2U/+LDNXDIq0V3cRA1sah9BCHR9jFMS3iMTdtYotmLou6x3TnMcjLwTG6W0wzMG0K ji5Hm7NrFtkmNOGAHPKmeZpIBExxUwhJ121PhmGCMd8AjhfV1DotzaZVSbibqgllKf2k nOmcQYBeIJlZjRaPotkzmCGUMypSWKDfXv6HsKNQKmHMj4UctFFBhoKZUjwSnP3XBh8z wYdg== 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=VrMH3uxDtkLKiBYsPpSxua15sghtGa8uD2uID730fwo=; b=HREkuoNeK0CtBrT1r2WZAxFyMWPmWDK6EFewm+xdFW5AR7nbvBMugBW/4KMswXMao1 9I6CezQodvNu4kmuzpWR5bXYkWojgArtZq6wDO9chouSqpY6RWBn08M4eO0xjoTLDoHp wD7MhbRgSZDFuDAFMe7s7O/KKorngKgvOA+R2JQA7nOpp7/8XyrlbBH4xWFe+5sNThyJ i6J8NViX/oiulCFH3WScULGKN5umwQ3WvTQVSx8BJP09hAO/IXd8PkDCkyrVA2RycxCU S6UHuhmtaNwuxj0GY8QtJ/KqlILBybRid85/CtAMsuXqzeVcomBXYgWs6xfvi1LNwmyf u2Hw== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=FsrKOA7+; 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 s10si12715519plq.65.2020.11.10.11.31.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 10 Nov 2020 11:31: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=FsrKOA7+; 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 E66F589BF8; Tue, 10 Nov 2020 19:31:42 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wm1-x341.google.com (mail-wm1-x341.google.com [IPv6:2a00:1450:4864:20::341]) by gabe.freedesktop.org (Postfix) with ESMTPS id D3EB689C13 for ; Tue, 10 Nov 2020 19:31:37 +0000 (UTC) Received: by mail-wm1-x341.google.com with SMTP id h62so4312145wme.3 for ; Tue, 10 Nov 2020 11:31:37 -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=E+NA4KRLjKd0GRAbHJkCDNT0uCDdmE3g7EFp7CscWp0=; b=FsrKOA7++uCL4W3W0ttuyWVPqj3ihLBcI8pDZK10eyMbh5zUSeR/ifrfFkDq46rbJj lkIyU0y+cbkMa3eHjnE6JJUOqs+kGLYrr9Hm5jdIqgK5fDbBYb/r6EcU76Xu36UGgfGh 6bXgjpOoJwEtttmmwz49YImkEslqTJqNxKj3UnGB9LraE1OWO/YUqo9vcg5A/KE42NXv Jx8ySu3mhi6eia/XzoH17mq2pfFdw/V2lkDTNH7gwUAjC89+oyOXL2CDNxE9YpGVyyDr yYSlAfRUP1C8PsqtJcu9QkEGFSJVLnaQ05Y3wfHCdd+HO61cXxE15+XtLUTAUhlzzJZW 49SQ== 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=E+NA4KRLjKd0GRAbHJkCDNT0uCDdmE3g7EFp7CscWp0=; b=i/4bh+c97KtrO7jDfVrcIitV2kZYjj3lbfw3hztizN03L3pqNBNkQMK+lA8+b/v5X5 lZbQl/rQmPrkAlMnu/TwdPhXdd7KCBDi8L7imbeFyDxKvpWaGKthrzcF5KGL+1apH/eA T/k2qd3YSoLicBcMAXlUZ7YNVoHaLtJ4CNgQ4Ad7HqCfa9tF7n2kqzcSf/D2tyo9UEkh q8RXnf2ofe1iktZN9gtkR5RfFzaA+iz7VUSzi8bYOEjXPkchwg5ICZx6J7nhW3iT1lQK eb+JaZb7t3Tghz5roZ7mN0MOXy85+xUIxoYY9lorEuTxpfuMMnUqVJWfdYTq3P+LeOzU 6Qow== X-Gm-Message-State: AOAM532+42lc7fXGTNsDHOXFRNbL+54XMHpImZGFeR5mtUEoOpYZfv/I mGZLdezx1YpNGFx1feM8J177PA== X-Received: by 2002:a05:600c:21cc:: with SMTP id x12mr761167wmj.8.1605036696563; Tue, 10 Nov 2020 11:31:36 -0800 (PST) Received: from dell.default ([91.110.221.139]) by smtp.gmail.com with ESMTPSA id 30sm17635335wrs.84.2020.11.10.11.31.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 10 Nov 2020 11:31:35 -0800 (PST) From: Lee Jones To: lee.jones@linaro.org Subject: [PATCH 16/30] drm/radeon/r100: Fix some kernel-doc formatting, misnaming and missing issues Date: Tue, 10 Nov 2020 19:30:58 +0000 Message-Id: <20201110193112.988999-17-lee.jones@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20201110193112.988999-1-lee.jones@linaro.org> References: <20201110193112.988999-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, amd-gfx@lists.freedesktop.org, =?utf-8?q?Christian_K=C3=B6nig?= , linaro-mm-sig@lists.linaro.org, dri-devel@lists.freedesktop.org, Alex Deucher , 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/radeon/r100.c:163: warning: Function parameter or member 'async' not described in 'r100_page_flip' drivers/gpu/drm/radeon/r100.c:848: warning: Function parameter or member 'rdev' not described in 'r100_ring_hdp_flush' drivers/gpu/drm/radeon/r100.c:848: warning: Function parameter or member 'ring' not described in 'r100_ring_hdp_flush' drivers/gpu/drm/radeon/r100.c:1425: warning: Function parameter or member 'p' not described in 'r100_cs_packet_parse_vline' drivers/gpu/drm/radeon/r100.c:1425: warning: Excess function parameter 'parser' description in 'r100_cs_packet_parse_vline' Cc: Alex Deucher Cc: "Christian König" Cc: David Airlie Cc: Daniel Vetter Cc: Sumit Semwal Cc: amd-gfx@lists.freedesktop.org Cc: dri-devel@lists.freedesktop.org Cc: linux-media@vger.kernel.org Cc: linaro-mm-sig@lists.linaro.org Signed-off-by: Lee Jones --- drivers/gpu/drm/radeon/r100.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/drivers/gpu/drm/radeon/r100.c b/drivers/gpu/drm/radeon/r100.c index 24c8db673931a..92075dedf2cb2 100644 --- a/drivers/gpu/drm/radeon/r100.c +++ b/drivers/gpu/drm/radeon/r100.c @@ -153,6 +153,7 @@ void r100_wait_for_vblank(struct radeon_device *rdev, int crtc) * @rdev: radeon_device pointer * @crtc_id: crtc to cleanup pageflip on * @crtc_base: new address of the crtc (GPU MC address) + * @async: unused * * Does the actual pageflip (r1xx-r4xx). * During vblank we take the crtc lock and wait for the update_pending @@ -841,8 +842,8 @@ u32 r100_get_vblank_counter(struct radeon_device *rdev, int crtc) /** * r100_ring_hdp_flush - flush Host Data Path via the ring buffer - * rdev: radeon device structure - * ring: ring buffer struct for emitting packets + * @rdev: radeon device structure + * @ring: ring buffer struct for emitting packets */ static void r100_ring_hdp_flush(struct radeon_device *rdev, struct radeon_ring *ring) { @@ -1409,7 +1410,7 @@ int r100_cs_parse_packet0(struct radeon_cs_parser *p, /** * r100_cs_packet_next_vline() - parse userspace VLINE packet - * @parser: parser structure holding parsing context. + * @p: parser structure holding parsing context. * * Userspace sends a special sequence for VLINE waits. * PACKET0 - VLINE_START_END + value From patchwork Tue Nov 10 19:30:59 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 322868 Delivered-To: patch@linaro.org Received: by 2002:a05:6e02:5ce:0:0:0:0 with SMTP id l14csp500519ils; Tue, 10 Nov 2020 11:31:53 -0800 (PST) X-Google-Smtp-Source: ABdhPJzBsWU1Z9p/8LwS06rpoX80RDaVOzAaogL+/Bh9Ha67ovwvMBkuH9w4zP1uZQTeYfF2UQd0 X-Received: by 2002:a63:1a54:: with SMTP id a20mr18491908pgm.133.1605036713169; Tue, 10 Nov 2020 11:31:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605036713; cv=none; d=google.com; s=arc-20160816; b=D4LbDGKnsH7T8nlJY1UwH7mL37My420pL8e6DUuSfb6RLciMoMSHyAYtZwGb9YR8+z AyjVMhd2sfJH/b6gyPJG2fLIbeFzG/UXqDLSo7NNedh6NIZRwuVBOT8SaSePMFlroCzL ressIr8wln7Ik6zZJ61ItIWjG7plGSRljXFxuBPl7W6Wx2sU+rh87YhwYiCz/fiwuXDX JHraxtgAOj5zZd2q2paE4wgjy4WPH08QENoQ/1ZkHOiVwrXJL6+X6EFZo59Nv1PFEO9J nhxTwbeB2gAxrQWJH+OGaA34EJghdZkjI6cqBjzB1orWqK+knRM1s4EjFtY7+7UjfOKp ZK2A== 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=luZrSY0qyWZNvaafjCAPA9s/uM97smb9YVSxB4RJD8w=; b=Ee5iOK3upC0O/T/x4wreZCArQT6r0sDG+c0Ewgxw2Ia1PNdRoUvfhjLqYfxP4MdIij EjLockft0GaL7ftpKoR1BTvgHPZfPPZMbNcyS+/iMyzNLLxpH2EAD2qFMWrRL/MrR3y1 bhKOpc5Z+qwVHPisXOy6aDIPJP2hl6G1VYXQBOLUL0+qLCLjlXPVv0cUU6O8JuGD0c2z 5ABekx1v3YiSTHM2uOWBp9dlgsJK+jU8e2UCl/RX7iSJBT60kaS3vdSbcyYC1U3apW9r mxp3igtZQ+uKnzGx4Uk9TOhWEH+8b2r+4gsLNE+io4XndxU07i52qVLBxmRQ8LUiGBVH 9NXQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=bWEncwk9; 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 d3si10838590pld.76.2020.11.10.11.31.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 10 Nov 2020 11:31:53 -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=bWEncwk9; 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 740A289BF1; Tue, 10 Nov 2020 19:31:43 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wm1-x341.google.com (mail-wm1-x341.google.com [IPv6:2a00:1450:4864:20::341]) by gabe.freedesktop.org (Postfix) with ESMTPS id 12AD889BF1 for ; Tue, 10 Nov 2020 19:31:39 +0000 (UTC) Received: by mail-wm1-x341.google.com with SMTP id p22so4336607wmg.3 for ; Tue, 10 Nov 2020 11:31: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=Sa4D9H3FopQ6FC9s62hXq/PcYKcafVSvMGNnPWttN0U=; b=bWEncwk9wr4hyGIAHgAfJ00TYqT033OOA+eahgRfxnsKrAZROWgGzK4sd1MmNS9oQh GvbtKa1pabul6vB72nEB1Z1XQjiEisZrnaYbvtUmksKjCeYfi3PX/VozLIBlVh4xq6UI +YjwyRORt6ZobT8cOQMaNz2JFglA/Ejzl9c68LomGj22IFWO/4Db/1SoszfAvaTa87qB oPBDIHnaFCRn1+y7xopvEOrQtiLc1NK2o6q5Dh8Q2zED+IdMw8r0K2GXUvtuDWRQl7kQ QYxR62UwnGQu9x4IsWiQgF9YKl27S1i+BEnsEIBco+s4+ATFiC8qmjqgffHlEHjAGSCc nrQA== 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=Sa4D9H3FopQ6FC9s62hXq/PcYKcafVSvMGNnPWttN0U=; b=RouIy+hk0q4ScI3FBQuzHRJn/lJ2wMv67KBFCZjAhIBVzN0SCttKO6SCHJ+IBq/mVE 6vCSgWOezavMhQqVghhIG2VLCWJJf0BrI0hqFygSRk4FGGaUqqbB6ZvytOqTrQfeR+K/ E4rj9DcRIAWp4wDR8PtVAvseE6Sv5biLxNdMzeV5Z69k6+8U/Eco0eirOU4QzPFdnsRH e7DUtuJzH0xVHJfmaj/gMzHTCZ6faamLaAZ4a1NG4nZFelo6nwbLfgHLF9QdSwQY5zIh hve60H1fve/4r0n0RTxzSEXfbcLEVz5RdCD+kkj7/Jp5cMJUyDL2IQYPRzi/ykbaovi+ 4ORw== X-Gm-Message-State: AOAM530JK6TN5twEJgIb4duQkTiECzNScbWHiqZA0/kVOlNCpCgBdLjU asKKTS6lXXsMeoo5Ik8XXyUDBg== X-Received: by 2002:a1c:3803:: with SMTP id f3mr754555wma.14.1605036697717; Tue, 10 Nov 2020 11:31:37 -0800 (PST) Received: from dell.default ([91.110.221.139]) by smtp.gmail.com with ESMTPSA id 30sm17635335wrs.84.2020.11.10.11.31.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 10 Nov 2020 11:31:37 -0800 (PST) From: Lee Jones To: lee.jones@linaro.org Subject: [PATCH 17/30] drm/radeon/r600_cs: Fix some doc-rot and supply missing function param docs Date: Tue, 10 Nov 2020 19:30:59 +0000 Message-Id: <20201110193112.988999-18-lee.jones@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20201110193112.988999-1-lee.jones@linaro.org> References: <20201110193112.988999-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, amd-gfx@lists.freedesktop.org, dri-devel@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" Fixes the following W=1 kernel build warning(s): drivers/gpu/drm/radeon/r600_cs.c:793: warning: Function parameter or member 'p' not described in 'r600_cs_packet_parse_vline' drivers/gpu/drm/radeon/r600_cs.c:793: warning: Excess function parameter 'parser' description in 'r600_cs_packet_parse_vline' drivers/gpu/drm/radeon/r600_cs.c:826: warning: Function parameter or member 'p' not described in 'r600_cs_common_vline_parse' drivers/gpu/drm/radeon/r600_cs.c:826: warning: Excess function parameter 'parser' description in 'r600_cs_common_vline_parse' drivers/gpu/drm/radeon/r600_cs.c:968: warning: Function parameter or member 'p' not described in 'r600_cs_check_reg' drivers/gpu/drm/radeon/r600_cs.c:968: warning: Excess function parameter 'parser' description in 'r600_cs_check_reg' drivers/gpu/drm/radeon/r600_cs.c:1473: warning: Function parameter or member 'base_offset' not described in 'r600_check_texture_resource' drivers/gpu/drm/radeon/r600_cs.c:1473: warning: Function parameter or member 'mip_offset' not described in 'r600_check_texture_resource' drivers/gpu/drm/radeon/r600_cs.c:1473: warning: Function parameter or member 'tiling_flags' not described in 'r600_check_texture_resource' 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/radeon/r600_cs.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/drivers/gpu/drm/radeon/r600_cs.c b/drivers/gpu/drm/radeon/r600_cs.c index 390a9621604ae..f20b619466816 100644 --- a/drivers/gpu/drm/radeon/r600_cs.c +++ b/drivers/gpu/drm/radeon/r600_cs.c @@ -782,7 +782,7 @@ static int r600_cs_track_check(struct radeon_cs_parser *p) /** * r600_cs_packet_parse_vline() - parse userspace VLINE packet - * @parser: parser structure holding parsing context. + * @p: parser structure holding parsing context. * * This is an R600-specific function for parsing VLINE packets. * Real work is done by r600_cs_common_vline_parse function. @@ -801,7 +801,7 @@ static int r600_cs_packet_parse_vline(struct radeon_cs_parser *p) /** * r600_cs_common_vline_parse() - common vline parser - * @parser: parser structure holding parsing context. + * @p: parser structure holding parsing context. * @vline_start_end: table of vline_start_end registers * @vline_status: table of vline_status registers * @@ -956,7 +956,7 @@ static int r600_cs_parse_packet0(struct radeon_cs_parser *p, /** * r600_cs_check_reg() - check if register is authorized or not - * @parser: parser structure holding parsing context + * @p: parser structure holding parsing context * @reg: register we are testing * @idx: index into the cs buffer * @@ -1460,6 +1460,9 @@ static void r600_texture_size(unsigned nfaces, unsigned blevel, unsigned llevel, * @idx: index into the cs buffer * @texture: texture's bo structure * @mipmap: mipmap's bo structure + * @base_offset: base offset (used for error checking) + * @mip_offset: mip offset (used for error checking) + * @tiling_flags: tiling flags * * This function will check that the resource has valid field and that * the texture and mipmap bo object are big enough to cover this resource. From patchwork Tue Nov 10 19:31:00 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 322870 Delivered-To: patch@linaro.org Received: by 2002:a05:6e02:5ce:0:0:0:0 with SMTP id l14csp500570ils; Tue, 10 Nov 2020 11:31:56 -0800 (PST) X-Google-Smtp-Source: ABdhPJyz2e3Zi3C1OZ/U6DXUB6i5JQ52uUo8WjL+8cC+CnacdMNDp0ZvYTMCST/5sYDcCMOAfas6 X-Received: by 2002:a17:902:d896:b029:d2:288e:bafc with SMTP id b22-20020a170902d896b02900d2288ebafcmr17971647plz.43.1605036716662; Tue, 10 Nov 2020 11:31:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605036716; cv=none; d=google.com; s=arc-20160816; b=DQTjcMrkixAchodEH0IM75uEq8ggISiiGs4Rj9aHgrQxG64Jyn2k8UhIiopNFJkkz1 V97BxQurOxU8pPfO6I3die3jzN4akL6mvEpyVmT5GEI3/wkuUcHjFuiIcgizdjBpyN+q HzY0MbBznJITrG1ux7YCYe0TQKyiyi92BPPGXYTSnIWM9hgrC1le803vl7GIC6dMsQyA Xjc/DZrUy2Xb/RHBhdEtEMLmIcTidTS6/7t4Z1IFvPNJjkkfNbwixORB+hi7EjmT5rHD lpUXeJYv9y2J3i7b1eF1uHzz92hBMAJCWMcm6C4nIFWzionnkO0M88Uu5Ckn596DkDj/ FE2w== 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=9ly48jZT6g2iN0bfCF3FBxRxhTusFgXa7pCNX8n/lhc=; b=gWrQbDxbSleaRGTu21UFNDNZrBDfHc0/uryk0CZQkKDvGZUi/6uoIIqTkX63+WKPH/ tD1YYYDJGyCVSusVJdfT41esZv+WR8LbPtLe2ELdHTzImWPpImXNjTIBPghaYUU9v3zK L+sYe9XdxhYwV7F83cE12Fy8XHNvNI66BJdQNbilfP8NPElLbDSeHcX9zS8HVa60Orfy QQnATNlZWVBv64nFapXWll86Jjs1ilJdIguqkYh6GYnxaQqppJVy3Xko0AJd9neshzA3 u0guogFZaNKyGFAPuWlJSj1anZ7Qg6q51A3iZHL7hDGPJRpBXLZrUOjeolXtelVqyrGy 55fQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=PWC66NBK; 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 b3si3330132pjd.163.2020.11.10.11.31.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 10 Nov 2020 11:31: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=PWC66NBK; 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 D6DC189C14; Tue, 10 Nov 2020 19:31:47 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wr1-x442.google.com (mail-wr1-x442.google.com [IPv6:2a00:1450:4864:20::442]) by gabe.freedesktop.org (Postfix) with ESMTPS id 3A34E89BF8 for ; Tue, 10 Nov 2020 19:31:40 +0000 (UTC) Received: by mail-wr1-x442.google.com with SMTP id 23so14002468wrc.8 for ; Tue, 10 Nov 2020 11:31:40 -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=/Cw+c1bijBRNEJBNcuwyoDPT+QgFeRvOvo7TvhybLeo=; b=PWC66NBKBqbAKeaPvh+fIwPsUTrr77JZ5lJi/VUiSXJz+i6RhEnKMMZYfcZ/G2UmHS a+YlBfDGygGt7q/35lioOB52huJFQ/4W9ARw4RzVniBughzQAP5QgMHLhRrq49dkGIZQ mrepcU/Fv2c8lxZAr8DKuEPWqETk1RPZplypE7HhSn+lhM5ghhYl6M7bZ4qm3m1/kyOX ZhiIum/62edwMQSW1uEp2T+OvozCXyvm6gkVMi+ecPlH/CDWgw/452hJo0RsadXjeS8O 7o3rXLRHMKFP34+OMUWPe7ofQIIgEZYs93wyJzCrnPT1ezVxMW9/AgiXTgoXrIqC1yNL 57Nw== 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=/Cw+c1bijBRNEJBNcuwyoDPT+QgFeRvOvo7TvhybLeo=; b=jlK1v/R6q4+IXKQz/8x6bfFtzzG9g3377OopqiOz5+K/Q7/r3rLtsYh1Wb0XOBESWM +2wQji/6Upu8M4H8NMpVQDtenX7xFuL9DL6gTESHu7xeNk2C83rO8sS/dU1LQsQ+wFAR U5rS0H6Atdqzh34kAVV5jcR/rm6hTdN+8ZT+oOau5KhjIowGkJvc17JJSTP6OBukwwqg JLViZ1NiczuTJVprnQ15OlqfzrrAHwoGDduayMuaN8innF5JvnC1B9S0szKCX2bNex9M 8xPze4Xoksdwft+6o2cs/wPAau1J0s16NTOx3nOFp5tPavROQpLaQVx96NBw/qX8fULG mW7g== X-Gm-Message-State: AOAM5316b2zi2r5DlmKVP2jVpbUOJ+xP1ytSDZD7CIzE6QmcIdy2EFUz qW7AYrAejeN0qEweqTUkn+5U0g== X-Received: by 2002:a5d:67c4:: with SMTP id n4mr25343044wrw.125.1605036698892; Tue, 10 Nov 2020 11:31:38 -0800 (PST) Received: from dell.default ([91.110.221.139]) by smtp.gmail.com with ESMTPSA id 30sm17635335wrs.84.2020.11.10.11.31.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 10 Nov 2020 11:31:38 -0800 (PST) From: Lee Jones To: lee.jones@linaro.org Subject: [PATCH 18/30] drm/radeon/evergreen_cs: Fix misnaming issues surrounding 'p' param Date: Tue, 10 Nov 2020 19:31:00 +0000 Message-Id: <20201110193112.988999-19-lee.jones@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20201110193112.988999-1-lee.jones@linaro.org> References: <20201110193112.988999-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, amd-gfx@lists.freedesktop.org, dri-devel@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" Fixes the following W=1 kernel build warning(s): drivers/gpu/drm/radeon/evergreen_cs.c:1026: warning: Function parameter or member 'p' not described in 'evergreen_cs_packet_parse_vline' drivers/gpu/drm/radeon/evergreen_cs.c:1026: warning: Excess function parameter 'parser' description in 'evergreen_cs_packet_parse_vline' drivers/gpu/drm/radeon/evergreen_cs.c:1095: warning: Function parameter or member 'p' not described in 'evergreen_cs_handle_reg' drivers/gpu/drm/radeon/evergreen_cs.c:1095: warning: Excess function parameter 'parser' description in 'evergreen_cs_handle_reg' drivers/gpu/drm/radeon/evergreen_cs.c:1757: warning: Function parameter or member 'p' not described in 'evergreen_is_safe_reg' drivers/gpu/drm/radeon/evergreen_cs.c:1757: warning: Excess function parameter 'parser' description in 'evergreen_is_safe_reg' 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/radeon/evergreen_cs.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/gpu/drm/radeon/evergreen_cs.c b/drivers/gpu/drm/radeon/evergreen_cs.c index c410cad28f19f..53b75cf201958 100644 --- a/drivers/gpu/drm/radeon/evergreen_cs.c +++ b/drivers/gpu/drm/radeon/evergreen_cs.c @@ -1015,7 +1015,7 @@ static int evergreen_cs_track_check(struct radeon_cs_parser *p) /** * evergreen_cs_packet_parse_vline() - parse userspace VLINE packet - * @parser: parser structure holding parsing context. + * @p: parser structure holding parsing context. * * This is an Evergreen(+)-specific function for parsing VLINE packets. * Real work is done by r600_cs_common_vline_parse function. @@ -1087,7 +1087,7 @@ static int evergreen_cs_parse_packet0(struct radeon_cs_parser *p, /** * evergreen_cs_handle_reg() - process registers that need special handling. - * @parser: parser structure holding parsing context + * @p: parser structure holding parsing context * @reg: register we are testing * @idx: index into the cs buffer */ @@ -1747,7 +1747,7 @@ static int evergreen_cs_handle_reg(struct radeon_cs_parser *p, u32 reg, u32 idx) /** * evergreen_is_safe_reg() - check if register is authorized or not - * @parser: parser structure holding parsing context + * @p: parser structure holding parsing context * @reg: register we are testing * * This function will test against reg_safe_bm and return true From patchwork Tue Nov 10 19:31:01 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 322872 Delivered-To: patch@linaro.org Received: by 2002:a05:6e02:5ce:0:0:0:0 with SMTP id l14csp500607ils; Tue, 10 Nov 2020 11:32:00 -0800 (PST) X-Google-Smtp-Source: ABdhPJxiBY4pNOSJvMU7nPCd9LgguRzj/LTuv2/VADuWwHAZlBndhgx4iGb7az4vX8Sgc4mvTRi0 X-Received: by 2002:a17:90a:5916:: with SMTP id k22mr742474pji.146.1605036720309; Tue, 10 Nov 2020 11:32:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605036720; cv=none; d=google.com; s=arc-20160816; b=uheXPUGLrmQv+K3IKBgphFrZVa33+T5+jnwpylQZbYndGXE2WhdZ6E2ntCk7Rd///8 kY4Un0KWV0uXGwMkWSFUu9K9TU9HXyEIhWnY3o2148c49xR5H6eoGB4GjIFIW6yW/7Yp vs8Nvfvk0vzxUsoFUOc5IWKZVXkDHxekIWKlb4fk/MET5Lpto3C+HY2idkOe/ere1IwB isDw92CAvsKgbJM5kvzIrgbPWCzC8/CDe6RhE3tAej2/ElwZ1g2l8nlvSzNYdpUZH4Cf cleVqtQb6yPl5hBzKOAVI+uQOk4pgY4v7KSpjfsMEEPOiVhz2Y159H42k6Yio+KAmL88 heEA== 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=OJv5AiZH+s8nAE1tQPur3igOsR+M7q5t+IXz4aDhvKs=; b=hEkQ/1Bm6VotIjpv5KlBa+ZJi2UwSSz0V//ycv0HlHDdYwM7guySGu5m6ExSwD3mB0 9tjKM5kgy7KD2JFrCeXBZbwUFrtDc1ReXLSffTjqDyEvn2repAwbvR/jkitiSCJcO3+I a8KfMQhPFsR5HlJxXLyO05d5MOLGgd6pq8/2ViVME/JvPk2FHdKpdpfmd/l4Fgyjz0q9 ZXiGWkDnzJ7TIqUodurQi5cHDEtCzbvL/VJtDVxUmaeY6O6v+cjgZoM2SK0+AG1f2RUw 8xSv7IsJzpsUldzXW3ThqKUuVPjGlRehm+gRovfvsfdHm51P8psonUsPG3QhcD5yl+C/ jbcg== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=IWSDVKQF; 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 12si12518837plo.94.2020.11.10.11.32.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 10 Nov 2020 11:32:00 -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=IWSDVKQF; 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 0990989C1F; Tue, 10 Nov 2020 19:31:50 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wm1-x343.google.com (mail-wm1-x343.google.com [IPv6:2a00:1450:4864:20::343]) by gabe.freedesktop.org (Postfix) with ESMTPS id 6082A89BF8 for ; Tue, 10 Nov 2020 19:31:41 +0000 (UTC) Received: by mail-wm1-x343.google.com with SMTP id a65so4311526wme.1 for ; Tue, 10 Nov 2020 11:31: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=BSn+OXUyqlvsEb5g4HG7YJio2FrFxnG4RAzoSpJ37n4=; b=IWSDVKQFg3hpW8WwWnraoONM854vSPQmeNeTXUPVHV2/Mrs0NRUEKMoXn9yMH91a+B 68ndDNvEffubTXaT7qdx8pdnKbe0bn0OWdVSy0Y4ttygX7CeW5rC91Cf7opxRCPpTZ4u mJ5Z88gfhGnngt/P+SIBa18MYmx+vzsnUTjS1lupg/L2S15JCAy38Szym/o6fDNcFpS8 zspEldGMz285nlZIgF2gy0AGAGL7PAs8AxLYCSNIHCbxlVdqoD46QmdMHn4Wn7W6Xc6V AK9qL5k45Pr4fW60coQpZkbVQ8AHoZD6WE+mdwv3lRwL36VWbSOS/7hPW10x66D2uFiN qbNg== 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=BSn+OXUyqlvsEb5g4HG7YJio2FrFxnG4RAzoSpJ37n4=; b=r1a68KUwaK0esADHBzmL4ciWzg9s35NaWuA6haRT4IjXIymMwK9zplCYG4Ac/ABgyD h0WsgourJwRtPjmaLtuZjat+2dbEiCD8dtXXF4c2hJ3JOpbMCL1/QMQck6JwGD5PvFKD olUiarBa7dJF/kikMJDoWArR2Zzi1pPzz8JElSCJjFUgeacZNtYh83aL1c7TJjE881Dz 7zRE2ff5psBbTTuH15p3ARzJT5XFXeELklgKrcVcurAIzISg2pOJiCKkarLmehmrT1fL ZnutMiDMonn1KrJMjipoHKVxKiew6Y0/yQOvtsa9TI1/spIIE2KqM9UcVwwXCPa9WyVp czpg== X-Gm-Message-State: AOAM531huW2Tn+eJ4U5Iqag/9s/bazL7/A40sY/D2WQk8U1vFH9VtDAw scbSCRTAs8g17RcAfgBIo8Z4lA== X-Received: by 2002:a1c:66d5:: with SMTP id a204mr699617wmc.184.1605036700071; Tue, 10 Nov 2020 11:31:40 -0800 (PST) Received: from dell.default ([91.110.221.139]) by smtp.gmail.com with ESMTPSA id 30sm17635335wrs.84.2020.11.10.11.31.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 10 Nov 2020 11:31:39 -0800 (PST) From: Lee Jones To: lee.jones@linaro.org Subject: [PATCH 19/30] drm/radeon/radeon_drv: Move 'radeon_mmap()'s prototype to shared header Date: Tue, 10 Nov 2020 19:31:01 +0000 Message-Id: <20201110193112.988999-20-lee.jones@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20201110193112.988999-1-lee.jones@linaro.org> References: <20201110193112.988999-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, amd-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org, Alex Deucher , Gareth Hughes , =?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/radeon/radeon_ttm.c:931:5: warning: no previous prototype for ‘radeon_mmap’ [-Wmissing-prototypes] 931 | int radeon_mmap(struct file *filp, struct vm_area_struct *vma) | ^~~~~~~~~~~ Cc: Alex Deucher Cc: "Christian König" Cc: David Airlie Cc: Daniel Vetter Cc: Gareth Hughes Cc: amd-gfx@lists.freedesktop.org Cc: dri-devel@lists.freedesktop.org Signed-off-by: Lee Jones --- drivers/gpu/drm/radeon/radeon_drv.c | 2 +- drivers/gpu/drm/radeon/radeon_ttm.h | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/radeon/radeon_drv.c b/drivers/gpu/drm/radeon/radeon_drv.c index 536b246b9a6aa..2b9deaead99b2 100644 --- a/drivers/gpu/drm/radeon/radeon_drv.c +++ b/drivers/gpu/drm/radeon/radeon_drv.c @@ -51,6 +51,7 @@ #include #include "radeon_drv.h" +#include "radeon_ttm.h" #include "radeon.h" #include "radeon_device.h" @@ -125,7 +126,6 @@ extern int radeon_get_crtc_scanoutpos(struct drm_device *dev, unsigned int crtc, ktime_t *stime, ktime_t *etime, const struct drm_display_mode *mode); extern bool radeon_is_px(struct drm_device *dev); -int radeon_mmap(struct file *filp, struct vm_area_struct *vma); int radeon_mode_dumb_mmap(struct drm_file *filp, struct drm_device *dev, uint32_t handle, uint64_t *offset_p); diff --git a/drivers/gpu/drm/radeon/radeon_ttm.h b/drivers/gpu/drm/radeon/radeon_ttm.h index 91ea7141bc812..4d7b90ee27740 100644 --- a/drivers/gpu/drm/radeon/radeon_ttm.h +++ b/drivers/gpu/drm/radeon/radeon_ttm.h @@ -32,5 +32,6 @@ struct radeon_device; int radeon_ttm_init(struct radeon_device *rdev); void radeon_ttm_fini(struct radeon_device *rdev); +int radeon_mmap(struct file *filp, struct vm_area_struct *vma); #endif /* __RADEON_TTM_H__ */ From patchwork Tue Nov 10 19:31:02 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 322876 Delivered-To: patch@linaro.org Received: by 2002:a05:6e02:5ce:0:0:0:0 with SMTP id l14csp500660ils; Tue, 10 Nov 2020 11:32:05 -0800 (PST) X-Google-Smtp-Source: ABdhPJxjea5cJE0UGVQPqTLAmG1af3KL+yvgMCx8ucvub5owtf2Ju0ebgVeWPlNpIXe+n50Vdi1l X-Received: by 2002:a17:902:bb81:b029:d5:b437:edb4 with SMTP id m1-20020a170902bb81b02900d5b437edb4mr17468016pls.6.1605036725637; Tue, 10 Nov 2020 11:32:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605036725; cv=none; d=google.com; s=arc-20160816; b=q+9/2G/cM6GYDtH/2tcOH1jJqhC93OhhIABHknqyxcwfYko1L+e4Cz/jHuRDJC06U1 qFTV+yvFRyybQVnN/PHQ4T2EZzAK5RTHqbfVFOka41elRHJWweR1BZvgg6ucr/8oorHr 59ZSiDEDKshTdz+NYGM5LhhvCsKAoWDo/MZHmQIPUrsE8/gTLw2jE2cg5Bp3E4C8/OIb xFPFkGmcrJQm44qgFRqcpLbUkENpie0dytZcG8wEsVp6ytmxcPBF/Lbka4zkF0ZgQkV4 pjXMQjvBO5RxtYHd1lx6UD+5vF4R/AwQFBb0IWn/5g9wHEWfaZICxwIMgnPRy2z8OQKK tqUQ== 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=RNvIMmCSZjWuhRslbQMam5XbVQmE76kgwzP4cK2ZFB0=; b=0KCRq0nWJLdG0yunlmSq6G9eo4/T/PzWkQVywma7s9LPLsLQfuGnPNwd9/ng2pKGr1 KP0uw2npG7ME1SCdoHrRQFhDkz11nG2bW16Vu8Ay8iRzoCcE21RyRXI1oG0TTYIhbeEb SUAU+NiDQy12X+UcAo9nLCy7cd7BuhjlQNtWM0oUVbUOeySkJdyCJ/Rbvb952jQLzL0w F09Shn/aESySExXg4HcFrzL2lfsICe0tjS3ES2f7QK9i+39NLCycOuJBvnvD+i7y9Atb Tn6qQLvXMd6Cz6U0rg8XzHD8ThqQw6Jpc89N/5YwYRkw3wSrFpMW9DNoWVEofZpT8o24 Ti3g== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=tFqI6aqT; 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 f3si12291733pgb.229.2020.11.10.11.32.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 10 Nov 2020 11:32: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=tFqI6aqT; 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 69B4189C28; Tue, 10 Nov 2020 19:31:54 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wm1-x344.google.com (mail-wm1-x344.google.com [IPv6:2a00:1450:4864:20::344]) by gabe.freedesktop.org (Postfix) with ESMTPS id 8806E89BF8 for ; Tue, 10 Nov 2020 19:31:42 +0000 (UTC) Received: by mail-wm1-x344.google.com with SMTP id h62so4312424wme.3 for ; Tue, 10 Nov 2020 11:31:42 -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=FO92cL0QjF/6Dy4FIvl+P0IasJ1CYr1sR86S5Uq88PQ=; b=tFqI6aqT9V0J73yOVy/As6jFhTZnzDFC3gBR73vSwhOML2NlW3/13opSb0++qsLvrq d6zBUZPpWQGXuYx6E5PVuNnX/o4KbeH6ZHx1M8Hz8Ek8zLEShZOcpZlXmis/hKhlod+y ZIIyb2JDTqXbPcX5rHohL6LOAoQuoWGtn2YbJGg8UaY9XuhZqcbkjO7zcx9Uxnb6yFRF NU0X0tOov9irRbLq9JiYub1od4CmmXk7ckxkzpm9LC9/WxgqHwD4/ZrU50La4T54DUOZ Qu3RbX8ch0cHg4o/cSUxoaWOGGMwt3D1gl/w+8JLU/AWVNdmhP0OGlZE9uNKqH320MeF 9dqA== 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=FO92cL0QjF/6Dy4FIvl+P0IasJ1CYr1sR86S5Uq88PQ=; b=iQMOsAO+yC3Xa2n1PAb/TcjS7nUixThsS9D1mXWlkN/MKLUCB+ifZVUOZg9OmyV4oS PN9KvTDNHR97gu90iD3CMR3iX+QRqpJb8+ndjStT3cmpvhBpSWsV0BDSW6nwN6IfbXms JkiXhIgIC1XwHh8t3khTLKOSGGisgCS1YM/XV2mGvdPPVHDaBPxm4fVF1ydjirg0PViw W2jfz9TZAjwoXxFzrunZaF58xEcjfzeEfPEK8ej2PznVXXgjPpOqGJXv0YElNouCd6iX oEbuieo9DF5TyxDNm0lsu3zla5EQznIp+rn5ioZMN/hAALjTCcueE+6zb/1m66JSdQoG g3Hg== X-Gm-Message-State: AOAM532xfA2gvjH5ySv4UzggB23GDjIbRlr32khkj6uLMtzTZz+v0ADN iHjZP7S4mHvQy4RDUOSfcGoEFw== X-Received: by 2002:a1c:bbc4:: with SMTP id l187mr742033wmf.133.1605036701212; Tue, 10 Nov 2020 11:31:41 -0800 (PST) Received: from dell.default ([91.110.221.139]) by smtp.gmail.com with ESMTPSA id 30sm17635335wrs.84.2020.11.10.11.31.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 10 Nov 2020 11:31:40 -0800 (PST) From: Lee Jones To: lee.jones@linaro.org Subject: [PATCH 20/30] drm/radeon/radeon_drv: Move 'radeon_driver_irq_handler_kms's prototype into shared header Date: Tue, 10 Nov 2020 19:31:02 +0000 Message-Id: <20201110193112.988999-21-lee.jones@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20201110193112.988999-1-lee.jones@linaro.org> References: <20201110193112.988999-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, amd-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org, Alex Deucher , Gareth Hughes , =?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/radeon/radeon_irq_kms.c:53:13: warning: no previous prototype for ‘radeon_driver_irq_handler_kms’ [-Wmissing-prototypes] 53 | irqreturn_t radeon_driver_irq_handler_kms(int irq, void *arg) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ drivers/gpu/drm/radeon/radeon_irq_kms.c:120:6: warning: no previous prototype for ‘radeon_driver_irq_preinstall_kms’ [-Wmissing-prototypes] 120 | void radeon_driver_irq_preinstall_kms(struct drm_device *dev) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ drivers/gpu/drm/radeon/radeon_irq_kms.c:152:5: warning: no previous prototype for ‘radeon_driver_irq_postinstall_kms’ [-Wmissing-prototypes] 152 | int radeon_driver_irq_postinstall_kms(struct drm_device *dev) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ drivers/gpu/drm/radeon/radeon_irq_kms.c:171:6: warning: no previous prototype for ‘radeon_driver_irq_uninstall_kms’ [-Wmissing-prototypes] 171 | void radeon_driver_irq_uninstall_kms(struct drm_device *dev) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Cc: Alex Deucher Cc: "Christian König" Cc: David Airlie Cc: Daniel Vetter Cc: Gareth Hughes Cc: amd-gfx@lists.freedesktop.org Cc: dri-devel@lists.freedesktop.org Signed-off-by: Lee Jones --- drivers/gpu/drm/radeon/radeon_drv.c | 5 +---- drivers/gpu/drm/radeon/radeon_irq_kms.c | 1 + drivers/gpu/drm/radeon/radeon_kms.h | 5 +++++ 3 files changed, 7 insertions(+), 4 deletions(-) diff --git a/drivers/gpu/drm/radeon/radeon_drv.c b/drivers/gpu/drm/radeon/radeon_drv.c index 2b9deaead99b2..211932d73b191 100644 --- a/drivers/gpu/drm/radeon/radeon_drv.c +++ b/drivers/gpu/drm/radeon/radeon_drv.c @@ -51,6 +51,7 @@ #include #include "radeon_drv.h" +#include "radeon_kms.h" #include "radeon_ttm.h" #include "radeon.h" #include "radeon_device.h" @@ -117,10 +118,6 @@ int radeon_suspend_kms(struct drm_device *dev, bool suspend, bool fbcon, bool freeze); int radeon_resume_kms(struct drm_device *dev, bool resume, bool fbcon); -void radeon_driver_irq_preinstall_kms(struct drm_device *dev); -int radeon_driver_irq_postinstall_kms(struct drm_device *dev); -void radeon_driver_irq_uninstall_kms(struct drm_device *dev); -irqreturn_t radeon_driver_irq_handler_kms(int irq, void *arg); extern int radeon_get_crtc_scanoutpos(struct drm_device *dev, unsigned int crtc, unsigned int flags, int *vpos, int *hpos, ktime_t *stime, ktime_t *etime, diff --git a/drivers/gpu/drm/radeon/radeon_irq_kms.c b/drivers/gpu/drm/radeon/radeon_irq_kms.c index 3521084030d24..7348ae52e2ef8 100644 --- a/drivers/gpu/drm/radeon/radeon_irq_kms.c +++ b/drivers/gpu/drm/radeon/radeon_irq_kms.c @@ -38,6 +38,7 @@ #include "atom.h" #include "radeon.h" +#include "radeon_kms.h" #include "radeon_reg.h" diff --git a/drivers/gpu/drm/radeon/radeon_kms.h b/drivers/gpu/drm/radeon/radeon_kms.h index 36e73cea92154..913c8239d5d8d 100644 --- a/drivers/gpu/drm/radeon/radeon_kms.h +++ b/drivers/gpu/drm/radeon/radeon_kms.h @@ -32,4 +32,9 @@ u32 radeon_get_vblank_counter_kms(struct drm_crtc *crtc); int radeon_enable_vblank_kms(struct drm_crtc *crtc); void radeon_disable_vblank_kms(struct drm_crtc *crtc); +irqreturn_t radeon_driver_irq_handler_kms(int irq, void *arg); +void radeon_driver_irq_preinstall_kms(struct drm_device *dev); +int radeon_driver_irq_postinstall_kms(struct drm_device *dev); +void radeon_driver_irq_uninstall_kms(struct drm_device *dev); + #endif /* __RADEON_KMS_H__ */ From patchwork Tue Nov 10 19:31:03 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 322875 Delivered-To: patch@linaro.org Received: by 2002:a05:6e02:5ce:0:0:0:0 with SMTP id l14csp500626ils; Tue, 10 Nov 2020 11:32:03 -0800 (PST) X-Google-Smtp-Source: ABdhPJzxwlHbhHo6DZbiHf2kxTkYyz9xLjcnwKV/ddHHZkZs1136ftKw0fG3vymW78JTphRJiWff X-Received: by 2002:a63:d354:: with SMTP id u20mr17751005pgi.41.1605036723181; Tue, 10 Nov 2020 11:32:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605036723; cv=none; d=google.com; s=arc-20160816; b=lPA6nwkfQ2kLIprWL3hbR6D9S3zdgk5eu9Q+YA0LGhbCUNyEUrdrH/8vSULUlZJEdU dcwjxqDvm9ubp5GpE9ZgviSkOgNRQ10nbT4dHLMhmHQirb5cc7yK5uKSeORiLnVkyZ96 76UiIpmn7RFhkA7G1N3xnkUncx2+YPmpWePf3koe3q2BDBuyPeUkywZYHPaGwdfuE+Ql O3HEvdiyysS0UCkngwuNvU4oJzWVyK8pDciBt80UhqnGOJt1HRhsGb7Nh+gek3zI8ifJ Oq/X8nSrs2g+Hy+D1UGgOInxvRzEMb2vSzTpz9aQuBgOjqxDx6rhMQ/7jiy3priuLDEi ABLA== 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=/87QScOlsWDUeUVYj5UGlfERHCuMLATz5LndX4ZkOyg=; b=jeG1dJRoHz4JNGaZZjWRFepCCjo1q3/iO5MtE59XBZqI2RKCHfS1kbIwwZtgx/hEPY TfPanIlmygLSe7W/6j9bFEdHhDJXSlIP/op2U9M/s2d37Kyhcpd9MABo/eGLmkiGm1x4 VZWeqxuQAWVxTdVam/0GZ08wQgzKO2haW23wRVcyL9ykenu+CjbwsvCuMZ8cMsYB1WCd QfkQ+FAGsXPUTvrHkturFtvoUj/a/8re4+uXc0xJbKatHu0jNSUq2NYiinGhKsZ4fMzQ w1MW/AvxIZKl1QiFqbuMLHPy1hmWXawltEKMRsq30vJz9wCFzJw1rYTbfhCqVwJFBBVa W/eA== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=T2jBka9s; 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 y143si12709899pfc.56.2020.11.10.11.32.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 10 Nov 2020 11:32: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=T2jBka9s; 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 BA10F89C1C; Tue, 10 Nov 2020 19:31:50 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wr1-x442.google.com (mail-wr1-x442.google.com [IPv6:2a00:1450:4864:20::442]) by gabe.freedesktop.org (Postfix) with ESMTPS id B254F89C0A for ; Tue, 10 Nov 2020 19:31:43 +0000 (UTC) Received: by mail-wr1-x442.google.com with SMTP id b6so2666703wrt.4 for ; Tue, 10 Nov 2020 11:31:43 -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=1oV/yz5N1u2UPD8o5d2gv6s+B1t/DAHhi2RWlvWz744=; b=T2jBka9sse1tlWAYyyPE0QhmK8In9KttLjXZkzSHP9HTQh59UL/40LMvsaOD8atmkQ /TWk7zYAzAYQbisCj8BpF5ksv9i3B3BAXUWERHj21dPwub2Q7tGUgwLrjp+JfQo19C/D Bp1jE0K8gdn1LOpxjSXJQEyXczZv6Ec/nY+xktwe7ZVo8GlXpVLJQo6CTT9sNNG5q3Ou ia0p140uu4rC10i6nWaETjRb05b5JpONzJmbjMRlEA2UuhS7HzIxDW3SnL9hsE3z9dHC bh7MHMAS6I7Mj6xULAFQpElPU6/t3cB12HJ4Xt018r6BzPBjeIIigiRopDEGBzir8ssq Twzw== 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=1oV/yz5N1u2UPD8o5d2gv6s+B1t/DAHhi2RWlvWz744=; b=j485NnsGf2uJNR9kTmO7wFdII+mQ93M6Zx4DcOciU6I6WoArE9bsDGB6O2c+56U7Jr LTVMrMgWbfuC9VUqti8OiHGea6C01uQIMqbwH7aYTt6qkGZ7mtf3f1v1qyJkTyYUOqhB QoI+Z+cLQ14WbnPzPyxlGm49tZrm8FB0S02hcMLn7+G3Sa+X/+XHP9p/aNIDaNy++p3Z jPPd3Fl2Slgqhgax3/EREC6Fv509mprQ0RToLUvhv5LRLdU5EgWCW7kDgRhn10OSoYeQ 8vKmDCHnWbGC+cYHhw6ayLW9WRd/oqO+Uvxlr++LvMlxKbRZpM6j7rw3Pw18kjHqjhA7 mqRQ== X-Gm-Message-State: AOAM530p8TkOMGeh8jxb2S5aC/EL3n4AWuwTUld273c1JtHPzfo7/MkP CcLR4TDY21sThJ3ZngZqDyatLA== X-Received: by 2002:adf:f4c1:: with SMTP id h1mr11340915wrp.290.1605036702401; Tue, 10 Nov 2020 11:31:42 -0800 (PST) Received: from dell.default ([91.110.221.139]) by smtp.gmail.com with ESMTPSA id 30sm17635335wrs.84.2020.11.10.11.31.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 10 Nov 2020 11:31:41 -0800 (PST) From: Lee Jones To: lee.jones@linaro.org Subject: [PATCH 21/30] drm/radeon/atom: Move 'radeon_atom_hw_i2c_*()'s prototypes into shared header Date: Tue, 10 Nov 2020 19:31:03 +0000 Message-Id: <20201110193112.988999-22-lee.jones@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20201110193112.988999-1-lee.jones@linaro.org> References: <20201110193112.988999-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, amd-gfx@lists.freedesktop.org, dri-devel@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" Fixes the following W=1 kernel build warning(s): drivers/gpu/drm/radeon/atombios_i2c.c:100:5: warning: no previous prototype for ‘radeon_atom_hw_i2c_xfer’ [-Wmissing-prototypes] 100 | int radeon_atom_hw_i2c_xfer(struct i2c_adapter *i2c_adap, | ^~~~~~~~~~~~~~~~~~~~~~~ drivers/gpu/drm/radeon/atombios_i2c.c:150:5: warning: no previous prototype for ‘radeon_atom_hw_i2c_func’ [-Wmissing-prototypes] 150 | u32 radeon_atom_hw_i2c_func(struct i2c_adapter *adap) | ^~~~~~~~~~~~~~~~~~~~~~~ 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/radeon/atom.h | 6 ++++++ drivers/gpu/drm/radeon/radeon_i2c.c | 4 ---- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/drivers/gpu/drm/radeon/atom.h b/drivers/gpu/drm/radeon/atom.h index cb93b83114dbe..efc05e33b220c 100644 --- a/drivers/gpu/drm/radeon/atom.h +++ b/drivers/gpu/drm/radeon/atom.h @@ -160,6 +160,12 @@ struct radeon_device; bool radeon_atom_get_tv_timings(struct radeon_device *rdev, int index, struct drm_display_mode *mode); +struct i2c_msg; +struct i2c_adapter; +int radeon_atom_hw_i2c_xfer(struct i2c_adapter *i2c_adap, + struct i2c_msg *msgs, int num); +u32 radeon_atom_hw_i2c_func(struct i2c_adapter *adap); + #include "atom-types.h" #include "atombios.h" #include "ObjectID.h" diff --git a/drivers/gpu/drm/radeon/radeon_i2c.c b/drivers/gpu/drm/radeon/radeon_i2c.c index aa61b3cb4049c..e543d993f73ee 100644 --- a/drivers/gpu/drm/radeon/radeon_i2c.c +++ b/drivers/gpu/drm/radeon/radeon_i2c.c @@ -34,10 +34,6 @@ #include "radeon.h" #include "atom.h" -extern int radeon_atom_hw_i2c_xfer(struct i2c_adapter *i2c_adap, - struct i2c_msg *msgs, int num); -extern u32 radeon_atom_hw_i2c_func(struct i2c_adapter *adap); - bool radeon_ddc_probe(struct radeon_connector *radeon_connector, bool use_aux) { u8 out = 0x0; From patchwork Tue Nov 10 19:31:04 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 322874 Delivered-To: patch@linaro.org Received: by 2002:a05:6e02:5ce:0:0:0:0 with SMTP id l14csp500617ils; Tue, 10 Nov 2020 11:32:01 -0800 (PST) X-Google-Smtp-Source: ABdhPJzNOdv2zm34v1YUTQptSREdW6cjHYOdx5eth7Ug6R6U1jKSlxS0pJI1Tr+SXW1POYXQnwiC X-Received: by 2002:a17:90b:2342:: with SMTP id ms2mr739661pjb.136.1605036721686; Tue, 10 Nov 2020 11:32:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605036721; cv=none; d=google.com; s=arc-20160816; b=p/AMT6rw2M/AIHyNFsP5QqwvwbPkMdanSkcLWg9PQgZSYujw029H6UnehW8ks7dhmp GOM1WS2lT6MFzHXQMNP/NeqArYpGSR034E1oLEEnnBz+BR46gnxIZLMhoYKHPW0owlBw tGJO0yqYSRwUkZ0KYuaVLrPEpbt7uxfGbvvbkE4gNfnGOg1ekA/g/yq0pmslBRJ3kkFL CzLbfqLzwzBDZQge5GcmG4STiqGpW2AEhSLLuaKASnDOUO5b8ChP8IVVmI9nJLe0B5t2 6qzRUH/+f7lJT/7zeaP1hRhF3PHhLDqeUH9CPaMkGvGJGRN0d7PgODkReT1+XGwPVQm6 5AzA== 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=xCvqx/XZMMM42H9DYqiq4FsSjuNxrDXZUrayfHr+gE8=; b=WA5iboKdM/i83wZLezqr/RA9/3SbeNKkSMI7YNvEwdJi9vplwL2yCpVFGO6sRtd1yh CVjN4MgDJpKOs2Z0to8I20D+45FdzjH4CnaoEAJ7uxQfAGEY+v20PI2rclQ2mJ75r4cZ bbBZxAidS9pPKPwdswES6YhhJVvj2DYjioUu+aJNBI9+l7b8Avn6z4gcCBqnyKyl48Gm VabHBhiP3aIWaE3mmQRA3CSOn4862xJ4+0S6DoyM+2QXgK6BbFLz6N92ZN498Mm8WpUC q+Ar8N5nZksVytF6EvPkAP0hNWkJEHyu4azkTo5zEikS7peEQfPpylhnDlrNYTwF0g6j KNQg== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=NfPbVfYF; 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 w73si12015743pfd.301.2020.11.10.11.32.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 10 Nov 2020 11:32: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=NfPbVfYF; 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 0B3ED89C0D; Tue, 10 Nov 2020 19:31:50 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wr1-x444.google.com (mail-wr1-x444.google.com [IPv6:2a00:1450:4864:20::444]) by gabe.freedesktop.org (Postfix) with ESMTPS id 054D489C16 for ; Tue, 10 Nov 2020 19:31:45 +0000 (UTC) Received: by mail-wr1-x444.google.com with SMTP id b8so14010791wrn.0 for ; Tue, 10 Nov 2020 11:31: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=FQd0T6EZFrZfchicFX37ZuWoOJNv6vhATW4C3kJNXAM=; b=NfPbVfYFBBBjkxCWTq+m/TLJOAQordAJBmRq0U/vnLCAcBmtoGC1b1qlMvfFXFQrVt p7/xW3rweSPZZwDy2lSQOcqGTViIRaNzSQ1L4gV9a2kgTTxnMUEI/2fB6qRWo6j+p5Xq HOsgh5DQ2J1NLmbacVB/ITLusVLkNvBQ+JSuJx4jaS8YsqR18Z0DjOVsYTlaN5m6dgBj trLQja4ZJ3AGuFfnuSKzfaVj3Y1yJOUTt5vsvDhhP5mhX7/4dFNHIGE6XsfI+slaMeBO CzoZSruaj/XMeNLQysRevchaQDjeznR+Bh1S3yaLc9CJKixBLNMGDpnN4ItSOm69SnGo /QSw== 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=FQd0T6EZFrZfchicFX37ZuWoOJNv6vhATW4C3kJNXAM=; b=nZMVdLFJxlICOt62OaEuxfD1xTDwJhnyQLSID6ANUQqV/WJSCM8pJAXIi1fW3YaKBF 0XhYSDObz+8E4HzqUo3BCnAdCn2kZOUH83amiAIrCQXO3qczpuIl7qxkIQy2Ovjqj8Zn OBjxZGipM+j4x/f96e+Ae+iMWsTQnBNohPzA3nnV1c4uZ5NkPdfiAHh9JrUbPl+vZbXw 9fb8me/EHWcPxa5NByMeiWZ5RBjHW0j9yuXOJMlrqmbTX3l7iZjwKTgwj//jau1I7Fu8 1nQji+CleJXGOJPJfzGTSXG8gUTCbSiAiNM9N9vJ0C9xiIkcSSlFUxhq1uw0xv4QwTZ6 R6jg== X-Gm-Message-State: AOAM531z81zBKCTB9yRQZTPHekZXZmrG09eziVSH19dcEI4aEy/geLjm E/Hx7O9z2vzRlA3G9CJAY5UJkw== X-Received: by 2002:a5d:4248:: with SMTP id s8mr25262268wrr.161.1605036703586; Tue, 10 Nov 2020 11:31:43 -0800 (PST) Received: from dell.default ([91.110.221.139]) by smtp.gmail.com with ESMTPSA id 30sm17635335wrs.84.2020.11.10.11.31.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 10 Nov 2020 11:31:42 -0800 (PST) From: Lee Jones To: lee.jones@linaro.org Subject: [PATCH 22/30] drm/radeon/radeon_gem: Move 'radeon_gem_prime_*()'s prototypes to shared header Date: Tue, 10 Nov 2020 19:31:04 +0000 Message-Id: <20201110193112.988999-23-lee.jones@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20201110193112.988999-1-lee.jones@linaro.org> References: <20201110193112.988999-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, amd-gfx@lists.freedesktop.org, dri-devel@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" Fixes the following W=1 kernel build warning(s): drivers/gpu/drm/radeon/radeon_prime.c:34:18: warning: no previous prototype for ‘radeon_gem_prime_get_sg_table’ [-Wmissing-prototypes] 34 | struct sg_table *radeon_gem_prime_get_sg_table(struct drm_gem_object *obj) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ drivers/gpu/drm/radeon/radeon_prime.c:42:7: warning: no previous prototype for ‘radeon_gem_prime_vmap’ [-Wmissing-prototypes] 42 | void *radeon_gem_prime_vmap(struct drm_gem_object *obj) | ^~~~~~~~~~~~~~~~~~~~~ drivers/gpu/drm/radeon/radeon_prime.c:55:6: warning: no previous prototype for ‘radeon_gem_prime_vunmap’ [-Wmissing-prototypes] 55 | void radeon_gem_prime_vunmap(struct drm_gem_object *obj, void *vaddr) | ^~~~~~~~~~~~~~~~~~~~~~~ drivers/gpu/drm/radeon/radeon_prime.c:62:24: warning: no previous prototype for ‘radeon_gem_prime_import_sg_table’ [-Wmissing-prototypes] 62 | struct drm_gem_object *radeon_gem_prime_import_sg_table(struct drm_device *dev, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ drivers/gpu/drm/radeon/radeon_prime.c:86:5: warning: no previous prototype for ‘radeon_gem_prime_pin’ [-Wmissing-prototypes] 86 | int radeon_gem_prime_pin(struct drm_gem_object *obj) | ^~~~~~~~~~~~~~~~~~~~ drivers/gpu/drm/radeon/radeon_prime.c:104:6: warning: no previous prototype for ‘radeon_gem_prime_unpin’ [-Wmissing-prototypes] 104 | void radeon_gem_prime_unpin(struct drm_gem_object *obj) | ^~~~~~~~~~~~~~~~~~~~~~ drivers/gpu/drm/radeon/radeon_prime.c:120:17: warning: no previous prototype for ‘radeon_gem_prime_export’ [-Wmissing-prototypes] 120 | struct dma_buf *radeon_gem_prime_export(struct drm_gem_object *gobj, | ^~~~~~~~~~~~~~~~~~~~~~~ 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/radeon/radeon_gem.c | 9 +------ drivers/gpu/drm/radeon/radeon_prime.c | 1 + drivers/gpu/drm/radeon/radeon_prime.h | 39 +++++++++++++++++++++++++++ 3 files changed, 41 insertions(+), 8 deletions(-) create mode 100644 drivers/gpu/drm/radeon/radeon_prime.h diff --git a/drivers/gpu/drm/radeon/radeon_gem.c b/drivers/gpu/drm/radeon/radeon_gem.c index 0ccd7213e41ff..6db11e357565b 100644 --- a/drivers/gpu/drm/radeon/radeon_gem.c +++ b/drivers/gpu/drm/radeon/radeon_gem.c @@ -34,14 +34,7 @@ #include #include "radeon.h" - -struct dma_buf *radeon_gem_prime_export(struct drm_gem_object *gobj, - int flags); -struct sg_table *radeon_gem_prime_get_sg_table(struct drm_gem_object *obj); -int radeon_gem_prime_pin(struct drm_gem_object *obj); -void radeon_gem_prime_unpin(struct drm_gem_object *obj); -void *radeon_gem_prime_vmap(struct drm_gem_object *obj); -void radeon_gem_prime_vunmap(struct drm_gem_object *obj, void *vaddr); +#include "radeon_prime.h" static const struct drm_gem_object_funcs radeon_gem_object_funcs; diff --git a/drivers/gpu/drm/radeon/radeon_prime.c b/drivers/gpu/drm/radeon/radeon_prime.c index b9de0e51c0be9..789e076efbdc6 100644 --- a/drivers/gpu/drm/radeon/radeon_prime.c +++ b/drivers/gpu/drm/radeon/radeon_prime.c @@ -30,6 +30,7 @@ #include #include "radeon.h" +#include "radeon_prime.h" struct sg_table *radeon_gem_prime_get_sg_table(struct drm_gem_object *obj) { diff --git a/drivers/gpu/drm/radeon/radeon_prime.h b/drivers/gpu/drm/radeon/radeon_prime.h new file mode 100644 index 0000000000000..11b7f80987834 --- /dev/null +++ b/drivers/gpu/drm/radeon/radeon_prime.h @@ -0,0 +1,39 @@ +/* radeon_prime.h -- Private header for radeon driver -*- linux-c -*- + * + * Copyright 1999 Precision Insight, Inc., Cedar Park, Texas. + * Copyright 2000 VA Linux Systems, Inc., Fremont, California. + * All rights reserved. + * + * Permission is hereby granted, free of charge, to any person obtaining a + * copy of this software and associated documentation files (the "Software"), + * to deal in the Software without restriction, including without limitation + * the rights to use, copy, modify, merge, publish, distribute, sublicense, + * and/or sell copies of the Software, and to permit persons to whom the + * Software is furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice (including the next + * paragraph) shall be included in all copies or substantial portions of the + * Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL + * PRECISION INSIGHT AND/OR ITS SUPPLIERS BE LIABLE FOR ANY CLAIM, DAMAGES OR + * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, + * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER + * DEALINGS IN THE SOFTWARE. + * + */ + +#ifndef __RADEON_PRIME_H__ +#define __RADEON_PRIME_H__ + +struct dma_buf *radeon_gem_prime_export(struct drm_gem_object *gobj, + int flags); +struct sg_table *radeon_gem_prime_get_sg_table(struct drm_gem_object *obj); +int radeon_gem_prime_pin(struct drm_gem_object *obj); +void radeon_gem_prime_unpin(struct drm_gem_object *obj); +void *radeon_gem_prime_vmap(struct drm_gem_object *obj); +void radeon_gem_prime_vunmap(struct drm_gem_object *obj, void *vaddr); + +#endif /* __RADEON_PRIME_H__ */ From patchwork Tue Nov 10 19:31:05 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 322877 Delivered-To: patch@linaro.org Received: by 2002:a05:6e02:5ce:0:0:0:0 with SMTP id l14csp500666ils; Tue, 10 Nov 2020 11:32:06 -0800 (PST) X-Google-Smtp-Source: ABdhPJyTow1CI0DJnmVvUSVAqbqaizSNf8tonGoCg9q003a31m88XGWNPCozYc/U6B5OOTChPD8D X-Received: by 2002:a63:dd4c:: with SMTP id g12mr18425732pgj.362.1605036726468; Tue, 10 Nov 2020 11:32:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605036726; cv=none; d=google.com; s=arc-20160816; b=eagKHEuI8D1fK/pwViapLnaD2wCLqtAquScp45FJM4uLnDMDhbkiT/KscEm/XdX1cK b6pDl4w5KYXtyIoUxv9m6jYSO7Gg3o+JDgHzi7aKhxLZ7fk1ntVFc1FBjK73+Wj7mhF8 a17dMGlhdoznYo0ui1TvrjBFpVknGUblPc3hSSoy/HoF1mHKd8P9IR3Orfl6TVYrsEvF bTGS7RdRjx0RkC4K9fAdN0Gn1zzSf2a2YAQZ0yRa2QBqTV/ZEnXIYrtIU+oIOUkRPFh6 EHKr4uS2nb48MfC+ncoFssfPJev9JCsSdHwX0qQiC/Q7iYz92NdOj6NNyr/P39oGBrAN Hy9g== 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=G0wWDqlonbKi6M3X+bky1Vt5oV0jDfgaJezmBDakOtk=; b=W7ugDWXQLslxYVQUHsfMB0mnVQpEO+Zd8M2xQ+VXE1o9GzgGiX97+r9QULNl1age/C b5UFA5XSt+pti8Xy8VRYNJc/yHaTwjgM97zdIO0Bc3YkybjLNhhyCG4hT9xRgrlyLhgX mDFRkL6mKvGNeU3oQc6x92IJ+M26txcjAIrzQCrfvCdKbrSbSb0hR1AoNhNICj00qoMI r9LYt+f+zAuW7jM/FNCdI4j2xz56ySqxKmywrBBiw/JTVFceyQI4BnWI7Uu/V+S7zVcK Kc5SyJYQIctnrJNIU+aJkEz3Xypxmu+shOLGdCyfjQYMxJvuJE1E/uGKrhhe6T3J5Khn Kn+g== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=ksFQ83Fl; 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 p27si12953200pgd.532.2020.11.10.11.32.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 10 Nov 2020 11:32: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=ksFQ83Fl; 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 C4D3B89C27; Tue, 10 Nov 2020 19:31:55 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wr1-x443.google.com (mail-wr1-x443.google.com [IPv6:2a00:1450:4864:20::443]) by gabe.freedesktop.org (Postfix) with ESMTPS id 41D7389C09 for ; Tue, 10 Nov 2020 19:31:46 +0000 (UTC) Received: by mail-wr1-x443.google.com with SMTP id l1so9605723wrb.9 for ; Tue, 10 Nov 2020 11:31: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=BVg0DFwyE/SgrsDhpoYtlBvB7g78lLsCkWm+YVU0fXA=; b=ksFQ83FlIf3YwYoXo3QvMRd8PasXwtNX1dm6FiISlgeWZKjLdanxdF4/UcxHNxb99q EwrNKJmxIDt47d9KkwcQ26zRwCKLjDVkOPK9a/W7xNlujwKIY4cCPUnEj0mFxje1M3wy oaW3qs9MkWucXcHMT8eS2bN90+SkftCPfmxVGPGMkmkyRzc6hpKuqX0WV1ylvrzl7Cu3 Q2yUsT5PzovRZh8eMBzigwQWrXwFat8shXLhBgkJbw+RUlZAt4t3dj6ty8nM5SbpqOE8 fT8xpFpvFXUAMbPpuigkQChSHHdPxMtAFOooRaVAUzuPukZ9+AJaLCCg59vXpQ26MhO3 QYcg== 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=BVg0DFwyE/SgrsDhpoYtlBvB7g78lLsCkWm+YVU0fXA=; b=QS3PYSwOc8KcP6OSu6n4fXuQH/qDRfocx2fDSgb6YzdkKRUHKbyrCGtf23MyvFndeu O7y/ab9jq78oXymZvz1rmFoj06W/+td1GXZHDYVV91k47xYcuWbkpsbndfqZ0s7LVZk1 EgzXHaNZV9d8e3RP4JyRcHqXc5MX/IEpwV9rOYaIm/zkNrK1IltgstteOLnJVTGtQ3C1 VWb+xghNNpxCWCZOEvlSy8yUqUmomH0Jaf2y+pYbqTNx08FfNS2wmCJN/3WJ7n2b1f93 I/RJQeb5j5peO6CxDKD4g5yBKgiStljFjb74CMxmtUw70ZlRFhEQWy7Y8l2hhmDxLYVe J3Xw== X-Gm-Message-State: AOAM533ye4SNrSmBCss2z2his7PMDcsGQY6837y5fO7hlGdNyUoShp3g Mgwg4BaRNB/bpAmkj9uknSb11A== X-Received: by 2002:a5d:670f:: with SMTP id o15mr8802372wru.204.1605036704855; Tue, 10 Nov 2020 11:31:44 -0800 (PST) Received: from dell.default ([91.110.221.139]) by smtp.gmail.com with ESMTPSA id 30sm17635335wrs.84.2020.11.10.11.31.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 10 Nov 2020 11:31:44 -0800 (PST) From: Lee Jones To: lee.jones@linaro.org Subject: [PATCH 23/30] drm/radeon/evergreen_hdmi: Move 'evergreen_*()' and 'dce4_*()' HDMI prototypes to shared header Date: Tue, 10 Nov 2020 19:31:05 +0000 Message-Id: <20201110193112.988999-24-lee.jones@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20201110193112.988999-1-lee.jones@linaro.org> References: <20201110193112.988999-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, amd-gfx@lists.freedesktop.org, dri-devel@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" Fixes the following W=1 kernel build warning(s): drivers/gpu/drm/radeon/evergreen_hdmi.c:37:6: warning: no previous prototype for ‘dce4_audio_enable’ [-Wmissing-prototypes] drivers/gpu/drm/radeon/evergreen_hdmi.c:67:6: warning: no previous prototype for ‘evergreen_hdmi_update_acr’ [-Wmissing-prototypes] drivers/gpu/drm/radeon/evergreen_hdmi.c:97:6: warning: no previous prototype for ‘dce4_afmt_write_latency_fields’ [-Wmissing-prototypes] drivers/gpu/drm/radeon/evergreen_hdmi.c:119:6: warning: no previous prototype for ‘dce4_afmt_hdmi_write_speaker_allocation’ [-Wmissing-prototypes] drivers/gpu/drm/radeon/evergreen_hdmi.c:137:6: warning: no previous prototype for ‘dce4_afmt_dp_write_speaker_allocation’ [-Wmissing-prototypes] drivers/gpu/drm/radeon/evergreen_hdmi.c:155:6: warning: no previous prototype for ‘evergreen_hdmi_write_sad_regs’ [-Wmissing-prototypes] drivers/gpu/drm/radeon/evergreen_hdmi.c:208:6: warning: no previous prototype for ‘evergreen_set_avi_packet’ [-Wmissing-prototypes] drivers/gpu/drm/radeon/evergreen_hdmi.c:227:6: warning: no previous prototype for ‘dce4_hdmi_audio_set_dto’ [-Wmissing-prototypes] drivers/gpu/drm/radeon/evergreen_hdmi.c:270:6: warning: no previous prototype for ‘dce4_dp_audio_set_dto’ [-Wmissing-prototypes] drivers/gpu/drm/radeon/evergreen_hdmi.c:306:6: warning: no previous prototype for ‘dce4_set_vbi_packet’ [-Wmissing-prototypes] drivers/gpu/drm/radeon/evergreen_hdmi.c:317:6: warning: no previous prototype for ‘dce4_hdmi_set_color_depth’ [-Wmissing-prototypes] drivers/gpu/drm/radeon/evergreen_hdmi.c:354:6: warning: no previous prototype for ‘dce4_set_audio_packet’ [-Wmissing-prototypes] drivers/gpu/drm/radeon/evergreen_hdmi.c:389:6: warning: no previous prototype for ‘dce4_set_mute’ [-Wmissing-prototypes] drivers/gpu/drm/radeon/evergreen_hdmi.c:400:6: warning: no previous prototype for ‘evergreen_hdmi_enable’ [-Wmissing-prototypes] drivers/gpu/drm/radeon/evergreen_hdmi.c:440:6: warning: no previous prototype for ‘evergreen_dp_enable’ [-Wmissing-prototypes] 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/radeon/evergreen_hdmi.c | 1 + drivers/gpu/drm/radeon/evergreen_hdmi.h | 69 +++++++++++++++++++++++++ drivers/gpu/drm/radeon/radeon_audio.c | 26 +--------- 3 files changed, 71 insertions(+), 25 deletions(-) create mode 100644 drivers/gpu/drm/radeon/evergreen_hdmi.h diff --git a/drivers/gpu/drm/radeon/evergreen_hdmi.c b/drivers/gpu/drm/radeon/evergreen_hdmi.c index 739336a48d085..5f3078f8ab950 100644 --- a/drivers/gpu/drm/radeon/evergreen_hdmi.c +++ b/drivers/gpu/drm/radeon/evergreen_hdmi.c @@ -27,6 +27,7 @@ #include #include +#include "evergreen_hdmi.h" #include "radeon.h" #include "radeon_asic.h" #include "radeon_audio.h" diff --git a/drivers/gpu/drm/radeon/evergreen_hdmi.h b/drivers/gpu/drm/radeon/evergreen_hdmi.h new file mode 100644 index 0000000000000..c86276b8d7f58 --- /dev/null +++ b/drivers/gpu/drm/radeon/evergreen_hdmi.h @@ -0,0 +1,69 @@ +/* evergreen_hdmi.h -- Private header for radeon driver -*- linux-c -*- + * + * Copyright 1999 Precision Insight, Inc., Cedar Park, Texas. + * Copyright 2000 VA Linux Systems, Inc., Fremont, California. + * All rights reserved. + * + * Permission is hereby granted, free of charge, to any person obtaining a + * copy of this software and associated documentation files (the "Software"), + * to deal in the Software without restriction, including without limitation + * the rights to use, copy, modify, merge, publish, distribute, sublicense, + * and/or sell copies of the Software, and to permit persons to whom the + * Software is furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice (including the next + * paragraph) shall be included in all copies or substantial portions of the + * Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL + * PRECISION INSIGHT AND/OR ITS SUPPLIERS BE LIABLE FOR ANY CLAIM, DAMAGES OR + * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, + * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER + * DEALINGS IN THE SOFTWARE. + * + */ + +#ifndef __EVERGREEN_HDMI_H__ +#define __EVERGREEN_HDMI_H__ + +struct cea_sa; +struct cea_sad; +struct drm_connector; +struct drm_display_mode; +struct drm_encoder; +struct r600_audio_pin; +struct radeon_crtc; +struct radeon_device; +struct radeon_hdmi_acr; + +void evergreen_hdmi_write_sad_regs(struct drm_encoder *encoder, + struct cea_sad *sads, int sad_count); +void evergreen_set_avi_packet(struct radeon_device *rdev, u32 offset, + unsigned char *buffer, size_t size); +void evergreen_hdmi_update_acr(struct drm_encoder *encoder, long offset, + const struct radeon_hdmi_acr *acr); +void evergreen_hdmi_enable(struct drm_encoder *encoder, bool enable); +void evergreen_dp_enable(struct drm_encoder *encoder, bool enable); + +void dce4_audio_enable(struct radeon_device *rdev, struct r600_audio_pin *pin, + u8 enable_mask); +void dce4_afmt_hdmi_write_speaker_allocation(struct drm_encoder *encoder, + u8 *sadb, int sad_count); +void dce4_afmt_dp_write_speaker_allocation(struct drm_encoder *encoder, + u8 *sadb, int sad_count); +void dce4_afmt_write_latency_fields(struct drm_encoder *encoder, + struct drm_connector *connector, + struct drm_display_mode *mode); +void dce4_hdmi_audio_set_dto(struct radeon_device *rdev, + struct radeon_crtc *crtc, unsigned int clock); +void dce4_dp_audio_set_dto(struct radeon_device *rdev, + struct radeon_crtc *crtc, unsigned int clock); +void dce4_set_vbi_packet(struct drm_encoder *encoder, u32 offset); +void dce4_hdmi_set_color_depth(struct drm_encoder *encoder, + u32 offset, int bpc); +void dce4_set_audio_packet(struct drm_encoder *encoder, u32 offset); +void dce4_set_mute(struct drm_encoder *encoder, u32 offset, bool mute); + +#endif /* __EVERGREEN_HDMI_H__ */ diff --git a/drivers/gpu/drm/radeon/radeon_audio.c b/drivers/gpu/drm/radeon/radeon_audio.c index 18228b366752e..7a59028f64fbc 100644 --- a/drivers/gpu/drm/radeon/radeon_audio.c +++ b/drivers/gpu/drm/radeon/radeon_audio.c @@ -25,6 +25,7 @@ #include #include +#include "evergreen_hdmi.h" #include "radeon.h" #include "atom.h" #include "r600d.h" @@ -32,55 +33,30 @@ void r600_audio_enable(struct radeon_device *rdev, struct r600_audio_pin *pin, u8 enable_mask); -void dce4_audio_enable(struct radeon_device *rdev, struct r600_audio_pin *pin, - u8 enable_mask); void dce6_audio_enable(struct radeon_device *rdev, struct r600_audio_pin *pin, u8 enable_mask); u32 dce6_endpoint_rreg(struct radeon_device *rdev, u32 offset, u32 reg); void dce6_endpoint_wreg(struct radeon_device *rdev, u32 offset, u32 reg, u32 v); -void evergreen_hdmi_write_sad_regs(struct drm_encoder *encoder, - struct cea_sad *sads, int sad_count); void dce6_afmt_write_sad_regs(struct drm_encoder *encoder, struct cea_sad *sads, int sad_count); -void dce4_afmt_hdmi_write_speaker_allocation(struct drm_encoder *encoder, - u8 *sadb, int sad_count); -void dce4_afmt_dp_write_speaker_allocation(struct drm_encoder *encoder, - u8 *sadb, int sad_count); void dce6_afmt_hdmi_write_speaker_allocation(struct drm_encoder *encoder, u8 *sadb, int sad_count); void dce6_afmt_dp_write_speaker_allocation(struct drm_encoder *encoder, u8 *sadb, int sad_count); -void dce4_afmt_write_latency_fields(struct drm_encoder *encoder, - struct drm_connector *connector, struct drm_display_mode *mode); void dce6_afmt_write_latency_fields(struct drm_encoder *encoder, struct drm_connector *connector, struct drm_display_mode *mode); struct r600_audio_pin* r600_audio_get_pin(struct radeon_device *rdev); struct r600_audio_pin* dce6_audio_get_pin(struct radeon_device *rdev); void dce6_afmt_select_pin(struct drm_encoder *encoder); -void dce4_hdmi_audio_set_dto(struct radeon_device *rdev, - struct radeon_crtc *crtc, unsigned int clock); -void dce4_dp_audio_set_dto(struct radeon_device *rdev, - struct radeon_crtc *crtc, unsigned int clock); void dce6_hdmi_audio_set_dto(struct radeon_device *rdev, struct radeon_crtc *crtc, unsigned int clock); void dce6_dp_audio_set_dto(struct radeon_device *rdev, struct radeon_crtc *crtc, unsigned int clock); -void evergreen_set_avi_packet(struct radeon_device *rdev, u32 offset, - unsigned char *buffer, size_t size); -void evergreen_hdmi_update_acr(struct drm_encoder *encoder, long offset, - const struct radeon_hdmi_acr *acr); -void dce4_set_vbi_packet(struct drm_encoder *encoder, u32 offset); -void dce4_hdmi_set_color_depth(struct drm_encoder *encoder, - u32 offset, int bpc); -void dce4_set_audio_packet(struct drm_encoder *encoder, u32 offset); -void dce4_set_mute(struct drm_encoder *encoder, u32 offset, bool mute); static void radeon_audio_hdmi_mode_set(struct drm_encoder *encoder, struct drm_display_mode *mode); static void radeon_audio_dp_mode_set(struct drm_encoder *encoder, struct drm_display_mode *mode); -void evergreen_hdmi_enable(struct drm_encoder *encoder, bool enable); -void evergreen_dp_enable(struct drm_encoder *encoder, bool enable); static const u32 pin_offsets[7] = { From patchwork Tue Nov 10 19:31:06 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 322883 Delivered-To: patch@linaro.org Received: by 2002:a05:6e02:5ce:0:0:0:0 with SMTP id l14csp500689ils; Tue, 10 Nov 2020 11:32:08 -0800 (PST) X-Google-Smtp-Source: ABdhPJyLqXo7A1Fft12gShfmEJ1g2rEAzXN2tFgjr+exAg4xpFQdI0Zqj/4NyMSlAG8kjfIup+gD X-Received: by 2002:a17:902:82c2:b029:d6:c4d5:5f0e with SMTP id u2-20020a17090282c2b02900d6c4d55f0emr17853513plz.72.1605036728056; Tue, 10 Nov 2020 11:32:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605036728; cv=none; d=google.com; s=arc-20160816; b=ZGCLHTcyNzTrN6izEKEBztANvcf3sxVoEz4XzoMPFViFXFAh7FeSOrpTU0cSUGZ0m+ ikWlHebon98+i1bDK50jLsKFbgrwdmFsrCWX1rPC9P7ONgP+I8bScFrTSHeaUoemuXMK s107Z+CTEY6evajRq9rtg1uUOM1NtbKBau2lJMu3/DwMD4kcGJ9DBt3UZesyyt0yaz1a ns9ox2UPLn8Fxj5wRM9Rt1/GQ7+C+GAlaw5Ljc5B/aiHKkTR7TqayIU3jdWoegHNn/Ns vV1g9fAeL2F7o5ZlhEerCvQtC4viXsgEd+U3BtrkqQPK8tGtf1+PQOaUGkbhRKL4uCWX kwgQ== 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=aCAlImI7iWjbSj8ORQvpIV3QEWeV6c9A074E9GejnAA=; b=oLf1CuwbBJbpVmKRwSw9QWH16S2rgXC6CsLclrNobs0jK89jn/gbNguxX6/lOUfxOi 5NGWj45d/7XgY1EIRqZnhFMMjviev/bbHI7y72SDiBo6hK6fGVzOXjE8AoDp/eloIwQ4 kyHq+Znug4KPCzG0C4/zB3PhSjG6dRZtIfmn0pyzJdJUYj0/3sS5wAn/MhtOrrtubXMe 0XqlUzmcjN1dOJX1WoU+lxFX0hks+jTgCVmN3iH8/7bV2qzRVowMEll14coova1Ve9I3 6EfzzCgXNSkSke/Anyw4wIiAdPwMlinVSjOYIMy18Q6hgSo5yArlTFhjcjtlukvaeVhk /gZA== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=KiUNDt1p; 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 188si12289293pfg.26.2020.11.10.11.32.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 10 Nov 2020 11:32: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=KiUNDt1p; 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 2168289C51; Tue, 10 Nov 2020 19:31:56 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wm1-x341.google.com (mail-wm1-x341.google.com [IPv6:2a00:1450:4864:20::341]) by gabe.freedesktop.org (Postfix) with ESMTPS id 9074189C16 for ; Tue, 10 Nov 2020 19:31:47 +0000 (UTC) Received: by mail-wm1-x341.google.com with SMTP id 10so4354447wml.2 for ; Tue, 10 Nov 2020 11:31: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=O9D4sdvgAf5ZpmG7WRKhdhcXCgCIe69NPhgbZH8YPLo=; b=KiUNDt1pIPZZdeRHH1IiNfbpdTZZJAixesDx6gTVlmC1kGISYte/3HPinHflWMH2aO rsw3FijzmVrzqK/ILIpm4YSAHvaeH0pKDB2gN92IM3Dsg8Qvdzf98TvkbvsHwCC6ym3e wJP5RtOIZw61M7EuzVDDUNViEk5jCpEZH1A6OY/R+NNhWE1pYiIpNyXs2xfPWw/0ryii z8iFLtGtnhL8rsZXzUMAM3JERcT2SdMImNQOXfW0y6jU7GgYSIY8kTA2/hzAO4xz9k2j QB7UsJp8g9Rn8ujubUuBo+UfsphKn1UcA8KgZQjdh8XjizsnIlCP6jGGFwyV/jcC4VQo 9GFw== 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=O9D4sdvgAf5ZpmG7WRKhdhcXCgCIe69NPhgbZH8YPLo=; b=NEcGJ+B6CyTSc3Fiec86JNZtNPtEETHhutsvv9B7JDJvqVaNfwa9pSJlPH2gky8Nbk 9i29Hpfc1xQ7wzD+ua2XjO39j1PdJhdpPjgR0zdrIED8ltxaM2NEIERaUfehfLbVC5xU fDr63ar6/DFoS6a0PUJEvGQHGMt176NwsW/+ljCCP4RWAsANLtFlICmQcM7RGrAScwR9 dKqIygABGnaN5yM+RSNFwJF/bb1FSsLKPTu8IL8IEEjGbwQmKxeraz3zOMKcjzTT67Sp l4Hbql91x53hPqGQXauoIqO/mPrrNqj+EJwCCNPlPbFNrKjWLgvwM1Zqd4dOPgEDyirz CUOA== X-Gm-Message-State: AOAM5334aHe5aQKfFON342kD0HKHfMHNmfSkYrpyQDHqEHX4Io4lDj0h bHeblXS73y73oCb+nmyehAXMlA== X-Received: by 2002:a1c:190:: with SMTP id 138mr667479wmb.113.1605036706165; Tue, 10 Nov 2020 11:31:46 -0800 (PST) Received: from dell.default ([91.110.221.139]) by smtp.gmail.com with ESMTPSA id 30sm17635335wrs.84.2020.11.10.11.31.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 10 Nov 2020 11:31:45 -0800 (PST) From: Lee Jones To: lee.jones@linaro.org Subject: [PATCH 24/30] drm/radeon/rv770: Move 'rv770_get_*()'s prototypes to shared header Date: Tue, 10 Nov 2020 19:31:06 +0000 Message-Id: <20201110193112.988999-25-lee.jones@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20201110193112.988999-1-lee.jones@linaro.org> References: <20201110193112.988999-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, amd-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org, Alex Deucher , Evan Quan , =?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/radeon/rv770_dpm.c:47:18: warning: no previous prototype for ‘rv770_get_ps’ [-Wmissing-prototypes] 47 | struct rv7xx_ps *rv770_get_ps(struct radeon_ps *rps) | ^~~~~~~~~~~~ drivers/gpu/drm/radeon/rv770_dpm.c:54:26: warning: no previous prototype for ‘rv770_get_pi’ [-Wmissing-prototypes] 54 | struct rv7xx_power_info *rv770_get_pi(struct radeon_device *rdev) | ^~~~~~~~~~~~ Cc: Evan Quan 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/radeon/btc_dpm.c | 3 +-- drivers/gpu/drm/radeon/cypress_dpm.c | 3 +-- drivers/gpu/drm/radeon/ni_dpm.c | 2 +- drivers/gpu/drm/radeon/rv730_dpm.c | 4 +--- drivers/gpu/drm/radeon/rv740_dpm.c | 3 +-- drivers/gpu/drm/radeon/rv770.h | 5 +++++ drivers/gpu/drm/radeon/rv770_dpm.c | 1 + drivers/gpu/drm/radeon/si_dpm.c | 2 +- 8 files changed, 12 insertions(+), 11 deletions(-) diff --git a/drivers/gpu/drm/radeon/btc_dpm.c b/drivers/gpu/drm/radeon/btc_dpm.c index d1d8aaf8323c2..018949668536e 100644 --- a/drivers/gpu/drm/radeon/btc_dpm.c +++ b/drivers/gpu/drm/radeon/btc_dpm.c @@ -30,6 +30,7 @@ #include "btcd.h" #include "cypress_dpm.h" #include "r600_dpm.h" +#include "rv770.h" #include "radeon.h" #include "radeon_asic.h" @@ -48,8 +49,6 @@ #ifndef BTC_MGCG_SEQUENCE #define BTC_MGCG_SEQUENCE 300 -struct rv7xx_ps *rv770_get_ps(struct radeon_ps *rps); -struct rv7xx_power_info *rv770_get_pi(struct radeon_device *rdev); struct evergreen_power_info *evergreen_get_pi(struct radeon_device *rdev); extern int ni_mc_load_microcode(struct radeon_device *rdev); diff --git a/drivers/gpu/drm/radeon/cypress_dpm.c b/drivers/gpu/drm/radeon/cypress_dpm.c index 35b177d777913..6d3690bcca2d2 100644 --- a/drivers/gpu/drm/radeon/cypress_dpm.c +++ b/drivers/gpu/drm/radeon/cypress_dpm.c @@ -28,6 +28,7 @@ #include "cypress_dpm.h" #include "evergreend.h" #include "r600_dpm.h" +#include "rv770.h" #include "radeon.h" #include "radeon_asic.h" @@ -43,8 +44,6 @@ #define MC_CG_SEQ_YCLK_SUSPEND 0x04 #define MC_CG_SEQ_YCLK_RESUME 0x0a -struct rv7xx_ps *rv770_get_ps(struct radeon_ps *rps); -struct rv7xx_power_info *rv770_get_pi(struct radeon_device *rdev); struct evergreen_power_info *evergreen_get_pi(struct radeon_device *rdev); static void cypress_enable_bif_dynamic_pcie_gen2(struct radeon_device *rdev, diff --git a/drivers/gpu/drm/radeon/ni_dpm.c b/drivers/gpu/drm/radeon/ni_dpm.c index 59cdadcece159..d39bbd9793cc2 100644 --- a/drivers/gpu/drm/radeon/ni_dpm.c +++ b/drivers/gpu/drm/radeon/ni_dpm.c @@ -29,6 +29,7 @@ #include "ni_dpm.h" #include "nid.h" #include "r600_dpm.h" +#include "rv770.h" #include "radeon.h" #include "radeon_asic.h" @@ -719,7 +720,6 @@ static const u32 cayman_sysls_enable[] = }; #define CAYMAN_SYSLS_ENABLE_LENGTH sizeof(cayman_sysls_enable) / (3 * sizeof(u32)) -struct rv7xx_power_info *rv770_get_pi(struct radeon_device *rdev); struct evergreen_power_info *evergreen_get_pi(struct radeon_device *rdev); extern int ni_mc_load_microcode(struct radeon_device *rdev); diff --git a/drivers/gpu/drm/radeon/rv730_dpm.c b/drivers/gpu/drm/radeon/rv730_dpm.c index 84a3d6d724866..a9de5c953396a 100644 --- a/drivers/gpu/drm/radeon/rv730_dpm.c +++ b/drivers/gpu/drm/radeon/rv730_dpm.c @@ -25,6 +25,7 @@ #include "radeon.h" #include "rv730d.h" #include "r600_dpm.h" +#include "rv770.h" #include "rv770_dpm.h" #include "atom.h" @@ -33,9 +34,6 @@ #define MC_CG_ARB_FREQ_F2 0x0c #define MC_CG_ARB_FREQ_F3 0x0d -struct rv7xx_ps *rv770_get_ps(struct radeon_ps *rps); -struct rv7xx_power_info *rv770_get_pi(struct radeon_device *rdev); - int rv730_populate_sclk_value(struct radeon_device *rdev, u32 engine_clock, RV770_SMC_SCLK_VALUE *sclk) diff --git a/drivers/gpu/drm/radeon/rv740_dpm.c b/drivers/gpu/drm/radeon/rv740_dpm.c index 327d65a76e1f4..d57a3e1df8d63 100644 --- a/drivers/gpu/drm/radeon/rv740_dpm.c +++ b/drivers/gpu/drm/radeon/rv740_dpm.c @@ -25,11 +25,10 @@ #include "radeon.h" #include "rv740d.h" #include "r600_dpm.h" +#include "rv770.h" #include "rv770_dpm.h" #include "atom.h" -struct rv7xx_power_info *rv770_get_pi(struct radeon_device *rdev); - u32 rv740_get_decoded_reference_divider(u32 encoded_ref) { u32 ref = 0; diff --git a/drivers/gpu/drm/radeon/rv770.h b/drivers/gpu/drm/radeon/rv770.h index de831684c9926..cf234d59f0475 100644 --- a/drivers/gpu/drm/radeon/rv770.h +++ b/drivers/gpu/drm/radeon/rv770.h @@ -28,6 +28,11 @@ #ifndef __RADEON_RV770_H__ #define __RADEON_RV770_H__ +struct radeon_ps; + void rv770_set_clk_bypass_mode(struct radeon_device *rdev); +struct rv7xx_ps *rv770_get_ps(struct radeon_ps *rps); +struct rv7xx_power_info *rv770_get_pi(struct radeon_device *rdev); + #endif /* __RADEON_RV770_H__ */ diff --git a/drivers/gpu/drm/radeon/rv770_dpm.c b/drivers/gpu/drm/radeon/rv770_dpm.c index 4a0cf597c11c6..badd8ac6e038f 100644 --- a/drivers/gpu/drm/radeon/rv770_dpm.c +++ b/drivers/gpu/drm/radeon/rv770_dpm.c @@ -24,6 +24,7 @@ #include "radeon.h" #include "radeon_asic.h" +#include "rv770.h" #include "rv770d.h" #include "r600_dpm.h" #include "rv770_dpm.h" diff --git a/drivers/gpu/drm/radeon/si_dpm.c b/drivers/gpu/drm/radeon/si_dpm.c index d1c73e9db889a..a80a21447a76d 100644 --- a/drivers/gpu/drm/radeon/si_dpm.c +++ b/drivers/gpu/drm/radeon/si_dpm.c @@ -27,6 +27,7 @@ #include "atom.h" #include "r600_dpm.h" +#include "rv770.h" #include "radeon.h" #include "radeon_asic.h" #include "si_dpm.h" @@ -1717,7 +1718,6 @@ static const struct si_powertune_data powertune_data_hainan = true }; -struct rv7xx_power_info *rv770_get_pi(struct radeon_device *rdev); struct evergreen_power_info *evergreen_get_pi(struct radeon_device *rdev); struct ni_power_info *ni_get_pi(struct radeon_device *rdev); struct ni_ps *ni_get_ps(struct radeon_ps *rps); From patchwork Tue Nov 10 19:31:07 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 322880 Delivered-To: patch@linaro.org Received: by 2002:a05:6e02:5ce:0:0:0:0 with SMTP id l14csp500758ils; Tue, 10 Nov 2020 11:32:13 -0800 (PST) X-Google-Smtp-Source: ABdhPJxhdrBzA+SgaWXTaLv2cAiV0Iv+x1v7SuG5nVxcJgU3BL74D73MfcdYeF2oMWEnTQiPxXzV X-Received: by 2002:a17:902:c411:b029:d7:dd6e:60b4 with SMTP id k17-20020a170902c411b02900d7dd6e60b4mr11285224plk.66.1605036732974; Tue, 10 Nov 2020 11:32:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605036732; cv=none; d=google.com; s=arc-20160816; b=YOfkHaSpzWmVI05zsIBDbfZVGTTdC2UGyyjtjmAZp13uH/AGrQTgsf2IARIOkmR4Yt mvAIboJCKmEdyN4ym3+smIDAILIi6nmlFpW4EUxYelBz06S2rn27GPGvdBPzLKxt03T4 KUeZJheqiuNHxp3ENVG/ahwlXip1BZUxobSAfS1xPrakUOEwJQAlO+Ot+2XQEnSLFz18 xcaRmeDhPKt9hVqc15qWkwmrEjjqBmntbG+AyZngY39qbXnAF+hG2b8kglJcMAN0ab0s KmpSrsRDiJ1qPft/qmTsem3sk8uBpxbVcKVoJgT/mf72tJVt38xt3qriMsqClxRl682C 84AA== 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=BC/Wjww9zikRbIiaCG3cfBHpEwu74P10qv/dUNReNMo=; b=UrXwpSc3wsS3UNdq6JN+Gv/yhSHbLJxISm8HnpVoXamZilj8XWQb7vVIrUVu2oBfTW rhqYyJZKDs604JoCNQz4i5HmivQAGRTK5JQLyPfSErslkB0PI8XqoSLqs3fDDCJO/3NT Ccc56sARnipDMZBIchdR7RNKDEKK0xG0+OjjNxrMaoeD+dtjqayisGmmAErA0+YeFGun FYpU0GSl4vzMDKy7xFLPcTSME+c+sjPovjPQGWm9qoK6+gJEtR5nfihgwGlFWUh1RHhl 2SzUxOazswyHjo82zfgaw/IQHEVAKGETfh/YplySBL9ZNVgVE0DyngNoA4Wx1Q+XNNog alrw== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=CZrD24nh; 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 11si11619358pgt.99.2020.11.10.11.32.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 10 Nov 2020 11:32: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=CZrD24nh; 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 6D77389C59; Tue, 10 Nov 2020 19:32:02 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wr1-x443.google.com (mail-wr1-x443.google.com [IPv6:2a00:1450:4864:20::443]) by gabe.freedesktop.org (Postfix) with ESMTPS id C102389C0D for ; Tue, 10 Nov 2020 19:31:48 +0000 (UTC) Received: by mail-wr1-x443.google.com with SMTP id j7so6754708wrp.3 for ; Tue, 10 Nov 2020 11:31: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=4Sm/diM1ysLxo1VzfvufUrkgqFPpDL8/DuxdgOjGpqk=; b=CZrD24nhvG2iKoj4noUsAlrwucBSgxTDbkGLYlEEUgSDr2Zy+HeJpNOHnLGyxd2YyB ZJQ6UXdgUfIMAhCAJ024R0H2Way6kwLlIHcQePC+l7iMTF0CV6X8kZDDmPGuaemhUSp8 800pFOG3yycgu2nI36yUiLjHgtWG5tpiOGBqQpcARNijHSmCokrGz9nmDIu6zJ6tg/z5 FCRP6rRBQCoRr3UUGixrgmzUVA8rkV0jAqYjmFjNigFQNMg0VIghzCyxk1PB5/rtlmmL wo5Jr7Q/LM8kPqSrNKHMXufrbqKBkDSEpL7HRj0P0JoHjIVks/WOc6vhahHnS895KRw/ wI/w== 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=4Sm/diM1ysLxo1VzfvufUrkgqFPpDL8/DuxdgOjGpqk=; b=jK4suq+3i5bqniqbmz+FSdbCltjbIa8MbT8HseE0fIvpQQlaPGULODTUZMurzATE/m XQygvE5dZK9Ql6ihS2YdUoKvx4j4NNm+P21ZCGB47hX0HTWt8eVvX3Vn3Q3UR1DCi8Ki brfd+xBv0dVRQ/601zrMPR0ztXWvuUFBIci9eplrFySXs8TVqt+sIa8hXZr/noixThWV YslO5XywPkJhuwTjQ4JStanGNVAQ6bwE5JM+wbU4Y/pSDsogE56r84nAdFud4th0+J+t J3Zx8dLWLmhXQQIJr81OejKtOFxWQnH+KoEk/Z6Lo73CKPESAhK4Qpb/sG9cgIW/QSna J++g== X-Gm-Message-State: AOAM532Kz/TvPS3QPkFi6OHQ7BpU4PTHF4nRwrV78FU2fG2vawMPg6i5 a5xcQYdmrB+s0z58DUCfelB4TQ== X-Received: by 2002:a5d:46c6:: with SMTP id g6mr8139860wrs.170.1605036707394; Tue, 10 Nov 2020 11:31:47 -0800 (PST) Received: from dell.default ([91.110.221.139]) by smtp.gmail.com with ESMTPSA id 30sm17635335wrs.84.2020.11.10.11.31.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 10 Nov 2020 11:31:46 -0800 (PST) From: Lee Jones To: lee.jones@linaro.org Subject: [PATCH 25/30] drm/radeon/sumo_dpm: Move 'sumo_get_pi()'s prototype into shared header Date: Tue, 10 Nov 2020 19:31:07 +0000 Message-Id: <20201110193112.988999-26-lee.jones@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20201110193112.988999-1-lee.jones@linaro.org> References: <20201110193112.988999-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, amd-gfx@lists.freedesktop.org, dri-devel@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" Fixes the following W=1 kernel build warning(s): drivers/gpu/drm/radeon/sumo_dpm.c:81:25: warning: no previous prototype for ‘sumo_get_pi’ [-Wmissing-prototypes] 81 | struct sumo_power_info *sumo_get_pi(struct radeon_device *rdev) | ^~~~~~~~~~~ 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/radeon/sumo_dpm.h | 1 + drivers/gpu/drm/radeon/sumo_smc.c | 2 -- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/gpu/drm/radeon/sumo_dpm.h b/drivers/gpu/drm/radeon/sumo_dpm.h index f1651135a47ab..db29d37ae2703 100644 --- a/drivers/gpu/drm/radeon/sumo_dpm.h +++ b/drivers/gpu/drm/radeon/sumo_dpm.h @@ -207,6 +207,7 @@ u32 sumo_get_sleep_divider_from_id(u32 id); u32 sumo_get_sleep_divider_id_from_clock(struct radeon_device *rdev, u32 sclk, u32 min_sclk_in_sr); +struct sumo_power_info *sumo_get_pi(struct radeon_device *rdev); /* sumo_smc.c */ void sumo_initialize_m3_arb(struct radeon_device *rdev); diff --git a/drivers/gpu/drm/radeon/sumo_smc.c b/drivers/gpu/drm/radeon/sumo_smc.c index d781407057366..78d8716067318 100644 --- a/drivers/gpu/drm/radeon/sumo_smc.c +++ b/drivers/gpu/drm/radeon/sumo_smc.c @@ -30,8 +30,6 @@ #define SUMO_SMU_SERVICE_ROUTINE_ALTVDDNB_NOTIFY 27 #define SUMO_SMU_SERVICE_ROUTINE_GFX_SRV_ID_20 20 -struct sumo_power_info *sumo_get_pi(struct radeon_device *rdev); - static void sumo_send_msg_to_smu(struct radeon_device *rdev, u32 id) { u32 gfx_int_req; From patchwork Tue Nov 10 19:31:08 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 322881 Delivered-To: patch@linaro.org Received: by 2002:a05:6e02:5ce:0:0:0:0 with SMTP id l14csp500791ils; Tue, 10 Nov 2020 11:32:16 -0800 (PST) X-Google-Smtp-Source: ABdhPJzwZVWRIJWQw0ECEnT+QImTQhz2uVrcodbBrPEuPwCJF57v2L4uJ5yHtQZSXthltjLhSuHQ X-Received: by 2002:a17:90a:1992:: with SMTP id 18mr710541pji.67.1605036735930; Tue, 10 Nov 2020 11:32:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605036735; cv=none; d=google.com; s=arc-20160816; b=ZzKSBmjmOrxjeEX4tZIufBZt65CcJrjcTy6PmHAeOln+G/hhKCPzvbQF4AV78z2h6a Id9nRvqok0T493uoQ293NsgGDGM/VnuPHANYt2vmvDo0mEZuzG0+yNZkpnJefa1LX/8V 9AKqnKtB8YOLe9JIGqIznP0rzjc2KY+FPdn+8kROkClH7/Gnn3UBjub1pfh4P7SRmB4h da3UzEViWp5IvXg0XUGzQlunsekHeeTqyEX9iK67bxogyhJ2FlAgfneslSFt2w/ZeHlO LxY5MUyhuf/yfjP81Cmgljh78SowV+fvJxWlRmQ002jtUFd1I+1V2EgD7jgTSyNwfQV5 AJhQ== 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=bQScqeODawYLUcgT8gvyxSLPmWydgf8YV7nHlfzYAhc=; b=RGmkQeFwxankyhRfQZVpm7wg2vfAcftqFCGgksIUymI+0rgZneoYgVggCg89YZsHQG gna0HqX+BA2swA+ZCe5JURZl12tpQePFooYczAZEiQfYQOJOCAHDTtguHqhGLCoONWDs t7Ii3NXDjvV5tIqvw3r/IMBnFIjWf1BPx18SUddo/tyFhMD8AXqL4rtpZ1r2cYq+i6sa +egvwYKeE3z7eyq1i7y2P9eSP2jOnE0WfEGl3irEUL2zdAfJGnwr08hfLW8J/fT41RYo ZJtouTUWL4d9X5VWc7t/iJNIE5pvVuTF6ZYjarDOl0B8ON7nVveRrVIPhd+lf/TAn/my g4Ow== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=fvWFmwsb; 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 66si13095442pgi.68.2020.11.10.11.32.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 10 Nov 2020 11:32:15 -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=fvWFmwsb; 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 736BE89BD4; Tue, 10 Nov 2020 19:32:08 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wr1-x444.google.com (mail-wr1-x444.google.com [IPv6:2a00:1450:4864:20::444]) by gabe.freedesktop.org (Postfix) with ESMTPS id 0199889C17 for ; Tue, 10 Nov 2020 19:31:49 +0000 (UTC) Received: by mail-wr1-x444.google.com with SMTP id 23so14002902wrc.8 for ; Tue, 10 Nov 2020 11:31: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=uPrx+xhJSBB8cqNRTfRxpV861JL0F49FY7TxVtUc7KQ=; b=fvWFmwsbroPTBLuNSiqWL2C6ts7uBNUTAb85H5SQq/MGaMS1cangSJSSeVWp3XHAlm TSQnGisZL/NyszChhDltBHKvM3dyXcKX4vHlVYbByt+kOxb6EBSQp42dJY03Zam8JIPs QaOSrWVSI/8rL9nPM2sQ4O4ugLFkrQP9kKv78PsPcGbBsEn3GyQ/XWMy2LXergaa43Nx sBGNfZcE1U1Ip0vwO/MjqTFzwQEnKA0RhW3ZXRQigi9wnRgwVnzw11RhpsvhP0K+3ubm n/P+ilwrfzZiFMGnGZZzyqXTxW0Msd+N+e1W9SZsJJQJ8JHrgrCB8jRpRhMBvGuXZE9y j7oQ== 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=uPrx+xhJSBB8cqNRTfRxpV861JL0F49FY7TxVtUc7KQ=; b=FHHNpMi3vBMJLgEB9RtuL+h224R1I8zNvaT9kmLxgB1xZDxIGH4cBEcq6V082YWLQi GZQryqt+A+KaOgVzXpNAy2ryzmjLcAC4d7xVNgs82FH1XezOVol/pNPULuz8W84d3QKA XEql0NuUorPDUI+GAV/H5WLAit3LpJiq1VCt4Ho0CB6KRsvC+gtezpdLEL9pCOGSDp6l sx2RBkLV1LjiJqx5OWLXweFnrH6WbT/Eyoet1QSmchF/OP/omKj2RMTeNRLlWC3spBG0 qqNweLicuwoRgwQ8SICHcrDQC4GYfvlXd+0qE6pFoDeAWCVJldyJmm0Ug1Ri/RXzuLy/ GqRQ== X-Gm-Message-State: AOAM533LymaEbeW05F/ZF3vbuRWBARfMe65NrFB+ZJEo3mLg5t/r4AMo wjh4lsE5G52RFsfQCK6ls2X+oA== X-Received: by 2002:adf:f644:: with SMTP id x4mr26077443wrp.5.1605036708589; Tue, 10 Nov 2020 11:31:48 -0800 (PST) Received: from dell.default ([91.110.221.139]) by smtp.gmail.com with ESMTPSA id 30sm17635335wrs.84.2020.11.10.11.31.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 10 Nov 2020 11:31:47 -0800 (PST) From: Lee Jones To: lee.jones@linaro.org Subject: [PATCH 26/30] drm/radeon/ni_dpm: Move 'ni_get_{pi, ps}()'s into shared header Date: Tue, 10 Nov 2020 19:31:08 +0000 Message-Id: <20201110193112.988999-27-lee.jones@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20201110193112.988999-1-lee.jones@linaro.org> References: <20201110193112.988999-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, amd-gfx@lists.freedesktop.org, dri-devel@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" Fixes the following W=1 kernel build warning(s): drivers/gpu/drm/radeon/ni_dpm.c:727:23: warning: no previous prototype for ‘ni_get_pi’ [-Wmissing-prototypes] 727 | struct ni_power_info *ni_get_pi(struct radeon_device *rdev) | ^~~~~~~~~ drivers/gpu/drm/radeon/ni_dpm.c:734:15: warning: no previous prototype for ‘ni_get_ps’ [-Wmissing-prototypes] 734 | struct ni_ps *ni_get_ps(struct radeon_ps *rps) | ^~~~~~~~~ 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/radeon/ni_dpm.h | 3 +++ drivers/gpu/drm/radeon/si_dpm.c | 3 +-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/radeon/ni_dpm.h b/drivers/gpu/drm/radeon/ni_dpm.h index 6bbee9180909e..74e3019369063 100644 --- a/drivers/gpu/drm/radeon/ni_dpm.h +++ b/drivers/gpu/drm/radeon/ni_dpm.h @@ -247,4 +247,7 @@ void ni_set_uvd_clock_after_set_eng_clock(struct radeon_device *rdev, bool ni_dpm_vblank_too_short(struct radeon_device *rdev); +struct ni_power_info *ni_get_pi(struct radeon_device *rdev); +struct ni_ps *ni_get_ps(struct radeon_ps *rps); + #endif diff --git a/drivers/gpu/drm/radeon/si_dpm.c b/drivers/gpu/drm/radeon/si_dpm.c index a80a21447a76d..c68ab2fb1ac23 100644 --- a/drivers/gpu/drm/radeon/si_dpm.c +++ b/drivers/gpu/drm/radeon/si_dpm.c @@ -30,6 +30,7 @@ #include "rv770.h" #include "radeon.h" #include "radeon_asic.h" +#include "ni_dpm.h" #include "si_dpm.h" #include "sid.h" @@ -1719,8 +1720,6 @@ static const struct si_powertune_data powertune_data_hainan = }; struct evergreen_power_info *evergreen_get_pi(struct radeon_device *rdev); -struct ni_power_info *ni_get_pi(struct radeon_device *rdev); -struct ni_ps *ni_get_ps(struct radeon_ps *rps); extern int si_mc_load_microcode(struct radeon_device *rdev); extern void vce_v1_0_enable_mgcg(struct radeon_device *rdev, bool enable); From patchwork Tue Nov 10 19:31:09 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 322879 Delivered-To: patch@linaro.org Received: by 2002:a05:6e02:5ce:0:0:0:0 with SMTP id l14csp500740ils; Tue, 10 Nov 2020 11:32:11 -0800 (PST) X-Google-Smtp-Source: ABdhPJwiqMkrk3Tz2aPdPNDdJQExXe80UmsDKSJAte3XGGnFgYS0lHXOqEpjy2yyewZEul+iIvuE X-Received: by 2002:aa7:97a7:0:b029:18b:cf28:9bbe with SMTP id d7-20020aa797a70000b029018bcf289bbemr15412994pfq.45.1605036731843; Tue, 10 Nov 2020 11:32:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605036731; cv=none; d=google.com; s=arc-20160816; b=JDZ2Q3nkb+f9KcU1ru+0Ro5wxUU/52cwTWftCk753huJ4LKpRmrCbwFGjDHWlcxC3f aFRDAO5+83xsUrrHDN8EcFnOSAZS69kd/gAz+eFdyMMy9uS158j/pCo0RKNY96ib+PZ6 q3/nbxRu1mqJjUjHMUKRW4aC7VVlDbSOJskuRuARHw6jsieE0hUV8g/1Z9TmxJhQsdGt Knd+N3J/rtd7Ovp9B5iozGWlLBbAMRD2442fDFVWf8w+TTKq1K/Pl4hjHqBL2yyJzYhq yVPffDaAOcUFOWIRtYMsPeqVFAD1qYMGD5M67rhLCDf2USllT/rioaX0uyrphOeigJ/Y S3kQ== 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=exUzCYeuM2/IPQJ76z4J4mZZvF5RbIOnmAhvRDCuSOo=; b=GfHC03oyIvNTNEaU3JJv24/IatZKqH3qkxUaqXg2EvEpxrhuns8x0H000h9J/7JXlW Xcv4QrfTsVoxtbOxugiX/E5btNKGF/O7Dhs3lgvZkGQp5EZvrbfdHkgj6KUdOmQuK+ex dlFGoqaDINA0nT0tfnP7O9n2G4mWeCVnDoxn6t6eFVzOPiaCLTjiXFj0+vbxYg+RBy0g YPlDDGU+CIBvcqtmKDPK7jc0NMxmJvYKe8NcLw6ZI6bX73aRQUC4q1Ldcs9F+JIphSzM Myw6V1bBsnGtlMKmrc0gh8xMFeckiwtz9xWkp+ucwa2xFPK1Rn0PHz+QFBKdxgSQuG2f JlBw== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b="ZJw8ND/9"; 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 101si3181602pld.216.2020.11.10.11.32.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 10 Nov 2020 11:32:11 -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="ZJw8ND/9"; 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 5410589C6A; Tue, 10 Nov 2020 19:32:02 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wr1-x443.google.com (mail-wr1-x443.google.com [IPv6:2a00:1450:4864:20::443]) by gabe.freedesktop.org (Postfix) with ESMTPS id 47FE989C28 for ; Tue, 10 Nov 2020 19:31:51 +0000 (UTC) Received: by mail-wr1-x443.google.com with SMTP id l1so9605965wrb.9 for ; Tue, 10 Nov 2020 11:31: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=vvESdKcgA/L+8nfzHIhJWgogEA2sv/augj021aQ6Bjc=; b=ZJw8ND/9bYHNBVXDmU7GEhDFPjuFQlU5+Kc7N6oNwR9ygFDK9h6108LYish92o3sF/ 9g/r9hgfo91h9+hm6363YzrOl6p7qDErHiA41H2m/SyEkFBIK1eKvQpRgYJ+PMOa3sc4 cdV6C3R1MYOBMBoVWp5kuuVLyYMJAJaY7SZZPHrfzPPIWkia89ujnAdqCTK4SsUUqAgu ZEbs4WX1DiUH5nLcYf15NZRwanNF/NQCDt5HTmkWETCiTwwlnRWVRlhHZsJnb+vDopha jJJ8xIGlSLXcCgmuSRPC9e+9DvRgY4Y9vy1xLqk/bA4KjtMtC3+nHdawMzpnAPhx1QdJ C/8w== 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=vvESdKcgA/L+8nfzHIhJWgogEA2sv/augj021aQ6Bjc=; b=AgMLXorVEZhAKQW5paMHAwCMIiwSwkZZ8Ly26/dUp9egS4x4Krub3DWprC1HUZ5Iwe JRWJXy+uDBR0a8E9t3FZzPhvxp+nd0yHdx23F1c+n4a7bYhqWC2p+kqX2imTKBAtypVB 1L0vqyfX2W3s2C5G5Ap3qPtCSIAW/eRs8xFXOkNLivFygfwDXh/Y8p9Mjdq9/LXwowgI oqHUDp0TeovzfCge2g61WF7fMtWnZOntqds/Wi7dqv0CVZnRh+9iKOAfk1xZ2LrWuKR/ URuJLZavElwJMfCUcsNeC12zFi5c218LRmf/TVa/+IM+8swfy4Y4arpJGNBO42Ulcrdi psSg== X-Gm-Message-State: AOAM532TlpXeDFU4uqZF2cnNuxjNISAHc82uy6Q0LNKgtCoh3j86OhfJ iQhf7Hv0/+GFTdQIbbft3tbIcyLq7TtglKln X-Received: by 2002:adf:c3c8:: with SMTP id d8mr14030198wrg.366.1605036709871; Tue, 10 Nov 2020 11:31:49 -0800 (PST) Received: from dell.default ([91.110.221.139]) by smtp.gmail.com with ESMTPSA id 30sm17635335wrs.84.2020.11.10.11.31.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 10 Nov 2020 11:31:49 -0800 (PST) From: Lee Jones To: lee.jones@linaro.org Subject: [PATCH 27/30] drm/radeon/ni: Remove set but unused variable 'mc_shared_chmap' Date: Tue, 10 Nov 2020 19:31:09 +0000 Message-Id: <20201110193112.988999-28-lee.jones@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20201110193112.988999-1-lee.jones@linaro.org> References: <20201110193112.988999-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, amd-gfx@lists.freedesktop.org, dri-devel@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" Fixes the following W=1 kernel build warning(s): drivers/gpu/drm/radeon/ni.c: In function ‘cayman_gpu_init’: drivers/gpu/drm/radeon/ni.c:880:6: warning: variable ‘mc_shared_chmap’ set but not used [-Wunused-but-set-variable] 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/radeon/ni.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/radeon/ni.c b/drivers/gpu/drm/radeon/ni.c index 12dd082069649..1c9030a4631b8 100644 --- a/drivers/gpu/drm/radeon/ni.c +++ b/drivers/gpu/drm/radeon/ni.c @@ -877,7 +877,7 @@ int tn_get_temp(struct radeon_device *rdev) static void cayman_gpu_init(struct radeon_device *rdev) { u32 gb_addr_config = 0; - u32 mc_shared_chmap, mc_arb_ramcfg; + u32 mc_arb_ramcfg; u32 cgts_tcc_disable; u32 sx_debug_1; u32 smx_dc_ctl0; @@ -1002,7 +1002,7 @@ static void cayman_gpu_init(struct radeon_device *rdev) evergreen_fix_pci_max_read_req_size(rdev); - mc_shared_chmap = RREG32(MC_SHARED_CHMAP); + RREG32(MC_SHARED_CHMAP); mc_arb_ramcfg = RREG32(MC_ARB_RAMCFG); tmp = (mc_arb_ramcfg & NOOFCOLS_MASK) >> NOOFCOLS_SHIFT; From patchwork Tue Nov 10 19:31:10 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 322882 Delivered-To: patch@linaro.org Received: by 2002:a05:6e02:5ce:0:0:0:0 with SMTP id l14csp500809ils; Tue, 10 Nov 2020 11:32:17 -0800 (PST) X-Google-Smtp-Source: ABdhPJzs+Pt/RXwK0IakGlLEgerY0143Vwl8TYDUfLjexWdS2M6sygR8HRrTMiuIK6hLdfrsrnaL X-Received: by 2002:a63:c644:: with SMTP id x4mr18797720pgg.421.1605036737244; Tue, 10 Nov 2020 11:32:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605036737; cv=none; d=google.com; s=arc-20160816; b=SIlwyPxpBMZZI8ggXLm/eHbuej0A0fkpBTHuRtlaCEapfcy+HWPbm6VJBVGurJEGNc bBPoKgw4xc42mX7pNecMz/8I42e9kBafZBFc2NlDc0jwlbIHCp9+tqHKGM5jP84eJvEQ RbjUbqwdpiHOCgExhorunvqSTHmENJyOlzGuBt3CoQtiSNUI5L7N/IvVJHI/s14y9yuR tbFZ50et3OCt6OpTudCWflp4NbMpTPqA+1MGxLF89ksPaT+/TwpwICgQsrRu/3+BWrFH zuNVKWYB7Qq3pLRCyJd8+GpkVFOHRlk3jFxVHl06LU0xyNEC93YgzIlex37S17xn6kdl bwNw== 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=LfmLFo2NsTWN7yalG1nMNqwrAIJV98aVEB0EsyztJL8=; b=H1ELofMF/05WBc8tgyZWnnkS+4UBoJQumJJeE6DuMviS0r4Qccdz3Vu7eoNBwGHGGv 9duiKualAvPy+zJfF8T/vvHOPpl12ALIC+ieBRgnPgypN+AdcGdlgQeUx4/K5sN7zzUw y9NNPEtAnajbsDJuHwWyLcgy67H/rFA8ofS5FtlJ53TYDhlR74huCYxCSO/L9lbKZbJ0 BmLNQUtxQv9g/cZ8qftkol3b3elUOhZgOdZapHSUk820en7XVdxNxYR+IjwruoUBO2S2 ctFM+yV/PoRJ+1O3rhgq0GEULYoxx4nNOg9kTCklNCgYW1frQIX7k7YglAyFUbu4/QNj VhXA== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=s94k4AAR; 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 f13si12489156plj.104.2020.11.10.11.32.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 10 Nov 2020 11:32:17 -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=s94k4AAR; 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 78E3489BEC; Tue, 10 Nov 2020 19:32:08 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wr1-x444.google.com (mail-wr1-x444.google.com [IPv6:2a00:1450:4864:20::444]) by gabe.freedesktop.org (Postfix) with ESMTPS id B04B889C2C for ; Tue, 10 Nov 2020 19:31:52 +0000 (UTC) Received: by mail-wr1-x444.google.com with SMTP id b8so14011142wrn.0 for ; Tue, 10 Nov 2020 11:31:52 -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=ty8003+O/JEDF7pP5AXz413pW2AvyhRU/ye41tnDsWk=; b=s94k4AARJMH88KYy14FAytQBhgRQtu3mTNFlcsB9Kqq5TY/VRHY5hI6N3PgVumpWdO im8vg1vZ+ZGC4yz6nlyQVcIYavBOHzzaQ65IxiTxlo/sCRUAeiG0edibCz2eH2Sw5kcl +bTTJZsFaKgNRG8vnbHC3bbw1UkR9F5edeItMAxcHDr+m1Ztq6tSrnR38WlZWCfzw3j5 NUnTWNVeu2Y3zuFuQthNbDIC9JSOTFNtR2T/9D3K5HYaluTauVShQqzHnTC5+zf/pinF U3rUsgYEZRkTe4oHAdvU4xBCIHJTQITkiYwAbNvLwNkPoFU+2A5y8hDQDVcOCTBVEcWf fHSw== 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=ty8003+O/JEDF7pP5AXz413pW2AvyhRU/ye41tnDsWk=; b=aXXtEuJf2qV1+eTxhspRtJN0AopPrF4bbXsdqCVqHMGAvwJ1nT4g4St5r5qHiDtWAF gb3lhBtBrncqxhIFOdDGkRaqajFhaMepGyQszUovI6UXWKqpQ2VE2Nyoaso7oqq0nICE cQP7PeVsnCNY2gPIYKbUZx0I8i9Nnc6QujCqc/2oINaBJe0ttR0V+V6Z36aRyj+Q7Ee4 WU2T7gklwyv6+846GkK4bn6bwwRnNdkBIu9Qw+mPbyevDu9f+so3SwGVYtwrH0yRRs7k z8LoUN2vkv8gjtqkCfKcfqPAhm+7TGvEJ7nZaKXDl4B4DCJjxKExjwZx6iEas6qJSeF0 CZ9g== X-Gm-Message-State: AOAM532JEXwJl0ybmgumKXLCtirOr4eafhSBO3W517c6Qt0AmH4SV5Ss rlD50Xsaidf1Wyz39Z/4GYVlUw== X-Received: by 2002:a5d:62c3:: with SMTP id o3mr13434790wrv.300.1605036711258; Tue, 10 Nov 2020 11:31:51 -0800 (PST) Received: from dell.default ([91.110.221.139]) by smtp.gmail.com with ESMTPSA id 30sm17635335wrs.84.2020.11.10.11.31.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 10 Nov 2020 11:31:50 -0800 (PST) From: Lee Jones To: lee.jones@linaro.org Subject: [PATCH 28/30] drm/radeon/evergreen: Move 'cayman_*()'s prototypes to shared header Date: Tue, 10 Nov 2020 19:31:10 +0000 Message-Id: <20201110193112.988999-29-lee.jones@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20201110193112.988999-1-lee.jones@linaro.org> References: <20201110193112.988999-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, amd-gfx@lists.freedesktop.org, dri-devel@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" Fixes the following W=1 kernel build warning(s): drivers/gpu/drm/radeon/ni.c:1378:6: warning: no previous prototype for ‘cayman_cp_int_cntl_setup’ [-Wmissing-prototypes] 1378 | void cayman_cp_int_cntl_setup(struct radeon_device *rdev, | ^~~~~~~~~~~~~~~~~~~~~~~~ drivers/gpu/drm/radeon/ni.c:1732:5: warning: no previous prototype for ‘cayman_gpu_check_soft_reset’ [-Wmissing-prototypes] 1732 | u32 cayman_gpu_check_soft_reset(struct radeon_device *rdev) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ 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/radeon/evergreen.c | 5 +---- drivers/gpu/drm/radeon/ni.c | 1 + drivers/gpu/drm/radeon/ni.h | 36 ++++++++++++++++++++++++++++++ 3 files changed, 38 insertions(+), 4 deletions(-) create mode 100644 drivers/gpu/drm/radeon/ni.h diff --git a/drivers/gpu/drm/radeon/evergreen.c b/drivers/gpu/drm/radeon/evergreen.c index efb19c445e48f..28830f4ef95e3 100644 --- a/drivers/gpu/drm/radeon/evergreen.c +++ b/drivers/gpu/drm/radeon/evergreen.c @@ -31,6 +31,7 @@ #include "atom.h" #include "avivod.h" +#include "ni.h" #include "rv770.h" #include "evergreen.h" #include "evergreen_blit_shaders.h" @@ -215,10 +216,6 @@ static void evergreen_gpu_init(struct radeon_device *rdev); void evergreen_fini(struct radeon_device *rdev); void evergreen_pcie_gen2_enable(struct radeon_device *rdev); void evergreen_program_aspm(struct radeon_device *rdev); -extern void cayman_cp_int_cntl_setup(struct radeon_device *rdev, - int ring, u32 cp_int_cntl); -extern void cayman_vm_decode_fault(struct radeon_device *rdev, - u32 status, u32 addr); void cik_init_cp_pg_table(struct radeon_device *rdev); extern u32 si_get_csb_size(struct radeon_device *rdev); diff --git a/drivers/gpu/drm/radeon/ni.c b/drivers/gpu/drm/radeon/ni.c index 1c9030a4631b8..ab7bd30802176 100644 --- a/drivers/gpu/drm/radeon/ni.c +++ b/drivers/gpu/drm/radeon/ni.c @@ -33,6 +33,7 @@ #include "cayman_blit_shaders.h" #include "clearstate_cayman.h" #include "evergreen.h" +#include "ni.h" #include "ni_reg.h" #include "nid.h" #include "radeon.h" diff --git a/drivers/gpu/drm/radeon/ni.h b/drivers/gpu/drm/radeon/ni.h new file mode 100644 index 0000000000000..bb03ac702b1cc --- /dev/null +++ b/drivers/gpu/drm/radeon/ni.h @@ -0,0 +1,36 @@ +/* ni.h -- Private header for radeon driver -*- linux-c -*- + * + * Copyright 1999 Precision Insight, Inc., Cedar Park, Texas. + * Copyright 2000 VA Linux Systems, Inc., Fremont, California. + * All rights reserved. + * + * Permission is hereby granted, free of charge, to any person obtaining a + * copy of this software and associated documentation files (the "Software"), + * to deal in the Software without restriction, including without limitation + * the rights to use, copy, modify, merge, publish, distribute, sublicense, + * and/or sell copies of the Software, and to permit persons to whom the + * Software is furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice (including the next + * paragraph) shall be included in all copies or substantial portions of the + * Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL + * PRECISION INSIGHT AND/OR ITS SUPPLIERS BE LIABLE FOR ANY CLAIM, DAMAGES OR + * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, + * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER + * DEALINGS IN THE SOFTWARE. + * + */ + +#ifndef __NI_H__ +#define __NI_H__ + +void cayman_cp_int_cntl_setup(struct radeon_device *rdev, + int ring, u32 cp_int_cntl); +void cayman_vm_decode_fault(struct radeon_device *rdev, + u32 status, u32 addr); + +#endif /* __NI_H__ */