Re: [PATCH] MAINTAINERS: XDP: restrict N: and K:

2020-07-10 Thread Alexander A. Klimov
Am 10.07.20 um 18:12 schrieb Toke Høiland-Jørgensen: Joe Perches writes: On Fri, 2020-07-10 at 17:14 +0200, Daniel Borkmann wrote: On 7/10/20 8:17 AM, Alexander A. Klimov wrote: Am 09.07.20 um 22:37 schrieb Daniel Borkmann: On 7/9/20 9:42 PM, Alexander A. Klimov wrote: Rationale: Docume

Re: [PATCH][next] dmaengine: ti: k3-udma: Use struct_size() in kzalloc()

2020-07-10 Thread Gustavo A. R. Silva
Hi all, Friendly ping: who can take this, please? Thanks -- Gustavo On Mon, Jun 29, 2020 at 09:43:26AM +0300, Peter Ujfalusi wrote: > > > On 26/06/2020 16.29, Gustavo A. R. Silva wrote: > > Hi Peter, > > > > Please, see my comments below... > > > > On Fri, Jun 26, 2020 at 10:30:37AM +0300, P

Re: [PATCH 1/2] serial: qcom_geni_serial: Make kgdb work even if UART isn't console

2020-07-10 Thread Doug Anderson
Hi, On Fri, Jul 10, 2020 at 10:39 AM Evan Green wrote: > > On Fri, Jun 26, 2020 at 1:01 PM Douglas Anderson > wrote: > > > > The geni serial driver had the rather sketchy hack in it where it > > would adjust the number of bytes per RX FIFO word from 4 down to 1 if > > it detected that CONFIG_CO

drivers/gpu/drm/drm_gem_shmem_helper.c:260:17: error: implicit declaration of function 'pgprot_writecombine'; did you mean

2020-07-10 Thread kernel test robot
config: m68k-randconfig-r002-20200710 (attached as .config) compiler: m68k-linux-gcc (GCC) 9.3.0 reproduce (this is a W=1 build): wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross git checkout

Re: [PATCH] tpm: avoid accessing cleared ops during shutdown

2020-07-10 Thread Andrey Pronin
On Fri, Jul 10, 2020 at 4:40 AM Jarkko Sakkinen wrote: > > On Thu, Jul 09, 2020 at 05:22:09PM -0700, Andrey Pronin wrote: > > This patch prevents NULL dereferencing when using chip->ops while > > sending TPM2_Shutdown command if both tpm_class_shutdown handler and > > tpm_del_char_device are calle

Re: [PATCH 2/2] serial: qcom_geni_serial: Always use 4 bytes per TX FIFO word

2020-07-10 Thread Doug Anderson
Hi, On Fri, Jul 10, 2020 at 10:46 AM Evan Green wrote: > > On Fri, Jun 26, 2020 at 1:01 PM Douglas Anderson > wrote: > > > > The geni serial driver had a rule that we'd only use 1 byte per FIFO > > word for the TX FIFO if we were being used for the serial console. > > This is ugly and a bit of

[PATCH] staging: rts5208: Assign array_size() to a variable

2020-07-10 Thread Gustavo A. R. Silva
Assign array_size() to variable _size_ and use it in multiple places. This issue was found with the help of Coccinelle and, audited and fixed manually. Addresses-KSPP-ID: https://github.com/KSPP/linux/issues/83 Signed-off-by: Gustavo A. R. Silva --- drivers/staging/rts5208/rtsx_chip.c | 12

答复: [External Mail]Re: [PATCH 2/5] power: supply: core: add wireless charger adapter type property

2020-07-10 Thread Fei1 Jiang 蒋飞
Hi Greg, Our new six power supply properties return values are all integer, so please add them above "Properties of type `const char" comment xxx ... /* Properties of type `const char *' */ Thanks! B&R Fei Jiang 发件人: Greg KH 发送时间: 2020年7月10日 18:00 收件人

Re: [PATCH] selftests/livepatch: adopt to newer sysctl error format

2020-07-10 Thread Joe Lawrence
On Fri, Jul 10, 2020 at 05:27:35PM +0200, Petr Mladek wrote: > On Fri 2020-07-10 10:40:43, Kamalesh Babulal wrote: > > With procfs v3.3.16, the sysctl command doesn't prints the set key and > > value on error. This change breaks livepatch selftest test-ftrace.sh, > > that tests the interaction of

Re: [PATCH v2 2/2] arm64: tlb: Use the TLBI RANGE feature in arm64

2020-07-10 Thread Catalin Marinas
On Fri, Jul 10, 2020 at 05:44:20PM +0800, Zhenyu Ye wrote: > Add __TLBI_VADDR_RANGE macro and rewrite __flush_tlb_range(). > > When cpu supports TLBI feature, the minimum range granularity is > decided by 'scale', so we can not flush all pages by one instruction > in some cases. > > For example,

Re: [ANNOUNCE] Git v2.28.0-rc0

2020-07-10 Thread Derrick Stolee
On 7/10/2020 12:07 PM, Junio C Hamano wrote: > Derrick Stolee writes: > >> On 7/9/2020 5:40 PM, Junio C Hamano wrote: >>> An early preview release Git v2.28.0-rc0 is now available for >>> testing at the usual places. >> >> This might be part of your new process, or it might be an >> oversight.

Re: [PATCH v5] ima: move APPRAISE_BOOTPARAM dependency on ARCH_POLICY to runtime

2020-07-10 Thread Bruno Meneguele
On Fri, Jul 10, 2020 at 03:03:38PM -0300, Bruno Meneguele wrote: > On Fri, Jul 10, 2020 at 01:23:24PM -0400, Mimi Zohar wrote: > > On Thu, 2020-07-09 at 13:46 -0300, Bruno Meneguele wrote: > > > APPRAISE_BOOTPARAM has been marked as dependent on !ARCH_POLICY in compile > > > time, enforcing the app

general protection fault in raw_notifier

2020-07-10 Thread syzbot
Hello, syzbot found the following crash on: HEAD commit:7cc2a8ea Merge tag 'block-5.8-2020-07-01' of git://git.ker.. git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=111cddcb10 kernel config: https://syzkaller.appspot.com/x/.config?x=7be693511b29b338 das

Re: [PATCH] MAINTAINERS: XDP: restrict N: and K:

2020-07-10 Thread Joe Perches
On Fri, 2020-07-10 at 20:18 +0200, Alexander A. Klimov wrote: > > Am 10.07.20 um 18:12 schrieb Toke Høiland-Jørgensen: > > Joe Perches writes: > > > > > On Fri, 2020-07-10 at 17:14 +0200, Daniel Borkmann wrote: > > > > On 7/10/20 8:17 AM, Alexander A. Klimov wrote: > > > > > Am 09.07.20 um 22:37

Re: [PATCH] mm: memcontrol: avoid workload stalls when lowering memory.high

2020-07-10 Thread Roman Gushchin
On Fri, Jul 10, 2020 at 07:12:22AM -0700, Shakeel Butt wrote: > On Fri, Jul 10, 2020 at 5:29 AM Michal Hocko wrote: > > > > On Thu 09-07-20 12:47:18, Roman Gushchin wrote: > > > Memory.high limit is implemented in a way such that the kernel > > > penalizes all threads which are allocating a memory

Re: [PATCH] Restore gcc check in mips asm/unroll.h

2020-07-10 Thread Nick Desaulniers
On Thu, Jul 9, 2020 at 5:53 PM Linus Torvalds wrote: > > On Thu, Jul 9, 2020 at 3:11 PM Cesar Eduardo Barros > wrote: > > > > While raising the gcc version requirement to 4.9, the compile-time check > > in the unroll macro was accidentally changed from being used on gcc and > > clang to being use

[rcu:rcu/next] BUILD SUCCESS 3bb1d1bb0740ca3b5ffbbf2bd994175932b6dcb4

2020-07-10 Thread kernel test robot
powerpc allnoconfig powerpc defconfig i386 randconfig-a001-20200710 i386 randconfig-a005-20200710 i386 randconfig-a006-20200710 i386 randconfig-a002-20200710 i386

Re: [PATCH] bpf: fix fds_example SIGSEGV error

2020-07-10 Thread Andrii Nakryiko
On Fri, Jul 10, 2020 at 2:21 AM Wenbo Zhang wrote: > > The `BPF_LOG_BUF_SIZE`'s value is `UINT32_MAX >> 8`, so define an array > with it on stack caused an overflow. > > Signed-off-by: Wenbo Zhang > --- Acked-by: Andrii Nakryiko > samples/bpf/fds_example.c | 3 ++- > 1 file changed, 2 inserti

Re: [PATCH] dma-pool: Only allocate from CMA when in same memory zone

2020-07-10 Thread Jeremy Linton
Hi, I have merged this to a 5.8 tree along with "dma-pool: Fix atomic pool selection" and tested it in various ACPI/DT combinations, particularly on the RPI4. It seems to be working fine. So thanks for your time and effort clearing this up! tested-by: Jeremy Linton On 7/10/20 9:10 AM, N

[PATCH for-next/seccomp 1/2] selftests/seccomp: Add SKIPs for failed unshare()

2020-07-10 Thread Kees Cook
Running the seccomp tests as a regular user shouldn't just fail tests that require CAP_SYS_ADMIN (for getting a PID namespace). Instead, detect those cases and SKIP them. Signed-off-by: Kees Cook --- tools/testing/selftests/seccomp/seccomp_bpf.c | 10 -- 1 file changed, 8 insertions(+),

[PATCH for-next/seccomp 0/2] selftests/seccomp: SKIP tests requiring root

2020-07-10 Thread Kees Cook
Hi, This fixes the seccomp selftests to pass (with SKIPs) for regular users. I intend to put this in for-next/seccomp (to avoid further conflicts with the kselftest tree). (and for those following along, this is effectively based on the -next tree) -Kees Kees Cook (2): selftests/seccomp: Add

[PATCH for-next/seccomp 2/2] selftests/seccomp: Set NNP for TSYNC ESRCH flag test

2020-07-10 Thread Kees Cook
The TSYNC ESRCH flag test will fail for regular users because NNP was not set yet. Add NNP setting. Fixes: 51891498f2da ("seccomp: allow TSYNC and USER_NOTIF together") Cc: sta...@vger.kernel.org Signed-off-by: Kees Cook --- tools/testing/selftests/seccomp/seccomp_bpf.c | 5 + 1 file changed

Re: [PATCH v5] ima: move APPRAISE_BOOTPARAM dependency on ARCH_POLICY to runtime

2020-07-10 Thread Mimi Zohar
On Fri, 2020-07-10 at 15:34 -0300, Bruno Meneguele wrote: > On Fri, Jul 10, 2020 at 03:03:38PM -0300, Bruno Meneguele wrote: > > On Fri, Jul 10, 2020 at 01:23:24PM -0400, Mimi Zohar wrote: > > > On Thu, 2020-07-09 at 13:46 -0300, Bruno Meneguele wrote: > > > > APPRAISE_BOOTPARAM has been marked as

Re: [PATCH] MAINTAINERS: XDP: restrict N: and K:

2020-07-10 Thread Toke Høiland-Jørgensen
Joe Perches writes: > On Fri, 2020-07-10 at 20:18 +0200, Alexander A. Klimov wrote: >> >> Am 10.07.20 um 18:12 schrieb Toke Høiland-Jørgensen: >> > Joe Perches writes: >> > >> > > On Fri, 2020-07-10 at 17:14 +0200, Daniel Borkmann wrote: >> > > > On 7/10/20 8:17 AM, Alexander A. Klimov wrote:

[PATCH 0/2] Add support for SD card on on AM65x-evm

2020-07-10 Thread Faiz Abbas
The following patches add support for SD card node in am654x-evm Because of fundamental interface issues (see patch 2 for details), SD card was never enabled for silicon revision 1.0 These issues have been fixed with SR2.0 but boards with SR1.0 are recommended to disable this node These patches

[PATCH 1/2] arm64: dts: ti: k3-am65-main: Add support for sdhci1

2020-07-10 Thread Faiz Abbas
Add support for the 2nd SDHCI controller on TI's AM654x SoCs. Although it supports upto SDR104 (100 MBps @ 200 MHz) speed mode, only enable support upto High Speed (25 MBps @ 50 MHz) for now. Signed-off-by: Faiz Abbas --- arch/arm64/boot/dts/ti/k3-am65-main.dtsi | 24 1

[PATCH 2/2] arm64: dts: ti: k3-am654-base-board: Add support for SD card

2020-07-10 Thread Faiz Abbas
With silicon revision 2.0, add support for SD card on the am65x-evm. Boards with silicon revision 1.0 are susceptible to interface issues because of erratas i2025 and i2026[1] and are recommended to disable this node. [1] Am654x Silicon Revision 1.0 errata: https://www.ti.com/lit/pdf/sprz452 Sign

Re: [PATCH 1/2] serial: qcom_geni_serial: Make kgdb work even if UART isn't console

2020-07-10 Thread Evan Green
On Fri, Jul 10, 2020 at 11:19 AM Doug Anderson wrote: > > Hi, > > On Fri, Jul 10, 2020 at 10:39 AM Evan Green wrote: > > > > On Fri, Jun 26, 2020 at 1:01 PM Douglas Anderson > > wrote: > > > > > > The geni serial driver had the rather sketchy hack in it where it > > > would adjust the number of

[PATCH v2] MAINTAINERS: XDP: restrict N: and K:

2020-07-10 Thread Alexander A. Klimov
Rationale: Documentation/arm/ixp4xx.rst contains "xdp" as part of "ixdp465" which has nothing to do with XDP. Signed-off-by: Alexander A. Klimov --- Better? MAINTAINERS | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/MAINTAINERS b/MAINTAINERS index 1d4aa7f942de..735e247

Re: [PATCH 2/2] serial: qcom_geni_serial: Always use 4 bytes per TX FIFO word

2020-07-10 Thread Evan Green
On Fri, Jul 10, 2020 at 11:28 AM Doug Anderson wrote: > > Hi, > > On Fri, Jul 10, 2020 at 10:46 AM Evan Green wrote: > > > > On Fri, Jun 26, 2020 at 1:01 PM Douglas Anderson > > wrote: > > > > > > The geni serial driver had a rule that we'd only use 1 byte per FIFO > > > word for the TX FIFO if

Re: [PATCH] tpm: avoid accessing cleared ops during shutdown

2020-07-10 Thread James Bottomley
On Thu, 2020-07-09 at 17:22 -0700, Andrey Pronin wrote: > This patch prevents NULL dereferencing when using chip->ops while > sending TPM2_Shutdown command if both tpm_class_shutdown handler and > tpm_del_char_device are called during system shutdown. > > Both these handlers set chip->ops to NULL

[PATCH] usb: gadget: Replace HTTP links with HTTPS ones

2020-07-10 Thread Alexander A. Klimov
Rationale: Reduces attack surface on kernel devs opening the links for MITM as HTTPS traffic is much harder to manipulate. Deterministic algorithm: For each file: If not .svg: For each line: If doesn't contain `\bxmlns\b`: For each link, `\bhttp://[^# \t\r\n]*(?:\w|/)`:

Re: [PATCH for-next/seccomp 1/2] selftests/seccomp: Add SKIPs for failed unshare()

2020-07-10 Thread Tycho Andersen
On Fri, Jul 10, 2020 at 11:51:55AM -0700, Kees Cook wrote: > Running the seccomp tests as a regular user shouldn't just fail tests > that require CAP_SYS_ADMIN (for getting a PID namespace). Instead, > detect those cases and SKIP them. But if we unshare NEWUSER at the same time as NEWPID, shouldn'

Re: [PATCH for-next/seccomp 2/2] selftests/seccomp: Set NNP for TSYNC ESRCH flag test

2020-07-10 Thread Tycho Andersen
On Fri, Jul 10, 2020 at 11:51:56AM -0700, Kees Cook wrote: > The TSYNC ESRCH flag test will fail for regular users because NNP was > not set yet. Add NNP setting. > > Fixes: 51891498f2da ("seccomp: allow TSYNC and USER_NOTIF together") > Cc: sta...@vger.kernel.org > Signed-off-by: Kees Cook Revi

[PATCH v2 0/2] Exynos5422 DMC: adjust to new devfreq monitoring mechanism

2020-07-10 Thread Lukasz Luba
Hi all, This is a v2 patch set adjusting Exynos5422 DMC to the new devfreq monitoring mechanism. This time the IRQ mode is explicitly controlled using module parameter (in default the driver uses polling mode = devfreq monitoring). The detailed cover letter describing the topic can be found here

[PATCH v2 1/2] memory: samsung: exynos5422-dmc: Adjust polling interval and uptreshold

2020-07-10 Thread Lukasz Luba
In order to react faster and make better decisions under some workloads, benchmarking the memory subsystem behavior, adjust the polling interval and upthreshold value used by the simple_ondemand governor. Reported-by: Willy Wolff Reviewed-by: Chanwoo Choi Signed-off-by: Lukasz Luba --- drivers

[PATCH v2 2/2] memory: samsung: exynos5422-dmc: Add module param to control IRQ mode

2020-07-10 Thread Lukasz Luba
The driver can operate in two modes relaying on devfreq monitoring mechanism which periodically checks the device status or it can use interrupts when they are provided by loaded Device Tree. The newly introduced module parameter can be used to choose between devfreq monitoring and internal interru

Re: [PATCH v2 0/2] arm64: tlb: add support for TLBI RANGE instructions

2020-07-10 Thread Catalin Marinas
On Fri, 10 Jul 2020 17:44:18 +0800, Zhenyu Ye wrote: > NOTICE: this series are based on the arm64 for-next/tlbi branch: > git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-next/tlbi > > -- > ARMv8.4-TLBI provides TLBI invalidation instruction that apply to a > range of input addres

[PATCH] phy: hi3660: Replace HTTP links with HTTPS ones

2020-07-10 Thread Alexander A. Klimov
Rationale: Reduces attack surface on kernel devs opening the links for MITM as HTTPS traffic is much harder to manipulate. Deterministic algorithm: For each file: If not .svg: For each line: If doesn't contain `\bxmlns\b`: For each link, `\bhttp://[^# \t\r\n]*(?:\w|/)`:

Re: [PATCH V6 4/5] iommu/dma-iommu: Use the dev->coherent_dma_mask

2020-07-10 Thread Tom Murphy
>Btw, what is the current state of converting intel-iommu to the dma-iommu These changes expose a bug in the i915 intel driver which hasn't been fixed yet. I don't think anyone is actively working on it but I plan on merging as many patches as I can so it's easier to do the intel-iommu -> dma-iomm

[PATCH] usb: phy: Replace HTTP links with HTTPS ones

2020-07-10 Thread Alexander A. Klimov
Rationale: Reduces attack surface on kernel devs opening the links for MITM as HTTPS traffic is much harder to manipulate. Deterministic algorithm: For each file: If not .svg: For each line: If doesn't contain `\bxmlns\b`: For each link, `\bhttp://[^# \t\r\n]*(?:\w|/)`:

Re: [PATCH] mm: memcontrol: avoid workload stalls when lowering memory.high

2020-07-10 Thread Shakeel Butt
On Fri, Jul 10, 2020 at 11:42 AM Roman Gushchin wrote: > > On Fri, Jul 10, 2020 at 07:12:22AM -0700, Shakeel Butt wrote: > > On Fri, Jul 10, 2020 at 5:29 AM Michal Hocko wrote: > > > > > > On Thu 09-07-20 12:47:18, Roman Gushchin wrote: > > > > Memory.high limit is implemented in a way such that

Re: [linux-sunxi] [PATCH 01/16] ASoC: sun4i-i2s: Add support for H6 I2S

2020-07-10 Thread Jernej Škrabec
Hi Samuel! Dne petek, 10. julij 2020 ob 07:44:33 CEST je Samuel Holland napisal(a): > On 7/4/20 6:38 AM, Clément Péron wrote: > > From: Jernej Skrabec > > > > H6 I2S is very similar to that in H3, except it supports up to 16 > > channels. > > > > Signed-off-by: Jernej Skrabec > > Signed-off-by

Re: [PATCH 1/2] serial: qcom_geni_serial: Make kgdb work even if UART isn't console

2020-07-10 Thread Doug Anderson
Hi, On Fri, Jul 10, 2020 at 12:03 PM Evan Green wrote: > > On Fri, Jul 10, 2020 at 11:19 AM Doug Anderson wrote: > > > > Hi, > > > > On Fri, Jul 10, 2020 at 10:39 AM Evan Green wrote: > > > > > > On Fri, Jun 26, 2020 at 1:01 PM Douglas Anderson > > > wrote: > > > > > > > > The geni serial dri

Re: [PATCH v5] ima: move APPRAISE_BOOTPARAM dependency on ARCH_POLICY to runtime

2020-07-10 Thread Bruno Meneguele
On Fri, Jul 10, 2020 at 02:54:48PM -0400, Mimi Zohar wrote: > On Fri, 2020-07-10 at 15:34 -0300, Bruno Meneguele wrote: > > On Fri, Jul 10, 2020 at 03:03:38PM -0300, Bruno Meneguele wrote: > > > On Fri, Jul 10, 2020 at 01:23:24PM -0400, Mimi Zohar wrote: > > > > On Thu, 2020-07-09 at 13:46 -0300, B

Re: [PATCH v3 0/5] mm/hmm/nouveau: add PMD system memory mapping

2020-07-10 Thread Jason Gunthorpe
On Wed, Jul 01, 2020 at 03:53:47PM -0700, Ralph Campbell wrote: > The goal for this series is to introduce the hmm_pfn_to_map_order() > function. This allows a device driver to know that a given 4K PFN is > actually mapped by the CPU using a larger sized CPU page table entry and > therefore the dev

[PATCH v2] tpm: Require that all digests are present in TCG_PCR_EVENT2 structures

2020-07-10 Thread Tyler Hicks
Require that the TCG_PCR_EVENT2.digests.count value strictly matches the value of TCG_EfiSpecIdEvent.numberOfAlgorithms in the event field of the TCG_PCClientPCREvent event log header. Also require that TCG_EfiSpecIdEvent.numberOfAlgorithms is non-zero. The TCG PC Client Platform Firmware Profile

Re: [PATCH v3] PCI: aardvark: Don't touch PCIe registers if no card connected

2020-07-10 Thread Pali Rohár
On Friday 10 July 2020 11:08:28 Bjorn Helgaas wrote: > On Fri, Jul 10, 2020 at 05:44:58PM +0200, Pali Rohár wrote: > > I can reproduce following issue: Connect Compex WLE900VX card, configure > > aardvark to gen2 mode. And then card is detected only after the first > > link training. If kernel trie

[PATCH v3 1/2] drm/probe_helper: Add drm_connector_helper_funcs.mode_valid_ctx

2020-07-10 Thread Lyude Paul
This is just an atomic version of mode_valid, which is intended to be used for situations where a driver might need to check the atomic state of objects other than the connector itself. One such example is with MST, where the maximum possible bandwidth on a connector can change dynamically irregard

[PATCH v3 2/2] drm/i915/mst: filter out the display mode exceed sink's capability

2020-07-10 Thread Lyude Paul
From: Lee Shawn C So far, max dot clock rate for MST mode rely on physcial bandwidth limitation. It would caused compatibility issue if source display resolution exceed MST hub output ability. For example, source DUT had DP 1.2 output capability. And MST docking just support HDMI 1.4 spec. When

Re: [PATCH] Replace HTTP links with HTTPS ones: USB MASS STORAGE DRIVER

2020-07-10 Thread Alexander A. Klimov
Am 10.07.20 um 12:36 schrieb Stafford Horne: On Thu, Jul 09, 2020 at 08:14:09AM +0200, Greg KH wrote: On Wed, Jul 08, 2020 at 08:41:54PM +0200, Alexander A. Klimov wrote: Am 08.07.20 um 12:39 schrieb Greg KH: On Wed, Jul 08, 2020 at 11:55:00AM +0200, Alexander A. Klimov wrote: Rationale:

Re: [PATCH v2] MAINTAINERS: XDP: restrict N: and K:

2020-07-10 Thread Joe Perches
On Fri, 2020-07-10 at 21:04 +0200, Alexander A. Klimov wrote: > Rationale: > Documentation/arm/ixp4xx.rst contains "xdp" as part of "ixdp465" > which has nothing to do with XDP. > > Signed-off-by: Alexander A. Klimov > --- > Better? > > MAINTAINERS | 4 ++-- > 1 file changed, 2 insertions(+),

[PATCH v2] platform/chrome: cros_ec_typec: USB4 support

2020-07-10 Thread Prashant Malani
From: Heikki Krogerus With USB4 mode the mux driver needs the Enter_USB Data Object (EUDO) that was used when the USB mode was entered. Though the object is not available in the driver, it is possible to construct it from the information we have. Signed-off-by: Heikki Krogerus Signed-off-by: Pr

Re: [Freedreno] [PATCH v4 4/7] drm: msm: a6xx: use dev_pm_opp_set_bw to scale DDR

2020-07-10 Thread Rob Clark
On Thu, Jul 9, 2020 at 1:01 PM Akhil P Oommen wrote: > > From: Sharat Masetty > > This patches replaces the previously used static DDR vote and uses > dev_pm_opp_set_bw() to scale GPU->DDR bandwidth along with scaling > GPU frequency. Also since the icc path voting is handled completely > in the

[PATCH 1/1] mm/vmalloc.c: Add an error message if two areas overlap

2020-07-10 Thread Uladzislau Rezki (Sony)
Before triggering a BUG() it would be useful to understand how two areas overlap between each other. Print information about start/end addresses of both VAs and their addresses. For example if both are identical it could mean double free. Signed-off-by: Uladzislau Rezki (Sony) --- mm/vmalloc.c

Re: [PATCH] mm: memcontrol: avoid workload stalls when lowering memory.high

2020-07-10 Thread Roman Gushchin
On Fri, Jul 10, 2020 at 12:19:37PM -0700, Shakeel Butt wrote: > On Fri, Jul 10, 2020 at 11:42 AM Roman Gushchin wrote: > > > > On Fri, Jul 10, 2020 at 07:12:22AM -0700, Shakeel Butt wrote: > > > On Fri, Jul 10, 2020 at 5:29 AM Michal Hocko wrote: > > > > > > > > On Thu 09-07-20 12:47:18, Roman Gu

Re: [PATCH] ima: Rename internal audit rule functions

2020-07-10 Thread Tyler Hicks
On 2020-06-29 17:30:03, Mimi Zohar wrote: > [Cc'ing the audit mailing list] > > On Mon, 2020-06-29 at 10:30 -0500, Tyler Hicks wrote: > > > > diff --git a/security/integrity/ima/ima.h b/security/integrity/ima/ima.h > > index ff2bf57ff0c7..5d62ee8319f4 100644 > > --- a/security/integrity/ima/ima.h

Re: [PATCH 1/1] mm/vmalloc.c: Add an error message if two areas overlap

2020-07-10 Thread Matthew Wilcox
On Fri, Jul 10, 2020 at 09:40:42PM +0200, Uladzislau Rezki (Sony) wrote: > Before triggering a BUG() it would be useful to understand > how two areas overlap between each other. Print information > about start/end addresses of both VAs and their addresses. > > For example if both are identical it

[PATCH] CREDITS: replace HTTP links with HTTPS ones and add myself

2020-07-10 Thread Alexander A. Klimov
Regarding the links: Rationale: Reduces attack surface on kernel devs opening the links for MITM as HTTPS traffic is much harder to manipulate. Deterministic algorithm: For each file: If not .svg: For each line: If doesn't contain `\bxmlns\b`: For each link, `\bhttp://[^# \t\r

ERROR: modpost: "min_low_pfn" undefined!

2020-07-10 Thread kernel test robot
for VM_DATA_DEFAULT_FLAGS date: 3 months ago config: microblaze-randconfig-c004-20200710 (attached as .config) compiler: microblaze-linux-gcc (GCC) 9.3.0 If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot All errors (new ones prefixed by >>, old ones

Re: [PATCH 1/1] mm/vmalloc.c: Add an error message if two areas overlap

2020-07-10 Thread Uladzislau Rezki
> Before triggering a BUG() it would be useful to understand > how two areas overlap between each other. Print information > about start/end addresses of both VAs and their addresses. > > For example if both are identical it could mean double free. > > Signed-off-by: Uladzislau Rezki (Sony) > --

[PATCH v2 1/1] mm/vmalloc.c: Add an error message if two areas overlap

2020-07-10 Thread Uladzislau Rezki (Sony)
Before triggering a BUG() it would be useful to understand how two areas overlap between each other. Print information about start/end addresses of both VAs and their addresses. For example if both are identical it could mean double free. Signed-off-by: Uladzislau Rezki (Sony) --- mm/vmalloc.c

[PATCH v2 3/6] dt-bindings: thermal: tsens: document ipq8064 bindings

2020-07-10 Thread Ansuel Smith
Document the use of regmap phandle for ipq8064 SoCs Signed-off-by: Ansuel Smith --- .../bindings/thermal/qcom-tsens.yaml | 53 --- 1 file changed, 46 insertions(+), 7 deletions(-) diff --git a/Documentation/devicetree/bindings/thermal/qcom-tsens.yaml b/Documentation/de

[PATCH v2 1/6] drivers: thermal: tsens: load regmap from phandle for 8960

2020-07-10 Thread Ansuel Smith
Devices based on 8060 tsens driver (ipq8064) use the reg of the gcc driver. Permit to load the regmap from a syscon phandle instead of fail as the reg are already used by another driver. Signed-off-by: Ansuel Smith --- drivers/thermal/qcom/tsens-8960.c | 9 +++-- 1 file changed, 7 insertions

[PATCH v2 5/6] drivers: thermal: tsens: add support for custom set_trip function

2020-07-10 Thread Ansuel Smith
8960 tsens driver have a custom implementation to set set_trip function. Permit the generic driver to use the custom function if provided. Signed-off-by: Ansuel Smith --- drivers/thermal/qcom/tsens.c | 4 drivers/thermal/qcom/tsens.h | 2 ++ 2 files changed, 6 insertions(+) diff --git a/dr

[PATCH v2 2/6] drivers: thermal: tsens: add ipq8064 support

2020-07-10 Thread Ansuel Smith
Ipq8064 SoCs based use the same 8960 driver. Signed-off-by: Ansuel Smith --- drivers/thermal/qcom/tsens.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/thermal/qcom/tsens.c b/drivers/thermal/qcom/tsens.c index 39c4462e38f6..2985a064a0d1 100644 --- a/drivers/thermal/qcom/tsens.c

[PATCH v2 6/6] drivers: thermal: tsens: add set_trip support for 8960

2020-07-10 Thread Ansuel Smith
Add custom set_trip function for 8960 needed to set trip point to the tsens driver for 8960 driver. Signed-off-by: Ansuel Smith --- drivers/thermal/qcom/tsens-8960.c | 78 +++ 1 file changed, 78 insertions(+) diff --git a/drivers/thermal/qcom/tsens-8960.c b/drivers/

[PATCH v2 0/6] Add support for ipq8064 tsens

2020-07-10 Thread Ansuel Smith
Ipq8064 SoCs tsens driver is based on 8960 tsens driver. This patchset expand the 8960 unused driver with interrupt support and set_trip point. Ipq8064 needs to registed with a syscon phandle as the tsens regs on this platform are shared with the gcc controller. v2: * Fix dt-bindings problems Ans

[PATCH v2 4/6] drivers: thermal: tsens: add interrupt support for 9860 driver

2020-07-10 Thread Ansuel Smith
Add interrupt support for 9860 tsens driver used to set thermal trip point for the system. Signed-off-by: Ansuel Smith --- drivers/thermal/qcom/tsens-8960.c | 196 +++--- drivers/thermal/qcom/tsens.h | 1 + 2 files changed, 183 insertions(+), 14 deletions(-) diff

Re: [PATCH 1/1] mm/vmalloc.c: Add an error message if two areas overlap

2020-07-10 Thread Uladzislau Rezki
On Fri, Jul 10, 2020 at 08:44:06PM +0100, Matthew Wilcox wrote: > On Fri, Jul 10, 2020 at 09:40:42PM +0200, Uladzislau Rezki (Sony) wrote: > > Before triggering a BUG() it would be useful to understand > > how two areas overlap between each other. Print information > > about start/end addresses of

Re: [PATCH 3/5] mm/notifier: add migration invalidation type

2020-07-10 Thread Jason Gunthorpe
On Mon, Jul 06, 2020 at 03:23:45PM -0700, Ralph Campbell wrote: > Currently migrate_vma_setup() calls mmu_notifier_invalidate_range_start() > which flushes all device private page mappings whether or not a page > is being migrated to/from device private memory. In order to not disrupt > device mapp

Re: [PATCH] [stable v5.4.x] pwm: jz4740: Fix build failure

2020-07-10 Thread Uwe Kleine-König
On Fri, Jul 10, 2020 at 12:48:36PM +0200, H. Nikolaus Schaller wrote: > > > Am 10.07.2020 um 12:27 schrieb Uwe Kleine-König > > : > > > > When commit 9017dc4fbd59 ("pwm: jz4740: Enhance precision in calculation > > of duty cycle") from v5.8-rc1 was backported to v5.4.x its dependency on > > comm

[PATCH v2 2/2] mm/migrate: add migrate-shared test for migrate_vma_*()

2020-07-10 Thread Ralph Campbell
Add a migrate_vma_*() self test for mmap(MAP_SHARED) to verify that !vma_anonymous() ranges won't be migrated. Signed-off-by: Ralph Campbell --- tools/testing/selftests/vm/hmm-tests.c | 35 ++ 1 file changed, 35 insertions(+) diff --git a/tools/testing/selftests/vm/hmm-t

[PATCH v2 1/2] mm/migrate: optimize migrate_vma_setup() for holes

2020-07-10 Thread Ralph Campbell
When migrating system memory to device private memory, if the source address range is a valid VMA range and there is no memory or a zero page, the source PFN array is marked as valid but with no PFN. This lets the device driver allocate private memory and clear it, then insert the new device privat

[PATCH v2 0/2] mm/migrate: optimize migrate_vma_setup() for holes

2020-07-10 Thread Ralph Campbell
A simple optimization for migrate_vma_*() when the source vma is not an anonymous vma and a new test case to exercise it. This is based on linux-mm and is for Andrew Morton's tree. Changes in v2: Do the same check for vma_is_anonymous() for pte_none(). Don't increment cpages if the page isn't migr

Re: [PATCH v2 00/17] arm/arm64: Turning IPIs into normal interrupts

2020-07-10 Thread Valentin Schneider
On 25/06/20 19:24, Valentin Schneider wrote: > I have a few extra nits/comments in some patches, but it's all fairly minor > so FWIW you can also add, for patches [01-10, 14-15]: > > Reviewed-by: Valentin Schneider > > I haven't really looked at those other irqchips, but I can give it a shot > i

Re: [PATCH v2 03/17] arm64: Allow IPIs to be handled as normal interrupts

2020-07-10 Thread Valentin Schneider
Itsy bitsy nit below from re-reading this. On 24/06/20 20:57, Marc Zyngier wrote: > diff --git a/arch/arm64/kernel/smp.c b/arch/arm64/kernel/smp.c > index e43a8ff19f0f..c08950cc09cc 100644 > --- a/arch/arm64/kernel/smp.c > +++ b/arch/arm64/kernel/smp.c > @@ -76,6 +76,13 @@ enum ipi_msg_type { >

Re: [PATCH v2 15/17] arm64: Remove custom IRQ stat accounting

2020-07-10 Thread Valentin Schneider
On 24/06/20 20:58, Marc Zyngier wrote: > Let's switch the arm64 code to the core accounting, which already > does everything we need. > > Signed-off-by: Marc Zyngier > --- > arch/arm64/include/asm/hardirq.h | 9 - > arch/arm64/kernel/smp.c | 24 ++-- > 2 fi

Re: [PATCH 1/1] mm/vmalloc.c: Add an error message if two areas overlap

2020-07-10 Thread Uladzislau Rezki
On Fri, Jul 10, 2020 at 08:44:06PM +0100, Matthew Wilcox wrote: > On Fri, Jul 10, 2020 at 09:40:42PM +0200, Uladzislau Rezki (Sony) wrote: > > Before triggering a BUG() it would be useful to understand > > how two areas overlap between each other. Print information > > about start/end addresses of

Re: [SchedulerWakeupLatency] Per-task vruntime wakeup bonus

2020-07-10 Thread Patrick Bellasi
On Fri, Jul 10, 2020 at 15:21:48 +0200, Vincent Guittot wrote... > Hi Patrick, Hi Vincent, [...] >> > C) Existing control paths >> >> Assuming: >> >> C: CFS task currently running on CPUx >> W: CFS task waking up on the same CPUx >> >> And considering the overall simplified workflow: >> >

Re: [v2 PATCH] drm/panel: auo, b116xw03: fix flash backlight when power on

2020-07-10 Thread Sam Ravnborg
On Sun, Jul 05, 2020 at 05:45:14PM +0800, Jitao Shi wrote: > Delay the backlight on to make sure the video stable. > > Signed-off-by: Jitao Shi Thanks, fixed up and applied to drm-misc-next. Sam > --- > drivers/gpu/drm/panel/panel-simple.c | 7 +++ > 1 file changed, 7 insertions(+

Re: [PATCH v7 1/3] dt-bindings: media: stm32-dcmi: Add DCMI min frequency property

2020-07-10 Thread Rob Herring
On Fri, Jul 10, 2020 at 1:33 AM Benjamin GAIGNARD wrote: > > > > On 7/9/20 10:37 PM, Rob Herring wrote: > > On Wed, Jul 01, 2020 at 03:01:27PM +0200, Benjamin Gaignard wrote: > >> Document st,stm32-dcmi-min-frequency property which is used to > >> request CPUs minimum frequency when streaming fram

[PATCH] docs: process: Add an example for creating a fixes tag

2020-07-10 Thread trix
From: Tom Rix To make it a little clearer how to create a fixes tag, add an example based on the preceeding gitconfig setup. Signed-off-by: Tom Rix --- Documentation/process/submitting-patches.rst | 5 + 1 file changed, 5 insertions(+) diff --git a/Documentation/process/submitting-patches

Re: [PATCH 1/1] mm/vmalloc.c: Add an error message if two areas overlap

2020-07-10 Thread Matthew Wilcox
On Fri, Jul 10, 2020 at 10:00:30PM +0200, Uladzislau Rezki wrote: > On Fri, Jul 10, 2020 at 08:44:06PM +0100, Matthew Wilcox wrote: > > On Fri, Jul 10, 2020 at 09:40:42PM +0200, Uladzislau Rezki (Sony) wrote: > > > Before triggering a BUG() it would be useful to understand > > > how two areas overl

[PATCH] ipc: uninline functions

2020-07-10 Thread Alexey Dobriyan
Two functions are only called via function pointers, don't bother inlining them. Signed-off-by: Alexey Dobriyan --- ipc/sem.c |3 +-- ipc/shm.c |3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) --- a/ipc/sem.c +++ b/ipc/sem.c @@ -585,8 +585,7 @@ static int newary(struct ipc_name

Re: [PATCH 1/1] mm/vmalloc.c: Add an error message if two areas overlap

2020-07-10 Thread Uladzislau Rezki
On Fri, Jul 10, 2020 at 09:01:38PM +0100, Matthew Wilcox wrote: > On Fri, Jul 10, 2020 at 10:00:30PM +0200, Uladzislau Rezki wrote: > > On Fri, Jul 10, 2020 at 08:44:06PM +0100, Matthew Wilcox wrote: > > > On Fri, Jul 10, 2020 at 09:40:42PM +0200, Uladzislau Rezki (Sony) wrote: > > > > Before trigg

Re: WARNING: at mm/mremap.c:211 move_page_tables in i386

2020-07-10 Thread Linus Torvalds
On Fri, Jul 10, 2020 at 10:48 AM Naresh Kamboju wrote: > > I have applied your patch and test started in a loop for a million times > but the test ran for 35 times. Seems like the test got a timeout after 1 hour. That just means that my test-case was wrong (in the sense that what it was testing w

drivers/gpu/drm/amd/amdgpu/../display/dc/os_types.h:64:3: error: implicit declaration of function 'enable_kernel_vsx'; did you mean

2020-07-10 Thread kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 42f82040ee66db13525dc6f14b8559890b2f4c1c commit: 16a9dea110a67d62401ffeac4828cabdedec7548 amdgpu: Enable initial DCN support on POWER date: 7 months ago config: powerpc64-randconfig-r016-20200710

R: [PATCH 3/6] dt-bindings: thermal: tsens: document ipq8064 bindings

2020-07-10 Thread ansuelsmth
> -Messaggio originale- > Da: Rob Herring > Inviato: venerdì 10 luglio 2020 18:27 > A: Ansuel Smith > Cc: Amit Kucheria ; Andy Gross > ; Bjorn Andersson ; > Zhang Rui ; Daniel Lezcano > ; linux...@vger.kernel.org; linux-arm- > m...@vger.kernel.org; devicet...@vger.kernel.org; linux- >

Re: [PATCH v3] PCI: aardvark: Don't touch PCIe registers if no card connected

2020-07-10 Thread Bjorn Helgaas
On Fri, Jul 10, 2020 at 09:30:03PM +0200, Pali Rohár wrote: > On Friday 10 July 2020 11:08:28 Bjorn Helgaas wrote: > > On Fri, Jul 10, 2020 at 05:44:58PM +0200, Pali Rohár wrote: > > > I can reproduce following issue: Connect Compex WLE900VX card, configure > > > aardvark to gen2 mode. And then car

Re: [PATCH v3 0/5] mm/hmm/nouveau: add PMD system memory mapping

2020-07-10 Thread Ralph Campbell
On 7/10/20 12:27 PM, Jason Gunthorpe wrote: On Wed, Jul 01, 2020 at 03:53:47PM -0700, Ralph Campbell wrote: The goal for this series is to introduce the hmm_pfn_to_map_order() function. This allows a device driver to know that a given 4K PFN is actually mapped by the CPU using a larger sized C

[PATCH] staging: rtl8723bs: core: Using comparison to true is error prone

2020-07-10 Thread John Oldman
clear below issues reported by checkpatch.pl: CHECK: Using comparison to true is error prone Signed-off-by: John Oldman --- drivers/staging/rtl8723bs/core/rtw_ieee80211.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/staging/rtl8723bs/core/rtw_ieee80211.c b/d

Re: [PATCH 3/5] mm/notifier: add migration invalidation type

2020-07-10 Thread Ralph Campbell
On 7/10/20 12:39 PM, Jason Gunthorpe wrote: On Mon, Jul 06, 2020 at 03:23:45PM -0700, Ralph Campbell wrote: Currently migrate_vma_setup() calls mmu_notifier_invalidate_range_start() which flushes all device private page mappings whether or not a page is being migrated to/from device private me

Re: [PATCH] tpm: avoid accessing cleared ops during shutdown

2020-07-10 Thread Andrey Pronin
On Fri, Jul 10, 2020 at 12:08 PM James Bottomley wrote: > > On Thu, 2020-07-09 at 17:22 -0700, Andrey Pronin wrote: > > This patch prevents NULL dereferencing when using chip->ops while > > sending TPM2_Shutdown command if both tpm_class_shutdown handler and > > tpm_del_char_device are called duri

RE: [PATCH v10 4/5] dt-bindings: arm-smmu: add binding for Tegra194 SMMU

2020-07-10 Thread Krishna Reddy
Thanks Rob. One question on setting "minItems: ". Please see below. >> +allOf: >> + - if: >> + properties: >> +compatible: >> + contains: >> +enum: >> + - nvidia,tegra194-smmu >> +then: >> + properties: >> +reg: >> + minItem

Re: [PATCH v4 4/4] PCI/ACS: Enable PCI_ACS_TB for untrusted/external-facing devices

2020-07-10 Thread Bjorn Helgaas
On Tue, Jul 07, 2020 at 03:46:04PM -0700, Rajat Jain wrote: > When enabling ACS, enable translation blocking for external facing ports > and untrusted devices. > > Signed-off-by: Rajat Jain > --- > v4: Add braces to avoid warning from kernel robot > print warning for only external-facing devi

Re: [PATCH v2] platform/x86: Add new intel_atomisp2_led driver

2020-07-10 Thread Andy Shevchenko
On Sat, Jun 20, 2020 at 3:37 PM Hans de Goede wrote: > > Many Bay Trail and Cherry Trail devices come with a camera attached to > Intel's Image Signal Processor. Linux currently does not have a driver for > these, so they do not work as a camera. > > Some of these camera's have a status LED which

Re: [PATCH] [drivers/x86] fix bound check in pmc_core_mphy_pg_show

2020-07-10 Thread Andy Shevchenko
On Wed, Jun 24, 2020 at 6:31 AM Gaurav Singh wrote: > > Check bounds before accessing map[]. > Pushed to my review and testing queue, thanks! > Signed-off-by: Gaurav Singh > --- > drivers/platform/x86/intel_pmc_core.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/dr

Re: [PATCH] platform/x86: intel_pmc_core: update TGL's LPM0 reg bit map name

2020-07-10 Thread Andy Shevchenko
On Thu, Jun 25, 2020 at 9:16 AM Sathyanarayana Nujella wrote: > > PMC debug tools use lpm0's 23rd bit to reflect Main PLL, not just > Audio PLL. So, update tgl_lpm0 debug reg bit map name. > Pushed to my review and testing queue, thanks! > Signed-off-by: Sathyanarayana Nujella > Signed-off-by:

Re: [PATCH] platform/x86: ISST: Add new PCI device ids

2020-07-10 Thread Andy Shevchenko
On Wed, Jun 24, 2020 at 8:52 PM Srinivas Pandruvada wrote: > > Added new PCI device ids for supporting mailbox and MMIO interface for > Sapphire Rapids. > Pushed to my review and testing queue, thanks! > Signed-off-by: Srinivas Pandruvada > --- > drivers/platform/x86/intel_speed_select_if/isst

<    5   6   7   8   9   10   11   12   13   >