[PATCH V3 2/2] arm64/mm: Refactor __do_page_fault()

2019-06-07 Thread Anshuman Khandual
__do_page_fault() is over complicated with multiple goto statements. This cleans up the code flow and while there drops local variable vm_fault_t. Signed-off-by: Anshuman Khandual Cc: Catalin Marinas Cc: Will Deacon Cc: Mark Rutland Cc: James Morse Cc: Andrey Konovalov Cc: Christoph Hellwig

[PATCH V3 0/2] arm64/mm: Clean ups for do_page_fault()

2019-06-07 Thread Anshuman Khandual
This contains some clean ups for page fault handling in do_page_fault(). This has been boot tested on arm64 platform along with some stress tests but just build tested on others. Contains remaining two patches from v3 series after the first two patches were merged. This series applies on arm64

Re: [PATCH] clk: fix a missing-free bug in clk_cpy_name()

2019-06-07 Thread Jiri Slaby
On 07. 06. 19, 3:52, Gen Zhang wrote: > @@ -3491,6 +3492,8 @@ static int clk_core_populate_parent_map(struct > clk_core *core) > kfree_const(parents[i].name); > kfree_const(parents[i].fw_name); > }

[PATCH] ARM: davinci: da850-evm: call regulator_has_full_constraints()

2019-06-07 Thread Bartosz Golaszewski
From: Bartosz Golaszewski The BB expander at 0x21 i2c bus 1 fails to probe on da850-evm because the board doesn't set has_full_constraints to true in the regulator API. Call regulator_has_full_constraints() at the end of board registration just like we do in da850-lcdk and da830-evm.

RE: [PATCH] phy: renesas: rcar-gen3-usb2: fix imbalance powered flag

2019-06-07 Thread Yoshihiro Shimoda
Hi Geert-san, > From: Geert Uytterhoeven, Sent: Wednesday, June 5, 2019 10:08 PM > > > From: Geert Uytterhoeven, Sent: Wednesday, June 5, 2019 6:25 PM > > > > > Thank you, this seems to fix the warning, so > > > Tested-by: Geert Uytterhoeven > > > > Thank you for the testing! > > > > >

[RFC PATCH 4/6] soundwire: stream: make stream name a const pointer

2019-06-07 Thread Srinivas Kandagatla
Make stream name const pointer Signed-off-by: Srinivas Kandagatla --- drivers/soundwire/stream.c| 2 +- include/linux/soundwire/sdw.h | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/soundwire/stream.c b/drivers/soundwire/stream.c index

Re: [PATCH v2] kernel: module: Use struct_size() helper

2019-06-07 Thread Jessica Yu
+++ Gustavo A. R. Silva [06/06/19 13:18 -0500]: One of the more common cases of allocation size calculations is finding the size of a structure that has a zero-sized array at the end, along with memory for some number of elements for that array. For example: struct module_sect_attrs {

[RFC PATCH 2/6] soundwire: Add compute_params callback

2019-06-07 Thread Srinivas Kandagatla
From: Vinod Koul This callback allows masters to compute the bus parameters required. Signed-off-by: Vinod Koul Signed-off-by: Srinivas Kandagatla --- drivers/soundwire/stream.c| 9 + include/linux/soundwire/sdw.h | 2 ++ 2 files changed, 11 insertions(+) diff --git

[RFC PATCH 0/6] soundwire: Add support to Qualcomm SoundWire master

2019-06-07 Thread Srinivas Kandagatla
Hi All, This patchset is very first version of Qualcomm SoundWire Master Controller found in most of Qualcomm SoCs and WCD audio codecs. This driver along with WCD934x codec and WSA881x Class-D Smart Speaker Amplifier drivers is on DragonBoard DB845c based of SDM845 SoC. WCD934x and WSA881x

[RFC PATCH 1/6] ASoC: core: add support to snd_soc_dai_get_sdw_stream()

2019-06-07 Thread Srinivas Kandagatla
On platforms which have smart speaker amplifiers connected via soundwire and modeled as aux devices in ASoC, in such usecases machine driver should be able to get sdw master stream from dai so that it can use the runtime stream to setup slave streams. soundwire already as a set function, get

[RFC PATCH 5/6] dt-bindings: soundwire: add bindings for Qcom controller

2019-06-07 Thread Srinivas Kandagatla
This patch adds bindings for Qualcomm soundwire controller. Qualcomm SoundWire Master controller is present in most Qualcomm SoCs either integrated as part of WCD audio codecs via slimbus or as part of SOC I/O. Signed-off-by: Srinivas Kandagatla --- .../bindings/soundwire/qcom,swr.txt

[RFC PATCH 3/6] soundwire: core: define SDW_MAX_PORT

2019-06-07 Thread Srinivas Kandagatla
This patch adds SDW_MAX_PORT so that other driver can use it. Signed-off-by: Srinivas Kandagatla --- include/linux/soundwire/sdw.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/linux/soundwire/sdw.h b/include/linux/soundwire/sdw.h index aac68e879fae..80ca997e4e5d 100644 ---

[RFC PATCH 6/6] soundwire: qcom: add support for SoundWire controller

2019-06-07 Thread Srinivas Kandagatla
Qualcomm SoundWire Master controller is present in most Qualcomm SoCs either integrated as part of WCD audio codecs via slimbus or as part of SOC I/O. This patchset adds support to a very basic controller which has been tested with WCD934x SoundWire controller connected to WSA881x smart speaker

Re: [PATCH v9 10/12] mm/devm_memremap_pages: Enable sub-section remap

2019-06-07 Thread Oscar Salvador
On Wed, Jun 05, 2019 at 02:58:53PM -0700, Dan Williams wrote: > Teach devm_memremap_pages() about the new sub-section capabilities of > arch_{add,remove}_memory(). Effectively, just replace all usage of > align_start, align_end, and align_size with res->start, res->end, and > resource_size(res).

Re: [PATCH 12/15] x86/static_call: Add out-of-line static call implementation

2019-06-07 Thread Peter Zijlstra
On Fri, Jun 07, 2019 at 10:38:46AM +0200, Peter Zijlstra wrote: > On Fri, Jun 07, 2019 at 06:13:58AM +, Nadav Amit wrote: > > > On Jun 5, 2019, at 6:08 AM, Peter Zijlstra wrote: > > > > +void arch_static_call_transform(void *site, void *tramp, void *func) > > > +{ > > > + unsigned char

Re: [PATCH 10/15] static_call: Add basic static call infrastructure

2019-06-07 Thread Ard Biesheuvel
On Fri, 7 Jun 2019 at 10:29, Peter Zijlstra wrote: > > On Thu, Jun 06, 2019 at 10:44:23PM +, Nadav Amit wrote: > > > + * Usage example: > > > + * > > > + * # Start with the following functions (with identical prototypes): > > > + * int func_a(int arg1, int arg2); > > > + * int

Re: [PATCH] Documentation: coresight: Update the generic device names

2019-06-07 Thread Suzuki K Poulose
Hi Leo, A Coresight PMU works the same way as any other PMU, i.e the name of the PMU is listed along with configuration options within forward slashes '/'. Since a Coresight system will typically have more than one sink, the name of the sink to -work with needs to be specified as an

Re: linux-next boot error: WARNING: workqueue cpumask: online intersect > possible intersect

2019-06-07 Thread Dmitry Vyukov
On Fri, Jun 7, 2019 at 10:33 AM syzbot wrote: > > Hello, > > syzbot found the following crash on: > > HEAD commit:ae3cad8f Add linux-next specific files for 20190603 > git tree: linux-next > console output: https://syzkaller.appspot.com/x/log.txt?x=164f802ea0 > kernel config:

Re: [PATCH v4] selinux: lsm: fix a missing-check bug in selinux_sb_eat_lsm_o pts()

2019-06-07 Thread Ondrej Mosnacek
On Thu, Jun 6, 2019 at 10:55 AM Gen Zhang wrote: > In selinux_sb_eat_lsm_opts(), 'arg' is allocated by kmemdup_nul(). It > returns NULL when fails. So 'arg' should be checked. And 'mnt_opts' > should be freed when error. > > Signed-off-by: Gen Zhang > Fixes: 99dbbb593fe6 ("selinux: rewrite

Re: [PATCH 12/15] x86/static_call: Add out-of-line static call implementation

2019-06-07 Thread Peter Zijlstra
On Fri, Jun 07, 2019 at 06:13:58AM +, Nadav Amit wrote: > > On Jun 5, 2019, at 6:08 AM, Peter Zijlstra wrote: > > +void arch_static_call_transform(void *site, void *tramp, void *func) > > +{ > > + unsigned char opcodes[CALL_INSN_SIZE]; > > + unsigned char insn_opcode; > > + unsigned

Re: [PATCH v3] selinux: lsm: fix a missing-check bug in selinux_add_mnt_opt( )

2019-06-07 Thread Ondrej Mosnacek
On Thu, Jun 6, 2019 at 11:23 AM Gen Zhang wrote: > In selinux_add_mnt_opt(), 'val' is allocated by kmemdup_nul(). It returns > NULL when fails. So 'val' should be checked. And 'mnt_opts' should be > freed when error. > > Signed-off-by: Gen Zhang > Fixes: 757cbe597fe8 ("LSM: new method:

Re: [PATCH 11/15] static_call: Add inline static call infrastructure

2019-06-07 Thread Peter Zijlstra
On Thu, Jun 06, 2019 at 10:24:17PM +, Nadav Amit wrote: > > +static void static_call_del_module(struct module *mod) > > +{ > > + struct static_call_site *start = mod->static_call_sites; > > + struct static_call_site *stop = mod->static_call_sites + > > +

[PATCH] MAINTAINERS: media: Add Tomasz Figa as a videobuf2 reviewer

2019-06-07 Thread Tomasz Figa
I tend to review most of the vb2 patches anyway and we need some active reviewers, so let add me to the MAINTAINERS file as such. Signed-off-by: Tomasz Figa --- MAINTAINERS | 1 + 1 file changed, 1 insertion(+) diff --git a/MAINTAINERS b/MAINTAINERS index 98cd84977350..b5f65f61becb 100644 ---

Re: [PATCH v9 08/12] mm/sparsemem: Support sub-section hotplug

2019-06-07 Thread Oscar Salvador
On Wed, Jun 05, 2019 at 02:58:42PM -0700, Dan Williams wrote: > The libnvdimm sub-system has suffered a series of hacks and broken > workarounds for the memory-hotplug implementation's awkward > section-aligned (128MB) granularity. For example the following backtrace > is emitted when attempting

linux-next boot error: WARNING: workqueue cpumask: online intersect > possible intersect

2019-06-07 Thread syzbot
Hello, syzbot found the following crash on: HEAD commit:ae3cad8f Add linux-next specific files for 20190603 git tree: linux-next console output: https://syzkaller.appspot.com/x/log.txt?x=164f802ea0 kernel config: https://syzkaller.appspot.com/x/.config?x=7ccec0766d83706f

Re: [PATCH 2/2] Revert "mm, thp: restore node-local hugepage allocations"

2019-06-07 Thread Michal Hocko
On Thu 06-06-19 15:12:40, David Rientjes wrote: > On Wed, 5 Jun 2019, Michal Hocko wrote: > > > > That's fine, but we also must be mindful of users who have used > > > MADV_HUGEPAGE over the past four years based on its hard-coded behavior > > > that would now regress as a result. > > > >

[PATCH v2 6/8] usb: dwc3: qcom: Add support for booting with ACPI

2019-06-07 Thread Lee Jones
In Linux, the DWC3 core exists as its own independent platform device. Thus when describing relationships in Device Tree, the current default boot configuration table option, the DWC3 core often resides as a child of the platform specific node. Both of which are given their own address space

Re: [PATCH v8 24/29] vfio: VFIO_IOMMU_BIND/UNBIND_MSI

2019-06-07 Thread Auger Eric
Hi Alex, On 6/4/19 12:32 AM, Alex Williamson wrote: > On Sun, 26 May 2019 18:09:59 +0200 > Eric Auger wrote: > >> This patch adds the VFIO_IOMMU_BIND/UNBIND_MSI ioctl which aim >> to pass/withdraw the guest MSI binding to/from the host. >> >> Signed-off-by: Eric Auger >> >> --- >> v6 -> v7: >>

[PATCH v2 4/8] pinctrl: qcom: sdm845: Provide ACPI support

2019-06-07 Thread Lee Jones
This patch provides basic support for booting with ACPI instead of the currently supported Device Tree. When doing so there are a couple of differences which we need to taken into consideration. Firstly, the SDM850 ACPI tables omit information pertaining to the 4 reserved GPIOs on the platform.

[PATCH v2 3/8] pinctrl: msm: Add ability for drivers to supply a reserved GPIO list

2019-06-07 Thread Lee Jones
When booting MSM based platforms with Device Tree or some ACPI implementations, it is possible to provide a list of reserved pins via the 'gpio-reserved-ranges' and 'gpios' properties respectively. However some ACPI tables are not populated with this information, thus it has to come from a

Re: [PATCH 10/15] static_call: Add basic static call infrastructure

2019-06-07 Thread Peter Zijlstra
On Thu, Jun 06, 2019 at 10:44:23PM +, Nadav Amit wrote: > > + * Usage example: > > + * > > + * # Start with the following functions (with identical prototypes): > > + * int func_a(int arg1, int arg2); > > + * int func_b(int arg1, int arg2); > > + * > > + * # Define a 'my_key'

[PATCH v2 7/8] usb: dwc3: qcom: Start USB in 'host mode' on the SDM845

2019-06-07 Thread Lee Jones
When booting with Device Tree, the current default boot configuration table option, the request to boot via 'host mode' comes from the 'dr_mode' property. A property of the same name can be used inside ACPI tables too. However it is missing from the SDM845's ACPI tables so we have to supply this

[PATCH v2 5/8] soc: qcom: geni: Add support for ACPI

2019-06-07 Thread Lee Jones
When booting with ACPI as the active set of configuration tables, all; clocks, regulators, pin functions ect are expected to be at their ideal values/levels/rates, thus the associated frameworks are unavailable. Ensure calls to these APIs are shielded when ACPI is enabled. Signed-off-by: Lee

[PATCH v2 1/8] i2c: i2c-qcom-geni: Provide support for ACPI

2019-06-07 Thread Lee Jones
Add a match table to allow automatic probing of ACPI device QCOM0220. Ignore clock attainment errors. Set default clock frequency value. Signed-off-by: Lee Jones --- drivers/i2c/busses/i2c-qcom-geni.c | 19 +-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git

[PATCH v2 8/8] usb: dwc3: qcom: Improve error handling

2019-06-07 Thread Lee Jones
dwc3_qcom_clk_init() is called with of_count_phandle_with_args() as an argument. If of_count_phandle_with_args() returns an error, the number of clocks will be a negative value and will lead to undefined behaviour. Ensure we check for an error before attempting to blindly use the value.

[PATCH v2 2/8] i2c: i2c-qcom-geni: Signify successful driver probe

2019-06-07 Thread Lee Jones
The Qualcomm Geni I2C driver currently probes silently which can be confusing when debugging potential issues. Add a low level (INFO) print when each I2C controller is successfully initially set-up. Signed-off-by: Lee Jones --- drivers/i2c/busses/i2c-qcom-geni.c | 2 ++ 1 file changed, 2

Re: [PATCH 08/15] x86/alternatives: Teach text_poke_bp() to emulate instructions

2019-06-07 Thread Peter Zijlstra
On Fri, Jun 07, 2019 at 05:41:42AM +, Nadav Amit wrote: > > int poke_int3_handler(struct pt_regs *regs) > > { > > + long ip = regs->ip - INT3_INSN_SIZE + CALL_INSN_SIZE; > > + struct opcode { > > + u8 insn; > > + s32 rel; > > + } __packed opcode; > > + > > /* > >

Re: [PATCH v7 03/14] x86/cet/ibt: Add IBT legacy code bitmap setup function

2019-06-07 Thread Peter Zijlstra
On Thu, Jun 06, 2019 at 01:09:15PM -0700, Yu-cheng Yu wrote: > Indirect Branch Tracking (IBT) provides an optional legacy code bitmap > that allows execution of legacy, non-IBT compatible library by an > IBT-enabled application. When set, each bit in the bitmap indicates > one page of legacy

Re: [PATCH 1/2] habanalabs: add rate-limit to an error message

2019-06-07 Thread Oded Gabbay
On Thu, Jun 6, 2019 at 9:54 PM Joe Perches wrote: > > On Thu, 2019-06-06 at 15:20 +0300, Oded Gabbay wrote: > > This patch changes the print of an error message about mis-configuration > > of the debug infrastructure to be rate-limited, to prevent flooding of > > kernel log, as these

Re: [RESEND v2 00/18] clk: imx: Switch the imx6 and imx7 to clk_hw based API

2019-06-07 Thread Abel Vesa
On 19-06-06 11:29:40, Stephen Boyd wrote: > Quoting Abel Vesa (2019-05-29 05:26:38) > > Resend for the following: > > > >

RE: [PATCH v7 5/6] usb:cdns3 Add Cadence USB3 DRD Driver

2019-06-07 Thread Pawel Laszczak
> >On 05/06/2019 13:03, Pawel Laszczak wrote: >> This patch introduce new Cadence USBSS DRD driver to Linux kernel. >> >> The Cadence USBSS DRD Driver is a highly configurable IP Core which >> can be instantiated as Dual-Role Device (DRD), Peripheral Only and >> Host Only (XHCI)configurations. >>

Re: [PATCH bpf] bpf: fix nested bpf tracepoints with per-cpu data

2019-06-07 Thread Steven Rostedt
On Thu, 6 Jun 2019 19:59:18 -0700 Andrii Nakryiko wrote: > On Thu, Jun 6, 2019 at 1:17 PM Matt Mullins wrote: > > > > BPF_PROG_TYPE_RAW_TRACEPOINTs can be executed nested on the same CPU, as > > they do not increment bpf_prog_active while executing. > > > > This enables three levels of nesting,

Béren felüli juttatások

2019-06-07 Thread Kapolcs Mátyás
Kedves Hölgyem/Uram! 2019 januárjától szinte minden béren kívüli juttatás jövedelemként fog adózni (kivételt képez ez alól a SZÉP kártya). A változások ellenére a vállalatok több mint 55%-a meg kívánja tartani a dolgozói juttatások nettó összegét, magára vállalva ezzel a megemelkedett

Re: 5.1 kernel: khugepaged stuck at 100%

2019-06-07 Thread Max Kellermann
On 2019/06/07 09:40, Max Kellermann wrote: > On 2019/06/06 19:24, Max Kellermann wrote: > > I have the same problem (kernel 5.1.7), but over here, it's a PHP > > process, not khugepaged, which is looping inside compaction_alloc. > > This is what happened an hour later: > > kernel tried to

Re: 5.1 kernel: khugepaged stuck at 100%

2019-06-07 Thread Oleksandr Natalenko
Hi. On Fri, Jun 07, 2019 at 09:40:52AM +0200, Max Kellermann wrote: > On 2019/06/06 19:24, Max Kellermann wrote: > > I have the same problem (kernel 5.1.7), but over here, it's a PHP > > process, not khugepaged, which is looping inside compaction_alloc. > > This is what happened an hour later:

Re: [PATCH 12/15] x86/static_call: Add out-of-line static call implementation

2019-06-07 Thread Steven Rostedt
On Fri, 7 Jun 2019 06:13:58 + Nadav Amit wrote: > > On Jun 5, 2019, at 6:08 AM, Peter Zijlstra wrote: > > > > From: Josh Poimboeuf > > > > Add the x86 out-of-line static call implementation. For each key, a > > permanent trampoline is created which is the destination for all static > >

Re: [PATCH 1/2] Input: synaptics-rmi4 - clear irqs before set irqs

2019-06-07 Thread Aaron Ma
Hi Dmitry: Will you apply them? Thanks, Aaron On 6/4/19 1:19 PM, Christopher Heiny wrote: > Given that, I'm willing to accept the patch as is. > > Cheers, > Chris

Thanks and I wait for your answer

2019-06-07 Thread Martins Henry
Hello, I am Martin Henry, An American Citizen; I am the personal secretary to Mr. Donald Railton, the controller of a Lottery Company. Please I am having big problem now, I have a 6yrs old daughter who has leukemia, a disease of the blood, and she needs a bone marrow transplant or she will die.

Re: [PATCH V5 1/3] mm/hotplug: Reorder arch_remove_memory() call in __remove_memory()

2019-06-07 Thread David Hildenbrand
On 07.06.19 04:28, Anshuman Khandual wrote: > > > On 05/30/2019 04:07 PM, Mark Rutland wrote: >> On Wed, May 29, 2019 at 02:46:25PM +0530, Anshuman Khandual wrote: >>> Memory hot remove uses get_nid_for_pfn() while tearing down linked sysfs >>> entries between memory block and node. It first

Re: 5.1 kernel: khugepaged stuck at 100%

2019-06-07 Thread Max Kellermann
On 2019/06/06 19:24, Max Kellermann wrote: > I have the same problem (kernel 5.1.7), but over here, it's a PHP > process, not khugepaged, which is looping inside compaction_alloc. This is what happened an hour later: kernel tried to execute NX-protected page - exploit attempt? (uid: 3)

[PATCH] drivers/ata: remove flood "Enabling discard_zeroes_data"

2019-06-07 Thread Konstantin Khlebnikov
Printing this at each SCSI READ_CAPACITY command is too verbose. Flag "discard_zeroes_data" is deprecated since commit 48920ff2a5a9 ("block: remove the discard_zeroes_data flag"). Signed-off-by: Konstantin Khlebnikov --- drivers/ata/libata-scsi.c |4 +--- 1 file changed, 1 insertion(+), 3

[PATCH] drivers/ata: print trim features at device initialization

2019-06-07 Thread Konstantin Khlebnikov
Print trim status once at ata device initialization in form: ataX.YZ: trim: , queued: , zero_after_trim: Full example: ata1: SATA link up 6.0 Gbps (SStatus 133 SControl 300) ata1.00: NCQ Send/Recv Log not supported ata1.00: ATA-9: SAMSUNG MZ7GE900HMHP-000DX, EXT03Y3Q, max UDMA/133

[PATCH] drivers/ata: cleanup creation of device sysfs attribute

2019-06-07 Thread Konstantin Khlebnikov
This patch merges common ATA and AHCI specific attribute "sw_activity" into one group with ->is_visible() method which hides attributes if feature is not supported by hardware. This allows to add all attributes in one place without exporting each piece for linking into another list in ahci

[PATCH] staging: rtl8723bs: os_dep: ioctl_linux.c: Remove return variables

2019-06-07 Thread Nishka Dasgupta
Remove return variables and return the values directly, as the functions all return 0 in all cases. Issue found with Coccinelle. Signed-off-by: Nishka Dasgupta --- drivers/staging/rtl8723bs/os_dep/ioctl_linux.c | 12 +++- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git

Re: [PATCH 0/2] block, bfq: add weight symlink to the bfq.weight cgroup parameter

2019-06-07 Thread Jens Axboe
On 5/21/19 2:01 AM, Paolo Valente wrote: > Many userspace tools and services use the proportional-share policy of > the blkio/io cgroups controller. The CFQ I/O scheduler implemented > this policy for the legacy block layer. To modify the weight of a > group in case CFQ was in charge, the 'weight'

Re: [PATCH] lockref: Limit number of cmpxchg loop retries

2019-06-07 Thread Jan Glauber
On Thu, Jun 06, 2019 at 10:28:12AM +, Jan Glauber wrote: > On Thu, Jun 06, 2019 at 10:41:54AM +0100, Will Deacon wrote: > > On Thu, Jun 06, 2019 at 08:03:27AM +, Jan Glauber wrote: > > > On Wed, Jun 05, 2019 at 01:16:46PM -0700, Linus Torvalds wrote: > > > > On Wed, Jun 5, 2019 at 6:49 AM

[PATCH 1/2] staging: rtl8723bs: rtw_os_recv_resource_alloc(): Change type

2019-06-07 Thread Nishka Dasgupta
Remove assignment of the return value of rtw_os_recv_resource_alloc as this assignment at the call site is never used. Remove return statement from rtw_os_recv_resource_alloc() as its return variable is never used. Change the type of the function to void. Signed-off-by: Nishka Dasgupta ---

[PATCH 2/2] staging: rtl8723bs: rtw_os_recvbuf_resource_free(): Change type

2019-06-07 Thread Nishka Dasgupta
Change return type of function rtw_os_recvbuf_resource_free to void as its return value is never stored, checked or otherwise used. Signed-off-by: Nishka Dasgupta --- drivers/staging/rtl8723bs/include/recv_osdep.h | 2 +- drivers/staging/rtl8723bs/os_dep/recv_linux.c | 6 +- 2 files

[PATCH] staging: rtl8723bs: hal: sdio_halinit.c: Remove variables

2019-06-07 Thread Nishka Dasgupta
Remove the variables RegRATR and RegRRSR as they are never used after initialisation and assignment. Issue found with Coccinelle. Signed-off-by: Nishka Dasgupta --- drivers/staging/rtl8723bs/hal/sdio_halinit.c | 11 --- 1 file changed, 11 deletions(-) diff --git

[PATCH] staging: rtl8723bs: hal: hal_btcoex.c: Remove variable

2019-06-07 Thread Nishka Dasgupta
Remove variable and use the values directly. Issue found with Coccinelle. Signed-off-by: Nishka Dasgupta --- drivers/staging/rtl8723bs/hal/hal_btcoex.c | 10 ++ 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/drivers/staging/rtl8723bs/hal/hal_btcoex.c

[PATCH] staging: rtl8723bs: core: Remove variable priority

2019-06-07 Thread Nishka Dasgupta
Remove local variable change_priority, as it takes the value of the argument priority; as both of these variables are of type u8, priority can be modified without changing the value of its copy at the call site. Issue found with Coccinelle. Signed-off-by: Nishka Dasgupta ---

RE: [PATCH v8 2/2] media: v4l: xilinx: Add Xilinx MIPI CSI-2 Rx Subsystem driver

2019-06-07 Thread Vishal Sagar
Hi Sakari, Thanks for reviewing. > -Original Message- > From: Sakari Ailus [mailto:sakari.ai...@linux.intel.com] > Sent: Wednesday, June 05, 2019 6:19 PM > To: Vishal Sagar > Cc: Hyun Kwon ; laurent.pinch...@ideasonboard.com; > mche...@kernel.org; robh...@kernel.org;

[PATCH] staging: rtl8723bs: hal: rtl8723b_cmd.c: Remove variables

2019-06-07 Thread Nishka Dasgupta
Remove variables that are declared and initialised but never used. Issue found with Coccinelle. Signed-off-by: Nishka Dasgupta --- drivers/staging/rtl8723bs/hal/rtl8723b_cmd.c | 6 -- 1 file changed, 6 deletions(-) diff --git a/drivers/staging/rtl8723bs/hal/rtl8723b_cmd.c

[PATCH] staging: rtl8723bs: core: rtw_mlme_ext.c: Remove unused variables

2019-06-07 Thread Nishka Dasgupta
Remove variables that are declared and assigned values but not otherwise used. Issue found with Coccinelle. Signed-off-by: Nishka Dasgupta --- drivers/staging/rtl8723bs/core/rtw_mlme_ext.c | 9 - 1 file changed, 9 deletions(-) diff --git a/drivers/staging/rtl8723bs/core/rtw_mlme_ext.c

Re: [PATCH] [RFC] dmaengine: add fifo_size member

2019-06-07 Thread Peter Ujfalusi
Jon, On 06/06/2019 15.37, Jon Hunter wrote: >> Looking at the drivers/dma/tegra210-adma.c for the >> TEGRA*_FIFO_CTRL_DEFAULT definition it is still not clear where the >> remote FIFO size would fit. >> There are fields for overflow and starvation(?) thresholds and TX/RX >> size (assuming word

Re: [PATCH] net: Fix hang while unregistering device bound to xdp socket

2019-06-07 Thread Björn Töpel
On 2019-06-07 08:36, Ilya Maximets wrote: On 06.06.2019 21:03, Jonathan Lemon wrote: On 6 Jun 2019, at 5:40, Ilya Maximets wrote: Device that bound to XDP socket will not have zero refcount until the userspace application will not close it. This leads to hang inside 'netdev_wait_allrefs()'

RE: [PATCH 0/6] net: can: xilinx_can: Bug fixes and Enhancements

2019-06-07 Thread Appana Durga Kedareswara Rao
Hi Marc, Friendly ping !! > -Original Message- > From: Appana Durga Kedareswara Rao > Sent: Tuesday, April 23, 2019 12:08 PM > To: 'Marc Kleine-Budde' ; 'w...@grandegger.com' > ; 'da...@davemloft.net' ; > Michal Simek > Cc: 'linux-...@vger.kernel.org' ; > 'net...@vger.kernel.org' ;

RE: [PATCH] usb: dwc3: gadget: Correct the logic for finding last SG entry

2019-06-07 Thread Felipe Balbi
Hi, Anurag Kumar Vulisha writes: >>> The dma_map_sg() merges sg1 & sg2 memory regions into sg1- >>>dma_address. >>> Similarly sg3 & sg4 into sg2->dma_address, sg5 & sg6 into the >>> sg3->dma_address and sg6 & sg8 into sg4->dma_address. Here the >>memory >>> regions are merged but the page_link

[PATCH 1/1] mm/page_owner: store page_owner's gfp_mask in stackdepot itself

2019-06-07 Thread Sai Charan Sane
Memory overhead of 4MB is reduced by storing gfp_mask in stackdepot along with stacktrace. Stackdepot memory usage increased by ~100kb for 4GB of RAM. Page owner logs from dmesg: Before patch: allocated 20971520 bytes of page_ext After patch:

Re: [PATCH] perf tools: Properly set the value of 'old' and 'head' in snapshot mode

2019-06-07 Thread Leo Yan
On Thu, Jun 06, 2019 at 05:10:56PM -0300, Arnaldo Carvalho de Melo wrote: > Em Wed, Jun 05, 2019 at 10:16:33AM -0600, Mathieu Poirier escreveu: > > This patch adds the necessay intelligence to properly compute the value > > of 'old' and 'head' when operating in snapshot mode. That way we can get

Re: [PATCH v2] edac: sifive: Add EDAC platform driver for SiFive SoCs

2019-06-07 Thread Borislav Petkov
On Wed, May 22, 2019 at 04:34:38AM -0500, Boris Petkov wrote: > >Still fine by me: > >Reviewed-by: James Morse > > > >(...this patch already has my reviewed-by on it...) > > > >I commented that it couldn't be merged in pieces here: >

Re: [PATCH] staging: rtl8723bs: Fix Unneeded variable: "ret". Return "0"

2019-06-07 Thread Bastien Nocera
On Thu, 2019-06-06 at 20:10 -0700, Shobhit Kukreti wrote: > coccicheck reported Unneeded variable ret at > rtl8723bs/core/rtw_ap.c:1400. > Function "rtw_acl_remove_sta" always returns 0. Modified return type > of the > function to void. > > Signed-off-by: Shobhit Kukreti Looks good, thanks.

Re: [PATCH -next] scsi: megaraid_sas: remove set but not used variables 'buff_addr' and 'ci_h'

2019-06-07 Thread Sumit Saxena
On Sat, May 25, 2019 at 6:10 PM YueHaibing wrote: > > Fixes gcc '-Wunused-but-set-variable' warnings: > > drivers/scsi/megaraid/megaraid_sas_base.c: In function > megasas_fw_crash_buffer_show: > drivers/scsi/megaraid/megaraid_sas_base.c:3138:16: warning: variable > buff_addr set but not used

Re: [PATCH] net: Fix hang while unregistering device bound to xdp socket

2019-06-07 Thread Ilya Maximets
On 06.06.2019 21:03, Jonathan Lemon wrote: > On 6 Jun 2019, at 5:40, Ilya Maximets wrote: > >> Device that bound to XDP socket will not have zero refcount until the >> userspace application will not close it. This leads to hang inside >> 'netdev_wait_allrefs()' if device unregistering requested:

[PATCHv16 3/3] ARM:drm ivip Intel FPGA Video and Image Processing Suite

2019-06-07 Thread Hean-Loong, Ong
From: "Ong, Hean Loong" Driver for Intel FPGA Video and Image Processing Suite Frame Buffer II. The driver only supports the Intel Arria10 devkit and its variants. This driver can be either loaded staticlly or in modules. The OF device tree binding is located at:

[PATCHv16 1/3] ARM:dt-bindings:display Intel FPGA Video and Image Processing Suite

2019-06-07 Thread Hean-Loong, Ong
From: "Ong, Hean Loong" Device tree binding for Intel FPGA Video and Image Processing Suite. The bindings would set the max width, max height, bits per pixel and memory port width. The device tree binding only supports the Intel Arria10 devkit and its variants. Vendor name retained as altr.

Re: [PATCH -next] scsi: megaraid_sas: remove set but not used variable 'sge_sz'

2019-06-07 Thread Sumit Saxena
On Sat, May 25, 2019 at 6:07 PM YueHaibing wrote: > > Fixes gcc '-Wunused-but-set-variable' warning: > > drivers/scsi/megaraid/megaraid_sas_base.c: In function > megasas_create_frame_pool: > drivers/scsi/megaraid/megaraid_sas_base.c:4124:6: warning: variable sge_sz > set but not used

linux-next: Tree for Jun 7

2019-06-07 Thread Stephen Rothwell
Hi all, There will be no linux-next release on Monday. Changes since 20190606: New tree: hmm The hwmon-fixes tree lost its build failure. The arm64 tree gained a conflict against the arm64-fixes tree. The sunxi tree gained a conflict against the imx-xms tree. The clk tree gained a conflict

Re: [PATCH] Powerpc/Watchpoint: Restore nvgprs while returning from exception

2019-06-07 Thread Ravi Bangoria
On 6/7/19 11:20 AM, Michael Ellerman wrote: > Ravi Bangoria writes: > >> Powerpc hw triggers watchpoint before executing the instruction. >> To make trigger-after-execute behavior, kernel emulates the >> instruction. If the instruction is 'load something into non- >> volatile register',

Re: [PATCH V3] i2c: busses: tegra: Add suspend-resume support

2019-06-07 Thread Dmitry Osipenko
07.06.2019 8:37, Bitan Biswas пишет: > Post suspend I2C registers have power on reset values. Before any > transfer initialize I2C registers to prevent I2C transfer timeout > and implement suspend and resume callbacks needed. Fix below errors > post suspend: > > 1) Tegra I2C transfer timeout

Re: [PATCH] powerpc/32s: fix booting with CONFIG_PPC_EARLY_DEBUG_BOOTX

2019-06-07 Thread Mathieu Malaterre
On Wed, Jun 5, 2019 at 1:32 PM Mathieu Malaterre wrote: > > On Mon, Jun 3, 2019 at 3:00 PM Christophe Leroy > wrote: > > > > When booting through OF, setup_disp_bat() does nothing because > > disp_BAT are not set. By change, it used to work because BOOTX > > buffer is mapped 1:1 at address

Re: [PATCH v4 10/15] drm/bridge: tc358767: Add support for address-only I2C transfers

2019-06-07 Thread Andrzej Hajda
On 07.06.2019 06:45, Andrey Smirnov wrote: > Transfer size of zero means a request to do an address-only > transfer. Since the HW support this, we probably shouldn't be just > ignoring such requests. While at it allow DP_AUX_I2C_MOT flag to pass > through, since it is supported by the HW as well.

Re: [PATCH V5 1/3] mm/hotplug: Reorder arch_remove_memory() call in __remove_memory()

2019-06-07 Thread Anshuman Khandual
On 05/30/2019 04:07 PM, Mark Rutland wrote: > On Wed, May 29, 2019 at 02:46:25PM +0530, Anshuman Khandual wrote: >> Memory hot remove uses get_nid_for_pfn() while tearing down linked sysfs >> entries between memory block and node. It first checks pfn validity with >> pfn_valid_within() before

Re: [PATCH 12/15] x86/static_call: Add out-of-line static call implementation

2019-06-07 Thread Nadav Amit
> On Jun 5, 2019, at 6:08 AM, Peter Zijlstra wrote: > > From: Josh Poimboeuf > > Add the x86 out-of-line static call implementation. For each key, a > permanent trampoline is created which is the destination for all static > calls for the given key. The trampoline has a direct jump which

Re: [PATCH v4 09/15] drm/bridge: tc358767: Use reported AUX transfer size

2019-06-07 Thread Andrzej Hajda
On 07.06.2019 06:45, Andrey Smirnov wrote: > Don't assume that requested data transfer size is the same as amount > of data that was transferred. Change the code to get that information > from DP0_AUXSTATUS instead. > > Since the check for AUX_BUSY in tc_aux_get_status() is pointless (it > will

Re: [PATCHv3 1/2] mm/gup: fix omission of check on FOLL_LONGTERM in get_user_pages_fast()

2019-06-07 Thread Pingfan Liu
On Fri, Jun 7, 2019 at 5:17 AM John Hubbard wrote: > > On 6/5/19 7:19 PM, Pingfan Liu wrote: > > On Thu, Jun 6, 2019 at 5:49 AM Andrew Morton > > wrote: > ... > >>> --- a/mm/gup.c > >>> +++ b/mm/gup.c > >>> @@ -2196,6 +2196,26 @@ static int __gup_longterm_unlocked(unsigned long > >>> start,

[PATCH 3/4] mm: thp: remove THP destructor

2019-06-07 Thread Yang Shi
The THP destructor is used to delete THP from per node deferred split queue, now the operation is moved out of it, so the destructor is not used anymore, remove it. Cc: Kirill Tkhai Cc: Johannes Weiner Cc: Michal Hocko Cc: "Kirill A . Shutemov" Cc: Hugh Dickins Cc: Shakeel Butt Cc: David

[PATCH 2/4] mm: thp: make deferred split shrinker memcg aware

2019-06-07 Thread Yang Shi
Currently THP deferred split shrinker is not memcg aware, this may cause premature OOM with some configuration. For example the below test would run into premature OOM easily: $ cgcreate -g memory:thp $ echo 4G > /sys/fs/cgroup/memory/thp/memory/limit_in_bytes $ cgexec -g memory:thp

Re: [PATCH 6/6] block: rename CONFIG_DEBUG_BLK_CGROUP to CONFIG_BFQ_CGROUP_DEBUG

2019-06-07 Thread Paolo Valente
> Il giorno 6 giu 2019, alle ore 12:26, Christoph Hellwig ha > scritto: > > This option is entirely bfq specific, give it an appropinquate name. > > Also make it depend on CONFIG_BFQ_GROUP_IOSCHED in Kconfig, as all > the functionality already does so anyway. > Acked-by: Paolo Valente >

[PATCH 1/4] mm: thp: extract split_queue_* into a struct

2019-06-07 Thread Yang Shi
Put split_queue, split_queue_lock and split_queue_len into a struct in order to reduce code duplication when we convert deferred_split to memcg aware in the later patches. Suggested-by: "Kirill A . Shutemov" Cc: Kirill Tkhai Cc: Johannes Weiner Cc: Michal Hocko Cc: Hugh Dickins Cc: Shakeel

[PATCH 4/4] mm: shrinker: make shrinker not depend on memcg kmem

2019-06-07 Thread Yang Shi
Currently shrinker is just allocated and can work when memcg kmem is enabled. But, THP deferred split shrinker is not slab shrinker, it doesn't make too much sense to have such shrinker depend on memcg kmem. It should be able to reclaim THP even though memcg kmem is disabled. Introduce a new

[v2 PATCH 0/4] Make deferred split shrinker memcg aware

2019-06-07 Thread Yang Shi
Currently THP deferred split shrinker is not memcg aware, this may cause premature OOM with some configuration. For example the below test would run into premature OOM easily: $ cgcreate -g memory:thp $ echo 4G > /sys/fs/cgroup/memory/thp/memory/limit_in_bytes $ cgexec -g memory:thp

Re: [PATCH V5] drivers: i2c: tegra: fix warning/check/error

2019-06-07 Thread Dmitry Osipenko
07.06.2019 8:25, Bitan Biswas пишет: > Fix checkpatch.pl warning(s)/error(s)/check(s) in i2c-tegra.c > > Ignore checkpatch WARNING for 80 character line limit at > places where renaming fields compromises readability. > > Delay of approximately 1msec in flush i2c FIFO polling loop > achieved by

Re: [PATCH v3 1/2] mt76: mt7615: enable support for mesh

2019-06-07 Thread Sebastian Gottschall
Am 06.06.2019 um 18:19 schrieb Lorenzo Bianconi: i tested your patch against a qca 9984 chipset using SAE and without encryption. both did not work. the devices are connecting, but no data connection is possible Hi Sebastian, I tested Ryder's patch using mt76x2 as mesh peer and it works fine

Re: [PATCH V5] drivers: i2c: tegra: fix warning/check/error

2019-06-07 Thread Wolfram Sang
On Thu, Jun 06, 2019 at 10:25:03PM -0700, Bitan Biswas wrote: > Fix checkpatch.pl warning(s)/error(s)/check(s) in i2c-tegra.c > > Ignore checkpatch WARNING for 80 character line limit at > places where renaming fields compromises readability. > > Delay of approximately 1msec in flush i2c FIFO

[PATCH v5 2/2] RISC-V: Setup initial page tables in two stages

2019-06-07 Thread Anup Patel
Currently, the setup_vm() does initial page table setup in one-shot very early before enabling MMU. Due to this, the setup_vm() has to map all possible kernel virtual addresses since it does not know size and location of RAM. This means we have kernel mappings for non-existent RAM and any buggy

[PATCH v5 1/2] RISC-V: Fix memory reservation in setup_bootmem()

2019-06-07 Thread Anup Patel
Currently, the setup_bootmem() reserves memory from RAM start to the kernel end. This prevents us from exploring ways to use the RAM below (or before) the kernel start hence this patch updates setup_bootmem() to only reserve memory from the kernel start to the kernel end. Suggested-by: Mike

[PATCH v5 0/2] Two-stagged initial page table setup

2019-06-07 Thread Anup Patel
This patchset implements two-stagged initial page table setup using fixmap to avoid mapping non-existent RAM and also reduce high_memory consumed by initial page tables. The patchset is based on Linux-5.2-rc3 and tested on SiFive Unleashed board and QEMU virt machine. These patches can be found

[PATCH] Staging: vc04_services : vchiq_core: Fix a brace issue

2019-06-07 Thread Maxime Desroches
Remove braces in a single line if statement in the vchiq_core.c file Signed-off-by: Maxime Desroches --- drivers/staging/vc04_services/interface/vchiq_arm/vchiq_core.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git

Re: [Lsf-pc] [LSF/MM TOPIC] The end of the DAX experiment

2019-06-07 Thread Dan Williams
On Wed, Jun 5, 2019 at 9:22 AM Goldwyn Rodrigues wrote: > > Hi Dan/Jerome, > > On 12:20 14/02, Dan Williams wrote: > > On Thu, Feb 14, 2019 at 12:09 PM Matthew Wilcox wrote: > > > > > > On Thu, Feb 14, 2019 at 11:31:24AM -0800, Dan Williams wrote: > > > > On Thu, Feb 14, 2019 at 11:10 AM Jerome

<    5   6   7   8   9   10   11   >