Re: [PATCH 4/5] mm/hotplug: Avoid RCU stalls when removing large amounts of memory

2019-06-16 Thread Alastair D'Silva
On Mon, 2019-06-17 at 09:53 +0300, Mike Rapoport wrote: > On Mon, Jun 17, 2019 at 02:36:30PM +1000, Alastair D'Silva wrote: > > From: Alastair D'Silva > > > > When removing sufficiently large amounts of memory, we trigger RCU > > stall > > detection. By periodically calling cond_resched(), we avo

[PATCH] net: remove duplicate fetch in sock_getsockopt

2019-06-16 Thread JingYi Hou
In sock_getsockopt(), 'optlen' is fetched the first time from userspace. 'len < 0' is then checked. Then in condition 'SO_MEMINFO', 'optlen' is fetched the second time from userspace. If change it between two fetches may cause security problems or unexpected behaivor, and there is no reason to fet

[RFC PATCH v5] rtl8xxxu: Improve TX performance of RTL8723BU on rtl8xxxu driver

2019-06-16 Thread Chris Chiu
We have 3 laptops which connect the wifi by the same RTL8723BU. The PCI VID/PID of the wifi chip is 10EC:B720 which is supported. They have the same problem with the in-kernel rtl8xxxu driver, the iperf (as a client to an ethernet-connected server) gets ~1Mbps. Nevertheless, the signal strength is

Re: [PATCH 4/5] mm/hotplug: Avoid RCU stalls when removing large amounts of memory

2019-06-16 Thread Mike Rapoport
On Mon, Jun 17, 2019 at 02:36:30PM +1000, Alastair D'Silva wrote: > From: Alastair D'Silva > > When removing sufficiently large amounts of memory, we trigger RCU stall > detection. By periodically calling cond_resched(), we avoid bogus stall > warnings. > > Signed-off-by: Alastair D'Silva > ---

Re: [PATCH 3/5] mm: Don't manually decrement num_poisoned_pages

2019-06-16 Thread Mike Rapoport
On Mon, Jun 17, 2019 at 02:36:29PM +1000, Alastair D'Silva wrote: > From: Alastair D'Silva > > Use the function written to do it instead. > > Signed-off-by: Alastair D'Silva Reviewed-by: Mike Rapoport > --- > mm/sparse.c | 4 +++- > 1 file changed, 3 insertions(+), 1 deletion(-) > > diff -

Re: [PATCH 2/5] mm: don't hide potentially null memmap pointer in sparse_remove_one_section

2019-06-16 Thread Mike Rapoport
On Mon, Jun 17, 2019 at 02:36:28PM +1000, Alastair D'Silva wrote: > From: Alastair D'Silva > > By adding offset to memmap before passing it in to clear_hwpoisoned_pages, > is hides a potentially null memmap from the null check inside > clear_hwpoisoned_pages. > > This patch passes the offset to

Re: remove dead powernv code v2

2019-06-16 Thread Christoph Hellwig
ping? On Thu, May 23, 2019 at 09:49:20AM +0200, Christoph Hellwig wrote: > Hi all, > > the powerpc powernv port has a fairly large chunk of code that never > had any upstream user. We generally strive to not keep dead code > around, and this was affirmed at least years Maintainer summit. > > Ch

Re: [PATCH 1/5] mm: Trigger bug on if a section is not found in __section_nr

2019-06-16 Thread Mike Rapoport
On Mon, Jun 17, 2019 at 02:36:27PM +1000, Alastair D'Silva wrote: > From: Alastair D'Silva > > If a memory section comes in where the physical address is greater than > that which is managed by the kernel, this function would not trigger the > bug and instead return a bogus section number. > > T

[PATCH] modules: fix BUG when load module with rodata=n

2019-06-16 Thread Yang Yingliang
When loading a module with rodata=n, it causes an executing NX-protected page BUG. [ 32.379191] kernel tried to execute NX-protected page - exploit attempt? (uid: 0) [ 32.382917] BUG: unable to handle page fault for address: c0005000 [ 32.385947] #PF: supervisor instruction fetch in

Re: [PATCH 1/2] dt-bindings: pinctrl: qcom: Add SM8150 pinctrl binding

2019-06-16 Thread Manivannan Sadhasivam
Hey Vinod, On Fri, Jun 14, 2019 at 11:00:31AM +0530, Vinod Koul wrote: > From: Prasad Sodagudi > > Add the binding for the TLMM pinctrl block found in the SM8150 platform. > > Signed-off-by: Prasad Sodagudi > Signed-off-by: Isaac J. Manjarres > Signed-off-by: Vinod Koul > --- > .../bindings

Re: general protection fault in oom_unkillable_task

2019-06-16 Thread Michal Hocko
On Sat 15-06-19 09:11:37, Shakeel Butt wrote: > On Sat, Jun 15, 2019 at 6:50 AM Michal Hocko wrote: [...] > > diff --git a/mm/oom_kill.c b/mm/oom_kill.c > > index 5a58778c91d4..43eb479a5dc7 100644 > > --- a/mm/oom_kill.c > > +++ b/mm/oom_kill.c > > @@ -161,8 +161,8 @@ static bool oom_unkillable_ta

Re: [PATCH RESEND v3 2/3] KVM: vmx: Emulate MSR IA32_UMWAIT_CONTROL

2019-06-16 Thread Xiaoyao Li
On 6/17/2019 11:32 AM, Xiaoyao Li wrote: On 6/16/2019 5:55 PM, Tao Xu wrote: UMWAIT and TPAUSE instructions use IA32_UMWAIT_CONTROL at MSR index E1H to determines the maximum time in TSC-quanta that the processor can reside in either C0.1 or C0.2. This patch emulates MSR IA32_UMWAIT_CONT

Re: general protection fault in oom_unkillable_task

2019-06-16 Thread Michal Hocko
On Mon 17-06-19 00:13:47, Tetsuo Handa wrote: [...] > >From 415e52cf55bc4ad931e4f005421b827f0b02693d Mon Sep 17 00:00:00 2001 > From: Tetsuo Handa > Date: Mon, 17 Jun 2019 00:09:38 +0900 > Subject: [PATCH] mm: memcontrol: Use CSS_TASK_ITER_PROCS at > mem_cgroup_scan_tasks(). > > Since commit c03

Re: [RFC PATCH 07/16] x86/xen: make vcpu_info part of xenhost_t

2019-06-16 Thread Ankur Arora
On 2019-06-14 4:53 a.m., Juergen Gross wrote: On 09.05.19 19:25, Ankur Arora wrote: Abstract out xen_vcpu_id probing via (*probe_vcpu_id)(). Once that is availab,e the vcpu_info registration happens via the VCPUOP hypercall. Note that for the nested case, there are two vcpu_ids, and two vcpu_in

Re: [PATCH 2/2] pinctrl: qcom: Add SM8150 pinctrl driver

2019-06-16 Thread Vinod Koul
On 16-06-19, 21:17, Bjorn Andersson wrote: > On Thu 13 Jun 22:30 PDT 2019, Vinod Koul wrote: > > > From: Prasad Sodagudi > > > > Add initial pinctrl driver to support pin configuration with > > pinctrl framework for SM8150 > > > > Signed-off-by: Prasad Sodagudi > > Signed-off-by: Isaac J. Manj

Re: [PATCH 1/2] dt-bindings: pinctrl: qcom: Add SM8150 pinctrl binding

2019-06-16 Thread Vinod Koul
On 16-06-19, 21:20, Bjorn Andersson wrote: > On Thu 13 Jun 22:30 PDT 2019, Vinod Koul wrote: > > +- reg: > > + Usage: required > > + Value type: > > + Definition: the base address and size of the north, south , west > > Extra space after south. Thanks will fix that > > +- #gpio-cells: >

RE: [PATCH v2 1/3] ACPI: Resolve objects on host-directed table loads

2019-06-16 Thread Nikolaus Voss
Bob, On Fri, 14 Jun 2019, Moore, Robert wrote: -Original Message- From: Nikolaus Voss [mailto:n...@vosn.de] Sent: Friday, June 14, 2019 2:26 AM To: Rafael J. Wysocki Cc: Rafael J. Wysocki ; Len Brown ; Moore, Robert ; Schmauss, Erik ; Jacek Anaszewski ; Pavel Machek ; Dan Murphy ; T

[PATCH] builddeb: generate multi-arch friendly linux-libc-dev package

2019-06-16 Thread Cedric Hombourger
Debian-based distributions place libc header files in a machine specific directory (/usr/include/) instead of /usr/include/asm to support installation of the linux-libc-dev package from multiple architectures. Move headers installed by "make headers_install" accordingly. Signed-off-by: Cedric Homb

Re: [PATCH 2/2] mwifiex: use 'total_ie_len' in mwifiex_update_bss_desc_with_ie()

2019-06-16 Thread Takashi Iwai
On Sat, 15 Jun 2019 02:13:21 +0200, Brian Norris wrote: > > This is clearer than copy/pasting the magic number '+ 2' around, and it > even saves the need for one existing comment. > > Cc: Takashi Iwai > Signed-off-by: Brian Norris Reviewed-by: Takashi Iwai thanks, Takashi

Re: [PATCH 5.2 1/2] mwifiex: Don't abort on small, spec-compliant vendor IEs

2019-06-16 Thread Takashi Iwai
On Sat, 15 Jun 2019 02:13:20 +0200, Brian Norris wrote: > > Per the 802.11 specification, vendor IEs are (at minimum) only required > to contain an OUI. A type field is also included in ieee80211.h (struct > ieee80211_vendor_ie) but doesn't appear in the specification. The > remaining fields (subt

Re: [RFC PATCH 09/16] xen/evtchn: support evtchn in xenhost_t

2019-06-16 Thread Ankur Arora
On 2019-06-14 5:04 a.m., Juergen Gross wrote: On 09.05.19 19:25, Ankur Arora wrote: Largely mechanical patch that adds a new param, xenhost_t * to the evtchn interfaces. The evtchn port instead of being domain unique, is now scoped to xenhost_t. As part of upcall handling we now look at all the

[PATCH] powerpc/32s: fix suspend/resume when IBATs 4-7 are used

2019-06-16 Thread Christophe Leroy
Previously, only IBAT1 and IBAT2 were used to map kernel linear mem. Since commit 63b2bc619565 ("powerpc/mm/32s: Use BATs for STRICT_KERNEL_RWX"), we may have all 8 BATs used for mapping kernel text. But the suspend/restore functions only save/restore BATs 0 to 3, and clears BATs 4 to 7. Make susp

Re: [PATCH] timers: Fix up get_target_base() to use old base properly

2019-06-16 Thread Thomas Gleixner
Peter, On Mon, 3 Jun 2019, Peter Xu wrote: > get_target_base() in the timer code is not using the "base" parameter > at all. My gut feeling is that instead of removing that extra > parameter, what we really want to do is "return the old base if it > does not suite for a new one". Gut feelings a

linux-next: manual merge of the cgroup tree with Linus' tree

2019-06-16 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the cgroup tree got a conflict in: Documentation/cgroup-v1/blkio-controller.rst between commit: fb5772cbfe48 ("blkio-controller.txt: Remove references to CFQ") from Linus' tree and commit: 99c8b231ae6c ("docs: cgroup-v1: convert docs to ReST and renam

Re: [PATCH 1/2] mmc: mediatek: fix SDIO IRQ interrupt handle flow

2019-06-16 Thread jjian zhou
On Fri, 2019-06-14 at 17:46 +0800, Ulf Hansson wrote: > On Fri, 14 Jun 2019 at 07:26, Jjian Zhou wrote: > > > > From: jjian zhou > > > > SDIO IRQ is triggered by low level. It need disable SDIO IRQ > > detected function. Otherwise the interrupt register can't be cleared. > > It will process the i

Re: [PATCH] fsi: sbefifo: Don't fail operations when in SBE IPL state

2019-06-16 Thread Joel Stanley
On Mon, 17 Jun 2019 at 02:09, Alistair Popple wrote: > > On Monday, 21 January 2019 11:15:58 AM AEST Eddie James wrote: > > SBE fifo operations should be allowed while the SBE is in any of the > > "IPL" states. Operations should succeed in this state. > > > > Signed-off-by: Eddie James > > This f

Re: [PATCH v7 18/18] x86/fsgsbase/64: Add documentation for FSGSBASE

2019-06-16 Thread Thomas Gleixner
Chang, On Mon, 17 Jun 2019, Bae, Chang Seok wrote: Can you please use proper quoting style? > On Jun 16, 2019, at 15:00, Thomas Gleixner > mailto:t...@linutronix.de>> wrote: > > > > > -GCC version 4.6.4 and newer provide instrinsics for the FSGSBASE > > > +GCC version 6 and newer provide instr

Gold Bars Purchase/Investment!!

2019-06-16 Thread Emmanuel Akwasi
Greetings My name is Mr. Emmanuel Akwasi from Odikro Royal Family Upper East Region, Ghana. We are a group of local gold Miners and end sellers we are looking for a direct buyer or an agent who will help us look for buyer on Commission basis. The Purity of our gold is 93% and 22Carats Plus a

[PATCH V7] i2c: tegra: remove BUG, BUG_ON

2019-06-16 Thread Bitan Biswas
Remove BUG, BUG_ON as it makes system usable: - Remove redundant BUG_ON calls or replace with WARN_ON_ONCE as needed. - Remove BUG() and mask Rx interrupt similar as Tx for message fully sent case. - Add caller error handling and WARN_ON_ONCE check for non-zero rx_fifo_avail in tegra_i2

[PATCH v3 5/7] perf diff: Link same basic blocks among different data

2019-06-16 Thread Jin Yao
The target is to compare the performance difference (cycles diff) for the same basic blocks in different data files. The same basic block means same function, same start address and same end address. This patch finds the same basic blocks from different data files and link them together and resort

[PATCH v3 6/7] perf diff: Print the basic block cycles diff

2019-06-16 Thread Jin Yao
perf record -b ./div perf record -b ./div Following is the default perf diff output # perf diff # Event 'cycles' # # Baseline Delta Abs Shared Object Symbol # . # 49.03% +0.30% div [.] m

[PATCH v3 7/7] perf diff: Documentation -c cycles option

2019-06-16 Thread Jin Yao
Documentation the new computation selection 'cycles'. Signed-off-by: Jin Yao --- tools/perf/Documentation/perf-diff.txt | 14 +++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/tools/perf/Documentation/perf-diff.txt b/tools/perf/Documentation/perf-diff.txt index facd9

[PATCH v3 3/7] perf diff: Check if all data files with branch stacks

2019-06-16 Thread Jin Yao
We will expand perf diff to support diff cycles of individual programs blocks, so it requires all data files having branch stacks. This patch checks HEADER_BRANCH_STACK in header, and only set the flag has_br_stack when HEADER_BRANCH_STACK are set in all data files. v2: --- Move check_file_brs

[PATCH v3 2/7] perf util: Add block_info in hist_entry

2019-06-16 Thread Jin Yao
The block_info contains the program basic block information, i.e, contains the start address and the end address of this basic block and how much cycles it takes. We need to compare, sort and even print out the basic block by some orders, i.e. sort by cycles. For this purpose, we add block_info fi

[PATCH v3 4/7] perf diff: Use hists to manage basic blocks per symbol

2019-06-16 Thread Jin Yao
The hist__account_cycles() can account cycles per basic block. The basic block information is saved in cycles_hist structure. This patch processes each symbol, get basic blocks from cycles_hist and add the basic block entries to a new hists (in 'struct block_hist'). Using a hists is because we nee

[PATCH v3 1/7] perf util: Create block_info structure

2019-06-16 Thread Jin Yao
perf diff currently can only diff symbols(functions). We should expand it to diff cycles of individual programs blocks as reported by timed LBR. This would allow to identify changes in specific code accurately. We need a new structure to maintain the basic block information, such as, symbol(functi

[PATCH v3 0/7] perf diff: diff cycles at basic block level

2019-06-16 Thread Jin Yao
In some cases small changes in hot loops can show big differences. But it's difficult to identify these differences. perf diff currently can only diff symbols (functions). We can also expand it to diff cycles of individual programs blocks as reported by timed LBR. This would allow to identify chan

linux-next: build warnings after merge of the clockevents tree

2019-06-16 Thread Stephen Rothwell
Hi all, After merging the clockevents tree, today's linux-next build (arm multi_v7_defconfig) produced these warnings: In file included from arch/arm/kernel/vdso.c:30: arch/arm/include/asm/arch_timer.h: In function 'arch_timer_set_evtstrm_feature': arch/arm/include/asm/arch_timer.h:131:1: warning

[PATCH] nvdimm: remove prototypes for nonexistent functions

2019-06-16 Thread Alastair D'Silva
From: Alastair D'Silva These functions don't exist, so remove the prototypes for them. Signed-off-by: Alastair D'Silva --- drivers/nvdimm/nd-core.h | 4 1 file changed, 4 deletions(-) diff --git a/drivers/nvdimm/nd-core.h b/drivers/nvdimm/nd-core.h index 391e88de3a29..57d162dbefaa 100644

Re: [PATCH v2 0/2] Add macb support for SiFive FU540-C000

2019-06-16 Thread Yash Shah
On Mon, Jun 17, 2019 at 9:49 AM Yash Shah wrote: > > On FU540, the management IP block is tightly coupled with the Cadence > MACB IP block. It manages many of the boundary signals from the MACB IP > This patchset controls the tx_clk input signal to the MACB IP. It > switches between the local TX c

[PATCH] ocxl: Allow contexts to be attached with a NULL mm

2019-06-16 Thread Alastair D'Silva
From: Alastair D'Silva If an OpenCAPI context is to be used directly by a kernel driver, there may not be a suitable mm to use. The patch makes the mm parameter to ocxl_context_attach optional. Signed-off-by: Alastair D'Silva --- drivers/misc/ocxl/context.c | 9 ++--- drivers/misc/ocxl/l

[PATCH 1/5] mm: Trigger bug on if a section is not found in __section_nr

2019-06-16 Thread Alastair D'Silva
From: Alastair D'Silva If a memory section comes in where the physical address is greater than that which is managed by the kernel, this function would not trigger the bug and instead return a bogus section number. This patch tracks whether the section was actually found, and triggers the bug if

[PATCH 4/5] mm/hotplug: Avoid RCU stalls when removing large amounts of memory

2019-06-16 Thread Alastair D'Silva
From: Alastair D'Silva When removing sufficiently large amounts of memory, we trigger RCU stall detection. By periodically calling cond_resched(), we avoid bogus stall warnings. Signed-off-by: Alastair D'Silva --- mm/memory_hotplug.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/mm/me

[PATCH 0/5] mm: Cleanup & allow modules to hotplug memory

2019-06-16 Thread Alastair D'Silva
From: Alastair D'Silva This series addresses some minor issues found when developing a persistent memory driver. As well as cleanup code, it also exports try_online_node so that it can be called from driver modules that provide access to additional physical memory. Alastair D'Silva (5): mm: T

[PATCH 5/5] mm/hotplug: export try_online_node

2019-06-16 Thread Alastair D'Silva
From: Alastair D'Silva If an external driver module supplies physical memory and needs to expose the memory on a specific NUMA node, it needs to be able to call try_online_node to allocate the data structures for the node. The previous assertion that all callers want to online the node, and that

[PATCH 2/5] mm: don't hide potentially null memmap pointer in sparse_remove_one_section

2019-06-16 Thread Alastair D'Silva
From: Alastair D'Silva By adding offset to memmap before passing it in to clear_hwpoisoned_pages, is hides a potentially null memmap from the null check inside clear_hwpoisoned_pages. This patch passes the offset to clear_hwpoisoned_pages instead, allowing memmap to successfully peform it's null

[PATCH 3/5] mm: Don't manually decrement num_poisoned_pages

2019-06-16 Thread Alastair D'Silva
From: Alastair D'Silva Use the function written to do it instead. Signed-off-by: Alastair D'Silva --- mm/sparse.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/mm/sparse.c b/mm/sparse.c index 66a99da9b11b..e2402937efe4 100644 --- a/mm/sparse.c +++ b/mm/sparse.c @@ -11,

Re: [PATCH v5 4/5] dt-bindings: mtd: Add bindings for TI's AM654 HyperBus memory controller

2019-06-16 Thread Vignesh Raghavendra
Hi, On 10/06/19 9:55 PM, Sergei Shtylyov wrote: > Hello! > > On 06/09/2019 01:32 PM, Vignesh Raghavendra wrote: > >> Add binding documentation for TI's HyperBus memory controller present on >> AM654 SoC. >> >> Signed-off-by: Vignesh Raghavendra >> --- >> v5: >> Update binding example to show MM

Re: [PATCH v4 0/5] THP aware uprobe

2019-06-16 Thread Song Liu
On Thu, Jun 13, 2019 at 10:58 AM Song Liu wrote: > > This set makes uprobe aware of THPs. > > Currently, when uprobe is attached to text on THP, the page is split by > FOLL_SPLIT. As a result, uprobe eliminates the performance benefit of THP. > > This set makes uprobe THP-aware. Instead of FOLL_SP

Re: [PATCH 2/2] pinctrl: qcom: Add SM8150 pinctrl driver

2019-06-16 Thread Bjorn Andersson
On Thu 13 Jun 22:30 PDT 2019, Vinod Koul wrote: > From: Prasad Sodagudi > > Add initial pinctrl driver to support pin configuration with > pinctrl framework for SM8150 > > Signed-off-by: Prasad Sodagudi > Signed-off-by: Isaac J. Manjarres I presume you did stuff to make it fit with my upstre

[PATCH v2 2/2] macb: Add support for SiFive FU540-C000

2019-06-16 Thread Yash Shah
The management IP block is tightly coupled with the Cadence MACB IP block on the FU540, and manages many of the boundary signals from the MACB IP. This patch only controls the tx_clk input signal to the MACB IP. Future patches may add support for monitoring or controlling other IP boundary signals.

[PATCH v2 1/2] macb: bindings doc: add sifive fu540-c000 binding

2019-06-16 Thread Yash Shah
Add the compatibility string documentation for SiFive FU540-C interface. On the FU540, this driver also needs to read and write registers in a management IP block that monitors or drives boundary signals for the GEMGXL IP block that are not directly mapped to GEMGXL registers. Therefore, add ad

Re: [PATCH 1/2] dt-bindings: pinctrl: qcom: Add SM8150 pinctrl binding

2019-06-16 Thread Bjorn Andersson
On Thu 13 Jun 22:30 PDT 2019, Vinod Koul wrote: > From: Prasad Sodagudi > > Add the binding for the TLMM pinctrl block found in the SM8150 platform. > > Signed-off-by: Prasad Sodagudi > Signed-off-by: Isaac J. Manjarres > Signed-off-by: Vinod Koul > --- > .../bindings/pinctrl/qcom,sm8150-pi

[PATCH v2 0/2] Add macb support for SiFive FU540-C000

2019-06-16 Thread Yash Shah
On FU540, the management IP block is tightly coupled with the Cadence MACB IP block. It manages many of the boundary signals from the MACB IP This patchset controls the tx_clk input signal to the MACB IP. It switches between the local TX clock (125MHz) and PHY TX clocks. This is necessary to toggle

Re: [PATCH] timers: Fix up get_target_base() to use old base properly

2019-06-16 Thread Peter Xu
On Mon, Jun 03, 2019 at 09:29:44PM +0800, Peter Xu wrote: > get_target_base() in the timer code is not using the "base" parameter > at all. My gut feeling is that instead of removing that extra > parameter, what we really want to do is "return the old base if it > does not suite for a new one". P

Re: [RFC v2 02/11] OPP: Make dev_pm_opp_set_rate() with freq=0 as valid

2019-06-16 Thread Rajendra Nayak
On 6/14/2019 12:02 PM, Viresh Kumar wrote: On 20-03-19, 15:19, Rajendra Nayak wrote: For devices with performance state, we use dev_pm_opp_set_rate() to set the appropriate clk rate and the performance state. We do need a way to *remove* the performance state vote when we idle the device and

Re: [PATCH v3] kasan: add memory corruption identification for software tag-based mode

2019-06-16 Thread Walter Wu
On Fri, 2019-06-14 at 10:32 +0800, Walter Wu wrote: > On Fri, 2019-06-14 at 01:46 +0800, Walter Wu wrote: > > On Thu, 2019-06-13 at 15:27 +0300, Andrey Ryabinin wrote: > > > > > > On 6/13/19 11:13 AM, Walter Wu wrote: > > > > This patch adds memory corruption identification at bug report for > > >

Re: [PATCH v2 2/5] x86: hv: hv_init.c: Add functions to allocate/deallocate page for Hyper-V

2019-06-16 Thread Maya Nakamura
On Wed, Jun 12, 2019 at 12:36:47PM +0200, Vitaly Kuznetsov wrote: > Maya Nakamura writes: > > > Introduce two new functions, hv_alloc_hyperv_page() and > > hv_free_hyperv_page(), to allocate/deallocate memory with the size and > > alignment that Hyper-V expects as a page. Although currently they

[PATCH v5] ASoC: max98090: remove 24-bit format support if RJ is 0

2019-06-16 Thread Yu-Hsuan Hsu
The supported formats are S16_LE and S24_LE now. However, S24_LE is not supported when TDM is 0 and it is not in the right justified mode. We should remove 24-bit format in that situation to avoid triggering error. Signed-off-by: Yu-Hsuan Hsu --- The datasheet said that when TDM=0 and RJ=0, S24_L

Re: linux-next: manual merge of the mlx5-next tree with Linus' tree

2019-06-16 Thread Leon Romanovsky
On Mon, Jun 17, 2019 at 12:19:59PM +1000, Stephen Rothwell wrote: > Hi Leon, > > Today's linux-next merge of the mlx5-next tree got a conflict in: > > include/linux/mlx5/eswitch.h > > between commit: > > 02f3afd97556 ("net/mlx5: E-Switch, Correct type to u16 for vport_num and > int for vport_i

Re: [RFC v2 01/11] OPP: Don't overwrite rounded clk rate

2019-06-16 Thread Viresh Kumar
On 14-06-19, 10:57, Viresh Kumar wrote: > Hmm, so this patch won't break anything and I am inclined to apply it again :) > > Does anyone see any other issues with it, which I might be missing ? I have updated the commit log a bit more to clarify on things, please let me know if it looks okay.

Re: [PATCH 6/6] drm/msm/gpu: add ocmem init/cleanup functions

2019-06-16 Thread Bjorn Andersson
On Sun 16 Jun 17:18 PDT 2019, Brian Masney wrote: > Hi Bjorn, > > On Sun, Jun 16, 2019 at 11:06:33AM -0700, Bjorn Andersson wrote: > > > diff --git a/drivers/gpu/drm/msm/adreno/adreno_gpu.c > > > b/drivers/gpu/drm/msm/adreno/adreno_gpu.c > > > index 6f7f4114afcf..e0a9409c8a32 100644 > > > --- a/

Re: [PATCH 1/3] x86/resctrl: Get max rmid and occupancy scale directly from CPUID instead of cpuinfo_x86

2019-06-16 Thread Fenghua Yu
On Sun, Jun 16, 2019 at 07:52:33PM +0200, Borislav Petkov wrote: > On Sun, Jun 16, 2019 at 10:14:08AM -0700, Fenghua Yu wrote: > > @@ -617,13 +617,20 @@ static void l3_mon_evt_init(struct rdt_resource *r) > > list_add_tail(&mbm_local_event.list, &r->evt_list); > > } > > > > -int rdt_

linux-next: manual merge of the imx-drm tree with the v4l-vdb tree

2019-06-16 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the imx-drm tree got a conflict in: drivers/staging/media/imx/imx-ic-prpencvf.c between commits: 6d01b7ff5233 ("media: staging/imx: Switch to sync registration for IPU subdevs") 34ff38745b16 ("media: staging/imx: Pass device to alloc/free_dma_buf") fr

Re: [PATCH] MAINTAINERS: fpga: hand off maintainership to Moritz

2019-06-16 Thread Moritz Fischer
Hi Alan, On Sun, Jun 16, 2019 at 10:11:13PM -0500, Alan Tull wrote: > I'm moving on to a new position and stepping down as FPGA subsystem > maintainer. Moritz has graciously agreed to take over the > maintainership. Thanks a lot for all the work you put into this, it was good fun working with yo

Re: [PATCH RESEND v3 2/3] KVM: vmx: Emulate MSR IA32_UMWAIT_CONTROL

2019-06-16 Thread Xiaoyao Li
On 6/16/2019 5:55 PM, Tao Xu wrote: UMWAIT and TPAUSE instructions use IA32_UMWAIT_CONTROL at MSR index E1H to determines the maximum time in TSC-quanta that the processor can reside in either C0.1 or C0.2. This patch emulates MSR IA32_UMWAIT_CONTROL in guest and differentiate IA32_UMWAIT_CON

Re: [PATCH v3, 27/27] drm/mediatek: add support for mediatek SOC MT8183

2019-06-16 Thread CK Hu
Hi, Yongqiang: On Wed, 2019-06-05 at 19:43 +0800, yongqiang@mediatek.com wrote: > From: Yongqiang Niu > > This patch add support for mediatek SOC MT8183 > 1.ovl_2l share driver with ovl > 2.rdma1 share drive with rdma0, but fifo size is different > 3.add mt8183 mutex private data, and mmsys

Re: [PATCH] clk: Do a DT parent lookup even when index < 0

2019-06-16 Thread Chen-Yu Tsai
On Sat, Jun 15, 2019 at 2:10 AM Stephen Boyd wrote: > > We want to allow the parent lookup to happen even if the index is some > value less than 0. This may be the case if a clk provider only specifies > the .name member to match a string in the "clock-names" DT property. We > shouldn't require th

Re: [PATCH 1/3] x86/resctrl: Get max rmid and occupancy scale directly from CPUID instead of cpuinfo_x86

2019-06-16 Thread Fenghua Yu
On Sun, Jun 16, 2019 at 10:24:13PM +0200, Thomas Gleixner wrote: > On Sun, 16 Jun 2019, Fenghua Yu wrote: > > > Although x86_cache_max_rmid and x86_cache_occ_scale are only read once > > during resctrl initialization, they are always stored in cpuinfo_x86 for > > each CPU during run time without u

Re: linux-next: manual merge of the drm-misc tree with the amdgpu tree

2019-06-16 Thread Stephen Rothwell
Hi all, On Wed, 12 Jun 2019 11:46:15 +1000 Stephen Rothwell wrote: > > Hi all, > > Today's linux-next merge of the drm-misc tree got a conflict in: > > drivers/gpu/drm/amd/display/dc/dce/dce_audio.c > > between commit: > > c7c7192c56d2 ("drm/amd/display: add audio related regs") > > fro

linux-next: manual merge of the drm-intel tree with the pci tree

2019-06-16 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the drm-intel tree got a conflict in: drivers/gpu/drm/i915/i915_drv.h between commit: 151f4e2bdc7a ("docs: power: convert docs to ReST and rename to *.rst") from the pci tree and commit: 1bf676cc2dba ("drm/i915: move and rename i915_runtime_pm") from

Re: [PATCH 12/19] btrfs: expire submit buffer on timeout

2019-06-16 Thread Damien Le Moal
On 2019/06/13 23:15, Josef Bacik wrote: > On Fri, Jun 07, 2019 at 10:10:18PM +0900, Naohiro Aota wrote: >> It is possible to have bios stalled in the submit buffer due to some bug or >> device problem. In such situation, btrfs stops working waiting for buffered >> bios completions. To avoid such ha

Re: [PATCH 11/19] btrfs: introduce submit buffer

2019-06-16 Thread Damien Le Moal
Josef, On 2019/06/13 23:15, Josef Bacik wrote: > On Fri, Jun 07, 2019 at 10:10:17PM +0900, Naohiro Aota wrote: >> Sequential allocation is not enough to maintain sequential delivery of >> write IOs to the device. Various features (async compress, async checksum, >> ...) of btrfs affect ordering of

Re: [PATCH, RFC 49/62] mm, x86: export several MKTME variables

2019-06-16 Thread Kai Huang
On Fri, 2019-06-14 at 13:56 +0200, Peter Zijlstra wrote: > On Wed, May 08, 2019 at 05:44:09PM +0300, Kirill A. Shutemov wrote: > > From: Kai Huang > > > > KVM needs those variables to get/set memory encryption mask. > > > > Signed-off-by: Kai Huang > > Signed-off-by: Kirill A. Shutemov > > ---

linux-next: manual merge of the amdgpu tree with Linus' tree

2019-06-16 Thread Stephen Rothwell
Hi Alex, Today's linux-next merge of the amdgpu tree got a conflict in: drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c between commits: 192905989302 ("drm/amd/amdgpu: add RLC firmware to support raven1 refresh") f3a5231c8f14 ("drm/amdgpu: return 0 by default in amdgpu_pm_load_smu_firmware") fro

[PATCH] MAINTAINERS: fpga: hand off maintainership to Moritz

2019-06-16 Thread Alan Tull
I'm moving on to a new position and stepping down as FPGA subsystem maintainer. Moritz has graciously agreed to take over the maintainership. Signed-off-by: Alan Tull --- MAINTAINERS | 1 - 1 file changed, 1 deletion(-) diff --git a/MAINTAINERS b/MAINTAINERS index 80e2bfa049d7..448730982545 10

Re: [PATCH v2] RISC-V: Break load reservations during switch_to

2019-06-16 Thread Palmer Dabbelt
On Sun, 16 Jun 2019 10:54:06 PDT (-0700), j...@sing.id.au wrote: On 19-06-07 15:22:22, Palmer Dabbelt wrote: The comment describes why in detail. This was found because QEMU never gives up load reservations, the issue is unlikely to manifest on real hardware. Makes sense, however it obviously

Re: [PATCH V3 5/5] cpufreq: Add QoS requests for userspace constraints

2019-06-16 Thread Viresh Kumar
On 14-06-19, 10:14, Matthias Kaehlcke wrote: > Hi Viresh, > > On Mon, Jun 10, 2019 at 04:21:36PM +0530, Viresh Kumar wrote: > > This implements QoS requests to manage userspace configuration of min > > and max frequency. > > > > Signed-off-by: Viresh Kumar > > --- > > drivers/cpufreq/cpufreq.c

Re: [PATCH v2] soc: aspeed: lpc-ctrl: make parameter optional

2019-06-16 Thread Andrew Jeffery
On Sat, 15 Jun 2019, at 07:11, Vijay Khemka wrote: > Hi Andrew, > Any update on this patch or do I need any more rework. No, no more reworks. I've pinged Joel, he'll pick it up. Andrew

Re: [PATCH v3, 26/27] drm/mediatek: add clock property check before get it

2019-06-16 Thread CK Hu
Hi, Yongqiang: On Wed, 2019-06-05 at 19:43 +0800, yongqiang@mediatek.com wrote: > From: Yongqiang Niu > > This patch add clock property check before get it In the binding document [1], clock is required property. In this patch, you change it to optional property. I think you should change t

Re: [PATCH V3 4/5] cpufreq: Register notifiers with the PM QoS framework

2019-06-16 Thread Viresh Kumar
On 14-06-19, 09:46, Matthias Kaehlcke wrote: > Hi Viresh, > > On Mon, Jun 10, 2019 at 04:21:35PM +0530, Viresh Kumar wrote: > > This registers the notifiers for min/max frequency constraints with the > > PM QoS framework. The constraints are also taken into consideration in > > cpufreq_set_policy(

Re: WARNING in kvm_arch_vcpu_ioctl_run (3)

2019-06-16 Thread syzbot
syzbot has found a reproducer for the following crash on: HEAD commit:963172d9 Merge branch 'x86-urgent-for-linus' of git://git... git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=11422276a0 kernel config: https://syzkaller.appspot.com/x/.config?x=fa9f7e

Re: [RFC PATCH v3 00/16] Core scheduling v3

2019-06-16 Thread Aubrey Li
On Thu, Jun 13, 2019 at 11:22 AM Julien Desfossez wrote: > > On 12-Jun-2019 05:03:08 PM, Subhra Mazumdar wrote: > > > > On 6/12/19 9:33 AM, Julien Desfossez wrote: > > >After reading more traces and trying to understand why only untagged > > >tasks are starving when there are cpu-intensive tasks r

[PATCH v2] perf vendor events: Add Icelake V1.00 event file

2019-06-16 Thread Haiyan Song
Add a Intel event file for perf. Signed-off-by: Haiyan Song --- tools/perf/pmu-events/arch/x86/icelake/cache.json | 552 + .../arch/x86/icelake/floating-point.json | 102 +++ .../perf/pmu-events/arch/x86/icelake/frontend.json | 424 ++ tools/perf/pmu-events/arch/x8

Re: [PATCH v2 00/19] btrfs zoned block device support

2019-06-16 Thread Damien Le Moal
David, On 2019/06/13 22:45, David Sterba wrote: > On Thu, Jun 13, 2019 at 04:59:23AM +, Naohiro Aota wrote: >> On 2019/06/13 2:50, David Sterba wrote: >>> On Fri, Jun 07, 2019 at 10:10:06PM +0900, Naohiro Aota wrote: btrfs zoned block device support This series adds zoned block

Re: [RFC] switch nds32 to use the generic remapping DMA allocator

2019-06-16 Thread Greentime Hu
Christoph Hellwig 於 2019年6月14日 週五 下午8:22寫道: > > On Fri, Jun 14, 2019 at 07:35:29PM +0800, Greentime Hu wrote: > > It looks good to me. I just verified in nds32 platform and it works fine. > > Should I put it in my next-tree or you will pick it up in your tree? :) > > Either way works for me, let m

kernel/workqueue.c:3030 __flush_work+0x2c2/0x2d0

2019-06-16 Thread Naresh Kamboju
Kernel warning while running kernel selftest bpf test_sockmap test case on x86_64 and arm64. The kernel warning log pops up continuously. Linux version 5.1.10-rc2 Steps to reproduce: Boot stable rc 5.1.10-rc2 kernel on x86_64 or arm64 cd selftests/bpf ./test_sockmap [ 37.600406] WARNING: CPU:

Re: [PATCH -next] mm/hotplug: skip bad PFNs from pfn_to_online_page()

2019-06-16 Thread Qian Cai
> On Jun 16, 2019, at 11:42 AM, Dan Williams wrote: > > On Fri, Jun 14, 2019 at 1:43 PM Qian Cai wrote: >> >> On Fri, 2019-06-14 at 12:48 -0700, Dan Williams wrote: >>> On Fri, Jun 14, 2019 at 12:40 PM Qian Cai wrote: On Fri, 2019-06-14 at 11:57 -0700, Dan Williams wrote: > O

linux-next: manual merge of the mlx5-next tree with Linus' tree

2019-06-16 Thread Stephen Rothwell
Hi Leon, Today's linux-next merge of the mlx5-next tree got a conflict in: include/linux/mlx5/eswitch.h between commit: 02f3afd97556 ("net/mlx5: E-Switch, Correct type to u16 for vport_num and int for vport_index") from Linus' tree and commit: 82b11f071936 ("net/mlx5: Expose eswitch en

Re: [PATCH] fsi: sbefifo: Don't fail operations when in SBE IPL state

2019-06-16 Thread Alistair Popple
This fixed the problem I was having trying to issue istep operations to the SBE. Tested-by: Alistair Popple On Monday, 21 January 2019 11:15:58 AM AEST Eddie James wrote: > SBE fifo operations should be allowed while the SBE is in any of the > "IPL" states. Operations should succeed in this sta

[PATCH v3 3/7] lib/hexdump.c: Optionally suppress lines of repeated bytes

2019-06-16 Thread Alastair D'Silva
From: Alastair D'Silva Some buffers may only be partially filled with useful data, while the rest is padded (typically with 0x00 or 0xff). This patch introduces a flag to allow the supression of lines of repeated bytes, which are replaced with '** Skipped %u bytes of value 0x%x **' An inline wr

[PATCH v3 6/7] lib/hexdump.c: Allow multiple groups to be separated by spaces

2019-06-16 Thread Alastair D'Silva
From: Alastair D'Silva Similar to the previous patch, this patch separates groups by 2 spaces for the hex fields, and 1 space for the ASCII field. eg. buf:: 454d414e 43415053 4e495f45 00584544 NAMESPAC E_INDEX. buf:0010: 0002 Sign

[PATCH v3 7/7] lib/hexdump.c: Optionally retain byte ordering

2019-06-16 Thread Alastair D'Silva
From: Alastair D'Silva The behaviour of hexdump groups is to print the data out as if it was a native-endian number. This patch tweaks the documentation to make this clear, and also adds the HEXDUMP_RETAIN_BYTE_ORDER flag to allow groups of multiple bytes to be printed without affecting the orde

[PATCH v3 2/7] lib/hexdump.c: Relax rowsize checks in hex_dump_to_buffer

2019-06-16 Thread Alastair D'Silva
From: Alastair D'Silva This patch removes the hardcoded row limits and allows for other lengths. These lengths must still be a multiple of groupsize. This allows structs that are not 16/32 bytes to display on a single line. This patch also expands the self-tests to test row sizes up to 64 bytes

[PATCH v3 1/7] lib/hexdump.c: Fix selftests

2019-06-16 Thread Alastair D'Silva
From: Alastair D'Silva The overflow tests did not account for the situation where no overflow occurs and len < rowsize. This patch renames the cryptic variables and accounts for the above case. The selftests now pass. Signed-off-by: Alastair D'Silva --- lib/test_hexdump.c | 47 ++

[PATCH v3 5/7] lib/hexdump.c: Allow multiple groups to be separated by lines '|'

2019-06-16 Thread Alastair D'Silva
From: Alastair D'Silva With the wider display format, it can become hard to identify how many bytes into the line you are looking at. The patch adds new flags to hex_dump_to_buffer() and print_hex_dump() to print vertical lines to separate every N groups of bytes. eg. buf:: 454d414e 434

[PATCH v3 0/7] Hexdump Enhancements

2019-06-16 Thread Alastair D'Silva
From: Alastair D'Silva Apologies for the large CC list, it's a heads up for those responsible for subsystems where a prototype change in generic code causes a change in those subsystems. This series enhances hexdump. These improve the readability of the dumped data in certain situations (eg. wi

[PATCH v3 4/7] lib/hexdump.c: Replace ascii bool in hex_dump_to_buffer with flags

2019-06-16 Thread Alastair D'Silva
From: Alastair D'Silva In order to support additional features in hex_dump_to_buffer, replace the ascii bool parameter with flags. Signed-off-by: Alastair D'Silva --- drivers/gpu/drm/i915/intel_engine_cs.c| 2 +- drivers/isdn/hardware/mISDN/mISDNisar.c | 6 -- drive

Re: [PATCH v3, 19/27] drm/mediatek: add function to background color input select for ovl/ovl_2l direct link

2019-06-16 Thread CK Hu
Hi, Yongqiang: On Wed, 2019-06-05 at 19:42 +0800, yongqiang@mediatek.com wrote: > From: Yongqiang Niu > > This patch add function to background color input select for ovl/ovl_2l > direct link > for ovl/ovl_2l direct link usecase, we need set background color > input select for these hardwar

linux-next: manual merge of the net-next tree with the net tree

2019-06-16 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the net-next tree got a conflict in: net/wireless/nl80211.c between commit: 180aa422ef27 ("nl80211: fill all policy .type entries") from the net tree and commit: 1a28ed213696 ("nl80211: fill all policy .type entries") from the net-next tree. I fixed

  1   2   3   >