-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
John W. Linville
committed
Jan 3, 2012
1 parent
13a452f
commit 9dcdf55
Showing
2,036 changed files
with
55,887 additions
and
21,691 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
--- | ||
refs/heads/master: dc0d633e35643662f27a0b1c531da3cd6b204b9c | ||
refs/heads/master: 57adc1fcbae2c13104ce291b40f23e40a414fa87 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
Network priority cgroup | ||
------------------------- | ||
|
||
The Network priority cgroup provides an interface to allow an administrator to | ||
dynamically set the priority of network traffic generated by various | ||
applications | ||
|
||
Nominally, an application would set the priority of its traffic via the | ||
SO_PRIORITY socket option. This however, is not always possible because: | ||
|
||
1) The application may not have been coded to set this value | ||
2) The priority of application traffic is often a site-specific administrative | ||
decision rather than an application defined one. | ||
|
||
This cgroup allows an administrator to assign a process to a group which defines | ||
the priority of egress traffic on a given interface. Network priority groups can | ||
be created by first mounting the cgroup filesystem. | ||
|
||
# mount -t cgroup -onet_prio none /sys/fs/cgroup/net_prio | ||
|
||
With the above step, the initial group acting as the parent accounting group | ||
becomes visible at '/sys/fs/cgroup/net_prio'. This group includes all tasks in | ||
the system. '/sys/fs/cgroup/net_prio/tasks' lists the tasks in this cgroup. | ||
|
||
Each net_prio cgroup contains two files that are subsystem specific | ||
|
||
net_prio.prioidx | ||
This file is read-only, and is simply informative. It contains a unique integer | ||
value that the kernel uses as an internal representation of this cgroup. | ||
|
||
net_prio.ifpriomap | ||
This file contains a map of the priorities assigned to traffic originating from | ||
processes in this group and egressing the system on various interfaces. It | ||
contains a list of tuples in the form <ifname priority>. Contents of this file | ||
can be modified by echoing a string into the file using the same tuple format. | ||
for example: | ||
|
||
echo "eth0 5" > /sys/fs/cgroups/net_prio/iscsi/net_prio.ifpriomap | ||
|
||
This command would force any traffic originating from processes belonging to the | ||
iscsi net_prio cgroup and egressing on interface eth0 to have the priority of | ||
said traffic set to the value 5. The parent accounting group also has a | ||
writeable 'net_prio.ifpriomap' file that can be used to set a system default | ||
priority. | ||
|
||
Priorities are set immediately prior to queueing a frame to the device | ||
queueing discipline (qdisc) so priorities will be assigned prior to the hardware | ||
queue selection being made. | ||
|
||
One usage for the net_prio cgroup is with mqprio qdisc allowing application | ||
traffic to be steered to hardware/driver based traffic classes. These mappings | ||
can then be managed by administrators or other networking protocols such as | ||
DCBX. |
15 changes: 15 additions & 0 deletions
15
trunk/Documentation/devicetree/bindings/net/calxeda-xgmac.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
* Calxeda Highbank 10Gb XGMAC Ethernet | ||
|
||
Required properties: | ||
- compatible : Should be "calxeda,hb-xgmac" | ||
- reg : Address and length of the register set for the device | ||
- interrupts : Should contain 3 xgmac interrupts. The 1st is main interrupt. | ||
The 2nd is pwr mgt interrupt. The 3rd is low power state interrupt. | ||
|
||
Example: | ||
|
||
ethernet@fff50000 { | ||
compatible = "calxeda,hb-xgmac"; | ||
reg = <0xfff50000 0x1000>; | ||
interrupts = <0 77 4 0 78 4 0 79 4>; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
Memory mapped Bosch CC770 and Intel AN82527 CAN controller | ||
|
||
Note: The CC770 is a CAN controller from Bosch, which is 100% | ||
compatible with the old AN82527 from Intel, but with "bugs" being fixed. | ||
|
||
Required properties: | ||
|
||
- compatible : should be "bosch,cc770" for the CC770 and "intc,82527" | ||
for the AN82527. | ||
|
||
- reg : should specify the chip select, address offset and size required | ||
to map the registers of the controller. The size is usually 0x80. | ||
|
||
- interrupts : property with a value describing the interrupt source | ||
(number and sensitivity) required for the controller. | ||
|
||
Optional properties: | ||
|
||
- bosch,external-clock-frequency : frequency of the external oscillator | ||
clock in Hz. Note that the internal clock frequency used by the | ||
controller is half of that value. If not specified, a default | ||
value of 16000000 (16 MHz) is used. | ||
|
||
- bosch,clock-out-frequency : slock frequency in Hz on the CLKOUT pin. | ||
If not specified or if the specified value is 0, the CLKOUT pin | ||
will be disabled. | ||
|
||
- bosch,slew-rate : slew rate of the CLKOUT signal. If not specified, | ||
a resonable value will be calculated. | ||
|
||
- bosch,disconnect-rx0-input : see data sheet. | ||
|
||
- bosch,disconnect-rx1-input : see data sheet. | ||
|
||
- bosch,disconnect-tx1-output : see data sheet. | ||
|
||
- bosch,polarity-dominant : see data sheet. | ||
|
||
- bosch,divide-memory-clock : see data sheet. | ||
|
||
- bosch,iso-low-speed-mux : see data sheet. | ||
|
||
For further information, please have a look to the CC770 or AN82527. | ||
|
||
Examples: | ||
|
||
can@3,100 { | ||
compatible = "bosch,cc770"; | ||
reg = <3 0x100 0x80>; | ||
interrupts = <2 0>; | ||
interrupt-parent = <&mpic>; | ||
bosch,external-clock-frequency = <16000000>; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,24 @@ | ||
The I2C protocol knows about two kinds of device addresses: normal 7 bit | ||
addresses, and an extended set of 10 bit addresses. The sets of addresses | ||
do not intersect: the 7 bit address 0x10 is not the same as the 10 bit | ||
address 0x10 (though a single device could respond to both of them). You | ||
select a 10 bit address by adding an extra byte after the address | ||
byte: | ||
S Addr7 Rd/Wr .... | ||
becomes | ||
S 11110 Addr10 Rd/Wr | ||
S is the start bit, Rd/Wr the read/write bit, and if you count the number | ||
of bits, you will see the there are 8 after the S bit for 7 bit addresses, | ||
and 16 after the S bit for 10 bit addresses. | ||
address 0x10 (though a single device could respond to both of them). | ||
|
||
WARNING! The current 10 bit address support is EXPERIMENTAL. There are | ||
several places in the code that will cause SEVERE PROBLEMS with 10 bit | ||
addresses, even though there is some basic handling and hooks. Also, | ||
almost no supported adapter handles the 10 bit addresses correctly. | ||
I2C messages to and from 10-bit address devices have a different format. | ||
See the I2C specification for the details. | ||
|
||
As soon as a real 10 bit address device is spotted 'in the wild', we | ||
can and will add proper support. Right now, 10 bit address devices | ||
are defined by the I2C protocol, but we have never seen a single device | ||
which supports them. | ||
The current 10 bit address support is minimal. It should work, however | ||
you can expect some problems along the way: | ||
* Not all bus drivers support 10-bit addresses. Some don't because the | ||
hardware doesn't support them (SMBus doesn't require 10-bit address | ||
support for example), some don't because nobody bothered adding the | ||
code (or it's there but not working properly.) Software implementation | ||
(i2c-algo-bit) is known to work. | ||
* Some optional features do not support 10-bit addresses. This is the | ||
case of automatic detection and instantiation of devices by their, | ||
drivers, for example. | ||
* Many user-space packages (for example i2c-tools) lack support for | ||
10-bit addresses. | ||
|
||
Note that 10-bit address devices are still pretty rare, so the limitations | ||
listed above could stay for a long time, maybe even forever if nobody | ||
needs them to be fixed. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.