The error path does this:
for (--i; i >= 0; --i) {
which is a forever loop because "i" is unsigned.
Signed-off-by: Dan Carpenter <dan.carpenter(a)oracle.com>
diff --git a/drivers/gpu/drm/radeon/radeon_test.c b/drivers/gpu/drm/radeon/radeon_test.c
index f4d6bce..12e8099 100644
--- a/drivers/gpu/drm/radeon/radeon_test.c
+++ b/drivers/gpu/drm/radeon/radeon_test.c
@@ -36,8 +36,8 @@ static void radeon_do_test_moves(struct radeon_device *rdev, int flag)
struct radeon_bo *vram_obj = …
[View More]NULL;
struct radeon_bo **gtt_obj = NULL;
uint64_t gtt_addr, vram_addr;
- unsigned i, n, size;
- int r, ring;
+ unsigned n, size;
+ int i, r, ring;
switch (flag) {
case RADEON_TEST_COPY_DMA:
[View Less]
From: Marek Olšák <marek.olsak(a)amd.com>
After a lockup, fences are not signalled sometimes, causing
the GEM_WAIT_IDLE ioctl to never return, which sometimes results
in an X server freeze.
This fixes only one of many deadlocks which can occur during a lockup.
Signed-off-by: Marek Olšák <marek.olsak(a)amd.com>
---
drivers/gpu/drm/radeon/radeon_device.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/drivers/gpu/drm/radeon/radeon_device.c b/drivers/gpu/drm/radeon/…
[View More]radeon_device.c
index 841d0e0..7b97baa 100644
--- a/drivers/gpu/drm/radeon/radeon_device.c
+++ b/drivers/gpu/drm/radeon/radeon_device.c
@@ -1552,6 +1552,11 @@ int radeon_gpu_reset(struct radeon_device *rdev)
radeon_save_bios_scratch_regs(rdev);
/* block TTM */
resched = ttm_bo_lock_delayed_workqueue(&rdev->mman.bdev);
+
+ mutex_lock(&rdev->ring_lock);
+ radeon_fence_driver_force_completion(rdev);
+ mutex_unlock(&rdev->ring_lock);
+
radeon_pm_suspend(rdev);
radeon_suspend(rdev);
--
1.8.1.2
[View Less]
https://bugs.freedesktop.org/show_bug.cgi?id=70035
Alex Deucher <agd5f(a)yahoo.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Assignee|xorg-driver-ati(a)lists.x.org |dri-devel(a)lists.freedesktop
| |.org
QA Contact|xorg-team(a)lists.x.org |
Product|xorg |Mesa
Component|…
[View More]Driver/Radeon |Drivers/Gallium/r600
--
You are receiving this mail because:
You are the assignee for the bug.
[View Less]
If vgacon got unloaded for any reason, we can never be sure that vga
registers are still accessible. fbdev/DRM/xycon might reconfigure graphics
devices in a way that prevents vgacon from working again. Therefore,
inhibit rebinding vgacon.
Note that this _might_ break use-cases where users unbind vgacon and then
rebind it without breaking VGA mode. However, this seems to be rarely
useful and given that several GPUs cannot even restore VGA mode it seems
safer to prevent it entirely.
This also …
[View More]adds a dependency to dummy_con as the VT layer does not allow
failure during console-rebinding. Hence, we need a guarantee that
dummy_con is available.
To avoid recursive Kconfig dependencies, we move the vga-con/sgi-con
conflict directly into VGA_CONSOLE and make DUMMY_CONSOLE always active.
Signed-off-by: David Herrmann <dh.herrmann(a)gmail.com>
---
drivers/video/console/Kconfig | 2 +-
drivers/video/console/vgacon.c | 10 ++++++----
2 files changed, 7 insertions(+), 5 deletions(-)
diff --git a/drivers/video/console/Kconfig b/drivers/video/console/Kconfig
index 846caab..173f1e7 100644
--- a/drivers/video/console/Kconfig
+++ b/drivers/video/console/Kconfig
@@ -8,6 +8,7 @@ config VGA_CONSOLE
bool "VGA text console" if EXPERT || !X86
depends on !4xx && !8xx && !SPARC && !M68K && !PARISC && !FRV && \
!SUPERH && !BLACKFIN && !AVR32 && !MN10300 && !CRIS && \
+ SGI_NEWPORT_CONSOLE!=y && DUMMY_CONSOLE && \
(!ARM || ARCH_FOOTBRIDGE || ARCH_INTEGRATOR || ARCH_NETWINDER)
default y
help
@@ -71,7 +72,6 @@ config SGI_NEWPORT_CONSOLE
config DUMMY_CONSOLE
bool
- depends on VGA_CONSOLE!=y || SGI_NEWPORT_CONSOLE!=y
default y
config DUMMY_CONSOLE_COLUMNS
diff --git a/drivers/video/console/vgacon.c b/drivers/video/console/vgacon.c
index 9d8feac..d598af6 100644
--- a/drivers/video/console/vgacon.c
+++ b/drivers/video/console/vgacon.c
@@ -368,6 +368,7 @@ static int vgacon_scrolldelta(struct vc_data *c, int lines)
static const char *vgacon_startup(void)
{
+ static bool vgacon_inhibit;
const char *display_desc = NULL;
u16 saved1, saved2;
volatile u16 *p;
@@ -375,14 +376,15 @@ static const char *vgacon_startup(void)
if (screen_info.orig_video_isVGA == VIDEO_TYPE_VLFB ||
screen_info.orig_video_isVGA == VIDEO_TYPE_EFI) {
no_vga:
-#ifdef CONFIG_DUMMY_CONSOLE
conswitchp = &dummy_con;
return conswitchp->con_startup();
-#else
- return NULL;
-#endif
}
+ /* fbdev/DRM can disable VGA-mode so prevent reloading */
+ if (vgacon_inhibit)
+ goto no_vga;
+ vgacon_inhibit = true;
+
/* boot_params.screen_info initialized? */
if ((screen_info.orig_video_mode == 0) &&
(screen_info.orig_video_lines == 0) &&
--
1.8.4
[View Less]
This series adds runtime pm support for host1x, gr2d and dc. It retains the
current behaviour if CONFIG_PM_RUNTIME is not enabled.
The gr2d clock is enabled when a new job is submitted and disabled when
the work is done. Due to parent->child relations between host1x->gr2d, this
scheme enables and disables host1x clock.
For dc, the clocks are enabled in .probe and disabled in .remove via runtime
pm instead of direct clock APIs.
Mayuresh is unfortunately not available to continue with …
[View More]the series and hence
I will continue working on the patches.
Changes in v3:
- Rebased patches on top of 3.12-rc2
- Removed unnecessary #ifdefs
- Added descriptions to commit messages
- If runtime pm is disabled, the code calls suspend/resume functions
for enabling/disabling the clocks instead of repeating the functions
Mayuresh Kulkarni (4):
gpu: host1x: shuffle job APIs
drm/tegra: Add runtime pm support for gr2d
drm/tegra: Add runtime pm support for dc
gpu: host1x: Add runtime pm support for host1x
drivers/gpu/host1x/cdma.c | 2 ++
drivers/gpu/host1x/channel.c | 8 ------
drivers/gpu/host1x/channel.h | 1 -
drivers/gpu/host1x/dev.c | 57 +++++++++++++++++++++++++++++++++++++++---
drivers/gpu/host1x/drm/dc.c | 58 +++++++++++++++++++++++++++++++++++++++----
drivers/gpu/host1x/drm/gr2d.c | 57 ++++++++++++++++++++++++++++++++++++++----
drivers/gpu/host1x/job.c | 13 ++++++++++
drivers/gpu/host1x/job.h | 3 +++
8 files changed, 176 insertions(+), 23 deletions(-)
--
1.8.1.5
[View Less]
https://bugs.freedesktop.org/show_bug.cgi?id=69671
Priority: medium
Bug ID: 69671
Assignee: dri-devel(a)lists.freedesktop.org
Summary: rv790 hdmi sound regression since fix audio dto
calculation on DCE3+ (v3)
Severity: normal
Classification: Unclassified
OS: Linux (All)
Reporter: adf.lists(a)gmail.com
Hardware: x86-64 (AMD64)
Status: NEW
Version: XOrg CVS
…
[View More] Component: DRM/Radeon
Product: DRI
My rv790 has lost sound over hdmi since -
1518dd8efd47918bb269f1470030592875953f6c is the first bad commit
commit 1518dd8efd47918bb269f1470030592875953f6c
Author: Alex Deucher <alexander.deucher(a)amd.com>
Date: Tue Jul 30 17:31:07 2013 -0400
drm/radeon: fix audio dto calculation on DCE3+ (v3)
Need to set the wallclock ratio and adjust the phase
and module registers appropriately. May fix problems
with audio timing at certain display timings.
v2: properly handle clocks below 24mhz
v3: rebase r600 changes
Tested with 44,1k and 48k source, screen 50Hz.
--
You are receiving this mail because:
You are the assignee for the bug.
[View Less]
This is the first set of patches to make Nouveau work
on Tegra. Those are only the obvious correctness fixes,
a lot of optimization work remains to be done, but at least
it's enough to get accel working and let the machine survive
a piglit run.
A new BO flag is introduced to allow userspace to hint the
kernel about possible optimizations.
Lucas Stach (6):
drm/ttm: recognize ARM arch in ioprot handler
drm/ttm: introduce dma cache sync helpers
drm/nouveau: hook up cache sync functions
…
[View More]drm/nouveau: introduce NOUVEAU_GEM_TILE_WCUS
drm/nouveau: map IB write-combined
drm/nouveau: use MSI interrupts
drivers/gpu/drm/nouveau/core/include/subdev/mc.h | 1 +
drivers/gpu/drm/nouveau/core/subdev/mc/base.c | 17 ++++++++++++++
drivers/gpu/drm/nouveau/nouveau_bo.c | 15 ++++++++++++-
drivers/gpu/drm/nouveau/nouveau_bo.h | 1 +
drivers/gpu/drm/nouveau/nouveau_chan.c | 3 ++-
drivers/gpu/drm/nouveau/nouveau_gem.c | 5 +++++
drivers/gpu/drm/ttm/ttm_bo_util.c | 2 +-
drivers/gpu/drm/ttm/ttm_tt.c | 25 +++++++++++++++++++++
include/drm/ttm/ttm_bo_driver.h | 28 ++++++++++++++++++++++++
include/uapi/drm/nouveau_drm.h | 1 +
10 files changed, 95 insertions(+), 3 deletions(-)
--
1.8.3.1
[View Less]