[PATCH v2 15/30] staging: rtl8723bs: remove RT_TRACE logs in core/rtw_mlme.c

2021-04-02 Thread Fabio Aiuto
remove all RT_TRACE logs Signed-off-by: Fabio Aiuto --- drivers/staging/rtl8723bs/core/rtw_mlme.c | 105 -- 1 file changed, 15 insertions(+), 90 deletions(-) diff --git a/drivers/staging/rtl8723bs/core/rtw_mlme.c b/drivers/staging/rtl8723bs/core/rtw_mlme.c index

[PATCH v2 16/30] staging: rtl8723bs: tidy up some error handling

2021-04-02 Thread Fabio Aiuto
the RT_TRACE() output is not useful so we want to delete it. In this case there is no cleanup for rtw_cleanbss_cmd() required or even possible. I've deleted the RT_TRACE() output and added a goto unlock to show that we can't continue if rtw_createbss_cmd() fails. Signed-off-by: Fabio Aiuto ---

[PATCH v2 14/30] staging: rtl8723bs: remove commented RT_TRACE calls in core/rtw_mlme.c

2021-04-02 Thread Fabio Aiuto
remove commented RT_TRACE calls in core/rtw_mlme.c Signed-off-by: Fabio Aiuto --- drivers/staging/rtl8723bs/core/rtw_mlme.c | 6 -- 1 file changed, 6 deletions(-) diff --git a/drivers/staging/rtl8723bs/core/rtw_mlme.c b/drivers/staging/rtl8723bs/core/rtw_mlme.c index

[PATCH v2 13/30] staging: rtl8723bs: remove unnecessary parentheses in if condition

2021-04-02 Thread Fabio Aiuto
fix post commit hook issue: WARNING: Unnecessary parentheses 166: FILE: drivers/staging/rtl8723bs/core/rtw_cmd.c:2000: + if ((pcmd->res != H2C_SUCCESS)) Signed-off-by: Fabio Aiuto --- drivers/staging/rtl8723bs/core/rtw_cmd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff

[PATCH v2 12/30] staging: rtl8723bs: fix null check conditions

2021-04-02 Thread Fabio Aiuto
fix post-commit hook issues: CHECK: Comparison to NULL could be written "!psta" 178: FILE: drivers/staging/rtl8723bs/core/rtw_cmd.c:2012: + if (psta == NULL) CHECK: Comparison to NULL could be written "!psta" 198: FILE: drivers/staging/rtl8723bs/core/rtw_cmd.c:2066: +

[PATCH v2 11/30] staging: rtl8723bs: remove RT_TRACE logs in core/rtw_cmd.c

2021-04-02 Thread Fabio Aiuto
remove all RT_TRACE logs removed a variable, left unused after RT_TRACE removal Signed-off-by: Fabio Aiuto --- drivers/staging/rtl8723bs/core/rtw_cmd.c | 53 +++- 1 file changed, 6 insertions(+), 47 deletions(-) diff --git a/drivers/staging/rtl8723bs/core/rtw_cmd.c

[PATCH v2 10/30] staging: rtl8723bs: remove unnecessary parentheses in if-condition

2021-04-02 Thread Fabio Aiuto
fix following post-commit hook issues: CHECK: Unnecessary parentheses around 'pwrpriv->rpwm == pslv' 26: FILE: drivers/staging/rtl8723bs/core/rtw_pwrctrl.c:269: + if ((pwrpriv->rpwm == pslv) || + ((pwrpriv->rpwm >= PS_STATE_S2) && (pslv >= PS_STATE_S2)))

[PATCH v2 08/30] staging: rtl8723bs: remove all RT_TRACE logs in core/rtw_pwrctrl.c

2021-04-02 Thread Fabio Aiuto
remove all RT_TRACE logs Signed-off-by: Fabio Aiuto --- drivers/staging/rtl8723bs/core/rtw_pwrctrl.c | 54 ++-- 1 file changed, 4 insertions(+), 50 deletions(-) diff --git a/drivers/staging/rtl8723bs/core/rtw_pwrctrl.c b/drivers/staging/rtl8723bs/core/rtw_pwrctrl.c index

[PATCH v2 09/30] staging: rtl8723bs: fix logical continuation issue

2021-04-02 Thread Fabio Aiuto
fix following post-commit hook issue: CHECK: Logical continuations should be on the previous line 22: FILE: drivers/staging/rtl8723bs/core/rtw_pwrctrl.c:270: if ((pwrpriv->rpwm == pslv) + || ((pwrpriv->rpwm >= PS_STATE_S2) && (pslv >=

[PATCH v2 07/30] staging: rtl8723bs: fix error prone if conditions

2021-04-02 Thread Fabio Aiuto
fix the following post-commit check: CHECK: Using comparison to true is error prone 21: FILE: drivers/staging/rtl8723bs/core/rtw_eeprom.c:38: + if (padapter->bSurpriseRemoved == true) CHECK: Using comparison to true is error prone 36: FILE: drivers/staging/rtl8723bs/core/rtw_eeprom.c:50: +

[PATCH v2 06/30] staging: rtl8723bs: remove all RT_TRACE logs in core/rtw_eeprom.c

2021-04-02 Thread Fabio Aiuto
remove all RT_TRACE logs Signed-off-by: Fabio Aiuto --- drivers/staging/rtl8723bs/core/rtw_eeprom.c | 56 - 1 file changed, 22 insertions(+), 34 deletions(-) diff --git a/drivers/staging/rtl8723bs/core/rtw_eeprom.c b/drivers/staging/rtl8723bs/core/rtw_eeprom.c index

[PATCH v2 05/30] staging: rtl8723bs: fix spaces around operator issues

2021-04-02 Thread Fabio Aiuto
fix the following post commit hook check issues: CHECK: spaces preferred around that '-' (ctx:VxV) 25: FILE: drivers/staging/rtl8723bs/core/rtw_security.c:729: + if (crc[3] != payload[length-1] || crc[2] != payload[length-2] ||

[PATCH v2 04/30] staging: rtl8723bs: fix line exceed warning

2021-04-02 Thread Fabio Aiuto
fix the following post-commit hook check: WARNING: line length of 149 exceeds 100 columns 61: FILE: drivers/staging/rtl8723bs/core/rtw_security.c:729: + if (crc[3] != payload[length-1] || crc[2] != payload[length-2] || crc[1] != payload[length-3] || crc[0] !=

[PATCH v2 00/30] staging: rtl8723bs: remove RT_TRACE logs in core/*

2021-04-02 Thread Fabio Aiuto
This patchset removes all RT_TRACE usages in core/ files. This is the first of a series aimed at removing RT_TRACE macro. The whole private tracing system is not tied to a configuration symbol and the default behaviour is _trace nothing_. It's verbose and relies on a private log level tracing

[PATCH v2 01/30] staging: rtl8723bs: remove RT_TRACE logs in core/rtw_xmit.c

2021-04-02 Thread Fabio Aiuto
remove all RT_TRACE logs Signed-off-by: Fabio Aiuto --- drivers/staging/rtl8723bs/core/rtw_xmit.c | 82 ++- 1 file changed, 7 insertions(+), 75 deletions(-) diff --git a/drivers/staging/rtl8723bs/core/rtw_xmit.c b/drivers/staging/rtl8723bs/core/rtw_xmit.c index

[PATCH v2 02/30] staging: rtl8723bs: fix condition in if statement

2021-04-02 Thread Fabio Aiuto
fix condition warned by post-hook checkpatch CHECK: Using comparison to true is error prone 71: FILE: drivers/staging/rtl8723bs/core/rtw_xmit.c:565: + ((padapter->securitypriv.sw_encrypt == true) || (psecuritypriv->hw_decrypted == false))) Signed-off-by: Fabio

[PATCH v2 03/30] staging: rtl8723bs: remove RT_TRACE logs in core/rtw_security.c

2021-04-02 Thread Fabio Aiuto
remove all RT_TRACE logs in core/rtw_security.c Signed-off-by: Fabio Aiuto --- drivers/staging/rtl8723bs/core/rtw_security.c | 40 +-- 1 file changed, 1 insertion(+), 39 deletions(-) diff --git a/drivers/staging/rtl8723bs/core/rtw_security.c

Re: [External] Re: [RFC PATCH 00/15] Use obj_cgroup APIs to charge the LRU pages

2021-04-02 Thread Johannes Weiner
On Thu, Apr 01, 2021 at 10:15:45AM -0700, Shakeel Butt wrote: > On Thu, Apr 1, 2021 at 9:08 AM Muchun Song wrote: > > > [...] > > > The zombie issue is a pretty urgent concern that has caused several > > > production emergencies now. It needs a fix sooner rather than later. > > > > Thank you very

Re: [PATCH 1/8] CMDLINE: add generic builtin command line

2021-04-02 Thread Christophe Leroy
Le 30/03/2021 à 19:56, Daniel Walker a écrit : This code allows architectures to use a generic builtin command line. The state of the builtin command line options across architecture is diverse. MIPS and X86 once has similar systems, then mips added some options to allow extending the command

Re: [PATCH 1/6] KVM: nVMX: delay loading of PDPTRs to KVM_REQ_GET_NESTED_STATE_PAGES

2021-04-02 Thread Sean Christopherson
On Thu, Apr 01, 2021, Maxim Levitsky wrote: > Similar to the rest of guest page accesses after migration, > this should be delayed to KVM_REQ_GET_NESTED_STATE_PAGES > request. FWIW, I still object to this approach, and this patch has a plethora of issues. I'm not against deferring various state

Re: [PATCH 1/2] block: shutdown blktrace in case of fatal signal pending

2021-04-02 Thread Christoph Hellwig
On Wed, Mar 31, 2021 at 08:16:50AM +0800, Ming Lei wrote: > On Tue, Mar 30, 2021 at 06:53:30PM +0200, Christoph Hellwig wrote: > > On Tue, Mar 23, 2021 at 04:14:39PM +0800, Ming Lei wrote: > > > blktrace may allocate lots of memory, if the process is terminated > > > by user or OOM, we need to

Re: [RFC PATCH 2/2] drivers: soc: qcom: Add SDPM clock monitor driver

2021-04-02 Thread manafm
On 2021-04-02 15:49, AngeloGioacchino Del Regno wrote: Il 02/04/21 08:59, Manaf Meethalavalappu Pallikunhi ha scritto: Add SDPM clock monitor driver, which will register for clock rate change notification and write the clock rate into SDPM CSR register. Signed-off-by: Ram Chandrasekar

Re: [PATCH v2] firmware: qcom_scm: Only compile legacy calls on ARM

2021-04-02 Thread Stephen Boyd
Quoting Stephan Gerhold (2021-04-02 03:18:04) > On Thu, Apr 01, 2021 at 11:58:48PM -0700, Stephen Boyd wrote: > > Quoting Elliot Berman (2021-04-01 18:12:14) > > > > > > It might be a good idea to wrap these lines from qcom_scm_call with #if > > > IS_ENABLED(CONFIG_ARM), and the corresponding

[PATCH net v2] atl1c: move tx cleanup processing out of interrupt

2021-04-02 Thread Gatis Peisenieks
Tx queue cleanup happens in interrupt handler on same core as rx queue processing. Both can take considerable amount of processing in high packet-per-second scenarios. Sending big amounts of packets can stall the rx processing which is unfair and also can lead to to out-of-memory condition

Re: [RFC PATCH v3 0/7] Extend regulator notification support

2021-04-02 Thread Mark Brown
On Thu, Mar 11, 2021 at 12:21:01PM +0200, Matti Vaittinen wrote: > Extend regulator notification support > > This is an RFC series for getting feedback on extending the regulator > notification and error flag support. Initial discussion on the topic can > be found here: This looks good apart

Re: [RFC PATCH v3 7/7] regulator: bd9576: Fix the driver name in id table

2021-04-02 Thread Mark Brown
On Thu, Mar 11, 2021 at 12:24:29PM +0200, Matti Vaittinen wrote: > Driver name was changed in MFD cell: > https://lore.kernel.org/lkml/560b9748094392493ebf7af11b6cc558776c4fd5.1613031055.git.matti.vaitti...@fi.rohmeurope.com/ > Fix the ID table to match this. This looks unrelated to the rest of

Re: [RFC PATCH v3 4/7] regulator: add property parsing and callbacks to set protection limits

2021-04-02 Thread Mark Brown
On Thu, Mar 11, 2021 at 12:23:02PM +0200, Matti Vaittinen wrote: > + /* > + * Existing logic does not warn if over_current_protection is given as > + * a constraint but driver does not support that. I think we should > + * warn about this type of issues as it is possible

Re: linux-next: build warning after merge of the pm tree

2021-04-02 Thread Rafael J. Wysocki
On Wednesday, March 31, 2021 8:22:54 AM CEST Vitaly Kuznetsov wrote: > Stephen Rothwell writes: > > > Hi all, > > > > After merging the pm tree, today's linux-next build (x86_64 allmodconfig) > > produced this warning: > > > > drivers/acpi/processor_idle.c: In function 'acpi_idle_play_dead': > >

Re: [RFC PATCH] nvme: allow NVME_IOCTL_IO_CMD on controller char dev even when multiple ns

2021-04-02 Thread Christoph Hellwig
Well, there is at least one good reason for not allowing this retroactively: Old users of the ioctl could have complete garbage in the field, and might send the command to a random namespace now instead of the first one. So unles we have a very good reason I think we should keep

Re: [PATCH 2/3] fpga: region: Add fpga-region property 'power-domains'

2021-04-02 Thread Moritz Fischer
On Fri, Apr 02, 2021 at 02:50:48PM +0530, Nava kishore Manne wrote: > Add fpga-region property 'power-domains' to allow to handle > the FPGA/PL power domins. > > dt-bindings: fpga: Enable PM generic domain support > > Signed-off-by: Nava kishore Manne > --- >

[PATCH] crypto: qat: Fix a double free in adf_create_ring

2021-04-02 Thread Lv Yunlong
In adf_create_ring, if the callee adf_init_ring() failed, the callee will free the ring->base_addr by dma_free_coherent() and return -EFAULT. Then adf_create_ring will goto err and the ring->base_addr will be freed again in adf_cleanup_ring(). My patch sets ring->base_addr to NULL after the first

Re: [RFC PATCH v3 3/7] regulator: IRQ based event/error notification helpers

2021-04-02 Thread Mark Brown
On Thu, Mar 11, 2021 at 12:22:36PM +0200, Matti Vaittinen wrote: > @@ -0,0 +1,423 @@ > +// SPDX-License-Identifier: GPL-2.0 > +/* > + * Copyright (C) 2021 ROHM Semiconductors Please make the entire comment a C++ one so things look more consistent. > +static void

[PATCH] rtlwifi: remove rtl_get_tid_h

2021-04-02 Thread Christophe JAILLET
'rtl_get_tid_h()' is the same as 'ieee80211_get_tid()'. So this function can be removed to save a line of code. Signed-off-by: Christophe JAILLET --- drivers/net/wireless/realtek/rtlwifi/wifi.h | 7 +-- 1 file changed, 1 insertion(+), 6 deletions(-) diff --git

Re: [PATCH v2 6/9] KVM: x86: implement KVM_GUESTDBG_BLOCKEVENTS

2021-04-02 Thread Paolo Bonzini
On 01/04/21 15:54, Maxim Levitsky wrote: KVM_GUESTDBG_BLOCKEVENTS is a guest debug feature that will allow KVM to block all interrupts while running. It is mostly intended to be used together with single stepping, to make it more robust, and has the following benefits: * Resuming from a

Re: [PATCH v1] RAS/CEC: Memory Corrected Errors consistent event filtering

2021-04-02 Thread Borislav Petkov
On Fri, Apr 02, 2021 at 06:00:42PM +0200, William Roche wrote: > Corrected Errors are not the best indicators for a failing DIMM In the OS, errors reported through different mechanisms is all we have. > For the moment we will have the CE MCE handled my the MCE_HANDLED_CEC > aware notifiers only

Re: BUG_ON(!mapping_empty(>i_data))

2021-04-02 Thread Matthew Wilcox
OK, more competent testing, and that previous bug now detected and fixed. I have a reasonable amount of confidence this will solve your problem. If you do apply this patch, don't enable CONFIG_TEST_XARRAY as the new tests assume that attempting to allocate with a GFP flags of 0 will definitely

[PATCH] ARM: dts: at91: sama5d2: add ETB and ETM unit name

2021-04-02 Thread nicolas.ferre
From: Nicolas Ferre Add unit address to the ETB and ETM nodes. It also allow us to get rid of the warnings: ../arch/arm/boot/dts/sama5d2.dtsi:43.6-57.4: Warning (unit_address_vs_reg): /etb: node has a reg or ranges property, but no unit name ../arch/arm/boot/dts/sama5d2.dtsi:59.6-73.4: Warning

Re: [PATCH] dt-bindings: fpga: fpga-region: Convert to sugar syntax

2021-04-02 Thread Moritz Fischer
Hi Geert, On Fri, Apr 02, 2021 at 01:57:49PM +0200, Geert Uytterhoeven wrote: > Using overlay sugar syntax makes the DTS files easier to read (and > write). > > While at it, fix two build issues: > - "/dts-v1/" and "/plugin/" must be separate statements. > - Add a missing closing curly

Re: [PATCH v2 0/3] Export fast_io_fail_tmo to sysfs

2021-04-02 Thread Christoph Hellwig
Thanks, applied to nvme-5.13.

[PATCH 1/1] dmaengine: idxd: Add IDXD performance monitor support

2021-04-02 Thread Tom Zanussi
Enable the IDXD performance monitor capability (named 'perfmon' in the DSA (Data Streaming Accelerator) spec [1]), which supports the collection of information about key events occurring during DSA and IAX (Intel Analytics Accelerator) device execution, to assist in performance tuning and

[PATCH 0/1] dmaengine: idxd: IDXD pmu support

2021-04-02 Thread Tom Zanussi
Hi, This patchset implements initial pmu support for the Intel DSA (Data Streaming Accelerator [1]), which I'm hoping can go into 5.13. I'm also hoping to supply a couple follow-on patches in the near future, but I'm not yet sure how much sense they make, so I thought I'd throw a couple ideas

[PATCH v1 1/2] dt-bindings: power: Add documentation for imx8m power domain driver

2021-04-02 Thread Adrien Grassein
Add documentation for the imx8m(m|n|p) power domain driver. Signed-off-by: Adrien Grassein --- .../bindings/power/fsl,imx-power-domain.yaml | 89 +++ MAINTAINERS | 8 ++ include/dt-bindings/power/imx8mm-power.h | 21 +

[PATCH v1 2/2] soc: imx: add Power Domain driver for i.MX8M(M|N|P)

2021-04-02 Thread Adrien Grassein
Add code allowing to control the power domain of some i.MX8 socs. Signed-off-by: Adrien Grassein --- MAINTAINERS| 2 + drivers/soc/imx/Kconfig| 7 + drivers/soc/imx/Makefile | 1 + drivers/soc/imx/imx8m_pm_domains.c | 233

[PATCH v1 0/2] Add imx8m power domain driver

2021-04-02 Thread Adrien Grassein
Hi, this patch et aims to add the support of the i.MX 8 Power Domain driver. Some devices (like usbotg2) can't work without this patch as their attached power domain are down. The original drivr was taken from le imx kernel and aapted to fit with the actual mainline (minor fixes). Thanks,

Re: [PATCH v2] pseries: prevent free CPU ids to be reused on another node

2021-04-02 Thread Nathan Lynch
Laurent Dufour writes: > Le 02/04/2021 à 15:34, Nathan Lynch a écrit : >> Laurent Dufour writes: >>> When a CPU is hot added, the CPU ids are taken from the available mask from >>> the lower possible set. If that set of values was previously used for CPU >>> attached to a different node, this

Re: [PATCH v2] nvme: disallow passthru cmd from targeting a nsid != nsid of the block dev

2021-04-02 Thread Christoph Hellwig
On Fri, Mar 26, 2021 at 07:48:00PM +, Niklas Cassel wrote: > From: Niklas Cassel > > When a passthru command targets a specific namespace, the ns parameter to > nvme_user_cmd()/nvme_user_cmd64() is set. However, there is currently no > validation that the nsid specified in the passthru

[RESEND PATCH v4 3/3] gpio: xilinx: Utilize generic bitmap_get_value and _set_value

2021-04-02 Thread Syed Nayyar Waris
This patch reimplements the xgpio_set_multiple() function in drivers/gpio/gpio-xilinx.c to use the new generic functions: bitmap_get_value() and bitmap_set_value(). The code is now simpler to read and understand. Moreover, instead of looping for each bit in xgpio_set_multiple() function, now we

[RESEND PATCH v4 2/3] gpio: thunderx: Utilize for_each_set_nbits macro

2021-04-02 Thread Syed Nayyar Waris
This patch reimplements the thunderx_gpio_set_multiple function in drivers/gpio/gpio-thunderx.c to use the new for_each_set_nbits macro. Instead of looping for each bank in thunderx_gpio_set_multiple function, now we can skip bank which is not set and save cycles. Cc: Robert Richter Cc: Bartosz

[RESEND PATCH v4 1/3] gpiolib: Introduce the for_each_set_nbits macro

2021-04-02 Thread Syed Nayyar Waris
This macro iterates for each group of bits (clump) with set bits, within a bitmap memory region. For each iteration, "start" is set to the bit offset of the found clump, while the respective clump value is stored to the location pointed by "clump". Additionally, the bitmap_get_value() and

[RESEND PATCH v4 0/3] Introduce the for_each_set_nbits macro

2021-04-02 Thread Syed Nayyar Waris
Hello Bartosz, Since this patchset primarily affects GPIO drivers, would you like to pick it up through your GPIO tree? This patchset introduces a new generic version of for_each_set_nbits. The previous version of for_each_set_clump8 used a fixed size 8-bit clump, but the new generic version can

Re: [PATCH v4 3/3] gpio: xilinx: Utilize generic bitmap_get_value and _set_value

2021-04-02 Thread Syed Nayyar Waris
On Fri, Apr 2, 2021 at 3:42 PM Syed Nayyar Waris wrote: > > This patch reimplements the xgpio_set_multiple() function in > drivers/gpio/gpio-xilinx.c to use the new generic functions: > bitmap_get_value() and bitmap_set_value(). The code is now simpler > to read and understand. Moreover, instead

Re: [PATCH net-next v8 2/2] net: Add Qcom WWAN control driver

2021-04-02 Thread kernel test robot
Hi Loic, I love your patch! Perhaps something to improve: [auto build test WARNING on net-next/master] url: https://github.com/0day-ci/linux/commits/Loic-Poulain/net-Add-a-WWAN-subsystem/20210402-220002 base: https://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next.git

Re: [PATCH] nfc: s3fwrn5: remove unnecessary label

2021-04-02 Thread Krzysztof Kozlowski
On 02/04/2021 14:15, samirweng1979 wrote: > From: wengjianfeng > > In function s3fwrn5_nci_post_setup, The variable ret is assigned to 0, > then goto out label, but just return ret in out label, so we use > return 0 to replace it. and other goto sentences are similar, we use > return sentences

Re: [PATCH] drm/amdgpu: Fix a potential sdma invalid access

2021-04-02 Thread Christian König
Hi Qu, Am 02.04.21 um 05:18 schrieb Qu Huang: Before dma_resv_lock(bo->base.resv, NULL) in amdgpu_bo_release_notify(), the bo->base.resv lock may be held by ttm_mem_evict_first(), That can't happen since when bo_release_notify is called the BO has not more references and is therefore

Re: [RFC PATCH 04/15] mm: memcontrol: use lruvec_memcg in lruvec_holds_page_lru_lock

2021-04-02 Thread Johannes Weiner
On Tue, Mar 30, 2021 at 06:15:20PM +0800, Muchun Song wrote: > We already have a helper lruvec_memcg() to get the memcg from lruvec, we > do not need to do it ourselves in the lruvec_holds_page_lru_lock(). So use > lruvec_memcg() instead. > > Signed-off-by: Muchun Song > --- >

Re: [PATCH v14 00/13] s390/vfio-ap: dynamic configuration support

2021-04-02 Thread Tony Krowiak
On 4/1/21 3:17 PM, Halil Pasic wrote: On Wed, 31 Mar 2021 11:22:43 -0400 Tony Krowiak wrote: Change log v13-v14: -- When testing I've experienced this kernel panic. I am able to recreate this, but only when the kernel is built with the debug_defconfig configuration. I'll

[PATCH v3 3/3] Input: add driver for the Hycon HY46XX touchpanel series

2021-04-02 Thread Giulio Benetti
This patch adds support for Hycon HY46XX. Signed-off-by: Giulio Benetti --- V1->V2: * removed proximity-sensor-switch property according to previous patch As suggested by Dmitry Torokhov * moved i2c communaction to regmap use * added macro to avoid magic number * removed cmd variable that could

[PATCH v3 2/3] dt-bindings: touchscreen: Add HY46XX bindings

2021-04-02 Thread Giulio Benetti
This adds device tree bindings for the Hycon HY46XX touchscreen series. Signed-off-by: Giulio Benetti --- V1->V2: As suggested by Rob Herring: * fixed $id: address * added "hycon," in front of every custom property * changed all possible property to boolean type * removed proximity-sensor-switch

[PATCH v3 1/3] dt-bindings: Add Hycon Technology vendor prefix

2021-04-02 Thread Giulio Benetti
Update Documentation/devicetree/bindings/vendor-prefixes.yaml to include "hycon" as a vendor prefix for "Hycon Technology". Company website: https://www.hycontek.com/ Signed-off-by: Giulio Benetti Reviewed-by: Jonathan Neuschäfer --- Documentation/devicetree/bindings/vendor-prefixes.yaml | 2

[PATCH v3 0/3] Input: add Hycon HY46XX Touchscreen controller

2021-04-02 Thread Giulio Benetti
This patchset adds Hycon vendor, HY46XX touchscreen controller driver and its .yaml binding. --- V1->V2: * changed authorship and SoBs to @benettiengineering.com domain * fixed vendor commit log according to Jonathan Neuschäfer's suggestion * fixed hy46xx bindings according to Rob Herring's

Re: [PATCH -next] gpio: GPIO_SCH: depends on PCI same as LPC_SCH

2021-04-02 Thread Randy Dunlap
On 4/2/21 2:00 AM, Andy Shevchenko wrote: > On Friday, April 2, 2021, Randy Dunlap wrote: > >> Since LPC_SCH depends on PCI, GPIO_SCH must also depend on PCI >> to prevent kconfig warning and build errors: >> >> WARNING: unmet direct dependencies detected for LPC_SCH >> Depends on [n]:

Re: [PATCH v3 3/4] kernel/smp: add more data to CSD lock debugging

2021-04-02 Thread Paul E. McKenney
On Fri, Apr 02, 2021 at 05:46:52PM +0200, Juergen Gross wrote: > On 30.03.21 19:33, Paul E. McKenney wrote: > > On Wed, Mar 24, 2021 at 11:18:03AM +0100, Jürgen Groß wrote: > > > On 02.03.21 07:28, Juergen Gross wrote: > > > > In order to help identifying problems with IPI handling and remote > >

Re: [PATCH v1 2/2] scsi: pm8001: clean up for open brace

2021-04-02 Thread Bart Van Assche
On 4/2/21 2:08 AM, Luo Jiaxing wrote: > -static struct flash_command flash_command_table[] = > -{ > +static struct flash_command flash_command_table[] = { > {"set_nvmd",FLASH_CMD_SET_NVMD}, > {"update", FLASH_CMD_UPDATE}, > {"",FLASH_CMD_NONE} /* Last entry

[GIT PULL] Power management fixes for v5.12-rc6

2021-04-02 Thread Rafael J. Wysocki
Hi Linus, Please pull from the tag git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git \ pm-5.12-rc6 with top-most commit ac1790ad78f8f0cf9a588ffb530c700ad758e8b6 Merge branch 'pm-cpufreq' on top of commit a5e13c6df0e41702d2b2c77c8ad41677ebb065b3 Linux 5.12-rc5 to receive

Re: [PATCH v1 1/2] scsi: pm8001: clean up for white space

2021-04-02 Thread Bart Van Assche
On 4/2/21 2:08 AM, Luo Jiaxing wrote: > #define AAP1_MEMMAP(r, c) \ > - (*(u32 *)((u8*)pm8001_ha->memoryMap.region[AAP1].virt_ptr + (r) * 32 \ > + (*(u32 *)((u8 *)pm8001_ha->memoryMap.region[AAP1].virt_ptr + (r) * 32 \ > + (c))) Since this macro is being modified, please convert it

Re: [PATCH v1] RAS/CEC: Memory Corrected Errors consistent event filtering

2021-04-02 Thread William Roche
On 01/04/2021 18:12, Borislav Petkov wrote: On Mon, Mar 29, 2021 at 11:44:05AM +0200, William Roche wrote: I totally agree with you, and in order to schedule a replacement, MCEs information (enriched by the notifiers chain) are more meaningful than only PFN values. Well, if you want to

[PATCH 2/4] KVM: MIPS: rework flush_shadow_* callbacks into one that prepares the flush

2021-04-02 Thread Paolo Bonzini
Both trap-and-emulate and VZ have a single implementation that covers both .flush_shadow_all and .flush_shadow_memslot, and both of them end with a call to kvm_flush_remote_tlbs. Unify the callbacks into one and extract the call to kvm_flush_remote_tlbs. The next patches will pull it further out

[PATCH 3/4] KVM: MIPS: let generic code call prepare_flush_shadow

2021-04-02 Thread Paolo Bonzini
Since all calls to kvm_flush_remote_tlbs must be preceded by kvm_mips_callbacks->prepare_flush_shadow, repurpose kvm_arch_flush_remote_tlb to invoke it. This makes it possible to use the TLB flushing mechanism provided by the generic MMU notifier code. Signed-off-by: Paolo Bonzini ---

[PATCH 4/4] KVM: MIPS: defer flush to generic MMU notifier code

2021-04-02 Thread Paolo Bonzini
Return 1 from kvm_unmap_hva_range and kvm_set_spte_hva if a flush is needed, so that the generic code can coalesce the flushes. Signed-off-by: Paolo Bonzini --- arch/mips/kvm/mmu.c | 11 ++- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/arch/mips/kvm/mmu.c

[PATCH 1/4] KVM: constify kvm_arch_flush_remote_tlbs_memslot

2021-04-02 Thread Paolo Bonzini
memslots are stored in RCU and there should be no need to change them. Signed-off-by: Paolo Bonzini --- arch/arm64/kvm/arm.c | 2 +- arch/mips/kvm/mips.c | 2 +- arch/x86/kvm/mmu/mmu.c | 2 +- include/linux/kvm_host.h | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff

[PATCH 0/4] KVM: MIPS: cleanup TLB flushing callbacks

2021-04-02 Thread Paolo Bonzini
This series cleans up the flush_shadow_all and flush_shadow_memslot callbacks, turning them into a single function that can be called from kvm_arch_flush_remote_tlb. This lets MIPS use the generic TLB flushing code in the MMU notifiers. With the upcoming refactoring of generic MMU notifier code,

Re: [PATCH 1/2] thermal: power_allocator: maintain the device statistics from going stale

2021-04-02 Thread Daniel Lezcano
On 31/03/2021 18:33, Lukasz Luba wrote: > When the temperature is below the first activation trip point the cooling > devices are not checked, so they cannot maintain fresh statistics. It > leads into the situation, when temperature crosses first trip point, the > statistics are stale and show

[PATCH v26 10/10] fs/ntfs3: Add MAINTAINERS

2021-04-02 Thread Konstantin Komarov
This adds MAINTAINERS Signed-off-by: Konstantin Komarov --- MAINTAINERS | 7 +++ 1 file changed, 7 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 38d823d72..498f7af01 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -12926,6 +12926,13 @@ T: git

[PATCH v26 07/10] fs/ntfs3: Add NTFS journal

2021-04-02 Thread Konstantin Komarov
This adds NTFS journal Signed-off-by: Konstantin Komarov --- fs/ntfs3/fslog.c | 5181 ++ 1 file changed, 5181 insertions(+) create mode 100644 fs/ntfs3/fslog.c diff --git a/fs/ntfs3/fslog.c b/fs/ntfs3/fslog.c new file mode 100644 index

[PATCH v26 08/10] fs/ntfs3: Add Kconfig, Makefile and doc

2021-04-02 Thread Konstantin Komarov
This adds Kconfig, Makefile and doc Signed-off-by: Konstantin Komarov --- Documentation/filesystems/ntfs3.rst | 107 fs/ntfs3/Kconfig| 46 fs/ntfs3/Makefile | 34 + 3 files changed, 187 insertions(+)

[PATCH v26 09/10] fs/ntfs3: Add NTFS3 in fs/Kconfig and fs/Makefile

2021-04-02 Thread Konstantin Komarov
This adds NTFS3 in fs/Kconfig and fs/Makefile Signed-off-by: Konstantin Komarov --- fs/Kconfig | 1 + fs/Makefile | 1 + 2 files changed, 2 insertions(+) diff --git a/fs/Kconfig b/fs/Kconfig index 9e7e47933..1bf7b82d5 100644 --- a/fs/Kconfig +++ b/fs/Kconfig @@ -146,6 +146,7 @@ menu

[PATCH v26 06/10] fs/ntfs3: Add compression

2021-04-02 Thread Konstantin Komarov
This patch adds different types of NTFS-applicable compressions: - lznt - lzx - xpress Latter two (lzx, xpress) implement Windows Compact OS feature and were taken from ntfs-3g system comression plugin authored by Eric Biggers (https://github.com/ebiggers/ntfs-3g-system-compression) which were

[PATCH v26 05/10] fs/ntfs3: Add attrib operations

2021-04-02 Thread Konstantin Komarov
This adds attrib operations Signed-off-by: Konstantin Komarov --- fs/ntfs3/attrib.c | 2082 +++ fs/ntfs3/attrlist.c | 456 ++ fs/ntfs3/xattr.c| 1046 ++ 3 files changed, 3584 insertions(+) create mode 100644

[PATCH v26 03/10] fs/ntfs3: Add bitmap

2021-04-02 Thread Konstantin Komarov
This adds bitmap Signed-off-by: Konstantin Komarov --- fs/ntfs3/bitfunc.c | 135 fs/ntfs3/bitmap.c | 1519 2 files changed, 1654 insertions(+) create mode 100644 fs/ntfs3/bitfunc.c create mode 100644 fs/ntfs3/bitmap.c diff --git

[PATCH v26 01/10] fs/ntfs3: Add headers and misc files

2021-04-02 Thread Konstantin Komarov
This adds headers and misc files Signed-off-by: Konstantin Komarov --- fs/ntfs3/debug.h | 64 +++ fs/ntfs3/ntfs.h| 1238 fs/ntfs3/ntfs_fs.h | 1085 ++ fs/ntfs3/upcase.c | 105 4 files changed, 2492

[PATCH v26 00/10] NTFS read-write driver GPL implementation by Paragon Software

2021-04-02 Thread Konstantin Komarov
This patch adds NTFS Read-Write driver to fs/ntfs3. Having decades of expertise in commercial file systems development and huge test coverage, we at Paragon Software GmbH want to make our contribution to the Open Source Community by providing implementation of NTFS Read-Write driver for the Linux

Re: [PATCH RESEND 0/3] x86/sgx: eextend ioctl

2021-04-02 Thread Dave Hansen
On 4/2/21 1:38 AM, Jethro Beekman wrote: >> So, we're talking here about pages that have been EEADDED, but for >> which we do not want to include the entire contents of the page? >> Do these contents always include the beginning of the page, or can >> the holes be anywhere? > Holes can be

[PATCH] clone3: add option to change owner of newly created namespaces

2021-04-02 Thread Pavel Tikhomirov
Let's add a flag CLONE_OWNER_NS and clone_args.userns_fd field to specify a user namespace for clone3 which would become an owner of newly created namespaces. This owner is restricted to be a descendant of current user namespace. It means that we can do clone while in more privileged user

[PATCH] drm/amdgpu: fix semicolon.cocci warnings

2021-04-02 Thread Julia Lawall
From: kernel test robot Remove unneeded semicolon. Generated by: scripts/coccinelle/misc/semicolon.cocci Fixes: 37439a51ff17 ("drm/amdgpu: Add mode2 reset support for aldebaran") CC: Lijo Lazar Reported-by: kernel test robot Signed-off-by: kernel test robot Signed-off-by: Julia Lawall ---

Re: [PATCH v3 3/4] kernel/smp: add more data to CSD lock debugging

2021-04-02 Thread Juergen Gross
On 30.03.21 19:33, Paul E. McKenney wrote: On Wed, Mar 24, 2021 at 11:18:03AM +0100, Jürgen Groß wrote: On 02.03.21 07:28, Juergen Gross wrote: In order to help identifying problems with IPI handling and remote function execution add some more data to IPI debugging code. There have been

Re: [RFC Part1 PATCH 04/13] x86/sev-snp: define page state change VMGEXIT structure

2021-04-02 Thread Borislav Petkov
On Thu, Apr 01, 2021 at 09:11:34AM -0500, Brijesh Singh wrote: > I guess I was trying to keep it in consistent with sev-es.h macro > definitions in which the command is used before the fields. In next > version, I will use the msb to lsb ordering. Yes pls. And then you could fix the sev-es.h

Re: [PATCH net-next v8 2/2] net: Add Qcom WWAN control driver

2021-04-02 Thread Greg KH
On Fri, Apr 02, 2021 at 05:41:01PM +0200, Loic Poulain wrote: > On Fri, 2 Apr 2021 at 16:05, Greg KH wrote: > > > > On Fri, Apr 02, 2021 at 04:06:37PM +0200, Loic Poulain wrote: > > > The MHI WWWAN control driver allows MHI QCOM-based modems to expose > > > different modem control protocols/ports

Re: [PATCH v3 07/25] x86/sgx: Initialize virtual EPC driver even when SGX driver is disabled

2021-04-02 Thread Sean Christopherson
On Fri, Apr 02, 2021, Borislav Petkov wrote: > On Fri, Mar 19, 2021 at 08:23:02PM +1300, Kai Huang wrote: > > Modify sgx_init() to always try to initialize the virtual EPC driver, > > even if the SGX driver is disabled. The SGX driver might be disabled > > if SGX Launch Control is in locked mode,

Re: [PATCH] fs: cifs: Remove unnecessary struct declaration

2021-04-02 Thread Steve French
merged into cifs-2.6.git for-next On Thu, Apr 1, 2021 at 2:52 AM Wan Jiabing wrote: > > struct cifs_readdata is declared twice. One is declared > at 208th line. > And struct cifs_readdata is defined blew. > The declaration here is not needed. Remove the duplicate. > > Signed-off-by: Wan Jiabing

Re: [PATCH v4] platform/x86: intel_pmc_core: export platform global_reset via sysfs.

2021-04-02 Thread David E. Box
Hi Tomas, I have a patch set that also adds the ETR3 register, although for an entirely different purpose. It doesn't touch the same bits. But your patch can be taken as is. I'll rebase on top of this one. Thanks. Reviewed-by: David E Box On Fri, 2021-04-02 at 18:21 +0300, Tomas Winkler wrote:

Re: [PATCH v3] Updated locking documentation for transaction_t

2021-04-02 Thread Theodore Ts'o
On Thu, Feb 11, 2021 at 06:14:10PM +0100, Alexander Lochmann wrote: > Some members of transaction_t are allowed to be read without > any lock being held if accessed from the correct context. > We used LockDoc's findings to determine those members. > Each member of them is marked with a short

Re: [PATCH v2] Updated locking documentation for journal_t

2021-04-02 Thread Theodore Ts'o
On Thu, Feb 11, 2021 at 10:51:55AM +0100, Alexander Lochmann wrote: > Some members of transaction_t are allowed to be read without > any lock being held if consistency doesn't matter. > Based on LockDoc's findings, we extended the locking > documentation of those members. > Each one of them is

Re: [PATCH] USB:ohci:fix ohci interruption problem

2021-04-02 Thread kernel test robot
' as documented in https://git-scm.com/docs/git-format-patch] url: https://github.com/0day-ci/linux/commits/Longfang-Liu/USB-ohci-fix-ohci-interruption-problem/20210402-173222 base: https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing config: x86_64-randconfig-a005-20210401 (attached

Re: [PATCH] zero-fill colormap in drivers/video/fbdev/core/fbcmap.c

2021-04-02 Thread Greg KH
On Wed, Mar 31, 2021 at 11:07:19PM +0100, Phillip Potter wrote: > Use kzalloc() rather than kmalloc() for the dynamically allocated parts > of the colormap in fb_alloc_cmap_gfp, to prevent a leak of random kernel > data to userspace under certain circumstances. > > Fixes a KMSAN-found infoleak

Re: [PATCH v3 12/17] sh: Convert to GENERIC_CMDLINE

2021-04-02 Thread Christophe Leroy
Le 26/03/2021 à 14:44, Christophe Leroy a écrit : This converts the architecture to GENERIC_CMDLINE. Signed-off-by: Christophe Leroy --- diff --git a/arch/sh/Kconfig b/arch/sh/Kconfig index e798e55915c2..fab84f62448c 100644 --- a/arch/sh/Kconfig +++ b/arch/sh/Kconfig @@ -16,6 +16,7 @@

Re: [PATCH v3 09/17] nios2: Convert to GENERIC_CMDLINE

2021-04-02 Thread Christophe Leroy
Le 29/03/2021 à 03:35, Tan, Ley Foon a écrit : -Original Message- From: Christophe Leroy Sent: Friday, March 26, 2021 9:45 PM To: w...@kernel.org; danie...@cisco.com; r...@kernel.org; dan...@gimpelevich.san-francisco.ca.us Cc: linux-a...@vger.kernel.org;

Re: [PATCH v3 01/17] cmdline: Add generic function to build command line.

2021-04-02 Thread Christophe Leroy
Le 30/03/2021 à 19:27, Daniel Walker a écrit : On Fri, Mar 26, 2021 at 01:44:48PM +, Christophe Leroy wrote: This code provides architectures with a way to build command line based on what is built in the kernel and what is handed over by the bootloader, based on selected compile-time

Re: [PATCH net-next v8 2/2] net: Add Qcom WWAN control driver

2021-04-02 Thread Loic Poulain
On Fri, 2 Apr 2021 at 16:05, Greg KH wrote: > > On Fri, Apr 02, 2021 at 04:06:37PM +0200, Loic Poulain wrote: > > The MHI WWWAN control driver allows MHI QCOM-based modems to expose > > different modem control protocols/ports via the WWAN framework, so that > > userspace modem tools or daemon

Re: [PATCH] I2C: JZ4780: Fix bug for Ingenic X1000.

2021-04-02 Thread Zhou Yanjie
Hi Wolfram, On 2021/3/31 下午3:18, Wolfram Sang wrote: Hi, Any write operation? I wonder then why nobody noticed before? The standard I2C communication should look like this: Read: device_addr + w, reg_addr, device_addr + r, data; Write: device_addr + w, reg_addr, data; But without this

Re: [PATCH bpf-next 3/5] libbpf: add low level TC-BPF API

2021-04-02 Thread Kumar Kartikeya Dwivedi
On Fri, Apr 02, 2021 at 05:49:29AM IST, Daniel Borkmann wrote: > On 3/31/21 11:44 AM, Kumar Kartikeya Dwivedi wrote: > > On Wed, Mar 31, 2021 at 02:55:47AM IST, Daniel Borkmann wrote: > > > Do we even need the _block variant? I would rather prefer to take the > > > chance > > > and make it as

<    1   2   3   4   5   6   7   8   9   >