1. 22 11月, 2018 3 次提交
  2. 06 11月, 2018 9 次提交
    • Y
      nds32: Remove duplicated include from pm.c · 4f014a41
      YueHaibing 提交于
      Remove duplicated include.
      Signed-off-by: NYueHaibing <yuehaibing@huawei.com>
      Acked-by: NPavel Machek <pavel@ucw.cz>
      Acked-by: NGreentime Hu <greentime@andestech.com>
      Signed-off-by: NGreentime Hu <greentime@andestech.com>
      4f014a41
    • N
      nds32: Power management for nds32 · 7938e631
      Nick Hu 提交于
      There are three sleep states in nds32:
      	suspend to idle,
      	suspend to standby,
      	suspend to ram
      
      In suspend to ram, we use the 'standby' instruction to emulate
      power management device to hang the system util wakeup source
      send wakeup events to break the loop.
      
      First, we push the general purpose registers and system registers
      to stack. Second, we translate stack pointer to physical address
      and store to memory to save the stack pointer. Third, after write
      back and invalid the cache we hang in 'standby' intruction.
      When wakeup source trigger wake up events, the loop will be break
      and resume the system.
      Signed-off-by: NNick Hu <nickhu@andestech.com>
      Acked-by: NPavel Machek <pavel@ucw.cz>
      Acked-by: NGreentime Hu <greentime@andestech.com>
      Signed-off-by: NGreentime Hu <greentime@andestech.com>
      7938e631
    • N
      nds32: Add document for NDS32 PMU. · cf26edd8
      Nickhu 提交于
      The document for how to add NDS32 PMU
      in devicetree.
      Signed-off-by: NNickhu <nickhu@andestech.com>
      Reviewed-by: NRob Herring <robh@kernel.org>
      Acked-by: NGreentime Hu <greentime@andestech.com>
      Signed-off-by: NGreentime Hu <greentime@andestech.com>
      cf26edd8
    • N
      nds32: Add perf call-graph support. · c8b34461
      Nickhu 提交于
      The perf call-graph option can trace the callchain
      between functions. This commit add the perf callchain
      for nds32. There are kerenl callchain and user callchain.
      The kerenl callchain can trace the function in kernel
      space. There are two type for user callchain. One for the
      'optimize for size' config is set, and another one for the
      config is not set. The difference between two types is that
      the index of frame-pointer in user stack is not the same.
      
      For example:
      	With optimize for size:
      		User Stack:
      			---------
      			|   lp	|
      			---------
      			|	gp	|
      			---------
      			|	fp	|
      
      	Without optimize for size:
      		User Stack:
      		1. non-leaf function:
      			---------
      			|	lp	|
      			---------
      			|	fp	|
      
      		2. leaf	function:
      			---------
      			|	fp	|
      Signed-off-by: NNickhu <nickhu@andestech.com>
      Acked-by: NGreentime Hu <greentime@andestech.com>
      Signed-off-by: NGreentime Hu <greentime@andestech.com>
      c8b34461
    • N
      nds32: Perf porting · ebd09753
      Nickhu 提交于
      This is the commit that porting the perf for nds32.
      
      1.Raw event:
      	The raw events start with 'r'.
      		Usage:
      			perf stat -e rXYZ ./app
      			X: the index of performance counter.
      			YZ: the index(convert to hexdecimal) of events
      
      		Example:
      			'perf stat -e r101 ./app' means the counter 1 will count the instruction
      		event.
      
      		The index of counter and events can be found in
      		"Andes System Privilege Architecture Version 3 Manual".
      
      Or you can perform the 'perf list' to find the symbolic name of raw events.
      
      2.Perf mmap2:
      
      	Fix unexpected perf mmap2() page fault
      
      	When the mmap2() called by perf application,
      	you will encounter such condition:"failed to write."
      	With return value -EFAULT
      
      	This is due to the page fault caused by "reading" buffer
      	from the mapped legal address region to write to the descriptor.
      	The page_fault handler will get a VM_FAULT_SIGBUS return value,
      	which should not happens here.(Due to this is a read request.)
      
      	You can refer to kernel/events/core.c:perf_mmap_fault(...)
      	If "(vmf->pgoff && (vmf->flags & FAULT_FLAG_WRITE))" is evaluated
      	as true, you will get VM_FAULT_SIGBUS as return value.
      
      	However, this is not an write request. The flags which indicated
      	why the page fault happens is wrong.
      
      	Furthermore, NDS32 SPAv3 is not able to detect it is read or write.
      	It only know  either it is instruction fetch or data access.
      
      	Therefore, by removing the wrong flag assignment(actually, the hardware
      	is not able to show the reason), we can fix this bug.
      
      3.Perf multiple events map to same counter.
      
      	When there are multiple events map to the same counter, the counter
      	counts inaccurately. This is because each counter only counts one event
      	in the same time.
      	So when there are multiple events map to same counter, they have to take
      	turns in each context.
      
      	There are two solution:
      	1. Print the error message when multiple events map to the same counter.
      	But print the error message would let the program hang in loop. The ltp
      	(linux test program) would be failed when the program hang in loop.
      
      	2. Don't print the error message, the ltp would pass. But the user need to
      	have the knowledge that don't count the events which map to the same
      	counter, or the user will get the inaccurate results.
      
      	We choose method 2 for the solution
      Signed-off-by: NNickhu <nickhu@andestech.com>
      Acked-by: NGreentime Hu <greentime@andestech.com>
      Signed-off-by: NGreentime Hu <greentime@andestech.com>
      ebd09753
    • N
      nds32: Fix bug in bitfield.h · 9aaafac8
      Nickhu 提交于
      There two bitfield bug for perfomance counter
      in bitfield.h:
      
      	PFM_CTL_offSEL1		21 --> 16
      	PFM_CTL_offSEL2		27 --> 22
      
      This commit fix it.
      Signed-off-by: NNickhu <nickhu@andestech.com>
      Acked-by: NGreentime Hu <greentime@andestech.com>
      Signed-off-by: NGreentime Hu <greentime@andestech.com>
      9aaafac8
    • N
      nds32: Fix gcc 8.0 compiler option incompatible. · 4c3d6174
      Nickhu 提交于
      When the kernel configs of ftrace and frame pointer options are
      choosed, the compiler option of kernel will incompatible.
      	Error message:
      		nds32le-linux-gcc: error: -pg and -fomit-frame-pointer are incompatible
      Signed-off-by: NNickhu <nickhu@andestech.com>
      Signed-off-by: NZong Li <zong@andestech.com>
      Acked-by: NGreentime Hu <greentime@andestech.com>
      Signed-off-by: NGreentime Hu <greentime@andestech.com>
      4c3d6174
    • Z
      nds32: Fill all TLB entries with kernel image mapping · 8730c178
      Zong Li 提交于
      We use earlycon replace with early_printk and doesn't use
      early_io_map() to create UART mapping. It is not necessary
      to reserve the one way in TLB for now.
      
      It didn't make sense if use direct-mapped and reserve one
      way at the same time. It allow the direct-mapped now.
      Signed-off-by: NZong Li <zong@andestech.com>
      Signed-off-by: NGreentime Hu <greentime@andestech.com>
      8730c178
    • Z
      nds32: Remove the redundant assignment · 2e95c4d6
      Zong Li 提交于
      For early version, the value of r2 register was used to display
      a character on UART when error occurred. Remove these r2 assignments
      because we no longer show the character.
      Signed-off-by: NZong Li <zong@andestech.com>
      Signed-off-by: NGreentime Hu <greentime@andestech.com>
      2e95c4d6
  3. 05 11月, 2018 5 次提交
    • L
      Linux 4.20-rc1 · 65102238
      Linus Torvalds 提交于
      65102238
    • L
      Merge tag 'tags/upstream-4.20-rc1' of git://git.infradead.org/linux-ubifs · 42bd06e9
      Linus Torvalds 提交于
      Pull UBIFS updates from Richard Weinberger:
      
       - Full filesystem authentication feature, UBIFS is now able to have the
         whole filesystem structure authenticated plus user data encrypted and
         authenticated.
      
       - Minor cleanups
      
      * tag 'tags/upstream-4.20-rc1' of git://git.infradead.org/linux-ubifs: (26 commits)
        ubifs: Remove unneeded semicolon
        Documentation: ubifs: Add authentication whitepaper
        ubifs: Enable authentication support
        ubifs: Do not update inode size in-place in authenticated mode
        ubifs: Add hashes and HMACs to default filesystem
        ubifs: authentication: Authenticate super block node
        ubifs: Create hash for default LPT
        ubfis: authentication: Authenticate master node
        ubifs: authentication: Authenticate LPT
        ubifs: Authenticate replayed journal
        ubifs: Add auth nodes to garbage collector journal head
        ubifs: Add authentication nodes to journal
        ubifs: authentication: Add hashes to index nodes
        ubifs: Add hashes to the tree node cache
        ubifs: Create functions to embed a HMAC in a node
        ubifs: Add helper functions for authentication support
        ubifs: Add separate functions to init/crc a node
        ubifs: Format changes for authentication support
        ubifs: Store read superblock node
        ubifs: Drop write_node
        ...
      42bd06e9
    • L
      Merge tag 'nfs-for-4.20-2' of git://git.linux-nfs.org/projects/trondmy/linux-nfs · 4710e789
      Linus Torvalds 提交于
      Pull NFS client bugfixes from Trond Myklebust:
       "Highlights include:
      
        Bugfix:
         - Fix build issues on architectures that don't provide 64-bit cmpxchg
      
        Cleanups:
         - Fix a spelling mistake"
      
      * tag 'nfs-for-4.20-2' of git://git.linux-nfs.org/projects/trondmy/linux-nfs:
        NFS: fix spelling mistake, EACCESS -> EACCES
        SUNRPC: Use atomic(64)_t for seq_send(64)
      4710e789
    • L
      Merge branch 'timers-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip · 35e74524
      Linus Torvalds 提交于
      Pull more timer updates from Thomas Gleixner:
       "A set of commits for the new C-SKY architecture timers"
      
      * 'timers-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
        dt-bindings: timer: gx6605s SOC timer
        clocksource/drivers/c-sky: Add gx6605s SOC system timer
        dt-bindings: timer: C-SKY Multi-processor timer
        clocksource/drivers/c-sky: Add C-SKY SMP timer
      35e74524
    • L
      Merge tag 'ntb-4.20' of git://github.com/jonmason/ntb · 04578e84
      Linus Torvalds 提交于
      Pull NTB updates from Jon Mason:
       "Fairly minor changes and bug fixes:
      
        NTB IDT thermal changes and hook into hwmon, ntb_netdev clean-up of
        private struct, and a few bug fixes"
      
      * tag 'ntb-4.20' of git://github.com/jonmason/ntb:
        ntb: idt: Alter the driver info comments
        ntb: idt: Discard temperature sensor IRQ handler
        ntb: idt: Add basic hwmon sysfs interface
        ntb: idt: Alter temperature read method
        ntb_netdev: Simplify remove with client device drvdata
        NTB: transport: Try harder to alloc an aligned MW buffer
        ntb: ntb_transport: Mark expected switch fall-throughs
        ntb: idt: Set PCIe bus address to BARLIMITx
        NTB: ntb_hw_idt: replace IS_ERR_OR_NULL with regular NULL checks
        ntb: intel: fix return value for ndev_vec_mask()
        ntb_netdev: fix sleep time mismatch
      04578e84
  4. 04 11月, 2018 23 次提交