<feed xmlns='http://www.w3.org/2005/Atom'>
<title>linux/arch/openrisc/kernel, branch v3.4.10</title>
<subtitle>Linux kernel source tree</subtitle>
<id>https://git.amat.us/linux/atom/arch/openrisc/kernel?h=v3.4.10</id>
<link rel='self' href='https://git.amat.us/linux/atom/arch/openrisc/kernel?h=v3.4.10'/>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/'/>
<updated>2012-03-28T22:58:21Z</updated>
<entry>
<title>Merge tag 'split-asm_system_h-for-linus-20120328' of git://git.kernel.org/pub/scm/linux/kernel/git/dhowells/linux-asm_system</title>
<updated>2012-03-28T22:58:21Z</updated>
<author>
<name>Linus Torvalds</name>
<email>torvalds@linux-foundation.org</email>
</author>
<published>2012-03-28T22:58:21Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=0195c00244dc2e9f522475868fa278c473ba7339'/>
<id>urn:sha1:0195c00244dc2e9f522475868fa278c473ba7339</id>
<content type='text'>
Pull "Disintegrate and delete asm/system.h" from David Howells:
 "Here are a bunch of patches to disintegrate asm/system.h into a set of
  separate bits to relieve the problem of circular inclusion
  dependencies.

  I've built all the working defconfigs from all the arches that I can
  and made sure that they don't break.

  The reason for these patches is that I recently encountered a circular
  dependency problem that came about when I produced some patches to
  optimise get_order() by rewriting it to use ilog2().

  This uses bitops - and on the SH arch asm/bitops.h drags in
  asm-generic/get_order.h by a circuituous route involving asm/system.h.

  The main difficulty seems to be asm/system.h.  It holds a number of
  low level bits with no/few dependencies that are commonly used (eg.
  memory barriers) and a number of bits with more dependencies that
  aren't used in many places (eg.  switch_to()).

  These patches break asm/system.h up into the following core pieces:

    (1) asm/barrier.h

        Move memory barriers here.  This already done for MIPS and Alpha.

    (2) asm/switch_to.h

        Move switch_to() and related stuff here.

    (3) asm/exec.h

        Move arch_align_stack() here.  Other process execution related bits
        could perhaps go here from asm/processor.h.

    (4) asm/cmpxchg.h

        Move xchg() and cmpxchg() here as they're full word atomic ops and
        frequently used by atomic_xchg() and atomic_cmpxchg().

    (5) asm/bug.h

        Move die() and related bits.

    (6) asm/auxvec.h

        Move AT_VECTOR_SIZE_ARCH here.

  Other arch headers are created as needed on a per-arch basis."

Fixed up some conflicts from other header file cleanups and moving code
around that has happened in the meantime, so David's testing is somewhat
weakened by that.  We'll find out anything that got broken and fix it..

* tag 'split-asm_system_h-for-linus-20120328' of git://git.kernel.org/pub/scm/linux/kernel/git/dhowells/linux-asm_system: (38 commits)
  Delete all instances of asm/system.h
  Remove all #inclusions of asm/system.h
  Add #includes needed to permit the removal of asm/system.h
  Move all declarations of free_initmem() to linux/mm.h
  Disintegrate asm/system.h for OpenRISC
  Split arch_align_stack() out from asm-generic/system.h
  Split the switch_to() wrapper out of asm-generic/system.h
  Move the asm-generic/system.h xchg() implementation to asm-generic/cmpxchg.h
  Create asm-generic/barrier.h
  Make asm-generic/cmpxchg.h #include asm-generic/cmpxchg-local.h
  Disintegrate asm/system.h for Xtensa
  Disintegrate asm/system.h for Unicore32 [based on ver #3, changed by gxt]
  Disintegrate asm/system.h for Tile
  Disintegrate asm/system.h for Sparc
  Disintegrate asm/system.h for SH
  Disintegrate asm/system.h for Score
  Disintegrate asm/system.h for S390
  Disintegrate asm/system.h for PowerPC
  Disintegrate asm/system.h for PA-RISC
  Disintegrate asm/system.h for MN10300
  ...
</content>
</entry>
<entry>
<title>Disintegrate asm/system.h for OpenRISC</title>
<updated>2012-03-28T17:30:03Z</updated>
<author>
<name>David Howells</name>
<email>dhowells@redhat.com</email>
</author>
<published>2012-03-28T17:30:03Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=705f4502bb9592ad0e8fb1cd2ba5ae4ce955ff8b'/>
<id>urn:sha1:705f4502bb9592ad0e8fb1cd2ba5ae4ce955ff8b</id>
<content type='text'>
Disintegrate asm/system.h for OpenRISC.  Not compiled.

Signed-off-by: David Howells &lt;dhowells@redhat.com&gt;
Acked-by: Arnd Bergmann &lt;arnd@arndb.de&gt;
cc: linux@lists.openrisc.net
</content>
</entry>
<entry>
<title>openrisc: sanitize use of orig_gpr11</title>
<updated>2012-03-06T09:37:00Z</updated>
<author>
<name>Jonas Bonn</name>
<email>jonas@southpole.se</email>
</author>
<published>2012-03-02T09:05:24Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=6cbe5e95267449ea0b79c0b049342409949da3ac'/>
<id>urn:sha1:6cbe5e95267449ea0b79c0b049342409949da3ac</id>
<content type='text'>
The pt_regs struct had both a 'syscallno' field and an 'orig_gpr11' field
and it wasn't really clear how these were supposed to be used.  This patch
removes the syscallno field altogether and makes orig_gpr11 work more
like other architectures: keep track of syscall number in progress or
hold -1 for non-syscall exceptions.

Signed-off-by: Jonas Bonn &lt;jonas@southpole.se&gt;
</content>
</entry>
<entry>
<title>OpenRISC: Export dump_stack()</title>
<updated>2012-03-06T09:36:02Z</updated>
<author>
<name>Richard Weinberger</name>
<email>richard@nod.at</email>
</author>
<published>2012-03-02T00:55:15Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=01c4d33ac5ca7920f0e0f6b25bdfd3fa479fd973'/>
<id>urn:sha1:01c4d33ac5ca7920f0e0f6b25bdfd3fa479fd973</id>
<content type='text'>
dump_stack() is used by modules and needs to be exported.

Signed-off-by: Richard Weinberger &lt;richard@nod.at&gt;
Signed-off-by: Jonas Bonn &lt;jonas@southpole.se&gt;
</content>
</entry>
<entry>
<title>openrisc: Set shortest clock event to 100 ticks</title>
<updated>2012-02-17T09:08:19Z</updated>
<author>
<name>Jonas Bonn</name>
<email>jonas@southpole.se</email>
</author>
<published>2011-11-18T13:40:04Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=754d5c2bf65847f7ff4e0047a830154abe666112'/>
<id>urn:sha1:754d5c2bf65847f7ff4e0047a830154abe666112</id>
<content type='text'>
It takes a couple of instructions to actually configure a clock event
so setting an alarm just 1 clock cycle in the future isn't going to work;
doing so results in setting an alarm in the "past" in which case the event
won't fire until the timer overflows and rolls back around to the "current
time".

Not quite sure how many clock cycles it actually takes to get through to
actually writing the register, but 100 seems to work reliably.

Use generic helper to set up the clock event while we're at it.

Reported-by: Jan Schulte &lt;jan.schulte@aacmicrotec.com&gt;
Signed-off-by: Jonas Bonn &lt;jonas@southpole.se&gt;
</content>
</entry>
<entry>
<title>OpenRISC: Use set_current_blocked() and block_sigmask()</title>
<updated>2012-02-17T08:55:25Z</updated>
<author>
<name>Matt Fleming</name>
<email>matt.fleming@intel.com</email>
</author>
<published>2012-02-14T11:40:57Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=d8d4b20df48287a7e9e37f706c410b13bc0438cf'/>
<id>urn:sha1:d8d4b20df48287a7e9e37f706c410b13bc0438cf</id>
<content type='text'>
As described in e6fa16ab ("signal: sigprocmask() should do
retarget_shared_pending()") the modification of current-&gt;blocked is
incorrect as we need to check whether the signal we're about to block
is pending in the shared queue.

Also, use the new helper function introduced in commit 5e6292c0f28f
("signal: add block_sigmask() for adding sigmask to current-&gt;blocked")
which centralises the code for updating current-&gt;blocked after
successfully delivering a signal and reduces the amount of duplicate
code across architectures. In the past some architectures got this
code wrong, so using this helper function should stop that from
happening again.

Cc: Oleg Nesterov &lt;oleg@redhat.com&gt;
Cc: Jonas Bonn &lt;jonas@southpole.se&gt;
Cc: Arnd Bergmann &lt;arnd@arndb.de&gt;
Cc: linux@lists.openrisc.net
Signed-off-by: Matt Fleming &lt;matt.fleming@intel.com&gt;
Signed-off-by: Jonas Bonn &lt;jonas@southpole.se&gt;
</content>
</entry>
<entry>
<title>OpenRISC: Don't mask signals if we fail to setup signal stack</title>
<updated>2012-02-17T08:55:24Z</updated>
<author>
<name>Matt Fleming</name>
<email>matt.fleming@intel.com</email>
</author>
<published>2012-02-14T11:40:56Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=e933c70de0e2590d41f5edd3133e7ee12b4e0bc6'/>
<id>urn:sha1:e933c70de0e2590d41f5edd3133e7ee12b4e0bc6</id>
<content type='text'>
setup_rt_frame() needs to return an indication of whether it succeeded
or failed in setting up the signal stack frame. If setup_rt_frame()
fails then we must not modify current-&gt;blocked.

Acked-by: Oleg Nesterov &lt;oleg@redhat.com&gt;
Cc: Jonas Bonn &lt;jonas@southpole.se&gt;
Cc: Arnd Bergmann &lt;arnd@arndb.de&gt;
Cc: linux@lists.openrisc.net
Signed-off-by: Matt Fleming &lt;matt.fleming@intel.com&gt;
Signed-off-by: Jonas Bonn &lt;jonas@southpole.se&gt;
</content>
</entry>
<entry>
<title>OpenRISC: No need to reset handler if SA_ONESHOT</title>
<updated>2012-02-17T08:55:23Z</updated>
<author>
<name>Matt Fleming</name>
<email>matt.fleming@intel.com</email>
</author>
<published>2012-02-14T11:40:55Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=b675eeb743abaa0b99a35c1fd32fea8e13a17d32'/>
<id>urn:sha1:b675eeb743abaa0b99a35c1fd32fea8e13a17d32</id>
<content type='text'>
get_signal_to_deliver() already resets the signal handler if
SA_ONESHOT is set in ka-&gt;sa.sa_flags, there's no need to do it again
in handle_signal(). Furthermore, because we were modifying
ka-&gt;sa.sa_handler (which is a copy of sighand-&gt;action[]) instead of
sighand-&gt;action[] the original code actually had no effect on signal
delivery.

Acked-by: Oleg Nesterov &lt;oleg@redhat.com&gt;
Cc: Jonas Bonn &lt;jonas@southpole.se&gt;
Cc: Arnd Bergmann &lt;arnd@arndb.de&gt;
Cc: linux@lists.openrisc.net
Signed-off-by: Matt Fleming &lt;matt.fleming@intel.com&gt;
Signed-off-by: Jonas Bonn &lt;jonas@southpole.se&gt;
</content>
</entry>
<entry>
<title>OpenRISC: Don't reimplement force_sigsegv()</title>
<updated>2012-02-17T08:55:23Z</updated>
<author>
<name>Matt Fleming</name>
<email>matt.fleming@intel.com</email>
</author>
<published>2012-02-14T11:40:54Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=4ca159f725e46462fbad64c928437a6651f6405b'/>
<id>urn:sha1:4ca159f725e46462fbad64c928437a6651f6405b</id>
<content type='text'>
Instead of open coding the sequence from force_sigsegv() just call
it. This also fixes a bug because we were modifying ka-&gt;sa.sa_handler
(which is a copy of sighand-&gt;action[]), whereas the intention of the
code was to modify sighand-&gt;action[] directly.

As the original code was working with a copy it had no effect on
signal delivery.

Acked-by: Oleg Nesterov &lt;oleg@redhat.com&gt;
Cc: Jonas Bonn &lt;jonas@southpole.se&gt;
Cc: Arnd Bergmann &lt;arnd@arndb.de&gt;
Cc: linux@lists.openrisc.net
Signed-off-by: Matt Fleming &lt;matt.fleming@intel.com&gt;
Signed-off-by: Jonas Bonn &lt;jonas@southpole.se&gt;
</content>
</entry>
<entry>
<title>openrisc: enable passing of flattened device tree pointer</title>
<updated>2012-02-17T08:55:22Z</updated>
<author>
<name>Stefan Kristiansson</name>
<email>stefan.kristiansson@saunalahti.fi</email>
</author>
<published>2011-11-10T15:38:29Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=dec830189e1e192a80f574243a2dc31bdc1c4fc5'/>
<id>urn:sha1:dec830189e1e192a80f574243a2dc31bdc1c4fc5</id>
<content type='text'>
This patch enables passing a fdt pointer to the kernel.

This makes for the kernel parameter API:

void kernel(unsigned int fdt);

which, in accordance with the OpenRISC ABI results in:
r3 = pointer to fdt

Signed-off-by: Stefan Kristiansson &lt;stefan.kristiansson@saunalahti.fi&gt;
Signed-off-by: Jonas Bonn &lt;jonas@southpole.se&gt;
</content>
</entry>
</feed>
