diff options
Diffstat (limited to 'Documentation')
39 files changed, 1344 insertions, 125 deletions
diff --git a/Documentation/ABI/testing/sysfs-block b/Documentation/ABI/testing/sysfs-block index c1eb41cb9876..2b5d56127fce 100644 --- a/Documentation/ABI/testing/sysfs-block +++ b/Documentation/ABI/testing/sysfs-block | |||
@@ -206,3 +206,16 @@ Description: | |||
206 | when a discarded area is read the discard_zeroes_data | 206 | when a discarded area is read the discard_zeroes_data |
207 | parameter will be set to one. Otherwise it will be 0 and | 207 | parameter will be set to one. Otherwise it will be 0 and |
208 | the result of reading a discarded area is undefined. | 208 | the result of reading a discarded area is undefined. |
209 | What: /sys/block/<disk>/alias | ||
210 | Date: Aug 2011 | ||
211 | Contact: Nao Nishijima <nao.nishijima.xt@hitachi.com> | ||
212 | Description: | ||
213 | A raw device name of a disk does not always point a same disk | ||
214 | each boot-up time. Therefore, users have to use persistent | ||
215 | device names, which udev creates when the kernel finds a disk, | ||
216 | instead of raw device name. However, kernel doesn't show those | ||
217 | persistent names on its messages (e.g. dmesg). | ||
218 | This file can store an alias of the disk and it would be | ||
219 | appeared in kernel messages if it is set. A disk can have an | ||
220 | alias which length is up to 255bytes. Users can use alphabets, | ||
221 | numbers, "-" and "_" in alias name. This file is writeonce. | ||
diff --git a/Documentation/ABI/testing/sysfs-driver-wacom b/Documentation/ABI/testing/sysfs-driver-wacom new file mode 100644 index 000000000000..82d4df136444 --- /dev/null +++ b/Documentation/ABI/testing/sysfs-driver-wacom | |||
@@ -0,0 +1,72 @@ | |||
1 | What: /sys/class/hidraw/hidraw*/device/speed | ||
2 | Date: April 2010 | ||
3 | Kernel Version: 2.6.35 | ||
4 | Contact: linux-bluetooth@vger.kernel.org | ||
5 | Description: | ||
6 | The /sys/class/hidraw/hidraw*/device/speed file controls | ||
7 | reporting speed of Wacom bluetooth tablet. Reading from | ||
8 | this file returns 1 if tablet reports in high speed mode | ||
9 | or 0 otherwise. Writing to this file one of these values | ||
10 | switches reporting speed. | ||
11 | |||
12 | What: /sys/bus/usb/devices/<busnum>-<devnum>:<cfg>.<intf>/wacom_led/led | ||
13 | Date: August 2011 | ||
14 | Contact: linux-input@vger.kernel.org | ||
15 | Description: | ||
16 | Attribute group for control of the status LEDs and the OLEDs. | ||
17 | This attribute group is only available for Intuos 4 M, L, | ||
18 | and XL (with LEDs and OLEDs) and Cintiq 21UX2 (LEDs only). | ||
19 | Therefore its presence implicitly signifies the presence of | ||
20 | said LEDs and OLEDs on the tablet device. | ||
21 | |||
22 | What: /sys/bus/usb/devices/<busnum>-<devnum>:<cfg>.<intf>/wacom_led/status0_luminance | ||
23 | Date: August 2011 | ||
24 | Contact: linux-input@vger.kernel.org | ||
25 | Description: | ||
26 | Writing to this file sets the status LED luminance (1..127) | ||
27 | when the stylus does not touch the tablet surface, and no | ||
28 | button is pressed on the stylus. This luminance level is | ||
29 | normally lower than the level when a button is pressed. | ||
30 | |||
31 | What: /sys/bus/usb/devices/<busnum>-<devnum>:<cfg>.<intf>/wacom_led/status1_luminance | ||
32 | Date: August 2011 | ||
33 | Contact: linux-input@vger.kernel.org | ||
34 | Description: | ||
35 | Writing to this file sets the status LED luminance (1..127) | ||
36 | when the stylus touches the tablet surface, or any button is | ||
37 | pressed on the stylus. | ||
38 | |||
39 | What: /sys/bus/usb/devices/<busnum>-<devnum>:<cfg>.<intf>/wacom_led/status_led0_select | ||
40 | Date: August 2011 | ||
41 | Contact: linux-input@vger.kernel.org | ||
42 | Description: | ||
43 | Writing to this file sets which one of the four (for Intuos 4) | ||
44 | or of the right four (for Cintiq 21UX2) status LEDs is active (0..3). | ||
45 | The other three LEDs on the same side are always inactive. | ||
46 | |||
47 | What: /sys/bus/usb/devices/<busnum>-<devnum>:<cfg>.<intf>/wacom_led/status_led1_select | ||
48 | Date: September 2011 | ||
49 | Contact: linux-input@vger.kernel.org | ||
50 | Description: | ||
51 | Writing to this file sets which one of the left four (for Cintiq 21UX2) | ||
52 | status LEDs is active (0..3). The other three LEDs on the left are always | ||
53 | inactive. | ||
54 | |||
55 | What: /sys/bus/usb/devices/<busnum>-<devnum>:<cfg>.<intf>/wacom_led/buttons_luminance | ||
56 | Date: August 2011 | ||
57 | Contact: linux-input@vger.kernel.org | ||
58 | Description: | ||
59 | Writing to this file sets the overall luminance level (0..15) | ||
60 | of all eight button OLED displays. | ||
61 | |||
62 | What: /sys/bus/usb/devices/<busnum>-<devnum>:<cfg>.<intf>/wacom_led/button<n>_rawimg | ||
63 | Date: August 2011 | ||
64 | Contact: linux-input@vger.kernel.org | ||
65 | Description: | ||
66 | When writing a 1024 byte raw image in Wacom Intuos 4 | ||
67 | interleaving format to the file, the image shows up on Button N | ||
68 | of the device. The image is a 64x32 pixel 4-bit gray image. The | ||
69 | 1024 byte binary is split up into 16x 64 byte chunks. Each 64 | ||
70 | byte chunk encodes the image data for two consecutive lines on | ||
71 | the display. The low nibble of each byte contains the first | ||
72 | line, and the high nibble contains the second line. | ||
diff --git a/Documentation/ABI/testing/sysfs-wacom b/Documentation/ABI/testing/sysfs-wacom deleted file mode 100644 index 1517976e25c4..000000000000 --- a/Documentation/ABI/testing/sysfs-wacom +++ /dev/null | |||
@@ -1,10 +0,0 @@ | |||
1 | What: /sys/class/hidraw/hidraw*/device/speed | ||
2 | Date: April 2010 | ||
3 | Kernel Version: 2.6.35 | ||
4 | Contact: linux-bluetooth@vger.kernel.org | ||
5 | Description: | ||
6 | The /sys/class/hidraw/hidraw*/device/speed file controls | ||
7 | reporting speed of wacom bluetooth tablet. Reading from | ||
8 | this file returns 1 if tablet reports in high speed mode | ||
9 | or 0 otherwise. Writing to this file one of these values | ||
10 | switches reporting speed. | ||
diff --git a/Documentation/DocBook/writing-an-alsa-driver.tmpl b/Documentation/DocBook/writing-an-alsa-driver.tmpl index 598c22f3b3ac..5de23c007078 100644 --- a/Documentation/DocBook/writing-an-alsa-driver.tmpl +++ b/Documentation/DocBook/writing-an-alsa-driver.tmpl | |||
@@ -4288,7 +4288,7 @@ struct _snd_pcm_runtime { | |||
4288 | <![CDATA[ | 4288 | <![CDATA[ |
4289 | struct snd_rawmidi *rmidi; | 4289 | struct snd_rawmidi *rmidi; |
4290 | snd_mpu401_uart_new(card, 0, MPU401_HW_MPU401, port, info_flags, | 4290 | snd_mpu401_uart_new(card, 0, MPU401_HW_MPU401, port, info_flags, |
4291 | irq, irq_flags, &rmidi); | 4291 | irq, &rmidi); |
4292 | ]]> | 4292 | ]]> |
4293 | </programlisting> | 4293 | </programlisting> |
4294 | </informalexample> | 4294 | </informalexample> |
@@ -4343,6 +4343,13 @@ struct _snd_pcm_runtime { | |||
4343 | by itself to start processing the output stream in the irq handler. | 4343 | by itself to start processing the output stream in the irq handler. |
4344 | </para> | 4344 | </para> |
4345 | 4345 | ||
4346 | <para> | ||
4347 | If the MPU-401 interface shares its interrupt with the other logical | ||
4348 | devices on the card, set <constant>MPU401_INFO_IRQ_HOOK</constant> | ||
4349 | (see <link linkend="midi-interface-interrupt-handler"><citetitle> | ||
4350 | below</citetitle></link>). | ||
4351 | </para> | ||
4352 | |||
4346 | <para> | 4353 | <para> |
4347 | Usually, the port address corresponds to the command port and | 4354 | Usually, the port address corresponds to the command port and |
4348 | port + 1 corresponds to the data port. If not, you may change | 4355 | port + 1 corresponds to the data port. If not, you may change |
@@ -4375,14 +4382,12 @@ struct _snd_pcm_runtime { | |||
4375 | </para> | 4382 | </para> |
4376 | 4383 | ||
4377 | <para> | 4384 | <para> |
4378 | The 6th argument specifies the irq number for UART. If the irq | 4385 | The 6th argument specifies the ISA irq number that will be |
4379 | is already allocated, pass 0 to the 7th argument | 4386 | allocated. If no interrupt is to be allocated (because your |
4380 | (<parameter>irq_flags</parameter>). Otherwise, pass the flags | 4387 | code is already allocating a shared interrupt, or because the |
4381 | for irq allocation | 4388 | device does not use interrupts), pass -1 instead. |
4382 | (<constant>SA_XXX</constant> bits) to it, and the irq will be | 4389 | For a MPU-401 device without an interrupt, a polling timer |
4383 | reserved by the mpu401-uart layer. If the card doesn't generate | 4390 | will be used instead. |
4384 | UART interrupts, pass -1 as the irq number. Then a timer | ||
4385 | interrupt will be invoked for polling. | ||
4386 | </para> | 4391 | </para> |
4387 | </section> | 4392 | </section> |
4388 | 4393 | ||
@@ -4390,12 +4395,13 @@ struct _snd_pcm_runtime { | |||
4390 | <title>Interrupt Handler</title> | 4395 | <title>Interrupt Handler</title> |
4391 | <para> | 4396 | <para> |
4392 | When the interrupt is allocated in | 4397 | When the interrupt is allocated in |
4393 | <function>snd_mpu401_uart_new()</function>, the private | 4398 | <function>snd_mpu401_uart_new()</function>, an exclusive ISA |
4394 | interrupt handler is used, hence you don't have anything else to do | 4399 | interrupt handler is automatically used, hence you don't have |
4395 | than creating the mpu401 stuff. Otherwise, you have to call | 4400 | anything else to do than creating the mpu401 stuff. Otherwise, you |
4396 | <function>snd_mpu401_uart_interrupt()</function> explicitly when | 4401 | have to set <constant>MPU401_INFO_IRQ_HOOK</constant>, and call |
4397 | a UART interrupt is invoked and checked in your own interrupt | 4402 | <function>snd_mpu401_uart_interrupt()</function> explicitly from your |
4398 | handler. | 4403 | own interrupt handler when it has determined that a UART interrupt |
4404 | has occurred. | ||
4399 | </para> | 4405 | </para> |
4400 | 4406 | ||
4401 | <para> | 4407 | <para> |
diff --git a/Documentation/devicetree/bindings/arm/primecell.txt b/Documentation/devicetree/bindings/arm/primecell.txt index 1d5d7a870ec7..951ca46789d4 100644 --- a/Documentation/devicetree/bindings/arm/primecell.txt +++ b/Documentation/devicetree/bindings/arm/primecell.txt | |||
@@ -6,7 +6,9 @@ driver matching. | |||
6 | 6 | ||
7 | Required properties: | 7 | Required properties: |
8 | 8 | ||
9 | - compatible : should be a specific value for peripheral and "arm,primecell" | 9 | - compatible : should be a specific name for the peripheral and |
10 | "arm,primecell". The specific name will match the ARM | ||
11 | engineering name for the logic block in the form: "arm,pl???" | ||
10 | 12 | ||
11 | Optional properties: | 13 | Optional properties: |
12 | 14 | ||
diff --git a/Documentation/devicetree/bindings/gpio/pl061-gpio.txt b/Documentation/devicetree/bindings/gpio/pl061-gpio.txt new file mode 100644 index 000000000000..a2c416bcbccc --- /dev/null +++ b/Documentation/devicetree/bindings/gpio/pl061-gpio.txt | |||
@@ -0,0 +1,10 @@ | |||
1 | ARM PL061 GPIO controller | ||
2 | |||
3 | Required properties: | ||
4 | - compatible : "arm,pl061", "arm,primecell" | ||
5 | - #gpio-cells : Should be two. The first cell is the pin number and the | ||
6 | second cell is used to specify optional parameters: | ||
7 | - bit 0 specifies polarity (0 for normal, 1 for inverted) | ||
8 | - gpio-controller : Marks the device node as a GPIO controller. | ||
9 | - interrupts : Interrupt mapping for GPIO IRQ. | ||
10 | |||
diff --git a/Documentation/devicetree/bindings/mmc/nvidia-sdhci.txt b/Documentation/devicetree/bindings/mmc/nvidia-sdhci.txt new file mode 100644 index 000000000000..7e51154679a6 --- /dev/null +++ b/Documentation/devicetree/bindings/mmc/nvidia-sdhci.txt | |||
@@ -0,0 +1,27 @@ | |||
1 | * NVIDIA Tegra Secure Digital Host Controller | ||
2 | |||
3 | This controller on Tegra family SoCs provides an interface for MMC, SD, | ||
4 | and SDIO types of memory cards. | ||
5 | |||
6 | Required properties: | ||
7 | - compatible : Should be "nvidia,<chip>-sdhci" | ||
8 | - reg : Should contain SD/MMC registers location and length | ||
9 | - interrupts : Should contain SD/MMC interrupt | ||
10 | |||
11 | Optional properties: | ||
12 | - cd-gpios : Specify GPIOs for card detection | ||
13 | - wp-gpios : Specify GPIOs for write protection | ||
14 | - power-gpios : Specify GPIOs for power control | ||
15 | - support-8bit : Boolean, indicates if 8-bit mode should be used. | ||
16 | |||
17 | Example: | ||
18 | |||
19 | sdhci@c8000200 { | ||
20 | compatible = "nvidia,tegra20-sdhci"; | ||
21 | reg = <0xc8000200 0x200>; | ||
22 | interrupts = <47>; | ||
23 | cd-gpios = <&gpio 69 0>; /* gpio PI5 */ | ||
24 | wp-gpios = <&gpio 57 0>; /* gpio PH1 */ | ||
25 | power-gpios = <&gpio 155 0>; /* gpio PT3 */ | ||
26 | support-8bit; | ||
27 | }; | ||
diff --git a/Documentation/devicetree/bindings/sound/soc/codecs/fsl-sgtl5000.txt b/Documentation/devicetree/bindings/sound/soc/codecs/fsl-sgtl5000.txt new file mode 100644 index 000000000000..2c3cd413f042 --- /dev/null +++ b/Documentation/devicetree/bindings/sound/soc/codecs/fsl-sgtl5000.txt | |||
@@ -0,0 +1,11 @@ | |||
1 | * Freescale SGTL5000 Stereo Codec | ||
2 | |||
3 | Required properties: | ||
4 | - compatible : "fsl,sgtl5000". | ||
5 | |||
6 | Example: | ||
7 | |||
8 | codec: sgtl5000@0a { | ||
9 | compatible = "fsl,sgtl5000"; | ||
10 | reg = <0x0a>; | ||
11 | }; | ||
diff --git a/Documentation/devicetree/bindings/sound/wm8510.txt b/Documentation/devicetree/bindings/sound/wm8510.txt new file mode 100644 index 000000000000..fa1a32b85577 --- /dev/null +++ b/Documentation/devicetree/bindings/sound/wm8510.txt | |||
@@ -0,0 +1,18 @@ | |||
1 | WM8510 audio CODEC | ||
2 | |||
3 | This device supports both I2C and SPI (configured with pin strapping | ||
4 | on the board). | ||
5 | |||
6 | Required properties: | ||
7 | |||
8 | - compatible : "wlf,wm8510" | ||
9 | |||
10 | - reg : the I2C address of the device for I2C, the chip select | ||
11 | number for SPI. | ||
12 | |||
13 | Example: | ||
14 | |||
15 | codec: wm8510@1a { | ||
16 | compatible = "wlf,wm8510"; | ||
17 | reg = <0x1a>; | ||
18 | }; | ||
diff --git a/Documentation/devicetree/bindings/sound/wm8523.txt b/Documentation/devicetree/bindings/sound/wm8523.txt new file mode 100644 index 000000000000..04746186b283 --- /dev/null +++ b/Documentation/devicetree/bindings/sound/wm8523.txt | |||
@@ -0,0 +1,16 @@ | |||
1 | WM8523 audio CODEC | ||
2 | |||
3 | This device supports I2C only. | ||
4 | |||
5 | Required properties: | ||
6 | |||
7 | - compatible : "wlf,wm8523" | ||
8 | |||
9 | - reg : the I2C address of the device. | ||
10 | |||
11 | Example: | ||
12 | |||
13 | codec: wm8523@1a { | ||
14 | compatible = "wlf,wm8523"; | ||
15 | reg = <0x1a>; | ||
16 | }; | ||
diff --git a/Documentation/devicetree/bindings/sound/wm8580.txt b/Documentation/devicetree/bindings/sound/wm8580.txt new file mode 100644 index 000000000000..7d9821f348da --- /dev/null +++ b/Documentation/devicetree/bindings/sound/wm8580.txt | |||
@@ -0,0 +1,16 @@ | |||
1 | WM8580 audio CODEC | ||
2 | |||
3 | This device supports I2C only. | ||
4 | |||
5 | Required properties: | ||
6 | |||
7 | - compatible : "wlf,wm8580" | ||
8 | |||
9 | - reg : the I2C address of the device. | ||
10 | |||
11 | Example: | ||
12 | |||
13 | codec: wm8580@1a { | ||
14 | compatible = "wlf,wm8580"; | ||
15 | reg = <0x1a>; | ||
16 | }; | ||
diff --git a/Documentation/devicetree/bindings/sound/wm8711.txt b/Documentation/devicetree/bindings/sound/wm8711.txt new file mode 100644 index 000000000000..8ed9998cd23c --- /dev/null +++ b/Documentation/devicetree/bindings/sound/wm8711.txt | |||
@@ -0,0 +1,18 @@ | |||
1 | WM8711 audio CODEC | ||
2 | |||
3 | This device supports both I2C and SPI (configured with pin strapping | ||
4 | on the board). | ||
5 | |||
6 | Required properties: | ||
7 | |||
8 | - compatible : "wlf,wm8711" | ||
9 | |||
10 | - reg : the I2C address of the device for I2C, the chip select | ||
11 | number for SPI. | ||
12 | |||
13 | Example: | ||
14 | |||
15 | codec: wm8711@1a { | ||
16 | compatible = "wlf,wm8711"; | ||
17 | reg = <0x1a>; | ||
18 | }; | ||
diff --git a/Documentation/devicetree/bindings/sound/wm8728.txt b/Documentation/devicetree/bindings/sound/wm8728.txt new file mode 100644 index 000000000000..a8b5c3668e60 --- /dev/null +++ b/Documentation/devicetree/bindings/sound/wm8728.txt | |||
@@ -0,0 +1,18 @@ | |||
1 | WM8728 audio CODEC | ||
2 | |||
3 | This device supports both I2C and SPI (configured with pin strapping | ||
4 | on the board). | ||
5 | |||
6 | Required properties: | ||
7 | |||
8 | - compatible : "wlf,wm8728" | ||
9 | |||
10 | - reg : the I2C address of the device for I2C, the chip select | ||
11 | number for SPI. | ||
12 | |||
13 | Example: | ||
14 | |||
15 | codec: wm8728@1a { | ||
16 | compatible = "wlf,wm8728"; | ||
17 | reg = <0x1a>; | ||
18 | }; | ||
diff --git a/Documentation/devicetree/bindings/sound/wm8731.txt b/Documentation/devicetree/bindings/sound/wm8731.txt new file mode 100644 index 000000000000..15f70048469b --- /dev/null +++ b/Documentation/devicetree/bindings/sound/wm8731.txt | |||
@@ -0,0 +1,18 @@ | |||
1 | WM8731 audio CODEC | ||
2 | |||
3 | This device supports both I2C and SPI (configured with pin strapping | ||
4 | on the board). | ||
5 | |||
6 | Required properties: | ||
7 | |||
8 | - compatible : "wlf,wm8731" | ||
9 | |||
10 | - reg : the I2C address of the device for I2C, the chip select | ||
11 | number for SPI. | ||
12 | |||
13 | Example: | ||
14 | |||
15 | codec: wm8731@1a { | ||
16 | compatible = "wlf,wm8731"; | ||
17 | reg = <0x1a>; | ||
18 | }; | ||
diff --git a/Documentation/devicetree/bindings/sound/wm8737.txt b/Documentation/devicetree/bindings/sound/wm8737.txt new file mode 100644 index 000000000000..4bc2cea3b140 --- /dev/null +++ b/Documentation/devicetree/bindings/sound/wm8737.txt | |||
@@ -0,0 +1,18 @@ | |||
1 | WM8737 audio CODEC | ||
2 | |||
3 | This device supports both I2C and SPI (configured with pin strapping | ||
4 | on the board). | ||
5 | |||
6 | Required properties: | ||
7 | |||
8 | - compatible : "wlf,wm8737" | ||
9 | |||
10 | - reg : the I2C address of the device for I2C, the chip select | ||
11 | number for SPI. | ||
12 | |||
13 | Example: | ||
14 | |||
15 | codec: wm8737@1a { | ||
16 | compatible = "wlf,wm8737"; | ||
17 | reg = <0x1a>; | ||
18 | }; | ||
diff --git a/Documentation/devicetree/bindings/sound/wm8741.txt b/Documentation/devicetree/bindings/sound/wm8741.txt new file mode 100644 index 000000000000..74bda58c1bcf --- /dev/null +++ b/Documentation/devicetree/bindings/sound/wm8741.txt | |||
@@ -0,0 +1,18 @@ | |||
1 | WM8741 audio CODEC | ||
2 | |||
3 | This device supports both I2C and SPI (configured with pin strapping | ||
4 | on the board). | ||
5 | |||
6 | Required properties: | ||
7 | |||
8 | - compatible : "wlf,wm8741" | ||
9 | |||
10 | - reg : the I2C address of the device for I2C, the chip select | ||
11 | number for SPI. | ||
12 | |||
13 | Example: | ||
14 | |||
15 | codec: wm8741@1a { | ||
16 | compatible = "wlf,wm8741"; | ||
17 | reg = <0x1a>; | ||
18 | }; | ||
diff --git a/Documentation/devicetree/bindings/sound/wm8750.txt b/Documentation/devicetree/bindings/sound/wm8750.txt new file mode 100644 index 000000000000..8db239fd5ecd --- /dev/null +++ b/Documentation/devicetree/bindings/sound/wm8750.txt | |||
@@ -0,0 +1,18 @@ | |||
1 | WM8750 and WM8987 audio CODECs | ||
2 | |||
3 | These devices support both I2C and SPI (configured with pin strapping | ||
4 | on the board). | ||
5 | |||
6 | Required properties: | ||
7 | |||
8 | - compatible : "wlf,wm8750" or "wlf,wm8987" | ||
9 | |||
10 | - reg : the I2C address of the device for I2C, the chip select | ||
11 | number for SPI. | ||
12 | |||
13 | Example: | ||
14 | |||
15 | codec: wm8750@1a { | ||
16 | compatible = "wlf,wm8750"; | ||
17 | reg = <0x1a>; | ||
18 | }; | ||
diff --git a/Documentation/devicetree/bindings/sound/wm8753.txt b/Documentation/devicetree/bindings/sound/wm8753.txt new file mode 100644 index 000000000000..e65277a0fb60 --- /dev/null +++ b/Documentation/devicetree/bindings/sound/wm8753.txt | |||
@@ -0,0 +1,18 @@ | |||
1 | WM8753 audio CODEC | ||
2 | |||
3 | This device supports both I2C and SPI (configured with pin strapping | ||
4 | on the board). | ||
5 | |||
6 | Required properties: | ||
7 | |||
8 | - compatible : "wlf,wm8753" | ||
9 | |||
10 | - reg : the I2C address of the device for I2C, the chip select | ||
11 | number for SPI. | ||
12 | |||
13 | Example: | ||
14 | |||
15 | codec: wm8737@1a { | ||
16 | compatible = "wlf,wm8753"; | ||
17 | reg = <0x1a>; | ||
18 | }; | ||
diff --git a/Documentation/devicetree/bindings/sound/wm8770.txt b/Documentation/devicetree/bindings/sound/wm8770.txt new file mode 100644 index 000000000000..866e00ca150b --- /dev/null +++ b/Documentation/devicetree/bindings/sound/wm8770.txt | |||
@@ -0,0 +1,16 @@ | |||
1 | WM8770 audio CODEC | ||
2 | |||
3 | This device supports SPI. | ||
4 | |||
5 | Required properties: | ||
6 | |||
7 | - compatible : "wlf,wm8770" | ||
8 | |||
9 | - reg : the chip select number. | ||
10 | |||
11 | Example: | ||
12 | |||
13 | codec: wm8770@1 { | ||
14 | compatible = "wlf,wm8770"; | ||
15 | reg = <1>; | ||
16 | }; | ||
diff --git a/Documentation/devicetree/bindings/sound/wm8776.txt b/Documentation/devicetree/bindings/sound/wm8776.txt new file mode 100644 index 000000000000..3b9ca49abc2b --- /dev/null +++ b/Documentation/devicetree/bindings/sound/wm8776.txt | |||
@@ -0,0 +1,18 @@ | |||
1 | WM8776 audio CODEC | ||
2 | |||
3 | This device supports both I2C and SPI (configured with pin strapping | ||
4 | on the board). | ||
5 | |||
6 | Required properties: | ||
7 | |||
8 | - compatible : "wlf,wm8776" | ||
9 | |||
10 | - reg : the I2C address of the device for I2C, the chip select | ||
11 | number for SPI. | ||
12 | |||
13 | Example: | ||
14 | |||
15 | codec: wm8776@1a { | ||
16 | compatible = "wlf,wm8776"; | ||
17 | reg = <0x1a>; | ||
18 | }; | ||
diff --git a/Documentation/devicetree/bindings/sound/wm8804.txt b/Documentation/devicetree/bindings/sound/wm8804.txt new file mode 100644 index 000000000000..4d3a56f38adc --- /dev/null +++ b/Documentation/devicetree/bindings/sound/wm8804.txt | |||
@@ -0,0 +1,18 @@ | |||
1 | WM8804 audio CODEC | ||
2 | |||
3 | This device supports both I2C and SPI (configured with pin strapping | ||
4 | on the board). | ||
5 | |||
6 | Required properties: | ||
7 | |||
8 | - compatible : "wlf,wm8804" | ||
9 | |||
10 | - reg : the I2C address of the device for I2C, the chip select | ||
11 | number for SPI. | ||
12 | |||
13 | Example: | ||
14 | |||
15 | codec: wm8804@1a { | ||
16 | compatible = "wlf,wm8804"; | ||
17 | reg = <0x1a>; | ||
18 | }; | ||
diff --git a/Documentation/devicetree/bindings/spi/spi_pl022.txt b/Documentation/devicetree/bindings/spi/spi_pl022.txt new file mode 100644 index 000000000000..306ec3ff3c0e --- /dev/null +++ b/Documentation/devicetree/bindings/spi/spi_pl022.txt | |||
@@ -0,0 +1,12 @@ | |||
1 | ARM PL022 SPI controller | ||
2 | |||
3 | Required properties: | ||
4 | - compatible : "arm,pl022", "arm,primecell" | ||
5 | - reg : Offset and length of the register set for the device | ||
6 | - interrupts : Should contain SPI controller interrupt | ||
7 | |||
8 | Optional properties: | ||
9 | - cs-gpios : should specify GPIOs used for chipselects. | ||
10 | The gpios will be referred to as reg = <index> in the SPI child nodes. | ||
11 | If unspecified, a single SPI device without a chip select can be used. | ||
12 | |||
diff --git a/Documentation/devicetree/bindings/vendor-prefixes.txt b/Documentation/devicetree/bindings/vendor-prefixes.txt new file mode 100644 index 000000000000..e8552782b440 --- /dev/null +++ b/Documentation/devicetree/bindings/vendor-prefixes.txt | |||
@@ -0,0 +1,40 @@ | |||
1 | Device tree binding vendor prefix registry. Keep list in alphabetical order. | ||
2 | |||
3 | This isn't an exhaustive list, but you should add new prefixes to it before | ||
4 | using them to avoid name-space collisions. | ||
5 | |||
6 | adi Analog Devices, Inc. | ||
7 | amcc Applied Micro Circuits Corporation (APM, formally AMCC) | ||
8 | apm Applied Micro Circuits Corporation (APM) | ||
9 | arm ARM Ltd. | ||
10 | atmel Atmel Corporation | ||
11 | chrp Common Hardware Reference Platform | ||
12 | dallas Maxim Integrated Products (formerly Dallas Semiconductor) | ||
13 | denx Denx Software Engineering | ||
14 | epson Seiko Epson Corp. | ||
15 | est ESTeem Wireless Modems | ||
16 | fsl Freescale Semiconductor | ||
17 | GEFanuc GE Fanuc Intelligent Platforms Embedded Systems, Inc. | ||
18 | gef GE Fanuc Intelligent Platforms Embedded Systems, Inc. | ||
19 | hp Hewlett Packard | ||
20 | ibm International Business Machines (IBM) | ||
21 | idt Integrated Device Technologies, Inc. | ||
22 | intercontrol Inter Control Group | ||
23 | linux Linux-specific binding | ||
24 | marvell Marvell Technology Group Ltd. | ||
25 | maxim Maxim Integrated Products | ||
26 | mosaixtech Mosaix Technologies, Inc. | ||
27 | national National Semiconductor | ||
28 | nintendo Nintendo | ||
29 | nvidia NVIDIA | ||
30 | nxp NXP Semiconductors | ||
31 | powervr Imagination Technologies | ||
32 | qcom Qualcomm, Inc. | ||
33 | ramtron Ramtron International | ||
34 | samsung Samsung Semiconductor | ||
35 | schindler Schindler | ||
36 | simtek | ||
37 | sirf SiRF Technology, Inc. | ||
38 | stericsson ST-Ericsson | ||
39 | ti Texas Instruments | ||
40 | xlnx Xilinx | ||
diff --git a/Documentation/fault-injection/fault-injection.txt b/Documentation/fault-injection/fault-injection.txt index 82a5d250d75e..ba4be8b77093 100644 --- a/Documentation/fault-injection/fault-injection.txt +++ b/Documentation/fault-injection/fault-injection.txt | |||
@@ -21,6 +21,11 @@ o fail_make_request | |||
21 | /sys/block/<device>/make-it-fail or | 21 | /sys/block/<device>/make-it-fail or |
22 | /sys/block/<device>/<partition>/make-it-fail. (generic_make_request()) | 22 | /sys/block/<device>/<partition>/make-it-fail. (generic_make_request()) |
23 | 23 | ||
24 | o fail_mmc_request | ||
25 | |||
26 | injects MMC data errors on devices permitted by setting | ||
27 | debugfs entries under /sys/kernel/debug/mmc0/fail_mmc_request | ||
28 | |||
24 | Configure fault-injection capabilities behavior | 29 | Configure fault-injection capabilities behavior |
25 | ----------------------------------------------- | 30 | ----------------------------------------------- |
26 | 31 | ||
@@ -115,7 +120,8 @@ use the boot option: | |||
115 | 120 | ||
116 | failslab= | 121 | failslab= |
117 | fail_page_alloc= | 122 | fail_page_alloc= |
118 | fail_make_request=<interval>,<probability>,<space>,<times> | 123 | fail_make_request= |
124 | mmc_core.fail_request=<interval>,<probability>,<space>,<times> | ||
119 | 125 | ||
120 | How to add new fault injection capability | 126 | How to add new fault injection capability |
121 | ----------------------------------------- | 127 | ----------------------------------------- |
diff --git a/Documentation/fb/udlfb.txt b/Documentation/fb/udlfb.txt index 7fdde2a02a27..57d2f2908b12 100644 --- a/Documentation/fb/udlfb.txt +++ b/Documentation/fb/udlfb.txt | |||
@@ -87,23 +87,38 @@ Special configuration for udlfb is usually unnecessary. There are a few | |||
87 | options, however. | 87 | options, however. |
88 | 88 | ||
89 | From the command line, pass options to modprobe | 89 | From the command line, pass options to modprobe |
90 | modprobe udlfb defio=1 console=1 | 90 | modprobe udlfb fb_defio=0 console=1 shadow=1 |
91 | 91 | ||
92 | Or for permanent option, create file like /etc/modprobe.d/options with text | 92 | Or modify options on the fly at /sys/module/udlfb/parameters directory via |
93 | options udlfb defio=1 console=1 | 93 | sudo nano fb_defio |
94 | change the parameter in place, and save the file. | ||
94 | 95 | ||
95 | Accepted options: | 96 | Unplug/replug USB device to apply with new settings |
97 | |||
98 | Or for permanent option, create file like /etc/modprobe.d/udlfb.conf with text | ||
99 | options udlfb fb_defio=0 console=1 shadow=1 | ||
100 | |||
101 | Accepted boolean options: | ||
96 | 102 | ||
97 | fb_defio Make use of the fb_defio (CONFIG_FB_DEFERRED_IO) kernel | 103 | fb_defio Make use of the fb_defio (CONFIG_FB_DEFERRED_IO) kernel |
98 | module to track changed areas of the framebuffer by page faults. | 104 | module to track changed areas of the framebuffer by page faults. |
99 | Standard fbdev applications that use mmap but that do not | 105 | Standard fbdev applications that use mmap but that do not |
100 | report damage, may be able to work with this enabled. | 106 | report damage, should be able to work with this enabled. |
101 | Disabled by default because of overhead and other issues. | 107 | Disable when running with X server that supports reporting |
102 | 108 | changed regions via ioctl, as this method is simpler, | |
103 | console Allow fbcon to attach to udlfb provided framebuffers. This | 109 | more stable, and higher performance. |
104 | is disabled by default because fbcon will aggressively consume | 110 | default: fb_defio=1 |
105 | the first framebuffer it finds, which isn't usually what the | 111 | |
106 | user wants in the case of USB displays. | 112 | console Allow fbcon to attach to udlfb provided framebuffers. |
113 | Can be disabled if fbcon and other clients | ||
114 | (e.g. X with --shared-vt) are in conflict. | ||
115 | default: console=1 | ||
116 | |||
117 | shadow Allocate a 2nd framebuffer to shadow what's currently across | ||
118 | the USB bus in device memory. If any pixels are unchanged, | ||
119 | do not transmit. Spends host memory to save USB transfers. | ||
120 | Enabled by default. Only disable on very low memory systems. | ||
121 | default: shadow=1 | ||
107 | 122 | ||
108 | Sysfs Attributes | 123 | Sysfs Attributes |
109 | ================ | 124 | ================ |
diff --git a/Documentation/i2c/smbus-protocol b/Documentation/i2c/smbus-protocol index 7c19d1a2bea0..49f5b680809d 100644 --- a/Documentation/i2c/smbus-protocol +++ b/Documentation/i2c/smbus-protocol | |||
@@ -88,6 +88,10 @@ byte. But this time, the data is a complete word (16 bits). | |||
88 | 88 | ||
89 | S Addr Wr [A] Comm [A] S Addr Rd [A] [DataLow] A [DataHigh] NA P | 89 | S Addr Wr [A] Comm [A] S Addr Rd [A] [DataLow] A [DataHigh] NA P |
90 | 90 | ||
91 | Note the convenience function i2c_smbus_read_word_swapped is | ||
92 | available for reads where the two data bytes are the other way | ||
93 | around (not SMBus compliant, but very popular.) | ||
94 | |||
91 | 95 | ||
92 | SMBus Write Byte: i2c_smbus_write_byte_data() | 96 | SMBus Write Byte: i2c_smbus_write_byte_data() |
93 | ============================================== | 97 | ============================================== |
@@ -108,6 +112,10 @@ specified through the Comm byte. | |||
108 | 112 | ||
109 | S Addr Wr [A] Comm [A] DataLow [A] DataHigh [A] P | 113 | S Addr Wr [A] Comm [A] DataLow [A] DataHigh [A] P |
110 | 114 | ||
115 | Note the convenience function i2c_smbus_write_word_swapped is | ||
116 | available for writes where the two data bytes are the other way | ||
117 | around (not SMBus compliant, but very popular.) | ||
118 | |||
111 | 119 | ||
112 | SMBus Process Call: i2c_smbus_process_call() | 120 | SMBus Process Call: i2c_smbus_process_call() |
113 | ============================================= | 121 | ============================================= |
diff --git a/Documentation/input/elantech.txt b/Documentation/input/elantech.txt index db798af5ef98..5602eb71ad5d 100644 --- a/Documentation/input/elantech.txt +++ b/Documentation/input/elantech.txt | |||
@@ -16,15 +16,28 @@ Contents | |||
16 | 16 | ||
17 | 1. Introduction | 17 | 1. Introduction |
18 | 2. Extra knobs | 18 | 2. Extra knobs |
19 | 3. Hardware version 1 | 19 | 3. Differentiating hardware versions |
20 | 3.1 Registers | 20 | 4. Hardware version 1 |
21 | 3.2 Native relative mode 4 byte packet format | ||
22 | 3.3 Native absolute mode 4 byte packet format | ||
23 | 4. Hardware version 2 | ||
24 | 4.1 Registers | 21 | 4.1 Registers |
25 | 4.2 Native absolute mode 6 byte packet format | 22 | 4.2 Native relative mode 4 byte packet format |
26 | 4.2.1 One finger touch | 23 | 4.3 Native absolute mode 4 byte packet format |
27 | 4.2.2 Two finger touch | 24 | 5. Hardware version 2 |
25 | 5.1 Registers | ||
26 | 5.2 Native absolute mode 6 byte packet format | ||
27 | 5.2.1 Parity checking and packet re-synchronization | ||
28 | 5.2.2 One/Three finger touch | ||
29 | 5.2.3 Two finger touch | ||
30 | 6. Hardware version 3 | ||
31 | 6.1 Registers | ||
32 | 6.2 Native absolute mode 6 byte packet format | ||
33 | 6.2.1 One/Three finger touch | ||
34 | 6.2.2 Two finger touch | ||
35 | 7. Hardware version 4 | ||
36 | 7.1 Registers | ||
37 | 7.2 Native absolute mode 6 byte packet format | ||
38 | 7.2.1 Status packet | ||
39 | 7.2.2 Head packet | ||
40 | 7.2.3 Motion packet | ||
28 | 41 | ||
29 | 42 | ||
30 | 43 | ||
@@ -375,7 +388,7 @@ For all the other ones, there are just a few constant bits: | |||
375 | 388 | ||
376 | In case an error is detected, all the packets are shifted by one (and packet[0] is discarded). | 389 | In case an error is detected, all the packets are shifted by one (and packet[0] is discarded). |
377 | 390 | ||
378 | 5.2.1 One/Three finger touch | 391 | 5.2.2 One/Three finger touch |
379 | ~~~~~~~~~~~~~~~~ | 392 | ~~~~~~~~~~~~~~~~ |
380 | 393 | ||
381 | byte 0: | 394 | byte 0: |
@@ -384,19 +397,19 @@ byte 0: | |||
384 | n1 n0 w3 w2 . . R L | 397 | n1 n0 w3 w2 . . R L |
385 | 398 | ||
386 | L, R = 1 when Left, Right mouse button pressed | 399 | L, R = 1 when Left, Right mouse button pressed |
387 | n1..n0 = numbers of fingers on touchpad | 400 | n1..n0 = number of fingers on touchpad |
388 | 401 | ||
389 | byte 1: | 402 | byte 1: |
390 | 403 | ||
391 | bit 7 6 5 4 3 2 1 0 | 404 | bit 7 6 5 4 3 2 1 0 |
392 | p7 p6 p5 p4 . x10 x9 x8 | 405 | p7 p6 p5 p4 x11 x10 x9 x8 |
393 | 406 | ||
394 | byte 2: | 407 | byte 2: |
395 | 408 | ||
396 | bit 7 6 5 4 3 2 1 0 | 409 | bit 7 6 5 4 3 2 1 0 |
397 | x7 x6 x5 x4 x3 x2 x1 x0 | 410 | x7 x6 x5 x4 x3 x2 x1 x0 |
398 | 411 | ||
399 | x10..x0 = absolute x value (horizontal) | 412 | x11..x0 = absolute x value (horizontal) |
400 | 413 | ||
401 | byte 3: | 414 | byte 3: |
402 | 415 | ||
@@ -420,7 +433,7 @@ byte 3: | |||
420 | byte 4: | 433 | byte 4: |
421 | 434 | ||
422 | bit 7 6 5 4 3 2 1 0 | 435 | bit 7 6 5 4 3 2 1 0 |
423 | p3 p1 p2 p0 . . y9 y8 | 436 | p3 p1 p2 p0 y11 y10 y9 y8 |
424 | 437 | ||
425 | p7..p0 = pressure (not EF113) | 438 | p7..p0 = pressure (not EF113) |
426 | 439 | ||
@@ -429,10 +442,10 @@ byte 5: | |||
429 | bit 7 6 5 4 3 2 1 0 | 442 | bit 7 6 5 4 3 2 1 0 |
430 | y7 y6 y5 y4 y3 y2 y1 y0 | 443 | y7 y6 y5 y4 y3 y2 y1 y0 |
431 | 444 | ||
432 | y9..y0 = absolute y value (vertical) | 445 | y11..y0 = absolute y value (vertical) |
433 | 446 | ||
434 | 447 | ||
435 | 4.2.2 Two finger touch | 448 | 5.2.3 Two finger touch |
436 | ~~~~~~~~~~~~~~~~ | 449 | ~~~~~~~~~~~~~~~~ |
437 | 450 | ||
438 | Note that the two pairs of coordinates are not exactly the coordinates of the | 451 | Note that the two pairs of coordinates are not exactly the coordinates of the |
@@ -446,7 +459,7 @@ byte 0: | |||
446 | n1 n0 ay8 ax8 . . R L | 459 | n1 n0 ay8 ax8 . . R L |
447 | 460 | ||
448 | L, R = 1 when Left, Right mouse button pressed | 461 | L, R = 1 when Left, Right mouse button pressed |
449 | n1..n0 = numbers of fingers on touchpad | 462 | n1..n0 = number of fingers on touchpad |
450 | 463 | ||
451 | byte 1: | 464 | byte 1: |
452 | 465 | ||
@@ -480,3 +493,253 @@ byte 5: | |||
480 | by7 by8 by5 by4 by3 by2 by1 by0 | 493 | by7 by8 by5 by4 by3 by2 by1 by0 |
481 | 494 | ||
482 | by8..by0 = upper-right finger absolute y value | 495 | by8..by0 = upper-right finger absolute y value |
496 | |||
497 | ///////////////////////////////////////////////////////////////////////////// | ||
498 | |||
499 | 6. Hardware version 3 | ||
500 | ================== | ||
501 | |||
502 | 6.1 Registers | ||
503 | ~~~~~~~~~ | ||
504 | * reg_10 | ||
505 | |||
506 | bit 7 6 5 4 3 2 1 0 | ||
507 | 0 0 0 0 0 0 0 A | ||
508 | |||
509 | A: 1 = enable absolute tracking | ||
510 | |||
511 | 6.2 Native absolute mode 6 byte packet format | ||
512 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | ||
513 | 1 and 3 finger touch shares the same 6-byte packet format, except that | ||
514 | 3 finger touch only reports the position of the center of all three fingers. | ||
515 | |||
516 | Firmware would send 12 bytes of data for 2 finger touch. | ||
517 | |||
518 | Note on debounce: | ||
519 | In case the box has unstable power supply or other electricity issues, or | ||
520 | when number of finger changes, F/W would send "debounce packet" to inform | ||
521 | driver that the hardware is in debounce status. | ||
522 | The debouce packet has the following signature: | ||
523 | byte 0: 0xc4 | ||
524 | byte 1: 0xff | ||
525 | byte 2: 0xff | ||
526 | byte 3: 0x02 | ||
527 | byte 4: 0xff | ||
528 | byte 5: 0xff | ||
529 | When we encounter this kind of packet, we just ignore it. | ||
530 | |||
531 | 6.2.1 One/Three finger touch | ||
532 | ~~~~~~~~~~~~~~~~~~~~~~ | ||
533 | |||
534 | byte 0: | ||
535 | |||
536 | bit 7 6 5 4 3 2 1 0 | ||
537 | n1 n0 w3 w2 0 1 R L | ||
538 | |||
539 | L, R = 1 when Left, Right mouse button pressed | ||
540 | n1..n0 = number of fingers on touchpad | ||
541 | |||
542 | byte 1: | ||
543 | |||
544 | bit 7 6 5 4 3 2 1 0 | ||
545 | p7 p6 p5 p4 x11 x10 x9 x8 | ||
546 | |||
547 | byte 2: | ||
548 | |||
549 | bit 7 6 5 4 3 2 1 0 | ||
550 | x7 x6 x5 x4 x3 x2 x1 x0 | ||
551 | |||
552 | x11..x0 = absolute x value (horizontal) | ||
553 | |||
554 | byte 3: | ||
555 | |||
556 | bit 7 6 5 4 3 2 1 0 | ||
557 | 0 0 w1 w0 0 0 1 0 | ||
558 | |||
559 | w3..w0 = width of the finger touch | ||
560 | |||
561 | byte 4: | ||
562 | |||
563 | bit 7 6 5 4 3 2 1 0 | ||
564 | p3 p1 p2 p0 y11 y10 y9 y8 | ||
565 | |||
566 | p7..p0 = pressure | ||
567 | |||
568 | byte 5: | ||
569 | |||
570 | bit 7 6 5 4 3 2 1 0 | ||
571 | y7 y6 y5 y4 y3 y2 y1 y0 | ||
572 | |||
573 | y11..y0 = absolute y value (vertical) | ||
574 | |||
575 | 6.2.2 Two finger touch | ||
576 | ~~~~~~~~~~~~~~~~ | ||
577 | |||
578 | The packet format is exactly the same for two finger touch, except the hardware | ||
579 | sends two 6 byte packets. The first packet contains data for the first finger, | ||
580 | the second packet has data for the second finger. So for two finger touch a | ||
581 | total of 12 bytes are sent. | ||
582 | |||
583 | ///////////////////////////////////////////////////////////////////////////// | ||
584 | |||
585 | 7. Hardware version 4 | ||
586 | ================== | ||
587 | |||
588 | 7.1 Registers | ||
589 | ~~~~~~~~~ | ||
590 | * reg_07 | ||
591 | |||
592 | bit 7 6 5 4 3 2 1 0 | ||
593 | 0 0 0 0 0 0 0 A | ||
594 | |||
595 | A: 1 = enable absolute tracking | ||
596 | |||
597 | 7.2 Native absolute mode 6 byte packet format | ||
598 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | ||
599 | v4 hardware is a true multitouch touchpad, capable of tracking up to 5 fingers. | ||
600 | Unfortunately, due to PS/2's limited bandwidth, its packet format is rather | ||
601 | complex. | ||
602 | |||
603 | Whenever the numbers or identities of the fingers changes, the hardware sends a | ||
604 | status packet to indicate how many and which fingers is on touchpad, followed by | ||
605 | head packets or motion packets. A head packet contains data of finger id, finger | ||
606 | position (absolute x, y values), width, and pressure. A motion packet contains | ||
607 | two fingers' position delta. | ||
608 | |||
609 | For example, when status packet tells there are 2 fingers on touchpad, then we | ||
610 | can expect two following head packets. If the finger status doesn't change, | ||
611 | the following packets would be motion packets, only sending delta of finger | ||
612 | position, until we receive a status packet. | ||
613 | |||
614 | One exception is one finger touch. when a status packet tells us there is only | ||
615 | one finger, the hardware would just send head packets afterwards. | ||
616 | |||
617 | 7.2.1 Status packet | ||
618 | ~~~~~~~~~~~~~ | ||
619 | |||
620 | byte 0: | ||
621 | |||
622 | bit 7 6 5 4 3 2 1 0 | ||
623 | . . . . 0 1 R L | ||
624 | |||
625 | L, R = 1 when Left, Right mouse button pressed | ||
626 | |||
627 | byte 1: | ||
628 | |||
629 | bit 7 6 5 4 3 2 1 0 | ||
630 | . . . ft4 ft3 ft2 ft1 ft0 | ||
631 | |||
632 | ft4 ft3 ft2 ft1 ft0 ftn = 1 when finger n is on touchpad | ||
633 | |||
634 | byte 2: not used | ||
635 | |||
636 | byte 3: | ||
637 | |||
638 | bit 7 6 5 4 3 2 1 0 | ||
639 | . . . 1 0 0 0 0 | ||
640 | |||
641 | constant bits | ||
642 | |||
643 | byte 4: | ||
644 | |||
645 | bit 7 6 5 4 3 2 1 0 | ||
646 | p . . . . . . . | ||
647 | |||
648 | p = 1 for palm | ||
649 | |||
650 | byte 5: not used | ||
651 | |||
652 | 7.2.2 Head packet | ||
653 | ~~~~~~~~~~~ | ||
654 | |||
655 | byte 0: | ||
656 | |||
657 | bit 7 6 5 4 3 2 1 0 | ||
658 | w3 w2 w1 w0 0 1 R L | ||
659 | |||
660 | L, R = 1 when Left, Right mouse button pressed | ||
661 | w3..w0 = finger width (spans how many trace lines) | ||
662 | |||
663 | byte 1: | ||
664 | |||
665 | bit 7 6 5 4 3 2 1 0 | ||
666 | p7 p6 p5 p4 x11 x10 x9 x8 | ||
667 | |||
668 | byte 2: | ||
669 | |||
670 | bit 7 6 5 4 3 2 1 0 | ||
671 | x7 x6 x5 x4 x3 x2 x1 x0 | ||
672 | |||
673 | x11..x0 = absolute x value (horizontal) | ||
674 | |||
675 | byte 3: | ||
676 | |||
677 | bit 7 6 5 4 3 2 1 0 | ||
678 | id2 id1 id0 1 0 0 0 1 | ||
679 | |||
680 | id2..id0 = finger id | ||
681 | |||
682 | byte 4: | ||
683 | |||
684 | bit 7 6 5 4 3 2 1 0 | ||
685 | p3 p1 p2 p0 y11 y10 y9 y8 | ||
686 | |||
687 | p7..p0 = pressure | ||
688 | |||
689 | byte 5: | ||
690 | |||
691 | bit 7 6 5 4 3 2 1 0 | ||
692 | y7 y6 y5 y4 y3 y2 y1 y0 | ||
693 | |||
694 | y11..y0 = absolute y value (vertical) | ||
695 | |||
696 | 7.2.3 Motion packet | ||
697 | ~~~~~~~~~~~~~ | ||
698 | |||
699 | byte 0: | ||
700 | |||
701 | bit 7 6 5 4 3 2 1 0 | ||
702 | id2 id1 id0 w 0 1 R L | ||
703 | |||
704 | L, R = 1 when Left, Right mouse button pressed | ||
705 | id2..id0 = finger id | ||
706 | w = 1 when delta overflows (> 127 or < -128), in this case | ||
707 | firmware sends us (delta x / 5) and (delta y / 5) | ||
708 | |||
709 | byte 1: | ||
710 | |||
711 | bit 7 6 5 4 3 2 1 0 | ||
712 | x7 x6 x5 x4 x3 x2 x1 x0 | ||
713 | |||
714 | x7..x0 = delta x (two's complement) | ||
715 | |||
716 | byte 2: | ||
717 | |||
718 | bit 7 6 5 4 3 2 1 0 | ||
719 | y7 y6 y5 y4 y3 y2 y1 y0 | ||
720 | |||
721 | y7..y0 = delta y (two's complement) | ||
722 | |||
723 | byte 3: | ||
724 | |||
725 | bit 7 6 5 4 3 2 1 0 | ||
726 | id2 id1 id0 1 0 0 1 0 | ||
727 | |||
728 | id2..id0 = finger id | ||
729 | |||
730 | byte 4: | ||
731 | |||
732 | bit 7 6 5 4 3 2 1 0 | ||
733 | x7 x6 x5 x4 x3 x2 x1 x0 | ||
734 | |||
735 | x7..x0 = delta x (two's complement) | ||
736 | |||
737 | byte 5: | ||
738 | |||
739 | bit 7 6 5 4 3 2 1 0 | ||
740 | y7 y6 y5 y4 y3 y2 y1 y0 | ||
741 | |||
742 | y7..y0 = delta y (two's complement) | ||
743 | |||
744 | byte 0 ~ 2 for one finger | ||
745 | byte 3 ~ 5 for another | ||
diff --git a/Documentation/input/multi-touch-protocol.txt b/Documentation/input/multi-touch-protocol.txt index 71536e78406f..543101c5bf26 100644 --- a/Documentation/input/multi-touch-protocol.txt +++ b/Documentation/input/multi-touch-protocol.txt | |||
@@ -65,6 +65,20 @@ the full state of each initiated contact has to reside in the receiving | |||
65 | end. Upon receiving an MT event, one simply updates the appropriate | 65 | end. Upon receiving an MT event, one simply updates the appropriate |
66 | attribute of the current slot. | 66 | attribute of the current slot. |
67 | 67 | ||
68 | Some devices identify and/or track more contacts than they can report to the | ||
69 | driver. A driver for such a device should associate one type B slot with each | ||
70 | contact that is reported by the hardware. Whenever the identity of the | ||
71 | contact associated with a slot changes, the driver should invalidate that | ||
72 | slot by changing its ABS_MT_TRACKING_ID. If the hardware signals that it is | ||
73 | tracking more contacts than it is currently reporting, the driver should use | ||
74 | a BTN_TOOL_*TAP event to inform userspace of the total number of contacts | ||
75 | being tracked by the hardware at that moment. The driver should do this by | ||
76 | explicitly sending the corresponding BTN_TOOL_*TAP event and setting | ||
77 | use_count to false when calling input_mt_report_pointer_emulation(). | ||
78 | The driver should only advertise as many slots as the hardware can report. | ||
79 | Userspace can detect that a driver can report more total contacts than slots | ||
80 | by noting that the largest supported BTN_TOOL_*TAP event is larger than the | ||
81 | total number of type B slots reported in the absinfo for the ABS_MT_SLOT axis. | ||
68 | 82 | ||
69 | Protocol Example A | 83 | Protocol Example A |
70 | ------------------ | 84 | ------------------ |
diff --git a/Documentation/kernel-parameters.txt b/Documentation/kernel-parameters.txt index a8ba119a4d53..27e0488d54d2 100644 --- a/Documentation/kernel-parameters.txt +++ b/Documentation/kernel-parameters.txt | |||
@@ -307,6 +307,19 @@ bytes respectively. Such letter suffixes can also be entirely omitted. | |||
307 | behaviour to be specified. Bit 0 enables warnings, | 307 | behaviour to be specified. Bit 0 enables warnings, |
308 | bit 1 enables fixups, and bit 2 sends a segfault. | 308 | bit 1 enables fixups, and bit 2 sends a segfault. |
309 | 309 | ||
310 | align_va_addr= [X86-64] | ||
311 | Align virtual addresses by clearing slice [14:12] when | ||
312 | allocating a VMA at process creation time. This option | ||
313 | gives you up to 3% performance improvement on AMD F15h | ||
314 | machines (where it is enabled by default) for a | ||
315 | CPU-intensive style benchmark, and it can vary highly in | ||
316 | a microbenchmark depending on workload and compiler. | ||
317 | |||
318 | 1: only for 32-bit processes | ||
319 | 2: only for 64-bit processes | ||
320 | on: enable for both 32- and 64-bit processes | ||
321 | off: disable for both 32- and 64-bit processes | ||
322 | |||
310 | amd_iommu= [HW,X86-84] | 323 | amd_iommu= [HW,X86-84] |
311 | Pass parameters to the AMD IOMMU driver in the system. | 324 | Pass parameters to the AMD IOMMU driver in the system. |
312 | Possible values are: | 325 | Possible values are: |
@@ -1188,6 +1201,10 @@ bytes respectively. Such letter suffixes can also be entirely omitted. | |||
1188 | [KVM,Intel] Disable FlexPriority feature (TPR shadow). | 1201 | [KVM,Intel] Disable FlexPriority feature (TPR shadow). |
1189 | Default is 1 (enabled) | 1202 | Default is 1 (enabled) |
1190 | 1203 | ||
1204 | kvm-intel.nested= | ||
1205 | [KVM,Intel] Enable VMX nesting (nVMX). | ||
1206 | Default is 0 (disabled) | ||
1207 | |||
1191 | kvm-intel.unrestricted_guest= | 1208 | kvm-intel.unrestricted_guest= |
1192 | [KVM,Intel] Disable unrestricted guest feature | 1209 | [KVM,Intel] Disable unrestricted guest feature |
1193 | (virtualized real and unpaged mode) on capable | 1210 | (virtualized real and unpaged mode) on capable |
@@ -1784,6 +1801,11 @@ bytes respectively. Such letter suffixes can also be entirely omitted. | |||
1784 | 1801 | ||
1785 | noresidual [PPC] Don't use residual data on PReP machines. | 1802 | noresidual [PPC] Don't use residual data on PReP machines. |
1786 | 1803 | ||
1804 | nordrand [X86] Disable the direct use of the RDRAND | ||
1805 | instruction even if it is supported by the | ||
1806 | processor. RDRAND is still available to user | ||
1807 | space applications. | ||
1808 | |||
1787 | noresume [SWSUSP] Disables resume and restores original swap | 1809 | noresume [SWSUSP] Disables resume and restores original swap |
1788 | space. | 1810 | space. |
1789 | 1811 | ||
diff --git a/Documentation/scsi/00-INDEX b/Documentation/scsi/00-INDEX index c2e18e109858..b48ded55b555 100644 --- a/Documentation/scsi/00-INDEX +++ b/Documentation/scsi/00-INDEX | |||
@@ -28,6 +28,8 @@ LICENSE.FlashPoint | |||
28 | - Licence of the Flashpoint driver | 28 | - Licence of the Flashpoint driver |
29 | LICENSE.qla2xxx | 29 | LICENSE.qla2xxx |
30 | - License for QLogic Linux Fibre Channel HBA Driver firmware. | 30 | - License for QLogic Linux Fibre Channel HBA Driver firmware. |
31 | LICENSE.qla4xxx | ||
32 | - License for QLogic Linux iSCSI HBA Driver. | ||
31 | Mylex.txt | 33 | Mylex.txt |
32 | - info on driver for Mylex adapters | 34 | - info on driver for Mylex adapters |
33 | NinjaSCSI.txt | 35 | NinjaSCSI.txt |
diff --git a/Documentation/scsi/ChangeLog.megaraid_sas b/Documentation/scsi/ChangeLog.megaraid_sas index 1b6e27ddb7f3..64adb98b181c 100644 --- a/Documentation/scsi/ChangeLog.megaraid_sas +++ b/Documentation/scsi/ChangeLog.megaraid_sas | |||
@@ -1,3 +1,18 @@ | |||
1 | Release Date : Wed. Oct 5, 2011 17:00:00 PST 2010 - | ||
2 | (emaild-id:megaraidlinux@lsi.com) | ||
3 | Adam Radford | ||
4 | Current Version : 00.00.06.12-rc1 | ||
5 | Old Version : 00.00.05.40-rc1 | ||
6 | 1. Continue booting immediately if FW in FAULT at driver load time. | ||
7 | 2. Increase default cmds per lun to 256. | ||
8 | 3. Fix mismatch in megasas_reset_fusion() mutex lock-unlock. | ||
9 | 4. Remove some un-necessary code. | ||
10 | 5. Clear state change interrupts for Fusion/Invader. | ||
11 | 6. Clear FUSION_IN_RESET before enabling interrupts. | ||
12 | 7. Add support for MegaRAID 9360/9380 12GB/s controllers. | ||
13 | 8. Add multiple MSI-X vector/multiple reply queue support. | ||
14 | 9. Add driver workaround for PERC5/1068 kdump kernel panic. | ||
15 | ------------------------------------------------------------------------------- | ||
1 | Release Date : Tue. Jul 26, 2011 17:00:00 PST 2010 - | 16 | Release Date : Tue. Jul 26, 2011 17:00:00 PST 2010 - |
2 | (emaild-id:megaraidlinux@lsi.com) | 17 | (emaild-id:megaraidlinux@lsi.com) |
3 | Adam Radford | 18 | Adam Radford |
diff --git a/Documentation/scsi/LICENSE.qla4xxx b/Documentation/scsi/LICENSE.qla4xxx new file mode 100644 index 000000000000..494980e40491 --- /dev/null +++ b/Documentation/scsi/LICENSE.qla4xxx | |||
@@ -0,0 +1,310 @@ | |||
1 | Copyright (c) 2003-2011 QLogic Corporation | ||
2 | QLogic Linux iSCSI HBA Driver | ||
3 | |||
4 | This program includes a device driver for Linux 3.x. | ||
5 | You may modify and redistribute the device driver code under the | ||
6 | GNU General Public License (a copy of which is attached hereto as | ||
7 | Exhibit A) published by the Free Software Foundation (version 2). | ||
8 | |||
9 | REGARDLESS OF WHAT LICENSING MECHANISM IS USED OR APPLICABLE, | ||
10 | THIS PROGRAM IS PROVIDED BY QLOGIC CORPORATION "AS IS'' AND ANY | ||
11 | EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE | ||
12 | IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A | ||
13 | PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR | ||
14 | BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, | ||
15 | EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED | ||
16 | TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, | ||
17 | DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON | ||
18 | ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, | ||
19 | OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY | ||
20 | OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE | ||
21 | POSSIBILITY OF SUCH DAMAGE. | ||
22 | |||
23 | USER ACKNOWLEDGES AND AGREES THAT USE OF THIS PROGRAM WILL NOT | ||
24 | CREATE OR GIVE GROUNDS FOR A LICENSE BY IMPLICATION, ESTOPPEL, OR | ||
25 | OTHERWISE IN ANY INTELLECTUAL PROPERTY RIGHTS (PATENT, COPYRIGHT, | ||
26 | TRADE SECRET, MASK WORK, OR OTHER PROPRIETARY RIGHT) EMBODIED IN | ||
27 | ANY OTHER QLOGIC HARDWARE OR SOFTWARE EITHER SOLELY OR IN | ||
28 | COMBINATION WITH THIS PROGRAM. | ||
29 | |||
30 | |||
31 | EXHIBIT A | ||
32 | |||
33 | GNU GENERAL PUBLIC LICENSE | ||
34 | Version 2, June 1991 | ||
35 | |||
36 | Copyright (C) 1989, 1991 Free Software Foundation, Inc. | ||
37 | 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA | ||
38 | Everyone is permitted to copy and distribute verbatim copies | ||
39 | of this license document, but changing it is not allowed. | ||
40 | |||
41 | Preamble | ||
42 | |||
43 | The licenses for most software are designed to take away your | ||
44 | freedom to share and change it. By contrast, the GNU General Public | ||
45 | License is intended to guarantee your freedom to share and change free | ||
46 | software--to make sure the software is free for all its users. This | ||
47 | General Public License applies to most of the Free Software | ||
48 | Foundation's software and to any other program whose authors commit to | ||
49 | using it. (Some other Free Software Foundation software is covered by | ||
50 | the GNU Lesser General Public License instead.) You can apply it to | ||
51 | your programs, too. | ||
52 | |||
53 | When we speak of free software, we are referring to freedom, not | ||
54 | price. Our General Public Licenses are designed to make sure that you | ||
55 | have the freedom to distribute copies of free software (and charge for | ||
56 | this service if you wish), that you receive source code or can get it | ||
57 | if you want it, that you can change the software or use pieces of it | ||
58 | in new free programs; and that you know you can do these things. | ||
59 | |||
60 | To protect your rights, we need to make restrictions that forbid | ||
61 | anyone to deny you these rights or to ask you to surrender the rights. | ||
62 | These restrictions translate to certain responsibilities for you if you | ||
63 | distribute copies of the software, or if you modify it. | ||
64 | |||
65 | For example, if you distribute copies of such a program, whether | ||
66 | gratis or for a fee, you must give the recipients all the rights that | ||
67 | you have. You must make sure that they, too, receive or can get the | ||
68 | source code. And you must show them these terms so they know their | ||
69 | rights. | ||
70 | |||
71 | We protect your rights with two steps: (1) copyright the software, and | ||
72 | (2) offer you this license which gives you legal permission to copy, | ||
73 | distribute and/or modify the software. | ||
74 | |||
75 | Also, for each author's protection and ours, we want to make certain | ||
76 | that everyone understands that there is no warranty for this free | ||
77 | software. If the software is modified by someone else and passed on, we | ||
78 | want its recipients to know that what they have is not the original, so | ||
79 | that any problems introduced by others will not reflect on the original | ||
80 | authors' reputations. | ||
81 | |||
82 | Finally, any free program is threatened constantly by software | ||
83 | patents. We wish to avoid the danger that redistributors of a free | ||
84 | program will individually obtain patent licenses, in effect making the | ||
85 | program proprietary. To prevent this, we have made it clear that any | ||
86 | patent must be licensed for everyone's free use or not licensed at all. | ||
87 | |||
88 | The precise terms and conditions for copying, distribution and | ||
89 | modification follow. | ||
90 | |||
91 | GNU GENERAL PUBLIC LICENSE | ||
92 | TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION | ||
93 | |||
94 | 0. This License applies to any program or other work which contains | ||
95 | a notice placed by the copyright holder saying it may be distributed | ||
96 | under the terms of this General Public License. The "Program", below, | ||
97 | refers to any such program or work, and a "work based on the Program" | ||
98 | means either the Program or any derivative work under copyright law: | ||
99 | that is to say, a work containing the Program or a portion of it, | ||
100 | either verbatim or with modifications and/or translated into another | ||
101 | language. (Hereinafter, translation is included without limitation in | ||
102 | the term "modification".) Each licensee is addressed as "you". | ||
103 | |||
104 | Activities other than copying, distribution and modification are not | ||
105 | covered by this License; they are outside its scope. The act of | ||
106 | running the Program is not restricted, and the output from the Program | ||
107 | is covered only if its contents constitute a work based on the | ||
108 | Program (independent of having been made by running the Program). | ||
109 | Whether that is true depends on what the Program does. | ||
110 | |||
111 | 1. You may copy and distribute verbatim copies of the Program's | ||
112 | source code as you receive it, in any medium, provided that you | ||
113 | conspicuously and appropriately publish on each copy an appropriate | ||
114 | copyright notice and disclaimer of warranty; keep intact all the | ||
115 | notices that refer to this License and to the absence of any warranty; | ||
116 | and give any other recipients of the Program a copy of this License | ||
117 | along with the Program. | ||
118 | |||
119 | You may charge a fee for the physical act of transferring a copy, and | ||
120 | you may at your option offer warranty protection in exchange for a fee. | ||
121 | |||
122 | 2. You may modify your copy or copies of the Program or any portion | ||
123 | of it, thus forming a work based on the Program, and copy and | ||
124 | distribute such modifications or work under the terms of Section 1 | ||
125 | above, provided that you also meet all of these conditions: | ||
126 | |||
127 | a) You must cause the modified files to carry prominent notices | ||
128 | stating that you changed the files and the date of any change. | ||
129 | |||
130 | b) You must cause any work that you distribute or publish, that in | ||
131 | whole or in part contains or is derived from the Program or any | ||
132 | part thereof, to be licensed as a whole at no charge to all third | ||
133 | parties under the terms of this License. | ||
134 | |||
135 | c) If the modified program normally reads commands interactively | ||
136 | when run, you must cause it, when started running for such | ||
137 | interactive use in the most ordinary way, to print or display an | ||
138 | announcement including an appropriate copyright notice and a | ||
139 | notice that there is no warranty (or else, saying that you provide | ||
140 | a warranty) and that users may redistribute the program under | ||
141 | these conditions, and telling the user how to view a copy of this | ||
142 | License. (Exception: if the Program itself is interactive but | ||
143 | does not normally print such an announcement, your work based on | ||
144 | the Program is not required to print an announcement.) | ||
145 | |||
146 | These requirements apply to the modified work as a whole. If | ||
147 | identifiable sections of that work are not derived from the Program, | ||
148 | and can be reasonably considered independent and separate works in | ||
149 | themselves, then this License, and its terms, do not apply to those | ||
150 | sections when you distribute them as separate works. But when you | ||
151 | distribute the same sections as part of a whole which is a work based | ||
152 | on the Program, the distribution of the whole must be on the terms of | ||
153 | this License, whose permissions for other licensees extend to the | ||
154 | entire whole, and thus to each and every part regardless of who wrote it. | ||
155 | |||
156 | Thus, it is not the intent of this section to claim rights or contest | ||
157 | your rights to work written entirely by you; rather, the intent is to | ||
158 | exercise the right to control the distribution of derivative or | ||
159 | collective works based on the Program. | ||
160 | |||
161 | In addition, mere aggregation of another work not based on the Program | ||
162 | with the Program (or with a work based on the Program) on a volume of | ||
163 | a storage or distribution medium does not bring the other work under | ||
164 | the scope of this License. | ||
165 | |||
166 | 3. You may copy and distribute the Program (or a work based on it, | ||
167 | under Section 2) in object code or executable form under the terms of | ||
168 | Sections 1 and 2 above provided that you also do one of the following: | ||
169 | |||
170 | a) Accompany it with the complete corresponding machine-readable | ||
171 | source code, which must be distributed under the terms of Sections | ||
172 | 1 and 2 above on a medium customarily used for software interchange; or, | ||
173 | |||
174 | b) Accompany it with a written offer, valid for at least three | ||
175 | years, to give any third party, for a charge no more than your | ||
176 | cost of physically performing source distribution, a complete | ||
177 | machine-readable copy of the corresponding source code, to be | ||
178 | distributed under the terms of Sections 1 and 2 above on a medium | ||
179 | customarily used for software interchange; or, | ||
180 | |||
181 | c) Accompany it with the information you received as to the offer | ||
182 | to distribute corresponding source code. (This alternative is | ||
183 | allowed only for noncommercial distribution and only if you | ||
184 | received the program in object code or executable form with such | ||
185 | an offer, in accord with Subsection b above.) | ||
186 | |||
187 | The source code for a work means the preferred form of the work for | ||
188 | making modifications to it. For an executable work, complete source | ||
189 | code means all the source code for all modules it contains, plus any | ||
190 | associated interface definition files, plus the scripts used to | ||
191 | control compilation and installation of the executable. However, as a | ||
192 | special exception, the source code distributed need not include | ||
193 | anything that is normally distributed (in either source or binary | ||
194 | form) with the major components (compiler, kernel, and so on) of the | ||
195 | operating system on which the executable runs, unless that component | ||
196 | itself accompanies the executable. | ||
197 | |||
198 | If distribution of executable or object code is made by offering | ||
199 | access to copy from a designated place, then offering equivalent | ||
200 | access to copy the source code from the same place counts as | ||
201 | distribution of the source code, even though third parties are not | ||
202 | compelled to copy the source along with the object code. | ||
203 | |||
204 | 4. You may not copy, modify, sublicense, or distribute the Program | ||
205 | except as expressly provided under this License. Any attempt | ||
206 | otherwise to copy, modify, sublicense or distribute the Program is | ||
207 | void, and will automatically terminate your rights under this License. | ||
208 | However, parties who have received copies, or rights, from you under | ||
209 | this License will not have their licenses terminated so long as such | ||
210 | parties remain in full compliance. | ||
211 | |||
212 | 5. You are not required to accept this License, since you have not | ||
213 | signed it. However, nothing else grants you permission to modify or | ||
214 | distribute the Program or its derivative works. These actions are | ||
215 | prohibited by law if you do not accept this License. Therefore, by | ||
216 | modifying or distributing the Program (or any work based on the | ||
217 | Program), you indicate your acceptance of this License to do so, and | ||
218 | all its terms and conditions for copying, distributing or modifying | ||
219 | the Program or works based on it. | ||
220 | |||
221 | 6. Each time you redistribute the Program (or any work based on the | ||
222 | Program), the recipient automatically receives a license from the | ||
223 | original licensor to copy, distribute or modify the Program subject to | ||
224 | these terms and conditions. You may not impose any further | ||
225 | restrictions on the recipients' exercise of the rights granted herein. | ||
226 | You are not responsible for enforcing compliance by third parties to | ||
227 | this License. | ||
228 | |||
229 | 7. If, as a consequence of a court judgment or allegation of patent | ||
230 | infringement or for any other reason (not limited to patent issues), | ||
231 | conditions are imposed on you (whether by court order, agreement or | ||
232 | otherwise) that contradict the conditions of this License, they do not | ||
233 | excuse you from the conditions of this License. If you cannot | ||
234 | distribute so as to satisfy simultaneously your obligations under this | ||
235 | License and any other pertinent obligations, then as a consequence you | ||
236 | may not distribute the Program at all. For example, if a patent | ||
237 | license would not permit royalty-free redistribution of the Program by | ||
238 | all those who receive copies directly or indirectly through you, then | ||
239 | the only way you could satisfy both it and this License would be to | ||
240 | refrain entirely from distribution of the Program. | ||
241 | |||
242 | If any portion of this section is held invalid or unenforceable under | ||
243 | any particular circumstance, the balance of the section is intended to | ||
244 | apply and the section as a whole is intended to apply in other | ||
245 | circumstances. | ||
246 | |||
247 | It is not the purpose of this section to induce you to infringe any | ||
248 | patents or other property right claims or to contest validity of any | ||
249 | such claims; this section has the sole purpose of protecting the | ||
250 | integrity of the free software distribution system, which is | ||
251 | implemented by public license practices. Many people have made | ||
252 | generous contributions to the wide range of software distributed | ||
253 | through that system in reliance on consistent application of that | ||
254 | system; it is up to the author/donor to decide if he or she is willing | ||
255 | to distribute software through any other system and a licensee cannot | ||
256 | impose that choice. | ||
257 | |||
258 | This section is intended to make thoroughly clear what is believed to | ||
259 | be a consequence of the rest of this License. | ||
260 | |||
261 | 8. If the distribution and/or use of the Program is restricted in | ||
262 | certain countries either by patents or by copyrighted interfaces, the | ||
263 | original copyright holder who places the Program under this License | ||
264 | may add an explicit geographical distribution limitation excluding | ||
265 | those countries, so that distribution is permitted only in or among | ||
266 | countries not thus excluded. In such case, this License incorporates | ||
267 | the limitation as if written in the body of this License. | ||
268 | |||
269 | 9. The Free Software Foundation may publish revised and/or new versions | ||
270 | of the General Public License from time to time. Such new versions will | ||
271 | be similar in spirit to the present version, but may differ in detail to | ||
272 | address new problems or concerns. | ||
273 | |||
274 | Each version is given a distinguishing version number. If the Program | ||
275 | specifies a version number of this License which applies to it and "any | ||
276 | later version", you have the option of following the terms and conditions | ||
277 | either of that version or of any later version published by the Free | ||
278 | Software Foundation. If the Program does not specify a version number of | ||
279 | this License, you may choose any version ever published by the Free Software | ||
280 | Foundation. | ||
281 | |||
282 | 10. If you wish to incorporate parts of the Program into other free | ||
283 | programs whose distribution conditions are different, write to the author | ||
284 | to ask for permission. For software which is copyrighted by the Free | ||
285 | Software Foundation, write to the Free Software Foundation; we sometimes | ||
286 | make exceptions for this. Our decision will be guided by the two goals | ||
287 | of preserving the free status of all derivatives of our free software and | ||
288 | of promoting the sharing and reuse of software generally. | ||
289 | |||
290 | NO WARRANTY | ||
291 | |||
292 | 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY | ||
293 | FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN | ||
294 | OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES | ||
295 | PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED | ||
296 | OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF | ||
297 | MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS | ||
298 | TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE | ||
299 | PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, | ||
300 | REPAIR OR CORRECTION. | ||
301 | |||
302 | 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING | ||
303 | WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR | ||
304 | REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, | ||
305 | INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING | ||
306 | OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED | ||
307 | TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY | ||
308 | YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER | ||
309 | PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE | ||
310 | POSSIBILITY OF SUCH DAMAGES. | ||
diff --git a/Documentation/scsi/bnx2fc.txt b/Documentation/scsi/bnx2fc.txt new file mode 100644 index 000000000000..80823556d62f --- /dev/null +++ b/Documentation/scsi/bnx2fc.txt | |||
@@ -0,0 +1,75 @@ | |||
1 | Operating FCoE using bnx2fc | ||
2 | =========================== | ||
3 | Broadcom FCoE offload through bnx2fc is full stateful hardware offload that | ||
4 | cooperates with all interfaces provided by the Linux ecosystem for FC/FCoE and | ||
5 | SCSI controllers. As such, FCoE functionality, once enabled is largely | ||
6 | transparent. Devices discovered on the SAN will be registered and unregistered | ||
7 | automatically with the upper storage layers. | ||
8 | |||
9 | Despite the fact that the Broadcom's FCoE offload is fully offloaded, it does | ||
10 | depend on the state of the network interfaces to operate. As such, the network | ||
11 | interface (e.g. eth0) associated with the FCoE offload initiator must be 'up'. | ||
12 | It is recommended that the network interfaces be configured to be brought up | ||
13 | automatically at boot time. | ||
14 | |||
15 | Furthermore, the Broadcom FCoE offload solution creates VLAN interfaces to | ||
16 | support the VLANs that have been discovered for FCoE operation (e.g. | ||
17 | eth0.1001-fcoe). Do not delete or disable these interfaces or FCoE operation | ||
18 | will be disrupted. | ||
19 | |||
20 | Driver Usage Model: | ||
21 | =================== | ||
22 | |||
23 | 1. Ensure that fcoe-utils package is installed. | ||
24 | |||
25 | 2. Configure the interfaces on which bnx2fc driver has to operate on. | ||
26 | Here are the steps to configure: | ||
27 | a. cd /etc/fcoe | ||
28 | b. copy cfg-ethx to cfg-eth5 if FCoE has to be enabled on eth5. | ||
29 | c. Repeat this for all the interfaces where FCoE has to be enabled. | ||
30 | d. Edit all the cfg-eth files to set "no" for DCB_REQUIRED** field, and | ||
31 | "yes" for AUTO_VLAN. | ||
32 | e. Other configuration parameters should be left as default | ||
33 | |||
34 | 3. Ensure that "bnx2fc" is in SUPPORTED_DRIVERS list in /etc/fcoe/config. | ||
35 | |||
36 | 4. Start fcoe service. (service fcoe start). If Broadcom devices are present in | ||
37 | the system, bnx2fc driver would automatically claim the interfaces, starts vlan | ||
38 | discovery and log into the targets. | ||
39 | |||
40 | 5. "Symbolic Name" in 'fcoeadm -i' output would display if bnx2fc has claimed | ||
41 | the interface. | ||
42 | Eg: | ||
43 | [root@bh2 ~]# fcoeadm -i | ||
44 | Description: NetXtreme II BCM57712 10 Gigabit Ethernet | ||
45 | Revision: 01 | ||
46 | Manufacturer: Broadcom Corporation | ||
47 | Serial Number: 0010186FD558 | ||
48 | Driver: bnx2x 1.70.00-0 | ||
49 | Number of Ports: 2 | ||
50 | |||
51 | Symbolic Name: bnx2fc v1.0.5 over eth5.4 | ||
52 | OS Device Name: host11 | ||
53 | Node Name: 0x10000010186FD559 | ||
54 | Port Name: 0x20000010186FD559 | ||
55 | FabricName: 0x2001000DECB3B681 | ||
56 | Speed: 10 Gbit | ||
57 | Supported Speed: 10 Gbit | ||
58 | MaxFrameSize: 2048 | ||
59 | FC-ID (Port ID): 0x0F0377 | ||
60 | State: Online | ||
61 | |||
62 | 6. Verify the vlan discovery is performed by running ifconfig and notice | ||
63 | <INTERFACE>.<VLAN>-fcoe interfaces are automatically created. | ||
64 | |||
65 | Refer to fcoeadm manpage for more information on fcoeadm operations to | ||
66 | create/destroy interfaces or to display lun/target information. | ||
67 | |||
68 | NOTE: | ||
69 | ==== | ||
70 | ** Broadcom FCoE capable devices implement a DCBX/LLDP client on-chip. Only one | ||
71 | LLDP client is allowed per interface. For proper operation all host software | ||
72 | based DCBX/LLDP clients (e.g. lldpad) must be disabled. To disable lldpad on a | ||
73 | given interface, run the following command: | ||
74 | |||
75 | lldptool set-lldp -i <interface_name> adminStatus=disabled | ||
diff --git a/Documentation/sound/alsa/ALSA-Configuration.txt b/Documentation/sound/alsa/ALSA-Configuration.txt index 89757012c7ff..936699e4f04b 100644 --- a/Documentation/sound/alsa/ALSA-Configuration.txt +++ b/Documentation/sound/alsa/ALSA-Configuration.txt | |||
@@ -886,6 +886,12 @@ Prior to version 0.9.0rc4 options had a 'snd_' prefix. This was removed. | |||
886 | disable) | 886 | disable) |
887 | power_save_controller - Reset HD-audio controller in power-saving mode | 887 | power_save_controller - Reset HD-audio controller in power-saving mode |
888 | (default = on) | 888 | (default = on) |
889 | align_buffer_size - Force rounding of buffer/period sizes to multiples | ||
890 | of 128 bytes. This is more efficient in terms of memory | ||
891 | access but isn't required by the HDA spec and prevents | ||
892 | users from specifying exact period/buffer sizes. | ||
893 | (default = on) | ||
894 | snoop - Enable/disable snooping (default = on) | ||
889 | 895 | ||
890 | This module supports multiple cards and autoprobe. | 896 | This module supports multiple cards and autoprobe. |
891 | 897 | ||
diff --git a/Documentation/sound/alsa/HD-Audio-Controls.txt b/Documentation/sound/alsa/HD-Audio-Controls.txt index 1482035243e6..e9621e349e17 100644 --- a/Documentation/sound/alsa/HD-Audio-Controls.txt +++ b/Documentation/sound/alsa/HD-Audio-Controls.txt | |||
@@ -98,3 +98,19 @@ Conexant codecs | |||
98 | 98 | ||
99 | * Auto-Mute Mode | 99 | * Auto-Mute Mode |
100 | See Reatek codecs. | 100 | See Reatek codecs. |
101 | |||
102 | |||
103 | Analog codecs | ||
104 | -------------- | ||
105 | |||
106 | * Channel Mode | ||
107 | This is an enum control to change the surround-channel setup, | ||
108 | appears only when the surround channels are available. | ||
109 | It gives the number of channels to be used, "2ch", "4ch" and "6ch". | ||
110 | According to the configuration, this also controls the | ||
111 | jack-retasking of multi-I/O jacks. | ||
112 | |||
113 | * Independent HP | ||
114 | When this enum control is enabled, the headphone output is routed | ||
115 | from an individual stream (the third PCM such as hw:0,2) instead of | ||
116 | the primary stream. | ||
diff --git a/Documentation/sound/alsa/HD-Audio-Models.txt b/Documentation/sound/alsa/HD-Audio-Models.txt index d70c93bdcadf..4f3443230d89 100644 --- a/Documentation/sound/alsa/HD-Audio-Models.txt +++ b/Documentation/sound/alsa/HD-Audio-Models.txt | |||
@@ -29,9 +29,6 @@ ALC880 | |||
29 | 29 | ||
30 | ALC260 | 30 | ALC260 |
31 | ====== | 31 | ====== |
32 | hp HP machines | ||
33 | hp-3013 HP machines (3013-variant) | ||
34 | hp-dc7600 HP DC7600 | ||
35 | fujitsu Fujitsu S7020 | 32 | fujitsu Fujitsu S7020 |
36 | acer Acer TravelMate | 33 | acer Acer TravelMate |
37 | will Will laptops (PB V7900) | 34 | will Will laptops (PB V7900) |
@@ -46,15 +43,10 @@ ALC260 | |||
46 | ALC262 | 43 | ALC262 |
47 | ====== | 44 | ====== |
48 | fujitsu Fujitsu Laptop | 45 | fujitsu Fujitsu Laptop |
49 | hp-bpc HP xw4400/6400/8400/9400 laptops | ||
50 | hp-bpc-d7000 HP BPC D7000 | ||
51 | hp-tc-t5735 HP Thin Client T5735 | ||
52 | hp-rp5700 HP RP5700 | ||
53 | benq Benq ED8 | 46 | benq Benq ED8 |
54 | benq-t31 Benq T31 | 47 | benq-t31 Benq T31 |
55 | hippo Hippo (ATI) with jack detection, Sony UX-90s | 48 | hippo Hippo (ATI) with jack detection, Sony UX-90s |
56 | hippo_1 Hippo (Benq) with jack detection | 49 | hippo_1 Hippo (Benq) with jack detection |
57 | sony-assamd Sony ASSAMD | ||
58 | toshiba-s06 Toshiba S06 | 50 | toshiba-s06 Toshiba S06 |
59 | toshiba-rx1 Toshiba RX1 | 51 | toshiba-rx1 Toshiba RX1 |
60 | tyan Tyan Thunder n6650W (S2915-E) | 52 | tyan Tyan Thunder n6650W (S2915-E) |
@@ -66,43 +58,15 @@ ALC262 | |||
66 | 58 | ||
67 | ALC267/268 | 59 | ALC267/268 |
68 | ========== | 60 | ========== |
69 | quanta-il1 Quanta IL1 mini-notebook | 61 | N/A |
70 | 3stack 3-stack model | ||
71 | toshiba Toshiba A205 | ||
72 | acer Acer laptops | ||
73 | acer-dmic Acer laptops with digital-mic | ||
74 | acer-aspire Acer Aspire One | ||
75 | dell Dell OEM laptops (Vostro 1200) | ||
76 | zepto Zepto laptops | ||
77 | test for testing/debugging purpose, almost all controls can | ||
78 | adjusted. Appearing only when compiled with | ||
79 | $CONFIG_SND_DEBUG=y | ||
80 | auto auto-config reading BIOS (default) | ||
81 | 62 | ||
82 | ALC269 | 63 | ALC269 |
83 | ====== | 64 | ====== |
84 | basic Basic preset | ||
85 | quanta Quanta FL1 | ||
86 | laptop-amic Laptops with analog-mic input | 65 | laptop-amic Laptops with analog-mic input |
87 | laptop-dmic Laptops with digital-mic input | 66 | laptop-dmic Laptops with digital-mic input |
88 | fujitsu FSC Amilo | ||
89 | lifebook Fujitsu Lifebook S6420 | ||
90 | auto auto-config reading BIOS (default) | ||
91 | 67 | ||
92 | ALC662/663/272 | 68 | ALC662/663/272 |
93 | ============== | 69 | ============== |
94 | 3stack-dig 3-stack (2-channel) with SPDIF | ||
95 | 3stack-6ch 3-stack (6-channel) | ||
96 | 3stack-6ch-dig 3-stack (6-channel) with SPDIF | ||
97 | 5stack-dig 5-stack with SPDIF | ||
98 | lenovo-101e Lenovo laptop | ||
99 | eeepc-p701 ASUS Eeepc P701 | ||
100 | eeepc-ep20 ASUS Eeepc EP20 | ||
101 | ecs ECS/Foxconn mobo | ||
102 | m51va ASUS M51VA | ||
103 | g71v ASUS G71V | ||
104 | h13 ASUS H13 | ||
105 | g50v ASUS G50V | ||
106 | asus-mode1 ASUS | 70 | asus-mode1 ASUS |
107 | asus-mode2 ASUS | 71 | asus-mode2 ASUS |
108 | asus-mode3 ASUS | 72 | asus-mode3 ASUS |
@@ -111,15 +75,10 @@ ALC662/663/272 | |||
111 | asus-mode6 ASUS | 75 | asus-mode6 ASUS |
112 | asus-mode7 ASUS | 76 | asus-mode7 ASUS |
113 | asus-mode8 ASUS | 77 | asus-mode8 ASUS |
114 | dell Dell with ALC272 | ||
115 | dell-zm1 Dell ZM1 with ALC272 | ||
116 | samsung-nc10 Samsung NC10 mini notebook | ||
117 | auto auto-config reading BIOS (default) | ||
118 | 78 | ||
119 | ALC680 | 79 | ALC680 |
120 | ====== | 80 | ====== |
121 | base Base model (ASUS NX90) | 81 | N/A |
122 | auto auto-config reading BIOS (default) | ||
123 | 82 | ||
124 | ALC882/883/885/888/889 | 83 | ALC882/883/885/888/889 |
125 | ====================== | 84 | ====================== |
@@ -175,28 +134,11 @@ ALC882/883/885/888/889 | |||
175 | 134 | ||
176 | ALC861/660 | 135 | ALC861/660 |
177 | ========== | 136 | ========== |
178 | 3stack 3-jack | 137 | N/A |
179 | 3stack-dig 3-jack with SPDIF I/O | ||
180 | 6stack-dig 6-jack with SPDIF I/O | ||
181 | 3stack-660 3-jack (for ALC660) | ||
182 | uniwill-m31 Uniwill M31 laptop | ||
183 | toshiba Toshiba laptop support | ||
184 | asus Asus laptop support | ||
185 | asus-laptop ASUS F2/F3 laptops | ||
186 | auto auto-config reading BIOS (default) | ||
187 | 138 | ||
188 | ALC861VD/660VD | 139 | ALC861VD/660VD |
189 | ============== | 140 | ============== |
190 | 3stack 3-jack | 141 | N/A |
191 | 3stack-dig 3-jack with SPDIF OUT | ||
192 | 6stack-dig 6-jack with SPDIF OUT | ||
193 | 3stack-660 3-jack (for ALC660VD) | ||
194 | 3stack-660-digout 3-jack with SPDIF OUT (for ALC660VD) | ||
195 | lenovo Lenovo 3000 C200 | ||
196 | dallas Dallas laptops | ||
197 | hp HP TX1000 | ||
198 | asus-v1s ASUS V1Sn | ||
199 | auto auto-config reading BIOS (default) | ||
200 | 142 | ||
201 | CMI9880 | 143 | CMI9880 |
202 | ======= | 144 | ======= |
@@ -289,7 +231,6 @@ Conexant 5051 | |||
289 | hp-dv6736 HP dv6736 | 231 | hp-dv6736 HP dv6736 |
290 | hp-f700 HP Compaq Presario F700 | 232 | hp-f700 HP Compaq Presario F700 |
291 | ideapad Lenovo IdeaPad laptop | 233 | ideapad Lenovo IdeaPad laptop |
292 | lenovo-x200 Lenovo X200 laptop | ||
293 | toshiba Toshiba Satellite M300 | 234 | toshiba Toshiba Satellite M300 |
294 | 235 | ||
295 | Conexant 5066 | 236 | Conexant 5066 |
diff --git a/Documentation/sound/alsa/HD-Audio.txt b/Documentation/sound/alsa/HD-Audio.txt index c82beb007634..03e2771ddeef 100644 --- a/Documentation/sound/alsa/HD-Audio.txt +++ b/Documentation/sound/alsa/HD-Audio.txt | |||
@@ -447,7 +447,10 @@ The file needs to have a line `[codec]`. The next line should contain | |||
447 | three numbers indicating the codec vendor-id (0x12345678 in the | 447 | three numbers indicating the codec vendor-id (0x12345678 in the |
448 | example), the codec subsystem-id (0xabcd1234) and the address (2) of | 448 | example), the codec subsystem-id (0xabcd1234) and the address (2) of |
449 | the codec. The rest patch entries are applied to this specified codec | 449 | the codec. The rest patch entries are applied to this specified codec |
450 | until another codec entry is given. | 450 | until another codec entry is given. Passing 0 or a negative number to |
451 | the first or the second value will make the check of the corresponding | ||
452 | field be skipped. It'll be useful for really broken devices that don't | ||
453 | initialize SSID properly. | ||
451 | 454 | ||
452 | The `[model]` line allows to change the model name of the each codec. | 455 | The `[model]` line allows to change the model name of the each codec. |
453 | In the example above, it will be changed to model=auto. | 456 | In the example above, it will be changed to model=auto. |
@@ -491,7 +494,7 @@ Also, the codec chip name can be rewritten via `[chip_name]` line. | |||
491 | The hd-audio driver reads the file via request_firmware(). Thus, | 494 | The hd-audio driver reads the file via request_firmware(). Thus, |
492 | a patch file has to be located on the appropriate firmware path, | 495 | a patch file has to be located on the appropriate firmware path, |
493 | typically, /lib/firmware. For example, when you pass the option | 496 | typically, /lib/firmware. For example, when you pass the option |
494 | `patch=hda-init.fw`, the file /lib/firmware/hda-init-fw must be | 497 | `patch=hda-init.fw`, the file /lib/firmware/hda-init.fw must be |
495 | present. | 498 | present. |
496 | 499 | ||
497 | The patch module option is specific to each card instance, and you | 500 | The patch module option is specific to each card instance, and you |
@@ -524,6 +527,54 @@ power-saving. See /sys/module/snd_hda_intel/parameters/power_save to | |||
524 | check the current value. If it's non-zero, the feature is turned on. | 527 | check the current value. If it's non-zero, the feature is turned on. |
525 | 528 | ||
526 | 529 | ||
530 | Tracepoints | ||
531 | ~~~~~~~~~~~ | ||
532 | The hd-audio driver gives a few basic tracepoints. | ||
533 | `hda:hda_send_cmd` traces each CORB write while `hda:hda_get_response` | ||
534 | traces the response from RIRB (only when read from the codec driver). | ||
535 | `hda:hda_bus_reset` traces the bus-reset due to fatal error, etc, | ||
536 | `hda:hda_unsol_event` traces the unsolicited events, and | ||
537 | `hda:hda_power_down` and `hda:hda_power_up` trace the power down/up | ||
538 | via power-saving behavior. | ||
539 | |||
540 | Enabling all tracepoints can be done like | ||
541 | ------------------------------------------------------------------------ | ||
542 | # echo 1 > /sys/kernel/debug/tracing/events/hda/enable | ||
543 | ------------------------------------------------------------------------ | ||
544 | then after some commands, you can traces from | ||
545 | /sys/kernel/debug/tracing/trace file. For example, when you want to | ||
546 | trace what codec command is sent, enable the tracepoint like: | ||
547 | ------------------------------------------------------------------------ | ||
548 | # cat /sys/kernel/debug/tracing/trace | ||
549 | # tracer: nop | ||
550 | # | ||
551 | # TASK-PID CPU# TIMESTAMP FUNCTION | ||
552 | # | | | | | | ||
553 | <...>-7807 [002] 105147.774889: hda_send_cmd: [0:0] val=e3a019 | ||
554 | <...>-7807 [002] 105147.774893: hda_send_cmd: [0:0] val=e39019 | ||
555 | <...>-7807 [002] 105147.999542: hda_send_cmd: [0:0] val=e3a01a | ||
556 | <...>-7807 [002] 105147.999543: hda_send_cmd: [0:0] val=e3901a | ||
557 | <...>-26764 [001] 349222.837143: hda_send_cmd: [0:0] val=e3a019 | ||
558 | <...>-26764 [001] 349222.837148: hda_send_cmd: [0:0] val=e39019 | ||
559 | <...>-26764 [001] 349223.058539: hda_send_cmd: [0:0] val=e3a01a | ||
560 | <...>-26764 [001] 349223.058541: hda_send_cmd: [0:0] val=e3901a | ||
561 | ------------------------------------------------------------------------ | ||
562 | Here `[0:0]` indicates the card number and the codec address, and | ||
563 | `val` shows the value sent to the codec, respectively. The value is | ||
564 | a packed value, and you can decode it via hda-decode-verb program | ||
565 | included in hda-emu package below. For example, the value e3a019 is | ||
566 | to set the left output-amp value to 25. | ||
567 | ------------------------------------------------------------------------ | ||
568 | % hda-decode-verb 0xe3a019 | ||
569 | raw value = 0x00e3a019 | ||
570 | cid = 0, nid = 0x0e, verb = 0x3a0, parm = 0x19 | ||
571 | raw value: verb = 0x3a0, parm = 0x19 | ||
572 | verbname = set_amp_gain_mute | ||
573 | amp raw val = 0xa019 | ||
574 | output, left, idx=0, mute=0, val=25 | ||
575 | ------------------------------------------------------------------------ | ||
576 | |||
577 | |||
527 | Development Tree | 578 | Development Tree |
528 | ~~~~~~~~~~~~~~~~ | 579 | ~~~~~~~~~~~~~~~~ |
529 | The latest development codes for HD-audio are found on sound git tree: | 580 | The latest development codes for HD-audio are found on sound git tree: |
diff --git a/Documentation/virtual/kvm/api.txt b/Documentation/virtual/kvm/api.txt index b0e4b9cd6a66..7945b0bd35e2 100644 --- a/Documentation/virtual/kvm/api.txt +++ b/Documentation/virtual/kvm/api.txt | |||
@@ -175,10 +175,30 @@ Parameters: vcpu id (apic id on x86) | |||
175 | Returns: vcpu fd on success, -1 on error | 175 | Returns: vcpu fd on success, -1 on error |
176 | 176 | ||
177 | This API adds a vcpu to a virtual machine. The vcpu id is a small integer | 177 | This API adds a vcpu to a virtual machine. The vcpu id is a small integer |
178 | in the range [0, max_vcpus). You can use KVM_CAP_NR_VCPUS of the | 178 | in the range [0, max_vcpus). |
179 | KVM_CHECK_EXTENSION ioctl() to determine the value for max_vcpus at run-time. | 179 | |
180 | The recommended max_vcpus value can be retrieved using the KVM_CAP_NR_VCPUS of | ||
181 | the KVM_CHECK_EXTENSION ioctl() at run-time. | ||
182 | The maximum possible value for max_vcpus can be retrieved using the | ||
183 | KVM_CAP_MAX_VCPUS of the KVM_CHECK_EXTENSION ioctl() at run-time. | ||
184 | |||
180 | If the KVM_CAP_NR_VCPUS does not exist, you should assume that max_vcpus is 4 | 185 | If the KVM_CAP_NR_VCPUS does not exist, you should assume that max_vcpus is 4 |
181 | cpus max. | 186 | cpus max. |
187 | If the KVM_CAP_MAX_VCPUS does not exist, you should assume that max_vcpus is | ||
188 | same as the value returned from KVM_CAP_NR_VCPUS. | ||
189 | |||
190 | On powerpc using book3s_hv mode, the vcpus are mapped onto virtual | ||
191 | threads in one or more virtual CPU cores. (This is because the | ||
192 | hardware requires all the hardware threads in a CPU core to be in the | ||
193 | same partition.) The KVM_CAP_PPC_SMT capability indicates the number | ||
194 | of vcpus per virtual core (vcore). The vcore id is obtained by | ||
195 | dividing the vcpu id by the number of vcpus per vcore. The vcpus in a | ||
196 | given vcore will always be in the same physical core as each other | ||
197 | (though that might be a different physical core from time to time). | ||
198 | Userspace can control the threading (SMT) mode of the guest by its | ||
199 | allocation of vcpu ids. For example, if userspace wants | ||
200 | single-threaded guest vcpus, it should make all vcpu ids be a multiple | ||
201 | of the number of vcpus per vcore. | ||
182 | 202 | ||
183 | On powerpc using book3s_hv mode, the vcpus are mapped onto virtual | 203 | On powerpc using book3s_hv mode, the vcpus are mapped onto virtual |
184 | threads in one or more virtual CPU cores. (This is because the | 204 | threads in one or more virtual CPU cores. (This is because the |
@@ -1633,3 +1653,50 @@ developer registration required to access it). | |||
1633 | char padding[256]; | 1653 | char padding[256]; |
1634 | }; | 1654 | }; |
1635 | }; | 1655 | }; |
1656 | |||
1657 | 6. Capabilities that can be enabled | ||
1658 | |||
1659 | There are certain capabilities that change the behavior of the virtual CPU when | ||
1660 | enabled. To enable them, please see section 4.37. Below you can find a list of | ||
1661 | capabilities and what their effect on the vCPU is when enabling them. | ||
1662 | |||
1663 | The following information is provided along with the description: | ||
1664 | |||
1665 | Architectures: which instruction set architectures provide this ioctl. | ||
1666 | x86 includes both i386 and x86_64. | ||
1667 | |||
1668 | Parameters: what parameters are accepted by the capability. | ||
1669 | |||
1670 | Returns: the return value. General error numbers (EBADF, ENOMEM, EINVAL) | ||
1671 | are not detailed, but errors with specific meanings are. | ||
1672 | |||
1673 | 6.1 KVM_CAP_PPC_OSI | ||
1674 | |||
1675 | Architectures: ppc | ||
1676 | Parameters: none | ||
1677 | Returns: 0 on success; -1 on error | ||
1678 | |||
1679 | This capability enables interception of OSI hypercalls that otherwise would | ||
1680 | be treated as normal system calls to be injected into the guest. OSI hypercalls | ||
1681 | were invented by Mac-on-Linux to have a standardized communication mechanism | ||
1682 | between the guest and the host. | ||
1683 | |||
1684 | When this capability is enabled, KVM_EXIT_OSI can occur. | ||
1685 | |||
1686 | 6.2 KVM_CAP_PPC_PAPR | ||
1687 | |||
1688 | Architectures: ppc | ||
1689 | Parameters: none | ||
1690 | Returns: 0 on success; -1 on error | ||
1691 | |||
1692 | This capability enables interception of PAPR hypercalls. PAPR hypercalls are | ||
1693 | done using the hypercall instruction "sc 1". | ||
1694 | |||
1695 | It also sets the guest privilege level to "supervisor" mode. Usually the guest | ||
1696 | runs in "hypervisor" privilege mode with a few missing features. | ||
1697 | |||
1698 | In addition to the above, it changes the semantics of SDR1. In this mode, the | ||
1699 | HTAB address part of SDR1 contains an HVA instead of a GPA, as PAPR keeps the | ||
1700 | HTAB invisible to the guest. | ||
1701 | |||
1702 | When this capability is enabled, KVM_EXIT_PAPR_HCALL can occur. | ||
diff --git a/Documentation/x86/entry_64.txt b/Documentation/x86/entry_64.txt index 7869f14d055c..bc7226ef5055 100644 --- a/Documentation/x86/entry_64.txt +++ b/Documentation/x86/entry_64.txt | |||
@@ -27,9 +27,6 @@ Some of these entries are: | |||
27 | magically-generated functions that make their way to do_IRQ with | 27 | magically-generated functions that make their way to do_IRQ with |
28 | the interrupt number as a parameter. | 28 | the interrupt number as a parameter. |
29 | 29 | ||
30 | - emulate_vsyscall: int 0xcc, a special non-ABI entry used by | ||
31 | vsyscall emulation. | ||
32 | |||
33 | - APIC interrupts: Various special-purpose interrupts for things | 30 | - APIC interrupts: Various special-purpose interrupts for things |
34 | like TLB shootdown. | 31 | like TLB shootdown. |
35 | 32 | ||