04 Jan, 2013

1 commit

  • CONFIG_HOTPLUG is going away as an option. As a result, the __dev*
    markings need to be removed.

    This change removes the use of __devinit, __devexit_p, __devinitdata,
    __devinitconst, and __devexit from these drivers.

    Based on patches originally written by Bill Pemberton, but redone by me
    in order to handle some of the coding style issues better, by hand.

    Cc: Bill Pemberton
    Signed-off-by: Greg Kroah-Hartman

    Greg Kroah-Hartman
     

13 Jan, 2012

1 commit


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
     

01 Apr, 2009

1 commit


28 Apr, 2008

2 commits


24 Feb, 2008

1 commit

  • During the last step of hibernation in the "platform" mode (with the
    help of ACPI) we use the suspend code, including the devices'
    ->suspend() methods, to prepare the system for entering the ACPI S4
    system sleep state.

    But at least for some devices the operations performed by the
    ->suspend() callback in that case must be different from its operations
    during regular suspend.

    For this reason, introduce the new PM event type PM_EVENT_HIBERNATE and
    pass it to the device drivers' ->suspend() methods during the last phase
    of hibernation, so that they can distinguish this case and handle it as
    appropriate. Modify the drivers that handle PM_EVENT_SUSPEND in a
    special way and need to handle PM_EVENT_HIBERNATE in the same way.

    These changes are necessary to fix a hibernation regression related
    to the i915 driver (ref. http://lkml.org/lkml/2008/2/22/488).

    Signed-off-by: Rafael J. Wysocki
    Acked-by: Pavel Machek
    Tested-by: Jeff Chua
    Signed-off-by: Linus Torvalds

    Rafael J. Wysocki
     

07 Feb, 2008

1 commit

  • The current nvidiafb_check_var() simply bails out if the selected mode is
    out of range of the panel dimensions. A good question would be why the
    bogus mode is being selected in the first place -- the panel dimensions
    that are read back are certainly bogus, but alas, I have no idea where to
    even begin looking at the i2c/EDID/DDC mess:

    nvidiafb: Device ID: 10de0165
    nvidiafb: CRTC0 analog not found
    nvidiafb: CRTC1 analog not found
    nvidiafb: EDID found from BUS1
    nvidiafb: CRTC 0 is currently programmed for DFP
    nvidiafb: Using DFP on CRTC 0
    nvidiafb: Panel size is 1280 x 1024
    nvidiafb: Panel is TMDS
    nvidiafb: unable to setup MTRR
    nvidiafb: Flat panel dithering disabled
    nvidiafb: PCI nVidia NV16 framebuffer (64MB @ 0xC0000000)

    In my .config I presently have:

    CONFIG_FIRMWARE_EDID=y
    CONFIG_FB_DDC=y
    CONFIG_FB_NVIDIA_I2C=y

    I've not tried fiddling with these options, as I haven't the vaguest idea
    what I should be looking at.

    As a workaround, simply groveling for a new mode based on the probed
    dimensions seems to work ok. While it would be nice to debug this further
    and sort out why the panel information is bogus, I think it's still worth
    retrying the mode based on the panel information at hand as a last-ditch
    effort, rather than simply bailing out completely.

    Signed-off-by: Paul Mundt
    Cc: Antonino A. Daplas
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Paul Mundt
     

17 Oct, 2007

1 commit

  • There are a few nvidia hardware where the i2c port assignments are reversed,
    i.e., the 1st i2c port is assigned to the secondary display and the 2nd i2c
    port to the primary display. In most cases, if only 1 display is attached, or
    if only 1 flatpanel and 1 analog display is attached, the port reversal is of
    no consequence. However if 2 flatpanels are attached, it can cause display
    problems.

    There is no sane way of determining if the hardware reversed the i2c port
    assignment, so the simplest fix is to add a boot/module option, "reverse_i2c
    to explicitly reverse the i2c port.

    This also restores i2c ordering back to the pre-2.6.22 state.

    Signed-off-by: Antonino Daplas
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Antonino A. Daplas
     

18 Jul, 2007

2 commits


11 May, 2007

1 commit


10 May, 2007

1 commit

  • My geforce isn't supported by nvidia frame buffer.

    /sbin/lspci
    01:00.0 VGA compatible controller: nVidia Corporation Unknown device 02e2 (rev a2)

    /usr/sbin/fbset -i

    mode "1024x768-60"
    # D: 65.003 MHz, H: 48.365 kHz, V: 60.006 Hz
    geometry 1024 768 1024 32767 8
    timings 15384 160 24 29 3 136 6
    accel true
    rgba 8/0,8/0,8/0,0/0
    endmode

    Frame buffer device information:
    Name : NV2e
    Address : 0xe0000000
    Size : 134217728
    Type : PACKED PIXELS
    Visual : PSEUDOCOLOR
    XPanStep : 8
    YPanStep : 1
    YWrapStep : 0
    LineLength : 1024
    MMIO Address: 0xf6000000
    MMIO Size : 16777216
    Accelerator : Unknown (46)

    Here is a patch for this problem.

    Signed-off-by: Michal Piotrowski
    Cc: "Antonino A. Daplas"
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Michal Piotrowski
     

09 May, 2007

3 commits

  • Fix return value of nvidiafb_open().

    Signed-off-by: Antonino Daplas
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Antonino A. Daplas
     
  • Allow the saving and restoration of VGA text mode. The state is saved on the
    first open and restored on the last close. Because of the non-linear mapping
    of the VGA registers to the MMIO space, this will be done only on X86
    platforms where the device is the primary display.

    An echo 0 > /sys/class/vtconsole/vtcon1/bind will convert the display from
    graphics to text mode.

    Signed-off-by: Antonino Daplas
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Antonino A. Daplas
     
  • - Ensure that CRTC registers are accessible by unlocking them on set_par(),
    otherwise i2c reading will fail.

    - The function nvidia_vga_protect(), does not protect the VGA registers, but
    turns off the screen. Rename it to nvidia_screen_off().

    Signed-off-by: Antonino Daplas
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Antonino A. Daplas
     

05 Mar, 2007

1 commit


20 Feb, 2007

2 commits


13 Feb, 2007

3 commits


13 Nov, 2006

1 commit


03 Oct, 2006

2 commits


26 Sep, 2006

1 commit

  • Video drivers which explicitly test for messages reporting PM_EVENT_FREEZE
    will now handle PM_EVENT_PRETHAW the same way.

    Signed-off-by: David Brownell
    Cc: "Rafael J. Wysocki"
    Cc: Pavel Machek
    Signed-off-by: Andrew Morton
    Signed-off-by: Greg Kroah-Hartman

    David Brownell
     

01 Aug, 2006

2 commits

  • Since we now use the generic backlight infrastructure, I think we need to
    call rivafb_bl_init before calling register_framebuffer since otherwise
    rivafb_bl_init might race with the framebuffer layer already opening the
    device and setting up the video mode. In this case we might end up with a
    not yet fully intialized backlight (info->bl_dev still NULL) when calling
    riva_bl_set_power via rivafb_set_par/rivafb_load_video_mode and the kernel
    dies without any further notice during boot.

    This fixes booting current git on a PB 6,1. In this case radeonfb/atyfb
    would be affected too - I can fix that too but don't have any hardware to
    test this on.

    Cc: "Antonino A. Daplas"
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Guido Guenther
     
  • CONFIG_FB_NVIDIA already depends on CONFIG_PCI in drivers/video/Kconfig.
    Driver does an extra ``sanity check'' which is then redundant.

    Signed-off-by: Arthur Othieno
    Cc: Antonino Daplas
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Arthur Othieno
     

11 Jul, 2006

2 commits

  • This patch fixes several problems:
    - pmac_backlight_key() is called under interrupt context, and therefore
    can't use mutexes or semaphores, so defer the backlight level for
    later, as it's not critical (original code by Aristeu S. Rozanski F.
    ).
    - Add exports for functions that might be called from modules
    - Fix Kconfig depdencies on PMAC_BACKLIGHT.
    - Fix locking issues on calls from inside the driver (reported by
    Aristeu S. Rozanski F., too)
    - Fix wrong calculation of backlight values in some of the drivers
    - Replace pmac_backlight_key_up/down by inline functions

    [akpm@osdl.org: fix function prototypes]
    Signed-off-by: Michael Hanselmann
    Acked-by: Aristeu S. Rozanski F.
    Acked-by: Rene Nussbaumer
    Cc: Benjamin Herrenschmidt
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Michael Hanselmann
     
  • MAX_NR_CONSOLES, fg_console, want_console and last_console are more of a
    function of the VT layer than the TTY one. Moving these to vt.h and vt_kern.h
    allows all of the framebuffer and VT console drivers to remove their
    dependency on tty.h.

    [akpm@osdl.org: fix alpha build]
    Signed-off-by: Jon Smirl
    Signed-off-by: Antonino Daplas
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Jon Smirl
     

01 Jul, 2006

1 commit


27 Jun, 2006

3 commits

  • Detaching fbcon allows individual drivers to be unloaded. However several
    drivers call pci_disable_device() upon exit. This function will disable the
    BAR's which will kill VGA text mode and/or affect X/DRM.

    To prevent this, remove calls to pci_disable_device() from several drivers.

    Signed-off-by: Antonino Daplas
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Antonino A. Daplas
     
  • Add support for Geforce 6100 and related chipsets (PCI device id 0x024x)

    Signed-off-by: Antonino Daplas
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Antonino A. Daplas
     
  • nVidia is churning out chipsets like there's no tomorrow. And even though the
    pci_device_id table now has numerous entries, it is still not guaranteed that
    all supported devices are included or will be included.

    Fortunately, nvidiafb has chipset detection logic built in. So, change the
    contents of the pci_device_id table so it will capture all nVidia devices of
    the display class. Unsupported chipsets will then be filtered out by
    nvidiafb's detection logic.

    Signed-off-by: Antonino Daplas
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Antonino A. Daplas
     

26 Jun, 2006

1 commit

  • This patch contains a total rewrite of the backlight infrastructure for
    portable Apple computers. Backward compatibility is retained. A sysfs
    interface allows userland to control the brightness with more steps than
    before. Userland is allowed to upload a brightness curve for different
    monitors, similar to Mac OS X.

    [akpm@osdl.org: add needed exports]
    Signed-off-by: Michael Hanselmann
    Acked-by: Benjamin Herrenschmidt
    Cc: Richard Purdie
    Cc: "Antonino A. Daplas"
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Michael Hanselmann
     

29 Mar, 2006

1 commit


28 Mar, 2006

4 commits

  • This removes statically assigned platform numbers and reworks the
    powerpc platform probe code to use a better mechanism. With this,
    board support files can simply declare a new machine type with a
    macro, and implement a probe() function that uses the flattened
    device-tree to detect if they apply for a given machine.

    We now have a machine_is() macro that replaces the comparisons of
    _machine with the various PLATFORM_* constants. This commit also
    changes various drivers to use the new macro instead of looking at
    _machine.

    Signed-off-by: Benjamin Herrenschmidt
    Signed-off-by: Paul Mackerras

    Benjamin Herrenschmidt
     
  • Quadro NVS280 is a dual-head PCIe card with PCI ID 10de:00fd and subsystem ID
    10de:0215.

    Signed-off-by: Pavel Roskin
    Signed-off-by: Antonino Daplas
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Pavel Roskin
     
  • Remove unnecessary NULL check, as struct info will never be NULL.

    Coverity Bug 835

    Signed-off-by: Antonino Daplas
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Antonino A. Daplas
     
  • Add suspend and resume hooks to make software suspend more reliable. Resuming
    from standby should generally work. Resuming from mem and from disk requires
    that the GPU is disabled. Adding these to the suspend script...

    fbset -accel false -a
    /* suspend here */
    fbset -accel true -a

    ... should generally work. In addition, resuming from mem requires that the
    video card has to be POSTed by the BIOS or some other utility.

    Signed-off-by: Antonino Daplas
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Antonino A. Daplas