[PATCH 5.9 089/105] drm/amdgpu/disply: set num_crtc earlier

2020-12-14 Thread Greg Kroah-Hartman
From: Alex Deucher commit 578b6c487899179fed730e710ffec0b069917971 upstream. To avoid a recently added warning: Bogus possible_crtcs: [ENCODER:65:TMDS-65] possible_crtcs=0xf (full crtc mask=0x7) WARNING: CPU: 3 PID: 439 at drivers/gpu/drm/drm_mode_config.c:617 drm_mode_config_validate+0x178/

Re: [tip: x86/urgent] membarrier: Add an actual barrier before rseq_preempt()

2020-12-14 Thread Andy Lutomirski
On Wed, Dec 9, 2020 at 12:42 AM tip-bot2 for Andy Lutomirski wrote: > > The following commit has been merged into the x86/urgent branch of tip: > > Commit-ID: 2ecedd7569080fd05c1a457e8af2165afecfa29f > Gitweb: > https://git.kernel.org/tip/2ecedd7569080fd05c1a457e8af2165afecfa29f > Auth

[PATCH 5.9 104/105] x86/kprobes: Fix optprobe to detect INT3 padding correctly

2020-12-14 Thread Greg Kroah-Hartman
From: Masami Hiramatsu commit 0d07c0ec4381f630c801539c79ad8dcc627f6e4a upstream. Commit 7705dc855797 ("x86/vmlinux: Use INT3 instead of NOP for linker fill bytes") changed the padding bytes between functions from NOP to INT3. However, when optprobe decodes a target function it finds INT3 and

[PATCH 5.9 090/105] drm/i915/gem: Propagate error from cancelled submit due to context closure

2020-12-14 Thread Greg Kroah-Hartman
From: Chris Wilson commit 0e124e19ce52d20b28ee9f1d5cdb22e2106bfd29 upstream. In the course of discovering and closing many races with context closure and execbuf submission, since commit 61231f6bd056 ("drm/i915/gem: Check that the context wasn't closed during setup") we started checking that the

[PATCH 5.9 092/105] drm/i915/gt: Declare gen9 has 64 mocs entries!

2020-12-14 Thread Greg Kroah-Hartman
From: Chris Wilson commit 7c5c15dffe1e3c42f44735ce9552afb7207f1584 upstream. We checked the table size against a hardcoded number of entries, and that number was excluding the special mocs registers at the end. Fixes: 777a7717d60c ("drm/i915/gt: Program mocs:63 for cache eviction on gen9") Sign

[PATCH 5.9 083/105] Input: cm109 - do not stomp on control URB

2020-12-14 Thread Greg Kroah-Hartman
From: Dmitry Torokhov commit 82e06090473289ce63e23fdeb8737aad59b10645 upstream. We need to make sure we are not stomping on the control URB that was issued when opening the device when attempting to toggle buzzer. To do that we need to mark it as pending in cm109_open(). Reported-and-tested-by:

[PATCH v5 12/25] coresight: etm4x: Check for Software Lock

2020-12-14 Thread Suzuki K Poulose
The Software lock is not implemented for system instructions based accesses. So, skip the lock register access in such cases. Cc: Mike Leach Reviewed-by: Mathieu Poirier Signed-off-by: Suzuki K Poulose --- .../coresight/coresight-etm4x-core.c | 40 --- 1 file changed,

[PATCH v5 07/25] coresight: etm4x: Always read the registers on the host CPU

2020-12-14 Thread Suzuki K Poulose
As we are about to add support for sysreg access to ETM4.4+ components, make sure that we read the registers only on the host CPU. Cc: Mike Leach Reviewed-by: Mathieu Poirier Signed-off-by: Suzuki K Poulose --- .../coresight/coresight-etm4x-sysfs.c | 23 --- 1 file chan

[PATCH 5.9 088/105] mmc: block: Fixup condition for CMD13 polling for RPMB requests

2020-12-14 Thread Greg Kroah-Hartman
From: Bean Huo commit 6246d7c9d15aaff0bc3863f67900c6a6e6be921b upstream. The CMD13 polling is needed for commands with R1B responses. In commit a0d4c7eb71dd ("mmc: block: Add CMD13 polling for MMC IOCTLS with R1B response"), the intent was to introduce this for requests targeted to the RPMB part

[GIT PULL] jfs updates for 5.11

2020-12-14 Thread Dave Kleikamp
The following changes since commit 585e5b17b92dead8a3aca4e3c9876fbca5f7e0ba: Merge tag 'fscrypt-for-linus' of git://git.kernel.org/pub/scm/fs/fscrypt/fscrypt (2020-11-12 16:39:58 -0800) are available in the Git repository at: git://github.com/kleikamp/linux-shaggy.git tags/jfs-5.11 for yo

[PATCH V2 1/2] dt-bindings: power: document Broadcom's PMB binding

2020-12-14 Thread Rafał Miłecki
From: Rafał Miłecki Broadcom's PMB is power controller used for disabling and enabling SoC devices. Signed-off-by: Rafał Miłecki --- .../bindings/power/brcm,bcm-pmb.yaml | 50 +++ include/dt-bindings/soc/bcm-pmb.h | 11 2 files changed, 61 insertions(+

[PATCH 5.9 091/105] drm/i915/display/dp: Compute the correct slice count for VDSC on DP

2020-12-14 Thread Greg Kroah-Hartman
From: Manasi Navare commit f6cbe49be65ed800863ac5ba69057363f9c2 upstream. This patch fixes the slice count computation algorithm for calculating the slice count based on Peak pixel rate and the max slice width allowed on the DSC engines. We need to ensure slice count > min slice count req as

[PATCH V2 0/2] Broadcom's PMB (Power Management Bus) support

2020-12-14 Thread Rafał Miłecki
From: Rafał Miłecki PMB is a hardware block used for powering SoC devices like PCIe, USB, SATA. Initially I planned to treat it as a reset controller and Philipp pointed out in review that PMB driver should use a power subsystem. This is my refactored support. *** Please note one difference wh

Re: [PATCH v12 00/31] Speculative page faults

2020-12-14 Thread Joel Fernandes
On Mon, Dec 14, 2020 at 10:36:29AM +0100, Laurent Dufour wrote: > Le 14/12/2020 à 03:03, Joel Fernandes a écrit : > > On Tue, Jul 07, 2020 at 01:31:37PM +0800, Chinwen Chang wrote: > > [..] > > > > > Hi Laurent, > > > > > > > > > > We merged SPF v11 and some patches from v12 into our platforms. Af

[PATCH V2 2/2] soc: bcm: add PM driver for Broadcom's PMB

2020-12-14 Thread Rafał Miłecki
From: Rafał Miłecki PMB originally comes from BCM63138 but can be also found on many other chipsets (e.g. BCM4908). It's needed to power on and off SoC blocks like PCIe, SATA, USB. Signed-off-by: Rafał Miłecki --- V2: Use drivers/soc/bcm/bcm63xx/ Add help to the config BCM_PMB Drop debu

[PATCH 5.9 105/105] compiler.h: fix barrier_data() on clang

2020-12-14 Thread Greg Kroah-Hartman
From: Arvind Sankar commit 3347acc6fcd4ee71ad18a9ff9d9dac176b517329 upstream. Commit 815f0ddb346c ("include/linux/compiler*.h: make compiler-*.h mutually exclusive") neglected to copy barrier_data() from compiler-gcc.h into compiler-clang.h. The definition in compiler-gcc.h was really to work a

[PATCH v5 10/25] coresight: etm4x: Add sysreg access helpers

2020-12-14 Thread Suzuki K Poulose
ETM architecture defines the system instructions for accessing via register accesses. Add basic support for accessing a given register via system instructions. Cc: Mike Leach Reviewed-by: Mathieu Poirier Signed-off-by: Suzuki K Poulose --- Changes since v3: - Removed stacking of parameters and

[PATCH] unlock patched C gccs

2020-12-14 Thread sylvain . bertrand
From: Sylvain BERTRAND unlock the usage of patched gccs with proper warnings and fix the blocking usage of c11 _Generic by using builtins available on much more C and CXX gccs Signed-off-by: Sylvain BERTRAND --- tested on mainline 2c85ebc57b3e1817b6ce1a6b703928e113a90442 building a running

[PATCH v5 05/25] coresight: Convert coresight_timeout to use access abstraction

2020-12-14 Thread Suzuki K Poulose
Convert the generic routines to use the new access abstraction layer gradually, starting with coresigth_timeout. Cc: Mike Leach Reviewed-by: Mathieu Poirier Signed-off-by: Suzuki K Poulose --- Changes since v4: - Remove stacking of parameters in coresight.h Changes since v3: - Fix style : sta

dm-crypt with no_read_workqueue and no_write_workqueue + btrfs scrub = BUG()

2020-12-14 Thread Maciej S. Szmigiero
Hi, I hit a reproducible BUG() when scrubbing a btrfs fs on top of a dm-crypt device with no_read_workqueue and no_write_workqueue flags enabled. Steps to reproduce: 1) cryptsetup create -c aes -d /dev/urandom test /dev/vdb1 2) dmsetup table test --showkeys | sed 's/$/ 2 no_read_workqueue no_wr

[PATCH v5 09/25] coresight: etm4x: Add commentary on the registers

2020-12-14 Thread Suzuki K Poulose
As we are about define a switch..case table for individual register access by offset for implementing the system instruction support, document the possible set of registers for each group to make it easier to correlate. Cc: Mike Leach Reviewed-by: Mathieu Poirier Signed-off-by: Suzuki K Poulose

Re: Energy-efficiency options within RCU

2020-12-14 Thread Joel Fernandes
On Thu, Dec 10, 2020 at 10:37:37AM -0800, Paul E. McKenney wrote: > Hello, Joel, > > In case you are -seriously- interested... ;-) I am always seriously interested :-). The issue becomes when life throws me a curveball. This was the year of curveballs :-) Thank you for your reply and I have add

[PATCH v5 11/25] coresight: etm4x: Define DEVARCH register fields

2020-12-14 Thread Suzuki K Poulose
Define the fields of the DEVARCH register for identifying a component as an ETMv4.x unit. Going forward, we use the DEVARCH register for the component identification, rather than the TRCIDR3. Cc: Mike Leach Reviewed-by: Mathieu Poirier Signed-off-by: Suzuki K Poulose --- .../coresight/coresigh

[PATCH 5.9 102/105] x86/membarrier: Get rid of a dubious optimization

2020-12-14 Thread Greg Kroah-Hartman
From: Andy Lutomirski commit a493d1ca1a03b532871f1da27f8dbda2b28b04c4 upstream. sync_core_before_usermode() had an incorrect optimization. If the kernel returns from an interrupt, it can get to usermode without IRET. It just has to schedule to a different task in the same mm and do SYSRET. For

Re: [PATCH v5 00/34] SEV-ES hypervisor support

2020-12-14 Thread Paolo Bonzini
On 10/12/20 18:09, Tom Lendacky wrote: From: Tom Lendacky This patch series provides support for running SEV-ES guests under KVM. Secure Encrypted Virtualization - Encrypted State (SEV-ES) expands on the SEV support to protect the guest register state from the hypervisor. See "AMD64 Architectu

[PATCH 5.9 017/105] ibmvnic: avoid memset null scrq msgs

2020-12-14 Thread Greg Kroah-Hartman
From: Dany Madden [ Upstream commit 9281cf2d584083a450fd65fd27cc5f0e692f6e30 ] scrq->msgs could be NULL during device reset, causing Linux to crash. So, check before memset scrq->msgs. Fixes: c8b2ad0a4a901 ("ibmvnic: Sanitize entire SCRQ buffer on reset") Signed-off-by: Dany Madden Signed-off-

[PATCH 5.9 098/105] mm/hugetlb: clear compound_nr before freeing gigantic pages

2020-12-14 Thread Greg Kroah-Hartman
From: Gerald Schaefer commit ba9c1201beaa86a773e83be5654602a0667e4a4d upstream. Commit 1378a5ee451a ("mm: store compound_nr as well as compound_order") added compound_nr counter to first tail struct page, overlaying with page->mapping. The overlay itself is fine, but while freeing gigantic huge

[PATCH 5.9 097/105] proc: use untagged_addr() for pagemap_read addresses

2020-12-14 Thread Greg Kroah-Hartman
From: Miles Chen commit 40d6366e9d86d9a67b5642040e76082fdb5bdcf9 upstream. 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 userspace pointers in pagemap_read(). I tested with 5.10-rc4

[PATCH 5.9 103/105] x86/apic/vector: Fix ordering in vector assignment

2020-12-14 Thread Greg Kroah-Hartman
From: Thomas Gleixner commit 190113b4c6531c8e09b31d5235f9b5175cbb0f72 upstream. Prarit reported that depending on the affinity setting the ' irq $N: Affinity broken due to vector space exhaustion.' message is showing up in dmesg, but the vector space on the CPUs in the affinity mask is defini

Re: [PATCH v2] proc: Allow pid_revalidate() during LOOKUP_RCU

2020-12-14 Thread Stephen Brennan
ebied...@xmission.com (Eric W. Biederman) writes: > Matthew Wilcox writes: > >> On Thu, Dec 03, 2020 at 04:02:12PM -0800, Stephen Brennan wrote: >>> -void pid_update_inode(struct task_struct *task, struct inode *inode) >>> +static int do_pid_update_inode(struct task_struct *task, struct inode >>

[PATCH 5.9 058/105] habanalabs/gaudi: fix missing code in ECC handling

2020-12-14 Thread Greg Kroah-Hartman
From: Oded Gabbay [ Upstream commit 652b44453ea953d3157f02a7f17e18e329952649 ] There is missing statement and missing "break;" in the ECC handling code in gaudi.c This will cause a wrong behavior upon certain ECC interrupts. Signed-off-by: Oded Gabbay Signed-off-by: Sasha Levin --- drivers/m

[PATCH 5.9 059/105] btrfs: do nofs allocations when adding and removing qgroup relations

2020-12-14 Thread Greg Kroah-Hartman
From: Filipe Manana [ Upstream commit 7aa6d359845a9dbf7ad90b0b1b6347ef4764621f ] When adding or removing a qgroup relation we are doing a GFP_KERNEL allocation which is not safe because we are holding a transaction handle open and that can make us deadlock if the allocator needs to recurse into

[PATCH 5.9 050/105] scsi: ufs: Make sure clk scaling happens only when HBA is runtime ACTIVE

2020-12-14 Thread Greg Kroah-Hartman
From: Can Guo [ Upstream commit 73cc291c270248567245f084dcdf5078069af6b5 ] If someone plays with the UFS clk scaling devfreq governor through sysfs, ufshcd_devfreq_scale may be called even when HBA is not runtime ACTIVE. This can lead to unexpected error. We cannot just protect it by calling pm_

[PATCH 5.9 096/105] kbuild: avoid static_assert for genksyms

2020-12-14 Thread Greg Kroah-Hartman
From: Arnd Bergmann commit 14dc3983b5dff513a90bd5a8cc90acaf7867c3d0 upstream. genksyms does not know or care about the _Static_assert() built-in, and sometimes falls back to ignoring the later symbols, which causes undefined behavior such as WARNING: modpost: EXPORT symbol "ethtool_set_ethtoo

[PATCH 5.9 084/105] Input: i8042 - add Acer laptops to the i8042 reset list

2020-12-14 Thread Greg Kroah-Hartman
From: Chris Chiu commit ce6520b0eafad5962ffc21dc47cd7bd3250e9045 upstream. The touchpad operates in Basic Mode by default in the Acer BIOS setup, but some Aspire/TravelMate models require the i8042 to be reset in order to be correctly detected. Signed-off-by: Chris Chiu Link: https://lore.kern

[PATCH 5.9 095/105] drm/amdgpu: fix sdma instance fw version and feature version init

2020-12-14 Thread Greg Kroah-Hartman
From: Stanley.Yang commit 6896887b8676d8fb445c85ea56333b9661a6a8aa upstream. each sdma instance fw_version and feature_version should be set right value when asic type isn't between SIENNA_CICHILD and CHIP_DIMGREY_CAVEFISH Signed-off-by: Stanley.Yang Reviewed-by: Tao Zhou Signed-off-by: Alex

[PATCH 5.9 093/105] drm/i915/gt: Ignore repeated attempts to suspend request flow across reset

2020-12-14 Thread Greg Kroah-Hartman
From: Chris Wilson commit 5419d93ffd774127b195b8543b063b2b4fa5aea9 upstream. Before reseting the engine, we suspend the execution of the guilty request, so that we can continue execution with a new context while we slowly compress the captured error state for the guilty context. However, if the

[PATCH 5.9 094/105] drm/i915/gt: Cancel the preemption timeout on responding to it

2020-12-14 Thread Greg Kroah-Hartman
From: Chris Wilson commit 0fe8bf4d3edce7aad6c14b9d5d92ff54dc19f0ba upstream. We currently presume that the engine reset is successful, cancelling the expired preemption timer in the process. However, engine resets can fail, leaving the timeout still pending and we will then respond to the timeou

Re: [PATCH net-next v4 0/5] vsock: Add flags field in the vsock address

2020-12-14 Thread Paraschiv, Andra-Irina
On 14/12/2020 19:09, Stefano Garzarella wrote: On Mon, Dec 14, 2020 at 06:11:17PM +0200, Andra Paraschiv wrote: vsock enables communication between virtual machines and the host they are running on. Nested VMs can be setup to use vsock channels, as the multi transport support has been availa

[PATCH v5 00/25] coresight: etm4x: Support for system instructions

2020-12-14 Thread Suzuki K Poulose
CoreSight ETMv4.4 obsoletes memory mapped access to ETM and mandates the system instructions for registers. This also implies that they may not be on the amba bus. Right now all the CoreSight components are accessed via memory map. Also, we have some common routines in coresight generic code driver

Re: linux-next: manual merge of the akpm-current tree with the risc-v tree

2020-12-14 Thread Andy Shevchenko
On Mon, Dec 14, 2020 at 08:21:07PM +1100, Stephen Rothwell wrote: > Hi all, > > Today's linux-next merge of the akpm-current tree got a conflict in: > > lib/Makefile > > between commit: > > 527701eda5f1 ("lib: Add a generic version of devmem_is_allowed()") > > from the risc-v tree and comm

Re: [PATCH 1/3] thermal: core: Add indication for userspace usage

2020-12-14 Thread Matthew Garrett
On Sun, Nov 29, 2020 at 9:36 PM Kai-Heng Feng wrote: > > We are seeing thermal shutdown on Intel based mobile workstations, the > shutdown happens during the first trip handle in > thermal_zone_device_register(): > kernel: thermal thermal_zone15: critical temperature reached (101 C), > shutting d

[PATCH 5.9 081/105] xen: add helpers for caching grant mapping pages

2020-12-14 Thread Greg Kroah-Hartman
From: Juergen Gross commit ca33479cc7be2c9b5f8be078c8bf3ac26b7d6186 upstream. Instead of having similar helpers in multiple backend drivers use common helpers for caching pages allocated via gnttab_alloc_pages(). Make use of those helpers in blkback and scsiback. Cc: # 5.9 Signed-off-by: Juer

[PATCH v5 02/25] coresight: etm4x: Skip accessing TRCPDCR in save/restore

2020-12-14 Thread Suzuki K Poulose
When the ETM is affected by Qualcomm errata, modifying the TRCPDCR could cause the system hang. Even though this is taken care of during enable/disable ETM, the ETM state save/restore could still access the TRCPDCR. Make sure we skip the access during the save/restore. Found by code inspection. F

[PATCH 5.9 053/105] ibmvnic: skip tx timeout reset while in resetting

2020-12-14 Thread Greg Kroah-Hartman
From: Lijun Pan [ Upstream commit 855a631a4c11458a9cef1ab79c1530436aa95fae ] Sometimes it takes longer than 5 seconds (watchdog timeout) to complete failover, migration, and other resets. In stead of scheduling another timeout reset, we wait for the current one to complete. Suggested-by: Brian

[PATCH 5.9 055/105] drm/exynos: depend on COMMON_CLK to fix compile tests

2020-12-14 Thread Greg Kroah-Hartman
From: Krzysztof Kozlowski [ Upstream commit e2d3d2e904ad3d381753798dcd5cae03e3c47242 ] The Exynos DRM uses Common Clock Framework thus it cannot be built on platforms without it (e.g. compile test on MIPS with RALINK and SOC_RT305X): /usr/bin/mips-linux-gnu-ld: drivers/gpu/drm/exynos/exynos

[PATCH 5.9 082/105] xen: dont use page->lru for ZONE_DEVICE memory

2020-12-14 Thread Greg Kroah-Hartman
From: Juergen Gross commit ee32f32335e8c7f6154bf397f4ac9b6175b488a8 upstream. Commit 9e2369c06c8a18 ("xen: add helpers to allocate unpopulated memory") introduced usage of ZONE_DEVICE memory for foreign memory mappings. Unfortunately this collides with using page->lru for Xen backend private pa

Re: [PATCH v4 0/4] Improve s0ix flows for systems i219LM

2020-12-14 Thread Hans de Goede
Hi All, Sasha (and the other intel-wired-lan folks), thank you for investigating this further and for coming up with a better solution. Mario, thank you for implementing the new scheme. I've tested this patch set on a Lenovo X1C8 with vPRO and AMT enabled in the BIOS (the previous issues were s

[PATCH 5.9 080/105] ktest.pl: Fix incorrect reboot for grub2bls

2020-12-14 Thread Greg Kroah-Hartman
From: Libo Chen commit 271e0c9dce1b02a825b3cc1a7aa1fab7c381d44b upstream. This issue was first noticed when I was testing different kernels on Oracle Linux 8 which as Fedora 30+ adopts BLS as default. Even though a kernel entry was added successfully and the index of that kernel entry was retrie

[PATCH 5.9 007/105] net, xsk: Avoid taking multiple skbuff references

2020-12-14 Thread Greg Kroah-Hartman
From: Björn Töpel [ Upstream commit 36ccdf85829a7dd6936dba5d02fa50138471f0d3 ] Commit 642e450b6b59 ("xsk: Do not discard packet when NETDEV_TX_BUSY") addressed the problem that packets were discarded from the Tx AF_XDP ring, when the driver returned NETDEV_TX_BUSY. Part of the fix was bumping th

[PATCH 5.9 074/105] s390: fix irq state tracing

2020-12-14 Thread Greg Kroah-Hartman
From: Heiko Carstens [ Upstream commit b1cae1f84a0f609a34ebcaa087fbecef32f69882 ] With commit 58c644ba512c ("sched/idle: Fix arch_cpu_idle() vs tracing") common code calls arch_cpu_idle() with a lockdep state that tells irqs are on. This doesn't work very well for s390: psw_idle() will enable i

[PATCH 5.9 076/105] media: pulse8-cec: fix duplicate free at disconnect or probe error

2020-12-14 Thread Greg Kroah-Hartman
From: Hans Verkuil commit 024e01dead12c2b9fbe31216f2099401ebb78a4a upstream. Commit 601282d65b96 ("media: pulse8-cec: use adap_free callback") used the adap_free callback to clean up on disconnect. What I forgot was that in the probe it will call cec_delete_adapter() followed by kfree(pulse8) if

[PATCH 5.9 077/105] media: pulse8-cec: add support for FW v10 and up

2020-12-14 Thread Greg Kroah-Hartman
From: Hans Verkuil commit 45ba1c0ba3e589ad3ef0d0603c822eb27ea16563 upstream. Starting with firmware version 10 the GET/SET_HDMI_VERSION message was removed and GET/SET_AUTO_POWER_ON was added. The removal of GET/SET_HDMI_VERSION caused the probe of the Pulse-Eight to fail. Add a version check t

[PATCH 5.9 079/105] mmc: mediatek: Extend recheck_sdio_irq fix to more variants

2020-12-14 Thread Greg Kroah-Hartman
From: yong mao commit 903a72eca4abf241293dcc1385896fd428e15fe9 upstream. The SDIO recheck fix is required for more of the supported variants. Let's add it to those that needs it. Reported-by: Fabien Parent Reported-by: Mattijs Korpershoek Signed-off-by: Yong Mao Link: https://lore.kernel.org

[PATCH 5.9 078/105] mmc: mediatek: Fix system suspend/resume support for CQHCI

2020-12-14 Thread Greg Kroah-Hartman
From: Wenbin Mei commit c0a2074ac575fff2848c8ef804bdc8590466c36c upstream. Before we got these errors on MT8192 platform: [ 59.153891] Restarting tasks ... [ 59.154540] done. [ 59.159175] PM: suspend exit [ 59.218724] mtk-msdc 11f6.mmc: phase: [map:fffe] [maxlen:31] [final:16] [

Re: [PATCH AUTOSEL 5.9 15/23] scsi: storvsc: Validate length of incoming packet in storvsc_on_channel_callback()

2020-12-14 Thread Sasha Levin
On Mon, Dec 14, 2020 at 08:06:25AM -0500, Konstantin Ryabitsev wrote: On Mon, Dec 14, 2020 at 02:07:11PM +0300, Dan Carpenter wrote: On Sat, Dec 12, 2020 at 07:09:01PM +0100, Andrea Parri wrote: > Hi Sasha, > > On Sat, Dec 12, 2020 at 11:07:56AM -0500, Sasha Levin wrote: > > From: "Andrea Parri

[PATCH 5.9 066/105] platform/x86: thinkpad_acpi: Do not report SW_TABLET_MODE on Yoga 11e

2020-12-14 Thread Greg Kroah-Hartman
From: Hans de Goede [ Upstream commit f2eae1888cf22590c38764b8fa3c989c0283870e ] The Yoga 11e series has 2 accelerometers described by a BOSC0200 ACPI node. This setup relies on a Windows service which reads both accelerometers and then calculates the angle between the 2 halves to determine lapt

[PATCH 5.9 075/105] intel_idle: Build fix

2020-12-14 Thread Greg Kroah-Hartman
From: Peter Zijlstra [ Upstream commit 4d916140bf28ff027997144ea1bb4299e1536f87 ] Because CONFIG_ soup. Fixes: 6e1d2bc675bd ("intel_idle: Fix intel_idle() vs tracing") Reported-by: Randy Dunlap Signed-off-by: Peter Zijlstra (Intel) Link: https://lkml.kernel.org/r/20201130115402.go3...@hirez.

[PATCH 5.9 063/105] intel_idle: Fix intel_idle() vs tracing

2020-12-14 Thread Greg Kroah-Hartman
From: Peter Zijlstra [ Upstream commit 6e1d2bc675bd57640f5658a4a657ae488db4c204 ] cpuidle->enter() callbacks should not call into tracing because RCU has already been disabled. Instead of doing the broadcast thing itself, simply advertise to the cpuidle core that those states stop the timer. Si

Re: [v1] drm/msm/disp/dpu1: turn off vblank irqs aggressively in dpu driver

2020-12-14 Thread Rob Clark
On Mon, Dec 14, 2020 at 3:41 AM Kalyan Thota wrote: > > Turn off vblank irqs immediately as soon as drm_vblank_put is > requested so that there are no irqs triggered during idle state. > > This will reduce cpu wakeups and help in power saving. The change > also enable driver timestamp for vblanks.

Re: [PATCH 4/4] e1000e: Export S0ix flags to ethtool

2020-12-14 Thread Hans de Goede
Hi, On 12/14/20 4:34 PM, Mario Limonciello wrote: > This flag can be used by an end user to disable S0ix flows on a > buggy system or by an OEM for development purposes. > > If you need this flag to be persisted across reboots, it's suggested > to use a udev rule to call adjust it until the kerne

[PATCH 5.9 073/105] can: m_can: m_can_dev_setup(): add support for bosch mcan version 3.3.0

2020-12-14 Thread Greg Kroah-Hartman
From: Pankaj Sharma [ Upstream commit 5c7d55bded77da6db7c5d249610e3a2eed730b3c ] Add support for mcan bit timing and control mode according to bosch mcan IP version 3.3.0. The mcan version read from the Core Release field of CREL register would be 33. Accordingly the properties are to be set for

Re: [PATCH v3 1/4] spi: LS7A: Add Loongson LS7A SPI controller driver support

2020-12-14 Thread Oleksij Rempel
Hi After quick search I found (nearly?) identical SPI controller on many other Loongson products. For example: ls1b, ls2k, 3A4000, etc... Probably it will help you to make right decisions now, if you compare this docs: http://www.loongson.cn/product/ Am 14.12.20 um 06:58 schrieb Qing Zhang: > The

Re: [PATCH 1/3] x86/quirks: Scan all busses for early PCI quirks

2020-12-14 Thread Guilherme Piccoli
Thank you for the clarification Bjorn! I was on vacation..sorry for my delay. Closing the loop here, I understand we're not getting this patch merged (due to its restriction to domain 0) and there was a suggestion in the thread of trying to block MSIs from the IOMMU init code (which also have the

[PATCH 0/3] KVM: x86: MSR completion refactoring for SEV-ES

2020-12-14 Thread Paolo Bonzini
These patches remove kvm_inject_gp from the RDMSR/WRMSR emulation path, with the purpose of letting SEV-ES inject the #GP through the GHCB instead. The main idea is to introduce a complete_emulated_msr callback that is call-compatible with kvm_complete_insn_gp, so that svm.c can just call kvm_comp

[PATCH 3/3] KVM: x86: introduce complete_emulated_msr callback

2020-12-14 Thread Paolo Bonzini
This will be used by SEV-ES to inject MSR failure via the GHCB. Signed-off-by: Paolo Bonzini --- arch/x86/include/asm/kvm_host.h | 1 + arch/x86/kvm/svm/svm.c | 1 + arch/x86/kvm/vmx/vmx.c | 1 + arch/x86/kvm/x86.c | 8 4 files changed, 7 insertions(+), 4

[PATCH 2/3] KVM: x86: use kvm_complete_insn_gp in emulating RDMSR/WRMSR

2020-12-14 Thread Paolo Bonzini
Simplify the four functions that handle {kernel,user} {rd,wr}msr, there is still some repetition between the two instances of rdmsr but the whole business of calling kvm_inject_gp and kvm_skip_emulated_instruction can be unified nicely. Because complete_emulated_wrmsr now becomes essentially a cal

[PATCH 1/3] KVM: x86: remove bogus #GP injection

2020-12-14 Thread Paolo Bonzini
There is no need to inject a #GP from kvm_mtrr_set_msr, kvm_emulate_wrmsr will handle it. Signed-off-by: Paolo Bonzini --- arch/x86/kvm/mtrr.c | 6 +- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/arch/x86/kvm/mtrr.c b/arch/x86/kvm/mtrr.c index 7f0059aa30e1..f472fdb6ae7e 10064

[GIT PULL] arm64 updates for 5.11

2020-12-14 Thread Catalin Marinas
Hi Linus, Please pull the 5.11 updates from the arm64 tree (I expect the in-kernel MTE + KASAN changes to come via Andrew Morton). The "arm64: expose FAR_EL1 tag bits in siginfo" patch is based on some preparatory signal patches queued via Eric's tree but they appear in the diffstat here as well.

[PATCH 5.9 052/105] interconnect: qcom: qcs404: Remove GPU and display RPM IDs

2020-12-14 Thread Greg Kroah-Hartman
From: Georgi Djakov [ Upstream commit 7ab1e9117607485df977bb6e271be5c5ad649a4c ] The following errors are noticed during boot on a QCS404 board: [2.926647] qcom_icc_rpm_smd_send mas 6 error -6 [2.934573] qcom_icc_rpm_smd_send mas 8 error -6 These errors show when we try to configure the

[PATCH 5.9 070/105] platform/x86: intel-vbtn: Support for tablet mode on HP Pavilion 13 x360 PC

2020-12-14 Thread Greg Kroah-Hartman
From: Max Verevkin [ Upstream commit 8b205d3e1bf52ab31cdd5c55f87c87a227793d84 ] The Pavilion 13 x360 PC has a chassis-type which does not indicate it is a convertible, while it is actually a convertible. Add it to the dmi_switches_allow_list. Signed-off-by: Max Verevkin Link: https://lore.kern

Re: [PATCH 0/3] x86/resctrl: Fix a few issues in moving a task to a resource group

2020-12-14 Thread Reinette Chatre
Hi Valentin, On 12/11/2020 12:46 PM, Valentin Schneider wrote: On 03/12/20 23:25, Reinette Chatre wrote: Valentin's series in [2] ends by adding memory barriers to support the updating of the task_struct from one CPU and the usage of the task_struct data from another CPU. This work is still nee

[PATCH 5.9 071/105] platform/x86: touchscreen_dmi: Add info for the Predia Basic tablet

2020-12-14 Thread Greg Kroah-Hartman
From: Hans de Goede [ Upstream commit 0f511edc6ac12f1ccf1c6c2d4412f5ed7ba426a6 ] Add touchscreen info for the Predia Basic tablet. Signed-off-by: Hans de Goede Acked-by: Andy Shevchenko Link: https://lore.kernel.org/r/20201015194949.50566-1-hdego...@redhat.com Signed-off-by: Sasha Levin ---

Re: [PATCH 2/3] x86/resctrl: Update PQR_ASSOC MSR synchronously when moving task to resource group

2020-12-14 Thread Reinette Chatre
Hi Valentin, On 12/11/2020 12:46 PM, Valentin Schneider wrote: On 03/12/20 23:25, Reinette Chatre wrote: Fixes: e02737d5b826 ("x86/intel_rdt: Add tasks files") Reported-by: Shakeel Butt Reported-by: Valentin Schneider Signed-off-by: Fenghua Yu Signed-off-by: Reinette Chatre Reviewed-by: To

[PATCH 5.9 064/105] arm64: tegra: Disable the ACONNECT for Jetson TX2

2020-12-14 Thread Greg Kroah-Hartman
From: Jon Hunter [ Upstream commit fb319496935b7475a863a00c76895e8bb3216704 ] Commit ff4c371d2bc0 ("arm64: defconfig: Build ADMA and ACONNECT driver") enable the Tegra ADMA and ACONNECT drivers and this is causing resume from system suspend to fail on Jetson TX2. Resume is failing because the AC

[PATCH 5.9 069/105] platform/x86: acer-wmi: add automatic keyboard background light toggle key as KEY_LIGHTS_TOGGLE

2020-12-14 Thread Greg Kroah-Hartman
From: Timo Witte [ Upstream commit 9e7a005ad56aa7d6ea5830c5ffcc60bf35de380b ] Got a dmesg message on my AMD Renoir based Acer laptop: "acer_wmi: Unknown key number - 0x84" when toggling keyboard background light Signed-off-by: Timo Witte Reviewed-by: "Lee, Chun-Yi" Link: https://lore.kernel.o

Re: Fw: [External] Re: [PATCH v4 0/4] Improve s0ix flows for systems i219LM

2020-12-14 Thread Mark Pearson
Thanks Hans On 14/12/2020 13:31, Mark Pearson wrote: > > > > *From:* Hans de Goede > *Sent:* December 14, 2020 13:24 > *To:* Mario Limonciello ; Jeff Kirsher > ; Tony Nguyen ; > intel-wired-...@lists.osuosl.org ; > David M

[PATCH 5.9 068/105] platform/x86: thinkpad_acpi: Whitelist P15 firmware for dual fan control

2020-12-14 Thread Greg Kroah-Hartman
From: Matthias Maier [ Upstream commit 80a8c3185f5047dc7438ed226b72385bf93b4071 ] This commit enables dual fan control for the following new Lenovo models: P15, P15v. Signed-off-by: Matthias Maier Link: https://lore.kernel.org/r/20201126000416.2459645-2-tamiko-ibm-acpi-de...@43-1.org Signed-o

Re: [PATCH v2] proc: Allow pid_revalidate() during LOOKUP_RCU

2020-12-14 Thread Casey Schaufler
On 12/13/2020 8:29 AM, Matthew Wilcox wrote: > On Sun, Dec 13, 2020 at 08:22:32AM -0600, Eric W. Biederman wrote: >> Matthew Wilcox writes: >> >>> On Thu, Dec 03, 2020 at 04:02:12PM -0800, Stephen Brennan wrote: -void pid_update_inode(struct task_struct *task, struct inode *inode) +stati

[PATCH 5.9 067/105] platform/x86: thinkpad_acpi: Add BAT1 is primary battery quirk for Thinkpad Yoga 11e 4th gen

2020-12-14 Thread Greg Kroah-Hartman
From: Hans de Goede [ Upstream commit c986a7024916c92a775fc8d853fba3cae1d5fde4 ] The Thinkpad Yoga 11e 4th gen with the N3450 / Celeron CPU only has one battery which is named BAT1 instead of the expected BAT0, add a quirk for this. This fixes not being able to set the charging tresholds on this

[PATCH 5.4 20/36] platform/x86: intel-vbtn: Support for tablet mode on HP Pavilion 13 x360 PC

2020-12-14 Thread Greg Kroah-Hartman
From: Max Verevkin [ Upstream commit 8b205d3e1bf52ab31cdd5c55f87c87a227793d84 ] The Pavilion 13 x360 PC has a chassis-type which does not indicate it is a convertible, while it is actually a convertible. Add it to the dmi_switches_allow_list. Signed-off-by: Max Verevkin Link: https://lore.kern

Re: [PATCH] fair/util_est: Separate util_est_dequeue() for cfs_rq_util_change

2020-12-14 Thread Dietmar Eggemann
On 11/12/2020 13:03, Ryan Y wrote: > Hi Dietmar, > > Yes! That's exactly what I meant. > >> The issue is that sugov_update_[shared\|single] -> sugov_get_util() -> >> cpu_util_cfs() operates on an old cfs_rq->avg.util_est.enqueued value? > > well, because of this, when the p dequeued, _task_util

[PATCH 5.9 026/105] can: sun4i_can: sun4i_can_err(): dont count arbitration lose as an error

2020-12-14 Thread Greg Kroah-Hartman
From: Jeroen Hofstee [ Upstream commit c2d095eff797813461a426b97242e3ffc50e4134 ] Losing arbitration is normal in a CAN-bus network, it means that a higher priority frame is being send and the pending message will be retried later. Hence most driver only increment arbitration_lost, but the sun4i

[PATCH 5.9 027/105] can: c_can: c_can_power_up(): fix error handling

2020-12-14 Thread Greg Kroah-Hartman
From: Zhang Qilong [ Upstream commit 44cef0c0ffbd8d61143712ce874be68a273b7884 ] In the error handling in c_can_power_up(), there are two bugs: 1) c_can_pm_runtime_get_sync() will increase usage counter if device is not empty. Forgetting to call c_can_pm_runtime_put_sync() will result in a

[PATCH 5.9 018/105] ibmvnic: delay next reset if hard reset fails

2020-12-14 Thread Greg Kroah-Hartman
From: Sukadev Bhattiprolu [ Upstream commit f15fde9d47b887b406f5e76490d601cfc26643c9 ] If auto-priority failover is enabled, the backing device needs time to settle if hard resetting fails for any reason. Add a delay of 60 seconds before retrying the hard-reset. Fixes: 2770a7984db5 ("ibmvnic: I

[PATCH 5.9 024/105] can: m_can: tcan4x5x_can_probe(): fix error path: remove erroneous clk_disable_unprepare()

2020-12-14 Thread Greg Kroah-Hartman
From: Marc Kleine-Budde [ Upstream commit ad1f5e826d91d6c27ecd36a607ad7c7f4d0b0733 ] The clocks mcan_class->cclk and mcan_class->hclk are not prepared by any call during tcan4x5x_can_probe(), so remove erroneous clk_disable_unprepare() on them. Fixes: 5443c226ba91 ("can: tcan4x5x: Add tcan4x5x

[PATCH 5.9 025/105] can: sja1000: sja1000_err(): dont count arbitration lose as an error

2020-12-14 Thread Greg Kroah-Hartman
From: Jeroen Hofstee [ Upstream commit bd0ccb92efb09c7da5b55162b283b42a93539ed7 ] Losing arbitration is normal in a CAN-bus network, it means that a higher priority frame is being send and the pending message will be retried later. Hence most driver only increment arbitration_lost, but the sja10

[PATCH 5.9 051/105] interconnect: qcom: msm8916: Remove rpm-ids from non-RPM nodes

2020-12-14 Thread Greg Kroah-Hartman
From: Georgi Djakov [ Upstream commit c497f9322af947204c28292be6f20dd2d97483dd ] Some nodes are incorrectly marked as RPM-controlled (they have RPM master and slave ids assigned), but are actually controlled by the application CPU instead. The RPM complains when we send requests for resources th

[PATCH 5.9 021/105] ibmvnic: reduce wait for completion time

2020-12-14 Thread Greg Kroah-Hartman
From: Dany Madden [ Upstream commit 98c41f04a67abf5e7f7191d55d286e905d1430ef ] Reduce the wait time for Command Response Queue response from 30 seconds to 20 seconds, as recommended by VIOS and Power Hypervisor teams. Fixes: bd0b672313941 ("ibmvnic: Move login and queue negotiation into ibmvni

[PATCH 5.9 042/105] arm64: dts: rockchip: Reorder LED triggers from mmc devices on rk3399-roc-pc.

2020-12-14 Thread Greg Kroah-Hartman
From: Markus Reichl [ Upstream commit 7327c8b98e2e14c47021eea14d1ab268086a6408 ] After patch [1] SD-card becomes mmc1 and eMMC becomes mmc2. Correct trigger of LEDs accordingly. [1] https://patchwork.kernel.org/patch/11881427 Signed-off-by: Markus Reichl Link: https://lore.kernel.org/r/202011

[PATCH 5.9 045/105] iwlwifi: mvm: fix kernel panic in case of assert during CSA

2020-12-14 Thread Greg Kroah-Hartman
From: Sara Sharon [ Upstream commit fe56d05ee6c87f6a1a8c7267affd92c9438249cc ] During CSA, we briefly nullify the phy context, in __iwl_mvm_unassign_vif_chanctx. In case we have a FW assert right after it, it remains NULL though. We end up running into endless loop due to mac80211 trying repeat

[PATCH 5.9 044/105] iwlwifi: pcie: set LTR to avoid completion timeout

2020-12-14 Thread Greg Kroah-Hartman
From: Johannes Berg [ Upstream commit edb625208d84aef179e3f16590c1c582fc5fdae6 ] On some platforms, the preset values aren't correct and then we may get a completion timeout in the firmware. Change the LTR configuration to avoid that. The firmware will do some more complex reinit of this later,

Re: [PATCH v2 1/6] scsi: ufs: Remove stringize operator '#' restriction

2020-12-14 Thread Bean Huo
On Mon, 2020-12-14 at 08:46 -0800, Joe Perches wrote: > > However, we have other cases, the symbol and enum name are not the > > same, > > we can redefine EM/EMe, but there will introduce some redundant > > codes. > > This patch is to remove this restriction, let others reuse the > > current > > EM

Re: [net-next PATCH v3] tcp: Add logic to check for SYN w/ data in tcp_simple_retransmit

2020-12-14 Thread Yuchung Cheng
On Mon, Dec 14, 2020 at 9:42 AM Eric Dumazet wrote: > > On Sat, Dec 12, 2020 at 9:31 PM Alexander Duyck > wrote: > > > > From: Alexander Duyck > > > > There are cases where a fastopen SYN may trigger either a ICMP_TOOBIG > > message in the case of IPv6 or a fragmentation request in the case of >

Re: [PATCH 00/10] workqueue: break affinity initiatively

2020-12-14 Thread Peter Zijlstra
On Mon, Dec 14, 2020 at 11:54:47PM +0800, Lai Jiangshan wrote: > From: Lai Jiangshan > > 06249738a41a ("workqueue: Manually break affinity on hotplug") > said that scheduler will not force break affinity for us. > > But workqueue highly depends on the old behavior. Many parts of the codes > reli

[PATCH 5.9 005/105] ASoC: Intel: bytcr_rt5640: Fix HP Pavilion x2 Detachable quirks

2020-12-14 Thread Greg Kroah-Hartman
From: Hans de Goede [ Upstream commit fbdae7d6d04d2db36c687723920f612e93b2cbda ] The HP Pavilion x2 Detachable line comes in many variants: 1. Bay Trail SoC + AXP288 PMIC, Micro-USB charging (10-k010nz, ...) DMI_SYS_VENDOR: "Hewlett-Packard" DMI_PRODUCT_NAME: "HP Pavilion x2 Detachable PC

[PATCH 5.9 046/105] powerpc: Drop -me200 addition to build flags

2020-12-14 Thread Greg Kroah-Hartman
From: Michael Ellerman [ Upstream commit e02152ba2810f7c88cb54e71cda096268dfa9241 ] Currently a build with CONFIG_E200=y will fail with: Error: invalid switch -me200 Error: unrecognized option -me200 Upstream binutils has never supported an -me200 option. Presumably it was supported at som

[PATCH 5.9 041/105] arm64: dts: rockchip: Assign a fixed index to mmc devices on rk3399 boards.

2020-12-14 Thread Greg Kroah-Hartman
From: Markus Reichl [ Upstream commit 0011c6d182774fc781fb9e115ebe8baa356029ae ] Recently introduced async probe on mmc devices can shuffle block IDs. Pin them to fixed values to ease booting in environments where UUIDs are not practical. Use newly introduced aliases for mmcblk devices from [1].

[PATCH 5.9 022/105] drm/rockchip: Avoid uninitialized use of endpoint id in LVDS

2020-12-14 Thread Greg Kroah-Hartman
From: Paul Kocialkowski [ Upstream commit aec9fe892812ed10d0bffcf309d2a8fc380d8ce6 ] In the Rockchip DRM LVDS component driver, the endpoint id provided to drm_of_find_panel_or_bridge is grabbed from the endpoint's reg property. However, the property may be missing in the case of a single endpo

[PATCH 5.9 047/105] arm64: dts: broadcom: clear the warnings caused by empty dma-ranges

2020-12-14 Thread Greg Kroah-Hartman
From: Zhen Lei [ Upstream commit 2013a4b684b6eb614ee5c9a3c07b0ae6f5ca96d9 ] The scripts/dtc/checks.c requires that the node have empty "dma-ranges" property must have the same "#address-cells" and "#size-cells" values as the parent node. Otherwise, the following warnings is reported: arch/arm64

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