[PATCH] selftests/tpm2: Add the missing TEST_FILES assignment

2019-09-10 Thread Jarkko Sakkinen
The Python files required by the selftests are not packaged because of the missing assignment to TEST_FILES. Add the assignment. Cc: sta...@vger.kernel.org Fixes: 6ea3dfe1e073 ("selftests: add TPM 2.0 tests") Signed-off-by: Jarkko Sakkinen --- tools/testing/selftests/tpm2/Makefile | 1 + 1 file

[PATCH] RDMA: fix goto target to release the allocated memory

2019-09-10 Thread Navid Emamdoost
In bnxt_re_create_srq, when ib_copy_to_udata fails allocated memory should be released by goto fail. Signed-off-by: Navid Emamdoost --- drivers/infiniband/hw/bnxt_re/ib_verbs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/infiniband/hw/bnxt_re/ib_verbs.c

Re: [PATCH] ftgmac100: Disable HW checksum generation on AST2500

2019-09-10 Thread Vijay Khemka
On 9/10/19, 3:05 PM, "Florian Fainelli" wrote: On 9/10/19 2:37 PM, Vijay Khemka wrote: > HW checksum generation is not working for AST2500, specially with IPV6 > over NCSI. All TCP packets with IPv6 get dropped. By disabling this > it works perfectly fine with IPV6. >

Re: [PATCH v9 1/8] mm: Add per-cpu logic to page shuffling

2019-09-10 Thread Alexander Duyck
On Tue, 2019-09-10 at 14:11 +0200, Michal Hocko wrote: > On Mon 09-09-19 08:11:36, Alexander Duyck wrote: > > On Mon, 2019-09-09 at 10:14 +0200, David Hildenbrand wrote: > > > On 07.09.19 19:25, Alexander Duyck wrote: > > > > From: Alexander Duyck > > > > > > > > Change the logic used to

Re: [PATCH v9 1/8] mm: Add per-cpu logic to page shuffling

2019-09-10 Thread Alexander Duyck
On Mon, 2019-09-09 at 10:14 +0200, David Hildenbrand wrote: > On 07.09.19 19:25, Alexander Duyck wrote: > > From: Alexander Duyck > > > > Change the logic used to generate randomness in the suffle path so that we > > can avoid cache line bouncing. The previous logic was sharing the offset > >

Re: [PATCH v2 1/4] gpio/aspeed: Fix incorrect number of banks

2019-09-10 Thread Vijay Khemka
On 9/4/19, 6:17 PM, "Linux-aspeed on behalf of Rashmica Gupta" wrote: The current calculation for the number of GPIO banks is only correct if the number of GPIOs is a multiple of 32 (if there were 31 GPIOs we would currently say there are 0 banks, which is incorrect).

Re: [PATCH] ftgmac100: Disable HW checksum generation on AST2500

2019-09-10 Thread Florian Fainelli
On 9/10/19 2:37 PM, Vijay Khemka wrote: > HW checksum generation is not working for AST2500, specially with IPV6 > over NCSI. All TCP packets with IPv6 get dropped. By disabling this > it works perfectly fine with IPV6. > > Verified with IPV6 enabled and can do ssh. How about IPv4, do these

[GIT PULL][SECURITY] Kernel lockdown patches for v5.4

2019-09-10 Thread James Morris
Hi Linus, This is the latest iteration of the kernel lockdown patchset, from Matthew Garrett, David Howells and others. >From the original description: This patchset introduces an optional kernel lockdown feature, intended to strengthen the boundary between UID 0 and the kernel. When

Re: [PATCH v9 0/8] stg mail -e --version=v9 \

2019-09-10 Thread Alexander Duyck
On Tue, 2019-09-10 at 19:52 +0200, Michal Hocko wrote: > On Tue 10-09-19 09:05:43, Alexander Duyck wrote: > > On Tue, Sep 10, 2019 at 7:47 AM Michal Hocko wrote: > > > On Tue 10-09-19 07:42:43, Alexander Duyck wrote: > > > > On Tue, Sep 10, 2019 at 5:42 AM Michal Hocko wrote: > > > > > I wanted

Re: [Xen-devel] [PATCH] xen/pci: try to reserve MCFG areas earlier

2019-09-10 Thread Boris Ostrovsky
On 9/10/19 4:36 PM, Igor Druzhinin wrote: > On 10/09/2019 18:48, Boris Ostrovsky wrote: >> On 9/10/19 5:46 AM, Igor Druzhinin wrote: >>> On 10/09/2019 02:47, Boris Ostrovsky wrote: On 9/9/19 5:48 PM, Igor Druzhinin wrote: > On 09/09/2019 20:19, Boris Ostrovsky wrote: > >> The

[PATCH] cxgb4: Fix spelling typos

2019-09-10 Thread Arkadiusz Drabczyk
Fix several spelling typos in comments in t4_hw.c. Signed-off-by: Arkadiusz Drabczyk --- drivers/net/ethernet/chelsio/cxgb4/t4_hw.c | 30 +++--- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/drivers/net/ethernet/chelsio/cxgb4/t4_hw.c

Re: [PATCH -next v2] sched/fair: fix -Wunused-but-set-variable warnings

2019-09-10 Thread Qian Cai
On Tue, 2019-09-03 at 16:15 +0200, Peter Zijlstra wrote: > On Tue, Sep 03, 2019 at 09:03:26AM -0400, Qian Cai wrote: > > Ingo or Peter, please take a look at this trivial patch. Still see the > > warning > > in linux-next every day. > > > > On Tue, 2019-08-20 at 14:40 -0400, Qian Cai wrote: > >

Re: [PATCH v9 0/8] stg mail -e --version=v9 \

2019-09-10 Thread Alexander Duyck
On Tue, 2019-09-10 at 20:00 +0200, Michal Hocko wrote: > On Tue 10-09-19 19:52:13, Michal Hocko wrote: > > On Tue 10-09-19 09:05:43, Alexander Duyck wrote: > [...] > > > All this is providing is just a report and it is optional if the > > > hypervisor will act on it or not. If the hypervisor takes

Re: [Xen-devel] [PATCH] xen/pci: try to reserve MCFG areas earlier

2019-09-10 Thread Igor Druzhinin
On 10/09/2019 18:48, Boris Ostrovsky wrote: > On 9/10/19 5:46 AM, Igor Druzhinin wrote: >> On 10/09/2019 02:47, Boris Ostrovsky wrote: >>> On 9/9/19 5:48 PM, Igor Druzhinin wrote: On 09/09/2019 20:19, Boris Ostrovsky wrote: > The other question I have is why you think it's worth

Re: page_alloc.shuffle=1 + CONFIG_PROVE_LOCKING=y = arm64 hang

2019-09-10 Thread Qian Cai
On Tue, 2019-09-10 at 11:22 -0400, Qian Cai wrote: > On Thu, 2019-09-05 at 17:08 -0400, Qian Cai wrote: > > Another data point is if change CONFIG_DEBUG_OBJECTS_TIMERS from =y to =n, > > it > > will also fix it. > > > > On Thu, 2019-08-22 at 17:33 -0400, Qian Cai wrote: > > >

Re: [PATCH net-next 0/6] net: stmmac: Improvements for -next

2019-09-10 Thread Jesse Brandeburg
On Tue, 10 Sep 2019 16:41:21 +0200 Jose wrote: > Misc patches for -next. It includes: > - Two fixes for features in -next only > - New features support for GMAC cores (which includes GMAC4 and GMAC5) > > --- > Cc: Giuseppe Cavallaro > Cc: Alexandre Torgue > Cc: Jose Abreu > Cc: "David S.

Re: [PATCH v9 3/8] mm: Move set/get_pcppage_migratetype to mmzone.h

2019-09-10 Thread Alexander Duyck
On Tue, 2019-09-10 at 19:45 +0200, Michal Hocko wrote: > On Tue 10-09-19 07:46:50, Alexander Duyck wrote: > > On Tue, Sep 10, 2019 at 5:23 AM Michal Hocko wrote: > > > On Sat 07-09-19 10:25:28, Alexander Duyck wrote: > > > > From: Alexander Duyck > > > > > > > > In order to support page

Re: [PATCH] iio: light: bh1750: Move static keyword to the front of declaration

2019-09-10 Thread Krzysztof Wilczynski
Hello Jonathan, Thank you for the feedback. I really appreciate it. [...] > We can do that of course, but that's nothing to do with moving the static > keyword to the front of the declaration which is what the patch claims > to be doing. I see your point. I am going to send a v2 that

Re: [PATCH] mm: Add callback for defining compaction completion

2019-09-10 Thread Michal Hocko
On Tue 10-09-19 13:07:32, Nitin Gupta wrote: > For some applications we need to allocate almost all memory as hugepages. > However, on a running system, higher order allocations can fail if the > memory is fragmented. Linux kernel currently does on-demand compaction as > we request more hugepages

[PATCH 2/2] power_supply: max77693: Listen for cable events and enable charging

2019-09-10 Thread Denis 'GNUtoo' Carikli
From: Wolfgang Wiedmeyer This patch adds a listener for extcon cable events and enables charging if an USB cable is connected. It recognizes SDP and DCP cable types and treats them the same (same input current and fast charge current). The maximum input current is set before the charger is

[PATCH 1/2] mfd: max77693: Add defines for charger current control

2019-09-10 Thread Denis 'GNUtoo' Carikli
From: Wolfgang Wiedmeyer This prepares for an updated regulator and charger driver. The defines are needed to set the maximum input current and the fast charge current. Signed-off-by: Wolfgang Wiedmeyer gnu...@cyberdimension.org: small fix Signed-off-by: Denis 'GNUtoo' Carikli ---

Re: [RESEND,v2 2/2] leds: tlc591xx: Use the OF version of the LED registration function

2019-09-10 Thread Jacek Anaszewski
Hi Jean, Thank you the patch. On 9/10/19 3:38 PM, Jean-Jacques Hiblot wrote: > The driver parses the device-tree to identify which LED should be handled. > Since the information about the device node is known at this time, we can > provide the LED core with it. It may be useful later. > >

[PATCH] mm: Add callback for defining compaction completion

2019-09-10 Thread Nitin Gupta
For some applications we need to allocate almost all memory as hugepages. However, on a running system, higher order allocations can fail if the memory is fragmented. Linux kernel currently does on-demand compaction as we request more hugepages but this style of compaction incurs very high

Re: [Letux-kernel] [RFC PATCH 0/3] Enable 1GHz support on omap36xx

2019-09-10 Thread Adam Ford
On Tue, Sep 10, 2019 at 2:55 PM H. Nikolaus Schaller wrote: > > Ok, > > > Am 10.09.2019 um 20:51 schrieb H. Nikolaus Schaller : > > > it, but then I got some nasty errors and crashes. > >>> > >>> I have done the same but not (yet) seen a crash or error. Maybe you had > >>> a typo? > >> > >>

[PATCH] PCI/switchtec: read all 64bits of part_event_bitmap

2019-09-10 Thread Logan Gunthorpe
The part_event_bitmap register is 64 bits wide and should be read with ioread64 instead of the 32-bit ioread32. Reported-by: Doug Meyer Signed-off-by: Logan Gunthorpe Cc: Bjorn Helgaas Cc: Kelvin Cao --- drivers/pci/switch/switchtec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)

Re: [PATCH] regulator: core: Fix error return for /sys access

2019-09-10 Thread Adam Ford
On Tue, Sep 10, 2019 at 2:22 PM H. Nikolaus Schaller wrote: > > regulator_uV_show() is missing error handling if regulator_get_voltage_rdev() > returns negative values. Instead it prints the errno as a string, e.g. -EINVAL > as "-22" which could be interpreted as -22 µV. > > We also do not need

Re: [Letux-kernel] [RFC PATCH 0/3] Enable 1GHz support on omap36xx

2019-09-10 Thread H. Nikolaus Schaller
Ok, > Am 10.09.2019 um 20:51 schrieb H. Nikolaus Schaller : > it, but then I got some nasty errors and crashes. >>> >>> I have done the same but not (yet) seen a crash or error. Maybe you had >>> a typo? >> >> Can you send me an updated patch? I'd like to try to get where you >> are that

Re: [PATCH net-next 2/2] mlx5: fix type mismatch

2019-09-10 Thread Arnd Bergmann
On Tue, Sep 10, 2019 at 7:56 PM Saeed Mahameed wrote: > > On Mon, 2019-09-09 at 21:50 +0200, Arnd Bergmann wrote: > > In mlx5, pointers to 'phys_addr_t' and 'u64' are mixed since the > > addition > > of the pool memory allocator, leading to incorrect behavior on 32-bit > > architectures and this

Re: page_alloc.shuffle=1 + CONFIG_PROVE_LOCKING=y = arm64 hang

2019-09-10 Thread Qian Cai
On Tue, 2019-09-10 at 11:22 -0400, Qian Cai wrote: > On Thu, 2019-09-05 at 17:08 -0400, Qian Cai wrote: > > Another data point is if change CONFIG_DEBUG_OBJECTS_TIMERS from =y to =n, > > it > > will also fix it. > > > > On Thu, 2019-08-22 at 17:33 -0400, Qian Cai wrote: > > >

Re: [PATCH v6 01/12] tools lib traceevent: Convert remaining %p[fF] users to %p[sS]

2019-09-10 Thread Joe Perches
On Tue, 2019-09-10 at 15:03 -0400, Steven Rostedt wrote: > On Tue, 10 Sep 2019 11:42:06 -0700 [] > > btw: > > > > Is there kernel version information available in > > trace output files? > > Not really. This is just a library that parses the trace event formats, > there's not kernel versions

Re: [Letux-kernel] [RFC PATCH 0/3] Enable 1GHz support on omap36xx

2019-09-10 Thread Adam Ford
On Tue, Sep 10, 2019 at 1:51 PM H. Nikolaus Schaller wrote: > > Hi, > > > Am 10.09.2019 um 20:30 schrieb Adam Ford : > > > > On Tue, Sep 10, 2019 at 11:59 AM H. Nikolaus Schaller > > wrote: > >> > >> Hi Adam, > >> > >>> Am 09.09.2019 um 21:13 schrieb Adam Ford : > >>> > >>> On Mon, Sep 9, 2019

Re: [PATCH 1/1] mm/migrate: fix list corruption in migration of non-LRU movable pages

2019-09-10 Thread Michal Hocko
On Tue 10-09-19 12:23:04, Minchan Kim wrote: > On Tue, Sep 03, 2019 at 04:27:46PM +0800, sunqiuyang wrote: > > From: Qiuyang Sun > > > > Currently, after a page is migrated, it > > 1) has its PG_isolated flag cleared in move_to_new_page(), and > > 2) is deleted from its LRU list

Re: [RFC PATCH 1/2] x86: Don't let pgprot_modify() change the page encryption bit

2019-09-10 Thread VMware
On 9/10/19 6:11 PM, Andy Lutomirski wrote: On Sep 5, 2019, at 8:24 AM, Christoph Hellwig wrote: On Thu, Sep 05, 2019 at 05:21:24PM +0200, Thomas Hellström (VMware) wrote: On 9/5/19 4:15 PM, Dave Hansen wrote: Hi Thomas, Thanks for the second batch of patches! These look much improved on

Re: [Letux-kernel] [RFC PATCH 0/3] Enable 1GHz support on omap36xx

2019-09-10 Thread H. Nikolaus Schaller
Hi Adam, > Am 10.09.2019 um 20:51 schrieb H. Nikolaus Schaller : > > Hi, > >> Am 10.09.2019 um 20:30 schrieb Adam Ford : >> >> On Tue, Sep 10, 2019 at 11:59 AM H. Nikolaus Schaller >> wrote: >>> >> >> I assumed this to be -EINVAL, but I'd be happy to be wrong. > > It seems that cat

Re: [PATCH net 1/2] sctp: remove redundant assignment when call sctp_get_port_local

2019-09-10 Thread Dan Carpenter
On Tue, Sep 10, 2019 at 09:57:10PM +0300, Dan Carpenter wrote: > On Tue, Sep 10, 2019 at 03:13:42PM +0800, Mao Wenan wrote: > > There are more parentheses in if clause when call sctp_get_port_local > > in sctp_do_bind, and redundant assignment to 'ret'. This patch is to > > do cleanup. > > > >

Re: [PATCH 1/1] mm/migrate: fix list corruption in migration of non-LRU movable pages

2019-09-10 Thread Minchan Kim
On Tue, Sep 03, 2019 at 04:27:46PM +0800, sunqiuyang wrote: > From: Qiuyang Sun > > Currently, after a page is migrated, it > 1) has its PG_isolated flag cleared in move_to_new_page(), and > 2) is deleted from its LRU list (cc->migratepages) in unmap_and_move(). > However, between steps 1) and

[PATCH] regulator: core: Fix error return for /sys access

2019-09-10 Thread H. Nikolaus Schaller
regulator_uV_show() is missing error handling if regulator_get_voltage_rdev() returns negative values. Instead it prints the errno as a string, e.g. -EINVAL as "-22" which could be interpreted as -22 µV. We also do not need to hold the lock while converting the integer to a string. Reported-by:

Re: INFO: rcu detected stall in br_handle_frame

2019-09-10 Thread Cong Wang
#syz fix: sch_hhf: ensure quantum and hhf_non_hh_weight are non-zero

Re: INFO: rcu detected stall in addrconf_dad_work

2019-09-10 Thread Cong Wang
#syz fix: sch_hhf: ensure quantum and hhf_non_hh_weight are non-zero

INFO: rcu detected stall in br_handle_frame

2019-09-10 Thread syzbot
Hello, syzbot found the following crash on: HEAD commit:3b47fd5c Merge tag 'nfs-for-5.3-4' of git://git.linux-nfs... git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=1298300160 kernel config: https://syzkaller.appspot.com/x/.config?x=b89bb446a3faaba4

INFO: rcu detected stall in addrconf_dad_work

2019-09-10 Thread syzbot
Hello, syzbot found the following crash on: HEAD commit:3b47fd5c Merge tag 'nfs-for-5.3-4' of git://git.linux-nfs... git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=126c0f5160 kernel config: https://syzkaller.appspot.com/x/.config?x=b89bb446a3faaba4

Re: [PATCH] net/mlx5: reduce stack usage in FW tracer

2019-09-10 Thread Saeed Mahameed
On Tue, 2019-09-10 at 15:38 +, David Laight wrote: > From: Arnd Bergmann > > Sent: 10 September 2019 09:15 > ... > > > I am not sure how this would work, since the format parameters > > > can > > > changes depending on the FW string and the specific traces. > > > > Ah, so the format string

syzbot report in rsi_91x_usb.c

2019-09-10 Thread Julia Lawall
Hello, I spent some time looking at: https://syzkaller.appspot.com/bug?id=c1b6aa968706d9380dcdb98a9f2c338071cc938c which does not yet report that it has been fixed. The problem seems to be in rsi_probe in drivers/net/wireless/rsi/rsi_91x_usb.c. This ends with the following code:

[PATCH v2 2/3] soc: amazon: al-pos: Introduce Amazon's Annapurna Labs POS driver

2019-09-10 Thread Talel Shenhar
The Amazon's Annapurna Labs SoCs includes Point Of Serialization error logging unit that reports an error in case write error (e.g. attempt to write to a read only register). This patch introduces the support for this unit. Signed-off-by: Talel Shenhar --- MAINTAINERS | 7 +++

[PATCH v2 3/3] soc: amazon: al-pos: cast to u64 before left shifting

2019-09-10 Thread Talel Shenhar
Fix wrap around for pos errors on addresses above 32 bit. Reported-by: kbuild test robot Signed-off-by: Talel Shenhar --- drivers/soc/amazon/al_pos.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/soc/amazon/al_pos.c b/drivers/soc/amazon/al_pos.c index

[PATCH v2 1/3] dt-bindings: soc: al-pos: Amazon's Annapurna Labs POS

2019-09-10 Thread Talel Shenhar
Document Amazon's Annapurna Labs POS SoC binding. Signed-off-by: Talel Shenhar --- .../devicetree/bindings/soc/amazon/amazon,al-pos.txt | 18 ++ 1 file changed, 18 insertions(+) create mode 100644 Documentation/devicetree/bindings/soc/amazon/amazon,al-pos.txt diff --git

[PATCH v2 0/3] Amazon's Annapurna Labs POS Driver

2019-09-10 Thread Talel Shenhar
The Amazon's Annapurna Labs SoCs includes Point Of Serialization error logging unit that reports an error in case of write error (e.g. attempt to write to a read only register). This patch series introduces the support for this unit. Changes since v1: = - move MODULE_ to the end

[PATCH 1/3] rtlwifi: rtl8192ce: replace _rtl92c_evm_db_to_percentage with generic version

2019-09-10 Thread Michael Straube
Function _rtl92c_evm_db_to_percentage is functionally identical to the generic version rtl_evm_db_to_percentage, so remove _rtl92c_evm_db_to_percentage and use the generic version instead. Signed-off-by: Michael Straube --- .../wireless/realtek/rtlwifi/rtl8192ce/trx.c | 23 +--

[PATCH 3/3] rtlwifi: rtl8192de: replace _rtl92d_evm_db_to_percentage with generic version

2019-09-10 Thread Michael Straube
Function _rtl92d_evm_db_to_percentage is functionally identical to the generic version rtl_evm_db_to_percentage, so remove _rtl92d_evm_db_to_percentage and use the generic version instead. Signed-off-by: Michael Straube --- .../wireless/realtek/rtlwifi/rtl8192de/trx.c | 18 ++

[PATCH 0/3] rtlwifi: use generic rtl_evm_db_to_percentage

2019-09-10 Thread Michael Straube
Functions _rtl92{c,d}_evm_db_to_percentage are functionally identical to the generic version rtl_evm_db_to percentage. This series converts rtl8192ce, rtl8192cu and rtl8192de to use the generic version. Michael Straube (3): rtlwifi: rtl8192ce: replace _rtl92c_evm_db_to_percentage with generic

[PATCH 2/3] rtlwifi: rtl8192cu: replace _rtl92c_evm_db_to_percentage with generic version

2019-09-10 Thread Michael Straube
Function _rtl92c_evm_db_to_percentage is functionally identical to the generic version rtl_evm_db_to_percentage, so remove _rtl92c_evm_db_to_percentage and use the generic version instead. Signed-off-by: Michael Straube --- .../wireless/realtek/rtlwifi/rtl8192cu/mac.c | 18 +-

Re: [PATCH v6 01/12] tools lib traceevent: Convert remaining %p[fF] users to %p[sS]

2019-09-10 Thread Steven Rostedt
On Tue, 10 Sep 2019 11:42:06 -0700 Joe Perches wrote: > On Tue, 2019-09-10 at 14:26 -0400, Steven Rostedt wrote: > > On Tue, 10 Sep 2019 10:18:44 -0700 > > Joe Perches wrote: > > > > > > It's not just for the lastest kernel. We must maintain backward > > > > compatibility here too. If there

Re: [PATCH net 1/2] sctp: remove redundant assignment when call sctp_get_port_local

2019-09-10 Thread Dan Carpenter
On Tue, Sep 10, 2019 at 03:13:42PM +0800, Mao Wenan wrote: > There are more parentheses in if clause when call sctp_get_port_local > in sctp_do_bind, and redundant assignment to 'ret'. This patch is to > do cleanup. > > Signed-off-by: Mao Wenan > --- > net/sctp/socket.c | 3 +-- > 1 file

Re: [Letux-kernel] [RFC PATCH 0/3] Enable 1GHz support on omap36xx

2019-09-10 Thread H. Nikolaus Schaller
Hi, > Am 10.09.2019 um 20:30 schrieb Adam Ford : > > On Tue, Sep 10, 2019 at 11:59 AM H. Nikolaus Schaller > wrote: >> >> Hi Adam, >> >>> Am 09.09.2019 um 21:13 schrieb Adam Ford : >>> >>> On Mon, Sep 9, 2019 at 1:11 PM H. Nikolaus Schaller >>> wrote: Ok, we have to check if

Re: [PATCH] ARM: dts: imx6dl: SolidRun: add phy node with 100Mb/s max-speed

2019-09-10 Thread Andrew Lunn
On Tue, Sep 10, 2019 at 06:55:07PM +0300, tinywrkb wrote: > Cubox-i Solo/DualLite carrier board has 100Mb/s magnetics while the > Atheros AR8035 PHY on the MicroSoM v1.3 CPU module is a 1GbE PHY device. > > Since commit 5502b218e001 ("net: phy: use phy_resolve_aneg_linkmode in >

[PATCH RESEND 2/2] hexagon: defconfig: Cleanup from old Kconfig options

2019-09-10 Thread Krzysztof Kozlowski
Remove old, dead Kconfig options (in order appearing in this commit): - EXPERIMENTAL is gone since v3.9; - NETDEV_1000 and NETDEV_1: commit f860b0522f65 ("drivers/net: Kconfig and Makefile cleanup"); NET_ETHERNET should be replaced with just ETHERNET but that is separate change; -

[PATCH RESEND 1/2] hexagon: configs: Remove useless UEVENT_HELPER_PATH

2019-09-10 Thread Krzysztof Kozlowski
Remove the CONFIG_UEVENT_HELPER_PATH because: 1. It is disabled since commit 1be01d4a5714 ("driver: base: Disable CONFIG_UEVENT_HELPER by default") as its dependency (UEVENT_HELPER) was made default to 'n', 2. It is not recommended (help message: "This should not be used today [...]

Re: [RFC,v2 2/6] i2c: add I2C Address Translator (ATR) support

2019-09-10 Thread Wolfram Sang
> I still have to examine in depth all of the problems in the i2c-mux > documented in Documentation/i2c/i2c-topology (thanks for having written > those docs!), but at first sight it looks like the ATR is not going to > introduce big problems because of how it works. Assuming we are using the

[PATCH RESEND] ia64: configs: Remove useless UEVENT_HELPER_PATH

2019-09-10 Thread Krzysztof Kozlowski
Remove the CONFIG_UEVENT_HELPER_PATH because: 1. It is disabled since commit 1be01d4a5714 ("driver: base: Disable CONFIG_UEVENT_HELPER by default") as its dependency (UEVENT_HELPER) was made default to 'n', 2. It is not recommended (help message: "This should not be used today [...]

[PATCH RESEND] unicore32: defconfig: Cleanup from old Kconfig options

2019-09-10 Thread Krzysztof Kozlowski
Remove old, dead Kconfig options (in order appearing in this commit): - EXPERIMENTAL is gone since v3.9; - MTD_PARTITIONS: commit 6a8a98b22b10 ("mtd: kill CONFIG_MTD_PARTITIONS"); - MTD_CHAR: commit 660685d9d1b4 ("mtd: merge mtdchar module with mtdcore"); - NETDEV_1000: commit

[PATCH RESEND] config: android: Remove left-over BACKLIGHT_LCD_SUPPORT

2019-09-10 Thread Krzysztof Kozlowski
The CONFIG_BACKLIGHT_LCD_SUPPORT was removed in commit 8c5dc8d9f19c ("video: backlight: Remove useless BACKLIGHT_LCD_SUPPORT kernel symbol"). Options protected by CONFIG_BACKLIGHT_LCD_SUPPORT are now available directly. Signed-off-by: Krzysztof Kozlowski ---

Re: [PATCH v6 01/12] tools lib traceevent: Convert remaining %p[fF] users to %p[sS]

2019-09-10 Thread Joe Perches
On Tue, 2019-09-10 at 14:26 -0400, Steven Rostedt wrote: > On Tue, 10 Sep 2019 10:18:44 -0700 > Joe Perches wrote: > > > > It's not just for the lastest kernel. We must maintain backward > > > compatibility here too. If there use to be a usage of this, then we > > > must keep it until the

Re: [PATCH] powerpc: Avoid clang warnings around setjmp and longjmp

2019-09-10 Thread Nathan Chancellor
On Wed, Sep 11, 2019 at 04:30:38AM +1000, Michael Ellerman wrote: > Nathan Chancellor writes: > > On Wed, Sep 04, 2019 at 08:01:35AM -0500, Segher Boessenkool wrote: > >> On Wed, Sep 04, 2019 at 08:16:45AM +, David Laight wrote: > >> > From: Nathan Chancellor [mailto:natechancel...@gmail.com]

Re: [PATCH net-next v2 3/3] net: dsa: microchip: remove NET_DSA_TAG_KSZ_COMMON

2019-09-10 Thread Andrew Lunn
On Tue, Sep 10, 2019 at 08:18:36AM -0500, George McCollister wrote: > Remove the superfluous NET_DSA_TAG_KSZ_COMMON and just use the existing > NET_DSA_TAG_KSZ. Update the description to mention the three switch > families it supports. No functional change. > > Signed-off-by: George McCollister

Re: [PATCH net-next v2 2/3] net: dsa: microchip: add ksz9567 to ksz9477 driver

2019-09-10 Thread Florian Fainelli
On 9/10/19 6:18 AM, George McCollister wrote: > Add support for the KSZ9567 7-Port Gigabit Ethernet Switch to the > ksz9477 driver. The KSZ9567 supports both SPI and I2C. Oddly the > ksz9567 is already in the device tree binding documentation. > > Signed-off-by: George McCollister > Reviewed-by:

Re: [PATCH net-next v2 3/3] net: dsa: microchip: remove NET_DSA_TAG_KSZ_COMMON

2019-09-10 Thread Florian Fainelli
On 9/10/19 6:18 AM, George McCollister wrote: > Remove the superfluous NET_DSA_TAG_KSZ_COMMON and just use the existing > NET_DSA_TAG_KSZ. Update the description to mention the three switch > families it supports. No functional change. > > Signed-off-by: George McCollister > Reviewed-by: Marek

Re: [PATCH net-next v2 2/3] net: dsa: microchip: add ksz9567 to ksz9477 driver

2019-09-10 Thread Andrew Lunn
On Tue, Sep 10, 2019 at 08:18:35AM -0500, George McCollister wrote: > Add support for the KSZ9567 7-Port Gigabit Ethernet Switch to the > ksz9477 driver. The KSZ9567 supports both SPI and I2C. Oddly the > ksz9567 is already in the device tree binding documentation. > > Signed-off-by: George

Re: [Letux-kernel] [RFC PATCH 0/3] Enable 1GHz support on omap36xx

2019-09-10 Thread Adam Ford
On Tue, Sep 10, 2019 at 11:59 AM H. Nikolaus Schaller wrote: > > Hi Adam, > > > Am 09.09.2019 um 21:13 schrieb Adam Ford : > > > > On Mon, Sep 9, 2019 at 1:11 PM H. Nikolaus Schaller > > wrote: > >> > >> Ok, we have to check if the ti,abb-v2 "LDO" driver > >>

Re: [PATCH] powerpc: Avoid clang warnings around setjmp and longjmp

2019-09-10 Thread Michael Ellerman
Nathan Chancellor writes: > On Wed, Sep 04, 2019 at 08:01:35AM -0500, Segher Boessenkool wrote: >> On Wed, Sep 04, 2019 at 08:16:45AM +, David Laight wrote: >> > From: Nathan Chancellor [mailto:natechancel...@gmail.com] >> > > Fair enough so I guess we are back to just outright disabling the

Re: [PATCH v6 01/12] tools lib traceevent: Convert remaining %p[fF] users to %p[sS]

2019-09-10 Thread Steven Rostedt
On Tue, 10 Sep 2019 10:18:44 -0700 Joe Perches wrote: > > It's not just for the lastest kernel. We must maintain backward > > compatibility here too. If there use to be a usage of this, then we > > must keep it until the kernels are no longer used (perhaps 7 years?) > > That argues for not

[PATCH] staging: rtl8192u: ieee80211: Replace snprintf with scnprintf

2019-09-10 Thread Rohit Sarkar
When the number of bytes to be printed exceeds the limit snprintf returns the number of bytes that would have been printed (if there was no truncation). This might cause issues, hence use scnprintf which returns the actual number of bytes printed to buffer always. Signed-off-by: Rohit Sarkar ---

Re: Linux 5.3-rc8

2019-09-10 Thread Linus Torvalds
On Tue, Sep 10, 2019 at 6:33 PM Ahmed S. Darwish wrote: > > While gnome-session is obviously at fault here by requiring > *blocking* randomness at the boot path, it's still not requesting > much, just (5 * 16) bytes to be exact. > > I guess an x86 laptop should be able to provide that, even

Re: [RFC] Add critical process prctl

2019-09-10 Thread Andy Lutomirski
On Tue, Sep 10, 2019 at 10:43 AM Daniel Colascione wrote: > > On Tue, Sep 10, 2019 at 9:57 AM Andy Lutomirski wrote: > > > > On Wed, Sep 4, 2019 at 5:53 PM Daniel Colascione wrote: > > > > > > A task with CAP_SYS_ADMIN can mark itself PR_SET_TASK_CRITICAL, > > > meaning that if the task ever

Re: [PATCH] KVM: s390: kvm_s390_vm_start_migration: check dirty_bitmap before using it as target for memset()

2019-09-10 Thread Heiko Carstens
On Tue, Sep 10, 2019 at 09:02:15AM -0400, Igor Mammedov wrote: > Make sure that ms->dirty_bitmap is set before using it or > print a warning and return -ENIVAL otherwise. ... > v2: >- drop WARN() ... > + if (!ms->dirty_bitmap) > + return -EINVAL; The patch

Re: [PATCH 2/2] watchdog: qcom: remove unnecessary variable from private storage

2019-09-10 Thread Guenter Roeck
On Fri, Sep 06, 2019 at 10:54:11PM +0200, Jorge Ramirez-Ortiz wrote: > there is no need to continue keeping the clock in private storage. > > Signed-off-by: Jorge Ramirez-Ortiz Good catch. Reviewed-by: Guenter Roeck > --- > drivers/watchdog/qcom-wdt.c | 15 +++ > 1 file changed,

Re: [PATCH 1/2] watchdog: qcom: support pre-timeout when the bark irq is available

2019-09-10 Thread Guenter Roeck
On Fri, Sep 06, 2019 at 10:54:10PM +0200, Jorge Ramirez-Ortiz wrote: > Use the bark interrupt as the pre-timeout notifier whenever this > interrupt is available. > > By default, the pretimeout notification shall occur one second earlier > than the timeout. > > Signed-off-by: Jorge Ramirez-Ortiz

[PATCH v2 1/6] selftests/clone3: convert test modes into an enum

2019-09-10 Thread Eugene Syromiatnikov
* tools/testing/selftests/clone3/clone3.c (CLONE3_ARGS_NO_TEST, CLONE3_ARGS_ALL_0, CLONE3_ARGS_ALL_1): Change into an enum. (call_clone3): Change test_mode parameter type to enum test_mode; use switch statement for actions that dependent on test_mode selection. (test_clone3): Change test_mode

[PATCH v2 5/6] selftests/clone3: enable clone3 self-tests on all architectures

2019-09-10 Thread Eugene Syromiatnikov
clone3() is available on most architectures, so there's no reason to restrict the respective self-tests to x86_64. * tools/testing/selftests/clone3/Makefile (TEST_GEN_PROGS): Set always, not only ifeq ($(ARCH),x86_64). Signed-off-by: Eugene Syromiatnikov ---

[PATCH v2 3/6] selftests/clone3: use uint64_t for flags parameter

2019-09-10 Thread Eugene Syromiatnikov
Flags parameter in both userspace and kernel clone args is 64-bit wide, there's little reason to have it signed and 32-bit in tests. * tools/testing/selftests/clone3/clone3.c: Include and . (call_clone3): Change flags parameter type from int to uint64_t. (test_clone3): Change flags parameter

[PATCH v2 4/6] selftests/clone3: fix up format strings

2019-09-10 Thread Eugene Syromiatnikov
* tools/testing/selftests/clone3/clone3.c (test_clone3): Change format qualifier for printing size field from %d to %zu; place colon right after the word "says". Signed-off-by: Eugene Syromiatnikov --- tools/testing/selftests/clone3/clone3.c | 4 ++-- 1 file changed, 2 insertions(+), 2

[PATCH v2 6/6] selftests: add clone3 to TARGETS

2019-09-10 Thread Eugene Syromiatnikov
* tools/testing/selftests/Makefile (TARGETS): Add clone3. Signed-off-by: Eugene Syromiatnikov --- tools/testing/selftests/Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/testing/selftests/Makefile b/tools/testing/selftests/Makefile index 25b43a8c..05163e4 100644 ---

[PATCH v2 2/6] selftests/clone3: add a check for invalid exit_signal

2019-09-10 Thread Eugene Syromiatnikov
Check that the kernel fails calls with exit_signal with non-zero highest 32 bits, negative 32-bit exit_signal, and not failing on passing invalid exit_signal withing CSIGNAL mask, like legacy clone syscalls do. * tools/testing/selftests/clone3/clone3.c (enum test_mode): Add

[PATCH v2 0/6] Update clone3 self-tests

2019-09-10 Thread Eugene Syromiatnikov
Hello. This patch set updates clone3 selftest in several aspects: - adding checks for exit_signal invalid values handling; - adding clone3 to selftests targets; - enabling clone3 tests on all architectures; - minor cleanups of the clone3 test. Applied on top of brauer/linux.git/for-next.

Re: [PATCH v9 0/8] stg mail -e --version=v9 \

2019-09-10 Thread Michal Hocko
On Tue 10-09-19 19:52:13, Michal Hocko wrote: > On Tue 10-09-19 09:05:43, Alexander Duyck wrote: [...] > > All this is providing is just a report and it is optional if the > > hypervisor will act on it or not. If the hypervisor takes some sort of > > action on the page, then the expectation is

Re: [PATCH] net/mlx5: Declare 'rt' as corresponding enum type

2019-09-10 Thread Saeed Mahameed
On Tue, 2019-09-10 at 18:27 +0900, Austin Kim wrote: > When building kernel with clang, we can observe below warning > message: > > drivers/net/ethernet/mellanox/mlx5/core/steering/dr_action.c:1080:9: > warning: implicit conversion from enumeration type 'enum > mlx5_reformat_ctx_type' > to

[PATCH v2] fork: check exit_signal passed in clone3() call

2019-09-10 Thread Eugene Syromiatnikov
Hello. After some consideration, I've decided to utilise Oleg's proposal[1] "(args.exit_signal & ~((u64)CSIGNAL))" as a check. I still don't like it, as it mixes argument copy check (I'm not sure if it's ever needed, however, as I'm not sure if there's a reason for exit_signal field of struct

[PATCH v2] fork: check exit_signal passed in clone3() call

2019-09-10 Thread Eugene Syromiatnikov
Previously, higher 32 bits of exit_signal fields were lost when copied to the kernel args structure (that uses int as a type for the respective field). Moreover, as Oleg has noted[1], exit_signal is used unchecked, so it has to be checked for sanity before use; for the legacy syscalls, applying

Re: [PATCH] drm: include: fix W=1 warnings in struct drm_dsc_config

2019-09-10 Thread Manasi Navare
On Tue, Sep 10, 2019 at 12:58:24PM +, Harry Wentland wrote: > +Manasi, Gaurav > > On 2019-09-09 9:52 a.m., Benjamin Gaignard wrote: > > Change scale_increment_interval and nfl_bpg_offset fields to > > u32 to avoid W=1 warnings because we are testing them against > > 65535. > > > >

Re: [PATCH net-next 2/2] mlx5: fix type mismatch

2019-09-10 Thread Saeed Mahameed
On Mon, 2019-09-09 at 21:50 +0200, Arnd Bergmann wrote: > In mlx5, pointers to 'phys_addr_t' and 'u64' are mixed since the > addition > of the pool memory allocator, leading to incorrect behavior on 32-bit > architectures and this compiler warning: > >

[PATCH v2] virtio: add VIRTIO_RING_NO_LEGACY

2019-09-10 Thread Matej Genci
Add macro to disable legacy functions vring_init and vring_size. Signed-off-by: Matej Genci --- V2: Put all legacy APIs inside guards. --- include/uapi/linux/virtio_ring.h | 8 1 file changed, 8 insertions(+) diff --git a/include/uapi/linux/virtio_ring.h

Re: [PATCH v9 0/8] stg mail -e --version=v9 \

2019-09-10 Thread Michal Hocko
On Tue 10-09-19 09:05:43, Alexander Duyck wrote: > On Tue, Sep 10, 2019 at 7:47 AM Michal Hocko wrote: > > > > On Tue 10-09-19 07:42:43, Alexander Duyck wrote: > > > On Tue, Sep 10, 2019 at 5:42 AM Michal Hocko wrote: > > > > > > > > I wanted to review "mm: Introduce Reported pages" just realize

Re: [Xen-devel] [PATCH] xen/pci: try to reserve MCFG areas earlier

2019-09-10 Thread Boris Ostrovsky
On 9/10/19 5:46 AM, Igor Druzhinin wrote: > On 10/09/2019 02:47, Boris Ostrovsky wrote: >> On 9/9/19 5:48 PM, Igor Druzhinin wrote: >>> On 09/09/2019 20:19, Boris Ostrovsky wrote: On 9/8/19 7:37 PM, Igor Druzhinin wrote: > On 09/09/2019 00:30, Boris Ostrovsky wrote: >> On 9/8/19 5:11

Re: Linux 5.3-rc8

2019-09-10 Thread Reindl Harald
Am 10.09.19 um 19:33 schrieb Ahmed S. Darwish: > Yes, doing any of below steps makes the problem reliably disappear: > > - boot param "random.trust_cpu=on" > - rngd(8) enabled at boot (entropy source: x86 RDRAND + jitter) > - pressing random 3 or 4 keyboard keys while GDM boot is stuck

Re: [PATCH v9 3/8] mm: Move set/get_pcppage_migratetype to mmzone.h

2019-09-10 Thread Michal Hocko
On Tue 10-09-19 07:46:50, Alexander Duyck wrote: > On Tue, Sep 10, 2019 at 5:23 AM Michal Hocko wrote: > > > > On Sat 07-09-19 10:25:28, Alexander Duyck wrote: > > > From: Alexander Duyck > > > > > > In order to support page reporting it will be necessary to store and > > > retrieve the

Re: [RFC] Add critical process prctl

2019-09-10 Thread Daniel Colascione
On Tue, Sep 10, 2019 at 9:57 AM Andy Lutomirski wrote: > > On Wed, Sep 4, 2019 at 5:53 PM Daniel Colascione wrote: > > > > A task with CAP_SYS_ADMIN can mark itself PR_SET_TASK_CRITICAL, > > meaning that if the task ever exits, the kernel panics. This facility > > is intended for use by

Re: [RFC,v2 2/6] i2c: add I2C Address Translator (ATR) support

2019-09-10 Thread Luca Ceresoli
Hi Vladimir, On 09/09/19 05:56, Vladimir Zapolskiy wrote: > Hi Luca, Jacopo, Wolfram, Peter, > > On 09/08/2019 11:45 PM, Vladimir Zapolskiy wrote: >> Hi Luca, Jacopo, Wolfram, Peter, >> >> On 09/01/2019 05:31 PM, jacopo mondi wrote: >>> Hi Luca, >>>thanks for keep pushing this series! I hope

Re: [PATCH v5 4/7] PCI: Add quirk to disable MSI-X support for Amazon's Annapurna Labs Root Port

2019-09-10 Thread Lorenzo Pieralisi
On Sat, Sep 07, 2019 at 11:55:42AM -0500, Bjorn Helgaas wrote: > s/Add quirk to disable/Disable/ in subject > > On Thu, Sep 05, 2019 at 05:00:18PM +0300, Jonathan Chocron wrote: > > The Root Port (identified by [1c36:0031]) doesn't support MSI-X. On some > > platforms it is configured to not

Re: [RFC PATCH v2] mm: initialize struct pages reserved by ZONE_DEVICE driver.

2019-09-10 Thread Michal Hocko
On Tue 10-09-19 07:53:17, Dan Williams wrote: > On Tue, Sep 10, 2019 at 7:01 AM Michal Hocko wrote: > > > > On Fri 06-09-19 08:09:52, Toshiki Fukasawa wrote: > > [...] > > > @@ -5856,8 +5855,6 @@ void __meminit memmap_init_zone(unsigned long size, > > > int nid, unsigned long zone, > > >

Re: Linux 5.3-rc8

2019-09-10 Thread Ahmed S. Darwish
On Tue, Sep 10, 2019 at 12:33:12PM +0100, Linus Torvalds wrote: > On Tue, Sep 10, 2019 at 5:21 AM Ahmed S. Darwish wrote: > > > > The commit b03755ad6f33 (ext4: make __ext4_get_inode_loc plug), [1] > > which was merged in v5.3-rc1, *always* leads to a blocked boot on my > > system due to low

Re: [PATCH net-next 1/7] net: hns3: add ethtool_ops.set_channels support for HNS3 VF driver

2019-09-10 Thread David Miller
From: Huazhong Tan Date: Tue, 10 Sep 2019 16:58:22 +0800 > + /* Set to user value, no larger than max_rss_size. */ > + if (kinfo->req_rss_size != kinfo->rss_size && kinfo->req_rss_size && > + kinfo->req_rss_size <= max_rss_size) { > + dev_info(>pdev->dev, "rss changes

<    1   2   3   4   5   6   7   8   9   >