11 Jul, 2011

1 commit


14 Jun, 2011

1 commit

  • If CONFIG_FB_ATY_BACKLIGHT=y but CONFIG_PCI=n:

    drivers/video/aty/atyfb_base.c:2272: warning: ‘aty_bl_exit’ defined but not used

    If CONFIG_ATARI=y for a modular build:

    drivers/video/aty/atyfb_base.c:2794: warning: ‘store_video_par’ defined but not
    used

    Signed-off-by: Geert Uytterhoeven
    Signed-off-by: Paul Mundt

    Geert Uytterhoeven
     

10 Jun, 2011

1 commit


31 Mar, 2011

1 commit


24 Mar, 2011

1 commit

  • * git://git.kernel.org/pub/scm/linux/kernel/git/lethal/fbdev-2.6: (140 commits)
    MAINTAINERS: de-orphan fbdev.
    MAINTAINERS: Add file pattern for fb dt bindings.
    video: Move sm501fb devicetree binding documentation to a better place.
    fbcon: fix situation where fbcon gets deinitialised and can't reinit.
    video, sm501: add OF binding to support SM501
    video, sm501: add edid and commandline support
    video, sm501: add I/O functions for use on powerpc
    video: Fix EDID macros H_SYNC_WIDTH and H_SYNC_OFFSET
    fbcon: Bugfix soft cursor detection in Tile Blitting
    video: add missing framebuffer_release in error path
    video: metronomefb: add __devexit_p around reference to metronomefb_remove
    video: hecubafb: add __devexit_p around reference to hecubafb_remove
    drivers:video:aty:radeon_base Fix typo occationally to occasionally
    atmel_lcdfb: add fb_blank function
    atmel_lcdfb: implement inverted contrast pwm
    video: s3c-fb: return proper error if clk_get fails
    uvesafb,vesafb: create WC or WB PAT-entries
    video: ffb: fix ffb_probe error path
    radeonfb: Let hwmon driver probe the "monid" I2C bus
    fbdev: sh_mobile_lcdc: checking NULL instead of IS_ERR()
    ...

    Linus Torvalds
     

23 Mar, 2011

1 commit

  • There may be multiple ways of controlling the backlight on a given
    machine. Allow drivers to expose the type of interface they are
    providing, making it possible for userspace to make appropriate policy
    decisions.

    Signed-off-by: Matthew Garrett
    Cc: Richard Purdie
    Cc: Chris Wilson
    Cc: David Airlie
    Cc: Alex Deucher
    Cc: Ben Skeggs
    Cc: Zhang Rui
    Cc: Len Brown
    Cc: Jesse Barnes
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Matthew Garrett
     

22 Mar, 2011

2 commits


26 Jan, 2011

1 commit

  • The -rt patches change the console_semaphore to console_mutex. As a
    result, a quite large chunk of the patches changes all
    acquire/release_console_sem() to acquire/release_console_mutex()

    This commit makes things use more neutral function names which dont make
    implications about the underlying lock.

    The only real change is the return value of console_trylock which is
    inverted from try_acquire_console_sem()

    This patch also paves the way to switching console_sem from a semaphore to
    a mutex.

    [akpm@linux-foundation.org: coding-style fixes]
    [akpm@linux-foundation.org: make console_trylock return 1 on success, per Geert]
    Signed-off-by: Torben Hohn
    Cc: Thomas Gleixner
    Cc: Greg KH
    Cc: Ingo Molnar
    Cc: Geert Uytterhoeven
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Torben Hohn
     

14 Jan, 2011

1 commit

  • * 'for-next' of git://git.kernel.org/pub/scm/linux/kernel/git/jikos/trivial: (43 commits)
    Documentation/trace/events.txt: Remove obsolete sched_signal_send.
    writeback: fix global_dirty_limits comment runtime -> real-time
    ppc: fix comment typo singal -> signal
    drivers: fix comment typo diable -> disable.
    m68k: fix comment typo diable -> disable.
    wireless: comment typo fix diable -> disable.
    media: comment typo fix diable -> disable.
    remove doc for obsolete dynamic-printk kernel-parameter
    remove extraneous 'is' from Documentation/iostats.txt
    Fix spelling milisec -> ms in snd_ps3 module parameter description
    Fix spelling mistakes in comments
    Revert conflicting V4L changes
    i7core_edac: fix typos in comments
    mm/rmap.c: fix comment
    sound, ca0106: Fix assignment to 'channel'.
    hrtimer: fix a typo in comment
    init/Kconfig: fix typo
    anon_inodes: fix wrong function name in comment
    fix comment typos concerning "consistent"
    poll: fix a typo in comment
    ...

    Fix up trivial conflicts in:
    - drivers/net/wireless/iwlwifi/iwl-core.c (moved to iwl-legacy.c)
    - fs/ext4/ext4.h

    Also fix missed 'diabled' typo in drivers/net/bnx2x/bnx2x.h while at it.

    Linus Torvalds
     

07 Jan, 2011

1 commit

  • After commit 25edd6946a1d74e5e77813c2324a0908c68bcf9e ("sparc64: Get
    rid of indirect p1275 PROM call buffer.") we can't pass virtual
    addresses >4GB to PROM calls.

    Largely this is never necessary in drivers because we have a copy of
    the entire PROM device tree in the kernel and a set of of_*()
    interfaces to access it.

    Unfortunately there were some lingering prom calls in the atyfb
    driver, in particular prom_finddevice() was being called with an
    on-stack address which could be anywhere.

    This code is actually probing for information we already have, the
    PROM choosen console output device is stored in of_console_device so
    all of this nasty code consolidates into a one-line comparison.

    Next we have some prom_getintdefault() calls which are trivially
    transformed into the equivalent of_getintprop_default().

    Special thanks to Fabio, who figured out exactly where the bootup
    was hanging. That made this bug trivial to fix.

    Reported-by: Fabio M. Di NItto
    Reported-by: Sam Ravnborg
    Reported-by: Frans van Berckel
    Signed-off-by: David S. Miller
    Signed-off-by: Fabio M. Di NItto

    David S. Miller
     

16 Nov, 2010

1 commit

  • backlight_device_register has been expecting a const "ops" argument, and using
    it as such, since 9905a43b2d563e6f89e4c63c4278ada03f2ebb14. Let's make the
    remaining backlight_ops instances const.

    Inspired by hunks of the grsecurity patch, updated for newer kernels.

    Signed-off-by: Lionel Debroux
    Acked-by: Ingo Molnar
    Signed-off-by: Jiri Kosina

    Lionel Debroux
     

25 Oct, 2010

2 commits

  • * 'next-devicetree' of git://git.secretlab.ca/git/linux-2.6:
    mtd/m25p80: add support to parse the partitions by OF node
    of/irq: of_irq.c needs to include linux/irq.h
    of/mips: Cleanup some include directives/files.
    of/mips: Add device tree support to MIPS
    of/flattree: Eliminate need to provide early_init_dt_scan_chosen_arch
    of/device: Rework to use common platform_device_alloc() for allocating devices
    of/xsysace: Fix OF probing on little-endian systems
    of: use __be32 types for big-endian device tree data
    of/irq: remove references to NO_IRQ in drivers/of/platform.c
    of/promtree: add package-to-path support to pdt
    of/promtree: add of_pdt namespace to pdt code
    of/promtree: no longer call prom_ functions directly; use an ops structure
    of/promtree: make drivers/of/pdt.c no longer sparc-only
    sparc: break out some PROM device-tree building code out into drivers/of
    of/sparc: convert various prom_* functions to use phandle
    sparc: stop exporting openprom.h header
    powerpc, of_serial: Endianness issues setting up the serial ports
    of: MTD: Fix OF probing on little-endian systems
    of: GPIO: Fix OF probing on little-endian systems

    Linus Torvalds
     
  • These drivers don't use anything which is defined in .
    This header file was never meant to be included directly anyway, and
    will be deleted soon.

    Signed-off-by: Jean Delvare
    Acked-by: Ben Dooks
    Acked-by: Dave Airlie
    Cc: Hans Verkuil

    Jean Delvare
     

09 Oct, 2010

1 commit


22 Jul, 2010

1 commit


03 Jun, 2010

1 commit

  • Use the same color-calculating algorithm as in atyfb_imageblit in this
    driver or in generic cfb_fillrect.

    This patch fixes bad colors when using an accelerator in 15-bit and
    16-bit modes.

    Signed-off-by: Mikulas Patocka
    Signed-off-by: Linus Torvalds

    Mikulas Patocka
     

25 May, 2010

1 commit

  • FBIO_WAITFORVSYNC is currently implemented by matroxfb, atyfb, intelfb and
    more. All of them keep redefining the same FBIO_WAITFORVSYNC macro over
    and over again, so move it to linux/fb.h and clean up those duplicate
    defines.

    Signed-off-by: Grazvydas Ignotas
    Cc: Ville Syrjala
    Cc: Grant Likely
    Cc: Maik Broemme
    Cc: Petr Vandrovec
    Cc: Benjamin Herrenschmidt
    Cc: Krzysztof Helt
    Cc: "Hiremath, Vaibhav"
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Grazvydas Ignotas
     

22 May, 2010

1 commit


30 Mar, 2010

1 commit

  • …it slab.h inclusion from percpu.h

    percpu.h is included by sched.h and module.h and thus ends up being
    included when building most .c files. percpu.h includes slab.h which
    in turn includes gfp.h making everything defined by the two files
    universally available and complicating inclusion dependencies.

    percpu.h -> slab.h dependency is about to be removed. Prepare for
    this change by updating users of gfp and slab facilities include those
    headers directly instead of assuming availability. As this conversion
    needs to touch large number of source files, the following script is
    used as the basis of conversion.

    http://userweb.kernel.org/~tj/misc/slabh-sweep.py

    The script does the followings.

    * Scan files for gfp and slab usages and update includes such that
    only the necessary includes are there. ie. if only gfp is used,
    gfp.h, if slab is used, slab.h.

    * When the script inserts a new include, it looks at the include
    blocks and try to put the new include such that its order conforms
    to its surrounding. It's put in the include block which contains
    core kernel includes, in the same order that the rest are ordered -
    alphabetical, Christmas tree, rev-Xmas-tree or at the end if there
    doesn't seem to be any matching order.

    * If the script can't find a place to put a new include (mostly
    because the file doesn't have fitting include block), it prints out
    an error message indicating which .h file needs to be added to the
    file.

    The conversion was done in the following steps.

    1. The initial automatic conversion of all .c files updated slightly
    over 4000 files, deleting around 700 includes and adding ~480 gfp.h
    and ~3000 slab.h inclusions. The script emitted errors for ~400
    files.

    2. Each error was manually checked. Some didn't need the inclusion,
    some needed manual addition while adding it to implementation .h or
    embedding .c file was more appropriate for others. This step added
    inclusions to around 150 files.

    3. The script was run again and the output was compared to the edits
    from #2 to make sure no file was left behind.

    4. Several build tests were done and a couple of problems were fixed.
    e.g. lib/decompress_*.c used malloc/free() wrappers around slab
    APIs requiring slab.h to be added manually.

    5. The script was run on all .h files but without automatically
    editing them as sprinkling gfp.h and slab.h inclusions around .h
    files could easily lead to inclusion dependency hell. Most gfp.h
    inclusion directives were ignored as stuff from gfp.h was usually
    wildly available and often used in preprocessor macros. Each
    slab.h inclusion directive was examined and added manually as
    necessary.

    6. percpu.h was updated not to include slab.h.

    7. Build test were done on the following configurations and failures
    were fixed. CONFIG_GCOV_KERNEL was turned off for all tests (as my
    distributed build env didn't work with gcov compiles) and a few
    more options had to be turned off depending on archs to make things
    build (like ipr on powerpc/64 which failed due to missing writeq).

    * x86 and x86_64 UP and SMP allmodconfig and a custom test config.
    * powerpc and powerpc64 SMP allmodconfig
    * sparc and sparc64 SMP allmodconfig
    * ia64 SMP allmodconfig
    * s390 SMP allmodconfig
    * alpha SMP allmodconfig
    * um on x86_64 SMP allmodconfig

    8. percpu.h modifications were reverted so that it could be applied as
    a separate patch and serve as bisection point.

    Given the fact that I had only a couple of failures from tests on step
    6, I'm fairly confident about the coverage of this conversion patch.
    If there is a breakage, it's likely to be something in one of the arch
    headers which should be easily discoverable easily on most builds of
    the specific arch.

    Signed-off-by: Tejun Heo <tj@kernel.org>
    Guess-its-ok-by: Christoph Lameter <cl@linux-foundation.org>
    Cc: Ingo Molnar <mingo@redhat.com>
    Cc: Lee Schermerhorn <Lee.Schermerhorn@hp.com>

    Tejun Heo
     

17 Mar, 2010

1 commit


09 Feb, 2010

1 commit


29 Jan, 2010

2 commits

  • Grant Likely
     
  • In struct device_node, the phandle is named 'linux_phandle' for PowerPC
    and MicroBlaze, and 'node' for SPARC. There is no good reason for the
    difference, it is just an artifact of the code diverging over a couple
    of years. This patch renames both to simply .phandle.

    Note: the .node also existed in PowerPC/MicroBlaze, but the only user
    seems to be arch/powerpc/platforms/powermac/pfunc_core.c. It doesn't
    look like the assignment between .linux_phandle and .node is
    significantly different enough to warrant the separate code paths
    unless ibm,phandle properties actually appear in Apple device trees.

    I think it is safe to eliminate the old .node property and use
    phandle everywhere.

    Signed-off-by: Grant Likely
    Acked-by: David S. Miller
    Tested-by: Wolfram Sang
    Acked-by: Benjamin Herrenschmidt

    Grant Likely
     

04 Dec, 2009

1 commit

  • That is "success", "unknown", "through", "performance", "[re|un]mapping"
    , "access", "default", "reasonable", "[con]currently", "temperature"
    , "channel", "[un]used", "application", "example","hierarchy", "therefore"
    , "[over|under]flow", "contiguous", "threshold", "enough" and others.

    Signed-off-by: André Goddard Rosa
    Signed-off-by: Jiri Kosina

    André Goddard Rosa
     

23 Sep, 2009

1 commit


01 Jul, 2009

2 commits

  • Block writes require 64 byte alignment. Since block writes could be used
    with SGRAM or WRAM also refine the memory type detection to check for
    either type before deciding to use the 64 byte alignment.

    Signed-off-by: Ville Syrjala
    Tested-by: Mikulas Patocka
    Cc: Krzysztof Helt
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Ville Syrjala
     
  • Apparently HP OmniBook 500's BIOS doesn't like the way atyfb reprograms
    the hardware. The BIOS will simply hang after a reboot. Fix the problem
    by restoring the hardware to it's original state on reboot.

    Signed-off-by: Ville Syrjala
    Cc: Mikulas Patocka
    Cc: Krzysztof Helt
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Ville Syrjala
     

17 Jun, 2009

1 commit


12 Jun, 2009

1 commit


14 Apr, 2009

1 commit


01 Apr, 2009

3 commits

  • Save one fifo entry on cursor enabling and disabling.

    Save another fifo entry for FB_CUR_SETPOS operation by removing redundant one.

    Signed-off-by: Krzysztof Helt
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Krzysztof Helt
     
  • A hardware cursor is left enabled in the fb_set_par() which is called when a
    new console is created. This is inconsistent with software cursor's
    behaviour.

    Also, this makes a hardware cursor always visible in the Xfbdev (Xorg kdrive)
    server.

    Signed-off-by: Krzysztof Helt
    Cc: Risto Suominen
    Cc: Geert Uytterhoeven
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Krzysztof Helt
     
  • Add suspend/resume for the Acer Travelmate 290D/292LMi with the following
    graphic-chip:

    01:00.0 VGA compatible controller [0300]: ATI Technologies Inc RV350
    [Mobility Radeon 9600 M10] [1002:4e50] (prog-if 00 [VGA controller])
    Subsystem: Acer Incorporated [ALI] TravelMate 290 [1025:005a]
    Flags: bus master, 66MHz, medium devsel, latency 128, IRQ 10
    Memory at a8000000 (32-bit, prefetchable) [size=128M]
    I/O ports at c100 [size=256]
    Memory at e0010000 (32-bit, non-prefetchable) [size=64K]
    [virtual] Expansion ROM at a0000000 [disabled] [size=128K]
    Capabilities: [58] AGP version 2.0
    Capabilities: [50] Power Management version 2
    Kernel driver in use: radeonfb
    Kernel modules: radeonfb

    Signed-off-by: Wolfgang Kroener
    Cc: Krzysztof Helt
    Cc: Benjamin Herrenschmidt
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Wolfgang Kroener
     

31 Mar, 2009

1 commit


23 Mar, 2009

1 commit

  • This fixes a regression introduced when we switched to using the core
    pci_set_power_state(). The chip seems to need the state to be written
    over and over again until it sticks, so we do that.

    Note that the code is a bit blunt, without timeout, etc... but that's
    pretty much because I put back in there the code exactly as it used to
    be before the regression. I still add a call to pci_set_power_state()
    at the end so that ACPI gets called appropriately on x86.

    Signed-off-by: Benjamin Herrenschmidt
    Tested-by: Raymond Wooninck
    Acked-by: Rafael J. Wysocki
    Cc: Jesse Barnes
    Cc: Andrew Morton
    Signed-off-by: Linus Torvalds

    Benjamin Herrenschmidt
     

11 Mar, 2009

1 commit

  • radeonfb and aty128fb have a special hook called by the PowerMac platform
    code very very early on resume from sleep to bring the screen back. This
    is useful for debugging wakup problems, but unfortunately, this also became
    a source of problems of its own.

    The hook is called extremely early, with interrupts still off, and the code
    path involved with that code nowadays rely on things like taking mutexes,
    GFP_KERNEL allocations, etc...

    In addition, the driver now relies on the PCI core to restore the standard
    config space before calling resume which doesn't happen with this early
    code path.

    I'm keeping the code in but commented out along with a fixup call to
    pci_restore_state(). The reason is that I still want to make it easy to
    re-enable temporarily to track wake up problems, and it's possible that
    I can revive it at some stage if we make sleeping things save to call
    in early resume using a system state.

    In the meantime, this should fix several reported regressions.

    Signed-off-by: Benjamin Herrenschmidt

    Benjamin Herrenschmidt
     

21 Feb, 2009

1 commit


09 Feb, 2009

2 commits

  • For historical reason, this driver used its own saving/restoring
    of the PCI config space, and used the state of it on resume as
    an indication as to whether it needed to re-POST the chip or not.

    This methods breaks with the later core changes since the core will
    have restored things for us.

    This patch fixes it by removing that custom code, using standard
    core methods to save/restore state, and testing for the need to
    re-POST by comparing the content of a few key PLL registers.

    Signed-off-by: Benjamin Herrenschmidt
    Signed-off-by: Linus Torvalds

    Benjamin Herrenschmidt
     
  • This fixes aty128fb to properly save the PCI config space -before- it
    potentially switches the PM state of the chip. This avoids a
    warning with the new PM core and is the right thing to do anyway.

    I also replaced the hand-coded switch to D2 with a call to the
    genericc pci_set_power_state() and removed the code that switches it
    back to D0 since the generic code is doing that for us nowadays.

    Signed-off-by: Benjamin Herrenschmidt
    Signed-off-by: Linus Torvalds

    Benjamin Herrenschmidt