aboutsummaryrefslogtreecommitdiffstats
path: root/common/recipes-kernel/linux/linux-yocto-4.14.71/4858-drm-amd-Remove-errors-from-sphinx-documentation.patch
diff options
context:
space:
mode:
Diffstat (limited to 'common/recipes-kernel/linux/linux-yocto-4.14.71/4858-drm-amd-Remove-errors-from-sphinx-documentation.patch')
-rw-r--r--common/recipes-kernel/linux/linux-yocto-4.14.71/4858-drm-amd-Remove-errors-from-sphinx-documentation.patch125
1 files changed, 125 insertions, 0 deletions
diff --git a/common/recipes-kernel/linux/linux-yocto-4.14.71/4858-drm-amd-Remove-errors-from-sphinx-documentation.patch b/common/recipes-kernel/linux/linux-yocto-4.14.71/4858-drm-amd-Remove-errors-from-sphinx-documentation.patch
new file mode 100644
index 00000000..f58870cf
--- /dev/null
+++ b/common/recipes-kernel/linux/linux-yocto-4.14.71/4858-drm-amd-Remove-errors-from-sphinx-documentation.patch
@@ -0,0 +1,125 @@
+From 80b6289c7db5aa198e09c0aedaf4cb0b205181d1 Mon Sep 17 00:00:00 2001
+From: Darren Powell <darren.powell@amd.com>
+Date: Mon, 25 Jun 2018 19:04:03 -0400
+Subject: [PATCH 4858/5725] drm/amd: Remove errors from sphinx documentation
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+Eliminating the warnings produced by sphinx when processing the sphinx comments in
+ amdgpu_device.c & amdgpu_mn.c
+
+Signed-off-by: Darren Powell <darren.powell@amd.com>
+Reviewed-by: Michel Dänzer <michel.daenzer@amd.com>
+Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
+---
+ drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 20 ++++++++++++--------
+ drivers/gpu/drm/amd/amdgpu/amdgpu_mn.c | 5 +++--
+ 2 files changed, 15 insertions(+), 10 deletions(-)
+
+diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
+index 88c3879..2ffb27c 100644
+--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
++++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
+@@ -1126,7 +1126,7 @@ static const struct vga_switcheroo_client_ops amdgpu_switcheroo_ops = {
+ /**
+ * amdgpu_device_ip_set_clockgating_state - set the CG state
+ *
+- * @adev: amdgpu_device pointer
++ * @dev: amdgpu_device pointer
+ * @block_type: Type of hardware IP (SMU, GFX, UVD, etc.)
+ * @state: clockgating state (gate or ungate)
+ *
+@@ -1160,7 +1160,7 @@ int amdgpu_device_ip_set_clockgating_state(void *dev,
+ /**
+ * amdgpu_device_ip_set_powergating_state - set the PG state
+ *
+- * @adev: amdgpu_device pointer
++ * @dev: amdgpu_device pointer
+ * @block_type: Type of hardware IP (SMU, GFX, UVD, etc.)
+ * @state: powergating state (gate or ungate)
+ *
+@@ -1271,7 +1271,7 @@ bool amdgpu_device_ip_is_idle(struct amdgpu_device *adev,
+ * amdgpu_device_ip_get_ip_block - get a hw IP pointer
+ *
+ * @adev: amdgpu_device pointer
+- * @block_type: Type of hardware IP (SMU, GFX, UVD, etc.)
++ * @type: Type of hardware IP (SMU, GFX, UVD, etc.)
+ *
+ * Returns a pointer to the hardware IP block structure
+ * if it exists for the asic, otherwise NULL.
+@@ -2278,7 +2278,7 @@ bool amdgpu_device_has_dc_support(struct amdgpu_device *adev)
+ * amdgpu_device_init - initialize the driver
+ *
+ * @adev: amdgpu_device pointer
+- * @pdev: drm dev pointer
++ * @ddev: drm dev pointer
+ * @pdev: pci dev pointer
+ * @flags: driver flags
+ *
+@@ -2654,8 +2654,9 @@ void amdgpu_device_fini(struct amdgpu_device *adev)
+ /**
+ * amdgpu_device_suspend - initiate device suspend
+ *
+- * @pdev: drm dev pointer
+- * @state: suspend state
++ * @dev: drm dev pointer
++ * @suspend: suspend state
++ * @fbcon : notify the fbdev of suspend
+ *
+ * Puts the hw in the suspend state (all asics).
+ * Returns 0 for success or an error on failure.
+@@ -2753,7 +2754,9 @@ int amdgpu_device_suspend(struct drm_device *dev, bool suspend, bool fbcon)
+ /**
+ * amdgpu_device_resume - initiate device resume
+ *
+- * @pdev: drm dev pointer
++ * @dev: drm dev pointer
++ * @resume: resume state
++ * @fbcon : notify the fbdev of resume
+ *
+ * Bring the hw back to operating state (all asics).
+ * Returns 0 for success or an error on failure.
+@@ -3224,6 +3227,7 @@ static int amdgpu_device_reset(struct amdgpu_device *adev)
+ * amdgpu_device_reset_sriov - reset ASIC for SR-IOV vf
+ *
+ * @adev: amdgpu device pointer
++ * @from_hypervisor: request from hypervisor
+ *
+ * do VF FLR and reinitialize Asic
+ * return 0 means successed otherwise failed
+@@ -3274,7 +3278,7 @@ static int amdgpu_device_reset_sriov(struct amdgpu_device *adev,
+ *
+ * @adev: amdgpu device pointer
+ * @job: which job trigger hang
+- * @force forces reset regardless of amdgpu_gpu_recovery
++ * @force: forces reset regardless of amdgpu_gpu_recovery
+ *
+ * Attempt to reset the GPU if it has hung (all asics).
+ * Returns 0 for success or an error on failure.
+diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_mn.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_mn.c
+index 2f3fb4f..6b53a88 100644
+--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_mn.c
++++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_mn.c
+@@ -58,7 +58,8 @@
+ *
+ * @adev: amdgpu device pointer
+ * @mm: process address space
+- * @mn: MMU notifier structur
++ * @mn: MMU notifier structure
++ * @type: type of MMU notifier
+ * @work: destruction work item
+ * @node: hash table node to find structure by adev and mn
+ * @lock: rw semaphore protecting the notifier nodes
+@@ -294,7 +295,7 @@ static void amdgpu_mn_invalidate_range_end_gfx(struct mmu_notifier *mn,
+ * amdgpu_mn_invalidate_range_start_hsa - callback to notify about mm change
+ *
+ * @mn: our notifier
+- * @mn: the mm this callback is about
++ * @mm: the mm this callback is about
+ * @start: start of updated range
+ * @end: end of updated range
+ *
+--
+2.7.4
+