[PATCH v2 12/12] drm/mediatek: Move mtk_ddp_comp_init() from sub driver to DRM driver

2020-12-10 Thread Chun-Kuang Hu
From: CK Hu Some ddp component exist in both display path and other path, so sub driver should not directly call DRM driver's function. Moving mtk_ddp_comp_init() from sub driver to DRM driver to achieve this. Signed-off-by: CK Hu Signed-off-by: Chun-Kuang Hu --- drivers/gpu/drm/mediatek/mtk_

[PATCH v2 11/12] drm/mediatek: DRM driver directly refer to sub driver's function

2020-12-10 Thread Chun-Kuang Hu
From: CK Hu Some ddp component exist in both display path and other path, so sub driver should not directly call DRM driver's function. Let DRM driver directly refer to sub driver's function so that sub driver need not register these function to DRM driver. Signed-off-by: CK Hu Signed-off-by: C

[PATCH v2 09/12] drm/mediatek: Change sub driver interface from mtk_ddp_comp to device

2020-12-10 Thread Chun-Kuang Hu
From: CK Hu Some ddp component exist in both display path and other path, so sub driver interface should get rid of display info. Using device instead of mtk_ddp_comp make interface general. Signed-off-by: CK Hu Signed-off-by: Chun-Kuang Hu --- drivers/gpu/drm/mediatek/mtk_disp_color.c | 13

[PATCH v2 10/12] drm/mediatek: Register vblank callback function

2020-12-10 Thread Chun-Kuang Hu
From: CK Hu Some ddp component exist in both display path and other path, so sub driver should not directly call crtc function. crtc register callback function to sub driver to prevent sub driver directly call crtc function. Signed-off-by: CK Hu Signed-off-by: Chun-Kuang Hu --- drivers/gpu/dr

Re: [EXT] Re: [PATCHv3 net-next] octeontx2-pf: Add RSS multi group support

2020-12-10 Thread Geethasowjanya Akula
Thanks Saeed for the feedback. Will address your comments in next version. From: Saeed Mahameed Sent: Thursday, December 10, 2020 12:38 AM To: Geethasowjanya Akula; net...@vger.kernel.org; linux-kernel@vger.kernel.org Cc: Sunil Kovvuri Goutham; da...@dav

Re: [PATCH] kbuild: avoid static_assert for genksyms

2020-12-10 Thread Marco Elver
On Fri, Dec 04, 2020 at 12:09AM +0100, Arnd Bergmann wrote: > From: Arnd Bergmann > > genksyms does not know or care about the _Static_assert() built-in, > and sometimes falls back to ignoring the later symbols, which causes > undefined behavior such as > > WARNING: modpost: EXPORT symbol "ethto

Re: [sched/hotplug] 2558aacff8: will-it-scale.per_thread_ops -1.6% regression

2020-12-10 Thread Peter Zijlstra
On Thu, Dec 10, 2020 at 04:18:59PM +0800, kernel test robot wrote: > FYI, we noticed a -1.6% regression of will-it-scale.per_thread_ops due to > commit: > commit: 2558aacff8586699bcd248b406febb28b0a25de2 ("sched/hotplug: Ensure only > per-cpu kthreads run during hotplug") Mooo, weird but whateve

Re: [RFC 0/4] vfio-pci/zdev: Fixing s390 vfio-pci ISM support

2020-12-10 Thread Niklas Schnelle
On 12/10/20 4:51 PM, Matthew Rosato wrote: > On 12/10/20 7:33 AM, Cornelia Huck wrote: >> On Wed,  9 Dec 2020 15:27:46 -0500 >> Matthew Rosato wrote: >> >>> Today, ISM devices are completely disallowed for vfio-pci passthrough as >>> QEMU will reject the device due to an (inappropriate) MSI-X c

Re: [RESEND PATCH v2 02/12] mm: memcontrol: convert NR_ANON_THPS account to pages

2020-12-10 Thread Johannes Weiner
On Sun, Dec 06, 2020 at 06:14:41PM +0800, Muchun Song wrote: > @@ -1144,7 +1144,8 @@ void do_page_add_anon_rmap(struct page *page, >* disabled. >*/ > if (compound) > - __inc_lruvec_page_state(page, NR_ANON_THPS); > +

[PATCH v2 07/12] drm/mediatek: Use struct cmdq_client_reg to gather cmdq variable

2020-12-10 Thread Chun-Kuang Hu
From: CK Hu struct cmdq_client_reg include subsys and offset, so use it to replace these two variable. Signed-off-by: CK Hu Signed-off-by: Chun-Kuang Hu --- drivers/gpu/drm/mediatek/mtk_drm_ddp_comp.c | 26 ++--- drivers/gpu/drm/mediatek/mtk_drm_ddp_comp.h | 4 ++-- 2 files c

[PATCH v2 06/12] drm/mediatek: Remove irq in struct mtk_ddp_comp

2020-12-10 Thread Chun-Kuang Hu
From: CK Hu irq in struct mtk_ddp_comp is useless, so remove it. Signed-off-by: CK Hu Signed-off-by: Chun-Kuang Hu --- drivers/gpu/drm/mediatek/mtk_drm_ddp_comp.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/gpu/drm/mediatek/mtk_drm_ddp_comp.c b/drivers/gpu/drm/mediatek/mtk_

[PATCH v2 02/12] drm/mediatek: Use correct device pointer to get CMDQ client register

2020-12-10 Thread Chun-Kuang Hu
Some ddp component use mmsys device pointer to get CMDQ client register, this would get mmsys' CMDQ client register, so use each ddp component's device pointer to get. Signed-off-by: Chun-Kuang Hu --- drivers/gpu/drm/mediatek/mtk_disp_color.c | 2 +- drivers/gpu/drm/mediatek/mtk_disp_ovl.c

[PATCH v2 03/12] drm/mediatek: Separate getting larb device to a function

2020-12-10 Thread Chun-Kuang Hu
From: CK Hu To make the code cleaner, separate getting larb device to a function. Signed-off-by: CK Hu Signed-off-by: Chun-Kuang Hu --- drivers/gpu/drm/mediatek/mtk_drm_ddp_comp.c | 57 - 1 file changed, 32 insertions(+), 25 deletions(-) diff --git a/drivers/gpu/drm/media

[PATCH v2 04/12] drm/mediatek: Move clk info from struct mtk_ddp_comp to sub driver private data

2020-12-10 Thread Chun-Kuang Hu
From: CK Hu Some ddp component exist in both display path and other path, so data belonged to sub driver should be moved into sub driver private data so it could be used for multiple path. clk info is one of sub driver data, so move it. Signed-off-by: CK Hu Signed-off-by: Chun-Kuang Hu --- dr

[PATCH v2 5/5] ALSA: hda/ca0132 - Remove now unnecessary DSP setup functions.

2020-12-10 Thread Connor McAdams
Now that the DSP's audio configuration is understood, remove previous hacky methods of trying to properly configure it. Signed-off-by: Connor McAdams --- sound/pci/hda/patch_ca0132.c | 105 --- 1 file changed, 105 deletions(-) diff --git a/sound/pci/hda/patch_ca0

Re: [PATCH 4/4] dma-heap: Devicetree binding for chunk heap

2020-12-10 Thread Minchan Kim
On Thu, Dec 10, 2020 at 12:15:15AM -0800, John Stultz wrote: > On Wed, Dec 9, 2020 at 3:53 PM Minchan Kim wrote: > > On Wed, Nov 18, 2020 at 07:19:07PM -0800, John Stultz wrote: > > > The CMA heap currently only registers the default CMA heap, as we > > > didn't want to expose all CMA regions and

Re: linux-next: build warning after merge of the akpm-current tree

2020-12-10 Thread Georgi Djakov
Thanks for the report Stephen! Andrew, I have sent you an updated patch. Please let me know if you prefer a follow-up fix instead. BR, Georgi On 12/10/20 11:38, Stephen Rothwell wrote: Hi all, After merging the akpm-current tree, today's linux-next build (htmldocs) produced this warning: Doc

Re: [RESEND PATCH v2 01/12] mm: memcontrol: fix NR_ANON_THPS account

2020-12-10 Thread Johannes Weiner
On Sun, Dec 06, 2020 at 06:14:40PM +0800, Muchun Song wrote: > The unit of NR_ANON_THPS is HPAGE_PMD_NR already. So it should inc/dec > by one rather than nr_pages. > > Fixes: 468c398233da ("mm: memcontrol: switch to native NR_ANON_THPS counter") > Signed-off-by: Muchun Song Acked-by: Johannes W

Re: [External] Re: [PATCH v8 12/12] mm/hugetlb: Optimize the code with the help of the compiler

2020-12-10 Thread Muchun Song
On Thu, Dec 10, 2020 at 9:29 PM Muchun Song wrote: > > On Thu, Dec 10, 2020 at 9:16 PM Oscar Salvador wrote: > > > > On Thu, Dec 10, 2020 at 08:14:18PM +0800, Muchun Song wrote: > > > Yeah, you are right. But if we do this check can make the code simple. > > > > > > For example, here is a code sn

[PATCH 5/5] USB: typec: tcpci: Add Bleed discharge to POWER_CONTROL definition

2020-12-10 Thread Greg Kroah-Hartman
From: Badhri Jagan Sridharan "Table 4-19. POWER_CONTROL Register Definition" from tcpci spec defines BIT(3) as the control bit for bleed discharge. Cc: Guenter Roeck Cc: Heikki Krogerus Cc: Kyle Tso Signed-off-by: Badhri Jagan Sridharan Signed-off-by: Will McVicker Signed-off-by: Greg Kroah

[PATCH 3/5] USB: typec: tcpm: Fix PR_SWAP error handling

2020-12-10 Thread Greg Kroah-Hartman
From: Kyle Tso PD rev3.0 8.3.3.16.3.6 PE_PRS_SRC_SNK_Wait_Source_on State The Policy Enging Shall transition to the ErrorRecovery state when the PSSourceOnTimer times out ... Cc: Guenter Roeck Cc: Heikki Krogerus Cc: Badhri Jagan Sridharan Signed-off-by: Kyle Tso Signed-off-by: Will McVicker

[PATCH 0/5] USB: typec: various patches

2020-12-10 Thread Greg Kroah-Hartman
In digging through a large set of proposed typec patches for the Android common kernel, I've picked out 5 "easy" patches that should all go upstream (they all should go upstream, just will take a while to clean them up it seems...) Badhri Jagan Sridharan (2): USB: typec: tcpm: Prevent log overfl

Re: [BUG] iwlwifi: card unusable after firmware crash

2020-12-10 Thread Rui Salvaterra
Hi, again, I haven't tested any patch or bisected, but I have another data point. I built and tested Linux 5.8.18, with the same firmware, and it is working correctly. I reduced the test case to just rfkilling the connection, which showed the register dump immediately (before that I was using the

Re: [f2fs-dev] [PATCH v3 2/3] f2fs-tools:sload.f2fs compression support

2020-12-10 Thread Jaegeuk Kim
On 12/10, 徐瑞斌 wrote: > Hi, Jaegeuk, > > I comment here the patch your provided (3 parts, since the patch contains 3 > fixes): > 1. + dn->data_blkaddr = blkaddr; > ret = reserve_new_block(sbi, &dn->data_blkaddr, &sum, type, 0); > > We cannot assign dn->data_blkaddr here. The old on

[PATCH] iommu/amd: Add sanity check for interrupt remapping table length macros

2020-12-10 Thread Suravee Suthikulpanit
Currently, macros related to the interrupt remapping table length are defined separately. This has resulted in an oversight in which one of the macros were missed when changing the length. To prevent this, redefine the macros to add built-in sanity check. Also, rename macros to use the name of the

[PATCH 4/5] USB: typec: tcpm: Add a 30ms room for tPSSourceOn in PR_SWAP

2020-12-10 Thread Greg Kroah-Hartman
From: Kyle Tso TCPM state machine needs 20-25ms to enter the ErrorRecovery state after tPSSourceOn timer timeouts. Change the timer from max 480ms to 450ms to ensure that the timer complies with the Spec. In order to keep the flexibility for other usecases using tPSSourceOn, add another timer onl

Re: [PATCH v2 0/5] ALSA: hda/ca0132 - Fix no-audio issues and add documentation.

2020-12-10 Thread Takashi Iwai
On Thu, 10 Dec 2020 17:06:52 +0100, Connor McAdams wrote: > > This patch series attempts to fix the no audio at startup issues that > have been occurring for some users, using information gained through > reverse engineering the ca0132's onboard 8051 processor. > > The issue of no audio on startu

Re: [PATCH v2 4/4] thermal/core: Remove ms based delay fields

2020-12-10 Thread Lukasz Luba
On 12/7/20 7:09 PM, Daniel Lezcano wrote: The code does no longer use the ms unit based fields to set the delays as they are replaced by the jiffies. Remove them and replace their user to use the jiffies version instead. Signed-off-by: Daniel Lezcano --- drivers/platform/x86/acerhdf.c

Re: [PATCH] genksyms: Ignore module scoped _Static_assert()

2020-12-10 Thread Marco Elver
On Thu, 10 Dec 2020 at 14:29, Miguel Ojeda wrote: > On Thu, Dec 10, 2020 at 11:35 AM Marco Elver wrote: > > > > It looks like there's no clear MAINTAINER for this. :-/ > > It'd still be good to fix this for 5.11. > > Richard seems to be the author, not sure if he picks patches (CC'd). > > I guess

Re: [EXTERNAL] Re: [PATCH] PCI: Mark AMD Raven iGPU ATS as broken

2020-12-10 Thread Bjorn Helgaas
On Thu, Dec 10, 2020 at 03:36:36PM +, Deucher, Alexander wrote: > [AMD Public Use] > > > -Original Message- > > From: Merger, Edgar [AUTOSOL/MAS/AUGS] > > Sent: Thursday, December 10, 2020 5:48 AM > > To: Deucher, Alexander ; Huang, Ray > > ; Kuehling, Felix > > Cc: Will Deacon ; li

Re: [PATCH 2/3] perf tools: Allow to enable/disable events via control file

2020-12-10 Thread Jiri Olsa
On Mon, Dec 07, 2020 at 08:02:20PM +0300, Alexei Budankov wrote: > Hi, > > On 06.12.2020 20:05, Jiri Olsa wrote: > > Adding new control events to enable/disable specific event. > > The interface string for control file are: > > > > 'enable-' > > 'disable-' > > > > > > > when received the

[PATCH 1/5] USB: typec: tcpm: Prevent log overflow by removing old entries

2020-12-10 Thread Greg Kroah-Hartman
From: Badhri Jagan Sridharan TCPM logs overflow once the logbuffer is full. Clear old entries and allow logging the newer ones as the newer would be more relevant to the issue being debugged. Also, do not reset the logbuffer tail as end users might take back to back bugreports which would result

[PATCH V2 1/2] arm64: topology: Avoid the have_policy check

2020-12-10 Thread Viresh Kumar
Every time I have stumbled upon this routine, I get confused with the way 'have_policy' is used and I have to dig in to understand why is it so. Here is an attempt to make it easier to understand, and hopefully it is an improvement. The 'have_policy' check was just an optimization to avoid writing

[PATCH V2 2/2] arm64: topology: Reorder init_amu_fie() a bit

2020-12-10 Thread Viresh Kumar
This patch does a couple of optimizations in init_amu_fie(), like early exits from paths where we don't need to continue any further, moving the calls to topology_scale_freq_invariant() just when we need them, instead of at the top of the routine, and avoiding calling it for the third time. Signed

Re: [PATCH 01/13] docs: conf.py: fix sphinx version detection for margin set

2020-12-10 Thread Mauro Carvalho Chehab
Em Thu, 10 Dec 2020 07:48:45 -0700 Jonathan Corbet escreveu: > On Thu, 10 Dec 2020 11:55:40 +0100 > Mauro Carvalho Chehab wrote: > > > The PDF generator has a logic to detect the proper way to > > setup the page margins. By default, the page has about > > 14.8 cm, which is too short to display

Re: [RESEND PATCH v2 01/12] mm: memcontrol: fix NR_ANON_THPS account

2020-12-10 Thread Johannes Weiner
On Thu, Dec 10, 2020 at 05:00:47PM +0100, Johannes Weiner wrote: > On Sun, Dec 06, 2020 at 06:14:40PM +0800, Muchun Song wrote: > > The unit of NR_ANON_THPS is HPAGE_PMD_NR already. So it should inc/dec > > by one rather than nr_pages. > > This is a real bug, thanks for catching it. > > However,

Re: [PATCH RFC] docs: experimental: build PDF with rst2pdf

2020-12-10 Thread Mauro Carvalho Chehab
Em Thu, 10 Dec 2020 17:01:19 +0100 Mauro Carvalho Chehab escreveu: > Add an experimental PDF builder using rst2pdf > > Signed-off-by: Mauro Carvalho Chehab I opened an issue at: https://github.com/rst2pdf/rst2pdf/issues/958 Let's hope someone at rst2pdf could help fixing this ;-) Regards, M

[PATCH v3] mm/page_owner: Record timestamp and pid

2020-12-10 Thread Georgi Djakov
From: Liam Mark Collect the time for each allocation recorded in page owner so that allocation "surges" can be measured. Record the pid for each allocation recorded in page owner so that the source of allocation "surges" can be better identified. The above is very useful when doing memory analy

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

2020-12-10 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

Re: [PATCH 0/3] block: blk_interposer - Block Layer Interposer

2020-12-10 Thread Mike Snitzer
On Thu, Dec 10 2020 at 9:58am -0500, Sergei Shtepa wrote: > The 12/09/2020 16:51, Mike Snitzer wrote: > > On Wed, Dec 09 2020 at 8:01am -0500, > > Sergei Shtepa wrote: > > > > > Hi all. > > > > > > I try to suggest the Block Layer Interposer (blk_interposer) again. > > > It`s allows to inter

Re: Re: [PATCH] spi: Limit the spi device max speed to controller's max speed

2020-12-10 Thread Tudor.Ambarus
On 12/10/20 5:33 PM, Mark Brown wrote: > On Thu, Dec 10, 2020 at 08:58:18AM +, tudor.amba...@microchip.com wrote: >> On 12/9/20 10:30 PM, Serge Semin wrote: > >> Right, in general we aim to do this sort of fixup on the transfers >> and messages rather than the devices, I guess we might

Re: [PATCH v2 3/4] thermal/core: Use precomputed jiffies for the polling

2020-12-10 Thread Lukasz Luba
On 12/7/20 7:09 PM, Daniel Lezcano wrote: The delays are also stored in jiffies based unit. Use them instead of the ms. Signed-off-by: Daniel Lezcano --- drivers/thermal/thermal_core.c | 13 - 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/drivers/thermal/therma

[PATCH RFC] docs: experimental: build PDF with rst2pdf

2020-12-10 Thread Mauro Carvalho Chehab
Add an experimental PDF builder using rst2pdf Signed-off-by: Mauro Carvalho Chehab --- Documentation/Makefile | 5 + Documentation/conf.py | 21 +++-- Documentation/userspace-api/media/Makefile | 1 + Makefile

Re: [f2fs-dev] [PATCH v3 2/3] f2fs-tools:sload.f2fs compression support

2020-12-10 Thread Jaegeuk Kim
Chao and Robin, I refactored the patch to modify the names and structures. Please take a look at this. https://git.kernel.org/pub/scm/linux/kernel/git/jaegeuk/f2fs-tools.git/commit/?h=dev&id=5cd8e5fcc79611c0692f18c7e7e13d6b4742d3c0 On 12/10, Jaegeuk Kim wrote: > On 12/10, 徐瑞斌 wrote: > > Hi, Jaege

Re: [PATCH 5.4 21/54] s390/pci: fix CPU address in MSI for directed IRQ

2020-12-10 Thread Niklas Schnelle
Hi Greg, sorry to bother you but I missed that the smp_cpu_get_cpu_address() address used here was only added with the commit 42d211a1ae3b77 ("s390/cpuinfo: show processor physical address") which landed in v5.7-rc1. This would therefore break if ever called (luckily it would not be called on any

Re: [Intel-gfx] [PATCH v3 2/4] drm/i915/pmu: Use kstat_irqs to get interrupt count

2020-12-10 Thread Thomas Gleixner
On Thu, Dec 10 2020 at 10:45, Tvrtko Ursulin wrote: > On 10/12/2020 07:53, Joonas Lahtinen wrote: >> I think later in the thread there was a suggestion to replace this with >> simple counter increment in IRQ handler. > > It was indeed unsafe until recent b00bccb3f0bb ("drm/i915/pmu: Handle > PCI u

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

2020-12-10 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

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

2020-12-10 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

Re: [PATCH v5 4/5] Driver core: platform: Add devm_platform_get_irqs_affinity()

2020-12-10 Thread John Garry
Hi Greg, {sigh} why do hardware engineers ignore sane busses... The next HW version is an integrated PCI endpoint, so there is hope. Anyway, if you all are going to maintain this, no objection from me, it should go through the irq tree. OK, thanks. So this is getting quite late for 5.11,

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

2020-12-10 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 0/2] workqueue: Fix migrate_disable hotplug changes vs kworker affinity

2020-12-10 Thread Valentin Schneider
Hi folks, This should fix the issue reported by Qian at [1]. Dietmar mentioned some other issue with hotplug & deadline tasks, but that's being investigated by someone else ATM. I would like to mention I suspect this bug comes straight from $hell, as I've never ever had to fight off so many (mo

[PATCH 1/2] stop_machine: Add caller debug info to queue_stop_cpus_work

2020-12-10 Thread Valentin Schneider
Most callsites were covered by commit a8b62fd08505 ("stop_machine: Add function and caller debug info") but this skipped queue_stop_cpus_work(). Add caller debug info to it. Signed-off-by: Valentin Schneider --- kernel/stop_machine.c | 1 + 1 file changed, 1 insertion(+) diff --git a/kernel

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

2020-12-10 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

Re: [tip: x86/cache] x86/resctrl: Fix incorrect local bandwidth when mba_sc is enabled

2020-12-10 Thread Xiaochen Shen
Hi Boris, On 12/10/2020 18:26, Borislav Petkov wrote: On Thu, Dec 10, 2020 at 12:45:11PM +0800, Xiaochen Shen wrote: Thank you for clarifying this issue. It is not a 0-DAY CI issue. Which begs the question: this patch should be Cc: stable and should go in now, shouldn't it? Because then the f

[PATCH 2/2] workqueue: Fix affinity of kworkers attached during late hotplug

2020-12-10 Thread Valentin Schneider
Per-CPU kworkers forcefully migrated away by hotplug via workqueue_offline_cpu() can end up spawning more kworkers via manage_workers() -> maybe_create_worker() Workers created at this point will be bound using pool->attrs->cpumask which in this case is wrong, as the hotplug state machine a

Re: [PATCH v2 1/3] KVM: x86: implement KVM_{GET|SET}_TSC_STATE

2020-12-10 Thread Marcelo Tosatti
On Wed, Dec 09, 2020 at 09:58:23PM +0100, Thomas Gleixner wrote: > Marcelo, > > On Wed, Dec 09 2020 at 13:34, Marcelo Tosatti wrote: > > On Tue, Dec 08, 2020 at 10:33:15PM +0100, Thomas Gleixner wrote: > >> On Tue, Dec 08 2020 at 15:11, Marcelo Tosatti wrote: > >> > max_cycles overflow. Sent a mes

Re: [External] Re: [PATCH v8 04/12] mm/hugetlb: Free the vmemmap pages associated with each HugeTLB page

2020-12-10 Thread Muchun Song
On Thu, Dec 10, 2020 at 10:44 PM Oscar Salvador wrote: > > On Thu, Dec 10, 2020 at 03:42:56PM +0100, Oscar Salvador wrote: > > On Thu, Dec 10, 2020 at 11:55:18AM +0800, Muchun Song wrote: > > > The free_vmemmap_pages_per_hpage() which indicate that how many vmemmap > > > pages associated with a Hu

[PATCH 5.9 22/75] cifs: allow syscalls to be restarted in __smb_send_rqst()

2020-12-10 Thread Greg Kroah-Hartman
From: Paulo Alcantara commit 6988a619f5b79e4efadea6e19dcfe75fbcd350b5 upstream. A customer has reported that several files in their multi-threaded app were left with size of 0 because most of the read(2) calls returned -EINTR and they assumed no bytes were read. Obviously, they could have fixed

RE: linux-next: Tree for Dec 9 (usb/cdns3)

2020-12-10 Thread Pawel Laszczak
Peter, > >> >>> >>>On 20-12-09 16:58:16, Randy Dunlap wrote: On 12/9/20 2:44 AM, Stephen Rothwell wrote: > Hi all, > > Changes since 20201208: > (I don't know what to do about this one -- seeking help.) >>> >>>Add Pawel. >>> >>>Hi Pawel, >>> >>>Add old cdns3 logi

[PATCH 5.9 20/75] ftrace: Fix updating FTRACE_FL_TRAMP

2020-12-10 Thread Greg Kroah-Hartman
From: Naveen N. Rao commit 4c75b0ff4e4bf7a45b5aef9639799719c28d0073 upstream. On powerpc, kprobe-direct.tc triggered FTRACE_WARN_ON() in ftrace_get_addr_new() followed by the below message: Bad trampoline accounting at: 4222522f (wake_up_process+0xc/0x20) (f001) The set of steps

Re: [RFC PATCH 04/15] lib/scatterlist: Add flag for indicating P2PDMA segments in an SGL

2020-12-10 Thread Logan Gunthorpe
On 2020-12-09 9:04 p.m., Dan Williams wrote: > On Wed, Dec 9, 2020 at 6:07 PM Logan Gunthorpe wrote: >> >> >> >> On 2020-12-09 6:22 p.m., Dan Williams wrote: >>> On Mon, Nov 9, 2020 at 8:47 AM Logan Gunthorpe wrote: On 2020-11-09 2:12 a.m., Christoph Hellwig wrote: > On

Re: [PATCH 5.4 21/54] s390/pci: fix CPU address in MSI for directed IRQ

2020-12-10 Thread Greg Kroah-Hartman
On Thu, Dec 10, 2020 at 05:34:08PM +0100, Niklas Schnelle wrote: > Hi Greg, > > sorry to bother you but I missed that the smp_cpu_get_cpu_address() > address used here was only added with the > commit 42d211a1ae3b77 ("s390/cpuinfo: show processor physical address") > which landed in v5.7-rc1. This

Re: [RFC PATCH] drm/panel: Make backlight attachment lazy

2020-12-10 Thread Thierry Reding
On Thu, Dec 10, 2020 at 11:15:38AM +0100, Daniel Vetter wrote: > On Wed, Dec 09, 2020 at 02:28:18PM -0600, Bjorn Andersson wrote: > > On Tue 08 Dec 17:52 CST 2020, Daniel Vetter wrote: > > > > > On Tue, Dec 08, 2020 at 04:02:16PM -0600, Bjorn Andersson wrote: > > > > On Tue 08 Dec 06:47 CST 2020,

RE:[PATCH v2 0/6] kernfs: proposed locking and concurrency improvement

2020-12-10 Thread Fox Chen
Hi, I found this series of patches solves exact the problem I am trying to solve. https://lore.kernel.org/lkml/20201202145837.48040-1-foxhlc...@gmail.com/ The problem is reported by Brice Goglin on thread: Re: [PATCH 1/4] drivers core: Introduce CPU type sysfs interface https://lore.kernel.org/lk

[PATCH 5.4 00/54] 5.4.83-rc2 review

2020-12-10 Thread Greg Kroah-Hartman
This is the start of the stable review cycle for the 5.4.83 release. There are 54 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. Responses should be made by Sat, 12 Dec 2020 16:47:12 +. Anything rece

[PATCH 5.9 18/75] ring-buffer: Set the right timestamp in the slow path of __rb_reserve_next()

2020-12-10 Thread Greg Kroah-Hartman
From: Andrea Righi commit 8785f51a17083eee7c37606079c6447afc6ba102 upstream. In the slow path of __rb_reserve_next() a nested event(s) can happen between evaluating the timestamp delta of the current event and updating write_stamp via local_cmpxchg(); in this case the delta is not valid anymore

[PATCH 4.19 33/39] tracing: Fix userstacktrace option for instances

2020-12-10 Thread Greg Kroah-Hartman
From: Steven Rostedt (VMware) commit bcee5278958802b40ee8b26679155a6d9231783e upstream. When the instances were able to use their own options, the userstacktrace option was left hardcoded for the top level. This made the instance userstacktrace option bascially into a nop, and will confuse users

[PATCH 5.9 17/75] ring-buffer: Update write stamp with the correct ts

2020-12-10 Thread Greg Kroah-Hartman
From: Steven Rostedt (VMware) commit 55ea4cf403800af2ce6b125bc3d853117e0c0456 upstream. The write stamp, used to calculate deltas between events, was updated with the stale "ts" value in the "info" structure, and not with the updated "ts" variable. This caused the deltas between events to be ina

[PATCH 4.19 26/39] i2c: imx: Check for I2SR_IAL after every byte

2020-12-10 Thread Greg Kroah-Hartman
From: Christian Eggers commit 1de67a3dee7a279ebe4d892b359fe3696938ec15 upstream. Arbitration Lost (IAL) can happen after every single byte transfer. If arbitration is lost, the I2C hardware will autonomously switch from master mode to slave. If a transfer is not aborted in this state, consecutiv

[PATCH 4.19 38/39] netfilter: nf_tables: avoid false-postive lockdep splat

2020-12-10 Thread Greg Kroah-Hartman
From: Florian Westphal commit c0700dfa2cae44c033ed97dade8a2679c7d22a9d upstream. There are reports wrt lockdep splat in nftables, e.g.: [ cut here ] WARNING: CPU: 2 PID: 31416 at net/netfilter/nf_tables_api.c:622 lockdep_nfnl_nft_mutex_not_held+0x28/0x38 [nf_tables] ...

[PATCH 4.19 37/39] Input: i8042 - fix error return code in i8042_setup_aux()

2020-12-10 Thread Greg Kroah-Hartman
From: Luo Meng commit 855b69857830f8d918d715014f05e59a3f7491a0 upstream. Fix to return a negative error code from the error handling case instead of 0 in function i8042_setup_aux(), as done elsewhere in this function. Fixes: f81134163fc7 ("Input: i8042 - use platform_driver_probe") Reported-by:

[PATCH 5.9 15/75] ALSA: hda/realtek - Fixed Dell AIO wrong sound tone

2020-12-10 Thread Greg Kroah-Hartman
From: Kailang Yang commit 92666d45adcfd4a4a70580ff9f732309e16131f9 upstream. This platform only had one audio jack. If it plugged speaker then replug with speaker or headset, the sound tone will change to abnormal. Headset Mic also can't record when this issue was happen. [ Added a short commen

Re: [patch] close_range.2: new page documenting close_range(2)

2020-12-10 Thread Alejandro Colomar (man-pages)
Hi Christian, Thanks for confirming that behavior. Seems reasonable. I was wondering... If this call is equivalent to unshare(2)+{close(2) in a loop}, shouldn't it fail for the same reasons those syscalls can fail? What about the following errors?: >From unshare(2): EPERM The calling

[PATCH 5.9 16/75] ALSA: hda/generic: Add option to enforce preferred_dacs pairs

2020-12-10 Thread Greg Kroah-Hartman
From: Takashi Iwai commit 242d990c158d5b1dabd166516e21992baef5f26a upstream. The generic parser accepts the preferred_dacs[] pairs as a hint for assigning a DAC to each pin, but this hint doesn't work always effectively. Currently it's merely a secondary choice after the trial with the path ind

[PATCH 5.4 49/54] i2c: qup: Fix error return code in qup_i2c_bam_schedule_desc()

2020-12-10 Thread Greg Kroah-Hartman
From: Zhihao Cheng commit e9acf0298c664f825e6f1158f2a97341bf9e03ca upstream. Fix to return the error code from qup_i2c_change_state() instaed of 0 in qup_i2c_bam_schedule_desc(). Fixes: fbf9921f8b35d9b2 ("i2c: qup: Fix error handling") Reported-by: Hulk Robot Signed-off-by: Zhihao Cheng Revie

Re: [RFC PATCH] drm/panel: Make backlight attachment lazy

2020-12-10 Thread Daniel Vetter
On Thu, Dec 10, 2020 at 5:44 PM Thierry Reding wrote: > > On Thu, Dec 10, 2020 at 11:15:38AM +0100, Daniel Vetter wrote: > > On Wed, Dec 09, 2020 at 02:28:18PM -0600, Bjorn Andersson wrote: > > > On Tue 08 Dec 17:52 CST 2020, Daniel Vetter wrote: > > > > > > > On Tue, Dec 08, 2020 at 04:02:16PM -0

Re: [tip: x86/cache] x86/resctrl: Fix incorrect local bandwidth when mba_sc is enabled

2020-12-10 Thread Borislav Petkov
On Fri, Dec 11, 2020 at 12:40:46AM +0800, Xiaochen Shen wrote: > I plan to do backporting for all -stable trees after this patch is merged > into upstream. Ok, you can do that when Greg sends the mails that it cannot apply to the respective trees. Lemme queue this one to urgent now. Thx. -- Reg

[PATCH 5.4 53/54] netfilter: nftables_offload: set address type in control dissector

2020-12-10 Thread Greg Kroah-Hartman
From: Pablo Neira Ayuso commit 3c78e9e0d33a27ab8050e4492c03c6a1f8d0ed6b upstream. This patch adds nft_flow_rule_set_addr_type() to set the address type from the nft_payload expression accordingly. If the address type is not set in the control dissector then a rule that matches either on source

Re: WARNING in sk_stream_kill_queues (5)

2020-12-10 Thread Marco Elver
On Wed, Dec 09, 2020 at 01:47PM +0100, Marco Elver wrote: > On Tue, Dec 08, 2020 at 08:06PM +0100, Marco Elver wrote: > > On Thu, 3 Dec 2020 at 19:01, Eric Dumazet wrote: > > > On 12/3/20 6:41 PM, Marco Elver wrote: > > > > > > > One more experiment -- simply adding > > > > > > > > --- a/net/core/

[PATCH 5.4 51/54] Input: i8042 - fix error return code in i8042_setup_aux()

2020-12-10 Thread Greg Kroah-Hartman
From: Luo Meng commit 855b69857830f8d918d715014f05e59a3f7491a0 upstream. Fix to return a negative error code from the error handling case instead of 0 in function i8042_setup_aux(), as done elsewhere in this function. Fixes: f81134163fc7 ("Input: i8042 - use platform_driver_probe") Reported-by:

[PATCH 5.4 25/54] scsi: mpt3sas: Fix ioctl timeout

2020-12-10 Thread Greg Kroah-Hartman
From: Suganath Prabu S commit 42f687038bcc34aa919e0e4c29b04e4cda3f6a79 upstream. Commit c1a6c5ac4278 ("scsi: mpt3sas: For NVME device, issue a protocol level reset") modified the ioctl path 'timeout' variable type to u8 from unsigned long, limiting the maximum timeout value that the driver can s

Re: [PATCH] checkpatch: add --fix option to IS_ENABLED_CONFIG check

2020-12-10 Thread Joe Perches
On Thu, 2020-12-10 at 19:49 +0530, Dwaipayan Ray wrote: > Documentation/process/coding-style.rst specifies the use of > IS_ENABLED macro: > > Within code, where possible, use the IS_ENABLED macro to convert a Kconfig > symbol into a C boolean expression, and use it in a normal C conditional: > >

[PATCH 4.19 34/39] gfs2: check for empty rgrp tree in gfs2_ri_update

2020-12-10 Thread Greg Kroah-Hartman
From: Bob Peterson commit 778721510e84209f78e31e2ccb296ae36d623f5e upstream. If gfs2 tries to mount a (corrupt) file system that has no resource groups it still tries to set preferences on the first one, which causes a kernel null pointer dereference. This patch adds a check to function gfs2_ri_

[PATCH 5.4 54/54] x86/insn-eval: Use new for_each_insn_prefix() macro to loop over prefixes bytes

2020-12-10 Thread Greg Kroah-Hartman
From: Masami Hiramatsu commit 12cb908a11b2544b5f53e9af856e6b6a90ed5533 upstream Since insn.prefixes.nbytes can be bigger than the size of insn.prefixes.bytes[] when a prefix is repeated, the proper check must be insn.prefixes.bytes[i] != 0 and i < 4 instead of using insn.prefixes.nbytes. Use

[PATCH 5.4 22/54] i2c: imx: Dont generate STOP condition if arbitration has been lost

2020-12-10 Thread Greg Kroah-Hartman
From: Christian Eggers commit 61e6fe59ede155881a622f5901551b1cc8748f6a upstream. If arbitration is lost, the master automatically changes to slave mode. I2SR_IBB may or may not be reset by hardware. Raising a STOP condition by resetting I2CR_MSTA has no effect and will not clear I2SR_IBB. So ca

Re: [PATCH V3 1/7] remoteproc: elf: support platform specific memory hook

2020-12-10 Thread Bjorn Andersson
On Sun 06 Dec 20:07 CST 2020, Peng Fan wrote: > Hi Bjorn, > > > Subject: Re: [PATCH V3 1/7] remoteproc: elf: support platform specific > > memory hook > > > > On Fri 04 Dec 01:40 CST 2020, Peng Fan (OSS) wrote: > > > > > From: Peng Fan > > > > > > To arm64, "dc zva, dst" is used in memset

[PATCH 5.4 20/54] cifs: fix potential use-after-free in cifs_echo_request()

2020-12-10 Thread Greg Kroah-Hartman
From: Paulo Alcantara commit 212253367dc7b49ed3fc194ce71b0992eacaecf2 upstream. This patch fixes a potential use-after-free bug in cifs_echo_request(). For instance, thread 1 cifs_demultiplex_thread() clean_demultiplex_info() kfree(server) thread 2 (workqueue) ---

Good Day Dearest One,

2020-12-10 Thread Mrs.MARIA DEL PILAR REZOLA
Good Day Dearest One, I pray this mail finds you in a state of your sound health and indomitable spirit. Please, I would like to confide in you for your honesty and truth for progress, I feel quite safe dealing with you in this important Project. Let me introduce myself to you, I am MRS.MARIA DEL

[PATCH 4.19 09/39] USB: serial: option: fix Quectel BG96 matching

2020-12-10 Thread Greg Kroah-Hartman
From: Bjørn Mork commit c98fff7332dbd6e028969f8c2bda3d7bc7a024d8 upstream. This is a partial revert of commit 2bb70f0a4b23 ("USB: serial: option: support dynamic Quectel USB compositions") The Quectel BG96 is different from most other modern Quectel modems, having serial functions with 3 endpoi

[PATCH 5.4 45/54] netfilter: ipset: prevent uninit-value in hash_ip6_add

2020-12-10 Thread Greg Kroah-Hartman
From: Eric Dumazet commit 68ad89de918e1c5a79c9c56127e5e31741fd517e upstream. syzbot found that we are not validating user input properly before copying 16 bytes [1]. Using NLA_BINARY in ipaddr_policy[] for IPv6 address is not correct, since it ensures at most 16 bytes were provided. We should

[PATCH 5.4 47/54] ASoC: wm_adsp: fix error return code in wm_adsp_load()

2020-12-10 Thread Greg Kroah-Hartman
From: Luo Meng commit 3fba05a2832f93b4d0cd4204f771fdae0d823114 upstream. Fix to return a negative error code from the error handling case instead of 0 in function wm_adsp_load(), as done elsewhere in this function. Fixes: 170b1e123f38 ("ASoC: wm_adsp: Add support for new Halo core DSPs") Report

[PATCH 4.19 39/39] x86/insn-eval: Use new for_each_insn_prefix() macro to loop over prefixes bytes

2020-12-10 Thread Greg Kroah-Hartman
From: Masami Hiramatsu commit 12cb908a11b2544b5f53e9af856e6b6a90ed5533 upstream Since insn.prefixes.nbytes can be bigger than the size of insn.prefixes.bytes[] when a prefix is repeated, the proper check must be insn.prefixes.bytes[i] != 0 and i < 4 instead of using insn.prefixes.nbytes. Use

Re: [PATCH 1/2] acpi: cppc: add cpufreq device

2020-12-10 Thread Rafael J. Wysocki
On Thursday, December 10, 2020 4:04:40 PM CET Mian Yousaf Kaukab wrote: > On Thu, Dec 10, 2020 at 03:32:09PM +0100, Rafael J. Wysocki wrote: > > On Thu, Dec 10, 2020 at 3:23 PM Mian Yousaf Kaukab > > wrote: > > > > > > Convert cppc-cpufreq driver to a platform driver (done in a separate > > > pat

[PATCH 4.19 08/39] USB: serial: option: add support for Thales Cinterion EXS82

2020-12-10 Thread Greg Kroah-Hartman
From: Giacinto Cifelli commit 6d6556c04ebaeaf4e7fa8b791c97e2a7c41b38a3 upstream. There is a single option port in this modem, and it is used as debug port. lsusb -v for this device: Bus 001 Device 002: ID 1e2d:006c Device Descriptor: bLength18 bDescriptorType 1 bc

Re: [External] Re: [RESEND PATCH v2 01/12] mm: memcontrol: fix NR_ANON_THPS account

2020-12-10 Thread Muchun Song
On Fri, Dec 11, 2020 at 12:06 AM Johannes Weiner wrote: > > On Sun, Dec 06, 2020 at 06:14:40PM +0800, Muchun Song wrote: > > The unit of NR_ANON_THPS is HPAGE_PMD_NR already. So it should inc/dec > > by one rather than nr_pages. > > > > Fixes: 468c398233da ("mm: memcontrol: switch to native NR_ANO

[tip: x86/urgent] x86/resctrl: Fix incorrect local bandwidth when mba_sc is enabled

2020-12-10 Thread tip-bot2 for Xiaochen Shen
The following commit has been merged into the x86/urgent branch of tip: Commit-ID: 06c5fe9b12dde1b62821f302f177c972bb1c81f9 Gitweb: https://git.kernel.org/tip/06c5fe9b12dde1b62821f302f177c972bb1c81f9 Author:Xiaochen Shen AuthorDate:Fri, 04 Dec 2020 14:27:59 +08:00 Committe

[PATCH 5.4 44/54] gfs2: check for empty rgrp tree in gfs2_ri_update

2020-12-10 Thread Greg Kroah-Hartman
From: Bob Peterson commit 778721510e84209f78e31e2ccb296ae36d623f5e upstream. If gfs2 tries to mount a (corrupt) file system that has no resource groups it still tries to set preferences on the first one, which causes a kernel null pointer dereference. This patch adds a check to function gfs2_ri_

[PATCH 4.19 35/39] i2c: qup: Fix error return code in qup_i2c_bam_schedule_desc()

2020-12-10 Thread Greg Kroah-Hartman
From: Zhihao Cheng commit e9acf0298c664f825e6f1158f2a97341bf9e03ca upstream. Fix to return the error code from qup_i2c_change_state() instaed of 0 in qup_i2c_bam_schedule_desc(). Fixes: fbf9921f8b35d9b2 ("i2c: qup: Fix error handling") Reported-by: Hulk Robot Signed-off-by: Zhihao Cheng Revie

[PATCH 5.4 39/54] spi: bcm2835: Release the DMA channel if probe fails after dma_init

2020-12-10 Thread Greg Kroah-Hartman
From: Peter Ujfalusi [ Upstream commit 666224b43b4bd4612ce3b758c038f9bc5c5e3fcb ] The DMA channel was not released if either devm_request_irq() or devm_spi_register_controller() failed. Signed-off-by: Peter Ujfalusi Reviewed-by: Nicolas Saenz Julienne Link: https://lore.kernel.org/r/201912121

[PATCH 4.19 05/39] USB: serial: ch341: add new Product ID for CH341A

2020-12-10 Thread Greg Kroah-Hartman
From: Jan-Niklas Burfeind commit 46ee4abb10a07bd8f8ce910ee6b4ae6a947d7f63 upstream. Add PID for CH340 that's found on a ch341 based Programmer made by keeyees. The specific device that contains the serial converter is described here: http://www.keeyees.com/a/Products/ej/36.html The driver works

  1   2   3   4   5   6   7   8   9   10   >