[PATCH] gma500: Fix lid related crash

2012-07-16 Thread Patrik Jakobsson
On Wed, Jul 4, 2012 at 6:15 PM, Alan Cox wrote: > From: Alan Cox > > We set up the lid timer before we set up the backlight. On some devices > that causes a crash as we do a backlight change before or during the setup. > > As this fixes a crash on boot on some setups it ought to go in ASAP. > > S

gma500 suspend to ram fails (3.4)

2012-06-18 Thread Patrik Jakobsson
On Sun, Jun 17, 2012 at 12:03 PM, Mattia Dongili wrote: > 3.5-rc2 is not quite usable, I get a pile of warnings for > DRM_OBJECT_MAX_PROPERTY being too small and in the end I don't get > neither a console nor X. Give 3.5-rc3 a try. There is a patch that at least silences the DRM_OBJECT_MAX_PROPE

[PATCH] drm/gma500: add support for atom e6xx lpc lvds i2c

2014-12-01 Thread Patrik Jakobsson
On Fri, Sep 26, 2014 at 10:40 AM, Jan Safrata wrote: > add gpio bitbanging i2c adapter on LPC device of atom e6xx > gpu chipset to access lvds EDID > tested on SECO QuadMo747-E6xx-EXTREME Qseven platform > > Cc: Patrik Jakobsson > Signed-off-by: Jan Safrata > --- >

[PATCH] drm/fb-helper: Propagate errors from initial config failure

2014-12-17 Thread Patrik Jakobsson
re them. > > Cc: David Airlie > Cc: Daniel Vetter > Cc: Patrik Jakobsson > Cc: Rob Clark > Cc: Tomi Valkeinen > Cc: Alex Deucher > Cc: Christian König > Cc: Ben Skeggs > Signed-off-by: Thierry Reding Looks good Reviewed-by: Patrik Jakobsson > ---

[PATCH 1/1 linux-next] drm/gma500: replace 0 by NULL for pointer

2014-12-28 Thread Patrik Jakobsson
On Sat, Dec 27, 2014 at 4:37 PM, Fabian Frederick wrote: > Fix sparse warning: > drivers/gpu/drm/gma500/psb_drv.c: > 328:56: warning: Using plain integer as NULL pointer > > Signed-off-by: Fabian Frederick Reviewed-by: Patrik Jakobsson > --- > drivers/gpu/drm/gma500/

[PATCH] drm/gma500: remove stub .open/postclose

2014-02-02 Thread Patrik Jakobsson
On Wed, Jan 29, 2014 at 2:39 PM, David Herrmann wrote: > These are unused and can safely be dropped. DRM core verifies they're > non-NULL before it calls them. > > Cc: Patrik Jakobsson > Signed-off-by: David Herrmann > --- > drivers/gpu/drm/gma500/psb_drv.c | 11 ---

[GMA500] Valid VCO frequency range on GMA500 platform?

2013-02-10 Thread Patrik Jakobsson
On Fri, Feb 8, 2013 at 2:51 PM, "David M?ller (ELSOFT AG)" wrote: > > Hello > > I have a problem using a 1024x768 Eizo Monitor attached by DVI-D to a > system with GMA500 based graphics and running under Linux-3.7. > > As soon as the GMA500 driver is taking over control, the refresh > rate raises

[GMA500] Valid VCO frequency range on GMA500 platform?

2013-02-11 Thread Patrik Jakobsson
On Mon, Feb 11, 2013 at 2:15 PM, "David M?ller (ELSOFT AG)" wrote: > Hi Patrik > > Patrik Jakobsson wrote: >> The value of VCO_MIN comes from the Intel PRM for similar GPUs. >> >> Instead of changing VCO_MIN, could you try setting N_MIN=1, N_MAX=6 and >>

[PATCH] drm/i915: Set i9xx lvds clock limits according to specifications

2013-02-13 Thread Patrik Jakobsson
The Intel PRM says the M1 and M2 divisors must be in the range of 10-20 and 5-9. Since we do all calculations based on them being register values (which are subtracted by 2) we need to specify them accordingly. Signed-off-by: Patrik Jakobsson --- drivers/gpu/drm/i915/intel_display.c |4

[PATCH] drm/i915: Set i9xx sdvo clock limits according to specifications

2013-02-13 Thread Patrik Jakobsson
The Intel PRM says the M1 and M2 divisors must be in the range of 10-20 and 5-9. Since we do all calculations based on them being register values (which are subtracted by 2) we need to specify them accordingly. Signed-off-by: Patrik Jakobsson --- drivers/gpu/drm/i915/intel_display.c |4

[Intel-gfx] [PATCH] drm/i915: Set i9xx lvds clock limits according to specifications

2013-02-15 Thread Patrik Jakobsson
On Fri, Feb 15, 2013 at 1:51 PM, Chris Wilson wrote: > On Fri, Feb 15, 2013 at 12:18:49AM +, Chris Wilson wrote: >> On Wed, Feb 13, 2013 at 10:20:21PM +0100, Patrik Jakobsson wrote: >> > The Intel PRM says the M1 and M2 divisors must be in the range of 10-20 >> >

[Intel-gfx] [PATCH] drm/i915: Set i9xx lvds clock limits according to specifications

2013-02-16 Thread Patrik Jakobsson
On Fri, Feb 15, 2013 at 2:30 PM, Patrik Jakobsson wrote: > On Fri, Feb 15, 2013 at 1:51 PM, Chris Wilson > wrote: >> On Fri, Feb 15, 2013 at 12:18:49AM +, Chris Wilson wrote: >>> On Wed, Feb 13, 2013 at 10:20:21PM +0100, Patrik Jakobsson wrote: >>> >

[PATCH] gma500: Fix n, m1 and m2 clock limits for sdvo and lvds

2013-02-16 Thread Patrik Jakobsson
The values of n, m1 and m2 needs to be subtracted by 2 before writing them to the FP register. The dot clock calculation already thinks of these values in register form so we must also specify them as such. Signed-off-by: Patrik Jakobsson --- drivers/gpu/drm/gma500/psb_intel_display.c | 12

[GMA500] Valid VCO frequency range on GMA500 platform?

2013-02-17 Thread Patrik Jakobsson
On Mon, Feb 11, 2013 at 11:18 PM, Patrik Jakobsson wrote: > On Mon, Feb 11, 2013 at 2:15 PM, "David M?ller (ELSOFT AG)" > wrote: >> Hi Patrik >> >> Patrik Jakobsson wrote: >>> The value of VCO_MIN comes from the Intel PRM for similar GPUs. >>

[PATCH] gma500: Fix n, m1 and m2 clock limits for sdvo and lvds

2013-02-21 Thread Patrik Jakobsson
On Sat, Feb 16, 2013 at 1:04 PM, Patrik Jakobsson wrote: > The values of n, m1 and m2 needs to be subtracted by 2 before writing them to > the FP register. The dot clock calculation already thinks of these values in > register form so we must also specify them as such. > > Signed

[PATCH] gma500: medfield: Fix possible NULL pointer dereference

2013-02-25 Thread Patrik Jakobsson
} > > + dev = sender->dev; > + dev_priv = dev->dev_private; > + > /* Set default display backlight value to 85% (0xd8)*/ > mdfld_dsi_send_mcs_short(sender, write_display_brightness, 0xd8, 1, > true); Reviewed-by: Patrik Jakobsson

[PATCH 08/85] drivers: gpu: Mark function as static in cdv_intel_dp.c

2014-01-06 Thread Patrik Jakobsson
On Mon, Jan 6, 2014 at 4:02 PM, Rashika Kheria wrote: > Mark function cdv_intel_fixed_panel_mode() as static in > drm/gma500/cdv_intel_dp.c because it is not used outside this file. > > This eliminates the following warning in drm/gma500/cdv_intel_dp.c: > drivers/gpu/drm/gma500/cdv_intel_dp.c:680

[PATCH 0/8] Preparatory work for 2D acceleration

2014-01-21 Thread Patrik Jakobsson
interrupts. The old ioctls can go since nothing ever used them and they don't do what we need. These patches should be totally transparent to users. Patrik Jakobsson (8): drm/gma500: Make SGX MMU driver actually do something drm/gma500: Add support for SGX interrupts drm/gma500: Give MMU

[PATCH 1/8] drm/gma500: Make SGX MMU driver actually do something

2014-01-21 Thread Patrik Jakobsson
Old MMU code never wrote PDs or PTEs to any registers. Now we do, and that's a good start. Signed-off-by: Patrik Jakobsson --- drivers/gpu/drm/gma500/mmu.c | 258 --- drivers/gpu/drm/gma500/psb_drv.c | 4 +- drivers/gpu/drm/gma500/psb_drv.h | 10

[PATCH 6/8] drm/gma500: Always trap MMU page faults

2014-01-21 Thread Patrik Jakobsson
Signed-off-by: Patrik Jakobsson --- drivers/gpu/drm/gma500/psb_drv.c | 8 +--- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/drivers/gpu/drm/gma500/psb_drv.c b/drivers/gpu/drm/gma500/psb_drv.c index 89804fd..99e8f78 100644 --- a/drivers/gpu/drm/gma500/psb_drv.c +++ b/drivers

[PATCH 7/8] drm/gma500: Remove unused ioctls

2014-01-21 Thread Patrik Jakobsson
All of these ioctls are unused and most of them just duplicate what drm already provides. Signed-off-by: Patrik Jakobsson --- drivers/gpu/drm/gma500/gem.c | 44 --- drivers/gpu/drm/gma500/psb_drv.c | 196 - drivers/gpu/drm/gma500

[PATCH 8/8] drm/gma500: Add backing type and base align to psb_gem_create()

2014-01-21 Thread Patrik Jakobsson
We'll need this for our gem create ioctl in a later patch. Signed-off-by: Patrik Jakobsson --- drivers/gpu/drm/gma500/framebuffer.c | 2 +- drivers/gpu/drm/gma500/gem.c | 9 + drivers/gpu/drm/gma500/gem.h | 21 + drivers/gp

[PATCH 5/8] drm/gma500: Hook up the MMU

2014-01-21 Thread Patrik Jakobsson
Properly init the MMU and add MMU entries when adding GTT entries Signed-off-by: Patrik Jakobsson --- drivers/gpu/drm/gma500/gtt.c | 41 drivers/gpu/drm/gma500/psb_drv.c | 27 +- 2 files changed, 55 insertions(+), 13 deletions

[PATCH 2/8] drm/gma500: Add support for SGX interrupts

2014-01-21 Thread Patrik Jakobsson
Add 2D blit status and MMU fault interrupts to the IRQ handler. Signed-off-by: Patrik Jakobsson --- drivers/gpu/drm/gma500/psb_irq.c | 80 ++-- 1 file changed, 68 insertions(+), 12 deletions(-) diff --git a/drivers/gpu/drm/gma500/psb_irq.c b/drivers/gpu/drm

[PATCH 3/8] drm/gma500: Give MMU code it's own header file

2014-01-21 Thread Patrik Jakobsson
Signed-off-by: Patrik Jakobsson --- drivers/gpu/drm/gma500/mmu.c | 45 +-- drivers/gpu/drm/gma500/mmu.h | 93 drivers/gpu/drm/gma500/psb_drv.h | 45 +-- 3 files changed, 95 insertions(+), 88 deletions(-) create

[PATCH 4/8] drm/gma500: Add first piece of blitter code

2014-01-21 Thread Patrik Jakobsson
Right now, all we need to know about the blitter is that it's not doing anything that can be messed up when fiddling with MMU mappings. Signed-off-by: Patrik Jakobsson --- drivers/gpu/drm/gma500/Makefile | 1 + drivers/gpu/drm/gma500/blitter.c

[GIT PULL] gma500-fixes

2014-01-22 Thread Patrik Jakobsson
in the git repository at: git://github.com/patjak/drm-gma500 gma500-fixes for you to fetch changes up to d0dc4d2448c16a316a69a77bbaa7fd1348924958: drm/gma500: Lock struct_mutex around cursor updates (2014-01-22 14:07:18 +0100) -------- Patrik

[GIT PULL] gma500-next

2014-01-28 Thread Patrik Jakobsson
) Patrik Jakobsson (1): drm/gma500: Lock struct_mutex around cursor updates Rashika Kheria (1): drivers: gpu: Mark function as static in cdv_intel_dp.c drivers/gpu/drm/gma500/cdv_intel_dp.c | 2 +- drivers/gpu/drm/gma500/gma_display.c | 12 ++-- 2 files changed, 11 insertions(+), 3

[PATCH] gma500: Prevent endless loop in panel power up sequence

2012-05-13 Thread Patrik Jakobsson
Some devices don't have a panel connected to LVDS and thus will never power up. This patch checks the power sequence progress bits in PP_STATUS to prevent an endless loop on such devices. Signed-off-by: Patrik Jakobsson --- drivers/gpu/drm/gma500/psb_lid.c | 12 +--- 1 file chang

[PATCH] gma500: Prevent endless loop in panel power up sequence

2012-05-13 Thread Patrik Jakobsson
On Sun, May 13, 2012 at 2:17 PM, Patrik Jakobsson wrote: > Some devices don't have a panel connected to LVDS and thus will never power > up. > This patch checks the power sequence progress bits in PP_STATUS to prevent an > endless loop on such devices. "gma500: address

[PATCH] gma500: Fix hardware cursor support for poulsbo

2012-05-13 Thread Patrik Jakobsson
devices that has this requirement. Signed-off-by: Patrik Jakobsson --- drivers/gpu/drm/gma500/cdv_device.c|1 + drivers/gpu/drm/gma500/mdfld_device.c |1 + drivers/gpu/drm/gma500/oaktrail_device.c |1 + drivers/gpu/drm/gma500/psb_device.c|1 + drivers/gpu/drm

[PATCH] gma500: Prevent endless loop in panel power up sequence

2012-05-13 Thread Patrik Jakobsson
On Sun, May 13, 2012 at 3:59 PM, Alan Cox wrote: > We should never get there. In fact we don't want to because if there is > np panel the backlight is not initialised either. > > I'll take a look. I've just fixed a related problem where we wrongly > invoked the lid code on non Pouslbo devices. Ok

[PATCH] gma500: Fix hardware cursor support for poulsbo

2012-05-13 Thread Patrik Jakobsson
On Sun, May 13, 2012 at 3:53 PM, Paul Menzel wrote: >> The patch also adds a mark in chip ops so we can identify devices that has >> this > > s,has,have, Noted... > How can it be verified, that the hardware cursor is working? As Alan says, use the modesetting driver from: git://anongit.freedes

[PATCH] gma500: Fix hardware cursor support for poulsbo

2012-05-17 Thread Patrik Jakobsson
On Wed, May 16, 2012 at 11:01 PM, Guillaume Cl?ment wrote: > It looks like on others parts of the kernel, kunmap is fed the same input as > kmap and not the return value of kmap. Good catch and thank you for testing, I blindly assumed the alloc / free semantics. Alan, I'll send you a new versio

[PATCH] drm/gma500: fix backlight hotkeys behaviour on cedarview netbooks

2013-05-02 Thread Patrik Jakobsson
On Thu, May 2, 2013 at 2:39 PM, Anisse Astier wrote: > On Wed, 24 Apr 2013 23:39:58 +0200, Patrik Jakobsson gmail.com> wrote : > >> On Wed, Apr 24, 2013 at 5:36 PM, Anisse Astier wrote: >> > Backlight hotkeys weren't working before on certain cedartrail laptops.

gma500: display displaced vertically by a few lines

2013-05-13 Thread Patrik Jakobsson
On Mon, May 13, 2013 at 3:02 PM, Holger Schurig wrote: > I installed xserver-xorg-video-modesettings (from Debian Wheezy) and also > updated xserver-core, -evdev, -vesa and -fbdev. The I started X11. Seems > that Debian doesn't yet contain the addition of the modesettings driver to > the auto-pro

gma500: display displaced vertically by a few lines

2013-05-14 Thread Patrik Jakobsson
On Tue, May 14, 2013 at 2:13 PM, Holger Schurig wrote: > Okay, I found the patch that produces my regression: > > > From bc794829141f28e14fe7d0e07e35870bd9aee78c Mon Sep 17 00:00:00 2001 > From: Patrik Ja

gma500: display displaced vertically by a few lines

2013-05-14 Thread Patrik Jakobsson
On Tue, May 14, 2013 at 3:07 PM, Holger Schurig wrote: > Patrick, have a > > Tested-by: Holger Schurig > > for this. I'll add that. > As for your suggestion: > >> though I recommend you use the modesetting driver because you get >> a hardware accelerated cursor. > > The current Debian Wheezy x

[PATCH] drm/gma500: Add fb gtt offset to fb base

2013-05-20 Thread Patrik Jakobsson
Old code assumed framebuffer starts at base of stolen memory. Since the addition of hardware cursors, this might not be true anymore so add the gtt offset to the calculation. Reported-by: Holger Schurig Tested-by: Holger Schurig CC: Holger Schurig Signed-off-by: Patrik Jakobsson --- drivers

[PATCH 1/3] drm/gma500: Rework pin/unpin to prevent memory leak

2013-05-20 Thread Patrik Jakobsson
://bugzilla.novell.com/show_bug.cgi?id=812113 Signed-off-by: Patrik Jakobsson --- drivers/gpu/drm/gma500/gem.c | 44 ++ drivers/gpu/drm/gma500/gtt.c | 5 drivers/gpu/drm/gma500/psb_intel_display.c | 17 3 files changed, 45

[PATCH 2/3] drm/gma500: Fix mem leak of cursor objects on Poulsbo

2013-05-20 Thread Patrik Jakobsson
All dumb allocated buffers are now automatically pinned so no extra pinning is needed. Also properly unreference gem objects so they can be freed up properly. This only affects Poulsbo chips. Signed-off-by: Patrik Jakobsson --- drivers/gpu/drm/gma500/psb_intel_display.c | 49

[PATCH 3/3] drm/gma500: Fix mem leak of cursor objects on Cedarview

2013-05-20 Thread Patrik Jakobsson
All dumb allocated buffers are now automatically pinned so no extra pinning is needed. Also properly unreference gem objects so they can be freed up properly. This only affects Cedarview chips. Signed-off-by: Patrik Jakobsson --- drivers/gpu/drm/gma500/cdv_intel_display.c | 39

[PATCH 2/3] drm/gma500: Fix cursor gem obj referencing on psb

2013-05-26 Thread Patrik Jakobsson
failure. This patch only affects Poulsbo chips. Signed-off-by: Patrik Jakobsson --- drivers/gpu/drm/gma500/psb_intel_display.c | 19 +-- 1 file changed, 13 insertions(+), 6 deletions(-) diff --git a/drivers/gpu/drm/gma500/psb_intel_display.c b/drivers/gpu/drm/gma500

[PATCH 3/3] drm/gma500: Fix cursor gem obj referencing on cdv

2013-05-26 Thread Patrik Jakobsson
failure. This patch only affects Cedarview chips. Signed-off-by: Patrik Jakobsson --- drivers/gpu/drm/gma500/cdv_intel_display.c | 16 +++- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/drivers/gpu/drm/gma500/cdv_intel_display.c b/drivers/gpu/drm/gma500

[PATCH 1/3] drm/gma500: Unpin framebuffer when destroying it

2013-05-26 Thread Patrik Jakobsson
?id=889511 Bugzilla: https://bugzilla.novell.com/show_bug.cgi?id=812113 Signed-off-by: Patrik Jakobsson --- drivers/gpu/drm/gma500/framebuffer.c | 5 + 1 file changed, 5 insertions(+) diff --git a/drivers/gpu/drm/gma500/framebuffer.c b/drivers/gpu/drm/gma500/framebuffer.c index 8b1b6d9..1a11b69 10

[PATCH 1/3] drm/gma500: Unpin framebuffer when destroying it

2013-05-26 Thread Patrik Jakobsson
On Sun, May 26, 2013 at 9:07 PM, Daniel Vetter wrote: > On Sun, May 26, 2013 at 08:03:53PM +0200, Patrik Jakobsson wrote: >> A framebuffer is pinned when it's set as pipe base, so we also need to >> unpin it when it's destroyed. Some framebuffers are never used as >&g

[PATCH 00/11] drm/gma500: Minnowboard support

2013-11-09 Thread Patrik Jakobsson
blems. Oaktrail on the other hand might be affected by LVDS and watermark changes. Patrik Jakobsson (11): drm/gma500: Add chip specific sdvo masks drm/gma500: Add support for aux pci vdc device drm/gma500: Add aux device support for gmbus drm/gma500/mrst: Add SDVO clock calculation drm/g

[PATCH 04/11] drm/gma500/mrst: Add SDVO clock calculation

2013-11-09 Thread Patrik Jakobsson
We start off by adding SDVO limits and converting all limits to the generic gma_limit_t stuct. Then we separate clock calculations for LVDS and SDVO. This will be cleaned up later but keep it simple for now. Signed-off-by: Patrik Jakobsson --- drivers/gpu/drm/gma500/oaktrail_crtc.c | 175

[PATCH 05/11] drm/gma500/mrst: Add aux register writes when programming pipe

2013-11-09 Thread Patrik Jakobsson
On SDVO pipes (always Pipe B on mrst) we have to sequentially write the aux vdc. We might be able to skip programming the primary vdc in some/most places but we don't care about that now. Signed-off-by: Patrik Jakobsson --- drivers/gpu/drm/gma500/oaktrail_crtc.c

[PATCH 02/11] drm/gma500: Add support for aux pci vdc device

2013-11-09 Thread Patrik Jakobsson
Signed-off-by: Patrik Jakobsson --- drivers/gpu/drm/gma500/psb_drv.c | 32 +++- drivers/gpu/drm/gma500/psb_drv.h | 21 - 2 files changed, 51 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/gma500/psb_drv.c b/drivers/gpu/drm/gma500

[PATCH 06/11] drm/gma500/mrst: Properly route oaktrail hdmi hooks

2013-11-09 Thread Patrik Jakobsson
Since we can have SDVO on Pipe B we better check the output type instead of pipe number for Oaktrail HDMI. Signed-off-by: Patrik Jakobsson --- drivers/gpu/drm/gma500/oaktrail_crtc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/gma500/oaktrail_crtc.c b

[PATCH 01/11] drm/gma500: Add chip specific sdvo masks

2013-11-09 Thread Patrik Jakobsson
Signed-off-by: Patrik Jakobsson --- drivers/gpu/drm/gma500/cdv_device.c | 1 + drivers/gpu/drm/gma500/framebuffer.c | 2 +- drivers/gpu/drm/gma500/oaktrail_device.c | 1 + drivers/gpu/drm/gma500/psb_device.c | 1 + drivers/gpu/drm/gma500/psb_drv.h | 1 + 5 files changed, 5

[PATCH 08/11] drm/gma500/mrst: Replace WMs and chickenbits with values from EMGD

2013-11-09 Thread Patrik Jakobsson
For the minnowboard to work the values found in EMGD are required. This might break Oaktrail but without hardware to test with I cannot really tell (and do not really care). Signed-off-by: Patrik Jakobsson --- drivers/gpu/drm/gma500/oaktrail_crtc.c | 13 ++--- 1 file changed, 6

[PATCH 11/11] drm/gma500/mrst: Add SDVO to output init

2013-11-09 Thread Patrik Jakobsson
Signed-off-by: Patrik Jakobsson --- drivers/gpu/drm/gma500/oaktrail_device.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/gpu/drm/gma500/oaktrail_device.c b/drivers/gpu/drm/gma500/oaktrail_device.c index d7c54b2..27d3875 100644 --- a/drivers/gpu/drm/gma500/oaktrail_device.c

[PATCH 10/11] drm/gma500/mrst: Don't blindly guess a mode for LVDS

2013-11-09 Thread Patrik Jakobsson
Previously we always had something hooked up to LVDS so we tried very hard to get a mode. With the Minnowboard this is no longer the case. If no mode can be found over DDC or the firmware we just ignore LVDS. Signed-off-by: Patrik Jakobsson --- drivers/gpu/drm/gma500/oaktrail_lvds.c | 30

[PATCH 09/11] drm/gma500/mrst: Setup GMBUS for oaktrail/mrst

2013-11-09 Thread Patrik Jakobsson
Signed-off-by: Patrik Jakobsson --- drivers/gpu/drm/gma500/oaktrail_device.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/gpu/drm/gma500/oaktrail_device.c b/drivers/gpu/drm/gma500/oaktrail_device.c index 8079851..d7c54b2 100644 --- a/drivers/gpu/drm/gma500/oaktrail_device.c

[PATCH 03/11] drm/gma500: Add aux device support for gmbus

2013-11-09 Thread Patrik Jakobsson
Signed-off-by: Patrik Jakobsson --- drivers/gpu/drm/gma500/intel_gmbus.c | 90 1 file changed, 49 insertions(+), 41 deletions(-) diff --git a/drivers/gpu/drm/gma500/intel_gmbus.c b/drivers/gpu/drm/gma500/intel_gmbus.c index 62cd42e..566d330 100644 --- a

[PATCH 07/11] drm/gma500/mrst: Add aux register writes to SDVO

2013-11-09 Thread Patrik Jakobsson
This turned out to be tricky. Writing to SDVOB on the primary vdc also writes to SDVOB on the aux vdc, but reading it back on the primary vdc always fails. Basically we never read from the primary vdc since we will end up trashing the aux vdc. Signed-off-by: Patrik Jakobsson --- drivers/gpu/drm

[GIT PULL] gma500-next

2013-11-10 Thread Patrik Jakobsson
1000) are available in the git repository at: git://github.com/patjak/drm-gma500 gma500-next for you to fetch changes up to cd3fdbe853c47c5890d5362363b59504c2e5fb5f: drm/gma500/mrst: Add SDVO to output init (2013-11-08 16:23:19 +0100) -----

[BUG] gma500: sleeping function called from invalid context at kernel/mutex.c:413

2013-11-13 Thread Patrik Jakobsson
On Wed, Nov 13, 2013 at 4:49 PM, Holger Schurig wrote: > Kernel: 3.10.19 > > From time to time, when I booted, I had a completely dark screen (with > kernel command line quiet) and a non-blinking cursor. I wondered if > that was perhaps gma500. So I turned on various debug checks. Then > I've got

[PATCH 3/9] drm/gma500: constify all struct drm_*_helper funcs pointers

2015-03-11 Thread Patrik Jakobsson
_funcs * > + const struct drm_connector_helper_funcs * > ) > > @@ > @@ > ( > const struct drm_plane_helper_funcs * > | > - struct drm_plane_helper_funcs * > + const struct drm_plane_helper_funcs * > ) > > Signed-off-by: Jani Nikula Reviewed-by: Patrik Jak

[PATCH] gma500:Remove functions that are now deprecated and move to the newer functions in drm_dp_helper.c

2015-05-05 Thread Patrik Jakobsson
On Tue, May 5, 2015 at 12:29 AM, Nicholas Krause wrote: > This removes the deprecated functions,i2c_dp_aux_add_bus and > i2c_dp_aux_prepare_bus and the only call in the function, > cdv_intel_dp_i2c_init to i2c_dp_aux_add_bus respectfully. > The call and use of these functions is now replaced along

[PATCH] gma500:Remove functions that are now deprecated and move to the newer functions in drm_dp_helper.c

2015-05-11 Thread Patrik Jakobsson
om wrote: >>> > On Sun, May 10, 2015 at 01:48:14PM -0400, nick wrote: >>> >> >>> >> >>> >> On 2015-05-10 01:04 PM, patrik.r.jakobsson at gmail.com wrote: >>> >>> On Tue, May 05, 2015 at 11:17:07AM -0400, nick wrote: >>&

[linux-4.4-rc1/drivers/gpu/drm/gma500/mdfld_dsi_pkg_sender.c:206: possible missing comma ?

2015-11-17 Thread Patrik Jakobsson
On Tue, Nov 17, 2015 at 10:23 PM, David Binderman wrote: > Hello there, > > [linux-4.4-rc1/drivers/gpu/drm/gma500/mdfld_dsi_pkg_sender.c:206]: (error) > Array 'dsi_errors[31]' accessed at index 31, which is out of bounds. > > I looks to me like array dsi_errors is badly laid out: > > "LP Gene

[PATCH] drm/gma500: fix double freeing

2015-10-01 Thread Patrik Jakobsson
On Wed, Sep 30, 2015 at 8:12 AM, Sudip Mukherjee wrote: > On Tue, Sep 29, 2015 at 03:20:35PM +0200, Patrik Jakobsson wrote: >> On Thu, Sep 24, 2015 at 5:57 PM, Sudip Mukherjee >> wrote: >> > On Wed, Sep 09, 2015 at 06:20:40PM +0530, Sudip Mukherjee wrote: >> >>

[PATCH] drm/gma500: fix double freeing

2015-10-06 Thread Patrik Jakobsson
On Fri, Oct 2, 2015 at 5:56 PM, Sudip Mukherjee wrote: > On Thu, Oct 01, 2015 at 07:07:33PM +0200, Patrik Jakobsson wrote: >> On Wed, Sep 30, 2015 at 8:12 AM, Sudip Mukherjee >> wrote: >> > On Tue, Sep 29, 2015 at 03:20:35PM +0200, Patrik Jakobsson wrote: >> >

[PATCH v2] drm/gma500: fix double freeing

2015-10-07 Thread Patrik Jakobsson
ased the helper. So remove the one which frees > backing before the helper is released. > While at it the error labels are also renamed to give a meaningful > name. > > Cc: Patrik Jakobsson > Signed-off-by: Sudip Mukherjee > --- > > Hi Patrik, > If you donot like the la

[PATCH] MAINTAINERS: Add myself as maintainer for the gma500 driver

2015-10-12 Thread Patrik Jakobsson
Signed-off-by: Patrik Jakobsson --- MAINTAINERS | 8 1 file changed, 8 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 0e1abe8..c7decf7 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -3368,6 +3368,14 @@ S: Maintained F: drivers/gpu/drm/imx/ F: Documentation

[PATCH RESEND v2 15/25] drm/gma500: Use new drm_fb_helper functions

2015-07-22 Thread Patrik Jakobsson
On Wed, Jul 22, 2015 at 11:28 AM, Archit Taneja wrote: > Use the newly created wrapper drm_fb_helper functions instead of calling > core fbdev functions directly. They also simplify the fb_info creation. > > v2: > - removed unused variable 'device' in psbfb_create >

[PATCH 1/1]drm/gma500: mdfld: Remove unncessary code

2015-06-24 Thread Patrik Jakobsson
On Wed, Jun 24, 2015 at 9:10 AM, Maninder Singh wrote: > sender is dereferrenced before NULL check > struct drm_device *dev = sender->dev; > > and due to this we get warning during static analysis: > warn: variable dereferenced before check 'sender' > > __read_panel_data Function is called by mdf

[PATCH 1/1]drm/gma500: mdfld: Remove unncessary code

2015-06-24 Thread Patrik Jakobsson
On Wed, Jun 24, 2015 at 10:54 AM, Maninder Singh wrote: > Hi, > >>> - if (!sender || !data_out || !len_out) { >>> - DRM_ERROR("Invalid parameters\n"); >>> - return -EINVAL; >>> - } >>> - >> >>I would prefer to have these kind of checks where it actually matt

[PATCH v2] drm/gma500: mdfld: Remove unncessary check

2015-06-24 Thread Patrik Jakobsson
g_sender *sender, u8 cmd, > u32 *data, u16 len, bool hs) > { > - if (!sender || !data || !len) { > - DRM_ERROR("Invalid parameters\n"); > - return -EINVAL; > - } > - > return __read_panel_data(sender, MIPI_DSI_DCS_READ, &cmd, 1, > data, len, hs); > } > -- > 1.7.9.5 > Reviewed-by: Patrik Jakobsson

[PATCH] drm/gma500: add missing drm_irq_uninstall

2015-01-21 Thread Patrik Jakobsson
5d f4 8b 7d fc 89 ec 5d c3 > 55 8d 2c 24 8d 64 24 f8 89 75 f8 89 7d fc 89 c6 89 d7 ac 75 08 84 c0 75 > f8 31 c0 eb 04 19 c > EIP: [] strcmp+0x13/0x30 SS:ESP 0068:f6d55b50 > CR2: f858cf08 > ---[ end trace ec712b3b117c8e34 ]--- > > Signed-off-by: Jan Safrata > Cc: Patrik J

drm/gma500: oaktrail lvds cleanup fixes

2015-01-21 Thread Patrik Jakobsson
seven platform. > > Signed-off-by: Jan Safrata > Cc: Patrik Jakobsson Reviewed-by: Patrik Jakobsson > --- > drivers/gpu/drm/gma500/oaktrail_lvds.c | 4 +++- > drivers/gpu/drm/gma500/psb_intel_lvds.c | 6 +- > 2 files changed, 8 insertions(+), 2 deletions(-) &g

[PATCH] drm/tegra: don't take dev->struct_mutex in mmap offset ioctl

2015-10-15 Thread Patrik Jakobsson
t; variant (since the drm core still cares). > > v2: Finally get rid of the copypasta from another commit in this > commit message. And convert to _unlocked like we need to (Patrik). > > Cc: Patrik Jakobsson > Cc: Thierry Reding > Signed-off-by: Daniel Vetter Reviewed-by: Patr

[PATCH 12/25] drm/gma500: Use correct unref in the gem bo create function

2015-10-15 Thread Patrik Jakobsson
t; > Signed-off-by: Daniel Vetter Signed-off-by: Patrik Jakobsson > --- > drivers/gpu/drm/gma500/gem.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/gpu/drm/gma500/gem.c b/drivers/gpu/drm/gma500/gem.c > index c707fa6fca85..e3bdc8b1c

[PATCH 13/25] drm/gma500: Drop dev->struct_mutex from modeset code

2015-10-15 Thread Patrik Jakobsson
with modeset locks already. > > The only important bit is to switch all gem_obj_unref calls to the > _unlocked variant. > > Signed-off-by: Daniel Vetter Signed-off-by: Patrik Jakobsson > --- > drivers/gpu/drm/gma500/gma_display.c | 13 +++-- > 1 file changed, 3 insertio

[PATCH 14/25] drm/gma500: Drop dev->struct_mutex from fbdev init/teardown code

2015-10-15 Thread Patrik Jakobsson
witch obj_unref to _unlocked variants. > > Signed-off-by: Daniel Vetter Signed-off-by: Patrik Jakobsson > --- > drivers/gpu/drm/gma500/framebuffer.c | 12 ++-- > 1 file changed, 2 insertions(+), 10 deletions(-) > > diff --git a/drivers/gpu/drm/gma500/framebuffer.c

[PATCH 15/25] drm/gma500: Drop dev->struct_mutex from mmap offset function

2015-10-15 Thread Patrik Jakobsson
: Daniel Vetter +1 for removing that stale comment as well Signed-off-by: Patrik Jakobsson > --- > drivers/gpu/drm/gma500/gem.c | 13 +++-- > 1 file changed, 3 insertions(+), 10 deletions(-) > > diff --git a/drivers/gpu/drm/gma500/gem.c b/drivers/gpu/drm/gma500/gem.c

[PATCH] gpu: drm: gma500: mmu.c: Remove unused function

2015-01-01 Thread Patrik Jakobsson
On Thu, Jan 1, 2015 at 5:55 PM, Rickard Strandqvist wrote: > Remove the function psb_get_default_pd_addr() that is not used anywhere. > > This was partially found by using a static code analysis program called > cppcheck. > > Signed-off-by: Rickard Strandqvist Hej Rickard I'd like to keep that

[PATCH 2/5] drm/gem: add shmem get/put page helpers

2013-07-08 Thread Patrik Jakobsson
6 +1730,10 @@ void drm_gem_free_mmap_offset(struct drm_gem_object > *obj); > int drm_gem_create_mmap_offset(struct drm_gem_object *obj); > int drm_gem_create_mmap_offset_size(struct drm_gem_object *obj, size_t size); > > +struct page **drm_gem_get_pages(struct drm_gem_object *obj, gfp_t gfpmask); > +void drm_gem_put_pages(struct drm_gem_object *obj, struct page **pages, > + bool dirty, bool accessed); > + > struct drm_gem_object *drm_gem_object_lookup(struct drm_device *dev, > struct drm_file *filp, > u32 handle); > -- > 1.8.1.4 Looks good otherwise, so for all 5 patches: Reviewed-by: Patrik Jakobsson

[PATCH 2/5] drm/gem: add shmem get/put page helpers

2013-07-09 Thread Patrik Jakobsson
On Tue, Jul 9, 2013 at 1:07 AM, Rob Clark wrote: > On Mon, Jul 8, 2013 at 4:18 PM, Daniel Vetter wrote: >> On Mon, Jul 08, 2013 at 02:56:31PM -0400, Rob Clark wrote: >>> On Mon, Jul 8, 2013 at 4:45 AM, Patrik Jakobsson >>> wrote: >>> > On Sun, J

[PATCH 1/2] drm/gem: simplify object initialization

2013-07-11 Thread Patrik Jakobsson
_init(). > That isn't actually necessary for now, but might be in the future. > > Cc: Patrik Jakobsson > Signed-off-by: David Herrmann > --- > drivers/gpu/drm/drm_gem.c | 20 > drivers/gpu/drm/gma500/framebuffer.c | 6 ++ > dri

[PATCH 00/30] drm/gma500: Unify common chip functionality

2013-07-16 Thread Patrik Jakobsson
nd Poulsbo specific things. To differentiate between these we now use gma_* for generic stuff and keep psb_intel_* for the chip specifics. Eventually we'll just use gma_*, psb_*, cdv_*, etc... for everything. Patrik Jakobsson (30): drm/gma500: Add generic code for clock calculation drm/gma50

[PATCH 01/30] drm/gma500: Add generic code for clock calculation

2013-07-16 Thread Patrik Jakobsson
This patch aims to unify the bits and pieces that are common (or similar enough) for pll clock calculations. Nothing makes use of this code yet That will come in later patches. Signed-off-by: Patrik Jakobsson --- drivers/gpu/drm/gma500/Makefile| 1 + drivers/gpu/drm/gma500

[PATCH 02/30] drm/gma500/cdv: Make use of the generic clock code

2013-07-16 Thread Patrik Jakobsson
Add chip specific callbacks for the generic and non-generic clock calculation code. Also remove as much dupilicated code as possible. Signed-off-by: Patrik Jakobsson --- drivers/gpu/drm/gma500/cdv_device.c| 1 + drivers/gpu/drm/gma500/cdv_device.h| 1 + drivers/gpu/drm

[PATCH 03/30] drm/gma500: Make use of gma_pipe_has_type()

2013-07-16 Thread Patrik Jakobsson
Replace any use of xxx_intel_pipe_has_type() with the generic gma_pipe_has_type() function. Poulsbo still use it but that will be removed when we rip out psb_intel_pipe_has_type(). Signed-off-by: Patrik Jakobsson --- drivers/gpu/drm/gma500/cdv_intel_display.c | 8 drivers/gpu/drm

[PATCH 04/30] drm/gma500/psb: Make use of generic clock code

2013-07-16 Thread Patrik Jakobsson
Add chip specific callbacks for the generic and non-generic clock calculation code. Also remove as much dupilicated code as possible. Signed-off-by: Patrik Jakobsson --- drivers/gpu/drm/gma500/psb_device.c| 3 +- drivers/gpu/drm/gma500/psb_device.h| 24 drivers/gpu/drm

[PATCH 05/30] drm/gma500: Remove the unused psb_intel_display.h

2013-07-16 Thread Patrik Jakobsson
Signed-off-by: Patrik Jakobsson --- drivers/gpu/drm/gma500/psb_intel_display.h | 23 --- 1 file changed, 23 deletions(-) delete mode 100644 drivers/gpu/drm/gma500/psb_intel_display.h diff --git a/drivers/gpu/drm/gma500/psb_intel_display.h b/drivers/gpu/drm/gma500

[PATCH 06/30] drm/gma500: Add generic pipe/crtc functions

2013-07-16 Thread Patrik Jakobsson
Signed-off-by: Patrik Jakobsson --- drivers/gpu/drm/gma500/gma_display.c | 326 +++ drivers/gpu/drm/gma500/gma_display.h | 14 ++ 2 files changed, 340 insertions(+) diff --git a/drivers/gpu/drm/gma500/gma_display.c b/drivers/gpu/drm/gma500/gma_display.c index

[PATCH 07/30] drm/gma500/cdv: Use identical generic crtc funcs

2013-07-16 Thread Patrik Jakobsson
This patch makes cdv use the gma_xxx counterparts that are identical. I took them in one sweep as they should not cause any regressions. Signed-off-by: Patrik Jakobsson --- drivers/gpu/drm/gma500/cdv_device.h| 9 drivers/gpu/drm/gma500/cdv_intel_display.c | 74

[PATCH 08/30] drm/gma500: Make all chips use gma_wait_for_vblank

2013-07-16 Thread Patrik Jakobsson
Also remove the duplicated oaktrail function. Signed-off-by: Patrik Jakobsson --- drivers/gpu/drm/gma500/cdv_intel_dp.c| 3 ++- drivers/gpu/drm/gma500/mdfld_intel_display.c | 6 +++--- drivers/gpu/drm/gma500/oaktrail_crtc.c | 6 +++--- drivers/gpu/drm/gma500/oaktrail_hdmi.c

[PATCH 09/30] drm/gma500/psb: Use identical generic crtc funcs

2013-07-16 Thread Patrik Jakobsson
This patch makes psb use the gma_xxx counterparts that are identical. I took them in one sweep as they should not cause any regressions. Signed-off-by: Patrik Jakobsson --- drivers/gpu/drm/gma500/psb_intel_display.c | 41 +++--- 1 file changed, 4 insertions(+), 37

[PATCH 10/30] drm/gma500/cdv: Convert to gma_pipe_set_base()

2013-07-16 Thread Patrik Jakobsson
Signed-off-by: Patrik Jakobsson --- drivers/gpu/drm/gma500/cdv_intel_display.c | 77 +- 1 file changed, 1 insertion(+), 76 deletions(-) diff --git a/drivers/gpu/drm/gma500/cdv_intel_display.c b/drivers/gpu/drm/gma500/cdv_intel_display.c index ae57b93..9eee57b 100644

[PATCH 12/30] drm/gma500/cdv: Convert to gma_crtc_dpms()

2013-07-16 Thread Patrik Jakobsson
Signed-off-by: Patrik Jakobsson --- drivers/gpu/drm/gma500/cdv_intel_display.c | 137 + drivers/gpu/drm/gma500/gma_display.c | 4 - drivers/gpu/drm/gma500/gma_display.h | 5 ++ 3 files changed, 8 insertions(+), 138 deletions(-) diff --git a/drivers

[PATCH 11/30] drm/gma500: Add IS_CDV() macro

2013-07-16 Thread Patrik Jakobsson
This macro is needed for Cedarview specific stuff in the generic gma functions. Signed-off-by: Patrik Jakobsson --- drivers/gpu/drm/gma500/psb_drv.h | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpu/drm/gma500/psb_drv.h b/drivers/gpu/drm/gma500/psb_drv.h index eeed88c..ed1e567

[PATCH 14/30] drm/gma500/psb: Convert to gma_pipe_set_base()

2013-07-16 Thread Patrik Jakobsson
Signed-off-by: Patrik Jakobsson --- drivers/gpu/drm/gma500/psb_intel_display.c | 73 +- 1 file changed, 1 insertion(+), 72 deletions(-) diff --git a/drivers/gpu/drm/gma500/psb_intel_display.c b/drivers/gpu/drm/gma500/psb_intel_display.c index 0642e7d..ca041c6 100644

[PATCH 13/30] drm/gma500/cdv: Convert to generic gamma funcs

2013-07-16 Thread Patrik Jakobsson
There is a slight difference in how we pick the palette register in the generic function but we should be ok as long as psb_intel_crtc->pipe and the register map is sane. Signed-off-by: Patrik Jakobsson --- drivers/gpu/drm/gma500/cdv_intel_display.c | 70 +- 1 f

[PATCH 15/30] drm/gma500: Convert to generic gamma funcs

2013-07-16 Thread Patrik Jakobsson
This takes care of the remaining chips using the old generic code. We don't check if the pipe number is valid but the old code peeked in the register map before checking anyways so just ignore it. Signed-off-by: Patrik Jakobsson --- drivers/gpu/drm/gma500/mdfld_intel_display.c | 2 +- dr

[PATCH 18/30] drm/gma500/mdfld: Use identical generic crtc funcs

2013-07-16 Thread Patrik Jakobsson
Use the generic gma functions instead of the medfield functions where they are identical. Signed-off-by: Patrik Jakobsson --- drivers/gpu/drm/gma500/mdfld_intel_display.c | 25 +++-- 1 file changed, 3 insertions(+), 22 deletions(-) diff --git a/drivers/gpu/drm/gma500

<    1   2   3   4   5   6   7   >