<feed xmlns='http://www.w3.org/2005/Atom'>
<title>src/sys/kern/subr_pcpu.c, branch upstream/11.0.0</title>
<subtitle>FreeBSD source tree</subtitle>
<id>https://cgit-dev.freebsd.org/src/atom?h=upstream%2F11.0.0</id>
<link rel='self' href='https://cgit-dev.freebsd.org/src/atom?h=upstream%2F11.0.0'/>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/'/>
<updated>2016-07-06T14:09:49Z</updated>
<entry>
<title>Replace a number of conflations of mp_ncpus and mp_maxid with either</title>
<updated>2016-07-06T14:09:49Z</updated>
<author>
<name>Nathan Whitehorn</name>
<email>nwhitehorn@FreeBSD.org</email>
</author>
<published>2016-07-06T14:09:49Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=96c85efb4b85dbc0bfc4968516a627a727ac7ec5'/>
<id>urn:sha1:96c85efb4b85dbc0bfc4968516a627a727ac7ec5</id>
<content type='text'>
mp_maxid or CPU_FOREACH() as appropriate. This fixes a number of places in
the kernel that assumed CPU IDs are dense in [0, mp_ncpus) and would try,
for example, to run tasks on CPUs that did not exist or to allocate too
few buffers on systems with sparse CPU IDs in which there are holes in the
range and mp_maxid &gt; mp_ncpus. Such circumstances generally occur on
systems with SMT, but on which SMT is disabled. This patch restores system
operation at least on POWER8 systems configured in this way.

There are a number of other places in the kernel with potential problems
in these situations, but where sparse CPU IDs are not currently known
to occur, mostly in the ARM machine-dependent code. These will be fixed
in a follow-up commit after the stable/11 branch.

PR:		kern/210106
Reviewed by:	jhb
Approved by:	re (glebius)
</content>
</entry>
<entry>
<title>Create two public UMA_ZONE_PCPU zones: 64 bit sized and pointer sized.</title>
<updated>2014-02-10T19:59:46Z</updated>
<author>
<name>Gleb Smirnoff</name>
<email>glebius@FreeBSD.org</email>
</author>
<published>2014-02-10T19:59:46Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=49fef6a202a5c2f4113940f87de5d8765897ab3b'/>
<id>urn:sha1:49fef6a202a5c2f4113940f87de5d8765897ab3b</id>
<content type='text'>
Sponsored by:	Nginx, Inc.
</content>
</entry>
<entry>
<title>Mark MALLOC_DEFINEs static that have no corresponding MALLOC_DECLAREs.</title>
<updated>2011-11-07T06:44:47Z</updated>
<author>
<name>Ed Schouten</name>
<email>ed@FreeBSD.org</email>
</author>
<published>2011-11-07T06:44:47Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=d745c852becf3792a2185003947324721209195a'/>
<id>urn:sha1:d745c852becf3792a2185003947324721209195a</id>
<content type='text'>
This means that their use is restricted to a single C file.
</content>
</entry>
<entry>
<title>Remove pc_name member of struct pcpu.</title>
<updated>2011-07-19T14:57:59Z</updated>
<author>
<name>Attilio Rao</name>
<email>attilio@FreeBSD.org</email>
</author>
<published>2011-07-19T14:57:59Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=edf26ab83e5d4f274cfee43495472aef14b39b93'/>
<id>urn:sha1:edf26ab83e5d4f274cfee43495472aef14b39b93</id>
<content type='text'>
pc_name is only included when KTR option is and it does introduce a
subdle KBI breakage that totally breaks vmstat when world and kernel are
not in sync.
Besides, it is not used somewhere.

In collabouration with:	pluknet
Reviewed by:	jhb
Approved by:	re (kib)
</content>
</entry>
<entry>
<title>Completely remove now unused pc_other_cpus, pc_cpumask.</title>
<updated>2011-07-04T10:45:54Z</updated>
<author>
<name>Attilio Rao</name>
<email>attilio@FreeBSD.org</email>
</author>
<published>2011-07-04T10:45:54Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=a2f4e284b063d4ef888098f52b5474e1425bb404'/>
<id>urn:sha1:a2f4e284b063d4ef888098f52b5474e1425bb404</id>
<content type='text'>
Tested by:	pluknet
</content>
</entry>
<entry>
<title>MFC</title>
<updated>2011-05-31T21:22:44Z</updated>
<author>
<name>Attilio Rao</name>
<email>attilio@FreeBSD.org</email>
</author>
<published>2011-05-31T21:22:44Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=61b926921f1e0ea3eae9511fb25ca6f016e0a5c2'/>
<id>urn:sha1:61b926921f1e0ea3eae9511fb25ca6f016e0a5c2</id>
<content type='text'>
</content>
</entry>
<entry>
<title>On multi-core, multi-threaded PPC systems, it is important that the threads</title>
<updated>2011-05-31T15:11:43Z</updated>
<author>
<name>Nathan Whitehorn</name>
<email>nwhitehorn@FreeBSD.org</email>
</author>
<published>2011-05-31T15:11:43Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=d098f93019ca215163773034de59731e92c2e52e'/>
<id>urn:sha1:d098f93019ca215163773034de59731e92c2e52e</id>
<content type='text'>
be brought up in the order they are enumerated in the device tree (in
particular, that thread 0 on each core be brought up first). The SLIST
through which we loop to start the CPUs has all of its entries added with
SLIST_INSERT_HEAD(), which means it is in reverse order of enumeration
and so AP startup would always fail in such situations (causing a machine
check or RTAS failure). Fix this by changing the SLIST into an STAILQ,
and inserting new CPUs at the end.

Reviewed by:	jhb
</content>
</entry>
<entry>
<title>Commit the support for removing cpumask_t and replacing it directly with</title>
<updated>2011-05-05T14:39:14Z</updated>
<author>
<name>Attilio Rao</name>
<email>attilio@FreeBSD.org</email>
</author>
<published>2011-05-05T14:39:14Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=71a19bdc640eb9d54e7db3d1d135753888f3469c'/>
<id>urn:sha1:71a19bdc640eb9d54e7db3d1d135753888f3469c</id>
<content type='text'>
cpuset_t objects.
That is going to offer the underlying support for a simple bump of
MAXCPU and then support for number of cpus &gt; 32 (as it is today).

Right now, cpumask_t is an int, 32 bits on all our supported architecture.
cpumask_t on the other side is implemented as an array of longs, and
easilly extendible by definition.

The architectures touched by this commit are the following:
- amd64
- i386
- pc98
- arm
- ia64
- XEN

while the others are still missing.
Userland is believed to be fully converted with the changes contained
here.

Some technical notes:
- This commit may be considered an ABI nop for all the architectures
  different from amd64 and ia64 (and sparc64 in the future)
- per-cpu members, which are now converted to cpuset_t, needs to be
  accessed avoiding migration, because the size of cpuset_t should be
  considered unknown
- size of cpuset_t objects is different from kernel and userland (this is
  primirally done in order to leave some more space in userland to cope
  with KBI extensions). If you need to access kernel cpuset_t from the
  userland please refer to example in this patch on how to do that
  correctly (kgdb may be a good source, for example).
- Support for other architectures is going to be added soon
- Only MAXCPU for amd64 is bumped now

The patch has been tested by sbruno and Nicholas Esborn on opteron
4 x 12 pack CPUs. More testing on big SMP is expected to came soon.
pluknet tested the patch with his 8-ways on both amd64 and i386.

Tested by:	pluknet, sbruno, gianni, Nicholas Esborn
Reviewed by:	jeff, jhb, sbruno
</content>
</entry>
<entry>
<title>Remove unneeded includes of &lt;sys/linker_set.h&gt;.  Other headers that use</title>
<updated>2011-01-11T13:59:06Z</updated>
<author>
<name>John Baldwin</name>
<email>jhb@FreeBSD.org</email>
</author>
<published>2011-01-11T13:59:06Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=58ccf5b41c6baf98367501218fda6c511941d367'/>
<id>urn:sha1:58ccf5b41c6baf98367501218fda6c511941d367</id>
<content type='text'>
it internally contain nested includes.

Reviewed by:	bde
</content>
</entry>
<entry>
<title>After some off-list discussion, revert a number of changes to the</title>
<updated>2010-11-22T19:32:54Z</updated>
<author>
<name>Dimitry Andric</name>
<email>dim@FreeBSD.org</email>
</author>
<published>2010-11-22T19:32:54Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=3e288e623846fab91d923dd651b263d4696fd814'/>
<id>urn:sha1:3e288e623846fab91d923dd651b263d4696fd814</id>
<content type='text'>
DPCPU_DEFINE and VNET_DEFINE macros, as these cause problems for various
people working on the affected files.  A better long-term solution is
still being considered.  This reversal may give some modules empty
set_pcpu or set_vnet sections, but these are harmless.

Changes reverted:

------------------------------------------------------------------------
r215318 | dim | 2010-11-14 21:40:55 +0100 (Sun, 14 Nov 2010) | 4 lines

Instead of unconditionally emitting .globl's for the __start_set_xxx and
__stop_set_xxx symbols, only emit them when the set_vnet or set_pcpu
sections are actually defined.

------------------------------------------------------------------------
r215317 | dim | 2010-11-14 21:38:11 +0100 (Sun, 14 Nov 2010) | 3 lines

Apply the STATIC_VNET_DEFINE and STATIC_DPCPU_DEFINE macros throughout
the tree.

------------------------------------------------------------------------
r215316 | dim | 2010-11-14 21:23:02 +0100 (Sun, 14 Nov 2010) | 2 lines

Add macros to define static instances of VNET_DEFINE and DPCPU_DEFINE.
</content>
</entry>
</feed>
