[PATCH v2 1/6] mm/page_isolation: don't dump_page(NULL) in set_migratetype_isolate()

2020-07-30 Thread David Hildenbrand
Right now, if we have two isolations racing, we might trigger the WARN_ON_ONCE() and to dump_page(NULL), dereferencing NULL. Let's just return directly. In the future, we might want to report -EAGAIN to the caller instead, as this could indicate a temporary isolation failure only. Reviewed-by: Ba

[PATCH v2 6/6] mm: document semantics of ZONE_MOVABLE

2020-07-30 Thread David Hildenbrand
Let's document what ZONE_MOVABLE means, how it's used, and which special cases we have regarding unmovable pages (memory offlining vs. migration / allocations). Cc: Andrew Morton Cc: Michal Hocko Cc: Michael S. Tsirkin Cc: Mike Kravetz Cc: Mike Rapoport Cc: Pankaj Gupta Cc: Baoquan He Signe

[PATCH v2 5/6] virtio-mem: don't special-case ZONE_MOVABLE

2020-07-30 Thread David Hildenbrand
Let's allow to online partially plugged memory blocks to ZONE_MOVABLE and also consider memory blocks that were onlined to ZONE_MOVABLE when unplugging memory. While unplugged memory blocks are, in general, unmovable, they can be skipped when offlining memory. virtio-mem only unplugs fairly big ch

[PATCH v2 0/6] mm / virtio-mem: support ZONE_MOVABLE

2020-07-30 Thread David Hildenbrand
@Andrew, @Mst, I suggest the whole series (including the virtio-mem change) goes via the -mm tree. Currently, virtio-mem does not really support ZONE_MOVABLE. While it allows to online fully plugged memory blocks to ZONE_MOVABLE, it does not allow to online partially-plugged memory blocks to ZONE_

[PATCH v2 2/6] mm/page_alloc: tweak comments in has_unmovable_pages()

2020-07-30 Thread David Hildenbrand
Let's move the split comment regarding bootmem allocations and memory holes, especially in the context of ZONE_MOVABLE, to the PageReserved() check. Reviewed-by: Baoquan He Cc: Andrew Morton Cc: Michal Hocko Cc: Michael S. Tsirkin Cc: Mike Kravetz Cc: Pankaj Gupta Signed-off-by: David Hilden

[PATCH v2 3/6] mm/page_isolation: drop WARN_ON_ONCE() in set_migratetype_isolate()

2020-07-30 Thread David Hildenbrand
Inside has_unmovable_pages(), we have a comment describing how unmovable data could end up in ZONE_MOVABLE - via "movable_core". Also, besides checking if the first page in the pageblock is reserved, we don't perform any further checks in case of ZONE_MOVABLE. In case of memory offlining, we set R

[PATCH v2 4/6] mm/page_isolation: cleanup set_migratetype_isolate()

2020-07-30 Thread David Hildenbrand
Let's clean it up a bit, simplifying error handling and getting rid of the label. Reviewed-by: Baoquan He Reviewed-by: Pankaj Gupta Cc: Andrew Morton Cc: Michal Hocko Cc: Michael S. Tsirkin Cc: Mike Kravetz Signed-off-by: David Hildenbrand --- mm/page_isolation.c | 17 +++-- 1

RE: [PATCH v3 4/4] vfio/type1: Use iommu_aux_at(de)tach_group() APIs

2020-07-30 Thread Liu, Yi L
> From: Lu Baolu > Sent: Tuesday, July 14, 2020 1:57 PM > > Replace iommu_aux_at(de)tach_device() with iommu_aux_at(de)tach_group(). > It also saves the IOMMU_DEV_FEAT_AUX-capable physcail device in the vfio_group > data structure so that it could be reused in other places. > > Signed-off-by: Lu

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

2020-07-30 Thread Lukasz Luba
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 used or when firmware changes the frequency independently due

Re: [PATCH 11/17] clk: imx: Add blk_ctrl combo driver

2020-07-30 Thread Philipp Zabel
On Thu, 2020-07-30 at 11:55 +0300, Abel Vesa wrote: > On 20-07-29 14:46:28, Philipp Zabel wrote: > > Hi Abel, > > > > On Wed, 2020-07-29 at 15:07 +0300, Abel Vesa wrote: > > > On i.MX8MP, there is a new type of IP which is called BLK_CTRL in > > [...] > > > > + > > > +static int imx_blk_ctrl_res

[PATCH] bus: fsl-mc: add missing __iomem attribute

2020-07-30 Thread Laurentiu Tudor
This pointer to an i/o register block is missing the __iomem attribute, so add it. The issue was found with sparse. Reported-by: kernel test robot Signed-off-by: Laurentiu Tudor --- drivers/bus/fsl-mc/fsl-mc-bus.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/bus/f

[PATCH v3 0/4] Remove dependency of check subcmd upon orc

2020-07-30 Thread Julien Thierry
Hi, Matt Helsley's change[1] provided a base framework to opt-in/out objtool subcommands at compile time. This makes it easier for architectures to port objtool, one subcommand at a time. Orc generation relies on the check operation implementation. However, the way this is done causes the check i

[PATCH v3 1/4] objtool: Move object file loading out of check

2020-07-30 Thread Julien Thierry
Structure objtool_file can be used by different subcommands. In fact it already is, by check and orc. Provide a function that allows to initialize objtool_file, that builtin can call, without relying on check to do the correct setup for them and explicitly hand the objtool_file to them. Reviewed-

[PATCH v3 2/4] objtool: Move orc outside of check

2020-07-30 Thread Julien Thierry
Now that the objtool_file can be obtained outside of the check function, orc generation builtin no longer requires check to explicitly call its orc related functions. Signed-off-by: Julien Thierry --- tools/objtool/builtin-check.c | 2 +- tools/objtool/builtin-orc.c | 21 -

[PATCH v3 4/4] objtool: orc_gen: Move orc_entry out of instruction structure

2020-07-30 Thread Julien Thierry
One orc_entry is associated with each instruction in the object file, but having the orc_entry contained by the instruction structure forces architectures not implementing the orc subcommands to provide a dummy definition of the orc_entry. Avoid that by having orc_entries in a separate list, part

[PATCH v3 3/4] objtool: orc: Skip setting orc_entry for non-text sections

2020-07-30 Thread Julien Thierry
Orc generation is only done for text sections, but some instructions can be found in non-text sections (e.g. .discard.text sections). Skip setting their orc sections since their whole sections will be skipped for orc generation. Reviewed-by: Miroslav Benes Signed-off-by: Julien Thierry --- too

[PATCH] KVM: arm: Add trace name for ARM_NISV

2020-07-30 Thread Alexander Graf
Commit c726200dd106d ("KVM: arm/arm64: Allow reporting non-ISV data aborts to userspace") introduced a mechanism to deflect MMIO traffic the kernel can not handle to user space. For that, it introduced a new exit reason. However, it did not update the trace point array that gives human readable na

[PATCH v2 1/9] objtool: Group headers to check in a single list

2020-07-30 Thread Julien Thierry
In order to support multiple architectures and potentially different sets of header to compare against their kernel equivalent, it is simpler to have all headers to check in a single list. Reviewed-by: Miroslav Benes Signed-off-by: Julien Thierry --- tools/objtool/sync-check.sh | 21 +++

[PATCH v2 2/9] objtool: Make sync-check consider the target architecture

2020-07-30 Thread Julien Thierry
Do not take into account outdated headers unrelated to the build of the current architecture. Reviewed-by: Miroslav Benes Signed-off-by: Julien Thierry --- tools/objtool/Makefile | 2 +- tools/objtool/sync-check.sh | 4 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/too

[PATCH v2 4/9] objtool: Abstract alternative special case handling

2020-07-30 Thread Julien Thierry
Some alternatives associated with a specific feature need to be treated in a special way. Since the features and how to treat them vary from one architecture to another, move the special case handling to arch specific code. Reviewed-by: Miroslav Benes Signed-off-by: Julien Thierry --- tools/obj

[PATCH v2 5/9] objtool: Make relocation in alternative handling arch dependent

2020-07-30 Thread Julien Thierry
As pointed out by the comment in handle_group_alt(), support of relocation for instructions in an alternative group depends on whether arch specific kernel code handles it. So, let objtool arch specific code decide whether a relocation for the alternative section should be accepted. Reviewed-by:

[PATCH v2 3/9] objtool: Move macros describing structures to arch-dependent code

2020-07-30 Thread Julien Thierry
Some macros are defined to describe the size and layout of structures exception_table_entry, jump_entry and alt_instr. These values can vary from one architecture to another. Have the values be defined by arch specific code. Suggested-by: Raphael Gault Reviewed-by: Miroslav Benes Signed-off-by:

[PATCH v2 9/9] objtool: Abstract unwind hint reading

2020-07-30 Thread Julien Thierry
The type of unwind hints and the semantics associated with them depend on the architecture. Let arch specific code convert unwind hints into objtool stack state descriptions. Signed-off-by: Julien Thierry --- tools/objtool/arch.h| 5 +-- tools/objtool/arch/x86/decode.c | 54

[PATCH v2 8/9] frame: Make unwind hints definitions available to other architectures

2020-07-30 Thread Julien Thierry
Unwind hints are useful to provide objtool with information about stack states in non-standard functions/code. While the type of information being provided might be very arch specific, the mechanism to provide the information can be useful for other architectures. Move the relevant unwint hint def

[PATCH v2 6/9] objtool: Refactor switch-tables code to support other architectures

2020-07-30 Thread Julien Thierry
From: Raphael Gault The way to identify switch-tables and retrieves all the data necessary to handle the different execution branches is not the same on all architecture. In order to be able to add other architecture support, define an arch-dependent function to process jump-tables. Reviewed-by:

[PATCH v2 7/9] frame: Only include valid definitions depending on source file type

2020-07-30 Thread Julien Thierry
Header include/linux/frame.h contains both C and assembly definition that are visible regardless of the file including them. Place definition under conditional __ASSEMBLY__. Signed-off-by: Julien Thierry --- include/linux/frame.h | 6 ++ 1 file changed, 6 insertions(+) diff --git a/include

[PATCH v2 0/9] Make check implementation arch agnostic

2020-07-30 Thread Julien Thierry
Hi, The current implementation of the check subcommand has various x86 bits here and there. In order to prepare objtool to provide check for other architectures, add some abstraction over the x86 specific bits, relying on objtool arch specific code to provide some necessary operations. This is pa

Re: [PATCH] Revert "Bluetooth: btusb: Disable runtime suspend on Realtek devices"

2020-07-30 Thread Kai-Heng Feng
> On Jul 30, 2020, at 15:30, Marcel Holtmann wrote: > > Hi Kai-Heng, > >>> On Jul 30, 2020, at 07:17, Abhishek Pandit-Subedi >>> wrote: >>> >>> This reverts commit 7ecacafc240638148567742cca41aa7144b4fe1e. >>> >>> Testing this change on a board with RTL8822CE, I found that enabling >>> au

Re: [PATCH 1/1] x86/tsr: Fix tsc frequency enumeration failure on lightning mountain SoC

2020-07-30 Thread Dilip Kota
On 7/30/2020 3:57 PM, Andy Shevchenko wrote: While at this, can you confirm (with maybe good description and documentation reference) that the numbers in that array are all correct? Sure, i will add the description. Regards, Dilip

[PATCH v2] ASoC: fsl-asoc-card: Remove fsl_asoc_card_set_bias_level function

2020-07-30 Thread Shengjiu Wang
With this case: aplay -Dhw:x 16khz.wav 24khz.wav There is sound distortion for 24khz.wav. The reason is that setting PLL of WM8962 with set_bias_level function, the bias level is not changed when 24khz.wav is played, then the PLL won't be reset, the clock is not correct, so distortion happens. The

[PATCH v5 0/3] Venus dynamic debug

2020-07-30 Thread Stanimir Varbanov
Hello, Changes in v5: * 1/3 - dropped dev_warn when set FW debug level - Greg KH * 3/3 - dropped pr_debug, and now group levels by prefix in dev_dbg v4 can be fount at [1]. regards, Stan [1] https://www.spinics.net/lists/kernel/msg3550106.html Stanimir Varbanov (3): venus: Add debugfs inte

[PATCH v5 2/3] venus: Add a debugfs file for SSR trigger

2020-07-30 Thread Stanimir Varbanov
The SSR (SubSystem Restart) is used to simulate an error on FW side of Venus. We support following type of triggers - fatal error, div by zero and watchdog IRQ. Signed-off-by: Stanimir Varbanov --- drivers/media/platform/qcom/venus/dbgfs.c | 30 +++ 1 file changed, 30 inserti

[PATCH v5 3/3] venus: Make debug infrastructure more flexible

2020-07-30 Thread Stanimir Varbanov
Here we introduce debug prefixes for dev_dbg groups by level of importance - Venus{Low,Med,High,FW} Enabling the particular level will be done by dynamic debug. For example to enable debug messages with low level: echo 'format "VenusLow" +p' > debugfs/dynamic_debug/control If you want to enable a

[PATCH v5 1/3] venus: Add debugfs interface to set firmware log level

2020-07-30 Thread Stanimir Varbanov
This will be useful when debugging specific issues related to firmware HFI interface. Signed-off-by: Stanimir Varbanov --- drivers/media/platform/qcom/venus/Makefile| 2 +- drivers/media/platform/qcom/venus/core.c | 3 +++ drivers/media/platform/qcom/venus/core.h | 3 +++ driver

Re: [PATCH] Revert "Bluetooth: btusb: Disable runtime suspend on Realtek devices"

2020-07-30 Thread Marcel Holtmann
Hi Abhishek, > This reverts commit 7ecacafc240638148567742cca41aa7144b4fe1e. > > Testing this change on a board with RTL8822CE, I found that enabling > autosuspend has no effect on the stability of the system. The board > continued working after autosuspend, suspend and reboot. > > The original

Re: [PATCH 2/3] driver core: Use rwsem for kill_device() serialization

2020-07-30 Thread Lukas Wunner
On Thu, Jul 30, 2020 at 08:53:26AM +0200, Greg Kroah-Hartman wrote: > On Wed, Jul 08, 2020 at 03:27:02PM +0200, Lukas Wunner wrote: > > kill_device() is currently serialized with driver probing by way of the > > device_lock(). We're about to serialize it with device_add() as well > > to prevent ad

Re: [PATCH v3 2/4] objtool: Move orc outside of check

2020-07-30 Thread peterz
On Thu, Jul 30, 2020 at 10:41:41AM +0100, Julien Thierry wrote: > + if (file->elf->changed) > + return elf_write(file->elf); > + else > + return 0; > } I think we can do without that else :-)

[PATCH v2 1/1] x86/tsr: Fix tsc frequency enumeration failure on Lightning Mountain SoC

2020-07-30 Thread Dilip Kota
Frequency descriptor of Lightning Mountain SoC doesn't have all the frequency entries so resulting in the below failure causing kernel hang. [0.00] Error MSR_FSB_FREQ index 15 is unknown [0.00] tsc: Fast TSC calibration failed So, add all the frequency entries in the Lightning Mou

drivers/net/hamradio/yam.c:293:9: sparse: sparse: cast removes address space '__iomem' of expression

2020-07-30 Thread kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 83bdc7275e6206f560d247be856bceba3e1ed8f2 commit: 670d0a4b10704667765f7d18f7592993d02783aa sparse: use identifiers to define address spaces date: 6 weeks ago config: riscv-randconfig-s031-20200730

Re: [PATCH v3 4/4] objtool: orc_gen: Move orc_entry out of instruction structure

2020-07-30 Thread peterz
On Thu, Jul 30, 2020 at 10:41:43AM +0100, Julien Thierry wrote: > One orc_entry is associated with each instruction in the object file, > but having the orc_entry contained by the instruction structure forces > architectures not implementing the orc subcommands to provide a dummy > definition of th

Re: [PATCH -next] tools build: Check return value of fwrite_unlocked in jvmti_agent.c

2020-07-30 Thread Arnaldo Carvalho de Melo
Em Wed, Jul 29, 2020 at 04:47:36PM -0700, Ian Rogers escreveu: > On Fri, Jul 24, 2020 at 3:07 AM Wang ShaoBo > wrote: > > > > Function jvmti_write_code called by compiled_method_load_cb may return > > error in using fwrite_unlocked, this failure should be captured and > > warned. > > > > Signed-o

[perf] Explicitly use python[3]-[config]

2020-07-30 Thread Sedat Dilek
Hi, I wanted to have some detailed numbers for building a Linux-kernel with GNU-eco-system means GNU/gcc-10 and GNU/binutils-2,35 VS. LLVM/Clang with its utils version 11.0.0-rc1. Arnd recommended me to use "perf stat make ...". First, I tried to build it out of tools/perf from linux.git: MAKE_

Re: [PATCH RFC] x86/bus_lock: Enable bus lock detection

2020-07-30 Thread Thomas Gleixner
pet...@infradead.org writes: > On Wed, Jul 29, 2020 at 08:40:57PM +, Fenghua Yu wrote: >> Can we disable Bus Lock Detection before handle it and re-enable it >> after handle it? Will that resolve the recursion issue? > > Because WRMSR is cheap, right? > > You have to unconditionally {dis,en}abl

[PATCH v3] mm/slab.c: add node spinlock protect in __cache_free_alien

2020-07-30 Thread qiang.zhang
From: Zhang Qiang for example: node0 cpu0cpu1 slab_dead_cpu >mutex_lock(&slab_mutex) >cpuup_canceledslab_dead_cpu >mask = cpumask_of_node(node) >mutex_lock(

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

2020-07-30 Thread Catalin Marinas
On Thu, Jul 30, 2020 at 10:59:09AM +0100, Marc Zyngier wrote: > From 33d819f4efa0a4474b5dc2e4bcaef1b886ca30c3 Mon Sep 17 00:00:00 2001 > From: Marc Zyngier > Date: Thu, 30 Jul 2020 10:53:05 +0100 > Subject: [PATCH] arm64: Drop unnecessary include from asm/smp.h > > asm/pointer_auth.h is not neede

Re: [PATCH] drm/vkms: add missing drm_crtc_vblank_put to the get/put pair on flush

2020-07-30 Thread Melissa Wen
On 07/29, Daniel Vetter wrote: > On Wed, Jul 29, 2020 at 9:09 PM Melissa Wen wrote: > > > > Melissa Wen > > > > On Sat, Jul 25, 2020 at 3:12 PM Daniel Vetter wrote: > > > > > > On Sat, Jul 25, 2020 at 7:45 PM Melissa Wen wrote: > > > > > > > > On 07/25, Daniel Vetter wrote: > > > > > On Sat, Jul

Re: [PATCH net] qtnfmac: Missing platform_device_unregister() on error in qtnf_core_mac_alloc()

2020-07-30 Thread Sergey Matyukevich
> Add the missing platform_device_unregister() before return from > qtnf_core_mac_alloc() in the error handling case. > > Fixes: 616f5701f4ab ("qtnfmac: assign each wiphy to its own virtual platform > device") > Reported-by: Hulk Robot > Signed-off-by: Wang Hai > --- > drivers/net/wireless/qua

Re: ARM: static kernel in vmalloc space

2020-07-30 Thread Arnd Bergmann
On Thu, Jul 30, 2020 at 11:33 AM Linus Walleij wrote: > On Fri, May 15, 2020 at 5:41 PM Arnd Bergmann wrote: > > [Russell] > > > There are some aliasing VIPT implementations on ARMv6, but I don't > > > remember how common. > > > > I thought it was only realview-pb and omap2, but it seems there >

Re: [PATCH v2 2/2] iio: light: as73211: New driver

2020-07-30 Thread Christian Eggers
Hi Andy, thanks for the extensive review. Almost all of you comments will be integrated into v3. On Tuesday, 28 July 2020, 20:00:31 CEST, Andy Shevchenko wrote: > On Tue, Jul 28, 2020 at 9:32 AM Christian Eggers wrote: > > + if (data->client->irq) > > + init_completion(&da

[PATCH v2] scsi: stex: use generic power management

2020-07-30 Thread Vaibhav Gupta
Drivers using legacy power management .suspen()/.resume() callbacks have to manage PCI states and device's PM states themselves. They also need to take care of standard configuration registers. Switch to generic power management framework using a single "struct dev_pm_ops" variable to take the unn

Re: [PATCH v2 2/2] iio: light: as73211: New driver

2020-07-30 Thread Christian Eggers
Hi Jonathan. got your review nearly simultaneous with Andy's. There are many overlaps between both. Most is already integrated, below I left only the open points. On Tuesday, 28 July 2020, 20:01:14 CEST, Jonathan Cameron wrote: > Hi Christian, > > I took a fairly quick look. Not divided into the

[v3,4/5] dt-binding: mt8192: add toprgu reset-controller head file

2020-07-30 Thread Crystal Guo
add toprgu reset-controller head file for MT8192 platform Signed-off-by: Crystal Guo Reviewed-by: Matthias Brugger --- .../dt-bindings/reset-controller/mt8192-resets.h | 30 ++ 1 file changed, 30 insertions(+) create mode 100644 include/dt-bindings/reset-controller/mt8192

[v3,1/5] dt-binding: mediatek: watchdog: fix the description of compatible

2020-07-30 Thread Crystal Guo
Besides watchdog, mt2712 and nt8183 also provide sub-system software reset features. But mt6589 not support this feature Signed-off-by: Crystal Guo --- Documentation/devicetree/bindings/watchdog/mtk-wdt.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Documentation/dev

add watchdog support for mt8192

2020-07-30 Thread Crystal Guo
v3 changes: 1.separate fixing compatibles description and adding new board with two patches. 2.update mt8183 DTSI for sync with the binding, while mt2712 DTSI has no watchdog node, thus not update it together. v2 changes: https://patchwork.kernel.org/patch/11690729/ https://patchwork.kernel.org/

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

2020-07-30 Thread hongbo . wang
From: "hongbo.wang" This featue can be test using network test tools TX-tool -> swp0 -> swp1 -> RX-tool TX-tool simulates Customer that will send and receive packets with single VLAN tag(CTAG), RX-tool simulates Service-Provider that will send and receive packets with double VLAN ta

[PATCH v4 1/2] net: dsa: Add protocol support for 802.1AD when adding or deleting vlan for dsa switch port

2020-07-30 Thread hongbo . wang
From: "hongbo.wang" the following command will be supported: Set bridge's vlan protocol: ip link set br0 type bridge vlan_protocol 802.1ad Add VLAN: ip link add link swp1 name swp1.100 type vlan protocol 802.1ad id 100 Delete VLAN: ip link del link swp1 name swp1.100 Signed-off-by:

[v3,3/5] dt-binding: mediatek: mt8192: update mtk-wdt document

2020-07-30 Thread Crystal Guo
update mtk-wdt document for MT8192 platform Signed-off-by: Crystal Guo --- Documentation/devicetree/bindings/watchdog/mtk-wdt.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/watchdog/mtk-wdt.txt b/Documentation/devicetree/bindings/watchdog/mtk-wdt.txt i

[v3,5/5] watchdog: mt8192: add wdt support

2020-07-30 Thread Crystal Guo
Add support for watchdog device found in MT8192 SoC Signed-off-by: Crystal Guo Reviewed-by: Matthias Brugger --- drivers/watchdog/mtk_wdt.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/drivers/watchdog/mtk_wdt.c b/drivers/watchdog/mtk_wdt.c index d6a6393..aef0c2d 100644 --- a/drive

[PATCH] ARM: dts: imx6dl-yapp4: Add ethernet aliases

2020-07-30 Thread Michal Vokáč
Add aliases for ethernet switch ports to allow bootloader to fix MAC addresses to the ones stored in onboard configuration EEPROM. Ursa has only one ethernet port populated (eth2) so alias for the first port has to be removed on this board. Signed-off-by: Michal Vokáč --- arch/arm/boot/dts/imx6

[PATCH v4 0/2] Add 802.1AD protocol support for dsa switch and ocelot driver

2020-07-30 Thread hongbo . wang
From: "hongbo.wang" 1. the patch 0001* is for setting single port into 802.1AD(QinQ) mode, before this patch, the function dsa_slave_vlan_rx_add_vid didn't pass the parameter "proto" to next port level, so switch's port can't get parameter "proto" after applying this patch, the following comma

[v3,2/5] arm64: dts: mt8183: update watchdog device node

2020-07-30 Thread Crystal Guo
update watchdog device node for MT8183 Signed-off-by: Crystal Guo --- arch/arm64/boot/dts/mediatek/mt8183.dtsi | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/arch/arm64/boot/dts/mediatek/mt8183.dtsi b/arch/arm64/boot/dts/mediatek/mt8183.dtsi index 1e03c84..f8d8357 100644

Re: [PATCH v2] scsi: stex: use generic power management

2020-07-30 Thread Vaibhav Gupta
The patch is compile-tested only. Thanks Vaibhav Gupta

Re: [PATCH] arm, arm64: Fix selection of CONFIG_SCHED_THERMAL_PRESSURE

2020-07-30 Thread Catalin Marinas
On Wed, Jul 29, 2020 at 02:57:18PM +0100, Valentin Schneider wrote: > Qian reported that the current setup forgoes the Kconfig dependencies and > results in warnings such as: > > WARNING: unmet direct dependencies detected for SCHED_THERMAL_PRESSURE > Depends on [n]: SMP [=y] && CPU_FREQ_THE

Re: BUG: omap5: v5.8-rc7 boot fails

2020-07-30 Thread H. Nikolaus Schaller
Hi Tony, > Am 29.07.2020 um 13:55 schrieb Tony Lindgren : > > * Tony Lindgren [200728 08:23]: >> * H. Nikolaus Schaller [200727 20:51]: >>> Hi Tony, >>> after trying v5.8-rc7 the Pyra boot hangs after ca. 3 seconds >>> (a little random what the last log line is). >>> >>> I could bisect it to:

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

2020-07-30 Thread Marc Zyngier
On 2020-07-30 07:14, Willy Tarreau wrote: On Thu, Jul 30, 2020 at 05:22:50AM +0200, Willy Tarreau wrote: On Wed, Jul 29, 2020 at 08:17:48PM -0700, Kees Cook wrote: > And just another heads-up, the patch[1] (which was never sent to a public > list) also breaks arm64 (circular header needs?): (...

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

2020-07-30 Thread Dietmar Eggemann
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(unsigned long, freq_scale) = SCHED_CAPACITY_SCALE; >> >> +#i

[PATCH v2] net/mlx5e: fix bpf_prog reference count leaks in mlx5e_alloc_rq

2020-07-30 Thread Xin Xiong
The function invokes bpf_prog_inc(), which increases the reference count of a bpf_prog object "rq->xdp_prog" if the object isn't NULL. The refcount leak issues take place in two error handling paths. When either mlx5_wq_ll_create() or mlx5_wq_cyc_create() fails, the function simply returns the err

[PATCH] CREDITS: Update contact information

2020-07-30 Thread Neil Whelchel
Update my email address in driver, documentation, and add to credits. diff --git a/CREDITS b/CREDITS index 0787b5872906..65803e878c92 100644 --- a/CREDITS +++ b/CREDITS @@ -3957,6 +3957,14 @@ S: 820 4th St. N. S: Fargo, North Dakota 58122 S: USA +N: Neil Whelchel +E: n...@goautomation.biz +W: h

[tip: x86/entry] x86/kvm: Use __xfer_to_guest_mode_work_pending() in kvm_run_vcpu()

2020-07-30 Thread tip-bot2 for Thomas Gleixner
The following commit has been merged into the x86/entry branch of tip: Commit-ID: f3020b8891b890b48d9e1a83241e3cce518427c1 Gitweb: https://git.kernel.org/tip/f3020b8891b890b48d9e1a83241e3cce518427c1 Author:Thomas Gleixner AuthorDate:Thu, 30 Jul 2020 09:19:01 +02:00 Committ

Re: [PATCH] vgacon: fix out of bounds write to the scrollback buffer

2020-07-30 Thread 张云海
Update the patch, add CC list, sample output, and Jiri's PoC. On 2020/7/30 14:46, Jiri Slaby wrote: > Hi, OTOH, you should have CCed all the (public) lists. >From ad143ede24ff4e61292cc9c96000100aacd97259 Mon Sep 17 00:00:00 2001 From: Yunhai Zhang Date: Tue, 28 Jul 2020 09:58:03 +0800 Subject: [

Re: [PATCH net-next v2] net: dsa: qca8k: Add 802.1q VLAN support

2020-07-30 Thread Jonathan McDowell
On Tue, Jul 28, 2020 at 07:34:57PM +0300, Vladimir Oltean wrote: > Hi Jonathan, > > On Sun, Jul 26, 2020 at 03:56:11PM +0100, Jonathan McDowell wrote: > > This adds full 802.1q VLAN support to the qca8k, allowing the use of > > vlan_filtering and more complicated bridging setups than allowed by >

Re: [PATCH] watch_queue: Limit the number of watches a user can hold

2020-07-30 Thread David Howells
Hi Linus, Could you consider taking this patch as a bugfix since the problem exists already in upstream code? David

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

2020-07-30 Thread Tetsuo Handa
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,row_size} values which were saved before calling resize_screen(). Dan

[PATCH v3 0/2] iio: light: Support AMS AS73211 digital XYZ sensor

2020-07-30 Thread Christian Eggers
This series adds support for the AMS AS73211 digital XYZ sensor. Changes in v3: -- - Integrated comments from Andy Shevchenko - Integrated comments from Jonathan Cameron Changes in v2: --- - Fix $id in dt binding - Document full I2C address range in "reg" property - Move

Re: [PATCH][next] habanalabs: fix incorrect check on failed workqueue create

2020-07-30 Thread Oded Gabbay
On Thu, Jul 30, 2020 at 11:20 AM Colin King wrote: > > From: Colin Ian King > > The null check on a failed workqueue create is currently null checking > hdev->cq_wq rather than the pointer hdev->cq_wq[i] and so the test > will never be true on a failed workqueue create. Fix this by checking > hde

[PATCH v3 1/2] dt-bindings: iio: light: add AMS AS73211 support

2020-07-30 Thread Christian Eggers
Add DT bindings for AMS AS73211 XYZ True Color Sensor. Signed-off-by: Christian Eggers --- .../bindings/iio/light/ams,as73211.yaml | 54 +++ 1 file changed, 54 insertions(+) create mode 100644 Documentation/devicetree/bindings/iio/light/ams,as73211.yaml diff --git a/Docum

Re: [PATCH v2 0/3] media: vimc: Allow multiple capture devices to use the same sensor

2020-07-30 Thread Laurent Pinchart
Hi Kaaira, Thank you for the patches. On Fri, Jul 24, 2020 at 05:32:10PM +0530, Kaaira Gupta wrote: > This is version 2 of the patch series posted by Niklas for allowing > multiple streams in VIMC. > The original series can be found here: > https://patchwork.kernel.org/cover/10948831/ > > This s

[PATCH v3 2/2] iio: light: as73211: New driver

2020-07-30 Thread Christian Eggers
Support for AMS AS73211 JENCOLOR(R) Digital XYZ Sensor. This driver has no built-in trigger. In order for making triggered measurements, an external (software) trigger driver like iio-trig-hrtimer or iio-trig-sysfs is required. The sensor supports single and continuous measurement modes. The latt

[PATCH] tty: keyboard, do not speculate on func_table index

2020-07-30 Thread Jiri Slaby
It is very unlikely for processor to speculate on the func_table index. The index is uchar and func_table is of size 256. So the compiler would need to screw up and generate a really bad code. But to stay on the safe side, forbid speculation on this user passed index. Signed-off-by: Jiri Slaby C

arm64: pointer_auth.h:40:3: error: implicit declaration of function ‘get_random_bytes’; did you mean ‘get_random_once’?

2020-07-30 Thread Naresh Kamboju
Linus master branch failed to build the arm64 architecture due to below error and warnings. kernel config: https://builds.tuxbuild.com/Dp3s1p4uYnGpImQwCvhzEw/kernel.config git_repo: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git target_arch: arm64 toolchain: gcc-9 git_short_lo

[PATCH] docs: ia64: correct typo

2020-07-30 Thread Julia Lawall
Replace RTC_WKLAM_RD with RTC_WKALM_RD. Signed-off-by: Julia Lawall --- Documentation/ia64/efirtc.rst |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Documentation/ia64/efirtc.rst b/Documentation/ia64/efirtc.rst index 2f7ff50..fd83284 100644 --- a/Documentation/ia64/efirt

[PATCH] net: Pass NULL to skb_network_protocol() when we don't care about vlan depth

2020-07-30 Thread linmiaohe
From: Miaohe Lin When we don't care about vlan depth, we could pass NULL instead of the address of a unused local variable to skb_network_protocol() as a param. Signed-off-by: Miaohe Lin --- net/core/dev.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/net/core/dev.c b/n

Re: [PATCH -next] irqchip/imx-intmux: Fix irqdata regs save in imx_intmux_runtime_suspend()

2020-07-30 Thread Marc Zyngier
On Wed, 29 Jul 2020 23:58:49 +0800, Wei Yongjun wrote: > Gcc report warning as follows: > > drivers/irqchip/irq-imx-intmux.c:316:29: warning: > variable 'irqchip_data' set but not used [-Wunused-but-set-variable] > 316 | struct intmux_irqchip_data irqchip_data; > |

Re: [PATCH] vgacon: Fix an out-of-bounds in vgacon_scrollback_update()

2020-07-30 Thread Jiri Slaby
On 13. 07. 20, 12:57, Yang Yingliang wrote: > I got a slab-out-of-bounds report when I doing fuzz test. > > [ 334.989515] > == > [ 334.989577] BUG: KASAN: slab-out-of-bounds in vgacon_scroll+0x57a/0x8ed > [ 334.989588] Write of si

[PATCH] trace : use kvmalloc instead of kmalloc

2020-07-30 Thread Zhaoyang Huang
High order memory stuff within trace could introduce OOM, use kvmalloc instead. Please find the bellowing for the call stack we run across in an android system. The scenario happens when traced_probes is woken up to get a large quantity of trace even if free memory is even higher than watermark_

[PATCH v2] scsi: smartpqi: use generic power management

2020-07-30 Thread Vaibhav Gupta
Drivers using legacy power management .suspen()/.resume() callbacks have to manage PCI states and device's PM states themselves. They also need to take care of standard configuration registers. Switch to generic power management framework using a single "struct dev_pm_ops" variable to take the unn

Re: [v3,1/5] dt-binding: mediatek: watchdog: fix the description of compatible

2020-07-30 Thread Matthias Brugger
On 30/07/2020 12:21, Crystal Guo wrote: Besides watchdog, mt2712 and nt8183 also provide sub-system software reset features. But mt6589 not support this feature Signed-off-by: Crystal Guo My proposal for the commit message: "The watchdog driver for MT2712 and MT8183 relies on DT data, so

Re: [v3,2/5] arm64: dts: mt8183: update watchdog device node

2020-07-30 Thread Matthias Brugger
On 30/07/2020 12:21, Crystal Guo wrote: update watchdog device node for MT8183 Explain why you update it. Signed-off-by: Crystal Guo --- arch/arm64/boot/dts/mediatek/mt8183.dtsi | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/arch/arm64/boot/dts/mediatek/mt8183.d

drivers/staging/media/rkvdec/rkvdec.c:967:34: warning: unused variable 'of_rkvdec_match'

2020-07-30 Thread kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 83bdc7275e6206f560d247be856bceba3e1ed8f2 commit: cd33c830448baf7b1e94da72eca069e3e1d050c9 media: rkvdec: Add the rkvdec driver date: 3 months ago config: x86_64-randconfig-r016-20200730 (attached as

Re: [PATCH v2] scsi: smartpqi: use generic power management

2020-07-30 Thread Vaibhav Gupta
This patch is compile tested only. Thanks Vaibhav Gupta

Re: arm64: pointer_auth.h:40:3: error: implicit declaration of function ‘get_random_bytes’; did you mean ‘get_random_once’?

2020-07-30 Thread Stephen Rothwell
Hi Naresh, On Thu, 30 Jul 2020 16:25:49 +0530 Naresh Kamboju wrote: > > Linus master branch failed to build the arm64 architecture due to > below error and warnings. Thanks for the report. Please see https://lore.kernel.org/lkml/202007292007.D87DBD34B@keescook/ -- Cheers, Stephen Rothwell

Re: [PATCH v2 3/3] KVM: SVM: Fix disable pause loop exit/pause filtering capability on SVM

2020-07-30 Thread Vitaly Kuznetsov
Wanpeng Li writes: > On Wed, 29 Jul 2020 at 20:21, Vitaly Kuznetsov wrote: >> >> Wanpeng Li writes: >> >> > From: Wanpeng Li >> > >> > Commit 8566ac8b (KVM: SVM: Implement pause loop exit logic in SVM) drops >> > disable pause loop exit/pause filtering capability completely, I guess it >> > is

Re: [PATCH 2/2] thermal: cpufreq_cooling: Reuse effective_cpu_util()

2020-07-30 Thread Lukasz Luba
Hi Viresh, On 7/30/20 7:24 AM, Viresh Kumar wrote: On 17-07-20, 11:46, Vincent Guittot wrote: On Thu, 16 Jul 2020 at 16:24, Lukasz Luba wrote: On 7/16/20 12:56 PM, Peter Zijlstra wrote: Currently cpufreq_cooling appears to estimate the CPU energy usage by calculating the percentage of idle t

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

2020-07-30 Thread Daniel Vetter
On Thu, Jul 30, 2020 at 12:47 AM 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,row_si

Re: [perf] Explicitly use python[3]-[config]

2020-07-30 Thread Arnaldo Carvalho de Melo
Em Thu, Jul 30, 2020 at 12:06:55PM +0200, Sedat Dilek escreveu: > Hi, > > I wanted to have some detailed numbers for building a Linux-kernel > with GNU-eco-system means GNU/gcc-10 and GNU/binutils-2,35 VS. > LLVM/Clang with its utils version 11.0.0-rc1. > > Arnd recommended me to use "perf stat m

[PATCH] habanalabs: unmap PCI bars upon iATU failure

2020-07-30 Thread Oded Gabbay
From: Ofir Bitton In case the driver fails to configure the PCI controller iATU, it needs to unmap the PCI bars before exiting so if the driver is removed, the bars won't be left mapped. Signed-off-by: Ofir Bitton Reviewed-by: Oded Gabbay Signed-off-by: Oded Gabbay --- drivers/misc/habanalab

[PATCH] ceph: use frag's MDS in either mode

2020-07-30 Thread Yanhu Cao
if frag.mds != cap->session->s_mds, the client's req will be resent. e.g. file: mnt/cephfs/dir03/dir003 (0x103) ceph.dir.pin="1" echo 'aaa' > /mnt/cephfs/dir03/dir003/file29 kernel: ceph: __choose_mds ca362c7a is_hash=1 (0x7c768b89) mode 2 kernel: ceph: __choose_mds ca

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

2020-07-30 Thread Tetsuo Handa
On 2020/07/30 20:16, Daniel Vetter wrote: > Patch looks good, except ... does this compile? fbcon_update_vcs is > defined in fbcon.h, and that doesn't seem to be included here ... > Maybe what we want is an fb_set_var_ioctl in fbmem.c so that the fbcon > interaction is a bit better hidden (but that

Re: [PATCH v3 2/2] iio: light: as73211: New driver

2020-07-30 Thread Andy Shevchenko
On Thu, Jul 30, 2020 at 1:52 PM Christian Eggers wrote: > Support for AMS AS73211 JENCOLOR(R) Digital XYZ Sensor. > > This driver has no built-in trigger. In order for making triggered > measurements, an external (software) trigger driver like > iio-trig-hrtimer or iio-trig-sysfs is required. > >

Re: [PATCH v7 2/2] s390: virtio: PV needs VIRTIO I/O device protection

2020-07-30 Thread Pierre Morel
gentle ping. On 2020-07-15 13:51, Michael S. Tsirkin wrote: On Wed, Jul 15, 2020 at 06:16:59PM +0800, Jason Wang wrote: On 2020/7/15 下午5:50, Michael S. Tsirkin wrote: On Wed, Jul 15, 2020 at 10:31:09AM +0200, Pierre Morel wrote: If protected virtualization is active on s390, the virtio qu

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