Re: [PATCH v4 07/11] lib/vsprintf: Remove support for %pF and %pf in favour of %pS and %ps

2019-09-05 Thread Sakari Ailus
On Tue, Sep 03, 2019 at 04:04:20PM +0200, Petr Mladek wrote: > On Mon 2019-09-02 19:01:39, Andy Shevchenko wrote: > > On Mon, Sep 02, 2019 at 04:39:35PM +0200, Petr Mladek wrote: > > > On Mon 2019-09-02 11:32:36, Sakari Ailus wrote: > > > > %pS and %ps are now the preferred conversion specifiers to

RE: [PATCH 1/2] nvmem: imx: scu: support hole region check

2019-09-05 Thread Peng Fan
> Subject: [PATCH 1/2] nvmem: imx: scu: support hole region check Ping.. Thanks, Peng. > > From: Peng Fan > > Introduce HOLE/ECC_REGION flag and in_hole helper to ease the check of > hole region. The ECC_REGION is also introduced here which is preparing for > programming support. ECC_REGION c

RE: [PATCH 2/2] nvmem: imx: scu: support write

2019-09-05 Thread Peng Fan
> Subject: [PATCH 2/2] nvmem: imx: scu: support write Ping.. Thanks, Peng. > > From: Peng Fan > > The fuse programming from non-secure world is blocked, so we could only use > Arm Trusted Firmware SIP call to let ATF program fuse. > > Because there is ECC region that could only be programmed

[PATCH] arch/riscv: disable too many harts before pick main boot hart

2019-09-05 Thread Xiang Wang
>From 12300865d1103618c9d4c375f7d7fbe601b6618c Mon Sep 17 00:00:00 2001 From: Xiang Wang Date: Fri, 6 Sep 2019 11:56:09 +0800 Subject: [PATCH] arch/riscv: disable too many harts before pick main boot hart These harts with id greater than or equal to CONFIG_NR_CPUS need to be disabled. But pick th

Re: [PATCH RFC] driver core: ensure a device has valid node id in device_add()

2019-09-05 Thread Greg KH
On Fri, Sep 06, 2019 at 02:41:36PM +0800, Yunsheng Lin wrote: > On 2019/9/5 15:33, Greg KH wrote: > > On Thu, Sep 05, 2019 at 02:48:24PM +0800, Yunsheng Lin wrote: > >> On 2019/9/5 13:57, Greg KH wrote: > >>> On Thu, Sep 05, 2019 at 09:33:50AM +0800, Yunsheng Lin wrote: > Currently a device do

Re: [alsa-devel] [PATCH] ASoC: fsl_sai: Fix noise when using EDMA

2019-09-05 Thread Daniel Baluta
On Fri, Sep 6, 2019 at 4:25 AM Nicolin Chen wrote: > > On Fri, Aug 30, 2019 at 11:09:00PM +0300, Daniel Baluta wrote: > > From: Mihai Serban > > > > EDMA requires the period size to be multiple of maxburst. Otherwise the > > remaining bytes are not transferred and thus noise is produced. > > > >

Re: [PATCH RFC] driver core: ensure a device has valid node id in device_add()

2019-09-05 Thread Yunsheng Lin
On 2019/9/5 15:33, Greg KH wrote: > On Thu, Sep 05, 2019 at 02:48:24PM +0800, Yunsheng Lin wrote: >> On 2019/9/5 13:57, Greg KH wrote: >>> On Thu, Sep 05, 2019 at 09:33:50AM +0800, Yunsheng Lin wrote: Currently a device does not belong to any of the numa nodes (dev->numa_node is NUMA_NO_N

Re: [PATCH v2 0/7] mm: Page fault enhancements

2019-09-05 Thread Peter Xu
On Thu, Sep 05, 2019 at 02:06:04PM -0700, Linus Torvalds wrote: > On Thu, Sep 5, 2019 at 3:15 AM Peter Xu wrote: > > > > This series is split out of userfaultfd-wp series to only cover the > > general page fault changes, since it seems to make sense itself. > > The series continues to look sane t

[PATCH v3 5/5] gpio: Add in ast2600 details to Aspeed driver

2019-09-05 Thread Rashmica Gupta
The ast2600 is a new generation of SoC from ASPEED. Similarly to the ast2400 and ast2500, it has a GPIO controller for it's 3.3V GPIO pins. Additionally, it has a GPIO controller for 1.8V GPIO pins. As the register names for both controllers are the same and the 36 1.8V GPIOs and the first 36 of t

Re: [PATCH v4 3/3] iommu: arm-smmu-impl: Add sdm845 implementation hook

2019-09-05 Thread Vivek Gautam
On Fri, Aug 23, 2019 at 12:03 PM Vivek Gautam wrote: > > Add reset hook for sdm845 based platforms to turn off > the wait-for-safe sequence. > > Understanding how wait-for-safe logic affects USB and UFS performance > on MTP845 and DB845 boards: > > Qcom's implementation of arm,mmu-500 adds a WAIT-

Re: dma_mmap_fault discussion

2019-09-05 Thread Christoph Hellwig
On Thu, Sep 05, 2019 at 07:05:43PM +0200, Thomas Hellström (VMware) wrote: > I took a quick look at the interfaces and have two questions: > > 1) dma_mmap_prepare(), would it be possible to drop the references to the > actual coherent region? The thing is that TTM doesn't know at mmap time what >

Re: [PATCH 1/1] mm/pgtable/debug: Add test validating architecture page table helpers

2019-09-05 Thread Anshuman Khandual
On 09/05/2019 10:36 PM, Gerald Schaefer wrote: > On Thu, 5 Sep 2019 14:48:14 +0530 > Anshuman Khandual wrote: > >>> [...] + +#if !defined(__PAGETABLE_PMD_FOLDED) && !defined(__ARCH_HAS_4LEVEL_HACK) +static void pud_clear_tests(pud_t *pudp) +{ + memset(pudp, RANDOM_NZVA

[PATCH v3 4/5] gpios: Use ngpio property from device tree if available

2019-09-05 Thread Rashmica Gupta
Use the ngpio property from the device tree if it exists. If it doesn't then fallback to the hardcoded value in the config. This is in preparation for adding ast2600 support. The ast2600 SoC has two GPIO controllers and so requires two instances of the GPIO driver. We use the ngpio property to dif

[PATCH v3 2/5] gpio/aspeed: Fix incorrect number of banks

2019-09-05 Thread Rashmica Gupta
The current calculation for the number of GPIO banks is only correct if the number of GPIOs is a multiple of 32 (if there were 31 GPIOs we would currently say there are 0 banks, which is incorrect). Fixes: 361b79119a4b7 ('gpio: Add Aspeed driver') Signed-off-by: Rashmica Gupta Reviewed-by: Andre

[PATCH v3 3/5] gpio/aspeed: Setup irqchip dynamically

2019-09-05 Thread Rashmica Gupta
This is in preparation for adding ast2600 support. The ast2600 SoC requires two instances of the GPIO driver as it has two GPIO controllers. Each instance needs it's own irqchip. Signed-off-by: Rashmica Gupta --- drivers/gpio/gpio-aspeed.c | 16 +++- 1 file changed, 7 insertions(+),

[PATCH v3 0/5] Add ast2600 gpio support

2019-09-05 Thread Rashmica Gupta
v3: Different ordering of patches, using ngpio property to distinguish between the two ast2600 gpio controllers, fixed typos of 3.6V. v2: More verbose commit messages, using DIV_ROUND_UP(). Rashmica Gupta (5): dt-bindings: gpio: aspeed: Update documentation with ast2600 controllers gpio/a

[tip: perf/urgent] perf/hw_breakpoint: Fix arch_hw_breakpoint use-before-initialization

2019-09-05 Thread tip-bot2 for Mark-PK Tsai
The following commit has been merged into the perf/urgent branch of tip: Commit-ID: 310aa0a25b338b3100c94880c9a69bec8ce8c3ae Gitweb: https://git.kernel.org/tip/310aa0a25b338b3100c94880c9a69bec8ce8c3ae Author:Mark-PK Tsai AuthorDate:Fri, 06 Sep 2019 14:01:16 +08:00 Committe

[PATCH v3 1/5] dt-bindings: gpio: aspeed: Update documentation with ast2600 controllers

2019-09-05 Thread Rashmica Gupta
The ast2600 is a new generation of SoC from ASPEED. Similarly to the ast2400 and ast2500, it has a GPIO controller for it's 3.3V GPIO pins. Additionally, it has a GPIO controller for 36 1.8V GPIO pins. We use the ngpio property to differentiate between these controllers. Signed-off-by: Rashmica G

[PATCH] xfs: include QUOTA, FATAL ASSERT build options in XFS_BUILD_OPTIONS

2019-09-05 Thread yu kuai
In commit d03a2f1b9fa8 ("xfs: include WARN, REPAIR build options in XFS_BUILD_OPTIONS"), Eric pointed out that the XFS_BUILD_OPTIONS string, shown at module init time and in modinfo output, does not currently include all available build options. So, he added in CONFIG_XFS_WARN and CONFIG_XFS_REPAIR

[PATCH v9 3/5] iommu/vt-d: Don't switch off swiotlb if bounce page is used

2019-09-05 Thread Lu Baolu
The bounce page implementation depends on swiotlb. Hence, don't switch off swiotlb if the system has untrusted devices or could potentially be hot-added with any untrusted devices. Cc: Ashok Raj Cc: Jacob Pan Cc: Kevin Tian Signed-off-by: Lu Baolu Reviewed-by: Christoph Hellwig --- drivers/i

[PATCH v9 2/5] iommu/vt-d: Check whether device requires bounce buffer

2019-09-05 Thread Lu Baolu
This adds a helper to check whether a device needs to use bounce buffer. It also provides a boot time option to disable the bounce buffer. Users can use this to prevent the iommu driver from using the bounce buffer for performance gain. Cc: Ashok Raj Cc: Jacob Pan Cc: Kevin Tian Signed-off-by:

[PATCH v9 1/5] swiotlb: Split size parameter to map/unmap APIs

2019-09-05 Thread Lu Baolu
This splits the size parameter to swiotlb_tbl_map_single() and swiotlb_tbl_unmap_single() into an alloc_size and a mapping_size parameter, where the latter one is rounded up to the iommu page size. Suggested-by: Christoph Hellwig Signed-off-by: Lu Baolu Reviewed-by: Christoph Hellwig --- drive

[PATCH v9 4/5] iommu/vt-d: Add trace events for device dma map/unmap

2019-09-05 Thread Lu Baolu
This adds trace support for the Intel IOMMU driver. It also declares some events which could be used to trace the events when an IOVA is being mapped or unmapped in a domain. Cc: Ashok Raj Cc: Jacob Pan Cc: Kevin Tian Signed-off-by: Mika Westerberg Signed-off-by: Lu Baolu Reviewed-by: Steven

[PATCH v9 0/5] iommu: Bounce page for untrusted devices

2019-09-05 Thread Lu Baolu
The Thunderbolt vulnerabilities are public and have a nice name as Thunderclap [1] [3] nowadays. This patch series aims to mitigate those concerns. An external PCI device is a PCI peripheral device connected to the system through an external bus, such as Thunderbolt. What makes it different is tha

[PATCH v9 5/5] iommu/vt-d: Use bounce buffer for untrusted devices

2019-09-05 Thread Lu Baolu
The Intel VT-d hardware uses paging for DMA remapping. The minimum mapped window is a page size. The device drivers may map buffers not filling the whole IOMMU window. This allows the device to access to possibly unrelated memory and a malicious device could exploit this to perform DMA attacks. To

Re: WARNING in posix_cpu_timer_del (3)

2019-09-05 Thread Thomas Gleixner
On Thu, 5 Sep 2019, Eric Biggers wrote: > On Tue, Sep 03, 2019 at 09:38:07AM -0700, syzbot wrote: > > Rebooting in 86400 seconds.. > > FYI, this is still reproducible on latest linux-next (next-20190904). Yes because the fix did not make it into -next yet. Will be there tomorrow.

Re: [BACKPORT 4.14.y v2 5/6] ppp: mppe: Revert "ppp: mppe: Add softdep to arc4"

2019-09-05 Thread Baolin Wang
On Fri, 6 Sep 2019 at 00:16, Eric Biggers wrote: > > On Thu, Sep 05, 2019 at 11:10:45AM +0800, Baolin Wang wrote: > > From: Eric Biggers > > > > [Upstream commit 25a09ce79639a8775244808c17282c491cff89cf] > > > > Commit 0e5a610b5ca5 ("ppp: mppe: switch to RC4 library interface"), > > which was mer

[PATCH] HID: add support for 0079:1846 Mayflash/Dragonrise USB Gamecube Adapter

2019-09-05 Thread Ethan Warth
>From 32bdfb1d652cc38ab13f8616df58dee726201785 Mon Sep 17 00:00:00 2001 From: Ethan Warth Date: Wed, 4 Sep 2019 16:07:45 -0500 Subject: [PATCH] HID: add support for 0079:1846 Mayflash/Dragonrise USB Gamecube Adapter Mayflash/Dragonrise seems to have yet another device ID for one of their Gamecub

[PATCH] perf/hw_breakpoint: Fix arch_hw_breakpoint use-before-initialization

2019-09-05 Thread Mark-PK Tsai
If we disable the compiler's auto-initialization feature (-fplugin-arg-structleak_plugin-byref or -ftrivial-auto-var-init=pattern) is disabled, arch_hw_breakpoint may be used before initialization after the change 9a4903dde2c86. (perf/hw_breakpoint: Split attribute parse and commit) On our arm pla

Re: [PATCH v2 4/4] arm64: dts: add support for A1 based Amlogic AD401

2019-09-05 Thread Jianxin Pan
Hi Martin, Thanks for the review, we really appreciate your time. Please see my comments below. On 2019/9/6 4:15, Martin Blumenstingl wrote: > Hi Jianxin, > > (it's great to see that you and your team are upstreaming this early) > > On Thu, Sep 5, 2019 at 9:08 AM Jianxin Pan wrote: > [...] >>

[tip: x86/cpu] x86/cpu: Add Tiger Lake to Intel family

2019-09-05 Thread tip-bot2 for Gayatri Kammela
The following commit has been merged into the x86/cpu branch of tip: Commit-ID: 6e1c32c5dbb4b90eea8f964c2869d0bde050dbe0 Gitweb: https://git.kernel.org/tip/6e1c32c5dbb4b90eea8f964c2869d0bde050dbe0 Author:Gayatri Kammela AuthorDate:Thu, 05 Sep 2019 12:30:17 -07:00 Committer

[tip: x86/cpu] x86/cpu: Add Elkhart Lake to Intel family

2019-09-05 Thread tip-bot2 for Gayatri Kammela
The following commit has been merged into the x86/cpu branch of tip: Commit-ID: 0f65605a8d744b3a205d0a2cd8f20707e31fc023 Gitweb: https://git.kernel.org/tip/0f65605a8d744b3a205d0a2cd8f20707e31fc023 Author:Gayatri Kammela AuthorDate:Thu, 05 Sep 2019 12:30:18 -07:00 Committer

[tip: x86/cpu] x86/cpu: Add new Airmont variant to Intel family

2019-09-05 Thread tip-bot2 for Rahul Tanwar
The following commit has been merged into the x86/cpu branch of tip: Commit-ID: 855fa1f362cab2dc7574acb853b0963dd01d6b8d Gitweb: https://git.kernel.org/tip/855fa1f362cab2dc7574acb853b0963dd01d6b8d Author:Rahul Tanwar AuthorDate:Thu, 05 Sep 2019 12:30:19 -07:00 Committer:

[tip: x86/platform] x86/platform/uv: Fix kmalloc() NULL check routine

2019-09-05 Thread tip-bot2 for Austin Kim
The following commit has been merged into the x86/platform branch of tip: Commit-ID: 864b23f0169d5bff677e8443a7a90dfd6b090afc Gitweb: https://git.kernel.org/tip/864b23f0169d5bff677e8443a7a90dfd6b090afc Author:Austin Kim AuthorDate:Fri, 06 Sep 2019 08:29:51 +09:00 Committer

[tip: x86/cpu] x86/cpu: Update init data for new Airmont CPU model

2019-09-05 Thread tip-bot2 for Rahul Tanwar
The following commit has been merged into the x86/cpu branch of tip: Commit-ID: 0cc5359d8fd45bc410906e009117e78e2b5b2322 Gitweb: https://git.kernel.org/tip/0cc5359d8fd45bc410906e009117e78e2b5b2322 Author:Rahul Tanwar AuthorDate:Thu, 05 Sep 2019 12:30:20 -07:00 Committer:

Re: [git pull] habanalabs pull request for kernel 5.4

2019-09-05 Thread Greg KH
On Fri, Sep 06, 2019 at 07:54:41AM +0300, Oded Gabbay wrote: > On Fri, Sep 6, 2019 at 7:38 AM Oded Gabbay wrote: > > > > On Thu, Sep 5, 2019 at 11:50 PM Greg KH wrote: > > > > > > On Thu, Sep 05, 2019 at 03:19:34PM +0300, Oded Gabbay wrote: > > > > Hello Greg, > > > > > > > > This is the pull req

Re: [PATCH v2 2/2] PTP: add support for one-shot output

2019-09-05 Thread Richard Cochran
On Thu, Sep 05, 2019 at 01:03:46PM +0300, Felipe Balbi wrote: > This a bit confusing, really. Specially when the comment right above > those flags states: > > /* PTP_xxx bits, for the flags field within the request structures. */ Agreed, it is confusing. Go ahead and remove this comment. > Seem

Re: [PATCH v4 3/4] dt-bindings: Add Qualcomm USB SuperSpeed PHY bindings

2019-09-05 Thread Stephen Boyd
Quoting Jack Pham (2019-09-05 10:58:02) > Hi Jorge, Bjorn, > > On Thu, Sep 05, 2019 at 09:18:57AM +0200, Jorge Ramirez wrote: > > On 9/4/19 01:34, Bjorn Andersson wrote: > > > On Tue 03 Sep 14:45 PDT 2019, Stephen Boyd wrote: > > >> that would need an of_regulator_get() sort of API that can get th

Re: [PATCH v2] drm/virtio: Use vmalloc for command buffer allocations.

2019-09-05 Thread Gerd Hoffmann
> +/* How many bytes left in this page. */ > +static unsigned int rest_of_page(void *data) > +{ > + return PAGE_SIZE - offset_in_page(data); > +} Not needed. > +/* Create sg_table from a vmalloc'd buffer. */ > +static struct sg_table *vmalloc_to_sgt(char *data, uint32_t size, int > *sg_ents)

Re: [PATCH v2 3/3] phy: qcom-qmp: Add SM8150 QMP UFS PHY support

2019-09-05 Thread Stephen Boyd
Quoting Vinod Koul (2019-09-05 22:10:17) > SM8150 UFS PHY is v4 of QMP phy. Add support for V4 QMP phy register > defines and support for SM8150 QMP UFS PHY. > > Signed-off-by: Vinod Koul > Reviewed-by: Bjorn Andersson > --- Reviewed-by: Stephen Boyd

Re: [PATCH -next] coccinelle: platform_get_irq: Fix parse error

2019-09-05 Thread Stephen Boyd
Quoting YueHaibing (2019-09-05 20:30:06) > When do coccicheck, I get this error: > > spatch -D report --no-show-diff --very-quiet --cocci-file > ./scripts/coccinelle/api/platform_get_irq.cocci --include-headers > --dir . -I ./arch/x86/include -I ./arch/x86/include/generated -I ./include > -I ./ar

Re: [PATCH 1/4] softirq: implement IRQ flood detection mechanism

2019-09-05 Thread Daniel Lezcano
Hi, On 06/09/2019 03:48, Ming Lei wrote: [ ... ] >> You did not share yet the analysis of the problem (the kernel warnings >> give the symptoms) and gave the reasoning for the solution. It is hard >> to understand what you are looking for exactly and how to connect the dots. > > Let me explai

Re: [PATCH v2 1/2] dt-bindings: milbeaut-m10v-hdmac: Add Socionext Milbeaut HDMAC bindings

2019-09-05 Thread Vinod Koul
On 04-09-19, 01:18, Jassi Brar wrote: > On Wed, Sep 4, 2019 at 12:51 AM Vinod Koul wrote: > > > > On 18-08-19, 00:17, jassisinghb...@gmail.com wrote: > > > From: Jassi Brar > > > > > > Document the devicetree bindings for Socionext Milbeaut HDMAC > > > controller. Controller has upto 8 floating c

[PATCH v2 2/3] dt-bindings: phy-qcom-qmp: Add sm8150 UFS phy compatible string

2019-09-05 Thread Vinod Koul
Document "qcom,sdm845-qmp-ufs-phy" compatible string for QMP UFS PHY found on SM8150. Signed-off-by: Vinod Koul Reviewed-by: Bjorn Andersson Reviewed-by: Stephen Boyd --- Documentation/devicetree/bindings/phy/qcom-qmp-phy.txt | 7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --

[PATCH v2 3/3] phy: qcom-qmp: Add SM8150 QMP UFS PHY support

2019-09-05 Thread Vinod Koul
SM8150 UFS PHY is v4 of QMP phy. Add support for V4 QMP phy register defines and support for SM8150 QMP UFS PHY. Signed-off-by: Vinod Koul Reviewed-by: Bjorn Andersson --- drivers/phy/qualcomm/phy-qcom-qmp.c | 125 drivers/phy/qualcomm/phy-qcom-qmp.h | 96 +

[PATCH v2 0/3] UFS: Add support for SM8150 UFS

2019-09-05 Thread Vinod Koul
This series adds compatible strings for ufs hc and ufs qmp phy found in Qualcomm SM8150 SoC. Also update the qmp phy driver with version 4 and support for ufs phy. Changes since v1: - make the numbers a lower case hex - add review tags recieved Vinod Koul (3): dt-bindings: ufs: Add sm8150 com

[PATCH v2 1/3] dt-bindings: ufs: Add sm8150 compatible string

2019-09-05 Thread Vinod Koul
Document "qcom,sm8150-ufshc" compatible string for UFS HC found on SM8150. Signed-off-by: Vinod Koul Reviewed-by: Bjorn Andersson Reviewed-by: Stephen Boyd --- Documentation/devicetree/bindings/ufs/ufshcd-pltfrm.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/b

Re: [PATCH -next] coccinelle: platform_get_irq: Fix parse error

2019-09-05 Thread Julia Lawall
On Fri, 6 Sep 2019, YueHaibing wrote: > When do coccicheck, I get this error: > > spatch -D report --no-show-diff --very-quiet --cocci-file > ./scripts/coccinelle/api/platform_get_irq.cocci --include-headers > --dir . -I ./arch/x86/include -I ./arch/x86/include/generated -I ./include > -I ./ar

Re: [RFC PATCH] virtio_ring: Use DMA API if guest memory is encrypted

2019-09-05 Thread Michael S. Tsirkin
On Mon, Aug 12, 2019 at 02:15:32PM +0200, Christoph Hellwig wrote: > On Sun, Aug 11, 2019 at 04:55:27AM -0400, Michael S. Tsirkin wrote: > > On Sun, Aug 11, 2019 at 07:56:07AM +0200, Christoph Hellwig wrote: > > > So we need a flag on the virtio device, exposed by the > > > hypervisor (or hardware

[PATCH] clk: qcom: gcc-qcs404: Use floor ops for sdcc clks

2019-09-05 Thread Vinod Koul
Update the gcc qcs404 clock driver to use floor ops for sdcc clocks. As disuccsed in [1] it is good idea to use floor ops for sdcc clocks as we dont want the clock rates to do round up. [1]: https://lore.kernel.org/linux-arm-msm/20190830195142.103564-1-swb...@chromium.org/ Signed-off-by: Vinod K

Re: [git pull] habanalabs pull request for kernel 5.4

2019-09-05 Thread Oded Gabbay
On Fri, Sep 6, 2019 at 7:38 AM Oded Gabbay wrote: > > On Thu, Sep 5, 2019 at 11:50 PM Greg KH wrote: > > > > On Thu, Sep 05, 2019 at 03:19:34PM +0300, Oded Gabbay wrote: > > > Hello Greg, > > > > > > This is the pull request for habanalabs driver for kernel 5.4. > > > > > > It contains one major

Re: [RESEND PATCH next v2 0/6] ARM: keystone: update dt and enable cpts support

2019-09-05 Thread santosh . shilimkar
On 9/5/19 12:33 PM, Grygorii Strashko wrote: Hi Santosh, On 06/07/2019 02:48, santosh.shilim...@oracle.com wrote: On 7/5/19 8:12 AM, Grygorii Strashko wrote: Hi Santosh, This series is set of platform changes required to enable NETCP CPTS reference clock selection and final patch to enable C

Re: WARNING in posix_cpu_timer_del (3)

2019-09-05 Thread Eric Biggers
On Tue, Sep 03, 2019 at 09:38:07AM -0700, syzbot wrote: > Hello, > > syzbot found the following crash on: > > HEAD commit:6d028043 Add linux-next specific files for 20190830 > git tree: linux-next > console output: https://syzkaller.appspot.com/x/log.txt?x=179e59de60 > kernel config

[GIT PULL] Please pull powerpc/linux.git powerpc-5.3-5 tag

2019-09-05 Thread Michael Ellerman
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Hi Linus, Please pull some more powerpc fixes for 5.3: The following changes since commit ed4289e8b48845888ee46377bd2b55884a55e60b: Revert "powerpc: slightly improve cache helpers" (2019-07-31 22:56:27 +1000) are available in the git repository

RE: [PATCH 1/4] softirq: implement IRQ flood detection mechanism

2019-09-05 Thread Long Li
>Subject: Re: [PATCH 1/4] softirq: implement IRQ flood detection mechanism > > >On 06/09/2019 03:22, Long Li wrote: >[ ... ] >> > >> Tracing shows that the CPU was in either hardirq or softirq all the >> time before warnings. During tests, the system was unresponsive at >> times. >> >> Ming's patch

Re: [PATCH] soundwire: add back ACPI dependency

2019-09-05 Thread Vinod Koul
On 05-09-19, 22:35, Arnd Bergmann wrote: > Soundwire gained a warning for randconfig builds without > CONFIG_ACPI during the linux-5.3-rc cycle: > > drivers/soundwire/slave.c:16:12: error: unused function 'sdw_slave_add' > [-Werror,-Wunused-function] > > Add the CONFIG_ACPI dependency at the top

Re: [git pull] habanalabs pull request for kernel 5.4

2019-09-05 Thread Oded Gabbay
On Thu, Sep 5, 2019 at 11:50 PM Greg KH wrote: > > On Thu, Sep 05, 2019 at 03:19:34PM +0300, Oded Gabbay wrote: > > Hello Greg, > > > > This is the pull request for habanalabs driver for kernel 5.4. > > > > It contains one major change, the creation of an additional char device > > per PCI device.

[PATCH 3/3] software node: remove separate handling of references

2019-09-05 Thread Dmitry Torokhov
Now that all users of references have moved to reference properties, we can remove separate handling of references. Signed-off-by: Dmitry Torokhov --- drivers/base/swnode.c| 31 +-- include/linux/property.h | 26 ++ 2 files changed, 15 inse

[PATCH 2/3] platform/x86: intel_cht_int33fe: use inline reference properties

2019-09-05 Thread Dmitry Torokhov
Now that static device properties allow defining reference properties together with all other types of properties, instead of managing them separately, let's adjust the driver. Signed-off-by: Dmitry Torokhov --- Heikki, I do not have this hardware, so if you could try this out it would be really

[PATCH 1/3] software node: implement reference properties

2019-09-05 Thread Dmitry Torokhov
It is possible to store references to software nodes in the same fashion as other static properties, so that users do not need to define separate structures: const struct software_node gpio_bank_b_node = { .name = "B", }; const struct property_entry simone_key_enter_props[] __initconst =

Re: [PATCH 1/4] softirq: implement IRQ flood detection mechanism

2019-09-05 Thread Daniel Lezcano
On 06/09/2019 03:22, Long Li wrote: [ ... ] > > Tracing shows that the CPU was in either hardirq or softirq all the > time before warnings. During tests, the system was unresponsive at > times. > > Ming's patch fixed this problem. The system was responsive throughout > tests. > > As for perfo

Re: [PATCH] net/skbuff: silence warnings under memory pressure

2019-09-05 Thread Sergey Senozhatsky
On (09/05/19 12:03), Qian Cai wrote: > > --- > > diff --git a/kernel/printk/printk.c b/kernel/printk/printk.c > > index cd51aa7d08a9..89cb47882254 100644 > > --- a/kernel/printk/printk.c > > +++ b/kernel/printk/printk.c > > @@ -2027,8 +2027,11 @@ asmlinkage int vprintk_emit(int facility, int level,

Re: [PATCH 3/3] phy: qcom-qmp: Add SM8150 QMP UFS PHY support

2019-09-05 Thread Vinod Koul
On 04-09-19, 16:23, Stephen Boyd wrote: > Quoting Vinod Koul (2019-09-04 03:08:35) > > @@ -878,6 +883,93 @@ static const struct qmp_phy_init_tbl > > msm8998_usb3_pcs_tbl[] = { > > QMP_PHY_INIT_CFG(QPHY_V3_PCS_RXEQTRAINING_RUN_TIME, 0x13), > > }; > > > > +static const struct qmp_phy_init

[PATCH 1/1] PCI: iproc: Invalidate PAXB address mapping before programming it

2019-09-05 Thread Abhishek Shah
Invalidate PAXB inbound/outbound address mapping each time before programming it. This is helpful for the cases where we need to reprogram inbound/outbound address mapping without resetting PAXB. kexec kernel is one such example. Signed-off-by: Abhishek Shah Reviewed-by: Ray Jui Reviewed-by: Vik

[PATCH 3/4] mmc: host: sdhci-sprd: Add virtual command queue support

2019-09-05 Thread Baolin Wang
Add virtual command queue support. Signed-off-by: Baolin Wang --- drivers/mmc/host/Kconfig |1 + drivers/mmc/host/sdhci-sprd.c | 16 2 files changed, 17 insertions(+) diff --git a/drivers/mmc/host/Kconfig b/drivers/mmc/host/Kconfig index e2a12c3..851e947 100644 --- a

[PATCH 4/4] mmc: host: sdhci: Add virtual command queue support

2019-09-05 Thread Baolin Wang
Add cqhci_virt_finalize_request() to help to complete a request from virtual command queue. Signed-off-by: Baolin Wang --- drivers/mmc/host/sdhci.c |7 +-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/drivers/mmc/host/sdhci.c b/drivers/mmc/host/sdhci.c index 4e9ebc8..fb5

[PATCH 1/4] mmc: host: cqhci: Move the struct cqhci_slot into header file

2019-09-05 Thread Baolin Wang
The struct cqhci_slot will be used by virtual command queue introducing by following patches, thus move it to the header file. Signed-off-by: Baolin Wang --- drivers/mmc/host/cqhci.c | 10 -- drivers/mmc/host/cqhci.h | 11 ++- 2 files changed, 10 insertions(+), 11 deletions(-

[PATCH 2/4] mmc: Add virtual command queue support

2019-09-05 Thread Baolin Wang
Now the MMC read/write stack will always wait for previous request is completed by mmc_blk_rw_wait(), before sending a new request to hardware, or queue a work to complete request, that will bring context switching overhead, especially for high I/O per second rates, to affect the IO performance. T

[PATCH 0/4] Add MMC virtual command queue support

2019-09-05 Thread Baolin Wang
Hi All, Now the MMC read/write stack will always wait for previous request is completed by mmc_blk_rw_wait(), before sending a new request to hardware, or queue a work to complete request, that will bring context switching overhead, especially for high I/O per second rates, to affect the IO perfor

Re: general protection fault in __apic_accept_irq

2019-09-05 Thread Wanpeng Li
On Thu, 5 Sep 2019 at 21:11, Vitaly Kuznetsov wrote: > > Wanpeng Li writes: > > > On Thu, 5 Sep 2019 at 16:53, syzbot > > wrote: > >> > >> Hello, > >> > >> syzbot found the following crash on: > >> > >> HEAD commit:3b47fd5c Merge tag 'nfs-for-5.3-4' of > >> git://git.linux-nfs... > >> git t

Re: [PATCH] net/skbuff: silence warnings under memory pressure

2019-09-05 Thread Sergey Senozhatsky
On (09/05/19 13:23), Steven Rostedt wrote: > > I think we can queue significantly much less irq_work-s from printk(). > > > > Petr, Steven, what do you think? [..] > I mean, really, do we need to keep calling wake up if it > probably never even executed? I guess ratelimiting you are talking abou

RE: [Patch v3] storvsc: setup 1:1 mapping between hardware queue and CPU queue

2019-09-05 Thread Long Li
>Subject: RE: [Patch v3] storvsc: setup 1:1 mapping between hardware queue >and CPU queue > >From: Long Li Sent: Thursday, September 5, 2019 3:55 >PM >> >> storvsc doesn't use a dedicated hardware queue for a given CPU queue. >> When issuing I/O, it selects returning CPU (hardware queue) >> dynami

Re: [PATCH v3 1/2] dt-bindings: PCI: intel: Add YAML schemas for the PCIe RC controller

2019-09-05 Thread Chuan Hua, Lei
On 9/6/2019 4:31 AM, Martin Blumenstingl wrote: Hi Dilip, On Wed, Sep 4, 2019 at 12:11 PM Dilip Kota wrote: [...] +properties: + compatible: +const: intel,lgm-pcie should we add the "snps,dw-pcie" here (and in the example below) as well? (this is what for example Documentation/devicetr

Re: [PATCH 1/2] mm/kasan: dump alloc/free stack for page allocator

2019-09-05 Thread Walter Wu
On Thu, 2019-09-05 at 10:03 +0200, Vlastimil Babka wrote: > On 9/4/19 4:24 PM, Walter Wu wrote: > > On Wed, 2019-09-04 at 16:13 +0200, Vlastimil Babka wrote: > >> On 9/4/19 4:06 PM, Walter Wu wrote: > >> > >> The THP fix is not required for the rest of the series, it was even merged > >> to > >> m

[RFC PATCH 1/4] Fix: sched/membarrier: private expedited registration check

2019-09-05 Thread Mathieu Desnoyers
Fix a logic flaw in the way membarrier_register_private_expedited() handles ready state checks for private expedited sync core and private expedited registrations. If a private expedited membarrier registration is first performed, and then a private expedited sync_core registration is performed, t

[RFC PATCH 0/4] Membarrier fixes/cleanups

2019-09-05 Thread Mathieu Desnoyers
This series of fixes/cleanups is submitted for feedback. It takes care of membarrier issues recently discussed. Thanks, Mathieu Mathieu Desnoyers (4): Fix: sched/membarrier: private expedited registration check Cleanup: sched/membarrier: remove redundant check Cleanup: sched/membarrier: on

[RFC PATCH 4/4] Fix: sched/membarrier: p->mm->membarrier_state racy load

2019-09-05 Thread Mathieu Desnoyers
The membarrier_state field is located within the mm_struct, which is not guaranteed to exist when used from runqueue-lock-free iteration on runqueues by the membarrier system call. Copy the membarrier_state from the mm_struct into the scheduler runqueue in the scheduler prepare task switch when th

[RFC PATCH 2/4] Cleanup: sched/membarrier: remove redundant check

2019-09-05 Thread Mathieu Desnoyers
Checking that the number of threads is 1 is redundant with checking mm_users == 1. Suggested-by: Oleg Nesterov Signed-off-by: Mathieu Desnoyers Cc: "Paul E. McKenney" Cc: Peter Zijlstra Cc: Oleg Nesterov Cc: "Eric W. Biederman" Cc: Linus Torvalds Cc: Russell King - ARM Linux admin Cc: Chri

[RFC PATCH 3/4] Cleanup: sched/membarrier: only sync_core before usermode for same mm

2019-09-05 Thread Mathieu Desnoyers
When the prev and next task's mm change, switch_mm() provides the core serializing guarantees before returning to usermode. The only case where an explicit core serialization is needed is when the scheduler keeps the same mm for prev and next. Suggested-by: Oleg Nesterov Signed-off-by: Mathieu De

Re: [RFC v2 1/3] cpufreq: ti-cpufreq: add support for omap34xx and omap36xx

2019-09-05 Thread Viresh Kumar
On 05-09-19, 07:32, Tony Lindgren wrote: > Acked-by: Tony Lindgren Do you want to pick the series instead as this has lots of DT changes ? -- viresh

[PATCH] net: Remove the source address setting in connect() for UDP

2019-09-05 Thread Enke Chen
The connect() system call for a UDP socket is for setting the destination address and port. But the current code mistakenly sets the source address for the socket as well. Remove the source address setting in connect() for UDP in this patch. Implications of the bug: - Packet drop: On a mul

Re: [RFC v2 1/3] cpufreq: ti-cpufreq: add support for omap34xx and omap36xx

2019-09-05 Thread Viresh Kumar
On 05-09-19, 07:32, Tony Lindgren wrote: > * H. Nikolaus Schaller [190904 08:54]: > > This adds code and tables to read the silicon revision and > > eFuse (speed binned / 720 MHz grade) bits for selecting > > opp-v2 table entries. > > > > Since these bits are not always part of the syscon registe

Re: [PATCH v2] mm: emit tracepoint when RSS changes by threshold

2019-09-05 Thread Joel Fernandes
On Thu, Sep 05, 2019 at 06:15:43PM -0700, Daniel Colascione wrote: [snip] > > > > > > > The bigger improvement with the threshold is the number of trace > > > > > > > records are > > > > > > > almost halved by using a threshold. The number of records went > > > > > > > from 4.6K to > > > > > > >

Re: [PATCH vfs/for-next] vfs: fix vfs_get_single_reconf_super error handling

2019-09-05 Thread Eric Biggers
On Fri, Aug 30, 2019 at 10:10:24PM -0500, Eric Biggers wrote: > From: Eric Biggers > > syzbot reported an invalid free in debugfs_release_dentry(). The > reproducer tries to mount debugfs with the 'dirsync' option, which is > not allowed. The bug is that if reconfigure_super() fails in > vfs_ge

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

2019-09-05 Thread Masahiro Yamada
On Fri, Sep 6, 2019 at 4:26 AM Andrii Nakryiko wrote: > > On Tue, Sep 3, 2019 at 11:20 PM Masahiro Yamada > wrote: > > > > On Wed, Sep 4, 2019 at 3:00 PM Stephen Rothwell > > wrote: > > > > > > Hi all, > > > > > > After merging the net-next tree, today's linux-next build (arm > > > multi_v7_def

Re: [PATCH] net/skbuff: silence warnings under memory pressure

2019-09-05 Thread Sergey Senozhatsky
On (09/05/19 13:14), Steven Rostedt wrote: > > Hmm, from the article, > > > > https://en.wikipedia.org/wiki/Universal_asynchronous_receiver-transmitter > > > > "Since transmission of a single or multiple characters may take a long time > > relative to CPU speeds, a UART maintains a flag showing b

Re: [PATCH] rtl8xxxu: add bluetooth co-existence support for single antenna

2019-09-05 Thread Chris Chiu
On Tue, Sep 3, 2019 at 1:37 PM Chris Chiu wrote: > > The RTL8723BU suffers the wifi disconnection problem while bluetooth > device connected. While wifi is doing tx/rx, the bluetooth will scan > without results. This is due to the wifi and bluetooth share the same > single antenna for RF communica

[RESEND PATCH v2] Bluetooth: Retry configure request if result is L2CAP_CONF_UNKNOWN

2019-09-05 Thread Andrey Smirnov
Due to: * Current implementation of l2cap_config_rsp() dropping BT connection if sender of configuration response replied with unknown option failure (Result=0x0003/L2CAP_CONF_UNKNOWN) * Current implementation of l2cap_build_conf_req() adding L2CAP_CONF_RFC(0x04) option to initial conf

[PATCH V8 5/5] mmc: host: sdhci-pci: Add Genesys Logic GL975x support

2019-09-05 Thread Ben Chuang
From: Ben Chuang Add support for the GL9750 and GL9755 chipsets. Enable v4 mode and wait 5ms after set 1.8V signal enable for GL9750/ GL9755. Fix the value of SDHCI_MAX_CURRENT register and use the vendor tuning flow for GL9750. Co-developed-by: Michael K Johnson Signed-off-by: Michael K Johns

[PATCH V8 4/5] mmc: sdhci: Export sdhci_abort_tuning function symbol

2019-09-05 Thread Ben Chuang
From: Ben Chuang Export sdhci_abort_tuning() function symbols which are used by other SD Host controller driver modules. Signed-off-by: Ben Chuang Co-developed-by: Michael K Johnson Signed-off-by: Michael K Johnson Acked-by: Adrian Hunter --- drivers/mmc/host/sdhci.c | 3 ++- drivers/mmc/ho

[PATCH V8 3/5] PCI: Add Genesys Logic, Inc. Vendor ID

2019-09-05 Thread Ben Chuang
From: Ben Chuang Add the Genesys Logic, Inc. vendor ID to pci_ids.h. Signed-off-by: Ben Chuang Co-developed-by: Michael K Johnson Signed-off-by: Michael K Johnson Acked-by: Adrian Hunter --- include/linux/pci_ids.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/linux/pci_ids.

[PATCH V8 2/5] mmc: sdhci: Add PLL Enable support to internal clock setup

2019-09-05 Thread Ben Chuang
From: Ben Chuang The GL9750 and GL9755 chipsets, and possibly others, require PLL Enable setup as part of the internal clock setup as described in 3.2.1 Internal Clock Setup Sequence of SD Host Controller Simplified Specification Version 4.20. Signed-off-by: Ben Chuang Co-developed-by: Michael

[PATCH V8 1/5] mmc: sdhci: Change timeout of loop for checking internal clock stable

2019-09-05 Thread Ben Chuang
From: Ben Chuang According to section 3.2.1 internal clock setup in SD Host Controller Simplified Specifications 4.20, the timeout of loop for checking internal clock stable is defined as 150ms. Signed-off-by: Ben Chuang Co-developed-by: Michael K Johnson Signed-off-by: Michael K Johnson Acke

[PATCH V8 0/5] Add Genesys Logic GL975x support

2019-09-05 Thread Ben Chuang
From: Ben Chuang The patches modify internal clock setup to match SD Host Controller Simplified Specifications 4.20 and support Genesys Logic GL9750/GL9755 chipsets. v8: refine codes in sdhci-gli-pci.c - remove duplicate assignment - remove redundant delay - use '!!'(not not) logical operat

[PATCH v4 0/4] KVM: X86: Some tracepoint enhancements

2019-09-05 Thread Peter Xu
v4: - pick r-b - swap the last two patches [Sean] v3: - use unsigned int for vcpu id [Sean] - a new patch to fix ple_window type [Sean] v2: - fix commit messages, change format of ple window tracepoint [Sean] - rebase [Wanpeng] Each small patch explains itself. I noticed them when I'm tracing s

[PATCH v4 3/4] KVM: VMX: Change ple_window type to unsigned int

2019-09-05 Thread Peter Xu
The VMX ple_window is 32 bits wide, so logically it can overflow with an int. The module parameter is declared as unsigned int which is good, however the dynamic variable is not. Switching all the ple_window references to use unsigned int. The tracepoint changes will also affect SVM, but SVM is

[PATCH v4 2/4] KVM: X86: Remove tailing newline for tracepoints

2019-09-05 Thread Peter Xu
It's done by TP_printk() already. Reviewed-by: Krish Sadhukhan Reviewed-by: Sean Christopherson Signed-off-by: Peter Xu --- arch/x86/kvm/trace.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/x86/kvm/trace.h b/arch/x86/kvm/trace.h index 20d6cac9f157..8a7570f8c943

[PATCH v4 4/4] KVM: X86: Tune PLE Window tracepoint

2019-09-05 Thread Peter Xu
The PLE window tracepoint triggers even if the window is not changed, and the wording can be a bit confusing too. One example line: kvm_ple_window: vcpu 0: ple_window 4096 (shrink 4096) It easily let people think of "the window now is 4096 which is shrinked", but the truth is the value actuall

[PATCH v4 1/4] KVM: X86: Trace vcpu_id for vmexit

2019-09-05 Thread Peter Xu
Tracing the ID helps to pair vmenters and vmexits for guests with multiple vCPUs. Reviewed-by: Krish Sadhukhan Reviewed-by: Sean Christopherson Signed-off-by: Peter Xu --- arch/x86/kvm/trace.h | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/arch/x86/kvm/trace.h b/arch/x

Re: WARNING in hso_free_net_device

2019-09-05 Thread Hui Peng
On 9/5/2019 7:24 AM, Andrey Konovalov wrote: > On Thu, Sep 5, 2019 at 4:20 AM Hui Peng wrote: >> >> Can you guys have a look at the attached patch? > > Let's try it: > > #syz test: https://github.com/google/kasan.git eea39f24 > > FYI: there are two more reports coming from this driver, whic

  1   2   3   4   5   6   7   8   9   10   >