Re: [PATCH 2/6] drm/xen-front: Fix misused IS_ERR_OR_NULL checks

2020-08-03 Thread Oleksandr Andrushchenko
On 8/4/20 9:12 AM, Jürgen Groß wrote: > On 31.07.20 14:51, Oleksandr Andrushchenko wrote: >> From: Oleksandr Andrushchenko >> >> The patch c575b7eeb89f: "drm/xen-front: Add support for Xen PV >> display frontend" from Apr 3, 2018, leads to the following static >> checker warning: >> >> driver

Re: [PATCH v2] drivers/net/wan/lapbether: Use needed_headroom instead of hard_header_len

2020-08-03 Thread Martin Schiller
On 2020-07-30 10:02, Xie He wrote: Hi Martin, I'm currently working on a plan to make all X.25 drivers (lapbether.c, x25_asy.c, hdlc_x25.c) to set dev->hard_header_len / dev->needed_headroom correctly. So that upper layers no longer need to guess how much headroom a X.25 device needs with a co

Re: [PATCH v10 4/8] usr: add support for zstd compressed initramfs

2020-08-03 Thread Geert Uytterhoeven
Hi Nick, On Thu, Jul 30, 2020 at 9:13 PM Nick Terrell wrote: > From: Nick Terrell > > * Add support for a zstd compressed initramfs. > * Add compression for compressing built-in initramfs with zstd. > > I have tested this patch by boot testing with buildroot and QEMU. > Specifically, I booted th

Re: [PATCH 5.7 000/120] 5.7.13-rc1 review

2020-08-03 Thread Greg Kroah-Hartman
On Mon, Aug 03, 2020 at 11:33:39PM -0700, Linus Torvalds wrote: > On Mon, Aug 3, 2020 at 10:59 PM Guenter Roeck wrote: > > > > Tested-by: Guenter Roeck > > Thanks. > > Greg, I updated my internal commit with Guenter's tested-by and some > more commentary (I had tried to break out that file enti

[PATCH v1] tcpm: Honour pSnkStdby requirement during negotiation

2020-08-03 Thread Badhri Jagan Sridharan
>From PD Spec: The Sink Shall transition to Sink Standby before a positive or negative voltage transition of VBUS. During Sink Standby the Sink Shall reduce its power draw to pSnkStdby. This allows the Source to manage the voltage transition as well as supply sufficient operating current to the Sin

Re: [GIT PULL][PATCH v10 0/8] Add support for ZSTD-compressed kernel and initramfs

2020-08-03 Thread Sedat Dilek
On Thu, Jul 30, 2020 at 9:11 PM Nick Terrell wrote: > > From: Nick Terrell > > Please pull from > > g...@github.com:terrelln/linux.git tags/v10-zstd > > to get these changes. Alternatively the patchset is included. > > Hi all, > > This patch set adds support for a ZSTD-compressed kernel, ramdis

Re: [PATCH v2 4/7] cpufreq: report whether cpufreq supports Frequency Invariance (FI)

2020-08-03 Thread Viresh Kumar
On 03-08-20, 16:24, Ionela Voinescu wrote: > Right, cpufreq_register_driver() should check that at least one of them > is present > (although currently cpufreq_register_driver() will return > -EINVAL if .fast_switch() alone is present - something to be fixed). I think it is fine as there is no gu

Re: [PATCH] memory: jz4780_nemc: Fix an error pointer vs NULL check in probe()

2020-08-03 Thread Krzysztof Kozlowski
On Mon, Aug 03, 2020 at 05:36:07PM +0300, Dan Carpenter wrote: > The devm_ioremap() function returns NULL on error, it doesn't return > error pointers. This bug could lead to an Oops during probe. > > Fixes: f046e4a3f0b9 ("memory: jz4780_nemc: Only request IO memory the driver > will use") > Sig

[PATCH 2/2] drm/msm/mdp5: Remove unused downstream bus scaling apis

2020-08-03 Thread Sai Prakash Ranjan
MSM bus scaling has moved on to use interconnect framework and downstream bus scaling apis are not present anymore. Remove them as they are nop anyways in the current code, no functional change. Signed-off-by: Sai Prakash Ranjan --- .../gpu/drm/msm/disp/mdp5/mdp5_cmd_encoder.c | 24 --- dri

[PATCH v3 3/3] clk: zynqmp: Use firmware specific mux clock flags

2020-08-03 Thread Amit Sunil Dhamne
From: Rajan Vaja Use ZynqMP specific mux clock flags instead of using CCF flags. Signed-off-by: Rajan Vaja Signed-off-by: Tejas Patel Signed-off-by: Amit Sunil Dhamne --- drivers/clk/zynqmp/clk-mux-zynqmp.c | 22 +- drivers/clk/zynqmp/clk-zynqmp.h | 8 2 fil

[PATCH v3 1/3] clk: zynqmp: Use firmware specific common clock flags

2020-08-03 Thread Amit Sunil Dhamne
From: Rajan Vaja Currently firmware passes CCF specific flags to ZynqMP clock driver. So firmware needs to be updated if CCF flags are changed. The firmware should have its own 'flag number space' that is distinct from the common clk framework's 'flag number space'. So define and use ZynqMP speci

[PATCH v3 0/3] clk: zynqmp: Add firmware specific clock flags

2020-08-03 Thread Amit Sunil Dhamne
Currently firmware is maintaining CCF specific flags and provides to CCF as it is. But CCF flag numbers may change and that shouldn't mean that the firmware needs to change. The firmware should have its own 'flag number space' that is distinct from the common clk framework's 'flag number space'. So

[PATCH 1/2] drm/msm/mdp4: Remove unused downstream bus scaling apis

2020-08-03 Thread Sai Prakash Ranjan
MSM bus scaling has moved on to use interconnect framework and downstream bus scaling apis are not present anymore. Remove them as they are nop anyways in the current code, no functional change. Signed-off-by: Sai Prakash Ranjan --- .../gpu/drm/msm/disp/mdp4/mdp4_dtv_encoder.c | 51

[PATCH v3 2/3] clk: zynqmp: Use firmware specific divider clock flags

2020-08-03 Thread Amit Sunil Dhamne
From: Rajan Vaja Use ZynqMP specific divider clock flags instead of using CCF flags. Signed-off-by: Rajan Vaja Signed-off-by: Tejas Patel Signed-off-by: Amit Sunil Dhamne --- drivers/clk/zynqmp/clk-zynqmp.h | 9 + drivers/clk/zynqmp/divider.c| 24 +++- 2 file

[PATCH 0/2] Remove unused downstream bus scaling apis

2020-08-03 Thread Sai Prakash Ranjan
MSM bus scaling has moved on to use interconnect framework and downstream bus scaling apis are not present anymore. Remove them as they are nop anyways in the current code, no functional change. Sai Prakash Ranjan (2): drm/msm/mdp4: Remove unused downstream bus scaling apis drm/msm/mdp5: Remov

Re: [PATCH] memory: samsung: exynos5422-dmc: propagate error from exynos5_counters_get()

2020-08-03 Thread Krzysztof Kozlowski
On Tue, Aug 04, 2020 at 08:12:10AM +0200, Marek Szyprowski wrote: > exynos5_counters_get() might fail with -EPROBE_DEFER if the driver for > devfreq event counter is not yet probed. Propagate that error value to > the caller to ensure that the exynos5422-dmc driver will be probed again > when devfr

Re: [PATCH] Platform lockdown information in SYSFS

2020-08-03 Thread Greg Kroah-Hartman
On Mon, Aug 03, 2020 at 07:04:56PM -0300, Daniel Gutson wrote: > > > > Think of this as an input device. You don't put the random input > > > > attributes all in one place, you create a new device that represents the > > > > input interface and register that. > > I'm having trouble with this. Wha

Re: [PATCH] eeprom: at25: allow page sizes greater than 16 bit

2020-08-03 Thread Christian Eggers
Ping? On Monday, 27 July 2020, 13:12:18 CEST, Christian Eggers wrote: > Storage technologies like FRAM have no "write pages", the whole chip can > be written within one SPI transfer. For these chips, the page size can > be set equal to the device size. Currently available devices are already > big

Re: [PATCH 2/6] drm/xen-front: Fix misused IS_ERR_OR_NULL checks

2020-08-03 Thread Jürgen Groß
On 04.08.20 08:35, Oleksandr Andrushchenko wrote: On 8/4/20 9:12 AM, Jürgen Groß wrote: On 31.07.20 14:51, Oleksandr Andrushchenko wrote: From: Oleksandr Andrushchenko The patch c575b7eeb89f: "drm/xen-front: Add support for Xen PV display frontend" from Apr 3, 2018, leads to the following st

RE: [EXT] Re: [PATCH v4 2/2] net: dsa: ocelot: Add support for QinQ Operation

2020-08-03 Thread Hongbo Wang
> > + if (vlan->proto == ETH_P_8021AD) { > > + ocelot->enable_qinq = true; > > + ocelot_port->qinq_mode = true; > > + } > ... > > + if (vlan->proto == ETH_P_8021AD) { > > + ocelot->enable_qinq = false; > > + ocelot_port->qinq_mode = false

[PATCH v2] dt-bindings: at25: convert the binding document to yaml

2020-08-03 Thread Christian Eggers
Convert the binding document for at25 EEPROMs from txt to yaml. Signed-off-by: Christian Eggers --- On Tuesday, 4 August 2020, 00:12:06 CEST, Rob Herring wrote: > On Sun, Aug 02, 2020 at 07:46:26PM +0200, Christian Eggers wrote: > > As there is virtually an infinite list of possible vendors and p

Re: [PATCH 5.7 000/120] 5.7.13-rc1 review

2020-08-03 Thread Linus Torvalds
On Mon, Aug 3, 2020 at 10:59 PM Guenter Roeck wrote: > > Tested-by: Guenter Roeck Thanks. Greg, I updated my internal commit with Guenter's tested-by and some more commentary (I had tried to break out that file entirely, it gets ugly). So it's now commit c0842fbc1b18 ("random32: move the pseud

[PATCH v3] coccinelle: api: add kvmalloc script

2020-08-03 Thread Denis Efremov
Suggest kvmalloc, kvfree instead of opencoded patterns. Signed-off-by: Denis Efremov --- Changes in v2: - binary operator cmp added - NULL comparisions simplified - "T x" case added to !patch mode Changes in v3: - kvfree rules added scripts/coccinelle/api/kvmalloc.cocci | 188 ++

Re: [GIT PULL] thermal for v5.9-rc1

2020-08-03 Thread Zhang Rui
Hi, Linus, On Mon, 2020-08-03 at 20:26 -0700, Linus Torvalds wrote: > On Mon, Aug 3, 2020 at 2:44 PM Daniel Lezcano < > daniel.lezc...@linaro.org> wrote: > > > > ssh://g...@gitolite.kernel.org/pub/scm/linux/kernel/git/thermal/linux.git > > tags/thermal-v5.9-rc1 > > This was all rebased just an

Re: [PATCH v2 3/7] arch_topology: disable frequency invariance for CONFIG_BL_SWITCHER

2020-08-03 Thread Viresh Kumar
On 30-07-20, 12:29, Dietmar Eggemann wrote: > On 30/07/2020 06:24, Viresh Kumar wrote: > > On 22-07-20, 10:37, Ionela Voinescu wrote: > >> +++ b/drivers/base/arch_topology.c > >> @@ -27,6 +27,7 @@ __weak bool arch_freq_counters_available(struct cpumask > >> *cpus) > >> } > >> DEFINE_PER_CPU(unsi

Re: [PATCH v2 2/7] cpufreq: set invariance scale factor on transition end

2020-08-03 Thread Viresh Kumar
On 03-08-20, 14:58, Ionela Voinescu wrote: > Hi Viresh, > > On Thursday 30 Jul 2020 at 09:43:34 (+0530), Viresh Kumar wrote: > > On 22-07-20, 10:37, Ionela Voinescu wrote: > > > While the move of the invariance setter calls (arch_set_freq_scale()) > > > from cpufreq drivers to cpufreq core maintai

Re: [PATCH v17 19/21] mm/vmscan: use relock for move_pages_to_lru

2020-08-03 Thread Alex Shi
在 2020/8/4 上午6:49, Alexander Duyck 写道: >> Cc: linux...@kvack.org > I am assuming this is only separate from patch 18 because of the fact > that it is from Hugh and not yourself. Otherwise I would recommend > folding this into patch 18. Yes, that's resaon for this patch keeps. > > Reviewed-by:

Re: [PATCH v17 20/21] mm/pgdat: remove pgdat lru_lock

2020-08-03 Thread Alex Shi
在 2020/8/4 上午6:45, Alexander Duyck 写道: > Just to correct a typo, I meant patch 17, not 18. in the comment below. > > > On Mon, Aug 3, 2020 at 3:42 PM Alexander Duyck > wrote: >> >> On Sat, Jul 25, 2020 at 6:00 AM Alex Shi wrote: >>> >>> Now pgdat.lru_lock was replaced by lruvec lock. It's no

RE: [PATCH] platform/x86:dell-laptop:Add battery charging thresholds and charging mode switch.

2020-08-03 Thread Yuan, Perry
> From: Andy Shevchenko > Sent: Wednesday, July 29, 2020 3:32 PM > To: Yuan, Perry > Cc: Sebastian Reichel; Matthew Garrett; Pali Rohár; Darren Hart; Andy > Shevchenko; Limonciello, Mario; Linux PM; Linux Kernel Mailing List; Platform > Driver > Subject: Re: [PATCH] platform/x86:dell-laptop:Add ba

Re: [PATCH v3] arm64: dts: qcom: Add support for Xiaomi Poco F1 (Beryllium)

2020-08-03 Thread Bjorn Andersson
On Sat 01 Aug 08:55 PDT 2020, Amit Pundir wrote: > Add initial dts support for Xiaomi Poco F1 (Beryllium). > > This initial support is based on upstream Dragonboard 845c > (sdm845) device. With this dts, Beryllium boots AOSP up to > ADB shell over USB-C. > > Supported functionality includes UFS,

RE: [PATCH 1/1] arm64: add support for PAGE_SIZE aligned kernel stack

2020-08-03 Thread Vaneet Narang
Hi Mark, >> currently THREAD_SIZE is always in power of 2, which will waste >> memory in cases there is need to increase of stack size. > >If you are seeing issues with the current stack size, can you please >explain that in more detail? Where are you seeing problems? Which >configuration options

Re: [PATCH v17 00/21] per memcg lru lock

2020-08-03 Thread Alex Shi
在 2020/8/3 下午11:07, Michal Hocko 写道: > On Thu 30-07-20 10:16:13, Alex Shi wrote: >> >> >> 在 2020/7/30 上午2:06, Hugh Dickins 写道: >>> On Wed, 29 Jul 2020, Alex Shi wrote: Is there any comments or suggestion for this patchset? Any hints will be very appreciated. >>> >>> Alex: it is no

Re: [PATCH RFC] mm: Add function for testing if the current lruvec lock is valid

2020-08-03 Thread Alex Shi
在 2020/8/3 上午2:20, Alexander Duyck 写道: > Feel free to fold it into your patches if you want. > > I think Hugh was the one that had submitted a patch that addressed it, > and it looks like you folded that into your v17 set. It was probably > what he had identified which was the additional LRU ch

Re: [PATCH 4/6] xen: Sync up with the canonical protocol definition in Xen

2020-08-03 Thread Jürgen Groß
On 31.07.20 14:51, Oleksandr Andrushchenko wrote: From: Oleksandr Andrushchenko This is the sync up with the canonical definition of the display protocol in Xen. 1. Add protocol version as an integer Version string, which is in fact an integer, is hard to handle in the code that supports diff

[PATCH] memory: samsung: exynos5422-dmc: propagate error from exynos5_counters_get()

2020-08-03 Thread Marek Szyprowski
exynos5_counters_get() might fail with -EPROBE_DEFER if the driver for devfreq event counter is not yet probed. Propagate that error value to the caller to ensure that the exynos5422-dmc driver will be probed again when devfreq event contuner is available. This fixes boot hang if both exynos5422-d

Re: [PATCH 2/6] drm/xen-front: Fix misused IS_ERR_OR_NULL checks

2020-08-03 Thread Jürgen Groß
On 31.07.20 14:51, Oleksandr Andrushchenko wrote: From: Oleksandr Andrushchenko The patch c575b7eeb89f: "drm/xen-front: Add support for Xen PV display frontend" from Apr 3, 2018, leads to the following static checker warning: drivers/gpu/drm/xen/xen_drm_front_gem.c:140 xen_drm_front_ge

Re: [PATCH 5.7 000/120] 5.7.13-rc1 review

2020-08-03 Thread Greg Kroah-Hartman
On Mon, Aug 03, 2020 at 10:58:55PM -0700, Guenter Roeck wrote: > On Mon, Aug 03, 2020 at 08:12:51PM -0700, Linus Torvalds wrote: > > On Mon, Aug 3, 2020 at 8:01 PM Guenter Roeck wrote: > > > > > > The bisect log below applies to both the sparc and the powerpc build > > > failures. > > > > Does th

Re: [RFC] saturate check_*_overflow() output?

2020-08-03 Thread Rasmus Villemoes
On 03/08/2020 20.29, Kees Cook wrote: > Hi, > > I wonder if we should explicitly saturate the output of the overflow > helpers as a side-effect of overflow detection? Please no. (That way the output > is never available with a "bad" value, if the caller fails to check the > result or forgets th

Re: [PATCH 1/6] xen/gntdev: Fix dmabuf import with non-zero sgt offset

2020-08-03 Thread Jürgen Groß
On 31.07.20 14:51, Oleksandr Andrushchenko wrote: From: Oleksandr Andrushchenko It is possible that the scatter-gather table during dmabuf import has non-zero offset of the data, but user-space doesn't expect that. Fix this by failing the import, so user-space doesn't access wrong data. Fixes:

[PATCH 1/2] KVM: LAPIC: Return 0 when getting the tscdeadline timer if the lapic is hw disabled

2020-08-03 Thread Wanpeng Li
From: Wanpeng Li Return 0 when getting the tscdeadline timer if the lapic is hw disabled Suggested-by: Paolo Bonzini Signed-off-by: Wanpeng Li --- arch/x86/kvm/lapic.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/x86/kvm/lapic.c b/arch/x86/kvm/lapic.c index cfb8504

[PATCH 2/2] KVM: LAPIC: Guarantee the timer is in tsc-deadline mode when setting

2020-08-03 Thread Wanpeng Li
From: Wanpeng Li Check apic_lvtt_tscdeadline() mode directly instead of apic_lvtt_oneshot() and apic_lvtt_period() to guarantee the timer is in tsc-deadline mode when wrmsr MSR_IA32_TSCDEADLINE. Signed-off-by: Wanpeng Li --- arch/x86/kvm/lapic.c | 4 ++-- 1 file changed, 2 insertions(+), 2 del

Re: [PATCH] phy: qcom-ufs: Fix wrong return value in ufs_qcom_phy_calibrate()

2020-08-03 Thread Bjorn Andersson
On Sun 02 Aug 04:15 PDT 2020, Tianjia Zhang wrote: > On an error exit path, a negative error code should be returned > instead of a positive return value. > > Fixes: adaafaa393ef1 ("phy: qcom-ufs: add support for QUALCOMM Technologies > UFS PHY drivers") > Cc: Yaniv Gardi > Signed-off-by: Tianj

Re: [PATCH v2 2/2] dma-pool: Only allocate from CMA when in same memory zone

2020-08-03 Thread Christoph Hellwig
On Mon, Aug 03, 2020 at 06:09:56PM +0200, Nicolas Saenz Julienne wrote: > + if (IS_ENABLED(CONFIG_ZONE_DMA) && (gfp & GFP_DMA)) > + return end <= DMA_BIT_MASK(zone_dma_bits); > + if (IS_ENABLED(CONFIG_ZONE_DMA32) && (gfp & GFP_DMA32)) > + return end <= DMA_BIT_MASK(3

Re: [PATCH v2 11/24] virtio_input: correct tags for config space fields

2020-08-03 Thread Gerd Hoffmann
On Mon, Aug 03, 2020 at 04:59:23PM -0400, Michael S. Tsirkin wrote: > Since this is a modern-only device, > tag config space fields as having little endian-ness. > > Signed-off-by: Michael S. Tsirkin > --- > include/uapi/linux/virtio_input.h | 18 +- > 1 file changed, 9 insertion

Re: [PATCH] MAINTAINERS: enlist Greg formally for console stuff

2020-08-03 Thread Bartlomiej Zolnierkiewicz
On 8/3/20 4:11 PM, Daniel Vetter wrote: > I did a few greps for main console data structures, and there's a few > places outside of drivers/video/console: > - a braille driver > - a sisusbvga driver > - fbcon, but I think that's fine if we leave that officially under > fbdev maintainership > -

RE: [PATCH] platform/x86:dell-laptop:Add battery charging thresholds and charging mode switch.

2020-08-03 Thread Yuan, Perry
> From: Matthew Garrett > Sent: Tuesday, August 4, 2020 1:54 PM > To: Yuan, Perry > Cc: kernel test robot; s...@kernel.org; p...@kernel.org; dvh...@infradead.org; > a...@infradead.org; Limonciello, Mario; kbuild-...@lists.01.org; linux- > p...@vger.kernel.org; linux-kernel@vger.kernel.org; platfor

Re: [PATCH v2 -next] media: staging: tegra-vde: Mark tegra_vde_runtime_suspend/resume as __maybe_unused

2020-08-03 Thread Dmitry Osipenko
04.08.2020 04:41, YueHaibing пишет: > If CONFIG_PM is not set, gcc warns: > > drivers/staging/media/tegra-vde/vde.c:916:12: > warning: 'tegra_vde_runtime_suspend' defined but not used [-Wunused-function] > > Make it __maybe_unused to fix this. > > Signed-off-by: YueHaibing > --- > v2: both sus

Re: [PATCH v8 06/10] media: tegra-video: Add support for external sensor capture

2020-08-03 Thread Dmitry Osipenko
03.08.2020 18:42, Sowjanya Komatineni пишет: > This patch adds support to capture from the external sensor > based on device graph in the device tree. > > Driver walks through the device graph to create media links > between the entities and registers and unregisters video devices > when the corre

Re: [PATCH 5.7 000/120] 5.7.13-rc1 review

2020-08-03 Thread Guenter Roeck
On Mon, Aug 03, 2020 at 08:12:51PM -0700, Linus Torvalds wrote: > On Mon, Aug 3, 2020 at 8:01 PM Guenter Roeck wrote: > > > > The bisect log below applies to both the sparc and the powerpc build > > failures. > > Does the attached fix it? > > Linus > From 780c8591bce09bbdd2908b

Re: [PATCH v3 00/11] fix swiotlb-xen for RPi4

2020-08-03 Thread Jürgen Groß
On 11.07.20 00:34, Stefano Stabellini wrote: Hi all, This series is a collection of fixes to get Linux running on the RPi4 as dom0. Conceptually there are only two significant changes: - make sure not to call virt_to_page on vmalloc virt addresses (patch #1) - use phys_to_dma and dma_to_phys

Re: [PATCH] platform/x86:dell-laptop:Add battery charging thresholds and charging mode switch.

2020-08-03 Thread Matthew Garrett
On Tue, Aug 04, 2020 at 05:46:30AM +, Yuan, Perry wrote: > It is not patch issue, the kernel config needs to add "CONFIG_ACPI_BATTERY=y" In that case you probably want to add a dependency to ACPI_BATTERY in the DELL_LAPTOP Kconfig. -- Matthew Garrett | mj...@srcf.ucam.org

Re: KASAN: use-after-free Read in hci_send_acl

2020-08-03 Thread syzbot
syzbot has bisected this issue to: commit 4ffcd582301bd020b1f9d00c55473af305ec19b5 Author: Michael Chan Date: Mon Sep 19 07:58:07 2016 + bnxt_en: Pad TX packets below 52 bytes. bisection log: https://syzkaller.appspot.com/x/bisect.txt?x=167b0f0490 start commit: ac3a0c84 Merge g

[PATCH v2] platform/mellanox: mlxbf-pmc: Add Mellanox BlueField PMC driver

2020-08-03 Thread Shravan Kumar Ramani
The performance modules in BlueField are present in several hardware blocks and each block provides access to these stats either through counters that can be programmed to monitor supported events or through memory-mapped registers that hold the relevant information. The hardware blocks that includ

drivers/mailbox/pcc.c:575:3-8: No need to set .owner here. The core will do it.

2020-08-03 Thread kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 09a0bd07764359650d41dbcb723f81321e523217 commit: 00d9990acb23c4319a1dc961d4e29a9213923b67 mailbox: pcc: make pcc_mbox_driver static date: 9 weeks ago config: x86_64-randconfig-c002-20200803 (attached as

Re: [PATCH net-next] ip_vti: Fix unused variable warning

2020-08-03 Thread Steffen Klassert
On Mon, Aug 03, 2020 at 03:13:49PM -0700, David Miller wrote: > From: YueHaibing > Date: Fri, 31 Jul 2020 14:49:52 +0800 > > > If CONFIG_INET_XFRM_TUNNEL is set but CONFIG_IPV6 is n, > > > > net/ipv4/ip_vti.c:493:27: warning: 'vti_ipip6_handler' defined but not used > > [-Wunused-variable] > >

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

2020-08-03 Thread Guennadi Liakhovetski
g.h: No > such file or directory >28 | #include > | ^~ > > Caused by commit > > bba6f4f52c31 ("rpmsg: move common structures and defines to headers") > > I have used the vhost tree from next-20200803 for today. Yes, I

Re: [PATCH v3] Provide USF for the portable equipment.

2020-08-03 Thread Viresh Kumar
On 03-08-20, 22:31, Dongdong Yang wrote: > From: Dongdong Yang > > This patch provides USF(User Sensitive Feedback factor) auxiliary > cpufreq governor to support high level layer sysfs inodes setting > for utils adjustment purpose from the identified scenario on portable > equipment. Because the

RE: [PATCH] platform/x86:dell-laptop:Add battery charging thresholds and charging mode switch.

2020-08-03 Thread Yuan, Perry
> From: kernel test robot > Sent: Saturday, August 1, 2020 1:08 PM > To: Yuan, Perry; s...@kernel.org; mj...@srcf.ucam.org; p...@kernel.org; > dvh...@infradead.org; a...@infradead.org; Limonciello, Mario > Cc: kbuild-...@lists.01.org; linux...@vger.kernel.org; linux- > ker...@vger.kernel.org; plat

[PATCH] PCI: imx6: Do not output error message when devm_clk_get() failed with -EPROBE_DEFER

2020-08-03 Thread Anson Huang
When devm_clk_get() returns -EPROBE_DEFER, i.MX6 PCI driver should NOT print error message, just return -EPROBE_DEFER is enough. Signed-off-by: Anson Huang --- drivers/pci/controller/dwc/pci-imx6.c | 30 -- 1 file changed, 20 insertions(+), 10 deletions(-) diff --git

Re: [PATCH 00/23] proc: Introduce /proc/namespaces/ directory to expose namespaces lineary

2020-08-03 Thread Andrei Vagin
On Thu, Jul 30, 2020 at 06:01:20PM +0300, Kirill Tkhai wrote: > On 30.07.2020 17:34, Eric W. Biederman wrote: > > Kirill Tkhai writes: > > > >> Currently, there is no a way to list or iterate all or subset of namespaces > >> in the system. Some namespaces are exposed in /proc/[pid]/ns/ directorie

Re: [PATCH] iio:temperature:mlx90632: Reduce number of equal calulcations

2020-08-03 Thread kernel test robot
Hi Crt, I love your patch! Yet something to improve: [auto build test ERROR on iio/togreg] [also build test ERROR on v5.8 next-20200803] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as documented in h

[PATCH] mailbox: pcc: fix platform_no_drv_owner.cocci warnings

2020-08-03 Thread kernel test robot
From: kernel test robot drivers/mailbox/pcc.c:575:3-8: No need to set .owner here. The core will do it. Remove .owner field if calls are used which set it automatically Generated by: scripts/coccinelle/api/platform_no_drv_owner.cocci Fixes: 00d9990acb23 ("mailbox: pcc: make pcc_mbox_driver st

Re: [PATCH v2] fbmem: pull fbcon_update_vcs() out of fb_set_var()

2020-08-03 Thread daniel
On Thu, Jul 30, 2020 at 07:47:14PM +0900, Tetsuo Handa wrote: > syzbot is reporting OOB read bug in vc_do_resize() [1] caused by memcpy() > based on outdated old_{rows,row_size} values, for resize_screen() can > recurse into vc_do_resize() which changes vc->vc_{cols,rows} that outdates > old_{rows,

Re: [PATCH 0/4] CPUFreq statistics retrieved by drivers

2020-08-03 Thread Viresh Kumar
On 30-07-20, 10:36, Lukasz Luba wrote: > On 7/30/20 10:10 AM, Sudeep Holla wrote: > > On Thu, Jul 30, 2020 at 02:23:33PM +0530, Viresh Kumar wrote: > > > On 29-07-20, 16:12, Lukasz Luba wrote: > > > > The existing CPUFreq framework does not tracks the statistics when the > > > > 'fast switch' is us

Re: [PATCH v3 10/11] xen/arm: introduce phys/dma translations in xen_dma_sync_for_*

2020-08-03 Thread Jürgen Groß
On 11.07.20 00:34, Stefano Stabellini wrote: From: Stefano Stabellini xen_dma_sync_for_cpu, xen_dma_sync_for_device, xen_arch_need_swiotlb are getting called passing dma addresses. On some platforms dma addresses could be different from physical addresses. Before doing any operations on these a

Re: [PATCH v3 08/11] swiotlb-xen: remove XEN_PFN_PHYS

2020-08-03 Thread Jürgen Groß
On 11.07.20 00:34, Stefano Stabellini wrote: From: Stefano Stabellini XEN_PFN_PHYS is only used in one place in swiotlb-xen making things more complex than need to be. Remove the definition of XEN_PFN_PHYS and open code the cast in the one place where it is needed. Signed-off-by: Stefano Stab

Re: [PATCH V3 vhost next 00/10] VDPA support for Mellanox ConnectX devices

2020-08-03 Thread Eli Cohen
On Mon, Aug 03, 2020 at 04:51:27PM -0400, Michael S. Tsirkin wrote: > On Tue, Jul 28, 2020 at 09:05:29AM +0300, Eli Cohen wrote: > > Hi Michael, > > please note that this series depends on mlx5 core device driver patches > > in mlx5-next branch in > > git://git.kernel.org/pub/scm/linux/kernel/git/m

Re: [PATCH v3 09/11] swiotlb-xen: introduce phys_to_dma/dma_to_phys translations

2020-08-03 Thread Jürgen Groß
On 11.07.20 00:34, Stefano Stabellini wrote: From: Stefano Stabellini With some devices physical addresses are different than dma addresses. To be able to deal with these cases, we need to call phys_to_dma on physical addresses (including machine addresses in Xen terminology) before returning t

Re: [PATCH V3 vhost next 00/10] VDPA support for Mellanox ConnectX devices

2020-08-03 Thread Eli Cohen
On Mon, Aug 03, 2020 at 04:34:50PM -0400, Michael S. Tsirkin wrote: > On Wed, Jul 29, 2020 at 08:54:52AM +0300, Eli Cohen wrote: > > On Tue, Jul 28, 2020 at 02:53:34PM +0800, Jason Wang wrote: > > > > > > Just notice Michael's vhost branch can not compile due to this commit: > > > > > > commit fe

Re: [PATCH v5 13/36] vmlinux.lds.h: add PGO and AutoFDO input sections

2020-08-03 Thread Fāng-ruì Sòng
On 2020-08-03, Andi Kleen wrote: Why is that? Both .text and .text.hot have alignment of 2^4 (default function alignment on x86) by default, so it doesn't seem like it should matter for packing density. Avoiding interspersing cold text among You may lose part of a cache line on each unit bound

Re: [PATCH V1 1/2] mmc: sdhci-pci-o2micro: Bug fix for O2 host controller Seabird1

2020-08-03 Thread Adrian Hunter
Sorry, I have been away for a while, but I will look at it shortly. On 3/08/20 10:23 pm, Shirley Her (SC) wrote: > Hi, Adrian: > > Do you have chance to review the patched code? > > Thanks, > Shirley > > > *From:* Shir

[RFC PATCH] dma-iommu: allow devices to set IOVA range dynamically

2020-08-03 Thread Ajay Kumar
Currently, there is no other option to change the lower limit of IOVA for any device than calling iova_init_domain(), but the said function will re-init whole domain and also doesn't track the previously allocated IOVA before re-initing the domain. There are cases where the device might not suppor

Re: [PATCH 1/2] cpufreq: tegra186: Fix initial frequency

2020-08-03 Thread Viresh Kumar
On 31-07-20, 13:14, Jon Hunter wrote: > I have been doing some more testing on Tegra, I noticed that when > reading the current CPU frequency via the sysfs scaling_cur_freq entry, > this always returns the cached value (at least for Tegra). Looking at > the implementation of scaling_cur_freq I see

[PATCH] RTC: Implement pretimeout watchdog for DS1307

2020-08-03 Thread Mark Tomlinson
If the hardware watchdog in the clock chip simply pulls the reset line of the CPU, then there is no chance to write a stack trace to help determine what may have been blocking the CPU. This patch adds a pretimeout to the watchdog, which, if enabled, sets a timer to go off before the hardware watch

linux-next: build failure after merge of the vhost tree

2020-08-03 Thread Stephen Rothwell
ommit bba6f4f52c31 ("rpmsg: move common structures and defines to headers") I have used the vhost tree from next-20200803 for today. -- Cheers, Stephen Rothwell pgp7ZJAeJ9Tw9.pgp Description: OpenPGP digital signature

Re: [v2,4/6] reset-controller: ti: introduce a new reset handler

2020-08-03 Thread Stanley Chu
On Mon, 2020-08-03 at 14:15 +0800, Crystal Guo wrote: > Add ti_syscon_reset() to integrate assert and deassert together. > If some modules need do serialized assert and deassert operations > to reset itself, reset_control_reset can be called for convenience. > > Change-Id: I9046992b115a46f3594de57

linux-next: manual merge of the vhost tree with the scsi tree

2020-08-03 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the vhost tree got a conflict in: drivers/scsi/virtio_scsi.c between commit: 92e8d0323a51 ("scsi: virtio_scsi: Remove unnecessary condition check") from the scsi tree and commit: 3dfd411ea7ec ("scsi: virtio_scsi: remove unnecessary condition check")

[PATCH 2/3] kexec: Improve the crash_exclude_mem_range() to handle the overlapping ranges

2020-08-03 Thread Lianbo Jiang
The crash_exclude_mem_range() can only handle one memory region one time. It will fail the case in which the passed in area covers several memory regions. In the case, it will only exclude the first region, then return, but leave the later regions unsolved. E.g in a NEC system with two usable RAM

[PATCH 3/3] kexec_file: correctly output debugging information for the PT_LOAD elf header

2020-08-03 Thread Lianbo Jiang
Currently, when we enable the debugging switch to debug kexec_file, always get the following wrong results: kexec_file: Crash PT_LOAD elf header. phdr=c988639b vaddr=0x0, paddr=0x0, sz=0x0 e_phnum=51 p_offset=0x0 kexec_file: Crash PT_LOAD elf header. phdr=3cca69a0 vaddr=0x0, padd

[PATCH 0/3] x86/kexec_file: Fix some corners bugs and improve the crash_exclude_mem_range()

2020-08-03 Thread Lianbo Jiang
This series includes the following patches, it fixes some corners bugs and improves the crash_exclude_mem_range(). [1] [PATCH 1/3] x86/crash: Correct the address boundary of function parameters [2] [PATCH 2/3] kexec: Improve the crash_exclude_mem_range() to handle the overlapping ranges [3

[PATCH 1/3] x86/crash: Correct the address boundary of function parameters

2020-08-03 Thread Lianbo Jiang
Let's carefully handle the boundary of the function parameter to make sure that the arguments passed doesn't exceed the address range. Signed-off-by: Lianbo Jiang --- arch/x86/kernel/crash.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/x86/kernel/crash.c b/arch/x86/ke

Re: [PATCH v3] cpufreq: CPPC: simply the code access 'highest_perf' value in cppc_perf_caps struct

2020-08-03 Thread Xin Hao
Thanks 在 2020/8/4 下午12:37, Viresh Kumar 写道: On 04-08-20, 10:37, Xin Hao wrote: Hi everyone: I want to know why my patch didn't merge into upstream ? I have sent a pull request earlier today to Rafael and this will get merged in the next pull request Rafael will send to Linus.

Re: [PATCH] crypto: ccp - zero the cmd data after use it

2020-08-03 Thread Liwei Song
On 8/4/20 12:22, Herbert Xu wrote: > On Tue, Aug 04, 2020 at 12:20:21PM +0800, Liwei Song wrote: >> >> Yes, the other process should do this zero work, but the case I met is >> this address will appear in the slab_alloc_node() as freelist pointer of >> slub, >> and before slub do zero wrok, eve

Re: [PATCH v5 13/36] vmlinux.lds.h: add PGO and AutoFDO input sections

2020-08-03 Thread Andi Kleen
> Why is that? Both .text and .text.hot have alignment of 2^4 (default > function alignment on x86) by default, so it doesn't seem like it should > matter for packing density. Avoiding interspersing cold text among You may lose part of a cache line on each unit boundary. Linux has a lot of units

Re: [PATCH v3] cpufreq: CPPC: simply the code access 'highest_perf' value in cppc_perf_caps struct

2020-08-03 Thread Viresh Kumar
On 04-08-20, 10:37, Xin Hao wrote: > Hi everyone: > > I want to know why my patch didn't merge into upstream ? I have sent a pull request earlier today to Rafael and this will get merged in the next pull request Rafael will send to Linus. -- viresh

wx

2020-08-03 Thread Gabriel Edgal
-- Dear friend do you receive my last message? write me back to my email let me know.

helo

2020-08-03 Thread Gabriel Edgal
-- Dear friend do you receive my last message? write me back to my email let me know.

RE: [PATCH v3 2/2] ASoC: Intel: Add period size constraint on strago board

2020-08-03 Thread Lu, Brent
> > For avoid further misunderstanding: it's fine that CRAS *uses* such a short > period. It's often required for achieving a short latency. > > However, the question is whether the driver can set *only* this value for > making it working. IOW, if we don't have this constraint, what actually >

[PATCH v2 3/6] arm64: tegra: Add missing timeout clock to Tegra210 SDMMC

2020-08-03 Thread Sowjanya Komatineni
commit 742af7e7a0a1 ("arm64: tegra: Add Tegra210 support") Tegra210 uses separate SDMMC_LEGACY_TM clock for data timeout and this clock is not enabled currently which is not recommended. Tegra SDMMC advertises 12Mhz as timeout clock frequency in host capability register. So, this clock should be

[PATCH v2 6/6] sdhci: tegra: Add missing TMCLK for data timeout

2020-08-03 Thread Sowjanya Komatineni
commit b5a84ecf025a ("mmc: tegra: Add Tegra210 support") Tegra210 and later has a separate sdmmc_legacy_tm (TMCLK) used by Tegra SDMMC hawdware for data timeout to achive better timeout than using SDCLK and using TMCLK is recommended. USE_TMCLK_FOR_DATA_TIMEOUT bit in Tegra SDMMC register SDHCI_T

[PATCH v2 2/6] sdhci: tegra: Remove SDHCI_QUIRK_DATA_TIMEOUT_USES_SDCLK for Tegra186

2020-08-03 Thread Sowjanya Komatineni
commit 4346b7c7941d ("mmc: tegra: Add Tegra186 support") SDHCI_QUIRK_DATA_TIMEOUT_USES_SDCLK is set for Tegra186 from the beginning of its support in driver. Tegra186 SDMMC hardware by default uses timeout clock (TMCLK) instead of SDCLK and this quirk should not be set. So, this patch remove thi

[PATCH v2 1/6] sdhci: tegra: Remove SDHCI_QUIRK_DATA_TIMEOUT_USES_SDCLK for Tegra210

2020-08-03 Thread Sowjanya Komatineni
commit b5a84ecf025a ("mmc: tegra: Add Tegra210 support") SDHCI_QUIRK_DATA_TIMEOUT_USES_SDCLK is set for Tegra210 from the beginning of Tegra210 support in the driver. Tegra210 SDMMC hardware by default uses timeout clock (TMCLK) instead of SDCLK and this quirk should not be set. So, this patch r

[PATCH v2 5/6] arm64: tegra: Add missing timeout clock to Tegra194 SDMMC nodes

2020-08-03 Thread Sowjanya Komatineni
commit 5425fb15d8ee ("arm64: tegra: Add Tegra194 chip device tree") Tegra194 uses separate SDMMC_LEGACY_TM clock for data timeout and this clock is not enabled currently which is not recommended. Tegra194 SDMMC advertises 12Mhz as timeout clock frequency in host capability register. So, this clo

[PATCH v2 4/6] arm64: tegra: Add missing timeout clock to Tegra186 SDMMC nodes

2020-08-03 Thread Sowjanya Komatineni
commit 39cb62cb8973 ("arm64: tegra: Add Tegra186 support") Tegra186 uses separate SDMMC_LEGACY_TM clock for data timeout and this clock is not enabled currently which is not recommended. Tegra186 SDMMC advertises 12Mhz as timeout clock frequency in host capability register and uses it by default.

[PATCH v2 0/6] Fix timeout clock used by hardware data timeout

2020-08-03 Thread Sowjanya Komatineni
Tegra210/Tegra186/Tegra194 has incorrectly enabled SDHCI_QUIRK_DATA_TIMEOUT_USES_SDCLK from the beginning of their support. Tegra210 and later SDMMC hardware default uses sdmmc_legacy_tm (TMCLK) all the time for hardware data timeout instead of SDCLK and this TMCLK need to be kept enabled by Tegra

[PATCH 2/6] openrisc: uaccess: Fix sparse address space warnings

2020-08-03 Thread Stafford Horne
The OpenRISC user access functions put_user(), get_user() and clear_user() were missing proper sparse annotations. This generated warnings like the below. This patch adds the annotations to fix the warnings. Example warnings: net/ipv4/ip_sockglue.c:759:29: warning: incorrect type in argument 1

[PATCH 0/6] OpenRISC header and sparse warning fixes for 5.9

2020-08-03 Thread Stafford Horne
Hello, This a series of fixes for OpenRISC sparse warnings. The kbuild robots report many issues related to issues with OpenRISC headers having missing or incorrect sparse annotations. Example kdbuild-all report: net/ipv4/ip_sockglue.c:1489:13: sparse: sparse: incorrect type in initializer (

[PATCH 5/6] openrisc: signal: Fix sparse address space warnings

2020-08-03 Thread Stafford Horne
The __user annotations in signal.c were mostly missing. The missing annotations caused the warnings listed below. This patch fixes them up by adding the __user annotations. arch/openrisc/kernel/signal.c:71:38: warning: incorrect type in initializer (different address spaces) arch/openrisc/kerne

[PATCH 6/6] openrisc: uaccess: Add user address space check to access_ok

2020-08-03 Thread Stafford Horne
Now that __user annotations are fixed for openrisc uaccess api's we can add checking to the access_ok macro. This patch adds the __chk_user_ptr check, on normal builds the added check is a nop. Signed-off-by: Stafford Horne --- arch/openrisc/include/asm/uaccess.h | 3 ++- 1 file changed, 2 inse

[PATCH 3/6] openrisc: uaccess: Use static inline function in access_ok

2020-08-03 Thread Stafford Horne
As suggested by Linus when reviewing commit 9cb2feb4d21d ("arch/openrisc: Fix issues with access_ok()") last year; making __range_ok an inline function also fixes the used twice issue that the commit was fixing. I agree it's a good cleanup. This patch addresses that as I am currently working on t

  1   2   3   4   5   6   7   8   9   10   >