[v3,iproute2 2/2] iproute2: add gate action man page

2020-05-02 Thread Po Liu
This patch is to add the man page for the tc gate action. Signed-off-by: Po Liu --- man/man8/tc-gate.8 | 123 + 1 file changed, 123 insertions(+) create mode 100644 man/man8/tc-gate.8 diff --git a/man/man8/tc-gate.8 b/man/man8/tc-gate.8 new file mode

[v3,iproute2 1/2] iproute2:tc:action: add a gate control action

2020-05-02 Thread Po Liu
Introduce a ingress frame gate control flow action. Tc gate action does the work like this: Assume there is a gate allow specified ingress frames can pass at specific time slot, and also drop at specific time slot. Tc filter chooses the ingress frames, and tc gate action would specify what slot doe

Greetings From Miss Pamela Render Please I Need Your Urgent Reply!

2020-05-02 Thread Miss Pamela Render
Greetings From Miss Pamela Render Please I Need Your Urgent Reply! I'm Pamela Render, from USA. I am a highly motivated and willing to learn, I'm also hard working lady, very relaible. I really want to establish mutual friendship with you, I will introduce myself better as soon as i receive y

RE: Re: [v5,net-next 0/4] Introduce a flow gate control action and apply IEEE

2020-05-02 Thread Po Liu
Hi David, Stephen, > -Original Message- > From: David Miller > Sent: 2020年5月2日 7:09 > To: Po Liu > Cc: linux-kernel@vger.kernel.org; net...@vger.kernel.org; > vinicius.go...@intel.com; v...@buslov.dev; Claudiu Manoil > ; Vladimir Oltean ; > Alexandru Marginean ; > michael.c...@broadcom.c

BUG: stack guard page was hit in unwind_next_frame

2020-05-02 Thread syzbot
Hello, syzbot found the following crash on: HEAD commit:8999dc89 net/x25: Fix null-ptr-deref in x25_disconnect git tree: net console output: https://syzkaller.appspot.com/x/log.txt?x=1600444010 kernel config: https://syzkaller.appspot.com/x/.config?x=b7a70e992f2f9b68 dashboard link

Re: [PATCH v3 1/5] scsi: ufs: enable WriteBooster on some pre-3.1 UFS devices

2020-05-02 Thread Stanley Chu
Hi Can, On Sat, 2020-05-02 at 15:47 +0800, Can Guo wrote: > Hi Stanley, > On 2020-05-01 22:38, Stanley Chu wrote: > > WriteBooster feature can be supported by some pre-3.1 UFS devices > > by upgrading firmware. > > > > To enable WriteBooster feature in such devices, introduce a device > > quirk t

RE: [PATCH v3 3/5] scsi: ufs: add LU Dedicated buffer mode support for WriteBooster

2020-05-02 Thread Stanley Chu
Hi Avri, On Sat, 2020-05-02 at 15:32 +, Avri Altman wrote: > Hi Stanley, > Few more nits. > Thanks, > Avri All fixed in v4. Thanks for these suggestions. Stanley Chu > > > > > According to UFS specification, there are two WriteBooster mode of > > operations: "LU dedicated buffer" mode and

[PATCH v4 3/8] scsi: ufs: export ufs_fixup_device_setup() function

2020-05-02 Thread Stanley Chu
Export ufs_fixup_device_setup() to allow vendors to re-use it for fixing device quriks on specified UFS hosts. Signed-off-by: Stanley Chu --- drivers/scsi/ufs/ufshcd.c | 7 --- drivers/scsi/ufs/ufshcd.h | 4 +++- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/drivers/scsi/ufs

[PATCH v4 5/8] scsi: ufs: add "index" in parameter list of ufshcd_query_flag()

2020-05-02 Thread Stanley Chu
For preparation of LU Dedicated buffer mode support on WriteBooster feature, "index" parameter shall be added and allowed to be specified by callers. Signed-off-by: Stanley Chu Reviewed-by: Bean Huo Reviewed-by: Avri Altman Reviewed-by: Can Guo --- drivers/scsi/ufs/ufs-sysfs.c | 2 +- driver

[PATCH v4 8/8] scsi: ufs: cleanup WriteBooster feature

2020-05-02 Thread Stanley Chu
Small cleanup as below items, 1. Use ufshcd_is_wb_allowed() directly instead of ufshcd_wb_sup() since ufshcd_wb_sup() just returns the result of ufshcd_is_wb_allowed(). 2. In ufshcd_suspend(), "else if (!ufshcd_is_runtime_pm(pm_op)) can be simplified to "else" since both have the same me

[PATCH v4 1/8] scsi: ufs: enable WriteBooster on some pre-3.1 UFS devices

2020-05-02 Thread Stanley Chu
WriteBooster feature can be supported by some pre-3.1 UFS devices by upgrading firmware. To enable WriteBooster feature in such devices, introduce a device quirk to relax the entrance condition of ufshcd_wb_probe() to allow host driver to check those devices' WriteBooster capability. WriteBooster

[PATCH v4 2/8] scsi: ufs: introduce fixup_dev_quirks vops

2020-05-02 Thread Stanley Chu
Some UFS deivces may have required device quirks or have non-standard features which are enabled only on specified UFS hosts or for special customers. To not "pollute" common device quirk list, i.e., ufs_fixups table for those devices mentioned above, introduce "fixup_dev_quirks" vops to allow ven

[PATCH v4 6/8] scsi: ufs: add LU Dedicated buffer mode support for WriteBooster

2020-05-02 Thread Stanley Chu
According to UFS specification, there are two WriteBooster mode of operations: "LU dedicated buffer" mode and "shared buffer" mode. In the "LU dedicated buffer" mode, the WriteBooster Buffer is dedicated to a logical unit. If the device supports the "LU dedicated buffer" mode, this mode is configu

[PATCH v4 0/8] scsi: ufs: support LU Dedicated buffer mode for WriteBooster

2020-05-02 Thread Stanley Chu
Hi, This patchset adds LU dedicated buffer mode support for WriteBooster. In the meanwhile, enable WriteBooster capability on MediaTek UFS platforms. v3 -> v4: - Introduce "fixup_dev_quirks" vops to allow vendors to fix and modify device quirks, and provide an initial vendor-specific device qui

[PATCH v4 7/8] scsi: ufs-mediatek: enable WriteBooster capability

2020-05-02 Thread Stanley Chu
Enable WriteBooster capability on MediaTek UFS platforms. Signed-off-by: Stanley Chu Reviewed-by: Bean Huo --- drivers/scsi/ufs/ufs-mediatek.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/scsi/ufs/ufs-mediatek.c b/drivers/scsi/ufs/ufs-mediatek.c index ce7ba529e613..d503a9d8285

[PATCH v4 4/8] scsi: ufs-mediatek: add fixup_dev_quirks vops

2020-05-02 Thread Stanley Chu
Add fixup_dev_quirk vops in MediaTek UFS platforms and provide an initial vendor-specific device quirk table. Signed-off-by: Stanley Chu --- drivers/scsi/ufs/ufs-mediatek.c | 22 +++--- 1 file changed, 19 insertions(+), 3 deletions(-) diff --git a/drivers/scsi/ufs/ufs-mediatek.c

Re: [PATCH] net/mlx5: reduce stack usage in qp_read_field

2020-05-02 Thread Leon Romanovsky
On Thu, Apr 30, 2020 at 04:37:14PM +0200, Arnd Bergmann wrote: > On Thu, Apr 30, 2020 at 7:22 AM Leon Romanovsky wrote: > > On Tue, Apr 28, 2020 at 11:23:47PM +0200, Arnd Bergmann wrote: > > > Moving the mlx5_ifc_query_qp_out_bits structure on the stack was a bit > > > excessive and now causes the

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

2020-05-02 Thread Leon Romanovsky
On Fri, May 01, 2020 at 12:48:36PM +1000, Stephen Rothwell wrote: > Hi all, > > Today's linux-next merge of the net-next tree got a conflict in: > > drivers/net/ethernet/mellanox/mlx5/core/steering/dr_send.c > > between commit: > > 8075411d93b6 ("net/mlx5: DR, On creation set CQ's arm_db member

Re: [PATCH 2/2] staging: vt6655: fix LONG_LINE warning

2020-05-02 Thread Joe Perches
On Sun, 2020-05-03 at 00:16 +0200, Matej Dujava wrote: > This patch will fix LONG_LINE error from checkpatch, by createing temporary > variable so call to the function is not in if/else block. [] > diff --git a/drivers/staging/vt6655/rxtx.c b/drivers/staging/vt6655/rxtx.c [] > @@ -164,16 +164,24 @@

My Dear in the lord

2020-05-02 Thread Mrs. Mina A. Brunel
My Dear in the lord My name is Mrs. Mina A. Brunel I am a Norway Citizen who is living in Burkina Faso, I am married to Mr. Brunel Patrice, a politicians who owns a small gold company in Burkina Faso; He died of Leprosy and Radesyge, in year February 2010, During his lifetime he deposited t

[PATCH] perf trace: add default value for opt 'call-graph'

2020-05-02 Thread Changbin Du
The documentation says the default value of call-graph.record_mode is 'fp'. But actually we never can omit value of call-graph parameter. This patch can fix this issue. Meanwhile, this patch adds a short name '-g' for opt 'call-graph' since it's very useful. Signed-off-by: Changbin Du --- tools

[PATCH v2] scripts: headers_install: Exit with error on config leak

2020-05-02 Thread Siddharth Gupta
Misuse of CONFIG_* in UAPI headers should result in an error as it exposes configuration of different targets to userspace. Signed-off-by: Siddharth Gupta --- scripts/headers_install.sh | 11 ++- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/scripts/headers_install.sh b/s

Re: [PATCH] scripts: headers_install: Exit with error on config leak

2020-05-02 Thread Siddharth Gupta
Sure I will make the recommended changes and send a v2 of the patch. Thanks, Siddharth On 5/2/2020 8:03 AM, Masahiro Yamada wrote: On Sat, May 2, 2020 at 6:55 AM Siddharth Gupta wrote: Misuse of CONFIG_* in UAPI headers should result in an error as it exposes configuration of different target

Re: [PATCH V1 09/10] arch/kmap: Define kmap_atomic_prot() for all arch's

2020-05-02 Thread Ira Weiny
On Fri, May 01, 2020 at 04:20:20AM +0100, Al Viro wrote: > On Fri, May 01, 2020 at 03:37:34AM +0100, Al Viro wrote: > > On Thu, Apr 30, 2020 at 01:38:44PM -0700, ira.we...@intel.com wrote: > > > > > -static inline void *kmap_atomic(struct page *page) > > > +static inline void *kmap_atomic_prot(str

[PATCH] Staging: comedi: drivers: ni_pcimio: Fix variable name

2020-05-02 Thread Eric Yu
Fixed a variable name that was Camel case Signed-off-by: Eric Yu --- drivers/staging/comedi/drivers/ni_pcimio.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/staging/comedi/drivers/ni_pcimio.c b/drivers/staging/comedi/drivers/ni_pcimio.c index 7c82d5f9778f..c1d

Re: [PATCH v3 2/5] scsi: ufs: add "index" in parameter list of ufshcd_query_flag()

2020-05-02 Thread Can Guo
On 2020-05-01 22:38, Stanley Chu wrote: For preparation of LU Dedicated buffer mode support on WriteBooster feature, "index" parameter shall be added and allowed to be specified by callers. Signed-off-by: Stanley Chu Reviewed-by: Bean Huo Reviewed-by: Can Guo --- drivers/scsi/ufs/ufs-sys

Re: [RESEND PATCH v5 0/3] BQ25150/155 Charger

2020-05-02 Thread Sebastian Reichel
Hi, On Fri, May 01, 2020 at 01:09:13PM -0500, Ricardo Rivera-Matos wrote: > On 5/1/20 12:55 PM, Dan Murphy wrote: > > Sebastian > > > > On 5/1/20 12:24 PM, Sebastian Reichel wrote: > > > Hi, > > > > > > I don't see any PATCHv5 (with or without RESEND) for bq25150 and > > > lore does not see anyt

Re: [PATCH 4/4] power_supply: Add power supply type property to uevent env

2020-05-02 Thread Sebastian Reichel
Hi, On Fri, Apr 24, 2020 at 11:35:33AM -0600, Mathew King wrote: > Add POWER_SUPPLY_TYPE to the uevent env for power supply. Type is a > property of all power supplies and there is a sysfs entry for it but it > is not included in the properties array of the power supply so > explicitly add it to t

Re: [PATCH 3/4] power_supply: Add a macro that maps enum properties to text values

2020-05-02 Thread Sebastian Reichel
Hi, On Fri, Apr 24, 2020 at 11:35:32AM -0600, Mathew King wrote: > Reduce the number of touch points to add a new enum property to the > power_supply class by mapping the array of text values to the device > attribute descriptor. A new enum property can now added by creating an > array with the te

Re: [PATCH v5 3/3] power: supply: bq25150 introduce the bq25150

2020-05-02 Thread Sebastian Reichel
Hi, On Fri, May 01, 2020 at 12:51:18PM -0500, Dan Murphy wrote: > From: Ricardo Rivera-Matos > > Introduce the bq2515x family of chargers. > > Description: > The BQ2515X family of devices are highly integrated battery management > ICs that integrate the most common functions for wearbale device

Re: [PATCH v29 00/20] Intel SGX foundations

2020-05-02 Thread Andy Lutomirski
> On May 2, 2020, at 4:05 PM, Dr. Greg wrote: > > On Thu, Apr 30, 2020 at 06:59:11AM +0300, Jarkko Sakkinen wrote: > > Good afternoon, I hope the weekend is going well for everyone. > >>> On Wed, Apr 29, 2020 at 08:14:59AM -0700, Sean Christopherson wrote: >>> On Wed, Apr 29, 2020 at 08:23:

Very Urgent!

2020-05-02 Thread Read From Mr Kabiru
Hello Dear Friend, I have Important Matter to Discuss with you concerning my late client died without a Next Of Kin. Send me your private email with your information and kindly indicate your interest by sending me your full data, you will be entitle to 50% 40% for me and 10% to defray all cost, y

Re: [PATCH v5 2/3] Add the bindings for the bq25150 and bq25155 500mA charging ICs from Texas Instruments.

2020-05-02 Thread Sebastian Reichel
Hi, On Fri, May 01, 2020 at 12:51:17PM -0500, Dan Murphy wrote: > From: Ricardo Rivera-Matos > > Description: > The BQ2515X family of devices are highly integrated battery management > ICs that integrate the most common functions for wearbale devices > namely a charger, an output voltage rail, A

Re: [PATCH v2 0/2] Replace and improve "mcsafe" with copy_safe()

2020-05-02 Thread Andy Lutomirski
On Fri, May 1, 2020 at 7:09 AM Luck, Tony wrote: > > > Now maybe copy_to_user() should *always* work this way, but I’m not > > convinced. > > Certainly put_user() shouldn’t — the result wouldn’t even be well defined. > > And I’m > > unconvinced that it makes much sense for the majority of copy_

Re: [PATCH v5 1/3] power_supply: Add additional health properties to the header

2020-05-02 Thread Sebastian Reichel
Hi, On Fri, May 01, 2020 at 12:51:16PM -0500, Dan Murphy wrote: > Add HEALTH_WARM, HEALTH_COOL and HEALTH_HOT to the health enum. > > Tested-by: Guru Das Srinagesh > Signed-off-by: Dan Murphy > --- What is going on? Ricardo wrote, that he added the JEITA spec reference to the commit message. I

Re: [PATCH] power: supply: fix memory leaks (v2)

2020-05-02 Thread Sebastian Reichel
Hi, On Sat, May 02, 2020 at 06:33:38PM -0500, wu000...@umn.edu wrote: > From: Qiushi Wu > > In function power_supply_add_hwmon_sysfs(), psyhw->props is > allocated by bitmap_zalloc(). But this pointer is not deallocated > when devm_add_action fail, which lead to a memory leak bug. To fix > this

[PATCH v4] streamline_config.pl: add LMC_KEEP to preserve some kconfigs

2020-05-02 Thread Changbin Du
Sometimes it is useful to preserve batches of configs when making localmodconfig. For example, I usually don't want any usb and fs modules to be disabled. Now we can do it by: $ make LMC_KEEP="drivers/usb;fs" localmodconfig Signed-off-by: Changbin Du --- v4: fix typo. v3: rename LOCALMODCONFIG

Re: [PATCH v3] streamline_config.pl: add LMC_KEEP to preserve some kconfigs

2020-05-02 Thread Changbin Du
On Sat, May 02, 2020 at 08:50:22AM -0700, Randy Dunlap wrote: > On 5/2/20 8:30 AM, Changbin Du wrote: > > Sometimes it is useful to preserve batches of configs when making > > localmodconfig. For example, I usually don't want any usb and fs > > modules to be disabled. Now we can do it by: > > > >

Re: [PATCH v4 2/4] power: supply: core: add input voltage/current measurements

2020-05-02 Thread Sebastian Reichel
Hi, On Sun, May 03, 2020 at 01:11:58AM +0200, Michał Mirosław wrote: > On Sun, May 03, 2020 at 12:45:26AM +0200, Michał Mirosław wrote: > > On Sun, May 03, 2020 at 12:23:49AM +0200, Sebastian Reichel wrote: > > > On Fri, May 01, 2020 at 05:11:18PM +0200, Michał Mirosław wrote: > [...] > > > > ---

[PATCH] MIPS: tools: Move "returns" after "loongson3-llsc-check"

2020-05-02 Thread Tiezhu Yang
Just move "returns" after "loongson3-llsc-check", no function changes. Signed-off-by: Tiezhu Yang --- arch/mips/tools/loongson3-llsc-check.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/mips/tools/loongson3-llsc-check.c b/arch/mips/tools/loongson3-llsc-check.c in

Re: [RFC PATCH v11 6/9] media: tegra: Add Tegra210 Video input driver

2020-05-02 Thread Sowjanya Komatineni
On 5/2/20 3:46 PM, Sowjanya Komatineni wrote: On 5/2/20 1:48 PM, Dmitry Osipenko wrote: 02.05.2020 19:55, Sowjanya Komatineni пишет: Also stop stream ioctl request happens during suspend where both threads will be stopped properly. done thread stop happens only after finishing all outstandi

Re: [PATCH v3 04/19] mm: slub: implement SLUB version of obj_to_index()

2020-05-02 Thread Christopher Lameter
On Thu, 30 Apr 2020, Roman Gushchin wrote: > Sorry, but what exactly do you mean? I think the right approach is to add a pointer to each slab object for memcg support.

Re: [PATCH] net: usb: qmi_wwan: add support for DW5816e

2020-05-02 Thread David Miller
From: Matt Jolly Date: Sun, 3 May 2020 01:52:28 +1000 > Add support for Dell Wireless 5816e to drivers/net/usb/qmi_wwan.c > > Signed-off-by: Matt Jolly Bjørn, please review.

[PATCH] net: ethernet: ti: Remove TI_CPTS_MOD workaround

2020-05-02 Thread Clay McClure
My recent commit b6d49cab44b5 ("net: Make PTP-specific drivers depend on PTP_1588_CLOCK") exposes a missing dependency in defconfigs that select TI_CPTS without selecting PTP_1588_CLOCK, leading to linker errors of the form: drivers/net/ethernet/ti/cpsw.o: in function `cpsw_ndo_stop': cpsw.c:(.te

Re: [PATCH] stmmac: fix pointer check after utilization in stmmac_interrupt

2020-05-02 Thread David Miller
From: Maxim Petrov Date: Sat, 2 May 2020 12:29:08 +0300 > The paranoidal pointer check in IRQ handler looks very strange - it > really protects us only against bogus drivers which request IRQ line > with null pointer dev_id. However, the code fragment is incorrect > because the dev pointer is use

[PATCH] power: supply: fix memory leaks (v2)

2020-05-02 Thread wu000273
From: Qiushi Wu In function power_supply_add_hwmon_sysfs(), psyhw->props is allocated by bitmap_zalloc(). But this pointer is not deallocated when devm_add_action fail, which lead to a memory leak bug. To fix this, we replace devm_add_action with devm_add_action_or_reset. v2: - Prevent introd

Re: [PATCH v2 net-next 0/3] ptp: Add adjust phase to support phase offset.

2020-05-02 Thread David Miller
From: Date: Fri, 1 May 2020 23:35:35 -0400 > From: Vincent Cheng > > This series adds adjust phase to the PTP Hardware Clock device interface. > > Some PTP hardware clocks have a write phase mode that has > a built-in hardware filtering capability. The write phase mode > utilizes a phase offs

Re: [PATCH 4.4 00/70] 4.4.221-rc1 review

2020-05-02 Thread shuah
On 5/1/20 7:20 AM, Greg Kroah-Hartman wrote: This is the start of the stable review cycle for the 4.4.221 release. There are 70 patches in this series, all will be posted as a response to this one. If anyone has any issues with these being applied, please let me know. Responses should be made b

Re: [PATCH v4 4/4] gpio: xilinx: Utilize for_each_set_clump macro

2020-05-02 Thread Syed Nayyar Waris
On Sat, May 02, 2020 at 03:03:54PM -0400, William Breathitt Gray wrote: > On Sun, May 03, 2020 at 12:21:54AM +0530, Syed Nayyar Waris wrote: > > This patch reimplements the xgpio_set_multiple function in > > drivers/gpio/gpio-xilinx.c to use the new for_each_set_clump macro. > > Instead of looping

[PATCH v5 4/4] gpio: xilinx: Utilize for_each_set_clump macro

2020-05-02 Thread Syed Nayyar Waris
This patch reimplements the xgpio_set_multiple function in drivers/gpio/gpio-xilinx.c to use the new for_each_set_clump macro. Instead of looping for each bit in xgpio_set_multiple function, now we can check each channel at a time and save cycles. Cc: Linus Walleij Cc: Bartosz Golaszewski Cc: Mi

Re: [PATCH 4.14 000/117] 4.14.178-rc1 review

2020-05-02 Thread shuah
On 5/1/20 7:20 AM, Greg Kroah-Hartman wrote: This is the start of the stable review cycle for the 4.14.178 release. There are 117 patches in this series, all will be posted as a response to this one. If anyone has any issues with these being applied, please let me know. Responses should be made

Re: [PATCH 4.9 00/80] 4.9.221-rc1 review

2020-05-02 Thread shuah
On 5/1/20 7:20 AM, Greg Kroah-Hartman wrote: This is the start of the stable review cycle for the 4.9.221 release. There are 80 patches in this series, all will be posted as a response to this one. If anyone has any issues with these being applied, please let me know. Responses should be made b

[PATCH v5 3/4] gpio: thunderx: Utilize for_each_set_clump macro

2020-05-02 Thread Syed Nayyar Waris
This patch reimplements the thunderx_gpio_set_multiple function in drivers/gpio/gpio-thunderx.c to use the new for_each_set_clump macro. Instead of looping for each bank in thunderx_gpio_set_multiple function, now we can skip bank which is not set and save cycles. Cc: Robert Richter Cc: Linus Wal

Re: [PATCH 4.19 00/46] 4.19.120-rc1 review

2020-05-02 Thread shuah
On 5/1/20 7:22 AM, Greg Kroah-Hartman wrote: This is the start of the stable review cycle for the 4.19.120 release. There are 46 patches in this series, all will be posted as a response to this one. If anyone has any issues with these being applied, please let me know. Responses should be made

Re: [PATCH] mm: slub: add panic_on_error to the debug facilities

2020-05-02 Thread Christopher Lameter
On Fri, 1 May 2020, Rafael Aquini wrote: > Sometimes it is desirable to override SLUB's debug facilities > default behavior upon stumbling on a cache or object error > and just stop the execution in order to grab a coredump, at > the error-spotting time, instead of trying to fix the issue > and re

Re: [PATCH 5.4 00/83] 5.4.37-rc1 review

2020-05-02 Thread shuah
On 5/1/20 7:22 AM, Greg Kroah-Hartman wrote: This is the start of the stable review cycle for the 5.4.37 release. There are 83 patches in this series, all will be posted as a response to this one. If anyone has any issues with these being applied, please let me know. Responses should be made by

Re: [PATCH 5.6 000/106] 5.6.9-rc1 review

2020-05-02 Thread shuah
On 5/1/20 7:22 AM, Greg Kroah-Hartman wrote: This is the start of the stable review cycle for the 5.6.9 release. There are 106 patches in this series, all will be posted as a response to this one. If anyone has any issues with these being applied, please let me know. Responses should be made by

Re: [PATCH v4 2/4] power: supply: core: add input voltage/current measurements

2020-05-02 Thread Michał Mirosław
On Sun, May 03, 2020 at 12:45:26AM +0200, Michał Mirosław wrote: > On Sun, May 03, 2020 at 12:23:49AM +0200, Sebastian Reichel wrote: > > On Fri, May 01, 2020 at 05:11:18PM +0200, Michał Mirosław wrote: [...] > > > --- a/include/linux/power_supply.h > > > +++ b/include/linux/power_supply.h > > > @@

[PATCH v5 2/4] lib/test_bitmap.c: Add for_each_set_clump test cases

2020-05-02 Thread Syed Nayyar Waris
The introduction of the generic for_each_set_clump macro need test cases to verify the implementation. This patch adds test cases for scenarios in which clump sizes are 8 bits, 24 bits, 30 bits and 6 bits. The cases contain situations where clump is getting split at the word boundary and also when

[PATCH v5 1/4] bitops: Introduce the the for_each_set_clump macro

2020-05-02 Thread Syed Nayyar Waris
This macro iterates for each group of bits (clump) with set bits, within a bitmap memory region. For each iteration, "start" is set to the bit offset of the found clump, while the respective clump value is stored to the location pointed by "clump". Additionally, the bitmap_get_value and bitmap_set_

[PATCH v5 0/4] Introduce the for_each_set_clump macro

2020-05-02 Thread Syed Nayyar Waris
This patchset introduces a new generic version of for_each_set_clump. The previous version of for_each_set_clump8 used a fixed size 8-bit clump, but the new generic version can work with clump of any size but less than or equal to BITS_PER_LONG. The patchset utilizes the new macro in several GPIO

Re: [PATCH v29 00/20] Intel SGX foundations

2020-05-02 Thread Dr. Greg
On Thu, Apr 30, 2020 at 06:59:11AM +0300, Jarkko Sakkinen wrote: Good afternoon, I hope the weekend is going well for everyone. > On Wed, Apr 29, 2020 at 08:14:59AM -0700, Sean Christopherson wrote: > > On Wed, Apr 29, 2020 at 08:23:29AM +0300, Jarkko Sakkinen wrote: > > > On Sun, Apr 26, 2020 at

Re: [PATCH v3 3/3] mm/page_alloc: Keep memoryless cpuless node 0 offline

2020-05-02 Thread Christopher Lameter
On Fri, 1 May 2020, Srikar Dronamraju wrote: > --- a/mm/page_alloc.c > +++ b/mm/page_alloc.c > @@ -116,8 +116,10 @@ EXPORT_SYMBOL(latent_entropy); > */ > nodemask_t node_states[NR_NODE_STATES] __read_mostly = { > [N_POSSIBLE] = NODE_MASK_ALL, > +#ifdef CONFIG_NUMA > + [N_ONLINE] = NOD

Re: [PATCH v2 2/3] media: uapi: Add VP9 stateless decoder controls

2020-05-02 Thread Ezequiel Garcia
+Nicolas On Sat, 2020-05-02 at 20:37 +0200, Boris Brezillon wrote: > On Fri, 01 May 2020 13:57:49 -0300 > Ezequiel Garcia wrote: > > > > > + > > > > +.. tabularcolumns:: |p{1.5cm}|p{6.3cm}|p{9.4cm}| > > > > + > > > > +.. flat-table:: enum v4l2_vp9_reset_frame_context > > > > +:header-rows:

Re: [PATCH v3 1/3] powerpc/numa: Set numa_node for all possible cpus

2020-05-02 Thread Christopher Lameter
On Fri, 1 May 2020, Srikar Dronamraju wrote: > - for_each_present_cpu(cpu) > - numa_setup_cpu(cpu); > + for_each_possible_cpu(cpu) { > + /* > + * Powerpc with CONFIG_NUMA always used to have a node 0, > + * even if it was memoryless or cpul

Re: [RFC PATCH v11 6/9] media: tegra: Add Tegra210 Video input driver

2020-05-02 Thread Sowjanya Komatineni
On 5/2/20 1:48 PM, Dmitry Osipenko wrote: 02.05.2020 19:55, Sowjanya Komatineni пишет: Also stop stream ioctl request happens during suspend where both threads will be stopped properly. done thread stop happens only after finishing all outstanding buffers. Do you mean that V4L core takes care

Re: [PATCH v4 2/4] power: supply: core: add input voltage/current measurements

2020-05-02 Thread Michał Mirosław
On Sun, May 03, 2020 at 12:23:49AM +0200, Sebastian Reichel wrote: > Hi, > > On Fri, May 01, 2020 at 05:11:18PM +0200, Michał Mirosław wrote: > > Introduce input voltage and current limits and measurements. > > This makes room for e.g. VBUS measurements in USB chargers. > We already have propertie

[PATCH] nfp: abm: fix a memory leak bug

2020-05-02 Thread wu000273
From: Qiushi Wu In function nfp_abm_vnic_set_mac, pointer nsp is allocated by nfp_nsp_open. But when nfp_nsp_has_hwinfo_lookup fail, the pointer is not released, which can lead to a memory leak bug. Fix this issue by adding nfp_nsp_close(nsp) in the error path. Signed-off-by: Qiushi Wu --- dri

Re: [PATCH] power: supply: fix memory leaks

2020-05-02 Thread Sebastian Reichel
Hi, On Sat, May 02, 2020 at 04:10:56PM -0500, wu000...@umn.edu wrote: > From: Qiushi Wu > > In function power_supply_add_hwmon_sysfs(), psyhw->props is > allocated by bitmap_zalloc(). But this pointer is not deallocated > in several error paths, which lead to memory leak bugs. To fix > this, we

Re: [PATCH v2] dt-bindings: power: Convert power_supply text to yaml

2020-05-02 Thread Sebastian Reichel
Hi, On Fri, May 01, 2020 at 12:29:13PM -0500, Dan Murphy wrote: > Convert the power_supply.txt to power-supply.yaml. > This conversion entailed fixing up the binding to being yaml and dt > checker compliant. > > Added a note in the power_supply.txt to reference the power-supply.yaml > > Signed-o

Re: [PATCH v4 1/4] power: supply: core: tabularize HWMON temperature labels

2020-05-02 Thread Sebastian Reichel
Hi, On Fri, May 01, 2020 at 05:11:18PM +0200, Michał Mirosław wrote: > Rework power_supply_hwmon_read_string() to check it's parameters. > This allows to extend it later with labels for other types of > measurements. > > Signed-off-by: Michał Mirosław > --- > v2: split from fix temperature label

Re: [PATCH v4 2/4] power: supply: core: add input voltage/current measurements

2020-05-02 Thread Sebastian Reichel
Hi, On Fri, May 01, 2020 at 05:11:18PM +0200, Michał Mirosław wrote: > Introduce input voltage and current limits and measurements. > This makes room for e.g. VBUS measurements in USB chargers. We already have properties for charger input voltage/current. Unfortunately the naming is not as straig

Re: [RFC, WIP, v4 07/11] media: vidtv: add MPEG TS common code

2020-05-02 Thread Daniel W. S. Almeida
Hi Mauro, thanks for reviewing this! > Em Sat, 2 May 2020 00:22:12 -0300 > "Daniel W. S. Almeida" escreveu: > >> From: "Daniel W. S. Almeida" >> >> Add code to work with MPEG TS packets, such as TS headers, adaptation >> fields, PCR packets and NULL packets. >> >> Signed-off-by: Daniel W. S. A

[PATCH 1/2] staging: vt6655: return early if not bNeedAck

2020-05-02 Thread Matej Dujava
This patch will check for bNeedAck before making bb_get_frame_time call, so in case we dont need uAckTime, we can return early. Signed-off-by: Matej Dujava --- drivers/staging/vt6655/rxtx.c | 9 + 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/drivers/staging/vt6655/rxtx.c

[PATCH 2/2] staging: vt6655: fix LONG_LINE warning

2020-05-02 Thread Matej Dujava
This patch will fix LONG_LINE error from checkpatch, by createing temporary variable so call to the function is not in if/else block. Signed-off-by: Matej Dujava --- drivers/staging/vt6655/rxtx.c | 16 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/drivers/stagin

Re: [PATCH 2/2] drm/panfrost: add devfreq regulator support

2020-05-02 Thread Clément Péron
Hi Steven, On Tue, 14 Apr 2020 at 15:10, Steven Price wrote: > > Hi Clément, > > On 13/04/2020 18:28, Clément Péron wrote: > > Hi Steven, > > > Getting a backtrace from the two occurrences, I see one added from: > >(debugfs_create_dir) from [] (create_regulator+0xe0/0x220) >(create_reg

Re: [PATCH v23 02/16] leds: multicolor: Introduce a multicolor class definition

2020-05-02 Thread Jacek Anaszewski
Dan, I've converted drivers/leds/leds-an30259a.c to LED mc framework and tested it on Samsung Galaxy S3 (exysnos4412-trats2 board). Works as expected. And now the framework usability is indeed neater. One thing to improve: LED mc based drivers' entries in Kconfig should have this dependency:

Re: [PATCH v23 01/16] dt: bindings: Add multicolor class dt bindings documention

2020-05-02 Thread Jacek Anaszewski
Dan, Thanks for improving the bindings. Now we have one indentation related issue, please look below at the example. On 4/29/20 10:28 PM, Dan Murphy wrote: Add DT bindings for the LEDs multicolor class framework. Add multicolor ID to the color ID list for device tree bindings. CC: Rob Herring

Re: [PATCH 0/2] ALSA: line6: hwdep: add support for poll and non-blocking read

2020-05-02 Thread Vasily Khoruzhick
On Sat, May 2, 2020 at 1:32 PM Takashi Iwai wrote: > > On Sat, 02 May 2020 21:31:18 +0200, > Vasily Khoruzhick wrote: > > > > This series adds support for polling and non-blocking read for hwdep > > interface. This allows apps to listen to HW events without using busy > > loop. > > > > Example of

Re: [RFC, WIP, v4 05/11] media: vidtv: add a bridge driver

2020-05-02 Thread Daniel W. S. Almeida
Hi Mauro, thanks for reviewing this. On 5/2/20 3:30 AM, Mauro Carvalho Chehab wrote: > Em Sat, 2 May 2020 00:22:10 -0300 > "Daniel W. S. Almeida" escreveu: > >> From: "Daniel W. S. Almeida" >> >> Digital TV devices consist of several independent hardware components which >> are controlled by

[PATCH] power: supply: fix memory leaks

2020-05-02 Thread wu000273
From: Qiushi Wu In function power_supply_add_hwmon_sysfs(), psyhw->props is allocated by bitmap_zalloc(). But this pointer is not deallocated in several error paths, which lead to memory leak bugs. To fix this, we can call bitmap_free() to free this pointer. Signed-off-by: Qiushi Wu --- driver

Re: [PATCH 0/7] sha1 library cleanup

2020-05-02 Thread Jason A. Donenfeld
Thanks for this series. I like the general idea. I think it might make sense, though, to separate things out into sha1.h and sha256.h. That will be nice preparation work for when we eventually move obsolete primitives into some subdirectory.

Re: [Patch] mtd:rawnand: brcmnand: Fix PM resume crash

2020-05-02 Thread Florian Fainelli
On 5/2/2020 1:41 PM, Kamal Dasu wrote: > This change fixes crash observed on PM resume. This bug > was introduced in the change made for flash-edu support. > > Fixes: a5d53ad26a8b ("mtd: rawnand: brcmnand: Add support for flash-edu for > dma transfers") > > Signed-off-by: Kamal Dasu Acked-b

Re: [RFC PATCH v11 6/9] media: tegra: Add Tegra210 Video input driver

2020-05-02 Thread Dmitry Osipenko
02.05.2020 19:55, Sowjanya Komatineni пишет: > Also stop stream ioctl request happens during suspend where both threads > will be stopped properly. done thread stop happens only after finishing > all outstanding buffers. Do you mean that V4L core takes care of stopping the streami on suspend and r

[Patch] mtd:rawnand: brcmnand: Fix PM resume crash

2020-05-02 Thread Kamal Dasu
This change fixes crash observed on PM resume. This bug was introduced in the change made for flash-edu support. Fixes: a5d53ad26a8b ("mtd: rawnand: brcmnand: Add support for flash-edu for dma transfers") Signed-off-by: Kamal Dasu --- drivers/mtd/nand/raw/brcmnand/brcmnand.c | 3 +-- 1 file ch

Re: [PATCH 0/2] ALSA: line6: hwdep: add support for poll and non-blocking read

2020-05-02 Thread Takashi Iwai
On Sat, 02 May 2020 21:31:18 +0200, Vasily Khoruzhick wrote: > > This series adds support for polling and non-blocking read for hwdep > interface. This allows apps to listen to HW events without using busy > loop. > > Example of app that uses hwdep interface for POD HD500 can be found > here: htt

[PATCH] rtc: mc13xxx: fix a double-unlock issue

2020-05-02 Thread wu000273
From: Qiushi Wu In function mc13xxx_rtc_probe, the mc13xxx_unlock() is called before rtc_register_device(). But in the error path of rtc_register_device(), the mc13xxx_unlock() is called again, which causes a double-unlock problem. To fix this problem, we need to call mc13xxx_lock() again in this

Re: [PATCH v7 01/12] dt-bindings: add img,pvrsgx.yaml for Imagination GPUs

2020-05-02 Thread H. Nikolaus Schaller
Hi Paul, > Am 26.04.2020 um 15:11 schrieb Paul Cercueil : > > Hi Nikolaus, > > Le ven. 24 avril 2020 à 22:34, H. Nikolaus Schaller a > écrit : >> The Imagination PVR/SGX GPU is part of several SoC from >> multiple vendors, e.g. TI OMAP, Ingenic JZ4780, Intel Poulsbo, >> Allwinner A83 and other

Re: [PATCH] drm/meson: viu: fix setting the OSD burst length in VIU_OSD1_FIFO_CTRL_STAT

2020-05-02 Thread Martin Blumenstingl
Hi Neil, On Tue, Apr 28, 2020 at 10:38 AM Neil Armstrong wrote: [...] > > @@ -444,9 +437,9 @@ void meson_viu_init(struct meson_drm *priv) > > VIU_OSD_FIFO_LIMITS(2); /* fifo_lim: 2*16=32 */ > > > > if (meson_vpu_is_compatible(priv, VPU_COMPATIBLE_G12A)) > > -

Re: [PATCH v2 net-next 3/3] ptp: ptp_clockmatrix: Add adjphase() to support PHC write phase mode.

2020-05-02 Thread Richard Cochran
On Fri, May 01, 2020 at 11:35:38PM -0400, vincent.cheng...@renesas.com wrote: > From: Vincent Cheng > > Add idtcm_adjphase() to support PHC write phase mode. > > Signed-off-by: Vincent Cheng Acked-by: Richard Cochran

Re: [PATCH v2 net-next 1/3] ptp: Add adjphase function to support phase offset control.

2020-05-02 Thread Richard Cochran
On Fri, May 01, 2020 at 11:35:36PM -0400, vincent.cheng...@renesas.com wrote: > From: Vincent Cheng > > Adds adjust phase function to take advantage of a PHC > clock's hardware filtering capability that uses phase offset > control word instead of frequency offset control word. > > Signed-off-by:

Re: [v4] checkpatch: add support to check 'Fixes:' tag format

2020-05-02 Thread Markus Elfring
>> Will the tolerance (and support) grow for such quotation character >> alternatives? > > No. Would you prefer to achieve a restrictive data format description? >> * Which formula do you propose for the length calculation? > > None. I imagine that such a view can increase the probability for

Re: [PATCH v4] checkpatch: add support to check 'Fixes:' tag format

2020-05-02 Thread Joe Perches
On Sat, 2020-05-02 at 21:40 +0200, Markus Elfring wrote: > > The check doesn't support below formats and it will emit diagnostics info > > for them: [] > Will the tolerance (and support) grow for such quotation character > alternatives? No. > Does this information indicate a need to split possi

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

2020-05-02 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.7-rc4 with top-most commit a53839963ee22470a716de665bca39d2dae63c27 Merge branches 'pm-cpufreq' and 'pm-sleep' on top of commit 6a8b55ed4056ea5559ebe4f6a4b247f627870d4c Linux 5.7-rc

[PATCH] media: s5p-mfc: set V4L2_BUF_FLAG_LAST flag on final buffer

2020-05-02 Thread Andriy Gelman
From: Andriy Gelman As per V4L2 api, the final buffer should set V4L2_BUF_FLAG_LAST flag. Signed-off-by: Andriy Gelman --- drivers/media/platform/s5p-mfc/s5p_mfc.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/media/platform/s5p-mfc/s5p_mfc.c b/drivers/media/platform/s5p-mfc/s5p

Re: [PATCH v4] checkpatch: add support to check 'Fixes:' tag format

2020-05-02 Thread Markus Elfring
> The check doesn't support below formats and it will emit diagnostics info for > them: … > Fixes: ba35f8588f47 (“ipvlan: Defer multicast / broadcast processing to a > work-queue”) … > Fixes: 03f6fc6de919 ('ASoC: rt5682: Add the soundwire support') Will the tolerance (and support) grow for such

[PATCH 0/2] ALSA: line6: hwdep: add support for poll and non-blocking read

2020-05-02 Thread Vasily Khoruzhick
This series adds support for polling and non-blocking read for hwdep interface. This allows apps to listen to HW events without using busy loop. Example of app that uses hwdep interface for POD HD500 can be found here: https://github.com/anarsoul/line6_hwdep_test Vasily Khoruzhick (2): ALSA: li

[PATCH 2/2] ALSA: line6: Add poll callback for hwdep

2020-05-02 Thread Vasily Khoruzhick
At least POD HD500 uses message-based communication, both sides can send messages. Add poll callback so application can wait for device messages without using busy loop. Signed-off-by: Vasily Khoruzhick --- sound/usb/line6/driver.c | 16 1 file changed, 16 insertions(+) diff --

[PATCH 1/2] ALSA: line6: hwdep: add support for O_NONBLOCK opening mode

2020-05-02 Thread Vasily Khoruzhick
Currently line6 hwdep interface ignores O_NONBLOCK flag when opening device and it renders it somewhat useless when using poll. Check for O_NONBLOCK flag when opening device and don't block read() if it is set. Signed-off-by: Vasily Khoruzhick --- sound/usb/line6/driver.c | 4 sound/usb/li

Re: [PATCH] bpf: Tweak BPF jump table optimizations for objtool compatibility

2020-05-02 Thread Josh Poimboeuf
On Fri, May 01, 2020 at 08:06:22PM -0700, Alexei Starovoitov wrote: > On Fri, May 01, 2020 at 02:56:17PM -0500, Josh Poimboeuf wrote: > > On Fri, May 01, 2020 at 12:40:53PM -0700, Alexei Starovoitov wrote: > > > On Fri, May 01, 2020 at 02:22:04PM -0500, Josh Poimboeuf wrote: > > > > On Fri, May 01,

  1   2   3   4   >