[PATCH v2 1/4] dt-bindings: power: Add BQ27561 compatible

2020-05-28 Thread Dan Murphy
Add the Texas Instruments bq27561 battery monitor to the bq27xxx binding. Signed-off-by: Dan Murphy --- Documentation/devicetree/bindings/power/supply/bq27xxx.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/power/supply/bq27xxx.yaml b/Documentation/dev

[PATCH v2 4/4] power: supply: bq27xxx_battery: Add the BQ28z610 Battery monitor

2020-05-28 Thread Dan Murphy
Add the Texas Instruments BQ28z610 battery monitor. The register address map is laid out the same as compared to other devices within the file. The battery status register bits are similar to the BQ27561 but they are different compared to other fuel gauge devices within this file. Signed-off-by:

[PATCH v2 2/4] power: supply: bq27xxx_battery: Add the BQ27561 Battery monitor

2020-05-28 Thread Dan Murphy
Add the Texas Instruments BQ27561 battery monitor. The register address map is laid out the same as compared to other devices within the file. The battery status register has differing bits to determine if the battery is full, discharging or dead. Signed-off-by: Dan Murphy --- drivers/power/sup

Re: [PATCH] debugfs: Add mount restriction option

2020-05-28 Thread Greg Kroah-Hartman
On Thu, May 28, 2020 at 12:04:32PM +, Enderborg, Peter wrote: > On 5/28/20 11:27 AM, Greg Kroah-Hartman wrote: > > On Thu, May 28, 2020 at 08:39:02AM +, Enderborg, Peter wrote: > >> On 5/28/20 10:27 AM, Greg Kroah-Hartman wrote: > >>> On Thu, May 28, 2020 at 10:00:31AM +0200, Peter Enderbor

Re: [PATCH] powerpc/bpf: Enable bpf_probe_read{, str}() on powerpc again

2020-05-28 Thread Michael Ellerman
Petr Mladek writes: > On Thu 2020-05-28 11:03:43, Michael Ellerman wrote: >> Petr Mladek writes: >> > The commit 0ebeea8ca8a4d1d453a ("bpf: Restrict bpf_probe_read{, str}() only >> > to archs where they work") caused that bpf_probe_read{, str}() functions >> > were not longer available on archite

Re: [PATCH 1/4] exfat: redefine PBR as boot_sector

2020-05-28 Thread Tetsuhiro Kohada
[snip] +/* EXFAT: Main and Backup Boot Sector (512 bytes) */ struct boot_sector +{ + __u8jmp_boot[BOOTSEC_JUMP_BOOT_LEN]; + __u8oem_name[BOOTSEC_OEM_NAME_LEN]; According to the exFAT specification, fs_name and BOOTSEC_FS_NAME_LEN look better. Oops. I sent v2 patches, befor

Re: [PATCH 1/1] soc: keembay: Add Keem Bay IMR driver

2020-05-28 Thread Daniele Alessandrelli
On Wed, 2020-05-27 at 20:59 +0200, Arnd Bergmann wrote: > On Wed, May 27, 2020 at 7:43 PM Daniele Alessandrelli > wrote: > > On Wed, 2020-05-27 at 16:33 +0200, Arnd Bergmann wrote: > > > On Wed, May 27, 2020 at 3:31 PM Alessandrelli, Daniele < > > > daniele.alessandre...@intel.com> wrote: > > > >

Re: [PATCH v3 4/6] bus: Add Baikal-T1 AXI-bus driver

2020-05-28 Thread Serge Semin
On Thu, May 28, 2020 at 02:14:58PM +0200, Arnd Bergmann wrote: > On Thu, May 28, 2020 at 12:01 AM Andy Shevchenko > wrote: > > On Tuesday, May 26, 2020, Serge Semin > > wrote: > >> > >> AXI3-bus is the main communication bus connecting all high-speed > >> peripheral IP-cores with RAM controller

Re: 回复: [PATCH v5] workqueue: Remove unnecessary kfree() call in rcu_free_wq()

2020-05-28 Thread Dan Carpenter
On Thu, May 28, 2020 at 08:08:06PM +0800, Lai Jiangshan wrote: > On Thu, May 28, 2020 at 5:57 PM Dan Carpenter > wrote: > > > > Guys, the patch is wrong. The kfree is harmless when this is called > > from destroy_workqueue() and required when it's called from > > pwq_unbound_release_workfn(). L

RE: [EXT] [PATCH 04/11] mmc: sdio: Move SDIO IDs from btmrvl driver to common include file

2020-05-28 Thread Ganapathi Bhat
Hi Pali, > Define appropriate macro names for consistency with other Marvell macros. > Thanks for the change; Acked-by: Ganapathi Bhat

Re: [RFC][PATCH 2/7] smp: Optimize flush_smp_call_function_queue()

2020-05-28 Thread Frederic Weisbecker
On Tue, May 26, 2020 at 06:10:59PM +0200, Peter Zijlstra wrote: > The call_single_queue can contain (two) different callbacks, > synchronous and asynchronous. The current interrupt handler runs them > in-order, which means that remote CPUs that are waiting for their > synchronous call can be delaye

RE: [EXT] [PATCH 03/11] mmc: sdio: Move SDIO IDs from mwifiex driver to common include file

2020-05-28 Thread Ganapathi Bhat
Hi Pali, > Add _WLAN suffix to macro names for consistency with other Marvell macros. > These IDs represents wlan function of combo bt/wlan cards. Other functions > of these cards have different IDs. > OK, thanks for the cleanup change; Acked-by: Ganapathi Bhat

Re: Re: [PATCH] media: staging: tegra-vde: fix runtime pm imbalance on error

2020-05-28 Thread Rafael J. Wysocki
On Thu, May 28, 2020 at 2:08 PM Dan Carpenter wrote: > > On Fri, May 22, 2020 at 04:43:12PM +0200, Thierry Reding wrote: > > On Fri, May 22, 2020 at 04:23:18PM +0300, Dan Carpenter wrote: > > > On Fri, May 22, 2020 at 03:10:31PM +0200, Thierry Reding wrote: > > > > On Thu, May 21, 2020 at 08:39:02

RE: [EXT] [PATCH 02/11] mmc: sdio: Change macro names for Marvell 8688 modules

2020-05-28 Thread Ganapathi Bhat
Hi Pali, > Add underscore as separator in Marvell 8688 macro names for better > readability and consistency. > Thanks for the change; Acked-by: Ganapathi Bhat

Re: [PATCH v5 4/6] pinctrl: mediatek: add pinctrl support for MT6779 SoC

2020-05-28 Thread Hanks Chen
On Thu, 2020-04-02 at 14:46 -0700, Sean Wang wrote: > Hi Hanks, > > On Wed, Mar 25, 2020 at 2:31 AM Hanks Chen wrote: > > > > This adds MT6779 pinctrl driver based on MediaTek pinctrl-paris core. > > > > We can add some useful help text about MT6779 pinctrl, especially > about specific parts lik

[PATCH 0/2] regmap: provide simple bitops and use them in a driver

2020-05-28 Thread Bartosz Golaszewski
From: Bartosz Golaszewski Hi Mark, I noticed that oftentimes I use regmap_update_bits() for simple bit setting or clearing. In this case the fourth argument is superfluous as it's always 0 or equal to the mask argument. This series proposes to add simple bit operations for setting, clearing and

[PATCH 1/2] regmap: provide helpers for simple bit operations

2020-05-28 Thread Bartosz Golaszewski
From: Bartosz Golaszewski In many instances regmap_update_bits() is used for simple bit setting and clearing. In these cases the last argument is redundant and we can hide it with a macro. This adds three new macros for simple bit operations: set_bits, clear_bits and test_bits. Signed-off-by: B

[PATCH 2/2] net: ethernet: mtk-star-emac: use regmap bitops

2020-05-28 Thread Bartosz Golaszewski
From: Bartosz Golaszewski Shrink the code visually by replacing regmap_update_bits() with appropriate regmap bit operations where applicable. Signed-off-by: Bartosz Golaszewski --- drivers/net/ethernet/mediatek/mtk_star_emac.c | 80 --- 1 file changed, 35 insertions(+), 45 dele

Re: [RFC PATCH v5 01/13] ptrace: Use regset_size() for dynamic regset

2020-05-28 Thread Oleg Nesterov
On 05/28, Greentime Hu wrote: > > --- a/kernel/ptrace.c > +++ b/kernel/ptrace.c > @@ -888,7 +888,7 @@ static int ptrace_regset(struct task_struct *task, int > req, unsigned int type, > > regset_no = regset - view->regsets; > kiov->iov_len = min(kiov->iov_len, > -

Re: [PATCH] of/fdt: Remove redundant kbasename function call

2020-05-28 Thread Qi Zheng
Hi Rob, Thanks for your review. I will send you a patch of v2 later. Yours, Qi Zheng On 2020/5/28 上午2:27, Rob Herring wrote: On Tue, May 12, 2020 at 11:49:09PM +0800, Qi Zheng wrote: For version 1 to 3 of the device tree, this is the node full path as a zero terminated string, starting with "

Re: [PATCH v3 4/6] bus: Add Baikal-T1 AXI-bus driver

2020-05-28 Thread Serge Semin
On Thu, May 28, 2020 at 02:14:58PM +0200, Arnd Bergmann wrote: > On Thu, May 28, 2020 at 12:01 AM Andy Shevchenko > wrote: > > On Tuesday, May 26, 2020, Serge Semin > > wrote: > >> > >> AXI3-bus is the main communication bus connecting all high-speed > >> peripheral IP-cores with RAM controller

Re: [PATCH v3 67/75] x86/vmware: Add VMware specific handling for VMMCALL under SEV-ES

2020-05-28 Thread Borislav Petkov
On Tue, Apr 28, 2020 at 05:17:17PM +0200, Joerg Roedel wrote: > From: Doug Covelli > > This change adds VMware specific handling for #VC faults caused by s/This change adds/Add/ -- Regards/Gruss, Boris. https://people.kernel.org/tglx/notes-about-netiquette

[PATCH] crypto: hisilicon/qm - allow smaller reads in debugfs

2020-05-28 Thread Dan Carpenter
Originally this code rejected any read less than 256 bytes. There is no need for this artificial limit. Also I have changed the snprintf() functions to scnprintf(). The difference is that snprintf() returns the number of bytes which would have been copied if there were enough space and scnprintf

[PATCH] habanalabs: fix error code in unmap_device_va()

2020-05-28 Thread Dan Carpenter
Smatch complains that "rc" can be uninitialized on certain paths. Fixes: 8ff5f4fd40df ("habanalabs: handle MMU cache invalidation timeout") Signed-off-by: Dan Carpenter --- drivers/misc/habanalabs/memory.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/misc/habanalab

Re: [PATCH] debugfs: Add mount restriction option

2020-05-28 Thread Enderborg, Peter
On 5/28/20 2:23 PM, Greg Kroah-Hartman wrote: > On Thu, May 28, 2020 at 12:04:32PM +, Enderborg, Peter wrote: >> On 5/28/20 11:27 AM, Greg Kroah-Hartman wrote: >>> On Thu, May 28, 2020 at 08:39:02AM +, Enderborg, Peter wrote: On 5/28/20 10:27 AM, Greg Kroah-Hartman wrote: > On Thu,

Re: [PATCH 4/6] serdev: ngsm: Add generic serdev-ngsm driver

2020-05-28 Thread Johan Hovold
On Tue, May 12, 2020 at 02:47:11PM -0700, Tony Lindgren wrote: > We can have a generic serdev-ngsm driver bring up the TS 27.010 line > discipline on the selected serial ports based on device tree data. > > And we can now do standard Linux device driver for the dedicated > TS 27.010 channels for d

Re: [PATCH v3 4/6] bus: Add Baikal-T1 AXI-bus driver

2020-05-28 Thread Arnd Bergmann
On Thu, May 28, 2020 at 2:27 PM Serge Semin wrote: > > On Thu, May 28, 2020 at 02:14:58PM +0200, Arnd Bergmann wrote: > > On Thu, May 28, 2020 at 12:01 AM Andy Shevchenko > > wrote: > > > On Tuesday, May 26, 2020, Serge Semin > > > wrote: > > >> > > >> AXI3-bus is the main communication bus con

Re: [BUG RT] dump-capture kernel not executed for panic in interrupt context

2020-05-28 Thread Steven Rostedt
Hi Joerg, This does look like Andrew's commit (from 2008) is buggy (and this is a mainline bug, not an RT one). (top posting this so Andrew knows to look further ;-) On Thu, 28 May 2020 13:41:08 +0200 Joerg Vehlow wrote: > Hi, > > I think I found a bug in the kernel with rt patches (or maybe

[PATCH net-next 05/11] net: hns3: modify an incorrect type in struct hclgevf_cfg_gro_status_cmd

2020-05-28 Thread Huazhong Tan
Modify field .gro_en in struct hclgevf_cfg_gro_status_cmd to u8 according to the UM, otherwise, it will overwrite the reserved byte which may be used for other purpose. Signed-off-by: Huazhong Tan --- drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_cmd.h | 4 ++-- drivers/net/ethernet/hisili

[PATCH net-next 02/11] net: hns3: refactor hclge_config_tso()

2020-05-28 Thread Huazhong Tan
Since parameters 'tso_mss_min' and 'tso_mss_max' only indicate the minimum and maximum MSS, the hnae3_set_field() calls are meaningless, remove them and change the type of these two parameters to u16. Signed-off-by: Huazhong Tan --- drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c | 17 ++

[PATCH net-next 06/11] net: hns3: remove some unused fields in struct hns3_nic_priv

2020-05-28 Thread Huazhong Tan
Remove some fileds which defined in struct hns3_nic_priv, but not used, and remove the related definition of struct hns3_udp_tunnel and enum hns3_udp_tnl_type. Signed-off-by: Huazhong Tan --- drivers/net/ethernet/hisilicon/hns3/hns3_enet.h | 22 -- 1 file changed, 22 deletion

[PATCH net-next 01/11] net: hns3: add a missing mutex destroy in hclge_init_ad_dev()

2020-05-28 Thread Huazhong Tan
Add a mutex destroy call in hclge_init_ae_dev() when fails. Signed-off-by: Huazhong Tan --- drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c b/drivers/net/ethernet/hisilicon/hns3/h

[PATCH net-next 00/11] net: hns3: misc updates for -next

2020-05-28 Thread Huazhong Tan
This patchset includes some updates for the HNS3 ethernet driver. #1 adds a missing mutex destroy. #2&3 refactor two function, make them more readable and maintainable. #4&5 fix unsuitable type of gro enable field both for PF & VF. #6-#10 removes some unused fields, macro and redundant definitions

[PATCH net-next 03/11] net: hns3: refactor hclge_query_bd_num_cmd_send()

2020-05-28 Thread Huazhong Tan
In order to improve code maintainability and readability, rewrite the process of BDs' initialization in hclge_query_bd_num_cmd_send(). Signed-off-by: Huazhong Tan --- .../net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c | 21 - 1 file changed, 12 insertions(+), 9 deletions(-)

[PATCH net-next 04/11] net: hns3: modify an incorrect type in struct hclge_cfg_gro_status_cmd

2020-05-28 Thread Huazhong Tan
Modify field .gro_en in struct hclge_cfg_gro_status_cmd to u8 according to the UM, otherwise, it will overwrite the reserved byte which may be used for other purpose. Signed-off-by: Huazhong Tan --- drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_cmd.h | 4 ++-- drivers/net/ethernet/hisilicon/

[PATCH net-next 10/11] net: hns3: remove some unused fields in struct hclge_dev

2020-05-28 Thread Huazhong Tan
Remove some fields in struct hclge_dev which have not been used. Signed-off-by: Huazhong Tan --- drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.h | 6 -- 1 file changed, 6 deletions(-) diff --git a/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.h b/drivers/net/ethernet/hisili

[PATCH net-next 08/11] net: hns3: remove unused struct hnae3_unic_private_info

2020-05-28 Thread Huazhong Tan
Since field .uinfo in struct hnae3_handle never be used, so remove it and its structure definition. Signed-off-by: Huazhong Tan --- drivers/net/ethernet/hisilicon/hns3/hnae3.h | 11 --- 1 file changed, 11 deletions(-) diff --git a/drivers/net/ethernet/hisilicon/hns3/hnae3.h b/drivers/n

[PATCH net-next 09/11] net: hns3: remove two duplicated register macros in hclgevf_main.h

2020-05-28 Thread Huazhong Tan
HCLGEVF_CMDQ_INTR_SRC_REG and HCLGEVF_CMDQ_INTR_STS_REG are same as HCLGEVF_VECTOR0_CMDQ_SRC_REG and HCLGEVF_VECTOR0_CMDQ_STAT_REG, replace the former with the latter, and rename macro HCLGEVF_VECTOR0_CMDQ_STAT_REG since 'stat' is not abbreviation of 'state'. Signed-off-by: Huazhong Tan --- driv

[PATCH net-next 11/11] net: hns3: print out speed info when parsing speed fails

2020-05-28 Thread Huazhong Tan
When calling hclge_parse_speed() fails, printing out the speed is helpful for debugging. Signed-off-by: Huazhong Tan --- drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_

Re: [PATCH v4 1/2] cpufreq: change '.set_boost' to act on only one policy

2020-05-28 Thread Rafael J. Wysocki
On Friday, May 22, 2020 5:34:35 AM CEST Xiongfeng Wang wrote: > Macro 'for_each_active_policy()' is defined internally. To avoid some > cpufreq driver needing this macro to iterate over all the policies in > '.set_boost' callback, we redefine '.set_boost' to act on only one > policy and pass the po

[PATCH net-next 07/11] net: hns3; remove unused HNAE3_RESTORE_CLIENT in enum hnae3_reset_notify_type

2020-05-28 Thread Huazhong Tan
Remove HNAE3_RESTORE_CLIENT which is not needed now. Signed-off-by: Huazhong Tan --- drivers/net/ethernet/hisilicon/hns3/hnae3.h | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/net/ethernet/hisilicon/hns3/hnae3.h b/drivers/net/ethernet/hisilicon/hns3/hnae3.h index 7506cab..0a4aac4 10

Re: [PATCH net-next 00/11] net: hns3: misc updates for -next

2020-05-28 Thread tanhuazhong
Sorry, please ignore this patchset, will resend it later. On 2020/5/28 20:45, Huazhong Tan wrote: This patchset includes some updates for the HNS3 ethernet driver. #1 adds a missing mutex destroy. #2&3 refactor two function, make them more readable and maintainable. #4&5 fix unsuitable type of

Re: [PATCH v2 1/1] userfaultfd/sysctl: add vm.unprivileged_userfaultfd

2020-05-28 Thread Peter Xu
On Thu, May 28, 2020 at 04:50:49PM +0800, Xiaoming Ni wrote: > Since userfaultfd and vm are more closely related, will there be > consideration to move fs/userfaultfd.c to the mm directory in the future? Xiaoming, I don't think so - userfaultfd is still interfacing the userspace as a file object,

[PATCH] MIPS: Fix IRQ tracing when call handle_fpe() and handle_msa_fpe()

2020-05-28 Thread YuanJunQing
Register "a1" is unsaved in this function, when CONFIG_TRACE_IRQFLAGS is enabled, the TRACE_IRQS_OFF macro will call trace_hardirqs_off(), and this may change register "a1". The changed register "a1" as argument will be send to do_fpe() and do_msa_fpe(). Signed-off-by: YuanJunQing --- arch

Re: [git pull] coredump infoleak fix

2020-05-28 Thread Al Viro
On Thu, May 28, 2020 at 09:44:42AM +0200, Ingo Molnar wrote: > > * Al Viro wrote: > > > On Thu, May 28, 2020 at 09:02:55AM +0200, Ingo Molnar wrote: > > > > > Looks good to me. > > > > > > I'm wondering, shouldn't we also zero-initialize the dump data to > > > begin with? See the patch below

Re: [PATCH net-next v3] net: phy: micrel: add phy-mode support for the KSZ9031 PHY

2020-05-28 Thread Geert Uytterhoeven
Hi Philippe, On Thu, May 28, 2020 at 10:20 AM Philippe Schenker wrote: > On Wed, 2020-05-27 at 21:11 +0200, Geert Uytterhoeven wrote: > > On Wed, Apr 29, 2020 at 11:26 AM Oleksij Rempel < > > o.rem...@pengutronix.de> wrote: > > > On Wed, Apr 29, 2020 at 10:45:35AM +0200, Geert Uytterhoeven wrote:

Re: [PATCH] proc/fd: Remove the initialization of variables in seq_show()

2020-05-28 Thread Tao pilgrim
> > The variables{files, file} will definitely be assigned, > > I find an other specification nicer for these identifiers. > > > > so we don't need to initialize them. > > I suggest to recheck programming concerns around the handling > of the null pointer for the variable “file”. > https://git.kern

[PATCH] function:stacktrace/mips: Fix function:stacktrace for mips

2020-05-28 Thread YuanJunQing
ftrace_call as global symbol in ftrace_caller(), this will cause function:stacktrace can not work well. i.e. echo do_IRQ:stacktrace > set_ftrace_filte Signed-off-by: YuanJunQing --- arch/mips/kernel/mcount.S | 13 +++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/arch/

Re: [PATCH] MIPS: Fix IRQ tracing when call handle_fpe() and handle_msa_fpe()

2020-05-28 Thread yuanjunqing
sorry! 在 2020/5/28 下午8:35, YuanJunQing 写道: > Register "a1" is unsaved in this function, > when CONFIG_TRACE_IRQFLAGS is enabled, > the TRACE_IRQS_OFF macro will call trace_hardirqs_off(), > and this may change register "a1". > The changed register "a1" as argument will be send > to do_fpe()

Re: [PATCH -tip v3 09/11] data_race: Avoid nested statement expression

2020-05-28 Thread Stephen Rothwell
Hi Arnd, On Wed, 27 May 2020 11:26:51 +0200 Arnd Bergmann wrote: > > Right. I think there is still room for optimization around here, but > for v5.8 I'm happy enough with Marco's__unqual_scalar_typeof() > change. Stephen Rothwell is probably the one who's most affected > by compile speed, so it w

Re: [ANNOUNCE] Git v2.27.0-rc2

2020-05-28 Thread Kaartic Sivaraam
On 27 May 2020 22:17:01 GMT+05:30, Junio C Hamano wrote: >Kaartic Sivaraam writes: > >> Hi Junio, >> >> On 27-05-2020 00:17, Junio C Hamano wrote: >>> Shourya Shukla (4): >>>submodule--helper.c: Rename 'cb_foreach' to 'foreach_cb' >>>gitfaq: files in .gitignore are tracked >>>

Re: [PATCHv8 0/6] n_gsm serdev support and GNSS driver for droid4

2020-05-28 Thread Pavel Machek
On Thu 2020-05-28 10:39:18, Johan Hovold wrote: > On Tue, May 12, 2020 at 02:47:07PM -0700, Tony Lindgren wrote: > > Hi all, > > > > Here's the updated set of these patches fixed up for Johan's and > > Pavel's earlier comments. > > > > This series does the following: > > > > 1. Adds functions to

Re: [PATCH v5 2/2] gpio: add a reusable generic gpio_chip using regmap

2020-05-28 Thread Michael Walle
Am 2020-05-28 13:45, schrieb Andy Shevchenko: On Thu, May 28, 2020 at 7:04 AM Michael Walle wrote: There are quite a lot simple GPIO controller which are using regmap to access the hardware. This driver tries to be a base to unify existing code into one place. This won't cover everything but i

Re: [PATCH 1/1] soc: keembay: Add Keem Bay IMR driver

2020-05-28 Thread Daniele Alessandrelli
On Thu, 2020-05-28 at 13:22 +0200, Pavel Machek wrote: > Hi! > > > > Agreed, this sounds like an incompatible extension of the boot > > > protocol > > > that we should otherwise not merge. > > > > > > However, there is also a lot of missing information here, and it > > > is > > > always > > > pos

Re: [PATCH v3 4/6] bus: Add Baikal-T1 AXI-bus driver

2020-05-28 Thread Serge Semin
On Thu, May 28, 2020 at 02:44:32PM +0200, Arnd Bergmann wrote: > On Thu, May 28, 2020 at 2:27 PM Serge Semin > wrote: > > > > On Thu, May 28, 2020 at 02:14:58PM +0200, Arnd Bergmann wrote: > > > On Thu, May 28, 2020 at 12:01 AM Andy Shevchenko > > > wrote: > > > > On Tuesday, May 26, 2020, Serge

Re: [PATCH v3 07/18] nitro_enclaves: Init misc device providing the ioctl interface

2020-05-28 Thread Alexander Graf
On 27.05.20 00:24, Greg KH wrote: On Tue, May 26, 2020 at 03:44:30PM +0200, Alexander Graf wrote: On 26.05.20 15:17, Greg KH wrote: On Tue, May 26, 2020 at 02:44:18PM +0200, Alexander Graf wrote: On 26.05.20 14:33, Greg KH wrote: On Tue, May 26, 2020 at 01:42:41PM +0200, Alexander G

Re: [PATCH] ASoC: sta32x: add missed function calls in error paths

2020-05-28 Thread Mark Brown
On Thu, 28 May 2020 18:20:04 +0800, Chuhong Yuan wrote: > sta32x_probe() forgets to call undo functions when it fails, add > the missed function calls to fix it. Applied to https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-next Thanks! [1/1] ASoC: sta32x: add missed funct

Re: [PATCH] ASoC: ingenic: Unconditionally depend on devicetree

2020-05-28 Thread Mark Brown
On Sat, 23 May 2020 14:54:55 +0200, Paul Cercueil wrote: > All boards with Ingenic SoCs probe with devicetree already, we have no > use for a non-devicetree path. > > This solves some compilation warnings that were caused by unused > variables in the case where CONFIG_OF was disabled. Applied to

Re: [PATCH] ASoC: amd: Removing unnecessary instance initialization

2020-05-28 Thread Mark Brown
On Thu, 28 May 2020 13:22:16 +0530, Ravulapati Vishnu vardhan rao wrote: > In DMA pointer the initialzation of instance is of no use. > In fact it will reinitialize the instance variable which is already > opened and functional. Applied to https://git.kernel.org/pub/scm/linux/kernel/git/brooni

Re: [PATCH v2] ASoC: rt5682: split i2c driver into separate module

2020-05-28 Thread Mark Brown
On Thu, 28 May 2020 11:17:17 +0200, Arnd Bergmann wrote: > With SND_SOC_AMD_RV_RT5682_MACH using the i2c version of the > driver, we can easily get a build failure when I2C is built-in > but soundwire is not: > > WARNING: unmet direct dependencies detected for SND_SOC_RT5682 >Depends on [m]:

Re: [PATCH] habanalabs: fix error code in unmap_device_va()

2020-05-28 Thread Oded Gabbay
Thanks, we already have a patch ready for that in -fixes branch that will be applied in 5.8-rc2 Oded On Thu, May 28, 2020 at 3:39 PM Dan Carpenter wrote: > > Smatch complains that "rc" can be uninitialized on certain paths. > > Fixes: 8ff5f4fd40df ("habanalabs: handle MMU cache invalidation timeo

RE: [PATCH 2/2] firmware: smccc: Add ARCH_SOC_ID support

2020-05-28 Thread Jose Marinho
> On Sat, May 23, 2020 at 7:27 PM Sudeep Holla > wrote: > > On Fri, May 22, 2020 at 08:41:59PM +0200, Arnd Bergmann wrote: > > > On Fri, May 22, 2020 at 6:54 PM Sudeep Holla > wrote: > > > > > jep106:5678 (the IMP_DEF_SOC_ID field in my example) would probably > > > be sufficient to not conflict

Re: [PATCH 5/6] gnss: motmdm: Add support for Motorola Mapphone MDM6600 modem

2020-05-28 Thread Johan Hovold
On Tue, May 12, 2020 at 02:47:12PM -0700, Tony Lindgren wrote: > Motorola is using a custom TS 27.010 based serial port line discipline > for various devices on the modem. These devices can be accessed on > dedicated channels using Linux kernel serdev-ngsm driver. > > For the GNSS on these devices

Re: [PATCH] [v2] spi: tegra114: Fix runtime PM imbalance on error

2020-05-28 Thread Mark Brown
On Sat, 23 May 2020 20:57:04 +0800, Dinghao Liu wrote: > pm_runtime_get_sync() increments the runtime PM usage counter even > when it returns an error code. Thus a pairing decrement is needed on > the error handling path to keep the counter balanced. Applied to https://git.kernel.org/pub/scm/l

Re: [PATCH v3 1/3] riscv: Move kernel mapping to vmalloc zone

2020-05-28 Thread Alex Ghiti
Hi Zong, Le 5/27/20 à 3:29 AM, Alex Ghiti a écrit : Le 5/27/20 à 2:05 AM, Zong Li a écrit : On Wed, May 27, 2020 at 1:06 AM Alex Ghiti wrote: Hi Zong, Le 5/26/20 à 5:43 AM, Zong Li a écrit : On Sun, May 24, 2020 at 4:54 PM Alexandre Ghiti wrote: This is a preparatory patch for relocatable

Re: [PATCH v8 00/13] add ecspi ERR009165 for i.mx6/7 soc family

2020-05-28 Thread Mark Brown
On Thu, 21 May 2020 04:34:12 +0800, Robin Gong wrote: > There is ecspi ERR009165 on i.mx6/7 soc family, which cause FIFO > transfer to be send twice in DMA mode. Please get more information from: > https://www.nxp.com/docs/en/errata/IMX6DQCE.pdf. The workaround is adding > new sdma ram script which

Re: [PATCH] [v2] spi: tegra20-sflash: Fix runtime PM imbalance on error

2020-05-28 Thread Mark Brown
On Sat, 23 May 2020 20:47:58 +0800, Dinghao Liu wrote: > pm_runtime_get_sync() increments the runtime PM usage counter even > when it returns an error code. Thus a pairing decrement is needed on > the error handling path to keep the counter balanced. Applied to https://git.kernel.org/pub/scm/l

Re: [PATCH] MIPS: Loongson64: Remove not used pci.c

2020-05-28 Thread Thomas Bogendoerfer
On Thu, May 28, 2020 at 07:29:11PM +0800, Tiezhu Yang wrote: > After commit 6423e59a64e7 ("MIPS: Loongson64: Switch to generic PCI > driver"), arch/mips/loongson64/pci.c is not used any more, remove it. > > Signed-off-by: Tiezhu Yang > --- > arch/mips/loongson64/pci.c | 49 > ---

Re: [PATCH] [v2] spi: tegra20-slink: Fix runtime PM imbalance on error

2020-05-28 Thread Mark Brown
On Sat, 23 May 2020 20:29:09 +0800, Dinghao Liu wrote: > pm_runtime_get_sync() increments the runtime PM usage counter even > when it returns an error code. Thus a pairing decrement is needed on > the error handling path to keep the counter balanced. Applied to https://git.kernel.org/pub/scm/l

Re: [PATCH net] net: mvpp2: Enable autoneg bypass for 1000BaseX/2500BaseX ports

2020-05-28 Thread Russell King - ARM Linux admin
On Thu, May 28, 2020 at 02:11:21PM +0200, Thomas Bogendoerfer wrote: > Commit d14e078f23cc ("net: marvell: mvpp2: only reprogram what is necessary > on mac_config") disabled auto negotiation bypass completely, which breaks > platforms enabling bypass via firmware (not the best option, but it worke

[PATCH] drm/msm/dpu: Fix usage of ERR_PTR()

2020-05-28 Thread Zenghui Yu
ERR_PTR() is used in the kernel to encode an usual *negative* errno code into a pointer. Passing a positive value (ENOMEM) to it will break the following IS_ERR() check. Though memory allocation is unlikely to fail, it's still worth fixing. And grepping shows that this is the only misuse of ERR_P

Re: [PATCH 06/12] xen-blkfront: add callbacks for PM suspend and hibernation

2020-05-28 Thread Roger Pau Monné
On Tue, May 19, 2020 at 11:27:50PM +, Anchal Agarwal wrote: > From: Munehisa Kamata > > S4 power transition states are much different than xen > suspend/resume. Former is visible to the guest and frontend drivers should > be aware of the state transitions and should be able to take appropriat

Re: [PATCH net-next v3] net: phy: micrel: add phy-mode support for the KSZ9031 PHY

2020-05-28 Thread Geert Uytterhoeven
Hi Andrew, On Wed, May 27, 2020 at 10:52 PM Andrew Lunn wrote: > > You may wonder what's the difference between 3 and 4? It's not just the > > PHY driver that looks at phy-mode! > > drivers/net/ethernet/renesas/ravb_main.c:ravb_set_delay_mode() also > > does, and configures an additional TX clock

Re: [PATCH v2 1/4] gpio: gpiolib: Allow GPIO IRQs to lazy disable

2020-05-28 Thread Maulik Shah
Hi, On 5/28/2020 6:38 AM, Stephen Boyd wrote: Quoting Maulik Shah (2020-05-27 04:26:14) On 5/27/2020 3:14 PM, Stephen Boyd wrote: Quoting Maulik Shah (2020-05-23 10:11:10) diff --git a/drivers/gpio/gpiolib.c b/drivers/gpio/gpiolib.c index eaa0e20..3810cd0 100644 --- a/drivers/gpio/gpiolib.c +

Re: [RFC PATCH] iommu/arm-smmu: Add module parameter to set msi iova address

2020-05-28 Thread Auger Eric
Hi Shameer, On 5/28/20 2:09 PM, Shameerali Kolothum Thodi wrote: > > >> -Original Message- >> From: Auger Eric [mailto:eric.au...@redhat.com] >> Sent: 28 May 2020 12:48 >> To: Shameerali Kolothum Thodi ; >> Jean-Philippe Brucker >> Cc: Robin Murphy ; Joerg Roedel >> ; io...@lists.linux-

[PATCH] regulator: do not balance regulators without constraints

2020-05-28 Thread Marek Szyprowski
Balancing coupled regulators must wait until the clients for all of the coupled regualtors set their constraints, otherwise the balancing code might change the voltage of the not-yet-constrained regulator to the value below the bootloader-configured operation point, what might cause a system crash.

drivers/mtd/nand/raw/ams-delta.c:373:34: warning: unused variable 'gpio_nand_of_id_table'

2020-05-28 Thread kbuild test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: b0c3ba31be3e45a130e13b278cf3b90f69bda6f6 commit: 7c2f66a960fccc165d0b6c594f40f0ad3edfc61f mtd: rawnand: ams-delta: Add module device tables date: 3 months ago config: x86_64-randconfig-a004-20200528

Re: [PATCH v3 5/6] bus: Add Baikal-T1 APB-bus driver

2020-05-28 Thread Serge Semin
On Thu, May 28, 2020 at 02:17:17PM +0200, Arnd Bergmann wrote: > On Tue, May 26, 2020 at 2:59 PM Serge Semin > wrote: > > > > Baikal-T1 AXI-APB bridge is used to access the SoC subsystem CSRs. > > IO requests are routed to this bus by means of the DW AMBA 3 AXI > > Interconnect. In case if an atte

Re: [PATCH v3 07/18] nitro_enclaves: Init misc device providing the ioctl interface

2020-05-28 Thread Greg KH
On Thu, May 28, 2020 at 03:01:36PM +0200, Alexander Graf wrote: > > > On 27.05.20 00:24, Greg KH wrote: > > > > On Tue, May 26, 2020 at 03:44:30PM +0200, Alexander Graf wrote: > > > > > > > > > On 26.05.20 15:17, Greg KH wrote: > > > > > > > > On Tue, May 26, 2020 at 02:44:18PM +0200, Alexand

Re: linux-next: build failure after merge of the akpm tree

2020-05-28 Thread Christoph Hellwig
This looks correct, thanks.

Re: [PATCH v2] arm: dts: am335x-boneblack: add gpio-line-names

2020-05-28 Thread Drew Fustini
On Thu, May 21, 2020 at 10:09:26PM +0200, Drew Fustini wrote: > The BeagleBone Black has P8 and P9 headers [0] which expose many of the > AM3358 ZCZ SoC balls to stacking expansion boards called "capes", or to > other external connections like jumper wires connected to a breadboard. > BeagleBone us

[PATCH V2 1/3] perf/x86/intel/uncore: Fix oops when counting IMC uncore events on some TGL

2020-05-28 Thread kan . liang
From: Kan Liang When counting IMC uncore events on some TGL machines, an oops will be triggered. [ 393.101262] BUG: unable to handle page fault for address: b45200e15858 [ 393.101269] #PF: supervisor read access in kernel mode [ 393.101271] #PF: error_code(0x) - not-present page

[PATCH V2 3/3] perf/x86/intel/uncore: Validate MMIO address before accessing

2020-05-28 Thread kan . liang
From: Kan Liang An oops will be triggered, if perf tries to access an invalid address which exceeds the mapped area. Check the address before the actual access to MMIO sapce of an uncore unit. Suggested-by: David Laight Signed-off-by: Kan Liang --- arch/x86/events/intel/uncore.c | 3 +

VERY URGENT ATTENTION.

2020-05-28 Thread Mr.Manu Kala
I am Mr. Manu Kala writing you from Burkina Faso West Africa. I feel quite safe dealing with you in this important business, however, this correspondence is private, and it should be treated in strict confidence. Firstly I will like to assure you that this transaction is 100% risk and trouble free

Re: [PATCH net] net: mvpp2: Enable autoneg bypass for 1000BaseX/2500BaseX ports

2020-05-28 Thread Thomas Bogendoerfer
On Thu, 28 May 2020 14:07:38 +0100 Russell King - ARM Linux admin wrote: > On Thu, May 28, 2020 at 02:11:21PM +0200, Thomas Bogendoerfer wrote: > > Commit d14e078f23cc ("net: marvell: mvpp2: only reprogram what is necessary > > on mac_config") disabled auto negotiation bypass completely, which b

[PATCH V2 2/3] perf/x86/intel/uncore: Record the size of mapped area

2020-05-28 Thread kan . liang
From: Kan Liang Perf cannot validate an address before the actual access to MMIO space of some uncore units, e.g. IMC on TGL. Accessing an invalid address, which exceeds mapped area, can trigger oops. Perf never records the size of mapped area. Generic functions, e.g. uncore_mmio_read_counter(),

Re: [PATCH 02/15] drm/panfrost: clean headers in devfreq

2020-05-28 Thread Steven Price
On 10/05/2020 17:55, Clément Péron wrote: Don't include not required headers and sort them. Signed-off-by: Clément Péron Reviewed-by: Steven Price --- drivers/gpu/drm/panfrost/panfrost_devfreq.c | 8 ++-- 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/drivers/gpu/drm/

Re: [PATCH 04/15] drm/panfrost: introduce panfrost_devfreq struct

2020-05-28 Thread Steven Price
On 10/05/2020 17:55, Clément Péron wrote: Introduce a proper panfrost_devfreq to deal with devfreq variables. Signed-off-by: Clément Péron Reviewed-by: Steven Price --- drivers/gpu/drm/panfrost/panfrost_devfreq.c | 76 - drivers/gpu/drm/panfrost/panfrost_devfreq.h |

Re: [PATCH 03/15] drm/panfrost: don't use pfdevfreq.busy_count to know if hw is idle

2020-05-28 Thread Steven Price
On 10/05/2020 17:55, Clément Péron wrote: This use devfreq variable that will be lock with spinlock in future patches. We should either introduce a function to access this one but as devfreq is optional let's just remove it. Signed-off-by: Clément Péron As far as I can tell this should be saf

Re: [PATCH 05/15] drm/panfrost: use spinlock instead of atomic

2020-05-28 Thread Steven Price
On 10/05/2020 17:55, Clément Péron wrote: Convert busy_count to a simple int protected by spinlock. Signed-off-by: Clément Péron Looks like a fairly mechanical cleanup. Reviewed-by: Steven Price --- drivers/gpu/drm/panfrost/panfrost_devfreq.c | 43 +++-- drivers/gpu/drm

Re: [PATCH 01/15] drm/panfrost: avoid static declaration

2020-05-28 Thread Steven Price
On 10/05/2020 17:55, Clément Péron wrote: This declaration can be avoided so change it. Signed-off-by: Clément Péron Reviewed-by: Steven Price --- drivers/gpu/drm/panfrost/panfrost_devfreq.c | 38 ++--- 1 file changed, 18 insertions(+), 20 deletions(-) diff --git a/driv

Re: [PATCH 06/15] drm/panfrost: properly handle error in probe

2020-05-28 Thread Steven Price
On 10/05/2020 17:55, Clément Péron wrote: Introduce a boolean to know if opp table has been added. With this, we can call panfrost_devfreq_fini() in case of error and release what has been initialised. Signed-off-by: Clément Péron LGTM: Reviewed-by: Steven Price --- drivers/gpu/drm/pan

Re: [PATCH 07/15] drm/panfrost: use device_property_present to check for OPP

2020-05-28 Thread Steven Price
On 10/05/2020 17:55, Clément Péron wrote: Instead of expecting an error from dev_pm_opp_of_add_table() do a simple device_property_present() check. Signed-off-by: Clément Péron I'm not sure I understand why this is better. We seem to have more code to do roughly the same thing just with the

Re: [PATCH 09/15] drm/panfrost: dynamically alloc regulators

2020-05-28 Thread Steven Price
On 10/05/2020 17:55, Clément Péron wrote: We will later introduce regulators managed by OPP. Only alloc regulators when it's needed. This also help use to release the regulators only when they are allocated. Signed-off-by: Clément Péron LGTM: Reviewed-by: Steven Price --- drivers/gpu/d

Re: [PATCH 08/15] drm/panfrost: move devfreq_init()/fini() in device

2020-05-28 Thread Steven Price
On 10/05/2020 17:55, Clément Péron wrote: Later we will introduce devfreq probing regulator if they are present. As regulator should be probe only one time we need to get this logic in the device_init(). panfrost_device is already taking care of devfreq_resume() and devfreq_suspend(), so it's no

Re: [PATCH 11/15] drm/panfrost: set devfreq clock name

2020-05-28 Thread Steven Price
On 10/05/2020 17:55, Clément Péron wrote: Some SoCs have several clocks defined and the OPP core needs to know the exact name of the clk to use. Set the clock name to "core". Signed-off-by: Clément Péron This is unfortunately a regression for the RK3288. The device tree binding doesn't req

[PATCH v2] of/fdt: Remove redundant kbasename function call

2020-05-28 Thread Qi Zheng
For version 1 to 3 of the device tree, this is the node full path as a zero terminated string, starting with "/". The following equation will not hold, since the node name has been processed in the fdt_get_name(). *pathp == '/' For version 16 and later, this is the node unit name only (or

[Patch 0/2] media: v4l2-rect.h: add enclosed rectangle helper

2020-05-28 Thread Benoit Parrot
This series introduces a new v4l2_rect_enclosed helper function which already exist in some form in several drivers. It then proceed to update those drivers to use the new helper function. Benoit Parrot (2): media: v4l2-rect.h: add enclosed rectangle helper media: use v4l2_rect_enclosed helper

[Patch 1/2] media: v4l2-rect.h: add enclosed rectangle helper

2020-05-28 Thread Benoit Parrot
Add a helper function to check if one rectangle is enclosed inside another. Signed-off-by: Benoit Parrot --- include/media/v4l2-rect.h | 20 1 file changed, 20 insertions(+) diff --git a/include/media/v4l2-rect.h b/include/media/v4l2-rect.h index 8800a640c224..bd587d0c0dc3

[Patch 2/2] media: use v4l2_rect_enclosed helper

2020-05-28 Thread Benoit Parrot
Several drivers implement the same enclosed_rectangle() function to check if a rectangle is enclosed into another. Replace this with the newly added v4l2_rect_enclosed() helper function. Signed-off-by: Benoit Parrot --- drivers/media/platform/am437x/am437x-vpfe.c | 19 +++ .../

<    1   2   3   4   5   6   7   8   9   10   >