Re: [PATCH] autofs: don't fail mount for transient error

2017-11-03 Thread Ian Kent
On 03/11/17 09:40, NeilBrown wrote: > Hi Neil, and thanks taking the time to post the patch. > Currently if the autofs kernel module gets an error when > writing to the pipe which links to the daemon, then it > marks the whole moutpoint as catatonic, and it will stop working. > > It is

Re: [PATCH v2 3/4] platform/x86: topstar-laptop: add platform device

2017-11-03 Thread Andy Shevchenko
On Sun, Oct 29, 2017 at 1:52 AM, Guillaume Douézan-Grard wrote: > * add platform device to support further addition of a led subsystem, > > * add existing input device to the new platform device. > #include > #include > #include > +#include > #include > #include Please, keep it

Re: [PATCH v2 4/4] platform/x86: topstar-laptop: add optional WLAN LED workaround

2017-11-03 Thread Andy Shevchenko
On Sun, Oct 29, 2017 at 1:53 AM, Guillaume Douézan-Grard wrote: > Topstar U931 laptops provide an LED synced with the WLAN adapter > hard-blocking state. Unfortunately, some models seem to be defective, > making impossible to hard-block the adapter with the WLAN switch and > thus the LED is

[PATCH] dpaa_eth: avoid uninitialized variable false-positive warning

2017-11-03 Thread Arnd Bergmann
We can now build this driver on ARM, so I ran into a randconfig build warning that presumably had existed on powerpc already. drivers/net/ethernet/freescale/dpaa/dpaa_eth.c: In function 'sg_fd_to_skb': drivers/net/ethernet/freescale/dpaa/dpaa_eth.c:1712:18: error: 'skb' may be used uninitialized

Re: [PATCH 1/3] nvme: do not check for ns on rw path

2017-11-03 Thread Christoph Hellwig
> - if (ns && ns->ms && > + if (ns->ms && > (!ns->pi_type || ns->ms != sizeof(struct t10_pi_tuple)) && > !blk_integrity_rq(req) && !blk_rq_is_passthrough(req)) > return BLK_STS_NOTSUPP; blk_rq_is_passthrough also can't be true here. How about:

Re: [PATCH] platform/x86: hp-wmi: Fix tablet mode detection for convertibles

2017-11-03 Thread Andy Shevchenko
On Fri, Nov 3, 2017 at 4:01 AM, Stefan Brüns wrote: > Commit f9cf3b2880cc ("platform/x86: hp-wmi: Refactor dock and tablet > state fetchers") consolidated the methods for docking and laptop mode > detection, but omitted to apply the correct mask for the laptop mode > (it always uses the constant

Re: [PATCH 2/3] nvme: compare NQN string with right size

2017-11-03 Thread Christoph Hellwig
On Fri, Nov 03, 2017 at 11:02:49AM +0100, Javier González wrote: > Compare subnqns using NVMF_NQN_SIZE as it is < 256 > > Signed-off-by: Javier González > --- > drivers/nvme/host/core.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/nvme/host/core.c

Re: [PATCH 3/3] nvme: fix eui_show() print format

2017-11-03 Thread Christoph Hellwig
On Fri, Nov 03, 2017 at 11:02:50AM +0100, Javier González wrote: > Signed-off-by: Javier González > --- > drivers/nvme/host/core.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/nvme/host/core.c b/drivers/nvme/host/core.c > index ae8ab0a1ef0d..f05c81774abf

Re: [PATCH 2/3] nvme: compare NQN string with right size

2017-11-03 Thread Javier González
> On 3 Nov 2017, at 13.54, Christoph Hellwig wrote: > > On Fri, Nov 03, 2017 at 11:02:49AM +0100, Javier González wrote: >> Compare subnqns using NVMF_NQN_SIZE as it is < 256 >> >> Signed-off-by: Javier González >> --- >> drivers/nvme/host/core.c | 2 +- >> 1 file changed, 1 insertion(+), 1

Re: [PATCH v3 1/2] livepatch: send a fake signal to all blocking tasks

2017-11-03 Thread Josh Poimboeuf
On Fri, Nov 03, 2017 at 09:02:50AM +0100, Miroslav Benes wrote: > On Thu, 2 Nov 2017, Josh Poimboeuf wrote: > > > On Tue, Oct 31, 2017 at 12:48:52PM +0100, Miroslav Benes wrote: > > > + > > > +/* > > > + * Sends a fake signal to all non-kthread tasks with TIF_PATCH_PENDING > > > set. > > > + *

[PATCH v2] x86/module: Detect corrupt relocations against nonzero data

2017-11-03 Thread Josh Poimboeuf
There have been some cases where external tooling (e.g., kpatch-build) creates a corrupt relocation which targets the wrong address. This is a silent failure which can corrupt memory in unexpected places. On x86, the bytes of data being overwritten by relocations are always initialized to zero

Re: [PATCH 1/3] nvme: do not check for ns on rw path

2017-11-03 Thread Javier González
> On 3 Nov 2017, at 13.53, Christoph Hellwig wrote: > >> -if (ns && ns->ms && >> +if (ns->ms && >> (!ns->pi_type || ns->ms != sizeof(struct t10_pi_tuple)) && >> !blk_integrity_rq(req) && !blk_rq_is_passthrough(req)) >> return BLK_STS_NOTSUPP; > >

Re: [PATCH v5 2/6] perf record: Get the first sample time and last sample time

2017-11-03 Thread Jin, Yao
On 10/24/2017 3:16 PM, Jiri Olsa wrote: On Tue, Oct 24, 2017 at 10:03:05AM +0800, Jin, Yao wrote: SNIP hum, could you still unset the sample if there's no time given? and keep the speed in this case.. jirka Hi Jiri, I check this question again. The '--time' option is for perf report

Re: general protection fault in lo_ioctl

2017-11-03 Thread Dmitry Vyukov
On Fri, Nov 3, 2017 at 4:01 PM, syzbot wrote: > Hello, > > syzkaller hit the following crash on > c52f56a69d104d5294af3d652776d94b1ef6a175 > git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/master > compiler: gcc (GCC) 7.1.1 20170620 > .config is attached > Raw console output is

T20 Cpuidle Freeze

2017-11-03 Thread Marcel Ziswiler
Hi Rafael, dear community One of our customers reported seeing freezes when running the LTS Linux kernel 4.9.x on our Toradex Colibri T20 modules [1]. I was able to reproduce a complete SoC lock-up after a few minutes also running the latest 4.14-rc7 while LTS 4.4.x seemed to run stable. Having

Re: [PATCH v3 2/3] usb: phy: remove phy-msm-usb.c

2017-11-03 Thread Alex Elder
On 11/02/2017 07:02 PM, Jack Pham wrote: > Hi Alex, > > On Tue, Oct 31, 2017 at 08:11:30AM -0500, Alex Elder wrote: >> No Qualcomm SoC requires the "phy-msm-usb.c" USB phy driver support >> any more, so remove the code. >> >> Suggested-by: Stephen Boyd >> Signed-off-by: Alex Elder >> Acked-by:

Re: [PATCH] selftests: ftrace: add more config fragments

2017-11-03 Thread Steven Rostedt
On Fri, 3 Nov 2017 15:23:56 +0800 lyang0 wrote: > >> diff --git a/tools/testing/selftests/ftrace/config > >> b/tools/testing/selftests/ftrace/config > >> index 8a1c9f9..b01924c 100644 > >> --- a/tools/testing/selftests/ftrace/config > >> +++ b/tools/testing/selftests/ftrace/config > >> @@ -1,2

Re: [f2fs-dev] [PATCH RESEND] f2fs: modify the procedure of scan free nid

2017-11-03 Thread Chao Yu
On 2017/11/3 18:29, Fan Li wrote: > > >> -Original Message- >> From: Chao Yu [mailto:yuch...@huawei.com] >> Sent: Friday, November 03, 2017 4:54 PM >> To: Fan Li; 'Chao Yu'; 'Jaegeuk Kim' >> Cc: linux-kernel@vger.kernel.org; linux-f2fs-de...@lists.sourceforge.net >> Subject: Re:

Re: [PATCH] soc: qcom: remove unused label

2017-11-03 Thread Alex Elder
On 10/18/2017 03:30 AM, Arnd Bergmann wrote: > The newly added driver comes with a harmless warning: > > drivers/soc/qcom/rmtfs_mem.c: In function 'qcom_rmtfs_mem_probe': > drivers/soc/qcom/rmtfs_mem.c:211:1: error: label 'remove_cdev' defined but > not used [-Werror=unused-label] > > This

[PATCH] staging: fbtft: remove redundant initialization of buf

2017-11-03 Thread Colin King
From: Colin Ian King The pointer buf is being set on each iteration of a for-loop and so the initialization of buf at declaration time is redundant and can be removed. Cleans up clang warning: drivers/staging/fbtft/fb_uc1701.c:130:6: warning: Value stored to 'buf' during its initialization is

Re: Manual unbind of ATA devices causes use-after-free

2017-11-03 Thread Tejun Heo
Hello, On Wed, Nov 01, 2017 at 04:24:47PM -0700, Taras Kondratiuk wrote: > Manual unbind/remove unconditionally invokes devres_release_all which > calls ata_host_release() and frees ata_host/ata_port memory while it is > still being referenced (e.g as a parent of SCSI host). > > Is there a

[PATCH V13 00/10] mmc: Add Command Queue support

2017-11-03 Thread Adrian Hunter
Hi Here is V13 of the hardware command queue patches without the software command queue patches, now using blk-mq and now with blk-mq support for non-CQE I/O. HW CMDQ offers 25% - 50% better random multi-threaded I/O. I see a slight 2% drop in sequential read speed but no change to sequential

[PATCH V13 01/10] mmc: core: Add parameter use_blk_mq

2017-11-03 Thread Adrian Hunter
Until mmc has blk-mq support fully implemented and tested, add a parameter use_blk_mq, default to false unless config option MMC_MQ_DEFAULT is selected. Signed-off-by: Adrian Hunter --- drivers/mmc/Kconfig | 11 +++ drivers/mmc/core/core.c | 7 +++ drivers/mmc/core/core.h |

[PATCH V13 02/10] mmc: block: Add error-handling comments

2017-11-03 Thread Adrian Hunter
Add error-handling comments to explain what would also be done for blk-mq if it used the legacy error-handling. Signed-off-by: Adrian Hunter --- drivers/mmc/core/block.c | 36 +++- 1 file changed, 35 insertions(+), 1 deletion(-) diff --git

[PATCH V13 03/10] mmc: block: Add blk-mq support

2017-11-03 Thread Adrian Hunter
Define and use a blk-mq queue. Discards and flushes are processed synchronously, but reads and writes asynchronously. In order to support slow DMA unmapping, DMA unmapping is not done until after the next request is started. That means the request is not completed until then. If there is no next

[PATCH V13 08/10] mmc: block: blk-mq: Separate card polling from recovery

2017-11-03 Thread Adrian Hunter
Recovery is simpler to understand if it is only used for errors. Create a separate function for card polling. Signed-off-by: Adrian Hunter --- drivers/mmc/core/block.c | 27 ++- 1 file changed, 26 insertions(+), 1 deletion(-) diff --git a/drivers/mmc/core/block.c

[PATCH V13 10/10] mmc: block: blk-mq: Stop using legacy recovery

2017-11-03 Thread Adrian Hunter
There are only a few things the recovery needs to do. Primarily, it just needs to: Determine the number of bytes transferred Get the card back to transfer state Determine whether to retry There are also a couple of additional features: Reset the card before the

Re: [PATCH v4 2/3] KVM: add converters between pfn_t and kvm_pfn_t

2017-11-03 Thread Dan Williams
On Thu, Nov 2, 2017 at 10:53 PM, Haozhong Zhang wrote: > Signed-off-by: Haozhong Zhang Can you also add some text to the changelog saying why we need these converters? > --- > include/linux/kvm_host.h | 4 > 1 file changed, 4 insertions(+)

[PATCH V13 09/10] mmc: block: blk-mq: Stop using card_busy_detect()

2017-11-03 Thread Adrian Hunter
card_busy_detect() doesn't set a correct timeout, and it doesn't take care of error status bits. Stop using it for blk-mq. Signed-off-by: Adrian Hunter --- drivers/mmc/core/block.c | 117 +++ 1 file changed, 109 insertions(+), 8 deletions(-) diff

[PATCH V13 06/10] mmc: sdhci-pci: Add CQHCI support for Intel GLK

2017-11-03 Thread Adrian Hunter
Add CQHCI initialization and implement CQHCI operations for Intel GLK. Signed-off-by: Adrian Hunter --- drivers/mmc/host/Kconfig | 1 + drivers/mmc/host/sdhci-pci-core.c | 155 +- 2 files changed, 155 insertions(+), 1 deletion(-) diff --git

[PATCH V13 07/10] mmc: block: blk-mq: Add support for direct completion

2017-11-03 Thread Adrian Hunter
For blk-mq, add support for completing requests directly in the ->done callback. That means that error handling and urgent background operations must be handled by recovery_work in that case. Signed-off-by: Adrian Hunter --- drivers/mmc/core/block.c | 100

[PATCH V13 04/10] mmc: block: Add CQE support

2017-11-03 Thread Adrian Hunter
Add CQE support to the block driver, including: - optionally using DCMD for flush requests - "manually" issuing discard requests - issuing read / write requests to the CQE - supporting block-layer timeouts - handling recovery - supporting re-tuning CQE offers 25% - 50%

[PATCH V13 05/10] mmc: cqhci: support for command queue enabled host

2017-11-03 Thread Adrian Hunter
From: Venkat Gopalakrishnan This patch adds CMDQ support for command-queue compatible hosts. Command queue is added in eMMC-5.1 specification. This enables the controller to process upto 32 requests at a time. Adrian Hunter contributed renaming to cqhci, recovery, suspend and resume,

Re: [PATCH v2 0/3] Sony-laptop: Adjustments for sony_nc_setup_rfkill()

2017-11-03 Thread SF Markus Elfring
> I have applied first two, Thanks for another change acceptance. > the last one is subject to discuss a necessity of it. I can offer another bit of information for this software development discussion. The following build settings were active in my “Makefile” for this Linux test case. …

Re: watchdog: advantechwdt: mark expected switch fall-through

2017-11-03 Thread Guenter Roeck
On Thu, Nov 02, 2017 at 02:21:36PM -0500, Gustavo A. R. Silva wrote: > In preparation to enabling -Wimplicit-fallthrough, mark switch cases > where we are expecting to fall through. > > Notice that in this particular case I replaced "Fall" with a proper > "fall through" comment, which is what GCC

Re: [RFC v4 17/17] [media] v4l: Document explicit synchronization behaviour

2017-11-03 Thread Gustavo Padovan
Hi Hans, 2017-11-03 Hans Verkuil : > On 10/20/2017 11:50 PM, Gustavo Padovan wrote: > > From: Gustavo Padovan > > > > Add section to VIDIOC_QBUF about it > > > > v3: > > - make the out_fence refer to the current buffer (Hans) > > - Note what happens when the IN_FENCE is not set (Hans)

Re: watchdog: alim1535_wdt: mark expected switch fall-through

2017-11-03 Thread Guenter Roeck
On Thu, Nov 02, 2017 at 02:25:09PM -0500, Gustavo A. R. Silva wrote: > In preparation to enabling -Wimplicit-fallthrough, mark switch cases > where we are expecting to fall through. > > Notice that in this particular case I replaced "Fall" with a proper > "fall through" comment, which is what GCC

[PATCH] Add support for ORISE OTM3225A LCD SoC

2017-11-03 Thread Felix Brack
This patch adds a LCD driver supporting the OTM3225A LCD SoC from ORISE Technology. This device can drive TFT LC panels having a resolution of 240x320 pixels. After initializing the OTM3225A using it's SPI interface it switches to use 16-bib RGB as external display interface. Signed-off-by: Felix

Re: watchdog: f71808e_wdt: mark expected switch fall-throughs

2017-11-03 Thread Guenter Roeck
On Thu, Nov 02, 2017 at 02:28:17PM -0500, Gustavo A. R. Silva wrote: > In preparation to enabling -Wimplicit-fallthrough, mark switch cases > where we are expecting to fall through. > > Notice that in this particular case I replaced "Fall" with a proper > "fall through" comment, which is what GCC

Re: [PATCH v8 1/6] lib/dlock-list: Distributed and lock-protected lists

2017-11-03 Thread Davidlohr Bueso
On Thu, 02 Nov 2017, Waiman Long wrote: Instead of the current O(N) implementation; at the cost of adding an atomic counter. We also need to add a heads pointer to the node structure such that we can unaccount a thread doing list_del(). The counter will then become the single contention

[PATCH] spi: s3c64xx: remove redundant pointer sci

2017-11-03 Thread Colin King
From: Colin Ian King The pointer sci is assigned but never read, hence it is redundant and can be removed. Cleans up clang warning: drivers/spi/spi-s3c64xx.c:791:2: warning: Value stored to 'sci' is never read Signed-off-by: Colin Ian King --- drivers/spi/spi-s3c64xx.c | 3 --- 1 file

[PATCH v3] cpufreq: schedutil: Examine the correct CPU when we update util

2017-11-03 Thread Chris Redpath
After 674e75411fc2 ("sched: cpufreq: Allow remote cpufreq callbacks") We stopped always reading utilization for the cpu we are running the governor on, and instead read it for the cpu which we've been told has updated utilization. This is stored in sugov_cpu->cpu. The value is set in

Re: [PATCH 00/23] KAISER: unmap most of the kernel from userspace page tables

2017-11-03 Thread Will Deacon
On Thu, Nov 02, 2017 at 12:38:05PM -0700, Dave Hansen wrote: > On 11/02/2017 12:01 PM, Will Deacon wrote: > > On Tue, Oct 31, 2017 at 03:31:46PM -0700, Dave Hansen wrote: > >> KAISER makes it harder to defeat KASLR, but makes syscalls and > >> interrupts slower. These patches are based on work

Re: [PATCH 1/3] printk: Introduce per-console loglevel setting

2017-11-03 Thread Steven Rostedt
On Fri, 3 Nov 2017 13:00:05 +0100 Petr Mladek wrote: > On Thu 2017-09-28 17:43:55, Calvin Owens wrote: > > This patch introduces a new per-console loglevel setting, and changes > > console_unlock() to use max(global_level, per_console_level) when > > deciding whether or not to emit a given log

Re: [PATCH v2] arm64: support __int128 on gcc 5+

2017-11-03 Thread Will Deacon
Hi Jason, [+Ard] On Thu, Nov 02, 2017 at 06:43:22PM +0100, Jason A. Donenfeld wrote: > Versions of gcc prior to gcc 5 emitted a __multi3 function call when > dealing with TI types, resulting in failures when trying to link to > libgcc, and more generally, bad performance. However, since gcc 5, >

Re: [PATCH 1/2] x86/crypto/sha256-mb: fix panic due to unaligned access

2017-11-03 Thread Herbert Xu
On Mon, Oct 16, 2017 at 06:51:30PM +0300, Andrey Ryabinin wrote: > struct sha256_ctx_mgr allocated in sha256_mb_mod_init() via kzalloc() > and later passed in sha256_mb_flusher_mgr_flush_avx2() function where > instructions vmovdqa used to access the struct. vmovdqa requires > 16-bytes aligned

Re: [PATCH] crypto: ccm - preserve the IV buffer

2017-11-03 Thread Herbert Xu
On Tue, Oct 31, 2017 at 03:42:35PM +0100, Romain Izard wrote: > The IV buffer used during CCM operations is used twice, during both the > hashing step and the ciphering step. > > When using a hardware accelerator that updates the contents of the IV > buffer at the end of ciphering operations, the

[PATCH] orinoco_usb: remove redundant pointer dev

2017-11-03 Thread Colin King
From: Colin Ian King The pointer dev is assigned but never read, hence it is redundant and can be removed. Cleans up clang warning: drivers/net/wireless/intersil/orinoco/orinoco_usb.c:1468:2: warning: Value stored to 'dev' is never read Signed-off-by: Colin Ian King ---

[PATCH] mm,page_alloc: Update comment for last second allocation attempt.

2017-11-03 Thread Tetsuo Handa
__alloc_pages_may_oom() is doing last second allocation attempt using ALLOC_WMARK_HIGH before calling out_of_memory(). This had two reasons. The first reason is explained in the comment that it aims to catch potential parallel OOM killing. But there is no longer parallel OOM killing (in the sense

Re: [PATCH v2 1/1] mm: buddy page accessed before initialized

2017-11-03 Thread Pavel Tatashin
Hi Michal, There is a small regression, on the largest x86 machine I have access to: Before: node 1 initialised, 32471632 pages in 901ms After: node 1 initialised, 32471632 pages in 1128ms One node contains 128G of memory (overal 1T in 8 nodes). This regression is going to be solved by this

[PATCH v4 00/17] dwc MSI fixes, ARTPEC-6 EP mode support, ARTPEC-7 SoC support

2017-11-03 Thread Niklas Cassel
This is a series that adds: - PCI endpoint mode support in the ARTPEC-6 driver. - ARTPEC-7 SoC support in the ARTPEC-6 driver (the SoCs are very similar). - Small fixes for MSI in designware-ep and designware-host, needed to get endpoint mode support working for ARTPEC-6. - Cleanups in

[PATCH v4 05/17] PCI: designware-ep: Remove static keyword from dw_pcie_ep_reset_bar()

2017-11-03 Thread Niklas Cassel
Remove the static keyword from dw_pcie_ep_reset_bar() so that pci-dra7xx.c does not need its own copy of dw_pcie_ep_reset_bar(). Signed-off-by: Niklas Cassel Acked-by: Kishon Vijay Abraham I --- drivers/pci/dwc/pci-dra7xx.c | 9 - drivers/pci/dwc/pcie-designware-ep.c | 2 +-

[PATCH] lib/bug: Fix build error

2017-11-03 Thread Julien Thierry
Generic bug management code handle a table of bugs per module. When kernel is built without CONFIG_MODULES, the module_bug_list is compiled out, yet generic_bug_clear_once tries to reference it, causing an error. Introduce helper function to avoid the reference to module_bug_list when it is not

[PATCH v4 12/17] PCI: dwc: artpec6: Split artpec6_pcie_establish_link() into smaller functions

2017-11-03 Thread Niklas Cassel
Split artpec6_pcie_establish_link() into smaller functions to better match other drivers such as dra7xx and imx6. This is also done to prepare for endpoint mode support. Signed-off-by: Niklas Cassel --- drivers/pci/dwc/pcie-artpec6.c | 53 +++--- 1 file

[PATCH v4 07/17] PCI: dwc: dra7xx: Refactor Kconfig and Makefile handling for host/ep mode

2017-11-03 Thread Niklas Cassel
Refactor the Kconfig and Makefile handling for host/ep mode, since the previous handling was a bit unorthodox and would have been a bit bloated once more DWC based controllers added support for ep mode. Signed-off-by: Niklas Cassel Acked-by: Kishon Vijay Abraham I --- drivers/pci/dwc/Kconfig

[PATCH v4 09/17] PCI: dwc: dra7xx: Help compiler to remove unused code

2017-11-03 Thread Niklas Cassel
The dra7xx driver supports both host and ep mode. When enabling support for only one of the modes, help the compiler to remove code for the mode that we have not enabled in the driver. By adding if (!IS_ENABLED(CONFIG_PCI_DRA7XX_HOST)) return -ENODEV; anything after that statement will get

[PATCH v4 14/17] PCI: dwc: artpec6: Add support for endpoint mode

2017-11-03 Thread Niklas Cassel
The PCIe controller integrated in ARTPEC-6 SoCs is capable of operating in endpoint mode. Add endpoint mode support to the artpec6 driver. Signed-off-by: Niklas Cassel --- drivers/pci/dwc/Kconfig| 23 +-- drivers/pci/dwc/pcie-artpec6.c | 152

[PATCH v4 11/17] PCI: dwc: artpec6: Use BIT and GENMASK macros

2017-11-03 Thread Niklas Cassel
Use BIT and GENMASK macros to improve readability. Signed-off-by: Niklas Cassel --- drivers/pci/dwc/pcie-artpec6.c | 34 +- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/drivers/pci/dwc/pcie-artpec6.c b/drivers/pci/dwc/pcie-artpec6.c index

[PATCH v4 16/17] bindings: PCI: artpec: Add support for the ARTPEC-7 SoC

2017-11-03 Thread Niklas Cassel
Add support for the ARTPEC-7 SoC in the artpec6 driver. The ARTPEC-6 SoC and the ARTPEC-7 SoC are very similar. Unfortunately, some fields in the PCIECFG and PCIESTAT register have changed. Signed-off-by: Niklas Cassel Acked-by: Rob Herring ---

[PATCH v4 15/17] PCI: dwc: Make cpu_addr_fixup take struct dw_pcie as argument

2017-11-03 Thread Niklas Cassel
There is no need to hard code the cpu to bus address fixup mask. The PCIe controller has a global address on the AXI bus, however, from the perspective of the PCIe controller, its base starts at 0x0, so the local address is 0x0. To get the bus address, simply subtract the global address from the

[PATCH v4 17/17] PCI: dwc: artpec6: Add support for the ARTPEC-7 SoC

2017-11-03 Thread Niklas Cassel
Add support for the ARTPEC-7 SoC in the artpec6 driver. The ARTPEC-6 SoC and the ARTPEC-7 SoC are very similar. Unfortunately, some fields in the PCIECFG and PCIESTAT register have changed. Signed-off-by: Niklas Cassel --- drivers/pci/dwc/pcie-artpec6.c | 162

[PATCH v4 13/17] bindings: PCI: artpec: Add support for endpoint mode

2017-11-03 Thread Niklas Cassel
The PCIe controller integrated in ARTPEC-6 SoCs is capable of operating in endpoint mode. Add endpoint mode support to the artpec6 driver. Signed-off-by: Niklas Cassel Acked-by: Rob Herring --- Documentation/devicetree/bindings/pci/axis,artpec6-pcie.txt | 3 ++- 1 file changed, 2

[PATCH v4 10/17] PCI: dwc: artpec6: Remove unused defines

2017-11-03 Thread Niklas Cassel
Commit b015b37e6693 ("PCI: artpec6: Stop enabling writes to DBI read-only registers") removed the only write using these defines, but it did not remove the defines. Remove the defines since they are now unused. Signed-off-by: Niklas Cassel --- drivers/pci/dwc/pcie-artpec6.c | 3 --- 1 file

Re: [v5,2/2] watchdog: Add Spreadtrum watchdog driver

2017-11-03 Thread Guenter Roeck
On Fri, Nov 03, 2017 at 07:18:28PM +0800, Eric Long wrote: > This patch adds the watchdog driver for Spreadtrum SC9860 platform. > > Signed-off-by: Eric Long > --- > Changes since v4: > - Remove sprd_wdt_remove(). > - Add devm_add_action() for sprd_wdt_disable(). > > Changes since v3: > -

[PATCH v4 08/17] PCI: dwc: dra7xx: Assign pp->ops in dra7xx_add_pcie_port() rather than in probe

2017-11-03 Thread Niklas Cassel
Assign pp->ops in *_add_pcie_port() to match how it is done in other drivers like exynos, imx7, keystone, armada8k, artpec6, designware-plat, hisi, kirin and spear13xx. This is probably a remainder since when dev and ops were assigned as members to pp. Since we now assign them as members to

[PATCH v4 06/17] PCI: designware-ep: Add generic function for raising MSI irq

2017-11-03 Thread Niklas Cassel
Add a generic function for raising MSI irqs that can be used by all DWC based controllers. Note that certain controllers, like DRA7xx, have a special convenience register for raising MSI irqs that doesn't require you to explicitly map the MSI address. Therefore, it is likely that certain drivers

[PATCH v4 03/17] PCI: designware-ep: Read-only registers need DBI_RO_WR_EN to be writable

2017-11-03 Thread Niklas Cassel
Certain registers that pcie-designware-ep tries to write to are read-only registers. However, these registers can become read/write if we first enable the DBI_RO_WR_EN bit. Set/unset the DBI_RO_WR_EN bit before/after writing these registers. Signed-off-by: Niklas Cassel ---

[PATCH v4 04/17] PCI: designware-ep: Pre-allocate memory for MSI in dw_pcie_ep_init

2017-11-03 Thread Niklas Cassel
Certain SoCs need to map the MSI address in raise_irq. To map an address, you first need to call pci_epc_mem_alloc_addr(), however, pci_epc_mem_alloc_addr() calls ioremap() (which can sleep). Since raise_irq is only called from atomic context, we can't call pci_epc_mem_alloc_addr() from

[PATCH v4 01/17] PCI: dwc: Use the DMA-API to get the MSI address

2017-11-03 Thread Niklas Cassel
Use the DMA-API to get the MSI address. This address will be written to our PCI config space and to the register which determines which AXI address the DWC IP will spoof for incoming MSI irqs. Since it is a PCIe endpoint device, rather than the CPU, that is supposed to write to the MSI address,

[PATCH v4 02/17] PCI: designware-ep: dw_pcie_ep_set_msi() should only set MMC bits

2017-11-03 Thread Niklas Cassel
Previously, dw_pcie_ep_set_msi() wrote all bits in the Message Control register, thus overwriting the PCI_MSI_FLAGS_64BIT bit. By clearing the PCI_MSI_FLAGS_64BIT bit, we break MSI on systems where the RC has set a 64 bit MSI address. Fix dw_pcie_ep_set_msi() so that it only sets MMC bits.

[PATCH 2/4] x86/PCI: Enable a 64bit BAR on AMD Family 15h (Models 10h-1fh) Processors

2017-11-03 Thread Christian König
Just add the extra PCI-ID to the existing fixup. Signed-off-by: Christian König --- arch/x86/pci/fixup.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/arch/x86/pci/fixup.c b/arch/x86/pci/fixup.c index 1d2238d..aa8b20e 100644 --- a/arch/x86/pci/fixup.c +++

[PATCH 1/4] x86/PCI: Enable a 64bit BAR on AMD Family 15h (Models 00h-0fh) Processors

2017-11-03 Thread Christian König
Just add the extra PCI-ID to the existing fixup. Signed-off-by: Christian König --- arch/x86/pci/fixup.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/arch/x86/pci/fixup.c b/arch/x86/pci/fixup.c index 7b6bd76..1d2238d 100644 --- a/arch/x86/pci/fixup.c +++

[PATCH 4/4] x86/PCI: Enable a 64bit BAR on AMD Family 15h (Models 70h-7fh) Processors

2017-11-03 Thread Christian König
Just add the extra PCI-ID to the existing fixup. Signed-off-by: Christian König --- arch/x86/pci/fixup.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/arch/x86/pci/fixup.c b/arch/x86/pci/fixup.c index 3eebb0e..894d73d 100644 --- a/arch/x86/pci/fixup.c +++

[PATCH 3/4] x86/PCI: Enable a 64bit BAR on AMD Family 15h (Models 60h-6fh) Processors

2017-11-03 Thread Christian König
Just add the extra PCI-ID to the existing fixup. Signed-off-by: Christian König --- arch/x86/pci/fixup.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/arch/x86/pci/fixup.c b/arch/x86/pci/fixup.c index aa8b20e..3eebb0e 100644 --- a/arch/x86/pci/fixup.c +++

Re: [PATCH v2 1/1] mm: buddy page accessed before initialized

2017-11-03 Thread Michal Hocko
On Fri 03-11-17 09:47:30, Pavel Tatashin wrote: > Hi Michal, > > There is a small regression, on the largest x86 machine I have access to: > Before: > node 1 initialised, 32471632 pages in 901ms > After: > node 1 initialised, 32471632 pages in 1128ms > > One node contains 128G of memory (overal

Re: [PATCH net-next 0/5] net: dsa: lan9303: Linting

2017-11-03 Thread Vivien Didelot
Egil Hjelmeland writes: > This series is non-functional. > - Correct some errors in comments and documentation. > Remove scripts/checkpatch.pl WARNINGs and most CHECKs: > - Replace msleep(1) with usleep_range() > - Remove unnecessary parentheses > - Adjust indenting > > Egil Hjelmeland (5):

[GIT PULL 00/19] perf/core improvements and fixes

2017-11-03 Thread Arnaldo Carvalho de Melo
-4.15-20171103 for you to fetch changes up to 7285cf3325b4a1dfb336d31eebc27dfbc30fb9aa: perf srcline: Show correct function name for srcline of callchains (2017-11-01 11:44:38 -0300) perf/core improvements and fixes: - Beautify

[PATCH 02/19] perf script: Use pr_debug where appropriate

2017-11-03 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo We have facilities for reporting unexpected, unlikely errors, use them. Cc: Adrian Hunter Cc: Andi Kleen Cc: David Ahern Cc: Jiri Olsa Cc: Michael Ellerman Cc: Namhyung Kim Cc: Wang Nan Cc: yuzhoujian Link:

[PATCH 03/19] perf script: Use event_format__fprintf()

2017-11-03 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo Another case where we a1a587073ccd ("perf script: Use fprintf like printing uniformly") forgot to redirect output to the FILE descriptor, fix this too. Cc: Adrian Hunter Cc: David Ahern Cc: Jiri Olsa Cc: Namhyung Kim Cc: Wang Nan Cc: yuzhoujian Link:

[PATCH 01/19] perf script: Add a few missing conversions to fprintf style

2017-11-03 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo In a1a587073ccd ("perf script: Use fprintf like printing uniformly") there were a few cases that were missed, fix it. Reported-by: yuzhoujian Cc: Adrian Hunter Cc: David Ahern Cc: Jiri Olsa Cc: Namhyung Kim Cc: Wang Nan Link:

[PATCH 05/19] perf script: Allow creating per-event dump files

2017-11-03 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo Introduce a new option to dump trace output to files named by the monitored events and update perf-script documentation accordingly. Shown below is output of perf script command with the newly introduced option. $ perf record -e cycles -e cs -ag -- sleep

[PATCH 06/19] tools include uapi: Grab a copy of linux/prctl.h

2017-11-03 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo We will use it to generate tables for beautifying prctl's 'option' arg and some of the others eventually. Cc: Andy Lutomirski Cc: Adrian Hunter Cc: David Ahern Cc: Jiri Olsa Cc: Namhyung Kim Cc: Wang Nan Link:

[PATCH 08/19] perf script: Print information about per-event-dump files

2017-11-03 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo For a file generated by "perf sched record sleep 50": # perf script --per-event-dump [ perf script: Wrote 23.121 MB perf.data.sched:sched_switch.dump (206015 samples) ] [ perf script: Wrote 0.000 MB perf.data.sched:sched_stat_wait.dump (0 samples) ] [

[PATCH 10/19] perf tools: Add struct perf_data_file

2017-11-03 Thread Arnaldo Carvalho de Melo
From: Jiri Olsa Add struct perf_data_file to represent a single file within a perf_data struct. Signed-off-by: Jiri Olsa Cc: Andi Kleen Cc: Changbin Du Cc: David Ahern Cc: Jin Yao Cc: Namhyung Kim Cc: Peter Zijlstra Cc: Wang Nan Link:

[PATCH 14/19] perf callchain: Fix double mapping al->addr for children without self period

2017-11-03 Thread Arnaldo Carvalho de Melo
From: Namhyung Kim Milian Wolff found a problem he described in [1] and that for him would get fixed: "Note how most of the large offset values are now gone. Most notably, we get proper srcline resolution for the random.h and complex headers." Then Namhyung found the root cause: "I looked

[PATCH 13/19] perf stat: Make --per-thread update shadow stats to show metrics

2017-11-03 Thread Arnaldo Carvalho de Melo
From: Jiri Olsa We should support this because it would allow easily to collect metrics for different threads in applications. Original patch from posted by Jin Yao in here [1]. 1. Current output, for example: root@skl:/tmp# perf stat --per-thread -p 21623 ^C Performance counter stats for

[PATCH 16/19] perf trace beauty: Implement pid_fd beautifier

2017-11-03 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo One that given a pid and a fd, will try to get the path for that fd. Will be used in the upcoming kcmp's KCMP_FILE beautifier. Cc: Adrian Hunter Cc: Andrey Vagin Cc: Cyrill Gorcunov Cc: David Ahern Cc: Jiri Olsa Cc: Namhyung Kim Cc: Wang Nan Link:

[PATCH 17/19] perf trace beauty kcmp: Beautify arguments

2017-11-03 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo For some unknown reason there is no entry in tracefs's syscalls for kcmp, i.e. no tracefs/events/syscalls/sys_{enter,exit}_kcmp, so we need to provide a data dictionary for the fields. To beautify the 'type' argument we automatically generate a strarray from

[PATCH 15/19] tools include uapi: Grab a copy of linux/kcmp.h

2017-11-03 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo We will use it to generate tables for beautifying kcmp's 'type' arg. Cc: Adrian Hunter Cc: Andrey Vagin Cc: Cyrill Gorcunov Cc: David Ahern Cc: Jiri Olsa Cc: Namhyung Kim Cc: Wang Nan Link:

[PATCH 18/19] perf srcline: Fix memory leak in addr2inlines()

2017-11-03 Thread Arnaldo Carvalho de Melo
From: Namhyung Kim When libbfd is not used, addr2inlines() executes `addr2line -i` and process output line by line. But it resets filename to NULL in the loop so getline() allocates additional memory everytime instead of realloc. Signed-off-by: Namhyung Kim Acked-by: Jiri Olsa Cc: Jin Yao

[PATCH 19/19] perf srcline: Show correct function name for srcline of callchains

2017-11-03 Thread Arnaldo Carvalho de Melo
From: Namhyung Kim When libbfd is not used, it doesn't show proper function name and reuse the original symbol of the sample. That's because it passes the original sym to inline_list__append(). As `addr2line -f` returns function names as well, use that to create an inline_sym and pass it to

Re: [PATCH] mm,page_alloc: Update comment for last second allocation attempt.

2017-11-03 Thread Michal Hocko
On Fri 03-11-17 22:46:29, Tetsuo Handa wrote: [...] > diff --git a/mm/page_alloc.c b/mm/page_alloc.c > index c274960..547e9cb 100644 > --- a/mm/page_alloc.c > +++ b/mm/page_alloc.c > @@ -3312,11 +3312,10 @@ void warn_alloc(gfp_t gfp_mask, nodemask_t *nodemask, > const char *fmt, ...) > } >

[PATCH 12/19] perf stat: Move the shadow stats scale computation in perf_stat__update_shadow_stats

2017-11-03 Thread Arnaldo Carvalho de Melo
From: Jiri Olsa Move the shadow stats scale computation to the perf_stat__update_shadow_stats() function, so it's centralized and we don't forget to do it. It also saves few lines of code. Signed-off-by: Jiri Olsa Cc: Andi Kleen Cc: Changbin Du Cc: David Ahern Cc: Jin Yao Cc: Namhyung Kim

Re: linux-next: build failure after merge of the workqueues tree

2017-11-03 Thread Tejun Heo
On Thu, Nov 02, 2017 at 02:34:40PM +1100, Stephen Rothwell wrote: > Hi Tejun, > > After merging the workqueues tree, today's linux-next build (arm > multi_v7_defconfig) failed like this: > > kernel/workqueue.c: In function 'workqueue_init_early': > kernel/workqueue.c:5561:56: error:

[PATCH 11/19] perf tools: Add perf_data_file__write function

2017-11-03 Thread Arnaldo Carvalho de Melo
From: Jiri Olsa Adding perf_data_file__write function to provide single file write operation. Signed-off-by: Jiri Olsa Cc: Andi Kleen Cc: Changbin Du Cc: David Ahern Cc: Jin Yao Cc: Namhyung Kim Cc: Peter Zijlstra Cc: Wang Nan Link:

[PATCH] spi: sh-msiof: remove redundant pointer dev

2017-11-03 Thread Colin King
From: Colin Ian King The pointer dev is assigned but never read, hence it is redundant and can be removed. Cleans up clang warning: drivers/spi/spi-sh-msiof.c:1198:2: warning: Value stored to 'dev' is never read Signed-off-by: Colin Ian King --- drivers/spi/spi-sh-msiof.c | 2 -- 1 file

[PATCH 09/19] perf tools: Rename struct perf_data_file to perf_data

2017-11-03 Thread Arnaldo Carvalho de Melo
From: Jiri Olsa Rename struct perf_data_file to perf_data, because we will add the possibility to have multiple files under perf.data, so the 'perf_data' name fits better. Signed-off-by: Jiri Olsa Cc: Andi Kleen Cc: Changbin Du Cc: David Ahern Cc: Jin Yao Cc: Namhyung Kim Cc: Peter

[PATCH 1/4] x86/PCI: Enable a 64bit BAR on AMD Family 15h (Models 00h-0fh) Processors

2017-11-03 Thread Christian König
From: Christian König Just add the extra PCI-ID to the existing fixup. Signed-off-by: Christian König --- arch/x86/pci/fixup.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/arch/x86/pci/fixup.c b/arch/x86/pci/fixup.c index 7b6bd76..1d2238d 100644 ---

[PATCH 07/19] perf trace beauty prctl: Generate 'option' string table from kernel headers

2017-11-03 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo This is one more case where the way that syscall parameter values are defined in kernel headers are easy to parse using a shell script that will then generate the string table that gets used by the prctl 'option' argument beautifier. This way as soon as the header

[PATCH 04/19] perf evsel: Restore evsel->priv as a tool private area

2017-11-03 Thread Arnaldo Carvalho de Melo
From: Arnaldo Carvalho de Melo When we started using it for stats and did it not just in builtin-stat.c, but also for builtin-script.c, then it stopped being a tool private area, so introduce a new pointer for these stats and leave ->priv to its original purpose. Cc: Adrian Hunter Cc: David

<    7   8   9   10   11   12   13   14   15   16   >