RE: [PATCH 2/3] rwsem: Implement down_read_interruptible

2020-12-08 Thread David Laight
From: Waiman Long > Sent: 08 December 2020 15:34 > > On 12/8/20 4:12 AM, David Laight wrote: > > From: Waiman Long > >> Sent: 07 December 2020 19:02 > > ... > >>> How much more difficult would it be to also add a timeout option? > >>> I looked at adding one to the mutex code - and fell into a big

Re: [BUG] iwlwifi: card unusable after firmware crash

2020-12-08 Thread Coelho, Luciano
On Tue, 2020-12-08 at 11:27 +, Rui Salvaterra wrote: > Hi, everyone, > > I'm running Linux 5.10-rc7 with this firmware/hardware: > > [1.431878] iwlwifi :02:00.0: loaded firmware version > 29.198743027.0 7265D-29.ucode op_mode iwlmvm > [1.431899] iwlwifi :02:00.0: Detected Inte

Re: [PATCH v2 1/9] KVM: x86: Add AMD SEV specific Hypercall3

2020-12-08 Thread Brijesh Singh
On 12/7/20 9:09 PM, Steve Rutherford wrote: > On Mon, Dec 7, 2020 at 12:42 PM Sean Christopherson wrote: >> On Sun, Dec 06, 2020, Paolo Bonzini wrote: >>> On 03/12/20 01:34, Sean Christopherson wrote: On Tue, Dec 01, 2020, Ashish Kalra wrote: > From: Brijesh Singh > > KVM hyper

Re: [PATCH v2 1/3] KVM: x86: implement KVM_{GET|SET}_TSC_STATE

2020-12-08 Thread Maxim Levitsky
On Tue, 2020-12-08 at 17:02 +0100, Thomas Gleixner wrote: > On Tue, Dec 08 2020 at 16:50, Maxim Levitsky wrote: > > On Mon, 2020-12-07 at 20:29 -0300, Marcelo Tosatti wrote: > > > > +This ioctl allows to reconstruct the guest's IA32_TSC and TSC_ADJUST > > > > value > > > > +from the state obtained

RE: [EXTERNAL] [PATCH 1/1] scsi: Fix possible buffer overflows in storvsc_queuecommand

2020-12-08 Thread KY Srinivasan
> -Original Message- > From: Xiaohui Zhang > Sent: Tuesday, December 8, 2020 5:19 AM > To: Xiaohui Zhang ; KY Srinivasan > ; Haiyang Zhang ; Stephen > Hemminger ; Wei Liu ; > James E.J. Bottomley ; Martin K. Petersen > ; linux-hyp...@vger.kernel.org; linux- > s...@vger.kernel.org; linux

Re: [PATCH 2/4] sched/fair: Move avg_scan_cost calculations under SIS_PROP

2020-12-08 Thread Mel Gorman
On Tue, Dec 08, 2020 at 05:03:21PM +0100, Vincent Guittot wrote: > On Tue, 8 Dec 2020 at 16:35, Mel Gorman wrote: > > > > As noted by Vincent Guittot, avg_scan_costs are calculated for SIS_PROP > > even if SIS_PROP is disabled. Move the time calculations under a SIS_PROP > > check and while we are

Re: [PATCH v1 0/4] cpufreq: Allow drivers to receive more information from the governor

2020-12-08 Thread Giovanni Gherdovich
On Mon, 2020-12-07 at 17:25 +0100, Rafael J. Wysocki wrote: > Hi, > > This is based on the RFC posted a few days ago: > > https://lore.kernel.org/linux-pm/1817571.2o5Kk4Ohv2@kreacher/ > > The majority of the original cover letter still applies, so let me quote it > here: > [...] Hello Rafael,

Re: [PATCH 1/3] x86/resctrl: Move setting task's active CPU in a mask into helpers

2020-12-08 Thread Reinette Chatre
Hi Borislav, On 12/8/2020 1:49 AM, Borislav Petkov wrote: On Mon, Dec 07, 2020 at 01:24:51PM -0800, Reinette Chatre wrote: How about: "Move the setting of the CPU on which a task is running in a CPU mask into a couple of helpers. There is no functional change. This is a preparatory change for

Re: [PATCH v2 0/5] locking/rwsem: Rework reader optimistic spinning

2020-12-08 Thread Waiman Long
On 12/8/20 9:57 AM, Peter Zijlstra wrote: On Fri, Nov 20, 2020 at 11:14:11PM -0500, Waiman Long wrote: Waiman Long (5): locking/rwsem: Pass the current atomic count to rwsem_down_read_slowpath() locking/rwsem: Prevent potential lock starvation locking/rwsem: Enable reader optimisti

Re: [PATCH 1/6] seq_file: add seq_read_iter

2020-12-08 Thread Christoph Hellwig
On Fri, Nov 27, 2020 at 05:29:02PM +0100, Christoph Hellwig wrote: > On Mon, Nov 16, 2020 at 03:29:42AM +, Al Viro wrote: > > > Still good. > > > > > > Tested-by: Nathan Chancellor > > > > Pushed into #fixes > > Shouldn't this go to Linus before v5.10 is released? ping?

Re: [PATCH v3 3/3] venus: venc: Add support for frame-specific min/max qp controls

2020-12-08 Thread dikshita
On 2020-12-02 19:06, Hans Verkuil wrote: On 18/11/2020 07:54, Dikshita Agarwal wrote: Add support for frame type specific min and max qp controls for encoder. Signed-off-by: Dikshita Agarwal --- drivers/media/platform/qcom/venus/core.h | 18 + drivers/media/platform/qcom/venus/v

Re: [PATCH V2 2/2] mm/highmem: Lift memcpy_[to|from]_page to core

2020-12-08 Thread Ira Weiny
On Tue, Dec 08, 2020 at 12:23:16PM +, Matthew Wilcox wrote: > On Mon, Dec 07, 2020 at 02:57:03PM -0800, ira.we...@intel.com wrote: > > Placing these functions in 'highmem.h' is suboptimal especially with the > > changes being proposed in the functionality of kmap. From a caller > > perspective

Re: [PATCH bpf-next v4 10/11] bpf: Add tests for new BPF atomic operations

2020-12-08 Thread Yonghong Song
On 12/8/20 4:41 AM, Brendan Jackman wrote: On Mon, Dec 07, 2020 at 07:18:57PM -0800, Yonghong Song wrote: On 12/7/20 8:07 AM, Brendan Jackman wrote: The prog_test that's added depends on Clang/LLVM features added by Yonghong in commit 286daafd6512 (was https://reviews.llvm.org/D72184 ).

Re: [PATCH v2 1/3] KVM: x86: implement KVM_{GET|SET}_TSC_STATE

2020-12-08 Thread Thomas Gleixner
On Tue, Dec 08 2020 at 13:13, Maxim Levitsky wrote: > On Mon, 2020-12-07 at 11:29 -0600, Oliver Upton wrote: >> >> How would a VMM maintain the phase relationship between guest TSCs >> using these ioctls? > > By using the nanosecond timestamp. > > While I did made it optional in the V2 it was d

Re: [PATCH V2 2/2] mm/highmem: Lift memcpy_[to|from]_page to core

2020-12-08 Thread Matthew Wilcox
On Tue, Dec 08, 2020 at 08:38:14AM -0800, Ira Weiny wrote: > On Tue, Dec 08, 2020 at 12:23:16PM +, Matthew Wilcox wrote: > > On Mon, Dec 07, 2020 at 02:57:03PM -0800, ira.we...@intel.com wrote: > > > Placing these functions in 'highmem.h' is suboptimal especially with the > > > changes being pr

Re: memory leak in generic_parse_monolithic [+PATCH]

2020-12-08 Thread Randy Dunlap
On 12/8/20 12:36 AM, David Howells wrote: > Randy Dunlap wrote: > >> Otherwise please look at the patch below. > > The patch won't help, since it's not going through sys_fsconfig() - worse, it > introduces two new errors. > >> fc->source = param->string; >> -param->stri

Re: [PATCH] net: 8021q: vlan: reduce noise in driver initialization

2020-12-08 Thread kernel test robot
Hi "Enrico, I love your patch! Yet something to improve: [auto build test ERROR on linux/master] [also build test ERROR on net-next/master net/master linus/master v5.10-rc7 next-20201208] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patc

[PATCH v5 0/4] powercap/dtpm: Add the DTPM framework

2020-12-08 Thread Daniel Lezcano
The density of components greatly increased the last decade bringing a numerous number of heating sources which are monitored by more than 20 sensors on recent SoC. The skin temperature, which is the case temperature of the device, must stay below approximately 45°C in order to comply with the lega

[PATCH v5 1/4] units: Add Watt units

2020-12-08 Thread Daniel Lezcano
As there are the temperature units, let's add the Watt macros definition. Cc: Thara Gopinath Cc: Lina Iyer Cc: Ram Chandrasekar Cc: Zhang Rui Signed-off-by: Daniel Lezcano Reviewed-by: Lukasz Luba --- include/linux/units.h | 4 1 file changed, 4 insertions(+) diff --git a/include/linu

[PATCH v5 2/4] Documentation/powercap/dtpm: Add documentation for dtpm

2020-12-08 Thread Daniel Lezcano
The dynamic thermal and power management is a technique to dynamically adjust the power consumption of different devices in order to ensure a global thermal constraint. An userspace daemon is usually monitoring the temperature and the power to take immediate action on the device. The DTPM framewo

[PATCH v5 3/4] powercap/drivers/dtpm: Add API for dynamic thermal power management

2020-12-08 Thread Daniel Lezcano
On the embedded world, the complexity of the SoC leads to an increasing number of hotspots which need to be monitored and mitigated as a whole in order to prevent the temperature to go above the normative and legally stated 'skin temperature'. Another aspect is to sustain the performance for a giv

[PATCH v5 4/4] powercap/drivers/dtpm: Add CPU energy model based support

2020-12-08 Thread Daniel Lezcano
With the powercap dtpm controller, we are able to plug devices with power limitation features in the tree. The following patch introduces the CPU power limitation based on the energy model and the performance states. The power limitation is done at the performance domain level. If some CPUs are u

Re: [PATCH v8 00/16] Add support for Clang LTO

2020-12-08 Thread Sami Tolvanen
On Tue, Dec 8, 2020 at 4:15 AM Arnd Bergmann wrote: > > On Tue, Dec 1, 2020 at 10:37 PM 'Sami Tolvanen' via Clang Built Linux > wrote: > > > > This patch series adds support for building the kernel with Clang's > > Link Time Optimization (LTO). In addition to performance, the primary > > motivati

Re: [PATCH] KVM/SVM: add support for SEV attestation command

2020-12-08 Thread Tom Lendacky
On 12/4/20 3:28 PM, Brijesh Singh wrote: > The SEV FW version >= 0.23 added a new command that can be used to query > the attestation report containing the SHA-256 digest of the guest memory > encrypted through the KVM_SEV_LAUNCH_UPDATE_{DATA, VMSA} commands and > sign the report with the Platform

Re: [PATCH v4] media: v4l2-ctrl: add control for long term reference.

2020-12-08 Thread dikshita
Hi Hans, On 2020-12-02 19:18, Hans Verkuil wrote: On 01/12/2020 09:13, Dikshita Agarwal wrote: Long Term Reference (LTR) frames are the frames that are encoded sometime in the past and stored in the DPB buffer list to be used as reference to encode future frames. This change adds controls to en

Re: [PATCH v4] media: v4l2-ctrl: add control for long term reference.

2020-12-08 Thread Hans Verkuil
On 08/12/2020 17:44, diksh...@codeaurora.org wrote: > Hi Hans, > > On 2020-12-02 19:18, Hans Verkuil wrote: >> On 01/12/2020 09:13, Dikshita Agarwal wrote: >>> Long Term Reference (LTR) frames are the frames that are encoded >>> sometime in the past and stored in the DPB buffer list to be used >>>

Re: [PATCH v24 5/5] remoteproc: Add initial zynqmp R5 remoteproc driver

2020-12-08 Thread Mathieu Poirier
On Mon, Nov 30, 2020 at 07:57:17AM -0800, Ben Levinsky wrote: > R5 is included in Xilinx Zynq UltraScale MPSoC so by adding this > remotproc driver, we can boot the R5 sub-system in two different > configurations - > * Split > * Lockstep > > The Xilinx R5 Remoteproc Driver boots the R5

[PATCH 2/2] pinctrl: ingenic: Only support SoCs enabled in config

2020-12-08 Thread Paul Cercueil
Tested on a JZ4740 system (ARCH=mips make qi_lb60_defconfig), this saves about 14 KiB, by allowing the compiler to garbage-collect all the functions and tables that correspond to SoCs that were disabled in the config. Signed-off-by: Paul Cercueil --- drivers/pinctrl/pinctrl-ingenic.c | 61 ++

[PATCH 1/2] if_enabled.h: Add IF_ENABLED_OR_ELSE() and IF_ENABLED() macros

2020-12-08 Thread Paul Cercueil
Introduce a new header , that brings two new macros: IF_ENABLED_OR_ELSE() and IF_ENABLED(). IF_ENABLED_OR_ELSE(CONFIG_FOO, a, b) evaluates to (a) if CONFIG_FOO is set to 'y' or 'm', (b) otherwise. It is used internally to define the IF_ENABLED() macro. The (a) and (b) arguments must be of the same

Re: [PATCH v8 00/16] Add support for Clang LTO

2020-12-08 Thread Sami Tolvanen
On Tue, Dec 8, 2020 at 5:55 AM Arnd Bergmann wrote: > > On Tue, Dec 8, 2020 at 1:15 PM Arnd Bergmann wrote: > > On Tue, Dec 1, 2020 at 10:37 PM 'Sami Tolvanen' via Clang Built Linux > > wrote: > > > > - many builds complain about thousands of duplicate symbols in the kernel, > > e.g. > > ld.

Re: [PATCH v3 0/4] media: meson: Add support for the Amlogic GE2D Accelerator Unit

2020-12-08 Thread Nicolas Dufresne
Le mardi 17 novembre 2020 à 09:44 +0100, Neil Armstrong a écrit : > The GE2D is a 2D accelerator with various features like configurable blitter > with alpha blending, frame rotation, scaling, format conversion and colorspace > conversion. > > The driver implements a Memory2Memory VB2 V4L2 streami

Re: [PATCH v2 0/5] drop unused BACKLIGHT_GENERIC option

2020-12-08 Thread Alexandre Belloni
Hi, On 08/12/2020 17:34:46+0100, Arnd Bergmann wrote: > From: Arnd Bergmann > > On Tue, 1 Dec 2020 22:29:17 +, Andrey Zhizhikin wrote: > > Since the removal of generic_bl driver from the source tree in commit > > 7ecdea4a0226 ("backlight: generic_bl: Remove this driver as it is > > unused")

Re: [PATCH 0/4] Chunk Heap Support on DMA-HEAP

2020-12-08 Thread Nicolas Dufresne
Le mardi 17 novembre 2020 à 10:19 -0800, Minchan Kim a écrit : > This patchset introduces a new dma heap, chunk heap that makes it > easy to perform the bulk allocation of high order pages. > It has been created to help optimize the 4K/8K HDR video playback > with secure DRM HW to protect contents

Re: [PATCH v4 1/4] pwm: pca9685: Switch to atomic API

2020-12-08 Thread Thierry Reding
On Tue, Dec 08, 2020 at 09:44:42AM -0500, Sven Van Asbroeck wrote: > Uwe, Thierry, > > On Tue, Dec 8, 2020 at 4:10 AM Uwe Kleine-König > wrote: > > > > If this is already in the old code, this probably warrants a separate > > fix, and yes, I consider this a severe bug. (Consider one channel > > d

Re: [PATCH v8 00/16] Add support for Clang LTO

2020-12-08 Thread Arnd Bergmann
On Tue, Dec 8, 2020 at 5:53 PM 'Sami Tolvanen' via Clang Built Linux wrote: > > > A small update here: I see this behavior with every single module > > build, including 'tinyconfig' with one module enabled, and 'defconfig'. > > The .o file here is a thin archive of the bitcode files for the > modu

Re: [PATCH v2 1/4] lib: vsprintf: Fix handling of number field widths in vsscanf

2020-12-08 Thread pmladek
On Mon 2020-11-30 14:57:57, Richard Fitzgerald wrote: > The existing code attempted to handle numbers by doing a strto[u]l(), > ignoring the field width, and then bitshifting the field out of the > converted value. If the string contains a run of valid digits longer > than will fit in a long or lon

Re: [PATCH v13 0/4] userspace MHI client interface driver

2020-12-08 Thread Manivannan Sadhasivam
On Sun, Dec 06, 2020 at 10:33:02AM +0200, Leon Romanovsky wrote: > On Tue, Dec 01, 2020 at 09:59:53PM -0700, Jeffrey Hugo wrote: > > On 12/1/2020 7:55 PM, Jakub Kicinski wrote: > > > On Tue, 1 Dec 2020 13:48:36 -0700 Jeffrey Hugo wrote: > > > > On 12/1/2020 1:03 PM, Jakub Kicinski wrote: > > > > >

Re: [PATCH v2 0/5] drop unused BACKLIGHT_GENERIC option

2020-12-08 Thread Thomas Bogendoerfer
On Tue, Dec 08, 2020 at 05:34:46PM +0100, Arnd Bergmann wrote: > From: Arnd Bergmann > > On Tue, 1 Dec 2020 22:29:17 +, Andrey Zhizhikin wrote: > > Since the removal of generic_bl driver from the source tree in commit > > 7ecdea4a0226 ("backlight: generic_bl: Remove this driver as it is > > u

Re: [PATCH bpf-next v4 10/11] bpf: Add tests for new BPF atomic operations

2020-12-08 Thread Brendan Jackman
On Tue, Dec 08, 2020 at 08:38:04AM -0800, Yonghong Song wrote: > > > On 12/8/20 4:41 AM, Brendan Jackman wrote: > > On Mon, Dec 07, 2020 at 07:18:57PM -0800, Yonghong Song wrote: > > > > > > > > > On 12/7/20 8:07 AM, Brendan Jackman wrote: > > > > The prog_test that's added depends on Clang/LLV

Re: [PATCH v1 2/4] cpufreq: schedutil: Adjust utilization instead of frequency

2020-12-08 Thread Rafael J. Wysocki
On Tue, Dec 8, 2020 at 9:52 AM Viresh Kumar wrote: > > On 07-12-20, 17:29, Rafael J. Wysocki wrote: > > From: Rafael J. Wysocki > > > > When avoiding reduction of the frequency after the target CPU has > > been busy since the previous frequency update, adjust the utilization > > instead of adjust

Re: [PATCH v2 0/5] locking/rwsem: Rework reader optimistic spinning

2020-12-08 Thread Peter Zijlstra
On Tue, Dec 08, 2020 at 11:33:38AM -0500, Waiman Long wrote: > On 12/8/20 9:57 AM, Peter Zijlstra wrote: > > On Fri, Nov 20, 2020 at 11:14:11PM -0500, Waiman Long wrote: > > > Waiman Long (5): > > >locking/rwsem: Pass the current atomic count to > > > rwsem_down_read_slowpath() > > >lo

Re: [PATCH] perf test: Skip test 68 for Powerpc

2020-12-08 Thread Ravi Bangoria
On 12/8/20 8:13 PM, Thomas Richter wrote: On 12/7/20 5:35 PM, Arnaldo Carvalho de Melo wrote: Em Tue, Nov 24, 2020 at 03:04:53PM +0530, Ravi Bangoria escreveu: On 11/19/20 7:20 PM, Kajol Jain wrote: Commit ed21d6d7c48e6e ("perf tests: Add test for PE binary format support") adds a WINDOWS

Re: [RFC PATCH] ASoC: pcm_dmaengine: Add support for BE DAIs

2020-12-08 Thread Mark Brown
On Wed, Dec 02, 2020 at 10:58:38AM +0200, Codrin Ciubotariu wrote: > This patch is more or less incomplete for the described scenario. This > is because DMAengine's pcm->config is ignored for the BE DAI link, so > runtime->hw is not updated. Also, since pcm_construct/destruct are not > called, the

Re: [PATCH bpf-next v3 12/14] bpf: Pull tools/build/feature biz into selftests Makefile

2020-12-08 Thread Brendan Jackman
On Mon, Dec 07, 2020 at 06:19:12PM -0800, Andrii Nakryiko wrote: > On Mon, Dec 7, 2020 at 3:00 AM Brendan Jackman wrote: > > > > On Fri, Dec 04, 2020 at 11:00:24AM -0800, Andrii Nakryiko wrote: > > > On Fri, Dec 4, 2020 at 1:41 AM Brendan Jackman > > > wrote: > > > > > > > > On Thu, Dec 03, 2020

Re: [PATCH v6 1/5] clk: sifive: Extract prci core to common base

2020-12-08 Thread kernel test robot
Hi Zong, Thank you for the patch! Yet something to improve: [auto build test ERROR on clk/clk-next] [also build test ERROR on robh/for-next linux/master linus/master v5.10-rc7 next-20201208] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we

Re: [PATCH v8 3/4] doc: trusted-encrypted: updates with TEE as a new trust source

2020-12-08 Thread Mimi Zohar
Hi Sumit, Jarkko, On Tue, 2020-12-08 at 10:55 -0500, Mimi Zohar wrote: > Re-posting Elaine Palmer's comments, inline below, trimmed and properly > formatted. Continued ... Thank you for the detailed descriptions and examples of trust sources for Trusted Keys. A group of us in IBM (Stefan Berger

Re: [PATCH v2 1/3] KVM: x86: implement KVM_{GET|SET}_TSC_STATE

2020-12-08 Thread Maxim Levitsky
On Tue, 2020-12-08 at 17:40 +0100, Thomas Gleixner wrote: > On Tue, Dec 08 2020 at 13:13, Maxim Levitsky wrote: > > On Mon, 2020-12-07 at 11:29 -0600, Oliver Upton wrote: > > > How would a VMM maintain the phase relationship between guest TSCs > > > using these ioctls? > > > > By using the nanosec

Re: [PATCH v2] ASoC: amd: change clk_get() to devm_clk_get() and add missed checks

2020-12-08 Thread Mark Brown
On Fri, 4 Dec 2020 14:36:10 +0800, Chuhong Yuan wrote: > cz_da7219_init() does not check the return values of clk_get(), > while da7219_clk_enable() calls clk_set_rate() to dereference > the pointers. > Add checks to fix the problems. > Also, change clk_get() to devm_clk_get() to avoid data leak af

Re: [PATCH v2 1/2] ASoC: dt-bindings: imx-hdmi: Add binding doc for hdmi machine driver

2020-12-08 Thread Mark Brown
On Sun, 6 Dec 2020 18:41:58 +0800, Shengjiu Wang wrote: > Imx-hdmi is a new added machine driver for supporting hdmi devices > on i.MX platforms. There is HDMI IP or external HDMI modules connect > with SAI or AUD2HTX interface. Applied to https://git.kernel.org/pub/scm/linux/kernel/git/brooni

Re: [PATCH] regulator: da9121: Potential Oops in da9121_assign_chip_model()

2020-12-08 Thread Mark Brown
On Mon, 7 Dec 2020 20:55:44 +0300, Dan Carpenter wrote: > There is a missing "return ret;" on this error path so we call > "da9121_check_device_type(i2c, chip);" which will end up dereferencing > "chip->regmap" and lead to an Oops. Applied to https://git.kernel.org/pub/scm/linux/kernel/git/bro

Re: [PATCH 0/2] regulator: da9121: bug fixes

2020-12-08 Thread Mark Brown
On Mon, 7 Dec 2020 17:15:14 +, Adam Ward wrote: > This patch fixes a couple of bugs in the DA9121 driver. > One in an uninialised string I forgot to remove when changing to of_parse_cb() > The other is an index for an optional DT property which overflows > > > Adam Ward (2): > regulator: da

Re: (subset) [PATCH v2 0/9] arch: riscv: add board and SoC DT file support

2020-12-08 Thread Mark Brown
On Tue, 8 Dec 2020 10:25:32 +0530, Yash Shah wrote: > Start board support by adding initial support for the SiFive FU740 SoC > and the first development board that uses it, the SiFive HiFive > Unmatched A00. > > Boot-tested on Linux 5.10-rc4 on a HiFive Unmatched A00 board using the > U-boot and O

Re: [PATCH v1 4/4] cpufreq: intel_pstate: Implement the ->adjust_perf() callback

2020-12-08 Thread Rafael J. Wysocki
On Tue, Dec 8, 2020 at 1:44 PM Peter Zijlstra wrote: > > On Mon, Dec 07, 2020 at 05:38:58PM +0100, Rafael J. Wysocki wrote: > > > +static void intel_cpufreq_adjust_perf(unsigned int cpunum, > > + unsigned long min_perf, > > + unsi

Re: [PATCH v2 1/3] KVM: x86: implement KVM_{GET|SET}_TSC_STATE

2020-12-08 Thread Maxim Levitsky
On Tue, 2020-12-08 at 09:58 -0600, Oliver Upton wrote: > +cc Sean's new handle > > On Tue, Dec 8, 2020 at 9:57 AM Oliver Upton wrote: > > On Tue, Dec 8, 2020 at 5:13 AM Maxim Levitsky wrote: > > > On Mon, 2020-12-07 at 11:29 -0600, Oliver Upton wrote: > > > > On Thu, Dec 3, 2020 at 11:12 AM Maxi

Re: [PATCH 2/9] misc: Add Xilinx AI engine device driver

2020-12-08 Thread Nicolas Dufresne
Le mercredi 18 novembre 2020 à 00:06 -0800, Wendy Liang a écrit : > Create AI engine device/partition hierarchical structure. > > Each AI engine device can have multiple logical partitions(groups of AI > engine tiles). Each partition is column based and has its own node ID > in the system. AI engi

Re: [PATCH] mm/page_alloc: simplify kmem cgroup charge/uncharge code

2020-12-08 Thread Shakeel Butt
+Michal Hocko Message starts at https://lkml.kernel.org/r/20201207142204.GA18516@rlk On Mon, Dec 7, 2020 at 10:08 PM Hui Su wrote: > > On Mon, Dec 07, 2020 at 09:28:46AM -0800, Shakeel Butt wrote: > > On Mon, Dec 7, 2020 at 6:22 AM Hui Su wrote: > > > > The reason to keep __memcg_kmem_[un]charg

Re: [PATCH 6/9] mm: vmscan: use per memcg nr_deferred of shrinker

2020-12-08 Thread Yang Shi
On Thu, Dec 3, 2020 at 3:40 AM Kirill Tkhai wrote: > > On 02.12.2020 21:27, Yang Shi wrote: > > Use per memcg's nr_deferred for memcg aware shrinkers. The shrinker's > > nr_deferred > > will be used in the following cases: > > 1. Non memcg aware shrinkers > > 2. !CONFIG_MEMCG > > 3.

Re: [PATCH v1 0/4] cpufreq: Allow drivers to receive more information from the governor

2020-12-08 Thread Rafael J. Wysocki
On Tue, Dec 8, 2020 at 5:31 PM Giovanni Gherdovich wrote: > > On Mon, 2020-12-07 at 17:25 +0100, Rafael J. Wysocki wrote: > > Hi, > > > > This is based on the RFC posted a few days ago: > > > > https://lore.kernel.org/linux-pm/1817571.2o5Kk4Ohv2@kreacher/ > > > > The majority of the original cover

[RFC PATCH v2] checkpatch: rewrite Kconfig parsing

2020-12-08 Thread Nicolai Fischer
Checkpatch currently only warns if the help text is too short. To determine this the diff gets parsed for keywords starting a new entry, but several kinds of false positives can occur with the current implementation, especially when the config is not well formatted. This patch makes the parsing mo

Re: [PATCH 2/2] PCI/ASPM: Use capability to override ASPM via sysfs

2020-12-08 Thread Heiner Kallweit
Am 08.12.2020 um 09:25 schrieb Kai-Heng Feng: > If we are to use sysfs to change ASPM settings, we may want to override > the default ASPM policy. > > So use ASPM capability, instead of default policy, to be able to use all > possible ASPM states. > > Signed-off-by: Kai-Heng Feng > --- > driver

Re: [PATCH 1/2] PCI/ASPM: Store disabled ASPM states

2020-12-08 Thread Heiner Kallweit
Am 08.12.2020 um 09:25 schrieb Kai-Heng Feng: > If we use sysfs to disable L1 ASPM, then enable one L1 ASPM substate > again, all other substates will also be enabled too: > > link# grep . * > clkpm:1 > l0s_aspm:1 > l1_1_aspm:1 > l1_1_pcipm:1 > l1_2_aspm:1 > l1_2_pcipm:1 > l1_aspm:1 > > link# ech

[PATCH] clocksource/drivers/timer-microchip-pit64b: add clocksource suspend/resume

2020-12-08 Thread Claudiu Beznea
Add suspend/resume support for clocksource timer. Signed-off-by: Claudiu Beznea --- drivers/clocksource/timer-microchip-pit64b.c | 86 +++- 1 file changed, 71 insertions(+), 15 deletions(-) diff --git a/drivers/clocksource/timer-microchip-pit64b.c b/drivers/clocksource/

Re: One potential issue with concurrent execution of RCU callbacks...

2020-12-08 Thread Paul E. McKenney
On Tue, Dec 08, 2020 at 04:54:57PM +0100, Frederic Weisbecker wrote: > On Tue, Dec 08, 2020 at 06:58:10AM -0800, Paul E. McKenney wrote: > > Hello, Frederic, > > > > Boqun just asked if RCU callbacks ran in BH-disabled context to avoid > > concurrent execution of the same callback. Of course, thi

Re: [PATCH] docs: trace: fix event state structure name

2020-12-08 Thread Jonathan Corbet
On Mon, 7 Dec 2020 18:19:14 -0500 Steven Rostedt wrote: > On Fri, 06 Nov 2020 14:47:46 -0600 > Tom Zanussi wrote: > > > Hi Artem, > > > > On Wed, 2020-11-04 at 14:21 +0200, Artem Bityutskiy wrote: > > > From: Artem Bityutskiy > > > > > > The documentation refers to a non-existent 'struct s

Fwd: [PROBLEM] kmemleak: 2 new suspected memory leaks

2020-12-08 Thread Jeffrin Jose T
--- Begin Message --- hello, kmemleaks found. see related information below... x--x> cat /sys/kernel/debug/kmemleak unreferenced object 0x8881105d2348 (size 8): comm "kunit_try_catch", pid 139, jiffies 4294898877 (age 6055.628s) hex

Re: [PATCH v5 0/2] MTE support for KVM guest

2020-12-08 Thread Catalin Marinas
On Mon, Dec 07, 2020 at 07:03:13PM +, Marc Zyngier wrote: > On Mon, 07 Dec 2020 16:34:05 +, > Catalin Marinas wrote: > > On Mon, Dec 07, 2020 at 04:05:55PM +, Marc Zyngier wrote: > > > What I'd really like to see is a description of how shared memory > > > is, in general, supposed to w

Re: [PATCH] docs: clean up sysctl/kernel: titles, version

2020-12-08 Thread Jonathan Corbet
On Tue, 8 Dec 2020 08:49:22 +0100 Stephen Kitt wrote: > This cleans up a few titles with extra colons, and removes the > reference to kernel 2.2. The docs don't yet cover *all* of 5.10 or > 5.11, but I think they're close enough. Most entries are documented, > and have been checked against curre

Re: [PATCH v3 0/4] media: meson: Add support for the Amlogic GE2D Accelerator Unit

2020-12-08 Thread Neil Armstrong
Hi, On 08/12/2020 17:54, Nicolas Dufresne wrote: > Le mardi 17 novembre 2020 à 09:44 +0100, Neil Armstrong a écrit : >> The GE2D is a 2D accelerator with various features like configurable blitter >> with alpha blending, frame rotation, scaling, format conversion and >> colorspace >> conversion.

Re: [PATCH] kernel-doc: Fix example in Nested structs/unions

2020-12-08 Thread Jonathan Corbet
On Mon, 7 Dec 2020 13:00:27 -0800 Ben Widawsky wrote: > Add missing ';' as well as fixes the indent for the first struct. > > Signed-off-by: Ben Widawsky > --- > Documentation/doc-guide/kernel-doc.rst | 6 +++--- > 1 file changed, 3 insertions(+), 3 deletions(-) Applied, thanks. jon

Re: [PATCH V3 00/10] PKS: Add Protection Keys Supervisor (PKS) support V3

2020-12-08 Thread Ira Weiny
On Tue, Dec 08, 2020 at 04:55:54PM +0100, Thomas Gleixner wrote: > Ira, > > On Mon, Dec 07 2020 at 14:14, Ira Weiny wrote: > > Is there any chance of this landing before the kmap stuff gets sorted out? > > I have marked this as needs an update because the change log of 5/10 > sucks. https://lore.

Re: [PATCH v3 1/7] e1000e: fix S0ix flow to allow S0i3.2 subset entry

2020-12-08 Thread Mario Limonciello
On 12/4/20 2:09 PM, Mario Limonciello wrote: From: Vitaly Lifshits Changed a configuration in the flows to align with architecture requirements to achieve S0i3.2 substate. Also fixed a typo in the previous commit 632fbd5eb5b0 ("e1000e: fix S0ix flows for cable connected case"). Signed-off-b

Re: [PATCH 1/3] powerpc/smp: Parse ibm,thread-groups with multiple properties

2020-12-08 Thread Gautham R Shenoy
Hello Srikar, Thanks for taking a look at the patch. On Mon, Dec 07, 2020 at 05:40:42PM +0530, Srikar Dronamraju wrote: > * Gautham R. Shenoy [2020-12-04 10:18:45]: > > > From: "Gautham R. Shenoy" > > > > > > > static int parse_thread_groups(struct device_node *dn, > > -

Re: [RESEND PATCH V3] PM / EM: Micro optimization in em_cpu_energy

2020-12-08 Thread Rafael J. Wysocki
On Sat, Nov 28, 2020 at 3:21 AM Pavankumar Kondeti wrote: > > When the sum of the utilization of CPUs in a power domain is zero, > return the energy as 0 without doing any computations. > > Acked-by: Quentin Perret > Reviewed-by: Dietmar Eggemann > Signed-off-by: Pavankumar Kondeti > --- > inc

Re: [PATCH 1/6] kvm: arm64: Prevent use of invalid PSCI v0.1 function IDs

2020-12-08 Thread Mark Rutland
On Tue, Dec 08, 2020 at 03:56:39PM +, Marc Zyngier wrote: > On 2020-12-08 14:24, David Brazdil wrote: > > PSCI driver exposes a struct containing the PSCI v0.1 function IDs > > configured in the DT. However, the struct does not convey the > > information whether these were set from DT or contai

Re: [PATCH bpf-next v2] bpf: Only call sock_from_file with CONFIG_NET

2020-12-08 Thread Florent Revest
On Mon, 2020-12-07 at 13:33 -0800, Martin KaFai Lau wrote: > On Mon, Dec 07, 2020 at 09:06:05PM +0100, Florent Revest wrote: > > This avoids > > ld: kernel/trace/bpf_trace.o: in function `bpf_sock_from_file': > > bpf_trace.c:(.text+0xe23): undefined reference to > > `sock_from_file' > > When co

Re: [PATCH v7] zram: break the strict dependency from lzo

2020-12-08 Thread Minchan Kim
On Mon, Dec 07, 2020 at 12:12:45PM +, Rui Salvaterra wrote: > From the beginning, the zram block device always enabled CRYPTO_LZO, since > lzo-rle is hardcoded as the fallback compression algorithm. As a consequence, > on > systems where another compression algorithm is chosen (e.g. CRYPTO_ZST

Re: [PATCH v7] zram: break the strict dependency from lzo

2020-12-08 Thread Minchan Kim
On Tue, Dec 08, 2020 at 09:26:55AM -0800, Minchan Kim wrote: > On Mon, Dec 07, 2020 at 12:12:45PM +, Rui Salvaterra wrote: > > From the beginning, the zram block device always enabled CRYPTO_LZO, since > > lzo-rle is hardcoded as the fallback compression algorithm. As a > > consequence, on > >

Re: [PATCH] (fixed after review) Documentation: fix typos found in admin-guide subdirectory

2020-12-08 Thread Jonathan Corbet
On Fri, 4 Dec 2020 10:02:35 +0300 Andrew Klychkov wrote: > Fixed twelve typos in cppc_sysfs.rst, binderfs.rst, paride.rst, > zram.rst, bug-hunting.rst, introduction.rst, usage.rst, dm-crypt.rst > > Reviewed-by: Jonathan Corbet > Reviewed-by: Randy Dunlap > Signed-off-by: Andrew Klychkov > ---

[PATCH 1/1] hisi_sas: Fix possible buffer overflows in prep_ssp_v3_hw

2020-12-08 Thread Xiaohui Zhang
From: Zhang Xiaohui prep_ssp_v3_hw() calls memcpy() without checking the destination size may trigger a buffer overflower, which a local user could use to cause denial of service or the execution of arbitrary code. Fix it by putting the length check before calling memcpy(). Signed-off-by: Zhang

[RFC PATCH 0/2] EDAC/ghes: Add EDAC device for recording the CPU error count

2020-12-08 Thread Shiju Jose
For the firmware-first error handling on ARM64 hardware platforms, CPU cache corrected error count is not recorded. Create an CPU EDAC device and device blocks for the CPU caches for this purpose. The EDAC device blocks are created based on the cache information from the cpu_cacheinfo. User-space

[RFC PATCH 1/2] EDAC/ghes: Add EDAC device for the CPU caches

2020-12-08 Thread Shiju Jose
The corrected error count on the CPU caches required reporting to the user-space for the predictive failure analysis. For this purpose, add an EDAC device and device blocks for the CPU caches found. The cache's corrected error count would be stored in the /sys/devices/system/edac/cpu/cpu*/cache*/ce

[RFC PATCH 2/2] ACPI / APEI: Add reporting ARM64 CPU cache corrected error count

2020-12-08 Thread Shiju Jose
Add reporting ARM64 CPU cache corrected error count to the ghes_edac. The error count would be updated in the EDAC CPU cache sysfs interface. Note: This patch would be recreated after the patch "ACPI / APEI: do memory failure on the physical address reported by ARM processor error section" would

Re: [PATCH v2 0/5] locking/rwsem: Rework reader optimistic spinning

2020-12-08 Thread Waiman Long
On 12/8/20 12:02 PM, Peter Zijlstra wrote: On Tue, Dec 08, 2020 at 11:33:38AM -0500, Waiman Long wrote: On 12/8/20 9:57 AM, Peter Zijlstra wrote: On Fri, Nov 20, 2020 at 11:14:11PM -0500, Waiman Long wrote: Waiman Long (5): locking/rwsem: Pass the current atomic count to rwsem_down_r

Re: [PATCH] Documentation: fix multiple typos found in the admin-guide subdirectory

2020-12-08 Thread Jonathan Corbet
On Fri, 4 Dec 2020 10:28:48 +0300 Andrew Klychkov wrote: > Fix thirty five typos in dm-integrity.rst, dm-raid.rst, dm-zoned.rst, > verity.rst, writecache.rst, tsx_async_abort.rst, md.rst, bttv.rst, > dvb_references.rst, frontend-cardlist.rst, gspca-cardlist.rst, ipu3.rst, > remote-controller.rst,

Re: [PATCH v2 1/3] KVM: x86: implement KVM_{GET|SET}_TSC_STATE

2020-12-08 Thread Andy Lutomirski
On Tue, Dec 8, 2020 at 8:26 AM Maxim Levitsky wrote: > > On Tue, 2020-12-08 at 17:02 +0100, Thomas Gleixner wrote: > > On Tue, Dec 08 2020 at 16:50, Maxim Levitsky wrote: > > > On Mon, 2020-12-07 at 20:29 -0300, Marcelo Tosatti wrote: > > > > > +This ioctl allows to reconstruct the guest's IA32_TS

Re: [PATCH v3 3/5] tracing: Update synth command errors

2020-12-08 Thread Tom Zanussi
Hi Steve, On Mon, 2020-12-07 at 20:13 -0500, Steven Rostedt wrote: > On Mon, 26 Oct 2020 10:06:11 -0500 > Tom Zanussi wrote: > > > Since array types are handled differently, errors referencing them > > also need to be handled differently. Add and use a new > > INVALID_ARRAY_SPEC error. Also ad

[PATCH bpf-next v3] bpf: Only provide bpf_sock_from_file with CONFIG_NET

2020-12-08 Thread Florent Revest
This moves the bpf_sock_from_file definition into net/core/filter.c which only gets compiled with CONFIG_NET and also moves the helper proto usage next to other tracing helpers that are conditional on CONFIG_NET. This avoids ld: kernel/trace/bpf_trace.o: in function `bpf_sock_from_file': bpf_t

Re: [PATCH v3 2/5] tracing: Rework synthetic event command parsing

2020-12-08 Thread Tom Zanussi
Hi Steve, On Mon, 2020-12-07 at 19:16 -0500, Steven Rostedt wrote: > On Mon, 26 Oct 2020 10:06:10 -0500 > Tom Zanussi wrote: > > > Now that command parsing has been delegated to the create functions > > and we're no longer constrained by argv_split(), we can modify the > > synthetic event comman

problem booting 5.10

2020-12-08 Thread Julia Lawall
Hello, We have not succeeded to boot 5.10 on our Intel(R) Xeon(R) CPU E7-8870 v4 @ 2.10GHz server. Previous versions (eg 4.19 - 5.9) boot fine. We have tried various rcs. The backtrace for rc7 is shown below. thanks, julia [ 253.207171][ T979] INFO: task kworker/u321:2:1278 blocked for mor

Re: [RFC PATCH] blk-mq: Clean up references when freeing rqs

2020-12-08 Thread John Garry
On 08/12/2020 11:36, John Garry wrote: OK, but another thing to say is that I need to find a somewhat reliable reproducer for the potential problem you mention. So far this patch solves the issue I see (in that kasan stops warning). Let me analyze this a bit further. Hi Ming, I am just l

Re: [PATCH v2 1/3] KVM: x86: implement KVM_{GET|SET}_TSC_STATE

2020-12-08 Thread Marcelo Tosatti
On Tue, Dec 08, 2020 at 04:50:53PM +0200, Maxim Levitsky wrote: > On Mon, 2020-12-07 at 20:29 -0300, Marcelo Tosatti wrote: > > On Thu, Dec 03, 2020 at 07:11:16PM +0200, Maxim Levitsky wrote: > > > These two new ioctls allow to more precisly capture and > > > restore guest's TSC state. > > > > > >

Re: [PATCH v6] char: tpm: add i2c driver for cr50

2020-12-08 Thread Jarkko Sakkinen
On Mon, Dec 07, 2020 at 04:20:16PM +0200, Adrian Ratiu wrote: > From: "dlau...@chromium.org" > > Add TPM 2.0 compatible I2C interface for chips with cr50 firmware. > > The firmware running on the currently supported H1 MCU requires a > special driver to handle its specific protocol, and this mak

Re: [PATCH 1/2] if_enabled.h: Add IF_ENABLED_OR_ELSE() and IF_ENABLED() macros

2020-12-08 Thread Randy Dunlap
On 12/8/20 8:48 AM, Paul Cercueil wrote: > > Signed-off-by: Paul Cercueil Hi Paul, Why not just add these 2 new macros to ? Maybe you don't want to add the other 2 headers there also? > --- > include/linux/if_enabled.h | 22 ++ > 1 file changed, 22 insertions(+) > creat

[PATCH v5 3/4] scmi-cpufreq: get opp_shared_cpus from opp-v2 for EM

2020-12-08 Thread Nicola Mazzucato
By design, SCMI performance domains define the granularity of performance controls, they do not describe any underlying hardware dependencies (although they may match in many cases). It is therefore possible to have some platforms where hardware may have the ability to control CPU performance at d

[PATCH v5 0/4] CPUFreq: Add support for opp-sharing cpus

2020-12-08 Thread Nicola Mazzucato
f opp-shared within OPP node * Register EM only for the first CPU within cpumask in driver * Add check for nr_opp in driver before registering EM * Add comments on both dev_pm_opp_get_opp_count in driver * Remove redundant ret=0 in driver This v5 is rebased on top of: next-20201208 + Lukasz L

[PATCH v5 2/4] opp/of: Allow empty opp-table with opp-shared

2020-12-08 Thread Nicola Mazzucato
The opp binding now allows to have an empty opp table and shared-opp to still describe that devices share v/f lines. When initialising an empty opp table, allow such case by: - treating such conditions with warnings in place of errors - don't fail on empty table Signed-off-by: Nicola Mazzucato -

[PATCH v5 4/4] cpufreq: blacklist Arm Vexpress platforms in cpufreq-dt-platdev

2020-12-08 Thread Nicola Mazzucato
From: Sudeep Holla Add "arm,vexpress" to cpufreq-dt-platdev blacklist since the actual scaling is handled by the firmware cpufreq drivers(scpi, scmi and vexpress-spc). Signed-off-by: Sudeep Holla --- drivers/cpufreq/cpufreq-dt-platdev.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/dri

[PATCH v5 1/4] dt-bindings: opp: Allow empty OPP tables

2020-12-08 Thread Nicola Mazzucato
Currently the optional property opp-shared is used within an opp table to tell that a set of devices share their clock/voltage lines (and the OPP points). It is therefore possible to use an empty OPP table to convey only that information, useful in situations where the opp points are provided via o

Re: [PATCH v3 3/4] tpm_tis: Disable interrupts if interrupt storm detected

2020-12-08 Thread Jarkko Sakkinen
On Mon, Dec 07, 2020 at 03:28:03PM -0400, Jason Gunthorpe wrote: > On Sun, Dec 06, 2020 at 08:26:16PM +0100, Thomas Gleixner wrote: > > Just as a side note. I was looking at tpm_tis_probe_irq_single() and > > that function is leaking the interrupt request if any of the checks > > afterwards fails,

Re: [PATCH 2/3] powerpc/smp: Add support detecting thread-groups sharing L2 cache

2020-12-08 Thread Gautham R Shenoy
Hello Srikar, On Mon, Dec 07, 2020 at 06:10:39PM +0530, Srikar Dronamraju wrote: > * Gautham R. Shenoy [2020-12-04 10:18:46]: > > > From: "Gautham R. Shenoy" > > > > On POWER systems, groups of threads within a core sharing the L2-cache > > can be indicated by the "ibm,thread-groups" property

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