You've already forked linux-apfs
mirror of
https://github.com/linux-apfs/linux-apfs.git
synced 2026-05-01 15:00:59 -07:00
Merge 4.0-rc3 into staging-next
We want the staging fixes in here as well. Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
@@ -0,0 +1,27 @@
|
|||||||
|
Code of Conflict
|
||||||
|
----------------
|
||||||
|
|
||||||
|
The Linux kernel development effort is a very personal process compared
|
||||||
|
to "traditional" ways of developing software. Your code and ideas
|
||||||
|
behind it will be carefully reviewed, often resulting in critique and
|
||||||
|
criticism. The review will almost always require improvements to the
|
||||||
|
code before it can be included in the kernel. Know that this happens
|
||||||
|
because everyone involved wants to see the best possible solution for
|
||||||
|
the overall success of Linux. This development process has been proven
|
||||||
|
to create the most robust operating system kernel ever, and we do not
|
||||||
|
want to do anything to cause the quality of submission and eventual
|
||||||
|
result to ever decrease.
|
||||||
|
|
||||||
|
If however, anyone feels personally abused, threatened, or otherwise
|
||||||
|
uncomfortable due to this process, that is not acceptable. If so,
|
||||||
|
please contact the Linux Foundation's Technical Advisory Board at
|
||||||
|
<tab@lists.linux-foundation.org>, or the individual members, and they
|
||||||
|
will work to resolve the issue to the best of their ability. For more
|
||||||
|
information on who is on the Technical Advisory Board and what their
|
||||||
|
role is, please see:
|
||||||
|
http://www.linuxfoundation.org/programs/advisory-councils/tab
|
||||||
|
|
||||||
|
As a reviewer of code, please strive to keep things civil and focused on
|
||||||
|
the technical issues involved. We are all humans, and frustrations can
|
||||||
|
be high on both sides of the process. Try to keep in mind the immortal
|
||||||
|
words of Bill and Ted, "Be excellent to each other."
|
||||||
@@ -404,8 +404,8 @@ supported and the interface files "release_agent" and
|
|||||||
be understood as an underflow into the highest possible value, -2 or
|
be understood as an underflow into the highest possible value, -2 or
|
||||||
-10M etc. do not work, so it's not consistent.
|
-10M etc. do not work, so it's not consistent.
|
||||||
|
|
||||||
memory.low, memory.high, and memory.max will use the string
|
memory.low, memory.high, and memory.max will use the string "max" to
|
||||||
"infinity" to indicate and set the highest possible value.
|
indicate and set the highest possible value.
|
||||||
|
|
||||||
5. Planned Changes
|
5. Planned Changes
|
||||||
|
|
||||||
|
|||||||
@@ -7,6 +7,7 @@ Required properties:
|
|||||||
- "fsl,vf610-i2c" for I2C compatible with the one integrated on Vybrid vf610 SoC
|
- "fsl,vf610-i2c" for I2C compatible with the one integrated on Vybrid vf610 SoC
|
||||||
- reg : Should contain I2C/HS-I2C registers location and length
|
- reg : Should contain I2C/HS-I2C registers location and length
|
||||||
- interrupts : Should contain I2C/HS-I2C interrupt
|
- interrupts : Should contain I2C/HS-I2C interrupt
|
||||||
|
- clocks : Should contain the I2C/HS-I2C clock specifier
|
||||||
|
|
||||||
Optional properties:
|
Optional properties:
|
||||||
- clock-frequency : Constains desired I2C/HS-I2C bus clock frequency in Hz.
|
- clock-frequency : Constains desired I2C/HS-I2C bus clock frequency in Hz.
|
||||||
|
|||||||
@@ -27,6 +27,8 @@ property is used.
|
|||||||
- amd,serdes-cdr-rate: CDR rate speed selection
|
- amd,serdes-cdr-rate: CDR rate speed selection
|
||||||
- amd,serdes-pq-skew: PQ (data sampling) skew
|
- amd,serdes-pq-skew: PQ (data sampling) skew
|
||||||
- amd,serdes-tx-amp: TX amplitude boost
|
- amd,serdes-tx-amp: TX amplitude boost
|
||||||
|
- amd,serdes-dfe-tap-config: DFE taps available to run
|
||||||
|
- amd,serdes-dfe-tap-enable: DFE taps to enable
|
||||||
|
|
||||||
Example:
|
Example:
|
||||||
xgbe_phy@e1240800 {
|
xgbe_phy@e1240800 {
|
||||||
@@ -41,4 +43,6 @@ Example:
|
|||||||
amd,serdes-cdr-rate = <2>, <2>, <7>;
|
amd,serdes-cdr-rate = <2>, <2>, <7>;
|
||||||
amd,serdes-pq-skew = <10>, <10>, <30>;
|
amd,serdes-pq-skew = <10>, <10>, <30>;
|
||||||
amd,serdes-tx-amp = <15>, <15>, <10>;
|
amd,serdes-tx-amp = <15>, <15>, <10>;
|
||||||
|
amd,serdes-dfe-tap-config = <3>, <3>, <1>;
|
||||||
|
amd,serdes-dfe-tap-enable = <0>, <0>, <127>;
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -21,6 +21,18 @@ Optional properties:
|
|||||||
- reg-io-width : the size (in bytes) of the IO accesses that should be
|
- reg-io-width : the size (in bytes) of the IO accesses that should be
|
||||||
performed on the device. If this property is not present then single byte
|
performed on the device. If this property is not present then single byte
|
||||||
accesses are used.
|
accesses are used.
|
||||||
|
- dcd-override : Override the DCD modem status signal. This signal will always
|
||||||
|
be reported as active instead of being obtained from the modem status
|
||||||
|
register. Define this if your serial port does not use this pin.
|
||||||
|
- dsr-override : Override the DTS modem status signal. This signal will always
|
||||||
|
be reported as active instead of being obtained from the modem status
|
||||||
|
register. Define this if your serial port does not use this pin.
|
||||||
|
- cts-override : Override the CTS modem status signal. This signal will always
|
||||||
|
be reported as active instead of being obtained from the modem status
|
||||||
|
register. Define this if your serial port does not use this pin.
|
||||||
|
- ri-override : Override the RI modem status signal. This signal will always be
|
||||||
|
reported as inactive instead of being obtained from the modem status register.
|
||||||
|
Define this if your serial port does not use this pin.
|
||||||
|
|
||||||
Example:
|
Example:
|
||||||
|
|
||||||
@@ -31,6 +43,10 @@ Example:
|
|||||||
interrupts = <10>;
|
interrupts = <10>;
|
||||||
reg-shift = <2>;
|
reg-shift = <2>;
|
||||||
reg-io-width = <4>;
|
reg-io-width = <4>;
|
||||||
|
dcd-override;
|
||||||
|
dsr-override;
|
||||||
|
cts-override;
|
||||||
|
ri-override;
|
||||||
};
|
};
|
||||||
|
|
||||||
Example with one clock:
|
Example with one clock:
|
||||||
|
|||||||
@@ -5,8 +5,8 @@ system.
|
|||||||
|
|
||||||
dlmfs is built with OCFS2 as it requires most of its infrastructure.
|
dlmfs is built with OCFS2 as it requires most of its infrastructure.
|
||||||
|
|
||||||
Project web page: http://oss.oracle.com/projects/ocfs2
|
Project web page: http://ocfs2.wiki.kernel.org
|
||||||
Tools web page: http://oss.oracle.com/projects/ocfs2-tools
|
Tools web page: https://github.com/markfasheh/ocfs2-tools
|
||||||
OCFS2 mailing lists: http://oss.oracle.com/projects/ocfs2/mailman/
|
OCFS2 mailing lists: http://oss.oracle.com/projects/ocfs2/mailman/
|
||||||
|
|
||||||
All code copyright 2005 Oracle except when otherwise noted.
|
All code copyright 2005 Oracle except when otherwise noted.
|
||||||
|
|||||||
@@ -8,8 +8,8 @@ also make it attractive for non-clustered use.
|
|||||||
You'll want to install the ocfs2-tools package in order to at least
|
You'll want to install the ocfs2-tools package in order to at least
|
||||||
get "mount.ocfs2" and "ocfs2_hb_ctl".
|
get "mount.ocfs2" and "ocfs2_hb_ctl".
|
||||||
|
|
||||||
Project web page: http://oss.oracle.com/projects/ocfs2
|
Project web page: http://ocfs2.wiki.kernel.org
|
||||||
Tools web page: http://oss.oracle.com/projects/ocfs2-tools
|
Tools git tree: https://github.com/markfasheh/ocfs2-tools
|
||||||
OCFS2 mailing lists: http://oss.oracle.com/projects/ocfs2/mailman/
|
OCFS2 mailing lists: http://oss.oracle.com/projects/ocfs2/mailman/
|
||||||
|
|
||||||
All code copyright 2005 Oracle except when otherwise noted.
|
All code copyright 2005 Oracle except when otherwise noted.
|
||||||
|
|||||||
@@ -40,8 +40,10 @@ but also to IPIs and to some other special-purpose interrupts.
|
|||||||
|
|
||||||
The IRQF_NO_SUSPEND flag is used to indicate that to the IRQ subsystem when
|
The IRQF_NO_SUSPEND flag is used to indicate that to the IRQ subsystem when
|
||||||
requesting a special-purpose interrupt. It causes suspend_device_irqs() to
|
requesting a special-purpose interrupt. It causes suspend_device_irqs() to
|
||||||
leave the corresponding IRQ enabled so as to allow the interrupt to work all
|
leave the corresponding IRQ enabled so as to allow the interrupt to work as
|
||||||
the time as expected.
|
expected during the suspend-resume cycle, but does not guarantee that the
|
||||||
|
interrupt will wake the system from a suspended state -- for such cases it is
|
||||||
|
necessary to use enable_irq_wake().
|
||||||
|
|
||||||
Note that the IRQF_NO_SUSPEND flag affects the entire IRQ and not just one
|
Note that the IRQF_NO_SUSPEND flag affects the entire IRQ and not just one
|
||||||
user of it. Thus, if the IRQ is shared, all of the interrupt handlers installed
|
user of it. Thus, if the IRQ is shared, all of the interrupt handlers installed
|
||||||
@@ -110,8 +112,9 @@ any special interrupt handling logic for it to work.
|
|||||||
IRQF_NO_SUSPEND and enable_irq_wake()
|
IRQF_NO_SUSPEND and enable_irq_wake()
|
||||||
-------------------------------------
|
-------------------------------------
|
||||||
|
|
||||||
There are no valid reasons to use both enable_irq_wake() and the IRQF_NO_SUSPEND
|
There are very few valid reasons to use both enable_irq_wake() and the
|
||||||
flag on the same IRQ.
|
IRQF_NO_SUSPEND flag on the same IRQ, and it is never valid to use both for the
|
||||||
|
same device.
|
||||||
|
|
||||||
First of all, if the IRQ is not shared, the rules for handling IRQF_NO_SUSPEND
|
First of all, if the IRQ is not shared, the rules for handling IRQF_NO_SUSPEND
|
||||||
interrupts (interrupt handlers are invoked after suspend_device_irqs()) are
|
interrupts (interrupt handlers are invoked after suspend_device_irqs()) are
|
||||||
@@ -120,4 +123,13 @@ handlers are not invoked after suspend_device_irqs()).
|
|||||||
|
|
||||||
Second, both enable_irq_wake() and IRQF_NO_SUSPEND apply to entire IRQs and not
|
Second, both enable_irq_wake() and IRQF_NO_SUSPEND apply to entire IRQs and not
|
||||||
to individual interrupt handlers, so sharing an IRQ between a system wakeup
|
to individual interrupt handlers, so sharing an IRQ between a system wakeup
|
||||||
interrupt source and an IRQF_NO_SUSPEND interrupt source does not make sense.
|
interrupt source and an IRQF_NO_SUSPEND interrupt source does not generally
|
||||||
|
make sense.
|
||||||
|
|
||||||
|
In rare cases an IRQ can be shared between a wakeup device driver and an
|
||||||
|
IRQF_NO_SUSPEND user. In order for this to be safe, the wakeup device driver
|
||||||
|
must be able to discern spurious IRQs from genuine wakeup events (signalling
|
||||||
|
the latter to the core with pm_system_wakeup()), must use enable_irq_wake() to
|
||||||
|
ensure that the IRQ will function as a wakeup source, and must request the IRQ
|
||||||
|
with IRQF_COND_SUSPEND to tell the core that it meets these requirements. If
|
||||||
|
these requirements are not met, it is not valid to use IRQF_COND_SUSPEND.
|
||||||
|
|||||||
+10
-3
@@ -2065,7 +2065,7 @@ F: include/net/bluetooth/
|
|||||||
BONDING DRIVER
|
BONDING DRIVER
|
||||||
M: Jay Vosburgh <j.vosburgh@gmail.com>
|
M: Jay Vosburgh <j.vosburgh@gmail.com>
|
||||||
M: Veaceslav Falico <vfalico@gmail.com>
|
M: Veaceslav Falico <vfalico@gmail.com>
|
||||||
M: Andy Gospodarek <andy@greyhouse.net>
|
M: Andy Gospodarek <gospo@cumulusnetworks.com>
|
||||||
L: netdev@vger.kernel.org
|
L: netdev@vger.kernel.org
|
||||||
W: http://sourceforge.net/projects/bonding/
|
W: http://sourceforge.net/projects/bonding/
|
||||||
S: Supported
|
S: Supported
|
||||||
@@ -7219,8 +7219,7 @@ ORACLE CLUSTER FILESYSTEM 2 (OCFS2)
|
|||||||
M: Mark Fasheh <mfasheh@suse.com>
|
M: Mark Fasheh <mfasheh@suse.com>
|
||||||
M: Joel Becker <jlbec@evilplan.org>
|
M: Joel Becker <jlbec@evilplan.org>
|
||||||
L: ocfs2-devel@oss.oracle.com (moderated for non-subscribers)
|
L: ocfs2-devel@oss.oracle.com (moderated for non-subscribers)
|
||||||
W: http://oss.oracle.com/projects/ocfs2/
|
W: http://ocfs2.wiki.kernel.org
|
||||||
T: git git://git.kernel.org/pub/scm/linux/kernel/git/jlbec/ocfs2.git
|
|
||||||
S: Supported
|
S: Supported
|
||||||
F: Documentation/filesystems/ocfs2.txt
|
F: Documentation/filesystems/ocfs2.txt
|
||||||
F: Documentation/filesystems/dlmfs.txt
|
F: Documentation/filesystems/dlmfs.txt
|
||||||
@@ -8487,6 +8486,14 @@ S: Supported
|
|||||||
L: netdev@vger.kernel.org
|
L: netdev@vger.kernel.org
|
||||||
F: drivers/net/ethernet/samsung/sxgbe/
|
F: drivers/net/ethernet/samsung/sxgbe/
|
||||||
|
|
||||||
|
SAMSUNG THERMAL DRIVER
|
||||||
|
M: Lukasz Majewski <l.majewski@samsung.com>
|
||||||
|
L: linux-pm@vger.kernel.org
|
||||||
|
L: linux-samsung-soc@vger.kernel.org
|
||||||
|
S: Supported
|
||||||
|
T: https://github.com/lmajewski/linux-samsung-thermal.git
|
||||||
|
F: drivers/thermal/samsung/
|
||||||
|
|
||||||
SAMSUNG USB2 PHY DRIVER
|
SAMSUNG USB2 PHY DRIVER
|
||||||
M: Kamil Debski <k.debski@samsung.com>
|
M: Kamil Debski <k.debski@samsung.com>
|
||||||
L: linux-kernel@vger.kernel.org
|
L: linux-kernel@vger.kernel.org
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
VERSION = 4
|
VERSION = 4
|
||||||
PATCHLEVEL = 0
|
PATCHLEVEL = 0
|
||||||
SUBLEVEL = 0
|
SUBLEVEL = 0
|
||||||
EXTRAVERSION = -rc1
|
EXTRAVERSION = -rc3
|
||||||
NAME = Hurr durr I'ma sheep
|
NAME = Hurr durr I'ma sheep
|
||||||
|
|
||||||
# *DOCUMENTATION*
|
# *DOCUMENTATION*
|
||||||
|
|||||||
@@ -47,9 +47,6 @@ struct thread_struct {
|
|||||||
/* Forward declaration, a strange C thing */
|
/* Forward declaration, a strange C thing */
|
||||||
struct task_struct;
|
struct task_struct;
|
||||||
|
|
||||||
/* Return saved PC of a blocked thread */
|
|
||||||
unsigned long thread_saved_pc(struct task_struct *t);
|
|
||||||
|
|
||||||
#define task_pt_regs(p) \
|
#define task_pt_regs(p) \
|
||||||
((struct pt_regs *)(THREAD_SIZE + (void *)task_stack_page(p)) - 1)
|
((struct pt_regs *)(THREAD_SIZE + (void *)task_stack_page(p)) - 1)
|
||||||
|
|
||||||
@@ -72,18 +69,21 @@ unsigned long thread_saved_pc(struct task_struct *t);
|
|||||||
#define release_segments(mm) do { } while (0)
|
#define release_segments(mm) do { } while (0)
|
||||||
|
|
||||||
#define KSTK_EIP(tsk) (task_pt_regs(tsk)->ret)
|
#define KSTK_EIP(tsk) (task_pt_regs(tsk)->ret)
|
||||||
|
#define KSTK_ESP(tsk) (task_pt_regs(tsk)->sp)
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Where abouts of Task's sp, fp, blink when it was last seen in kernel mode.
|
* Where abouts of Task's sp, fp, blink when it was last seen in kernel mode.
|
||||||
* Look in process.c for details of kernel stack layout
|
* Look in process.c for details of kernel stack layout
|
||||||
*/
|
*/
|
||||||
#define KSTK_ESP(tsk) (tsk->thread.ksp)
|
#define TSK_K_ESP(tsk) (tsk->thread.ksp)
|
||||||
|
|
||||||
#define KSTK_REG(tsk, off) (*((unsigned int *)(KSTK_ESP(tsk) + \
|
#define TSK_K_REG(tsk, off) (*((unsigned int *)(TSK_K_ESP(tsk) + \
|
||||||
sizeof(struct callee_regs) + off)))
|
sizeof(struct callee_regs) + off)))
|
||||||
|
|
||||||
#define KSTK_BLINK(tsk) KSTK_REG(tsk, 4)
|
#define TSK_K_BLINK(tsk) TSK_K_REG(tsk, 4)
|
||||||
#define KSTK_FP(tsk) KSTK_REG(tsk, 0)
|
#define TSK_K_FP(tsk) TSK_K_REG(tsk, 0)
|
||||||
|
|
||||||
|
#define thread_saved_pc(tsk) TSK_K_BLINK(tsk)
|
||||||
|
|
||||||
extern void start_thread(struct pt_regs * regs, unsigned long pc,
|
extern void start_thread(struct pt_regs * regs, unsigned long pc,
|
||||||
unsigned long usp);
|
unsigned long usp);
|
||||||
|
|||||||
@@ -0,0 +1,37 @@
|
|||||||
|
/*
|
||||||
|
* Copyright (C) 2014-15 Synopsys, Inc. (www.synopsys.com)
|
||||||
|
* Copyright (C) 2007-2010, 2011-2012 Synopsys, Inc. (www.synopsys.com)
|
||||||
|
*
|
||||||
|
* This program is free software; you can redistribute it and/or modify
|
||||||
|
* it under the terms of the GNU General Public License version 2 as
|
||||||
|
* published by the Free Software Foundation.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#ifndef __ASM_STACKTRACE_H
|
||||||
|
#define __ASM_STACKTRACE_H
|
||||||
|
|
||||||
|
#include <linux/sched.h>
|
||||||
|
|
||||||
|
/**
|
||||||
|
* arc_unwind_core - Unwind the kernel mode stack for an execution context
|
||||||
|
* @tsk: NULL for current task, specific task otherwise
|
||||||
|
* @regs: pt_regs used to seed the unwinder {SP, FP, BLINK, PC}
|
||||||
|
* If NULL, use pt_regs of @tsk (if !NULL) otherwise
|
||||||
|
* use the current values of {SP, FP, BLINK, PC}
|
||||||
|
* @consumer_fn: Callback invoked for each frame unwound
|
||||||
|
* Returns 0 to continue unwinding, -1 to stop
|
||||||
|
* @arg: Arg to callback
|
||||||
|
*
|
||||||
|
* Returns the address of first function in stack
|
||||||
|
*
|
||||||
|
* Semantics:
|
||||||
|
* - synchronous unwinding (e.g. dump_stack): @tsk NULL, @regs NULL
|
||||||
|
* - Asynchronous unwinding of sleeping task: @tsk !NULL, @regs NULL
|
||||||
|
* - Asynchronous unwinding of intr/excp etc: @tsk !NULL, @regs !NULL
|
||||||
|
*/
|
||||||
|
notrace noinline unsigned int arc_unwind_core(
|
||||||
|
struct task_struct *tsk, struct pt_regs *regs,
|
||||||
|
int (*consumer_fn) (unsigned int, void *),
|
||||||
|
void *arg);
|
||||||
|
|
||||||
|
#endif /* __ASM_STACKTRACE_H */
|
||||||
@@ -192,29 +192,6 @@ int dump_fpu(struct pt_regs *regs, elf_fpregset_t *fpu)
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
|
||||||
* API: expected by schedular Code: If thread is sleeping where is that.
|
|
||||||
* What is this good for? it will be always the scheduler or ret_from_fork.
|
|
||||||
* So we hard code that anyways.
|
|
||||||
*/
|
|
||||||
unsigned long thread_saved_pc(struct task_struct *t)
|
|
||||||
{
|
|
||||||
struct pt_regs *regs = task_pt_regs(t);
|
|
||||||
unsigned long blink = 0;
|
|
||||||
|
|
||||||
/*
|
|
||||||
* If the thread being queried for in not itself calling this, then it
|
|
||||||
* implies it is not executing, which in turn implies it is sleeping,
|
|
||||||
* which in turn implies it got switched OUT by the schedular.
|
|
||||||
* In that case, it's kernel mode blink can reliably retrieved as per
|
|
||||||
* the picture above (right above pt_regs).
|
|
||||||
*/
|
|
||||||
if (t != current && t->state != TASK_RUNNING)
|
|
||||||
blink = *((unsigned int *)regs - 1);
|
|
||||||
|
|
||||||
return blink;
|
|
||||||
}
|
|
||||||
|
|
||||||
int elf_check_arch(const struct elf32_hdr *x)
|
int elf_check_arch(const struct elf32_hdr *x)
|
||||||
{
|
{
|
||||||
unsigned int eflags;
|
unsigned int eflags;
|
||||||
|
|||||||
@@ -43,6 +43,10 @@ static void seed_unwind_frame_info(struct task_struct *tsk,
|
|||||||
struct pt_regs *regs,
|
struct pt_regs *regs,
|
||||||
struct unwind_frame_info *frame_info)
|
struct unwind_frame_info *frame_info)
|
||||||
{
|
{
|
||||||
|
/*
|
||||||
|
* synchronous unwinding (e.g. dump_stack)
|
||||||
|
* - uses current values of SP and friends
|
||||||
|
*/
|
||||||
if (tsk == NULL && regs == NULL) {
|
if (tsk == NULL && regs == NULL) {
|
||||||
unsigned long fp, sp, blink, ret;
|
unsigned long fp, sp, blink, ret;
|
||||||
frame_info->task = current;
|
frame_info->task = current;
|
||||||
@@ -61,12 +65,17 @@ static void seed_unwind_frame_info(struct task_struct *tsk,
|
|||||||
frame_info->regs.r63 = ret;
|
frame_info->regs.r63 = ret;
|
||||||
frame_info->call_frame = 0;
|
frame_info->call_frame = 0;
|
||||||
} else if (regs == NULL) {
|
} else if (regs == NULL) {
|
||||||
|
/*
|
||||||
|
* Asynchronous unwinding of sleeping task
|
||||||
|
* - Gets SP etc from task's pt_regs (saved bottom of kernel
|
||||||
|
* mode stack of task)
|
||||||
|
*/
|
||||||
|
|
||||||
frame_info->task = tsk;
|
frame_info->task = tsk;
|
||||||
|
|
||||||
frame_info->regs.r27 = KSTK_FP(tsk);
|
frame_info->regs.r27 = TSK_K_FP(tsk);
|
||||||
frame_info->regs.r28 = KSTK_ESP(tsk);
|
frame_info->regs.r28 = TSK_K_ESP(tsk);
|
||||||
frame_info->regs.r31 = KSTK_BLINK(tsk);
|
frame_info->regs.r31 = TSK_K_BLINK(tsk);
|
||||||
frame_info->regs.r63 = (unsigned int)__switch_to;
|
frame_info->regs.r63 = (unsigned int)__switch_to;
|
||||||
|
|
||||||
/* In the prologue of __switch_to, first FP is saved on stack
|
/* In the prologue of __switch_to, first FP is saved on stack
|
||||||
@@ -83,6 +92,10 @@ static void seed_unwind_frame_info(struct task_struct *tsk,
|
|||||||
frame_info->call_frame = 0;
|
frame_info->call_frame = 0;
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
|
/*
|
||||||
|
* Asynchronous unwinding of intr/exception
|
||||||
|
* - Just uses the pt_regs passed
|
||||||
|
*/
|
||||||
frame_info->task = tsk;
|
frame_info->task = tsk;
|
||||||
|
|
||||||
frame_info->regs.r27 = regs->fp;
|
frame_info->regs.r27 = regs->fp;
|
||||||
@@ -95,7 +108,7 @@ static void seed_unwind_frame_info(struct task_struct *tsk,
|
|||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
static noinline unsigned int
|
notrace noinline unsigned int
|
||||||
arc_unwind_core(struct task_struct *tsk, struct pt_regs *regs,
|
arc_unwind_core(struct task_struct *tsk, struct pt_regs *regs,
|
||||||
int (*consumer_fn) (unsigned int, void *), void *arg)
|
int (*consumer_fn) (unsigned int, void *), void *arg)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -12,6 +12,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include <linux/types.h>
|
#include <linux/types.h>
|
||||||
|
#include <linux/perf_event.h>
|
||||||
#include <linux/ptrace.h>
|
#include <linux/ptrace.h>
|
||||||
#include <linux/uaccess.h>
|
#include <linux/uaccess.h>
|
||||||
#include <asm/disasm.h>
|
#include <asm/disasm.h>
|
||||||
@@ -253,6 +254,7 @@ int misaligned_fixup(unsigned long address, struct pt_regs *regs,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
perf_sw_event(PERF_COUNT_SW_ALIGNMENT_FAULTS, 1, regs, address);
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
fault:
|
fault:
|
||||||
|
|||||||
+10
-2
@@ -14,6 +14,7 @@
|
|||||||
#include <linux/ptrace.h>
|
#include <linux/ptrace.h>
|
||||||
#include <linux/uaccess.h>
|
#include <linux/uaccess.h>
|
||||||
#include <linux/kdebug.h>
|
#include <linux/kdebug.h>
|
||||||
|
#include <linux/perf_event.h>
|
||||||
#include <asm/pgalloc.h>
|
#include <asm/pgalloc.h>
|
||||||
#include <asm/mmu.h>
|
#include <asm/mmu.h>
|
||||||
|
|
||||||
@@ -139,13 +140,20 @@ good_area:
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
perf_sw_event(PERF_COUNT_SW_PAGE_FAULTS, 1, regs, address);
|
||||||
|
|
||||||
if (likely(!(fault & VM_FAULT_ERROR))) {
|
if (likely(!(fault & VM_FAULT_ERROR))) {
|
||||||
if (flags & FAULT_FLAG_ALLOW_RETRY) {
|
if (flags & FAULT_FLAG_ALLOW_RETRY) {
|
||||||
/* To avoid updating stats twice for retry case */
|
/* To avoid updating stats twice for retry case */
|
||||||
if (fault & VM_FAULT_MAJOR)
|
if (fault & VM_FAULT_MAJOR) {
|
||||||
tsk->maj_flt++;
|
tsk->maj_flt++;
|
||||||
else
|
perf_sw_event(PERF_COUNT_SW_PAGE_FAULTS_MAJ, 1,
|
||||||
|
regs, address);
|
||||||
|
} else {
|
||||||
tsk->min_flt++;
|
tsk->min_flt++;
|
||||||
|
perf_sw_event(PERF_COUNT_SW_PAGE_FAULTS_MIN, 1,
|
||||||
|
regs, address);
|
||||||
|
}
|
||||||
|
|
||||||
if (fault & VM_FAULT_RETRY) {
|
if (fault & VM_FAULT_RETRY) {
|
||||||
flags &= ~FAULT_FLAG_ALLOW_RETRY;
|
flags &= ~FAULT_FLAG_ALLOW_RETRY;
|
||||||
|
|||||||
@@ -195,6 +195,7 @@
|
|||||||
|
|
||||||
&usb0 {
|
&usb0 {
|
||||||
status = "okay";
|
status = "okay";
|
||||||
|
dr_mode = "peripheral";
|
||||||
};
|
};
|
||||||
|
|
||||||
&usb1 {
|
&usb1 {
|
||||||
|
|||||||
@@ -133,20 +133,6 @@
|
|||||||
>;
|
>;
|
||||||
};
|
};
|
||||||
|
|
||||||
i2c1_pins_default: i2c1_pins_default {
|
|
||||||
pinctrl-single,pins = <
|
|
||||||
0x15c (PIN_INPUT | SLEWCTRL_FAST | MUX_MODE2) /* spi0_cs0.i2c1_scl */
|
|
||||||
0x158 (PIN_INPUT | SLEWCTRL_FAST | MUX_MODE2) /* spi0_d1.i2c1_sda */
|
|
||||||
>;
|
|
||||||
};
|
|
||||||
|
|
||||||
i2c1_pins_sleep: i2c1_pins_sleep {
|
|
||||||
pinctrl-single,pins = <
|
|
||||||
0x15c (PIN_INPUT_PULLDOWN | MUX_MODE7) /* spi0_cs0.i2c1_scl */
|
|
||||||
0x158 (PIN_INPUT_PULLDOWN | MUX_MODE7) /* spi0_d1.i2c1_sda */
|
|
||||||
>;
|
|
||||||
};
|
|
||||||
|
|
||||||
mmc1_pins_default: pinmux_mmc1_pins_default {
|
mmc1_pins_default: pinmux_mmc1_pins_default {
|
||||||
pinctrl-single,pins = <
|
pinctrl-single,pins = <
|
||||||
0x100 (PIN_INPUT | MUX_MODE0) /* mmc0_clk.mmc0_clk */
|
0x100 (PIN_INPUT | MUX_MODE0) /* mmc0_clk.mmc0_clk */
|
||||||
@@ -254,7 +240,7 @@
|
|||||||
status = "okay";
|
status = "okay";
|
||||||
pinctrl-names = "default", "sleep";
|
pinctrl-names = "default", "sleep";
|
||||||
pinctrl-0 = <&i2c0_pins_default>;
|
pinctrl-0 = <&i2c0_pins_default>;
|
||||||
pinctrl-1 = <&i2c0_pins_default>;
|
pinctrl-1 = <&i2c0_pins_sleep>;
|
||||||
clock-frequency = <400000>;
|
clock-frequency = <400000>;
|
||||||
|
|
||||||
at24@50 {
|
at24@50 {
|
||||||
@@ -262,17 +248,10 @@
|
|||||||
pagesize = <64>;
|
pagesize = <64>;
|
||||||
reg = <0x50>;
|
reg = <0x50>;
|
||||||
};
|
};
|
||||||
};
|
|
||||||
|
|
||||||
&i2c1 {
|
|
||||||
status = "okay";
|
|
||||||
pinctrl-names = "default", "sleep";
|
|
||||||
pinctrl-0 = <&i2c1_pins_default>;
|
|
||||||
pinctrl-1 = <&i2c1_pins_default>;
|
|
||||||
clock-frequency = <400000>;
|
|
||||||
|
|
||||||
tps: tps62362@60 {
|
tps: tps62362@60 {
|
||||||
compatible = "ti,tps62362";
|
compatible = "ti,tps62362";
|
||||||
|
reg = <0x60>;
|
||||||
regulator-name = "VDD_MPU";
|
regulator-name = "VDD_MPU";
|
||||||
regulator-min-microvolt = <950000>;
|
regulator-min-microvolt = <950000>;
|
||||||
regulator-max-microvolt = <1330000>;
|
regulator-max-microvolt = <1330000>;
|
||||||
|
|||||||
@@ -549,14 +549,6 @@
|
|||||||
pinctrl-0 = <&usb1_pins>;
|
pinctrl-0 = <&usb1_pins>;
|
||||||
};
|
};
|
||||||
|
|
||||||
&omap_dwc3_1 {
|
|
||||||
extcon = <&extcon_usb1>;
|
|
||||||
};
|
|
||||||
|
|
||||||
&omap_dwc3_2 {
|
|
||||||
extcon = <&extcon_usb2>;
|
|
||||||
};
|
|
||||||
|
|
||||||
&usb2 {
|
&usb2 {
|
||||||
dr_mode = "peripheral";
|
dr_mode = "peripheral";
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -35,6 +35,18 @@
|
|||||||
DM816X_IOPAD(0x0aac, PIN_INPUT | MUX_MODE0) /* SPI_D1 */
|
DM816X_IOPAD(0x0aac, PIN_INPUT | MUX_MODE0) /* SPI_D1 */
|
||||||
>;
|
>;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
usb0_pins: pinmux_usb0_pins {
|
||||||
|
pinctrl-single,pins = <
|
||||||
|
DM816X_IOPAD(0x0d00, MUX_MODE0) /* USB0_DRVVBUS */
|
||||||
|
>;
|
||||||
|
};
|
||||||
|
|
||||||
|
usb1_pins: pinmux_usb0_pins {
|
||||||
|
pinctrl-single,pins = <
|
||||||
|
DM816X_IOPAD(0x0d04, MUX_MODE0) /* USB1_DRVVBUS */
|
||||||
|
>;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
&i2c1 {
|
&i2c1 {
|
||||||
@@ -127,3 +139,16 @@
|
|||||||
&mmc1 {
|
&mmc1 {
|
||||||
vmmc-supply = <&vmmcsd_fixed>;
|
vmmc-supply = <&vmmcsd_fixed>;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/* At least dm8168-evm rev c won't support multipoint, later may */
|
||||||
|
&usb0 {
|
||||||
|
pinctrl-names = "default";
|
||||||
|
pinctrl-0 = <&usb0_pins>;
|
||||||
|
mentor,multipoint = <0>;
|
||||||
|
};
|
||||||
|
|
||||||
|
&usb1 {
|
||||||
|
pinctrl-names = "default";
|
||||||
|
pinctrl-0 = <&usb1_pins>;
|
||||||
|
mentor,multipoint = <0>;
|
||||||
|
};
|
||||||
|
|||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user