[RFC PATCH v3 4/8] RISC-V: Add SBI HSM suspend related defines

2021-03-18 Thread Anup Patel
We add defines related to SBI HSM suspend call and also update HSM states naming as-per latest SBI specification. Signed-off-by: Anup Patel --- arch/riscv/include/asm/sbi.h| 27 ++- arch/riscv/kernel/cpu_ops_sbi.c | 2 +- 2 files changed, 23 insertions(+), 6

[RFC PATCH v3 6/8] cpuidle: Add RISC-V SBI CPU idle driver

2021-03-18 Thread Anup Patel
The RISC-V SBI HSM extension provides HSM suspend call which can be used by Linux RISC-V to enter platform specific low-power state. This patch adds a CPU idle driver based on RISC-V SBI calls which will populate idle states from device tree and use SBI calls to entry these idle states.

[RFC PATCH v3 7/8] dt-bindings: Add common bindings for ARM and RISC-V idle states

2021-03-18 Thread Anup Patel
The RISC-V CPU idle states will be described in under the /cpus/idle-states DT node in the same way as ARM CPU idle states. This patch adds common bindings documentation for both ARM and RISC-V idle states. Signed-off-by: Anup Patel --- .../bindings/{arm => cpu}/idle-states.yaml| 228

[RFC PATCH v3 8/8] RISC-V: Enable RISC-V SBI CPU Idle driver for QEMU virt machine

2021-03-18 Thread Anup Patel
We enable RISC-V SBI CPU Idle driver for QEMU virt machine to test SBI HSM Supend on QEMU. Signed-off-by: Anup Patel --- arch/riscv/Kconfig.socs | 3 +++ arch/riscv/configs/defconfig | 1 + arch/riscv/configs/rv32_defconfig | 1 + 3 files changed, 5 insertions(+) diff --git

[RFC PATCH v3 5/8] cpuidle: Factor-out power domain related code from PSCI domain driver

2021-03-18 Thread Anup Patel
The generic power domain related code in PSCI domain driver is largely independent of PSCI and can be shared with RISC-V SBI domain driver hence we factor-out this code into dt_idle_genpd.c and dt_idle_genpd.h. Signed-off-by: Anup Patel --- drivers/cpuidle/Kconfig | 4 +

[PATCH] ia64: Ensure proper NUMA distance and possible map initialization

2021-03-18 Thread Valentin Schneider
John Paul reported a warning about bogus NUMA distance values spurred by commit: 620a6dc40754 ("sched/topology: Make sched_init_numa() use a set for the deduplicating sort") In this case, the afflicted machine comes up with a reported 256 possible nodes, all of which are 0 distance away from

Re: [PATCH V3 5/5] arm64: dts: renesas: beacon kits: Setup AVB refclk

2021-03-18 Thread Geert Uytterhoeven
Hi Adam, On Thu, Mar 18, 2021 at 1:44 PM Adam Ford wrote: > On Thu, Mar 4, 2021 at 2:04 AM Geert Uytterhoeven > wrote: > > On Wed, Feb 24, 2021 at 12:52 PM Adam Ford wrote: > > > The AVB refererence clock assumes an external clock that runs > > > > reference > > > > > automatically. Because

Re: [PATCH] drm: Few typo fixes

2021-03-18 Thread Daniel Vetter
On Thu, Mar 18, 2021 at 04:07:39PM +0530, Bhaskar Chowdhury wrote: > > s/instatiated/instantiated/ > s/unreference/unreferenced/ > > Signed-off-by: Bhaskar Chowdhury Queued for 5.13 in drm-misc-next, thanks for your patch. -Daniel > --- > drivers/gpu/drm/drm_property.c | 4 ++-- > 1 file

Re: [PATCH 2/2] spi: spi-zynq-qspi: Fix stack violation bug

2021-03-18 Thread Mark Brown
On Thu, Mar 18, 2021 at 04:24:46AM -0600, Amit Kumar Mahapatra wrote: > When the number of bytes for the op is greater than one, the read could > run off the end of the function stack and cause a crash. > This patch restores the behaviour of safely reading out of the original > opcode location.

[PATCH v2 2/4] fs: unicode: Rename utf8-core file to unicode-core

2021-03-18 Thread Shreeya Patel
Rename the file name from utf8-core to unicode-core for transformation of utf8-core file into the unicode subsystem layer file and also for better understanding. Signed-off-by: Shreeya Patel --- fs/unicode/Makefile| 2 +- fs/unicode/{utf8-core.c => unicode-core.c} | 0 2

[PATCH v2 3/4] fs: unicode: Use strscpy() instead of strncpy()

2021-03-18 Thread Shreeya Patel
Following warning was reported by Kernel Test Robot. In function 'utf8_parse_version', inlined from 'utf8_load' at fs/unicode/utf8mod.c:195:7: >> fs/unicode/utf8mod.c:175:2: warning: 'strncpy' specified bound 12 equals destination size [-Wstringop-truncation] 175 | strncpy(version_string,

[PATCH v2 4/4] fs: unicode: Add utf8 module and a unicode layer

2021-03-18 Thread Shreeya Patel
utf8data.h_shipped has a large database table which is an auto-generated decodification trie for the unicode normalization functions. It is not necessary to carry this large table in the kernel hence make UTF-8 encoding loadable by converting it into a module. Also, modify the file called

[PATCH v2 1/4] fs: unicode: Rename function names from utf8 to unicode

2021-03-18 Thread Shreeya Patel
Rename the function names from utf8 to unicode for taking the first step towards the transformation of utf8-core file into the unicode subsystem layer file. Signed-off-by: Shreeya Patel --- fs/ext4/hash.c | 2 +- fs/ext4/namei.c| 12 fs/ext4/super.c

Re: [PATCH net-next 2/4] net: ipa: introduce dma_addr_high32()

2021-03-18 Thread Alex Elder
On 3/17/21 6:00 PM, Florian Fainelli wrote: On 3/17/2021 3:49 PM, Alex Elder wrote: On 3/17/21 5:47 PM, Florian Fainelli wrote: +/* Encapsulate extracting high-order 32 bits of DMA address */ +static u32 dma_addr_high32(dma_addr_t addr) +{ +#ifdef CONFIG_ARCH_DMA_ADDR_T_64BIT +    return

Re: [Linuxarm] Re: [PATCH 2/3] drivers/perf: convert sysfs scnprintf family to sysfs_emit_at

2021-03-18 Thread Joe Perches
On Thu, 2021-03-18 at 17:33 +0800, liuqi (BA) wrote: > On 2021/3/17 22:57, Joe Perches wrote: > > On Wed, 2021-03-17 at 17:41 +0800, Qi Liu wrote: > > > Use the generic sysfs_emit_at() function take place of scnprintf() > > [] > > > diff --git a/drivers/perf/arm-ccn.c b/drivers/perf/arm-ccn.c > >

[PATCH v2 0/4] Make UTF-8 encoding loadable

2021-03-18 Thread Shreeya Patel
utf8data.h_shipped has a large database table which is an auto-generated decodification trie for the unicode normalization functions and it is not necessary to carry this large table in the kernel. Goal is to make UTF-8 encoding loadable by converting it into a module and adding a layer between

Re: [PATCH] docs: devicetree: bindings: sound: Fix a typo in the file rt5682.txt

2021-03-18 Thread Mark Brown
On Sun, Mar 14, 2021 at 04:48:50AM +0530, Bhaskar Chowdhury wrote: > > s/drving/driving/ Please submit patches using subject lines reflecting the style for the subsystem, this makes it easier for people to identify relevant patches. Look at what existing commits in the area you're changing are

[PATCH 1/2] media: v4l2-core: ignore native time32 ioctls on 64-bit

2021-03-18 Thread Arnd Bergmann
From: Arnd Bergmann Syzbot found that passing ioctl command 0xc0505609 into a 64-bit kernel from a 32-bit process causes uninitialized kernel memory to get passed to drivers instead of the user space data: BUG: KMSAN: uninit-value in check_array_args drivers/media/v4l2-core/v4l2-ioctl.c:3041

[PATCH 2/2] media: v4l2-core: explicitly clear ioctl input data

2021-03-18 Thread Arnd Bergmann
From: Arnd Bergmann As seen from a recent syzbot bug report, mistakes in the compat ioctl implementation can lead to uninitialized kernel stack data getting used as input for driver ioctl handlers. The reported bug is now fixed, but it's possible that other related bugs are still present or get

Re: [PATCH v2 1/3] perf-stat: introduce bperf, share hardware PMCs with BPF

2021-03-18 Thread Namhyung Kim
On Thu, Mar 18, 2021 at 4:22 PM Song Liu wrote: > > > > > On Mar 17, 2021, at 10:54 PM, Namhyung Kim wrote: > > > > [...] > > >> + > >> +static int bperf_reload_leader_program(struct evsel *evsel, int > >> attr_map_fd, > >> + struct perf_event_attr_map_entry

Re: [PATCH v10 1/2] scsi: ufs: Enable power management for wlun

2021-03-18 Thread Rafael J. Wysocki
On Wed, Mar 17, 2021 at 7:37 AM Adrian Hunter wrote: > > On 16/03/21 10:35 pm, Asutosh Das (asd) wrote: > > On 3/16/2021 12:48 AM, Adrian Hunter wrote: > >> On 16/03/21 12:22 am, Asutosh Das (asd) wrote: > >>> On 3/14/2021 1:11 AM, Adrian Hunter wrote: > On 10/03/21 5:04 am, Asutosh Das

Re: [PATCH] proc: fix incorrect pde_is_permanent check

2021-03-18 Thread Christian Brauner
On Thu, Mar 18, 2021 at 12:26:33PM +, Colin King wrote: > From: Colin Ian King > > Currently the pde_is_permanent check is being run on root multiple times > rather than on the next proc directory entry. This looks like a copy-paste > error. Fix this by replacing root with next. > >

Re: [PATCH v3 2/6] mm/huge_memory.c: make get_huge_zero_page() return bool

2021-03-18 Thread Zi Yan
On 18 Mar 2021, at 8:27, Miaohe Lin wrote: > It's guaranteed that huge_zero_page will not be NULL if huge_zero_refcount > is increased successfully. When READ_ONCE(huge_zero_page) is returned, > there must be a huge_zero_page and it can be replaced with returning 'true' > when we do not care

[net PATCH v2 2/8] octeontx2-af: Formatting debugfs entry rsrc_alloc.

2021-03-18 Thread Hariprasad Kelam
From: Rakesh Babu With the existing rsrc_alloc's format, there is misalignment for the pcifunc entries whose VF's index is a double digit. This patch fixes this. pcifunc NPA NIX0NIX1SSO GROUP SSOWS TIM CPT0CPT1REE0REE1

[net PATCH v2 1/8] octeontx2-pf: Do not modify number of rules

2021-03-18 Thread Hariprasad Kelam
From: Subbaraya Sundeep In the ETHTOOL_GRXCLSRLALL ioctl ethtool uses below structure to read number of rules from the driver. struct ethtool_rxnfc { __u32 cmd; __u32 flow_type; __u64

[net PATCH v2 3/8] octeontx2-af: Remove TOS field from MKEX TX

2021-03-18 Thread Hariprasad Kelam
From: Subbaraya Sundeep The MKEX profile describes what packet fields need to be extracted from the input packet and how to place those packet fields in the output key for MCAM matching. The MKEX profile can be in a way where higher layer packet fields can overwrite lower layer packet fields in

[net PATCH v2 4/8] octeontx2-af: Return correct CGX RX fifo size

2021-03-18 Thread Hariprasad Kelam
From: Subbaraya Sundeep CGX receive buffer size is a constant value and cannot be read from CGX0 block always since CGX0 may not enabled everytime. Hence return CGX receive buffer size from first enabled CGX block instead of CGX0. Fixes: 6e54e1c5399a ("octeontx2-af: cn10K: MTU configuration")

[net PATCH v2 6/8] octeontx2-pf: Clear RSS enable flag on interace down

2021-03-18 Thread Hariprasad Kelam
From: Geetha sowjanya RSS configuration can not be get/set when interface is in down state as they required mbox communication. RSS enable flag status is used for set/get configuration. Current code do not clear the RSS enable flag on interface down which lead to mbox error while trying to

[net PATCH v2 0/8] octeontx2: miscellaneous fixes

2021-03-18 Thread Hariprasad Kelam
This series of patches fixes various issues related to NPC MCAM entry management, debugfs, devlink, CGX LMAC mapping, RSS config etc Change-log: v2: Fixed below review comments - corrected Fixed tag syntax with 12 digits SHA1 and providing space between SHA1 and subject line

[net PATCH v2 8/8] octeontx2-af: Fix uninitialized variable warning

2021-03-18 Thread Hariprasad Kelam
From: Subbaraya Sundeep Initialize l4_key_offset variable to fix uninitialized variable compiler warning. Fixes: b9b7421a01d8 ("octeontx2-af: Support ESP/AH RSS hashing") Signed-off-by: Subbaraya Sundeep Signed-off-by: Hariprasad Kelam Signed-off-by: Sunil Kovvuri Goutham ---

[net PATCH v2 7/8] octeontx2-af: fix infinite loop in unmapping NPC counter

2021-03-18 Thread Hariprasad Kelam
unmapping npc counter works in a way by traversing all mcam entries to find which mcam rule is associated with counter. But loop cursor variable 'entry' is not incremented before checking next mcam entry which resulting in infinite loop. This in turn hogs the kworker thread forever and no other

[net PATCH v2 5/8] octeontx2-af: Fix irq free in rvu teardown

2021-03-18 Thread Hariprasad Kelam
From: Geetha sowjanya Current devlink code try to free already freed irqs as the irq_allocate flag is not cleared after free leading to kernel crash while removing rvu driver. The patch fixes the irq free sequence and clears the irq_allocate flag on free. Fixes: 7304ac4567bc ("octeontx2-af: Add

Re: [RESEND PATCH v2 1/2] arm64: dts: ti: k3-am64-main: Add OSPI node

2021-03-18 Thread Nishanth Menon
On Thu, 18 Mar 2021 17:07:56 +0530, Vignesh Raghavendra wrote: > AM64 SoC has a single Octal SPI (OSPI) instance under Flash SubSystem > (FSS). Add DT entry for the same. Hi Vignesh Raghavendra, I have applied the following to branch ti-k3-dts-next on [1]. Thank you! [1/2] arm64: dts: ti:

Re: [v5, 1/2] drm/mediatek: mtk_dpi: Add check for max clock rate in mode_valid

2021-03-18 Thread Enric Balletbo Serra
Hi Rex-BC Chen, Thank you for your patch. Missatge de Rex-BC Chen del dia dj., 18 de març 2021 a les 6:42: > > Add per-platform max clock rate check in mtk_dpi_bridge_mode_valid. > > Signed-off-by: Pi-Hsun Shih > Signed-off-by: Rex-BC Chen > Signed-off-by: Jitao Shi > --- >

Re: [RESEND PATCH] arm64: dts: ti: k3-am64-main: Add ADC nodes

2021-03-18 Thread Nishanth Menon
On Thu, 18 Mar 2021 17:04:43 +0530, Vignesh Raghavendra wrote: > AM64 SoC has a single ADC IP with 8 channels. Add DT node for the same. > > Default usecase is to control ADC from non Linux core on the system on > AM642 GP EVM, therefore mark the node as reserved in k3-am642-evm.dts > file. ADC

Re: [PATCH] drm: Few typo fixes

2021-03-18 Thread Joe Perches
On Thu, 2021-03-18 at 16:07 +0530, Bhaskar Chowdhury wrote: > s/instatiated/instantiated/ > s/unreference/unreferenced/ []> diff --git a/drivers/gpu/drm/drm_property.c b/drivers/gpu/drm/drm_property.c [] > @@ -644,7 +644,7 @@ EXPORT_SYMBOL(drm_property_blob_get); >   * @id: id of the blob

[PATCH] clk: xilinx: vcu: rewrite and fix xvcu_clk_hw_unregister_leaf

2021-03-18 Thread Michael Tretter
The xvcu_clk_hw_unregister_leaf function was missing a check if the clock mux exits before unregistering the clock mux. Fix the error by rewriting the entire function. The function now first finds all clocks that are part of the output clock and afterwards unregisters all found clocks. This

RE: [PATCH v4 3/3] pinctrl: Add Xilinx ZynqMP pinctrl driver support

2021-03-18 Thread Sai Krishna Potthuri
Hi Andy Shevchenko, Thanks for the review. > -Original Message- > From: Andy Shevchenko > Sent: Wednesday, March 17, 2021 6:26 PM > To: Sai Krishna Potthuri > Cc: Linus Walleij ; Rob Herring > ; Michal Simek ; Greg Kroah- > Hartman ; linux-arm Mailing List ker...@lists.infradead.org>;

Re: [syzbot] KASAN: slab-out-of-bounds Read in riscv_intc_irq

2021-03-18 Thread Kefeng Wang
On 2021/3/18 22:11, Dmitry Vyukov wrote: On Thu, Mar 18, 2021 at 1:21 PM Kefeng Wang wrote: On 2021/3/14 18:47, Dmitry Vyukov wrote: On Sun, Mar 14, 2021 at 11:14 AM syzbot wrote: Hello, syzbot found the following issue on: HEAD commit:0d7588ab riscv: process: Fix no prototype for

Re: [PATCH 5/5] arm64: dts: qcom: msm8916: Enable modem and WiFi

2021-03-18 Thread Bjorn Andersson
On Mon 15 Mar 07:01 CDT 2021, Bryan O'Donoghue wrote: > On 12/03/2021 00:33, Bjorn Andersson wrote: > > Enable the modem and WiFi subsystems and specify msm8916 specific > > firmware path for these and the WCNSS control service. > > > > Signed-off-by: Bjorn Andersson > > --- > >

[syzbot] KASAN: use-after-free Read in kill_pending_fw_fallback_reqs

2021-03-18 Thread syzbot
Hello, syzbot found the following issue on: HEAD commit:6417f031 module: remove never implemented MODULE_SUPPORTED.. git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=16293a7cd0 kernel config: https://syzkaller.appspot.com/x/.config?x=ab2c8a4eaedddecd

Re: [PATCH v4 2/5] mm: memcontrol: directly access page->memcg_data in mm/page_alloc.c

2021-03-18 Thread Johannes Weiner
On Thu, Mar 18, 2021 at 07:06:55PM +0800, Muchun Song wrote: > The page_memcg() is not suitable for use by page_expected_state() and > page_bad_reason(). Because it can BUG_ON() for the slab pages when > CONFIG_DEBUG_VM is enabled. As neither lru, nor kmem, nor slab page > should have anything

RE: [PATCH v2 3/4] fs: unicode: Use strscpy() instead of strncpy()

2021-03-18 Thread David Laight
From: Shreeya Patel > Sent: 18 March 2021 14:13 > > On 18/03/21 7:03 pm, Shreeya Patel wrote: > > Following warning was reported by Kernel Test Robot. > > > > In function 'utf8_parse_version', > > inlined from 'utf8_load' at fs/unicode/utf8mod.c:195:7: > >>> fs/unicode/utf8mod.c:175:2: warning:

Re: [PATCH 3/3] KVM: SVM: allow to intercept all exceptions for debug

2021-03-18 Thread Joerg Roedel
On Thu, Mar 18, 2021 at 11:24:25AM +0200, Maxim Levitsky wrote: > But again this is a debug feature, and it is intended to allow the user > to shoot himself in the foot. And one can't debug SEV-ES guests with it, so what is the point of enabling it for them too? Regards, Joerg

[PATCH] Input: ims-pcu - drop redundant driver-data assignment

2021-03-18 Thread Johan Hovold
The driver data for the data interface has already been set by usb_driver_claim_interface() so drop the subsequent redundant assignment. Signed-off-by: Johan Hovold --- drivers/input/misc/ims-pcu.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/input/misc/ims-pcu.c

[PATCH] workqueue/tracing: Copy workqueue name to buffer in trace event

2021-03-18 Thread Steven Rostedt
From: "Steven Rostedt (VMware)" The trace event "workqueue_queue_work" references an unsafe string in dereferencing the name of the workqueue. As the name is allocated, it could later be freed, and the pointer to that string could stay on the tracing buffer. If the trace buffer is read after the

Re: [PATCH 05/10] crypto: keembay: ocs-hcu: Fix incorrectly named functions/structs

2021-03-18 Thread Alessandrelli, Daniele
On Thu, 2021-03-18 at 12:44 +, Lee Jones wrote: > Fixes the following W=1 kernel build warning(s): > > drivers/crypto/keembay/ocs-hcu.c:107: warning: expecting prototype for > struct ocs_hcu_dma_list. Prototype was for struct ocs_hcu_dma_entry instead >

Re: [PATCH net-next] net: phy: at803x: remove at803x_aneg_done()

2021-03-18 Thread Heiner Kallweit
On 18.03.2021 16:17, Vladimir Oltean wrote: > On Thu, Mar 18, 2021 at 03:54:00PM +0100, Heiner Kallweit wrote: >> On 18.03.2021 15:23, Michael Walle wrote: >>> at803x_aneg_done() is pretty much dead code since the patch series >>> "net: phy: improve and simplify phylib state machine" [1]. Remove

Re: [PATCH net V2 1/1] net: phy: fix invalid phy id when probe using C22

2021-03-18 Thread Russell King - ARM Linux admin
On Thu, Mar 18, 2021 at 09:02:22AM -0700, Florian Fainelli wrote: > On 3/18/2021 6:25 AM, Heiner Kallweit wrote: > > On 18.03.2021 10:09, Wong Vee Khee wrote: > >> When using Clause-22 to probe for PHY devices such as the Marvell > >> 88E2110, PHY ID with value 0 is read from the MII PHYID

[PATCH v4 1/2] crypto: qat - don't release uninitialized resources

2021-03-18 Thread Tong Zhang
adf_vf_isr_resource_alloc() is not unwinding correctly when error happens and it tris to release uninitialized resources. To fix this, only release initialized resources. [1.792845] Trying to free already-free IRQ 11 [1.793091] WARNING: CPU: 0 PID: 182 at kernel/irq/manage.c:1821

Re: [PATCH v1] memory: tegra20: Add debug statistics

2021-03-18 Thread Krzysztof Kozlowski
On 18/03/2021 17:18, Dmitry Osipenko wrote: > 18.03.2021 18:23, Krzysztof Kozlowski пишет: > >>> + >>> + /* collect memory controller utilization percent for each client */ >>> + for (i = 0; i < mc->soc->num_clients; i += 2) { >>> + client0 = >soc->clients[i]; >>> +

[PATCH RESEND] cifsd: fix a IS_ERR() vs NULL bug

2021-03-18 Thread Dan Carpenter
The smb_direct_alloc_sendmsg() function never returns NULL, it only returns error pointers so the check needs to be updated. Fixes: cabcebc31de4 ("cifsd: introduce SMB3 kernel server") Signed-off-by: Dan Carpenter --- RESEND: Oops. I forgot to CC linux-cifs on this. fs/cifsd/transport_rdma.c

Re: [PATCH v2] perf stat: Align CSV output for summary mode

2021-03-18 Thread Arnaldo Carvalho de Melo
Em Wed, Mar 17, 2021 at 02:51:42PM -0700, Andi Kleen escreveu: > > If you care about not breaking existing scripts, then the output they > > get with what they use as command line options must continue to produce > > the same output. > > It's not clear there are any useful ones (except for tools

Re: [PATCH v2 11/27] perf parse-events: Support hardware events inside PMU

2021-03-18 Thread Arnaldo Carvalho de Melo
Em Thu, Mar 18, 2021 at 01:16:37PM +0100, Jiri Olsa escreveu: > On Wed, Mar 17, 2021 at 10:42:45AM -0300, Arnaldo Carvalho de Melo wrote: > > Em Wed, Mar 17, 2021 at 08:17:52PM +0800, Jin, Yao escreveu: > > > I'm OK to only support 'cpu_core/cpu-cycles/' or 'cpu_atom/cpu-cycles/'. > > > But > > >

Re: [PATCH v4 1/2] ASoC: amd: Add support for RT5682 codec in machine driver

2021-03-18 Thread Mukunda,Vijendar
On 18/03/21 6:30 pm, Mark Brown wrote: On Thu, Mar 18, 2021 at 02:03:46AM +0530, Vijendar Mukunda wrote: +++ b/sound/soc/amd/acp-da7219-max98357a.c @@ -1,27 +1,8 @@ -/* - * Machine driver for AMD ACP Audio engine using DA7219 & MAX98357 codec - * - * Copyright 2017 Advanced Micro Devices,

Re: Question about sg_count_fuse_req() in linux/fs/fuse/virtio_fs.c

2021-03-18 Thread Vivek Goyal
On Wed, Mar 17, 2021 at 01:12:01PM -0500, Connor Kuehl wrote: > Hi, > > I've been familiarizing myself with the virtiofs guest kernel module and I'm > trying to better understand how virtiofs maps a FUSE request into > scattergather lists. > > sg_count_fuse_req() starts knowing that there will

Re: [PATCH] memcg: set page->private before calling swap_readpage

2021-03-18 Thread Michal Hocko
On Wed 17-03-21 18:59:59, Shakeel Butt wrote: > The function swap_readpage() (and other functions it call) extracts swap > entry from page->private. However for SWP_SYNCHRONOUS_IO, the kernel > skips the swapcache and thus we need to manually set the page->private > with the swap entry before

[PATCH v2 1/6] dt-bindings: phy: qcom,qmp-usb3-dp: Add support for SM8250

2021-03-18 Thread Dmitry Baryshkov
Add compatible for SM8250 in QMP USB3 DP PHY bindings. Signed-off-by: Dmitry Baryshkov --- Documentation/devicetree/bindings/phy/qcom,qmp-phy.yaml | 1 - Documentation/devicetree/bindings/phy/qcom,qmp-usb3-dp-phy.yaml | 2 ++ 2 files changed, 2 insertions(+), 1 deletion(-) diff --git

[PATCH v2 2/6] phy: qcom-qmp: move DP functions to callbacks

2021-03-18 Thread Dmitry Baryshkov
In preparation to adding support for V4 DP PHY move DP functions to callbacks at struct qmp_phy_cfg. Signed-off-by: Dmitry Baryshkov --- drivers/phy/qualcomm/phy-qcom-qmp.c | 438 +++- 1 file changed, 231 insertions(+), 207 deletions(-) diff --git

[PATCH v2 3/6] phy: qcom-qmp: rename common registers

2021-03-18 Thread Dmitry Baryshkov
A plenty of DP PHY registers are common between V3 and V4. To simplify V4 code, rename all common registers. Signed-off-by: Dmitry Baryshkov --- drivers/phy/qualcomm/phy-qcom-qmp.c | 50 ++--- drivers/phy/qualcomm/phy-qcom-qmp.h | 37 ++--- 2 files

[PATCH v2 0/6] phy: qcom-qmp: provide DP phy support for sm8250

2021-03-18 Thread Dmitry Baryshkov
Changes since v1: - Provide dt bindings - Split register renaming from sm8250-dp-phy patch - Add respective changes to sm8250 device tree The following changes since commit a38fd8748464831584a19438cbb3082b5a2dab15: Linux 5.12-rc2 (2021-03-05 17:33:41 -0800) are available in the Git

[PATCH v2 6/6] arm64: dts: qcom: use dp_phy to provide clocks to dispcc

2021-03-18 Thread Dmitry Baryshkov
Plug dp_phy-provided clocks to display clock controller. Signed-off-by: Dmitry Baryshkov --- arch/arm64/boot/dts/qcom/sm8250.dtsi | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/sm8250.dtsi b/arch/arm64/boot/dts/qcom/sm8250.dtsi index

[PATCH v2 4/6] phy: qcom-qmp: add support for sm8250-usb3-dp phy

2021-03-18 Thread Dmitry Baryshkov
Add support for QMP V4 Combo USB3+DP PHY (for SM8250 platform). Signed-off-by: Dmitry Baryshkov --- drivers/phy/qualcomm/phy-qcom-qmp.c | 400 ++-- drivers/phy/qualcomm/phy-qcom-qmp.h | 40 ++- 2 files changed, 418 insertions(+), 22 deletions(-) diff --git

Re: [PATCH 2/7] dt-bindigns: regulator: mtk: Drop unneeded compatible

2021-03-18 Thread Enric Balletbo Serra
Hi Matthias, Thank you for your patch. There is a typo in the subject line s/dt-bindigns/dt-bindings/ Rob might miss this patch as he filters the patches by subject I guess. Missatge de l'adreça del dia dv., 12 de març 2021 a les 15:57: > > From: Matthias Brugger > > The regulator does not

[PATCH v2 5/6] arm64: dts: qcom: sm8250: switch usb1 qmp phy to USB3+DP mode

2021-03-18 Thread Dmitry Baryshkov
USB1 QMP PHY is not just a USB3 PHY, but USB3+DP PHY. Change device tree nodes accordingly. Signed-off-by: Dmitry Baryshkov --- arch/arm64/boot/dts/qcom/sm8250.dtsi | 23 ++- 1 file changed, 18 insertions(+), 5 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/sm8250.dtsi

Re: [PATCH -next] phy: sparx5_serdes: Fix return value check in sparx5_serdes_probe()

2021-03-18 Thread Alexandre Belloni
Hello, On 18/03/2021 13:56:47+, 'w00385741 wrote: > From: Wei Yongjun > > In case of error, the function devm_ioremap() returns NULL > pointer not ERR_PTR(). The IS_ERR() test in the return value > check should be replaced with NULL test. > > Fixes: 2ff8a1eeb5aa ("phy: Add Sparx5 ethernet

Re: [syzbot] KASAN: slab-out-of-bounds Read in riscv_intc_irq

2021-03-18 Thread Dmitry Vyukov
On Thu, Mar 18, 2021 at 1:21 PM Kefeng Wang wrote: > On 2021/3/14 18:47, Dmitry Vyukov wrote: > > On Sun, Mar 14, 2021 at 11:14 AM syzbot > > wrote: > >> Hello, > >> > >> syzbot found the following issue on: > >> > >> HEAD commit:0d7588ab riscv: process: Fix no prototype for > >>

Re: [PATCH v3 5/6] mm/huge_memory.c: remove unused macro TRANSPARENT_HUGEPAGE_DEBUG_COW_FLAG

2021-03-18 Thread Zi Yan
On 18 Mar 2021, at 8:27, Miaohe Lin wrote: > The commit 4958e4d86ecb ("mm: thp: remove debug_cow switch") forgot to > remove TRANSPARENT_HUGEPAGE_DEBUG_COW_FLAG macro. Remove it here. > > Signed-off-by: Miaohe Lin > --- > include/linux/huge_mm.h | 3 --- > 1 file changed, 3 deletions(-) LGTM.

Re: [PATCH v8] i2c: virtio: add a virtio i2c frontend driver

2021-03-18 Thread Enrico Weigelt, metux IT consult
On 16.03.21 08:44, Viresh Kumar wrote: FWIW, this limits this driver to support a single device ever. We can't bind multiple devices to this driver now. Yeah, perhaps we will never be required to do so, but who knows. Actually, I believe multiple devices really should be possible. The major

Re: [PATCH net-next] net: phy: at803x: remove at803x_aneg_done()

2021-03-18 Thread Heiner Kallweit
On 18.03.2021 15:23, Michael Walle wrote: > at803x_aneg_done() is pretty much dead code since the patch series > "net: phy: improve and simplify phylib state machine" [1]. Remove it. > Well, it's not dead, it's resting .. There are few places where phy_aneg_done() is used. So you would need to

Re: [PATCH v1] usb: typec: tcpm: Skip sink_cap query only when VDM sm is busy

2021-03-18 Thread Guenter Roeck
On 3/17/21 11:48 PM, Badhri Jagan Sridharan wrote: > When port partner responds "Not supported" to the DiscIdentity command, > VDM state machine can remain in NVDM_STATE_ERR_TMOUT and this causes > querying sink cap to be skipped indefinitely. Hence check for > vdm_sm_running instead of checking

Re: [PATCH v4 1/4] sched/fair: Introduce primitives for CFS bandwidth burst

2021-03-18 Thread Peter Zijlstra
On Thu, Mar 18, 2021 at 09:26:58AM +0800, changhuaixin wrote: > > On Mar 17, 2021, at 4:06 PM, Peter Zijlstra wrote: > > So what is the typical avg,stdev,max and mode for the workloads where you > > find > > you need this? > > > > I would really like to put a limit on the burst. IMO a workload

Re: [PATCH] memcg: set page->private before calling swap_readpage

2021-03-18 Thread Michal Hocko
On Thu 18-03-21 11:02:17, Johannes Weiner wrote: > On Thu, Mar 18, 2021 at 03:01:25PM +0100, Michal Hocko wrote: > > On Wed 17-03-21 18:59:59, Shakeel Butt wrote: > > > The function swap_readpage() (and other functions it call) extracts swap > > > entry from page->private. However for

Re: [PATCH 2/2] media: v4l2-core: explicitly clear ioctl input data

2021-03-18 Thread Laurent Pinchart
Hi Arnd, Thank you for the patch. On Thu, Mar 18, 2021 at 02:43:19PM +0100, Arnd Bergmann wrote: > From: Arnd Bergmann > > As seen from a recent syzbot bug report, mistakes in the compat ioctl > implementation can lead to uninitialized kernel stack data getting used > as input for driver ioctl

Re: [RFC PATCH v2 1/8] arm64: Implement stack trace termination record

2021-03-18 Thread Mark Brown
On Mon, Mar 15, 2021 at 11:57:53AM -0500, madve...@linux.microsoft.com wrote: > In summary, task pt_regs->stackframe is where a successful stack trace ends. > .if \el == 0 > - mov x29, xzr > + stp xzr, xzr, [sp, #S_STACKFRAME] > .else > stp x29,

Re: [PATCH net-next] net: phy: at803x: remove at803x_aneg_done()

2021-03-18 Thread Vladimir Oltean
On Thu, Mar 18, 2021 at 03:54:00PM +0100, Heiner Kallweit wrote: > On 18.03.2021 15:23, Michael Walle wrote: > > at803x_aneg_done() is pretty much dead code since the patch series > > "net: phy: improve and simplify phylib state machine" [1]. Remove it. > > > > Well, it's not dead, it's resting

[PATCH 02/15] staging: rtl8723bs: remove unnecessary logging in core/rtw_mlme.c

2021-03-18 Thread Fabio Aiuto
fix the following checkpatch.pl issues: WARNING: Unnecessary ftrace-like logging - prefer using ftrace 1134: FILE: drivers/staging/rtl8723bs/core/rtw_mlme.c:1134: + DBG_871X("%s\n", __func__); -- WARNING: Unnecessary ftrace-like logging - prefer using ftrace 1223: FILE:

[PATCH 01/15] staging: rtl8723bs: remove unnecessary logging in core/rtw_ap.c

2021-03-18 Thread Fabio Aiuto
fix the following checkpatch.pl issues: WARNING: Unnecessary ftrace-like logging - prefer using ftrace 66: FILE: drivers/staging/rtl8723bs/core/rtw_ap.c:66: + /* DBG_871X("%s\n", __func__); */ -- WARNING: Unnecessary ftrace-like logging - prefer using ftrace 559: FILE:

[PATCH 03/15] staging: rtl8723bs: remove unnecessary logging in core/rtw_mlme_ext.c

2021-03-18 Thread Fabio Aiuto
fix the following checkpatch.pl issues: WARNING: Unnecessary ftrace-like logging - prefer using ftrace 987: FILE: drivers/staging/rtl8723bs/core/rtw_mlme_ext.c:987: + DBG_871X("%s\n", __func__); -- WARNING: Unnecessary ftrace-like logging - prefer using ftrace 1115: FILE:

[PATCH 04/15] staging: rtl8723bs: remove unnecessary logging in core/rtw_pwrctrl.c

2021-03-18 Thread Fabio Aiuto
fix the following checkpatch.pl issues: WARNING: Unnecessary ftrace-like logging - prefer using ftrace 185: FILE: drivers/staging/rtl8723bs/core/rtw_pwrctrl.c:185: + DBG_871X("==>%s\n", __func__); -- WARNING: Unnecessary ftrace-like logging - prefer using ftrace 606: FILE:

[PATCH 05/15] staging: rtl8723bs: remove unnecessary logging in core/rtw_wlan_util.c

2021-03-18 Thread Fabio Aiuto
fix the following checkpatch.pl issues: WARNING: Unnecessary ftrace-like logging - prefer using ftrace 1140: FILE: drivers/staging/rtl8723bs/core/rtw_wlan_util.c:1140: + DBG_871X("%s\n", __func__); Signed-off-by: Fabio Aiuto --- drivers/staging/rtl8723bs/core/rtw_wlan_util.c | 2 -- 1

[PATCH 06/15] staging: rtl8723bs: remove unnecessary logging in hal/HalBtcOutSrc.h

2021-03-18 Thread Fabio Aiuto
fix the following checkpatch.pl issues: WARNING: Unnecessary ftrace-like logging - prefer using ftrace 126: FILE: drivers/staging/rtl8723bs/hal/HalBtcOutSrc.h:126: + DbgPrint("%s(): ", __func__);\ and remove the whole unused containing macro BTC_PRINT_F Signed-off-by: Fabio Aiuto

[PATCH 11/15] staging: rtl8723bs: remove unnecessary logging in hal/rtl8723b_hal_init.c

2021-03-18 Thread Fabio Aiuto
fix the following checkpatch.pl issues: WARNING: Unnecessary ftrace-like logging - prefer using ftrace 1685: FILE: drivers/staging/rtl8723bs/hal/rtl8723b_hal_init.c:1685: +/* DBG_8192C("%s\n", __func__); */ -- WARNING: Unnecessary ftrace-like logging - prefer using ftrace 1722: FILE:

[PATCH 08/15] staging: rtl8723bs: remove unnecessary logging in hal/odm.c

2021-03-18 Thread Fabio Aiuto
fix the following checkpatch.pl issues: WARNING: Unnecessary ftrace-like logging - prefer using ftrace 1109: FILE: drivers/staging/rtl8723bs/hal/odm.c:1109: + /* printk("==> %s\n", __func__); */ Signed-off-by: Fabio Aiuto --- drivers/staging/rtl8723bs/hal/odm.c | 2 -- 1 file changed, 2

[PATCH 07/15] staging: rtl8723bs: remove unnecessary logging in hal/hal_com_phycfg.c

2021-03-18 Thread Fabio Aiuto
fix the following checkpatch.pl issues: WARNING: Unnecessary ftrace-like logging - prefer using ftrace 201: FILE: drivers/staging/rtl8723bs/hal/hal_com_phycfg.c:201: + /* DBG_871X("===>%s\n", __func__); */ -- WARNING: Unnecessary ftrace-like logging - prefer using ftrace 265: FILE:

[PATCH 10/15] staging: rtl8723bs: remove unnecessary logging in hal/rtl8723b_cmd.c

2021-03-18 Thread Fabio Aiuto
fix the following checkpatch.pl issues: WARNING: Unnecessary ftrace-like logging - prefer using ftrace 129: FILE: drivers/staging/rtl8723bs/hal/rtl8723b_cmd.c:129: + /* DBG_871X("%s\n", __func__); */ -- WARNING: Unnecessary ftrace-like logging - prefer using ftrace 222: FILE:

[PATCH 00/15] remove unnecessary logging

2021-03-18 Thread Fabio Aiuto
remove unnsecessary loggings warned by checkpatch Fabio Aiuto (15): staging: rtl8723bs: remove unnecessary logging in core/rtw_ap.c staging: rtl8723bs: remove unnecessary logging in core/rtw_mlme.c staging: rtl8723bs: remove unnecessary logging in core/rtw_mlme_ext.c staging: rtl8723bs:

RE: [PATCH v2] usb: typec: tcpm: Invoke power_supply_changed for tcpm-source-psy-

2021-03-18 Thread Adam Thomson
On 17 March 2021 18:13, Badhri Jagan Sridharan wrote: > tcpm-source-psy- does not invoke power_supply_changed API when > one of the published power supply properties is changed. > power_supply_changed needs to be called to notify > userspace clients(uevents) and kernel clients. > > Fixes:

[PATCH 09/15] staging: rtl8723bs: remove unnecessary logging in hal/odm_debug.h

2021-03-18 Thread Fabio Aiuto
fix the following checkpatch.pl issues: WARNING: Unnecessary ftrace-like logging - prefer using ftrace 134: FILE: drivers/staging/rtl8723bs/hal/odm_debug.h:134: +#define ODM_dbg_enter() { DbgPrint("==> %s\n", __func__); } -- WARNING: Unnecessary ftrace-like logging - prefer using ftrace 135:

Re: [PATCH v2] seq_file: Unconditionally use vmalloc for buffer

2021-03-18 Thread Kees Cook
On Thu, Mar 18, 2021 at 09:07:45AM +0100, Greg Kroah-Hartman wrote: > On Wed, Mar 17, 2021 at 02:30:47PM -0700, Kees Cook wrote: > > On Wed, Mar 17, 2021 at 04:38:57PM +0100, Greg Kroah-Hartman wrote: > > > On Wed, Mar 17, 2021 at 04:20:52PM +0100, Michal Hocko wrote: > > > > On Wed 17-03-21

[PATCH 4/7] USB: cdc-acm: drop redundant driver-data reset

2021-03-18 Thread Johan Hovold
There's no need to clear the interface driver data on failed probe (and driver core will clear it anyway). Signed-off-by: Johan Hovold --- drivers/usb/class/cdc-acm.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/usb/class/cdc-acm.c b/drivers/usb/class/cdc-acm.c index

[PATCH 0/7] USB: cdc-acm: probe fixes

2021-03-18 Thread Johan Hovold
This series fixes a couple of bugs in the probe errors paths and does some clean up in preparation for adding the missing error handling when claiming the data interface. The first two should probably go into 5.12-rc, while the rest could be held off for 5.13 if preferred. Johan Johan Hovold

[PATCH 6/7] USB: cdc-acm: use negation for NULL checks

2021-03-18 Thread Johan Hovold
Use negation consistently throughout the driver for NULL checks. Signed-off-by: Johan Hovold --- drivers/usb/class/cdc-acm.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/usb/class/cdc-acm.c b/drivers/usb/class/cdc-acm.c index e3c45f5880fc..6991ffd66c5d 100644

[PATCH 3/7] USB: cdc-acm: drop redundant driver-data assignment

2021-03-18 Thread Johan Hovold
The interface driver data has already been set by usb_driver_claim_interface() so drop the redundant subsequent assignment. Signed-off-by: Johan Hovold --- drivers/usb/class/cdc-acm.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/usb/class/cdc-acm.c b/drivers/usb/class/cdc-acm.c

[PATCH 2/7] USB: cdc-acm: fix use-after-free after probe failure

2021-03-18 Thread Johan Hovold
If tty-device registration fails the driver would fail to release the data interface. When the device is later disconnected, the disconnect callback would still be called for the data interface and would go about releasing already freed resources. Fixes: c93d81955005 ("usb: cdc-acm: fix error

[PATCH 1/7] USB: cdc-acm: fix double free on probe failure

2021-03-18 Thread Johan Hovold
If tty-device registration fails the driver copy of any Country Selection functional descriptor would end up being freed twice; first explicitly in the error path and then again in the tty-port destructor. Drop the first erroneous free that was left when fixing a tty-port resource leak. Fixes:

[PATCH 7/7] USB: cdc-acm: always claim data interface

2021-03-18 Thread Johan Hovold
Make sure to always claim the data interface and bail out if it's already bound to another driver or isn't authorised. Signed-off-by: Johan Hovold --- drivers/usb/class/cdc-acm.c | 7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/drivers/usb/class/cdc-acm.c

[PATCH 5/7] USB: cdc-acm: clean up probe error labels

2021-03-18 Thread Johan Hovold
Name the probe error labels after what they do rather than using sequence numbers which is harder to review and maintain (e.g. may require renaming unrelated labels when a label is added or removed). Signed-off-by: Johan Hovold --- drivers/usb/class/cdc-acm.c | 35

Re: [PATCH 2/3] virtiofs: split requests that exceed virtqueue size

2021-03-18 Thread Connor Kuehl
On 3/18/21 10:17 AM, Miklos Szeredi wrote: I removed the conditional compilation and renamed the limit. Also made virtio_fs_get_tree() bail out if it hit the WARN_ON(). Updated patch below. Thanks, Miklos. I think it looks better with those changes. The virtio_ring patch in this series

Re: [PATCH bpf-next v2] bpf: Simplify expression for identify bpf mem type

2021-03-18 Thread Daniel Borkmann
On 3/18/21 7:36 AM, Jianlin Lv wrote: Added BPF_LD_ST_SIZE_MASK macro as mask of size modifier that help to reduce the evaluation of expressions in if statements, and remove BPF_SIZE_MASK in netronome driver. Signed-off-by: Jianlin Lv --- v2: Move the bpf_LD_ST_SIZE_MASK macro definition to

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