Re: [PATCH 6/9] debugfs: Implement debugfs_create_str()

2021-03-26 Thread Greg KH
On Fri, Mar 26, 2021 at 12:18:47PM +0100, Peter Zijlstra wrote: > On Fri, Mar 26, 2021 at 12:05:07PM +0100, Greg KH wrote: > > On Fri, Mar 26, 2021 at 11:33:58AM +0100, Peter Zijlstra wrote: > > > > > > Signed-off-by: Peter Zijlstra (Intel) > > > > No changelog text? :( > > Yeah, didn't really

[PATCH] x86: Simplify the return expression

2021-03-26 Thread zuoqilin1
From: zuoqilin Simplify the return expression of kvm_compute_tsc_offset(). Signed-off-by: zuoqilin --- arch/x86/kvm/x86.c | 6 +- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/arch/x86/kvm/x86.c b/arch/x86/kvm/x86.c index fe806e8..3906c1b 100644 --- a/arch/x86/kvm/x86.c +++

Re: [PATCH v4 09/16] gpio: support ROHM BD71815 GPOs

2021-03-26 Thread Andy Shevchenko
On Fri, Mar 26, 2021 at 1:26 PM Andy Shevchenko wrote: > On Wed, Mar 24, 2021 at 12:20 PM Matti Vaittinen > wrote: > > +#include > > You may do better than be OF-centric. See below. Ah, yep, when you switch to unified device property API, you would need property.h and mod_devicetable.h instea

[PATCH] nvdimm/nd-core.h: struct nd_region is declared twice

2021-03-26 Thread Wan Jiabing
struct nd_region has been declared at 118th line. Remove the duplicate. Signed-off-by: Wan Jiabing --- drivers/nvdimm/nd-core.h | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/nvdimm/nd-core.h b/drivers/nvdimm/nd-core.h index 564faa36a3ca..e54551caf335 100644 --- a/drivers/nvdimm/nd-c

[PATCH] mm: page_alloc: ignore init_on_free=1 for page alloc

2021-03-26 Thread Sergei Trofimovich
init_on_free=1 does not guarantee that free pages contain only zero bytes. Some examples: 1. page_poison=on takes presedence over init_on_alloc=1 / ini_on_free=1 2. free_pages_prepare() always poisons pages: if (want_init_on_free()) kernel_init_free_pages(page, 1 << order);

Re: [PATCH v4 09/16] gpio: support ROHM BD71815 GPOs

2021-03-26 Thread Andy Shevchenko
On Wed, Mar 24, 2021 at 12:20 PM Matti Vaittinen wrote: > > Support GPO(s) found from ROHM BD71815 power management IC. The IC has two > GPO pins but only one is properly documented in data-sheet. The driver in the datasheet > exposes by default only the documented GPO. The second GPO is connect

Re: [PATCH next v1 3/3] printk: convert @syslog_lock to spin_lock

2021-03-26 Thread John Ogness
On 2021-03-23, Petr Mladek wrote: > On Wed 2021-03-17 00:33:26, John Ogness wrote: >> @syslog_log was a raw_spin_lock to simplify the transition of > > s/syslog_log/syslog_lock/ > > Same problem is also below. Right. >> removing @logbuf_lock and the safe buffers. With that transition >> complet

Re: [PATCH] mm/page_alloc: try oom if reclaim is unable to make forward progress

2021-03-26 Thread Aaron Tomlin
Hi Michal, On Fri 2021-03-26 09:16 +0100, Michal Hocko wrote: > The oom killer is never triggered for costly allocation request. Yes - I agree. Looking at __alloc_pages_may_oom() I can see for a costly order allocation request the OOM killer is explicitly not used. If I understand correctly, the

Re: [PATCH v3 11/19] media: i2c: rdacm21: Add dealy after OV490 reset

2021-03-26 Thread Jacopo Mondi
Hi Laurent, Kieran, On Sat, Mar 20, 2021 at 05:52:18PM +0200, Laurent Pinchart wrote: > Hi Jacopo, > > Thank you for the patch. > > On Fri, Mar 19, 2021 at 04:49:44PM +, Kieran Bingham wrote: > > Hi Jacopo, > > > > s/dealy/delay/ in $SUBJECT > > > > On 19/03/2021 16:41, Jacopo Mondi wrote: > >

[kbuild] drivers/gpu/drm/exynos/exynos_drm_dma.c:144 exynos_drm_register_dma() error: uninitialized symbol 'mapping'.

2021-03-26 Thread Dan Carpenter
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: db24726bfefa68c606947a86132591568a06bfb4 commit: b4ceb4a5359ed1c9ba4a20acf3a70d4bbead3248 iommu: Tidy up Kconfig for SoC IOMMUs config: nios2-randconfig-m031-20210326 (attached as .config) compiler: nios2

Re: [PATCH 6/9] debugfs: Implement debugfs_create_str()

2021-03-26 Thread Peter Zijlstra
On Fri, Mar 26, 2021 at 12:05:07PM +0100, Greg KH wrote: > On Fri, Mar 26, 2021 at 11:33:58AM +0100, Peter Zijlstra wrote: > > > > Signed-off-by: Peter Zijlstra (Intel) > > No changelog text? :( Yeah, didn't really know what to say that the Subject didn't already do. > > +/** > > + * debugfs_

Re: [PATCH] docs: powerpc: Fix misspellings and grammar errors

2021-03-26 Thread Michael Ellerman
He Ying writes: > Reported-by: Hulk Robot > Signed-off-by: He Ying > --- > Documentation/powerpc/booting.rst| 2 +- > Documentation/powerpc/dawr-power9.rst| 2 +- > Documentation/powerpc/eeh-pci-error-recovery.rst | 2 +- > Documentation/powerpc/elfnote.rst

[PATCH v6 9/9] dt-bindings: serial: stm32: Use 'type: object' instead of false for 'additionalProperties'

2021-03-26 Thread dillon . minfei
From: dillon min To use additional properties 'bluetooth' on serial, need replace false with 'type: object' for 'additionalProperties' to make it as a node, else will run into dtbs_check warnings. 'arch/arm/boot/dts/stm32h750i-art-pi.dt.yaml: serial@40004800: 'bluetooth' does not match any of th

[PATCH v6 7/9] ARM: stm32: Add a new SOC - STM32H750

2021-03-26 Thread dillon . minfei
From: dillon min The STM32H750 is a Cortex-M7 MCU running at 480MHz and containing 128KBytes internal flash, 1MiB SRAM. Signed-off-by: dillon min --- v6: no changes arch/arm/mach-stm32/board-dt.c | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/mach-stm32/board-dt.c b/arch/arm/ma

[PATCH v6 8/9] pinctrl: stm32: Add STM32H750 MCU pinctrl support

2021-03-26 Thread dillon . minfei
From: dillon min This patch adds STM32H750 pinctrl and GPIO support since stm32h750 has the same pin alternate functions with stm32h743, so just reuse the stm32h743's pinctrl driver Signed-off-by: dillon min --- v6: no changes drivers/pinctrl/stm32/Kconfig | 2 +- drivers/pinctrl

[PATCH v6 6/9] ARM: dts: stm32: add support for art-pi board based on stm32h750xbh6

2021-03-26 Thread dillon . minfei
From: dillon min This patchset has following changes: - introduce stm32h750.dtsi to support stm32h750 value line - add stm32h750i-art-pi.dtb (arch/arm/boot/dts/Makefile) - add dts binding usart3 for bt, uart4 for console usart3/uart4 pinctrl in stm32h7-pinctrl.dtsi usart3/uart4 register in s

[PATCH v6 0/9] ARM: STM32: add art-pi(stm32h750xbh6) board support

2021-03-26 Thread dillon . minfei
From: dillon min This patchset intend to add art-pi board support, this board developed by rt-thread(https://www.rt-thread.org/). Board resources: 8MiB QSPI flash 16MiB SPI flash 32MiB SDRAM AP6212 wifi,bt,fm comb sw context: - as stm32h750 just has 128k bytes internal flash, so running a fw on

[PATCH v6 5/9] ARM: dts: stm32: add stm32h750-pinctrl.dtsi

2021-03-26 Thread dillon . minfei
From: dillon min This patch add stm32h750-pinctrl.dtsi which just reference stm32h7-pinctrl.dtsi Signed-off-by: dillon min --- v6: no changes arch/arm/boot/dts/stm32h750-pinctrl.dtsi | 12 1 file changed, 12 insertions(+) create mode 100644 arch/arm/boot/dts/stm32h750-pinctrl.d

[PATCH v6 4/9] ARM: dts: stm32: introduce stm32h7-pinctrl.dtsi to support stm32h750

2021-03-26 Thread dillon . minfei
From: dillon min This patch is intend to add support stm32h750 value line, just add stm32h7-pinctrl.dtsi for extending, with following changes: - rename stm32h743-pinctrl.dtsi to stm32h7-pinctrl.dtsi - move compatible string "st,stm32h743-pinctrl" from stm32h7-pinctrl.dtsi to stm32h743-pinctrl

[PATCH v6 1/9] Documentation: arm: stm32: Add stm32h750 value line doc

2021-03-26 Thread dillon . minfei
From: dillon min This patchset add support for soc stm32h750, stm32h750 has mirror different from stm32h743 itemstm32h743 stm32h750 flash size: 2MiB 128KiB adc:none 3 crypto-hash:none aes/hamc/des/tdes/md5/sha detail information can

Re: [Bug 212265] New: clock_gettime(CLOCK_TAI, ...) should return an error when TAI has not been configured

2021-03-26 Thread Thomas Gleixner
Daphne, On Sat, Mar 13 2021 at 17:44, bugzilla-daemon wrote: > https://bugzilla.kernel.org/show_bug.cgi?id=212265 I'm leaving the text from the BZ entry untrimmed so everyone on Cc is on the same page. > In order for CLOCK_TAI to function properly, a program (usually ntpd) > has to use the adjti

linux-kernel@vger.kernel.org

2021-03-26 Thread David Hildenbrand
On 26.03.21 10:53, Liu Xiang wrote: Since pages have been deflated to a local list, there is no race between fill and leak. Signed-off-by: Liu Xiang --- drivers/virtio/virtio_balloon.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/virtio/virtio_balloon.c b/drive

Re: [PATCH mptcp-next] static_call: fix unused variable warn w/o MODULE

2021-03-26 Thread Peter Zijlstra
On Fri, Mar 26, 2021 at 11:50:23AM +0100, Matthieu Baerts wrote: > Here is the warning converted as error and reported by GCC: > > kernel/static_call.c: In function ‘__static_call_update’: > kernel/static_call.c:153:18: error: unused variable ‘mod’ > [-Werror=unused-variable] > 153 | st

Re: [PATCH 04/15] staging: rtl8723bs: put parentheses on macros with complex values in include/basic_types.h

2021-03-26 Thread Fabio Aiuto
On Fri, Mar 26, 2021 at 01:04:08PM +0300, Dan Carpenter wrote: > On Fri, Mar 26, 2021 at 10:09:11AM +0100, Fabio Aiuto wrote: > > fix the following checkpatch warnings: > > > > ERROR: Macros with complex values should be enclosed in parentheses > > 154: FILE: drivers/staging/rtl8723bs/include/basi

Re: [PATCH next v1 2/3] printk: remove safe buffers

2021-03-26 Thread John Ogness
On 2021-03-23, Petr Mladek wrote: >> --- a/kernel/printk/printk.c >> +++ b/kernel/printk/printk.c >> @@ -1142,8 +1126,6 @@ void __init setup_log_buf(int early) >> new_descs, ilog2(new_descs_count), >> new_infos); >> >> -printk_safe_enter_irqsave(flags); >> - >>

Re: Re: [PATCH] target: Fix a double put in transport_free_session

2021-03-26 Thread lyl2019
> -原始邮件- > 发件人: "Mike Christie" > 发送时间: 2021-03-26 01:24:58 (星期五) > 收件人: lyl2...@mail.ustc.edu.cn > 抄送: martin.peter...@oracle.com, linux-s...@vger.kernel.org, > target-de...@vger.kernel.org, linux-kernel@vger.kernel.org, "Nilesh Javali" > > 主题: Re: [PATCH] target: Fix a double put i

Re: [PATCH v3 19/19] media: i2c: rdacm20: Re-work ov10635 reset

2021-03-26 Thread Jacopo Mondi
Hi Laurent, On Sat, Mar 20, 2021 at 06:24:09PM +0200, Laurent Pinchart wrote: > Hi Jacopo, > > Thank you for the patch. > > On Fri, Mar 19, 2021 at 05:41:48PM +0100, Jacopo Mondi wrote: > > The OV10635 image sensor embedded in the camera module is currently > > reset after the MAX9271 initializati

Re: [PATCH 02/15] staging: rtl8723bs: put parentheses on macros with complex values in hal/HalBtcOutSrc.h

2021-03-26 Thread Fabio Aiuto
On Fri, Mar 26, 2021 at 12:54:49PM +0300, Dan Carpenter wrote: > On Fri, Mar 26, 2021 at 10:09:09AM +0100, Fabio Aiuto wrote: > > fix the following checkpatch warning: > > > > ERROR: Macros with complex values should be enclosed in parentheses > > 152: FILE: drivers/staging/rtl8723bs/hal/HalBtcOut

Re: [PATCH v3 13/19] media: i2c: rdacm21: Power up OV10640 before OV490

2021-03-26 Thread Jacopo Mondi
Hi Laurent, On Sat, Mar 20, 2021 at 06:14:43PM +0200, Laurent Pinchart wrote: > Hi Jacopo, > > Thank you for the patch. > > On Fri, Mar 19, 2021 at 05:41:42PM +0100, Jacopo Mondi wrote: > > The current RDACM21 initialization routine powers up the > > OV10640 image sensor after the OV490 ISP. The I

Re: [PATCH 4/9] sched: Move SCHED_DEBUG to debugfs

2021-03-26 Thread Greg KH
On Fri, Mar 26, 2021 at 11:33:56AM +0100, Peter Zijlstra wrote: > Stop polluting sysctl with undocumented knobs that really are debug > only, move them all to /debug/sched/ along with the existing > /debug/sched_* files that already exist. > > Signed-off-by: Peter Zijlstra (Intel) > --- > includ

Re: [PATCH 8/9] sched: Move /proc/sched_debug to debugfs

2021-03-26 Thread Greg KH
On Fri, Mar 26, 2021 at 11:34:00AM +0100, Peter Zijlstra wrote: > > Signed-off-by: Peter Zijlstra (Intel) > --- > kernel/sched/debug.c | 25 - > 1 file changed, 16 insertions(+), 9 deletions(-) Yes! Reviewed-by: Greg Kroah-Hartman

Re: [PATCH v6 2/2] Added AMS tsl2591 device tree binding

2021-03-26 Thread Andy Shevchenko
On Fri, Mar 26, 2021 at 1:43 AM Rob Herring wrote: > On Thu, 25 Mar 2021 22:05:04 +, Joe Sandom wrote: ... > > Datasheet: https://ams.com/tsl25911#tab/documents Not necessarily needed in this patch, but it's harmless. ... > However, > there's no need to repost patches *only* to add the ta

Re: [PATCH 6/9] debugfs: Implement debugfs_create_str()

2021-03-26 Thread Greg KH
On Fri, Mar 26, 2021 at 11:33:58AM +0100, Peter Zijlstra wrote: > > Signed-off-by: Peter Zijlstra (Intel) No changelog text? :( > +/** > + * debugfs_create_str - create a debugfs file that is used to read and write > a string value > + * @name: a pointer to a string containing the name of the

Re: [PATCH v7 00/38] SCMI vendor protocols and modularization

2021-03-26 Thread Cristian Marussi
On Thu, Mar 25, 2021 at 09:09:52PM -0700, Florian Fainelli wrote: > > > On 3/16/2021 5:48 AM, Cristian Marussi wrote: > > Hi all, > > > > The current SCMI implementation does not provide an interface to easily > > develop and include a custom vendor protocol implementation as prescribed > > by t

Re: [PATCH v7 18/38] clk: scmi: port driver to the new scmi_clk_proto_ops interface

2021-03-26 Thread Cristian Marussi
On Thu, Mar 25, 2021 at 05:08:59PM -0700, Stephen Boyd wrote: > Sorry didn't notice because linux-...@vger.kernel.org wasn't Cced > Ah, sorry my bad. > Quoting Cristian Marussi (2021-03-16 05:48:43) > > Port driver to the new SCMI Clock interface based on protocol handles > > and common devm_get_

Re: [PATCH v6 1/2] Added AMS tsl2591 driver implementation

2021-03-26 Thread Andy Shevchenko
On Fri, Mar 26, 2021 at 12:05 AM Joe Sandom wrote: > > Driver implementation for AMS/TAOS tsl2591 ambient light sensor. > > This driver supports configuration via device tree and sysfs. > Supported channels for raw infrared light intensity, > raw combined light intensity and illuminance in lux. >

Re: [PATCH v2 0/6] perf arm64 metricgroup support

2021-03-26 Thread John Garry
On 25/03/2021 20:39, Paul A. Clarke wrote: On Thu, Mar 25, 2021 at 06:33:12PM +0800, John Garry wrote: Metric reuse support is added for pmu-events parse metric testcase. This had been broken on power9 recentlty: https://lore.kernel.org/lkml/20210324015418.gc8...@li-24c3614c-2adc-11b2-a85c-85f33

Re: [PATCH] x86/kvmclock: Stop kvmclocks for hibernate restore

2021-03-26 Thread Vitaly Kuznetsov
Lenny Szubowicz writes: > On 3/17/21 9:30 AM, Vitaly Kuznetsov wrote: >> Lenny Szubowicz writes: >> >>> Turn off host updates to the registered kvmclock memory >>> locations when transitioning to a hibernated kernel in >>> resume_target_kernel(). >>> >>> This is accomplished for secondary vcpus

Re: [PATCH net-next] net: stmmac: Fix kernel panic due to NULL pointer dereference of fpe_cfg

2021-03-26 Thread Marek Szyprowski
On 26.03.2021 10:10, mohammad.athari.ism...@intel.com wrote: > From: Mohammad Athari Bin Ismail > > In this patch, "net: stmmac: support FPE link partner hand-shaking > procedure", priv->plat->fpe_cfg wouldn`t be "devm_kzalloc"ed if > dma_cap->frpsel is 0 (Flexible Rx Parser is not supported in So

[PATCH mptcp-next] static_call: fix unused variable warn w/o MODULE

2021-03-26 Thread Matthieu Baerts
Here is the warning converted as error and reported by GCC: kernel/static_call.c: In function ‘__static_call_update’: kernel/static_call.c:153:18: error: unused variable ‘mod’ [-Werror=unused-variable] 153 | struct module *mod = site_mod->mod; | ^~~ cc1: all w

[PATCH 2/2] arm64: dts: renesas: ulcb: Add cpu-supply property to a57_0 node

2021-03-26 Thread Geert Uytterhoeven
From: Yusuke Goda Add the cpu-supply property to the a57_0 node, so Dynamic Voltage and Frequency Scaling (DVFS) can change the CPU core voltage. Signed-off-by: Yusuke Goda Signed-off-by: Takeshi Kihara Signed-off-by: Geert Uytterhoeven --- arch/arm64/boot/dts/renesas/ulcb.dtsi | 4 1 f

[PATCH 1/2] arm64: dts: renesas: salvator-common: Add cpu-supply property to a57_0 node

2021-03-26 Thread Geert Uytterhoeven
From: Dien Pham Add the cpu-supply property to the a57_0 node, so Dynamic Voltage and Frequency Scaling (DVFS) can change the CPU core voltage. Signed-off-by: Dien Pham Signed-off-by: Takeshi Kihara Signed-off-by: Geert Uytterhoeven --- arch/arm64/boot/dts/renesas/salvator-common.dtsi | 4 ++

[PATCH 0/2] arm64: dts: renesas: Add cpu-supply properties for DVFS

2021-03-26 Thread Geert Uytterhoeven
Hi all, This patch series adds the cpu-supply properties to the a57_0 nodes on the Salvator-X(S) and ULCB development boards, so Dynamic Voltage and Frequency Scaling (DVFS) can change the CPU core voltages. This is a prerequisite for enabling CPU boost modes. To be queued in renesas-deve

Re: [PATCH v2 00/13] Driver of Intel(R) Gaussian & Neural Accelerator

2021-03-26 Thread Linus Walleij
On Wed, Mar 24, 2021 at 7:39 PM Maciej Kwapulinski wrote: > This submission is a kernel driver to support Intel(R) Gaussian & Neural > Accelerator (Intel(R) GNA). Intel(R) GNA is a PCI-based neural co-processor > available on multiple Intel platforms. I clearly remember Olof Johansson talking ab

[PATCH 9/9] sched,fair: Alternative sched_slice()

2021-03-26 Thread Peter Zijlstra
The current sched_slice() seems to have issues; there's two possible things that could be improved: - the 'nr_running' used for __sched_period() is daft when cgroups are considered. Using the RQ wide h_nr_running seems like a much more consistent number. - (esp) cgroups can slice it real

[PATCH 1/9] sched/numa: Allow runtime enabling/disabling of NUMA balance without SCHED_DEBUG

2021-03-26 Thread Peter Zijlstra
From: Mel Gorman The ability to enable/disable NUMA balancing is not a debugging feature and should not depend on CONFIG_SCHED_DEBUG. For example, machines within a HPC cluster may disable NUMA balancing temporarily for some jobs and re-enable it for other jobs without needing to reboot. This p

[PATCH 6/9] debugfs: Implement debugfs_create_str()

2021-03-26 Thread Peter Zijlstra
Signed-off-by: Peter Zijlstra (Intel) --- fs/debugfs/file.c | 144 include/linux/debugfs.h | 29 + 2 files changed, 173 insertions(+) --- a/fs/debugfs/file.c +++ b/fs/debugfs/file.c @@ -865,6 +865,150 @@ struct dentry *debugfs_c

[PATCH 7/9] sched,debug: Convert sysctl sched_domains to debugfs

2021-03-26 Thread Peter Zijlstra
Stop polluting sysctl, move to debugfs for SCHED_DEBUG stuff. Signed-off-by: Peter Zijlstra (Intel) --- kernel/sched/debug.c| 255 ++-- kernel/sched/sched.h|2 kernel/sched/topology.c |1 3 files changed, 59 insertions(+), 199 deleti

[PATCH 8/9] sched: Move /proc/sched_debug to debugfs

2021-03-26 Thread Peter Zijlstra
Signed-off-by: Peter Zijlstra (Intel) --- kernel/sched/debug.c | 25 - 1 file changed, 16 insertions(+), 9 deletions(-) --- a/kernel/sched/debug.c +++ b/kernel/sched/debug.c @@ -279,6 +279,20 @@ static const struct file_operations sche __read_mostly bool sched_debu

[PATCH 3/9] sched: Dont make LATENCYTOP select SCHED_DEBUG

2021-03-26 Thread Peter Zijlstra
SCHED_DEBUG is not in fact required for LATENCYTOP, don't select it. Suggested-by: Mel Gorman Signed-off-by: Peter Zijlstra (Intel) --- lib/Kconfig.debug |1 - 1 file changed, 1 deletion(-) --- a/lib/Kconfig.debug +++ b/lib/Kconfig.debug @@ -1670,7 +1670,6 @@ config LATENCYTOP sele

[PATCH 5/9] sched,preempt: Move preempt_dynamic to debug.c

2021-03-26 Thread Peter Zijlstra
Move the #ifdef SCHED_DEBUG bits to kernel/sched/debug.c in order to collect all the debugfs bits. Signed-off-by: Peter Zijlstra (Intel) --- kernel/sched/core.c | 77 +-- kernel/sched/debug.c | 67 +++-

[PATCH 0/9] sched: Clean up SCHED_DEBUG

2021-03-26 Thread Peter Zijlstra
We currently have sysctl, procfs and debugfs SCHED_DEBUG interfaces, end the insanity and move everything to debugfs. And since this is a nice moment to have people re-evaluate their 'tunings', also change how some of the values work.

[PATCH 2/9] sched: Remove sched_schedstats sysctl out from under SCHED_DEBUG

2021-03-26 Thread Peter Zijlstra
CONFIG_SCHEDSTATS does not depend on SCHED_DEBUG, it is inconsistent to have the sysctl depend on it. Suggested-by: Mel Gorman Signed-off-by: Peter Zijlstra (Intel) --- kernel/sysctl.c | 22 +++--- 1 file changed, 11 insertions(+), 11 deletions(-) --- a/kernel/sysctl.c +++ b/

[PATCH 4/9] sched: Move SCHED_DEBUG to debugfs

2021-03-26 Thread Peter Zijlstra
Stop polluting sysctl with undocumented knobs that really are debug only, move them all to /debug/sched/ along with the existing /debug/sched_* files that already exist. Signed-off-by: Peter Zijlstra (Intel) --- include/linux/sched/sysctl.h |8 +-- kernel/sched/core.c |4 + kern

Re: [PATCH] i2c: add i2c bus driver for amd navi gpu

2021-03-26 Thread Andy Shevchenko
On Fri, Mar 26, 2021 at 03:53:34PM +0530, Goswami, Sanket wrote: > On 25-Mar-21 22:35, Andy Shevchenko wrote: > > On Mon, Mar 22, 2021 at 10:26:55PM +0530, Goswami, Sanket wrote: > >> On 09-Mar-21 19:56, Andy Shevchenko wrote: > >>> On Tue, Mar 09, 2021 at 07:01:47PM +0530, Sanket Goswami wrote: .

Re: [PATCH] udp: Add support for getsockopt(..., ..., UDP_GRO, ..., ...)

2021-03-26 Thread Norman Maurer
Hi, > On 26. Mar 2021, at 10:36, Paolo Abeni wrote: > > Hello, > > On Thu, 2021-03-25 at 20:56 +0100, Norman Maurer wrote: >> From: Norman Maurer >> >> Support for UDP_GRO was added in the past but the implementation for >> getsockopt was missed which did lead to an error when we tried to >>

[PATCH v6 09/11] dt-bindings: power: rockchip: Convert to json-schema

2021-03-26 Thread Elaine Zhang
Convert the soc/rockchip/power_domain.txt binding document to json-schema and move to the power bindings directory. Signed-off-by: Elaine Zhang From: Enric Balletbo i Serra Link:https://patchwork.kernel.org/project/linux-rockchip/patch/20210225102643.653095-1-enric.balle...@collabora.com/ --- .

Re: [PATCH] i2c: designware: Add base addr info

2021-03-26 Thread Daniel Gomez
Hi Andy, On Thu, 25 Mar 2021 at 16:43, Andy Shevchenko wrote: > > On Thu, Mar 25, 2021 at 04:12:48PM +0100, Daniel Gomez wrote: > > Add i2c hw base address in the adapter name and when the device is > > probed. > > Why? > We have /proc/iomem for that. The initial reason was because I wasn't aware

Re: [Patch V2 08/13] genirq: Set auxiliary data for an interrupt

2021-03-26 Thread Marc Zyngier
On Thu, 25 Mar 2021 18:59:48 +, Thomas Gleixner wrote: > > On Thu, Mar 25 2021 at 17:23, Marc Zyngier wrote: > >> +{ > >> + struct irq_desc *desc; > >> + struct irq_data *data; > >> + unsigned long flags; > >> + int res = -ENODEV; > >> + > >> + desc = irq_get_desc_buslock(irq, &flags, 0)

Re: [PATCH v7 5/6] x86/signal: Detect and prevent an alternate signal stack overflow

2021-03-26 Thread Borislav Petkov
On Thu, Mar 25, 2021 at 09:56:53PM -0700, Andy Lutomirski wrote: > Nope. on_sig_stack() is a horrible kludge and won't work here. We > could have something like __on_sig_stack() or sp_is_on_sig_stack() or > something, though. Yeah, see my other reply. Ack to either of those carved out helpers.

[PATCH v6 07/11] soc: rockchip: pm-domains: Add a meaningful power domain name

2021-03-26 Thread Elaine Zhang
Add the power domains names to the power domain info struct so we have meaningful name for every power domain. Signed-off-by: Elaine Zhang --- drivers/soc/rockchip/pm_domains.c | 221 +++--- 1 file changed, 114 insertions(+), 107 deletions(-) diff --git a/drivers/soc/roc

[PATCH v6 08/11] dt-bindings: add power-domain header for RK3568 SoCs

2021-03-26 Thread Elaine Zhang
According to a description from TRM, add all the power domains Signed-off-by: Elaine Zhang Reviewed-by: Enric Balletbo i Serra --- include/dt-bindings/power/rk3568-power.h | 32 1 file changed, 32 insertions(+) create mode 100644 include/dt-bindings/power/rk3568-power.

[PATCH v6 10/11] dt-bindings: power: rockchip: Add bindings for RK3568 Soc

2021-03-26 Thread Elaine Zhang
Add the compatible string for RK3568 SoC. Signed-off-by: Elaine Zhang Reviewed-by: Enric Balletbo i Serra --- .../devicetree/bindings/power/rockchip,power-controller.yaml| 2 ++ 1 file changed, 2 insertions(+) diff --git a/Documentation/devicetree/bindings/power/rockchip,power-controller.

[PATCH v6 11/11] soc: rockchip: power-domain: add rk3568 powerdomains

2021-03-26 Thread Elaine Zhang
Add power-domains found on rk3568 socs. Signed-off-by: Elaine Zhang --- drivers/soc/rockchip/pm_domains.c | 31 +++ 1 file changed, 31 insertions(+) diff --git a/drivers/soc/rockchip/pm_domains.c b/drivers/soc/rockchip/pm_domains.c index 1d39ad92470a..940504cfb0f1 1

[syzbot] possible deadlock in register_for_each_vma

2021-03-26 Thread syzbot
Hello, syzbot found the following issue on: HEAD commit:0d02ec6b Linux 5.12-rc4 git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=1719e4aad0 kernel config: https://syzkaller.appspot.com/x/.config?x=5adab0bdee099d7a dashboard link: https://syzkaller.appspo

Re: [PATCH net-next] ipv6: fix clang Wformat warning

2021-03-26 Thread Steffen Klassert
On Mon, Mar 22, 2021 at 12:56:49PM +0100, Arnd Bergmann wrote: > From: Arnd Bergmann > > When building with 'make W=1', clang warns about a mismatched > format string: > > net/ipv6/ah6.c:710:4: error: format specifies type 'unsigned short' but the > argument has type 'int' [-Werror,-Wformat] >

[PATCH v6 06/11] arm64: dts: rockchip: Fix power-controller node names for rk3399

2021-03-26 Thread Elaine Zhang
Use more generic names (as recommended in the device tree specification or the binding documentation) Signed-off-by: Elaine Zhang Reviewed-by: Enric Balletbo i Serra --- arch/arm64/boot/dts/rockchip/rk3399.dtsi | 40 1 file changed, 20 insertions(+), 20 deletions(-) di

[PATCH v6 05/11] arm64: dts: rockchip: Fix power-controller node names for rk3328

2021-03-26 Thread Elaine Zhang
Use more generic names (as recommended in the device tree specification or the binding documentation) Signed-off-by: Elaine Zhang Reviewed-by: Enric Balletbo i Serra --- arch/arm64/boot/dts/rockchip/rk3328.dtsi | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/arm64

[PATCH v6 00/11] soc: rockchip: power-domain: add rk3568 powerdomains

2021-03-26 Thread Elaine Zhang
Fix power-controller node names for dtbs_check. Convert power domain documentation to json-schema. Add a meaningful power domain name. Support power domain function for RK3568 Soc. Change in V6: [PATCH v6 1/11]: No change. [PATCH v6 2/11]: No change. [PATCH v6 3/11]: No change. [PATCH v6 4/11]: No

[PATCH v6 04/11] arm64: dts: rockchip: Fix power-controller node names for px30

2021-03-26 Thread Elaine Zhang
Use more generic names (as recommended in the device tree specification or the binding documentation) Signed-off-by: Elaine Zhang Reviewed-by: Enric Balletbo i Serra --- arch/arm64/boot/dts/rockchip/px30.dtsi | 16 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/a

[PATCH v6 03/11] arm: dts: rockchip: Fix power-controller node names for rk3288

2021-03-26 Thread Elaine Zhang
Use more generic names (as recommended in the device tree specification or the binding documentation) Signed-off-by: Elaine Zhang Reviewed-by: Enric Balletbo i Serra --- arch/arm/boot/dts/rk3288.dtsi | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/arch/arm/boot/dts/r

[PATCH v6 01/11] arm: dts: rockchip: Fix power-controller node names for rk3066a

2021-03-26 Thread Elaine Zhang
Use more generic names (as recommended in the device tree specification or the binding documentation) Signed-off-by: Elaine Zhang Reviewed-by: Enric Balletbo i Serra --- arch/arm/boot/dts/rk3066a.dtsi | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/arm/boot/dts/rk

[PATCH v6 02/11] arm: dts: rockchip: Fix power-controller node names for rk3188

2021-03-26 Thread Elaine Zhang
Use more generic names (as recommended in the device tree specification or the binding documentation) Signed-off-by: Elaine Zhang Reviewed-by: Enric Balletbo i Serra --- arch/arm/boot/dts/rk3188.dtsi | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/arm/boot/dts/rk3

Re: [PATCH] i2c: add i2c bus driver for amd navi gpu

2021-03-26 Thread Goswami, Sanket
Hi Andy, On 25-Mar-21 22:35, Andy Shevchenko wrote: > [CAUTION: External Email] > > On Mon, Mar 22, 2021 at 10:26:55PM +0530, Goswami, Sanket wrote: >> On 09-Mar-21 19:56, Andy Shevchenko wrote: >>> On Tue, Mar 09, 2021 at 07:01:47PM +0530, Sanket Goswami wrote: > > ... > +static int amd_i

[tip:x86/cleanups] BUILD SUCCESS 800c120ef4e3abb45d67a36d3e5532eb051efc3c

2021-03-26 Thread kernel test robot
tree/branch: https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git x86/cleanups branch HEAD: 800c120ef4e3abb45d67a36d3e5532eb051efc3c tools/turbostat: Unmark non-kernel-doc comment elapsed time: 724m configs tested: 174 configs skipped: 2 The following configs have been built successful

Re: [Patch V2 07/13] irqdomain/msi: Provide msi_alloc/free_store() callbacks

2021-03-26 Thread Marc Zyngier
On Thu, 25 Mar 2021 18:44:48 +, Thomas Gleixner wrote: > > On Thu, Mar 25 2021 at 17:08, Marc Zyngier wrote: > > Megha Dey wrote: > >> @@ -434,6 +434,12 @@ int __msi_domain_alloc_irqs(struct irq_domain > >> *domain, struct device *dev, > >>if (ret) > >>return ret; > >> > >

Re: [PATCH v2 1/4] platform/x86: simatic-ipc: add main driver for Siemens devices

2021-03-26 Thread Henning Schild
Am Thu, 18 Mar 2021 12:45:01 +0100 schrieb Hans de Goede : > Hi, > > On 3/18/21 12:30 PM, Enrico Weigelt, metux IT consult wrote: > > On 17.03.21 21:03, Hans de Goede wrote: > > > > Hi, > > > >>> It just identifies the box and tells subsequent drivers which one > >>> it is, which watchdog and

[kbuild] fs/btrfs/sysfs.c:1034:4: warning: %u in format string (no. 2) requires 'unsigned int' but the argument type is 'signed int'.

2021-03-26 Thread Dan Carpenter
Hi Kefeng, First bad commit (maybe != root cause): tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 002322402dafd846c424ffa9240a937f49b48c42 commit: ed1ed4c0da5447c5e322481ce2ef9f03336c6ffb riscv: mmiowb: Fix implicit declaration of function 'smp_proces

Re: [PATCH] drm/amdkfd: dqm fence memory corruption

2021-03-26 Thread Qu Huang
On 2021/1/28 5:50, Felix Kuehling wrote: Am 2021-01-27 um 7:33 a.m. schrieb Qu Huang: Amdgpu driver uses 4-byte data type as DQM fence memory, and transmits GPU address of fence memory to microcode through query status PM4 message. However, query status PM4 message definition and microcode proce

[PATCH] docs: powerpc: Fix misspellings and grammar errors

2021-03-26 Thread He Ying
Reported-by: Hulk Robot Signed-off-by: He Ying --- Documentation/powerpc/booting.rst| 2 +- Documentation/powerpc/dawr-power9.rst| 2 +- Documentation/powerpc/eeh-pci-error-recovery.rst | 2 +- Documentation/powerpc/elfnote.rst| 2 +- Documentation/pow

Re: Why does glibc use AVX-512?

2021-03-26 Thread Borislav Petkov
On Thu, Mar 25, 2021 at 09:38:24PM -0700, Andy Lutomirski wrote: > I think we should seriously consider solutions in which, for new > tasks, XCR0 has new giant features (e.g. AMX) and possibly even > AVX-512 cleared, and programs need to explicitly request enablement. I totally agree with making t

Re: [PATCH] fuse: Fix possible deadlock when writing back dirty pages

2021-03-26 Thread Baolin Wang
Hi, We can meet below deadlock scenario when writing back dirty pages, and writing files at the same time. The deadlock scenario can be reproduced by: - A writeback worker thread A is trying to write a bunch of dirty pages by fuse_writepages(), and the fuse_writepages() will lock one page (name

[PATCH 1/1] media: vidtv: Remove duplicated header file inclusion

2021-03-26 Thread Zhen Lei
The header file is already included above and can be removed here. Signed-off-by: Zhen Lei --- drivers/media/test-drivers/vidtv/vidtv_psi.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/media/test-drivers/vidtv/vidtv_psi.c b/drivers/media/test-drivers/vidtv/vidtv_psi.c index 47ed7

Re: [PATCH v2 04/11] PCI: dwc: pcie-kirin: add support for Kirin 970 PCIe controller

2021-03-26 Thread Mauro Carvalho Chehab
Em Fri, 26 Mar 2021 14:21:02 +0530 Manivannan Sadhasivam escreveu: > On Fri, Mar 26, 2021 at 09:39:36AM +0100, Mauro Carvalho Chehab wrote: > > Em Wed, 3 Feb 2021 08:34:21 -0600 > > Rob Herring escreveu: > > > > > On Wed, Feb 3, 2021 at 1:02 AM Mauro Carvalho Chehab > > > wrote: > > > > >

Re: [PATCH 04/15] staging: rtl8723bs: put parentheses on macros with complex values in include/basic_types.h

2021-03-26 Thread Dan Carpenter
On Fri, Mar 26, 2021 at 10:09:11AM +0100, Fabio Aiuto wrote: > fix the following checkpatch warnings: > > ERROR: Macros with complex values should be enclosed in parentheses > 154: FILE: drivers/staging/rtl8723bs/include/basic_types.h:154: > +#define SET_BITS_TO_LE_4BYTE(__pstart, __bitoffset, __b

Re: [RESEND PATCH v5 07/11] soc: rockchip: pm-domains: Add a meaningful power domain name

2021-03-26 Thread Heiko Stübner
Hi Elaine again, Am Freitag, 26. März 2021, 10:52:53 CET schrieb Heiko Stübner: > Hi Elaine, > > [also adding that answer to the resend :-) ] > > Am Freitag, 26. März 2021, 10:17:39 CET schrieb Elaine Zhang: > > Add the power domains names to the power domain info struct so we > > have meaningfu

[PATCH v9 22/22] uvc: use vb2 ioctl and fop helpers

2021-03-26 Thread Ricardo Ribalda
From: Hans Verkuil When uvc was written the vb2 ioctl and file operation helpers didn't exist. This patch switches uvc over to those helpers, which removes a lot of boilerplate code and simplifies VIDIOC_G/S_PRIORITY handling and allows us to drop the 'privileges' scheme, since that's now handl

[PATCH v9 21/22] uvcvideo: don't spam the log in uvc_ctrl_restore_values()

2021-03-26 Thread Ricardo Ribalda
From: Hans Verkuil Don't report the restored controls with dev_info, use dev_dbg instead. This prevents a lot of noise in the kernel log. Signed-off-by: Hans Verkuil --- drivers/media/usb/uvc/uvc_ctrl.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/media/u

[PATCH v9 19/22] uvcvideo: uvc_ctrl_is_accessible: check for INACTIVE

2021-03-26 Thread Ricardo Ribalda
From: Hans Verkuil Check for inactive controls in uvc_ctrl_is_accessible(). Use the new value for the master_id controls if present, otherwise use the existing value to determine if it is OK to set the control. Doing this here avoids attempting to set an inactive control, which will return an err

[PATCH v9 20/22] uvcvideo: improve error handling in uvc_query_ctrl()

2021-03-26 Thread Ricardo Ribalda
From: Hans Verkuil - If __uvc_query_ctrl() failed with a non-EPIPE error, then report that with dev_err. If an error code is obtained, then report that with dev_dbg. - For error 2 (Wrong state) return -EACCES instead of -EILSEQ. EACCES is a much more appropriate error code. EILSEQ will ret

[PATCH v9 15/22] media: uvcvideo: Set error_idx during ctrl_commit errors

2021-03-26 Thread Ricardo Ribalda
If we have an error setting a control, return the affected control in the error_idx field. Reviewed-by: Hans Verkuil Signed-off-by: Ricardo Ribalda --- drivers/media/usb/uvc/uvc_ctrl.c | 42 ++-- drivers/media/usb/uvc/uvc_v4l2.c | 2 +- drivers/media/usb/uvc/uvcvide

[PATCH v9 17/22] media: docs: Document the behaviour of uvcdriver

2021-03-26 Thread Ricardo Ribalda
The uvc driver relies on the camera firmware to keep the control states and therefore is not capable of changing an inactive control. Allow returning -EACESS in those cases. Signed-off-by: Ricardo Ribalda --- Documentation/userspace-api/media/v4l/vidioc-g-ctrl.rst | 5 + Documentation/

[PATCH v9 18/22] media: uvcvideo: Downgrade control error messages

2021-03-26 Thread Ricardo Ribalda
Convert the error into a debug message, so they are still valid for debugging but do not fill dmesg. Signed-off-by: Ricardo Ribalda --- drivers/media/usb/uvc/uvc_video.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/media/usb/uvc/uvc_video.c b/drivers/media/usb/uvc

[PATCH v9 12/22] media: uvcvideo: Increase the size of UVC_METADATA_BUF_SIZE

2021-03-26 Thread Ricardo Ribalda
Hans has discovered that in his test device, for the H264 format bytesused goes up to about 570, for YUYV it will actually go up to a bit over 5000 bytes, and for MJPG up to about 2706 bytes. We should also, according to V4L2_META_FMT_UVC docs, drop headers when the buffer is full. Credit-to: Han

[PATCH v9 14/22] media: uvcvideo: Check controls flags before accessing them

2021-03-26 Thread Ricardo Ribalda
We can figure out if reading/writing a set of controls can fail without accessing them by checking their flags. This way we can honor the API closer: If an error is found when validating the list of controls passed with VIDIOC_G_EXT_CTRLS, then error_idx shall be set to ctrls->count to indicate t

[PATCH v9 16/22] media: uvcvideo: Return -EACCES to inactive controls

2021-03-26 Thread Ricardo Ribalda
If a control is inactive return -EACCES to let the userspace know that the value will not be applied automatically when the control is active again. Suggested-by: Hans Verkuil Signed-off-by: Ricardo Ribalda --- drivers/media/usb/uvc/uvc_ctrl.c | 71 +--- 1 file chang

[PATCH v9 13/22] media: uvcvideo: Use control names from framework

2021-03-26 Thread Ricardo Ribalda
The framework already contains a map of IDs to names, lets use it when possible. Signed-off-by: Ricardo Ribalda Reviewed-by: Hans Verkuil Suggested-by: Hans Verkuil --- drivers/media/usb/uvc/uvc_ctrl.c | 57 drivers/media/usb/uvc/uvc_v4l2.c | 8 - drivers/

[PATCH v9 11/22] media: uvcvideo: Set unique vdev name based in type

2021-03-26 Thread Ricardo Ribalda
All the entities must have a unique name. We can have a descriptive and unique name by appending the function and the entity->id. This is even resilent to multi chain devices. Fixes v4l2-compliance: Media Controller ioctls: fail: v4l2-test-media.cpp(205): v2_entity_names_set.find(

[PATCH v9 10/22] media: uvcvideo: Use dev->name for querycap()

2021-03-26 Thread Ricardo Ribalda
Use the device name for the card name instead of vdev->name. Signed-off-by: Hans Verkuil Suggested-by: Laurent Pinchart Signed-off-by: Ricardo Ribalda --- drivers/media/usb/uvc/uvc_metadata.c | 2 +- drivers/media/usb/uvc/uvc_v4l2.c | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-)

[PATCH v9 08/22] media: uvcvideo: refactor __uvc_ctrl_add_mapping

2021-03-26 Thread Ricardo Ribalda
Pass the chain instead of the device. We want to keep the reference to the chain that controls belong to. We need to delay the initialization of the controls after the chains have been initialized. This is a cleanup needed for the next patches. Reviewed-by: Laurent Pinchart Reviewed-by: Hans Ve

<    5   6   7   8   9   10   11   12   13   >