[RFC v1 17/26] x86/boot: Avoid unnecessary #VE during boot process

2021-02-05 Thread Kuppuswamy Sathyanarayanan
From: Sean Christopherson Skip writing EFER during secondary_startup_64() if the current value is also the desired value. This avoids a #VE when running as a TDX guest, as the TDX-Module does not allow writes to EFER (even when writing the current, fixed value). Also, preserve CR4.MCE instead

[PATCH v5 03/34] mailbox: vpu-ipc-mailbox: Add support for Intel VPU IPC mailbox

2021-02-05 Thread mgross
From: Daniele Alessandrelli Add mailbox controller enabling inter-processor communication (IPC) between the CPU (aka, the Application Processor - AP) and the VPU on Intel Movidius SoCs like Keem Bay. The controller uses HW FIFOs to enable such communication. Specifically, there are two FIFOs,

Re: [PATCH v1] vdpa/mlx5: Restore the hardware used index after change map

2021-02-05 Thread Si-Wei Liu
On 2/3/2021 11:36 PM, Eli Cohen wrote: When a change of memory map occurs, the hardware resources are destroyed and then re-created again with the new memory map. In such case, we need to restore the hardware available and used indices. The driver failed to restore the used index which is

[PATCH v5 10/34] misc: xlink-pcie: lh: Add PCIe EP DMA functionality

2021-02-05 Thread mgross
From: Srikanth Thokala Add Synopsys PCIe DWC core embedded-DMA functionality for local host Cc: Arnd Bergmann Cc: Greg Kroah-Hartman Reviewed-by: Mark Gross Signed-off-by: Mark Gross Signed-off-by: Srikanth Thokala --- drivers/misc/xlink-pcie/local_host/Makefile | 1 +

[RFC v1 01/26] x86/paravirt: Introduce CONFIG_PARAVIRT_XL

2021-02-05 Thread Kuppuswamy Sathyanarayanan
From: "Kirill A. Shutemov" Split off halt paravirt calls from CONFIG_PARAVIRT_XXL into a separate config option. It provides a middle ground for not-so-deep paravirtulized environments. CONFIG_PARAVIRT_XL will be used by TDX that needs couple of paravirt calls that was hidden under

[PATCH v5 12/34] misc: xlink-pcie: lh: Prepare changes for adding remote host driver

2021-02-05 Thread mgross
From: Srikanth Thokala Move logic that can be reused between local host and remote host to common/ folder Cc: Arnd Bergmann Cc: Greg Kroah-Hartman Reviewed-by: Mark Gross Signed-off-by: Mark Gross Signed-off-by: Srikanth Thokala --- drivers/misc/xlink-pcie/{local_host => common}/core.h |

Re: [PATCH 0/3] drivers/net/ethernet/amd: Follow style guide

2021-02-05 Thread Randy Dunlap
On 2/5/21 4:01 PM, Amy Parker wrote: > This patchset updates atarilance.c and sun3lance.c to follow the kernel > style guide. Each patch tackles a different issue in the style guide. > >-Amy IP > > Amy Parker (3): > drivers/net/ethernet/amd: Correct spacing around C keywords >

[PATCH v5 02/34] dt-bindings: mailbox: Add Intel VPU IPC mailbox bindings

2021-02-05 Thread mgross
From: Daniele Alessandrelli Add bindings for the Intel VPU IPC mailbox driver. Cc: Rob Herring Cc: devicet...@vger.kernel.org Signed-off-by: Daniele Alessandrelli Signed-off-by: Mark Gross --- .../mailbox/intel,vpu-ipc-mailbox.yaml| 69 +++ MAINTAINERS

[PATCH v5 29/34] Intel tsens i2c slave driver.

2021-02-05 Thread mgross
From: "C, Udhayakumar" Add Intel tsens i2c slave driver for Intel Edge.AI Computer Vision platforms. The tsens i2c slave driver enables reading of on chip sensors present in the Intel Edge.AI Computer Vision platforms. In the tsens i2c module various junction and SoC temperatures are reported

[RFC v1 03/26] x86/cpufeatures: Add is_tdx_guest() interface

2021-02-05 Thread Kuppuswamy Sathyanarayanan
Add helper function to detect TDX feature support. It will be used to protect TDX specific code. Co-developed-by: Sean Christopherson Signed-off-by: Sean Christopherson Reviewed-by: Andi Kleen Signed-off-by: Kuppuswamy Sathyanarayanan --- arch/x86/boot/compressed/Makefile | 1 +

[RFC v1 05/26] x86/traps: Add #VE support for TDX guest

2021-02-05 Thread Kuppuswamy Sathyanarayanan
From: "Kirill A. Shutemov" The TDX module injects #VE exception to the guest TD in cases of disallowed instructions, disallowed MSR accesses and subset of CPUID leaves. Also, it's theoretically possible for CPU to inject #VE exception on EPT violation, but the TDX module makes sure this does not

[RFC v1 04/26] x86/tdx: Get TD execution environment information via TDINFO

2021-02-05 Thread Kuppuswamy Sathyanarayanan
From: "Kirill A. Shutemov" Per Guest-Host-Communication Interface (GHCI) for Intel Trust Domain Extensions (Intel TDX) specification, sec 2.4.2, TDCALL[TDINFO] provides basic TD execution environment information, not provided by CPUID. Call TDINFO during early boot to be used for following

[PATCH v5 34/34] misc: HDDL device management for IA host

2021-02-05 Thread mgross
From: "C, Udhayakumar" Add IA host hddl device management driver for Intel Edge.AI Computer Vision platforms. About Intel Edge.AI Computer Vision platforms: - The Intel Edge.AI Computer Vision platforms are vision processing systems targeting machine

[PATCH v5 13/34] misc: xlink-pcie: rh: Add PCIe EP driver for Remote Host

2021-02-05 Thread mgross
From: Srikanth Thokala Add PCIe Endpoint driver that configures PCIe BARs and MSIs on the Remote Host Cc: Arnd Bergmann Cc: Greg Kroah-Hartman Reviewed-by: Mark Gross Signed-off-by: Mark Gross Signed-off-by: Srikanth Thokala --- MAINTAINERS | 2 +-

[PATCH v5 20/34] xlink-core: Add xlink core driver xLink

2021-02-05 Thread mgross
From: Seamus Kelly Add xLink driver, which provides an abstracted control and communication subsystem based on channel identification. It is intended to support VPU technology both at SoC level as well as at IP level, over multiple interfaces. This initial patch enables local

[PATCH] tmpfs: Disallow CONFIG_TMPFS_INODE64 on s390

2021-02-05 Thread Seth Forshee
This feature requires ino_t be 64-bits, which is true for every 64-bit architecture but s390, so prevent this option from being selected there. Fixes: ea3271f7196c ("tmpfs: support 64-bit inums per-sb") Cc: # v5.9+ Signed-off-by: Seth Forshee --- fs/Kconfig | 2 +- 1 file changed, 1

drivers/memory/ti-emif-pm.c:238:34: warning: unused variable 'ti_emif_of_match'

2021-02-05 Thread kernel test robot
Hi Krzysztof, First bad commit (maybe != root cause): tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 61556703b610a104de324e4f061dc6cf7b218b46 commit: ea0c0ad6b6eb36726088991d97a55b99cae456d0 memory: Enable compile testing for most of the drivers date:

[RFC v1 02/26] x86/cpufeatures: Add TDX Guest CPU feature

2021-02-05 Thread Kuppuswamy Sathyanarayanan
Add CPU feature detection for Trusted Domain Extensions support. TDX feature adds capabilities to keep guest register state and memory isolated from hypervisor. For TDX guest platforms, executing CPUID(0x21, 0) will return following values in EAX, EBX, ECX and EDX. EAX: Maximum sub-leaf number:

Re: [PATCH v4 3/4] dt-bindings: reserved-memory: Make DMA-BUF CMA heap DT-configurable

2021-02-05 Thread Rob Herring
On Thu, Jan 21, 2021 at 09:55:01AM -0800, Minchan Kim wrote: > From: Hyesoo Yu > > Document devicetree binding for chunk cma heap on dma heap framework. > > The DMA chunk heap supports the bulk allocation of higher order pages. > > The chunk heap's allocator allocates from the CMA area. It is

[PATCH v5 31/34] Intel Keem Bay XLink SMBus driver

2021-02-05 Thread mgross
From: Ramya P Karanth Adds XLink SMBus driver for Intel Keem Bay SoC. Xlink-smbus driver is a logical SMBus adapter which uses Xlink (xlink-pcie) protocol as an interface. Keem Bay(s) vision accelerators are connected to the server via PCI interface. The Server needs to know the temperature of

[PATCH v5 23/34] xlink-core: add async channel and events

2021-02-05 Thread mgross
From: Seamus Kelly Enable asynchronous channel and event communication. Add APIs: data ready callback: The xLink Data Ready Callback function is used to register a callback function that is invoked when data

[PATCH v5 15/34] misc: xlink-pcie: Add XLink API interface

2021-02-05 Thread mgross
From: Srikanth Thokala Provide interface for XLink layer to interact with XLink PCIe transport layer on both local host and remote host. Cc: Arnd Bergmann Cc: Greg Kroah-Hartman Reviewed-by: Mark Gross Signed-off-by: Mark Gross Signed-off-by: Srikanth Thokala ---

[PATCH v5 05/34] keembay-ipc: Add Keem Bay IPC module

2021-02-05 Thread mgross
From: Daniele Alessandrelli On the Intel Movidius SoC code named Keem Bay, communication between the Application Processor(AP) and the VPU is enabled by the Keem Bay Inter-Processor Communication (IPC) mechanism. Add the driver for using Keem Bay IPC from within the Linux Kernel. The IPC uses

[PATCH v5 01/34] Add Vision Processing Unit (VPU) documentation.

2021-02-05 Thread mgross
From: mark gross The Intel VPU needs a complicated SW stack to make it work. Add a directory to hold VPU related documentation including an architectural overview of the SW stack that the patches implement. Cc: Jonathan Corbet Signed-off-by: Mark Gross --- Documentation/index.rst

[PATCH v5 04/34] dt-bindings: Add bindings for Keem Bay IPC driver

2021-02-05 Thread mgross
From: Daniele Alessandrelli Add DT binding documentation for the Intel Keem Bay IPC driver, which enables communication between the Computing Sub-System (CSS) and the Multimedia Sub-System (MSS) of the Intel Movidius SoC code named Keem Bay. Cc: Rob Herring Cc: devicet...@vger.kernel.org

Re: BUG: KASAN: use-after-free in snd_complete_urb+0x109e/0x1740 [snd_usb_audio] (5.11-rc6)

2021-02-05 Thread Takashi Iwai
On Fri, 05 Feb 2021 22:02:16 +0100, Mikhail Gavrilov wrote: > > Hi folks. > On 5.11-rc6 (git 3aaf0a27ffc2) I caught a new issue. > For unknown reason sound disappeared in my headset Hyperx orbit s. > But after reconnecting to another USB port headset stopped being > detected as USB device in

[PATCH v5 00/34] Intel Vision Processing base enabling

2021-02-05 Thread mgross
From: Mark Gross The Intel Vision Processing Unit (VPU) is an IP block that is showing up for the first time as part of the Keem Bay SOC. Keem Bay is a quad core A53 Arm SOC. It is designed to be used as a stand alone SOC as well as in an PCIe Vision Processing accelerator add in card. This

[PATCH v5 11/34] misc: xlink-pcie: lh: Add core communication logic

2021-02-05 Thread mgross
From: Srikanth Thokala Add logic to establish communication with the remote host which is through ring buffer management and MSI/Doorbell interrupts Cc: Arnd Bergmann Cc: Greg Kroah-Hartman Reviewed-by: Mark Gross Signed-off-by: Mark Gross Signed-off-by: Srikanth Thokala ---

[PATCH v5 16/34] misc: xlink-pcie: Add asynchronous event notification support for XLink

2021-02-05 Thread mgross
From: Srikanth Thokala Add support to notify XLink layer upon PCIe link UP/DOWN events Cc: Arnd Bergmann Cc: Greg Kroah-Hartman Reviewed-by: Mark Gross Signed-off-by: Mark Gross Signed-off-by: Srikanth Thokala --- drivers/misc/xlink-pcie/common/core.h | 3 ++

[PATCH v5 14/34] misc: xlink-pcie: rh: Add core communication logic

2021-02-05 Thread mgross
From: Srikanth Thokala Add logic to establish communication with the local host which is through ring buffer management and MSI/Doorbell interrupts Cc: Arnd Bergmann Cc: Greg Kroah-Hartman Reviewed-by: Mark Gross Signed-off-by: Mark Gross Signed-off-by: Srikanth Thokala ---

[net-next v4 13/14] octeontx2-af: cn10k: Add RPM Rx/Tx stats support

2021-02-05 Thread Geetha sowjanya
From: Hariprasad Kelam RPM supports below list of counters as an extension to existing counters * class based flow control pause frames * vlan/jabber/fragmented packets * fcs/alignment/oversized error packets This patch adds support to display supported RPM counters via debugfs and define

Re: [PATCH] tmpfs: Disallow CONFIG_TMPFS_INODE64 on s390

2021-02-05 Thread Andrew Morton
On Fri, 5 Feb 2021 17:06:20 -0600 Seth Forshee wrote: > This feature requires ino_t be 64-bits, which is true for every > 64-bit architecture but s390, so prevent this option from being > selected there. > The previous patch nicely described the end-user impact of the bug. This is

Re: [PATCH v3] mfd: da9063: Support SMBus and I2C mode

2021-02-05 Thread Wolfram Sang
> + if (i2c_check_functionality(i2c->adapter, I2C_FUNC_I2C)) { > + dev_info(da9063->dev, "I2C mode"); > + busmode = 0; > + } else { > + dev_info(da9063->dev, "SMBus mode"); > + busmode = DA9063_TWOWIRE_TO; > + } In principle, this looks

[PATCH net-next v2 0/7] net: ipa: a mix of small improvements

2021-02-05 Thread Alex Elder
Version 2 of this series restructures a couple of the changed functions (in patches 1 and 2) to avoid blocks of indented code by returning early when possible, as suggested by Jakub. The description of the first patch was changed as a result, to better reflect what the updated patch does. It

[PATCH v4 3/3] kunit: tool: fix unintentional statefulness in run_kernel()

2021-02-05 Thread Daniel Latypov
This is a bug that has been present since the first version of this code. Using [] as a default parameter is dangerous, since it's mutable. Example using the REPL: >>> def bad(param = []): ... param.append(len(param)) ... print(param) ... >>> bad() [0] >>> bad() [0, 1] This wasn't a

[PATCH v4 0/3] kunit: support running subsets of test suites from kunit.py

2021-02-05 Thread Daniel Latypov
When using `kunit.py run` to run tests, users must populate a `kunitconfig` file to select the options the tests are hidden behind and all their dependencies. The patch [1] to allow specifying a path to kunitconfig promises to make this nicer as we can have checked in files corresponding to

Re: [PATCH] mm: cma: support sysfs

2021-02-05 Thread Minchan Kim
On Fri, Feb 05, 2021 at 01:58:06PM -0800, John Hubbard wrote: > On 2/5/21 1:52 PM, Suren Baghdasaryan wrote: > > > > > I takes your suggestion something like this. > > > > > > > > > > [alloc_range] could be order or range by interval > > > > > > > > > >

[PATCH v2 5/5] dax-device: Make remove callback return void

2021-02-05 Thread Uwe Kleine-König
The driver core ignores the return value of struct bus_type::remove() because there is only little that can be done. To simplify the quest to make this function return void, let struct dax_device_driver::remove() return void, too. All users already unconditionally return 0, this commit makes it

Re: [PATCH v10 2/5] sched: CGroup tagging interface for core scheduling

2021-02-05 Thread Chris Hyser
On 2/5/21 5:43 AM, Peter Zijlstra wrote: On Thu, Feb 04, 2021 at 03:52:55PM -0500, Chris Hyser wrote: A second complication was a decision that new processes (not threads) do not inherit their parents cookie. Thus forking is also not a means to share a cookie. Basically with a "from-only"

[PATCH v2 2/2] kunit: ubsan integration

2021-02-05 Thread Daniel Latypov
From: Uriel Guajardo Integrates UBSAN into the KUnit testing framework. It fails KUnit tests whenever it reports undefined behavior. When CONFIG_KUNIT=n, nothing is printed or even formatted, so this has no behavioral impact outside of tests. kunit_fail_current_test() effectively does a

Re: [PATCH v2 21/28] KVM: x86/mmu: Flush TLBs after zap in TDP MMU PF handler

2021-02-05 Thread Sean Christopherson
On Tue, Feb 02, 2021, Ben Gardon wrote: > +static inline bool tdp_mmu_zap_spte_atomic(struct kvm *kvm, > +struct tdp_iter *iter) > +{ > + /* > + * Freeze the SPTE by setting it to a special, > + * non-present value. This will stop other threads

[net-next v4 10/14] octeontx2-af: cn10K: Add MTU configuration

2021-02-05 Thread Geetha sowjanya
From: Hariprasad Kelam OcteonTx3 CN10K silicon supports bigger MTU when compared to 9216 MTU supported by OcteonTx2 silicon variants. Lookback interface supports upto 64K and RPM LMAC interfaces support upto 16K. This patch does the necessary configuration and adds support for PF/VF drivers to

Re: [RFC][PATCH v6 1/7] drm: Add a sharable drm page-pool implementation

2021-02-05 Thread Suren Baghdasaryan
On Fri, Feb 5, 2021 at 12:47 PM John Stultz wrote: > > On Fri, Feb 5, 2021 at 12:47 AM Christian König > wrote: > > Am 05.02.21 um 09:06 schrieb John Stultz: > > > diff --git a/drivers/gpu/drm/page_pool.c b/drivers/gpu/drm/page_pool.c > > > new file mode 100644 > > > index

[net-next v4 02/14] octeontx2-pf: cn10k: Add mbox support for CN10K

2021-02-05 Thread Geetha sowjanya
From: Subbaraya Sundeep Firmware allocates memory regions for PFs and VFs in DRAM. The PFs memory region is used for AF-PF and PF-VF mailbox. This mbox facilitate communication between AF-PF and PF-VF. On CN10K platform: The DRAM region allocated to PF is enumerated as PF BAR4 memory. PF BAR4

Re: [PATCH 1/3] cfg80211: Add wiphy flag to trigger STA disconnect after hardware restart

2021-02-05 Thread Abhishek Kumar
LGTM! If no one has any objections, I would be happy to see this considered for upstream. Reviewed-by: Abhishek Kumar Thanks Abhishek On Tue, Dec 15, 2020 at 9:30 AM Youghandhar Chintala wrote: > > Many wifi drivers (e.g. ath10k using qualcomm wifi chipsets) > support silent target hardware

Re: [PATCH] tmpfs: Disallow CONFIG_TMPFS_INODE64 on s390

2021-02-05 Thread Chris Down
Andrew Morton writes: Currently there is an assumption in tmpfs that 64-bit architectures also have a 64-bit ino_t. This is not true on s390 which has a 32-bit ino_t. With CONFIG_TMPFS_INODE64=y tmpfs mounts will get 64-bit inode numbers and display "inode64" in the mount options, but passing

[PATCH] Remove the GOLDFISH dependency from BATTERY_GOLDFISH

2021-02-05 Thread rkir
From: Roman Kiryanov This will allow to use the BATTERY_GOLDFISH driver without enabling GOLDFISH. Signed-off-by: Roman Kiryanov --- drivers/power/supply/Kconfig | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/power/supply/Kconfig

Re: [PATCH] powerpc/8xx: Fix software emulation interrupt

2021-02-05 Thread Nicholas Piggin
Excerpts from Christophe Leroy's message of February 5, 2021 6:56 pm: > For unimplemented instructions or unimplemented SPRs, the 8xx triggers > a "Software Emulation Exception" (0x1000). That interrupt doesn't set > reason bits in SRR1 as the "Program Check Exception" does. > > Go through

[PATCH 4/5] block: export diskseq in sysfs

2021-02-05 Thread Matteo Croce
From: Matteo Croce Add a new sysfs handle to export the new diskseq value. Place it in /block//diskseq and document it. Signed-off-by: Matteo Croce --- Documentation/ABI/testing/sysfs-block | 12 block/genhd.c | 11 +++ 2 files changed, 23

Re: [PATCH] mm: page_alloc: update the COMPACT[STALL|FAIL] events properly

2021-02-05 Thread Charan Teja Kalla
On 2/6/2021 3:58 AM, David Rientjes wrote: >> In the code, when COMPACT_SKIPPED is being returned, the page will >> always be NULL. So, I'm not sure how much useful it is for the page == >> NULL check here. Or I failed to understand your point here? >> > Your code is short-circuiting the rest of

Re: [PATCH v2] mm: memcontrol: replace the loop with a list_for_each_entry()

2021-02-05 Thread Shakeel Butt
On Thu, Feb 4, 2021 at 8:39 AM Muchun Song wrote: > > The rule of list walk has gone since: > > commit a9d5adeeb4b2 ("mm/memcontrol: allow to uncharge page without using > page->lru field") > > So remove the strange comment and replace the loop with a > list_for_each_entry(). > > There is only

Re: [PATCH net 1/1] net: stmmac: set TxQ mode back to DCB after disabling CBS

2021-02-05 Thread Vinicius Costa Gomes
Song Yoong Siang writes: > From: Mohammad Athari Bin Ismail > > When disable CBS, mode_to_use parameter is not updated even the operation > mode of Tx Queue is changed to Data Centre Bridging (DCB). Therefore, > when tc_setup_cbs() function is called to re-enable CBS, the operation > mode of Tx

[RFC v3 06/10] drm/i915/dpcd_bl: Cache some backlight capabilities in intel_panel.backlight

2021-02-05 Thread Lyude Paul
Since we're about to be moving this code into shared DRM helpers, we might as well start to cache certain backlight capabilities that can be determined from the EDP DPCD, and are likely to be relevant to the majority of drivers using said helpers. The main purpose of this is just to prevent every

RE: [PATCH 1/2] platform/chrome: cros_ec_typec: Skip port partner check in configure_mux()

2021-02-05 Thread Mani, Rajmohan
Hi Prashant, > -Original Message- > From: Prashant Malani > Sent: Friday, February 05, 2021 12:07 PM > To: Mani, Rajmohan > Cc: Benson Leung ; Enric Balletbo i Serra > ; Guenter Roeck ; > Linux Kernel Mailing List ; Heikki Krogerus > > Subject: Re: [PATCH 1/2] platform/chrome:

[RFC v3 09/10] drm/i915/dpcd_bl: Print return codes for VESA backlight failures

2021-02-05 Thread Lyude Paul
Also, stop printing the DPCD register that failed, and just describe it instead. Saves us from having to look up each register offset when reading through kernel logs (plus, DPCD dumping with drm.debug |= 0x100 will give us that anyway). Signed-off-by: Lyude Paul ---

[RFC v3 08/10] drm/i915/dpcd_bl: Return early in vesa_calc_max_backlight if we can't read PWMGEN_BIT_COUNT

2021-02-05 Thread Lyude Paul
If we can't read DP_EDP_PWMGEN_BIT_COUNT in intel_dp_aux_vesa_calc_max_backlight() but do have a valid PWM frequency defined in the VBT, we'll keep going in the function until we inevitably fail on reading DP_EDP_PWMGEN_BIT_COUNT_CAP_MIN. There's not much point in doing this, so just return early.

Re: [PATCH net-next] net/packet: Improve the comment about LL header visibility criteria

2021-02-05 Thread Willem de Bruijn
On Fri, Feb 5, 2021 at 5:42 PM Xie He wrote: > > The "dev_has_header" function, recently added in > commit d549699048b4 ("net/packet: fix packet receive on L3 devices > without visible hard header"), > is more accurate as criteria for determining whether a device exposes > the LL header to upper

Re: [PATCH v10 12/16] KVM: x86: Introduce new KVM_FEATURE_SEV_LIVE_MIGRATION feature & Custom MSR.

2021-02-05 Thread Steve Rutherford
On Thu, Feb 4, 2021 at 7:08 PM Ashish Kalra wrote: > > Hello Steve, > > On Thu, Feb 04, 2021 at 04:56:35PM -0800, Steve Rutherford wrote: > > On Wed, Feb 3, 2021 at 4:39 PM Ashish Kalra wrote: > > > > > > From: Ashish Kalra > > > > > > Add new KVM_FEATURE_SEV_LIVE_MIGRATION feature for guest to

[RFC v3 10/10] drm/dp: Extract i915's eDP backlight code into DRM helpers

2021-02-05 Thread Lyude Paul
Since we're about to implement eDP backlight support in nouveau using the standard protocol from VESA, we might as well just take the code that's already written for this and move it into a set of shared DRM helpers. Note that these helpers are intended to handle DPCD related backlight control

Re: [Nouveau] [RFC v3 05/10] drm/i915/dpcd_bl: Cleanup intel_dp_aux_vesa_enable_backlight() a bit

2021-02-05 Thread Ilia Mirkin
On Fri, Feb 5, 2021 at 6:45 PM Lyude Paul wrote: > > Get rid of the extraneous switch case in here, and just open code > edp_backlight_mode as we only ever use it once. > > Signed-off-by: Lyude Paul > --- > .../gpu/drm/i915/display/intel_dp_aux_backlight.c | 15 ++- > 1 file

[RFC v3 07/10] drm/i915/dpcd_bl: Move VESA backlight enabling code closer together

2021-02-05 Thread Lyude Paul
No functional changes, just move set_vesa_backlight_enable() closer to it's only caller: intel_dp_aux_vesa_enable_backlight(). Signed-off-by: Lyude Paul --- .../drm/i915/display/intel_dp_aux_backlight.c | 54 +-- 1 file changed, 27 insertions(+), 27 deletions(-) diff --git

Re: [PATCH 4/8] cgroup: rstat: support cgroup1

2021-02-05 Thread Tejun Heo
On Fri, Feb 05, 2021 at 01:28:02PM -0500, Johannes Weiner wrote: > Rstat currently only supports the default hierarchy in cgroup2. In > order to replace memcg's private stats infrastructure - used in both > cgroup1 and cgroup2 - with rstat, the latter needs to support cgroup1. > > The

Re: ANNOUNCE: pahole v1.20 (gcc11 DWARF5's default, lots of ELF sections, BTF)

2021-02-05 Thread Arnaldo Carvalho de Melo
Em Fri, Feb 05, 2021 at 02:11:44PM -0800, Andrii Nakryiko escreveu: > On Fri, Feb 5, 2021 at 8:25 AM Arnaldo Carvalho de Melo > wrote: > > > > Em Fri, Feb 05, 2021 at 06:33:43AM -0300, Arnaldo Carvalho de Melo escreveu: > > > On February 5, 2021 4:39:47 AM GMT-03:00, Andrii Nakryiko > > >

Test Email

2021-02-05 Thread sathyanarayanan . kuppuswamy
From: Kuppuswamy Sathyanarayanan Hi All, Sending a test email to verify my mail server. please ignore it. -- 2.25.1

Re: [PATCH v11 1/4] dt-bindings: gpu: mali-bifrost: Add Mediatek MT8183

2021-02-05 Thread Nicolas Boichat
On Sat, Feb 6, 2021 at 1:55 AM Rob Herring wrote: > > On Tue, 26 Jan 2021 09:17:56 +0800, Nicolas Boichat wrote: > > Define a compatible string for the Mali Bifrost GPU found in > > Mediatek's MT8183 SoCs. > > > > Signed-off-by: Nicolas Boichat > > --- > > > > Changes in v11: > > - binding:

Re: [PATCH v2 1/1] powerpc/kvm: Save Timebase Offset to fix sched_clock() while running guest code.

2021-02-05 Thread Nicholas Piggin
Excerpts from Leonardo Bras's message of February 5, 2021 5:01 pm: > Hey Nick, thanks for reviewing :) > > On Fri, 2021-02-05 at 16:28 +1000, Nicholas Piggin wrote: >> Excerpts from Leonardo Bras's message of February 5, 2021 4:06 pm: >> > Before guest entry, TBU40 register is changed to reflect

[RFC v3 05/10] drm/i915/dpcd_bl: Cleanup intel_dp_aux_vesa_enable_backlight() a bit

2021-02-05 Thread Lyude Paul
Get rid of the extraneous switch case in here, and just open code edp_backlight_mode as we only ever use it once. Signed-off-by: Lyude Paul --- .../gpu/drm/i915/display/intel_dp_aux_backlight.c | 15 ++- 1 file changed, 2 insertions(+), 13 deletions(-) diff --git

[RFC v3 01/10] drm/nouveau/kms/nv40-/backlight: Assign prop type once

2021-02-05 Thread Lyude Paul
Signed-off-by: Lyude Paul Cc: Jani Nikula Cc: Dave Airlie Cc: greg.depo...@gmail.com --- drivers/gpu/drm/nouveau/nouveau_backlight.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/gpu/drm/nouveau/nouveau_backlight.c b/drivers/gpu/drm/nouveau/nouveau_backlight.c

[PATCH 2/5] block: add ioctl to read the disk sequence number

2021-02-05 Thread Matteo Croce
From: Matteo Croce Add a new BLKGETDISKSEQ ioctl which retrieves the disk sequence number from the genhd structure. Signed-off-by: Matteo Croce --- block/ioctl.c | 2 ++ include/uapi/linux/fs.h | 1 + 2 files changed, 3 insertions(+) diff --git a/block/ioctl.c b/block/ioctl.c index

Re: [PATCH v4 0/8] Make fw_devlink=on more forgiving

2021-02-05 Thread Saravana Kannan
On Fri, Feb 5, 2021 at 2:26 PM Saravana Kannan wrote: > > There are a lot of devices/drivers where they never have a struct device > created for them or the driver initializes the hardware without ever > binding to the struct device. > > This series is intended to avoid any boot regressions due

[RFC v3 04/10] drm/i915/dpcd_bl: Handle drm_dpcd_read/write() return values correctly

2021-02-05 Thread Lyude Paul
This is kind of an annoying aspect of DRM's DP helpers: drm_dp_dpcd_readb/writeb() return the size of bytes read/written on success, thus we want to check against that instead of checking if the return value is less than 0. I'll probably be fixing this in the near future once I start doing DP

[RFC v3 02/10] drm/nouveau/kms: Don't probe eDP connectors more then once

2021-02-05 Thread Lyude Paul
eDP doesn't do hotplugging, so there's no reason for us to reprobe it (unless a connection status change is being forced, of course). Signed-off-by: Lyude Paul Cc: Jani Nikula Cc: Dave Airlie Cc: greg.depo...@gmail.com --- drivers/gpu/drm/nouveau/nouveau_connector.c | 6 ++ 1 file

[RFC v3 03/10] drm/i915/dpcd_bl: Remove redundant AUX backlight frequency calculations

2021-02-05 Thread Lyude Paul
Noticed this while moving all of the VESA backlight code in i915 over to DRM helpers: it would appear that we calculate the frequency value we want to write to DP_EDP_BACKLIGHT_FREQ_SET twice even though this value never actually changes during runtime. So, let's simplify things by just caching

Re: ANNOUNCE: pahole v1.20 (gcc11 DWARF5's default, lots of ELF sections, BTF)

2021-02-05 Thread Andrii Nakryiko
On Fri, Feb 5, 2021 at 8:25 AM Arnaldo Carvalho de Melo wrote: > > Em Fri, Feb 05, 2021 at 06:33:43AM -0300, Arnaldo Carvalho de Melo escreveu: > > On February 5, 2021 4:39:47 AM GMT-03:00, Andrii Nakryiko > > wrote: > > >On Thu, Feb 4, 2021 at 8:34 PM Arnaldo Carvalho de Melo > > >> wrote: >

[git pull] Input updates for v5.11-rc6

2021-02-05 Thread Dmitry Torokhov
Hi Linus, Please pull from: git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input.git for-linus to receive updates for the input subsystem. Nothing terribly interesting, just a few fixups. Changelog: - Alexey Dobriyan (1): Input: i8042 - unbreak Pegatron C15B

WARNING in init_timer_key

2021-02-05 Thread syzbot
Hello, syzbot found the following issue on: HEAD commit:1048ba83 Linux 5.11-rc6 git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=10b58bd8d0 kernel config: https://syzkaller.appspot.com/x/.config?x=3ae5569643a9955f dashboard link:

[PATCH net-next v2 4/7] net: ipa: remove two unused register definitions

2021-02-05 Thread Alex Elder
We do not support inter-EE channel or event ring commands. Inter-EE interrupts are disabled (and never re-enabled) for all channels and event rings, so we have no need for the GSI registers that clear those interrupt conditions. So remove their definitions. Signed-off-by: Alex Elder ---

Re: [PATCH v5 7/7] dt-bindings: cpufreq: qcom-hw: Add bindings for 8998

2021-02-05 Thread AngeloGioacchino Del Regno
Il 05/02/21 22:51, Rob Herring ha scritto: On Thu, Jan 21, 2021 at 08:52:50PM +0100, AngeloGioacchino Del Regno wrote: The OSM programming addition has been done under the qcom,cpufreq-hw-8998 compatible name: specify the requirement of two additional register spaces for this functionality.

Re: [PATCH] fs/buffer.c: Add checking buffer head stat before clear

2021-02-05 Thread Andrew Morton
On Wed, 3 Feb 2021 14:14:50 +0800 Shaokun Zhang wrote: > From: Yang Guo > > clear_buffer_new() is used to clear buffer new stat. When PAGE_SIZE > is 64K, most buffer heads in the list are not needed to clear. > clear_buffer_new() has an enpensive atomic modification operation, > Let's add

[PATCH 0/5] block: add a sequence number to disks

2021-02-05 Thread Matteo Croce
From: Matteo Croce With this series a monotonically increasing number is added to disks, precisely in the genhd struct, and it's exported in sysfs and uevent. This helps the userspace correlate events for devices that reuse the same device, like loop. The first patch is the core one, the 2..4

[PATCH v4 2/8] of: property: Don't add links to absent suppliers

2021-02-05 Thread Saravana Kannan
If driver core marks a firmware node as not a device, don't add fwnode links where it's a supplier. Fixes: e590474768f1 ("driver core: Set fw_devlink=on by default") Signed-off-by: Saravana Kannan --- drivers/of/property.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git

[PATCH v2 4/5] dax-device: Drop an empty .remove callback

2021-02-05 Thread Uwe Kleine-König
The dax core properly handles a dax driver not having a remove callback. So drop it without changing the effective behaviour. Signed-off-by: Uwe Kleine-König --- drivers/dax/device.c | 8 +--- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/drivers/dax/device.c

Re: [PATCH v4 2/2] dmabuf: Add dmabuf inode number to /proc/*/fdinfo

2021-02-05 Thread Randy Dunlap
On 2/5/21 1:33 PM, Kalesh Singh wrote: > And 'inode_no' field to /proc//fdinfo/ and > /proc//task//fdinfo/. > > The inode numbers can be used to uniquely identify DMA buffers > in user space and avoids a dependency on /proc//fd/* when > accounting per-process DMA buffer sizes. > > Signed-off-by:

[PATCH v4 1/3] kunit: add kunit.filter_glob cmdline option to filter suites

2021-02-05 Thread Daniel Latypov
E.g. specifying this would run suites with "list" in their name. kunit.filter_glob=list* Note: the executor prints out a TAP header that includes the number of suites we intend to run. So unless we want to report empty results for filtered-out suites, we need to do the filtering here in the

Re: [Patch v4 1/3] lib: Restrict cpumask_local_spread to houskeeping CPUs

2021-02-05 Thread Thomas Gleixner
On Fri, Feb 05 2021 at 23:23, Thomas Gleixner wrote: > On Thu, Feb 04 2021 at 14:17, Nitesh Narayan Lal wrote: >> On 2/4/21 2:06 PM, Marcelo Tosatti wrote: > How about adding a new flag for isolcpus instead? > Do you mean a flag based on which we can switch the affinity mask to

[PATCH 3/5] block: refactor sysfs code

2021-02-05 Thread Matteo Croce
From: Matteo Croce Move the sysfs register code from a function named disk_add_events() to a new function named disk_add_sysfs(). Also, rename the attribute list with a more generic name than disk_events_attrs. Signed-off-by: Matteo Croce --- block/genhd.c | 13 + 1 file changed,

Re: [PATCH 0/3] Fix some seq_file users that were recently broken

2021-02-05 Thread Andrew Morton
On Fri, 05 Feb 2021 11:36:30 +1100 NeilBrown wrote: > A recent change to seq_file broke some users which were using seq_file > in a non-"standard" way ... though the "standard" isn't documented, so > they can be excused. The result is a possible leak - of memory in one > case, of references to

Re: [PATCH 3/3] ath10k: Set wiphy flag to trigger sta disconnect on hardware restart

2021-02-05 Thread Abhishek Kumar
> I'm not sure what you mean. But if you are saying that we should move > ath10k_hw_params_list entirely to firmware then that is a huge task as > we would need to make changes in every firmware branch, and there are so > many different branches that I have lost count. And due to backwards >

Re: [PATCH 0/6] spin lock usage optimization for RTC drivers

2021-02-05 Thread Alexandre Belloni
On Wed, 3 Feb 2021 20:39:35 +0800, Xiaofei Tan wrote: > Replace spin_lock_irqsave with spin_lock in hard IRQ of RTC drivers. > There is no function changes, but may speed up if interrupt happen > too often. > > Xiaofei Tan (6): > rtc: cmos: Replace spin_lock_irqsave with spin_lock in hard IRQ >

Re: [PATCH v9 1/3] vmlinux.lds.h: add DWARF v5 sections

2021-02-05 Thread Nick Desaulniers
On Fri, Feb 5, 2021 at 4:00 PM Andrew Morton wrote: > > On Fri, 5 Feb 2021 12:22:18 -0800 Nick Desaulniers > wrote: > > > We expect toolchains to produce these new debug info sections as part of > > DWARF v5. Add explicit placements to prevent the linker warnings from > >

Re: [PATCH] staging: rtl8188eu: Add Edimax EW-7811UN V2 to device table

2021-02-05 Thread Larry Finger
On 2/4/21 2:52 AM, Martin Kaiser wrote: The Edimax EW-7811UN V2 uses an RTL8188EU chipset and works with this driver. Signed-off-by: Martin Kaiser --- drivers/staging/rtl8188eu/os_dep/usb_intf.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/staging/rtl8188eu/os_dep/usb_intf.c

[net-next v4 11/14] octeontx2-pf: cn10k: Get max mtu supported from admin function

2021-02-05 Thread Geetha sowjanya
From: Hariprasad Kelam CN10K supports max MTU of 16K on LMAC links and 64k on LBK links and Octeontx2 silicon supports 9K mtu on both links. Get the same from nix_get_hw_info mbox message in netdev probe. This patch also calculates receive buffer size required based on the MTU set.

Re: [PATCH] MIPS: crash_dump.c: Simplify copy_oldmem_page()

2021-02-05 Thread kernel test robot
' as documented in https://git-scm.com/docs/git-format-patch] url: https://github.com/0day-ci/linux/commits/Youling-Tang/MIPS-crash_dump-c-Simplify-copy_oldmem_page/20210205-174220 base: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git 61556703b610a104de324e4f061dc6cf7b218b46 config

Re: [PATCH v6 8/8] bus: mhi: core: Do not clear channel context more than once

2021-02-05 Thread Hemant Kumar
On 2/4/21 12:28 PM, Bhaumik Bhatt wrote: Clearing a channel context can happen twice if the client driver unprepares and reset the channels from the remove() callback from a controller requested MHI power down sequence. If there are multiple attempts at calling the mhi_free_coherent() API, we

Re: [PATCH 4.19 00/17] 4.19.174-rc1 review

2021-02-05 Thread Pavel Machek
Hi! > This is the start of the stable review cycle for the 4.19.174 release. > There are 17 patches in this series, all will be posted as a response > to this one. If anyone has any issues with these being applied, please > let me know. CIP testing did not find any problems here:

[PATCH] media: usbtv: Fix deadlock on suspend

2021-02-05 Thread Maxim Mikityanskiy
usbtv doesn't support power management, so on system suspend the .disconnect callback of the driver is called. The teardown sequence includes a call to snd_card_free. Its implementation waits until the refcount of the sound card device drops to zero, however, if its file is open, snd_card_file_add

[net-next v4 05/14] octeontx2-pf: cn10k: Initialise NIX context

2021-02-05 Thread Geetha sowjanya
On CN10K platform NIX RQ and SQ context structure got changed. This patch uses new mbox message "NIX_CN10K_AQ_ENQ" for NIX context initialization on CN10K platform. This patch also updates the nix_rx_parse_s and nix_sqe_sg_s structures to add packet steering bit feilds. Signed-off-by: Geetha

[PATCH net-next v2 1/7] net: ipa: move mutex calls into __gsi_channel_stop()

2021-02-05 Thread Alex Elder
Move the mutex calls out of gsi_channel_stop_retry() and into __gsi_channel_stop(), to make the latter more semantically similar to to __gsi_channel_start(). Signed-off-by: Alex Elder --- v2: - Return early in some cases, to avoid blocks of indented code - Update description, to better

Re: [PATCH v10 2/5] sched: CGroup tagging interface for core scheduling

2021-02-05 Thread Josh Don
On Fri, Feb 5, 2021 at 3:53 AM Peter Zijlstra wrote: > > On Fri, Jan 22, 2021 at 08:17:01PM -0500, Joel Fernandes (Google) wrote: > > > +/* All active sched_core_cookies */ > > +static struct rb_root sched_core_cookies = RB_ROOT; > > +static DEFINE_RAW_SPINLOCK(sched_core_cookies_lock); > > > +/*

Re: WARNING: ODEBUG bug in slave_kobj_release

2021-02-05 Thread syzbot
syzbot has found a reproducer for the following issue on: HEAD commit:4d469ec8 Merge branch '1GbE' of git://git.kernel.org/pub/s.. git tree: net-next console output: https://syzkaller.appspot.com/x/log.txt?x=10aa7b54d0 kernel config:

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