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 len

[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

[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 b/drivers/staging

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; mark.rutl...@arm.com

[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 --- drivers/staging/rtl8

[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 b/drivers/staging/rtl

[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 a/drivers/staging/rtl872

[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 changed

[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 --- drive

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 J

[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 a/driv

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'

[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 ata1

[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 module.

[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 d

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) BUG

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 chec

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. P

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

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 > > c

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 exec

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 adóterhek

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,

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: [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: > > > > https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Flkml.org%2Flkml%2F2019%2F5%2F2%2F170&data=02%7C01%7Cabel.vesa%40nxp.com%7Ccd18ca91df204bd6f99408d6eaacf258%7C6

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 configuration

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 code.

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; > > + > > /* > >

[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 Jone

[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 a/driv

[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. Signed-o

[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 insert

[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

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' reference,

[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 knowledg

[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 descr

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.

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 dashboard

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. > > > > Absol

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 ar

[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 --- a

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: ->sb_add_m

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 + > > + m

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 lon

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 selinu

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: https:

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: [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 func_b(int

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 opcode

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). Th

[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 --- a/inclu

[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 am

[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 funct

[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 a/drivers/sou

[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 patc

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 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 b86992145799..8da1a8d2d

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! > > > > > However,

[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. Signed-off

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); > } whil

[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 tre

[PATCH V3 1/2] arm64/mm: Consolidate page fault information capture

2019-06-07 Thread Anshuman Khandual
This consolidates page fault information capture and move them bit earlier. While here it also adds an wrapper is_write_abort(). It also saves some cycles by replacing multiple user_mode() calls into a single one earlier during the fault. Signed-off-by: Anshuman Khandual Cc: Catalin Marinas Cc:

Re: [PATCH v2 4/7] cpufreq: add driver for Raspbery Pi

2019-06-07 Thread Stefan Wahren
Hi Viresh, Am 07.06.19 um 05:09 schrieb Viresh Kumar: > On 06-06-19, 11:23, Stephen Boyd wrote: >> Yes, thanks. I see that largely follows the commit description so it >> looks OK to me. > Do you want to provide your Reviewed/Acked-by tag before I apply it ? Nicolas wanted to send a V3 of this se

[GIT PULL] Power management fixes for v5.2-rc4

2019-06-07 Thread Rafael J. Wysocki
Hi Linus, Please pull from the tag git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git \ pm-5.2-rc4 with top-most commit a964d23c94e8177c501fc9a37dcf1f0dd2750527 Merge branch 'pm-x86' on top of commit f2c7c76c5d0a443053e94adb9f0918fa2fb85c3a Linux 5.2-rc3 to receive power m

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

2019-06-07 Thread Jon Hunter
On 07/06/2019 06:50, Peter Ujfalusi wrote: > 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 starva

pull-request: wireless-drivers 2019-06-07

2019-06-07 Thread Kalle Valo
Hi Dave, here's a pull request to net tree for 5.2, more info below. Please let me know if there are any problems. Kalle The following changes since commit 3e66b7cc50ef921121babc91487e1fb98af1ba6e: net: tulip: de4x5: Drop redundant MODULE_DEVICE_TABLE() (2019-05-26 21:50:11 -0700) are avail

Re: [PATCH v2 01/17] perf tools: Configure contextID tracing in CPU-wide mode

2019-06-07 Thread Suzuki K Poulose
Hi Mathieu, On 24/05/2019 18:34, Mathieu Poirier wrote: When operating in CPU-wide mode being notified of contextID changes is required so that the decoding mechanic is aware of the process context switch. Signed-off-by: Mathieu Poirier Reviewed-by: Suzuki K Poulose I am sorry but, I do

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

2019-06-07 Thread Jon Hunter
On 06/06/2019 18:25, Dmitry Osipenko wrote: > 06.06.2019 19:53, Jon Hunter пишет: >> >> On 06/06/2019 17:44, Dmitry Osipenko wrote: >>> 06.06.2019 19:32, Jon Hunter пишет: On 06/06/2019 16:18, Dmitry Osipenko wrote: ... >>> If I understood everything correctly, the FI

Re: [PATCH v7 1/6] dt-bindings: add binding for USBSS-DRD controller.

2019-06-07 Thread Roger Quadros
On 07/06/2019 07:46, Pawel Laszczak wrote: > >> >> Pawel, >> >> On 05/06/2019 13:03, Pawel Laszczak wrote: >>> This patch aim at documenting USB related dt-bindings for the >>> Cadence USBSS-DRD controller. >>> >>> Signed-off-by: Pawel Laszczak >>> Reviewed-by: Rob Herring >>> >>> --- >>> .../d

Re: [PATCH v2 2/7] clk: bcm283x: add driver interfacing with Raspberry Pi's firmware

2019-06-07 Thread Stefan Wahren
Hi Nicolas, Am 06.06.19 um 16:22 schrieb Nicolas Saenz Julienne: > Raspberry Pi's firmware offers an interface though which update it's > clock's frequencies. This is specially useful in order to change the CPU > clock (pllb_arm) which is 'owned' by the firmware and we're unable to > scale using t

Re: [PATCH v3 1/8] arm64: Do not enable IRQs for ct_user_exit

2019-06-07 Thread James Morse
Hi Julien, On 06/06/2019 10:31, Julien Thierry wrote: > For el0_dbg and el0_error, DAIF bits get explicitly cleared before > calling ct_user_exit. > > When context tracking is disabled, DAIF gets set (almost) immediately > after. When context tracking is enabled, among the first things done > is

Re: [PATCH v2] x86/resctrl: Don't stop walking closids when a locksetup group is found

2019-06-07 Thread James Morse
Hi, On 06/06/2019 14:08, Sasha Levin wrote: > This commit has been processed because it contains a "Fixes:" tag, > fixing commit: dfe9674b04ff x86/intel_rdt: Enable entering of > pseudo-locksetup mode. > > The bot has tested the following trees: v5.1.7, v5.0.21, v4.19.48. > v5.1.7: Failed to ap

Re: [PATCH 1/1] eventfd new tag EFD_VPOLL: generate epoll events

2019-06-07 Thread Renzo Davoli
Hi Roman, On Thu, Jun 06, 2019 at 10:11:57PM +0200, Roman Penyaev wrote: > Hi Renzo, > On 2019-06-03 17:00, Renzo Davoli wrote: > > Please, have a look of the README.md page here: > > https://github.com/virtualsquare/vuos > Is that similar to what user-mode linux does? I mean the principle. let

Re: [PATCH v2 02/17] perf tools: Configure timestsamp generation in CPU-wide mode

2019-06-07 Thread Suzuki K Poulose
On 24/05/2019 18:34, Mathieu Poirier wrote: When operating in CPU-wide mode tracers need to generate timestamps in order to correlate the code being traced on one CPU with what is executed on other CPUs. Signed-off-by: Mathieu Poirier --- tools/perf/arch/arm/util/cs-etm.c | 57

Re: [PATCH v2 2/7] clk: bcm283x: add driver interfacing with Raspberry Pi's firmware

2019-06-07 Thread Nicolas Saenz Julienne
On Fri, 2019-06-07 at 11:26 +0200, Stefan Wahren wrote: > Hi Nicolas, > > Am 06.06.19 um 16:22 schrieb Nicolas Saenz Julienne: > > Raspberry Pi's firmware offers an interface though which update it's > > clock's frequencies. This is specially useful in order to change the CPU > > clock (pllb_arm)

Re: [PATCH v3 net-next 00/17] PTP support for the SJA1105 DSA driver

2019-06-07 Thread Vladimir Oltean
On Fri, 7 Jun 2019 at 06:32, Richard Cochran wrote: > > On Thu, Jun 06, 2019 at 04:40:19PM +0300, Vladimir Oltean wrote: > > Plain and simply because it doesn't work very well. > > Even phc2sys from the system clock to the hardware (no timestamps > > involved) has trouble staying put (under 1000 n

Re: [PATCH] arm64: Fix comment after #endif

2019-06-07 Thread Catalin Marinas
On Fri, Jun 07, 2019 at 01:49:10AM +0200, Odin Ugedal wrote: > The config value used in the if was changed in > b433dce056d3814dc4b33e5a8a533d6401ffcfb0, but the comment on the > corresponding end was not changed. > > Signed-off-by: Odin Ugedal Queued for 5.3. Thanks. -- Catalin

Re: [PATCH v3 1/5] arch: riscv: add support for building DTB files from DT source data

2019-06-07 Thread Loys Ollivier
On Thu 06 Jun 2019 at 22:12, Paul Walmsley wrote: > On Tue, 4 Jun 2019, Loys Ollivier wrote: > >> Always build it ? >> Any particular reason to drop ARCH_SIFIVE ? > > Palmer had some reservations about it, so I dropped it for now. But then > as I was thinking about it, I remembered that I also

[PATCH] irqchip: Enable compile-testing for Renesas drivers

2019-06-07 Thread Geert Uytterhoeven
Enable compile-testing for all Renesas interrupt controller drivers, except for RENESAS_H8300H_INTC. The latter relies on a function (ctrl_bclr()) that is not available on other architectures. Signed-off-by: Geert Uytterhoeven --- drivers/irqchip/Kconfig | 20 1 file change

Re: [PATCH v2 3/4] perf augmented_raw_syscalls: Support arm64 raw syscalls

2019-06-07 Thread Leo Yan
Hi Arnaldo, On Thu, Jun 06, 2019 at 11:44:12AM -0300, Arnaldo Carvalho de Melo wrote: > Em Thu, Jun 06, 2019 at 10:12:31PM +0800, Leo Yan escreveu: > > Hi Arnaldo, > > > > On Thu, Jun 06, 2019 at 10:38:38AM -0300, Arnaldo Carvalho de Melo wrote: > > > Em Thu, Jun 06, 2019 at 05:48:44PM +0800, Leo

[PATCH 2/4] irqchip/renesas-irqc: Use proper irq_chip name and parent

2019-06-07 Thread Geert Uytterhoeven
The irq_chip .name field should contain the device's class (not instance) name, while .parent_device should point to the device itself. Signed-off-by: Geert Uytterhoeven --- drivers/irqchip/irq-renesas-irqc.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/irqchip/i

[PATCH 0/4] irqchip: renesas: Use proper irq_chip name and parent

2019-06-07 Thread Geert Uytterhoeven
Hi all, Recently, Marc pointed out some common misconceptions w.r.t. the .name and .parent_device fields in struct irq_chip. This patch series fixes them in the Renesas interrupt controller drivers. The first two patches are destined for the irqchip tree, the last two for the GPIO tree.

[PATCH 4/4] gpio: rcar: Use proper irq_chip name

2019-06-07 Thread Geert Uytterhoeven
The irq_chip .name field should contain the device's class name, not the instance's name. Signed-off-by: Geert Uytterhoeven --- drivers/gpio/gpio-rcar.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpio/gpio-rcar.c b/drivers/gpio/gpio-rcar.c index 70e95fc4779fe262.

[PATCH 1/4] irqchip/renesas-intc-irqpin: Use proper irq_chip name and parent

2019-06-07 Thread Geert Uytterhoeven
The irq_chip .name field should contain the device's class (not instance) name, while .parent_device should point to the device itself. Signed-off-by: Geert Uytterhoeven --- drivers/irqchip/irq-renesas-intc-irqpin.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/ir

[PATCH 3/4] gpio: em: Use proper irq_chip name

2019-06-07 Thread Geert Uytterhoeven
The irq_chip .name field should contain the device's class name, not the instance's name. Signed-off-by: Geert Uytterhoeven --- Untested due to lack of hardware. .parent_device not filled in as this driver doesn't use Runtime PM. --- drivers/gpio/gpio-em.c | 2 +- 1 file changed, 1 insertion(+),

Re: [PATCH v1] s390/pkey: Use -ENODEV instead of -EOPNOTSUPP

2019-06-07 Thread David Hildenbrand
On 03.06.19 11:08, Cornelia Huck wrote: > On Mon, 3 Jun 2019 10:14:53 +0200 > David Hildenbrand wrote: > >> On 03.06.19 09:48, Harald Freudenberger wrote: >>> On 31.05.19 11:36, David Hildenbrand wrote: systemd-modules-load.service automatically tries to load the pkey module on system

RE: [PATCH repost 0/5] Repost CAN and CANFD dt-bindings

2019-06-07 Thread Fabrizio Castro
Dear All, These patches have been around for a very long time now, is anybody willing to take them? Cheers, Fab > From: Fabrizio Castro > Sent: 09 May 2019 20:20 > Subject: [PATCH repost 0/5] Repost CAN and CANFD dt-bindings > > Dear All, > > I am reposting some CAN and CANFD related dt-bind

Re: [PATCH v2 2/7] clk: bcm283x: add driver interfacing with Raspberry Pi's firmware

2019-06-07 Thread Stefan Wahren
Am 07.06.19 um 11:42 schrieb Nicolas Saenz Julienne: > On Fri, 2019-06-07 at 11:26 +0200, Stefan Wahren wrote: >> Hi Nicolas, >> >> Am 06.06.19 um 16:22 schrieb Nicolas Saenz Julienne: >>> Raspberry Pi's firmware offers an interface though which update it's >>> clock's frequencies. This is speciall

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

2019-06-07 Thread Yoshihiro Shimoda
The powered flag should be set for any other phys anyway. Also the flag should be locked by the channel. Otherwise, after we have revised the device tree for the usb phy, the following warning happened during a second system suspend. And if the driver doesn't lock the flag, enabling the regulator i

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

2019-06-07 Thread Heikki Krogerus
On Wed, Jun 05, 2019 at 11:03:49AM +0100, Pawel Laszczak wrote: > diff --git a/drivers/usb/cdns3/debugfs.c b/drivers/usb/cdns3/debugfs.c > new file mode 100644 > index ..dfcbeb5e14f8 > --- /dev/null > +++ b/drivers/usb/cdns3/debugfs.c > @@ -0,0 +1,173 @@ > +// SPDX-License-Identifier: G

Re: [PATCH v2 7/7] arm64: defconfig: enable cpufreq support for RPi3

2019-06-07 Thread Stefan Wahren
Hi Nicolas, Am 06.06.19 um 16:23 schrieb Nicolas Saenz Julienne: > This enables both the new firmware clock driver and cpufreq driver > available for the RPi3 family of boards. > > Signed-off-by: Nicolas Saenz Julienne > --- > arch/arm64/configs/defconfig | 2 ++ > 1 file changed, 2 insertions(+

Re: [bug report][stable] kernel tried to execute NX-protected page - exploit attempt? (uid: 0)

2019-06-07 Thread Joseph Qi
Hi all, Any idea on this regression? Thanks, Joseph On 19/6/5 18:23, Joseph Qi wrote: > Hi, > > I have encountered a kernel BUG when running ltp ftrace-stress-test > on 4.19.48. > > [ 209.704855] LTP: starting ftrace-stress-test (ftrace_stress_test.sh 90) > [ 209.739412] Scheduler tracepoint

Re: [PATCH v2 7/7] arm64: defconfig: enable cpufreq support for RPi3

2019-06-07 Thread Nicolas Saenz Julienne
On Fri, 2019-06-07 at 12:19 +0200, Stefan Wahren wrote: > Hi Nicolas, > > Am 06.06.19 um 16:23 schrieb Nicolas Saenz Julienne: > > This enables both the new firmware clock driver and cpufreq driver > > available for the RPi3 family of boards. > > > > Signed-off-by: Nicolas Saenz Julienne > > ---

[PATCH v2] platform/chrome: cros_ec_lpc: Choose Microchip EC at runtime

2019-06-07 Thread Enric Balletbo i Serra
On many boards, communication between the kernel and the Embedded Controller happens over an LPC bus. In these cases, the kernel config CONFIG_CROS_EC_LPC is enabled. Some of these LPC boards contain a Microchip Embedded Controller (MEC) that is different from the regular EC. On these devices, the

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

2019-06-07 Thread Jon Hunter
On 07/06/2019 10:18, Jon Hunter wrote: > > On 07/06/2019 06:50, Peter Ujfalusi wrote: >> 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

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

2019-06-07 Thread Mark Rutland
On Fri, Jun 07, 2019 at 02:43:06PM +0530, Anshuman Khandual wrote: > __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

  1   2   3   4   5   6   7   8   9   10   >