[PATCH v2 45/49] Input: atmel_mxt_ts: use gpiod_set_value_cansleep for reset pin

2019-08-26 Thread Jiada Wang
From: Balasubramani Vivekanandan In case of remote display, touch controller will be also remote. In such cases, the reset pin of the touch controller will be controlled through bridging ICs like Deserilizer and Serializer. Therefore accessing the gpio pins require transactions with the external

[PATCH v2 47/49] input: atmel_mxt_ts: added sysfs interface to update atmel T38 data

2019-08-26 Thread Jiada Wang
From: Naveen Chakka Atmel touch controller contains T38 object where a user can store its own data of length 64 bytes. T38 data will not be part of checksum calculation on executing T6 BACKUP command. format used to update the T38 data is given below: offset: offset address of the data to b

[PATCH v2 42/49] Input: Atmel: Improve error handling in mxt_initialize_input_device()

2019-08-26 Thread Jiada Wang
From: Deepak Das Currently Driver probe continues with a warning message when it fails to get the proper multitouch object configurations like TouchScreen resolution. But Driver probe should fail in case of above scneario because it will not behave as expected without the proper touchscreen conf

[PATCH v2 40/49] Input: Atmel: improve error handling in mxt_initialize()

2019-08-26 Thread Jiada Wang
From: Deepak Das Currently mxt_initialize() tries to probe bootloader mode even if valid bootloader address is not specified. This commit modifies mxt_initialize() to return error if Device is not in appmode and bootloader address is not specified. This commit also returns error code from mxt_s

[PATCH v2 43/49] Input: Atmel: handle ReportID "0x00" while processing T5 messages

2019-08-26 Thread Jiada Wang
From: Deepak Das ReportID "0x00" is reserved by Atmel and should not be used by any Atmel touch controller. reportID is the first byte retrieved from T5 message payload. Currently Atmel driver continues to process the T5 messages even if the reportID "0x00" is returned by Touch Controller. This

[PATCH v2 44/49] Input: Atmel: use T44 object to process T5 messages

2019-08-26 Thread Jiada Wang
From: Deepak Das T44 object returns the count of valid T5 messages in the buffer. According to atmel, this count should be the main criteria to read the number of T5 messages. Following is the statement from atmel confirming the same :- "For the readout of messages we recommend to stop after the

[PATCH v2 41/49] Input: Atmel: improve error handling in mxt_update_cfg()

2019-08-26 Thread Jiada Wang
From: Deepak Das mxt_update_cfg() failed to propagate the error code from mxt_init_t7_power_cfg() so return the error code. Signed-off-by: Deepak Das Signed-off-by: George G. Davis Signed-off-by: Jiada Wang --- drivers/input/touchscreen/atmel_mxt_ts.c | 4 +++- 1 file changed, 3 insertions(+

[PATCH v2 46/49] input: touchscreen: atmel_mxt_ts: Added sysfs entry for touchscreen status

2019-08-26 Thread Jiada Wang
From: Naveen Chakka To know the current communication status of the touch controller during runtime, sysfs interface is added sysfs interface: /sys/class/i2c-dev/i2c-*/device/*/touch_dev_stat Executing the above sysfs interface provides two output values 1)Status of the touch device val

[PATCH v2 48/49] Input: atmel_mxt_ts: Implement synchronization during various operation

2019-08-26 Thread Jiada Wang
From: Sanjeev Chugh There could be scope of race conditions when sysfs is being handled and at the same time, device removal is occurring. For example, we don't want the device removal to begin if the Atmel device cfg update is going on or firmware update is going on. In such cases, wait for devi

[PATCH v2 49/49] Input: atmel_mxt_ts - Fix compilation warning

2019-08-26 Thread Jiada Wang
fix "make W=1" compilation warnings from Atmel driver as per the compilation logs. Signed-off-by: Jiada Wang --- drivers/input/touchscreen/atmel_mxt_ts.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/input/touchscreen/atmel_mxt_ts.c b/drivers/input/touchscreen/atme

Re: Linux-next-20190823: x86_64/i386: prot_hsymlinks.c:325: Failed to run cmd: useradd hsym

2019-08-26 Thread Naresh Kamboju
On Tue, 27 Aug 2019 at 04:42, Jan Stancek wrote: > > > - Original Message - > > On Mon, 2019-08-26 at 10:38 -0400, Jan Stancek wrote: > > No change with that patch, Same for me. > but following one fixes it for me: Works for me. Thanks for the fix patch. > > diff --git a/fs/nfs/pagelis

Re: [RESEND PATCH v3 10/20] mtd: spi-nor: Rework the SPI NOR lock/unlock logic

2019-08-26 Thread Vignesh Raghavendra
On 26/08/19 5:38 PM, tudor.amba...@microchip.com wrote: > From: Boris Brezillon > > Add the SNOR_F_HAS_LOCK flag and set it when SPI_NOR_HAS_LOCK is set > in the flash_info entry or when it's a Micron or ST flash. > > Move the locking hooks in a separate struct so that we have just > one fiel

[PATCH v2] kbuild: change *FLAGS_.o to take the path relative to $(obj)

2019-08-26 Thread Masahiro Yamada
Kbuild provides per-file compiler flag addition/removal: CFLAGS_.o CFLAGS_REMOVE_.o AFLAGS_.o AFLAGS_REMOVE_.o CPPFLAGS_.lds HOSTCFLAGS_.o HOSTCXXFLAGS_.o The is the filename of the target with its directory and suffix stripped. This syntax comes into a trouble when two files with

Re: [PATCH] powerpc: Perform a bounds check in arch_add_memory

2019-08-26 Thread Alastair D'Silva
On Tue, 2019-08-27 at 08:28 +0200, Michal Hocko wrote: > On Tue 27-08-19 15:20:46, Alastair D'Silva wrote: > > From: Alastair D'Silva > > > > It is possible for firmware to allocate memory ranges outside > > the range of physical memory that we support (MAX_PHYSMEM_BITS). > > Doesn't that count

Re: [tip:x86/urgent 3/3] arch/x86/kernel/apic/apic.c:1182:6: warning: the address of 'x2apic_enabled' will always evaluate as 'true'

2019-08-26 Thread Bandan Das
kbuild test robot writes: > tree: https://kernel.googlesource.com/pub/scm/linux/kernel/git/tip/tip.git > x86/urgent > head: cfa16294b1c5b320c0a0e1cac37c784b92366c87 > commit: cfa16294b1c5b320c0a0e1cac37c784b92366c87 [3/3] x86/apic: Include the > LDR when clearing out APIC registers > config

[PATCH] pci: get pm runtime ref before resetting bus

2019-08-26 Thread Xiongfeng Wang
When I inject a PCIE Fatal error into a mellanox netdevice, 'dmesg' shows the device is recovered successfully, but 'lspci' didn't show the device. I checked the configuration space of the slot where the netdevice is inserted and found out the bit 'PCI_BRIDGE_CTL_BUS_RESET' is set. Later, I found o

Re: [tip:x86/urgent 3/3] arch/x86/kernel/apic/apic.c:1182:6: warning: the address of 'x2apic_enabled' will always evaluate as 'true'

2019-08-26 Thread Thomas Gleixner
On Tue, 27 Aug 2019, Bandan Das wrote: > kbuild test robot writes: > > > tree: > > https://kernel.googlesource.com/pub/scm/linux/kernel/git/tip/tip.git > > x86/urgent > > head: cfa16294b1c5b320c0a0e1cac37c784b92366c87 > > commit: cfa16294b1c5b320c0a0e1cac37c784b92366c87 [3/3] x86/apic: Incl

Re: [PATCH v5 2/4] iio: imu: st_lsm6sdx: move register definitions to sensor_settings struct

2019-08-26 Thread Martin Kepplinger
On 21.08.19 15:25, Martin Kepplinger wrote: > Move some register definitions to the per-device array of struct > st_lsm6dsx_sensor_settings in order to simplify adding new sensor > devices to the driver. > > Also, remove completely unused register definitions. > > Signed-off-by: Martin Kepplinger

[PATCH 1/2] gpio: gpio-pca953x.c: Correct type of reg_direction

2019-08-26 Thread David Jander
The type of reg_direction needs to match the type of the regmap, which is u8. Signed-off-by: David Jander --- drivers/gpio/gpio-pca953x.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/gpio/gpio-pca953x.c b/drivers/gpio/gpio-pca953x.c index 378b206d2dc9..30072a

[PATCH 2/2] gpio: pca953x.c: Use pca953x_read_regs instead of regmap_bulk_read

2019-08-26 Thread David Jander
The register number needs to be translated for chips with more than 8 ports. This patch fixes a bug causing all chips with more than 8 GPIO pins to not work correctly. Signed-off-by: David Jander --- drivers/gpio/gpio-pca953x.c | 9 +++-- 1 file changed, 3 insertions(+), 6 deletions(-) diff

Re: [tip:x86/urgent 3/3] arch/x86/kernel/apic/apic.c:1182:6: warning: the address of 'x2apic_enabled' will always evaluate as 'true'

2019-08-26 Thread Bandan Das
Thomas Gleixner writes: > On Tue, 27 Aug 2019, Bandan Das wrote: >> kbuild test robot writes: >> >> > tree: >> > https://kernel.googlesource.com/pub/scm/linux/kernel/git/tip/tip.git >> > x86/urgent >> > head: cfa16294b1c5b320c0a0e1cac37c784b92366c87 >> > commit: cfa16294b1c5b320c0a0e1cac3

Re: [RESEND PATCH v3 10/20] mtd: spi-nor: Rework the SPI NOR lock/unlock logic

2019-08-26 Thread Tudor.Ambarus
On 08/27/2019 09:36 AM, Vignesh Raghavendra wrote: >> +nor->flags = SNOR_F_HAS_LOCK; > This is okay for now. But Perhaps its safer to do: > > nor->flags |= SNOR_F_HAS_LOCK; > > so that we don't override flags if set earlier than > spi_nor_manufacturer_init_params(). I see that patch 2

[PATCH] powerpc/time: use feature fixup in __USE_RTC() instead of cpu feature.

2019-08-26 Thread Christophe Leroy
sched_clock(), used by printk(), calls __USE_RTC() to know whether to use realtime clock or timebase. __USE_RTC() uses cpu_has_feature() which is initialised by machine_init(). Before machine_init(), __USE_RTC() returns true, leading to a program check exception on CPUs not having realtime clock.

[RESEND PATCH V2] csky: Fixup 610 vipt cache flush mechanism

2019-08-26 Thread guoren
From: Guo Ren 610 has vipt aliasing issue, so we need to finish the cache flush apis mentioned in cachetlb.rst to avoid data corruption. Here is the list of modified apis in the patch: - flush_kernel_dcache_page (new add) - flush_dcache_mmap_lock(new add) - flush_dcache_mmap_unl

Re: [PATCH v2 2/2] reset: Reset controller driver for Intel LGM SoC

2019-08-26 Thread Dilip Kota
On 8/23/2019 6:09 PM, Philipp Zabel wrote: On Fri, 2019-08-23 at 17:47 +0800, Dilip Kota wrote: [...] Thanks for pointing it out. Reset is not supported on LGM platform. I will update the reset_device() definition to "return -EOPNOTSUPP" In that case you can just drop intel_reset_device() com

Re: PageBlocks and Migrate Types

2019-08-26 Thread Michal Hocko
On Thu 22-08-19 23:54:19, Pankaj Suryawanshi wrote: > On Thu, Aug 22, 2019 at 6:22 PM Michal Hocko wrote: > > > > On Wed 21-08-19 22:23:44, Pankaj Suryawanshi wrote: > > > Hello, > > > > > > 1. What are Pageblocks and migrate types(MIGRATE_CMA) in Linux memory ? > > > > Pageblocks are a simple gro

Re: [PATCH v2 -next] net: mediatek: remove set but not used variable 'status'

2019-08-26 Thread René van Dorst
Let's add Stefan to the conversation. He is the author of this commit. Quoting Mao Wenan : Fixes gcc '-Wunused-but-set-variable' warning: drivers/net/ethernet/mediatek/mtk_eth_soc.c: In function mtk_handle_irq: drivers/net/ethernet/mediatek/mtk_eth_soc.c:1951:6: warning: variable status set b

Re: [PATCH v3 1/7] media: add V4L2_CID_UNIT_CELL_SIZE control

2019-08-26 Thread Jacopo Mondi
Hi Ricardo, On Fri, Aug 23, 2019 at 02:37:31PM +0200, Ricardo Ribalda Delgado wrote: > This control returns the unit cell size in nanometres. The struct provides > the width and the height in separated fields to take into consideration > asymmetric pixels and/or hardware binning. > This control is

[PATCH v4] rtw88: pci: Move a mass of jobs in hw IRQ to soft IRQ

2019-08-26 Thread Jian-Hong Pan
There is a mass of jobs between spin lock and unlock in the hardware IRQ which will occupy much time originally. To make system work more efficiently, this patch moves the jobs to the soft IRQ (bottom half) to reduce the time in hardware IRQ. Signed-off-by: Jian-Hong Pan --- v2: Change the spin_

Re: [tip:x86/urgent] x86/boot/compressed/64: Fix boot on machines with broken E820 table

2019-08-26 Thread Borislav Petkov
On Sun, Aug 25, 2019 at 10:33:15PM -0500, Gustavo A. R. Silva wrote: > Hi all, > > On 8/19/19 9:16 AM, tip-bot for Kirill A. Shutemov wrote: > [..] > > > > diff --git a/arch/x86/boot/compressed/pgtable_64.c > > b/arch/x86/boot/compressed/pgtable_64.c > > index 5f2d03067ae5..2faddeb0398a 100644 >

[PATCH v2] tty/serial: atmel: remove unneeded atmel_get_lines_status function

2019-08-26 Thread Richard Genoud
Since commit 18dfef9c7f87 ("serial: atmel: convert to irq handling provided mctrl-gpio"), the GPIOs interrupts are handled by mctrl_gpio_irq_handle(). So, atmel_get_lines_status() can be completely killed and replaced by : atmel_uart_readl(port, ATMEL_US_CSR); Suggested-by: Uwe Kleine-König Acked

Re: [PATCH] x86/Hyper-V: Fix build error with CONFIG_HYPERV_TSCPAGE=N

2019-08-26 Thread Vitaly Kuznetsov
Sasha Levin writes: > On Thu, Aug 22, 2019 at 10:39:46AM +0200, Vitaly Kuznetsov wrote: >>lantianyu1...@gmail.com writes: >> >>> From: Tianyu Lan >>> >>> Both Hyper-V tsc page and Hyper-V tsc MSR code use variable >>> hv_sched_clock_offset for their sched clock callback and so >>> define the var

Re: [PATCH v3] rtw88: pci: Move a mass of jobs in hw IRQ to soft IRQ

2019-08-26 Thread Jian-Hong Pan
Tony Chuang 於 2019年8月21日 週三 下午4:16寫道: > > Hi, > > > From: Jian-Hong Pan [mailto:jian-h...@endlessm.com] > > > > There is a mass of jobs between spin lock and unlock in the hardware > > IRQ which will occupy much time originally. To make system work more > > efficiently, this patch moves the jobs t

[PATCH] net: Adding parameter detection in __ethtool_get_link_ksettings.

2019-08-26 Thread Dongxu Liu
The __ethtool_get_link_ksettings symbol will be exported, and external users may use an illegal address. We should check the parameters before using them, otherwise the system will crash. [ 8980.991134] BUG: unable to handle kernel NULL pointer dereference at (null) [ 8980.993049] IP: [

Re: [PATCH] Add support for Macronix NAND randomizer

2019-08-26 Thread Miquel Raynal
Hi Mason, masonccy...@mxic.com.tw wrote on Mon, 26 Aug 2019 10:52:31 +0800: > Hi Miquel, > > > > Mason Yang wrote on Tue, 20 Aug 2019 13:53:48 > > +0800: > > > > > Macronix NANDs support randomizer operation for user data scrambled, > > > which can be enabled with a SET_FEATURE. > > > > > >

Re: How cma allocation works ?

2019-08-26 Thread Michal Hocko
On Fri 23-08-19 00:17:22, Pankaj Suryawanshi wrote: > On Thu, Aug 22, 2019 at 6:32 PM Michal Hocko wrote: > > > > On Wed 21-08-19 22:58:03, Pankaj Suryawanshi wrote: > > > Hello, > > > > > > Hard time to understand cma allocation how differs from normal > > > allocation ? > > > > The buddy allocat

[PATCH v2 5/5] arm64: dts: meson-sm1-sei610: enable DVFS

2019-08-26 Thread Neil Armstrong
This enables DVFS for the Amlogic SM1 based SEI610 board by: - Adding the SM1 SoC OPPs taken from the vendor tree - Selecting the SM1 Clock controller instead of the G12A one - Adding the CPU rail regulator, PWM and OPPs for each CPU nodes. Each power supply can achieve 0.69V to 1.05V using a sing

[PATCH v2 3/5] clk: meson: g12a: add support for SM1 DynamIQ Shared Unit clock

2019-08-26 Thread Neil Armstrong
The Amlogic SM1 DynamIQ Shared Unit has a dedicated clock tree similar to the CPU clock tree with a supplementaty mux to select the CPU0 clock instead. Leave this as read-only since it's set up by the early boot stages. Signed-off-by: Neil Armstrong --- drivers/clk/meson/g12a.c | 184 ++

[PATCH v2 2/5] clk: meson: g12a: add support for SM1 GP1 PLL

2019-08-26 Thread Neil Armstrong
Add the new GP1 PLL for the Amlogic SM1 SoC, used to feed the new DynamIQ Shared Unit of the ARM Cores Complex. This also adds a dedicated set of clock and compatible for SM1. Signed-off-by: Neil Armstrong --- drivers/clk/meson/g12a.c | 300 +++ drivers/clk/m

[PATCH v2 1/5] dt-bindings: clk: meson: add sm1 periph clock controller bindings

2019-08-26 Thread Neil Armstrong
Update the documentation to support clock driver for the Amlogic SM1 SoC and expose the GP1, DSU and the CPU 1, 2 & 3 clocks. SM1 clock tree is very close, the main differences are : - each CPU core can achieve a different frequency, albeit a common PLL - a similar tree as the clock tree has been

[PATCH v2 0/5] 0/6] arm64: meson-sm1: add support for DVFS

2019-08-26 Thread Neil Armstrong
Following DVFS support for the Amlogic G12A and G12B SoCs, this serie enables DVFS on the SM1 SoC for the SEI610 board. The SM1 Clock structure is slightly different because of the Cortex-A55 core used, having the capability for each core of a same cluster to run at a different frequency thanks to

[PATCH v2 4/5] clk: meson: g12a: add support for SM1 CPU 1, 2 & 3 clocks

2019-08-26 Thread Neil Armstrong
The Amlogic SM1 can set a dedicated clock frequency for each CPU core by having a dedicate tree for each core similar to the CPU0 tree. Like the DSU tree, a supplementaty mux has been added to use the CPU0 frequency instead. But since the cluster only has a single power rail and shares a single PL

Re: [PATCH v2 5/5] arm64: dts: meson-sm1-sei610: enable DVFS

2019-08-26 Thread Neil Armstrong
On 26/08/2019 09:25, Neil Armstrong wrote: > This enables DVFS for the Amlogic SM1 based SEI610 board by: > - Adding the SM1 SoC OPPs taken from the vendor tree > - Selecting the SM1 Clock controller instead of the G12A one > - Adding the CPU rail regulator, PWM and OPPs for each CPU nodes. > > Ea

Re: [PATCH v2 -next] net: mediatek: remove set but not used variable 'status'

2019-08-26 Thread Stefan Roese
Hi! On 26.08.19 09:10, René van Dorst wrote: Let's add Stefan to the conversation. He is the author of this commit. Thanks Rene. Quoting Mao Wenan : Fixes gcc '-Wunused-but-set-variable' warning: drivers/net/ethernet/mediatek/mtk_eth_soc.c: In function mtk_handle_irq: drivers/net/ethernet

[PATCH v1 1/2] dt-bindings: mmc: sdhci-of-arasan: Add new compatible for Intel LGM eMMC

2019-08-26 Thread Ramuthevar,Vadivel MuruganX
From: Ramuthevar Vadivel Murugan Add a new compatible to use the sdhc-arasan host controller driver with the eMMC PHY on Intel's Lightning Mountain SoC. Signed-off-by: Ramuthevar Vadivel Murugan --- Documentation/devicetree/bindings/mmc/arasan,sdhci.txt | 17 + 1 file changed,

[PATCH v1 2/2] mmc: sdhci-of-arasan: Add Support for Intel LGM eMMC

2019-08-26 Thread Ramuthevar,Vadivel MuruganX
From: Ramuthevar Vadivel Muruganx The current arasan sdhci PHY configuration isn't compatible with the PHY on Intel's LGM(Lightning Mountain) SoC devices. Therefore, add a new compatible, to adapt the Intel's LGM eMMC PHY with arasan-sdhc controller to configure the PHY. Signed-off-by: Ramuthev

Re: [PATCH v3 1/7] media: add V4L2_CID_UNIT_CELL_SIZE control

2019-08-26 Thread Jacopo Mondi
Hi Ricardo, On Fri, Aug 23, 2019 at 02:37:31PM +0200, Ricardo Ribalda Delgado wrote: > This control returns the unit cell size in nanometres. The struct provides > the width and the height in separated fields to take into consideration > asymmetric pixels and/or hardware binning. > This control is

[PATCH 2/3] serial: sprd: add console_initcall in sprd's uart driver

2019-08-26 Thread Chunyan Zhang
From: Chunyan Zhang Use console_initcall to save the console index we selected on the command line to sprd_console before probe finished. Thus we can make different processes to the uart devices during initialization according to whether it is used for console. Signed-off-by: Chunyan Zhang Sign

[PATCH 1/3] serial: sprd: check the right port and membase

2019-08-26 Thread Chunyan Zhang
From: Chunyan Zhang When calling sprd_console_setup(), sprd_uart_port probably is NULL, we should check that first instead of checking its items directly. Also we should check membase to avoid accessing uart device before its initialization finished. Signed-off-by: Chunyan Zhang Signed-off-by:

[PATCH 3/3] serial: sprd: keep console alive even if missing the 'enable' clock

2019-08-26 Thread Chunyan Zhang
From: Chunyan Zhang The sprd serial console can work with only 26M fixed clock, but the probe() is returning fail if the clock "enable" is not configured in device tree. This patch will fix the problem to let the uart device which is used for console can be initialized even missing "enable" cloc

[PATCH 0/3] keep console alive even if missing the 'enable' clock

2019-08-26 Thread Chunyan Zhang
From: Chunyan Zhang After the commit 4007098f4ce4 (serial: sprd: Add power management for the Spreadtrum serial controller), the 'enable' clock was forced to be configured in device tree, otherwise the uart devices couldn't be probed successfully. With this patch-set, the uart device which is

[PATCH 0/2] mm/mmap.c: reduce subtree gap propagation a little

2019-08-26 Thread Wei Yang
When insert and delete a vma, it will compute and propagate related subtree gap. After some investigation, we can reduce subtree gap propagation a little. [1]: This one reduce the propagation by update *next* gap after itself, since *next* must be a parent in this case. [2]: This one achieve

[PATCH 1/2] mm/mmap.c: update *next* gap after itself

2019-08-26 Thread Wei Yang
Since we link a vma to the leaf of a rb_tree, *next* must be a parent of vma if *next* is not NULL. This means if we update *next* gap first, it will be re-update again if vma's gap is bigger. For example, we have a vma tree like this: a [0x9000, 0x1]

[PATCH 2/2] mm/mmap.c: unlink vma before rb_erase

2019-08-26 Thread Wei Yang
Current sequence to remove a vma is: vma_rb_erase_ignore() __vma_unlink_list() vma_gap_update() This may do some extra subtree_gap propagation due the vma is unlink from list after rb_erase. For example, we have a tree: a [0x9000, 0x1]

[PATCH 2/6] arm64: tegra: Add configuration for PCIe C5 sideband signals

2019-08-26 Thread Vidya Sagar
Add support to configure PCIe C5's sideband signals PERST# and CLKREQ# as output and bi-directional signals respectively which unlike other PCIe controllers sideband signals are not configured by default. Signed-off-by: Vidya Sagar --- arch/arm64/boot/dts/nvidia/tegra194.dtsi | 38 ++

[PATCH 5/6] arm64: tegra: Add PCIe slot supply information in p2972-0000 platform

2019-08-26 Thread Vidya Sagar
Add 3.3V and 12V supplies regulators information of x16 PCIe slot in p2972- platform which is owned by C5 controller and also enable C5 controller. Signed-off-by: Vidya Sagar --- .../arm64/boot/dts/nvidia/tegra194-p2888.dtsi | 24 +++ .../boot/dts/nvidia/tegra194-p2972-.d

[PATCH 0/6] PCI: tegra: Enable PCIe C5 controller of Tegra194 in p2972-0000 platform

2019-08-26 Thread Vidya Sagar
This patch series enables Tegra194's C5 controller which owns x16 slot in p2972- platform. C5 controller's PERST# and CLKREQ# are not configured as output and bi-directional signals by default and hence they need to be configured explicitly. Also, x16 slot's 3.3V and 12V supplies are controlled

[PATCH 1/6] dt-bindings: PCI: tegra: Add sideband pins configuration entries

2019-08-26 Thread Vidya Sagar
Add optional bindings "pinctrl-names" and "pinctrl-0" to describe pin configuration information of a particular PCIe controller. Signed-off-by: Vidya Sagar --- .../devicetree/bindings/pci/nvidia,tegra194-pcie.txt | 8 1 file changed, 8 insertions(+) diff --git a/Documentation/devi

[PATCH 4/6] dt-bindings: PCI: tegra: Add PCIe slot supplies regulator entries

2019-08-26 Thread Vidya Sagar
Add optional bindings "vpcie3v3-supply" and "vpcie12v-supply" to describe regulators of a PCIe slot's supplies 3.3V and 12V provided the platform is designed to have regulator controlled slot supplies. Signed-off-by: Vidya Sagar --- .../devicetree/bindings/pci/nvidia,tegra194-pcie.txt | 8 +

[PATCH 6/6] PCI: tegra: Add support to enable slot regulators

2019-08-26 Thread Vidya Sagar
Add support to get regulator information of 3.3V and 12V supplies of a PCIe slot from the respective controller's device-tree node and enable those supplies. This is required in platforms like p2972- where the supplies to x16 slot owned by C5 controller need to be enabled before attempting to e

[PATCH 3/6] PCI: tegra: Add support to configure sideband pins

2019-08-26 Thread Vidya Sagar
Add support to configure sideband signal pins when information is present in respective controller's device-tree node. Signed-off-by: Vidya Sagar --- drivers/pci/controller/dwc/pcie-tegra194.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/drivers/pci/controller/dwc/pcie-tegra194.c b

Re: [PATCH v3 0/3] vmstats/vmevents flushing

2019-08-26 Thread Michal Hocko
On Sat 24-08-19 13:53:39, Andrew Morton wrote: > On Fri, 23 Aug 2019 00:33:51 + Roman Gushchin wrote: > > > On Thu, Aug 22, 2019 at 04:27:09PM -0700, Andrew Morton wrote: > > > On Mon, 19 Aug 2019 16:00:51 -0700 Roman Gushchin wrote: > > > > > > > v3: > > > > 1) rearranged patches [2/3] a

Re: [PATCH RESEND 0/8] Fix mmap base in bottom-up mmap

2019-08-26 Thread Alexandre Ghiti
On 6/20/19 7:03 AM, Alexandre Ghiti wrote: This series fixes the fallback of the top-down mmap: in case of failure, a bottom-up scheme can be tried as a last resort between the top-down mmap base and the stack, hoping for a large unused stack limit. Lots of architectures and even mm code start t

Re: [PATCH 1/3] arm64: dts: khadas-vim3: move common nodes into meson-khadas-vim3.dtsi

2019-08-26 Thread Neil Armstrong
On 25/08/2019 21:41, Martin Blumenstingl wrote: > On Fri, Aug 23, 2019 at 10:15 AM Neil Armstrong > wrote: >> >> To prepare support of the Amlogic SM1 based Khadas VIM3, move the non-G12B >> specific nodes (all except DVFS and Audio) to a new meson-khadas-vim3.dtsi > out of curiosity: is audio be

Re: [PATCH v3 3/7] Documentation: media: Document V4L2_CTRL_TYPE_AREA

2019-08-26 Thread Jacopo Mondi
Hi Ricardo, On Fri, Aug 23, 2019 at 02:37:33PM +0200, Ricardo Ribalda Delgado wrote: > A struct v4l2_area containing the width and the height of a rectangular > area. > > Signed-off-by: Ricardo Ribalda Delgado > Suggested-by: Hans Verkuil > --- > Documentation/media/uapi/v4l/vidioc-queryctrl.rs

Re: [v2 PATCH -mm] mm: account deferred split THPs into MemAvailable

2019-08-26 Thread Michal Hocko
On Thu 22-08-19 18:29:34, Kirill A. Shutemov wrote: > On Thu, Aug 22, 2019 at 02:56:56PM +0200, Vlastimil Babka wrote: > > On 8/22/19 10:04 AM, Michal Hocko wrote: > > > On Thu 22-08-19 01:55:25, Yang Shi wrote: > > >> Available memory is one of the most important metrics for memory > > >> pressure

Re: [PATCH v3 5/7] media: v4l2-core: Add new helper for area controls

2019-08-26 Thread Jacopo Mondi
Hi Ricardo, On Fri, Aug 23, 2019 at 03:13:36PM +0200, Philipp Zabel wrote: > On Fri, 2019-08-23 at 15:05 +0200, Ricardo Ribalda Delgado wrote: > > On Fri, Aug 23, 2019 at 2:56 PM Philipp Zabel > > wrote: > > > > > > On Fri, 2019-08-23 at 14:37 +0200, Ricardo Ribalda Delgado wrote: > > > > Adding

Re: [PATCH 2/3] amlogic: arm: add Amlogic SM1 based Khadas VIM3 variant bindings

2019-08-26 Thread Neil Armstrong
On 25/08/2019 21:51, Martin Blumenstingl wrote: > Hi Neil, > > the subject should be: dt-bindings: arm: amlogic: ... damn sure > > On Fri, Aug 23, 2019 at 10:15 AM Neil Armstrong > wrote: >> >> The Khadas VIM3 is also available with the Pin-to-pin compatible >> Amlogic SM1 SoC in the S905D3 v

Re: [PATCH 3/3] arm64: dts: khadas-vim3: add support for the SM1 based VIM3

2019-08-26 Thread Neil Armstrong
On 25/08/2019 21:55, Martin Blumenstingl wrote: > On Fri, Aug 23, 2019 at 10:15 AM Neil Armstrong > wrote: >> >> Add the Amlogic SM1 based Khadas VIM3, sharing all the same features >> as the G12B based one, but: >> - a different DVFS support since only a single cluster is available >> - audio is

Re: [PATCH 03/11] asm-generic: add generic dwarf definition

2019-08-26 Thread Peter Zijlstra
On Sun, Aug 25, 2019 at 09:23:22PM +0800, Changbin Du wrote: > Add generic DWARF constant definitions. We will use it later. > > Signed-off-by: Changbin Du > --- > include/asm-generic/dwarf.h | 199 > 1 file changed, 199 insertions(+) > create mode 100644 in

Re: [v2 PATCH -mm] mm: account deferred split THPs into MemAvailable

2019-08-26 Thread Michal Hocko
On Thu 22-08-19 08:33:40, Yang Shi wrote: > > > On 8/22/19 1:04 AM, Michal Hocko wrote: > > On Thu 22-08-19 01:55:25, Yang Shi wrote: [...] > > > And, they seems very common with the common workloads when THP is > > > enabled. A simple run with MariaDB test of mmtest with THP enabled as > > > al

[PATCH] tpm: tpm_crb: Fix an improper buffer size calculation bug

2019-08-26 Thread Seunghun Han
I'm Seunghun Han and work at the Affiliated Institute of ETRI. I found a bug related to improper buffer size calculation in crb_fixup_cmd_size function. When the TPM CRB regions are two or more, the crb_map_io function calls crb_fixup_cmd_size twice to calculate command buffer size and response bu

Re: [PATCH v3 6/7] Documentation: Document v4l2_ctrl_new area

2019-08-26 Thread Jacopo Mondi
Hi Ricardo, On Fri, Aug 23, 2019 at 02:37:36PM +0200, Ricardo Ribalda Delgado wrote: > Helper for creating area controls. > > Signed-off-by: Ricardo Ribalda Delgado With this squashed on 5/7 or separated if we want documentation changes to get in separately Reviewed-by: Jacopo Mondi Thanks

Re: [RFC PATCH v2 1/3] x86/mm/tlb: Change __flush_tlb_one_user interface

2019-08-26 Thread Juergen Gross
On 24.08.19 00:52, Nadav Amit wrote: __flush_tlb_one_user() currently flushes a single entry, and flushes it both in the kernel and user page-tables, when PTI is enabled. Change __flush_tlb_one_user() and related interfaces into __flush_tlb_range() that flushes a range and does not flush the use

Re: [PATCH v3 7/7] imx214: Use v4l2_ctrl_new_area helper

2019-08-26 Thread Jacopo Mondi
Hi Ricardo, On Fri, Aug 23, 2019 at 02:37:37PM +0200, Ricardo Ribalda Delgado wrote: > Instead of creating manually the V4L2_CID_UNIT_CELL_SIZE control, lets > use the helper. > I think you should drop 4/7 and use directly the new helper here. Thanks j > Signed-off-by: Ricardo Ribalda Delgado

Re: [PATCH 2/3] mm/migrate: see hole as invalid source page

2019-08-26 Thread Pingfan Liu
On Fri, Aug 16, 2019 at 11:02:22PM +0800, Pingfan Liu wrote: > On Thu, Aug 15, 2019 at 01:22:22PM -0400, Jerome Glisse wrote: > > On Tue, Aug 06, 2019 at 04:00:10PM +0800, Pingfan Liu wrote: > > > MIGRATE_PFN_MIGRATE marks a valid pfn, further more, suitable to migrate. > > > As for hole, there is

Re: [PATCH] tools/power turbostat: fix file descriptor leaks

2019-08-26 Thread Rafael J. Wysocki
On Mon, Aug 26, 2019 at 6:25 AM Gustavo A. R. Silva wrote: > > Hi Rafael, > > On 4/23/19 3:23 AM, Rafael J. Wysocki wrote: > > On Mon, Apr 22, 2019 at 5:55 PM Gustavo A. R. Silva > > wrote: > >> > >> Hi all, > >> > >> Friendly ping: > >> > >> Who can take this? > > > > I've been waiting for Len t

[PATCH 1/5] x86: unexport set_memory_x and set_memory_nx

2019-08-26 Thread Christoph Hellwig
No module currently messed with clearing or setting the execute permission of kernel memory, and none really should. Signed-off-by: Christoph Hellwig Acked-by: Peter Zijlstra (Intel) --- arch/x86/mm/pageattr.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/arch/x86/mm/pageattr.c b/arch/x8

remove various unused set_memory_* related functions and exports v2

2019-08-26 Thread Christoph Hellwig
Hi all, while looking into implementing a DMA memory allocator for PCIe unsnooped transactions I've started looking at the set_memory_* and related APIs, and it turns out that many of them are unused. Fix for that below. Changes since v2: - dropped the already merged arm64 patch - fix a subjec

[PATCH 4/5] x86: remove the unused set_memory_wt function

2019-08-26 Thread Christoph Hellwig
Signed-off-by: Christoph Hellwig Acked-by: Peter Zijlstra (Intel) --- arch/x86/include/asm/set_memory.h | 1 - arch/x86/mm/pageattr.c| 17 - 2 files changed, 18 deletions(-) diff --git a/arch/x86/include/asm/set_memory.h b/arch/x86/include/asm/set_memory.h index fd

[PATCH 5/5] x86: remove the unused set_pages_array_wt function

2019-08-26 Thread Christoph Hellwig
Signed-off-by: Christoph Hellwig Acked-by: Peter Zijlstra (Intel) --- arch/x86/include/asm/set_memory.h | 1 - arch/x86/mm/pageattr.c| 6 -- 2 files changed, 7 deletions(-) diff --git a/arch/x86/include/asm/set_memory.h b/arch/x86/include/asm/set_memory.h index 2ee8e469dcf5..cf

Re: Linux 5.2.10

2019-08-26 Thread Paul Bolle
Greg KH schreef op ma 26-08-2019 om 06:34 [+0200]: > It's on that key already, have you refreshed your version of it? I have now. sas...@kernel.org (and another identity) is now on that key. Thanks, Paul Bolle

[PATCH 3/5] x86: remove set_pages_x and set_pages_nx

2019-08-26 Thread Christoph Hellwig
These wrappers don't provide a real benefit over just using set_memory_x and set_memory_nx. Signed-off-by: Christoph Hellwig Acked-by: Peter Zijlstra (Intel) --- arch/x86/include/asm/set_memory.h | 2 -- arch/x86/kernel/machine_kexec_32.c | 4 ++-- arch/x86/mm/init_32.c | 2 +-

[PATCH 2/5] x86: remove the unused set_memory_array_* functions

2019-08-26 Thread Christoph Hellwig
Signed-off-by: Christoph Hellwig Acked-by: Peter Zijlstra (Intel) --- arch/x86/include/asm/set_memory.h | 5 --- arch/x86/mm/pageattr.c| 75 --- 2 files changed, 80 deletions(-) diff --git a/arch/x86/include/asm/set_memory.h b/arch/x86/include/asm/set_m

Re: Re: [PATCH net-next 0/1] Add BASE-T1 PHY support

2019-08-26 Thread Christian Herber
On 24.08.2019 17:03, Heiner Kallweit wrote: > > On 22.08.2019 09:18, Christian Herber wrote: >> On 21.08.2019 20:57, Andrew Lunn wrote: >>> The current patch set IMO is a little bit hacky. I'm not 100% happy with the implicit assumption that there can't be devices supporting T1 and

[PATCH] KVM: selftests: Detect max PA width from cpuid

2019-08-26 Thread Peter Xu
The dirty_log_test is failing on some old machines like Xeon E3-1220 with tripple faults when writting to the tracked memory region: Test iterations: 32, interval: 10 (ms) Testing guest mode: PA-bits:52, VA-bits:48, 4K pages guest physical test memory offset: 0x7fbffef000 Test Asserti

Re: [PATCH v2 3/3] nvme: fire discovery log page change events to userspace

2019-08-26 Thread Greg Kroah-Hartman
On Mon, Aug 26, 2019 at 08:56:39AM +0200, Christoph Hellwig wrote: > On Thu, Aug 22, 2019 at 12:10:23PM -0700, Sagi Grimberg wrote: > >> You are correct that this information can be derived from sysfs, but the > >> main reason why we add these here, is because in udev rule we can't > >> just go ahe

Re: [PATCH v5 4/6] drm/i915/gvt: Deliver vGPU refresh event to userspace

2019-08-26 Thread Zhenyu Wang
On 2019.08.16 10:35:26 +0800, Tina Zhang wrote: > Deliver the display refresh events to the user land. Userspace can use > the irq mask/unmask mechanism to disable or enable the event delivery. > > As we know, delivering refresh event at each vblank safely avoids > tearing and unexpected event ove

Re: Linux 5.2.10

2019-08-26 Thread Greg KH
On Mon, Aug 26, 2019 at 12:08:38PM +0530, Bhaskar Chowdhury wrote: Due, learn to properly trim emails... > For some unknown reason kernel.org still showing me 5.2.9 ..Please refer > to the attached screenshot. What mirror are you hitting here? There is a way somehow to see that on your end, I

Re: [PATCH V5 1/3] riscv: Add perf callchain support

2019-08-26 Thread Greentime Hu
Hi Guo, Guo Ren 於 2019年8月24日 週六 上午8:54寫道: > > Please check CONFIG_FRAME_POINTER > > 1 *frame = *((struct stackframe *)frame->fp - 1); > This code is origionally from riscv/kernel/stacktrace.c: walk_stackframe > > In linux/Makefile it'll involve the options for gcc to definitely > store ra & prev_

Re: [PATCH] net: intel: Cleanup e1000 - add space between }}

2019-08-26 Thread Jeff Kirsher
On Fri, 2019-08-23 at 19:14 +, Forrest Fleming wrote: > suggested by checkpatch > > Signed-off-by: Forrest Fleming > --- > .../net/ethernet/intel/e1000/e1000_param.c| 28 +-- > 1 file changed, 14 insertions(+), 14 deletions(-) While I do not see an issue with this change

Re: [PATCH v2 2/5] soc: amlogic: Add support for Everything-Else power domains controller

2019-08-26 Thread Neil Armstrong
On 25/08/2019 23:10, Martin Blumenstingl wrote: > Hi Neil, > > thank you for this update > I haven't tried this on the 32-bit SoCs yet, but I am confident that I > can make it work by "just" adding the SoC specific bits! > > On Fri, Aug 23, 2019 at 11:06 AM Neil Armstrong > wrote: > [...] >> +/

Re: [PATCH] KVM: selftests: Detect max PA width from cpuid

2019-08-26 Thread Thomas Huth
On 26/08/2019 09.57, Peter Xu wrote: > The dirty_log_test is failing on some old machines like Xeon E3-1220 > with tripple faults when writting to the tracked memory region: > > Test iterations: 32, interval: 10 (ms) > Testing guest mode: PA-bits:52, VA-bits:48, 4K pages > guest physical tes

Re: [PATCH -next] rtc: pcf2127: Fix build error without CONFIG_WATCHDOG_CORE

2019-08-26 Thread Yuehaibing
On 2019/8/23 22:05, Alexandre Belloni wrote: > On 23/08/2019 20:45:53+0800, YueHaibing wrote: >> If WATCHDOG_CORE is not set, build fails: >> >> drivers/rtc/rtc-pcf2127.o: In function `pcf2127_probe.isra.6': >> drivers/rtc/rtc-pcf2127.c:478: undefined reference to >> `devm_watchdog_register_dev

Re: [PATCH] ext4: change the type of ext4 cache stats to percpu_counter to improve performance

2019-08-26 Thread Shaokun Zhang
Hi Eric, On 2019/8/26 1:28, Eric Biggers wrote: > On Sat, Aug 24, 2019 at 11:25:24PM -0400, Theodore Y. Ts'o wrote: >> On Fri, Aug 23, 2019 at 10:47:34AM +0800, Shaokun Zhang wrote: >>> From: Yang Guo >>> >>> @es_stats_cache_hits and @es_stats_cache_misses are accessed frequently in >>> ext4_es_l

Re: [PATCH] tools/power turbostat: fix file descriptor leaks

2019-08-26 Thread Rafael J. Wysocki
On Mon, Aug 26, 2019 at 10:02 AM Artem Bityutskiy wrote: > > On Mon, 2019-08-26 at 09:55 +0200, Rafael J. Wysocki wrote: > > Technically, Len Brown is the turbostat maintainer and I have been > > waiting for him to review the patch at least. Let me talk to Len. > > > > Hi Rafael, > > > I also sen

Re: [PATCH] iio: imu: st_lsm6dsx: Fix FIFO diff mask for tagged fifo

2019-08-26 Thread Jonathan Cameron
On Thu, 22 Aug 2019 15:22:19 +0200 Mario Tesi wrote: > From: mario tesi > > According to the latest version of datasheet the mask > for number of unread sensor data in FIFO_STATUS registers > has been extended to 10 bits > > The devices involved are: >- LSM6DSO

Re: [PATCH] net: Adding parameter detection in __ethtool_get_link_ksettings.

2019-08-26 Thread Eric Dumazet
On 8/26/19 9:23 AM, Dongxu Liu wrote: > The __ethtool_get_link_ksettings symbol will be exported, > and external users may use an illegal address. > We should check the parameters before using them, > otherwise the system will crash. > > [ 8980.991134] BUG: unable to handle kernel NULL pointer

[PATCH] x86: tpm: Remove a busy bit of the NVS area for supporting AMD's fTPM

2019-08-26 Thread Seunghun Han
I'm Seunghun Han and work at the Affiliated Institute of ETRI. I got an AMD system which had a Ryzen Threadripper 1950X and MSI mainboard, and I had a problem with AMD's fTPM. My machine showed an error message below, and the fTPM didn't work because of it. [  5.732084] tpm_crb MSFT0101:00: can't

Re: [PATCH] KVM: selftests: Detect max PA width from cpuid

2019-08-26 Thread Peter Xu
On Mon, Aug 26, 2019 at 10:11:34AM +0200, Thomas Huth wrote: > On 26/08/2019 09.57, Peter Xu wrote: > > The dirty_log_test is failing on some old machines like Xeon E3-1220 > > with tripple faults when writting to the tracked memory region: > > > > Test iterations: 32, interval: 10 (ms) > > Te

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