intel-gfx.lists.freedesktop.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/3] fbdev no more!
@ 2013-06-16 14:57 Daniel Vetter
  2013-06-16 14:57 ` [PATCH 1/3] drm: Add separate Kconfig option for fbdev helpers Daniel Vetter
                   ` (5 more replies)
  0 siblings, 6 replies; 11+ messages in thread
From: Daniel Vetter @ 2013-06-16 14:57 UTC (permalink / raw)
  To: DRI Development; +Cc: Daniel Vetter, Intel Graphics Development

Hi all,

So I've taken a look again at the locking mess in our fbdev support and cried.
Fixing up the console_lock mess around the fbdev notifier will be real work,
semanatically the fbdev layer does lots of stupid things (like the radeon resume
issue I've just debugged) and the panic notifier is pretty much a lost cause.

So I've decided to instead rip it all out. It seems to work \o/

Of course a general purpose distro propably wants David's kmscon for any
fallbacks needs and a system compositor to ditch the VT subsystem - atm my
machine here runs with the dummy console so that VT switching between different
X sessions still works ;-)

Oh and: At least fedora's boot splash seems to be unhappy about the lack of an
fbdev (it doesn't seem to do anything), which breaks early disk encryption a
bit. The black screen itself shouldn't be a big issue at least for i915, since
with all the fastboot work we can just hang onto the current config and
framebuffer (one missing patch from Chris for the fb preservartion). So as long
as the bios/grub put up something nice, it'll look ok.

So just a small step here really, but imo into the right direction. Now, please
bring on the flames!

Aside: We can hide the #ifdef mess a bit better in drm/i915 I think, but I'd
like to wait for a bit of feedback first. And one more: This also removes the
console_lock completely from our critical path in suspend/resume!

One thing I haven't wasted a single thought about is kgdb and panic notifier
support. But since the current code is pretty decently broken already (we have
_tons_ of mutex grabbing and waits in there) I don't think people care that much
about it anyway. Using a sprite to smash the kgdb/panic output on top of
whatever's currently displaying might be an approach.

Cheers, Daniel

Daniel Vetter (3):
  drm: Add separate Kconfig option for fbdev helpers
  drm/i915: Kconfig option to disable the legacy fbdev support
  drm/i915: rename intel_fb.c to intel_fbdev.c

 drivers/gpu/drm/Kconfig              |  57 ++-----
 drivers/gpu/drm/Makefile             |   3 +-
 drivers/gpu/drm/ast/Kconfig          |   1 +
 drivers/gpu/drm/cirrus/Kconfig       |   1 +
 drivers/gpu/drm/exynos/Kconfig       |   1 +
 drivers/gpu/drm/gma500/Kconfig       |   1 +
 drivers/gpu/drm/i915/Kconfig         |  56 +++++++
 drivers/gpu/drm/i915/Makefile        |   3 +-
 drivers/gpu/drm/i915/i915_debugfs.c  |   4 +-
 drivers/gpu/drm/i915/i915_dma.c      |   8 +-
 drivers/gpu/drm/i915/i915_drv.h      |   2 +
 drivers/gpu/drm/i915/intel_display.c |  12 +-
 drivers/gpu/drm/i915/intel_drv.h     |  39 ++++-
 drivers/gpu/drm/i915/intel_fb.c      | 314 -----------------------------------
 drivers/gpu/drm/i915/intel_fbdev.c   | 314 +++++++++++++++++++++++++++++++++++
 drivers/gpu/drm/mgag200/Kconfig      |   1 +
 drivers/gpu/drm/nouveau/Kconfig      |   1 +
 drivers/gpu/drm/omapdrm/Kconfig      |   1 +
 drivers/gpu/drm/qxl/Kconfig          |   1 +
 drivers/gpu/drm/shmobile/Kconfig     |   1 +
 drivers/gpu/drm/tilcdc/Kconfig       |   1 +
 drivers/gpu/drm/udl/Kconfig          |   1 +
 drivers/gpu/host1x/drm/Kconfig       |   1 +
 drivers/staging/imx-drm/Kconfig      |   1 +
 24 files changed, 452 insertions(+), 373 deletions(-)
 create mode 100644 drivers/gpu/drm/i915/Kconfig
 delete mode 100644 drivers/gpu/drm/i915/intel_fb.c
 create mode 100644 drivers/gpu/drm/i915/intel_fbdev.c

-- 
1.7.11.7

^ permalink raw reply	[flat|nested] 11+ messages in thread
* [PATCH 0/8] Don't let the ghost eDP haunt us
@ 2013-06-12 20:27 Paulo Zanoni
  0 siblings, 0 replies; 11+ messages in thread
From: Paulo Zanoni @ 2013-06-12 20:27 UTC (permalink / raw)
  To: intel-gfx; +Cc: Paulo Zanoni

From: Paulo Zanoni <paulo.r.zanoni@intel.com>

Hi

This week I sent a patch called "drm/i915: propagate errors from
intel_dp_init_connector" to fix a Haswell bug that was preventing my machine
from booting. Chris provided a nice suggestion for it, so this series should
implement his suggestion, but split in a few patches. While writing this code I
also spotted a few other things, so there are some patches for them here. Patch
3 is the real bug fix and patches 4 & 5 implement Chris's suggestions. Patch 1
is another bug fix and patches 2, 6, 7 & 8 are my bikesheds for the current
code.

Thanks,
Paulo

Paulo Zanoni (8):
  drm/i915: don't check encoder at DP connector destroy()
  drm/i915: extract intel_edp_init_connector
  drm/i915: propagate errors from intel_dp_init_connector
  drm/i915: fix the "ghost eDP" connector unwind path
  drm/i915: fix the "ghost eDP" encoder unwind path
  drm/i915: check the return value of intel_dp_i2c_init
  drm/i915: invert the verbosity of intel_enable_fbc
  drm/i915: rename intel_dp_destroy to intel_dp_connector_destroy

 drivers/gpu/drm/i915/intel_ddi.c |   7 +-
 drivers/gpu/drm/i915/intel_dp.c  | 180 +++++++++++++++++++++++----------------
 drivers/gpu/drm/i915/intel_drv.h |   2 +-
 drivers/gpu/drm/i915/intel_pm.c  |   3 +-
 4 files changed, 113 insertions(+), 79 deletions(-)

-- 
1.8.1.2

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

end of thread, other threads:[~2013-06-18  7:21 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-06-16 14:57 [PATCH 0/3] fbdev no more! Daniel Vetter
2013-06-16 14:57 ` [PATCH 1/3] drm: Add separate Kconfig option for fbdev helpers Daniel Vetter
2013-06-16 14:57 ` [PATCH 2/3] drm/i915: Kconfig option to disable the legacy fbdev support Daniel Vetter
2013-06-16 14:57 ` [PATCH 3/3] drm/i915: rename intel_fb.c to intel_fbdev.c Daniel Vetter
2013-06-16 22:07 ` [PATCH 0/3] fbdev no more! David Herrmann
2013-06-17 14:33 ` Konrad Rzeszutek Wilk
2013-06-18  6:37   ` Daniel Vetter
2013-06-18  7:21     ` [PATCH 0/8] Don't let the ghost eDP haunt us Zoltan Nyul
2013-06-17 20:47 ` [PATCH 0/3] fbdev no more! Andy Lutomirski
2013-06-18  6:12   ` David Herrmann
  -- strict thread matches above, loose matches on Subject: below --
2013-06-12 20:27 [PATCH 0/8] Don't let the ghost eDP haunt us Paulo Zanoni

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).