Re: [PATCH 21/30] drm/amd/display/dc/core/dc_resource: Demote some kernel-doc abuses

2021-01-14 Thread Alex Deucher
On Wed, Jan 13, 2021 at 3:08 AM Lee Jones wrote: > > Fixes the following W=1 kernel build warning(s): > > drivers/gpu/drm/amd/amdgpu/../display/dc/core/dc_resource.c:1710: warning: > Function parameter or member 'old_stream' not described in > 'dc_is_stream_unchanged' > drivers/gpu/drm/amd/amd

Re: [PATCH 22/30] drm/amd/display/dc/core/dc_link: Fix a couple of function documentation issues

2021-01-14 Thread Alex Deucher
On Wed, Jan 13, 2021 at 3:08 AM Lee Jones wrote: > > Fixes the following W=1 kernel build warning(s): > > drivers/gpu/drm/amd/amdgpu/../display/dc/core/dc_link.c:214: warning: > Function parameter or member 'link' not described in 'dc_link_detect_sink' > drivers/gpu/drm/amd/amdgpu/../display/dc

[PATCH v2 0/9] UBSan Enablement for hyp/nVHE code

2021-01-14 Thread Elena Petrova
Respin of George's patch series enabling UBSAN for hyp/nVHE code. Modification in v2: * CONFIG_KVM_ARM_DEBUG_BUFFER removed; __kvm_check_ubsan_buffer is called directly instead of via __kvm_arm_check_debug_buffer. * Bugfixing commits removed as these are already upstream. * Some code bro

drivers/media/test-drivers/vidtv/vidtv_psi.c:667:31: warning: taking address of packed member 'bitfield2' of class or structure 'vidtv_psi_table_pmt' may result in an unaligned pointer value

2021-01-14 Thread kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 65f0d2414b7079556fbbcc070b3d1c9f9587606d commit: f90cf6079bf67988f8b1ad1ade70fc89d0080905 media: vidtv: add a bridge driver date: 4 months ago config: mips-randconfig-r026-20210114 (attached as .config

[PATCH v2 1/9] KVM: arm64: Enable UBSan instrumentation in nVHE hyp code

2021-01-14 Thread Elena Petrova
From: George-Aurelian Popescu Implement UBSan handlers inside nVHe hyp code, as empty functions for the moment, so the undefined behaviours, that are triggered there, will be linked to them, not to the ones defined in kernel-proper lib/ubsan.c. In this way, enabling UBSAN_MISC won't cause a link

[PATCH v2 3/9] KVM: arm64: Enable UBSAN_BOUNDS for the both the kernel and hyp/nVHE

2021-01-14 Thread Elena Petrova
From: George Popescu If an out of bounds happens inside the hyp/nVHE code, the ubsan_out_of_bounds handler stores the logging data inside the kvm_ubsan_buffer. The one responsible for printing is the kernel ubsan_out_of_bounds handler. The process of decapsulating the data from the buffer is stra

[PATCH v2 4/9] KVM: arm64: Enable UBsan check for unreachable code inside hyp/nVHE code

2021-01-14 Thread Elena Petrova
From: George Popescu The data from __ubsan_handle_builtin_unreachable is passed to the buffer and printed inside the kernel by its simetric handler. Signed-off-by: George Popescu Change-Id: I71d789b7f4ec3d4c787012a061b7f5d7952cee19 Signed-off-by: Elena Petrova --- arch/arm64/include/asm/kvm_u

[PATCH v2 6/9] KVM: arm64: __ubsan_handle_load_invalid_value EL2 implementation.

2021-01-14 Thread Elena Petrova
From: George Popescu The handler for the load invalid value undefined behaviour is implemented at EL2. The EL2 handler's parameters are stored inside the buffer. They are used by the symetric handler from EL1. Signed-off-by: George Popescu Signed-off-by: Elena Petrova --- arch/arm64/include/a

[PATCH v2 5/9] KVM: arm64: Enable shift out of bounds undefined behaviour check for hyp/nVHE

2021-01-14 Thread Elena Petrova
From: George Popescu __ubsan_handle_shift_out_of_bounds data is passed to the buffer inside hyp/nVHE. This data is passed to the original handler from kernel. The 64bit values of the shift expression operands are stored as the lhs and rhs pointers, so there is no need to dereference them. Signe

[PATCH v2 7/9] KVM: arm64: Detect type mismatch undefined behaviour from hyp/nVHE code

2021-01-14 Thread Elena Petrova
From: George Popescu Type mismatch undefiend behaviour handler provides two handlers with two data structures type_mismatch_data and type_mismatch_data_v1. Both can be stored inside a common data structure: type_mismatch_data_common, which differs of type_mismatch_data only by keeping a pointer t

[PATCH v2 8/9] KVM: arm64: Detect arithmetic overflow is inside hyp/nVHE.

2021-01-14 Thread Elena Petrova
From: George Popescu Whenever an arithmetic overflow: addition, substraction, multiplication, division or negating happens inside the hyp/nVHE code, an __ubsan_handle_*_overflow is called. All the overflow handlers are sharing the same structure called overflow_data. Signed-off-by: George Popes

Re: [PATCH v4 01/21] ibmvfc: add vhost fields and defaults for MQ enablement

2021-01-14 Thread Brian King
On 1/13/21 7:27 PM, Ming Lei wrote: > On Wed, Jan 13, 2021 at 11:13:07AM -0600, Brian King wrote: >> On 1/12/21 6:33 PM, Tyrel Datwyler wrote: >>> On 1/12/21 2:54 PM, Brian King wrote: On 1/11/21 5:12 PM, Tyrel Datwyler wrote: > Introduce several new vhost fields for managing MQ state of t

[PATCH v2 9/9] KVM: arm64: Add UBSan tests for PKVM.

2021-01-14 Thread Elena Petrova
From: George-Aurelian Popescu Test the UBsan functionality inside hyp/nVHE. Because modules are not supported inside of hyp/nVHE code, the default testing module for UBSan can not be used. New functions have to be defined inside of hyp/nVHE. They are called in kvm_get_mdcr_el2, to test UBSAN when

[PATCH v2 2/9] KVM: arm64: Add a buffer that can pass UBSan data from hyp/nVHE to kernel

2021-01-14 Thread Elena Petrova
From: George Popescu Share a buffer between the kernel and the hyp/nVHE code by using the macros from kvm_debug_buffer.h. The hyp/nVHE code requires a write index which counts how many elements have been writtens inside the buffer and the kernel requires a read index which counts how many element

Re: [RFC PATCH v3 13/16] cxl/mem: Create concept of enabled commands

2021-01-14 Thread Jonathan Cameron
On Mon, 11 Jan 2021 14:51:18 -0800 Ben Widawsky wrote: > CXL devices must implement the Device Command Interface (described in > 8.2.9 of the CXL 2.0 spec). While the driver already maintains a list of > commands it supports, there is still a need to be able to distinguish > between commands that

Re: [PATCH wireless -next] rtw88: Delete useless kfree code

2021-01-14 Thread Kalle Valo
Zheng Yongjun wrote: > The parameter of kfree function is NULL, so kfree code is useless, delete it. > > Signed-off-by: Zheng Yongjun > Acked-by: Ping-Ke Shih Patch applied to wireless-drivers-next.git, thanks. 8873e8f56f74 rtw88: Delete useless kfree code -- https://patchwork.kernel.org/p

Re: [PATCH v4 3/6] regulator: dt-bindings: pf8x00: mark nxp,ilim-ma property as deprecated

2021-01-14 Thread Mark Brown
On Wed, Jan 13, 2021 at 11:20:13PM +0100, Adrien Grassein wrote: > +++ b/Documentation/devicetree/bindings/regulator/nxp,pf8x00-regulator.yaml > @@ -64,6 +64,8 @@ properties: > maximum: 4500 > description: >BUCK regulators current limit in mA. > +

Re: [PATCH v2] rtw88: Simplify bool comparison

2021-01-14 Thread Kalle Valo
YANG LI wrote: > Fix the following coccicheck warning: > ./drivers/net/wireless/realtek/rtw88/debug.c:800:17-23: WARNING: > Comparison of 0/1 to bool variable > > Reported-by: Abaci Robot > Signed-off-by: YANG LI Patch applied to wireless-drivers-next.git, thanks. d3a78c7a9daa rtw88: Simpli

Re: [PATCH] mwifiex: pcie: Drop bogus __refdata annotation

2021-01-14 Thread Kalle Valo
Geert Uytterhoeven wrote: > As the Marvell PCIE WiFi-Ex driver does not have any code or data > located in initmem, there is no need to annotate the mwifiex_pcie > structure with __refdata. Drop the annotation, to avoid suppressing > future section warnings. > > Signed-off-by: Geert Uytterhoeve

Re: [PATCH][V2] wilc1000: fix spelling mistake in Kconfig "devision" -> "division"

2021-01-14 Thread Kalle Valo
Colin King wrote: > From: Colin Ian King > > There is a spelling mistake in the Kconfig help text. Fix it. > > Signed-off-by: Colin Ian King Patch applied to wireless-drivers-next.git, thanks. e4c748ee4af1 wilc1000: fix spelling mistake in Kconfig "devision" -> "division" -- https://patch

Re: [PATCH] qtnfmac_pcie: Use module_pci_driver

2021-01-14 Thread Kalle Valo
Amey Narkhede wrote: > Use module_pci_driver for drivers whose init and exit functions > only register and unregister, respectively. > > Signed-off-by: Amey Narkhede Patch applied to wireless-drivers-next.git, thanks. 0924ba9fbc26 qtnfmac_pcie: Use module_pci_driver -- https://patchwork.ker

Re: [PATCH wireless v3 -next] brcmfmac: Delete useless kfree code

2021-01-14 Thread Kalle Valo
Zheng Yongjun wrote: > A null pointer will be passed to a kfree() call after a kzalloc() call failed. > This code is useless. Thus delete the extra function call. > > A goto statement is also no longer needed. Thus adjust an if branch. > > Signed-off-by: Zheng Yongjun Patch applied to wireles

Re: [PATCH v13 07/15] iommu/smmuv3: Allow stage 1 invalidation with unmanaged ASIDs

2021-01-14 Thread Jean-Philippe Brucker
Hi Eric, On Thu, Jan 14, 2021 at 05:58:27PM +0100, Auger Eric wrote: > >> The uacce-devel branches from > >>> https://github.com/Linaro/linux-kernel-uadk do provide this at the moment > >>> (they track the latest sva/zip-devel branch > >>> https://jpbrucker.net/git/linux/ which is roughly based o

[PATCH] MIPS: Compare __SYNC_loongson3_war against 0

2021-01-14 Thread Nathan Chancellor
When building with clang when CONFIG_CPU_LOONGSON3_WORKAROUNDS is enabled: In file included from lib/errseq.c:4: In file included from ./include/linux/atomic.h:7: ./arch/mips/include/asm/atomic.h:52:1: warning: converting the result of '<<' to a boolean always evaluates to true [-Wtautologica

Re: [PATCH] cgroup: Remove unnecessary call to strstrip()

2021-01-14 Thread Daniel Jordan
Hello Michal, Michal Koutný writes: > On Sun, Jan 03, 2021 at 02:50:01AM +, Hao Lee > wrote: >> The string buf will be stripped in cgroup_procs_write_start() before it >> is converted to int, so remove this unnecessary call to strstrip(). > Good catch, Hao. > > Perhaps the code be then simp

[PATCH v2 4/4] phy: phy-hi3670-usb3: move driver from staging into phy

2021-01-14 Thread Mauro Carvalho Chehab
The phy USB3 driver for Hisilicon 970 (hi3670) is ready for mainstream. Mode it from staging into the main driver's phy/ directory. Signed-off-by: Mauro Carvalho Chehab --- .../bindings/phy/phy-hi3670-usb3.yaml | 72 ++ MAINTAINERS | 9 +- drivers/phy

[PATCH v2 2/4] staging: hikey9xx: phy-hi3670-usb3.c: adjust retry logic

2021-01-14 Thread Mauro Carvalho Chehab
Instead of running a loop up to 100k times, add a small delay inside it, running it up to 10 times, waiting up to 100-200 us. It should be noticed that I don't have the datasheet for this PHY. So, not sure if this time will cover all situations. Signed-off-by: Mauro Carvalho Chehab --- drivers/

[PATCH v2 1/4] staging: hikey9xx: phy-hi3670-usb3.c: use bitfield macros

2021-01-14 Thread Mauro Carvalho Chehab
Cleanup the bitfield macros by using FIELD_PREP() and GENMASK(). While here, place all hexadecimal values in lowercase. Signed-off-by: Mauro Carvalho Chehab --- drivers/staging/hikey9xx/phy-hi3670-usb3.c | 61 ++ 1 file changed, 28 insertions(+), 33 deletions(-) diff --git

[PATCH v2 3/4] staging: hikey9xx: phy-hi3670-usb3.c: hi3670_is_abbclk_seleted() returns bool

2021-01-14 Thread Mauro Carvalho Chehab
Instead of using 1/0 for true/false, change the type to boolean and change the returned value. Signed-off-by: Mauro Carvalho Chehab --- drivers/staging/hikey9xx/phy-hi3670-usb3.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/staging/hikey9xx/phy-hi3670-us

[PATCH v2 0/4] Promote Hikey 970 USB phy out of staging

2021-01-14 Thread Mauro Carvalho Chehab
Hi Vinod, This series contain just the PHY patch I sent in Nov, 30 from this series: Move Hikey 970 USB support out of staging and add DT The 3 initial patches address the issues you pointed during your review: patch 1 change the logic to use GENMASK and FIELD_GET/FIELD_PREP macro

Re: [PATCH 06/10] drm: amd: amdgpu_dm.h: fix a wrong kernel-doc markup

2021-01-14 Thread Alex Deucher
On Thu, Jan 14, 2021 at 2:53 AM Mauro Carvalho Chehab wrote: > > There's a missing colon, causing the markup to be ignored, > solving those warnings: > > ../drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.h:340: warning: > Incorrect use of kernel-doc format: * @active_vblank_irq_

Re: [RFC PATCH v3 07/16] cxl/mem: Implement polled mode mailbox

2021-01-14 Thread Jonathan Cameron
On Mon, 11 Jan 2021 14:51:11 -0800 Ben Widawsky wrote: > Provide enough functionality to utilize the mailbox of a memory device. > The mailbox is used to interact with the firmware running on the memory > device. > > The CXL specification defines separate capabilities for the mailbox and > the m

Re: [PATCH] drm/amdgpu: Repeat assignment to max_slave_planes

2021-01-14 Thread Alex Deucher
On Thu, Jan 14, 2021 at 4:29 AM ZhiJie.Zhang wrote: > > Signed-off-by: ZhiJie.Zhang Applied. Thanks! Alex > --- > drivers/gpu/drm/amd/display/dc/dce110/dce110_resource.c | 1 - > 1 file changed, 1 deletion(-) > > diff --git a/drivers/gpu/drm/amd/display/dc/dce110/dce110_resource.c > b/drive

Re: [PATCH] nvme: reject the ns when the block size is smaller than a sector

2021-01-14 Thread Christoph Hellwig
On Wed, Jan 13, 2021 at 02:12:59PM -0800, Sagi Grimberg wrote: >> But this only catches a physical block size < 512 for NVMe, not any other >> block device. >> >> Please fix it for the general case in blk_queue_physical_block_size(). > > We actually call that later and would probably be better to

Re: [PATCH] kbuild: check the minimum compiler version in Kconfig

2021-01-14 Thread Nick Desaulniers
On Wed, Jan 13, 2021 at 8:17 PM Masahiro Yamada wrote: > > Paul Gortmaker reported a regression in the GCC version check [1]. > If you use GCC 4.8, the build breaks before showing the error message > "error Sorry, your version of GCC is too old - please use 4.9 or newer." > > I do not want to appl

Re: [PATCH] drm/amd/display: Simplify bool comparison

2021-01-14 Thread Alex Deucher
On Wed, Jan 13, 2021 at 8:51 AM Yang Li wrote: > > Fix the following coccicheck warning: > ./drivers/gpu/drm/amd/display/dc/dml/dcn20/display_mode_vba_20.c:3141:30-39: > WARNING: Comparison to bool > > Reported-by: Abaci Robot > Signed-off-by: Yang Li Applied all 4 patches. Thanks! Alex > --

Re: [PATCH 3/3] soc: qcom: mdt_loader: Read hash from firmware blob

2021-01-14 Thread Bjorn Andersson
On Wed 13 Jan 17:01 CST 2021, Siddharth Gupta wrote: > > On 1/7/2021 4:21 PM, Bjorn Andersson wrote: > > On Wed 06 Jan 15:23 CST 2021, Siddharth Gupta wrote: > > > > > Since the split elf blobs will always contain the hash segment, we rely on > > I think it will sounds better if we add "should"

[PATCH v5 1/6] regulator: pf8x00: add a doc for the module

2021-01-14 Thread Adrien Grassein
pf8x00 module build was not documented. Signed-off-by: Adrien Grassein Reviewed-by: Jagan Teki --- drivers/regulator/Kconfig | 4 1 file changed, 4 insertions(+) diff --git a/drivers/regulator/Kconfig b/drivers/regulator/Kconfig index eafa13be6e3e..ba8c09d90701 100644 --- a/drivers/regula

Re: [PATCH net-next] net: mvpp2: extend mib-fragments name to mib-fragments-err

2021-01-14 Thread Jakub Kicinski
On Thu, 14 Jan 2021 12:07:38 +0200 stef...@marvell.com wrote: > From: Stefan Chulski > > This patch doesn't change any functionality, but just extend > MIB counter register and ethtool-statistic names with "err". > > The counter MVPP2_MIB_FRAGMENTS_RCVD in fact is Error counter. > Extend REG nam

[PATCH v5 4/6] regulator: pf8x00: mark nxp,ilim-ma property as deprecated

2021-01-14 Thread Adrien Grassein
This property seems useless because we can use the regulator-max-microamp generic property to do the same and using generic code. As this property was already released in a kernel version, we can't remove it, just mark it as deprecated. Signed-off-by: Adrien Grassein --- drivers/regulator/pf8x0

[PATCH v5 2/6] regulator: dt-bindings: pf8x00: fix nxp,phase-shift doc

2021-01-14 Thread Adrien Grassein
nxp,phase-shift is an enum so use enum format to describe it. Minimum and maximum values are also wrong. Signed-off-by: Adrien Grassein Reviewed-by: Rob Herring --- .../bindings/regulator/nxp,pf8x00-regulator.yaml | 14 ++ 1 file changed, 2 insertions(+), 12 deletions(-) diff --g

[PATCH v5 0/6] Fix issues on pf8x00 driver

2021-01-14 Thread Adrien Grassein
Hello, this patch set aims is to fix some issues contains in the pf8x00 driver. Some issues are documentation ones, some others are in code. These issues where found while developing another version of the same driver. I prefer to share with you the patch for it. I do these patches on the master

[PATCH v5 6/6] regulator: pf8x00: fix nxp,phase-shift

2021-01-14 Thread Adrien Grassein
Fix the ternary condition which is a bad coding style in the kernel I also remove the defering configuration of the nxp,phase-shift. The configuration is now done at parsing time. It save some memory and it's better for comprehension. I also use the OTP default configuration when the parameter is

[PATCH 1/3] phy: qcom-qusb2: Allow specifying default clock scheme

2021-01-14 Thread AngeloGioacchino Del Regno
The TCSR's PHY_CLK_SCHEME register is not available on all SoC models, but some may still use a differential reference clock. In preparation for these SoCs, add a se_clk_scheme_default configuration entry and declare it to true for all currently supported SoCs (retaining the previous defaults. Th

[PATCH 3/3] dt-bindings: phy: qcom-qusb2: Document SDM660 compatible

2021-01-14 Thread AngeloGioacchino Del Regno
Support for the SDM630/660 series of SoCs was added to the driver: document the qcom,sdm660-qusb2-phy compatible here. Signed-off-by: AngeloGioacchino Del Regno --- Documentation/devicetree/bindings/phy/qcom,qusb2-phy.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/device

[PATCH v5 5/6] regulator: pf8x00: use linear range for buck 1-6

2021-01-14 Thread Adrien Grassein
Use a linear range to describe the voltages of the bucks 1-6 instead of listing it one by one (via a macro) Signed-off-by: Adrien Grassein --- drivers/regulator/pf8x00-regulator.c | 83 +--- 1 file changed, 51 insertions(+), 32 deletions(-) diff --git a/drivers/regulator

[PATCH v5 3/6] regulator: dt-bindings: pf8x00: mark nxp,ilim-ma property as deprecated

2021-01-14 Thread Adrien Grassein
This property seems useless because we can use the regulator-max-microamp generic property to do the same and using generic code. As this property was already released in a kernel version, we can't remove it, just mark it as deprecated Signed-off-by: Adrien Grassein --- .../devicetree/bindings/

[PATCH 2/3] phy: qcom-qusb2: Add configuration for SDM660

2021-01-14 Thread AngeloGioacchino Del Regno
The SDM660 SoC uses the same configuration as MSM8996, but the clock scheme uses a differential reference clock and none of the SoCs in this series (630, 636 and others) have got a usable PHY_CLK_SCHEME register in the TCSR for clk scheme detection. Signed-off-by: AngeloGioacchino Del Regno ---

Re: [PATCH] MIPS: Compare __SYNC_loongson3_war against 0

2021-01-14 Thread Nick Desaulniers
On Thu, Jan 14, 2021 at 9:34 AM Nathan Chancellor wrote: > > When building with clang when CONFIG_CPU_LOONGSON3_WORKAROUNDS is > enabled: > > In file included from lib/errseq.c:4: > In file included from ./include/linux/atomic.h:7: > ./arch/mips/include/asm/atomic.h:52:1: warning: converting th

Re: [PATCH v10 8/8] selinux: include a consumer of the new IMA critical data hook

2021-01-14 Thread Lakshmi Ramasubramanian
On 1/14/21 8:50 AM, Mimi Zohar wrote: On Thu, 2021-01-14 at 11:44 -0500, Mimi Zohar wrote: [Cc'ing Sasha] Hi Lakshmi, On Thu, 2021-01-14 at 08:22 -0800, Lakshmi Ramasubramanian wrote: On 1/13/21 6:49 PM, Mimi Zohar wrote: Lakshmi is trying to address the situation where an event changes a

[PATCH v2 2/3] i2c: qup: Introduce SCL/SDA noise rejection

2021-01-14 Thread AngeloGioacchino Del Regno
Some I2C devices may be glitchy due to electrical noise coming from the device itself or because of possible board design issues. To overcome this issue, the QUP's I2C in Qualcomm SoCs supports a noise rejection setting for both SCL and SDA lines. Introduce a setting for noise rejection through de

Re: [EXT] Re: [PATCH net-next] net: mvpp2: extend mib-fragments name to mib-fragments-err

2021-01-14 Thread Jakub Kicinski
On Thu, 14 Jan 2021 16:13:23 + Stefan Chulski wrote: > > > From: Stefan Chulski > > > > > > This patch doesn't change any functionality, but just extend MIB > > > counter register and ethtool-statistic names with "err". > > > > > > The counter MVPP2_MIB_FRAGMENTS_RCVD in fact is Error counter.

[PATCH v2 1/3] dt-bindings: i2c: qcom,i2c-qup: Convert txt to YAML schema

2021-01-14 Thread AngeloGioacchino Del Regno
Convert the qcom,i2c-qup binding to YAML schema. Signed-off-by: AngeloGioacchino Del Regno --- .../devicetree/bindings/i2c/qcom,i2c-qup.txt | 40 - .../devicetree/bindings/i2c/qcom,i2c-qup.yaml | 87 +++ 2 files changed, 87 insertions(+), 40 deletions(-) delete mode 10

[PATCH v2 0/3] QCOM QUP I2C - Add noise rejection, convert to YAML

2021-01-14 Thread AngeloGioacchino Del Regno
This patch series converts the i2c-qup bindings to YAML and then adds support for noise rejection, which is needed for some noisy hardware, like the touchscreen on the F(x)Tec Pro1. After adding noise rejection, the touchscreen stopped showing ghost touch issues and lockups. Tested on F(x)Tec Pro1

Re: [PATCH] Documentation: livepatch: document reliable stacktrace

2021-01-14 Thread Mark Rutland
On Thu, Jan 14, 2021 at 08:36:50AM -0600, Josh Poimboeuf wrote: > On Thu, Jan 14, 2021 at 11:54:18AM +, Mark Rutland wrote: > > On Wed, Jan 13, 2021 at 01:33:13PM -0600, Josh Poimboeuf wrote: > > > On Wed, Jan 13, 2021 at 04:57:43PM +, Mark Brown wrote: > > > > From: Mark Rutland > > > > +

Re: fbcon: remove soft scrollback code

2021-01-14 Thread Alan Mackenzie
Hello, lkml. This is my first post to the list. From: Linus Torvalds <> Date: Fri, 8 Jan 2021 15:11:34 -0800 Subject:Re: fbcon: remove soft scrollback code (missing Doc. patch) >On Fri, Jan 8, 2021 at 11:13 AM Phillip Susi > wrote: >> > Could we pause this madness? Scrollback is still u

[PATCH v2 3/3] dt-bindings: i2c: qcom,i2c-qup: Document noise rejection properties

2021-01-14 Thread AngeloGioacchino Del Regno
Document the new noise rejection properties "qcom,noise-reject-sda" and "qcom,noise-reject-scl". Signed-off-by: AngeloGioacchino Del Regno --- .../devicetree/bindings/i2c/qcom,i2c-qup.yaml | 14 ++ 1 file changed, 14 insertions(+) diff --git a/Documentation/devicetree/bindings

[PATCH 1/2] drm/panel: Add BOE BF060Y8M-AJ0 5.99" AMOLED panel driver

2021-01-14 Thread AngeloGioacchino Del Regno
This adds support for the BOE BF060Y8M-AJ0 5.99" AMOLED module that can be found in some F(x)Tec Pro1 and Elephone U1 devices. Signed-off-by: AngeloGioacchino Del Regno --- drivers/gpu/drm/panel/Kconfig | 11 + drivers/gpu/drm/panel/Makefile| 1 + .../gpu/drm/

Re: [PATCH v6 1/4] drm/i915: Keep track of pwm-related backlight hooks separately

2021-01-14 Thread Lyude Paul
On Thu, 2021-01-14 at 09:12 +0200, Jani Nikula wrote: > On Wed, 13 Jan 2021, Lyude Paul wrote: > > Currently, every different type of backlight hook that i915 supports is > > pretty straight forward - you have a backlight, probably through PWM > > (but maybe DPCD), with a single set of platform-sp

Re: [RFC PATCH v3 07/16] cxl/mem: Implement polled mode mailbox

2021-01-14 Thread Ben Widawsky
On 21-01-14 17:40:12, Jonathan Cameron wrote: > On Mon, 11 Jan 2021 14:51:11 -0800 > Ben Widawsky wrote: > > > Provide enough functionality to utilize the mailbox of a memory device. > > The mailbox is used to interact with the firmware running on the memory > > device. > > > > The CXL specifica

Re: [PATCH net-next] net: bridge: use eth_type_vlan in br_dev_queue_push_xmit

2021-01-14 Thread Nikolay Aleksandrov
On 14/01/2021 09:51, menglong8.d...@gmail.com wrote: > From: Menglong Dong > > Replace the check for ETH_P_8021Q and ETH_P_8021AD in > br_dev_queue_push_xmit with eth_type_vlan. > > Signed-off-by: Menglong Dong > --- > net/bridge/br_forward.c | 3 +-- > 1 file changed, 1 insertion(+), 2 deleti

Re: [PATCH 03/18] arch: arc: Remove CONFIG_OPROFILE support

2021-01-14 Thread Vineet Gupta
On 1/14/21 3:35 AM, Viresh Kumar wrote: > The "oprofile" user-space tools don't use the kernel OPROFILE support > any more, and haven't in a long time. User-space has been converted to > the perf interfaces. > > Remove the old oprofile's architecture specific support. > > Suggested-by: Christoph He

[PATCH 2/2] dt-bindings: display: Document BOE BF060Y8M-AJ0 panel compatible

2021-01-14 Thread AngeloGioacchino Del Regno
Document the boe,bf060y8m-aj0 panel. Signed-off-by: AngeloGioacchino Del Regno --- .../display/panel/boe,bf060y8m-aj0.yaml | 67 +++ 1 file changed, 67 insertions(+) create mode 100644 Documentation/devicetree/bindings/display/panel/boe,bf060y8m-aj0.yaml diff --git a/D

Re: [PATCH 1/3] phy: qcom-qusb2: Allow specifying default clock scheme

2021-01-14 Thread Bjorn Andersson
On Thu 14 Jan 11:47 CST 2021, AngeloGioacchino Del Regno wrote: > The TCSR's PHY_CLK_SCHEME register is not available on all SoC > models, but some may still use a differential reference clock. > > In preparation for these SoCs, add a se_clk_scheme_default > configuration entry and declare it to

Re: [PATCH 2/3] phy: qcom-qusb2: Add configuration for SDM660

2021-01-14 Thread Bjorn Andersson
On Thu 14 Jan 11:47 CST 2021, AngeloGioacchino Del Regno wrote: > The SDM660 SoC uses the same configuration as MSM8996, but the > clock scheme uses a differential reference clock and none of > the SoCs in this series (630, 636 and others) have got a usable > PHY_CLK_SCHEME register in the TCSR fo

Re: [PATCH 3/3] dt-bindings: phy: qcom-qusb2: Document SDM660 compatible

2021-01-14 Thread Bjorn Andersson
On Thu 14 Jan 11:47 CST 2021, AngeloGioacchino Del Regno wrote: > Support for the SDM630/660 series of SoCs was added to the driver: > document the qcom,sdm660-qusb2-phy compatible here. > Reviewed-by: Bjorn Andersson > Signed-off-by: AngeloGioacchino Del Regno > > --- > Documentation/devic

Re: [PATCH] Documentation/llvm: Add a section about supported architectures

2021-01-14 Thread Nick Desaulniers
On Thu, Jan 14, 2021 at 6:36 AM Jonathan Corbet wrote: > > On Wed, 13 Jan 2021 17:19:59 -0800 > Nick Desaulniers wrote: > > > Patch looks fine, but `make -j htmldocs` seems to be taking forever > > for me so I can't render it. Is this a known issue? > > > > $ make -j htmldocs > > SPHINX htmldo

[PATCH Broadcom/stblinux 2/2] soc: bcm: bcm-pmb: add BCM63138 SATA support

2021-01-14 Thread Rafał Miłecki
From: Rafał Miłecki BCM63138 has SATA controller that needs to be powered up using PMB. Signed-off-by: Rafał Miłecki --- Florian: this is based on your patches ARM: dts: BCM63xx: enable SATA PHY and AHCI controller reset: bcm63xx: Add Broadcom BCM63138 reset controller driver I didn't test it

[PATCH Broadcom/stblinux 1/2] dt-bindings: power: bcm-pmb: add BCM63138 binding

2021-01-14 Thread Rafał Miłecki
From: Rafał Miłecki PMB can be also found on bcm63xx chipsets. It uses difference device addresses so a new binding is required. Signed-off-by: Rafał Miłecki --- Documentation/devicetree/bindings/power/brcm,bcm-pmb.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetr

Re: [PATCH v2 06/14] x86/sev: Drop redundant and potentially misleading 'sev_enabled'

2021-01-14 Thread Tom Lendacky
On 1/13/21 6:37 PM, Sean Christopherson wrote: Drop the sev_enabled flag and switch its one user over to sev_active(). sev_enabled was made redundant with the introduction of sev_status in commit b57de6cd1639 ("x86/sev-es: Add SEV-ES Feature Detection"). sev_enabled and sev_active() are guarantee

Re: [PATCH v13 06/15] s390/vfio-ap: allow assignment of unavailable AP queues to mdev device

2021-01-14 Thread Tony Krowiak
On 1/11/21 3:40 PM, Halil Pasic wrote: On Tue, 22 Dec 2020 20:15:57 -0500 Tony Krowiak wrote: The current implementation does not allow assignment of an AP adapter or domain to an mdev device if each APQN resulting from the assignment does not reference an AP queue device that is bound to t

Re: [PATCH RFC] x86/sgx: Add trivial NUMA allocation

2021-01-14 Thread Jarkko Sakkinen
On Tue, Jan 12, 2021 at 04:24:01PM -0800, Dave Hansen wrote: > On 12/16/20 5:50 AM, Jarkko Sakkinen wrote: > > Create a pointer array for each NUMA node with the references to the > > contained EPC sections. Use this in __sgx_alloc_epc_page() to knock the > > current NUMA node before the others. >

Re: [PATCH v2] arm64: PCI: Enable SMC conduit

2021-01-14 Thread Jeremy Linton
Hi, Since I don't have a cover letter I forgot the changes list. V1->V2: Add SMC_PCI_FEATURES calls to verify _READ, _WRITE and _SEG_INFO functions exist. Add a _SEG_INFO bus start, end validation against the ACPI table. Adjust some function naming, and log messages. On 1/13/21 4:40 PM, Jer

Re: [PATCH v2 3/4] staging: hikey9xx: phy-hi3670-usb3.c: hi3670_is_abbclk_seleted() returns bool

2021-01-14 Thread Joe Perches
On Thu, 2021-01-14 at 18:35 +0100, Mauro Carvalho Chehab wrote: > Instead of using 1/0 for true/false, change the type to boolean > and change the returned value. [] > diff --git a/drivers/staging/hikey9xx/phy-hi3670-usb3.c > b/drivers/staging/hikey9xx/phy-hi3670-usb3.c [] > @@ -326,24 +326,24 @@

Re: [PATCH v10 5/8] IMA: limit critical data measurement based on a label

2021-01-14 Thread Tushar Sugandhi
On 2021-01-13 6:09 p.m., Mimi Zohar wrote: On Thu, 2021-01-07 at 20:07 -0800, Tushar Sugandhi wrote: Integrity critical data may belong to a single subsystem or it may arise from cross subsystem interaction. Currently there is no mechanism to group or limit the data based on certain label.

Re: [PATCH 1/3] phy: qcom-qusb2: Allow specifying default clock scheme

2021-01-14 Thread AngeloGioacchino Del Regno
Il 14/01/21 18:52, Bjorn Andersson ha scritto: On Thu 14 Jan 11:47 CST 2021, AngeloGioacchino Del Regno wrote: The TCSR's PHY_CLK_SCHEME register is not available on all SoC models, but some may still use a differential reference clock. In preparation for these SoCs, add a se_clk_scheme_defaul

Re: [PATCH v2 2/3] i2c: qup: Introduce SCL/SDA noise rejection

2021-01-14 Thread Bjorn Andersson
On Thu 14 Jan 11:49 CST 2021, AngeloGioacchino Del Regno wrote: > Some I2C devices may be glitchy due to electrical noise coming > from the device itself or because of possible board design issues. > To overcome this issue, the QUP's I2C in Qualcomm SoCs supports > a noise rejection setting for bo

[PATCH 1/3] tty: hvcs: Drop unnecessary if block

2021-01-14 Thread Uwe Kleine-König
If hvcs_probe() succeeded dev_set_drvdata() is called with a non-NULL value, and if hvcs_probe() failed hvcs_remove() isn't called. So there is no way dev_get_drvdata() can return NULL in hvcs_remove() and the check can just go away. Signed-off-by: Uwe Kleine-König --- drivers/tty/hvc/hvcs.c |

[PATCH 2/3] tty: vcc: Drop unnecessary if block

2021-01-14 Thread Uwe Kleine-König
If vcc_probe() succeeded dev_set_drvdata() is called with a non-NULL value, and if vcc_probe() failed vcc_remove() isn't called. So there is no way dev_get_drvdata() can return NULL in vcc_remove() and the check can just go away. Signed-off-by: Uwe Kleine-König --- drivers/tty/vcc.c | 3 --- 1

[PATCH 0/3] tty: some cleanups in remove functions

2021-01-14 Thread Uwe Kleine-König
Hello, while working on changing the prototype of struct vio_driver::remove to return void I noticed a few exit paths in such callbacks that return an error code. This is a bad thing because the return value is ignored (which is the motivation to make it void) and the corresponding device then en

Re: [PATCH v5 4/4] pinctrl: qcom: Don't clear pending interrupts when enabling

2021-01-14 Thread Doug Anderson
Hi, On Thu, Jan 14, 2021 at 9:15 AM Bjorn Andersson wrote: > > > > @@ -195,6 +201,20 @@ static int msm_pinmux_set_mux(struct pinctrl_dev > > > *pctldev, > > > if (WARN_ON(i == g->nfuncs)) > > > return -EINVAL; > > > > > > + /* > > > +* If an GPIO interrupt i

[PATCH 3/3] tty: vcc: Drop impossible to hit WARN_ON

2021-01-14 Thread Uwe Kleine-König
vcc_get() returns the port that has provided port->index. As the port that is about to be removed isn't removed yet this trivially will find this port. So simplify the call to not assign an identical value to the port pointer and drop the warning that is never hit. Signed-off-by: Uwe Kleine-König

Re: [PATCH v2 3/3] dt-bindings: i2c: qcom,i2c-qup: Document noise rejection properties

2021-01-14 Thread Bjorn Andersson
On Thu 14 Jan 11:49 CST 2021, AngeloGioacchino Del Regno wrote: > Document the new noise rejection properties "qcom,noise-reject-sda" > and "qcom,noise-reject-scl". > I presume these are unit-less levels? Reviewed-by: Bjorn Andersson Regards, Bjorn > Signed-off-by: AngeloGioacchino Del Regn

Re: [PATCH v5 4/4] pinctrl: qcom: Don't clear pending interrupts when enabling

2021-01-14 Thread Doug Anderson
Hi, On Wed, Jan 13, 2021 at 11:14 PM Stephen Boyd wrote: > > > @@ -195,6 +201,20 @@ static int msm_pinmux_set_mux(struct pinctrl_dev > > *pctldev, > > if (WARN_ON(i == g->nfuncs)) > > return -EINVAL; > > > > + /* > > +* If an GPIO interrupt is setup on this

Re: [PATCH v2 11/14] kasan: fix bug detection via ksize for HW_TAGS mode

2021-01-14 Thread Andrey Konovalov
On Wed, Jan 13, 2021 at 5:54 PM Marco Elver wrote: > > > +bool __kasan_check_byte(const void *addr, unsigned long ip); > > +static __always_inline bool kasan_check_byte(const void *addr, unsigned > > long ip) > > +{ > > + if (kasan_enabled()) > > + return __kasan_check_byte(ad

Re: [PATCH 1/1] usb: xhci: setup packets don't need DMA mapping

2021-01-14 Thread Alan Stern
On Thu, Jan 14, 2021 at 01:04:02PM +0800, Peter Chen wrote: > On 21-01-14 11:59:07, Daewoong Kim wrote: > > DMA mapping of urb->setup_packet is not necessary for xHCI host > > controllers. The xHCI specification says that Setup Stage TRB includes > > whole Setup Data; therefore, urb->setup_dma will

[PATCH v3 2/8] mm: Allow architectures to request 'old' entries when prefaulting

2021-01-14 Thread Will Deacon
Commit 5c0a85fad949 ("mm: make faultaround produce old ptes") changed the "faultaround" behaviour to initialise prefaulted PTEs as 'old', since this avoids vmscan wrongly assuming that they are hot, despite having never been explicitly accessed by userspace. The change has been shown to benefit num

[PATCH v3 3/8] arm64: mm: Implement arch_wants_old_prefaulted_pte()

2021-01-14 Thread Will Deacon
On CPUs with hardware AF/DBM, initialising prefaulted PTEs as 'old' improves vmscan behaviour and does not appear to introduce any overhead elsewhere. Implement arch_wants_old_prefaulted_pte() to return 'true' if we detect hardware access flag support at runtime. This can be extended in future bas

[PATCH v3 0/8] Create 'old' ptes for faultaround mappings on arm64 with hardware access flag

2021-01-14 Thread Will Deacon
Hi again folks, This is the third version of the patches I previously posted here: v1: https://lore.kernel.org/r/20201209163950.8494-1-w...@kernel.org v2: https://lore.kernel.org/r/20210108171517.5290-1-w...@kernel.org The patches allow architectures to opt-in at runtime for faultaround mapp

[PATCH v3 1/8] mm: Cleanup faultaround and finish_fault() codepaths

2021-01-14 Thread Will Deacon
From: "Kirill A. Shutemov" alloc_set_pte() has two users with different requirements: in the faultaround code, it called from an atomic context and PTE page table has to be preallocated. finish_fault() can sleep and allocate page table as needed. PTL locking rules are also strange, hard to follo

[RFC PATCH 8/8] mm: Mark 'info' field of 'struct vm_fault' as 'const'

2021-01-14 Thread Will Deacon
The field is only ever read after being initialised, so mark it 'const' before somebody tries to modify it again. Cc: Kirill A. Shutemov Cc: Linus Torvalds Signed-off-by: Will Deacon --- include/linux/mm.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/linux/mm.h b

[RFC PATCH 7/8] mm: Use static initialisers for 'info' field of 'struct vm_fault'

2021-01-14 Thread Will Deacon
In preparation for const-ifying the 'info' field of 'struct vm_fault', ensure that it is initialised using static initialisers. Cc: Kirill A. Shutemov Cc: Linus Torvalds Signed-off-by: Will Deacon --- mm/shmem.c| 8 +--- mm/swapfile.c | 13 - 2 files changed, 13 insertions

[RFC PATCH 6/8] mm: Avoid modifying vmf.info.address in __collapse_huge_page_swapin()

2021-01-14 Thread Will Deacon
In preparation for const-ifying the 'info' field of 'struct vm_fault', rework __collapse_huge_page_swapin() to avoid continously updating vmf.info.address and instead populate a new 'struct vm_fault' on the stack for each page being processed. Cc: Kirill A. Shutemov Cc: Linus Torvalds Signed-off

[RFC PATCH 5/8] mm: Pass 'address' to map to do_set_pte() and drop FAULT_FLAG_PREFAULT

2021-01-14 Thread Will Deacon
Rather than modifying the 'address' field of the 'struct vm_fault_info' passed to do_set_pte(), leave that to identify the real faulting address and pass in the virtual address to be mapped by the new pte as a separate argument. This makes FAULT_FLAG_PREFAULT redundant, as a prefault entry can be

Re: [PATCH v13 07/15] iommu/smmuv3: Allow stage 1 invalidation with unmanaged ASIDs

2021-01-14 Thread Auger Eric
Hi Jean, On 1/14/21 6:33 PM, Jean-Philippe Brucker wrote: > Hi Eric, > > On Thu, Jan 14, 2021 at 05:58:27PM +0100, Auger Eric wrote: The uacce-devel branches from > https://github.com/Linaro/linux-kernel-uadk do provide this at the moment > (they track the latest sva/zip-devel branc

Re: [PATCH v3 3/6] dm: add support for passing through inline crypto support

2021-01-14 Thread Mike Snitzer
On Tue, Dec 29 2020 at 3:55am -0500, Satya Tangirala wrote: > Update the device-mapper core to support exposing the inline crypto > support of the underlying device(s) through the device-mapper device. > > This works by creating a "passthrough keyslot manager" for the dm > device, which declare

Re: [PATCH v2 11/14] kasan: fix bug detection via ksize for HW_TAGS mode

2021-01-14 Thread Andrey Konovalov
On Wed, Jan 13, 2021 at 5:54 PM Marco Elver wrote: > > > +/* > > + * Unlike kasan_check_read/write(), kasan_check_byte() is performed even > > for > > + * the hardware tag-based mode that doesn't rely on compiler > > instrumentation. > > + */ > > +bool __kasan_check_byte(const void *addr, unsign

Re: [PATCH v2 02/14] KVM: SVM: Free sev_asid_bitmap during init if SEV setup fails

2021-01-14 Thread Tom Lendacky
On 1/14/21 11:12 AM, Sean Christopherson wrote: On Thu, Jan 14, 2021, Tom Lendacky wrote: On 1/13/21 6:36 PM, Sean Christopherson wrote: Free sev_asid_bitmap if the reclaim bitmap allocation fails, othwerise KVM will unnecessarily keep the bitmap when SEV is not fully enabled. Freeing the page

[PATCH 2/2] libperf tests: Fail when failing to get a tracepoint id

2021-01-14 Thread Ian Rogers
Permissions are necessary to get a tracepoint id. Fail the test when the read fails. Signed-off-by: Ian Rogers --- tools/lib/perf/tests/test-evlist.c | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/lib/perf/tests/test-evlist.c b/tools/lib/perf/tests/test-evlist.c index d913241d4135..b

Re: [RFC PATCH v3 14/16] cxl/mem: Use CEL for enabling commands

2021-01-14 Thread Jonathan Cameron
On Mon, 11 Jan 2021 14:51:19 -0800 Ben Widawsky wrote: > The Command Effects Log (CEL) is specified in the CXL 2.0 specification. > The CEL is one of two types of logs, the other being vendor specific. > They are distinguished in hardware/spec via UUID. The CEL is immediately > useful for 2 thing

<    3   4   5   6   7   8   9   10   11   12   >