[PATCH 0/5] Introduce support for PSF mitigation

2021-04-06 Thread Ramakrishna Saripalli
From: Ramakrishna Saripalli Predictive Store Forwarding: AMD Zen3 processors feature a new technology called Predictive Store Forwarding (PSF). PSF is a hardware-based micro-architectural optimization designed to improve the performance of code execution by predicting address dependencies

Re: [RFC net-next 2/4] net: dsa: mt7530: add interrupt support

2021-04-06 Thread Andrew Lunn
On Tue, Apr 06, 2021 at 11:39:12PM +0800, DENG Qingfang wrote: > On Tue, Apr 6, 2021 at 11:30 PM Andrew Lunn wrote: > > > > On Tue, Apr 06, 2021 at 10:18:17PM +0800, DENG Qingfang wrote: > > > Add support for MT7530 interrupt controller to handle internal PHYs. > > > > Are the interrupts purely

Re: [PATCH 5.10 096/126] KVM: x86/mmu: Use atomic ops to set SPTEs in TDP MMU map

2021-04-06 Thread Paolo Bonzini
On 06/04/21 15:49, Sasha Levin wrote: On Tue, Apr 06, 2021 at 08:09:26AM +0200, Paolo Bonzini wrote: Whoa no, you have included basically a whole new feature, except for the final patch that actually enables the feature.  The whole new MMU Right, we would usually grab dependencies rather

Re: [PATCH v11 08/13] KVM: X86: Introduce KVM_HC_PAGE_ENC_STATUS hypercall

2021-04-06 Thread Sean Christopherson
On Mon, Apr 05, 2021, Ashish Kalra wrote: > From: Ashish Kalra ... > diff --git a/arch/x86/include/asm/kvm_host.h b/arch/x86/include/asm/kvm_host.h > index 3768819693e5..78284ebbbee7 100644 > --- a/arch/x86/include/asm/kvm_host.h > +++ b/arch/x86/include/asm/kvm_host.h > @@ -1352,6 +1352,8 @@

Re: [RFC Part1 PATCH 06/13] x86/compressed: rescinds and validate the memory used for the GHCB

2021-04-06 Thread Brijesh Singh
On 4/6/21 5:33 AM, Borislav Petkov wrote: > On Wed, Mar 24, 2021 at 11:44:17AM -0500, Brijesh Singh wrote: >> Many of the integrity guarantees of SEV-SNP are enforced through the >> Reverse Map Table (RMP). Each RMP entry contains the GPA at which a >> particular page of DRAM should be mapped.

Re: [RFC net-next 1/4] net: phy: add MediaTek PHY driver

2021-04-06 Thread Chun-Kuang Hu
Hi, Qingfang: DENG Qingfang 於 2021年4月6日 週二 下午10:19寫道: > > Add support for MediaTek PHYs found in MT7530 and MT7531 switches. > The initialization procedure is from the vendor driver, but due to lack > of documentation, the function of some register values remains unknown. > > Signed-off-by: DENG

Re: [PATCH -next] NFSD: Use DEFINE_SPINLOCK() for spinlock

2021-04-06 Thread Chuck Lever III
> On Apr 6, 2021, at 8:08 AM, Huang Guobin wrote: > > From: Guobin Huang > > spinlock can be initialized automatically with DEFINE_SPINLOCK() > rather than explicitly calling spin_lock_init(). > > Reported-by: Hulk Robot > Signed-off-by: Guobin Huang This same patch was sent last July,

Re: [PATCH rdma-next 4/8] IB/core: Skip device which doesn't have necessary capabilities

2021-04-06 Thread Jason Gunthorpe
On Mon, Apr 05, 2021 at 08:49:56AM +0300, Leon Romanovsky wrote: > @@ -2293,6 +2295,17 @@ static void ib_sa_event(struct ib_event_handler > *handler, > } > } > > +static bool ib_sa_client_supported(struct ib_device *device) > +{ > + unsigned int i; > + > +

[Outreachy kernel] [PATCH v2] staging: rtl8723bs: hal: Add spaces around operators

2021-04-06 Thread Fabio M. De Francesco
Added spaces around operators in file HalBtc8723b1Ant.c. Issue detected by checkpatch.pl. Spaces are preferred to improve readibility. Signed-off-by: Fabio M. De Francesco --- Patch v2 adds spaces around an operator at line 1355. Overlooked in v1. .../staging/rtl8723bs/hal/HalBtc8723b1Ant.c

Re: [PATCH v2] ACPI: processor: Fix build when CONFIG_ACPI_PROCESSOR=m

2021-04-06 Thread Rafael J. Wysocki
On Tue, Apr 6, 2021 at 5:39 PM Vitaly Kuznetsov wrote: > > "Rafael J. Wysocki" writes: > > > On Tue, Apr 6, 2021 at 4:01 PM Vitaly Kuznetsov wrote: > >> > >> Commit 8c182bd7 ("ACPI: processor: Fix CPU0 wakeup in > >> acpi_idle_play_dead()") tried to fix CPU0 hotplug breakage by copying > >>

Re: [PATCH v9 4/8] Reimplement RLIMIT_NPROC on top of ucounts

2021-04-06 Thread Alexey Gladkov
On Mon, Apr 05, 2021 at 11:56:35AM -0500, Eric W. Biederman wrote: > > Also when setting ns->ucount_max[] in create_user_ns because one value > is signed and the other is unsigned. Care should be taken so that > rlimit_infinity is translated into the largest positive value the > type can hold.

Re: [PATCH bpf-next v2 4/6] libbpf: Initialize the bpf_seq_printf parameters array field by field

2021-04-06 Thread Florent Revest
On Sat, Mar 27, 2021 at 12:01 AM Andrii Nakryiko wrote: > > On Tue, Mar 23, 2021 at 7:23 PM Florent Revest wrote: > > > > When initializing the __param array with a one liner, if all args are > > const, the initial array value will be placed in the rodata section but > > because libbpf does not

Re: [PATCH v5 0/2] ata: ahci_brcm: Fix use of BCM7216 reset controller

2021-04-06 Thread Lorenzo Pieralisi
On Fri, 12 Mar 2021 15:45:53 -0500, Jim Quinlan wrote: > v5 -- Improved (I hope) commit description (Bjorn). >-- Rnamed error labels (Krzyszt). >-- Fixed typos. > > v4 -- does not rely on a pending commit, unlike v3. > > v3 -- discard commit from v2; instead rely on the new function >

[V2][PATCH] clk: zynqmp: move zynqmp_pll_set_mode out of round_rate callback

2021-04-06 Thread quanyang . wang
From: Quanyang Wang The round_rate callback should only perform rate calculation and not involve calling zynqmp_pll_set_mode to change the pll mode. So let's move zynqmp_pll_set_mode out of round_rate and to set_rate callback. Fixes: 3fde0e16d016 ("drivers: clk: Add ZynqMP clock driver")

Re: [PATCH v1 1/1] mfd: core: Use acpi_find_child_device() for child devices lookup

2021-04-06 Thread Lee Jones
On Tue, 06 Apr 2021, Andy Shevchenko wrote: > Use acpi_find_child_device() for child devices lookup in mfd_acpi_add_device() > instead of open coded approach. No functional change intended. > > While at it, amend a note comment, since usage of _ADR is found on other > platforms and tables than

Re: [PATCH bpf-next v2 6/6] selftests/bpf: Add a series of tests for bpf_snprintf

2021-04-06 Thread Florent Revest
On Sat, Mar 27, 2021 at 12:05 AM Andrii Nakryiko wrote: > > On Tue, Mar 23, 2021 at 7:23 PM Florent Revest wrote: > > > > This exercises most of the format specifiers when things go well. > > > > Signed-off-by: Florent Revest > > --- > > Looks good. Please add a no-argument test case as well.

Re: [PATCH 1/3] fpga: dfl: pci: add DID for D5005 PAC cards

2021-04-06 Thread matthew . gerlach
On Mon, 5 Apr 2021, Moritz Fischer wrote: On Mon, Apr 05, 2021 at 04:52:59PM -0700, matthew.gerl...@linux.intel.com wrote: From: Russ Weight This patch adds the approved PCI Express Device IDs for the PF and VF for the card for D5005 PAC cards. Signed-off-by: Russ Weight Signed-off-by:

Re: [PATCH v2] ACPI: processor: Fix build when CONFIG_ACPI_PROCESSOR=m

2021-04-06 Thread Vitaly Kuznetsov
"Rafael J. Wysocki" writes: > On Tue, Apr 6, 2021 at 4:01 PM Vitaly Kuznetsov wrote: >> >> Commit 8c182bd7 ("ACPI: processor: Fix CPU0 wakeup in >> acpi_idle_play_dead()") tried to fix CPU0 hotplug breakage by copying >> wakeup_cpu0() + start_cpu0() logic from

Re: [RFC net-next 2/4] net: dsa: mt7530: add interrupt support

2021-04-06 Thread DENG Qingfang
On Tue, Apr 6, 2021 at 11:30 PM Andrew Lunn wrote: > > On Tue, Apr 06, 2021 at 10:18:17PM +0800, DENG Qingfang wrote: > > Add support for MT7530 interrupt controller to handle internal PHYs. > > Are the interrupts purely PHY interrupts? Or are there some switch > operation interrupts, which are

Re: [PATCH bpf-next v2 2/6] bpf: Add a ARG_PTR_TO_CONST_STR argument type

2021-04-06 Thread Florent Revest
On Fri, Mar 26, 2021 at 11:23 PM Andrii Nakryiko wrote: > On Tue, Mar 23, 2021 at 7:23 PM Florent Revest wrote: > > + > > + map_off = reg->off + reg->var_off.value; > > + err = map->ops->map_direct_value_addr(map, _addr, > > map_off); > > + if (err) > >

Re: [RFC v1 21/26] x86/mm: Move force_dma_unencrypted() to common code

2021-04-06 Thread Kirill A. Shutemov
On Thu, Apr 01, 2021 at 01:06:29PM -0700, Dave Hansen wrote: > On 2/5/21 3:38 PM, Kuppuswamy Sathyanarayanan wrote: > > From: "Kirill A. Shutemov" > > > > Intel TDX doesn't allow VMM to access guest memory. Any memory that is > > required for communication with VMM suppose to be shared

Re: [RFC net-next 1/4] net: phy: add MediaTek PHY driver

2021-04-06 Thread DENG Qingfang
On Tue, Apr 6, 2021 at 11:21 PM Andrew Lunn wrote: > > On Tue, Apr 06, 2021 at 10:18:16PM +0800, DENG Qingfang wrote: > > Add support for MediaTek PHYs found in MT7530 and MT7531 switches. > > Do you know if this PHY is available standalone? Not that I know of. > > > +static int

[PATCH net-next v2 2/2] of: net: fix of_get_mac_addr_nvmem() for PCI and DSA nodes

2021-04-06 Thread Michael Walle
of_get_mac_address() already supports fetching the MAC address by an nvmem provider. But until now, it was just working for platform devices. Esp. it was not working for DSA ports and PCI devices. It gets more common that PCI devices have a device tree binding since SoCs contain integrated root

[PATCH net-next v2 1/2] of: net: pass the dst buffer to of_get_mac_address()

2021-04-06 Thread Michael Walle
of_get_mac_address() returns a "const void*" pointer to a MAC address. Lately, support to fetch the MAC address by an NVMEM provider was added. But this will only work with platform devices. It will not work with PCI devices (e.g. of an integrated root complex) and esp. not with DSA ports. There

[PATCH net-next v2 0/2] of: net: support non-platform devices in of_get_mac_address()

2021-04-06 Thread Michael Walle
of_get_mac_address() is commonly used to fetch the MAC address from the device tree. It also supports reading it from a NVMEM provider. But the latter is only possible for platform devices, because only platform devices are searched for a matching device node. Add a second method to fetch the

Re: [PATCH v4 3/3] sched/fair: Introduce a CPU capacity comparison helper

2021-04-06 Thread Dietmar Eggemann
On 01/04/2021 21:30, Valentin Schneider wrote: > During load-balance, groups classified as group_misfit_task are filtered > out if they do not pass > > group_smaller_max_cpu_capacity(, ); > > which itself employs fits_capacity() to compare the sgc->max_capacity of > both groups. > > Due to

Re: [syzbot] WARNING in mntput_no_expire (2)

2021-04-06 Thread Jens Axboe
On 4/6/21 8:23 AM, Al Viro wrote: > On Tue, Apr 06, 2021 at 02:15:01PM +, Al Viro wrote: > >> I'm referring to the fact that your diff is with an already modified >> path_lookupat() >> _and_ those modifications have managed to introduce a bug your patch reverts. >> No terminate_walk() paired

Re: [PATCH v4 2/3] sched/fair: Clean up active balance nr_balance_failed trickery

2021-04-06 Thread Dietmar Eggemann
On 01/04/2021 21:30, Valentin Schneider wrote: > When triggering an active load balance, sd->nr_balance_failed is set to > such a value that any further can_migrate_task() using said sd will ignore > the output of task_hot(). > > This behaviour makes sense, as active load balance intentionally

Re: [PATCH bpf-next v2 1/6] bpf: Factorize bpf_trace_printk and bpf_seq_printf

2021-04-06 Thread Florent Revest
[Sorry for the late replies, I'm just back from a long easter break :)] On Fri, Mar 26, 2021 at 11:51 PM Andrii Nakryiko wrote: > On Fri, Mar 26, 2021 at 2:53 PM Andrii Nakryiko > wrote: > > On Tue, Mar 23, 2021 at 7:23 PM Florent Revest wrote: > > > Unfortunately, the implementation of the

Re: [PATCH v4 1/3] sched/fair: Ignore percpu threads for imbalance pulls

2021-04-06 Thread Dietmar Eggemann
On 01/04/2021 21:30, Valentin Schneider wrote: > From: Lingutla Chandrasekhar > > During load balance, LBF_SOME_PINNED will bet set if any candidate task nitpick; s/bet/be ? [...] Reviewed-by: Dietmar Eggemann

Re: [PATCH 0/9] sched: Core scheduling interfaces

2021-04-06 Thread Peter Zijlstra
On Sun, Apr 04, 2021 at 07:39:03PM -0400, Tejun Heo wrote: > cc'ing Michal and Christian who've been spending some time on cgroup > interface issues recently and Li Zefan for cpuset. > > On Thu, Apr 01, 2021 at 03:10:12PM +0200, Peter Zijlstra wrote: > > The cgroup interface now uses a

Re: [PATCH v6 3/8] mm,memory_hotplug: Factor out adjusting present pages into adjust_present_page_count()

2021-04-06 Thread David Hildenbrand
On 06.04.21 13:11, Oscar Salvador wrote: From: David Hildenbrand Let's have a single place (inspired by adjust_managed_page_count()) where we adjust present pages, to prepare for additional bookkeeping. Maybe in the context of this series, remove the "additional bookkeeping" part. In

Re: [PATCH v3] sched/fair: bring back select_idle_smt, but differently

2021-04-06 Thread Vincent Guittot
On Tue, 6 Apr 2021 at 17:31, Vincent Guittot wrote: > > On Tue, 6 Apr 2021 at 17:26, Rik van Riel wrote: > > > > On Tue, 2021-04-06 at 17:10 +0200, Vincent Guittot wrote: > > > On Fri, 26 Mar 2021 at 20:19, Rik van Riel wrote: > > > > > > > -static int select_idle_cpu(struct task_struct *p,

Re: [PATCH 11/16] dmaengine: ti: k3-psil-j721e: Add entry for CSI2RX

2021-04-06 Thread Péter Ujfalusi
On 4/6/21 6:09 PM, Pratyush Yadav wrote: > On 04/04/21 04:24PM, Péter Ujfalusi wrote: >> Hi Pratyush, >> >> On 3/30/21 8:33 PM, Pratyush Yadav wrote: >>> The CSI2RX subsystem uses PSI-L DMA to transfer frames to memory. It can >>> have up to 32 threads but the current driver only supports using

Re: [PATCH 00/11] Rid W=1 warnings from Block

2021-04-06 Thread Lee Jones
On Tue, 06 Apr 2021, Jens Axboe wrote: > On 3/12/21 3:55 AM, Lee Jones wrote: > > This set is part of a larger effort attempting to clean-up W=1 > > kernel builds, which are currently overwhelmingly riddled with > > niggly little warnings. > > Applied 2-11, 1 is already in the my tree.

Re: [PATCH v6 2/8] mm,memory_hotplug: Relax fully spanned sections check

2021-04-06 Thread David Hildenbrand
On 06.04.21 13:11, Oscar Salvador wrote: When using self-hosted vmemmap pages, the number of pages passed to {online,offline}_pages might not fully span sections, but they always fully span pageblocks. Relax the check account for that case. Signed-off-by: Oscar Salvador ---

[V3][PATCH] clk: zynqmp: pll: add set_pll_mode to check condition in zynqmp_pll_enable

2021-04-06 Thread quanyang . wang
From: Quanyang Wang If there is a IOCTL_SET_PLL_FRAC_MODE request sent to ATF ever, we shouldn't skip invoking PM_CLOCK_ENABLE fn even though this pll has been enabled. In ATF implementation, it will only assign the mode to the variable (struct pm_pll *)pll->mode when handling

[PATCH v15 13/13] s390/vfio-ap: update docs to include dynamic config support

2021-04-06 Thread Tony Krowiak
Update the documentation in vfio-ap.rst to include information about the AP dynamic configuration support (i.e., hot plug of adapters, domains and control domains via the matrix mediated device's sysfs assignment attributes). Signed-off-by: Tony Krowiak --- Documentation/s390/vfio-ap.rst | 383

[PATCH v15 12/13] s390/zcrypt: notify drivers on config changed and scan complete callbacks

2021-04-06 Thread Tony Krowiak
This patch intruduces an extension to the ap bus to notify device drivers when the host AP configuration changes - i.e., adapters, domains or control domains are added or removed. To that end, two new callbacks are introduced for AP device drivers: void (*on_config_changed)(struct

[PATCH v15 11/13] s390/vfio-ap: sysfs attribute to display the guest's matrix

2021-04-06 Thread Tony Krowiak
The matrix of adapters and domains configured in a guest's APCB may differ from the matrix of adapters and domains assigned to the matrix mdev, so this patch introduces a sysfs attribute to display the matrix of adapters and domains that are or will be assigned to the APCB of a guest that is or

[PATCH v15 10/13] s390/vfio-ap: implement in-use callback for vfio_ap driver

2021-04-06 Thread Tony Krowiak
Let's implement the callback to indicate when an APQN is in use by the vfio_ap device driver. The callback is invoked whenever a change to the apmask or aqmask would result in one or more queue devices being removed from the driver. The vfio_ap device driver will indicate a resource is in use if

[PATCH v15 09/13] s390/zcrypt: driver callback to indicate resource in use

2021-04-06 Thread Tony Krowiak
Introduces a new driver callback to prevent a root user from unbinding an AP queue from its device driver if the queue is in use. The callback will be invoked whenever a change to the AP bus's sysfs apmask or aqmask attributes would result in one or more AP queues being removed from its driver. If

[PATCH v15 07/13] s390/vfio-ap: allow assignment of unavailable AP queues to mdev device

2021-04-06 Thread Tony Krowiak
The current implementation does not allow assignment of an AP adapter or domain to an mdev device if each APQN resulting from the assignment does not reference an AP queue device that is bound to the vfio_ap device driver. This patch allows assignment of AP resources to the matrix mdev as long as

[PATCH v15 08/13] s390/vfio-ap: allow hot plug/unplug of AP resources using mdev device

2021-04-06 Thread Tony Krowiak
Let's allow adapters, domains and control domains to be hot plugged into and hot unplugged from a KVM guest using a matrix mdev when: * The adapter, domain or control domain is assigned to or unassigned from the matrix mdev * A queue device with an APQN assigned to the matrix mdev is bound to

Re: [PATCH -next] drbd: use DEFINE_SPINLOCK() for spinlock

2021-04-06 Thread Jens Axboe
On 4/6/21 6:09 AM, Huang Guobin wrote: > From: Guobin Huang > > spinlock can be initialized automatically with DEFINE_SPINLOCK() > rather than explicitly calling spin_lock_init(). Applied, thanks. -- Jens Axboe

[PATCH v15 06/13] s390/vfio-ap: refresh guest's APCB by filtering APQNs assigned to mdev

2021-04-06 Thread Tony Krowiak
Refresh the guest's APCB by filtering the APQNs assigned to the matrix mdev that do not reference an AP queue device bound to the vfio_ap device driver. The mdev's APQNs will be filtered according to the following rules: * The APID of each adapter and the APQI of each domain that is not in the

[PATCH v15 04/13] s390/vfio-ap: manage link between queue struct and matrix mdev

2021-04-06 Thread Tony Krowiak
Let's create links between each queue device bound to the vfio_ap device driver and the matrix mdev to which the queue's APQN is assigned. The idea is to facilitate efficient retrieval of the objects representing the queue devices and matrix mdevs as well as to verify that a queue assigned to a

[PATCH v15 05/13] s390/vfio-ap: introduce shadow APCB

2021-04-06 Thread Tony Krowiak
The APCB is a field within the CRYCB that provides the AP configuration to a KVM guest. Let's introduce a shadow copy of the KVM guest's APCB and maintain it for the lifespan of the guest. Signed-off-by: Tony Krowiak Reviewed-by: Halil Pasic --- drivers/s390/crypto/vfio_ap_ops.c | 10

[PATCH v15 03/13] s390/vfio-ap: move probe and remove callbacks to vfio_ap_ops.c

2021-04-06 Thread Tony Krowiak
Let's move the probe and remove callbacks into the vfio_ap_ops.c file to keep all code related to managing queues in a single file. This way, all functions related to queue management can be removed from the vfio_ap_private.h header file defining the public interfaces for the vfio_ap device

[PATCH v15 01/13] s390/vfio-ap: fix circular lockdep when setting/clearing crypto masks

2021-04-06 Thread Tony Krowiak
This patch fixes a lockdep splat introduced by commit f21916ec4826 ("s390/vfio-ap: clean up vfio_ap resources when KVM pointer invalidated"). The lockdep splat only occurs when starting a Secure Execution guest. Crypto virtualization (vfio_ap) is not yet supported for SE guests; however, in order

[PATCH v15 02/13] s390/vfio-ap: use new AP bus interface to search for queue devices

2021-04-06 Thread Tony Krowiak
This patch refactors the vfio_ap device driver to use the AP bus's ap_get_qdev() function to retrieve the vfio_ap_queue struct containing information about a queue that is bound to the vfio_ap device driver. The bus's ap_get_qdev() function retrieves the queue device from a hashtable keyed by

[PATCH v15 00/13] s390/vfio-ap: dynamic configuration support

2021-04-06 Thread Tony Krowiak
Note: Patch 1, "s390/vfio-ap: fix circular lockdep when setting/clearing crypto masks" does not belong to this series. It is currently being merged and is included here because it is a pre-req for this series. Ignore checkpatch warnings regarding unknown commit IDs, those

Re: [PATCH v3] sched/fair: bring back select_idle_smt, but differently

2021-04-06 Thread Vincent Guittot
On Tue, 6 Apr 2021 at 17:26, Rik van Riel wrote: > > On Tue, 2021-04-06 at 17:10 +0200, Vincent Guittot wrote: > > On Fri, 26 Mar 2021 at 20:19, Rik van Riel wrote: > > > > > -static int select_idle_cpu(struct task_struct *p, struct > > > sched_domain *sd, int target) > > > +static int

Re: [RFC net-next 2/4] net: dsa: mt7530: add interrupt support

2021-04-06 Thread Andrew Lunn
On Tue, Apr 06, 2021 at 10:18:17PM +0800, DENG Qingfang wrote: > Add support for MT7530 interrupt controller to handle internal PHYs. Are the interrupts purely PHY interrupts? Or are there some switch operation interrupts, which are currently not used? I'm just wondering if it is correct to so

[PATCH v2] RAS/CEC: Memory Corrected Errors consistent event filtering

2021-04-06 Thread “William Roche
From: William Roche The Corrected Error events collected by the cec_add_elem() have to be consistently filtered out. We fix the case where the value of find_elem() to find the slot of a pfn was mistakenly used as the return value of the function. Now the MCE notifiers chain relying on

Re: [PATCH 0/3] ata: Module parameter clean-ups for pata_legacy and pata_platform

2021-04-06 Thread Jens Axboe
On 3/21/21 1:55 PM, Maciej W. Rozycki wrote: > Hi, > > In the course of looking into Christoph's recent proposal to drop legacy > IDE drivers I have come across a number of issues with module parameters > of the pata_legacy and pata_platform drivers: errors in documentation > present in the

Re: [PATCH] cgroup: Relax restrictions on kernel threads moving out of root cpu cgroup

2021-04-06 Thread Pavan Kondeti
Hi Tejun, On Tue, Apr 06, 2021 at 09:36:00AM -0400, Tejun Heo wrote: > Hello, > > On Tue, Apr 06, 2021 at 06:34:21PM +0530, Pavankumar Kondeti wrote: > > In Android GKI, CONFIG_FAIR_GROUP_SCHED is enabled [1] to help prioritize > > important work. Given that CPU shares of root cgroup can't be

Re: [PATCH v3] sched/fair: bring back select_idle_smt, but differently

2021-04-06 Thread Rik van Riel
On Tue, 2021-04-06 at 17:10 +0200, Vincent Guittot wrote: > On Fri, 26 Mar 2021 at 20:19, Rik van Riel wrote: > > > -static int select_idle_cpu(struct task_struct *p, struct > > sched_domain *sd, int target) > > +static int select_idle_cpu(struct task_struct *p, struct > > sched_domain *sd, int

Re: [PATCH v5 1/2] ata: ahci_brcm: Fix use of BCM7216 reset controller

2021-04-06 Thread Jens Axboe
On 4/6/21 9:16 AM, Lorenzo Pieralisi wrote: > On Fri, Mar 12, 2021 at 03:45:54PM -0500, Jim Quinlan wrote: >> This driver may use one of two resets controllers. Keep them in separate >> variables to keep things simple. The reset controller "rescal" is shared >> between the AHCI driver and the

Re: [PATCH V2] ata: ahci: ceva: Updated code by using dev_err_probe()

2021-04-06 Thread Jens Axboe
On 3/5/21 2:10 AM, Piyush Mehta wrote: > Updated code with already prepared dev_err_probe(). It reduces code size > and simplifies EPROBE_DEFER handling. Applied, thanks. -- Jens Axboe

[no subject]

2021-04-06 Thread Johnson williams
Ich hoffe, diese Mail findet Sie und Ihre Lieben sicher und gesund. Ich habe einen Brief an Ihre E-Mail geschickt, aber keine Antwort von Ihnen erhalten. Sie haben meine vorherige E-Mail erhalten? Bitte kommen Sie so schnell wie möglich zurück. Beste Wünsche Johnson Williams.

Re: [PATCH v2] ACPI: processor: Fix build when CONFIG_ACPI_PROCESSOR=m

2021-04-06 Thread Rafael J. Wysocki
On Tue, Apr 6, 2021 at 4:01 PM Vitaly Kuznetsov wrote: > > Commit 8c182bd7 ("ACPI: processor: Fix CPU0 wakeup in > acpi_idle_play_dead()") tried to fix CPU0 hotplug breakage by copying > wakeup_cpu0() + start_cpu0() logic from hlt_play_dead()//mwait_play_dead() > into acpi_idle_play_dead().

Re: [PATCH 00/11] Rid W=1 warnings from Block

2021-04-06 Thread Jens Axboe
On 3/12/21 3:55 AM, Lee Jones wrote: > This set is part of a larger effort attempting to clean-up W=1 > kernel builds, which are currently overwhelmingly riddled with > niggly little warnings. Applied 2-11, 1 is already in the my tree. -- Jens Axboe

Re: [RFC net-next 1/4] net: phy: add MediaTek PHY driver

2021-04-06 Thread Andrew Lunn
On Tue, Apr 06, 2021 at 10:18:16PM +0800, DENG Qingfang wrote: > Add support for MediaTek PHYs found in MT7530 and MT7531 switches. Do you know if this PHY is available standalone? > +static int mt7531_phy_config_init(struct phy_device *phydev) > +{ > + mtk_phy_config_init(phydev); > + > +

Re: [PATCH v11 08/13] KVM: X86: Introduce KVM_HC_PAGE_ENC_STATUS hypercall

2021-04-06 Thread Sean Christopherson
On Tue, Apr 06, 2021, Sean Christopherson wrote: > On Tue, Apr 06, 2021, Ashish Kalra wrote: > > On Mon, Apr 05, 2021 at 01:42:42PM -0700, Steve Rutherford wrote: > > > On Mon, Apr 5, 2021 at 7:28 AM Ashish Kalra wrote: > > > > diff --git a/arch/x86/kvm/x86.c b/arch/x86/kvm/x86.c > > > > index

Re: [PATCH v6 9/9] KVM: selftests: aarch64/vgic-v3 init sequence tests

2021-04-06 Thread Marc Zyngier
On Tue, 06 Apr 2021 16:09:16 +0100, Andrew Jones wrote: > > > Hi Eric, > > It looks like Marc already picked this patch up, but, FWIW, here's > a few more comments you may consider. FWIW, I'm happy to drop this patch from the queue (the series is on its own branch for this reason), or take

Re: [PATCH v4] sched/debug: Use sched_debug_lock to serialize use of cgroup_path[] only

2021-04-06 Thread Waiman Long
On 4/6/21 5:15 AM, Peter Zijlstra wrote: On Mon, Apr 05, 2021 at 07:42:03PM -0400, Waiman Long wrote: The handling of sysrq key can be activated by echoing the key to /proc/sysrq-trigger or via the magic key sequence typed into a terminal that is connected to the system in some way (serial, USB

Re: [PATCH 9/9] sched: prctl() and cgroup interaction

2021-04-06 Thread Peter Zijlstra
On Fri, Apr 02, 2021 at 06:30:48PM -0700, Josh Don wrote: > Hi Peter, > > I walked through the reference counting, and it seems good to me > (though it did take a few passes to fully digest the invariants for > the fat cookie stuff). > > > +unsigned long sched_core_alloc_cookie(unsigned int

Re: [PATCH v5 1/2] ata: ahci_brcm: Fix use of BCM7216 reset controller

2021-04-06 Thread Lorenzo Pieralisi
On Fri, Mar 12, 2021 at 03:45:54PM -0500, Jim Quinlan wrote: > This driver may use one of two resets controllers. Keep them in separate > variables to keep things simple. The reset controller "rescal" is shared > between the AHCI driver and the PCIe driver for the BrcmSTB 7216 chip. Use >

Re: [PATCH v2 00/10] Initial support for Nuvoton WPCM450 BMC SoC

2021-04-06 Thread Arnd Bergmann
On Tue, Apr 6, 2021 at 2:09 PM Jonathan Neuschäfer wrote: > > This series adds basic support for the Nuvoton WPCM450 BMC SoC. It's an older > SoC but still commonly found on eBay, mostly in Supermicro X9 server boards. > > Third-party documentation is available at: >

[PATCH] drm/msm: Fix spelling "purgable" -> "purgeable"

2021-04-06 Thread Rob Clark
From: Rob Clark The previous patch fixes the user visible spelling. This one fixes the code. Oops. Signed-off-by: Rob Clark --- drivers/gpu/drm/msm/msm_gem.c | 12 ++-- drivers/gpu/drm/msm/msm_gem.h | 16 drivers/gpu/drm/msm/msm_gem_shrinker.c | 2

Re: [PATCH v6 00/27] Memory Folios

2021-04-06 Thread Jeff Layton
On Mon, 2021-04-05 at 20:31 +0100, Matthew Wilcox wrote: > On Mon, Apr 05, 2021 at 03:14:29PM -0400, Jeff Layton wrote: > > On Wed, 2021-03-31 at 19:47 +0100, Matthew Wilcox (Oracle) wrote: > > > Managing memory in 4KiB pages is a serious overhead. Many benchmarks > > > exist which show the

Re: [PATCH] mm/vmscan.c: drop_slab_node with task's memcg

2021-04-06 Thread Neil Sun
On 2021/4/6 22:39, Michal Hocko wrote: Have you considered using high limit for the pro-active memory reclaim? Thanks, Michal, do you mean the procfs interfaces? We have set vm.vfs_cache_pressure=1000 and so on. would you please take an example? -- Neil

Re: [PATCH 10/16] media: cadence: csi2rx: Add wrappers for subdev calls

2021-04-06 Thread Pratyush Yadav
On 02/04/21 01:47PM, Laurent Pinchart wrote: > Hi Pratyush, > > Thank you for the patch. Thank you for the review :-) > > On Tue, Mar 30, 2021 at 11:03:42PM +0530, Pratyush Yadav wrote: > > When this bridge driver is being user by another platform driver, it > > might want to call subdev

Re: [PATCH v11 08/13] KVM: X86: Introduce KVM_HC_PAGE_ENC_STATUS hypercall

2021-04-06 Thread Sean Christopherson
On Tue, Apr 06, 2021, Ashish Kalra wrote: > On Mon, Apr 05, 2021 at 01:42:42PM -0700, Steve Rutherford wrote: > > On Mon, Apr 5, 2021 at 7:28 AM Ashish Kalra wrote: > > > diff --git a/arch/x86/kvm/x86.c b/arch/x86/kvm/x86.c > > > index f7d12fca397b..ef5c77d59651 100644 > > > ---

Re: [PATCH] tty: use printk_safe context at tty_msg()

2021-04-06 Thread Petr Mladek
On Sat 2021-04-03 13:14:44, Tetsuo Handa wrote: > syzbot is reporting circular locking dependency due to calling printk() > with port lock held [1]. When this problem was reported, we worried Could you please include the lockdep report into the commit message? External links are not guaranteed to

Re: [PATCH v3] sched/fair: bring back select_idle_smt, but differently

2021-04-06 Thread Vincent Guittot
On Fri, 26 Mar 2021 at 20:19, Rik van Riel wrote: > > On Mon, 22 Mar 2021 11:03:06 + > Mel Gorman wrote: > > > > Second, select_idle_smt() does not use the cpus mask so consider moving > > the cpus initialisation after select_idle_smt() has been called. > > Specifically this initialisation >

Re: [PATCH v1 1/1] kernel.h: Split out panic and oops helpers

2021-04-06 Thread Arnd Bergmann
On Tue, Apr 6, 2021 at 3:31 PM Andy Shevchenko wrote: > > kernel.h is being used as a dump for all kinds of stuff for a long time. > Here is the attempt to start cleaning it up by splitting out panic and > oops helpers. > > At the same time convert users in header and lib folder to use new

Re: [PATCH 11/16] dmaengine: ti: k3-psil-j721e: Add entry for CSI2RX

2021-04-06 Thread Pratyush Yadav
On 04/04/21 04:24PM, Péter Ujfalusi wrote: > Hi Pratyush, > > On 3/30/21 8:33 PM, Pratyush Yadav wrote: > > The CSI2RX subsystem uses PSI-L DMA to transfer frames to memory. It can > > have up to 32 threads but the current driver only supports using one. So > > add an entry for that one thread. >

Re: [PATCH v6 9/9] KVM: selftests: aarch64/vgic-v3 init sequence tests

2021-04-06 Thread Andrew Jones
Hi Eric, It looks like Marc already picked this patch up, but, FWIW, here's a few more comments you may consider. On Mon, Apr 05, 2021 at 06:39:41PM +0200, Eric Auger wrote: > The tests exercise the VGIC_V3 device creation including the > associated KVM_DEV_ARM_VGIC_GRP_ADDR group attributes:

Re: [PATCH v6 01/27] mm: Introduce struct folio

2021-04-06 Thread Christoph Hellwig
On Tue, Apr 06, 2021 at 03:55:11PM +0100, Matthew Wilcox wrote: > Assuming we're getting rid of them all though, we have to include: > > $ git grep 'page->mapping' fs |wc -l > 358 > $ git grep 'page->index' fs |wc -l > 355 Are they all going to stay? Or are we going to clean up some of that

Re: [PATCH 27/32] dt-bindings: i3c: update i3c.yaml references

2021-04-06 Thread Rob Herring
On Thu, Apr 1, 2021 at 7:17 AM Mauro Carvalho Chehab wrote: > > Changeset 5e4cdca887fd ("dt-bindings: i3c: Convert the bus description to > yaml") > renamed: Documentation/devicetree/bindings/i3c/i3c.txt > to: Documentation/devicetree/bindings/i3c/i3c.yaml. > > Update the cross-references

Re: [PATCH][next] drm/msm: Fix spelling mistake "Purgable" -> "Purgeable"

2021-04-06 Thread Rob Clark
On Tue, Apr 6, 2021 at 6:39 AM Colin King wrote: > > From: Colin Ian King > > There is a spelling mistake in debugfs gem stats. Fix it. Also > re-align output to cater for the extra 1 character. > > Signed-off-by: Colin Ian King > --- > drivers/gpu/drm/msm/msm_gem.c | 8 > 1 file

Re: [PATCH 13/16] media: ti-vpe: csi2rx: Add CSI2RX support

2021-04-06 Thread Pratyush Yadav
On 31/03/21 09:06AM, Tomi Valkeinen wrote: > Hi, > > On 30/03/2021 20:33, Pratyush Yadav wrote: > > TI's J721E uses the Cadence CSI2RX and DPHY peripherals to facilitate > > capture over a CSI-2 bus. > > > > The Cadence CSI2RX IP acts as a bridge between the TI specific parts and > > the CSI-2

Re: [Outreachy kernel] [PATCH v2] staging: rtl8723bs: hal: Remove camelcase in Hal8723BReg.h

2021-04-06 Thread FMDF
On Tue, Apr 6, 2021 at 4:55 PM Julia Lawall wrote: > > > > On Tue, 6 Apr 2021, FMDF wrote: > > > On Tue, Apr 6, 2021 at 4:11 PM Greg KH wrote: > > > > > > On Tue, Apr 06, 2021 at 03:05:56PM +0200, Fabio M. De Francesco wrote: > > > > Remove camelcase in some symbols defined in Hal8723BReg.h.

[PATCH net-next] net: tipc: Fix spelling errors in net/tipc module

2021-04-06 Thread Zheng Yongjun
These patches fix a series of spelling errors in net/tipc module. Reported-by: Hulk Robot Signed-off-by: Zheng Yongjun --- net/tipc/bearer.h | 6 +++--- net/tipc/net.c| 2 +- net/tipc/node.c | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/net/tipc/bearer.h

Re: [PATCH 29/32] docs: dt: update writing-schema.rst references

2021-04-06 Thread Rob Herring
On Thu, Apr 1, 2021 at 7:17 AM Mauro Carvalho Chehab wrote: > > Changeset b83db5b84900 ("docs: dt: Group DT docs into relevant sub-sections") > renamed: Documentation/devicetree/writing-schema.rst > to: Documentation/devicetree/bindings/writing-schema.rst. > > Update the cross-references

Re: [PATCH v3] mm: slub: move sysfs slab alloc/free interfaces to debugfs

2021-04-06 Thread kernel test robot
Hi Faiyaz, Thank you for the patch! Yet something to improve: [auto build test ERROR on v5.12-rc6] [cannot apply to hnaz-linux-mm/master next-20210406] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as documented

Re: [PATCH rdma-next 01/10] RDMA: Add access flags to ib_alloc_mr() and ib_mr_pool_init()

2021-04-06 Thread Christoph Hellwig
On Tue, Apr 06, 2021 at 04:54:57PM +0200, Christoph Hellwig wrote: > That is something everyone gets wrong at first (yourself included) The yourself here should have been a yours truly or "myself", sorry.

[PATCH] cifs: escape spaces in share names

2021-04-06 Thread Maciek Borzecki
Commit 653a5efb849a ("cifs: update super_operations to show_devname") introduced the display of devname for cifs mounts. However, when mounting a share which has a whitespace in the name, that exact share name is also displayed in mountinfo. Make sure that all whitespace is escaped.

Re: KCSAN: data-race in __jbd2_journal_file_buffer / jbd2_journal_dirty_metadata

2021-04-06 Thread Theodore Ts'o
On Tue, Apr 06, 2021 at 02:32:33PM +0200, Jan Kara wrote: > And the comment explains, why we do this unreliable check. Again, if we > wanted to silence KCSAN, we could use data_race() macro but AFAIU Ted isn't > very fond of that annotation. I'm not fond of the data_race macro, but I like bogus

Re: [EXTERNAL] Re: [PATCH 4.19 013/247] cifs: Set CIFS_MOUNT_USE_PREFIX_PATH flag on setting cifs_sb->prepath.

2021-04-06 Thread Salvatore Bonaccorso
Hi, On Tue, Apr 06, 2021 at 02:00:48PM +, Shyam Prasad wrote: > Hi Greg, > We'll need to debug this further to understand what's going on. Greg asked it the same happens with 5.4 as well, I do not know I was not able to test 5.4.y (yet) but only 5.10.y and 4.19.y. > > Hi Salvatore, > Any

Re: [PATCH v2 02/13] intel_gna: add component of hardware operation

2021-04-06 Thread Maciej Kwapulinski
Andy Shevchenko writes: > On Wed, Mar 24, 2021 at 8:38 PM Maciej Kwapulinski > wrote: >> +#define gna_reg_write(addr, offset, value) writel((value), (addr) + >> (offset)) > > No point And make them functions, not macros. > >> + >> +#endif // __GNA_HW_H__ >> -- >> 2.28.0 >> Andy, Thank

Re: [RFCv1 7/7] KVM: unmap guest memory using poisoned pages

2021-04-06 Thread David Hildenbrand
On 06.04.21 16:33, Dave Hansen wrote: On 4/6/21 12:44 AM, David Hildenbrand wrote: On 02.04.21 17:26, Kirill A. Shutemov wrote: TDX architecture aims to provide resiliency against confidentiality and integrity attacks. Towards this goal, the TDX architecture helps enforce the enabling of

Re: [PATCH v3 3/4] watchdog: simatic-ipc-wdt: add new driver for Siemens Industrial PCs

2021-04-06 Thread Henning Schild
Am Thu, 1 Apr 2021 18:15:41 +0200 schrieb "Enrico Weigelt, metux IT consult" : > On 29.03.21 19:49, Henning Schild wrote: > > Hi, > > > This driver adds initial support for several devices from Siemens. > > It is based on a platform driver introduced in an earlier commit. > > Where does the

Re: [PATCH v6 01/27] mm: Introduce struct folio

2021-04-06 Thread Matthew Wilcox
On Tue, Apr 06, 2021 at 03:47:12PM +0100, Christoph Hellwig wrote: > On Tue, Apr 06, 2021 at 03:40:22PM +0100, Matthew Wilcox wrote: > > On Tue, Apr 06, 2021 at 03:31:50PM +0100, Christoph Hellwig wrote: > > > > > As Christoph, I'm not a fan of this :/ > > > > > > > > What would you prefer? > > >

Re: [Outreachy kernel] [PATCH v2] staging: rtl8723bs: hal: Remove camelcase in Hal8723BReg.h

2021-04-06 Thread Julia Lawall
On Tue, 6 Apr 2021, FMDF wrote: > On Tue, Apr 6, 2021 at 4:11 PM Greg KH wrote: > > > > On Tue, Apr 06, 2021 at 03:05:56PM +0200, Fabio M. De Francesco wrote: > > > Remove camelcase in some symbols defined in Hal8723BReg.h. These symbols > > > are not used anywhere else, therefore this patch

Re: [PATCH rdma-next 01/10] RDMA: Add access flags to ib_alloc_mr() and ib_mr_pool_init()

2021-04-06 Thread Christoph Hellwig
On Tue, Apr 06, 2021 at 11:40:39AM -0300, Jason Gunthorpe wrote: > Yes, but the complexity is how the drivers are constructed they are > designed to reject flags they don't know about.. > > Hum, it looks like someone has already been in here and we now have a > IB_ACCESS_OPTIONAL concept. > >

Re: [v3,PATCH 2/3] pwm: mtk_disp: convert the driver to atomic API

2021-04-06 Thread kernel test robot
'--base' as documented in https://git-scm.com/docs/git-format-patch] url: https://github.com/0day-ci/linux/commits/Rex-BC-Chen/Convert-the-mtk_disp-driver-to-aotmic-API/20210406-180018 base:e49d033bddf5b565044e2abe4241353959bc9120 config: xtensa-allyesconfig (attached as .config) compiler

Re: [PATCH] driver: of: Properly truncate command line if too long

2021-04-06 Thread Alex Ghiti
Le 4/6/21 à 9:40 AM, Rob Herring a écrit : On Sat, Apr 3, 2021 at 7:09 AM Alex Ghiti wrote: Hi, Le 3/16/21 à 3:38 PM, Alexandre Ghiti a écrit : In case the command line given by the user is too long, warn about it and truncate it to the last full argument. This is what efi already does in

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