<feed xmlns='http://www.w3.org/2005/Atom'>
<title>linux/drivers/dca, branch v3.10.10</title>
<subtitle>Linux kernel source tree</subtitle>
<id>https://git.amat.us/linux/atom/drivers/dca?h=v3.10.10</id>
<link rel='self' href='https://git.amat.us/linux/atom/drivers/dca?h=v3.10.10'/>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/'/>
<updated>2013-02-28T03:10:15Z</updated>
<entry>
<title>dca: convert to idr_alloc()</title>
<updated>2013-02-28T03:10:15Z</updated>
<author>
<name>Tejun Heo</name>
<email>tj@kernel.org</email>
</author>
<published>2013-02-28T01:04:02Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=615f2e5c531bc57d5a190f321d697988e950ae4d'/>
<id>urn:sha1:615f2e5c531bc57d5a190f321d697988e950ae4d</id>
<content type='text'>
Convert to the much saner new idr interface.

Signed-off-by: Tejun Heo &lt;tj@kernel.org&gt;
Cc: Paul Gortmaker &lt;paul.gortmaker@windriver.com&gt;
Cc: Maciej Sosnowski &lt;maciej.sosnowski@intel.com&gt;
Cc: Shannon Nelson &lt;shannon.nelson@intel.com&gt;
Signed-off-by: Andrew Morton &lt;akpm@linux-foundation.org&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@linux-foundation.org&gt;
</content>
</entry>
<entry>
<title>dca: check against empty dca_domains list before unregister provider</title>
<updated>2013-01-08T06:05:14Z</updated>
<author>
<name>Maciej Sosnowski</name>
<email>maciej.sosnowski@intel.com</email>
</author>
<published>2012-05-23T15:27:07Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=c419fcfd071cf34ba00f9f65282583772d2655e7'/>
<id>urn:sha1:c419fcfd071cf34ba00f9f65282583772d2655e7</id>
<content type='text'>
When providers get blocked unregister_dca_providers() is called ending up
with dca_providers and dca_domain lists emptied. Dca should be prevented from
trying to unregister any provider if dca_domain list is found empty.

Cc: &lt;stable@vger.kernel.org&gt;
Reported-by: Jiang Liu &lt;jiang.liu@huawei.com&gt;
Tested-by: Gaohuai Han &lt;hangaohuai@huawei.com&gt;
Signed-off-by: Maciej Sosnowski &lt;maciej.sosnowski@intel.com&gt;
Signed-off-by: Dan Williams &lt;djbw@fb.com&gt;
</content>
</entry>
<entry>
<title>drivers/dca: Add export.h for THIS_MODULE to dca-sysfs.c</title>
<updated>2011-10-31T23:31:43Z</updated>
<author>
<name>Paul Gortmaker</name>
<email>paul.gortmaker@windriver.com</email>
</author>
<published>2011-07-10T16:15:51Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=3382416d867d1c70709dfb03e4a81d5731d96787'/>
<id>urn:sha1:3382416d867d1c70709dfb03e4a81d5731d96787</id>
<content type='text'>
Ensure we have access to the THIS_MODLUE macro once we clean up
the implicit module.h usage.

Signed-off-by: Paul Gortmaker &lt;paul.gortmaker@windriver.com&gt;
</content>
</entry>
<entry>
<title>drivers/dca: Add module.h to dca-core.c</title>
<updated>2011-10-31T23:31:43Z</updated>
<author>
<name>Paul Gortmaker</name>
<email>paul.gortmaker@windriver.com</email>
</author>
<published>2011-07-03T17:37:11Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=d229807f669ba3dea9f64467ee965051c4366aed'/>
<id>urn:sha1:d229807f669ba3dea9f64467ee965051c4366aed</id>
<content type='text'>
This file really needs the full module.h header file present, but
was just getting it implicitly before.  Call it out in advance so
that we don't get future build failures on this.

Signed-off-by: Paul Gortmaker &lt;paul.gortmaker@windriver.com&gt;
</content>
</entry>
<entry>
<title>locking, drivers/dca: Annotate dca_lock as raw</title>
<updated>2011-09-13T09:12:12Z</updated>
<author>
<name>Mike Galbraith</name>
<email>efault@gmx.de</email>
</author>
<published>2010-07-07T08:29:01Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=a1741e7fcbc19a67520115df480ab17012cc3d0b'/>
<id>urn:sha1:a1741e7fcbc19a67520115df480ab17012cc3d0b</id>
<content type='text'>
The dca_lock can be taken in atomic context:

[   25.607536] Call Trace:
[   25.607557]  [&lt;ffffffff820078a1&gt;] try_stack_unwind+0x151/0x1a0
[   25.607566]  [&lt;ffffffff820062c2&gt;] dump_trace+0x92/0x370
[   25.607573]  [&lt;ffffffff8200731c&gt;] show_trace_log_lvl+0x5c/0x80
[   25.607578]  [&lt;ffffffff82007355&gt;] show_trace+0x15/0x20
[   25.607587]  [&lt;ffffffff823f4588&gt;] dump_stack+0x77/0x8f
[   25.607595]  [&lt;ffffffff82043f2a&gt;] __might_sleep+0x11a/0x130
[   25.607602]  [&lt;ffffffff823f7b93&gt;] rt_spin_lock+0x83/0x90
[   25.607611]  [&lt;ffffffffa0209138&gt;] dca_common_get_tag+0x28/0x80 [dca]
[   25.607622]  [&lt;ffffffffa02091c8&gt;] dca3_get_tag+0x18/0x20 [dca]
[   25.607634]  [&lt;ffffffffa0244e71&gt;] igb_update_dca+0xb1/0x1d0 [igb]
[   25.607649]  [&lt;ffffffffa0244ff5&gt;] igb_setup_dca+0x65/0x80 [igb]
[   25.607663]  [&lt;ffffffffa02535a6&gt;] igb_probe+0x946/0xe4d [igb]
[   25.607678]  [&lt;ffffffff82247517&gt;] local_pci_probe+0x17/0x20
[   25.607686]  [&lt;ffffffff82248661&gt;] pci_device_probe+0x121/0x130
[   25.607699]  [&lt;ffffffff822e4832&gt;] driver_probe_device+0xd2/0x2e0
[   25.607707]  [&lt;ffffffff822e4adb&gt;] __driver_attach+0x9b/0xa0
[   25.607714]  [&lt;ffffffff822e3d1b&gt;] bus_for_each_dev+0x6b/0xa0
[   25.607720]  [&lt;ffffffff822e4591&gt;] driver_attach+0x21/0x30
[   25.607727]  [&lt;ffffffff822e3425&gt;] bus_add_driver+0x1e5/0x350
[   25.607734]  [&lt;ffffffff822e4e41&gt;] driver_register+0x81/0x160
[   25.607742]  [&lt;ffffffff8224890f&gt;] __pci_register_driver+0x6f/0xf0
[   25.607752]  [&lt;ffffffffa011505b&gt;] igb_init_module+0x5b/0x5d [igb]
[   25.607769]  [&lt;ffffffff820001dd&gt;] do_one_initcall+0x3d/0x1a0
[   25.607778]  [&lt;ffffffff820961f6&gt;] sys_init_module+0xe6/0x270
[   25.607786]  [&lt;ffffffff82003232&gt;] system_call_fastpath+0x16/0x1b
[   25.607794]  [&lt;00007f84d6783f4a&gt;] 0x7f84d6783f4a

and thus must not be preempted on -rt.

In mainline this change documents the low level nature of
the lock - otherwise there's no functional difference. Lockdep
and Sparse checking will work as usual.

Signed-off-by: Mike Galbraith &lt;efault@gmx.de&gt;
[ Fixed the domain allocation which was calling kzalloc from the irq disabled section ]
Signed-off-by: Thomas Gleixner &lt;tglx@linutronix.de&gt;
Signed-off-by: Ingo Molnar &lt;mingo@elte.hu&gt;
</content>
</entry>
<entry>
<title>drivers/dca/dca-core.c: use list_move() instead of list_del()/list_add() combination</title>
<updated>2011-03-23T00:44:12Z</updated>
<author>
<name>Kirill A. Shutemov</name>
<email>kirill@shutemov.name</email>
</author>
<published>2011-03-22T23:34:18Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=3bb598fb23b6040e67b5e6db9a00b28cd26e5809'/>
<id>urn:sha1:3bb598fb23b6040e67b5e6db9a00b28cd26e5809</id>
<content type='text'>
Signed-off-by: Kirill A. Shutemov &lt;kirill@shutemov.name&gt;
Cc: Maciej Sosnowski &lt;maciej.sosnowski@intel.com&gt;
Signed-off-by: Andrew Morton &lt;akpm@linux-foundation.org&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@linux-foundation.org&gt;
</content>
</entry>
<entry>
<title>dca: remove unneeded NULL check</title>
<updated>2011-01-13T16:03:09Z</updated>
<author>
<name>Dan Carpenter</name>
<email>error27@gmail.com</email>
</author>
<published>2011-01-13T00:59:42Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=f0f2c2b5b40b5e621a47a6a274117cce77841f1e'/>
<id>urn:sha1:f0f2c2b5b40b5e621a47a6a274117cce77841f1e</id>
<content type='text'>
The return here doesn't release the locks or re-enable IRQs.  But as
Andrew Morton points out, domain is never NULL.  list_first_entry()
essentially never returns NULL and also we already verified that the list
is not empty.

Signed-off-by: Dan Carpenter &lt;error27@gmail.com&gt;
Acked-by: Maciej Sosnowski &lt;maciej.sosnowski@intel.com&gt;
Cc: David Miller &lt;davem@davemloft.net&gt;
Signed-off-by: Andrew Morton &lt;akpm@linux-foundation.org&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@linux-foundation.org&gt;
</content>
</entry>
<entry>
<title>dca: disable dca on IOAT ver.3.0 multiple-IOH platforms</title>
<updated>2010-09-18T03:08:21Z</updated>
<author>
<name>Sosnowski, Maciej</name>
<email>maciej.sosnowski@intel.com</email>
</author>
<published>2010-09-16T06:02:26Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=4e8cec269dd9e823804141f25ce37c23e72d3c12'/>
<id>urn:sha1:4e8cec269dd9e823804141f25ce37c23e72d3c12</id>
<content type='text'>
Direct Cache Access is not supported on IOAT ver.3.0 multiple-IOH platforms.
This patch blocks registering of dca providers when multiple IOH detected with IOAT ver.3.0.

Signed-off-by: Maciej Sosnowski &lt;maciej.sosnowski@intel.com&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>include cleanup: Update gfp.h and slab.h includes to prepare for breaking implicit slab.h inclusion from percpu.h</title>
<updated>2010-03-30T13:02:32Z</updated>
<author>
<name>Tejun Heo</name>
<email>tj@kernel.org</email>
</author>
<published>2010-03-24T08:04:11Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=5a0e3ad6af8660be21ca98a971cd00f331318c05'/>
<id>urn:sha1:5a0e3ad6af8660be21ca98a971cd00f331318c05</id>
<content type='text'>
percpu.h is included by sched.h and module.h and thus ends up being
included when building most .c files.  percpu.h includes slab.h which
in turn includes gfp.h making everything defined by the two files
universally available and complicating inclusion dependencies.

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

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

The script does the followings.

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

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

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

The conversion was done in the following steps.

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

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

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

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

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

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

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

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

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

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

Signed-off-by: Tejun Heo &lt;tj@kernel.org&gt;
Guess-its-ok-by: Christoph Lameter &lt;cl@linux-foundation.org&gt;
Cc: Ingo Molnar &lt;mingo@redhat.com&gt;
Cc: Lee Schermerhorn &lt;Lee.Schermerhorn@hp.com&gt;
</content>
</entry>
<entry>
<title>dca: module load should not be an error message</title>
<updated>2009-09-13T17:27:04Z</updated>
<author>
<name>Stephen Hemminger</name>
<email>shemminger@linux-foundation.org</email>
</author>
<published>2009-09-13T16:07:37Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=084dac53adcfb910792a66bc0bae720cdde971de'/>
<id>urn:sha1:084dac53adcfb910792a66bc0bae720cdde971de</id>
<content type='text'>
The message (if it must exist) should not be an error message.
IMHO such messages are useless.

Signed-off-by: Stephen Hemminger &lt;shemminger@vyatta.com&gt;
Signed-off-by: Dan Williams &lt;dan.j.williams@intel.com&gt;
</content>
</entry>
</feed>
