<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<p style="font-family:Arial;font-size:10pt;color:#0000FF;margin:5pt;" align="Left">
[AMD Official Use Only]<br>
</p>
<br>
<div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);">
I sent all the patches to dr-devel. I think there is an issue with our email server. Thunderbird is asking for a password every few minutes.</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);">
<a href="https://patchwork.freedesktop.org/series/95603/" id="LPlnk631321">https://patchwork.freedesktop.org/series/95603/</a><br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);">
Nirmoy</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);">
<span style="margin: 0px; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);">[sending this from my browser]</span><br>
</div>
<div id="appendonsend"></div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> Koenig, Christian <Christian.Koenig@amd.com><br>
<b>Sent:</b> Friday, October 8, 2021 12:23 PM<br>
<b>To:</b> Das, Nirmoy <Nirmoy.Das@amd.com>; dri-devel@lists.freedesktop.org <dri-devel@lists.freedesktop.org><br>
<b>Cc:</b> intel-gfx@lists.freedesktop.org <intel-gfx@lists.freedesktop.org>; Deucher, Alexander <Alexander.Deucher@amd.com>; Pan, Xinhui <Xinhui.Pan@amd.com><br>
<b>Subject:</b> Re: [PATCH 3/5] drm/radeon: check dri root before debugfs init</font>
<div> </div>
</div>
<div class="BodyFragment"><font size="2"><span style="font-size:11pt;">
<div class="PlainText">Am 08.10.21 um 11:17 schrieb Nirmoy Das:<br>
> Return early if dri minor root dentry is NULL.<br>
><br>
> CC: Alex Deucher <alexander.deucher@amd.com><br>
> CC: "Christian König" <christian.koenig@amd.com><br>
> CC: "Pan, Xinhui" <Xinhui.Pan@amd.com><br>
><br>
> Signed-off-by: Nirmoy Das <nirmoy.das@amd.com><br>
<br>
Acked-by: Christian König <christian.koenig@amd.com><br>
<br>
Where are the other patches from the series?<br>
<br>
Thanks,<br>
Christian.<br>
<br>
> ---<br>
> drivers/gpu/drm/radeon/r100.c | 9 +++++++++<br>
> drivers/gpu/drm/radeon/r300.c | 3 +++<br>
> drivers/gpu/drm/radeon/r420.c | 3 +++<br>
> drivers/gpu/drm/radeon/r600.c | 3 +++<br>
> drivers/gpu/drm/radeon/radeon_dp_mst.c | 3 +++<br>
> drivers/gpu/drm/radeon/radeon_fence.c | 3 +++<br>
> drivers/gpu/drm/radeon/radeon_gem.c | 3 +++<br>
> drivers/gpu/drm/radeon/radeon_ib.c | 3 +++<br>
> drivers/gpu/drm/radeon/radeon_pm.c | 5 ++++-<br>
> drivers/gpu/drm/radeon/radeon_ring.c | 3 +++<br>
> drivers/gpu/drm/radeon/radeon_ttm.c | 3 +++<br>
> drivers/gpu/drm/radeon/rs400.c | 3 +++<br>
> drivers/gpu/drm/radeon/rv515.c | 3 +++<br>
> 13 files changed, 46 insertions(+), 1 deletion(-)<br>
><br>
> diff --git a/drivers/gpu/drm/radeon/r100.c b/drivers/gpu/drm/radeon/r100.c<br>
> index 2dd85ba1faa2..ae6c95b34013 100644<br>
> --- a/drivers/gpu/drm/radeon/r100.c<br>
> +++ b/drivers/gpu/drm/radeon/r100.c<br>
> @@ -3059,6 +3059,9 @@ void r100_debugfs_rbbm_init(struct radeon_device *rdev)<br>
> #if defined(CONFIG_DEBUG_FS)<br>
> struct dentry *root = rdev->ddev->primary->debugfs_root;<br>
><br>
> + if (!root)<br>
> + return;<br>
> +<br>
> debugfs_create_file("r100_rbbm_info", 0444, root, rdev,<br>
> &r100_debugfs_rbbm_info_fops);<br>
> #endif<br>
> @@ -3069,6 +3072,9 @@ void r100_debugfs_cp_init(struct radeon_device *rdev)<br>
> #if defined(CONFIG_DEBUG_FS)<br>
> struct dentry *root = rdev->ddev->primary->debugfs_root;<br>
><br>
> + if (!root)<br>
> + return;<br>
> +<br>
> debugfs_create_file("r100_cp_ring_info", 0444, root, rdev,<br>
> &r100_debugfs_cp_ring_info_fops);<br>
> debugfs_create_file("r100_cp_csq_fifo", 0444, root, rdev,<br>
> @@ -3081,6 +3087,9 @@ void r100_debugfs_mc_info_init(struct radeon_device *rdev)<br>
> #if defined(CONFIG_DEBUG_FS)<br>
> struct dentry *root = rdev->ddev->primary->debugfs_root;<br>
><br>
> + if (!root)<br>
> + return;<br>
> +<br>
> debugfs_create_file("r100_mc_info", 0444, root, rdev,<br>
> &r100_debugfs_mc_info_fops);<br>
> #endif<br>
> diff --git a/drivers/gpu/drm/radeon/r300.c b/drivers/gpu/drm/radeon/r300.c<br>
> index 621ff174dff3..b22969e2394f 100644<br>
> --- a/drivers/gpu/drm/radeon/r300.c<br>
> +++ b/drivers/gpu/drm/radeon/r300.c<br>
> @@ -618,6 +618,9 @@ static void rv370_debugfs_pcie_gart_info_init(struct radeon_device *rdev)<br>
> #if defined(CONFIG_DEBUG_FS)<br>
> struct dentry *root = rdev->ddev->primary->debugfs_root;<br>
><br>
> + if (!root)<br>
> + return;<br>
> +<br>
> debugfs_create_file("rv370_pcie_gart_info", 0444, root, rdev,<br>
> &rv370_debugfs_pcie_gart_info_fops);<br>
> #endif<br>
> diff --git a/drivers/gpu/drm/radeon/r420.c b/drivers/gpu/drm/radeon/r420.c<br>
> index 7e6320e8c6a0..cdb4ac3e346b 100644<br>
> --- a/drivers/gpu/drm/radeon/r420.c<br>
> +++ b/drivers/gpu/drm/radeon/r420.c<br>
> @@ -494,6 +494,9 @@ void r420_debugfs_pipes_info_init(struct radeon_device *rdev)<br>
> #if defined(CONFIG_DEBUG_FS)<br>
> struct dentry *root = rdev->ddev->primary->debugfs_root;<br>
><br>
> + if (!root)<br>
> + return;<br>
> +<br>
> debugfs_create_file("r420_pipes_info", 0444, root, rdev,<br>
> &r420_debugfs_pipes_info_fops);<br>
> #endif<br>
> diff --git a/drivers/gpu/drm/radeon/r600.c b/drivers/gpu/drm/radeon/r600.c<br>
> index ca3fcae2adb5..d8f525cf0c3b 100644<br>
> --- a/drivers/gpu/drm/radeon/r600.c<br>
> +++ b/drivers/gpu/drm/radeon/r600.c<br>
> @@ -4360,6 +4360,9 @@ static void r600_debugfs_mc_info_init(struct radeon_device *rdev)<br>
> #if defined(CONFIG_DEBUG_FS)<br>
> struct dentry *root = rdev->ddev->primary->debugfs_root;<br>
><br>
> + if (!root)<br>
> + return;<br>
> +<br>
> debugfs_create_file("r600_mc_info", 0444, root, rdev,<br>
> &r600_debugfs_mc_info_fops);<br>
><br>
> diff --git a/drivers/gpu/drm/radeon/radeon_dp_mst.c b/drivers/gpu/drm/radeon/radeon_dp_mst.c<br>
> index ec867fa880a4..cf06da89bb7c 100644<br>
> --- a/drivers/gpu/drm/radeon/radeon_dp_mst.c<br>
> +++ b/drivers/gpu/drm/radeon/radeon_dp_mst.c<br>
> @@ -771,6 +771,9 @@ void radeon_mst_debugfs_init(struct radeon_device *rdev)<br>
> #if defined(CONFIG_DEBUG_FS)<br>
> struct dentry *root = rdev->ddev->primary->debugfs_root;<br>
><br>
> + if (!root)<br>
> + return;<br>
> +<br>
> debugfs_create_file("radeon_mst_info", 0444, root, rdev,<br>
> &radeon_debugfs_mst_info_fops);<br>
><br>
> diff --git a/drivers/gpu/drm/radeon/radeon_fence.c b/drivers/gpu/drm/radeon/radeon_fence.c<br>
> index 73e3117420bf..11f30349de46 100644<br>
> --- a/drivers/gpu/drm/radeon/radeon_fence.c<br>
> +++ b/drivers/gpu/drm/radeon/radeon_fence.c<br>
> @@ -1006,6 +1006,9 @@ void radeon_debugfs_fence_init(struct radeon_device *rdev)<br>
> #if defined(CONFIG_DEBUG_FS)<br>
> struct dentry *root = rdev->ddev->primary->debugfs_root;<br>
><br>
> + if (!root)<br>
> + return;<br>
> +<br>
> debugfs_create_file("radeon_gpu_reset", 0444, root, rdev,<br>
> &radeon_debugfs_gpu_reset_fops);<br>
> debugfs_create_file("radeon_fence_info", 0444, root, rdev,<br>
> diff --git a/drivers/gpu/drm/radeon/radeon_gem.c b/drivers/gpu/drm/radeon/radeon_gem.c<br>
> index 458f92a70887..e6df1451af37 100644<br>
> --- a/drivers/gpu/drm/radeon/radeon_gem.c<br>
> +++ b/drivers/gpu/drm/radeon/radeon_gem.c<br>
> @@ -890,6 +890,9 @@ void radeon_gem_debugfs_init(struct radeon_device *rdev)<br>
> #if defined(CONFIG_DEBUG_FS)<br>
> struct dentry *root = rdev->ddev->primary->debugfs_root;<br>
><br>
> + if (!root)<br>
> + return;<br>
> +<br>
> debugfs_create_file("radeon_gem_info", 0444, root, rdev,<br>
> &radeon_debugfs_gem_info_fops);<br>
><br>
> diff --git a/drivers/gpu/drm/radeon/radeon_ib.c b/drivers/gpu/drm/radeon/radeon_ib.c<br>
> index 62b116727b4f..28316eb4fd49 100644<br>
> --- a/drivers/gpu/drm/radeon/radeon_ib.c<br>
> +++ b/drivers/gpu/drm/radeon/radeon_ib.c<br>
> @@ -311,6 +311,9 @@ static void radeon_debugfs_sa_init(struct radeon_device *rdev)<br>
> #if defined(CONFIG_DEBUG_FS)<br>
> struct dentry *root = rdev->ddev->primary->debugfs_root;<br>
><br>
> + if (!root)<br>
> + return;<br>
> +<br>
> debugfs_create_file("radeon_sa_info", 0444, root, rdev,<br>
> &radeon_debugfs_sa_info_fops);<br>
> #endif<br>
> diff --git a/drivers/gpu/drm/radeon/radeon_pm.c b/drivers/gpu/drm/radeon/radeon_pm.c<br>
> index c67b6ddb29a4..c09e574d04f0 100644<br>
> --- a/drivers/gpu/drm/radeon/radeon_pm.c<br>
> +++ b/drivers/gpu/drm/radeon/radeon_pm.c<br>
> @@ -1958,6 +1958,9 @@ static void radeon_debugfs_pm_init(struct radeon_device *rdev)<br>
> #if defined(CONFIG_DEBUG_FS)<br>
> struct dentry *root = rdev->ddev->primary->debugfs_root;<br>
><br>
> + if (!root)<br>
> + return;<br>
> +<br>
> debugfs_create_file("radeon_pm_info", 0444, root, rdev,<br>
> &radeon_debugfs_pm_info_fops);<br>
><br>
> diff --git a/drivers/gpu/drm/radeon/radeon_ring.c b/drivers/gpu/drm/radeon/radeon_ring.c<br>
> index 7e207276df37..31a5b1ebf7c9 100644<br>
> --- a/drivers/gpu/drm/radeon/radeon_ring.c<br>
> +++ b/drivers/gpu/drm/radeon/radeon_ring.c<br>
> @@ -550,6 +550,9 @@ static void radeon_debugfs_ring_init(struct radeon_device *rdev, struct radeon_r<br>
> const char *ring_name = radeon_debugfs_ring_idx_to_name(ring->idx);<br>
> struct dentry *root = rdev->ddev->primary->debugfs_root;<br>
><br>
> + if (!root)<br>
> + return;<br>
> +<br>
> if (ring_name)<br>
> debugfs_create_file(ring_name, 0444, root, ring,<br>
> &radeon_debugfs_ring_info_fops);<br>
> diff --git a/drivers/gpu/drm/radeon/radeon_ttm.c b/drivers/gpu/drm/radeon/radeon_ttm.c<br>
> index 11b21d605584..2e18ec93768d 100644<br>
> --- a/drivers/gpu/drm/radeon/radeon_ttm.c<br>
> +++ b/drivers/gpu/drm/radeon/radeon_ttm.c<br>
> @@ -942,6 +942,9 @@ static void radeon_ttm_debugfs_init(struct radeon_device *rdev)<br>
> struct drm_minor *minor = rdev->ddev->primary;<br>
> struct dentry *root = minor->debugfs_root;<br>
><br>
> + if (!root)<br>
> + return;<br>
> +<br>
> debugfs_create_file("radeon_vram", 0444, root, rdev,<br>
> &radeon_ttm_vram_fops);<br>
><br>
> diff --git a/drivers/gpu/drm/radeon/rs400.c b/drivers/gpu/drm/radeon/rs400.c<br>
> index 6383f7a34bd8..b41a903a29c3 100644<br>
> --- a/drivers/gpu/drm/radeon/rs400.c<br>
> +++ b/drivers/gpu/drm/radeon/rs400.c<br>
> @@ -380,6 +380,9 @@ static void rs400_debugfs_pcie_gart_info_init(struct radeon_device *rdev)<br>
> #if defined(CONFIG_DEBUG_FS)<br>
> struct dentry *root = rdev->ddev->primary->debugfs_root;<br>
><br>
> + if (!root)<br>
> + return;<br>
> +<br>
> debugfs_create_file("rs400_gart_info", 0444, root, rdev,<br>
> &rs400_debugfs_gart_info_fops);<br>
> #endif<br>
> diff --git a/drivers/gpu/drm/radeon/rv515.c b/drivers/gpu/drm/radeon/rv515.c<br>
> index 63fb06e8e2d7..f39b6ab554f2 100644<br>
> --- a/drivers/gpu/drm/radeon/rv515.c<br>
> +++ b/drivers/gpu/drm/radeon/rv515.c<br>
> @@ -257,6 +257,9 @@ void rv515_debugfs(struct radeon_device *rdev)<br>
> #if defined(CONFIG_DEBUG_FS)<br>
> struct dentry *root = rdev->ddev->primary->debugfs_root;<br>
><br>
> + if (!root)<br>
> + return;<br>
> +<br>
> debugfs_create_file("rv515_pipes_info", 0444, root, rdev,<br>
> &rv515_debugfs_pipes_info_fops);<br>
> debugfs_create_file("rv515_ga_info", 0444, root, rdev,<br>
> --<br>
> 2.32.0<br>
><br>
<br>
</div>
</span></font></div>
</div>
</body>
</html>