[RESEND][PATCH] ima: Set and clear FMODE_CAN_READ in ima_calc_file_hash()

2020-11-13 Thread Roberto Sassu
Commit a1f9b1c0439db ("integrity/ima: switch to using __kernel_read") replaced the __vfs_read() call in integrity_kernel_read() with __kernel_read(), a new helper introduced by commit 61a707c543e2a ("fs: add a __kernel_read helper"). Since the new helper requires that also the FMODE_CAN_READ flag

lib/crypto/blake2s-selftest.c:566:13: warning: no previous prototype for 'blake2s_selftest'

2020-11-13 Thread kernel test robot
-20201113 (attached as .config) compiler: hppa-linux-gcc (GCC) 9.3.0 reproduce (this is a W=1 build): wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # https://git.kernel.org/pub/scm/linux/kernel

[PATCH] rtc: snvs: Remove NULL pointer check before clk_*

2020-11-13 Thread Xu Wang
Because clk_* already checked NULL clock parameter, so the additional checks are unnecessary, just remove them. Signed-off-by: Xu Wang --- drivers/rtc/rtc-snvs.c | 67 +++--- 1 file changed, 24 insertions(+), 43 deletions(-) diff --git a/drivers/rtc/rtc-snvs.

Re: [PATCH] clk-si5341: Support NVM programming through sysfs

2020-11-13 Thread Stephen Boyd
Quoting Mike Looijmans (2020-11-05 01:06:54) > On 05-11-2020 02:48, Stephen Boyd wrote: > > Quoting Mike Looijmans (2020-11-03 06:17:41) > >> Export an attribute program_nvm_bank that when read reports the current > >> bank value. To program the chip's current state into NVM, write the > >> magic v

Re: [PATCH 06/19] elf/vdso: Reuse arch_setup_additional_pages() parameters

2020-11-13 Thread kernel test robot
Hi Dmitry, Thank you for the patch! Perhaps something to improve: [auto build test WARNING on c34f157421f6905e6b4a79a312e9175dce2bc607] url: https://github.com/0day-ci/linux/commits/Dmitry-Safonov/Add-generic-user_landing-tracking/20201109-090354 base:c34f157421f6905e6b4a79a312e9175dce2b

Re: [PATCH v5 5/5] objtool: Rework header include paths

2020-11-13 Thread Peter Zijlstra
On Fri, Nov 13, 2020 at 12:03:32AM +0100, Vasily Gorbik wrote: > Currently objtool headers are being included either by their base name > or included via ../ from a parent directory. In case of a base name usage: > > #include "warn.h" > #include "arch_elf.h" > > it does not make it apparent fro

Re: [PATCH 0/3 v6] ftrace: Add access to function arguments for all callbacks

2020-11-13 Thread Peter Zijlstra
On Thu, Nov 12, 2020 at 09:01:42PM -0500, Steven Rostedt wrote: > Steven Rostedt (VMware) (3): > ftrace: Have the callbacks receive a struct ftrace_regs instead of > pt_regs > ftrace/x86: Allow for arguments to be passed in to ftrace_regs by > default > livepatch: Use the defaul

Re: [PATCH] ACPICA: fix -Wfallthrough

2020-11-13 Thread Miguel Ojeda
On Thu, Nov 12, 2020 at 10:49 PM Moore, Robert wrote: > > 1>c:\acpica\source\components\utilities\utdelete.c(270): warning C4013: > '__attribute__' undefined; assuming extern returning int > 1>c:\acpica\source\components\utilities\utdelete.c(270): error C2065: > '__fallthrough__': undeclared ide

Re: [PATCH] perf vendor events: Update Skylake client events to v50

2020-11-13 Thread Jin, Yao
Hi Andi, Ian, On 11/6/2020 12:21 PM, Namhyung Kim wrote: On Fri, Nov 6, 2020 at 12:12 PM Jin, Yao wrote: Hi Namhyung, On 11/6/2020 11:00 AM, Namhyung Kim wrote: Hi, On Wed, Nov 04, 2020 at 09:51:02AM +0800, Jin Yao wrote: - Update Skylake events to v50. - Update Skylake JSON metrics from

Re: [PATCH v2] clk: mediatek: fix mtk_clk_register_mux() as static function

2020-11-13 Thread Stephen Boyd
"Fix" is a little strong. Maybe the subject should just be "Make mtk_clk_register_mux() a static function". Quoting Weiyi Lu (2020-11-10 18:33:56) > mtk_clk_register_mux() should be a static function > > Fixes: a3ae549917f16 ("clk: mediatek: Add new clkmux register API")

[PATCH] dmaengine: ioatdma: remove unused function missed during dma_v2 removal

2020-11-13 Thread Lukas Bulwahn
Commit 7f832645d0e5 ("dmaengine: ioatdma: remove ioatdma v2 registration") missed to remove dca2_tag_map_valid() during its removal. Hence, since then, dca2_tag_map_valid() is unused and make CC=clang W=1 warns: drivers/dma/ioat/dca.c:44:19: warning: unused function 'dca2_tag_map_valid' [-Wu

Re: [PATCH] ACPICA: fix -Wfallthrough

2020-11-13 Thread Miguel Ojeda
On Fri, Nov 13, 2020 at 1:09 AM Nick Desaulniers wrote: > > Thank you for the explicit diagnostics observed. Something fishy is > going on though, https://godbolt.org/z/Gbxbxa is how I expect MSVC to > handle include/linux/compiler_attributes.h. > > The C preprocessor should make it such that MSV

Re: [PATCH] net: ethernet: ti: cpsw: fix cpts irq after suspend

2020-11-13 Thread Tony Lindgren
* Grygorii Strashko [201112 11:15]: > Depending on the SoC/platform the CPSW can completely lose context after a > suspend/resume cycle, including CPSW wrapper (WR) which will cause reset of > WR_C0_MISC_EN register, so CPTS IRQ will became disabled. > > Fix it by moving CPTS IRQ enabling in cpsw

Re: [PATCH net-next 00/18] net: phy: add support for shared interrupts (part 2)

2020-11-13 Thread Ioana Ciornei
On Thu, Nov 12, 2020 at 06:19:10PM -0800, Jakub Kicinski wrote: > On Thu, 12 Nov 2020 17:54:55 +0200 Ioana Ciornei wrote: > > From: Ioana Ciornei > > > > This patch set aims to actually add support for shared interrupts in > > phylib and not only for multi-PHY devices. While we are at it, > > str

Re: [PATCH v2] cpuset: fix race between hotplug work and later CPU offline

2020-11-13 Thread Peter Zijlstra
On Thu, Nov 12, 2020 at 12:17:11PM -0500, Daniel Jordan wrote: > One of our machines keeled over trying to rebuild the scheduler domains. > Mainline produces the same splat: > > BUG: unable to handle page fault for address: 607f820054db > CPU: 2 PID: 149 Comm: kworker/1:1 Not tainted 5.10.

Re: Regression: QCA6390 fails with "mm/page_alloc: place pages to tail in __free_pages_core()"

2020-11-13 Thread Pavel Procopiuc
Op 12.11.2020 om 11:48 schreef David Hildenbrand: Trying to understand the code, it looks like there are always two rounds of reqests. The first one always fails ("requesting one big chunk of DMA memory"), the second one (providing multiple chunks of DMA memory) is supposed to work - and we do a

Re: [PATCH] sched/fair: Fix overutilized update in enqueue_task_fair()

2020-11-13 Thread Peter Zijlstra
On Thu, Nov 12, 2020 at 11:12:01AM +, Quentin Perret wrote: > enqueue_task_fair() attempts to skip the overutilized update for new > tasks as their util_avg is not accurate yet. However, the flag we check > to do so is overwritten earlier on in the function, which makes the > condition pretty m

Re: [PATCH v1] clk: Add enable-state column to clk summary

2020-11-13 Thread Stephen Boyd
Quoting Dmitry Osipenko (2020-11-04 08:56:31) > Add "enable state" column to the clk summary. It's handy to know actual > hardware state of all clocks for debugging purposes. In conjunction with > clk_ignore_unused, this tells us what unused clocks are left on after > bootloader without disabling t

Re: [PATCH] sched/core: trivial: Fix typos in comments

2020-11-13 Thread Peter Zijlstra
On Thu, Nov 12, 2020 at 07:51:56PM -0500, Tal Zussman wrote: I'm not much for patches like this, but I'll take it. Thanks!

Re: [PATCH] MIPS: Loongson64: Add read_persistent_clock64()

2020-11-13 Thread Jiaxun Yang
于 2020年11月13日 GMT+08:00 上午11:41:01, Tiezhu Yang 写到: >On 11/13/2020 10:21 AM, Jiaxun Yang wrote: >> >> >> 在 2020/11/12 20:03, Tiezhu Yang 写道: >>> On 11/12/2020 06:09 PM, Jiaxun Yang wrote: 在 2020/11/12 18:04, Jiaxun Yang 写道: > Hi Tiezhu, > > 在 2020/11/12 16:29, Tiezhu

Re: [PATCH v3 1/2] dt-bindings: spmi: document binding for the Mediatek SPMI controller

2020-11-13 Thread Stephen Boyd
Quoting Hsin-Hsiung Wang (2020-10-15 05:59:07) > This adds documentation for the SPMI controller found on Mediatek SoCs. > > Signed-off-by: Hsin-Hsiung Wang I don't know what's going on but my MUA sees a bunch of CRLF line endings in these patches. > diff --git a/Documentation/devicetree/bindin

Re: [PATCH 7/7] usb: musb: convert to devm_platform_ioremap_resource_byname

2020-11-13 Thread Chunfeng Yun
On Thu, 2020-11-12 at 15:08 +0100, Geert Uytterhoeven wrote: > Hi Chunfeng, > > On Wed, Jul 22, 2020 at 9:54 AM Chunfeng Yun > wrote: > > Use devm_platform_ioremap_resource_byname() to simplify code > > > > Cc: Bin Liu > > Signed-off-by: Chunfeng Yun > > Thanks for your patch, which is now co

Re: kernel panic: stack is corrupted in get_kernel_gp_address

2020-11-13 Thread syzbot
syzbot suspects this issue was fixed by commit: commit a49145acfb975d921464b84fe00279f99827d816 Author: George Kennedy Date: Tue Jul 7 19:26:03 2020 + fbmem: add margin check to fb_check_caps() bisection log: https://syzkaller.appspot.com/x/bisect.txt?x=10ff757250 start commit:

Re: [PATCH] iio: adc: stm32-adc: adapt clock duty cycle for proper operation

2020-11-13 Thread Fabrice Gasnier
On 11/8/20 4:18 PM, Jonathan Cameron wrote: > On Fri, 6 Nov 2020 17:57:26 +0100 > Fabrice Gasnier wrote: > >> For proper operation, STM32 ADC should be used with a clock duty cycle >> of 50%, in the range of 49% to 51%. Depending on the clock tree, divider >> can be used in case clock duty cycle

Re: [PATCH] [v2] i2c: stm32f7: Fix runtime PM imbalance on error

2020-11-13 Thread Pierre Yves MORDRET
Hello Looks good to me Reviewed-by: Pierre-Yves MORDRET Thx Regards On 6/1/20 7:56 AM, Alain Volmat wrote: > Hi, > > Reviewed-by: Alain Volmat > > Thanks, > Alain > > On Wed, May 27, 2020 at 01:38:53AM +, Dinghao Liu wrote: >> pm_runtime_get_sync() increments the runtime PM usage coun

[PATCH v3] clk: mediatek: Make mtk_clk_register_mux() a static function

2020-11-13 Thread Weiyi Lu
mtk_clk_register_mux() should be a static function Fixes: a3ae549917f16 ("clk: mediatek: Add new clkmux register API") Signed-off-by: Weiyi Lu --- drivers/clk/mediatek/clk-mux.c | 2 +- drivers/clk/mediatek/clk-mux.h | 4 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/drivers

[PATCH] phy: mapphone-mdm6600: remove the unused variable error value assignment

2020-11-13 Thread xiakaixu1987
From: Kaixu Xia The value of variable error is overwritten by the following call devm_request_threaded_irq() in phy_mdm6600_device_power_on(), so here the value assignment is useless. Remove it. Reported-by: Tosk Robot Signed-off-by: Kaixu Xia --- drivers/phy/motorola/phy-mapphone-mdm6600.c |

回复: memory leak in __usbhid_submit_report

2020-11-13 Thread Zhang, Qiang
发件人: syzbot 发送时间: 2020年11月11日 21:55 收件人: benjamin.tissoi...@redhat.com; ji...@kernel.org; linux-in...@vger.kernel.org; linux-kernel@vger.kernel.org; linux-...@vger.kernel.org; syzkaller-b...@googlegroups.com 主题: memory leak in __usbhid_submit_report [P

Re: [PATCH net] net: phy: mscc: remove non-MACSec compatible phy

2020-11-13 Thread Steen Hegelund
On 12.11.2020 14:28, Jakub Kicinski wrote: EXTERNAL EMAIL: Do not click links or open attachments unless you know the content is safe On Thu, 12 Nov 2020 10:04:29 +0100 Steen Hegelund wrote: Selecting VSC8575 as a MACSec PHY was not correct The relevant datasheet can be found here: - VSC857

Re: [PATCH v3 2/2] spmi: mediatek: Add support for MT6873/8192

2020-11-13 Thread Stephen Boyd
Quoting Hsin-Hsiung Wang (2020-10-15 05:59:08) > add spmi support for MT6873/8192. Capitalize Add please. > > Signed-off-by: Hsin-Hsiung Wang > --- > drivers/spmi/Kconfig | 9 + > drivers/spmi/Makefile| 1 + > drivers/spmi/spmi-mtk-pmif.c | 474 +

RE: [PATCH] brcmfmac: fix error return code in brcmf_cfg80211_connect()

2020-11-13 Thread Chi-Hsien.Lin
> Fix to return a negative error code from the error handling case instead of > 0, as done elsewhere in th> > > Fixes: 3b1e0a7bdfee ("brcmfmac: add support for SAE authentication offload") > Reported-by: Hulk Robot > Signed-off-by: Zhang Changzhong Reviewed-by: Chi-hsien Lin > --- > drivers/n

[bug report] sched/fair: Prefer prev cpu in asymmetric wakeup path

2020-11-13 Thread Dan Carpenter
Hello Vincent Guittot, The patch b4c9c9f15649: "sched/fair: Prefer prev cpu in asymmetric wakeup path" from Oct 29, 2020, leads to the following static checker warning: kernel/sched/fair.c:6249 select_idle_sibling() error: uninitialized symbol 'task_util'. kernel/sched/fair.c 6

Re: [PATCH v9 0/5] Exynos: Simple QoS for exynos-bus using interconnect

2020-11-13 Thread Georgi Djakov
On 11/12/20 16:09, Sylwester Nawrocki wrote: > > This patchset adds interconnect API support for the Exynos SoC "samsung, > exynos-bus" compatible devices, which already have their corresponding > exynos-bus driver in the devfreq subsystem. Complementing the devfreq > driver with an interconnect

Re: [PATCH RFC v5 01/13] perf jevents: Add support for an extra directory level

2020-11-13 Thread kajoljain
On 11/6/20 6:05 PM, John Garry wrote: > Currently only upto a level 2 directory is supported, in form > vendor/platform. Hi John, Just want to check in case of sub directories, Will it be good add on/feasible to be able to include events of particular sub-directory for a platform? Otherwis

[PATCH 1/2] base: Rename devm_ioremap_resource to make the implicit request_mem explicit

2020-11-13 Thread Uwe Kleine-König
The main difference between devm_ioremap() and devm_ioremap_resource() (apart from the different way to pass the area to map) is that the latter also calls devm_request_mem() which is unintuitive and yields problems like https://lore.kernel.org/r/1555670144-24220-1-git-send-email-aisheng.d...@nxp.

[PATCH 0/2] Rename ioremap functions that include request_mem

2020-11-13 Thread Uwe Kleine-König
Hello, here comes a patch set that implements the suggestion in the previous mail so we have something to discuss about. Best regards Uwe Uwe Kleine-König (2): base: Rename devm_ioremap_resource to make the implicit request_mem explicit platform: Rename devm_platform_ioremap_resource to

[PATCH 2/2] platform: Rename devm_platform_ioremap_resource to make the implicit request_mem explicit

2020-11-13 Thread Uwe Kleine-König
devm_ioremap_resource() and so devm_platform_ioremap_resource() et al also include a call to devm_request_mem(). Make this explicit in their name to make this difference compared to devm_ioremap() more obvious. This follows the similar rename of devm_ioremap_resource in the previous commit. Signe

Re: [PATCH v9 0/5] Exynos: Simple QoS for exynos-bus using interconnect

2020-11-13 Thread Chanwoo Choi
On 11/13/20 5:48 PM, Georgi Djakov wrote: > On 11/12/20 16:09, Sylwester Nawrocki wrote: >> >> This patchset adds interconnect API support for the Exynos SoC "samsung, >> exynos-bus" compatible devices, which already have their corresponding >> exynos-bus driver in the devfreq subsystem. Complemen

Re: [bug report] sched/fair: Prefer prev cpu in asymmetric wakeup path

2020-11-13 Thread Vincent Guittot
Hi Dan, Le vendredi 13 nov. 2020 à 11:46:57 (+0300), Dan Carpenter a écrit : > Hello Vincent Guittot, > > The patch b4c9c9f15649: "sched/fair: Prefer prev cpu in asymmetric > wakeup path" from Oct 29, 2020, leads to the following static checker > warning: > > kernel/sched/fair.c:6249 selec

Re: [PATCH] platform/chrome: Don't treat RTC events as wakeup sources

2020-11-13 Thread Enric Balletbo i Serra
On Fri, 30 Oct 2020 16:25:23 -0700, Stephen Boyd wrote: > The EC sends an RTC host event when the RTC fires, but we don't need to > treat that as a wakeup event here. The RTC class already properly > handles activating and deactivating a wakeup source in rtc_update_irq() > by calling pm_stay_awake(

[PATCH] x86/PCI: fix a comments issue

2020-11-13 Thread Alex Shi
The comments is using kernel-doc markup, while it isn't, so remove it from kernel-doc type to avoid warning: arch/x86/pci/i386.c:373: warning: Function parameter or member 'pcibios_assign_resources' not described in 'fs_initcall' Signed-off-by: Alex Shi Cc: Bjorn Helgaas Cc: Thomas Gleixner C

[PATCH v2 1/3] net: mac80211: use core API for updating TX/RX stats

2020-11-13 Thread Lev Stipakov
Commits d3fd65484c781 ("net: core: add dev_sw_netstats_tx_add") 451b05f413d3f ("net: netdevice.h: sw_netstats_rx_add helper) have added API to update net device per-cpu TX/RX stats. Use core API instead of ieee80211_tx/rx_stats(). Signed-off-by: Lev Stipakov --- v2: also replace ieee80211

[PATCH] configfs: fix kernel-doc markup issue

2020-11-13 Thread Alex Shi
Add explanation for 'frag' parameter to avoid kernel-doc issue: fs/configfs/dir.c:277: warning: Function parameter or member 'frag' not described in 'configfs_create_dir' Signed-off-by: Alex Shi Cc: Joel Becker Cc: Christoph Hellwig Cc: linux-kernel@vger.kernel.org --- fs/configfs/dir.c | 1

[PATCH] locking/rtmutex: remove useless parameter for rt_mutex_proxy_unlock

2020-11-13 Thread Alex Shi
The parameter 'proxy_owner' isn't used, so could be removed. Signed-off-by: Alex Shi Cc: Thomas Gleixner Cc: Ingo Molnar Cc: Peter Zijlstra Cc: Darren Hart Cc: Will Deacon Cc: linux-kernel@vger.kernel.org --- kernel/futex.c | 2 +- kernel/locking/rtmutex.c| 3

[PATCH] locking/rtmutex: add missed kernel-doc markup

2020-11-13 Thread Alex Shi
To fix the following issues: kernel/locking/rtmutex.c:1612: warning: Function parameter or member 'lock' not described in '__rt_mutex_futex_unlock' kernel/locking/rtmutex.c:1612: warning: Function parameter or member 'wake_q' not described in '__rt_mutex_futex_unlock' kernel/locking/rtmutex.c:1675:

Re: [PATCH v2 0/7] platform/chrome: cros_ec_typec: Register partner PD information

2020-11-13 Thread Enric Balletbo i Serra
On Thu, 29 Oct 2020 15:27:28 -0700, Prashant Malani wrote: > This series adds support to retrieve Type C PD(Power Delivery) Discovery > information from the Chrome OS EC, and register this information with > the Type C connector class framework. > > There are also a couple of patches which fix min

[PATCH] PKCS#7: drop function from kernel-doc pkcs7_validate_trust_one

2020-11-13 Thread Alex Shi
The function is a static function, so no needs add into kernel-doc. and we could avoid warning: crypto/asymmetric_keys/pkcs7_trust.c:25: warning: Function parameter or member 'pkcs7' not described in 'pkcs7_validate_trust_one' crypto/asymmetric_keys/pkcs7_trust.c:25: warning: Function parameter or

[PATCH] PM / suspend: fix kernel-doc markup

2020-11-13 Thread Alex Shi
Add parameter explanation to fix kernel-doc marks: kernel/power/suspend.c:233: warning: Function parameter or member 'state' not described in 'suspend_valid_only_mem' kernel/power/suspend.c:344: warning: Function parameter or member 'state' not described in 'suspend_prepare' Signed-off-by: Alex S

回复: [PATCH] kthread_worker: Add flush delayed work func

2020-11-13 Thread Zhang, Qiang
发件人: Andrew Morton 发送时间: 2020年11月13日 8:01 收件人: Zhang, Qiang 抄送: pmla...@suse.com; t...@kernel.org; linux...@kvack.org; linux-kernel@vger.kernel.org 主题: Re: [PATCH] kthread_worker: Add flush delayed work func [Please note this e-mail is from an EXTERNAL

Re: [PATCH v3] gpio: sifive: To get gpio irq offset from device tree data

2020-11-13 Thread Bartosz Golaszewski
On Fri, Nov 13, 2020 at 3:34 AM Greentime Hu wrote: > > We can get hwirq number of the gpio by its irq_data->hwirq so that we don't > need to add more macros for different platforms. This patch is tested in > SiFive Unleashed board and SiFive Unmatched board. > > Signed-off-by: Greentime Hu > ---

Re: [PATCH v9 0/5] Exynos: Simple QoS for exynos-bus using interconnect

2020-11-13 Thread Georgi Djakov
On 11/13/20 11:07, Chanwoo Choi wrote: > On 11/13/20 5:48 PM, Georgi Djakov wrote: >> On 11/12/20 16:09, Sylwester Nawrocki wrote: >>> >>> This patchset adds interconnect API support for the Exynos SoC "samsung, >>> exynos-bus" compatible devices, which already have their corresponding >>> exynos-b

[PATCH v2 2/3] net: openvswitch: use core API to update/provide stats

2020-11-13 Thread Lev Stipakov
Commit d3fd65484c781 ("net: core: add dev_sw_netstats_tx_add") has added function "dev_sw_netstats_tx_add()" to update net device per-cpu TX stats. Use this function instead of own code. While on it, remove internal_get_stats() and replace it with dev_get_tstats64(). Signed-off-by: Lev Stipakov

Re: [PATCH v1] clk: Add enable-state column to clk summary

2020-11-13 Thread Dmitry Osipenko
13.11.2020 11:18, Stephen Boyd пишет: > Quoting Dmitry Osipenko (2020-11-04 08:56:31) >> Add "enable state" column to the clk summary. It's handy to know actual >> hardware state of all clocks for debugging purposes. In conjunction with >> clk_ignore_unused, this tells us what unused clocks are lef

[PATCH v2 3/3] net: xfrm: use core API for updating/providing stats

2020-11-13 Thread Lev Stipakov
Commit d3fd65484c781 ("net: core: add dev_sw_netstats_tx_add") has added function "dev_sw_netstats_tx_add()" to update net device per-cpu TX stats. Use this function instead of own code. While on it, remove xfrmi_get_stats64() and replace it with dev_get_tstats64(). Signed-off-by: Lev Stipakov

[PATCH v2 0/5] MIPS: ralink: add CPU clock detection and clock gate driver for MT7621

2020-11-13 Thread Sergio Paracuellos
This patchset ports CPU clock detection for MT7621 from OpenWrt and adds a complete clock plan for the mt7621 SOC. The documentation for this SOC only talks about two registers regarding to the clocks: * SYSC_REG_CPLL_CLKCFG0 - provides some information about boostrapped refclock. PLL and dividers

[PATCH v2 1/5] dt-bindings: clock: add dt binding header for mt7621 clocks

2020-11-13 Thread Sergio Paracuellos
Adds dt binding header for 'mediatek,mt7621-clk' clocks. Signed-off-by: Sergio Paracuellos --- include/dt-bindings/clock/mt7621-clk.h | 41 ++ 1 file changed, 41 insertions(+) create mode 100644 include/dt-bindings/clock/mt7621-clk.h diff --git a/include/dt-bindings/clo

[PATCH v2 3/5] clk: ralink: add clock driver for mt7621 SoC

2020-11-13 Thread Sergio Paracuellos
The documentation for this SOC only talks about two registers regarding to the clocks: * SYSC_REG_CPLL_CLKCFG0 - provides some information about boostrapped refclock. PLL and dividers used for CPU and some sort of BUS. * SYSC_REG_CPLL_CLKCFG1 - a banch of gates to enable/disable clocks for all or s

[PATCH v2 2/5] dt: bindings: add mt7621-clk device tree binding documentation

2020-11-13 Thread Sergio Paracuellos
Adds device tree binding documentation for clocks in the MT7621 SOC. Signed-off-by: Sergio Paracuellos --- .../bindings/clock/mediatek,mt7621-clk.yaml | 61 +++ 1 file changed, 61 insertions(+) create mode 100644 Documentation/devicetree/bindings/clock/mediatek,mt7621-clk.yam

[PATCH v2 5/5] MAINTAINERS: add MT7621 CLOCK maintainer

2020-11-13 Thread Sergio Paracuellos
Adding myself as maintainer for mt7621 clock driver. Signed-off-by: Sergio Paracuellos --- MAINTAINERS | 6 ++ 1 file changed, 6 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index f1f088a29bc2..30822ad6837c 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -11142,6 +11142,12 @@ L: l

[PATCH v2 4/5] staging: mt7621-dts: make use of new 'mt7621-clk'

2020-11-13 Thread Sergio Paracuellos
Clocks for SoC mt7621 have been properly integrated so there is no need to declare fixed clocks at all in the device tree. Remove all of them, add new device tree nodes for mt7621-clk and update the rest of the nodes to use them. Signed-off-by: Sergio Paracuellos --- drivers/staging/mt7621-dts/g

RE: linux-next: build failure after merge of the usb-chipidea-next tree

2020-11-13 Thread Peter Chen
> > After merging the usb-chipidea-next tree, today's linux-next build (powerpc > allyesconfig) failed like this: > > In file included from drivers/usb/chipidea/trace.h:18, > from drivers/usb/chipidea/trace.c:11: > drivers/usb/chipidea/ci.h: In function 'ci_otg_is_fsm_mode':

[PATCH net v2] net: phy: mscc: remove non-MACSec compatible phy

2020-11-13 Thread Steen Hegelund
Selecting VSC8575 as a MACSec PHY was not correct The relevant datasheet can be found here: - VSC8575: https://www.microchip.com/wwwproducts/en/VSC8575 History: v1 -> v2: - Corrected the sha in the "Fixes:" tag Fixes: 1bbe0ecc2a1a ("net: phy: mscc: macsec initialization") Signed-off-by: Ste

Re: [PATCH v9 2/3] pinctrl: pinctrl-microchip-sgpio: Add pinctrl driver for Microsemi Serial GPIO

2020-11-13 Thread Lars Povlsen
Andy Shevchenko writes: > On Wed, Nov 11, 2020 at 2:25 PM Lars Povlsen > wrote: >> >> This adds a pinctrl driver for the Microsemi/Microchip Serial GPIO >> (SGPIO) device used in various SoC's. >> >> The driver is added as a pinctrl driver, albeit only having just GPIO >> support currently. Th

[PATCH 3/2] checkpatch: document the function renaming and deprecation around devm_ioremap_resource

2020-11-13 Thread Uwe Kleine-König
Signed-off-by: Uwe Kleine-König --- Hello, this can also be squashed into the respective patches instead. Best regards Uwe scripts/checkpatch.pl | 5 + 1 file changed, 5 insertions(+) diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl index fab38b493cef..5abb87256d4c 100755 --- a/

Re: About devm_platform_ioremap_resource [Was: Re: [PATCH 01/32] pwm: sun4i: convert to devm_platform_ioremap_resource]

2020-11-13 Thread Bartosz Golaszewski
On Fri, Nov 13, 2020 at 8:04 AM Uwe Kleine-König wrote: > > Hello, > > [Added lkml and the people involved in commit 7945f929f1a7 > ("drivers: provide devm_platform_ioremap_resource()") to Cc:. For the > new readers: This is about patches making use of > devm_platform_ioremap_resource() instead of

RE: [PATCH] crypto: crypto4xx - Replace bitwise OR with logical OR in crypto4xx_build_pd

2020-11-13 Thread David Laight
From: Nathan Chancellor > Sent: 12 November 2020 21:49 > > On Thu, Nov 12, 2020 at 10:21:35PM +0100, Christian Lamparter wrote: > > Hello, > > > > On 12/11/2020 21:07, Nathan Chancellor wrote: > > > Clang warns: > > > > > > drivers/crypto/amcc/crypto4xx_core.c:921:60: warning: operator '?:' has >

Re: [PATCH] usb/mos7720: process deferred urbs in a workqueue

2020-11-13 Thread Johan Hovold
Sorry about the late reply. On Thu, Nov 05, 2020 at 10:17:13PM -0800, Davidlohr Bueso wrote: > On Thu, 05 Nov 2020, Johan Hovold wrote: > >On Wed, Nov 04, 2020 at 04:13:07PM -0800, Davidlohr Bueso wrote: > >> Also, but not strictly related to this. What do you think of deferring all > >> work in w

[PATCH] iio: adc: ad7887: convert probe to device-managed functions

2020-11-13 Thread Alexandru Ardelean
This is conversion of the driver to use device-managed functions. The IIO registration and triggered buffer setup both have device-managed versions. The regulator disable needs to be handled via an action_or_reset handler. With these changes, the remove hook is removed, and the error path is clean

[PATCH] Remove unnecessary invoking of wbt_update_limits in wbt_init

2020-11-13 Thread chenlei0x
From: Lei Chen It's unnecessary to call wbt_update_limits explicitly within wbt_init, because it will be called in the following function wbt_queue_depth_changed. Signed-off-by: Lei Chen --- block/blk-wbt.c | 1 - 1 file changed, 1 deletion(-) diff --git a/block/blk-wbt.c b/block/blk-wbt.c in

Re: [PATCH] MIPS: reserve the memblock right after the kernel

2020-11-13 Thread Alexander Sverdlin
Hello Serge, Thomas, On 11/11/2020 15:52, Serge Semin wrote: >>> Could you send a patch, which removes check_kernel_section_mem completly ? finally I think you are right and this would be the right way. >> this will expose one issue: >> platforms usually do it in a sane way, like it was done las

Re: [PATCH] Input: add new touchpad driver for Zinitix IC

2020-11-13 Thread KwangDeok Son
[Fixed Warnings.] Add new touchpad driver for Zinitix IC Supports five fingers multi-touch and firmware updates. It communicates with the device via an I2C bus. Signed-off-by : KwangDeok Son --- diff --git a/drivers/input/mouse/Kconfig b/drivers/input/mouse/Kconfig index d8b6a5dab190..effd1b019

Re: iommu/vt-d: Cure VF irqdomain hickup

2020-11-13 Thread Marc Zyngier
On 2020-11-12 21:34, Thomas Gleixner wrote: On Thu, Nov 12 2020 at 20:15, Thomas Gleixner wrote: The recent changes to store the MSI irqdomain pointer in struct device missed that Intel DMAR does not register virtual function devices. Due to that a VF device gets the plain PCI-MSI domain assig

Re: [PATCH v3] gpio: sifive: To get gpio irq offset from device tree data

2020-11-13 Thread Greentime Hu
Bartosz Golaszewski 於 2020年11月13日 週五 下午5:00寫道: > > On Fri, Nov 13, 2020 at 3:34 AM Greentime Hu wrote: > > > > We can get hwirq number of the gpio by its irq_data->hwirq so that we don't > > need to add more macros for different platforms. This patch is tested in > > SiFive Unleashed board and Si

[PATCH] altera-stapl: remove the unreached switch case

2020-11-13 Thread xiakaixu1987
From: Kaixu Xia The value of the variable status must be one of the 0, -EIO and -EILSEQ, so the switch cases -ENODATA and default are unreached. Remove them. Reported-by: Tosk Robot Signed-off-by: Kaixu Xia --- drivers/misc/altera-stapl/altera.c | 9 - 1 file changed, 9 deletions(-)

Re: [PATCH v4 02/11] firmware: raspberrypi: Introduce devm_rpi_firmware_get()

2020-11-13 Thread Nicolas Saenz Julienne
On Thu, 2020-11-12 at 18:25 +0100, Bartosz Golaszewski wrote: > On Thu, Nov 12, 2020 at 5:44 PM Nicolas Saenz Julienne > wrote: > > Itroduce devm_rpi_firmware_get(), it'll simplify the firmware handling > > for most consumers. > > > > Suggested-by: Bartosz Golaszewski > > Signed-off-by: Nicolas

Re: [PATCH] phy: tegra: Don't warn on probe deferral

2020-11-13 Thread JC Kuo
On 11/11/20 6:37 PM, Jon Hunter wrote: > Deferred probe is an expected return value for devm_regulator_bulk_get(). > Given that the driver deals with it properly, there's no need to output a > warning that may potentially confuse users. > > Signed-off-by: Jon Hunter > --- > drivers/phy/tegra/xus

Re: [RFT for v9] (Was Re: [PATCH v8 -tip 00/26] Core scheduling)

2020-11-13 Thread Ning, Hongyu
On 2020/11/7 4:55, Joel Fernandes wrote: > All, > > I am getting ready to send the next v9 series based on tip/master > branch. Could you please give the below tree a try and report any results in > your testing? > git tree: > https://git.kernel.org/pub/scm/linux/kernel/git/jfern/linux.git (branch

[PATCH] spi: imx: enable runtime pm support

2020-11-13 Thread Nikita Shubin
Hello Clark, This patch breaks spi-imx on imx7d. Toradex Colibri imx7d spi reports with: [4.258468] inv-mpu6000-spi spi2.0: I/O Error in PIO [4.264269] inv-mpu6000-spi spi2.0: SPI transfer failed: -110 [4.264305] spi_master spi2: failed to transfer one message from queue

Re: [PATCH RFC v5 01/13] perf jevents: Add support for an extra directory level

2020-11-13 Thread John Garry
On 13/11/2020 08:48, kajoljain wrote: On 11/6/20 6:05 PM, John Garry wrote: Currently only upto a level 2 directory is supported, in form vendor/platform. Hi John, Just want to check in case of sub directories, Will it be good add on/feasible to be able to include events of particular su

Re: [PATCH net v2] net: phy: mscc: remove non-MACSec compatible phy

2020-11-13 Thread Antoine Tenart
Quoting Steen Hegelund (2020-11-13 10:11:16) > Selecting VSC8575 as a MACSec PHY was not correct > > The relevant datasheet can be found here: > - VSC8575: https://www.microchip.com/wwwproducts/en/VSC8575 > > History: > v1 -> v2: >- Corrected the sha in the "Fixes:" tag > > Fixes: 1bbe0ecc2a1

[PATCH] crypto: hisilicon/zip - add a work_queue for zip irq

2020-11-13 Thread Yang Shen
The patch 'irqchip/gic-v3-its: Balance initial LPI affinity across CPUs' set the IRQ to an uncentain CPU. If an IRQ is bound to the CPU used by the thread which is sending request, the throughput will be just half. So allocate a 'work_queue' and set as 'WQ_UNBOUND' to do the back half work on some

Re: About devm_platform_ioremap_resource [Was: Re: [PATCH 01/32] pwm: sun4i: convert to devm_platform_ioremap_resource]

2020-11-13 Thread Uwe Kleine-König
On Fri, Nov 13, 2020 at 10:12:46AM +0100, Bartosz Golaszewski wrote: > On Fri, Nov 13, 2020 at 8:04 AM Uwe Kleine-König > wrote: > > > > Hello, > > > > [Added lkml and the people involved in commit 7945f929f1a7 > > ("drivers: provide devm_platform_ioremap_resource()") to Cc:. For the > > new reade

Re: [PATCH v5 3/9] lib: zstd: Upgrade to latest upstream zstd version 1.4.6

2020-11-13 Thread kernel test robot
Hi Nick, Thank you for the patch! Perhaps something to improve: [auto build test WARNING on cryptodev/master] [also build test WARNING on kdave/for-next f2fs/dev-test linus/master v5.10-rc3 next-20201112] [cannot apply to crypto/master] [If your patch is applied to the wrong git tree, kindly dro

[PATCH] lib: zstd: fix semicolon.cocci warnings

2020-11-13 Thread kernel test robot
From: kernel test robot lib/zstd/compress/zstd_compress.c:3248:24-25: Unneeded semicolon Remove unneeded semicolon. Generated by: scripts/coccinelle/misc/semicolon.cocci CC: Nick Terrell Reported-by: kernel test robot Signed-off-by: kernel test robot --- url: https://github.com/0day-

Re: [PATCH v5 2/4] mfd: Add driver for Embedded Controller found on Acer Iconia Tab A500

2020-11-13 Thread Lee Jones
On Wed, 04 Nov 2020, Dmitry Osipenko wrote: > Acer Iconia Tab A500 is an Android tablet device, it has ENE KB930 > Embedded Controller which provides battery-gauge, LED, GPIO and some > other functions. The EC uses firmware that is specifically customized > for Acer A500. This patch adds MFD drive

[PATCH v3 00/14] An alternative series for asymmetric AArch32 systems

2020-11-13 Thread Will Deacon
Hi again everyone, I'm not a scheduler hacker, I'm a scheduler hacker's mate. I'm only hacking the scheduler, 'cos trying to run 32-bit applications on systems where not all of the CPUs support it is GREAT. It's Friday 13th, and I'm back with version three of the

[PATCH v3 02/14] arm64: Allow mismatched 32-bit EL0 support

2020-11-13 Thread Will Deacon
When confronted with a mixture of CPUs, some of which support 32-bit applications and others which don't, we quite sensibly treat the system as 64-bit only for userspace and prevent execve() of 32-bit binaries. Unfortunately, some crazy folks have decided to build systems like this with the intent

[PATCH v3 06/14] arm64: Hook up cmdline parameter to allow mismatched 32-bit EL0

2020-11-13 Thread Will Deacon
Allow systems with mismatched 32-bit support at EL0 to run 32-bit applications based on a new kernel parameter. Signed-off-by: Will Deacon --- Documentation/admin-guide/kernel-parameters.txt | 7 +++ arch/arm64/kernel/cpufeature.c | 7 +++ 2 files changed, 14 insertions(

[PATCH v3 01/14] arm64: cpuinfo: Split AArch32 registers out into a separate struct

2020-11-13 Thread Will Deacon
In preparation for late initialisation of the "sanitised" AArch32 register state, move the AArch32 registers out of 'struct cpuinfo' and into their own struct definition. Signed-off-by: Will Deacon --- arch/arm64/include/asm/cpu.h | 44 +++-- arch/arm64/kernel/cpufeature.c | 71

[PATCH v3 04/14] arm64: Kill 32-bit applications scheduled on 64-bit-only CPUs

2020-11-13 Thread Will Deacon
Scheduling a 32-bit application on a 64-bit-only CPU is a bad idea. Ensure that 32-bit applications always take the slow-path when returning to userspace on a system with mismatched support at EL0, so that we can avoid trying to run on a 64-bit-only CPU and force a SIGKILL instead. Signed-off-by:

[PATCH v3 03/14] KVM: arm64: Kill 32-bit vCPUs on systems with mismatched EL0 support

2020-11-13 Thread Will Deacon
If a vCPU is caught running 32-bit code on a system with mismatched support at EL0, then we should kill it. Acked-by: Marc Zyngier Signed-off-by: Will Deacon --- arch/arm64/kvm/arm.c | 11 ++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/arch/arm64/kvm/arm.c b/arch/arm6

[PATCH v3 14/14] arm64: Remove logic to kill 32-bit tasks on 64-bit-only cores

2020-11-13 Thread Will Deacon
The scheduler now knows enough about these braindead systems to place 32-bit tasks accordingly, so throw out the safety checks and allow the ret-to-user path to avoid do_notify_resume() if there is nothing to do. Signed-off-by: Will Deacon --- arch/arm64/kernel/process.c | 12 arch/

[PATCH v3 13/14] arm64: Implement arch_cpu_allowed_mask()

2020-11-13 Thread Will Deacon
Provide an implementation of arch_cpu_allowed_mask() so that we can prevent 64-bit-only cores being added to the 'cpus_mask' for compat tasks on systems with mismatched 32-bit support at EL0, Signed-off-by: Will Deacon --- arch/arm64/include/asm/mmu_context.h | 12 1 file changed, 1

[PATCH v3 08/14] arm64: exec: Adjust affinity for compat tasks with mismatched 32-bit EL0

2020-11-13 Thread Will Deacon
When exec'ing a 32-bit task on a system with mismatched support for 32-bit EL0, try to ensure that it starts life on a CPU that can actually run it. Signed-off-by: Will Deacon --- arch/arm64/kernel/process.c | 12 +++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/arch/ar

[PATCH v3 11/14] sched: Reject CPU affinity changes based on arch_cpu_allowed_mask()

2020-11-13 Thread Will Deacon
Reject explicit requests to change the affinity mask of a task via set_cpus_allowed_ptr() if the requested mask is not a subset of the mask returned by arch_cpu_allowed_mask(). This ensures that the 'cpus_mask' for a given task cannot contain CPUs which are incapable of executing it, except in case

[PATCH v3 05/14] arm64: Advertise CPUs capable of running 32-bit applications in sysfs

2020-11-13 Thread Will Deacon
Since 32-bit applications will be killed if they are caught trying to execute on a 64-bit-only CPU in a mismatched system, advertise the set of 32-bit capable CPUs to userspace in sysfs. Reviewed-by: Greg Kroah-Hartman Signed-off-by: Will Deacon --- .../ABI/testing/sysfs-devices-system-cpu

[PATCH v3 10/14] sched: Introduce arch_cpu_allowed_mask() to limit fallback rq selection

2020-11-13 Thread Will Deacon
Asymmetric systems may not offer the same level of userspace ISA support across all CPUs, meaning that some applications cannot be executed by some CPUs. As a concrete example, upcoming arm64 big.LITTLE designs do not feature support for 32-bit applications on both clusters. On such a system, we m

[PATCH v3 12/14] arm64: Prevent offlining first CPU with 32-bit EL0 on mismatched system

2020-11-13 Thread Will Deacon
If we want to support 32-bit applications, then when we identify a CPU with mismatched 32-bit EL0 support we must ensure that we will always have an active 32-bit CPU available to us from then on. This is important for the scheduler, because is_cpu_allowed() will be constrained to 32-bit CPUs for c

[PATCH v3 09/14] cpuset: Don't use the cpu_possible_mask as a last resort for cgroup v1

2020-11-13 Thread Will Deacon
If the scheduler cannot find an allowed CPU for a task, cpuset_cpus_allowed_fallback() will widen the affinity to cpu_possible_mask if cgroup v1 is in use. In preparation for allowing architectures to provide their own fallback mask, just return early if we're not using cgroup v2 and allow select_

[PATCH v3 07/14] sched: Introduce restrict_cpus_allowed_ptr() to limit task CPU affinity

2020-11-13 Thread Will Deacon
Asymmetric systems may not offer the same level of userspace ISA support across all CPUs, meaning that some applications cannot be executed by some CPUs. As a concrete example, upcoming arm64 big.LITTLE designs do not feature support for 32-bit applications on both clusters. Although userspace can

  1   2   3   4   5   6   7   8   9   10   >