Re: [PATCH v5 1/1] memory_hotplug: Add a bounds check to __add_pages

2019-09-29 Thread Alastair D'Silva
On Mon, 2019-09-30 at 12:21 +1000, Alastair D'Silva wrote: > From: Alastair D'Silva > > On PowerPC, the address ranges allocated to OpenCAPI LPC memory > are allocated from firmware. These address ranges may be higher > than what older kernels permit, as we increased the maximum > permissable

[PATCH] ARM: module: remove 'always false' statement

2019-09-29 Thread Austin Kim
The each field of 'struct elf32_rel' is declared as below. typedef struct elf32_rel { Elf32_Addr r_offset; Elf32_Word r_info; } Elf32_Rel; typedef __u32 Elf32_Addr; typedef __u32 Elf32_Word; This means that 'r_offset' and 'r_info' could contain non-negative value. So 'always false'

Re: [PATCH RESEND] gen-insn-attr-x86.awk: Fix regexp warnings

2019-09-29 Thread Alexander Kapshuk
On Mon, Sep 30, 2019 at 8:35 AM Borislav Petkov wrote: > > On Tue, Sep 24, 2019 at 07:46:59AM +0300, Alexander Kapshuk wrote: > > gawk 5.0.1 generates the regexp warnings shown below: > > GEN /home/sasha/torvalds/tools/objtool/arch/x86/lib/inat-tables.c > > awk:

Re: [PATCH v6] perf: Sharing PMU counters across compatible events

2019-09-29 Thread Song Liu
Hi Peter, > On Sep 18, 2019, at 10:23 PM, Song Liu wrote: > > This patch tries to enable PMU sharing. To make perf event scheduling > fast, we use special data structures. > > An array of "struct perf_event_dup" is added to the perf_event_context, > to remember all the duplicated events under

Re: [PATCH] arm64: tegra: only map accessible sysram

2019-09-29 Thread Stephen Warren
On 9/29/19 2:08 PM, Mian Yousaf Kaukab wrote: > Most of the SysRAM is secure and only accessible by TF-A. > Don't map this inaccessible memory in kernel. Only map pages > used by bpmp driver. I don't believe this change is correct. The actual patch doesn't implement mapping a subset of the RAM (a

Re: [PATCH RESEND] gen-insn-attr-x86.awk: Fix regexp warnings

2019-09-29 Thread Borislav Petkov
On Tue, Sep 24, 2019 at 07:46:59AM +0300, Alexander Kapshuk wrote: > gawk 5.0.1 generates the regexp warnings shown below: > GEN /home/sasha/torvalds/tools/objtool/arch/x86/lib/inat-tables.c > awk: ../arch/x86/tools/gen-insn-attr-x86.awk:260: warning: regexp escape > sequence `\:' is not a

Re: [PATCH] perf: rework memory accounting in perf_mmap()

2019-09-29 Thread Song Liu
> On Sep 16, 2019, at 1:10 PM, Hechao Li wrote: > > Song Liu wrote on Mon [2019-Sep-16 12:43:16 -0700]: >> Hi Peter, >> >>> On Sep 4, 2019, at 2:46 PM, Song Liu wrote: >>> >>> perf_mmap() always increases user->locked_vm. As a result, "extra" could >>> grow bigger than "user_extra", which

[PATCH] iio: adc: Variables could be uninitalized if regmap_read() fails

2019-09-29 Thread Yizhuo
Several functions in this file are trying to use regmap_read() to initialize the specific variable, however, if regmap_read() fails, the variable could be uninitialized but used directly, which is potentially unsafe. The return value of regmap_read() should be checked and handled. Signed-off-by:

Re: [PATCH v4] arm64: use generic free_initrd_mem()

2019-09-29 Thread Anshuman Khandual
On 09/28/2019 01:32 PM, Mike Rapoport wrote: > From: Mike Rapoport > > arm64 calls memblock_free() for the initrd area in its implementation of > free_initrd_mem(), but this call has no actual effect that late in the boot > process. By the time initrd is freed, all the reserved memory is

[PATCH] AF_PACKET doesnt strip VLAN information

2019-09-29 Thread Sriram Krishnan
When an application sends with AF_PACKET and places a vlan header on the raw packet; then the AF_PACKET needs to move the tag into the skb so that it gets processed normally through the rest of the transmit path. This is particularly a problem on Hyper-V where the host only allows vlan in the

Re: [EXT] Re: [PATCH] i2c: pca954x: Add property to skip disabling PCA954x MUX device

2019-09-29 Thread Peter Rosin
On 2019-09-30 04:43, Biwen Li wrote: >> >> On 2019-09-29 12:36, Biwen Li wrote: >>> On some Layerscape boards like LS2085ARDB and LS2088ARDB, input >>> pull-up resistors on PCA954x MUX device are missing on board, So, if >>> MUX are disabled after powered-on, input lines will float leading to >>>

[PATCH] PCI: Add Loongson vendor ID and device IDs

2019-09-29 Thread Tiezhu Yang
Add the Loongson vendor ID and device IDs to pci_ids.h to be used in the future. The Loongson IDs can be found at the following link: https://git.kernel.org/pub/scm/utils/pciutils/pciutils.git/tree/pci.ids Co-developed-by: Lu Zeng Signed-off-by: Lu Zeng Signed-off-by: Tiezhu Yang ---

Re: [PATCH] kasan: fix the missing underflow in memmove and memcpy with CONFIG_KASAN_GENERIC=y

2019-09-29 Thread Walter Wu
On Fri, 2019-09-27 at 21:41 +0200, Dmitry Vyukov wrote: > On Fri, Sep 27, 2019 at 4:22 PM Walter Wu wrote: > > > > On Fri, 2019-09-27 at 15:07 +0200, Dmitry Vyukov wrote: > > > On Fri, Sep 27, 2019 at 5:43 AM Walter Wu > > > wrote: > > > > > > > > memmove() and memcpy() have missing underflow

RE: [PATCH] staging: exfat: add exfat filesystem code to

2019-09-29 Thread Namjae Jeon
> [..] > > Put it in drivers/staging/sdfat/. > > > > But really we want someone from Samsung to say that they will treat > > the staging version as upstream. It doesn't work when people apply > > fixes to their version and a year later back port the fixes into > > staging. The staging tree is

[PATCH] spi: lpspi: fix memory leak in fsl_lpspi_probe

2019-09-29 Thread Navid Emamdoost
In fsl_lpspi_probe an SPI controller is allocated either via spi_alloc_slave or spi_alloc_master. In all but one error cases this controller is put by going to error handling code. This commit fixes the case when pm_runtime_get_sync fails and it should go to the error handling path. Fixes:

linux-next: Tree for Sep 30

2019-09-29 Thread Stephen Rothwell
Hi all, Changes since 20190926: The powerpc tree (well, Linus' tree really) gained a build failure for which I applied a patch. Non-merge commits (relative to Linus' tree): 462 574 files changed, 9710 insertions(+), 4176 deletions(-)

[PATCH] spi: gpio: prevent memroy leak in spi_gpio_probe

2019-09-29 Thread Navid Emamdoost
In spi_gpio_probe an SPI master is allocated via spi_alloc_master, but this controller should be released if devm_add_action_or_reset fails, otherwise memory leaks. This commit adds Fixes: spi_contriller_put in case of failure for devm_add_action_or_reset. Fixes: 8b797490b4db ("spi: gpio: Make

Re: x86/random: Speculation to the rescue

2019-09-29 Thread Theodore Y. Ts'o
On Sun, Sep 29, 2019 at 06:16:33PM -0700, Linus Torvalds wrote: > > - or just say "hey, a lot of people find jitter entropy reasonable, > so let's just try this". > I'm OK with this as a starting point. If a jitter entropy system allow us to get pass this logjam, let's do it. At least for

[v2,2/2] dt-bindings: i2c-mux-pca954x: Add optional property i2c-mux-never-disable

2019-09-29 Thread Biwen Li
The patch adds an optional property i2c-mux-never-disable Signed-off-by: Biwen Li --- Change in v2: - update documentation Documentation/devicetree/bindings/i2c/i2c-mux-pca954x.txt | 1 + 1 file changed, 1 insertion(+) diff --git

[v2,1/2] i2c: pca954x: Add property to skip disabling PCA954x MUX device

2019-09-29 Thread Biwen Li
On some Layerscape boards like LS2085ARDB and LS2088ARDB, input pull-up resistors on PCA954x MUX device are missing on board, So, if MUX are disabled after powered-on, input lines will float leading to incorrect functionality. Hence, PCA954x MUX device should never be turned-off after power-on.

Re: [PATCH v8] perf diff: Report noisy for cycles diff

2019-09-29 Thread Jin, Yao
Hi Jiri, Hi Arnaldo, Can this patch be accepted? Thanks Jin Yao On 9/25/2019 9:14 AM, Jin Yao wrote: This patch prints the stddev and hist for the cycles diff of program block. It can help us to understand if the cycles is noisy or not. This patch is inspired by Andi Kleen's patch

[PATCH] fs: affs: fix a memroy leak in affs_remount

2019-09-29 Thread Navid Emamdoost
In affs_remount if data is provided it is duplicated into new_opts. But this is not actually used later! The allocated memory for new_opts is only released if pare_options fail. This commit adds release for new_opts. Signed-off-by: Navid Emamdoost --- fs/affs/super.c | 2 ++ 1 file changed, 2

Re: [GIT PULL] SMB3 Fixes

2019-09-29 Thread pr-tracker-bot
The pull request you sent on Sat, 28 Sep 2019 16:36:21 -0500: > git://git.samba.org/sfrench/cifs-2.6.git tags/5.4-rc-smb3-fixes has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/7edee5229c8f4e075fe71274620bb11ead885c9b Thank you! -- Deet-doot-dot, I am a bot.

Re: [GIT PULL] Documentation/process/embargoed-hardware-issues patches for 5.4-rc1

2019-09-29 Thread pr-tracker-bot
The pull request you sent on Sun, 29 Sep 2019 12:53:47 +0200: > git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/char-misc.git > tags/char-misc-5.4-rc1 has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/97f9a3c4eee55b0178b518ae7114a6a53372913d Thank you! --

Re: x86/random: Speculation to the rescue

2019-09-29 Thread Linus Torvalds
On Sun, Sep 29, 2019 at 6:16 PM Linus Torvalds wrote: > > But I've committed that patch and the revert of the ext4 revert to a > local branch, I'll do some basic testing of it (which honestly on my > machines are kind of pointless, since all of them support rdrand), but > assuming it passes the

RE: [EXT] Re: [PATCH] i2c: pca954x: Add property to skip disabling PCA954x MUX device

2019-09-29 Thread Biwen Li
> > Hello Biwen, > > > + /* Errata ID E-00013 on board LS2088ARDB and LS2088ARDB: > > +* The point here is that you must not disable a mux if there > > +* are no pullups on the input or you mess up the I2C. This > > +* needs to be put into the DTS really as the

RE: [EXT] Re: [PATCH] i2c: pca954x: Add property to skip disabling PCA954x MUX device

2019-09-29 Thread Biwen Li
> > On 2019-09-29 12:36, Biwen Li wrote: > > On some Layerscape boards like LS2085ARDB and LS2088ARDB, input > > pull-up resistors on PCA954x MUX device are missing on board, So, if > > MUX are disabled after powered-on, input lines will float leading to > > incorrect functionality. > > Hi! > >

[PATCH] usb: dwc3: pci: prevent memory leak in dwc3_pci_probe

2019-09-29 Thread Navid Emamdoost
In dwc3_pci_probe a call to platform_device_alloc allocates a device which is correctly put in case of error except one case: when the call to platform_device_add_properties fails it directly returns instead of going to error handling. This commit replaces return with the goto. Fixes:

Re: [PATCH] virt: vbox: fix memory leak in hgcm_call_preprocess_linaddr

2019-09-29 Thread Navid Emamdoost
It is a neat fix now, thank you. On Sat, Sep 28, 2019 at 4:54 AM Hans de Goede wrote: > > Hi, > > On 28-09-2019 01:04, Navid Emamdoost wrote: > > In hgcm_call_preprocess_linaddr memory is allocated for bounce_buf but > > is not released if copy_form_user fails. The release is added. > > > >

[PATCH v5 0/1] Add bounds check for Hotplugged memory

2019-09-29 Thread Alastair D'Silva
From: Alastair D'Silva This series adds bounds checks for hotplugged memory, ensuring that it is within the physically addressable range (for platforms that define MAX_(POSSIBLE_)PHYSMEM_BITS. This allows for early failure, rather than attempting to access bogus section numbers. Changelog:

[PATCH v5 1/1] memory_hotplug: Add a bounds check to __add_pages

2019-09-29 Thread Alastair D'Silva
From: Alastair D'Silva On PowerPC, the address ranges allocated to OpenCAPI LPC memory are allocated from firmware. These address ranges may be higher than what older kernels permit, as we increased the maximum permissable address in commit 4ffe713b7587 ("powerpc/mm: Increase the max addressable

[V5 1/2] dmaengine: fsl-dpaa2-qdma: Add the DPDMAI(Data Path DMA Interface) support

2019-09-29 Thread Peng Ma
The MC(Management Complex) exports the DPDMAI(Data Path DMA Interface) object as an interface to operate the DPAA2(Data Path Acceleration Architecture 2) qDMA Engine. The DPDMAI enables sending frame-based requests to qDMA and receiving back confirmation response on transaction completion,

[V5 2/2] dmaengine: fsl-dpaa2-qdma: Add NXP dpaa2 qDMA controller driver for Layerscape SoCs

2019-09-29 Thread Peng Ma
DPPA2(Data Path Acceleration Architecture 2) qDMA supports virtualized channel by allowing DMA jobs to be enqueued into different work queues. Core can initiate a DMA transaction by preparing a frame descriptor(FD) for each DMA job and enqueuing this job through a hardware portal. DPAA2 components

[PATCH v10 1/3] arm64: cpufeature: introduce helper cpu_has_hw_af()

2019-09-29 Thread Jia He
We unconditionally set the HW_AFDBM capability and only enable it on CPUs which really have the feature. But sometimes we need to know whether this cpu has the capability of HW AF. So decouple AF from DBM by new helper cpu_has_hw_af(). Signed-off-by: Jia He Suggested-by: Suzuki Poulose

[PATCH v10 2/3] arm64: mm: implement arch_faults_on_old_pte() on arm64

2019-09-29 Thread Jia He
On arm64 without hardware Access Flag, copying fromuser will fail because the pte is old and cannot be marked young. So we always end up with zeroed page after fork() + CoW for pfn mappings. we don't always have a hardware-managed access flag on arm64. Hence implement arch_faults_on_old_pte on

[PATCH v10 0/3] fix double page fault on arm64

2019-09-29 Thread Jia He
When we tested pmdk unit test vmmalloc_fork TEST1 in arm64 guest, there will be a double page fault in __copy_from_user_inatomic of cow_user_page. As told by Catalin: "On arm64 without hardware Access Flag, copying from user will fail because the pte is old and cannot be marked young. So we

[PATCH v10 3/3] mm: fix double page fault on arm64 if PTE_AF is cleared

2019-09-29 Thread Jia He
When we tested pmdk unit test [1] vmmalloc_fork TEST1 in arm64 guest, there will be a double page fault in __copy_from_user_inatomic of cow_user_page. Below call trace is from arm64 do_page_fault for debugging purpose [ 110.016195] Call trace: [ 110.016826] do_page_fault+0x5a4/0x690 [

Re: [PATCH 4.19 36/63] locking/lockdep: Add debug_locks check in __lock_downgrade()

2019-09-29 Thread Tetsuo Handa
On 2019/09/30 9:28, Sasha Levin wrote: > On Sun, Sep 29, 2019 at 11:43:38PM +0900, Tetsuo Handa wrote: >> On 2019/09/29 22:54, Greg Kroah-Hartman wrote: >>> From: Waiman Long >>> >>> [ Upstream commit 513e1073d52e55b8024b4f238a48de7587c64ccf ] >>> >>> Tetsuo Handa had reported he saw an incorrect

Re: [PATCH v3] patman: Use the Change-Id, version, and prefix in the Message-Id

2019-09-29 Thread Simon Glass
On Fri, 27 Sep 2019 at 10:25, Douglas Anderson wrote: > > As per the centithread on ksummit-discuss [1], there are folks who > feel that if a Change-Id is present in a developer's local commit that > said Change-Id could be interesting to include in upstream posts. > Specifically if two commits

Re: x86/random: Speculation to the rescue

2019-09-29 Thread Linus Torvalds
On Sat, Sep 28, 2019 at 4:53 PM Linus Torvalds wrote: > > But hey, here's a made-up patch. It basically does jitter entropy, but > it uses a more complex load than the fibonacci LFSR folding: it calls > "schedule()" in a loop, and it sets up a timer to fire. Ok, I'm sure a lot of people will end

Re: [PATCH v3 04/10] sched/fair: rework load_balance

2019-09-29 Thread Rik van Riel
On Thu, 2019-09-19 at 09:33 +0200, Vincent Guittot wrote: > > Also the load balance decisions have been consolidated in the 3 > functions > below after removing the few bypasses and hacks of the current code: > - update_sd_pick_busiest() select the busiest sched_group. > - find_busiest_group()

[PATCH] acpi: Mute gcc warning

2019-09-29 Thread Zhenzhong Duan
When build with "EXTRA_CFLAGS=-Wall" gcc warns: arch/x86/boot/compressed/acpi.c:29:30: warning: get_cmdline_acpi_rsdp defined but not used [-Wunused-function] Fixes: 41fa1ee9c6d6 ("acpi: Ignore acpi_rsdp kernel param when the kernel has been locked down") Signed-off-by: Zhenzhong Duan Cc:

Re: [PATCH 4.19 36/63] locking/lockdep: Add debug_locks check in __lock_downgrade()

2019-09-29 Thread Sasha Levin
On Sun, Sep 29, 2019 at 11:43:38PM +0900, Tetsuo Handa wrote: On 2019/09/29 22:54, Greg Kroah-Hartman wrote: From: Waiman Long [ Upstream commit 513e1073d52e55b8024b4f238a48de7587c64ccf ] Tetsuo Handa had reported he saw an incorrect "downgrading a read lock" warning right after a previous

Re: [PATCH 2/4] rsicv: avoid sending a SIGTRAP to a user thread trapped in WARN()

2019-09-29 Thread Vincent Chen
On Sat, Sep 28, 2019 at 6:56 AM Christoph Hellwig wrote: > > Oh and s/rsicv/riscv/ in the subject, please. Oh! Thank you for finding this typo. I will correct it.

linux-next: build failure after merge of the powerpc tree

2019-09-29 Thread Stephen Rothwell
Hi all, After merging the powerpc tree, today's linux-next build (powerpc64 allnoconfig) failed like this: arch/powerpc/mm/book3s64/pgtable.c: In function 'flush_partition': arch/powerpc/mm/book3s64/pgtable.c:216:3: error: implicit declaration of function 'radix__flush_all_lpid_guest'; did you

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

2019-09-29 Thread James Morris
On Sat, 28 Sep 2019, Linus Torvalds wrote: > On Fri, Sep 27, 2019 at 11:19 AM Linus Torvalds > wrote: > > > > This is one of the pull requests that I have to go through commit by > > commit because of the history of this thing. > > > > And I've yet to empty my queue of all the _regular_ things

Re: [PATCH] arm64: dts: rockchip: Fix usb-c on Hugsun X99 TV Box

2019-09-29 Thread Vivek Unune
On Sun, Sep 29, 2019 at 01:22:17PM +0200, Vicente Bergas wrote: > On Sunday, September 29, 2019 5:22:30 AM CEST, Vivek Unune wrote: > > Fix usb-c on X99 TV Box. Tested with armbian w/ kernel 5.3 > > > > Signed-off-by: Vivek Unune > > --- > > arch/arm64/boot/dts/rockchip/rk3399-hugsun-x99.dts |

hello

2019-09-29 Thread joe akaba
Hello My name is Joe Akaba I am a lawyer by profession. I wish to offer you the next of kin to my client. You will inherit the sum of ($8.5 Million) dollars my client left in the bank before his death. My client is a citizen of your country who died in auto crash with his wife and only son. I

Re: [PATCH 1/1] media: dvbsky: use a single mutex and state buffers for all R/W ops

2019-09-29 Thread JP
This works very well for me. (and please see unrelated comment below) On 9/29/19 10:04 AM, Andrei Koshkosh wrote: Signed-off-by: Andrei Koshkosh --- drivers/media/usb/dvb-usb-v2/dvbsky.c | 16 1 file changed, 8 insertions(+), 8 deletions(-) diff --git

Re: [PATCH] dt-bindings: arm: rockchip: fix Theobroma-System board bindings

2019-09-29 Thread Heiko Stuebner
Am Dienstag, 17. September 2019, 10:34:53 CEST schrieb Heiko Stuebner: > The naming convention for the existing Theobroma boards is > soc-q7module-baseboard, so rk3399-puma-haikou and the in-kernel > devicetrees also follow that scheme. > > For some reason in the binding a wrong or outdated

Re: [PATCH 4/6] arm64: dts: rockchip: Rename roc-pc with libretech notation

2019-09-29 Thread Heiko Stuebner
Hi Jagan, Am Donnerstag, 19. September 2019, 07:28:20 CEST schrieb Jagan Teki: > Though the ROC-PC is manufactured by firefly, it is co-designed > by libretch like other Libretech computer boards from allwinner, > amlogic does. > > So, it is always meaningful to keep maintain those vendors who >

Re: [PATCH 1/6] arm64: dts: rockchip: Fix rk3399-roc-pc pwm2 pin

2019-09-29 Thread Heiko Stuebner
Hi Jagan, Am Donnerstag, 19. September 2019, 07:28:17 CEST schrieb Jagan Teki: > ROC-PC is not able to boot linux console if PWM2_d is > unattached to any pinctrl logic. > > To be precise the linux boot hang with last logs as, > ... > . > [0.003367] Console: colour dummy device 80x25 > [

Re: [PATCH] i2c: pca954x: Add property to skip disabling PCA954x MUX device

2019-09-29 Thread Peter Rosin
On 2019-09-29 12:36, Biwen Li wrote: > On some Layerscape boards like LS2085ARDB and LS2088ARDB, > input pull-up resistors on PCA954x MUX device are missing on board, > So, if MUX are disabled after powered-on, input lines will float > leading to incorrect functionality. Hi! Are you saying that

Re: linux-next: no release today

2019-09-29 Thread Stephen Rothwell
Hi Mark, On Mon, 16 Sep 2019 02:37:27 +0100 Mark Brown wrote: > > On Thu, Sep 05, 2019 at 04:02:37PM +1000, Stephen Rothwell wrote: > > > As I said yesterday, there will be no release today, or any day until > > September 30. > > I'm going to try to provide some builds for this week

Re: [PATCH v2] perf tools: avoid sample_reg_masks being const + weak

2019-09-29 Thread Jiri Olsa
On Fri, Sep 27, 2019 at 02:43:41PM -0700, Ian Rogers wrote: > Being const + weak breaks with some compilers that constant-propagate > from the weak symbol. This behavior is outside of the specification, but > in LLVM is chosen to match GCC's behavior. > > LLVM's implementation was set in this

[GIT PULL] tracing: A few minor fix ups

2019-09-29 Thread Steven Rostedt
Linus, A few more tracing fixes: - Fixed a buffer overflow by checking nr_args correctly in probes - Fixed a warning that is reported by clang - Fixed a possible memory leak in error path of filter processing - Fixed the selftest that checks for failures, but wasn't failing - Minor

[PATCH] arm64: tegra: only map accessible sysram

2019-09-29 Thread Mian Yousaf Kaukab
Most of the SysRAM is secure and only accessible by TF-A. Don't map this inaccessible memory in kernel. Only map pages used by bpmp driver. Signed-off-by: Mian Yousaf Kaukab --- Only tegra186 is tested. Tested on Jetson TX2. arch/arm64/boot/dts/nvidia/tegra186.dtsi | 14 +++---

[for-linus][PATCH 1/5] tracing/probe: Fix to check the difference of nr_args before adding probe

2019-09-29 Thread Steven Rostedt
From: Masami Hiramatsu Steven reported that a test triggered: == BUG: KASAN: slab-out-of-bounds in trace_kprobe_create+0xa9e/0xe40 Read of size 8 at addr 8880c4f25a48 by task ftracetest/4798 CPU: 2 PID: 4798 Comm:

[for-linus][PATCH 3/5] tracing: Have error path in predicate_parse() free its allocated memory

2019-09-29 Thread Steven Rostedt
From: Navid Emamdoost In predicate_parse, there is an error path that is not going to out_free instead it returns directly which leads to a memory leak. Link: http://lkml.kernel.org/r/20190920225800.3870-1-navid.emamdo...@gmail.com Signed-off-by: Navid Emamdoost Signed-off-by: Steven Rostedt

[for-linus][PATCH 4/5] mm, tracing: Print symbol name for call_site in trace events

2019-09-29 Thread Steven Rostedt
From: Changbin Du To improve the readability of raw slab trace points, print the call_site ip using '%pS'. Then we can grep events with function names. [002] 808.188897: kmem_cache_free: call_site=putname+0x47/0x50 ptr=cef40c80 [002] 808.188898: kfree:

[for-linus][PATCH 0/5] tracing: Minor fixes for the last pull request

2019-09-29 Thread Steven Rostedt
Some final fix ups that will be sent to Linus shortly. Changbin Du (1): mm, tracing: Print symbol name for call_site in trace events Masami Hiramatsu (1): tracing/probe: Fix to check the difference of nr_args before adding probe Nathan Chancellor (1): tracing: Fix clang

[for-linus][PATCH 2/5] tracing: Fix clang -Wint-in-bool-context warnings in IF_ASSIGN macro

2019-09-29 Thread Steven Rostedt
From: Nathan Chancellor After r372664 in clang, the IF_ASSIGN macro causes a couple hundred warnings along the lines of: kernel/trace/trace_output.c:1331:2: warning: converting the enum constant to a boolean [-Wint-in-bool-context] kernel/trace/trace.h:409:3: note: expanded from macro

[for-linus][PATCH 5/5] selftests/ftrace: Fix same probe error test

2019-09-29 Thread Steven Rostedt
From: "Steven Rostedt (VMware)" The "same probe" selftest that tests that adding the same probe fails doesn't add the same probe and passes, which fails the test. Fixes: b78b94b82122 ("selftests/ftrace: Update kprobe event error testcase") Signed-off-by: Steven Rostedt (VMware) ---

[PATCH v2 4/6] media: cedrus: Detect first slice of a frame

2019-09-29 Thread Jernej Skrabec
When codec supports multiple slices in one frame, VPU has to know when first slice of each frame is being processed, presumably to correctly clear/set data in auxiliary buffers. Add first_slice field to cedrus_run structure and set it according to timestamps of capture and output buffers. If

[PATCH v2 3/6] media: v4l2-mem2mem: add stateless_(try_)decoder_cmd ioctl helpers

2019-09-29 Thread Jernej Skrabec
These helpers are used by stateless codecs when they support multiple slices per frame and hold capture buffer flag is set. It's expected that all such codecs will use this code. Signed-off-by: Jernej Skrabec --- drivers/media/v4l2-core/v4l2-mem2mem.c | 35 ++

[PATCH v2 6/6] media: cedrus: Add support for holding capture buffer

2019-09-29 Thread Jernej Skrabec
When frame contains multiple slices and driver works in slice mode, it's more efficient to hold capture buffer in queue until all slices of a same frame are decoded. Add support for that to Cedrus driver by exposing and implementing V4L2_BUF_CAP_SUPPORTS_M2M_HOLD_CAPTURE_BUF capability.

[PATCH v2 2/6] videodev2.h: add V4L2_DEC_CMD_FLUSH

2019-09-29 Thread Jernej Skrabec
From: Hans Verkuil Add this new V4L2_DEC_CMD_FLUSH decoder command and document it. Reviewed-by: Boris Brezillon Reviewed-by: Alexandre Courbot Signed-off-by: Hans Verkuil [Adjusted description] Signed-off-by: Jernej Skrabec --- Documentation/media/uapi/v4l/vidioc-decoder-cmd.rst | 10

[PATCH v2 1/6] vb2: add V4L2_BUF_FLAG_M2M_HOLD_CAPTURE_BUF

2019-09-29 Thread Jernej Skrabec
From: Hans Verkuil This patch adds support for the V4L2_BUF_FLAG_M2M_HOLD_CAPTURE_BUF flag. It also adds a new V4L2_BUF_CAP_SUPPORTS_M2M_HOLD_CAPTURE_BUF capability and a v4l2_m2m_release_capture_buf() helper function. Drivers should set vb2_queue->subsystem_flags to

[PATCH v2 5/6] media: cedrus: h264: Support multiple slices per frame

2019-09-29 Thread Jernej Skrabec
With recent changes, support for decoding multi-slice frames can be easily added now. Signal VPU if current slice is first in frame or not and add information about first macroblock coordinates. Signed-off-by: Jernej Skrabec --- drivers/staging/media/sunxi/cedrus/cedrus_h264.c | 11 ++-

[PATCH v2 0/6] media: cedrus: h264: Support multi-slice frames

2019-09-29 Thread Jernej Skrabec
This series adds support for decoding multi-slice H264 frames along with support for V4L2_DEC_CMD_FLUSH and V4L2_BUF_FLAG_M2M_HOLD_CAPTURE_BUF. Code was tested by modified ffmpeg, which can be found here: https://github.com/jernejsk/FFmpeg, branch mainline-test It has to be configured with at

Re: [PATCH] arm64: dts: rockchip: fix Rockpro64 RK808 interrupt line

2019-09-29 Thread Heiko Stuebner
Am Samstag, 21. September 2019, 15:14:57 CEST schrieb Hugh Cole-Baker: > Fix the pinctrl and interrupt specifier for RK808 to use GPIO3_B2. On the > Rockpro64 schematic [1] page 16, it shows GPIO3_B2 used for the interrupt > line PMIC_INT_L from the RK808, and there's a note which translates as: >

Why does /proc/partitions have sr0 and fd0 in it?

2019-09-29 Thread David F.
Hi, I was updating some tools such as udev, mdadm, lvm, and came across a hang and messages about unable to read fd0 which wasn't occurring with the old tools, but using same kernel. So I've found that in the old version the /proc/partitions didn't have fd0 whereas now it does. But both have

MIPS SGI IP30

2019-09-29 Thread Carlo Pisani
hi guys any news about the kernel? I still have a lot of trouble with the PCI. Carlo

Re: [PATCH AUTOSEL 5.3 20/49] firmware: bcm47xx_nvram: Correct size_t printf format

2019-09-29 Thread Florian Fainelli
On 9/29/2019 10:30 AM, Sasha Levin wrote: > From: Florian Fainelli > > [ Upstream commit feb4eb060c3aecc3c5076bebe699cd09f1133c41 ] > > When building on a 64-bit host, we will get warnings like those: > > drivers/firmware/broadcom/bcm47xx_nvram.c:103:3: note: in expansion of macro >

[GIT PULL] MMC updates for v5.4 take 2

2019-09-29 Thread Ulf Hansson
Hi Linus, Here's a PR with a couple more updates/fixes for MMC fixes intended for v5.4. No worries if this doesn't get included in rc1. Details about the highlights are as usual found in the signed tag. Please pull this in! Kind regards Ulf Hansson The following changes since commit

Re: [PATCH 2/3] clk: let init callback return an error code

2019-09-29 Thread Heiko Stuebner
Am Dienstag, 24. September 2019, 14:39:53 CEST schrieb Jerome Brunet: > If the init callback is allowed to request resources, it needs a return > value to report the outcome of such a request. > > Signed-off-by: Jerome Brunet > --- [...] > drivers/clk/rockchip/clk-pll.c| 28

Re: WireGuard to port to existing Crypto API

2019-09-29 Thread David Sterba
Hi, On Wed, Sep 25, 2019 at 10:29:45AM +0200, Jason A. Donenfeld wrote: > I've long resisted the idea of porting to the existing crypto API, > because I think there are serious problems with it, in terms of > primitives, API, performance, and overall safety. I didn't want to > ship WireGuard in a

Re: [PATCH 5.2 00/45] 5.2.18-stable review

2019-09-29 Thread kernelci.org bot
stable-rc/linux-5.2.y boot: 83 boots: 0 failed, 83 passed (v5.2.17-46-g70cc0b99b90f) Full Boot Summary: https://kernelci.org/boot/all/job/stable-rc/branch/linux-5.2.y/kernel/v5.2.17-46-g70cc0b99b90f/ Full Build Summary:

Re: [PATCH 4.19 00/63] 4.19.76-stable review

2019-09-29 Thread kernelci.org bot
stable-rc/linux-4.19.y boot: 80 boots: 1 failed, 78 passed with 1 conflict (v4.19.75-64-gb52c75f7b978) Full Boot Summary: https://kernelci.org/boot/all/job/stable-rc/branch/linux-4.19.y/kernel/v4.19.75-64-gb52c75f7b978/ Full Build Summary:

[GIT PULL] ARM: SoC fixes

2019-09-29 Thread Olof Johansson
Hi Linus, The following changes since commit 4d856f72c10ecb060868ed10ff1b1453943fc6c8: Linux 5.3 (2019-09-15 14:19:32 -0700) are available in the Git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/soc/soc.git tags/armsoc-fixes for you to fetch changes up to

Re: [GIT PULL 1/2] arm64: dts: exynos: Pull for v5.4

2019-09-29 Thread Olof Johansson
Hi, On Thu, Sep 12, 2019 at 08:32:47AM +0200, Krzysztof Kozlowski wrote: > On Wed, 11 Sep 2019 at 23:07, Arnd Bergmann wrote: > > > > On Wed, Sep 11, 2019 at 8:36 PM Krzysztof Kozlowski wrote: > > > > > > Hi, > > > > > > Unfortunately the patches were applied right after closing the linux-next.

Re: [PATCH AUTOSEL 4.14 08/23] ARM: 8875/1: Kconfig: default to AEABI w/ Clang

2019-09-29 Thread Nathan Chancellor
On Sun, Sep 29, 2019 at 01:35:18PM -0400, Sasha Levin wrote: > From: Nick Desaulniers > > [ Upstream commit a05b9608456e0d4464c6f7ca8572324ace57a3f4 ] > > Clang produces references to __aeabi_uidivmod and __aeabi_idivmod for > arm-linux-gnueabi and arm-linux-gnueabihf targets incorrectly when

[PATCH v5 01/14] ARM: tegra: Remove cpuidle drivers to replace them with a new driver

2019-09-29 Thread Dmitry Osipenko
Remove the old drivers to replace them cleanly with a new one later on. Please note that old Tegra20 CPUIDLE driver used pen-locking in order to block secondary CPU waking-up if IRQ happened to raise during of the entering into CC6 and primary CPU already crossed point of no return, but that is

Re: [Cocci] [RFC PATCH] scripts: Fix coccicheck failed

2019-09-29 Thread Markus Elfring
> Maybe the problem would be solved by putting virtual report at the top of the > rule. I assume that support for the operation mode “patch” can eventually be considered. > But it might still fail because nothing can happen without a value > for the virtual metavariable ns. I imagine that

[PATCH v5 09/14] clk: tegra: Add missing stubs for the case of !CONFIG_PM_SLEEP

2019-09-29 Thread Dmitry Osipenko
The new CPUIDLE driver uses the Tegra's CLK API and that driver won't strictly depend on CONFIG_PM_SLEEP, hence add the required stubs in order to allow compiling of the new driver with the CONFIG_PM_SLEEP=n. Signed-off-by: Dmitry Osipenko --- include/linux/clk/tegra.h | 13 + 1

[PATCH v5 04/14] ARM: tegra: Compile sleep-tegra20/30.S unconditionally

2019-09-29 Thread Dmitry Osipenko
The sleep-tegra*.S provides functionality required for suspend/resume and CPU hotplugging. The new unified CPUIDLE driver will support multiple hardware generations starting from Terga20 and ending with Tegra124, the driver will utilize functions that are provided by the assembly and thus it is

[PATCH v5 14/14] ARM: tegra: Enable Tegra cpuidle driver in tegra_defconfig

2019-09-29 Thread Dmitry Osipenko
The Tegra CPU Idle driver was moved out into driver/cpuidle/ directory and it is now a proper platform driver. Signed-off-by: Dmitry Osipenko --- arch/arm/configs/tegra_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/configs/tegra_defconfig

[PATCH v5 12/14] ARM: tegra: Create simple platform device for cpuidle driver

2019-09-29 Thread Dmitry Osipenko
The new CPUIDLE driver now is a proper platform driver, hence it needs a platform device in order to be functional. Register the platform device, like we do that for the CPUFreq driver. Note that on some Tegra114(124) devices PSCI may be used for the CPU hotplugging and CPUIDLE driver doesn't

[PATCH v5 13/14] ARM: multi_v7_defconfig: Enable Tegra cpuidle driver

2019-09-29 Thread Dmitry Osipenko
The Tegra CPU Idle driver was moved out into driver/cpuidle/ directory and it is now a proper platform driver. Signed-off-by: Dmitry Osipenko --- arch/arm/configs/multi_v7_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/configs/multi_v7_defconfig

[PATCH v5 07/14] ARM: tegra: Add tegra_pm_park_secondary_cpu()

2019-09-29 Thread Dmitry Osipenko
This function resembles tegra_cpu_die() of the hotplug code, but this variant is more suitable to be used for CPU PM because it's made specifically to be used by cpu_suspend(). In short this function puts secondary CPU offline, it will be used by the new CPUIDLE driver. Signed-off-by: Dmitry

[PATCH v5 06/14] ARM: tegra: Rename some of the newly exposed PM functions

2019-09-29 Thread Dmitry Osipenko
Rename some of the recently exposed PM functions, prefixing them with "tegra_pm_" and making naming of those functions more meaningful, for consistency. Signed-off-by: Dmitry Osipenko --- arch/arm/mach-tegra/pm.c| 10 +- arch/arm/mach-tegra/sleep-tegra30.S | 6 +++---

[PATCH v5 10/14] cpuidle: Introduce unified driver for NVIDIA Tegra SoCs

2019-09-29 Thread Dmitry Osipenko
The new driver is based on the old CPU Idle drivers that are removed now from arm/arch/mach-tegra/ directory. Those removed drivers were reworked and squashed into a single unified driver that covers multiple hardware generations, starting from Tegra20 and ending with Tegra124. The new driver

[PATCH v5 03/14] ARM: tegra: Propagate error from tegra_idle_lp2_last()

2019-09-29 Thread Dmitry Osipenko
The cpu_suspend() may fail, it's never good to lose information about failure because it may become very useful for the caller. The new CPUIDLE driver will handle all of possible error cases, including the case of tegra_idle_lp2_last() failure. Signed-off-by: Dmitry Osipenko ---

[PATCH v5 02/14] ARM: tegra: Change tegra_set_cpu_in_lp2() type to void

2019-09-29 Thread Dmitry Osipenko
The old Tegra30 CPUIDLE driver had intention to check whether primary CPU was the last CPU that entered LP2 (CC6) idle-state, but that functionality never got utilized by the old-removed driver because it never supported the CC6 while secondary CPUs were online. The new driver will properly

[PATCH v5 08/14] ARM: tegra: Make outer_disable() open-coded

2019-09-29 Thread Dmitry Osipenko
The outer_disable() of Tegra's suspend code is open-coded now since that helper produces spurious warning message about secondary CPUs being online. The secondaries are actually halted by the cpuidle driver on entering into LP2 idle-state. This fixes a storm of warnings once LP2 idling state is

[PATCH v5 00/14] Consolidate and improve NVIDIA Tegra CPUIDLE driver(s)

2019-09-29 Thread Dmitry Osipenko
Hello, This series does the following: 1. Unifies Tegra20/30/114 drivers into a single driver and moves it out into common drivers/cpuidle/ directory. 2. Enables CPU cluster power-down idling state on Tegra30. In the end there is a quite nice clean up of the Tegra CPUIDLE drivers and

[PATCH v5 05/14] ARM: tegra: Expose PM functions required for new cpuidle driver

2019-09-29 Thread Dmitry Osipenko
The upcoming unified CPUIDLE driver will be added to the drivers/cpuidle/ directory and it will require all these exposed Tegra PM-core functions. Signed-off-by: Dmitry Osipenko --- arch/arm/mach-tegra/irq.c | 2 ++ arch/arm/mach-tegra/pm.h| 3 --- arch/arm/mach-tegra/sleep.h | 1 -

[PATCH v5 11/14] cpuidle: tegra: Support CPU cluster power-down state on Tegra30

2019-09-29 Thread Dmitry Osipenko
The new Tegra CPU Idle driver now has a unified code path for the coupled LP2/CC6 state, this allows to enable the deepest idling state on Tegra30 SoC where the whole CPU cluster is power-gated. Signed-off-by: Dmitry Osipenko --- drivers/cpuidle/cpuidle-tegra.c | 1 - 1 file changed, 1

Galax GeForce GTX1650 EX-1 Click OC PCI-E 4 GB GDDR5 128Bit Video Card Improves 4K Video Rendering Speeds by LEAPS AND BOUNDS!

2019-09-29 Thread Turritopsis Dohrnii Teo En Ming
Subject: Galax GeForce GTX1650 EX-1 Click OC PCI-E 4 GB GDDR5 128Bit Video Card Improves 4K Video Rendering Speeds by LEAPS AND BOUNDS! Good day from Singapore, I have just bought a Galax GeForce GTX1650 EX-1 Click OC PCI-E 4 GB GDDR5 128Bit with/Display Port/HDMI/DVI-D/CoolingFan video card

Re: [GIT PULL] libnvdimm fixes for v5.4-rc1

2019-09-29 Thread pr-tracker-bot
The pull request you sent on Sat, 28 Sep 2019 18:44:17 -0700: > git://git.kernel.org/pub/scm/linux/kernel/git/nvdimm/nvdimm > tags/libnvdimm-fixes-5.4-rc1 has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/a3c0e7b1fe1fc62bba5f591c4bc404eea96823b8 Thank you! --

  1   2   3   4   5   >