All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/3] drm/amdgpu: Add new mode 2560x1440
@ 2021-01-06  1:05 Emily.Deng
  2021-01-06  1:05 ` [PATCH 2/3] drm/amdgpu: Correct the read sclk for navi10 Emily.Deng
                   ` (2 more replies)
  0 siblings, 3 replies; 10+ messages in thread
From: Emily.Deng @ 2021-01-06  1:05 UTC (permalink / raw)
  To: amd-gfx; +Cc: Emily.Deng

Add one more 2k resolution which appears frequently in market.

Signed-off-by: Emily.Deng <Emily.Deng@amd.com>
---
 drivers/gpu/drm/amd/amdgpu/dce_virtual.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/drivers/gpu/drm/amd/amdgpu/dce_virtual.c b/drivers/gpu/drm/amd/amdgpu/dce_virtual.c
index ffcc64ec6473..9810af712cc0 100644
--- a/drivers/gpu/drm/amd/amdgpu/dce_virtual.c
+++ b/drivers/gpu/drm/amd/amdgpu/dce_virtual.c
@@ -294,7 +294,7 @@ static int dce_virtual_get_modes(struct drm_connector *connector)
 	static const struct mode_size {
 		int w;
 		int h;
-	} common_modes[21] = {
+	} common_modes[] = {
 		{ 640,  480},
 		{ 720,  480},
 		{ 800,  600},
@@ -312,13 +312,14 @@ static int dce_virtual_get_modes(struct drm_connector *connector)
 		{1600, 1200},
 		{1920, 1080},
 		{1920, 1200},
+		{2560, 1440},
 		{4096, 3112},
 		{3656, 2664},
 		{3840, 2160},
 		{4096, 2160},
 	};
 
-	for (i = 0; i < 21; i++) {
+	for (i = 0; i < ARRAY_SIZE(common_modes); i++) {
 		mode = drm_cvt_mode(dev, common_modes[i].w, common_modes[i].h, 60, false, false, false);
 		drm_mode_probed_add(connector, mode);
 	}
-- 
2.25.1

_______________________________________________
amd-gfx mailing list
amd-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

^ permalink raw reply related	[flat|nested] 10+ messages in thread
* [PATCH 1/3] drm/amdgpu: Add new mode 2560x1440
@ 2021-01-05  8:37 Emily.Deng
  2021-01-05  8:37 ` [PATCH 2/3] drm/amdgpu: Correct the read sclk for navi10 Emily.Deng
  0 siblings, 1 reply; 10+ messages in thread
From: Emily.Deng @ 2021-01-05  8:37 UTC (permalink / raw)
  To: amd-gfx; +Cc: Emily.Deng

Signed-off-by: Emily.Deng <Emily.Deng@amd.com>
---
 drivers/gpu/drm/amd/amdgpu/dce_virtual.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/drivers/gpu/drm/amd/amdgpu/dce_virtual.c b/drivers/gpu/drm/amd/amdgpu/dce_virtual.c
index bc3dcc262fc2..2b16c8faca34 100644
--- a/drivers/gpu/drm/amd/amdgpu/dce_virtual.c
+++ b/drivers/gpu/drm/amd/amdgpu/dce_virtual.c
@@ -324,7 +324,7 @@ static int dce_virtual_get_modes(struct drm_connector *connector)
 	static const struct mode_size {
 		int w;
 		int h;
-	} common_modes[21] = {
+	} common_modes[] = {
 		{ 640,  480},
 		{ 720,  480},
 		{ 800,  600},
@@ -342,13 +342,14 @@ static int dce_virtual_get_modes(struct drm_connector *connector)
 		{1600, 1200},
 		{1920, 1080},
 		{1920, 1200},
+		{2560, 1440},
 		{4096, 3112},
 		{3656, 2664},
 		{3840, 2160},
 		{4096, 2160},
 	};
 
-	for (i = 0; i < 21; i++) {
+	for (i = 0; i < ARRAY_SIZE(common_modes); i++) {
 		mode = drm_cvt_mode(dev, common_modes[i].w, common_modes[i].h, 60, false, false, false);
 		drm_mode_probed_add(connector, mode);
 	}
-- 
2.25.1

_______________________________________________
amd-gfx mailing list
amd-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

^ permalink raw reply related	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2021-01-07  2:57 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-01-06  1:05 [PATCH 1/3] drm/amdgpu: Add new mode 2560x1440 Emily.Deng
2021-01-06  1:05 ` [PATCH 2/3] drm/amdgpu: Correct the read sclk for navi10 Emily.Deng
2021-01-06 19:46   ` Alex Deucher
2021-01-07  2:48   ` Quan, Evan
2021-01-07  2:57   ` Feng, Kenneth
2021-01-06  1:05 ` [PATCH 3/3] drm/amdgpu:Limit the resolution for virtual_display Emily.Deng
2021-01-06 19:46 ` [PATCH 1/3] drm/amdgpu: Add new mode 2560x1440 Alex Deucher
  -- strict thread matches above, loose matches on Subject: below --
2021-01-05  8:37 Emily.Deng
2021-01-05  8:37 ` [PATCH 2/3] drm/amdgpu: Correct the read sclk for navi10 Emily.Deng
2021-01-05  9:07   ` Quan, Evan
2021-01-06  1:00     ` Deng, Emily

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.