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

2019-09-06 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

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

2019-09-06 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

Re: WARNING in posix_cpu_timer_del (3)

2019-09-06 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.

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

2019-09-06 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-06 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 ---

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

2019-09-06 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-06 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

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

2019-09-06 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

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

2019-09-06 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 ---

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

2019-09-06 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

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

2019-09-06 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

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

2019-09-06 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

[PATCH v3 0/5] Add ast2600 gpio support

2019-09-06 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

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

2019-09-06 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 2/5] gpio/aspeed: Fix incorrect number of banks

2019-09-06 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:

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

2019-09-06 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

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

2019-09-06 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

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

2019-09-06 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,

Re: dma_mmap_fault discussion

2019-09-06 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 v4 3/3] iommu: arm-smmu-impl: Add sdm845 implementation hook

2019-09-06 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

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

2019-09-06 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

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

2019-09-06 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

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

2019-09-06 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

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

2019-09-06 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-06 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

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

2019-09-06 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

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

2019-09-06 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

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

2019-09-06 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

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

2019-09-06 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

Re: [PATCH v5 11/11] lib/test_printf: Add tests for %pfw printk modifier

2019-09-06 Thread Sakari Ailus
On Wed, Sep 04, 2019 at 08:22:22PM +0300, Andy Shevchenko wrote: > On Wed, Sep 04, 2019 at 07:10:51PM +0300, Sakari Ailus wrote: > > On Mon, Sep 02, 2019 at 07:13:52PM +0300, Andy Shevchenko wrote: > > > On Mon, Sep 02, 2019 at 04:57:32PM +0300, Sakari Ailus wrote: > > > > Add a test for the %pfw

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

2019-09-06 Thread Anshuman Khandual
On 09/05/2019 02:29 PM, Kirill A. Shutemov wrote: > On Thu, Sep 05, 2019 at 01:48:27PM +0530, Anshuman Khandual wrote: +#define VADDR_TEST(PGDIR_SIZE + PUD_SIZE + PMD_SIZE + PAGE_SIZE) >>> >>> What is special about this address? How do you know if it is not occupied >>> yet? >> >>

[PATCH] tas2770: add tas2770 smart PA kernel driver

2019-09-06 Thread shifu0704
From: Frank Shi add tas2770 smart PA kernel driver Signed-off-by: Frank Shi --- sound/soc/codecs/Kconfig |5 + sound/soc/codecs/Makefile |2 + sound/soc/codecs/tas2770.c | 1103 sound/soc/codecs/tas2770.h | 173 +++ 4 files changed,

Re: [PATCH v5 09/11] lib/vsprintf: OF nodes are first and foremost, struct device_nodes

2019-09-06 Thread Sakari Ailus
On Tue, Sep 03, 2019 at 02:28:00PM +0300, Andy Shevchenko wrote: > On Tue, Sep 03, 2019 at 11:28:16AM +0200, Petr Mladek wrote: > > On Tue 2019-09-03 10:52:33, Petr Mladek wrote: > > > On Mon 2019-09-02 16:57:30, Sakari Ailus wrote: > > > > Factor out static kobject_string() function that simply

Re: [PATCH V2 4/4] crypto: Add Xilinx AES driver

2019-09-06 Thread Corentin Labbe
On Wed, Sep 04, 2019 at 05:40:22PM +, Kalyani Akula wrote: > Hi Corentin, > > Thanks for the review comments. > Please find my response/queries inline. > > > -Original Message- > > From: Corentin Labbe > > Sent: Monday, September 2, 2019 12:29 PM > > To: Kalyani Akula > > Cc:

[PATCH] tas2770: add tas2770 smart PA dt bindings

2019-09-06 Thread shifu0704
From: Frank Shi add tas2770 smart PA dt bindings Signed-off-by: Frank Shi --- Documentation/devicetree/bindings/tas2770.txt | 38 +++ 1 file changed, 38 insertions(+) create mode 100644 Documentation/devicetree/bindings/tas2770.txt diff --git

Re: [PATCH 2/3] task: RCU protect tasks on the runqueue

2019-09-06 Thread Peter Zijlstra
On Thu, Sep 05, 2019 at 03:02:49PM -0500, Eric W. Biederman wrote: > Paul, what is the purpose of the barrier in rcu_assign_pointer? > > My intuition says it is the assignment half of rcu_dereference, and that > anything that rcu_dereference does not need is too strong. I see that Paul has also

Re: dma_mmap_fault discussion

2019-09-06 Thread VMware
On 9/6/19 8:32 AM, Christoph Hellwig wrote: 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

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

2019-09-06 Thread David Miller
From: Enke Chen Date: Thu, 5 Sep 2019 19:54:37 -0700 > 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

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

2019-09-06 Thread Kalle Valo
Chris Chiu writes: > Gentle ping. Cheers. Please edit your quotes. Including the full patch in quotes makes my use of patchwork horrible: https://patchwork.kernel.org/patch/11127227/ -- Kalle Valo

[PATCH] riscv: save space on the magic number field of image header

2019-09-06 Thread Chester Lin
Change the symbol from "RISCV" to "RSCV" so the magic number can be 32-bit long, which is consistent with other architectures. Signed-off-by: Chester Lin --- arch/riscv/include/asm/image.h | 9 + arch/riscv/kernel/head.S | 5 ++--- 2 files changed, 7 insertions(+), 7 deletions(-)

Re: dma_mmap_fault discussion

2019-09-06 Thread Christoph Hellwig
On Fri, Sep 06, 2019 at 09:10:08AM +0200, Thomas Hellström (VMware) wrote: > It's definitely possible. I was just wondering whether it was necessary, but > it seems like it. Yepp. I've pushed a new version out (even hotter off the press) that doesn't require the region for dma_mmap_prepare, and

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

2019-09-06 Thread Enke Chen (enkechen)
Hi, David: Yes, I understand the code has been there for a long time. But the issues are real, and it's really nasty when You run into them. As I described in the patch log, there is no backward compatibility Issue for fixing it. --- There is no backward compatibility issue here as the

Re: [PATCH 01/13] vfs: verify param type in vfs_parse_sb_flag()

2019-09-06 Thread Miklos Szeredi
On Thu, Jul 4, 2019 at 6:20 PM David Howells wrote: > > Miklos Szeredi wrote: > > > Ping? Have you had a chance of looking at this series? > > Yeah, through due to time pressure, I haven't managed to do much with it. > > I don't agree with all your changes, and also I'd like them to wait till

Re: [PATCH -tip v3 1/2] x86: xen: insn: Decode Xen and KVM emulate-prefix signature

2019-09-06 Thread Peter Zijlstra
On Fri, Sep 06, 2019 at 10:45:48AM +0900, Masami Hiramatsu wrote: > diff --git a/arch/x86/include/asm/xen/interface.h > b/arch/x86/include/asm/xen/interface.h > index 62ca03ef5c65..fe33a9798708 100644 > --- a/arch/x86/include/asm/xen/interface.h > +++ b/arch/x86/include/asm/xen/interface.h > @@

Re: [PATCH 4.4 00/77] 4.4.191-stable review

2019-09-06 Thread Jon Hunter
On 04/09/2019 18:52, Greg Kroah-Hartman wrote: > This is the start of the stable review cycle for the 4.4.191 release. > There are 77 patches in this series, all will be posted as a response > to this one. If anyone has any issues with these being applied, please > let me know. > > Responses

Re: [PATCH 4.9 00/83] 4.9.191-stable review

2019-09-06 Thread Jon Hunter
On 04/09/2019 18:52, Greg Kroah-Hartman wrote: > This is the start of the stable review cycle for the 4.9.191 release. > There are 83 patches in this series, all will be posted as a response > to this one. If anyone has any issues with these being applied, please > let me know. > > Responses

Re: [PATCH 4.14 00/57] 4.14.142-stable review

2019-09-06 Thread Jon Hunter
On 04/09/2019 18:53, Greg Kroah-Hartman wrote: > This is the start of the stable review cycle for the 4.14.142 release. > There are 57 patches in this series, all will be posted as a response > to this one. If anyone has any issues with these being applied, please > let me know. > > Responses

Re: [PATCH 5.2 000/143] 5.2.12-stable review

2019-09-06 Thread Jon Hunter
On 04/09/2019 18:52, Greg Kroah-Hartman wrote: > This is the start of the stable review cycle for the 5.2.12 release. > There are 143 patches in this series, all will be posted as a response > to this one. If anyone has any issues with these being applied, please > let me know. > > Responses

Re: [PATCH 4.19 00/93] 4.19.70-stable review

2019-09-06 Thread Jon Hunter
On 04/09/2019 18:53, Greg Kroah-Hartman wrote: > This is the start of the stable review cycle for the 4.19.70 release. > There are 93 patches in this series, all will be posted as a response > to this one. If anyone has any issues with these being applied, please > let me know. > > Responses

Re: [PATCH] bus: ti-sysc: Fix handling of invalid clocks

2019-09-06 Thread Roger Quadros
On 06/09/2019 00:53, Tony Lindgren wrote: We can currently get "Unable to handle kernel paging request at virtual address" for invalid clocks with dts node but no driver: (__clk_get_hw) from [] (ti_sysc_find_one_clockdomain+0x18/0x34) (ti_sysc_find_one_clockdomain) from []

[PATCH net-next 3/5] net: stmmac: dwmac4: Enable RX Jumbo frame support

2019-09-06 Thread Jose Abreu
We are already doing it by default in the TX path so we can also enable Jumbo Frame support in the RX path independently of MTU value. Signed-off-by: Jose Abreu --- Cc: Giuseppe Cavallaro Cc: Alexandre Torgue Cc: Jose Abreu Cc: "David S. Miller" Cc: Maxime Coquelin Cc:

[PATCH net-next 4/5] net: stmmac: selftests: Add Split Header test

2019-09-06 Thread Jose Abreu
Add a test to validate that Split Header feature is working correctly. It works by using the rececently introduced counter that increments each time a packet with split header is received. Signed-off-by: Jose Abreu --- Cc: Giuseppe Cavallaro Cc: Alexandre Torgue Cc: Jose Abreu Cc: "David S.

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

2019-09-06 Thread Peter Zijlstra
On Thu, Sep 05, 2019 at 11:12:59PM -0400, Mathieu Desnoyers wrote: > 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

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

2019-09-06 Thread Markus Elfring
>> I proposed something also during the development for this SmPL script. >> https://lkml.org/lkml/2019/7/24/274 >> https://lore.kernel.org/r/c98b8f50-1adf-ea95-a91c-ec451e9fe...@web.de/ > > Markus, > > This is not the first time you have suggested to someone to do something > that was simply

[PATCH net-next 1/5] net: stmmac: selftests: Add missing checks for support of SA

2019-09-06 Thread Jose Abreu
Add checks for support of Source Address Insertion/Replacement before running the test. Signed-off-by: Jose Abreu --- Cc: Giuseppe Cavallaro Cc: Alexandre Torgue Cc: Jose Abreu Cc: "David S. Miller" Cc: Maxime Coquelin Cc: net...@vger.kernel.org Cc: linux-arm-ker...@lists.infradead.org Cc:

[PATCH net-next 2/5] net: stmmac: selftests: Set RX tail pointer in Flow Control test

2019-09-06 Thread Jose Abreu
We need to set the RX tail pointer so that RX engine starts working again after finishing the Flow Control test. Signed-off-by: Jose Abreu --- Cc: Giuseppe Cavallaro Cc: Alexandre Torgue Cc: Jose Abreu Cc: "David S. Miller" Cc: Maxime Coquelin Cc: net...@vger.kernel.org Cc:

[PATCH net-next 5/5] net: stmmac: Limit max speeds of XGMAC if asked to

2019-09-06 Thread Jose Abreu
We may have some SoCs that can't achieve XGMAC max speed. Limit it if asked to. Signed-off-by: Jose Abreu --- Cc: Giuseppe Cavallaro Cc: Alexandre Torgue Cc: Jose Abreu Cc: "David S. Miller" Cc: Maxime Coquelin Cc: net...@vger.kernel.org Cc: linux-arm-ker...@lists.infradead.org Cc:

[PATCH net-next 0/5] net: stmmac: Improvements and fixes for -next

2019-09-06 Thread Jose Abreu
Improvements and fixes for recently introduced features. All for -next tree. More info in commit logs. --- Cc: Giuseppe Cavallaro Cc: Alexandre Torgue Cc: Jose Abreu Cc: "David S. Miller" Cc: Maxime Coquelin Cc: net...@vger.kernel.org Cc: linux-arm-ker...@lists.infradead.org Cc:

Re: [PATCH v8 04/28] x86/asm/entry: annotate THUNKs

2019-09-06 Thread Jiri Slaby
On 15. 08. 19, 14:43, Borislav Petkov wrote: > On Thu, Aug 08, 2019 at 12:38:30PM +0200, Jiri Slaby wrote: >> Place SYM_*_START_NOALIGN and SYM_*_END around the THUNK macro body. >> Preserve @function by FUNC (64bit) and CODE (32bit). Given it was not >> marked as aligned, use NOALIGN. >> >> The

Re: [PATCH] x86/microcode: Add an option to reload microcode even if revision is unchanged

2019-09-06 Thread Borislav Petkov
On Thu, Sep 05, 2019 at 03:27:06PM -0700, Raj, Ashok wrote: > Several customers have asked this to check the safety of late loads. > They want to validate in production setup prior to rolling late-load > to all production systems. First of all, they should use *early* loading. I don't know how

Re: [PATCH] bus: ti-sysc: Fix handling of invalid clocks

2019-09-06 Thread Keerthy
On 06/09/19 3:23 AM, Tony Lindgren wrote: We can currently get "Unable to handle kernel paging request at virtual address" for invalid clocks with dts node but no driver: (__clk_get_hw) from [] (ti_sysc_find_one_clockdomain+0x18/0x34) (ti_sysc_find_one_clockdomain) from []

Re: cpuidle big_little driver on Odroid-xu4

2019-09-06 Thread Krzysztof Kozlowski
On Sun, 1 Sep 2019 at 15:19, Jaafar Ali wrote: > > Dear Sylwester, > Kernel 5.3rc1 > Hardware Odroid-XU4 > cpuidle-big_little driver for exynos 5422 of odroid-xu3/4 is not working. > when I enable it in the defconfig , CONFIG_ARM_BIG_LITTLE_CPUIDLE=y, > the device will not boot and the heartbeat

Re: [RFC v2 3/3] ARM: dts: omap3: bulk convert compatible to be explicitly ti,omap3430 or ti,omap36xx

2019-09-06 Thread H. Nikolaus Schaller
Hi, I am preparing the next PATCH version now. Incl. updating the commit messages to carry more documentation about the opp-supported-hw bit definitions. So please do not merge yet. > Am 05.09.2019 um 16:27 schrieb Tony Lindgren : > > Hi, > > * H. Nikolaus Schaller [190904 08:54]: >>

Re: [PATCH v2 2/3] media: Add lane checks for Cadence CSI2RX

2019-09-06 Thread Sakari Ailus
Hi Jan, Thanks for the patchset. On Thu, Sep 05, 2019 at 11:56:00AM +0100, Jan Kotas wrote: > This patch adds lane checks for CSI2RX, to prevent clock lane > being used as a data lane. > > Signed-off-by: Jan Kotas > --- > drivers/media/platform/cadence/cdns-csi2rx.c | 13 +++-- > 1

[PATCH 2/2] x86/asm: Make some functions local labels

2019-09-06 Thread Jiri Slaby
Boris suggests to make a local label (prepend ".L") from these functions to eliminate them from the symbol table. These are functions with very local names and really should not be visible anywhere. Note that objtool won't see these functions anymore (to generate ORC debug info). But all the

[PATCH 1/2] x86/asm/suspend: Get rid of bogus_64_magic

2019-09-06 Thread Jiri Slaby
bogus_64_magic is only a dead-end loop. There is no need for an out-of-order function (and unannotated local label), so just handle it in-place and also store 0xbad-m-a-g-i-c to rcx beforehand. Signed-off-by: Jiri Slaby Cc: "Rafael J. Wysocki" Cc: Pavel Machek Cc: Len Brown Cc: Borislav

Re: [PATCH v2 3/3] media: Add support for Cadence CSI2RX 2.1

2019-09-06 Thread Sakari Ailus
Hi Jan, On Thu, Sep 05, 2019 at 11:56:01AM +0100, Jan Kotas wrote: > This patch adds support for CSI2RX v2.1 version of the controller. > > Signed-off-by: Jan Kotas > --- > drivers/media/platform/cadence/cdns-csi2rx.c | 139 > ++- > 1 file changed, 116 insertions(+),

[v2] ACPI: support for NXP i2c controller

2019-09-06 Thread Biwen Li
From: Chuanhua Han Enable NXP i2c controller to boot with ACPI Signed-off-by: Meenakshi Aggarwal Signed-off-by: Udit Kumar Signed-off-by: Chuanhua Han Signed-off-by: Biwen Li --- Change in v2: - Simplify code - Adjust header file order - Not use ACPI_PTR()

[PATCH] media: s3c-camif: make array 'registers' static const, makes object smaller

2019-09-06 Thread Colin King
From: Colin Ian King Don't populate the array 'registers' on the stack but instead make it static const. Makes the object code smaller by 45 bytes. Before: textdata bss dec hex filename 173645000 0 22364575c platform/s3c-camif/camif-regs.o After: text

Re: [PATCH 00/18] virtiofs: Fix various races and cleanups round 1

2019-09-06 Thread Miklos Szeredi
On Thu, Sep 5, 2019 at 9:49 PM Vivek Goyal wrote: > > Hi, > > Michael Tsirkin pointed out issues w.r.t various locking related TODO > items and races w.r.t device removal. > > In this first round of cleanups, I have taken care of most pressing > issues. > > These patches apply on top of

Re: [PATCH 5.2 000/143] 5.2.12-stable review

2019-09-06 Thread Greg Kroah-Hartman
On Fri, Sep 06, 2019 at 08:37:33AM +0100, Jon Hunter wrote: > > On 04/09/2019 18:52, Greg Kroah-Hartman wrote: > > This is the start of the stable review cycle for the 5.2.12 release. > > There are 143 patches in this series, all will be posted as a response > > to this one. If anyone has any

[PATCH v2 00/13] vfio_pci: wrap pci device as a mediated device

2019-09-06 Thread Liu Yi L
This patchset aims to add a vfio-pci-like meta driver as a demo user of the vfio changes introduced in "vfio/mdev: IOMMU aware mediated device" patchset from Baolu Lu. Besides the test purpose, per Alex's comments, it could also be a good base driver for experimenting with device specific mdev

[PATCH v2 02/13] vfio_pci: refine user config reference in vfio-pci module

2019-09-06 Thread Liu Yi L
This patch adds three fields in struct vfio_pci_device to pass the user configs of vfio-pci module to some functions which could be common in future usage. Cc: Kevin Tian Cc: Lu Baolu Signed-off-by: Liu Yi L --- drivers/vfio/pci/vfio_pci.c | 24 +++-

[PATCH v2 05/13] vfio_pci: duplicate vfio_pci.c

2019-09-06 Thread Liu Yi L
This patch has no code change, just a file copy. In following patches, vfio_pci_common.c will be modified to only include the common functions and related static functions in original vfio_pci.c. Meanwhile, vfio_pci.c will be modified to only include vfio-pci module specific codes. Cc: Kevin Tian

[RFC PATCH v2] mm: initialize struct pages reserved by ZONE_DEVICE driver.

2019-09-06 Thread Toshiki Fukasawa
A kernel panic is observed during reading /proc/kpage{cgroup,count,flags} for first few pfns allocated by pmem namespace: BUG: unable to handle page fault for address: fffe [ 114.495280] #PF: supervisor read access in kernel mode [ 114.495738] #PF: error_code(0x) - not-present

[PATCH v2 01/13] vfio_pci: move vfio_pci_is_vga/vfio_vga_disabled to header

2019-09-06 Thread Liu Yi L
This patch fix an issue regards to always_inline. e.g.: "error: inlining failed in call to always_inline ‘vfio_pci_is_vga’: function body not available". Cc: Kevin Tian Cc: Lu Baolu Signed-off-by: Liu Yi L --- drivers/vfio/pci/vfio_pci.c | 14 --

[PATCH v2 08/13] vfio/pci: protect cap/ecap_perm bits alloc/free with atomic op

2019-09-06 Thread Liu Yi L
There is a case in which cap_perms and ecap_perms can be reallocated by different modules. e.g. the vfio-mdev-pci sample driver. To secure the initialization of cap_perms and ecap_perms, this patch adds an atomic variable to track the user of cap/ecap_perms bits. First caller of

[PATCH v2 04/13] vfio_pci: make common functions be extern

2019-09-06 Thread Liu Yi L
This patch makes the common functions (module agnostic functions) in vfio_pci.c to extern. So that such functions could be moved to a common source file. *) vfio_pci_set_vga_decode *) vfio_pci_enable *) vfio_pci_disable *) vfio_pci_ioctl *) vfio_pci_read *) vfio_pci_write *)

[PATCH v2 10/13] samples: refine vfio-mdev-pci driver

2019-09-06 Thread Liu Yi L
From: Alex Williamson This patch refines the implementation of original vfio-mdev-pci driver. And the vfio-mdev-pci-type_name will be named per the following rule: vmdev->attr.name = kasprintf(GFP_KERNEL, "%04x:%04x:%04x:%04x:%06x:%02x",

[PATCH v2 13/13] vfio/type1: track iommu backed group attach

2019-09-06 Thread Liu Yi L
With the introduction of iommu aware mdev group, user may wrap a PF/VF as a mdev. Such mdevs will be called as wrapped PF/VF mdevs in following statements. If it's applied on a non-singleton iommu group, there would be multiple domain attach on an iommu_device group (equal to iommu backed group).

[PATCH v2 03/13] vfio_pci: refine vfio_pci_driver reference in vfio_pci.c

2019-09-06 Thread Liu Yi L
This patch replaces the vfio_pci_driver reference in vfio_pci.c with pci_dev_driver(vdev->pdev) which is more helpful to make the functions be generic to module types. Cc: Kevin Tian Cc: Lu Baolu Signed-off-by: Liu Yi L --- drivers/vfio/pci/vfio_pci.c | 33 ++--- 1

[PATCH v2 07/13] vfio_pci: shrink vfio_pci.c

2019-09-06 Thread Liu Yi L
This patch removes the common codes in vfio_pci.c, instead, vfio-pci module will leverage the common functions implemented in vfio_pci_common.c. Cc: Kevin Tian Cc: Lu Baolu Signed-off-by: Liu Yi L --- drivers/vfio/pci/Makefile |3 +- drivers/vfio/pci/vfio_pci.c | 1424

[PATCH v2 06/13] vfio_pci: shrink vfio_pci_common.c

2019-09-06 Thread Liu Yi L
This patch removes the vfio-pci module specific codes in vfio_pci_common.c to make vfio_pci_common.c be a common source file. Cc: Kevin Tian Cc: Lu Baolu Signed-off-by: Liu Yi L --- drivers/vfio/pci/vfio_pci_common.c | 233 - 1 file changed, 233

[PATCH v2 11/13] samples/vfio-mdev-pci: call vfio_add_group_dev()

2019-09-06 Thread Liu Yi L
This patch adds vfio_add_group_dev() calling in probe() to make vfio-mdev-pci work well with non-singleton iommu group. User could bind devices from a non-singleton iommu group to either vfio-pci driver or this sample driver. Existing passthru policy works well for this non-singleton group. This

[PATCH v2 09/13] samples: add vfio-mdev-pci driver

2019-09-06 Thread Liu Yi L
This patch adds sample driver named vfio-mdev-pci. It is to wrap a PCI device as a mediated device. For a pci device, once bound to vfio-mdev-pci driver, user space access of this device will go through vfio mdev framework. The usage of the device follows mdev management method. e.g. user should

[PATCH v2 12/13] vfio/type1: use iommu_attach_group() for wrapping PF/VF as mdev

2019-09-06 Thread Liu Yi L
This patch uses iommu_attach_group() to do group attach when it is for the case of wrapping a PF/VF as a mdev. iommu_attach_device() doesn't support non-singleton iommu group attach. With this change, wrapping PF/VF as mdev can work on non-singleton iommu groups. Cc: Kevin Tian Cc: Lu Baolu

Re: [PATCH] riscv: save space on the magic number field of image header

2019-09-06 Thread Anup Patel
On Fri, Sep 6, 2019 at 12:50 PM Chester Lin wrote: > > Change the symbol from "RISCV" to "RSCV" so the magic number can be 32-bit > long, which is consistent with other architectures. > > Signed-off-by: Chester Lin > --- > arch/riscv/include/asm/image.h | 9 + > arch/riscv/kernel/head.S

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

2019-09-06 Thread Yunsheng Lin
On 2019/9/6 14:52, Greg KH wrote: > 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

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

2019-09-06 Thread Peter Zijlstra
On Thu, Sep 05, 2019 at 11:13:00PM -0400, Mathieu Desnoyers wrote: > diff --git a/include/linux/mm_types.h b/include/linux/mm_types.h > index 6a7a1083b6fb..7020572eb605 100644 > --- a/include/linux/mm_types.h > +++ b/include/linux/mm_types.h > @@ -382,6 +382,9 @@ struct mm_struct { >

[PATCH v2 13/13] vfio/type1: track iommu backed group attach

2019-09-06 Thread Liu Yi L
With the introduction of iommu aware mdev group, user may wrap a PF/VF as a mdev. Such mdevs will be called as wrapped PF/VF mdevs in following statements. If it's applied on a non-singleton iommu group, there would be multiple domain attach on an iommu_device group (equal to iommu backed group).

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

2019-09-06 Thread Andrew Murray
On Fri, Sep 06, 2019 at 09:28:13AM +0530, Abhishek Shah wrote: > 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

Re: revert: ASoC: Fail card instantiation if DAI format setup fails

2019-09-06 Thread Ricard Wanderlof
> > On Tue, Aug 27, 2019 at 12:00:14PM +0100, Mark Brown wrote: > > > On Sun, Aug 25, 2019 at 09:35:15PM -0400, Sasha Levin wrote: > > > > On Wed, Aug 14, 2019 at 10:22:13AM +0100, Mark Brown wrote: > > > > > > > > > If the DAI format setup fails, there is no valid communication > > > > > >

Re: [PATCH v13 7/8] ARM: dts: exynos: add DMC device for exynos5422

2019-09-06 Thread Lukasz Luba
Hi Krzysztof, On 9/4/19 8:25 PM, Krzysztof Kozlowski wrote: > On Wed, Aug 21, 2019 at 12:43:02PM +0200, Lukasz Luba wrote: >> Add description of Dynamic Memory Controller and PPMU counters. >> They are used by exynos5422-dmc driver. >> There is a definition of the memory chip, which is then used

Re: [PATCH v13 3/8] drivers: memory: extend of_memory by LPDDR3 support

2019-09-06 Thread Lukasz Luba
On 9/4/19 8:31 PM, Krzysztof Kozlowski wrote: > On Wed, Aug 21, 2019 at 12:42:58PM +0200, Lukasz Luba wrote: >> The patch adds AC timings information needed to support LPDDR3 and memory >> controllers. The structure is used in of_memory and currently in Exynos >> 5422 DMC. Add parsing data

Re: [PATCH v13 5/8] drivers: memory: add DMC driver for Exynos5422

2019-09-06 Thread Lukasz Luba
On 9/4/19 8:35 PM, Krzysztof Kozlowski wrote: > On Wed, Aug 21, 2019 at 12:43:00PM +0200, Lukasz Luba wrote: >> This patch adds driver for Exynos5422 Dynamic Memory Controller. >> The driver provides support for dynamic frequency and voltage scaling >> for DMC and DRAM. It supports changing

[PATCH 4/4] gpio: devres: Switch to EXPORT_SYMBOL_GPL()

2019-09-06 Thread Geert Uytterhoeven
Change all exported symbols for managed GPIO functions from EXPORT_SYMBOL() to EXPORT_SYMBOL_GPL(), like is used for their non-managed counterparts. Signed-off-by: Geert Uytterhoeven --- The only exception was gpiod_get_from_of_node(), as everything in drivers/gpio/gpiolib-of.c used

Re: [RFC PATCH v2] mm: initialize struct pages reserved by ZONE_DEVICE driver.

2019-09-06 Thread David Hildenbrand
On 06.09.19 10:09, Toshiki Fukasawa wrote: > A kernel panic is observed during reading > /proc/kpage{cgroup,count,flags} for first few pfns allocated by > pmem namespace: > > BUG: unable to handle page fault for address: fffe > [ 114.495280] #PF: supervisor read access in kernel mode

[PATCH 3/4] gpio: of: Switch to EXPORT_SYMBOL_GPL()

2019-09-06 Thread Geert Uytterhoeven
All exported functions provide genuine Linux-specific functionality. Signed-off-by: Geert Uytterhoeven --- drivers/gpio/gpiolib-of.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/gpio/gpiolib-of.c b/drivers/gpio/gpiolib-of.c index

[PATCH 2/4] gpio: of: Make of_gpio_simple_xlate() private

2019-09-06 Thread Geert Uytterhoeven
Since commit 9a95e8d25a140ba9 ("gpio: remove etraxfs driver"), there are no more users of of_gpio_simple_xlate() outside gpiolib-of.c. All GPIO drivers that need it now rely on of_gpiochip_add() setting it up as the default translate function. Signed-off-by: Geert Uytterhoeven ---

[PATCH 1/4] gpio: of: Make of_get_named_gpiod_flags() private

2019-09-06 Thread Geert Uytterhoeven
Since commit f626d6dfb7098525 ("gpio: of: Break out OF-only code"), there are no more users of of_get_named_gpiod_flags() outside gpiolib-of.c. Signed-off-by: Geert Uytterhoeven --- drivers/gpio/gpiolib-of.c | 2 +- drivers/gpio/gpiolib-of.h | 7 --- 2 files changed, 1 insertion(+), 8

  1   2   3   4   5   6   7   8   9   >