[PATCH v3] platform: cros_ec: Reduce ligthbar get version command

2020-08-30 Thread Gwendal Grignou
By default, the lightbar commands are set to the biggest lightbar command and response. That length is greater than 128 bytes and may not work on all machines. But all EC are probed for lightbar by sending a get version request. Set that request size precisely. Before the command would be: cros_ec

Re: [PATCH v2] platform: cros_ec: Reduce ligthbar get version command

2020-08-30 Thread Gwendal Grignou
On Sat, Aug 29, 2020 at 8:54 AM Jonathan Cameron wrote: > > On Tue, 25 Aug 2020 17:29:45 -0700 > Gwendal Grignou wrote: > > > By default, the lightbar commands are set to the > > biggest lightbar command and response. That length is greater than 128 > > bytes and may not work on all machines. > >

[GIT PULL] EDAC urgent for v5.9-rc3

2020-08-30 Thread Borislav Petkov
Hi Linus, please pull a single fix for the ghes_edac driver to properly clear state on remove, when testing with CONFIG_DEBUG_TEST_DRIVER_REMOVE. Thx. --- The following changes since commit d012a7190fc1fd72ed48911e77ca97ba4521bccd: Linux 5.9-rc2 (2020-08-23 14:08:43 -0700) are available in t

Re: [PATCH 2/5] arm64: dts: imx8mm-beacon-kit: Add missing build through Makefile

2020-08-30 Thread Shawn Guo
On Sun, Aug 23, 2020 at 07:20:16PM +0200, Krzysztof Kozlowski wrote: > Add missing imx8mm-beacon-kit.dts object in Makefile so it will be build > when building dtbs. > > Signed-off-by: Krzysztof Kozlowski We have applied a patch from Rob [1] for that. Shawn [1] https://git.kernel.org/pub/scm/

Re: [ANNOUNCE] Reiser5: Selective File Migration - User Interface

2020-08-30 Thread Metztli Information Technology
On Sat, Aug 29, 2020 at 2:54 AM Edward Shishkin wrote: > > On 08/28/2020 01:50 AM, Edward Shishkin wrote: > > > > > > On 08/27/2020 11:53 PM, Metztli Information Technology wrote: > >> On Wed, Aug 26, 2020 at 2:13 PM Edward Shishkin > >> wrote: > >>> > >>> [...] > >>> > > FYI Although

drivers/usb/gadget/udc/tegra-xudc.c:2257:26: sparse: sparse: incorrect type in assignment (different base types)

2020-08-30 Thread kernel test robot
-s031-20200830 (attached as .config) compiler: aarch64-linux-gcc (GCC) 9.3.0 reproduce: wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # apt-get install sparse # sparse version: v0.6.2-191

Re: [PATCH 3/5] arm64: dts: imx8mm-beacon-som: Align regulator names with schema

2020-08-30 Thread Shawn Guo
On Sun, Aug 23, 2020 at 07:20:17PM +0200, Krzysztof Kozlowski wrote: > Device tree schema expects regulator names to be lowercase. This fixes > dtbs_check warnings like: > > pmic@4b: regulators:LDO1:regulator-name:0: 'LDO1' does not match > '^ldo[1-6]$' > > Signed-off-by: Krzysztof Kozlowsk

Re: [PATCH 1/5] dt-bindings: arm: fsl: Add Beacon i.MX8M Mini Development Kit binding

2020-08-30 Thread Shawn Guo
On Sun, Aug 23, 2020 at 07:20:15PM +0200, Krzysztof Kozlowski wrote: > Document the binding for Beacon EmbeddedWorks i.MX8M Mini Development > Kit board. > > Signed-off-by: Krzysztof Kozlowski Applied, thanks.

Re: [PATCH 5/5] arm64: dts: imx8mm-evk: Align regulator names with schema

2020-08-30 Thread Shawn Guo
On Sun, Aug 23, 2020 at 07:20:19PM +0200, Krzysztof Kozlowski wrote: > Device tree schema expects regulator names to be lowercase. This fixes > dtbs_check warnings like: > > pmic@4b: regulators:LDO1:regulator-name:0: 'LDO1' does not match > '^ldo[1-6]$' > > Signed-off-by: Krzysztof Kozlowsk

Re: [PATCH 4/5] arm64: dts: imx8mm-beacon-som: Fix atmel,24c64 EEPROM compatible

2020-08-30 Thread Shawn Guo
On Sun, Aug 23, 2020 at 07:20:18PM +0200, Krzysztof Kozlowski wrote: > Correct the EEPROM node compatible to match device tree schema (invalid > space, unknown ID) to fix dtbs_check warnings: > > arch/arm64/boot/dts/freescale/imx8mm-beacon-kit.dt.yaml: eeprom@50: > compatible: ['microchip, a

Re: [RFC/RFT PATCH 3/6] arm64, numa: Move pcibus_to_node definition to generic numa code

2020-08-30 Thread Atish Patra
On Sat, Aug 29, 2020 at 7:54 PM Bjorn Helgaas wrote: > > On Fri, Aug 28, 2020 at 06:11:50PM -0700, Atish Patra wrote: > > On Fri, Aug 28, 2020 at 9:15 AM Bjorn Helgaas wrote: > > > On Fri, Aug 28, 2020 at 10:48:30AM +0100, Jonathan Cameron wrote: > > > > On Fri, 14 Aug 2020 14:47:22 -0700 > > > >

Re: [PATCH 06/17] virt: acrn: Introduce VM management interfaces

2020-08-30 Thread Greg Kroah-Hartman
On Sat, Aug 29, 2020 at 07:04:36PM +0800, Shuo A Liu wrote: > Hi Greg, > > On Fri 28.Aug'20 at 12:27:38 +0200, Greg Kroah-Hartman wrote: > > On Tue, Aug 25, 2020 at 10:45:06AM +0800, shuo.a@intel.com wrote: > > > + default: > > > + pr_warn("Unknown IOCTL 0x%x!\n", cmd); > > > +

Re: [PATCH AUTOSEL 4.19 08/38] media: pci: ttpci: av7110: fix possible buffer overflow caused by bad DMA value in debiirq()

2020-08-30 Thread Jia-Ju Bai
On 2020/8/29 20:10, Pavel Machek wrote: Hi! The value av7110->debi_virt is stored in DMA memory, and it is assigned to data, and thus data[0] can be modified at any time by malicious hardware. In this case, "if (data[0] < 2)" can be passed, but then data[0] can be changed into a large number

[PATCH] staging: rtl8188eu: use __func__ in os_dep

2020-08-30 Thread Michael Straube
Use __func__ instead of hardcoded function names to clear checkpatch warnings. Signed-off-by: Michael Straube --- .../staging/rtl8188eu/os_dep/ioctl_linux.c| 80 +-- drivers/staging/rtl8188eu/os_dep/os_intfs.c | 36 - drivers/staging/rtl8188eu/os_dep/usb_intf.c |

Re: [PATCH trivial] xtensa: fix Kconfig typo

2020-08-30 Thread Max Filippov
On Sat, Aug 29, 2020 at 10:57 PM Randy Dunlap wrote: > > From: Randy Dunlap > > Correct trivial typo (ful -> full). > > Fixes: 76743c0e0915 ("xtensa: move kernel memory layout to platform options") > Signed-off-by: Randy Dunlap > Cc: Chris Zankel > Cc: Max Filippov > Cc: linux-xte...@linux-xte

Re: [PATCH 01/19] char_dev: replace cdev_map with an xarray

2020-08-30 Thread Greg Kroah-Hartman
On Sun, Aug 30, 2020 at 08:24:27AM +0200, Christoph Hellwig wrote: > None of the complicated overlapping regions bits of the kobj_map are > required for the character device lookup, so just a trivial xarray > instead. > > Signed-off-by: Christoph Hellwig Reviewed-by: Greg Kroah-Hartman

Re: [PATCH AUTOSEL 4.19 08/38] media: pci: ttpci: av7110: fix possible buffer overflow caused by bad DMA value in debiirq()

2020-08-30 Thread Jia-Ju Bai
On 2020/8/30 1:16, Laurent Pinchart wrote: On Sat, Aug 29, 2020 at 02:10:20PM +0200, Pavel Machek wrote: Hi! The value av7110->debi_virt is stored in DMA memory, and it is assigned to data, and thus data[0] can be modified at any time by malicious hardware. In this case, "if (data[0] < 2)"

Re: [PATCH 19/19] block: switch gendisk lookup to a simple xarray

2020-08-30 Thread Greg Kroah-Hartman
On Sun, Aug 30, 2020 at 08:24:45AM +0200, Christoph Hellwig wrote: > Now that bdev_map is only used for finding gendisks, we can use > a simple xarray instead of the regions tracking structure for it. > > Signed-off-by: Christoph Hellwig > --- > block/genhd.c | 208 --

[PATCH] USB: PHY: JZ4770: Use the generic PHY framework.

2020-08-30 Thread Zhou Yanjie
Used the generic PHY framework API to create the PHY, and move the driver to driver/phy/ingenic. Tested-by: 周正 (Zhou Zheng) Co-developed-by: 漆鹏振 (Qi Pengzhen) Signed-off-by: 漆鹏振 (Qi Pengzhen) Signed-off-by: 周琰杰 (Zhou Yanjie) --- drivers/phy/Kconfig| 1 + driv

[PATCH] USB: PHY: JZ4770: Use the generic PHY framework.

2020-08-30 Thread Zhou Yanjie
Used the generic PHY framework API to create the PHY, and move the driver to driver/phy/ingenic. Tested-by: 周正 (Zhou Zheng) Co-developed-by: 漆鹏振 (Qi Pengzhen) Signed-off-by: 漆鹏振 (Qi Pengzhen) Signed-off-by: 周琰杰 (Zhou Yanjie) --- drivers/phy/Kconfig| 1 + driv

Re: [net-next v5 1/6] net: marvell: prestera: Add driver for Prestera family ASIC devices

2020-08-30 Thread Vadym Kochan
Hi David, On Wed, Aug 26, 2020 at 07:34:46AM -0700, David Miller wrote: > From: Vadym Kochan > Date: Wed, 26 Aug 2020 11:17:44 +0300 > > > Initially there was (in RFC patch set), not locking, but _rcu list API > > used, because the port list is modified only by 1 writer when creating > > the por

Re: [PATCH v3 1/3] riscv: Set more data to cacheinfo

2020-08-30 Thread Pekka Enberg
Hi, On Fri, Aug 28, 2020 at 10:09 AM Zong Li wrote: > > Set cacheinfo.{size,sets,line_size} for each cache node, then we can > get these information from userland through auxiliary vector. > > Signed-off-by: Zong Li > --- > arch/riscv/kernel/cacheinfo.c | 59 ++-

Re: [EXT] [PATCH] bnx2x: correct a mistake when show error code

2020-08-30 Thread Igor Russkikh
> drivers/net/ethernet/broadcom/bnx2x/bnx2x_link.c | 5 ++--- > 1 file changed, 2 insertions(+), 3 deletions(-) > > diff --git a/drivers/net/ethernet/broadcom/bnx2x/bnx2x_link.c > b/drivers/net/ethernet/broadcom/bnx2x/bnx2x_link.c > index 1426c691c7c4..0346771396ce 100644 > --- a/drivers/net/e

Re: [net-next v5 0/6] net: marvell: prestera: Add Switchdev driver for Prestera family ASIC device 98DX326x (AC3x)

2020-08-30 Thread Vadym Kochan
Hi Chris, On Wed, Aug 26, 2020 at 04:30:35AM +, Chris Packham wrote: > Hi Vadym, > > On 26/08/20 12:20 am, Vadym Kochan wrote: > > Marvell Prestera 98DX326x integrates up to 24 ports of 1GbE with 8 > > ports of 10GbE uplinks or 2 ports of 40Gbps stacking for a largely > > wireless SMB deploym

Re: [PATCH v3 3/3] riscv: Add cache information in AUX vector

2020-08-30 Thread Pekka Enberg
On Fri, Aug 28, 2020 at 10:09 AM Zong Li wrote: > +uintptr_t get_cache_geometry(u32 level, enum cache_type type) > +{ > + struct cacheinfo *this_leaf = get_cacheinfo(level, type); > + uintptr_t ret = (this_leaf->ways_of_associativity << 16 | > +this_leaf->cohere

[PATCH v1] i2c: npcm7xx: bug fix timeout (usec instead of msec)

2020-08-30 Thread Tali Perry
i2c: npcm7xx: bug fix timeout (usec instead of msec) Signed-off-by: Tali Perry --- drivers/i2c/busses/i2c-npcm7xx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/i2c/busses/i2c-npcm7xx.c b/drivers/i2c/busses/i2c-npcm7xx.c index 75f07138a6fa..c118f93a2610 100644 ---

[PATCH] rtc: s3c: Simplify with dev_err_probe()

2020-08-30 Thread Krzysztof Kozlowski
Common pattern of handling deferred probe can be simplified with dev_err_probe(). Less code and the error value gets printed. Signed-off-by: Krzysztof Kozlowski --- drivers/rtc/rtc-s3c.c | 9 ++--- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/drivers/rtc/rtc-s3c.c b/drivers

Re: [PATCH v2 2/3] media: i2c: Add support for the OV8865 image sensor

2020-08-30 Thread kernel test robot
Hi "Kévin, Thank you for the patch! Yet something to improve: [auto build test ERROR on linuxtv-media/master] [also build test ERROR on sunxi/sunxi/for-next robh/for-next v5.9-rc2 next-20200828] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we

Re: [PATCH v1] [media] netup_unidvb: use generic power management

2020-08-30 Thread Sean Young
On Tue, Jul 28, 2020 at 02:57:17PM +0530, Vaibhav Gupta wrote: > The .suspend() and .resume() callbacks are not defined for this driver. > Still, their power management structure follows the legacy framework. To > bring it under the generic framework, simply remove the binding of > callbacks from "

[PATCH] mm/memory-failure: Fix return wrong value when isolate page fail

2020-08-30 Thread Muchun Song
When we isolate page fail, we should not return 0, because we do not set page HWPoison on any page. Signed-off-by: Muchun Song --- mm/memory-failure.c | 1 + 1 file changed, 1 insertion(+) diff --git a/mm/memory-failure.c b/mm/memory-failure.c index 696505f56910..4eb3c42ffe35 100644 --- a/mm/me

Re: [PATCH 05/17] virt: acrn: Introduce ACRN HSM basic driver

2020-08-30 Thread Shuo A Liu
Hi Dave, On Sat 29.Aug'20 at 9:12:22 -0700, Dave Hansen wrote: On 8/29/20 3:46 AM, Shuo A Liu wrote: On Fri 28.Aug'20 at 12:25:59 +0200, Greg Kroah-Hartman wrote: On Tue, Aug 25, 2020 at 10:45:05AM +0800, shuo.a@intel.com wrote: +static long acrn_dev_ioctl(struct file *filp, unsigned int

[PATCH] media: pci: ttpci: av7110: avoid compiler optimization of reading data[0] in debiirq()

2020-08-30 Thread Jia-Ju Bai
In debiirq(), data_0 stores the value of data[0], but it can be dropped by compiler optimization. Thus, data[0] is read through READ_ONCE(). Fixes: 6499a0db9b0f ("media: pci: ttpci: av7110: fix possible buffer overflow caused by bad DMA value in debiirq()") Reported-by: Pavel Machek Signed-off-b

Re: [PATCH] media: pci: ttpci: av7110: avoid compiler optimization of reading data[0] in debiirq()

2020-08-30 Thread Sean Young
On Sun, Aug 30, 2020 at 04:20:42PM +0800, Jia-Ju Bai wrote: > In debiirq(), data_0 stores the value of data[0], but it can be dropped > by compiler optimization. Thus, data[0] is read through READ_ONCE(). > > Fixes: 6499a0db9b0f ("media: pci: ttpci: av7110: fix possible buffer overflow > caused b

Re: [PATCH 1/2] mm: use add_page_to_lru_list()/page_lru()/page_off_lru()

2020-08-30 Thread Alex Shi
在 2020/8/30 上午2:12, Yu Zhao 写道: > On Thu, Aug 27, 2020 at 05:42:01PM -0600, Yu Zhao wrote: >> This is a trivial but worth having clean-up patch. There should be >> no side effects except page->lru is temporarily poisoned after it's >> deleted but before it's added to the new list in move_pages_t

[PATCH rdma-next v1 00/10] Restore failure of destroy commands

2020-08-30 Thread Leon Romanovsky
From: Leon Romanovsky Changelog: v1: * Changed returned value in efa_destroy_ah() from EINVAL to EOPNOTSUPP v0: * https://lore.kernel.org/lkml/20200824103247.1088464-1-l...@kernel.org - Hi, This series restores the ab

[PATCH] dt-bindings: gpu: arm,mali-utgard: Use unevaluatedProperties

2020-08-30 Thread Krzysztof Kozlowski
Additional properties or nodes actually might appear (e.g. operating points table) so use unevaluatedProperties to fix dtbs_check warnings like: arch/arm/boot/dts/exynos4210-i9100.dt.yaml: gpu@1300: 'opp_table' does not match any of the regexes: 'pinctrl-[0-9]+' Signed-off-by: Krzysztof

Re: [PATCH v1] [media] netup_unidvb: use generic power management

2020-08-30 Thread Vaibhav Gupta
On Sun, Aug 30, 2020 at 09:10:04AM +0100, Sean Young wrote: > On Tue, Jul 28, 2020 at 02:57:17PM +0530, Vaibhav Gupta wrote: > > The .suspend() and .resume() callbacks are not defined for this driver. > > Still, their power management structure follows the legacy framework. To > > bring it under th

Re: [PATCH v1] i2c: npcm7xx: bug fix timeout (usec instead of msec)

2020-08-30 Thread Avi Fishman
Hi Tali, On Sun, Aug 30, 2020 at 11:09 AM Tali Perry wrote: > > i2c: npcm7xx: bug fix timeout (usec instead of msec) > > Signed-off-by: Tali Perry > --- > drivers/i2c/busses/i2c-npcm7xx.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/i2c/busses/i2c-npcm7xx.c

[PATCH] dt-bindings: gpu: arm,mali-utgard: Correct Maxime's email

2020-08-30 Thread Krzysztof Kozlowski
Update the address of Maxime Ripard as one in @free-electrons.com does not work. Cc: Maxime Ripard Signed-off-by: Krzysztof Kozlowski --- Documentation/devicetree/bindings/gpu/arm,mali-utgard.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindi

Re: [PATCH V2] sysfs: Add sysfs_emit and sysfs_emit_at to format sysfs output

2020-08-30 Thread Julia Lawall
On Sat, 29 Aug 2020, Joe Perches wrote: > On Sat, 2020-08-29 at 16:48 -0700, Joe Perches wrote: > > Output defects can exist in sysfs content using sprintf and snprintf. > > > > sprintf does not know the PAGE_SIZE maximum of the temporary buffer > > used for outputting sysfs content and it's po

Re: [PATCH 5/5] powerpc: use the generic dma_ops_bypass mode

2020-08-30 Thread Cédric Le Goater
Hello, On 7/8/20 5:24 PM, Christoph Hellwig wrote: > Use the DMA API bypass mechanism for direct window mappings. This uses > common code and speed up the direct mapping case by avoiding indirect > calls just when not using dma ops at all. It also fixes a problem where > the sync_* methods were

Re: [PATCH] fat: Avoid oops when bdi->io_pages==0

2020-08-30 Thread OGAWA Hirofumi
Matthew Wilcox writes: > On Sun, Aug 30, 2020 at 10:54:35AM +0900, OGAWA Hirofumi wrote: >> Matthew Wilcox writes: >> >> Hm, io_pages is limited by driver setting too, and io_pages can be lower >> than ra_pages, e.g. usb storage. >> >> Assuming ra_pages is user intent of readahead window. So i

Re: sysfs output without newlines

2020-08-30 Thread Greg Kroah-Hartman
On Sat, Aug 29, 2020 at 11:23:43AM -0700, Joe Perches wrote: > While doing an investigation for a possible treewide conversion of > sysfs output using sprintf/snprintf/scnprintf, I discovered > several instances of sysfs output without terminating newlines. > > It seems likely all of these should

Re: [PATCH RFC 2/2] sysfs: add helper macro for showing simple integer values

2020-08-30 Thread Greg Kroah-Hartman
On Sun, Aug 30, 2020 at 12:37:17AM +0100, Alex Dewar wrote: > sysfs attributes are supposed to be only single values, which are > printed into a buffer of PAGE_SIZE. Accordingly, for many simple > attributes, sprintf() can be used like so: > static ssize_t my_show(..., char *buf) > { >

Re: [Linux-kernel-mentees] [PATCH] net: bluetooth: Fix null pointer deref in hci_phy_link_complete_evt

2020-08-30 Thread Greg KH
On Sat, Aug 29, 2020 at 10:27:12PM +0530, Anmol Karn wrote: > Fix null pointer deref in hci_phy_link_complete_evt, there was no > checking there for the hcon->amp_mgr->l2cap_conn->hconn, and also > in hci_cmd_work, for hdev->sent_cmd. > > To fix this issue Add pointer checking in hci_cmd_work an

Re: [Linux-kernel-mentees] [PATCH] net: bluetooth: Fix null pointer deref in hci_phy_link_complete_evt

2020-08-30 Thread Greg KH
On Sat, Aug 29, 2020 at 10:27:12PM +0530, Anmol Karn wrote: > Fix null pointer deref in hci_phy_link_complete_evt, there was no > checking there for the hcon->amp_mgr->l2cap_conn->hconn, and also > in hci_cmd_work, for hdev->sent_cmd. > > To fix this issue Add pointer checking in hci_cmd_work an

Re: [PATCH RFC leds + net-next v4 0/2] Add support for LEDs on Marvell PHYs

2020-08-30 Thread Pavel Machek
Hi! > > > The phydev name is not particularly nice: > > > > > > !mdio-mux!mdio@1!switch@0!mdio:00 ... > > > 400d.ethernet-1:00 > > > 400d.ethernet-1:01 > > > fixed-0:00 > > > > Not nice, I see. In particular, it contains ":"... which would be a > > problem. > > > > > The interface name

Re: [PATCH] iio: adc: rockchip_saradc: Select IIO_TRIGGERED_BUFFER

2020-08-30 Thread Alexandru Elisei
Hi Jonathan, On 8/29/20 3:57 PM, Jonathan Cameron wrote: > On Fri, 28 Aug 2020 18:42:42 +0100 > Alexandru Elisei wrote: > >> Building the Rockchip saradc driver can trigger the following error if the >> driver is compiled into the kernel, but the IIO triggered buffer is not: >> >> aarch64-linux-g

Re: Boot failure on gru-scarlet-inx with 5.9-rc2

2020-08-30 Thread Marc Zyngier
Hi Samuel, On 2020-08-29 21:54, Samuel Dionne-Riel wrote: Hi, The patch "of: address: Work around missing device_type property in pcie nodes" by Marc Zyngier, d1ac0002dd297069bb8448c2764c9c31c4668441, causes the "DUMO" variant of the gru-scarlet-inx, at the very least, to not boot. A gru-kevin

[PATCH v2] netup_unidvb: drop initialization of PM pointers

2020-08-30 Thread Vaibhav Gupta
The .suspend() and .resume() callbacks are not defined for this driver. Thus, just the unlisting of PM pointers in the struct initializer will make no change in its behavior. Still unlisting is necessary so as to get rid of .suspend and .resume pointers as they are part of the legacy framework and

Re: [PATCH v2] KVM: nVMX: fix the layout of struct kvm_vmx_nested_state_hdr

2020-08-30 Thread Paolo Bonzini
On 27/08/20 22:40, Sean Christopherson wrote: > Paolo pushed an alternative solution for 5.8, commit 5e105c88ab485 ("KVM: > nVMX: check for invalid hdr.vmx.flags"). His argument was that there was > no point in adding proper padding since we already broke the ABI, i.e. > damage done. > > So rathe

Re: [PATCH v2] KVM: nVMX: fix the layout of struct kvm_vmx_nested_state_hdr

2020-08-30 Thread Paolo Bonzini
On 27/08/20 22:40, Sean Christopherson wrote: > Paolo pushed an alternative solution for 5.8, commit 5e105c88ab485 ("KVM: > nVMX: check for invalid hdr.vmx.flags"). His argument was that there was > no point in adding proper padding since we already broke the ABI, i.e. > damage done. > > So rathe

[PATCH] ALSA: rockchip: fix a possible divide-by-zero bug in rockchip_i2s_hw_params()

2020-08-30 Thread Tuo Li
The variable bclk_rate is checked in: if (bclk_rate && mclk_rate % bclk_rate) This indicates that bclk_rate can be zero. If so, a divide-by-zero bug will occur: div_bclk = mclk_rate / bclk_rate; To fix this possible bug, the function returns -EINVAL when bclk_rate is zero. Signed-off-by: Tuo

Re: [ALTERNATE PATCH] memblock: fix min_low_pfn/max_low_pfn build errors

2020-08-30 Thread Mike Rapoport
Hi Randy, On Sat, Aug 29, 2020 at 08:40:51AM -0700, Randy Dunlap wrote: > On 8/29/20 6:04 AM, Mike Rapoport wrote: > > On Fri, Aug 28, 2020 at 05:01:39PM -0700, Randy Dunlap wrote: > >> Export min_low_pfn & max_low_pfn in mm/memblock.c to fix build errors > >> on arch/microblaze/ and arch/ia64/: (

Re: [PATCH v2 2/2] mm/pageblock: remove false sharing in pageblock_flags

2020-08-30 Thread Alex Shi
在 2020/8/20 上午12:50, Alexander Duyck 写道: > On Wed, Aug 19, 2020 at 1:11 AM Alex Shi wrote: >> >> >> >> 在 2020/8/19 下午3:57, Anshuman Khandual 写道: >>> >>> >>> On 08/19/2020 11:17 AM, Alex Shi wrote: Current pageblock_flags is only 4 bits, so it has to share a char size in cmpxchg when g

Re: [PATCH 05/11] kconfig: qconf: show data column all the time

2020-08-30 Thread Masahiro Yamada
On Sun, Aug 30, 2020 at 1:54 PM Randy Dunlap wrote: > > On 8/29/20 1:14 AM, Masahiro Yamada wrote: > > The next commit will allow users to edit "int", "hex", "string" > > menus in-place from the data column. > > > > The data column should be always displayed. > > > > Signed-off-by: Masahiro Yamada

[GIT PULL] USB fixes for 5.9-rc3 - take 2

2020-08-30 Thread Greg KH
The following changes since commit 9123e3a74ec7b934a4a099e98af6a61c2f80bbf5: Linux 5.9-rc1 (2020-08-16 13:04:57 -0700) are available in the Git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git tags/usb-5.9-rc3 for you to fetch changes up to 20934c0de13b49a072fb1e0

Re: [PATCH 06/11] kconfig: qconf: allow to edit "int", "hex", "string" menus in-place

2020-08-30 Thread Masahiro Yamada
On Sun, Aug 30, 2020 at 1:54 PM Randy Dunlap wrote: > > On 8/29/20 1:14 AM, Masahiro Yamada wrote: > > Previously, when you double-clicked the "int", "hex", or "string" menus, > > a line-edit gadget showed up to allow you to input the value, which > > looked clumsy. > > > > Also, it was buggy; the

Re: [PATCH] clk: versatile: Add of_node_put() before return statement

2020-08-30 Thread Linus Walleij
On Sat, Aug 29, 2020 at 7:57 PM Sumera Priyadarsini wrote: > Every iteration of for_each_available_child_of_node() decrements > the reference count of the previous node, however when control is > transferred from the middle of the loop, as in the case of a return > or break or goto, there is no d

Re: [PATCH v2 1/2] mm/pageblock: mitigation cmpxchg false sharing in pageblock flags

2020-08-30 Thread Alex Shi
在 2020/8/19 下午4:04, David Hildenbrand 写道: > On 19.08.20 09:55, Anshuman Khandual wrote: >> >> >> On 08/19/2020 11:17 AM, Alex Shi wrote: >>> pageblock_flags is used as long, since every pageblock_flags is just 4 >>> bits, 'long' size will include 8(32bit machine) or 16 pageblocks' flags, >>> tha

[PATCH rdma-next v1 00/13] Track memory allocation with restrack DB help

2020-08-30 Thread Leon Romanovsky
From: Leon Romanovsky Changelog: v1: * Fixed rebase error, deleted second assignment of qp_type. * Rebased code on latests rdma-next, the changes in cma.c caused to change in patch "RDMA/cma: Delete from restrack DB after successful destroy". * Dropped patch of port assignment, it is alread

Re: [PATCH v2 1/2] mm/pageblock: mitigation cmpxchg false sharing in pageblock flags

2020-08-30 Thread Alex Shi
在 2020/8/19 下午3:55, Anshuman Khandual 写道: > > > On 08/19/2020 11:17 AM, Alex Shi wrote: >> pageblock_flags is used as long, since every pageblock_flags is just 4 >> bits, 'long' size will include 8(32bit machine) or 16 pageblocks' flags, >> that flag setting has to sync in cmpxchg with 7 or 15

Re: [PATCH v2 00/23] Use asm-generic for mmu_context no-op functions

2020-08-30 Thread Mike Rapoport
On Thu, Aug 27, 2020 at 12:52:26AM +1000, Nicholas Piggin wrote: > It would be nice to be able to modify mmu_context functions or add a > hook without updating all architectures, many of which will be no-ops. > > The motivation for this series is a change to lazy mmu handling, but > this series st

Re: [PATCH v2 1/2] mm/pageblock: mitigation cmpxchg false sharing in pageblock flags

2020-08-30 Thread Matthew Wilcox
On Sun, Aug 30, 2020 at 06:14:33PM +0800, Alex Shi wrote: > +++ b/mm/page_alloc.c > @@ -532,9 +536,18 @@ void set_pfnblock_flags_mask(struct page *page, unsigned > long flags, > mask <<= bitidx; > flags <<= bitidx; > > +#ifdef CONFIG_CPU_V6 > + byte = (unsigned long)READ_ON

Re: [PATCH] USB: PHY: JZ4770: Use the generic PHY framework.

2020-08-30 Thread kernel test robot
tting patch, we suggest to use '--base' as documented in https://git-scm.com/docs/git-format-patch] url: https://github.com/0day-ci/linux/commits/Zhou-Yanjie/USB-PHY-JZ4770-Use-the-generic-PHY-framework/20200830-154912 base:b36c969764ab12faebb74711c942fa3e6eaf1e96 config: x86_64-

Re: [PATCH] remoteproc: scp: add COMPILE_TEST dependency

2020-08-30 Thread Mauro Carvalho Chehab
Em Fri, 21 Aug 2020 20:58:32 +0900 Alexandre Courbot escreveu: > This will improve this driver's build coverage. There is a pending pull request for media which seems to depend on this patch. Without it, COMPILE_TEST breaks at linux-media git tree, if I pick it. See: https://lore.kerne

Re: [PATCH] ASoC: rt5682: Prefer async probe

2020-08-30 Thread Cheng-yi Chiang
On Sat, Aug 29, 2020 at 7:20 AM Douglas Anderson wrote: > > The probe of rt5682 is pretty slow. A quick measurement shows that it > takes ~650 ms on at least one board. There's no reason to block all > other drivers waiting for this probe to finish. Set the flag to allow > other drivers to prob

[PATCH] dt-bindings: leds: common: Add mmc0 as default trigger

2020-08-30 Thread Krzysztof Kozlowski
MMC could be a default trigger so add a pattern to match it and fix dtbs_check warnings like: arch/arm/boot/dts/exynos4412-odroidx.dt.yaml: leds: led2:linux,default-trigger:0: 'mmc0' is not one of ['backlight', 'default-on', 'heartbeat', 'disk-activity', 'ide-disk', 'timer', 'pattern']

Re: [PATCH v2] platform: cros_ec: Reduce ligthbar get version command

2020-08-30 Thread Jonathan Cameron
On Sun, 30 Aug 2020 00:00:02 -0700 Gwendal Grignou wrote: > On Sat, Aug 29, 2020 at 8:54 AM Jonathan Cameron wrote: > > > > On Tue, 25 Aug 2020 17:29:45 -0700 > > Gwendal Grignou wrote: > > > > > By default, the lightbar commands are set to the > > > biggest lightbar command and response. Tha

Re: [RFC PATCH v2] iio: core: Add optional symbolic label to a device channel

2020-08-30 Thread Jonathan Cameron
On Mon, 24 Aug 2020 11:36:46 +0300 Cristian Pop wrote: > If a label is defined in the device tree for this channel add that > to the channel specific attributes. This is useful for userspace to > be able to identify an individual channel. > > Signed-off-by: Cristian Pop > --- > Changes in v2:

[PATCH 2/2] dt-bindings: sound: odroid: Use unevaluatedProperties

2020-08-30 Thread Krzysztof Kozlowski
Additional properties or nodes actually might appear (e.g. assigned-clocks) so use unevaluatedProperties to fix dtbs_check warnings like: arch/arm/boot/dts/exynos5422-odroidxu3.dt.yaml: sound: 'assigned-clock-parents', 'assigned-clock-rates', 'assigned-clocks' do not match any of the regexe

[PATCH 1/2] dt-bindings: sound: midas-audio: Correct parsing sound-dai phandles

2020-08-30 Thread Krzysztof Kozlowski
The "sound-dai" property has cells therefore phandle-array should be used, even if it is just one phandle. This fixes dtbs_check warnings like: arch/arm/boot/dts/exynos4412-trats2.dt.yaml: sound: cpu:sound-dai:0:1: missing phandle tag in 0 arch/arm/boot/dts/exynos4412-trats2.dt.yaml: sound:

[PATCH] dt-bindings: gpu: samsung-rotator: Use unevaluatedProperties

2020-08-30 Thread Krzysztof Kozlowski
Additional properties or nodes actually might appear (e.g. power domains) so use unevaluatedProperties to fix dtbs_check warnings like: arch/arm/boot/dts/exynos4210-i9100.dt.yaml: rotator@1281: 'iommus', 'power-domains' do not match any of the regexes: 'pinctrl-[0-9]+' Signed-off-by: Kr

Re: [PATCH v2] powerpc/32s: Disable VMAP stack which CONFIG_ADB_PMU

2020-08-30 Thread Michael Ellerman
On Thu, 27 Aug 2020 18:30:27 + (UTC), Christophe Leroy wrote: > low_sleep_handler() can't restore the context from virtual > stack because the stack can hardly be accessed with MMU OFF. > > For now, disable VMAP stack when CONFIG_ADB_PMU is selected. Applied to powerpc/fixes. [1/1] powerpc/3

Re: [PATCH] Documentation: submit-checklist: add Documentation clean builds

2020-08-30 Thread Mike Rapoport
On Sun, Aug 23, 2020 at 05:38:12PM -0700, Randy Dunlap wrote: > From: Randy Dunlap > > Add to Documentation/process/submit-checklist.rst that patch > submitters should run "make htmldocs" and verify that any > Documentation/ changes (patches) are clean (no new warnings/errors). > > Signed-off-by

Re: [PATCH v2] Documentation/x86: Add documentation for /proc/cpuinfo feature flags

2020-08-30 Thread Borislav Petkov
On Fri, Aug 28, 2020 at 03:30:32PM -0700, Kyung Min Park wrote: > Should I mention the tool specifically although the tool is WIP? Well, if you wanna look at it that way, the whole kernel is constantly and forever WIP. :-) Also, if there's some functionality missing, pointing to it might make peo

drivers/gpu/drm/i915/gt/uc/intel_guc_submission.c:259:19: error: unused function 'rq_prio'

2020-08-30 Thread kernel test robot
: x86_64-randconfig-r016-20200830 (attached as .config) compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project c10e63677f5d20f18010f8f68c631ddc97546f7d) reproduce (this is a W=1 build): wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin

[PATCH] fbdev: remove mbx framebuffer driver

2020-08-30 Thread Mike Rapoport
From: Mike Rapoport The only in-tree user for mbx driver for Intel 2700G graphics chip was cm-x270 platform. Since this platform was removed by the commit 9d3239147d6d ("ARM: pxa: remove Compulab pxa2xx boards") there is no point to keep the obsolete framebuffer driver. Signed-off-by: Mike Rapop

Re: [PATCH] fsldma: fsl_ioread64*() do not need lower_32_bits()

2020-08-30 Thread Luc Van Oostenryck
On Sat, Aug 29, 2020 at 10:29:55AM -0700, Linus Torvalds wrote: > On Sat, Aug 29, 2020 at 5:46 AM Luc Van Oostenryck > wrote: > > > > But the pointer is already 32-bit, so simply cast the pointer to u32. > > Yeah, that code was completely pointless. If the pointer had actually > been 64-bit, the

[PATCH v2] i2c: npcm7xx: bug fix timeout (usec instead of msec)

2020-08-30 Thread Tali Perry
i2c: npcm7xx: bug fix timeout (usec instead of msec) Signed-off-by: Tali Perry --- drivers/i2c/busses/i2c-npcm7xx.c | 9 +++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/drivers/i2c/busses/i2c-npcm7xx.c b/drivers/i2c/busses/i2c-npcm7xx.c index 75f07138a6fa..abb334492a3d 10

Re: [Linux-kernel-mentees] [PATCH] net: bluetooth: Fix null pointer deref in hci_phy_link_complete_evt

2020-08-30 Thread Anmol Karn
On Sun, Aug 30, 2020 at 11:19:17AM +0200, Greg KH wrote: > On Sat, Aug 29, 2020 at 10:27:12PM +0530, Anmol Karn wrote: > > Fix null pointer deref in hci_phy_link_complete_evt, there was no > > checking there for the hcon->amp_mgr->l2cap_conn->hconn, and also > > in hci_cmd_work, for hdev->sent_cm

[GIT PULL] Please pull powerpc/linux.git powerpc-5.9-4 tag

2020-08-30 Thread Michael Ellerman
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Hi Linus, Please pull some more powerpc fixes for 5.9: The following changes since commit 64ef8f2c4791940d7f3945507b6a45c20d959260: powerpc/perf/hv-24x7: Move cpumask file to top folder of hv-24x7 driver (2020-08-21 23:35:27 +1000) are availab

[PATCH] get_maintainer: add email addresses from dts files

2020-08-30 Thread Shawn Guo
MAINTAINER file will get bloated quickly if individual section entry is created for each .dts/.dtsi file. Add the email address from dts files to get_maintainer output for saving unnecessary patching on MAINTAINER file. Suggested-by: Joe Perches Signed-off-by: Shawn Guo --- scripts/get_maintai

Re: fsl_espi errors on v5.7.15

2020-08-30 Thread Nicholas Piggin
Excerpts from Chris Packham's message of August 28, 2020 8:07 am: > On 27/08/20 7:12 pm, Nicholas Piggin wrote: >> Excerpts from Heiner Kallweit's message of August 26, 2020 4:38 pm: >>> On 26.08.2020 08:07, Chris Packham wrote: On 26/08/20 1:48 pm, Chris Packham wrote: > On 26/08/20 10:22

Re: possible deadlock in proc_pid_syscall (2)

2020-08-30 Thread Eric W. Biederman
pet...@infradead.org writes: > On Fri, Aug 28, 2020 at 07:01:17AM -0500, Eric W. Biederman wrote: >> This feels like an issue where perf can just do too much under >> exec_update_mutex. In particular calling kern_path from >> create_local_trace_uprobe. Calling into the vfs at the very least >> m

Re: [PATCH] iio: pulse: Support PWM capture with TI AM3358 eCAP module

2020-08-30 Thread Jonathan Cameron
On Tue, 18 Aug 2020 10:36:14 -0500 Darren Schachter wrote: > This IIO driver adds support for PWM capture with the TI eCAP module. > This driver is based on Matt Porter's eCAP driver from January 2014, > which was never merged into the mainline [1]. Like Matt's code, this > driver implements inte

Re: [PATCH v2] i2c: npcm7xx: bug fix timeout (usec instead of msec)

2020-08-30 Thread Avi Fishman
On Sun, Aug 30, 2020 at 3:21 PM Tali Perry wrote: > > i2c: npcm7xx: bug fix timeout (usec instead of msec) > > Signed-off-by: Tali Perry Reviewed-by: Avi Fishman > --- > drivers/i2c/busses/i2c-npcm7xx.c | 9 +++-- > 1 file changed, 7 insertions(+), 2 deletions(-) > > diff --git a/drivers/i

Re: [PATCH v6 2/3] MAINTAINERS: Add Purism Librem 5 section to the list

2020-08-30 Thread Shawn Guo
On Fri, Aug 21, 2020 at 02:17:54PM +0200, Martin Kepplinger wrote: > Add development information for the devicetree files for hardware > by Purism SPC. > > Signed-off-by: Martin Kepplinger I decided to drop this patch from my queue, as I took the suggestion from Joe and sent a patch to have get_

[PATCH] veth: fix memory leak in veth_newlink()

2020-08-30 Thread Rustam Kovhaev
when register_netdevice(dev) fails we should check whether struct veth_rq has been allocated via ndo_init callback and free it, because, depending on the code path, register_netdevice() might not call priv_destructor() callback Reported-and-tested-by: syzbot+59ef240dd8f0ed759...@syzkaller.appspotm

Re: [PATCH v2] drm/vkms: add alpha-premultiplied color blending

2020-08-30 Thread Rodrigo Siqueira
Reviewed-by: Rodrigo Siqueira On 08/25, Melissa Wen wrote: > The VKMS blend function was ignoring the alpha channel and just > overwriting vaddr_src with vaddr_dst. This XRGB approach triggers a > warning when running the kms_cursor_crc/cursor-alpha-transparent test > case. In IGT, cairo_format_a

Re: [PATCH] arm64: dts: imx8mm-beacon-baseboard: Correct LED default state

2020-08-30 Thread Shawn Guo
On Mon, Aug 24, 2020 at 09:15:46AM +0200, Krzysztof Kozlowski wrote: > There is no LED default state "none". leds-gpio driver maps it to > "off", so correct them to fix dtbs_check warnings like: > > arch/arm64/boot/dts/freescale/imx8mm-beacon-kit.dt.yaml: > leds: led0:default-state:0: 'none

[PATCH 01/33] ARM: dts: exynos: Silence i2c-gpio dtschema warning in Galaxy I9100

2020-08-30 Thread Krzysztof Kozlowski
The name of I2C controller over GPIO lines node ends with '-gpio' which confuses dtschema: /arch/arm/boot/dts/exynos4210-i9100.dt.yaml: /: i2c-gpio: {'compatible': ['i2c-gpio'], ... 'maxim,over-volt': [[4500]]}} is not of type 'array' From schema: lib/python3.6/site-packages/dtschema/

[PATCH 02/33] ARM: dts: exynos: Correct GPU regulator properties in Galaxy I9100

2020-08-30 Thread Krzysztof Kozlowski
The regulator property 'regulator-microvolt-offset' should be put next to regulator definition, not consumer. The property 'regulator-microsecs-delay' is not valid at all. Signed-off-by: Krzysztof Kozlowski --- arch/arm/boot/dts/exynos4210-i9100.dts | 3 +-- 1 file changed, 1 insertion(+), 2 de

[PATCH 03/33] ARM: dts: exynos: Correct S3C RTC bindings and enable it in Galaxy I9100

2020-08-30 Thread Krzysztof Kozlowski
The S3C RTC requires 32768 Hz clock as input which is provided by PMIC (Maxim MAX8997). However there is no clock provided for the PMIC and the driver registers the clock as regulator. This is an old driver which will not be updated so add a workaround: 1. Enable the "clock" regulator in PMIC, 2.

[PATCH 04/33] ARM: dts: exynos: Correct S3C RTC bindings and enable it in Origen

2020-08-30 Thread Krzysztof Kozlowski
The S3C RTC requires 32768 Hz clock as input which is provided by PMIC (Maxim MAX8997). However there is no clock provided for the PMIC and the driver registers the clock as regulator. This is an old driver which will not be updated so add a workaround: 1. Enable the "clock" regulator in PMIC, 2.

[PATCH 10/33] ARM: dts: exynos: Add and enable 32 kHz modem clock in Trats

2020-08-30 Thread Krzysztof Kozlowski
The PMIC has a 32768 Hz clock used by the modem which is implemented by driver as a regulator. Add and enable it to be sure modem get's its signal. Signed-off-by: Krzysztof Kozlowski --- arch/arm/boot/dts/exynos4210-trats.dts | 5 + 1 file changed, 5 insertions(+) diff --git a/arch/arm/boo

[PATCH 11/33] ARM: dts: exynos: Remove empty camera pinctrl configuration in Trats

2020-08-30 Thread Krzysztof Kozlowski
The camera's pinctrl configuration is simply empty and not effective. Remove it to fix dtbs_check warning: arch/arm/boot/dts/exynos4210-trats.dt.yaml: camera: pinctrl-0: True is not of type 'array' Signed-off-by: Krzysztof Kozlowski --- arch/arm/boot/dts/exynos4210-trats.dts | 2 -- 1 file c

[PATCH 17/33] ARM: dts: exynos: Override thermal by label in Galaxy I9000

2020-08-30 Thread Krzysztof Kozlowski
Using full paths to extend or override a device tree node is error prone since if there was a typo error, a new node will be created instead of extending the node as it was desired. This will lead to run-time errors that could be hard to detect. A mistyped label on the other hand, will cause a dt

[PATCH 13/33] ARM: dts: exynos: Align SPI GPIO node name with dtschema in Universal C210

2020-08-30 Thread Krzysztof Kozlowski
The device tree schema expects SPI controller to be named "spi", otherwise dtbs_check complain with a warning like: arch/arm/boot/dts/exynos4210-universal_c210.dt.yaml: spi-lcd: $nodename:0: 'spi-lcd' does not match '^spi(@.*|-[0-9a-f])*$' Signed-off-by: Krzysztof Kozlowski --- arch/arm/b

[PATCH 18/33] ARM: dts: exynos: Override thermal by label in Trats

2020-08-30 Thread Krzysztof Kozlowski
Using full paths to extend or override a device tree node is error prone since if there was a typo error, a new node will be created instead of extending the node as it was desired. This will lead to run-time errors that could be hard to detect. A mistyped label on the other hand, will cause a dt

  1   2   3   4   5   6   >