All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Jérôme Glisse" <jglisse@redhat.com>
To: dri-devel@lists.freedesktop.org
Cc: "Alex Deucher" <alexander.deucher@amd.com>,
	"Jérome Glisse" <jglisse@redhat.com>,
	"Christian König" <christian.koenig@amd.com>
Subject: [PATCH 11/14] drm/radeon: add driver option to disable uvd block.
Date: Fri, 18 Mar 2016 16:58:36 +0100	[thread overview]
Message-ID: <1458316719-30104-12-git-send-email-jglisse@redhat.com> (raw)
In-Reply-To: <1458316719-30104-1-git-send-email-jglisse@redhat.com>

From: Jérome Glisse <jglisse@redhat.com>

Quite few suspend/hibernation bugs are related to this block. Add
an option to disable those as a work around.

Signed-off-by: Jérôme Glisse <jglisse@redhat.com>
Cc: Alex Deucher <alexander.deucher@amd.com>
Cc: Christian König <christian.koenig@amd.com>
---
 drivers/gpu/drm/radeon/radeon.h      | 1 +
 drivers/gpu/drm/radeon/radeon_asic.c | 3 +++
 drivers/gpu/drm/radeon/radeon_drv.c  | 4 ++++
 3 files changed, 8 insertions(+)

diff --git a/drivers/gpu/drm/radeon/radeon.h b/drivers/gpu/drm/radeon/radeon.h
index 8ac3e07..1b26cef 100644
--- a/drivers/gpu/drm/radeon/radeon.h
+++ b/drivers/gpu/drm/radeon/radeon.h
@@ -113,6 +113,7 @@ extern int radeon_bapm;
 extern int radeon_backlight;
 extern int radeon_auxch;
 extern int radeon_mst;
+extern int radeon_uvd;
 
 /*
  * Copy from radeon_drv.h so we don't have to include both and have conflicting
diff --git a/drivers/gpu/drm/radeon/radeon_asic.c b/drivers/gpu/drm/radeon/radeon_asic.c
index 46a4ced..b4810ef 100644
--- a/drivers/gpu/drm/radeon/radeon_asic.c
+++ b/drivers/gpu/drm/radeon/radeon_asic.c
@@ -2696,6 +2696,9 @@ int radeon_asic_init(struct radeon_device *rdev)
 		rdev->asic->pm.set_memory_clock = NULL;
 	}
 
+	if (!radeon_uvd)
+		rdev->has_uvd = false;
+
 	return 0;
 }
 
diff --git a/drivers/gpu/drm/radeon/radeon_drv.c b/drivers/gpu/drm/radeon/radeon_drv.c
index cad2555..a25b90b 100644
--- a/drivers/gpu/drm/radeon/radeon_drv.c
+++ b/drivers/gpu/drm/radeon/radeon_drv.c
@@ -196,6 +196,7 @@ int radeon_bapm = -1;
 int radeon_backlight = -1;
 int radeon_auxch = -1;
 int radeon_mst = 0;
+int radeon_uvd = 1;
 
 MODULE_PARM_DESC(no_wb, "Disable AGP writeback for scratch registers");
 module_param_named(no_wb, radeon_no_wb, int, 0444);
@@ -287,6 +288,9 @@ module_param_named(auxch, radeon_auxch, int, 0444);
 MODULE_PARM_DESC(mst, "DisplayPort MST experimental support (1 = enable, 0 = disable)");
 module_param_named(mst, radeon_mst, int, 0444);
 
+MODULE_PARM_DESC(uvd, "uvd enable/disable uvd support (1 = enable, 0 = disable)");
+module_param_named(uvd, radeon_uvd, int, 0444);
+
 static struct pci_device_id pciidlist[] = {
 	radeon_PCI_IDS
 };
-- 
1.8.3.1

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

  parent reply	other threads:[~2016-03-18 15:59 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-03-18 15:58 [PATCH 00/14] drm/radeon: uvd/vce cleanup and fix for hibernation Jérôme Glisse
2016-03-18 15:58 ` [PATCH 01/14] drm/radeon: consolidate r600 uvd initialization and startup code Jérôme Glisse
2016-03-18 16:44   ` Christian König
2016-03-21 15:49     ` Alex Deucher
2016-03-18 15:58 ` [PATCH 02/14] drm/radeon: consolidate rv770 " Jérôme Glisse
2016-03-18 15:58 ` [PATCH 03/14] drm/radeon: consolidate evergreen " Jérôme Glisse
2016-03-18 15:58 ` [PATCH 04/14] drm/radeon: consolidate ni " Jérôme Glisse
2016-03-18 15:58 ` [PATCH 05/14] drm/radeon: consolidate si " Jérôme Glisse
2016-03-18 15:58 ` [PATCH 06/14] drm/radeon: consolidate cik " Jérôme Glisse
2016-03-18 15:58 ` [PATCH 07/14] drm/radeon: add a vce flag to know if need to initialize vce or not Jérôme Glisse
2016-03-18 15:58 ` [PATCH 08/14] drm/radeon: consolidate ni vce initialization and startup code Jérôme Glisse
2016-03-18 15:58 ` [PATCH 09/14] drm/radeon: consolidate si " Jérôme Glisse
2016-03-18 15:58 ` [PATCH 10/14] drm/radeon: consolidate cik " Jérôme Glisse
2016-03-18 15:58 ` Jérôme Glisse [this message]
2016-03-18 15:58 ` [PATCH 12/14] drm/radeon: add driver option to disable vce block Jérôme Glisse
2016-03-18 15:58 ` [PATCH 13/14] drm/radeon: allow to force hard GPU reset Jérôme Glisse
2016-03-18 15:58 ` [PATCH 14/14] drm/radeon: hard reset r600 and newer GPU when hibernating Jérôme Glisse

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1458316719-30104-12-git-send-email-jglisse@redhat.com \
    --to=jglisse@redhat.com \
    --cc=alexander.deucher@amd.com \
    --cc=christian.koenig@amd.com \
    --cc=dri-devel@lists.freedesktop.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.