[PATCH 09/33] scripts: get_abi.pl: use bold font for ABI definitions

2020-10-28 Thread Mauro Carvalho Chehab
As we're using tables, let's distinguish the ones used by ABI by using a bold font. Signed-off-by: Mauro Carvalho Chehab --- scripts/get_abi.pl | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/get_abi.pl b/scripts/get_abi.pl index f2c8a888148b..b4868ee8e955 100755 --- a/scripts/get_ab

Re: [PATCH] module: use hidden visibility for weak symbol references

2020-10-28 Thread Jessica Yu
+++ Will Deacon [28/10/20 13:24 +]: On Wed, Oct 28, 2020 at 01:27:01PM +0100, Ard Biesheuvel wrote: On Wed, 28 Oct 2020 at 11:00, Will Deacon wrote: > On Tue, Oct 27, 2020 at 04:11:32PM +0100, Ard Biesheuvel wrote: > > Geert reports that commit be2881824ae9eb92 ("arm64/build: Assert for > >

[PATCH] x86/kprobes: Restore BTF if the single-stepping is cancelled

2020-10-28 Thread Masami Hiramatsu
Fix to restore BTF if single-stepping causes a page fault and it is cancelled. Usually the BTF flag was restored when the single stepping is done (in resume_execution()). However, if a page fault happens on the single stepping instruction, the fault handler is invoked and the single stepping is ca

Re: [PATCH v3] KVM: arm64: ARM_SMCCC_ARCH_WORKAROUND_1 doesn't return SMCCC_RET_NOT_REQUIRED

2020-10-28 Thread Will Deacon
On Fri, 23 Oct 2020 08:47:50 -0700, Stephen Boyd wrote: > According to the SMCCC spec[1](7.5.2 Discovery) the > ARM_SMCCC_ARCH_WORKAROUND_1 function id only returns 0, 1, and > SMCCC_RET_NOT_SUPPORTED. > > 0 is "workaround required and safe to call this function" > 1 is "workaround not required

Re: [PATCH v3 5/6] irq_work: Provide irq_work_queue_remote()

2020-10-28 Thread Frederic Weisbecker
On Wed, Oct 28, 2020 at 03:53:24PM +0100, Peter Zijlstra wrote: > On Wed, Oct 28, 2020 at 02:40:46PM +0100, Frederic Weisbecker wrote: > > On Wed, Oct 28, 2020 at 12:07:12PM +0100, Peter Zijlstra wrote: > > > While the traditional irq_work relies on the ability to self-IPI, it > > > makes sense to

[PATCH 0/9] ftrace: Have callbacks handle their own recursion

2020-10-28 Thread Steven Rostedt
I found that having the ftrace infrastructure use its own trampoline to handle recursion and RCU by defaulte unless the ftrace_ops set the appropriate flags, was an issue that nobody set those flags. But then their callbacks would suffer from an unnecessary overhead instead of simply handling the r

[PATCH 14/33] docs: kernel_abi.py: make it compatible with Sphinx 1.7+

2020-10-28 Thread Mauro Carvalho Chehab
From: Mauro Carvalho Chehab The same way kerneldoc.py needed changes to work with newer Sphinx, this script needs the same changes. While here, reorganize the include order to match kerneldoc.py. Signed-off-by: Mauro Carvalho Chehab Signed-off-by: Mauro Carvalho Chehab --- Documentation/sphi

Re: [PATCH 07/13] ARM: dts: imx7-mba7: configure watchdog

2020-10-28 Thread Shawn Guo
On Fri, Sep 18, 2020 at 01:29:36PM +0200, Matthias Schiffer wrote: > The external watchdog reset is necessary, as the internal reset is > unreliable on i.MX7. > > Signed-off-by: Matthias Schiffer Applied, thanks.

[PATCH 11/33] docs: kernellog.py: add support for info()

2020-10-28 Thread Mauro Carvalho Chehab
From: Mauro Carvalho Chehab An extension may want to just inform about something. So, add support for it. Signed-off-by: Mauro Carvalho Chehab Signed-off-by: Mauro Carvalho Chehab --- Documentation/sphinx/kernellog.py | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Do

[PATCH 26/33] docs: ABI: convert testing/configfs-acpi to ReST

2020-10-28 Thread Mauro Carvalho Chehab
There are some problems with this file when a ReST content is produced. Fix it. Signed-off-by: Mauro Carvalho Chehab --- Documentation/ABI/testing/configfs-acpi | 34 ++--- 1 file changed, 25 insertions(+), 9 deletions(-) diff --git a/Documentation/ABI/testing/configfs-acpi

[GIT PULL] tracing, synthetic events: Replace buggy strcat() with seq_buf operations

2020-10-28 Thread Steven Rostedt
Linus, Fix synthetic event "strcat" overrun New synthetic event code used strcat() and miscalculated the ending, causing the concatenation to write beyond the allocated memory. Instead of using strncat(), the code is switched over to seq_buf which has all the mechanisms in place to protect again

[PATCH 05/33] scripts: get_abi.pl: cleanup ABI cross-reference logic

2020-10-28 Thread Mauro Carvalho Chehab
Right now, the cross-references are generated on a single step, when doing ReST output. While this is nice optimization, it prevents auto-creating cross-references for ABI symbols. So, split it into a separate logic. While here, turn on Perl warnings, as it helps to debug problems inside the scr

Re: [PATCH v2] dmaengine: pl330: Remove unreachable code

2020-10-28 Thread Vinod Koul
On 16-10-20, 16:03, Surendran K wrote: > _setup_req(..) never returns negative value. > Hence the condition ret < 0 is never met Applied, thanks -- ~Vinod

[PATCH 23/33] docs: ABI: don't escape ReST-incompatible chars from obsolete and removed

2020-10-28 Thread Mauro Carvalho Chehab
From: Mauro Carvalho Chehab With just a single fix, the contents there can be parsed properly without the need to escape any ReST incompatible stuff. Signed-off-by: Mauro Carvalho Chehab Signed-off-by: Mauro Carvalho Chehab --- Documentation/ABI/obsolete/sysfs-gpio | 2 ++ Documentation/

Re: [PATCH v3] net: core: Use skb_is_gso() in skb_checksum_help()

2020-10-28 Thread Jakub Kicinski
On Tue, 27 Oct 2020 13:59:04 +0800 Yi Li wrote: > No functional changes, just minor refactoring. > > Signed-off-by: Yi Li Applied, thanks!

RE: [PATCH V3 2/4] misc: vop: do not allocate and reassign the used ring

2020-10-28 Thread Sherry Sun
Hi Vincent, > Subject: Re: [PATCH V3 2/4] misc: vop: do not allocate and reassign the used > ring > > On Tue, Oct 27, 2020 at 08:05:43AM +0100, Sherry Sun wrote: > > Can you help test the patch about removing the codes of reassign used > > ring, and comment on the impact for Intel MIC platform?

[PATCH v2 2/5] Fonts: Make font size unsigned in font_desc

2020-10-28 Thread Peilin Ye
`width` and `height` are defined as unsigned in our UAPI font descriptor `struct console_font`. Make them unsigned in our kernel font descriptor `struct font_desc`, too. Also, change the corresponding printk() format identifiers from `%d` to `%u`, in sti_select_fbfont(). Signed-off-by: Peilin Ye

Re: [RFC] wimax: move out to staging

2020-10-28 Thread Arnd Bergmann
On Wed, Oct 28, 2020 at 11:34 AM Dan Carpenter wrote: > On Tue, Oct 27, 2020 at 10:20:13PM +0100, Arnd Bergmann wrote: > > From: Arnd Bergmann > > > > There are no known users of this driver as of October 2020, and it will > > be removed unless someone turns out to still need it in future release

[PATCH 03/33] scripts: get_abi.pl: Allow optionally record from where a line came from

2020-10-28 Thread Mauro Carvalho Chehab
From: Mauro Carvalho Chehab The get_abi.pl reads a lot of files and can join them on a single output file. Store where each "What:" output came from, in order to be able to optionally display it. This is useful for the Sphinx extension, with can now be able to blame what ABI file has issues, and

Re: [PATCH 1/8] mm: slab: provide krealloc_array()

2020-10-28 Thread Mike Rapoport
On Tue, Oct 27, 2020 at 01:17:18PM +0100, Bartosz Golaszewski wrote: > From: Bartosz Golaszewski > > When allocating an array of elements, users should check for > multiplication overflow or preferably use one of the provided helpers > like: kmalloc_array(). > > There's no krealloc_array() count

[PATCH] media: i2c: imx258: correct mode to GBGB/RGRG

2020-10-28 Thread Krzysztof Kozlowski
The IMX258 sensor outputs pixels in GBGB/RGRG mode. This is described explicitly in datasheet and was actually mentioned in a comment inside the driver. Using other - wrong mode - leads to pinkish pictures. Fixes: e4802cb00bfe ("media: imx258: Add imx258 camera sensor driver") Cc: Signed-off-by

Re: [PATCH v2] arm64: avoid -Woverride-init warning

2020-10-28 Thread Will Deacon
On Mon, 26 Oct 2020 20:37:46 +0100, Arnd Bergmann wrote: > The icache_policy_str[] definition causes a warning when extra > warning flags are enabled: > > arch/arm64/kernel/cpuinfo.c:38:26: warning: initialized field overwritten > [-Woverride-init] >38 | [ICACHE_POLICY_VIPT] = "VIPT", >

Re: [PATCH 04/13] ARM: dts: imx7-mba7: drop incorrect num-chipselects property

2020-10-28 Thread Shawn Guo
On Fri, Sep 18, 2020 at 01:29:33PM +0200, Matthias Schiffer wrote: > This property was never set correctly; it should have been num-cs. As > num-cs support is being removed as well, simply drop it. > > Signed-off-by: Matthias Schiffer Applied, thanks.

Re: [PATCH 4.14 000/191] 4.14.203-rc1 review

2020-10-28 Thread Guenter Roeck
On 10/27/20 6:47 AM, Greg Kroah-Hartman wrote: > This is the start of the stable review cycle for the 4.14.203 release. > There are 191 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 sh

Re: [PATCH] smp: Add bootcpus parameter to boot subset of CPUs

2020-10-28 Thread Sudeep Holla
On Wed, Oct 28, 2020 at 02:55:16PM +, Qais Yousef wrote: > Hi Elliot > > + Sudeep > > On 10/27/20 10:06, Elliot Berman wrote: > > > > On 10/26/2020 10:12 AM, Peter Zijlstra wrote: > > > On Mon, Oct 26, 2020 at 10:08:47AM -0700, psoda...@codeaurora.org wrote: > > > > On 2020-10-23 14:59, Thom

Re: Re: [RFC PATCH 0/3] Fix errors on DT overlay removal with devlinks

2020-10-28 Thread Saravana Kannan
On Wed, Oct 28, 2020 at 9:25 AM Michael Auchter wrote: > > Hey Saravana, > > Thanks for taking the time to look into this! > > On Mon, Oct 26, 2020 at 12:10:33PM -0700, Saravana Kannan wrote: > > On Wed, Oct 21, 2020 at 2:02 PM Frank Rowand wrote: > > > > > > Hi Saravana, > > > > > > Michael foun

Re: [PATCH v4 4/7] mtd: spi-nor: core: add configuration register 2 read & write support

2020-10-28 Thread Tudor.Ambarus
Hi, Mason, YC Lin, On 5/29/20 10:36 AM, Mason Yang wrote: > Configuration register 2 is to set the device operation condition like > STR or DTR mode at address offset 0 and DQS mode at address offset 0x200. > > Each device has various address offset for it's specific operatoin > setting. > > Sig

Re: [PATCH v7 1/6] dt-bindings: Add IEI vendor prefix and IEI WT61P803 PUZZLE driver bindings

2020-10-28 Thread Rob Herring
On Sun, Oct 25, 2020 at 02:59:11AM +0200, Luka Kovacic wrote: > Add the IEI WT61P803 PUZZLE Device Tree bindings for MFD, HWMON and LED > drivers. A new vendor prefix is also added accordingly for > IEI Integration Corp. > > Signed-off-by: Luka Kovacic > Cc: Luka Perkov > Cc: Robert Marko > ---

Re: [PATCH v2] gpio: mockup: Allow probing from device tree

2020-10-28 Thread Andy Shevchenko
On Wed, Oct 28, 2020 at 10:25 PM Andy Shevchenko wrote: > On Wed, Oct 28, 2020 at 8:41 PM Bartosz Golaszewski wrote: ... > It's not so. If you drop ugly ifdeffery (and I vote for that, see also It's not so -> It's not so simple. > above) the of_match_ptr() must be dropped as well. > Otherwise

Re: 答复: [PATCH] bus: mhi: core: Add support MHI EE FP for download firmware

2020-10-28 Thread Jeffrey Hugo
On 10/27/2020 7:39 PM, Carl Yin(殷张成) wrote: Hi Hemant and Jeffery: On Wednesday, October 28, 2020 7:02 AM, hemantk wrote: Hi Jeff, On 10/27/20 8:11 AM, Jeffrey Hugo wrote: On 10/27/2020 3:43 AM, carl@quectel.com wrote: From: "carl.yin" MHI wwan modems support download firmware to nand

Re: Proper support for Saitek X36F joystick

2020-10-28 Thread Pavel Machek
Hi! > > > This is from 4.19, but I doubt this changed recently. > > > > > > Saitek X36F+X35T combination is detected like this... in short one > > > hat, no switches, and lot of buttons. > > > > > > In reality, combination has 4 four-way switches (hats?), 2 slider > > > switches (three positions

[PATCH v7] fat: Add KUnit tests for checksums and timestamps

2020-10-28 Thread David Gow
Add some basic sanity-check tests for the fat_checksum() function and the fat_time_unix2fat() and fat_time_fat2unix() functions. These unit tests verify these functions return correct output for a number of test inputs. These tests were inspored by -- and serve a similar purpose to -- the timestam

RE: [PATCH v2 1/2] scsi: ufs: Put hba into LPM during clk gating

2020-10-28 Thread Avri Altman
> > > From: Can Guo > > During clock gating, after clocks are disabled, > put hba into LPM to save more power. > > Acked-by: Stanley Chu > Signed-off-by: Can Guo > Signed-off-by: Asutosh Das Reviewed-by: Avri Altman

Re: [PATCH] selftests/ftrace: remove _do_fork() leftovers

2020-10-28 Thread Steven Rostedt
On Tue, 27 Oct 2020 22:46:57 -0400 Steven Rostedt wrote: > Yep, that was the result of this thread. And if it's not clear. That thread supersedes this one. -- Steve

Re: [PATCH 00/14] USB: serial: keyspan_pda: fix up write implementation

2020-10-28 Thread Greg KH
On Sun, Oct 25, 2020 at 06:45:46PM +0100, Johan Hovold wrote: > This series fixes a number of long-standing issues with the keyspan_pda > driver and reworks its write implementation so that it can be used with > any line discipline or for a system console. > > The last few patches cleans up the xi

[PATCH 01/11] afs: Fix copy_file_range()

2020-10-28 Thread David Howells
The prevention of splice-write without explicit ops made the copy_file_write() syscall to an afs file (as done by the generic/112 xfstest) fail with EINVAL. Fix by using iter_file_splice_write() for afs. Fixes: 36e2c7421f02 ("fs: don't allow splice read/write without explicit ops") Signed-off-by:

[PATCH 00/11] AFS fixes [ver #3]

2020-10-28 Thread David Howells
Here's a set of fixes for AFS: (1) Fix copy_file_range() to an afs file now returning EINVAL if the splice_write file op isn't supplied. (2) Fix a deref-before-check in afs_unuse_cell(). (3) Fix a use-after-free in afs_xattr_get_acl(). (4) Fix afs to not try to clear PG_writeback whe

[PATCH net-next 0/4] net: hdlc_fr: Add support for any Ethertype

2020-10-28 Thread Xie He
The main purpose of this series is the last patch. The previous 3 patches are just code clean-ups so that the last patch will not make the code too messy. The patches must be applied in sequence. The receiving code of this driver doesn't support arbitrary Ethertype values. It only recognizes a few

[PATCH v4] seq_file: fix clang warning for NULL pointer arithmetic

2020-10-28 Thread Arnd Bergmann
From: Arnd Bergmann Clang points out that adding something to NULL is not allowed in standard C: fs/kernfs/file.c:127:15: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic] return NULL + !*ppos;

[PATCH 00/33] ABI: add it to the documentation build system

2020-10-28 Thread Mauro Carvalho Chehab
Hi Greg, As requested, this is a rebased version on the top of v5.10-rc1 adding support for having the Linux ABI documentted inside the Linux admin manual. When compared with the version I sent years ago, this version has: - a logic to detect duplicated ABI symbols; - it auto-generate cross-refe

[PATCH 07/11] afs: Fix where page->private is set during write

2020-10-28 Thread David Howells
In afs, page->private is set to indicate the dirty region of a page. This is done in afs_write_begin(), but that can't take account of whether the copy into the page actually worked. Fix this by moving the change of page->private into afs_write_end(). Fixes: 4343d00872e1 ("afs: Get rid of the af

[PATCH 1/2] dt-bindings: pinctrl: qcom: Add SDX55 pinctrl bindings

2020-10-28 Thread Vinod Koul
Add device tree binding Documentation details for Qualcomm SDX55 pinctrl driver. Signed-off-by: Vinod Koul --- .../bindings/pinctrl/qcom,sdx55-pinctrl.yaml | 144 ++ 1 file changed, 144 insertions(+) create mode 100644 Documentation/devicetree/bindings/pinctrl/qcom,sdx55-pinct

[PATCH 08/11] afs: Wrap page->private manipulations in inline functions

2020-10-28 Thread David Howells
The afs filesystem uses page->private to store the dirty range within a page such that in the event of a conflicting 3rd-party write to the server, we write back just the bits that got changed locally. However, there are a couple of problems with this: (1) I need a bit to note if the page might

[PATCH 15/33] docs: kernel_abi.py: use --enable-lineno for get_abi.pl

2020-10-28 Thread Mauro Carvalho Chehab
From: Mauro Carvalho Chehab Just like kernel-doc extension, we need to be able to identify what part of an imported document has issues, as reporting them as: get_abi.pl rest --dir $srctree/Documentation/ABI/obsolete --rst-source:1689: ERROR: Unexpected indentation. Makes a lot harder

RE: [PATCH v2 2/2] ufs: qcom: Enable aggressive power collapse for ufs hba

2020-10-28 Thread Avri Altman
> > Enabling this capability to let hba power-collapse > more often to save power. > > Reviewed-by: Can Guo > Signed-off-by: Asutosh Das Reviewed-by: Avri Altman

Re: [PATCH 2/3] opp: Add devres wrapper for dev_pm_opp_set_prop_name

2020-10-28 Thread Viresh Kumar
On 12-10-20, 21:55, Frank Lee wrote: > From: Yangtao Li > > Add devres wrapper for dev_pm_opp_set_prop_name() to simplify driver > code. > > Signed-off-by: Yangtao Li > Signed-off-by: Yangtao Li > --- > drivers/opp/core.c | 39 +++ > include/linux/pm_op

[PATCH] arm64: Fix build error for init_new_context()

2020-10-28 Thread Kunihiko Hayashi
After init_new_context() in arch/arm64/include/asm/mmu_context.h changed to inline, asm-generic/mmu_context.h inclusion was added. This should be defined. Fixes these build error: ../include/asm-generic/mmu_context.h:34:19: error: redefinition of 'init_new_context' 34 | static inline int init

Re: [PATCH] ext4: properly check for dirty state in ext4_inode_datasync_dirty()

2020-10-28 Thread harshad shirwadkar
Actually the simpler fix for this in case of fast commits is to check if the inode is on the fast commit list or not. Since we clear the fast commit list after every fast and / or full commit, it's always true that if the inode is not on the list, that means it isn't dirty. This will simplify the l

[PATCH] powerpc/smp: Move rcu_cpu_starting() earlier

2020-10-28 Thread Qian Cai
The call to rcu_cpu_starting() in start_secondary() is not early enough in the CPU-hotplug onlining process, which results in lockdep splats as follows: WARNING: suspicious RCU usage - kernel/locking/lockdep.c:3497 RCU-list traversed in non-reader section!! other i

[PATCH 09/11] afs: Alter dirty range encoding in page->private

2020-10-28 Thread David Howells
Currently, page->private on an afs page is used to store the range of dirtied data within the page, where the range includes the lower bound, but excludes the upper bound (e.g. 0-1 is a range covering a single byte). This, however, requires a superfluous bit for the last-byte bound so that on a 4K

Re: [PATCH] cpufreq: speedstep: remove unneeded semicolon

2020-10-28 Thread Rafael J. Wysocki
On Tue, Oct 27, 2020 at 8:00 PM wrote: > > From: Tom Rix > > A semicolon is not needed after a switch statement. > > Signed-off-by: Tom Rix > --- > drivers/cpufreq/speedstep-lib.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/cpufreq/speedstep-lib.c b/drivers/

Re: [tip: locking/core] lockdep: Fix usage_traceoverflow

2020-10-28 Thread Chris Wilson
Quoting Chris Wilson (2020-10-28 17:40:48) > Quoting Chris Wilson (2020-10-27 16:34:53) > > Quoting Peter Zijlstra (2020-10-27 15:45:33) > > > On Tue, Oct 27, 2020 at 01:29:10PM +, Chris Wilson wrote: > > > > > > > <4> [304.908891] hm#2, depth: 6 [6], 3425cfea6ff31f7f != > > > > 547d92e9ec2ab

[PATCH 11/11] afs: Fix dirty-region encoding on ppc32 with 64K pages

2020-10-28 Thread David Howells
The dirty region bounds stored in page->private on an afs page are 15 bits on a 32-bit box and can, at most, represent a range of up to 32K within a 32K page with a resolution of 1 byte. This is a problem for powerpc32 with 64K pages enabled. Further, transparent huge pages may get up to 2M, whic

[PATCH 10/11] afs: Fix afs_invalidatepage to adjust the dirty region

2020-10-28 Thread David Howells
Fix afs_invalidatepage() to adjust the dirty region recorded in page->private when truncating a page. If the dirty region is entirely removed, then the private data is cleared and the page dirty state is cleared. Without this, if the page is truncated and then expanded again by truncate, zeros fr

Re: [PATCH 1/3] dt-bindings: gpio: sunxi:create a DT header for Allwinner pin controller

2020-10-28 Thread Frank Lee
On Wed, Jul 29, 2020 at 9:06 PM Maxime Ripard wrote: > > Hi, > > On Sat, Jul 25, 2020 at 02:18:39PM -0500, Samuel Holland wrote: > > On 7/17/20 11:07 AM, Maxime Ripard wrote: > > > Hi! > > > > > > On Wed, Jul 15, 2020 at 07:54:12PM +0800, Frank Lee wrote: > > >> From: Yangtao Li > > >> > > >> The

[PATCH v3 1/9] perf mem: Search event name with more flexible path

2020-10-28 Thread Leo Yan
Perf tool searches memory event name under the folder '/sys/devices/cpu/events/', this leads to the limitation for selection memory profiling event which must be under this folder. Thus it's impossible to use any other event as memory event which is not under this specific folder, e.g. Arm SPE har

Re: [PATCH 0/2] UCSI race condition resulting in wrong port state

2020-10-28 Thread Greg Kroah-Hartman
On Fri, Oct 09, 2020 at 04:40:45PM +0200, Benjamin Berg wrote: > From: Benjamin Berg > > Hi all, > > so, I kept running in an issue where the UCSI port information was saying > that power was being delivered (online: 1), while no cable was attached. > > The core of the problem is that there are

[PATCH 03/11] afs: Fix a use after free in afs_xattr_get_acl()

2020-10-28 Thread David Howells
From: Dan Carpenter The "op" pointer is freed earlier when we call afs_put_operation(). Fixes: e49c7b2f6de7 ("afs: Build an abstraction around an "operation" concept") Signed-off-by: Dan Carpenter Signed-off-by: David Howells cc: Colin Ian King --- fs/afs/xattr.c |2 +- 1 file changed,

[PATCH 1/8] sched: Correct misspellings in core-scheduling.rst

2020-10-28 Thread John B. Wyatt IV
'priorty', 'guarenteed', 'guarentee' should be: priority, guaranteed, guarantee. Issue reported by checkpatch. Signed-off-by: John B. Wyatt IV --- Documentation/admin-guide/hw-vuln/core-scheduling.rst | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Documentation/admi

Re: [PATCH char-misc-next 1/1] misc: mic: remove the MIC drivers

2020-10-28 Thread Dutt, Sudeep
On Wed, 2020-10-28 at 06:54 +0100, Greg Kroah-Hartman wrote: > On Tue, Oct 27, 2020 at 08:14:15PM -0700, Sudeep Dutt wrote: > > This patch removes the MIC drivers from the kernel tree > > since the corresponding devices have been discontinued. > > Does "discontinued" mean "never shipped a device s

Re: [PATCH 4.19 072/264] ASoC: qcom: lpass-platform: fix memory leak

2020-10-28 Thread Pavel Machek
Hi! > From: Rohit kumar > > [ Upstream commit 5fd188215d4eb52703600d8986b22311099a5940 ] > > lpass_pcm_data is never freed. Free it in close > ops to avoid memory leak. AFAICT this introduces memory leaks in the error paths. Best regards,

Re: Re: [PATCH v2 net] net: sch_generic: aviod concurrent reset and enqueue op for lockless qdisc

2020-10-28 Thread Vishwanath Pai
On 9/17/20 3:26 PM, Cong Wang wrote: > On Fri, Sep 11, 2020 at 1:13 AM Yunsheng Lin wrote: >> >> On 2020/9/11 4:07, Cong Wang wrote: >>> On Tue, Sep 8, 2020 at 4:06 AM Yunsheng Lin wrote: Currently there is concurrent reset and enqueue operation for the same lockless qdisc whe

[PATCH 02/11] afs: Fix tracing deref-before-check

2020-10-28 Thread David Howells
The patch dca54a7bbb8c: "afs: Add tracing for cell refcount and active user count" from Oct 13, 2020, leads to the following Smatch complaint: fs/afs/cell.c:596 afs_unuse_cell() warn: variable dereferenced before check 'cell' (see line 592) Fix this by moving the retrieval of the cell deb

[PATCH v2] mm: memcg/slab: Fix return child memcg objcg for root memcg

2020-10-28 Thread Muchun Song
Consider the following memcg hierarchy. root /\ A B If we get the objcg of memcg A failed, the get_obj_cgroup_from_current can return the wrong objcg for the root memcg. Fixes: bf4f059954dc ("mm: memcg/slab: obj_cgroup API") Signe

Re: [PATCH] Documentation: Add documentation for new platform_profile sysfs attribute

2020-10-28 Thread Hans de Goede
Hi, On 10/28/20 2:45 PM, Bastien Nocera wrote: > Hey Hans, Mark, > > On Tue, 2020-10-27 at 12:42 -0400, Mark Pearson wrote: >> From: Hans de Goede >> >> On modern systems the platform performance, temperature, fan and >> other >> hardware related characteristics are often dynamically configurabl

Re: Proper support for Saitek X36F joystick

2020-10-28 Thread Pavel Machek
On Wed 2020-10-28 17:29:23, Jiri Kosina wrote: > On Wed, 28 Oct 2020, Pavel Machek wrote: > > > So no, I can't even replace it with equivalent one. Perhaps hrdc got > > decompilation wrong, or I'm doing something else wrong. > > You don't need to do any decompilation -- the descriptor can be obta

[PATCH 04/11] afs: Fix afs_launder_page to not clear PG_writeback

2020-10-28 Thread David Howells
Fix afs_launder_page() to not clear PG_writeback on the page it is laundering as the flag isn't set in this case. Fixes: 4343d00872e1 ("afs: Get rid of the afs_writeback record") Signed-off-by: David Howells --- fs/afs/internal.h |1 + fs/afs/write.c| 10 ++ 2 files changed, 7

Re: [External] Re: [PATCH v2 05/19] mm/hugetlb: Introduce pgtable allocation/freeing helpers

2020-10-28 Thread Muchun Song
On Wed, Oct 28, 2020 at 8:33 AM Mike Kravetz wrote: > > On 10/26/20 7:51 AM, Muchun Song wrote: > > On some architectures, the vmemmap areas use huge page mapping. > > If we want to free the unused vmemmap pages, we have to split > > the huge pmd firstly. So we should pre-allocate pgtable to split

Re: [PATCH net 5/5] net: ipa: avoid going past end of resource group array

2020-10-28 Thread Alex Elder
On 10/27/20 7:14 PM, Willem de Bruijn wrote: On Tue, Oct 27, 2020 at 12:38 PM Alex Elder wrote: The minimum and maximum limits for resources assigned to a given resource group are programmed in pairs, with the limits for two groups set in a single register. If the number of supported resource

Re: [PATCH] Fix typo in irq_domain documentation

2020-10-28 Thread Raphael Norwitz
Ping - looks like this was never applied? On Tue, Aug 25, 2020 at 6:23 AM Marc Zyngier wrote: > > On 2020-08-19 22:53, Raphael Norwitz wrote: > > The irq_domain documentation states that "Here the interrupt number > > loose all kind of correspondence to hardware interrupt numbers:...". > > It's c

Re: [PATCH RFC v2 08/21] kasan: remove __kasan_unpoison_stack

2020-10-28 Thread Dmitry Vyukov
On Thu, Oct 22, 2020 at 3:19 PM Andrey Konovalov wrote: > > There's no need for __kasan_unpoison_stack() helper, as it's only > currently used in a single place. Removing it also removes undeed > arithmetic. > > No functional changes. > > Signed-off-by: Andrey Konovalov > Link: > https://linux-r

[PATCH] MAINTAINERS: Update AMD POWERPLAY pattern

2020-10-28 Thread Joe Perches
commit e098bc9612c2 ("drm/amd/pm: optimize the power related source code layout") moved the directory, update the F: file pattern to match. Signed-off-by: Joe Perches --- MAINTAINERS | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MAINTAINERS b/MAINTAINERS index 18aee48c4ffb

[PATCH v2 5/5] clk: imx: gate2: Add locking in is_enabled op

2020-10-28 Thread Abel Vesa
Protect against enabling/disabling the gate while we're checking if it is enabled. Signed-off-by: Abel Vesa --- drivers/clk/imx/clk-gate2.c | 10 +- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/drivers/clk/imx/clk-gate2.c b/drivers/clk/imx/clk-gate2.c index 7e4b5e8..480a1

[PATCH -next] firmware: tegra: Use memdup_user() as a cleanup

2020-10-28 Thread Zou Wei
Fix coccicheck warning which recommends to use memdup_user(). This patch fixes the following coccicheck warning: ./drivers/firmware/tegra/bpmp-debugfs.c:335:11-18: WARNING opportunity for memdup_user Fixes: 5e37b9c137ee ("firmware: tegra: Add support for in-band debug") Reported-by: Hulk Robot

Re: [PATCH] phy: tegra: xusb: Fix dangling pointer on probe failure

2020-10-28 Thread Thierry Reding
On Tue, Oct 13, 2020 at 10:58:20AM +0100, Marc Zyngier wrote: > If, for some reason, the xusb PHY fails to probe, it leaves > a dangling pointer attached to the platform device structure. > > This would normally be harmless, but the Tegra XHCI driver then > goes and extract that pointer from the P

Re: [PATCH 11/13] m68k/mm: make node data and node setup depend on CONFIG_DISCONTIGMEM

2020-10-28 Thread Michael Schmitz
Hi Mike, On 29/10/20 12:16 AM, Mike Rapoport wrote: Hi Geert, On Wed, Oct 28, 2020 at 10:25:49AM +0100, Geert Uytterhoeven wrote: Hi Mike, On Tue, Oct 27, 2020 at 12:31 PM Mike Rapoport wrote: From: Mike Rapoport The pg_data_t node structures and their initialization currently depends on

[PATCH v2 3/5] clk: imx: gate2: Check if clock is enabled against cgr_val

2020-10-28 Thread Abel Vesa
Seems the logic here was wrong all along. For example, if the cgr_val is 2 (0b10), the clk_gate2_reg_is_enabled would report the clock as disabled. So check against cgr_val instead. Signed-off-by: Abel Vesa --- drivers/clk/imx/clk-gate2.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(

[PATCH v2 0/5] Fix the gate2 and make it more flexible

2020-10-28 Thread Abel Vesa
First version here: https://lkml.org/lkml/2020/10/26/988 Changes since v1: * split the work in multiple iterative patches Abel Vesa (5): clk: imx: gate2: Remove the IMX_CLK_GATE2_SINGLE_BIT special case clk: imx: gate2: Keep the register writing in on place clk: imx: gate2: Check if clock

[PATCH v2 2/5] clk: imx: gate2: Keep the register writing in on place

2020-10-28 Thread Abel Vesa
Move all the register writing to the newly added clk_gate2_do_shared_clks and call that everywhere need needed. Cleans up the code a little bit. Signed-off-by: Abel Vesa --- drivers/clk/imx/clk-gate2.c | 33 - 1 file changed, 16 insertions(+), 17 deletions(-) dif

[PATCH 3/4] OPP: Add dev_pm_opp_set_sustainable_opp_freq()

2020-10-28 Thread Lukasz Luba
Add a new function allowing to set sustainable OPP from the drivers code. This is helpful when the device drivers populate the OPP table by themself. Signed-off-by: Lukasz Luba --- drivers/opp/core.c | 49 ++ include/linux/pm_opp.h | 8 +++ 2 file

Re: [PATCH v3] usb: dwc3: core: fix a issue about clear connect state

2020-10-28 Thread Dejin Zheng
On Wed, Oct 28, 2020 at 03:57:03PM +0200, Felipe Balbi wrote: > > Hi, > > Dejin Zheng writes: > >> Dejin Zheng writes: > >> > According to Synopsys Programming Guide chapter 2.2 Register Resets, > >> > it cannot reset the DCTL register by setting DCTL.CSFTRST for core soft > >> > reset, if DWC3

[PATCH 4/4] firmware: arm_scmi/perf: Mark sustainable OPP

2020-10-28 Thread Lukasz Luba
Mark sustainable OPP frequency based on previously received value from the firmware. Signed-off-by: Lukasz Luba --- drivers/firmware/arm_scmi/perf.c | 10 ++ 1 file changed, 10 insertions(+) diff --git a/drivers/firmware/arm_scmi/perf.c b/drivers/firmware/arm_scmi/perf.c index 82fb3babf

Re: [PATCH v16 00/15] mtd: spi-nor: add xSPI Octal DTR support

2020-10-28 Thread Tudor.Ambarus
On 10/28/20 2:49 PM, Pratyush Yadav wrote: > EXTERNAL EMAIL: Do not click links or open attachments unless you know the > content is safe > > Hi Tudor, > > On 28/10/20 07:53AM, tudor.amba...@microchip.com wrote: >> Hi, Pratyush, >> >> On 10/5/20 6:31 PM, Pratyush Yadav wrote: >>> Tested on Micro

Re: [PATCH V3 1/1] nvme: Add quirk for LiteON CL1 devices running FW 220TQ,22001

2020-10-28 Thread Christoph Hellwig
On Wed, Oct 28, 2020 at 06:14:21PM +0900, Jongpil Jung wrote: > LiteON(SSSTC) CL1 device running FW 220TQ,22001 has bugs with simple > suspend. > > When NVMe device receive D3hot from host, NVMe firmware will do > garbage collection. While NVMe device do Garbage collection, > firmware has chance t

Re: [PATCH] tpm: efi: Don't create binary_bios_measurements file for an empty log

2020-10-28 Thread Tyler Hicks
On 2020-10-28 11:30:11, Tyler Hicks wrote: > So, we need help from Kai, Kenneth, or Mimi to verify my assumption that > their firmware is providing an empty main event log and a populated > final event log. Hi Kai, Kenneth, and Mimi - could one or two of you please follow these steps: 1) Apply th

Re: [PATCH v3] zram: break the strict dependency from lzo

2020-10-28 Thread Sergey Senozhatsky
Hi, On (20/10/28 11:25), Rui Salvaterra wrote: > > diff --git a/drivers/block/zram/Kconfig b/drivers/block/zram/Kconfig > > index fe7a4b7d30cf..f93eed40e155 100644 > > --- a/drivers/block/zram/Kconfig > > +++ b/drivers/block/zram/Kconfig > > @@ -2,7 +2,7 @@ > > config ZRAM > > tristate "C

Re: [PATCH V2 2/2] cpufreq: dt: Refactor initialization to handle probe deferral properly

2020-10-28 Thread Viresh Kumar
On 28-10-20, 10:49, Geert Uytterhoeven wrote: > Hi Viresh, > > On Wed, Oct 28, 2020 at 6:48 AM Viresh Kumar wrote: > > On 27-10-20, 17:29, Geert Uytterhoeven wrote: > > > On plain v5.9, with #define DEBUG and a few extra debug prints > > > added, I get: > > > > > > cpufreq_dt: cpufreq_init:16

[PATCH] tpm: efi: Don't create binary_bios_measurements file for an empty log

2020-10-28 Thread Tyler Hicks
Mimic the pre-existing ACPI and Device Tree event log behavior by not creating the binary_bios_measurements file when the EFI TPM event log is empty. This fixes the following NULL pointer dereference that can occur when reading /sys/kernel/security/tpm0/binary_bios_measurements after the kernel re

Re: [PATCH 05/11] afs: Fix to take ref on page when PG_private is set

2020-10-28 Thread David Howells
Matthew Wilcox wrote: > There's an efficiency question here that I can't answer ... how often do > you call afs_write_begin() on a page which already has PagePrivate set? That's a question only userspace can answer - but think shell scripts that do lots of small appends. David

Re: [PATCH 4.19 228/264] PM: hibernate: remove the bogus call to get_gendisk() in software_resume()

2020-10-28 Thread Pavel Machek
On Tue 2020-10-27 14:54:46, Greg Kroah-Hartman wrote: > From: Christoph Hellwig > > [ Upstream commit 428805c0c5e76ef643b1fbc893edfb636b3d8aef ] > > get_gendisk grabs a reference on the disk and file operation, so this > code will leak both of them while having absolutely no use for the > gendis

Re: [PATCH] tpm: efi: Don't create binary_bios_measurements file for an empty log

2020-10-28 Thread Tyler Hicks
On 2020-10-28 10:41:02, Tyler Hicks wrote: > Mimic the pre-existing ACPI and Device Tree event log behavior by not > creating the binary_bios_measurements file when the EFI TPM event log is > empty. > > This fixes the following NULL pointer dereference that can occur when > reading /sys/kernel/sec

Re: [PATCH v3] seq_file: fix clang warning for NULL pointer arithmetic

2020-10-28 Thread Nathan Chancellor
On Tue, Oct 27, 2020 at 11:18:24PM +0100, Arnd Bergmann wrote: > From: Arnd Bergmann > > Clang points out that adding something to NULL is notallowed not allowed > in standard C: > > fs/kernfs/file.c:127:15: warning: performing pointer arithmet

[PATCH 0/4] Add sustainable OPP concept

2020-10-28 Thread Lukasz Luba
the device drivers populate the OPP table by themself (example in patch 4/4). The patch set should apply on top of next-20201028. Regards, Lukasz Luba Lukasz Luba (4): dt-bindings: opp: Introduce opp-sustainable bindings OPP: Add support for parsing the 'opp-sustainable'

Re: [PATCH v3 1/4] firmware: arm_scmi: Add Voltage Domain Support

2020-10-28 Thread Etienne Carriere
Hi Cristian, Some remaining minor comments see below. FYI I've successfully tested this series (the 4 patches). Regards, Etienne On Mon, 26 Oct 2020 at 21:32, Cristian Marussi wrote: > > Add SCMI Voltage Domain protocol support. > > Signed-off-by: Cristian Marussi > --- > v2 --> v3 > - restric

Re: Proper support for Saitek X36F joystick

2020-10-28 Thread Jiri Kosina
On Wed, 28 Oct 2020, Pavel Machek wrote: > So no, I can't even replace it with equivalent one. Perhaps hrdc got > decompilation wrong, or I'm doing something else wrong. You don't need to do any decompilation -- the descriptor can be obtained from /sys/kernel/debug/hid//rdesc (also lsusb in verb

[PATCH 1/4] dt-bindings: opp: Introduce opp-sustainable bindings

2020-10-28 Thread Lukasz Luba
Add opp-sustainable as an additional property in the OPP node to describe the sustainable performance level of the device. This will help to estimate the sustainable performance of the whole system. Signed-off-by: Lukasz Luba --- Documentation/devicetree/bindings/opp/opp.txt | 4 1 file cha

Re: [External] Re: [PATCH 4/5] mm: memcg/slab: Fix root memcg vmstats

2020-10-28 Thread Muchun Song
On Wed, Oct 28, 2020 at 10:56 AM Muchun Song wrote: > > On Wed, Oct 28, 2020 at 2:48 AM Roman Gushchin wrote: > > > > On Tue, Oct 27, 2020 at 04:02:55PM +0800, Muchun Song wrote: > > > If we reparent the slab objects to the root memcg, when we free > > > the slab object, we need to update the per

[PATCH v2 net 3/5] net: ipa: assign endpoint to a resource group

2020-10-28 Thread Alex Elder
The IPA hardware manages various resources (e.g. descriptors) internally to perform its functions. The resources are grouped, allowing different endpoints to use separate resource pools. This way one group of endpoints can be configured to operate unaffected by the resource use of endpoints in a

[PATCH] s390/smp: Move rcu_cpu_starting() earlier

2020-10-28 Thread Qian Cai
The call to rcu_cpu_starting() in smp_init_secondary() is not early enough in the CPU-hotplug onlining process, which results in lockdep splats as follows: WARNING: suspicious RCU usage - kernel/locking/lockdep.c:3497 RCU-list traversed in non-reader section!! othe

[RESEND PATCH] mfd: sec: initialize driver via module_platform_driver

2020-10-28 Thread Krzysztof Kozlowski
The driver was using subsys_initcall() because in old times deferred probe was not supported everywhere and specific ordering was needed. Since probe deferral works fine and specific ordering is discouraged (hides dependencies between drivers and couples their boot order), the driver can be convert

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