diff for duplicates of <CAHp75Ve8WyfNjrRq2jw_puqBUOAfWMBgVFdo--tdvQ4ta5tjzQ@mail.gmail.com>
diff --git a/a/1.txt b/N1/1.txt
index 28ce050..3e3bbcf 100644
--- a/a/1.txt
+++ b/N1/1.txt
@@ -47,4 +47,8 @@ No way to recover?!
--
With Best Regards,
-Andy Shevchenko
\ No newline at end of file
+Andy Shevchenko
+_______________________________________________
+dri-devel mailing list
+dri-devel@lists.freedesktop.org
+https://lists.freedesktop.org/mailman/listinfo/dri-devel
\ No newline at end of file
diff --git a/a/content_digest b/N1/content_digest
index 57a74f3..aad0939 100644
--- a/a/content_digest
+++ b/N1/content_digest
@@ -18,10 +18,10 @@
]
[
"Cc\0linux-pci\@vger.kernel.org <linux-pci\@vger.kernel.org>",
- " dri-devel\@lists.freedesktop.org",
- " Platform Driver <platform-driver-x86\@vger.kernel.org>",
+ " linux-kernel\@vger.kernel.org <linux-kernel\@vger.kernel.org>",
" amd-gfx\@lists.freedesktop.org",
- " linux-kernel\@vger.kernel.org <linux-kernel\@vger.kernel.org>\0"
+ " dri-devel\@lists.freedesktop.org",
+ " Platform Driver <platform-driver-x86\@vger.kernel.org>\0"
]
[
"\0000:1\0"
@@ -79,7 +79,11 @@
"\n",
"-- \n",
"With Best Regards,\n",
- "Andy Shevchenko"
+ "Andy Shevchenko\n",
+ "_______________________________________________\n",
+ "dri-devel mailing list\n",
+ "dri-devel\@lists.freedesktop.org\n",
+ "https://lists.freedesktop.org/mailman/listinfo/dri-devel"
]
-256ae0fd7736872327c34fe12ea16bc29a4bc5f6c83c050d1dbd27a9d71b7b3a
+ba8f08e7767c8cf2d24b048f2b9000b76f0d6be9653bc7f6a8021566751a58d6
diff --git a/a/1.txt b/N2/1.txt
index 28ce050..d6297bd 100644
--- a/a/1.txt
+++ b/N2/1.txt
@@ -1,41 +1,46 @@
-On Mon, Mar 6, 2017 at 1:40 PM, Christian König <deathsimple@vodafone.de> wrote:
-> From: Christian König <christian.koenig@amd.com>
+On Mon, Mar 6, 2017 at 1:40 PM, Christian K=C3=B6nig <deathsimple@vodafone.=
+de> wrote:
+> From: Christian K=C3=B6nig <christian.koenig@amd.com>
>
> Try to resize BAR0 to let CPU access all of VRAM.
> --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
> +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
-> @@ -616,6 +616,35 @@ void amdgpu_gtt_location(struct amdgpu_device *adev, struct amdgpu_mc *mc)
+> @@ -616,6 +616,35 @@ void amdgpu_gtt_location(struct amdgpu_device *adev,=
+ struct amdgpu_mc *mc)
> +void amdgpu_resize_bar0(struct amdgpu_device *adev)
> +{
-> + u32 size = max(ilog2(adev->mc.real_vram_size - 1) + 1, 20) - 20;
+> + u32 size =3D max(ilog2(adev->mc.real_vram_size - 1) + 1, 20) - 20=
+;
Too complicated.
-unsigned long = fls_long(real_vram_size | BIT(20));
+unsigned long =3D fls_long(real_vram_size | BIT(20));
And the result is not a size, right? It's a logarithm from size.
> + int r;
> +
-> + r = pci_resize_resource(adev->pdev, 0, size);
+> + r =3D pci_resize_resource(adev->pdev, 0, size);
> +
Redundant line.
-> + if (r == -ENOTSUPP) {
+> + if (r =3D=3D -ENOTSUPP) {
> + /* The hardware don't support the extension. */
> + return;
> +
-> + } else if (r == -ENOSPC) {
-> + DRM_INFO("Not enoigh PCI address space for a large BAR.");
+> + } else if (r =3D=3D -ENOSPC) {
+> + DRM_INFO("Not enoigh PCI address space for a large BAR.")=
+;
> + } else if (r) {
> + DRM_ERROR("Problem resizing BAR0 (%d).", r);
> + }
> +
-> + /* Reinit the doorbell mapping, it is most likely moved as well */
+> + /* Reinit the doorbell mapping, it is most likely moved as well *=
+/
> + amdgpu_doorbell_fini(adev);
> + BUG_ON(amdgpu_doorbell_init(adev));
@@ -45,6 +50,6 @@ No way to recover?!
> +}
> +
---
+--=20
With Best Regards,
Andy Shevchenko
\ No newline at end of file
diff --git a/a/content_digest b/N2/content_digest
index 57a74f3..2426392 100644
--- a/a/content_digest
+++ b/N2/content_digest
@@ -30,44 +30,49 @@
"b\0"
]
[
- "On Mon, Mar 6, 2017 at 1:40 PM, Christian K\303\266nig <deathsimple\@vodafone.de> wrote:\n",
- "> From: Christian K\303\266nig <christian.koenig\@amd.com>\n",
+ "On Mon, Mar 6, 2017 at 1:40 PM, Christian K=C3=B6nig <deathsimple\@vodafone.=\n",
+ "de> wrote:\n",
+ "> From: Christian K=C3=B6nig <christian.koenig\@amd.com>\n",
">\n",
"> Try to resize BAR0 to let CPU access all of VRAM.\n",
"\n",
"> --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c\n",
"> +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c\n",
- "> \@\@ -616,6 +616,35 \@\@ void amdgpu_gtt_location(struct amdgpu_device *adev, struct amdgpu_mc *mc)\n",
+ "> \@\@ -616,6 +616,35 \@\@ void amdgpu_gtt_location(struct amdgpu_device *adev,=\n",
+ " struct amdgpu_mc *mc)\n",
"\n",
"> +void amdgpu_resize_bar0(struct amdgpu_device *adev)\n",
"> +{\n",
- "> + u32 size = max(ilog2(adev->mc.real_vram_size - 1) + 1, 20) - 20;\n",
+ "> + u32 size =3D max(ilog2(adev->mc.real_vram_size - 1) + 1, 20) - 20=\n",
+ ";\n",
"\n",
"Too complicated.\n",
"\n",
- "unsigned long = fls_long(real_vram_size | BIT(20));\n",
+ "unsigned long =3D fls_long(real_vram_size | BIT(20));\n",
"\n",
"And the result is not a size, right? It's a logarithm from size.\n",
"\n",
"> + int r;\n",
"> +\n",
- "> + r = pci_resize_resource(adev->pdev, 0, size);\n",
+ "> + r =3D pci_resize_resource(adev->pdev, 0, size);\n",
"\n",
"> +\n",
"\n",
"Redundant line.\n",
"\n",
- "> + if (r == -ENOTSUPP) {\n",
+ "> + if (r =3D=3D -ENOTSUPP) {\n",
"> + /* The hardware don't support the extension. */\n",
"> + return;\n",
"> +\n",
- "> + } else if (r == -ENOSPC) {\n",
- "> + DRM_INFO(\"Not enoigh PCI address space for a large BAR.\");\n",
+ "> + } else if (r =3D=3D -ENOSPC) {\n",
+ "> + DRM_INFO(\"Not enoigh PCI address space for a large BAR.\")=\n",
+ ";\n",
"> + } else if (r) {\n",
"> + DRM_ERROR(\"Problem resizing BAR0 (%d).\", r);\n",
"> + }\n",
"> +\n",
- "> + /* Reinit the doorbell mapping, it is most likely moved as well */\n",
+ "> + /* Reinit the doorbell mapping, it is most likely moved as well *=\n",
+ "/\n",
"> + amdgpu_doorbell_fini(adev);\n",
"\n",
"> + BUG_ON(amdgpu_doorbell_init(adev));\n",
@@ -77,9 +82,9 @@
"> +}\n",
"> +\n",
"\n",
- "-- \n",
+ "--=20\n",
"With Best Regards,\n",
"Andy Shevchenko"
]
-256ae0fd7736872327c34fe12ea16bc29a4bc5f6c83c050d1dbd27a9d71b7b3a
+45ceef1caf24f82a93598416e4f9e74b214057a0f95037e67b5c17890b457e2e
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.