Re: [PATCH 5/9] btrfs: zstd: Switch to the zstd-1.4.6 API

2020-09-16 Thread Chris Mason
On 16 Sep 2020, at 10:46, Christoph Hellwig wrote: On Wed, Sep 16, 2020 at 10:43:04AM -0400, Chris Mason wrote: Otherwise we just end up with drift and kernel-specific bugs that are harder to debug. To the extent those APIs make us contort the kernel code, I???m sure Nick is interested in

[PATCH RESEND v2 0/4] Venus - change clk enable, disable order and change bw values

2020-09-16 Thread Mansur Alisha Shaik
The intention of this patchset is to correct clock enable and disable order and vote for venus-ebi and cpucfg paths with average bandwidth instad of peak bandwidth since with current implementation we are seeing clock related warning during XO-SD and suspend device while video playback ---

[PATCH v2 1/4] venus: core: change clk enable and disable order in resume and suspend

2020-09-16 Thread Mansur Alisha Shaik
Currently video driver is voting after clk enable and un voting before clk disable. Basically we should vote before clk enable and un vote after clk disable. Corrected this by changing the order of clk enable and clk disable. Fixes: 7482a983d ("media: venus: redesign clocks and pm domains

[PATCH v2 2/4] venus: core: vote for video-mem path

2020-09-16 Thread Mansur Alisha Shaik
Currently we are voting for venus0-ebi path during buffer processing with an average bandwidth of all the instances and unvoting during session release. While video streaming when we try to do XO-SD using the command "echo mem > /sys/power/state command" , device is not entering to suspend state

Re: [PATCH 01/10] clk: at91: Drop unused at91sam9g45_pcr_layout

2020-09-16 Thread Krzysztof Kozlowski
On Tue, 15 Sep 2020 at 02:01, Stephen Boyd wrote: > > Quoting Krzysztof Kozlowski (2020-09-11 08:34:41) > > On Wed, Sep 02, 2020 at 06:35:58PM +0200, Alexandre Belloni wrote: > > > On 02/09/2020 17:03:39+0200, Krzysztof Kozlowski wrote: > > > > The at91sam9g45_pcr_layout is not used so drop it to

Re: [PATCH v12 04/10] PCI: brcmstb: Add suspend and resume pm_ops

2020-09-16 Thread Rob Herring
On Fri, Sep 11, 2020 at 01:52:24PM -0400, Jim Quinlan wrote: > From: Jim Quinlan > > Broadcom Set-top (BrcmSTB) boards typically support S2, S3, and S5 suspend > and resume. Now the PCIe driver may do so as well. > > Signed-off-by: Jim Quinlan > Acked-by: Florian Fainelli > --- >

Re: [PATCH v3 08/16] irqchip/gic: Configure SGIs as standard interrupts

2020-09-16 Thread Jon Hunter
On 16/09/2020 16:55, Marc Zyngier wrote: > On 2020-09-16 16:46, Jon Hunter wrote: >> On 16/09/2020 16:10, Marc Zyngier wrote: >>> Hi Jon, >>> >>> +Linus, who is facing a similar issue. >>> >>> On 2020-09-16 15:16, Jon Hunter wrote: Hi Marc, On 14/09/2020 14:06, Marek Szyprowski

[PATCH v2 3/4] venus: core: vote with average bandwidth and peak bandwidth as zero

2020-09-16 Thread Mansur Alisha Shaik
As per bandwidth table we are voting with average bandwidth for "video-mem" and "cpu-cfg" paths as peak bandwidth is zero in bandwidth table. Signed-off-by: Mansur Alisha Shaik --- drivers/media/platform/qcom/venus/core.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git

Re: [PATCH v2] platform/x86: Add Driver to set up lid GPEs on MS Surface device

2020-09-16 Thread Andy Shevchenko
On Wed, Sep 16, 2020 at 2:58 AM Barnabás Pőcze wrote: ... > > + dev_err(dev, "failed to set GPE wake mask: %d\n", status); > > I'm not sure if it's technically safe to print acpi_status with the %d format > specifier since 'acpi_status' is defined as 'u32' at the moment. >

Re: [PATCH -next] fpga: dfl: Make m10_n3000_info static

2020-09-16 Thread Moritz Fischer
Hi Yue, On Wed, Sep 16, 2020 at 10:25:36PM +0800, YueHaibing wrote: > Fix sparse warning: > > drivers/fpga/dfl-n3000-nios.c:392:23: warning: > symbol 'm10_n3000_info' was not declared. Should it be static? > > Signed-off-by: YueHaibing > --- > drivers/fpga/dfl-n3000-nios.c | 2 +- > 1 file

Re: [RFT 20/25] ARM: dts: s5pv210: move fixed regulators under root node in Aquila

2020-09-16 Thread Krzysztof Kozlowski
On Mon, Sep 07, 2020 at 06:11:36PM +0200, Krzysztof Kozlowski wrote: > The fixed regulators are kept under dedicated "regulators" node but this > causes multiple dtschema warnings: > > regulators: $nodename:0: 'regulators' does not match >

[RFC v2 1/8] drm/i915/dp: Program source OUI on eDP panels

2020-09-16 Thread Lyude Paul
Since we're about to start adding support for Intel's magic HDR backlight interface over DPCD, we need to ensure we're properly programming this field so that Intel specific sink services are exposed. Otherwise, 0x300-0x3ff will just read zeroes. We also take care not to reprogram the source OUI

Re: [PATCH] ima: Fix NULL pointer dereference in ima_file_hash

2020-09-16 Thread Florent Revest
Reviewed-by: Florent Revest On Wed, 2020-09-16 at 12:05 +, KP Singh wrote: > From: KP Singh > > ima_file_hash can be called when there is no iint->ima_hash available > even though the inode exists in the integrity cache. > > An example where this can happen (suggested by Jann Horn): > >

[PATCH v2 4/4] venus: put dummy vote on video-mem path after last session release

2020-09-16 Thread Mansur Alisha Shaik
As per current implementation, we are unvoting "videom-mem" path for last video session during vdec_session_release(). While video playback when we try to suspend device, we see video clock warnings since votes are already removed during vdec_session_release(). corrected this by putting dummy

Re: [PATCH 0/3] gpiolib: generalize GPIO line names property

2020-09-16 Thread Bartosz Golaszewski
On Tue, Sep 15, 2020 at 2:02 PM Anders Roxell wrote: > > On Tue, 8 Sep 2020 at 18:40, Bartosz Golaszewski wrote: > > > > From: Bartosz Golaszewski > > > > I initially sent this as part of the gpio-mockup overhaul but since > > these patches are indepentent and the work on gpio-mockup may become

Re: [PATCH v2] lockdep: Allow tuning tracing capacity constants.

2020-09-16 Thread peterz
On Wed, Sep 16, 2020 at 01:28:19PM +0200, Dmitry Vyukov wrote: > On Fri, Sep 4, 2020 at 6:05 PM Tetsuo Handa > wrote: > > > > Hello. Can we apply this patch? > > > > This patch addresses top crashers for syzbot, and applying this patch > > will help utilizing syzbot's resource for finding other

Re: [PATCH -next 0/8] drm/amd/amdgpu: fix comparison pointer to bool warning

2020-09-16 Thread Daniel Vetter
On Wed, Sep 16, 2020 at 04:02:18PM +0200, Christian König wrote: > Am 16.09.20 um 15:36 schrieb Alex Deucher: > > On Wed, Sep 16, 2020 at 3:51 AM Daniel Vetter wrote: > > > On Wed, Sep 16, 2020 at 09:38:34AM +0200, Christian König wrote: > > > > Am 15.09.20 um 21:35 schrieb Ville Syrjälä: > > > >

[RFC v2 5/8] drm/i915/dp: Add register definitions for Intel HDR backlight interface

2020-09-16 Thread Lyude Paul
No functional changes yet, this just adds definitions for all of the known DPCD registers used by Intel's HDR backlight interface. Since we'll only ever use this in i915, we just define them in intel_dp_aux_backlight.c Reviewed-by: Rodrigo Vivi Signed-off-by: Lyude Paul Cc: thay...@noraisin.net

[RFC v2 7/8] drm/i915/dp: Allow forcing specific interfaces through enable_dpcd_backlight

2020-09-16 Thread Lyude Paul
Since we now support controlling panel backlights through DPCD using both the standard VESA interface, and Intel's proprietary HDR backlight interface, we should allow the user to be able to explicitly choose between one or the other in the event that we're wrong about panels reliably reporting

[tip: x86/irq] x86/msi: Consolidate MSI allocation

2020-09-16 Thread tip-bot2 for Thomas Gleixner
The following commit has been merged into the x86/irq branch of tip: Commit-ID: 3b9c1d377d67072d1d8a2373b4969103cca00dab Gitweb: https://git.kernel.org/tip/3b9c1d377d67072d1d8a2373b4969103cca00dab Author:Thomas Gleixner AuthorDate:Wed, 26 Aug 2020 13:16:46 +02:00

Re: [PATCH v2] hwmon: intel-m10-bmc-hwmon: add hwmon support for Intel MAX 10 BMC

2020-09-16 Thread Guenter Roeck
On Wed, Sep 16, 2020 at 02:48:58PM +0800, Xu Yilun wrote: > On Tue, Sep 15, 2020 at 10:22:32PM -0700, Guenter Roeck wrote: > > On 9/15/20 8:14 PM, Xu Yilun wrote: > > > This patch adds hwmon functionality for Intel MAX 10 BMC chip. This BMC > > > chip connects to a set of sensor chips to monitor

Re: [PATCH -next] Input: stmfts - Fix a & vs && typo

2020-09-16 Thread Dmitry Torokhov
On Wed, Sep 16, 2020 at 10:19:41PM +0800, YueHaibing wrote: > In stmfts_sysfs_hover_enable_write(), we should check > value and sdata->hover_enabled is all true. > > Fixes: 78bcac7b2ae1 ("Input: add support for the STMicroelectronics FingerTip > touchscreen") > Signed-off-by: YueHaibing

[tip: x86/irq] x86/irq: Move apic_post_init() invocation to one place

2020-09-16 Thread tip-bot2 for Thomas Gleixner
The following commit has been merged into the x86/irq branch of tip: Commit-ID: bb733e4336988e40072c759fb27057b5fe82c7d4 Gitweb: https://git.kernel.org/tip/bb733e4336988e40072c759fb27057b5fe82c7d4 Author:Thomas Gleixner AuthorDate:Wed, 26 Aug 2020 13:16:48 +02:00

[tip: x86/irq] x86/xen: Consolidate XEN-MSI init

2020-09-16 Thread tip-bot2 for Thomas Gleixner
The following commit has been merged into the x86/irq branch of tip: Commit-ID: 70b59379efc3c818f48b8037e574654fb29f907c Gitweb: https://git.kernel.org/tip/70b59379efc3c818f48b8037e574654fb29f907c Author:Thomas Gleixner AuthorDate:Wed, 26 Aug 2020 13:16:56 +02:00

[PATCH v3 05/15] arm64: dts: renesas: align GPIO hog names with dtschema

2020-09-16 Thread Krzysztof Kozlowski
The convention for node names is to use hyphens, not underscores. dtschema for pca95xx expects GPIO hogs to end with 'hog' prefix. Signed-off-by: Krzysztof Kozlowski --- .../boot/dts/renesas/r8a77951-salvator-xs.dts | 2 +- .../boot/dts/renesas/r8a77965-salvator-xs.dts | 2 +-

[PATCH v3 12/15] ARM: dts: aspeed: align GPIO hog names with dtschema

2020-09-16 Thread Krzysztof Kozlowski
dtschema for pca95xx expects GPIO hogs to end with 'hog' prefix. Signed-off-by: Krzysztof Kozlowski --- arch/arm/boot/dts/aspeed-bmc-ibm-rainier.dts | 2 +- arch/arm/boot/dts/aspeed-bmc-opp-mihawk.dts | 16 2 files changed, 9 insertions(+), 9 deletions(-) diff --git

[PATCH v3 13/15] ARM: dts: dove: fix PCA95xx GPIO expander properties on A510

2020-09-16 Thread Krzysztof Kozlowski
The PCA95xx GPIO expander requires GPIO controller properties to operate properly. Signed-off-by: Krzysztof Kozlowski Reviewed-by: Linus Walleij --- arch/arm/boot/dts/dove-sbc-a510.dts | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/boot/dts/dove-sbc-a510.dts

Re: [PATCH v2 1/2] vfs: block chmod of symlinks

2020-09-16 Thread Rich Felker
On Wed, Sep 16, 2020 at 08:18:15AM +0200, Greg KH wrote: > On Tue, Sep 15, 2020 at 08:22:54PM -0400, Rich Felker wrote: > > It was discovered while implementing userspace emulation of fchmodat > > AT_SYMLINK_NOFOLLOW (using O_PATH and procfs magic symlinks; otherwise > > it's not possible to

[PATCH v2 0/3] Document r8a77990 DRIF support

2020-09-16 Thread Fabrizio Castro
Dear All, this series documents DRIF support for the r8a77990 (a.k.a. R-Car E3). Thanks, Fab Fabrizio Castro (3): MAINTAINERS: Add Fabrizio Castro to Renesas DRIF media: dt-bindings: media: renesas,drif: Convert to json-schema media: dt-bindings: media: renesas,drif: Add r8a77990 support

Re: [RFT 21/25] ARM: dts: s5pv210: move fixed regulators under root node in Goni

2020-09-16 Thread Krzysztof Kozlowski
On Mon, Sep 07, 2020 at 06:11:37PM +0200, Krzysztof Kozlowski wrote: > The fixed regulators are kept under dedicated "regulators" node but this > causes multiple dtschema warnings: > > regulators: $nodename:0: 'regulators' does not match >

[PATCH 1/6] Bluetooth: Add helper to set adv data

2020-09-16 Thread Daniel Winkler
We wish to handle advertising data separately from advertising parameters in our new MGMT requests. This change adds a helper that allows the advertising data and scan response to be updated for an existing advertising instance. Reviewed-by: Sonny Sasaka Signed-off-by: Daniel Winkler ---

[PATCH 0/6] Bluetooth: Add new MGMT interface for advertising add

2020-09-16 Thread Daniel Winkler
Hi Maintainers, This patch series defines the new two-call MGMT interface for adding new advertising instances. Similarly to the hci advertising commands, a mgmt call to set parameters is expected to be first, followed by a mgmt call to set advertising data/scan response. The members of the

Re: REGRESSION: 37f4a24c2469: blk-mq: centralise related handling into blk_mq_get_driver_tag

2020-09-16 Thread Theodore Y. Ts'o
On Wed, Sep 16, 2020 at 07:09:41AM +0800, Ming Lei wrote: > > The problem is it's a bit tricky to revert 568f27006577, since there > > is a merge conflict in blk_kick_flush(). I attempted to do the bisect > > manually here, but it's clearly not right since the kernel is not > > booting after the

Re: [PATCH v2] nfs: remove incorrect fallthrough label

2020-09-16 Thread Joe Perches
On Wed, 2020-09-16 at 13:02 -0700, Nick Desaulniers wrote: > There is no case after the default from which to fallthrough to. Clang > will error in this case (unhelpfully without context, see link below) > and GCC will with -Wswitch-unreachable. > > The previous commit should have just replaced

[PATCH 3/6] Bluetooth: Use intervals and tx power from mgmt cmds

2020-09-16 Thread Daniel Winkler
This patch takes the min/max intervals and tx power optionally provided in mgmt interface, stores them in the advertisement struct, and uses them when configuring the hci requests. While tx power is not used if extended advertising is unavailable, software rotation will use the min and max

Re: [PATCH v12 06/10] PCI: brcmstb: Add control of rescal reset

2020-09-16 Thread Rob Herring
On Fri, Sep 11, 2020 at 01:52:26PM -0400, Jim Quinlan wrote: > From: Jim Quinlan > > Some STB chips have a special purpose reset controller named RESCAL (reset > calibration). The PCIe HW can now control RESCAL to start and stop its > operation. On probe(), the RESCAL is deasserted and the

[PATCH 2/6] Bluetooth: Break add adv into two mgmt commands

2020-09-16 Thread Daniel Winkler
This patch adds support for the new advertising add interface, with the first command setting advertising parameters and the second to set advertising data. The set parameters command allows the caller to leave some fields "unset", with a params bitfield defining which params were purposefully

Re: [PATCH] ehci-hcd: Move include to keep CRC stable

2020-09-16 Thread Alan Stern
On Wed, Sep 16, 2020 at 07:32:06PM +0200, Greg KH wrote: > On Wed, Sep 16, 2020 at 07:31:27PM +0200, Greg KH wrote: > > On Wed, Sep 16, 2020 at 06:18:25PM +0100, Quentin Perret wrote: > > > The CRC calculation done by genksyms is triggered when the parser hits > > > EXPORT_SYMBOL*() macros. At

Re: [PATCH 0/2] perf probe: Support debuginfod client

2020-09-16 Thread Frank Ch. Eigler
Hi - > > Nice, even uses the source code fetching part of the webapi! > > So, can I take that as an Acked-by or Reviewed-by? Sure. > I need to support this in pahole... pahole/dwarves use elfutils, so it already has automatic support. https://sourceware.org/elfutils/Debuginfod.html - FChE

[PATCH 5/6] Bluetooth: Query LE tx power on startup

2020-09-16 Thread Daniel Winkler
Queries tx power via HCI_LE_Read_Transmit_Power command when the hci device is initialized, and stores resulting min/max LE power in hdev struct. If command isn't available (< BT5 support), min/max values both default to HCI_TX_POWER_INVALID. This patch is manually verified by ensuring BT5

[PATCH 6/6] Bluetooth: Add MGMT command for controller capabilities

2020-09-16 Thread Daniel Winkler
For advertising, we wish to know the LE tx power capabilities of the controller in userspace, so this patch adds a new MGMT command to query controller capabilities. The data returned is in TLV format, so it can be easily used to convey any data determined to be useful in the future, but for now

[PATCH 4/6] Bluetooth: Emit tx power chosen on ext adv params completion

2020-09-16 Thread Daniel Winkler
Our hci call to set extended advertising parameters returns the actual tx power selected by the controller. This patch signals a new TX_POWER_SELECTED mgmt event to alert the caller of the actual tx power that is being used. This is important because the power selected will not necessarily match

Re: [PATCH v1 01/12] fpga: fpga security manager class driver

2020-09-16 Thread Moritz Fischer
Hi Russ, On Fri, Sep 04, 2020 at 04:52:54PM -0700, Russ Weight wrote: > Create the Intel Security Manager class driver. The security > manager provides interfaces to manage secure updates for the > FPGA and BMC images that are stored in FLASH. The driver can > also be used to update root entry

Re: [PATCH] ehci-hcd: Move include to keep CRC stable

2020-09-16 Thread Greg KH
On Wed, Sep 16, 2020 at 06:18:25PM +0100, Quentin Perret wrote: > The CRC calculation done by genksyms is triggered when the parser hits > EXPORT_SYMBOL*() macros. At this point, genksyms recursively expands the > types of the function parameters, and uses that as the input for the CRC >

Re: [PATCH 1/3] ARM: tegra: Add device-tree for Ouya

2020-09-16 Thread Dmitry Osipenko
16.09.2020 17:57, Peter Geis пишет: > On Wed, Sep 16, 2020 at 10:17 AM Dmitry Osipenko wrote: >> >> 16.09.2020 15:22, Peter Geis пишет: >>> The Ouya was the sole device produced by Ouya Inc in 2013. >>> It was a game console originally running Android 5 on top of Linux 3.1.10. >>> >>> This patch

Re: [RFC PATCH] cma: make number of CMA areas dynamic, remove CONFIG_CMA_AREAS

2020-09-16 Thread Mike Kravetz
On 9/15/20 9:32 PM, Christoph Hellwig wrote: > On Wed, Sep 02, 2020 at 08:02:04PM -0700, Mike Kravetz wrote: >> --- a/arch/arm/mm/dma-mapping.c >> +++ b/arch/arm/mm/dma-mapping.c >> @@ -383,25 +383,34 @@ postcore_initcall(atomic_pool_init); >> struct dma_contig_early_reserve { >> phys_addr_t

Re: [PATCH v2] iio: stm32-dac: Replace indio_dev->mlock with own device lock

2020-09-16 Thread Fabrice Gasnier
On 9/16/20 11:23 AM, Alexandru Ardelean wrote: > From: Sergiu Cuciurean > > As part of the general cleanup of indio_dev->mlock, this change replaces > it with a local lock. The lock protects against potential races when > reading the CR reg and then updating, so that the state of pm_runtime > is

Re: general protection fault in cache_clean

2020-09-16 Thread J. Bruce Fields
On Tue, Sep 15, 2020 at 01:04:20AM -0700, syzbot wrote: > syzbot found the following issue on: > > HEAD commit:581cb3a2 Merge tag 'f2fs-for-5.9-rc5' of git://git.kernel... > git tree: upstream > console output: https://syzkaller.appspot.com/x/log.txt?x=11f5c01190 > kernel config:

Re: [PATCH v6 5/7] KVM: x86: VMX: Prevent MSR passthrough when MSR access is denied

2020-09-16 Thread Aaron Lewis
> > > >> + > >> /* > >>* These 2 parameters are used to config the controls for Pause-Loop > >> Exiting: > >>* ple_gap:upper bound on the amount of time between two successive > >> @@ -622,6 +642,41 @@ static inline bool report_flexpriority(void) > >> return

Re: [PATCH v2] nfs: remove incorrect fallthrough label

2020-09-16 Thread Gustavo A. R. Silva
On Wed, Sep 16, 2020 at 01:02:55PM -0700, Nick Desaulniers wrote: > There is no case after the default from which to fallthrough to. Clang > will error in this case (unhelpfully without context, see link below) > and GCC will with -Wswitch-unreachable. > > The previous commit should have just

[no subject]

2020-09-16 Thread Mr.Hui Ka Yan
Bin Herr Hui Ka Yan. Ich spende Ihnen einen Zuschuss von 10.500.000 USD. Kontaktieren Sie mich (aalihe...@gmail.com) für weitere Details. Danke und Gott segne dich.

Re: [PATCH RFC v1 07/18] x86/hyperv: extract partition ID from Microsoft Hypervisor if necessary

2020-09-16 Thread Wei Liu
On Tue, Sep 15, 2020 at 12:27:16PM +0200, Vitaly Kuznetsov wrote: > Wei Liu writes: [...] > > > > +void __init hv_get_partition_id(void) > > +{ > > + struct hv_get_partition_id *output_page; > > + int status; > > + unsigned long flags; > > + > > + local_irq_save(flags); > > +

[PATCH v2] ath10k: sdio: remove redundant check in for loop

2020-09-16 Thread Alex Dewar
The for loop checks whether cur_section is NULL on every iteration, but we know it can never be NULL as there is another check towards the bottom of the loop body. Refactor to avoid this unnecessary check. Also, increment the variable i inline for clarity Addresses-Coverity: 1496984 ("Null

Re: [PATCH v3 08/16] irqchip/gic: Configure SGIs as standard interrupts

2020-09-16 Thread Mikko Perttunen
Not sure which boards this issue is happening on, but looking at my hobby kernel's git history (from a couple of years ago, memory is a bit hazy), the commit labeled "Add support for TX2" adds code to drop from EL2 to EL1 at boot. Mikko On 9/16/20 10:06 PM, Jon Hunter wrote: On 16/09/2020

Re: [PATCH 2/2] fs: Do not update nr_thps for mappings which support THPs

2020-09-16 Thread Matthew Wilcox
On Wed, Sep 16, 2020 at 06:21:26AM +0100, Christoph Hellwig wrote: > On Wed, Sep 16, 2020 at 04:27:17AM +0100, Matthew Wilcox (Oracle) wrote: > > The nr_thps counter is to support THPs in the page cache when the > > filesystem doesn't understand THPs. Eventually it will be removed, but > > we

Re: [PATCH 5/9] btrfs: zstd: Switch to the zstd-1.4.6 API

2020-09-16 Thread Christoph Hellwig
On Wed, Sep 16, 2020 at 10:43:04AM -0400, Chris Mason wrote: > Otherwise we just end up with drift and kernel-specific bugs that are harder > to debug. To the extent those APIs make us contort the kernel code, I???m > sure Nick is interested in improving things in both places. Seriously, we do

Re: [PATCH 2/2] sched/hotplug: Ensure only per-cpu kthreads run during hotplug

2020-09-16 Thread Sebastian Andrzej Siewior
On 2020-09-16 14:10:20 [+0200], pet...@infradead.org wrote: squeeze that in please: diff --git a/kernel/sched/core.c b/kernel/sched/core.c index a4fe22b8b8418..bed3cd28af578 100644 --- a/kernel/sched/core.c +++ b/kernel/sched/core.c @@ -6866,7 +6866,7 @@ static int __balance_push_cpu_stop(void

Re: canfdtest on flexcan loopback

2020-09-16 Thread Vladimir Oltean
On Wed, Sep 16, 2020 at 01:32:49PM +0200, Marc Kleine-Budde wrote: > Which driver are you using? The mainline driver only uses one TX buffer. Are there multiple flexcan drivers in circulation? Yes, the mainline driver with a single priv->tx_mb. Thanks, -Vladimir

Re: [PATCH v38 03/24] x86/mm: x86/sgx: Signal SIGSEGV with PF_SGX

2020-09-16 Thread Borislav Petkov
On Tue, Sep 15, 2020 at 02:28:21PM +0300, Jarkko Sakkinen wrote: > From: Sean Christopherson > > Include SGX bit to the PF error codes and throw SIGSEGV with PF_SGX when > a #PF with SGX set happens. > > CPU throws a #PF with the SGX set in the event of Enclave Page Cache Map > (EPCM) conflict.

Re: [PATCH 0/3] ASoC: fsl_sai: update the register list

2020-09-16 Thread Fabio Estevam
On Wed, Sep 16, 2020 at 8:47 AM Fabio Estevam wrote: > > Knob kmg Please ignore. It seems my cellphone wanted to write something.

Re: [PATCH] KVM: x86: Add kvm_x86_ops hook to short circuit emulation

2020-09-16 Thread Sean Christopherson
On Wed, Sep 16, 2020 at 09:31:22AM +0800, Wanpeng Li wrote: > On Wed, 16 Sep 2020 at 07:29, Sean Christopherson > wrote: > > > > Replace the existing kvm_x86_ops.need_emulation_on_page_fault() with a > > more generic is_emulatable(), and unconditionally call the new function > > in

Re: [PATCH 16/26] perf tools: Synthesize modules with mmap3

2020-09-16 Thread Jiri Olsa
On Wed, Sep 16, 2020 at 12:10:21PM -0300, Arnaldo Carvalho de Melo wrote: > Em Wed, Sep 16, 2020 at 04:17:00PM +0200, pet...@infradead.org escreveu: > > On Wed, Sep 16, 2020 at 11:07:44AM -0300, Arnaldo Carvalho de Melo wrote: > > > Em Wed, Sep 16, 2020 at 10:20:18AM +0200, Jiri Olsa escreveu: > >

[PATCH] mm/slab.c: micro-optimization spare one branch in main flow

2020-09-16 Thread mateusznosek0
From: Mateusz Nosek By small refactoring two 'unlikely' branches are changed so that if not one of them is true then only one branch occurs in 'likely' path of the function in question. Change verified in assembly generated by gcc 8.3.0. Signed-off-by: Mateusz Nosek --- mm/slab.c | 5 +++-- 1

Re: [PATCH v2 1/2] drm/nouveau: return temperatures in temp_get() via parameter

2020-09-16 Thread Karol Herbst
On Wed, Sep 16, 2020 at 10:01 PM Karol Herbst wrote: > > On Wed, Sep 16, 2020 at 9:47 PM Jeremy Cline wrote: > > > > The temp_get() function currently returns negative error numbers or a > > temperature. However, the thermal sensors can (in theory) measure > > negative temperatures. Some

[PATCH v2] media: vidtv: fix build on 32bit architectures

2020-09-16 Thread Daniel W. S. Almeida
From: Daniel W. S. Almeida Fix the following error for builds on 32bit architectures: ERROR: modpost: "__udivdi3" [drivers/media/test-drivers/vidtv/dvb-vidtv-bridge.ko] undefined! Which is due to 64bit divisions that did not go through the helpers in linux/math64.h As vidtv_mux_check_mux_rate

[tip:master] BUILD SUCCESS 8846f9fc76ba8be35322a825384a655c3ebdb131

2020-09-16 Thread kernel test robot
randconfig-a006-20200916 x86_64 randconfig-a004-20200916 x86_64 randconfig-a003-20200916 x86_64 randconfig-a002-20200916 x86_64 randconfig-a001-20200916 x86_64 randconfig-a005-20200916 i386 randconfig-a004

Re: [linux-next PATCH] rapidio: Fix error handling path

2020-09-16 Thread Ira Weiny
On Wed, Sep 16, 2020 at 09:12:17AM +0530, Souptick Joarder wrote: > There is an error when pin_user_pages_fast() returns -ERRNO and > inside error handling path driver end up calling unpin_user_pages() > with -ERRNO which is not correct. > > This patch will fix the problem. > > Fixes:

Re: [PATCH] net: dsa: mt7530: Add some return-value checks

2020-09-16 Thread Gustavo A. R. Silva
On 9/16/20 14:50, Alex Dewar wrote: [..] > > drivers/net/dsa/mt7530.c | 16 > 1 file changed, 12 insertions(+), 4 deletions(-) > [..] > > /* Enable Mediatek header mode on the cpu port */ > mt7530_write(priv, MT7530_PVC_P(port), > @@ -2275,7 +2279,7 @@

[PATCH v3 00/10] Independent per-CPU data section for nVHE

2020-09-16 Thread David Brazdil
Introduce '.hyp.data..percpu' as part of ongoing effort to make nVHE hyp code self-contained and independent of the rest of the kernel. Main benefits: * independent nVHE per-CPU data section that can be unmapped from host, * more robust linking of nVHE hyp code, * no need for hyp-specific

Re: [PATCH v2 1/2] drm/nouveau: return temperatures in temp_get() via parameter

2020-09-16 Thread Karol Herbst
On Wed, Sep 16, 2020 at 9:47 PM Jeremy Cline wrote: > > The temp_get() function currently returns negative error numbers or a > temperature. However, the thermal sensors can (in theory) measure > negative temperatures. Some implementations of temp_get() correctly > clamp negative temperature

[PATCH v3 02/11] kvm: arm64: Move nVHE hyp namespace macros to hyp_image.h

2020-09-16 Thread David Brazdil
Minor cleanup to move all macros related to prefixing nVHE hyp section and symbol names into one place: hyp_image.h. Signed-off-by: David Brazdil --- arch/arm64/include/asm/hyp_image.h | 12 arch/arm64/include/asm/kvm_asm.h | 8 +--- arch/arm64/kernel/image-vars.h | 2

[PATCH v2] nfs: remove incorrect fallthrough label

2020-09-16 Thread Nick Desaulniers
There is no case after the default from which to fallthrough to. Clang will error in this case (unhelpfully without context, see link below) and GCC will with -Wswitch-unreachable. The previous commit should have just replaced the comment with a break statement. If we consider implicit

[PATCH v3 08/11] kvm: arm64: Create separate instances of kvm_host_data for VHE/nVHE

2020-09-16 Thread David Brazdil
Host CPU context is stored in a global per-cpu variable `kvm_host_data`. In preparation for introducing independent per-CPU region for nVHE hyp, create two separate instances of `kvm_host_data`, one for VHE and one for nVHE. Signed-off-by: David Brazdil --- arch/arm64/include/asm/kvm_host.h | 2

[PATCH v3 01/11] kvm: arm64: Partially link nVHE hyp code, simplify HYPCOPY

2020-09-16 Thread David Brazdil
Relying on objcopy to prefix the ELF section names of the nVHE hyp code is brittle and prevents us from using wildcards to match specific section names. Improve the build rules by partially linking all '.nvhe.o' files and prefixing their ELF section names using a linker script. Continue using

[PATCH v3 11/11] kvm: arm64: Remove unnecessary hyp mappings

2020-09-16 Thread David Brazdil
With all nVHE per-CPU variables being part of the hyp per-CPU region, mapping them individual is not necessary any longer. They are mapped to hyp as part of the overall per-CPU region. Acked-by: Andrew Scull Signed-off-by: David Brazdil --- arch/arm64/include/asm/kvm_mmu.h | 19

Re: [PATCH v6 0/2] PHY: Add new PHY attribute max_link_rate

2020-09-16 Thread Laurent Pinchart
On Wed, Sep 16, 2020 at 10:57:46PM +0530, Sekhar Nori wrote: > On 16/09/20 6:13 PM, Vinod Koul wrote: > > On 16-09-20, 15:18, Laurent Pinchart wrote: > >> Hi Sekhar, > >> > >> On Wed, Sep 16, 2020 at 01:11:17PM +0530, Sekhar Nori wrote: > >>> On 11/09/20 11:48 AM, Swapnil Jakhade wrote: >

[PATCH v3 05/11] kvm: arm64: Remove hyp_adr/ldr_this_cpu

2020-09-16 Thread David Brazdil
The hyp_adr/ldr_this_cpu helpers were introduced for use in hyp code because they always needed to use TPIDR_EL2 for base, while adr/ldr_this_cpu from kernel proper would select between TPIDR_EL2 and _EL1 based on VHE/nVHE. Simplify this now that the hyp mode case can be handled using the

[PATCH v3 04/11] kvm: arm64: Remove __hyp_this_cpu_read

2020-09-16 Thread David Brazdil
this_cpu_ptr is meant for use in kernel proper because it selects between TPIDR_EL1/2 based on nVHE/VHE. __hyp_this_cpu_ptr was used in hyp to always select TPIDR_EL2. Unify all users behind this_cpu_ptr and friends by selecting _EL2 register under __KVM_VHE/NVHE_HYPERVISOR__. Under

[PATCH v3 10/11] kvm: arm64: Set up hyp percpu data for nVHE

2020-09-16 Thread David Brazdil
Add hyp percpu section to linker script and rename the corresponding ELF sections of hyp/nvhe object files. This moves all nVHE-specific percpu variables to the new hyp percpu section. Allocate sufficient amount of memory for all percpu hyp regions at global KVM init time and create corresponding

[PATCH v3 09/11] kvm: arm64: Mark hyp stack pages reserved

2020-09-16 Thread David Brazdil
In preparation for unmapping hyp pages from host stage-2, allocate/free hyp stack using new helpers which automatically mark the pages reserved. Signed-off-by: David Brazdil --- arch/arm64/kvm/arm.c | 49 ++-- 1 file changed, 47 insertions(+), 2

[PATCH 0/1] Add usercopy fixup accuracy tests

2020-09-16 Thread Oliver Swede
This adds a selftest subtarget that can be used to verify the accuracy of the usercopy fixup routines. The patch contains a test module that integrates with the selftest framework and can be specified as a subtarget for the arm64 selftest target. It can be invoked through the same method as the

Re: [PATCH 2/2] arm64/mm: Enable color zero pages

2020-09-16 Thread Robin Murphy
On 2020-09-16 09:28, Will Deacon wrote: On Wed, Sep 16, 2020 at 01:25:23PM +1000, Gavin Shan wrote: This enables color zero pages by allocating contigous page frames for it. The number of pages for this is determined by L1 dCache (or iCache) size, which is probbed from the hardware. * Add

Re: [RFC PATCH v2] sched/fair: select idle cpu from idle cpumask in sched domain

2020-09-16 Thread Valentin Schneider
On 16/09/20 12:00, Mel Gorman wrote: > On Wed, Sep 16, 2020 at 12:31:03PM +0800, Aubrey Li wrote: >> Added idle cpumask to track idle cpus in sched domain. When a CPU >> enters idle, its corresponding bit in the idle cpumask will be set, >> and when the CPU exits idle, its bit will be cleared.

[PATCH 1/1] kselftest: arm64: Add usercopy fixup accuracy tests

2020-09-16 Thread Oliver Swede
This test module checks the accuracy of the usercopy fixup routines. In kernel mode copy_*_user() can be invoked directly, removing the dependencies on implementations of syscalls (e.g. any reductions to the original copy size from within read/write), as well as potentially reducing other

[PATCH v6 0/4] user space client interface driver

2020-09-16 Thread Hemant Kumar
V6: - Moved uci.c to mhi directory. - Updated Kconfig to add module information. - Updated Makefile to rename uci object file name as mhi_uci - Removed kref for open count V5: - Removed mhi_uci_drv structure. - Used idr instead of creating global list of uci devices. - Used kref instead of local

[PATCH v6 4/4] bus: mhi: Add userspace client interface driver

2020-09-16 Thread Hemant Kumar
This MHI client driver allows userspace clients to transfer raw data between MHI device and host using standard file operations. Device file node is created with format /dev/mhi__ Currently it supports LOOPBACK channel. Signed-off-by: Hemant Kumar --- drivers/bus/mhi/Kconfig | 13 +

[PATCH v6 2/4] bus: mhi: core: Move MHI_MAX_MTU to external header file

2020-09-16 Thread Hemant Kumar
Currently this macro is defined in internal MHI header as a TRE length mask. Moving it to external header allows MHI client drivers to set this upper bound for the transmit buffer size. Signed-off-by: Hemant Kumar --- drivers/bus/mhi/core/internal.h | 1 - include/linux/mhi.h | 3

[PATCH v6 1/4] bus: mhi: core: Add helper API to return number of free TREs

2020-09-16 Thread Hemant Kumar
Introduce mhi_get_no_free_descriptors() API to return number of TREs available to queue buffer. MHI clients can use this API to know before hand if ring is full without calling queue API. Signed-off-by: Hemant Kumar --- drivers/bus/mhi/core/main.c | 12 include/linux/mhi.h

Re: [PATCH] staging: wfx: simplify virt_addr_valid call

2020-09-16 Thread Greg KH
On Sat, Sep 12, 2020 at 07:47:19AM -0700, t...@redhat.com wrote: > From: Tom Rix > > Reviewing sram_write_dma_safe(), there are two > identical calls to virt_addr_valid(). The second > call can be simplified by a comparison of variables > set from the first call. > > Signed-off-by: Tom Rix >

[PATCH v6 3/4] docs: Add documentation for userspace client interface

2020-09-16 Thread Hemant Kumar
MHI userspace client driver is creating device file node for user application to perform file operations. File operations are handled by MHI core driver. Currently Loopback MHI channel is supported by this driver. Signed-off-by: Hemant Kumar --- Documentation/mhi/index.rst | 1 +

Re: [PATCH 0/6] irqchip: Hybrid probing

2020-09-16 Thread Rob Herring
On Wed, Sep 16, 2020 at 2:51 AM Marc Zyngier wrote: > > On 2020-09-15 22:13, Rob Herring wrote: > > On Sat, Sep 12, 2020 at 01:51:42PM +0100, Marc Zyngier wrote: > >> A recent attempt at converting a couple of interrupt controllers from > >> early probing to standard platform drivers have badly

Re: [PATCH 0/3] drivers/phy/cadence: Constify static structs

2020-09-16 Thread Vinod Koul
On 12-09-20, 22:46, Rikard Falkeborn wrote: > Constify a number of static structs that are never changed to allow the > compiler to put them in read-only memory. Applied, thanks -- ~Vinod

Re: [PATCH] fbcon: Fix user font detection test at fbcon_resize().

2020-09-16 Thread Greg KH
On Wed, Sep 16, 2020 at 07:06:31PM +0900, Tetsuo Handa wrote: > On 2020/09/16 17:26, Greg KH wrote: > > On Wed, Sep 16, 2020 at 09:01:06AM +0900, Tetsuo Handa wrote: > >> Greg, will you pick up this patch? > >> > >> It seems that finding the real cause of [3] and actually fixing [3] will > >> be

Re: [PATCH v3 RESEND 2/8] phy: hisilicon: phy-hi3670-usb3: fix some issues at the init code

2020-09-16 Thread Vinod Koul
On 11-09-20, 14:16, Mauro Carvalho Chehab wrote: > From: Yu Chen > > There are some problems at the initialization part of this phy. > Solve them. Why not fold this into patch 1? > > Signed-off-by: Yu Chen > Signed-off-by: Mauro Carvalho Chehab > --- >

Re: [PATCH 0/3] regulator: unexport regulator_lock/unlock()

2020-09-16 Thread Mark Brown
On Tue, Sep 15, 2020 at 08:55:06PM +0200, Michał Mirosław wrote: > On Mon, Sep 07, 2020 at 07:05:49PM +0100, Mark Brown wrote: > > [3/3] regulator: unexport regulator_lock/unlock() > > (no commit info) > It looks like the third one didn't get in? (Can't see it in the > for-next branch).

Re: [PATCH v6 0/2] PHY: Add new PHY attribute max_link_rate

2020-09-16 Thread Vinod Koul
On 16-09-20, 15:18, Laurent Pinchart wrote: > Hi Sekhar, > > On Wed, Sep 16, 2020 at 01:11:17PM +0530, Sekhar Nori wrote: > > On 11/09/20 11:48 AM, Swapnil Jakhade wrote: > > > This patch series adds a new PHY attribute max_link_rate. > > > It also updates Cadence Torrent PHY driver to set

Re: [PATCH v2 3/3] soundwire: qcom: get max rows and cols info from compatible

2020-09-16 Thread Vinod Koul
On 16-09-20, 10:21, Srinivas Kandagatla wrote: > currently the max rows and cols values are hardcoded. In reality > these values depend on the IP version. So get these based on > device tree compatible strings. > > Signed-off-by: Srinivas Kandagatla > --- > drivers/soundwire/qcom.c | 50

Re: [PATCH 6/6] dma-mapping: introduce DMA range map, supplanting dma_pfn_offset

2020-09-16 Thread Mathieu Poirier
On Wed, Sep 16, 2020 at 08:14:59AM +0200, Christoph Hellwig wrote: > From: Jim Quinlan > > The new field 'dma_range_map' in struct device is used to facilitate the > use of single or multiple offsets between mapping regions of cpu addrs and > dma addrs. It subsumes the role of

[PATCH] net: dsa: mt7530: Add some return-value checks

2020-09-16 Thread Alex Dewar
In mt7531_cpu_port_config(), if the variable port is neither 5 nor 5, then variable interface will be used uninitialised. Change the function to return -EINVAL in this case. As the return value of mt7531_cpu_port_config() is never checked (even though it returns an int) add a check in the correct

Re: [PATCH v2 1/8] x86/CPU/AMD: Save NodeId on AMD-based systems

2020-09-16 Thread Yazen Ghannam
On Tue, Sep 15, 2020 at 10:35:15AM +0200, Borislav Petkov wrote: ... > > Yeah, I think example 4b works here. The mismatch though is with > > phys_proc_id and package on AMD systems. You can see above that > > phys_proc_id gives a socket number, and the AMD NodeId gives a package > > number. > >

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