- 17 Oct, 2008 40 commits
-
-
Jesse Barnes authored
Previously, drivers supporting vblank interrupt waits would run the interrupt all the time, or all the time that any 3d client was running, preventing the CPU from sleeping for long when the system was otherwise idle. Now, interrupts are disabled any time that no client is waiting on a vblank event. The new method uses vblank counters on the chipsets when the interrupts are turned off, rather than counting interrupts, so that we can continue to present accurate vblank numbers. Co-author: Michel Dänzer <michel@tungstengraphics.com> Signed-off-by:
Jesse Barnes <jbarnes@virtuousgeek.org> Signed-off-by:
Eric Anholt <eric@anholt.net> Signed-off-by:
Dave Airlie <airlied@redhat.com>
-
David Howells authored
Wrap access to task credentials so that they can be separated more easily from the task_struct during the introduction of COW creds. Change most current->(|e|s|fs)[ug]id to current_(|e|s|fs)[ug]id(). Change some task->e?[ug]id to task_e?[ug]id(). In some places it makes more sense to use RCU directly rather than a convenient wrapper; these will be addressed by later patches. Signed-off-by:
David Howells <dhowells@redhat.com> Reviewed-by:
James Morris <jmorris@namei.org> Acked-by:
Serge Hallyn <serue@us.ibm.com> Signed-off-by:
David Airlie <airlied@redhat.com>
-
Jesse Barnes authored
Author: Zhenyu Wang <zhenyu.z.wang@intel.com> i915: official name for GM45 chipset Signed-off-by:
Zhenyu Wang <zhenyu.z.wang@intel.com> Acked-by:
Jesse Barnes <jbarnes@virtuousgeek.org> Signed-off-by:
Dave Airlie <airlied@redhat.com>
-
Jesse Barnes authored
[Patch against drm-next. Consider this a trial balloon for our new Linux development model.] This is a big chunk of code. Separating it out makes it easier to change without churn on the main i915_drv.c file (and there will be churn as we fix bugs and add things like kernel mode setting). Also makes it easier to share this file with BSD. Signed-off-by:
Jesse Barnes <jbarnes@virtuousgeek.org> Signed-off-by:
Dave Airlie <airlied@redhat.com>
-
Dave Airlie authored
Make writeback not get disabled on resume. Signed-off-by:
Dave Airlie <airlied@redhat.com>
-
Dave Airlie authored
Pointed out by Roel Kluin on dri-devel. Signed-off-by:
Dave Airlie <airlied@redhat.com>
-
Adrian Bunk authored
Reported-by:
Randy Dunlap <randy.dunlap@oracle.com> Signed-off-by:
Adrian Bunk <bunk@kernel.org> Signed-off-by:
Dave Airlie <airlied@redhat.com>
-
Matthew Garrett authored
This adds the support necessary for allowing ACPI backlight control to work on some newer Intel-based graphics systems. Tested on Thinkpad T61 and HP 2510p hardware. Signed-off-by:
Matthew Garrett <mjg@redhat.com> Signed-off-by:
Dave Airlie <airlied@linux.ie>
-
Keith Packard authored
Some chips were unstable with repeated setup/teardown of the hardware status page. Signed-off-by:
Eric Anholt <eric@anholt.net> Signed-off-by:
Dave Airlie <airlied@redhat.com>
-
Keith Packard authored
This avoids early termination for long-running commands. Signed-off-by:
Eric Anholt <eric@anholt.net> Signed-off-by:
Dave Airlie <airlied@redhat.com>
-
Eric Anholt authored
Previous attempts at interrupt mitigation had been foiled by i915_wait_irq's failure to update the sarea seqno value when the status page indicated that the seqno had already been passed. MSI support has been seen to cut CPU costs by up to 40% in some workloads by avoiding other expensive interrupt handlers for frequent graphics interrupts. Signed-off-by:
Eric Anholt <eric@anholt.net> Signed-off-by:
Dave Airlie <airlied@redhat.com>
-
Jesse Barnes authored
Signed-off-by:
Eric Anholt <eric@anholt.net> Signed-off-by:
Dave Airlie <airlied@redhat.com>
-
Keith Packard authored
It is already correctly detected by the kernel for use in suspend/resume. Signed-off-by:
Eric Anholt <eric@anholt.net> Signed-off-by:
Dave Airlie <airlied@redhat.com>
-
Keith Packard authored
The driver can know what hardware requires MI_BATCH_BUFFER vs MI_BATCH_BUFFER_START; there's no reason to let user mode configure this. Signed-off-by:
Eric Anholt <eric@anholt.net> Signed-off-by:
Dave Airlie <airlied@redhat.com>
-
David Howells authored
Fix a pointer cast warning in the SIS DRM code. This was introduced in patch ce65a44d . Signed-off-by:
David Howells <dhowells@redhat.com> Cc: Dave Airlie <airlied@linux.ie> Signed-off-by:
Andrew Morton <akpm@linux-foundation.org> Signed-off-by:
Dave Airlie <airlied@redhat.com>
-
David Howells authored
Fix the SIS DRM memory allocator if the SIS FB built as a module. The SIS DRM code initialises the mm allocation hooks, but _only_ if the SIS FB is not built as a module because it depends on CONFIG_FB_SIS, and that's unset if the SIS FB is not built in. It must check CONFIG_FB_SIS_MODULE as well. Signed-off-by:
David Howells <dhowells@redhat.com> Cc: Dave Airlie <airlied@linux.ie> Signed-off-by:
Andrew Morton <akpm@linux-foundation.org> Signed-off-by:
Dave Airlie <airlied@redhat.com>
-
Jean Delvare authored
When debugging is enabled, the adm1026 driver currently logs the message "Setting VID from GPIO11-15" 108 times each time you run "sensors". Once should be enough. Signed-off-by:
Jean Delvare <khali@linux-fr.org> Cc: Philip Pokorny <ppokorny@penguincomputing.com>
-
Jean Delvare authored
* Add missing new-line to one debug message. * Remove leading colon from 3 debug messages. Signed-off-by:
Jean Delvare <khali@linux-fr.org> Cc: Philip Pokorny <ppokorny@penguincomputing.com>
-
Corentin Labbe authored
This is my patch for testing correct values of fan div in adm1029 and prevent a division by 0 for some (unlikely) register values. Signed-off-by:
Corentin Labbe <corentin.labbe@geomatys.fr> Signed-off-by:
Jean Delvare <khali@linux-fr.org>
-
Darrick J. Wong authored
Signed-off-by:
Darrick J. Wong <djwong@us.ibm.com> Signed-off-by:
Jean Delvare <khali@linux-fr.org>
-
Darrick J. Wong authored
Signed-off-by:
Darrick J. Wong <djwong@us.ibm.com> Signed-off-by:
Jean Delvare <khali@linux-fr.org>
-
Wolfgang Grandegger authored
This patch modifies the w83781d driver to use new style driver binding. Substantial code modifications are required to deal with the new interface, especially legacy device detection. [JD: largely edited to make the patch smaller and to get the driver to work again on ISA devices.] Signed-off-by:
Wolfgang Grandegger <wg@grandegger.com> Signed-off-by:
Jean Delvare <khali@linux-fr.org>
-
Jean Delvare authored
Upcoming changes to the I2C part of the w83781d driver will cause ISA devices to no longer have a struct i2c_client at hand. So, we must stop (ab)using it now. Signed-off-by:
Jean Delvare <khali@linux-fr.org> Cc: Wolfgang Grandegger <wg@grandegger.com>
-
Wolfgang Grandegger authored
Probing the ISA bus on systems without ISA bus may hang the system. This patch makes the ISA bus related code depend on the kernel configuration parameter CONFIG_ISA. It moves ISA bus related code into one #ifdef CONFIG_ISA ... #endif block and adds some helper function. Signed-off-by:
Wolfgang Grandegger <wg@grandegger.com> Signed-off-by:
Jean Delvare <khali@linux-fr.org>
-
Jean Delvare authored
The W83781D and W83782D can be accessed either on the I2C bus or the ISA bus. We must not access the same chip through both interfaces. So far we were relying on the user passing the correct ignore parameter to skip the registration of the I2C interface as suggested by sensors-detect, but this is fragile: the user may load the w83781d driver without running sensors-detect, and the i2c bus numbers are not stable across reboots and hardware changes. So, better detect alias chips in the driver directly, and skip any I2C chip which is obviously an alias of the ISA chip. This is done by comparing the value of 26 selected registers. Signed-off-by:
Jean Delvare <khali@linux-fr.org> Cc: Wolfgang Grandegger <wg@grandegger.com>
-
Jean Delvare authored
We can handle the beep enable bit as any other beep mask bit for slightly smaller code. Signed-off-by:
Jean Delvare <khali@linux-fr.org> Cc: Wolfgang Grandegger <wg@grandegger.com>
-
Marc Hulsman authored
Add support to set target temperature and tolerance for thermal cruise mode. Signed-off-by:
Marc Hulsman <m.hulsman@tudelft.nl> Acked-by:
Hans de Goede <j.w.r.degoede@hhs.nl> Signed-off-by:
Jean Delvare <khali@linux-fr.org>
-
Marc Hulsman authored
Add support for pwm_enable. Signed-off-by:
Marc Hulsman <m.hulsman@tudelft.nl> Acked-by:
Hans de Goede <j.w.r.degoede@hhs.nl> Signed-off-by:
Jean Delvare <khali@linux-fr.org>
-
Marc Hulsman authored
Add PWM manual control. Signed-off-by:
Marc Hulsman <m.hulsman@tudelft.nl> Acked-by:
Hans de Goede <j.w.r.degoede@hhs.nl> Signed-off-by:
Jean Delvare <khali@linux-fr.org>
-
Marc Hulsman authored
Pins fan/pwm 4-5 can be in use as GPIO. If that is the case, do not create their sysfs-interface. Signed-off-by:
Marc Hulsman <m.hulsman@tudelft.nl> Acked-by:
Hans de Goede <j.w.r.degoede@hhs.nl> Signed-off-by:
Jean Delvare <khali@linux-fr.org>
-
Andrew Morton authored
Macros evaluating their arguments more than once are evil. Signed-off-by:
Jean Delvare <khali@linux-fr.org>
-
Jean Delvare authored
The it87 driver doesn't follow the standard sensor type values as documented in Documentation/hwmon/sysfs-interface. It uses value 2 for thermistors instead of value 4. This causes "sensors" to tell the user that the chip is setup for a transistor while it is actually setup for a thermistor. Using value 4 for thermistors solves the problem. For compatibility reasons, we still accept value 2 but emit a warning message so that users update their configuration files. Signed-off-by:
Jean Delvare <khali@linux-fr.org> Acked-by:
Hans de Goede <hdegoede@redhat.com>
-
Jean Delvare authored
The new-style lm78 driver implements the optional detect() callback to cover the use cases of the legacy driver. Signed-off-by:
Jean Delvare <khali@linux-fr.org>
-
Jean Delvare authored
Upcoming changes to the I2C part of the lm78 driver will cause ISA devices to no longer have a struct i2c_client at hand. So, we must stop (ab)using it now. Signed-off-by:
Jean Delvare <khali@linux-fr.org>
-
Jean Delvare authored
The LM78 detection is relatively weak, and sometimes recent Winbond chips can be misdetected as an LM78. We have had repeated reports of this happening. We have an explicit check against this for the ISA access, do the same for I2C access now. Signed-off-by:
Jean Delvare <khali@linux-fr.org>
-
Jean Delvare authored
The LM78 and LM79 can be accessed either on the I2C bus or the ISA bus. We must not access the same chip through both interfaces. So far we were relying on the user passing the correct ignore parameter to skip the registration of the I2C interface as suggested by sensors-detect, but this is fragile: the user may load the lm78 driver without running sensors-detect, and the i2c bus numbers are not stable across reboots and hardware changes. So, better detect alias chips in the driver directly, and skip any I2C chip which is obviously an alias of the ISA chip. This is done by comparing the value of 26 selected registers. Signed-off-by:
Jean Delvare <khali@linux-fr.org>
-
Jean Delvare authored
Only request I/O ports 0x295-0x296 instead of the full I/O address range. This solves a conflict with PNP resources on a few motherboards. Also request the I/O ports in two parts (4 low ports, 4 high ports) during device detection, otherwise the PNP resource make the request (and thus the detection) fail. This is the exact same fix that was applied to driver w83781d in March 2008 to address the same problem: http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=2961cb22ef02850d90e7a12c28a14d74e327df8d Signed-off-by:
Jean Delvare <khali@linux-fr.org>
-
Jean Delvare authored
Label names ERROR1 and ERROR3 aren't exactly explicit. Change them for better names that indicate what we are up to. Signed-off-by:
Jean Delvare <khali@linux-fr.org> Acked-by:
Herbert Poetzl <herbert@13thfloor.at>
-
Jean Delvare authored
Function RANGE_TO_REG can easily be simplified. Credits go to Herbert Poetzl for indirectly suggesting this to me. I tested that the new implementation returns the same result as the original implementation for all input values. Signed-off-by:
Jean Delvare <khali@linux-fr.org> Acked-by:
Herbert Poetzl <herbert@13thfloor.at>
-
Jean Delvare authored
The new-style lm85 driver implements the optional detect() callback to cover the use cases of the legacy driver. Signed-off-by:
Jean Delvare <khali@linux-fr.org> Acked-by:
Herbert Poetzl <herbert@13thfloor.at>
-