[PATCH] drm/radeon: evergreen/cayman indirect draw support

2014-11-08 Thread Glenn Kennard
Signed-off-by: Glenn Kennard --- See patch sent to mesa-dev at lists.freedesktop.org for userspace usage. drivers/gpu/drm/radeon/evergreen_cs.c | 76 +++ drivers/gpu/drm/radeon/evergreend.h | 1 + drivers/gpu/drm/radeon/radeon_drv.c | 3 +- 3 files changed,

[Bug 85950] [regression] Mesa 10.3.2 - radeon rv6xx GPU when using OpenGL games

2014-11-08 Thread bugzilla-dae...@freedesktop.org
ttp://lists.freedesktop.org/archives/dri-devel/attachments/20141108/50b01e6c/attachment.html>

[Bug 84627] (bisected) 32bit corruption with PIPE_USAGE_STREAM reverted

2014-11-08 Thread bugzilla-dae...@freedesktop.org
. -- next part -- An HTML attachment was scrubbed... URL: <http://lists.freedesktop.org/archives/dri-devel/attachments/20141108/ca02d87c/attachment.html>

[Bug 85950] GLAMOR crashes w/ radeon rv6xx GPU when using OpenGL games

2014-11-08 Thread bugzilla-dae...@freedesktop.org
ttp://lists.freedesktop.org/archives/dri-devel/attachments/20141108/de1df095/attachment-0001.html>

[PATCH v5 06/24] Update MAINTAINERS and CREDITS files with amdkfd info

2014-11-08 Thread Oded Gabbay
On 11/08/2014 08:46 PM, Joe Perches wrote: > On Sat, 2014-11-08 at 20:37 +0200, Oded Gabbay wrote: > [] >> diff --git a/MAINTAINERS b/MAINTAINERS > [] >> @@ -610,6 +610,16 @@ F: drivers/crypto/geode* >> F: drivers/video/fbdev/geode/ >> F: arch/x86/include/asm/geode.h >> >> +AMD KFD (ra

[PATCH v5 24/24] amdkfd: Implement the Get Version IOCTL

2014-11-08 Thread Oded Gabbay
Signed-off-by: Oded Gabbay --- drivers/gpu/drm/amd/amdkfd/kfd_chardev.c | 11 ++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/amdkfd/kfd_chardev.c b/drivers/gpu/drm/amd/amdkfd/kfd_chardev.c index 3130265..64c73ba 100644 --- a/drivers/gpu/drm/amd/amdk

[PATCH v5 23/24] amdkfd: Implement the Get Process Aperture IOCTL

2014-11-08 Thread Oded Gabbay
From: Alexey Skidanov v3: Fixed debug messages Signed-off-by: Alexey Skidanov Signed-off-by: Oded Gabbay --- drivers/gpu/drm/amd/amdkfd/kfd_chardev.c | 56 +++- drivers/gpu/drm/amd/amdkfd/kfd_priv.h| 6 2 files changed, 61 insertions(+), 1 deletion(-) di

[PATCH v5 22/24] amdkfd: Implement the Get Clock Counters IOCTL

2014-11-08 Thread Oded Gabbay
From: Evgeny Pinchuk Signed-off-by: Evgeny Pinchuk Signed-off-by: Oded Gabbay --- drivers/gpu/drm/amd/amdkfd/kfd_chardev.c | 29 - 1 file changed, 28 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/amdkfd/kfd_chardev.c b/drivers/gpu/drm/amd/amdkfd/kf

[PATCH v5 21/24] amdkfd: Implement the Set Memory Policy IOCTL

2014-11-08 Thread Oded Gabbay
From: Andrew Lewycky Signed-off-by: Andrew Lewycky Signed-off-by: Oded Gabbay --- drivers/gpu/drm/amd/amdkfd/kfd_chardev.c | 52 +++- 1 file changed, 51 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/amdkfd/kfd_chardev.c b/drivers/gpu/drm/amd/amdkfd

[Bug 86043] Optimus issue with libdrm 2.4.58

2014-11-08 Thread bugzilla-dae...@freedesktop.org
u are receiving this mail because: You are the assignee for the bug. -- next part -- An HTML attachment was scrubbed... URL: <http://lists.freedesktop.org/archives/dri-devel/attachments/20141108/f559c8df/attachment.html>

[PATCH v5 20/24] amdkfd: Implement the create/destroy/update queue IOCTLs

2014-11-08 Thread Oded Gabbay
v3: Removed the use of internal typedefs, fixed debug prints, added checks for parameters and moved to using doorbell address from user v4: Extracted some of the code in the create queue ioctl to a different function that may be also called from other ioctls in the future. Also fixed t

[PATCH v5 19/24] amdkfd: Add interrupt handling module

2014-11-08 Thread Oded Gabbay
From: Andrew Lewycky This patch adds the interrupt handling module, in kfd_interrupt.c, and its related members in different data structures to the amdkfd driver. The amdkfd interrupt module maintains an internal interrupt ring per amdkfd device. The internal interrupt ring contains interrupts t

[PATCH v5 18/24] amdkfd: Add device queue manager module

2014-11-08 Thread Oded Gabbay
From: Ben Goz The queue scheduler divides into two sections, one section is process bounded and the other section is device bounded. The device bounded section is handled by this module. The DQM module handles queue setup, update and tear-down from the device side. It also supports suspend/resume

[PATCH v5 17/24] amdkfd: Add process queue manager module

2014-11-08 Thread Oded Gabbay
From: Ben Goz The queue scheduler divides into two sections, one section is process bounded and the other section is device bounded. The process bounded section is handled by this module. The PQM handles usermode queue setup, updates and tear-down. v3: Used kernel parameter to limit queues per

[PATCH v5 16/24] amdkfd: Add packet manager module

2014-11-08 Thread Oded Gabbay
From: Ben Goz The packet manager module builds PM4 packets for the sole use of the CP scheduler. Those packets are used by the HIQ to submit runlists to the CP. v3: Removed include of cik_mqds.h Changed lower_32/upper_32 calls to use linux macros Used new gart allocation functions Added documen

[PATCH v5 15/24] amdkfd: Add module parameter of scheduling policy

2014-11-08 Thread Oded Gabbay
From: Ben Goz This patch adds a new parameter to the amdkfd driver. This parameter enables the user to select the scheduling policy of the CP. The choices are: * CP Scheduling with support for over-subscription * CP Scheduling without support for over-subscription * Without CP Scheduling Note t

[PATCH v5 14/24] amdkfd: Add kernel queue module

2014-11-08 Thread Oded Gabbay
From: Ben Goz The kernel queue module enables the amdkfd to establish kernel queues, not exposed to user space. The kernel queues are used for HIQ (HSA Interface Queue) and DIQ (Debug Interface Queue) operations v3: Removed use of internal typedefs and added use of the new gart allocation funct

[PATCH v5 13/24] amdkfd: Add mqd_manager module

2014-11-08 Thread Oded Gabbay
From: Ben Goz The mqd_manager module handles MQD data structures. MQD stands for Memory Queue Descriptor, which is used by the H/W to keep the usermode queue state in memory. v3: Removed new typedefs Removed pragma pack 4 Remove cik_mqds.h file Changed lower_32/upper_32 calls to use linux macro

[PATCH v5 12/24] amdkfd: Add queue module

2014-11-08 Thread Oded Gabbay
From: Ben Goz The queue module enables allocating and initializing queues uniformly. v3: Removed typedef and redundant memset call. Broke long pr_debug print to one liners and Added documentation. v5: Move amdkfd from drm/radeon/ to drm/amd/ Signed-off-by: Ben Goz Signed-off-by: Oded Gabbay

[PATCH v5 11/24] amdkfd: Add binding/unbinding calls to amd_iommu driver

2014-11-08 Thread Oded Gabbay
This patch adds the functions to bind and unbind pasid from a device through the amd_iommu driver. The unbind function is called when the mm_struct of the process is released. The bind function is not called here because it is called only in the IOCTLs which are not yet implemented at this stage

[PATCH v5 10/24] amdkfd: Add basic modules to amdkfd

2014-11-08 Thread Oded Gabbay
This patch adds the process module and three helper modules: - kfd_process, which handles process which open /dev/kfd - kfd_doorbell, which provides helper functions for doorbell allocation, release and mapping to userspace - kfd_pasid, which provides helper functions for pasid allocation and

[PATCH v5 09/24] amdkfd: Add topology module to amdkfd

2014-11-08 Thread Oded Gabbay
From: Evgeny Pinchuk This patch adds the topology module to the driver. The topology is exposed to userspace through the sysfs. The calls to add and remove a device to/from topology are done by the radeon driver. v3: The CPU information, that is provided in the topology section of the amdkfd d

[PATCH v5 08/24] amdkfd: Add amdkfd skeleton driver

2014-11-08 Thread Oded Gabbay
This patch adds the amdkfd skeleton driver. The driver does nothing except define a /dev/kfd device. It returns -ENODEV on all amdkfd IOCTLs. v3: Move bool field to the end of structure, removed the pmc ioctls and added a meaningful error message for ioctl error. v5: Create a new folder drm/amd

[PATCH v5 07/24] amdkfd: Add IOCTL set definitions of amdkfd

2014-11-08 Thread Oded Gabbay
- KFD_IOC_GET_VERSION: Retrieves the interface version of amdkfd - KFD_IOC_CREATE_QUEUE: Creates a usermode queue that runs on a specific GPU device - KFD_IOC_DESTROY_QUEUE: Destroys an existing usermode queue - KFD_IOC_SET_MEMORY_POLICY: Sets the memory policy of

[PATCH v5 06/24] Update MAINTAINERS and CREDITS files with amdkfd info

2014-11-08 Thread Oded Gabbay
Signed-off-by: Oded Gabbay --- CREDITS | 7 +++ MAINTAINERS | 10 ++ 2 files changed, 17 insertions(+) diff --git a/CREDITS b/CREDITS index bb62788..c56d8aa 100644 --- a/CREDITS +++ b/CREDITS @@ -1197,6 +1197,13 @@ S: R. Tocantins, 89 - Cristo Rei S: 80050-430 - Curitiba - Para

[PATCH v5 05/24] drm/radeon: Add radeon <--> amdkfd interface

2014-11-08 Thread Oded Gabbay
This patch adds the interface between the radeon driver and the amdkfd driver. The interface implementation is contained in radeon_kfd.c and radeon_kfd.h. The interface itself is represented by a pointer to struct kfd_dev. The pointer is located inside radeon_device structure. All the register ac

[PATCH v5 04/24] drm/radeon: adding synchronization for GRBM GFX

2014-11-08 Thread Oded Gabbay
Implementing a lock for selecting and accessing shader engines and arrays. This lock will make sure that radeon and amdkfd are not colliding when accessing shader engines and arrays with GRBM_GFX_INDEX register. Reviewed-by: Alex Deucher Signed-off-by: Oded Gabbay --- drivers/gpu/drm/radeon/cik

[PATCH v5 03/24] drm/radeon: Report doorbell configuration to amdkfd

2014-11-08 Thread Oded Gabbay
radeon and amdkfd share the doorbell aperture. radeon sets it up, takes the doorbells required for its own rings and reports the setup to amdkfd. radeon reserved doorbells are at the start of the doorbell aperture. Reviewed-by: Alex Deucher Signed-off-by: Oded Gabbay --- drivers/gpu/drm/radeon/

[PATCH v5 02/24] drm/radeon/cik: Don't touch int of pipes 1-7

2014-11-08 Thread Oded Gabbay
amdkfd should set interrupts for pipes 1-7. Reviewed-by: Alex Deucher Signed-off-by: Oded Gabbay --- drivers/gpu/drm/radeon/cik.c | 71 +--- 1 file changed, 1 insertion(+), 70 deletions(-) diff --git a/drivers/gpu/drm/radeon/cik.c b/drivers/gpu/drm/radeo

[PATCH v5 01/24] drm/radeon: reduce number of free VMIDs and pipes in KV

2014-11-08 Thread Oded Gabbay
To support HSA on KV, we need to limit the number of vmids and pipes that are available for radeon's use with KV. This patch reserves VMIDs 8-15 for amdkfd (so radeon can only use VMIDs 0-7) and also makes radeon thinks that KV has only a single MEC with a single pipe in it v3: Use define for sta

[PATCH v5 00/24] AMDKFD Kernel Driver

2014-11-08 Thread Oded Gabbay
Hi, Here is the v5 patch set of amdkfd. This version is released several days ahead of the release of AMD's HSA Runtime library as Open Source. Coupled with the modification that Thomas Stellard did for the r600 LLVM back-end, AMD will be effectively releasing a _complete_ userspace Open Source

[PATCH v5 06/24] Update MAINTAINERS and CREDITS files with amdkfd info

2014-11-08 Thread Josh Triplett
On Sat, Nov 08, 2014 at 12:49:29PM -0800, Joe Perches wrote: > On Sat, 2014-11-08 at 11:01 -0800, Josh Triplett wrote: > > On Sat, Nov 08, 2014 at 08:37:27PM +0200, Oded Gabbay wrote: > > > CREDITS | 7 +++ > > > MAINTAINERS | 10 ++ > > > 2 files changed, 17 insertions(+) > > >

[PATCH] drm/radeon: evergreen/cayman indirect draw support

2014-11-08 Thread Jerome Glisse
On Sat, Nov 08, 2014 at 11:51:30PM +0100, Glenn Kennard wrote: > Signed-off-by: Glenn Kennard NAK insecure. This is missing any kind of boundary checking for the indirect buffer and thus can be abuse. > --- > See patch sent to mesa-dev at lists.freedesktop.org for userspace usage. > > drivers/

[Bug 86038] [radeonsi] Dreamfall Chapters: heavy visual corruption, large parts of the screen are black in some scenes

2014-11-08 Thread bugzilla-dae...@freedesktop.org
are the assignee for the bug. -- next part -- An HTML attachment was scrubbed... URL: <http://lists.freedesktop.org/archives/dri-devel/attachments/20141108/5ff86451/attachment.html>

[Bug 86038] [radeonsi] Dreamfall Chapters: heavy visual corruption

2014-11-08 Thread bugzilla-dae...@freedesktop.org
for the bug. -- next part -- An HTML attachment was scrubbed... URL: <http://lists.freedesktop.org/archives/dri-devel/attachments/20141108/42bc90e8/attachment.html>

[Bug 86038] [radeonsi] Dreamfall Chapters: heavy visual corruption

2014-11-08 Thread bugzilla-dae...@freedesktop.org
|| -- You are receiving this mail because: You are the assignee for the bug. -- next part -- An HTML attachment was scrubbed... URL: <http://lists.freedesktop.org/archives/dri-devel/attachments/20141108/e055fc06/attachment.html>

[Bug 86038] [radeonsi] Dreamfall Chapters: heavy visual corruption

2014-11-08 Thread bugzilla-dae...@freedesktop.org
4429675a5560e0fad42aa982965fc2 > /lib/firmware/updates/3.17.0-citadel/radeon/hawaii_smc.bin libclc: Git:master/7f6f5bff1f DDX: 1:7.5.0-1 -- You are receiving this mail because: You are the assignee for the bug. -- next part -- An HTML attachment was scrubbed... URL: <

[Bug 85647] Random radeonsi crashes with mesa 10.3.x

2014-11-08 Thread bugzilla-dae...@freedesktop.org
up to now. Without the patch this combination would fail pretty quickly. -- You are receiving this mail because: You are the assignee for the bug. -- next part -- An HTML attachment was scrubbed... URL: <http://lists.freedesktop.org/archives/dri-devel/attachments/2014

[Bug 80851] Radeon[Trinity HD 7520G] Resume Results in Blank Screen, no backlight

2014-11-08 Thread bugzilla-dae...@bugzilla.kernel.org
https://bugzilla.kernel.org/show_bug.cgi?id=80851 swoorupj at gmail.com changed: What|Removed |Added Regression|Yes |No -- You are receiving this mail

[Bug 83800] 3DMark2003 crashes radeon with wine 1.7.26 + gallium nine

2014-11-08 Thread bugzilla-dae...@freedesktop.org
e WINE on https://github.com/apitrace/apitrace/wiki/WINE#windows-native -- You are receiving this mail because: You are the assignee for the bug. -- next part -- An HTML attachment was scrubbed... URL: <http://lists.freedesktop.org/archives/dri-devel/attachment

[PATCH V5 7/7] dt-bindings: add document for dw-hdmi

2014-11-08 Thread Andy Yan
Signed-off-by: Andy Yan --- .../devicetree/bindings/drm/bridge/dw-hdmi.txt | 38 ++ 1 file changed, 38 insertions(+) create mode 100644 Documentation/devicetree/bindings/drm/bridge/dw-hdmi.txt diff --git a/Documentation/devicetree/bindings/drm/bridge/dw-hdmi.txt b/Docum

[PATCH V5 6/7] dw-hdmi: convert dw-hdmi to drm_bridge mode

2014-11-08 Thread Andy Yan
From: Yakir Yang dw-hdmi is under drm/bridge, so it should be the bridge mode. hange off the encoder to dw_hdmi-imx.c, keep the connector & birdge in dw_hdmi.c Signed-off-by: Andy Yan Signed-off-by: Yakir Yang --- drivers/gpu/drm/bridge/dw_hdmi.c | 217 ++

[PATCH V5 5/7] dw-hdmi: add support for multi byte register width access

2014-11-08 Thread Andy Yan
On rockchip rk3288, only word(32-bit) accesses are permitted for hdmi registers. Byte width accesses (writeb, readb) generate an imprecise external abort. Signed-off-by: Andy Yan --- drivers/gpu/drm/bridge/dw_hdmi.c | 57 ++-- 1 file changed, 55 insertions(+)

[PATCH V5 4/7] dw-hdmi: return defer if can't get ddc i2c adapter

2014-11-08 Thread Andy Yan
drm driver may probe before the i2c bus, so the driver should defer probing untill it is avaliable Signed-off-by: Andy Yan --- drivers/gpu/drm/bridge/dw_hdmi.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/bridge/dw_hdmi.c b/drivers/gpu/drm/bridge/dw_hdm

[PATCH V5 3/7] dw-hdmi: make checkpatch happy

2014-11-08 Thread Andy Yan
CHECK: Alignment should match open parenthesis + if ((hdmi->vic == 10) || (hdmi->vic == 11) || + (hdmi->vic == 12) || (hdmi->vic == 13) || CHECK: braces {} should be used on all arms of this statement + if (hdmi->hdmi_data.video_mode.mdvi) [...] + else { [...] Sign

[PATCH V5 2/7] dw-hdmi: move imx-hdmi to bridge/dw-hdmi

2014-11-08 Thread Andy Yan
the original imx hdmi driver is under staging/imx-drm, which depends on imx-drm, so move the imx hdmi drvier out to drm/bridge and rename imx-hdmi to dw-hdmi Signed-off-by: Andy Yan --- drivers/gpu/drm/bridge/Kconfig | 5 + drivers/gpu/drm/bridge/Makefile

[PATCH V5 1/7] imx-drm: imx-hdmi: split imx soc specific code from imx-hdmi

2014-11-08 Thread Andy Yan
imx6 and rockchip rk3288 and JZ4780 (Ingenic Xburst/MIPS) use the interface compatible Designware HDMI IP, but they also have some lightly difference, such as phy pll configuration, register width, 4K support, clk useage, and the crtc mux configuration is also platform specific. To reuse the imx h

[PATCH V5 0/7]dw-hdmi: convert imx hdmi to bridge/dw-hdmi

2014-11-08 Thread Andy Yan
We found freescale imx6 and rockchip rk3288 and Ingenic JZ4780 (Xburst/MIPS) use the interface compatible Designware HDMI IP, but they also have some lightly difference, such as phy pll configuration, register width(imx hdmi register is one byte, but rk3288 is 4 bytes width and can only access by w

[PATCH v5 06/24] Update MAINTAINERS and CREDITS files with amdkfd info

2014-11-08 Thread Joe Perches
On Sat, 2014-11-08 at 20:59 +0200, Oded Gabbay wrote: > I also noticed I forgot to modify drivers/gpu/drm/radeon/amdkfd/* to > drivers/gpu/drm/amd/amdkfd/* That should probably just be drivers/gpu/drm/adm/amdkfd/ The trailing star means if there are subdirectories, do not match them, just match t

[PATCH v5 06/24] Update MAINTAINERS and CREDITS files with amdkfd info

2014-11-08 Thread Joe Perches
On Sat, 2014-11-08 at 11:01 -0800, Josh Triplett wrote: > On Sat, Nov 08, 2014 at 08:37:27PM +0200, Oded Gabbay wrote: > > CREDITS | 7 +++ > > MAINTAINERS | 10 ++ > > 2 files changed, 17 insertions(+) > > Given the wide variety of folks who patch CREDITS and MAINTAINERS, might

[Bug 85647] Random radeonsi crashes with mesa 10.3.x

2014-11-08 Thread bugzilla-dae...@freedesktop.org
rg/archives/dri-devel/attachments/20141108/660fe2e0/attachment.html>

[PATCH V4 5/6] dw-hdmi: add support for multi byte register width access

2014-11-08 Thread Andy Yan
On 2014年11月07日 19:45, Lucas Stach wrote: > Am Freitag, den 07.11.2014, 19:35 +0800 schrieb Andy Yan: >> On rockchip rk3288, only word(32-bit) accesses are >> permitted for hdmi registers. Byte width access (writeb, >> readb) generates an imprecise external abort. >> >> Signed-off-by: Andy Y

[PATCH v5 06/24] Update MAINTAINERS and CREDITS files with amdkfd info

2014-11-08 Thread Josh Triplett
On Sat, Nov 08, 2014 at 08:37:27PM +0200, Oded Gabbay wrote: > CREDITS | 7 +++ > MAINTAINERS | 10 ++ > 2 files changed, 17 insertions(+) Given the wide variety of folks who patch CREDITS and MAINTAINERS, might I suggest adding CREDITS and MAINTAINERS themselves to the MAINTAINE

[PATCH v5 06/24] Update MAINTAINERS and CREDITS files with amdkfd info

2014-11-08 Thread Joe Perches
On Sat, 2014-11-08 at 20:37 +0200, Oded Gabbay wrote: [] > diff --git a/MAINTAINERS b/MAINTAINERS [] > @@ -610,6 +610,16 @@ F: drivers/crypto/geode* > F: drivers/video/fbdev/geode/ > F: arch/x86/include/asm/geode.h > > +AMD KFD (radeon extension) > +M: Oded Gabbay > +L: dri-devel

[PATCH] drm/irq: BUG_ON() -> WARN_ON()

2014-11-08 Thread Rob Clark
Let's make things a bit easier to debug when things go bad (potentially under console_lock). Signed-off-by: Rob Clark --- drivers/gpu/drm/drm_irq.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/drm_irq.c b/drivers/gpu/drm/drm_irq.c index 5ef03c2..c4edea9 1

[Bug 75276] Implement VGPR Register Spilling

2014-11-08 Thread bugzilla-dae...@freedesktop.org
s scrubbed... URL: <http://lists.freedesktop.org/archives/dri-devel/attachments/20141108/52a3ed98/attachment.html>

[Bug 85667] GPU lockup when playing H264 video with vlc on Radeon 3850HD and R600_uvd.bin loaded

2014-11-08 Thread bugzilla-dae...@freedesktop.org
- An HTML attachment was scrubbed... URL: <http://lists.freedesktop.org/archives/dri-devel/attachments/20141108/bd55166d/attachment-0001.html>

[PATCH] drm/i915: avoid deadlock on failure paths in __intel_framebuffer_create()

2014-11-08 Thread Alexey Khoroshilov
Since a8bb6818270c __intel_framebuffer_create() is called with struct_mutex held, so it should use drm_gem_object_unreference() instead of drm_gem_object_unreference_unlocked(). Found by Linux Driver Verification project (linuxtesting.org). Signed-off-by: Alexey Khoroshilov --- drivers/gpu/drm/

[PATCH] Replace mentions of "list_struct" to "list_head"

2014-11-08 Thread Andrey Utkin
There's no such thing as "list_struct". Signed-off-by: Andrey Utkin --- drivers/gpu/drm/radeon/mkregtable.c | 24 drivers/media/pci/cx18/cx18-driver.h | 2 +- include/linux/list.h | 34 +- include/linux/plist.h