RE: [PATCH] platform/chrome: cros_ec_typec: Avoid setting usb role twice during disconnect

2020-08-03 Thread Shaikh, Azhar
Hi, > -Original Message- > From: Heikki Krogerus > Sent: Friday, July 31, 2020 6:37 AM > To: Shaikh, Azhar > Cc: ble...@chromium.org; enric.balle...@collabora.com; > gro...@chromium.org; pmal...@chromium.org; linux- > ker...@vger.kernel.org; Patel, Utkarsh H ; > Bowman, Casey G ; Mani,

Re: [PATCHv4 00/19] perf metric: Add support to reuse metric

2020-08-03 Thread Ian Rogers
On Sat, Aug 1, 2020 at 4:41 AM Paul A. Clarke wrote: > > On Wed, Jul 29, 2020 at 11:18:49AM +0200, Jiri Olsa wrote: > > this patchset is adding the support to reused metric in > > another metric. > > > > For example, to define IPC by using CPI with change like: > > > > { > >

Re: [PATCH] regulator: cros-ec-regulator: Add NULL test for devm_kmemdup call

2020-08-03 Thread Mark Brown
On Sun, 2 Aug 2020 11:25:09 +0800, Axel Lin wrote: > Fix possible NULL pointer dereference. Applied to https://git.kernel.org/pub/scm/linux/kernel/git/broonie/regulator.git for-next Thanks! [1/1] regulator: cros-ec-regulator: Add NULL test for devm_kmemdup call commit:

Re: [PATCH 0/4] regulator: mp886x: two features and dt json convert

2020-08-03 Thread Mark Brown
On Tue, 28 Jul 2020 23:23:27 +0800, Jisheng Zhang wrote: > This is to improve the mp886x regulator driver support. > patch1 converts dt binding to json-schema > patch2 implments .set_ramp_delay > patch3 and patch3 support the switch freq setting > > Jisheng Zhang (4): > dt-bindings: regulator:

[GIT PULL] x86/alternatives change for v5.9

2020-08-03 Thread Ingo Molnar
Linus, Please pull the latest x86/alternatives git tree from: git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git x86-alternatives-2020-08-03 # HEAD: 1b2e335ebfa2243517e09f99653c78d1936cb6d2 x86/alternatives: Add pr_fmt() to debug macros A single commit that improves the

Re: [PATCH v2 0/4] regulator: mp886x: two features and dt json convert

2020-08-03 Thread Mark Brown
On Wed, 29 Jul 2020 13:08:39 +0800, Jisheng Zhang wrote: > This is to improve the mp886x regulator driver support. > patch1 implments .set_ramp_delay > patch2 and patch3 support the switch freq setting > patch4 converts dt binding to json-schema > > Since v2: > - put any schema conversions at

Re: [PATCH v3] ASoC: fsl-asoc-card: Remove fsl_asoc_card_set_bias_level function

2020-08-03 Thread Mark Brown
On Mon, 3 Aug 2020 10:13:31 +0800, Shengjiu Wang wrote: > With this case: > aplay -Dhw:x 16khz.wav 24khz.wav > There is sound distortion for 24khz.wav. The reason is that setting > PLL of WM8962 with set_bias_level function, the bias level is not > changed when 24khz.wav is played, then the PLL

Re: [PATCH 1/2] irqchip: irq-mt58xx: Add mt58xx interrupt controller support

2020-08-03 Thread Marc Zyngier
On 2020-08-03 16:03, Mark-PK Tsai wrote: From: Marc Zyngier On 2020-08-03 07:22, Mark-PK Tsai wrote: > Add mt58xx interrupt controller support using hierarchy irq > domain. > > Signed-off-by: Mark-PK Tsai > --- > drivers/irqchip/Kconfig | 7 ++ > drivers/irqchip/Makefile | 1 +

Re: [RFC PATCH 0/8] KVM: x86/mmu: Introduce pinned SPTEs framework

2020-08-03 Thread Brijesh Singh
Thanks for series Sean. Some thoughts On 7/31/20 4:23 PM, Sean Christopherson wrote: > SEV currently needs to pin guest memory as it doesn't support migrating > encrypted pages. Introduce a framework in KVM's MMU to support pinning > pages on demand without requiring additional memory

[GIT PULL] Filesystem Information

2020-08-03 Thread David Howells
d --- The following changes since commit 841a0dfa511364fa9a8d67512e0643669f1f03e3: watch_queue: sample: Display mount tree change notifications (2020-08-03 12:15:38 +0100) are available in the Git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/dhowells/linux-fs.git tags/fsinfo-co

[PATCH] sched/cpuacct:Fix previous bugs submitted in history.

2020-08-03 Thread ning.le
Historical submission introduces new issues that When the current cpu wakes up the thread which works on other cores,the cpuacct module may add the execution time of thread which on the the other core's rq to the current core's cpuusage. Signed-off-by: ning.le --- kernel/sched/cpuacct.c | 4

Re: [RFC PATCH] arm64: defconfig: Disable fine-grained task level IRQ time accounting

2020-08-03 Thread Valentin Schneider
On 03/08/20 16:13, Thomas Gleixner wrote: > Vladimir Oltean writes: >>> 1) When irq accounting is disabled, RT throttling kicks in as >>> expected. >>> >>> 2) With irq accounting the RT throttler does not kick in and the RCU >>> stall/lockups happen. >> What is this telling us? > >

Re: [PATCH] mm, memory_hotplug: update pcp lists everytime onlining a memory block

2020-08-03 Thread Michal Hocko
On Sun 02-08-20 18:24:56, Charan Teja Reddy wrote: > When onlining a first memory block in a zone, pcp lists are not updated > thus pcp struct will have the default setting of ->high = 0,->batch = 1. > This means till the second memory block in a zone(if it have) is onlined > the pcp lists of this

Re: [PATCH] mm: sort freelist by rank number

2020-08-03 Thread Vlastimil Babka
On 8/3/20 9:57 AM, David Hildenbrand wrote: > On 03.08.20 08:10, pullip@samsung.com wrote: >> From: Cho KyongHo >> >> LPDDR5 introduces rank switch delay. If three successive DRAM accesses >> happens and the first and the second ones access one rank and the last >> access happens on the

[PATCH v8 05/10] media: tegra-video: Separate CSI stream enable and disable implementations

2020-08-03 Thread Sowjanya Komatineni
This patch separates implementation of CSI stream enable and disable into separate functions for readability. Reviewed-by: Dmitry Osipenko Signed-off-by: Sowjanya Komatineni --- drivers/staging/media/tegra-video/csi.c | 51 ++--- 1 file changed, 35 insertions(+), 16

Re: Re: [RFC PATCH 4/4] i2c: at91: Move to generic GPIO bus recovery

2020-08-03 Thread Codrin.Ciubotariu
On 02.08.2020 20:08, Wolfram Sang wrote: > On Fri, Jun 19, 2020 at 05:19:04PM +0300, Codrin Ciubotariu wrote: >> Make the Microchip at91 driver the first to use the generic GPIO bus >> recovery support from the I2C core and discard the driver implementation. >> >> Signed-off-by: Codrin Ciubotariu

[PATCH v8 03/10] media: tegra-video: Update format lookup to offset based

2020-08-03 Thread Sowjanya Komatineni
Tegra VI supported video formats are more for non TPG and there can be multiple pixel formats for the same media bus format. This patch updates the helper function for format lookup based on mbus code from pre-defined Tegra supported format list to look from the specified list index offset.

[PATCH v8 08/10] gpu: host1x: mipi: Keep MIPI clock enabled till calibration is done

2020-08-03 Thread Sowjanya Komatineni
With the split of MIPI calibration into tegra_mipi_calibrate() and tegra_mipi_wait(), MIPI clock is not kept enabled till the calibration is done. So, this patch skips disabling MIPI clock after triggering start of calibration and disables it only after waiting for done status from the

[PATCH v8 04/10] dt-bindings: tegra: Update VI and CSI bindings with port info

2020-08-03 Thread Sowjanya Komatineni
Update VI and CSI bindings to add port and endpoint nodes as per media video-interfaces DT binding document. Acked-by: Rob Herring Signed-off-by: Sowjanya Komatineni --- .../display/tegra/nvidia,tegra20-host1x.txt| 92 +- 1 file changed, 90 insertions(+), 2

[PATCH v8 06/10] media: tegra-video: Add support for external sensor capture

2020-08-03 Thread Sowjanya Komatineni
This patch adds support to capture from the external sensor based on device graph in the device tree. Driver walks through the device graph to create media links between the entities and registers and unregisters video devices when the corresponding sub-devices are bound and unbound. Channel

Re: [RFC PATCH 0/5] madvise MADV_DOEXEC

2020-08-03 Thread James Bottomley
On Mon, 2020-08-03 at 10:28 -0500, Eric W. Biederman wrote: [...] > What is wrong with live migration between one qemu process and > another qemu process on the same machine not work for this use case? > > Just reusing live migration would seem to be the simplest path of > all, as the code is

[PATCH v8 07/10] media: tegra-video: Add support for selection ioctl ops

2020-08-03 Thread Sowjanya Komatineni
This patch adds selection v4l2 ioctl operations to allow configuring a selection rectangle in the sensor through the Tegra video device node. Some sensor drivers supporting crop uses try_crop rectangle from v4l2_subdev_pad_config during try format for computing binning. So with selection ops

[PATCH v8 02/10] media: tegra-video: Enable TPG based on kernel config

2020-08-03 Thread Sowjanya Komatineni
Tegra internal TPG mode is only for Tegra vi and csi testing without a real sensor and driver should default support real sensor. So, This patch adds CONFIG_VIDEO_TEGRA_TPG and enables Tegra internal TPG mode only when this config is selected. Signed-off-by: Sowjanya Komatineni ---

[PATCH v8 10/10] media: tegra-video: Compute settle times based on the clock rate

2020-08-03 Thread Sowjanya Komatineni
Settle time determines the number of cil clock cyles to wait after LP00 when moving from LP to HS. This patch computes T-CLK-SETTLE and T-HS-SETTLE times based on cil clock rate and pixel rate from the sensor and programs them during streaming. T-CLK-SETTLE time is the interval during which

[PATCH v8 09/10] media: tegra-video: Add CSI MIPI pads calibration

2020-08-03 Thread Sowjanya Komatineni
CSI MIPI pads need to be enabled and calibrated for capturing from the external sensor or transmitter. MIPI CAL unit calibrates MIPI pads pull-up, pull-down and termination impedances. Calibration is done by co-work of MIPI BIAS pad and MIPI CAL control unit. Triggering calibration start can

[PATCH v8 01/10] media: tegra-video: Fix channel format alignment

2020-08-03 Thread Sowjanya Komatineni
Pixel format width is mistakenly aligned to surface align bytes and altering width to aligned value may force sensor mode change other than the requested one and also cause mismatch in width programmed between sensor and vi which can lead to capture errors. This patch removes width alignment and

Re: [PATCH v2 -next] tools build: Check return value of fwrite_unlocked in jvmti_agent.c

2020-08-03 Thread Ian Rogers
On Fri, Jul 31, 2020 at 4:42 AM Wang ShaoBo wrote: > > Function jvmti_write_code called by compiled_method_load_cb may return > error in using fwrite_unlocked, this failure should be captured and > warned. > > Signed-off-by: Wang ShaoBo Thanks, looks good now! Reviewed-by: Ian Rogers > --- >

[PATCH v8 00/10] Support for Tegra video capture from external sensor

2020-08-03 Thread Sowjanya Komatineni
This series adds support for video capture from external camera sensor to Tegra video driver. Jetson TX1 has camera expansion connector and supports custom camera module designed as per TX1 design specification. This series also enables camera capture support for Jetson Nano which has Raspberry

Re: [PATCH bpf-next v7 5/7] bpf: Implement bpf_local_storage for inodes

2020-08-03 Thread KP Singh
On 31.07.20 21:02, Martin KaFai Lau wrote: > On Fri, Jul 31, 2020 at 02:08:55PM +0200, KP Singh wrote: > [ ... ] +const struct bpf_map_ops inode_storage_map_ops = { [...] >> >> btf dump file /sys/kernel/btf/vmlinux | grep "STRUCT 'inode'" >> "[915] STRUCT 'inode' size=984 vlen=48 >> >>

Re: [PATCH 2/2] dmabuf/tracing: Add dma-buf trace events

2020-08-03 Thread Matthew Wilcox
On Mon, Aug 03, 2020 at 02:47:19PM +, Kalesh Singh wrote: > +static void dma_buf_fd_install(int fd, struct file *filp) > +{ > + trace_dma_buf_fd_ref_inc(current, filp); > +} You're adding a new file_operation in order to just add a new tracepoint? NACK.

Re: [PATCH] gve: Fix the size used in a 'dma_free_coherent()' call

2020-08-03 Thread Jakub Kicinski
On Sun, 2 Aug 2020 16:15:23 +0200 Christophe JAILLET wrote: > Update the size used in 'dma_free_coherent()' in order to match the one > used in the corresponding 'dma_alloc_coherent()'. > > Fixes: 893ce44df5 ("gve: Add basic driver framework for Compute Engine > Virtual NIC") > Signed-off-by:

Re: [PATCH] mm: Fix protection usage propagation

2020-08-03 Thread Roman Gushchin
On Mon, Aug 03, 2020 at 05:32:31PM +0200, Michal Hocko wrote: > From: Michal Koutný > > When workload runs in cgroups that aren't directly below root cgroup and > their parent specifies reclaim protection, it may end up ineffective. > > The reason is that propagate_protected_usage() is not

[PATCH] proc: use untagged_addr() for pagemap_read addresses

2020-08-03 Thread Miles Chen
When we try to visit the pagemap of a tagged userspace pointer, we find that the start_vaddr is not correct because of the tag. To fix it, we should untag the usespace pointers in pagemap_read(). Signed-off-by: Miles Chen --- fs/proc/task_mmu.c | 4 ++-- 1 file changed, 2 insertions(+), 2

Re: [PATCH] ARM64: Setup DMA32 zone size by bootargs

2020-08-03 Thread Robin Murphy
On 2020-08-03 15:26, Phil Chang wrote: this patch allowing the arm64 DMA zone be configurable. Signed-off-by: Alix Wu Signed-off-by: YJ Chiang Signed-off-by: Phil Chang --- Hi For some devices, the main memory split into 2 part due to the memory architecture, the efficient and less

Re: [PATCH v4 2/2] soc: mediatek: add mtk-devapc driver

2020-08-03 Thread Chun-Kuang Hu
Neal Liu 於 2020年8月3日 週一 下午12:05寫道: > > Hi Chun-Kuang, > > On Sun, 2020-08-02 at 07:50 +0800, Chun-Kuang Hu wrote: > > Hi, Neal: > > > > Neal Liu 於 2020年7月29日 週三 下午4:29寫道: > > > > > > MediaTek bus fabric provides TrustZone security support and data > > > protection to prevent slaves from being

Re: KASAN: use-after-free Read in tipc_bcast_get_mode

2020-08-03 Thread Eric Dumazet
On 8/3/20 8:23 AM, syzbot wrote: > Hello, > > syzbot found the following issue on: > > HEAD commit:bd0b33b2 Merge git://git.kernel.org/pub/scm/linux/kernel/g.. > git tree: net-next > console output: https://syzkaller.appspot.com/x/log.txt?x=13f236a490 > kernel config:

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

2020-08-03 Thread Marek Szyprowski
Hi All, On 03.08.2020 17:30, Marek Szyprowski wrote: > On 10.07.2020 21:11, Lukasz Luba wrote: >> 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.

Re: [PATCH bpf-next v3 00/29] bpf: switch to memcg-based memory accounting

2020-08-03 Thread Roman Gushchin
On Mon, Aug 03, 2020 at 02:05:29PM +0200, Daniel Borkmann wrote: > On 7/30/20 11:22 PM, Roman Gushchin wrote: > > Currently bpf is using the memlock rlimit for the memory accounting. > > This approach has its downsides and over time has created a significant > > amount of problems: > > > > 1) The

Re: Re: [RFC PATCH 3/4] i2c: core: treat EPROBE_DEFER when acquiring SCL/SDA GPIOs

2020-08-03 Thread Codrin.Ciubotariu
On 02.08.2020 20:05, Wolfram Sang wrote: > On Fri, Jun 19, 2020 at 05:19:03PM +0300, Codrin Ciubotariu wrote: >> Even if I2C bus GPIO recovery is optional, devm_gpiod_get() can return >> -EPROBE_DEFER, so we should at least treat that. This ends up with >> i2c_register_adapter() to be able to

[PATCH] mm: Fix protection usage propagation

2020-08-03 Thread Michal Hocko
From: Michal Koutný When workload runs in cgroups that aren't directly below root cgroup and their parent specifies reclaim protection, it may end up ineffective. The reason is that propagate_protected_usage() is not called in all hierarchy up. All the protected usage is incorrectly accumulated

Re: [PATCH 2/2] dmabuf/tracing: Add dma-buf trace events

2020-08-03 Thread Steven Rostedt
On Mon, 3 Aug 2020 14:47:19 + Kalesh Singh wrote: > +DECLARE_EVENT_CLASS(dma_buf_ref_template, > + > + TP_PROTO(struct task_struct *task, struct file *filp), > + > + TP_ARGS(task, filp), > + > + TP_STRUCT__entry( > + __field(u32, tgid) > + __field(u32,

Re: [RFC PATCH 0/5] madvise MADV_DOEXEC

2020-08-03 Thread Eric W. Biederman
Steven Sistare writes: > On 7/30/2020 5:58 PM, ebied...@xmission.com wrote: >> Here is another suggestion. >> >> Have a very simple program that does: >> >> for (;;) { >> handle = dlopen("/my/real/program"); >> real_main = dlsym(handle, "main"); >>

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

2020-08-03 Thread Marek Szyprowski
Hi Lukasz, On 10.07.2020 21:11, Lukasz Luba wrote: > 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

Re: [PATCH v6 08/22] bootconfig: init: Allow admin to use bootconfig for init command line

2020-08-03 Thread Arvind Sankar
On Tue, Aug 04, 2020 at 12:03:45AM +0900, Masami Hiramatsu wrote: > On Sat, 1 Aug 2020 22:33:18 -0400 > Arvind Sankar wrote: > > > > I came across this as I was poking around some of the command line > > parsing. AFAICT, initargs_found will never be set to true here, because > > parse_args

[GIT PULL] Mount notifications

2020-08-03 Thread David Howells
been some last minute changes to the patchset: you wanted something adding and Miklós wanted some bits taking out/changing. I've placed a tag, fsinfo-core-20200724 on the aggregate of these two patchsets that can be compared to fsinfo-core-20200803. To summarise the changes: I added the limiter

Re: [PATCH v2 4/7] cpufreq: report whether cpufreq supports Frequency Invariance (FI)

2020-08-03 Thread Ionela Voinescu
Hi Viresh, On Thursday 30 Jul 2020 at 10:13:46 (+0530), Viresh Kumar wrote: > On 22-07-20, 10:37, Ionela Voinescu wrote: > > diff --git a/drivers/cpufreq/cpufreq.c b/drivers/cpufreq/cpufreq.c > > index 3497c1cd6818..1d0b046fe8e9 100644 > > --- a/drivers/cpufreq/cpufreq.c > > +++

KASAN: use-after-free Read in tipc_bcast_get_mode

2020-08-03 Thread syzbot
Hello, syzbot found the following issue on: HEAD commit:bd0b33b2 Merge git://git.kernel.org/pub/scm/linux/kernel/g.. git tree: net-next console output: https://syzkaller.appspot.com/x/log.txt?x=13f236a490 kernel config: https://syzkaller.appspot.com/x/.config?x=91a13b78c7dc258d

Re: [PATCH v6 12/12] x86/traps: Fix up invalid PASID

2020-08-03 Thread Raj, Ashok
On Mon, Aug 03, 2020 at 08:12:18AM -0700, Andy Lutomirski wrote: > On Mon, Aug 3, 2020 at 8:03 AM Dave Hansen wrote: > > > > On 7/31/20 4:34 PM, Andy Lutomirski wrote: > > >> Thomas suggested to provide a reason for the #GP caused by executing > > >> ENQCMD > > >> without a valid PASID value

RE: [RFC][PATCH] objtool,x86_64,paravirt: Add pv_ops[] support

2020-08-03 Thread Michael Kelley
From: pet...@infradead.org Sent: Monday, August 3, 2020 7:33 AM > > Thomas wanted paramuck vs noinstr, here goes. Very rough, very nasty, > mostly works. > > It requires call sites are the normal indirect call, and not mangled > retpoison (slow_down_io() had those), it also requires pv_ops[] >

Re: [PATCH v5 00/16] HWPOISON: soft offline rework

2020-08-03 Thread Qian Cai
handle the race around reallocation, but that part > > > seems still work in progress, so I decide to separate it for changes into > > > v5.9. Thank you for your contribution, Oscar. > > > > > > The issue reported by Qian Cai is fixed by patch 16/16. > > &g

[PATCH] iio:temperature:mlx90632: Reduce number of equal calulcations

2020-08-03 Thread Crt Mori
TAdut4 was calculated each iteration although it did not change. In light of near future additions of the Extended range DSP calculations, this function refactoring will help reduce unrelated changes in that series as well as reduce the number of new functions needed. Also converted shifts in

Re: [RFC v2 4/5] dt-bindings: of: Add plumbing for restricted DMA pool

2020-08-03 Thread Tomasz Figa
Hi Claire and Rob, On Mon, Aug 3, 2020 at 4:26 PM Claire Chang wrote: > > On Sat, Aug 1, 2020 at 4:58 AM Rob Herring wrote: > > > > On Tue, Jul 28, 2020 at 01:01:39PM +0800, Claire Chang wrote: > > > Introduce the new compatible string, device-swiotlb-pool, for restricted > > > DMA. One can

Re: [RFC][PATCH] objtool,x86_64,paravirt: Add pv_ops[] support

2020-08-03 Thread Andy Lutomirski
On Mon, Aug 3, 2020 at 7:33 AM wrote: > > > Thomas wanted paramuck vs noinstr, here goes. Very rough, very nasty, > mostly works. > > It requires call sites are the normal indirect call, and not mangled > retpoison (slow_down_io() had those), it also requires pv_ops[] > assignments are single

Re: [RFC PATCH] arm64: defconfig: Disable fine-grained task level IRQ time accounting

2020-08-03 Thread Thomas Gleixner
Vladimir Oltean writes: >> 1) When irq accounting is disabled, RT throttling kicks in as >> expected. >> >> 2) With irq accounting the RT throttler does not kick in and the RCU >> stall/lockups happen. >> >> Not much, but there is clearly interaction between irq time accounting >> and

Re: [PATCH v6 12/12] x86/traps: Fix up invalid PASID

2020-08-03 Thread Andy Lutomirski
On Mon, Aug 3, 2020 at 8:03 AM Dave Hansen wrote: > > On 7/31/20 4:34 PM, Andy Lutomirski wrote: > >> Thomas suggested to provide a reason for the #GP caused by executing ENQCMD > >> without a valid PASID value programmed. #GP error codes are 16 bits and all > >> 16 bits are taken. Refer to SDM

Re: [PATCH v6 2/3] binder: add trace at free transaction.

2020-08-03 Thread Todd Kjos
On Sun, Aug 2, 2020 at 8:11 PM Frankie Chang wrote: > > On Fri, 2020-07-31 at 11:50 -0700, Todd Kjos wrote: > > On Mon, Jul 27, 2020 at 8:28 PM Frankie Chang > > wrote: > > > > > > From: "Frankie.Chang" > > > > > > Since the original trace_binder_transaction_received cannot > > > precisely

[PATCH] asm-generic/io.h: Fix sparse warnings on big-endian architectures

2020-08-03 Thread Stafford Horne
On big-endian architectures like OpenRISC, sparse outputs below warnings on asm-generic/io.h. This is due to io statements like: __raw_writel(cpu_to_le32(value), PCI_IOBASE + addr); The __raw_writel() function expects native endianness, however cpu_to_le32() returns __le32. On little-endian

Re: [PATCH v5 3/4] LSM: Define SELinux function to measure state and policy

2020-08-03 Thread Stephen Smalley
On 7/29/20 11:47 PM, Lakshmi Ramasubramanian wrote: SELinux configuration and policy are some of the critical data for this security module that needs to be measured. This measurement can be used by an attestation service, for instance, to verify if the configuration and policies have been

Re: add file system helpers that take kernel pointers for the init code v4

2020-08-03 Thread Christoph Hellwig
ded after bootup. A few also need to be duplicated in devtmpfs, > > though unfortunately. > > Reverting this series from next-20200803 fixed the crash below on shutdown. Please try this patch: --- >From 6448eebe2fe7189cedc5136ab3464517956922b7 Mon Sep 17 00:00:00 2001 From: Christop

Re: [PATCH v17 00/21] per memcg lru lock

2020-08-03 Thread Michal Hocko
On Thu 30-07-20 10:16:13, Alex Shi wrote: > > > 在 2020/7/30 上午2:06, Hugh Dickins 写道: > > On Wed, 29 Jul 2020, Alex Shi wrote: > >> > >> Is there any comments or suggestion for this patchset? > >> Any hints will be very appreciated. > > > > Alex: it is now v5.8-rc7, obviously too late for this

Re: [PATCH v7 05/19] mm: memcontrol: decouple reference counting from page accounting

2020-08-03 Thread Michal Hocko
On Mon 03-08-20 11:03:49, Johannes Weiner wrote: > On Mon, Aug 03, 2020 at 11:00:33AM +0200, Michal Hocko wrote: > > On Tue 23-06-20 10:40:23, Roman Gushchin wrote: > > > @@ -5456,7 +5460,10 @@ static int mem_cgroup_move_account(struct page > > > *page, > > >*/ > > > smp_mb(); > > > > > >

Re: [PATCH v3] sched: Provide USF for the portable equipment.

2020-08-03 Thread Greg KH
On Mon, Aug 03, 2020 at 10:31:15PM +0800, Dongdong Yang wrote: > + /* > + * create a sched_usf in cpu_subsys: > + * /sys/devices/system/cpu/sched_usf/... I thought I asked you not to use a "raw" kobject, you are making this much harder than it has to be. Just use a normal struct

KASAN: slab-out-of-bounds Read in hci_le_meta_evt

2020-08-03 Thread syzbot
Hello, syzbot found the following issue on: HEAD commit:5a30a789 Merge tag 'x86-urgent-2020-08-02' of git://git.ke.. git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=11cd21cc90 kernel config: https://syzkaller.appspot.com/x/.config?x=c0cfcf935bcc94d2

Re: [PATCH v7 05/19] mm: memcontrol: decouple reference counting from page accounting

2020-08-03 Thread Johannes Weiner
On Mon, Aug 03, 2020 at 11:00:33AM +0200, Michal Hocko wrote: > On Tue 23-06-20 10:40:23, Roman Gushchin wrote: > > @@ -5456,7 +5460,10 @@ static int mem_cgroup_move_account(struct page *page, > > */ > > smp_mb(); > > > > - page->mem_cgroup = to; /* caller should have done css_get */

Re: [PATCH v6 12/12] x86/traps: Fix up invalid PASID

2020-08-03 Thread Dave Hansen
On 7/31/20 4:34 PM, Andy Lutomirski wrote: >> Thomas suggested to provide a reason for the #GP caused by executing ENQCMD >> without a valid PASID value programmed. #GP error codes are 16 bits and all >> 16 bits are taken. Refer to SDM Vol 3, Chapter 16.13 for details. The other >> choice was to

Re: [PATCH v6 08/22] bootconfig: init: Allow admin to use bootconfig for init command line

2020-08-03 Thread Masami Hiramatsu
On Sat, 1 Aug 2020 22:33:18 -0400 Arvind Sankar wrote: > On Fri, Feb 07, 2020 at 02:46:03PM -0500, Steven Rostedt wrote: > > > > diff --git a/init/main.c b/init/main.c > > index 491f1cdb3105..113c8244e5f0 100644 > > --- a/init/main.c > > +++ b/init/main.c > > @@ -142,6 +142,15 @@ static char

Re: [RFC PATCH 0/8] KVM: x86/mmu: Introduce pinned SPTEs framework

2020-08-03 Thread Sean Christopherson
On Sun, Aug 02, 2020 at 10:00:13PM -0500, Eric van Tassell wrote: > Sean, > What commit did you base your series on? Gah, sorry. kvm/queue, commit 9c2475f3e46a1 ("KVM: Using macros instead of magic values").

Re: add file system helpers that take kernel pointers for the init code v4

2020-08-03 Thread Qian Cai
we need to deal with to kill > off set_fs entirely, so this series adds new helpers that take kernel > pointers. These helpers are in init/ and marked __init and thus will > be discarded after bootup. A few also need to be duplicated in devtmpfs, > though unfortunately. Reverting thi

[GIT PULL] scheduler updates for v5.9

2020-08-03 Thread Ingo Molnar
Linus, Please pull the latest sched/core git tree from: git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git sched-core-2020-08-03 # HEAD: 949bcb8135a96a6923e676646bd29cbe69e8350f sched/doc: Factorize bits between sched-energy.rst & sched-capacity.rst The main changes in this

Re: VAIO EEPROM support in at24

2020-08-03 Thread Jean Delvare
Hi Wolfram, Sorry, somehow this message of yours slipped through the cracks. On Tue, 17 Mar 2020 16:01:42 +0100, Wolfram Sang wrote: > > And we could introduce a new macro called AT24_CHIP_DATA_MASKED that > > would automacially set the AT24_FLAG_MASKED_RANGE flag and take > > another argument

[PATCH v2 1/2] dt-bindings: leds: pca955x: Add IBM implementation compatible string

2020-08-03 Thread Eddie James
IBM created an implementation of the PCA9552 on a PIC16F microcontroller. Document the new compatible string for this device. Signed-off-by: Eddie James --- Documentation/devicetree/bindings/leds/leds-pca955x.txt | 1 + 1 file changed, 1 insertion(+) diff --git

Re: [PATCH] kprobes: fix NULL pointer dereference at kprobe_ftrace_handler

2020-08-03 Thread Masami Hiramatsu
On Mon, 3 Aug 2020 13:46:25 +0800 Muchun Song wrote: > Ping guys. Any comments or suggestions? > > On Tue, Jul 28, 2020 at 2:45 PM Muchun Song wrote: > > > > We found a case of kernel panic on our server. The stack trace is as > > follows(omit some irrelevant information): > > > > BUG:

[PATCH v2 2/2] leds: pca955x: Add an IBM software implementation of the PCA9552 chip

2020-08-03 Thread Eddie James
IBM created an implementation of the PCA9552 on a PIC16F microcontroller. The I2C device addresses are different from the hardware PCA9552, so add a new compatible string and associated platform data to be able to probe this device. Signed-off-by: Eddie James Reviewed-by: Vishwanatha Subbanna

[PATCH v2 0/2] leds: pca955x: Add IBM software implemenation of the PCA9552 chip

2020-08-03 Thread Eddie James
IBM created an implementation of the PCA9552 on a PIC16F microcontroller. The I2C device addresses are different from the hardware PCA9552, so add a new compatible string and associated platform data to be able to probe this device, and document the new string. Changes since v1: - Switch the

[PATCH 1/2] fs: Add fd_install file operation

2020-08-03 Thread Kalesh Singh
Provides a per process hook for the acquisition of file descriptors, despite the method used to obtain the descriptor. Signed-off-by: Kalesh Singh --- Documentation/filesystems/vfs.rst | 5 + fs/file.c | 3 +++ include/linux/fs.h| 1 + 3 files

[PATCH 2/2] dmabuf/tracing: Add dma-buf trace events

2020-08-03 Thread Kalesh Singh
Being able to analyze the per process usage of shared dma buffers prodives useful insights in situations where the system is experiencing high memory pressure. This would allow us to see exactly which processes are holding references to the shared buffer. Signed-off-by: Kalesh Singh ---

[PATCH 0/2] Per process tracking of dma buffers

2020-08-03 Thread Kalesh Singh
Since debugfs doesn't have stable abi. This patch series enables per process accounting of dma buffers using trace events. Kalesh Singh (2): fs: Add fd_install file operation dmabuf/tracing: Add dma-buf trace events Documentation/filesystems/vfs.rst | 5 ++ drivers/dma-buf/dma-buf.c

Re: [PATCH 4/5] PCI: aardvark: Implement driver 'remove' function and allow to build it as module

2020-08-03 Thread Pali Rohár
On Wednesday 29 July 2020 12:48:09 Rob Herring wrote: > On Wed, Jul 15, 2020 at 04:25:56PM +0200, Marek Behún wrote: > > From: Pali Rohár > > > > Providing driver's 'remove' function allows kernel to bind and unbind > > devices > > from aardvark driver. It also allows to build aardvark driver

Re: [PATCH] habanalabs: Fix memory corruption in debugfs

2020-08-03 Thread Oded Gabbay
On Mon, Aug 3, 2020 at 5:36 PM Dan Carpenter wrote: > > This has to be a long instead of a u32 because we write a long value. > On 64 bit systems, this will cause memory corruption. > > Fixes: c216477363a3 ("habanalabs: add debugfs support") > Signed-off-by: Dan Carpenter > --- >

Re: [PATCH v4 0/7] Support inhibiting input devices

2020-08-03 Thread Andrzej Pietrasiewicz
Hi Dmitry, W dniu 12.06.2020 o 10:17, Hans de Goede pisze: Hi, On 6/8/20 1:22 PM, Andrzej Pietrasiewicz wrote: This is a quick respin of v3, with just two small changes, please see the changelog below. Userspace might want to implement a policy to temporarily disregard input from certain

Re: [PATCH] ALSA: usb-audio: Add support for Lenovo ThinkStation P620

2020-08-03 Thread Takashi Iwai
On Mon, 03 Aug 2020 16:26:08 +0200, Kai-Heng Feng wrote: > > Lenovo ThinkStation P620 is like other TRX40 boards, is equipped with > two USB audio cards. > > USB device (17aa:104d) provides functionality for Internal Speaker and > Front Headset. It's UAC v2, so it supports insertion control

KASAN: slab-out-of-bounds Read in usb_destroy_configuration

2020-08-03 Thread syzbot
Hello, syzbot found the following issue on: HEAD commit:e3ee0e74 usb: common: usb-conn-gpio: Register charger git tree: https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing console output: https://syzkaller.appspot.com/x/log.txt?x=175a3e0c90 kernel config:

Re: [PATCH] soc: ti: k3-socinfo: Add entry for J7200

2020-08-03 Thread Lokesh Vutla
On 03/08/20 4:23 pm, Peter Ujfalusi wrote: > Update K3 chipinfo driver to support new TI J7200 SoC. > It's JTAG PARTNO is 0xBB6D. > > Signed-off-by: Peter Ujfalusi Reviewed-by: Lokesh Vutla Thanks and regards, Lokesh > --- > drivers/soc/ti/k3-socinfo.c | 1 + > 1 file changed, 1

Re: [PATCH v2 3/7] arch_topology: disable frequency invariance for CONFIG_BL_SWITCHER

2020-08-03 Thread Ionela Voinescu
Hi guys, On Friday 31 Jul 2020 at 16:48:38 (+0100), Sudeep Holla wrote: > On Thu, Jul 30, 2020 at 12:29:52PM +0200, Dietmar Eggemann wrote: > > [...] > > > > > Are there still any users of CONFIG_BL_SWITCHER? I guess it's only > > limited to A15/A7 systems w/ vexpress-spc-cpufreq.c ... so

[PATCH] habanalabs: Fix memory corruption in debugfs

2020-08-03 Thread Dan Carpenter
This has to be a long instead of a u32 because we write a long value. On 64 bit systems, this will cause memory corruption. Fixes: c216477363a3 ("habanalabs: add debugfs support") Signed-off-by: Dan Carpenter --- drivers/misc/habanalabs/common/debugfs.c | 8 1 file changed, 4

[PATCH v3] sched: Provide USF for the portable equipment.

2020-08-03 Thread Dongdong Yang
From: Dongdong Yang The power consumption and UI response are more cared for by the portable equipment users. USF(User Sensitive Feedback factor) auxiliary cpufreq governor is providing more utils adjustment settings to the high level by scenario identification. >From the view of portable

Teo En Ming's Guide on Basic Configuration of Cisco ASA 5505 Firewall

2020-08-03 Thread Turritopsis Dohrnii Teo En Ming
Subject: Teo En Ming's Guide on Basic Configuration of Cisco ASA 5505 Firewall Author: Mr. Turritopsis Dohrnii Teo En Ming (Targeted Individual) Country: Singapore Date Published: 3rd August 2020 Monday Singapore Time Type of Publication: PDF manual Cisco ASA firewall appliances use open

[PATCH] memory: jz4780_nemc: Fix an error pointer vs NULL check in probe()

2020-08-03 Thread Dan Carpenter
The devm_ioremap() function returns NULL on error, it doesn't return error pointers. This bug could lead to an Oops during probe. Fixes: f046e4a3f0b9 ("memory: jz4780_nemc: Only request IO memory the driver will use") Signed-off-by: Dan Carpenter --- drivers/memory/jz4780-nemc.c | 4 ++-- 1

[RFC][PATCH] objtool,x86_64,paravirt: Add pv_ops[] support

2020-08-03 Thread peterz
Thomas wanted paramuck vs noinstr, here goes. Very rough, very nasty, mostly works. It requires call sites are the normal indirect call, and not mangled retpoison (slow_down_io() had those), it also requires pv_ops[] assignments are single instructions and not laundered through some pointless

[PATCH v3] Provide USF for the portable equipment.

2020-08-03 Thread Dongdong Yang
From: Dongdong Yang This patch provides USF(User Sensitive Feedback factor) auxiliary cpufreq governor to support high level layer sysfs inodes setting for utils adjustment purpose from the identified scenario on portable equipment. Because the power consumption and UI response are more cared

Re: [PATCH] tools/bpf/bpftool: Fix wrong return value in do_dump()

2020-08-03 Thread Daniel Borkmann
On 8/2/20 1:15 PM, Tianjia Zhang wrote: In case of btf_id does not exist, a negative error code -ENOENT should be returned. Fixes: c93cc69004df3 ("bpftool: add ability to dump BTF types") Cc: Andrii Nakryiko Signed-off-by: Tianjia Zhang Applied, thanks!

[PATCH v2 4/4] media: i2c: ov5640: Fallback to parallel mode

2020-08-03 Thread Lad Prabhakar
Fallback to parallel mode if bus_type doesn't match the supported interfaces by the driver. Signed-off-by: Lad Prabhakar --- drivers/media/i2c/ov5640.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/drivers/media/i2c/ov5640.c b/drivers/media/i2c/ov5640.c index

[PATCH v2 3/4] media: i2c: ov5640: Add support for BT656 mode

2020-08-03 Thread Lad Prabhakar
Enable support for BT656 mode. Signed-off-by: Lad Prabhakar Reviewed-by: Biju Das --- drivers/media/i2c/ov5640.c | 40 +++--- 1 file changed, 29 insertions(+), 11 deletions(-) diff --git a/drivers/media/i2c/ov5640.c b/drivers/media/i2c/ov5640.c index

[PATCH v2 1/4] dt-bindings: media: i2c: ov5640: Document bus-type property

2020-08-03 Thread Lad Prabhakar
Document the possible bus-type's supported by the OV5640 sensor driver. Also add the bus-type in example node. Signed-off-by: Lad Prabhakar --- Documentation/devicetree/bindings/media/i2c/ov5640.txt | 9 - 1 file changed, 8 insertions(+), 1 deletion(-) diff --git

[PATCH v2 0/4] media: i2c: ov5640 feature enhancement and fixes

2020-08-03 Thread Lad Prabhakar
Hi All, This patch series fixes DVP support and enables BT656 mode in the driver. @Jacopo Mondi - patch 1/4 will collide with your patch series [1], feel free to merge it as part of your v2. [1] https://www.spinics.net/lists/linux-renesas-soc/msg51236.html Cheers, Prabhakar Changes for v2: *

Re: [PATCH 2/3] pinctrl: actions: Add Actions S500 pinctrl driver

2020-08-03 Thread Cristian Ciocaltea
On Sun, Aug 02, 2020 at 08:48:13PM +0530, Manivannan Sadhasivam wrote: > Hi, > > Sorry for the delay. This has fallen through the cracks... Hi Mani, No problem, thanks for finding the time to review this. > On Fri, Jun 26, 2020 at 08:11:48PM +0300, Cristian Ciocaltea wrote: > > On Fri, Jun 26,

[PATCH v2 2/4] media: i2c: ov5640: Enable data pins on poweron for DVP mode

2020-08-03 Thread Lad Prabhakar
During testing this sensor on iW-RainboW-G21D-Qseven platform in 8-bit DVP mode with rcar-vin bridge noticed the capture worked fine for the first run (with yavta), but for subsequent runs the bridge driver waited for the frame to be captured. Debugging further noticed the data lines were

Re: [PATCH 13/17] watch_queue: Implement mount topology and attribute change notifications [ver #5]

2020-08-03 Thread Ian Kent
On Mon, 2020-08-03 at 13:31 +0100, David Howells wrote: > Ian Kent wrote: > > > > I'm changing it so that the fields are 64-bit, but initialised > > > with the > > > existing mount ID in the notifications set. The fsinfo set > > > changes that > > > to a unique ID. I'm tempted to make the

[PATCH] habanalabs: expose sync manager resources allocation in INFO IOCTL

2020-08-03 Thread Oded Gabbay
From: Ofir Bitton Although the driver defines the first user-available sync manager object and monitor in habanalabs.h, we would like to also expose this information via the INFO IOCTL so the runtime can get this information dynamically. This is because in future ASICs we won't need to define it

[PATCH] arm64: dts: allwinner: replace numerical constant with CCU_CLKX

2020-08-03 Thread Alexander Kochetkov
From: Alexander Kochetkov Signed-off-by: Alexander Kochetkov --- arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi b/arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi index

<    3   4   5   6   7   8   9   10   11   12   >