Re: Linux 5.2.10

2019-08-26 Thread Greg KH
A: http://en.wikipedia.org/wiki/Top_post Q: Were do I find info about this thing called top-posting? A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? A: Top-posting. Q: What is the most annoying thing in e-mail? A: No. Q: Should I

Re: [greybus-dev] [PATCH 4/9] staging: greybus: manifest: Fix up some alignment checkpatch issues

2019-08-26 Thread Viresh Kumar
On 25-08-19, 07:54, Greg Kroah-Hartman wrote: > Some function prototypes do not match the expected alignment formatting > so fix that up so that checkpatch is happy. > > Cc: Johan Hovold > Cc: Alex Elder > Cc: greybus-...@lists.linaro.org > Cc: de...@driverdev.osuosl.org > Signed-off-by: Greg

Re: [greybus-dev] [PATCH 6/9] staging: greybus: loopback: Fix up some alignment checkpatch issues

2019-08-26 Thread Viresh Kumar
On 25-08-19, 07:54, Greg Kroah-Hartman wrote: > Some function prototypes do not match the expected alignment formatting > so fix that up so that checkpatch is happy. > > Cc: "Bryan O'Donoghue" > Cc: Johan Hovold > Cc: Alex Elder > Cc: greybus-...@lists.linaro.org > Cc:

Re: [greybus-dev] [PATCH 5/9] staging: greybus: log: Fix up some alignment checkpatch issues

2019-08-26 Thread Viresh Kumar
On 25-08-19, 07:54, Greg Kroah-Hartman wrote: > Some function prototypes do not match the expected alignment formatting > so fix that up so that checkpatch is happy. > > Cc: David Lin > Cc: Johan Hovold > Cc: Alex Elder > Cc: greybus-...@lists.linaro.org > Cc: de...@driverdev.osuosl.org >

Re: [greybus-dev] [PATCH 8/9] staging: greybus: move the greybus core to drivers/greybus

2019-08-26 Thread Viresh Kumar
On 25-08-19, 07:54, Greg Kroah-Hartman wrote: > The Greybus core code has been stable for a long time, and has been > shipping for many years in millions of phones. With the advent of a > recent Google Summer of Code project, and a number of new devices in the > works from various companies, it

Re: [greybus-dev] [PATCH 9/9] staging: greybus: move es2 to drivers/greybus/

2019-08-26 Thread Viresh Kumar
On 25-08-19, 07:54, Greg Kroah-Hartman wrote: > The es2 Greybus host controller has long been stable, so move it out of > drivers/staging/ to drivers/greybus/ > > Cc: Johan Hovold > Cc: Alex Elder > Cc: greybus-...@lists.linaro.org > Cc: linux-kernel@vger.kernel.org > Signed-off-by: Greg

[PATCH v2] net: fix skb use after free in netpoll

2019-08-26 Thread Feng Sun
After commit baeababb5b85d5c4e6c917efe2a1504179438d3b ("tun: return NET_XMIT_DROP for dropped packets"), when tun_net_xmit drop packets, it will free skb and return NET_XMIT_DROP, netpoll_send_skb_on_dev will run into following use after free cases: 1. retry netpoll_start_xmit with freed skb; 2.

[PATCH] x86/mce: show the status of cmci_disabled to user

2019-08-26 Thread Xiaochun Lee
From: Xiaochun Lee When enabled Firmware First mode in UEFI, we need to set the cmci_disabled and ignore_ce in mca cfg that users can check correct status from "/sys/devices/system/machinecheck/machinecheckXXX/cmci_disabled" Signed-off-by: Xiaochun Lee --- arch/x86/kernel/cpu/mce/core.c | 2

RE: [EXT] Re: [Patch v4 1/3] dt-bindings: spi: spi-fsl-qspi: Add ls2080a compatibility string to bindings

2019-08-26 Thread Ashish Kumar
> -Original Message- > From: Mark Brown > Sent: Friday, August 23, 2019 12:35 AM > To: Ashish Kumar > Cc: shawn...@kernel.org; linux-kernel@vger.kernel.org; linux- > s...@vger.kernel.org; devicet...@vger.kernel.org; robh...@kernel.org; > mark.rutl...@arm.com;

Re: [PATCH v2] net: fix skb use after free in netpoll

2019-08-26 Thread David Miller
From: Feng Sun Date: Mon, 26 Aug 2019 14:13:40 +0800 > +static inline bool netpoll_xmit_complete(int rc) > +{ > + return dev_xmit_complete(rc); > +} There is no need for this useless indirection, just call dev_xmit_complete() staright. Also, even if it was suitable, never use the inline

Re: Why the edge-triggered mode doesn't work for epoll file descriptor?

2019-08-26 Thread Eric Wong
Heiher wrote: > Hello, > > I've added a pipe file descriptor (fd1) to an epoll (fd3) with > EPOLLOUT in edge-triggered mode, and then added the fd3 to another > epoll (fd4) with EPOLLIN in edge-triggered too. > > Next, waiting for fd4 without timeout. When fd1 to be writable, i > think

Re: [PATCH v3 2/4] clk: qcom: clk-rpmh: Convert to parent data scheme

2019-08-26 Thread Vinod Koul
On 23-08-19, 23:31, Bjorn Andersson wrote: > On Thu 22 Aug 10:01 PDT 2019, Vinod Koul wrote: > > > Convert the rpmh clock driver to use the new parent data scheme by > > specifying the parent data for board clock. > > > > Signed-off-by: Vinod Koul > > --- > > drivers/clk/qcom/clk-rpmh.c | 10

linux-next: build warning after merge of the staging tree

2019-08-26 Thread Stephen Rothwell
Hi all, After merging the staging tree, today's linux-next build (x86_64 allmodconfig) produced this warning: In file included from include/trace/events/erofs.h:8, from : include/trace/events/erofs.h:28:37: warning: 'struct dentry' declared inside parameter list will not be

[GIT] Networking

2019-08-26 Thread David Miller
1) Use 32-bit index for tails calls in s390 bpf JIT, from Ilya Leoshkevich. 2) Fix missed EPOLLOUT events in TCP, from Eric Dumazet. Same fix for SMC from Jason Baron. 3) ipv6_mc_may_pull() should return 0 for malformed packets, not -EINVAL. From Stefano Brivio. 4) Don't forget to

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

2019-08-26 Thread Greg KH
On Mon, Aug 26, 2019 at 04:24:32PM +1000, Stephen Rothwell wrote: > Hi all, > > After merging the staging tree, today's linux-next build (x86_64 > allmodconfig) produced this warning: > > In file included from include/trace/events/erofs.h:8, > from : >

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

2019-08-26 Thread Christoph Hellwig
On Thu, Aug 22, 2019 at 11:05:22AM +0800, guo...@kernel.org wrote: > 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: Looks sensible to me, although

Re: [PATCH v2] RISC-V: Fix FIXMAP area corruption on RV32 systems

2019-08-26 Thread Christoph Hellwig
Palmer, Paul - are you going to pick this up? Seems like we've just missed -rc6.

[PATCH v3] net: fix skb use after free in netpoll

2019-08-26 Thread Feng Sun
After commit baeababb5b85d5c4e6c917efe2a1504179438d3b ("tun: return NET_XMIT_DROP for dropped packets"), when tun_net_xmit drop packets, it will free skb and return NET_XMIT_DROP, netpoll_send_skb_on_dev will run into following use after free cases: 1. retry netpoll_start_xmit with freed skb; 2.

Re: [PATCH v2 3/3] dwc: PCI: intel: Intel PCIe RC controller driver

2019-08-26 Thread Dilip Kota
[Got delivery failure mail , so re-sending the mail] Hi Martin, Thanks for review comments, please find my response inline. On 8/26/2019 11:30 AM, Chuan Hua, Lei wrote: Hi Martin, Thanks for your valuable comments. I reply some of them as below. Regards, Chuanhua On 8/25/2019 5:03 AM,

linux-next: manual merge of the gpio-brgl tree with the gpio tree

2019-08-26 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the gpio-brgl tree got a conflict in: include/linux/gpio/driver.h between commit: c7663fa2a663 ("gpio: Move gpiochip_lock/unlock_as_irq to gpio/driver.h") from the gpio tree and commit: 9091373ab7ea ("gpio: remove less important #ifdef around

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

2019-08-26 Thread Guo Ren
Thx Christoph, On Mon, Aug 26, 2019 at 2:38 PM Christoph Hellwig wrote: > > On Thu, Aug 22, 2019 at 11:05:22AM +0800, guo...@kernel.org wrote: > > 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.

Re: [PATCH v4 00/13] Support CPU frequency scaling on QCS404

2019-08-26 Thread Jorge Ramirez
On 7/31/19 22:29, Jorge Ramirez-Ortiz wrote: > The following patchset enables CPU frequency scaling support on the > QCS404 (with dynamic voltage scaling). > > It is important to notice that this functionality will be superseded > by Core Power Reduction (CPR), a more accurate form of AVS found

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

2019-08-26 Thread Christoph Hellwig
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 ahead and start looking these up and parsing these.. >> >> We could send the

Re: [PATCH] bpf: handle 32-bit zext during constant blinding

2019-08-26 Thread Naveen N. Rao
Jiong Wang wrote: Naveen N. Rao writes: Since BPF constant blinding is performed after the verifier pass, the ALU32 instructions inserted for doubleword immediate loads don't have a corresponding zext instruction. This is causing a kernel oops on powerpc and can be reproduced by running

[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) -

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()

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

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

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

[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

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

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

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

[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

[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

[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 +++

[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

[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

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. > >

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:

[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

[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:

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

[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

[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

[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"

[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 +++

[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

[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

[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

[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

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]

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

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

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 > --- >

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 > > >>

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: > > > >

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

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

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

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 > > >

[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

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

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

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

[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

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

[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

[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

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

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

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

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

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,

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 &

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

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

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 >>

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 >>>

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

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

  1   2   3   4   5   6   7   8   9   10   >