[PATCH v3 5/7] sched/fair: Employ capacity_greater() throughout load_balance()

2021-03-11 Thread Valentin Schneider
While at it, replace group_smaller_{min, max}_cpu_capacity() with comparisons of the source group's min/max capacity and the destination CPU's capacity. Reviewed-by: Qais Yousef Signed-off-by: Valentin Schneider --- kernel/sched/fair.c | 33 - 1 file changed, 4 i

[PATCH v3 4/7] sched/fair: Introduce a CPU capacity comparison helper

2021-03-11 Thread Valentin Schneider
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 the underlying margin, fits_capacity(X, 1024) will return false for

[PATCH v3 7/7] sched/fair: Relax task_hot() for misfit tasks

2021-03-11 Thread Valentin Schneider
Consider the following topology: DIE [ ] MC [][] 0 1 2 3 capacity_orig_of(x \in {0-1}) < capacity_orig_of(x \in {2-3}) w/ CPUs 2-3 idle and CPUs 0-1 running CPU hogs (util_avg=1024). When CPU2 goes through load_balance() (via periodic / NOHZ balance), it should

[PATCH v3 2/7] sched/fair: Clean up active balance nr_balance_failed trickery

2021-03-11 Thread Valentin Schneider
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 preempts a rq's running task to migrate it right away, but t

[PATCH v3 6/7] sched/fair: Filter out locally-unsolvable misfit imbalances

2021-03-11 Thread Valentin Schneider
Consider the following (hypothetical) asymmetric CPU capacity topology, with some amount of capacity pressure (RT | DL | IRQ | thermal): DIE [ ] MC [][] 0 1 2 3 | CPU | capacity_orig | capacity | |-+---+--| | 0 | 870 |

[PATCH v3 3/7] sched/fair: Add more sched_asym_cpucapacity static branch checks

2021-03-11 Thread Valentin Schneider
Rik noted a while back that a handful of sd->flags & SD_ASYM_CPUCAPACITY & family in the CFS load-balancer code aren't guarded by the sched_asym_cpucapacity static branch. Turning those checks into NOPs for those who don't need it is fairly straightforward, and hiding it in a helper doesn't ch

Re: [PATCH] iommu/tegra-smmu: Fix mc errors on tegra124-nyan

2021-03-11 Thread Dmitry Osipenko
11.03.2021 01:17, Nicolin Chen пишет: > On Wed, Mar 10, 2021 at 11:22:57PM +0300, Dmitry Osipenko wrote: >> 10.03.2021 22:13, Dmitry Osipenko пишет: >>> I found that this patch introduced a serious regression on Tegra30 using >>> today's linux-next. Tegra30 has two 3d h/w blocks connected in SLI an

[PATCH] init: do_mounts.c: Fix indentation errors.

2021-03-11 Thread Shubhankar Kuranagatti
Switch and case have been aligned together, extra tab removed Removed extra space before tab. Signed-off-by: Shubhankar Kuranagatti --- init/do_mounts.c | 13 ++--- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/init/do_mounts.c b/init/do_mounts.c index a78e44ee6adb..82fe6

Re: [PATCH 9/9] vfio/pci: export igd support into vendor vfio_pci driver

2021-03-11 Thread Max Gurtovoy
On 3/11/2021 1:37 PM, Christoph Hellwig wrote: On Wed, Mar 10, 2021 at 08:31:27AM -0400, Jason Gunthorpe wrote: Yes, that needs more refactoring. I'm viewing this series as a "statement of intent" and once we commit to doing this we can go through the bigger effort to split up vfio_pci_core an

Re: [net-next PATCH v7 08/16] net: mdiobus: Introduce fwnode_mdiobus_register_phy()

2021-03-11 Thread Andy Shevchenko
On Thu, Mar 11, 2021 at 8:21 AM Calvin Johnson wrote: > > Introduce fwnode_mdiobus_register_phy() to register PHYs on the > mdiobus. From the compatible string, identify whether the PHY is > c45 and based on this create a PHY device instance which is > registered on the mdiobus. > uninitialized s

Re: [PATCH v2 5/5] drm/ingenic: Add option to alloc cached GEM buffers

2021-03-11 Thread Paul Cercueil
Le jeu. 11 mars 2021 à 10:27, Hillf Danton a écrit : On Wed, 10 Mar 2021 19:01:01 + Paul Cercueil wrote: Le lun. 8 mars 2021 11:47, Hillf Danton a crit : On Sun, 7 Mar 2021 20:28:35 + Paul Cercueil wrote: With the module parameter ingenic-drm.cached_gem_buffers, it is poss

Re: [net-next PATCH v7 10/16] ACPI: utils: Introduce acpi_get_local_address()

2021-03-11 Thread Andy Shevchenko
On Thu, Mar 11, 2021 at 8:22 AM Calvin Johnson wrote: > > Introduce a wrapper around the _ADR evaluation. Reviewed-by: Andy Shevchenko > Signed-off-by: Calvin Johnson > --- > > Changes in v7: None > Changes in v6: None > Changes in v5: > - Replace fwnode_get_id() with acpi_get_local_address()

Re: [RFT PATCH v3 12/27] of/address: Add infrastructure to declare MMIO as non-posted

2021-03-11 Thread Hector Martin
On 11/03/2021 18.12, Arnd Bergmann wrote: On Wed, Mar 10, 2021 at 6:01 PM Rob Herring wrote: On Wed, Mar 10, 2021 at 1:27 AM Hector Martin wrote: On 10/03/2021 07.06, Rob Herring wrote: My main concern here is that this creates an inconsistency in the device tree representation that only w

[PATCH] block: fix possible bd_size_lock deadlock

2021-03-11 Thread yanfei . xu
From: Yanfei Xu bd_size_lock spinlock could be taken in block softirq, thus we should disable the softirq before taking the lock. WARNING: inconsistent lock state 5.12.0-rc2-syzkaller #0 Not tainted inconsistent {SOFTIRQ-ON-W} -> {IN-SOFTIRQ-R} usage. kworker/u4:

[PATCH] video: fbdev: delete redundant printing of return value

2021-03-11 Thread Wang Qing
platform_get_irq() has already checked and printed the return value, the printing here is nothing special, it is not necessary at all. Signed-off-by: Wang Qing --- drivers/video/fbdev/pxa168fb.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/video/fbdev/pxa168fb.

[PATCH] video: fbdev: delete redundant printing of return value

2021-03-11 Thread Wang Qing
platform_get_irq() has already checked and printed the return value, the printing here is nothing special, it is not necessary at all. Signed-off-by: Wang Qing --- drivers/video/fbdev/pxa3xx-gcu.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/video/fbdev/pxa3xx-

[PATCH] video: fbdev: delete redundant printing of return value

2021-03-11 Thread Wang Qing
platform_get_irq() has already checked and printed the return value, the printing here is nothing special, it is not necessary at all. Signed-off-by: Wang Qing --- drivers/video/fbdev/pxafb.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/video/fbdev/pxafb.c b/dr

[PATCH] video: fbdev: delete redundant printing of return value

2021-03-11 Thread Wang Qing
platform_get_irq() has already checked and printed the return value, the printing here is nothing special, it is not necessary at all. Signed-off-by: Wang Qing --- drivers/video/fbdev/s3c2410fb.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/video/fbdev/s3c2410f

[PATCH] video: fbdev: delete redundant printing of return value

2021-03-11 Thread Wang Qing
platform_get_irq() has already checked and printed the return value, the printing here is nothing special, it is not necessary at all. Signed-off-by: Wang Qing --- drivers/video/fbdev/vt8500lcdfb.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/video/fbdev/vt8500lcdfb.c b/drivers/v

Re: [net-next PATCH v7 11/16] net: mdio: Add ACPI support code for mdio

2021-03-11 Thread Andy Shevchenko
On Thu, Mar 11, 2021 at 8:22 AM Calvin Johnson wrote: > > Define acpi_mdiobus_register() to Register mii_bus and create PHYs for > each ACPI child node. > > Signed-off-by: Calvin Johnson > --- > > Changes in v7: > - Include headers directly used in acpi_mdio.c > > Changes in v6: > - use GENMASK()

Re: [External] Re: [PATCH v18 9/9] mm: hugetlb: optimize the code with the help of the compiler

2021-03-11 Thread Michal Hocko
On Thu 11-03-21 18:00:09, Muchun Song wrote: [...] > Sorry. I am confused why you disagree with this change. > It does not bring any disadvantages. Because it is adding a code which is not really necessary and which will have to be maintained. Think of future changes which would need to grow more

Re: [PATCH V2 16/25] perf/x86: Register hybrid PMUs

2021-03-11 Thread Peter Zijlstra
On Wed, Mar 10, 2021 at 08:37:52AM -0800, kan.li...@linux.intel.com wrote: > @@ -2092,9 +2105,37 @@ static int __init init_hw_perf_events(void) > if (err) > goto out1; > > - err = perf_pmu_register(&pmu, "cpu", PERF_TYPE_RAW); > - if (err) > - goto out2; >

Re: [PATCH v18 4/9] mm: hugetlb: alloc the vmemmap pages associated with each HugeTLB page

2021-03-11 Thread Michal Hocko
On Thu 11-03-21 09:40:57, Michal Hocko wrote: > On Wed 10-03-21 15:28:51, Paul E. McKenney wrote: > > On Wed, Mar 10, 2021 at 02:10:12PM -0800, Mike Kravetz wrote: > > > On 3/10/21 1:49 PM, Paul E. McKenney wrote: > > > > On Wed, Mar 10, 2021 at 10:11:22PM +0100, Michal Hocko wrote: > > > >> On Wed

[PATCH 1/2] dm verity: fix DM_VERITY_OPTS_MAX value

2021-03-11 Thread JeongHyeon Lee
Three optional parameters at once using dm verity table is not supported, option can only be used exclusively. e.g.) (verity_mode) (ignore_zero_block) (check_at_most_once) verity table: '1 /dev/sdb /dev/sdb 4096 4096 1028807 1028807 11 use_fec_from_device /dev/sdb fec_roots 2 fec_blocks 103

[PATCH 2/2] dm verity: allow only one verify mode

2021-03-11 Thread JeongHyeon Lee
If there are multiple verity mode when parsing the verity mode of dm verity table, it will be set as the last one. So set to 'allow only once' to prevent it. Signed-off-by: JeongHyeon Lee --- drivers/md/dm-verity-target.c | 38 ++- 1 file changed, 28 insertions(+)

[PATCH v5 1/3] mtd: core: add nvmem-cells compatible to parse mtd as nvmem cells

2021-03-11 Thread Ansuel Smith
Partitions that contains the nvmem-cells compatible will register their direct subonodes as nvmem cells and the node will be treated as a nvmem provider. Signed-off-by: Ansuel Smith --- drivers/mtd/mtdcore.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/mtd/mtdcor

[PATCH v3 02/14] dt-bindings: firmware: scm: Add sc7280 support

2021-03-11 Thread Rajendra Nayak
Add compatible for sc7280 SoC Signed-off-by: Rajendra Nayak Reviewed-by: Stephen Boyd Acked-by: Rob Herring --- Documentation/devicetree/bindings/firmware/qcom,scm.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/firmware/qcom,scm.txt b/Documentation/d

Re: [question] Panic in dax_writeback_one

2021-03-11 Thread Matthew Wilcox
On Thu, Mar 11, 2021 at 07:48:25AM +, chenjun (AM) wrote: > static int dax_writeback_one(struct xa_state *xas, struct dax_device > *dax_dev, struct address_space *mapping, void *entry) > dax_flush(dax_dev, page_address(pfn_to_page(pfn)), count * PAGE_SIZE); > The pfn is returned by the dri

Re: [PATCH V2 16/25] perf/x86: Register hybrid PMUs

2021-03-11 Thread Peter Zijlstra
On Wed, Mar 10, 2021 at 08:37:52AM -0800, kan.li...@linux.intel.com wrote: > @@ -4420,6 +4513,27 @@ void intel_cpuc_finish(struct cpu_hw_events *cpuc) > static void intel_pmu_cpu_dead(int cpu) > { > intel_cpuc_finish(&per_cpu(cpu_hw_events, cpu)); > + > + if (is_hybrid()) { > +

[PATCH v5 3/3] devicetree: nvmem: nvmem: drop $nodename restriction

2021-03-11 Thread Ansuel Smith
Drop $nodename restriction as now mtd partition can also be used as nvmem provider. Signed-off-by: Ansuel Smith --- Documentation/devicetree/bindings/nvmem/nvmem.yaml | 3 --- 1 file changed, 3 deletions(-) diff --git a/Documentation/devicetree/bindings/nvmem/nvmem.yaml b/Documentation/devicet

[PATCH v5 2/3] dt-bindings: mtd: Document use of nvmem-cells compatible

2021-03-11 Thread Ansuel Smith
Document nvmem-cells compatible used to treat mtd partitions as a nvmem provider. Signed-off-by: Ansuel Smith --- .../bindings/mtd/partitions/nvmem-cells.yaml | 99 +++ 1 file changed, 99 insertions(+) create mode 100644 Documentation/devicetree/bindings/mtd/partitions/nvmem-c

[PATCH 01/10] media: uvcvideo: Return -EINVAL for REQUEST API

2021-03-11 Thread Ricardo Ribalda
The driver does not support it. Fixes v4l2-compliance: Buffer ioctls (Input 0): fail: v4l2-test-buffers.cpp(1925): ret != EINVAL && ret != EBADR && ret != ENOTTY test Requests: FAIL Signed-off-by: Ricardo Ribalda --- drivers/media/usb/uvc/uvc_v4l2.c | 3 +++ 1 file cha

[PATCH 03/10] media: uvcvideo: Return -EIO for control errors

2021-03-11 Thread Ricardo Ribalda
Fixes v4l2-compliance: Control ioctls (Input 0): fail: v4l2-test-controls.cpp(448): s_ctrl returned an error (22) test VIDIOC_G/S_CTRL: FAIL fail: v4l2-test-controls.cpp(698): s_ext_ctrls returned an error (22) test VIDIOC_G/S/TRY_EXT_CTRLS: FAIL S

[PATCH] media: videobuf2: Explicitly state max size of planes

2021-03-11 Thread Ricardo Ribalda
The plane size needs to be PAGE_ALIGNED, so it is not possible to have sizes bigger than MAX_INT - PAGE_SIZE. We already check for overflows when that happen: if (size < vb->planes[plane].length) goto free; But it is good to explicitly state our max allowed value, in order to align with

[PATCH 02/10] media: uvcvideo: Set capability in s_param

2021-03-11 Thread Ricardo Ribalda
Fixes v4l2-compliance: Format ioctls (Input 0): warn: v4l2-test-formats.cpp(1339): S_PARM is supported but doesn't report V4L2_CAP_TIMEPERFRAME fail: v4l2-test-formats.cpp(1241): node->has_frmintervals && !cap->capability Signed-off-by: Ricardo Ribalda --- driv

[PATCH 05/10] media: uvcvideo: Define Control and GUIDs for class ctrls

2021-03-11 Thread Ricardo Ribalda
Add new bindings for class controls. This controls will be implemented by a virtual entity. Signed-off-by: Ricardo Ribalda --- drivers/media/usb/uvc/uvc_ctrl.c | 34 drivers/media/usb/uvc/uvcvideo.h | 8 2 files changed, 42 insertions(+) diff --git a/d

[PATCH 06/10] media: uvcvideo: Implement UVC_CTRL_CLASS_UNIT

2021-03-11 Thread Ricardo Ribalda
Create a virtual entity that holds all the class control. Fixes v4l2-compliance: Control ioctls (Input 0): fail: v4l2-test-controls.cpp(216): missing control class for class 0098 fail: v4l2-test-controls.cpp(253): missing control class for class 009a

[PATCH 10/10] media: uvcvideo: Populate only active control classes

2021-03-11 Thread Ricardo Ribalda
Do not create Control Classes for empty classes. Fixes v4l2-compliance: Control ioctls (Input 0): fail: v4l2-test-controls.cpp(255): no controls in class 009d test VIDIOC_QUERY_EXT_CTRL/QUERYMENU: FAIL Signed-off-by: Ricardo Ribalda --- drivers/media/usb/uv

[PATCH 09/10] media: uvcvideo: Do not create initial events for class ctrls

2021-03-11 Thread Ricardo Ribalda
V4L2_CTRL_TYPE_CTRL_CLASS do not generate events. Fixes v4l2-compliance: Control ioctls (Input 0): fail: v4l2-test-controls.cpp(844): found event for control class 'User Controls' test VIDIOC_(UN)SUBSCRIBE_EVENT/DQEVENT: FAIL Signed-off-by: Ricardo Ribalda --- drivers/m

[PATCH 00/10] uvcvideo: Pass v4l2-compliance test

2021-03-11 Thread Ricardo Ribalda
Current version of the driver fails to pass v4l2-compliance v1.20.0, lets patch it it so some million cameras are compliant. Ricardo Ribalda (10): media: uvcvideo: Return -EINVAL for REQUEST API media: uvcvideo: Set capability in s_param media: uvcvideo: Return -EIO for control errors medi

[PATCH 07/10] media: uvcvideo: set error_idx to count on EACCESS

2021-03-11 Thread Ricardo Ribalda
According to the doc: The, in hindsight quite poor, solution for that is to set error_idx to count if the validation failed. Fixes v4l2-compliance: Control ioctls (Input 0): fail: v4l2-test-controls.cpp(645): invalid error index write only control test VIDIOC_G/S/TRY_EXT_C

[PATCH 08/10] media: uvcvideo: Always return a value on V4L2_CTRL_WHICH_DEF_VAL

2021-03-11 Thread Ricardo Ribalda
Fixes v4l2-compliance: Control ioctls (Input 0): fail: v4l2-test-controls.cpp(813): doioctl(node, VIDIOC_G_EXT_CTRLS, &ctrls) test VIDIOC_G/S/TRY_EXT_CTRLS: FAIL Signed-off-by: Ricardo Ribalda --- drivers/media/usb/uvc/uvc_v4l2.c | 7 +-- 1 file changed, 1 insertion(

[PATCH 04/10] media: uvcvideo: Add support for V4L2_CTRL_TYPE_CTRL_CLASS

2021-03-11 Thread Ricardo Ribalda
Fill all the fields for V4L2_CTRL_TYPE_CTRL_CLASS control types. Signed-off-by: Ricardo Ribalda --- drivers/media/usb/uvc/uvc_ctrl.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a/drivers/media/usb/uvc/uvc_ctrl.c b/drivers/media/usb/uvc/uvc_ctrl.c index b3dde98499f4..08877897dc5a 100

[PATCH v2 0/7] watchdog/softlockup: Report overall time and some cleanup

2021-03-11 Thread Petr Mladek
Resending. The original post is [1]. I dug deep into the softlockup watchdog history when time permitted this year. And reworked the patchset that fixed timestamps and cleaned up the code[2]. I split it into very small steps and did even more code clean up. The result looks quite strightforward a

[PATCH v2 3/7] watchdog/softlockup: Report the overall time of softlockups

2021-03-11 Thread Petr Mladek
The softlockup detector currently shows the time spent since the last report. As a result it is not clear whether a CPU is infinitely hogged by a single task or if it is a repeated event. The situation can be simulated with a simply busy loop: while (true) cpu_relax(); The

[PATCH v2 6/7] watchdog: Cleanup handling of false positives

2021-03-11 Thread Petr Mladek
The commit d6ad3e286d2c075 ("softlockup: Add sched_clock_tick() to avoid kernel warning on kgdb resume") introduced touch_softlockup_watchdog_sync(). It solved a problem when the watchdog was touched in an atomic context, the timer callback was proceed right after releasing interrupts, and the loc

[PATCH v2 5/7] watchdog: Fix barriers when printing backtraces from all CPUs

2021-03-11 Thread Petr Mladek
Any parallel softlockup reports are skipped when one CPU is already printing backtraces from all CPUs. The exclusive rights are synchronized using one bit in soft_lockup_nmi_warn. There is also one memory barrier that does not make much sense. Use two barriers on the right location to prevent mix

[PATCH v2 7/7] Test softlockup

2021-03-11 Thread Petr Mladek
Trigger busy loop by: $> cat /proc/version Stop the busy loop by: $> cat /proc/consoles The code also shows the first touch*watchdog() function that hides softlockup on a "well known" location. Signed-off-by: Petr Mladek --- fs/proc/consoles.c | 5 + fs/proc/version.c | 7 +++ 2 files

[PATCH v2 4/7] watchdog/softlockup: Remove logic that tried to prevent repeated reports

2021-03-11 Thread Petr Mladek
The softlockup detector does some gymnastic with the variable soft_watchdog_warn. It was added by the commit 58687acba59266735ad ("lockup_detector: Combine nmi_watchdog and softlockup detector"). The purpose is not completely clear. There are the following clues. They describe the situation how it

[PATCH v2 1/7] watchdog: Rename __touch_watchdog() to a better descriptive name

2021-03-11 Thread Petr Mladek
There are many touch_*watchdog() functions. They are called in situations where the watchdog could report false positives or create unnecessary noise. For example, when CPU is entering idle mode, a virtual machine is stopped, or a lot of messages are printed in the atomic context. These functions

Re: [PATCH 5/8] ARM: dts: stm32: introduce stm32h7-pinctrl.dtsi to support stm32h75x

2021-03-11 Thread dillon min
Hi Alexandre On Thu, Mar 11, 2021 at 6:40 PM Alexandre TORGUE wrote: > > Hi Dillon > > On 3/3/21 9:05 AM, dillon.min...@gmail.com wrote: > > From: dillon min > > > > To support stm32h750 and stm32h743, we need a base stm32h7-pinctrl.dtsi > > as stm32h743 & h750 has almost the same interface. so,

Re: [PATCH v2 1/5] drm: Add and export function drm_gem_cma_create_noncoherent

2021-03-11 Thread Christoph Hellwig
> +static struct drm_gem_cma_object * > +drm_gem_cma_create_with_cache_param(struct drm_device *drm, > + size_t size, > + bool noncoherent) Does this helper really make much sense? You basically have two function calls in it, out of

Re: [PATCH v4 2/3] dt-bindings: mtd: Document use of nvmem-cells compatible

2021-03-11 Thread Ansuel Smith
On Thu, Mar 11, 2021 at 07:37:13AM +0100, Rafał Miłecki wrote: > On 10.03.2021 23:47, Ansuel Smith wrote: > > On Wed, Mar 10, 2021 at 11:41:24PM +0100, Rafał Miłecki wrote: > > > See inline > > > > > > On 10.03.2021 22:08, Ansuel Smith wrote: > > > > Document nvmem-cells compatible used to treat m

Re: [PATCH v3 1/4] KVM: arm64: GICv4.1: Add function to get VLPI state

2021-03-11 Thread Shenming Lu
On 2021/3/11 16:57, Marc Zyngier wrote: > On Wed, 27 Jan 2021 12:13:34 +, > Shenming Lu wrote: >> >> With GICv4.1 and the vPE unmapped, which indicates the invalidation >> of any VPT caches associated with the vPE, we can get the VLPI state >> by peeking at the VPT. So we add a function for th

Re: [PATCH v2 3/5] drm: Add and export function drm_gem_cma_mmap_noncoherent

2021-03-11 Thread Christoph Hellwig
> +int drm_gem_cma_mmap_noncoherent(struct drm_gem_object *obj, > + struct vm_area_struct *vma) > +{ > + struct drm_gem_cma_object *cma_obj; > + unsigned long pfn; > + int ret; > + > + /* > + * Clear the VM_PFNMAP flag that was set by drm_gem_mmap()

Re: [PATCH] init: do_mounts.c: Fix indentation errors.

2021-03-11 Thread Greg KH
On Thu, Mar 11, 2021 at 05:36:50PM +0530, Shubhankar Kuranagatti wrote: > Switch and case have been aligned together, extra tab removed > Removed extra space before tab. > > Signed-off-by: Shubhankar Kuranagatti > --- > init/do_mounts.c | 13 ++--- > 1 file changed, 6 insertions(+), 7 de

Re: [PATCH 1/2] perf core: Add a kmem_cache for struct perf_event

2021-03-11 Thread Peter Zijlstra
On Thu, Mar 11, 2021 at 08:54:12PM +0900, Namhyung Kim wrote: > From: Namhyung Kim > > The kernel can allocate a lot of struct perf_event when profiling. For > example, 256 cpu x 8 events x 20 cgroups = 40K instances of the struct > would be allocated on a large system. > > The size of struct pe

Re: [PATCH v2 4/5] drm: Add and export function drm_gem_cma_sync_data

2021-03-11 Thread Christoph Hellwig
On Sun, Mar 07, 2021 at 08:28:34PM +, Paul Cercueil wrote: > + drm_atomic_for_each_plane_damage(&iter, &clip) { > + for (i = 0; i < finfo->num_planes; i++) { > + daddr = drm_fb_cma_get_gem_addr(state->fb, state, i); > + > + /* Ignore x1/x2

Re: [RESEND PATCH v2.1 07/10] iomap: Introduce iomap_apply2() for operations on two files

2021-03-11 Thread Christoph Hellwig
On Thu, Mar 04, 2021 at 01:41:42PM +0800, Shiyang Ruan wrote: > Some operations, such as comparing a range of data in two files under > fsdax mode, requires nested iomap_open()/iomap_end() on two file. Thus, > we introduce iomap_apply2() to accept arguments from two files and > iomap_actor2_t for

Re: [PATCH V2 16/25] perf/x86: Register hybrid PMUs

2021-03-11 Thread Peter Zijlstra
On Thu, Mar 11, 2021 at 01:17:15PM +0100, Peter Zijlstra wrote: > On Wed, Mar 10, 2021 at 08:37:52AM -0800, kan.li...@linux.intel.com wrote: > > @@ -2092,9 +2105,37 @@ static int __init init_hw_perf_events(void) > > if (err) > > goto out1; > > > > - err = perf_pmu_register(&pmu,

Re: [PATCH v3 1/4] mm: memcontrol: introduce obj_cgroup_{un}charge_pages

2021-03-11 Thread Johannes Weiner
On Tue, Mar 09, 2021 at 06:07:14PM +0800, Muchun Song wrote: > We know that the unit of slab object charging is bytes, the unit of > kmem page charging is PAGE_SIZE. If we want to reuse obj_cgroup APIs > to charge the kmem pages, we should pass PAGE_SIZE (as third parameter) > to obj_cgroup_charge(

[PATCH] kernel/bpf/: fix misspellings using codespell tool

2021-03-11 Thread menglong8 . dong
From: Liu xuzhi A typo is found out by codespell tool in 34th lines of hashtab.c: $ codespell ./kernel/bpf/ ./hashtab.c:34 : differrent ==> different Fix a typo found by codespell. Signed-off-by: Liu xuzhi --- kernel/bpf/hashtab.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff -

Re: [PATCH v5 1/3] arm64: dts: ti: k3-j7200: Add gpio nodes

2021-03-11 Thread Grygorii Strashko
On 10/03/2021 18:19, Aswath Govindraju wrote: From: Faiz Abbas There are 4 instances of gpio modules in main domain: gpio0, gpio2, gpio4 and gpio6 Groups are created to provide protection between different processor virtual worlds. Each of these modules I/O pins are muxed within the

Re: [PATCH v2 5/5] drm/ingenic: Add option to alloc cached GEM buffers

2021-03-11 Thread Christoph Hellwig
On Sun, Mar 07, 2021 at 08:28:35PM +, Paul Cercueil wrote: > With the module parameter ingenic-drm.cached_gem_buffers, it is possible > to specify that we want GEM buffers backed by non-coherent memory. Shouldn't there be a way to discover this through a DT property?

Re: [PATCH v3 2/4] KVM: arm64: GICv4.1: Try to save hw pending state in save_pending_tables

2021-03-11 Thread Shenming Lu
On 2021/3/11 17:09, Marc Zyngier wrote: > On Wed, 27 Jan 2021 12:13:35 +, > Shenming Lu wrote: >> >> After pausing all vCPUs and devices capable of interrupting, in order >> to save the information of all interrupts, besides flushing the pending >> states in kvm’s vgic, we also try to flush th

Re: [PATCH v3 3/4] KVM: arm64: GICv4.1: Restore VLPI's pending state to physical side

2021-03-11 Thread Shenming Lu
On 2021/3/11 17:14, Marc Zyngier wrote: > On Wed, 27 Jan 2021 12:13:36 +, > Shenming Lu wrote: >> >> From: Zenghui Yu >> >> When setting the forwarding path of a VLPI (switch to the HW mode), >> we could also transfer the pending state from irq->pending_latch to >> VPT (especially in migratio

Re: [PATCH v2] irqchip/irq-mst: Support polarity configuration

2021-03-11 Thread Daniel Palmer
Hi Mark-PK. On Thu, 11 Mar 2021 at 12:12, Mark-PK Tsai wrote: > For a fiq controller, the input edge signal will be convert to level and > keep the interrupt status until we do EOI operation. > That means if a rising edge input if trigger the ouput line will keep high > until we clear the interru

Re: [PATCH v2 3/5] drm: Add and export function drm_gem_cma_mmap_noncoherent

2021-03-11 Thread Paul Cercueil
Hi Christoph, Le jeu. 11 mars 2021 à 12:26, Christoph Hellwig a écrit : +int drm_gem_cma_mmap_noncoherent(struct drm_gem_object *obj, + struct vm_area_struct *vma) +{ + struct drm_gem_cma_object *cma_obj; + unsigned long pfn; + int ret; + +

Re: [PATCH 7/8] ARM: dts: stm32: add support for art-pi board based on stm32h750xbh6

2021-03-11 Thread dillon min
Hi Alexandre On Thu, Mar 11, 2021 at 6:42 PM Alexandre TORGUE wrote: > > > > On 3/3/21 9:05 AM, dillon.min...@gmail.com wrote: > > From: dillon min > > > > This patchset has following changes: > > > > - add stm32h750i-art-pi.dtb > > - add dts binding usart3 for bt, uart4 for console > > - add dt

Re: arm64 syzbot instances

2021-03-11 Thread Mark Rutland
On Thu, Mar 11, 2021 at 12:38:21PM +0100, 'Dmitry Vyukov' via syzkaller wrote: > Hi arm64 maintainers, Hi Dmitry, > We now have some syzbot instances testing arm64 (woohoo!) using qemu > emulation. I wanted to write up the current status. Nice! > There are 3 instances, first uses KASAN: > https

Re: [PATCH V2 16/25] perf/x86: Register hybrid PMUs

2021-03-11 Thread Peter Zijlstra
On Wed, Mar 10, 2021 at 08:37:52AM -0800, kan.li...@linux.intel.com wrote: > @@ -2092,9 +2105,37 @@ static int __init init_hw_perf_events(void) > if (err) > goto out1; > > - err = perf_pmu_register(&pmu, "cpu", PERF_TYPE_RAW); > - if (err) > - goto out2; >

Re: [PATCH v9 6/6] KVM: arm64: Document MTE capability and ioctl

2021-03-11 Thread Steven Price
On 09/03/2021 11:01, Peter Maydell wrote: On Mon, 1 Mar 2021 at 14:23, Steven Price wrote: A new capability (KVM_CAP_ARM_MTE) identifies that the kernel supports granting a guest access to the tags, and provides a mechanism for the VMM to enable it. A new ioctl (KVM_ARM_MTE_COPY_TAGS) provide

Re: [PATCH 0/6] usbip fixes to crashes found by syzbot

2021-03-11 Thread Tetsuo Handa
On 2021/03/11 3:33, Greg KH wrote: > On Sun, Mar 07, 2021 at 08:53:25PM -0700, Shuah Khan wrote: >> This patch series fixes the following problems founds in syzbot >> fuzzing. > > Thanks for these, all now queued up. I send SIGSTOP to [PATCH 4/6] usbip: fix stub_dev usbip_sockfd_store() races

Re: [PATCH v5 1/1] iio: adc: ad7124: allow more than 8 channels

2021-03-11 Thread kernel test robot
Hi, I love your patch! Perhaps something to improve: [auto build test WARNING on iio/togreg] [also build test WARNING on linux/master linus/master v5.12-rc2 next-20210311] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '-

Re: [PATCH 8/8] ARM: stm32: add initial support for stm32h750

2021-03-11 Thread dillon min
Hi Alexandre On Thu, Mar 11, 2021 at 6:43 PM Alexandre TORGUE wrote: > > Hi Dillon > > On 3/3/21 9:05 AM, dillon.min...@gmail.com wrote: > > From: dillon min > > > > No empty commit message please Okay, thanks for remind. > > > Signed-off-by: dillon min > > --- > > arch/arm/mach-stm32/board-d

[BUG] net/ppp: A use after free in ppp_unregister_channe

2021-03-11 Thread lyl2019
File: drivers/net/ppp/ppp_generic.c In ppp_unregister_channel, pch could be freed in ppp_unbridge_channels() but after that pch is still in use. Inside the function ppp_unbridge_channels, if "pchbb == pch" is true and then pch will be freed. I checked the commit history and found that this proble

Re: [PATCH 5.10 23/49] ACPI: video: Add DMI quirk for GIGABYTE GB-BXBT-2807

2021-03-11 Thread Greg KH
On Wed, Mar 10, 2021 at 09:04:58PM +0100, Pavel Machek wrote: > Hi! > > On Wed 2021-03-10 14:23:34, gre...@linuxfoundation.org wrote: > > From: Greg Kroah-Hartman > > > > From: Jasper St. Pierre > > Something is funny with the From header here. But that's not main > thing -- this patch is evil

[PATCH 01/10] tick/nohz: Prevent tick_nohz_get_sleep_length() from returning negative value

2021-03-11 Thread Frederic Weisbecker
From: "Zhou Ti (x2019cwm)" If the hardware clock happens to fire its interrupts late, two possible issues can happen while calling tick_nohz_get_sleep_length(). Either: 1) The next clockevent device event is due past the last idle entry time. or: 2) The last timekeeping update happened before

[PATCH 00/10] tick/nohz updates

2021-03-11 Thread Frederic Weisbecker
Various updates for the timer/nohz side. * Two fixes (maybe 01/10 deserves a stable tag, I should check) * A Kconfig help change * A debug check while enqueuing timers when the tick is stopped in idle. * The rest is noise reduction for full nohz ("tick/nohz: Kick only _queued_ task whose tic

Re: [PATCH v2 3/5] drm: Add and export function drm_gem_cma_mmap_noncoherent

2021-03-11 Thread Christoph Hellwig
On Thu, Mar 11, 2021 at 12:32:27PM +, Paul Cercueil wrote: > > dma_to_phys must not be used by drivers. > > > > I have a proper helper for this waiting for users: > > > > http://git.infradead.org/users/hch/misc.git/commitdiff/96a546e7229ec53aadbdb7936d1e5e6cb5958952 > > > > If you can confir

[PATCH 04/10] tick/nohz: Remove superflous check for CONFIG_VIRT_CPU_ACCOUNTING_NATIVE

2021-03-11 Thread Frederic Weisbecker
The vtime_accounting_enabled_this_cpu() early check already makes what follows as dead code in the case of CONFIG_VIRT_CPU_ACCOUNTING_NATIVE. No need to keep the ifdeferry around. Signed-off-by: Frederic Weisbecker Cc: Yunfeng Ye Cc: Peter Zijlstra Cc: Thomas Gleixner Cc: Marcelo Tosatti Cc:

[PATCH 03/10] tick/nohz: Conditionally restart tick on idle exit

2021-03-11 Thread Frederic Weisbecker
From: Yunfeng Ye In nohz_full mode, switching from idle to a task will unconditionally issue a tick restart. If the task is alone in the runqueue or is the highest priority, the tick will fire once then eventually stop. But that alone is still undesired noise. Therefore, only restart the tick on

[PATCH 02/10] tick/nohz: Add tick_nohz_full_this_cpu()

2021-03-11 Thread Frederic Weisbecker
Optimize further the check for local full dynticks CPU. Testing directly tick_nohz_full_cpu(smp_processor_id()) is suboptimal because the compiler first fetches the CPU number and only then processes the static key. It's best to evaluate the static branch before anything. Provide with a function t

[PATCH 05/10] tick/nohz: Update idle_exittime on actual idle exit

2021-03-11 Thread Frederic Weisbecker
From: Yunfeng Ye The idle_exittime field of tick_sched is used to record the time when the idle state was left. but currently the idle_exittime is updated in the function tick_nohz_restart_sched_tick(), which is not always in idle state when nohz_full is configured: tick_irq_exit tick_nohz

[PATCH 07/10] tick/nohz: Update nohz_full Kconfig help

2021-03-11 Thread Frederic Weisbecker
CONFIG_NO_HZ_FULL behaves just like CONFIG_NO_HZ_IDLE by default. Reassure distros about it. Signed-off-by: Frederic Weisbecker Cc: Yunfeng Ye Cc: Peter Zijlstra Cc: Thomas Gleixner Cc: Marcelo Tosatti Cc: Rafael J. Wysocki --- kernel/time/Kconfig | 11 ++- 1 file changed, 6 inserti

[PATCH 09/10] tick/nohz: Change signal tick dependency to wakeup CPUs of member tasks

2021-03-11 Thread Frederic Weisbecker
From: Marcelo Tosatti Rather than waking up all nohz_full CPUs on the system, only wakeup the target CPUs of member threads of the signal. Reduces interruptions to nohz_full CPUs. Signed-off-by: Marcelo Tosatti Cc: Yunfeng Ye Cc: Peter Zijlstra Cc: Thomas Gleixner Cc: Rafael J. Wysocki Sig

[PATCH 08/10] tick/nohz: Only wakeup a single target cpu when kicking a task

2021-03-11 Thread Frederic Weisbecker
When adding a tick dependency to a task, its necessary to wakeup the CPU where the task resides to reevaluate tick dependencies on that CPU. However the current code wakes up all nohz_full CPUs, which is unnecessary. Switch to waking up a single CPU, by using ordering of writes to task->cpu and t

[PATCH 06/10] timer: Report ignored local enqueue in nohz mode

2021-03-11 Thread Frederic Weisbecker
Enqueuing a local timer after the tick has been stopped will result in the timer being ignored until the next random interrupt. Perform sanity checks to report these situations. Reviewed-by: Rafael J. Wysocki Signed-off-by: Frederic Weisbecker Cc: Peter Zijlstra Cc: Thomas Gleixner Cc: Ingo M

[PATCH 10/10] tick/nohz: Kick only _queued_ task whose tick dependency is updated

2021-03-11 Thread Frederic Weisbecker
From: Marcelo Tosatti When the tick dependency of a task is updated, we want it to aknowledge the new state and restart the tick if needed. If the task is not running, we don't need to kick it because it will observe the new dependency upon scheduling in. But if the task is running, we may need t

Re: [PATCH 5.10 00/47] 5.10.23-rc2 review

2021-03-11 Thread Greg KH
On Thu, Mar 11, 2021 at 11:39:23AM +, r...@heitbaum.com wrote: > On Wed, Mar 10, 2021 at 07:29:23PM +0100, gre...@linuxfoundation.org wrote: > > From: Greg Kroah-Hartman > > > > This is the start of the stable review cycle for the 5.10.23 release. > > There are 47 patches in this series, all

Re: [PATCH v2 36/43] powerpc/32: Set current->thread.regs in C interrupt entry

2021-03-11 Thread Christophe Leroy
Le 11/03/2021 à 11:38, Christophe Leroy a écrit : Le 10/03/2021 à 02:33, Nicholas Piggin a écrit : Excerpts from Christophe Leroy's message of March 9, 2021 10:10 pm: No need to do that is assembly, do it in C. Hmm. No issues with the patch as such, but why does ppc32 need this but not 6

Re: [v8,3/7] PCI: mediatek-gen3: Add MediaTek Gen3 driver for MT8192

2021-03-11 Thread Pali Rohár
On Wednesday 24 February 2021 14:11:28 Jianjun Wang wrote: > +static int mtk_pcie_startup_port(struct mtk_pcie_port *port) > +{ ... > + > + /* Delay 100ms to wait the reference clocks become stable */ > + msleep(100); > + > + /* De-assert PERST# signal */ > + val &= ~PCIE_PE_RSTB; >

Re: [PATCH] signal: Allow RT tasks to cache one sigqueue struct

2021-03-11 Thread Thomas Gleixner
On Thu, Mar 11 2021 at 00:56, Thomas Gleixner wrote: > Rant aside, there is no massive benefit of doing that caching in > general, but there is not much of a downside either and for particular > use cases it's useful even outside of PREEMPT_RT. > > IMO, having it there unconditionally is better tha

Re: [PATCH] hugetlb: select PREEMPT_COUNT if HUGETLB_PAGE for in_atomic use

2021-03-11 Thread Michal Hocko
On Thu 11-03-21 12:36:51, Peter Zijlstra wrote: [...] > Also, Linus hates constructs like this: > > > https://lkml.kernel.org/r/CAHk-=wht7kaeyr5xew2orj7m0hibvxz3t+2ie8vnhlqfdbn...@mail.gmail.com Btw. I would really appreciate if somebody would explain why it is _fundamentally broken_ to check

Re: [PATCH v6 00/12] x86: major paravirt cleanup

2021-03-11 Thread Borislav Petkov
On Tue, Mar 09, 2021 at 02:48:01PM +0100, Juergen Gross wrote: > This is a major cleanup of the paravirt infrastructure aiming at > eliminating all custom code patching via paravirt patching. > > This is achieved by using ALTERNATIVE instead, leading to the ability > to give objtool access to the

Re: [PATCH V2 20/25] perf/x86/intel: Add Alder Lake Hybrid support

2021-03-11 Thread Peter Zijlstra
On Wed, Mar 10, 2021 at 08:37:56AM -0800, kan.li...@linux.intel.com wrote: > @@ -4059,6 +4099,34 @@ tfa_get_event_constraints(struct cpu_hw_events *cpuc, > int idx, > return c; > } > > +static struct event_constraint * > +adl_get_event_constraints(struct cpu_hw_events *cpuc, int idx, > +

Re: [PATCH v6 00/12] x86: major paravirt cleanup

2021-03-11 Thread Borislav Petkov
On Thu, Mar 11, 2021 at 01:50:26PM +0100, Borislav Petkov wrote: > and move the cleanups patches 13 and 14 to the beginning of the set? Yeah, 14 needs ALTERNATIVE_TERNARY so I guess after patch 5, that is. Thx. -- Regards/Gruss, Boris. https://people.kernel.org/tglx/notes-about-netiquette

[PATCH v2] clk: qcom: clk-rcg2: Add support for duty-cycle for RCG

2021-03-11 Thread Taniya Das
The root clock generators with MND divider has the capability to support change in duty-cycle by updating the 'D'. Add the clock ops which would check all the boundary conditions and enable setting the desired duty-cycle as per the consumer. Signed-off-by: Taniya Das --- drivers/clk/qcom/clk-rcg

Re: [PATCH] PCI: Add AMD RV2 based APUs, such as 3015Ce, to D3hot to D3 quirk table.

2021-03-11 Thread Bjorn Helgaas
[+cc Daniel, Mika (author, reviewer of 3030df209aa8] On Thu, Mar 11, 2021 at 10:11:35AM +0530, Shirish S wrote: > From: Julian Schroeder > > This allows for an extra 10ms for the state transition. > Currently only AMD PCO based APUs are covered by this table. I'm really glad to see this coming

[PATCH v2 2/7] watchdog: Explicitly update timestamp when reporting softlockup

2021-03-11 Thread Petr Mladek
The softlockup situation might stay for a long time or even forever. When it happens, the softlockup debug messages are printed in regular intervals defined by get_softlockup_thresh(). There is a mystery. The repeated message is printed after the full interval that is defined by get_softlockup_thr

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