[PATCH 05/11] exec: In bprm_fill_uid use CAP_SETGID to see if a gid change is safe

2020-05-28 Thread Eric W. Biederman
If the task has CAP_SETGID and a shared fs struct or is being ptraced than it is clear that nothing new is being introduced when the gid changes, and so it is safe to honor a setgid executable. However if all we know is that the task has CAP_SETUID things are less clear. This bug looks like it

[PATCH v3 4/5] regulator: qcom: Add labibb driver

2020-05-28 Thread Sumit Semwal
From: Nisha Kumari Qualcomm platforms have LAB(LCD AMOLED Boost)/IBB(Inverting Buck Boost) regulators, labibb for short, which are used as power supply for LCD Mode displays. This patch adds labibb regulator driver for pmi8998 PMIC, found on SDM845 platforms. Signed-off-by: Nisha Kumari Signed

[PATCH v3 3/5] arm64: dts: qcom: pmi8998: Add nodes for LAB and IBB regulators

2020-05-28 Thread Sumit Semwal
From: Nisha Kumari This patch adds devicetree nodes for LAB and IBB regulators. Signed-off-by: Nisha Kumari Signed-off-by: Sumit Semwal -- v2: sumits: updated for better compatible string and names v3: sumits: updated interrupt-names as per review comments --- arch/arm64/boot/dts/qcom/pmi89

[PATCH 04/11] exec: Move uid/gid handling from creds_from_file into bprm_fill_uid

2020-05-28 Thread Eric W. Biederman
The logic in cap_bprm_creds_from_file is difficult to follow in part because it handles both uids/gids and capabilities. That difficulty in following the code has resulted in several small bugs. Move the handling of uids/gids into bprm_fill_uid to make the code clearer. A small bug is fixed wh

[PATCH v3 5/5] regulator: qcom: labibb: Add SC interrupt handling

2020-05-28 Thread Sumit Semwal
From: Nisha Kumari Add Short circuit interrupt handling and recovery for the lab and ibb regulators on qcom platforms. The client panel drivers need to register for REGULATOR_EVENT_OVER_CURRENT notification which will be triggered on short circuit. They should try to enable the regulator once, a

Re: [PATCH v3 10/10] dmaengine: dw: Initialize max_sg_nents with nollp flag

2020-05-28 Thread Serge Semin
On Thu, May 28, 2020 at 05:56:30PM +0300, Andy Shevchenko wrote: > On Wed, May 27, 2020 at 01:50:21AM +0300, Serge Semin wrote: > > Multi-block support provides a way to map the kernel-specific SG-table so > > the DW DMA device would handle it as a whole instead of handling the > > SG-list items or

[PATCH 07/11] exec: Set saved, fs, and effective ids together in bprm_fill_uid

2020-05-28 Thread Eric W. Biederman
Now that there is only one place in bprm_fill_uid where the euid and the egid are set, move setting of the saved, and the fs ids to that place. This makes it clear that this is the only location in the function that changes these ids. Signed-off-by: "Eric W. Biederman" --- fs/exec.c | 7 ++---

[PATCH 06/11] exec: Don't set secureexec when the uid or gid changes are abandoned

2020-05-28 Thread Eric W. Biederman
When the is_secureexec test was removed from cap_bprm_set_creds the test was modified so that it based the status of secureexec on a version of the euid and egid before ptrace and shared fs tests possibly reverted them. The effect of which is that secureexec continued to be set when the euid and

[PATCH 09/11] exec: In bprm_fill_uid only set per_clear when honoring suid or sgid

2020-05-28 Thread Eric W. Biederman
It makes no sense to set active_per_clear when the kernel decides not to honor the executables setuid or or setgid bits. Instead set active_per_clear when the kernel actually decides to honor the suid or sgid permission bits of an executable. As far as I can tell this was the intended behavior

[PATCH 08/11] exec: In bprm_fill_uid remove unnecessary no new privs check

2020-05-28 Thread Eric W. Biederman
When the no new privs code was added[1], a test was added to cap_bprm_set_creds to ensure that the credential change were always reverted if no new privs was set. That test has been refactored into a test to not make the credential change in bprm_fill_uid when no new privs is set. Remove that u

Re: mmotm 2020-05-13-20-30 uploaded (objtool warnings)

2020-05-28 Thread Josh Poimboeuf
On Thu, May 14, 2020 at 08:32:22AM -0700, Randy Dunlap wrote: > On 5/13/20 8:31 PM, Andrew Morton wrote: > > The mm-of-the-moment snapshot 2020-05-13-20-30 has been uploaded to > > > >http://www.ozlabs.org/~akpm/mmotm/ > > > > mmotm-readme.txt says > > > > README for mm-of-the-moment: > > >

[PATCH 11/11] exec: Remove the label after_setid from bprm_fill_uid

2020-05-28 Thread Eric W. Biederman
There is nothing past the label after_setid in bprm_fill_uid so replace code that jumps to it with return, and delete the label entirely. Signed-off-by: "Eric W. Biederman" --- fs/exec.c | 11 --- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/fs/exec.c b/fs/exec.c index

Re: [PATCH][net-next] nexthop: fix incorrect allocation failure on nhg->spare

2020-05-28 Thread Colin Ian King
On 28/05/2020 15:55, Nikolay Aleksandrov wrote: > On 28/05/2020 17:53, Nikolay Aleksandrov wrote: >> On 28/05/2020 17:51, Colin King wrote: >>> From: Colin Ian King >>> >>> The allocation failure check for nhg->spare is currently checking >>> the pointer nhg rather than nhg->spare which is never f

[PATCH 10/11] exec: In bprm_fill_uid set secureexec at same time as per_clear

2020-05-28 Thread Eric W. Biederman
We currently have two different policies for setting per_clear and for setting secureexec. For per_clear the policy is if the setxid bits on a file are honored. For secureexec the policy is if the resulting credentials will have multiple uids or gids. Looking closely the policy for setting AT_

Re: [PATCH v3 066/105] drm/vc4: txp: Turn the TXP into a CRTC of its own

2020-05-28 Thread Emil Velikov
Hi Maxime, Have you considered splitting the series into several parts and focusing on merging one at a time? IIRC this the longest series _ever_ submitted to dri-devel, plus it seems to be growing with each revision. Due to the sheer volume, it's likely to miss various points - large or small (l

[PATCH][next] modpost: close file when fstat fails

2020-05-28 Thread Colin King
From: Colin Ian King Currently a failed fstat error return path fails to close an open file. Fix this by setting buf to NULL and returning via the error exit path. Addresses-Coverity: ("Resource leak"); Fixes: commit 076ad831dfe8 ("modpost: add read_text_file() and get_line() helpers") Signed-o

[PATCH tty-next] tty: serial: imx: clear Ageing Timer Interrupt in handler

2020-05-28 Thread Matthias Schiffer
The AGTIM flag must be cleared explicitly, otherwise the IRQ handler will be called in an endless loop. Fortunately, this issue currently doesn't affect mainline kernels in practice, as the the RX FIFO trigger level is set to 1 in UFCR. When setting the trigger level to a higher number, the issue

Re: [PATCH][net-next] nexthop: fix incorrect allocation failure on nhg->spare

2020-05-28 Thread Nikolay Aleksandrov
On 28/05/2020 18:53, Colin Ian King wrote: > On 28/05/2020 15:55, Nikolay Aleksandrov wrote: >> On 28/05/2020 17:53, Nikolay Aleksandrov wrote: >>> On 28/05/2020 17:51, Colin King wrote: From: Colin Ian King The allocation failure check for nhg->spare is currently checking the

Re: [PATCH][net-next] nexthop: fix incorrect allocation failure on nhg->spare

2020-05-28 Thread Colin Ian King
On 28/05/2020 16:55, Nikolay Aleksandrov wrote: > On 28/05/2020 18:53, Colin Ian King wrote: >> On 28/05/2020 15:55, Nikolay Aleksandrov wrote: >>> On 28/05/2020 17:53, Nikolay Aleksandrov wrote: On 28/05/2020 17:51, Colin King wrote: > From: Colin Ian King > > The allocation fail

Re: [PATCH 1/2] sched/uclamp: Add a new sysctl to control RT default boost value

2020-05-28 Thread Qais Yousef
On 05/28/20 15:23, Peter Zijlstra wrote: > On Mon, May 11, 2020 at 04:40:52PM +0100, Qais Yousef wrote: > > +/* > > + * By default RT tasks run at the maximum performance point/capacity of the > > + * system. Uclamp enforces this by always setting UCLAMP_MIN of RT tasks to > > + * SCHED_CAPACITY_SC

Re: [PATCH] ARM: omap2: drop broken broadcast timer hack

2020-05-28 Thread Tony Lindgren
* Tony Lindgren [200528 13:51]: > * Tony Lindgren [200528 13:47]: > > * Arnd Bergmann [200528 09:20]: > > > The OMAP4 timer code had a special hack for using the broadcast timer > > > without SMP. Since the dmtimer is now gone, this also needs to be dropped > > > to avoid a link failure for non-

Re: [RFC][PATCH 1/3] objtool: Rename rela to reloc

2020-05-28 Thread Matt Helsley
On Thu, May 28, 2020 at 09:04:44AM -0500, Josh Poimboeuf wrote: > On Wed, May 27, 2020 at 09:42:31AM -0700, Matt Helsley wrote: > > Before supporting additional relocation types rename the relevant > > types and functions from "rela" to "reloc". This work can largely > > be done with the following

Re: [PATCH 2/2] mtd: spi-nor: intel-spi: fix forced writable option

2020-05-28 Thread Jinhua Wu (jinhwu)
On 2020/5/28, 11:48 PM, "Jinhua Wu" wrote: Hi Vignesh, BIOS just locked down parts of flash (such as, code region), others are still writeable. Once the SPI locked down,it can't be override unless platfrom reset and set WPD (write protect disable) will fail, so ispi->writeable will always be 0,

Re: [RFC][PATCH 2/3] objtool: Find relocation base section using sh_info

2020-05-28 Thread Matt Helsley
On Thu, May 28, 2020 at 09:09:16AM -0500, Josh Poimboeuf wrote: > On Wed, May 27, 2020 at 09:42:32AM -0700, Matt Helsley wrote: > > Currently objtool uses a naming heuristic to find the "base" > > section to apply the relocation(s) to. The standard defines > > the SHF_INFO_LINK flag (SHF => in the

Re: proc/fd: Remove the initialization of variables in seq_show()

2020-05-28 Thread Markus Elfring
>>> The variables{files, file} will definitely be assigned, >> >> I find an other specification nicer for these identifiers. >> >> >>> so we don't need to initialize them. … > We don't need to initialize the variable “file”. I can agree to this interpretation of the software situation because ther

Re: [PATCH v2 3/3] scsi: ufs: cleanup ufs initialization path

2020-05-28 Thread Bean Huo
On Thu, 2020-05-28 at 14:58 +, Avri Altman wrote: > Hi, > > > From: Bean Huo > > > > At UFS initialization stage, to get the length of the descriptor, > > ufshcd_read_desc_length() being called 6 times. > > May I suggest one more clarifying sentence to your commit log: > "Instead, we will c

Re: [RFC][PATCH 3/3] objtool: Add support for relocations without addends

2020-05-28 Thread Matt Helsley
On Thu, May 28, 2020 at 09:24:14AM -0500, Josh Poimboeuf wrote: > On Wed, May 27, 2020 at 09:42:33AM -0700, Matt Helsley wrote: > > @@ -525,16 +556,8 @@ static int read_relocs(struct elf *elf) > > return -1; > > } > > memset(reloc,

Re: [PATCH net-next v3] net: phy: micrel: add phy-mode support for the KSZ9031 PHY

2020-05-28 Thread Andrew Lunn
On Thu, May 28, 2020 at 03:10:06PM +0200, Geert Uytterhoeven wrote: > Hi Andrew, > > On Wed, May 27, 2020 at 10:52 PM Andrew Lunn wrote: > > > You may wonder what's the difference between 3 and 4? It's not just the > > > PHY driver that looks at phy-mode! > > > drivers/net/ethernet/renesas/ravb_m

[PATCH v6] arch/x86: Update config and kernel doc for MPK feature on AMD

2020-05-28 Thread Babu Moger
AMD's next generation of EPYC processors support the MPK (Memory Protection Keys) feature. Update the dependency and documentation. Signed-off-by: Babu Moger Reviewed-by: Dave Hansen --- v6: - Removed X86_MEMORY_PROTECTION_KEYS. Just keeping the dependency and doc update. v5: https://lore.

Re: [PATCH v3] driver core: Update device link status correctly for SYNC_STATE_ONLY links

2020-05-28 Thread Saravana Kannan
On Wed, May 27, 2020 at 1:26 AM Rafael J. Wysocki wrote: > > On Wed, May 27, 2020 at 12:09 AM Saravana Kannan wrote: > > > > When SYNC_STATE_ONLY support was added in commit 05ef983e0d65 ("driver > > core: Add device link support for SYNC_STATE_ONLY flag"), > > SYNC_STATE_ONLY links were treated

Re: [PATCH v2 02/12] mm/migrate: move migration helper from .h to .c

2020-05-28 Thread Vlastimil Babka
On 5/27/20 8:44 AM, js1...@gmail.com wrote: > From: Joonsoo Kim > > It's not performance sensitive function. Move it to .c. > This is a preparation step for future change. > > Acked-by: Mike Kravetz > Signed-off-by: Joonsoo Kim Reviewed-by: Vlastimil Babka

Re: WARNING: suspicious RCU usage in idtentry_exit

2020-05-28 Thread Paul E. McKenney
On Thu, May 28, 2020 at 03:33:44PM +0200, Thomas Gleixner wrote: > syzbot writes: > > + Paolo, Paul > > > syzbot found the following crash on: > > > > HEAD commit:7b4cb0a4 Add linux-next specific files for 20200525 > > git tree: linux-next > > console output: https://syzkaller.appspot.

Re: [PATCH 1/2] sched/uclamp: Add a new sysctl to control RT default boost value

2020-05-28 Thread Peter Zijlstra
On Thu, May 28, 2020 at 04:58:01PM +0100, Qais Yousef wrote: > On 05/28/20 15:23, Peter Zijlstra wrote: > > So afaict this is directly added to the enqueue/dequeue path, and we've > > recently already had complaints that uclamp is too slow. > > I wanted to keep this function simpler. Right; I ap

Re: [GIT PULL] sh: remove sh5 support

2020-05-28 Thread Rich Felker
On Wed, May 27, 2020 at 10:46:00PM -0700, Christoph Hellwig wrote: > [adding Linus] > > On Thu, May 07, 2020 at 07:35:52AM -0700, Christoph Hellwig wrote: > > Any progress on this? I plan to resend the sh dma-mapping I've been > > trying to get upstream for a year again, and they would conflict,

Re: [patch 2/5] x86/idt: Add comments about early #PF handling

2020-05-28 Thread Peter Zijlstra
On Thu, May 28, 2020 at 04:53:17PM +0200, Thomas Gleixner wrote: > The difference between 32 and 64 bit vs. early #PF handling is not > documented. Replace the FIXME at idt_setup_early_pf() with proper comments. > > Signed-off-by: Thomas Gleixner > --- > arch/x86/kernel/idt.c | 10 -- >

Re: [PATCH] KVM: X86: Call kvm_x86_ops.cpuid_update() after CPUIDs fully updated

2020-05-28 Thread Paolo Bonzini
On 28/05/20 17:40, Xiaoyao Li wrote: >> >>> kvm_x86_ops.cpuid_update() is used to update vmx/svm settings based on >>> updated CPUID settings. So it's supposed to be called after CPUIDs are >>> fully updated, not in the middle stage. >>> >>> Signed-off-by: Xiaoyao Li >> >> Are you seeing anything

[PATCH v1] PCI: dwc: convert to devm_platform_ioremap_resource_byname()

2020-05-28 Thread Dejin Zheng
Use devm_platform_ioremap_resource_byname() to simplify codes. it contains platform_get_resource_byname() and devm_ioremap_resource(). Signed-off-by: Dejin Zheng --- drivers/pci/controller/dwc/pci-dra7xx.c | 11 --- drivers/pci/controller/dwc/pci-keystone.c | 7 +++ dr

Re: [PATCH v2 1/3] scsi: ufs: remove max_t in ufs_get_device_desc

2020-05-28 Thread Bart Van Assche
On 2020-05-28 08:04, Bean Huo wrote: > do you mean like this: buff_len = hba->desc_size[id]? How about the following untested change? Thanks, Bart. diff --git a/drivers/scsi/ufs/ufshcd.c b/drivers/scsi/ufs/ufshcd.c index 698e8d20b4ba..e33754c15c2c 100644 --- a/drivers/scsi/ufs/ufshcd.c +++ b/d

Re: [PATCH v1] bluetooth: hci_qca: Fix suspend/resume functionality failure

2020-05-28 Thread Matthias Kaehlcke
Hi Zijun, On Thu, May 28, 2020 at 06:38:22PM +0800, Zijun Hu wrote: > @dev parameter of qca_suspend()/qca_resume() represents > serdev_device, but it is mistook for hci_dev and causes > succedent unexpected memory access. > > Fix by taking @dev as serdev_device. > > Signed-off-by: Zijun Hu Ple

Re: mm: mkfs.ext4 invoked oom-killer on i386 - pagecache_get_page

2020-05-28 Thread Naresh Kamboju
On Thu, 28 May 2020 at 20:33, Michal Hocko wrote: > > On Fri 22-05-20 02:23:09, Naresh Kamboju wrote: > > My apology ! > > As per the test results history this problem started happening from > > Bad : next-20200430 (still reproducible on next-20200519) > > Good : next-20200429 > > > > The git tree

Re: [patch 5/5] x86/idt: Consolidate idt functionality

2020-05-28 Thread Peter Zijlstra
On Thu, May 28, 2020 at 04:53:20PM +0200, Thomas Gleixner wrote: > -#ifdef CONFIG_X86_64 > -DECLARE_PER_CPU(u32, debug_idt_ctr); > -static __always_inline bool is_debug_idt_enabled(void) > -{ > - if (this_cpu_read(debug_idt_ctr)) > - return true; > - > - return false; > -} > -

Re: [PATCH] bonding: Fix reference count leak in bond_sysfs_slave_add.

2020-05-28 Thread Jay Vosburgh
wu000...@umn.edu wrote: >From: Qiushi Wu > >kobject_init_and_add() takes reference even when it fails. >If this function returns an error, kobject_put() must be called to >properly clean up the memory associated with the object. Previous >commit "b8eb718348b8" fixed a similar problem. > >Fixes: 0

Re: [PATCH] ARM: omap2: drop broken broadcast timer hack

2020-05-28 Thread santosh . shilimkar
On 5/28/20 8:57 AM, Tony Lindgren wrote: * Tony Lindgren [200528 13:51]: * Tony Lindgren [200528 13:47]: * Arnd Bergmann [200528 09:20]: The OMAP4 timer code had a special hack for using the broadcast timer without SMP. Since the dmtimer is now gone, this also needs to be dropped to avoid a

Re: [PATCH v2 3/3] scsi: ufs: cleanup ufs initialization path

2020-05-28 Thread Bart Van Assche
On 2020-05-28 07:58, Avri Altman wrote: >> From: Bean Huo >> +static void ufshcd_update_desc_length(struct ufs_hba *hba, >> + enum desc_idn desc_id, int desc_len) > desc_len is at most 255 so maybe u8? At least on x86 using types like 'u8' for function argument

Re: [RFC PATCH 1/1] usb: dwc3: of-simple: Add extcon support

2020-05-28 Thread Guenter Roeck
On Fri, May 22, 2020 at 09:12:02PM -0700, Prashant Malani wrote: > Add optional extcon notifier support to enable the hotplug / unplug of > the underlying PHY layer devices. > > If supported, the Device Tree (DT) node for the device should include an > "extcon" property which is a phandle to an ex

Re: [PATCH v2] selftests/ftrace: Use printf for backslash included command

2020-05-28 Thread Shuah Khan
On 5/25/20 3:59 AM, Masami Hiramatsu wrote: Hi Shuah, Could you pick this to kselftest-next? Thank you, On Mon, 11 May 2020 22:36:27 +0900 Masami Hiramatsu wrote: Since the built-in echo has different behavior in POSIX shell (dash) and bash, kprobe_syntax_errors.tc can fail on dash which in

Re: [PATCH] PCI: aardvark: Don't touch PCIe registers if no card connected

2020-05-28 Thread Bjorn Helgaas
On Thu, May 28, 2020 at 04:31:41PM +0200, Pali Rohár wrote: > When there is no PCIe card connected and advk_pcie_rd_conf() or > advk_pcie_wr_conf() is called for PCI bus which doesn't belong to emulated > root bridge, the aardvark driver throws the following error message: > > advk-pcie d007

[PATCH] interconnect: Add bulk API helpers

2020-05-28 Thread Georgi Djakov
There are drivers which just need to get multiple interconnect paths, request some predefined amounts of bandwidth and then just toggle the paths between enabled/disabled state. The aim of this patch is simplify the above and to allow drivers to put all the path names and bandwidth data into a sin

Re: [PATCH v3 04/18] nitro_enclaves: Init PCI device driver

2020-05-28 Thread Paraschiv, Andra-Irina
On 27/05/2020 01:19, Greg KH wrote: On Tue, May 26, 2020 at 09:35:33PM +0300, Paraschiv, Andra-Irina wrote: On 26/05/2020 09:48, Greg KH wrote: On Tue, May 26, 2020 at 01:13:20AM +0300, Andra Paraschiv wrote: The Nitro Enclaves PCI device is used by the kernel driver as a means of communica

Re: [rcu:dev.2020.05.26a 56/72] refperf.c:undefined reference to `__umoddi3'

2020-05-28 Thread Paul E. McKenney
On Thu, May 28, 2020 at 05:31:33PM +0200, Geert Uytterhoeven wrote: > Hi Paul, > > On Thu, May 28, 2020 at 3:51 PM Paul E. McKenney wrote: > > On Thu, May 28, 2020 at 09:04:38AM +0200, Geert Uytterhoeven wrote: > > > On Thu, May 28, 2020 at 5:26 AM kbuild test robot wrote: > > > > tree: > > >

Re: [PATCH] mm, memcg: reclaim more aggressively before high allocator throttling

2020-05-28 Thread Michal Hocko
On Thu 21-05-20 14:45:05, Johannes Weiner wrote: > On Thu, May 21, 2020 at 07:37:01PM +0200, Michal Hocko wrote: > > On Thu 21-05-20 12:38:33, Johannes Weiner wrote: > > > On Thu, May 21, 2020 at 04:35:15PM +0200, Michal Hocko wrote: > > > > On Thu 21-05-20 09:51:52, Johannes Weiner wrote: > > > >

Re: [PATCH] iommu: Relax ACS requirement for Intel RCiEP devices.

2020-05-28 Thread Raj, Ashok
Hi Alex On Tue, May 26, 2020 at 05:07:15PM -0600, Alex Williamson wrote: > > --- > > drivers/iommu/iommu.c | 13 - > > 1 file changed, 12 insertions(+), 1 deletion(-) > > > > diff --git a/drivers/iommu/iommu.c b/drivers/iommu/iommu.c > > index 2b471419e26c..31b595dfedde 100644 > > --

Re: [PATCH net] net: mvpp2: Enable autoneg bypass for 1000BaseX/2500BaseX ports

2020-05-28 Thread Andrew Lunn
On Thu, May 28, 2020 at 04:33:35PM +0200, Thomas Bogendoerfer wrote: > below is the dts part for the two network interfaces. The switch to > the outside has two ports, which correlate to the two internal ports. > And the switch propagates the link state of the external ports to > the internal ports

Re: [PATCH v3 0/8] kernel: taint when the driver firmware crashes

2020-05-28 Thread Luis Chamberlain
On Thu, May 28, 2020 at 08:04:50AM -0700, Ben Greear wrote: > > Could you post your devlink RFC patches somewhere public? This cover letter provided a URL to these. Luis

Re: linux-next: build failure after merge of the rcu tree

2020-05-28 Thread Paul E. McKenney
On Thu, May 28, 2020 at 07:05:01PM +1000, Stephen Rothwell wrote: > Hi all, > > After merging the rcu tree, today's linux-next build (powercp > allyesconfig) failed like this: > > ld: kernel/rcu/refperf.o:(.discard+0x0): multiple definition of > `__pcpu_unique_srcu_ctl_perf_srcu_data'; kernel/rc

[tip: x86/build] x86/Kconfig: Update config and kernel doc for MPK feature on AMD

2020-05-28 Thread tip-bot2 for Babu Moger
The following commit has been merged into the x86/build branch of tip: Commit-ID: 38f3e775e9c242f5430a9c08c11be7577f63a41c Gitweb: https://git.kernel.org/tip/38f3e775e9c242f5430a9c08c11be7577f63a41c Author:Babu Moger AuthorDate:Thu, 28 May 2020 11:08:23 -05:00 Committer:

Re: [RFC PATCH v12 05/11] time: Add mechanism to recognize clocksource in time_get_snapshot

2020-05-28 Thread Thomas Gleixner
Jianyong Wu writes: > From: Thomas Gleixner > diff --git a/kernel/time/clocksource.c b/kernel/time/clocksource.c > index 7cb09c4cf21c..a8f65b3e4ec8 100644 > --- a/kernel/time/clocksource.c > +++ b/kernel/time/clocksource.c > @@ -928,6 +928,9 @@ int __clocksource_register_scale(struct clocksource

drivers/crypto/chelsio/chcr_ktls.c:1018: undefined reference to `tls_validate_xmit_skb'

2020-05-28 Thread kbuild test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: b0c3ba31be3e45a130e13b278cf3b90f69bda6f6 commit: 5a4b9fe7fece62ecab6fb28fe92362f83b41c33e cxgb4/chcr: complete record tx handling date: 3 months ago config: i386-randconfig-a013-20200528 (attached as

Re: Oops at boot with linux-next kernel with IMA boot options

2020-05-28 Thread Takashi Iwai
On Thu, 28 May 2020 17:35:16 +0200, Takashi Iwai wrote: > > Hi Roberto, > > it seems that the recent changes in IMA in linux-next caused a > regression: namely it triggers an Oops when booting with the options > ima_policy=tcb ima_template_fmt='d-ng|n-ng|d|ng' And further experiment revealed t

Re: [PATCH v3 02/18] nitro_enclaves: Define the PCI device interface

2020-05-28 Thread Paraschiv, Andra-Irina
On 27/05/2020 01:21, Greg KH wrote: On Tue, May 26, 2020 at 08:01:36PM +0300, Paraschiv, Andra-Irina wrote: On 26/05/2020 09:44, Greg KH wrote: On Tue, May 26, 2020 at 01:13:18AM +0300, Andra Paraschiv wrote: +struct enclave_get_slot_req { + /* Context ID (CID) for the enclave vsock d

Re: [PATCH] PCI: aardvark: Don't touch PCIe registers if no card connected

2020-05-28 Thread Pali Rohár
On Thursday 28 May 2020 11:26:04 Bjorn Helgaas wrote: > On Thu, May 28, 2020 at 04:31:41PM +0200, Pali Rohár wrote: > > When there is no PCIe card connected and advk_pcie_rd_conf() or > > advk_pcie_wr_conf() is called for PCI bus which doesn't belong to emulated > > root bridge, the aardvark driver

Re: [PATCH -tip] compiler_types.h: Optimize __unqual_scalar_typeof compilation time

2020-05-28 Thread Sedat Dilek
On Thu, May 28, 2020 at 5:16 PM Marco Elver wrote: > > On Thu, 28 May 2020 at 04:12, Sedat Dilek wrote: > > > [...] > > > > > > > > > > > In general, CONFIG_KCSAN=y and the defaults for the other KCSAN > > > > > options should be good. Depending on the size of your system, you > > > > > could als

Re: mm: mkfs.ext4 invoked oom-killer on i386 - pagecache_get_page

2020-05-28 Thread Chris Down
Naresh Kamboju writes: On Thu, 28 May 2020 at 20:33, Michal Hocko wrote: On Fri 22-05-20 02:23:09, Naresh Kamboju wrote: > My apology ! > As per the test results history this problem started happening from > Bad : next-20200430 (still reproducible on next-20200519) > Good : next-20200429 > > T

general protection fault in inet_unhash

2020-05-28 Thread syzbot
Hello, syzbot found the following crash on: HEAD commit:dc0f3ed1 net: phy: at803x: add cable diagnostics support f.. git tree: net-next console output: https://syzkaller.appspot.com/x/log.txt?x=17289cd210 kernel config: https://syzkaller.appspot.com/x/.config?x=7e1bc97341edbea6 das

Re: [PATCH] selftests/ftrace: Return unsupported if no error_log file

2020-05-28 Thread Shuah Khan
On 5/25/20 4:20 AM, Masami Hiramatsu wrote: Check whether error_log file exists in tracing/error_log testcase and return UNSUPPORTED if no error_log file. This can happen if we run the ftracetest on the older stable kernel. Fixes: 4eab1cc461a6 ("selftests/ftrace: Add tracing/error_log testcase"

Re: [PATCH v4 0/2] PCI: Add new UniPhier PCIe endpoint driver

2020-05-28 Thread Lorenzo Pieralisi
On Thu, May 14, 2020 at 09:03:19PM +0900, Kunihiko Hayashi wrote: > This series adds PCIe endpoint controller driver for Socionext UniPhier > SoCs. This controller is based on the DesignWare PCIe core. > > This driver supports Pro5 SoC only, so Pro5 needs multiple clocks and > resets in devicetree

Re: [PATCH V5 3/5] iio: adc: Add support for PMIC7 ADC

2020-05-28 Thread Jishnu Prakash
Hi Andy, On 5/22/2020 9:07 PM, Andy Shevchenko wrote: On Fri, May 22, 2020 at 5:25 PM Jishnu Prakash wrote: The ADC architecture on PMIC7 is changed as compared to PMIC5. The major change from PMIC5 is that all SW communication to ADC goes through PMK8350, which communicates with other PMICs t

Re: [PATCH V5 3/5] iio: adc: Add support for PMIC7 ADC

2020-05-28 Thread Jishnu Prakash
Hi Jonathan, On 5/24/2020 5:29 PM, Jonathan Cameron wrote: On Fri, 22 May 2020 19:54:10 +0530 Jishnu Prakash wrote: The ADC architecture on PMIC7 is changed as compared to PMIC5. The major change from PMIC5 is that all SW communication to ADC goes through PMK8350, which communicates with othe

Re: [PATCH] mm, memcg: reclaim more aggressively before high allocator throttling

2020-05-28 Thread Chris Down
Michal Hocko writes: We send a simple bug fix: bring this instance of reclaim in line with how everybody else is using the reclaim API, to meet the semantics as they are intendend and documented. Here is where we are not on the same page though. Once you have identified that the main problem is

Re: [PATCH] PCI: aardvark: Don't touch PCIe registers if no card connected

2020-05-28 Thread Bjorn Helgaas
On Thu, May 28, 2020 at 06:38:09PM +0200, Pali Rohár wrote: > On Thursday 28 May 2020 11:26:04 Bjorn Helgaas wrote: > > On Thu, May 28, 2020 at 04:31:41PM +0200, Pali Rohár wrote: > > > When there is no PCIe card connected and advk_pcie_rd_conf() or > > > advk_pcie_wr_conf() is called for PCI bus w

Re: [PATCH V5 5/5] iio: adc: Clean up ADC code common to PMIC5 and PMIC7

2020-05-28 Thread Jishnu Prakash
Hi Andy, On 5/22/2020 9:11 PM, Andy Shevchenko wrote: On Fri, May 22, 2020 at 5:25 PM Jishnu Prakash wrote: This commit includes the following changes: Add a common function used for read_raw callback for both PMIC5 and PMIC7 ADCs. Add exit function for ADC. Add info_property under adc_data

Re: [PATCH V5 5/5] iio: adc: Clean up ADC code common to PMIC5 and PMIC7

2020-05-28 Thread Jishnu Prakash
Hi Jonathan, On 5/24/2020 5:34 PM, Jonathan Cameron wrote: On Fri, 22 May 2020 19:54:12 +0530 Jishnu Prakash wrote: This commit includes the following changes: Add a common function used for read_raw callback for both PMIC5 and PMIC7 ADCs. Add exit function for ADC. Hi Jishnu, I don't und

Re: [PATCH 1/2] sched/uclamp: Add a new sysctl to control RT default boost value

2020-05-28 Thread Qais Yousef
On 05/28/20 18:11, Peter Zijlstra wrote: > On Thu, May 28, 2020 at 04:58:01PM +0100, Qais Yousef wrote: > > On 05/28/20 15:23, Peter Zijlstra wrote: > > > > So afaict this is directly added to the enqueue/dequeue path, and we've > > > recently already had complaints that uclamp is too slow. > > >

[PATCH V6 0/7] iio: adc: Add support for QCOM SPMI PMIC7 ADC

2020-05-28 Thread Jishnu Prakash
The following changes are made in V6: The third patch is now the change to add iio_info under adc_data, split out from fifth patch of V5. The fourth patch is the change to add support for PMIC7 ADC, same as third patch from V5 with the following differences: Return value corrections are split out

[PATCH V6 1/7] iio: adc: Convert the QCOM SPMI ADC bindings to .yaml format

2020-05-28 Thread Jishnu Prakash
Convert the adc bindings from .txt to .yaml format. Signed-off-by: Jishnu Prakash Reviewed-by: Amit Kucheria Reviewed-by: Rob Herring Acked-by: Linus Walleij --- .../devicetree/bindings/iio/adc/qcom,spmi-vadc.txt | 173 -- .../bindings/iio/adc/qcom,spmi-vadc.yaml | 252 +

[PATCH V6 5/7] iio: adc: Update return value checks

2020-05-28 Thread Jishnu Prakash
Clean up some return value checks to make code more compact. Signed-off-by: Jishnu Prakash --- drivers/iio/adc/qcom-spmi-adc5.c | 10 -- 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/drivers/iio/adc/qcom-spmi-adc5.c b/drivers/iio/adc/qcom-spmi-adc5.c index dcc7599..302231

[PATCH V6 4/7] iio: adc: Add support for PMIC7 ADC

2020-05-28 Thread Jishnu Prakash
The ADC architecture on PMIC7 is changed as compared to PMIC5. The major change from PMIC5 is that all SW communication to ADC goes through PMK8350, which communicates with other PMICs through PBS when the ADC on PMK8350 works in master mode. The SID register is used to identify the PMICs with whic

[PATCH V6 6/7] iio: adc: Update debug prints

2020-05-28 Thread Jishnu Prakash
Change pr_err/pr_debug statements to dev_err/dev_dbg for increased clarity. Signed-off-by: Jishnu Prakash Reviewed-by: Andy Shevchenko --- drivers/iio/adc/qcom-spmi-adc5.c | 18 +- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/drivers/iio/adc/qcom-spmi-adc5.c b/d

[PATCH V6 3/7] iio: adc: Add info property under adc_data

2020-05-28 Thread Jishnu Prakash
Add info property under adc_data to support adding ADC variants which may use different iio_info than the one defined for PMIC5. Signed-off-by: Jishnu Prakash --- drivers/iio/adc/qcom-spmi-adc5.c | 4 +++- drivers/iio/adc/qcom-vadc-common.h | 1 + 2 files changed, 4 insertions(+), 1 deletion(-

[PATCH V6 2/7] iio: adc: Add PMIC7 ADC bindings

2020-05-28 Thread Jishnu Prakash
Add documentation for PMIC7 ADC peripheral. For the PMIC7-type PMICs, ADC peripheral is present in HW for the following PMICs: PMK8350, PM8350, PM8350b, PMR735a and PMR735b. Of these, only the ADC peripheral on PMK8350 is exposed directly to SW. If SW needs to communicate with ADCs on other PMICs,

[PATCH V6 7/7] iio: adc: Add a common read function for PMIC5 and PMIC7

2020-05-28 Thread Jishnu Prakash
Add a common function used for read_raw callback for both PMIC5 and PMIC7 ADCs. Signed-off-by: Jishnu Prakash --- drivers/iio/adc/qcom-spmi-adc5.c | 53 +++- 1 file changed, 25 insertions(+), 28 deletions(-) diff --git a/drivers/iio/adc/qcom-spmi-adc5.c b/dri

Re: [PATCH] KVM: X86: Call kvm_x86_ops.cpuid_update() after CPUIDs fully updated

2020-05-28 Thread Xiaoyao Li
On 5/29/2020 12:15 AM, Paolo Bonzini wrote: On 28/05/20 17:40, Xiaoyao Li wrote: kvm_x86_ops.cpuid_update() is used to update vmx/svm settings based on updated CPUID settings. So it's supposed to be called after CPUIDs are fully updated, not in the middle stage. Signed-off-by: Xiaoyao Li A

Re: [RFC][PATCH 2/3] objtool: Find relocation base section using sh_info

2020-05-28 Thread Josh Poimboeuf
On Thu, May 28, 2020 at 09:02:47AM -0700, Matt Helsley wrote: > On Thu, May 28, 2020 at 09:09:16AM -0500, Josh Poimboeuf wrote: > > On Wed, May 27, 2020 at 09:42:32AM -0700, Matt Helsley wrote: > > > Currently objtool uses a naming heuristic to find the "base" > > > section to apply the relocation(

Re: [PATCH 3/3] power: supply: max17040: Set rcomp value

2020-05-28 Thread Sebastian Reichel
Hi, This patch does not even compile, how did you test it? -- Sebastian On Mon, May 04, 2020 at 03:13:00PM -0700, Jonathan Bakker wrote: > According to the datasheet (1), the rcomp parameter can > vary based on the typical operating temperature and the > battery chemistry. If provided, make sur

Re: [PATCH 05/14] mm: workingset: let cache workingset challenge anon

2020-05-28 Thread Johannes Weiner
On Thu, May 28, 2020 at 04:16:50PM +0900, Joonsoo Kim wrote: > 2020년 5월 27일 (수) 오후 10:43, Johannes Weiner 님이 작성: > > > > On Wed, May 27, 2020 at 11:06:47AM +0900, Joonsoo Kim wrote: > > > 2020년 5월 21일 (목) 오전 8:26, Johannes Weiner 님이 작성: > > > > > > > > We activate cache refaults with reuse distance

Re: [PATCH v6 2/3] gpio: add a reusable generic gpio_chip using regmap

2020-05-28 Thread Michael Walle
Am 2020-05-28 17:55, schrieb Pierre-Louis Bossart: +/* if we have a direction register we need both input and output */ +if ((config->reg_dir_out_base || config->reg_dir_in_base) && +(!config->reg_dat_base || !config->reg_set_base)) +return ERR_PTR(-EINVAL); This failed

Re: [PATCH RFC] sched: Add a per-thread core scheduling interface

2020-05-28 Thread Peter Zijlstra
On Sun, May 24, 2020 at 10:00:46AM -0400, Phil Auld wrote: > On Fri, May 22, 2020 at 05:35:24PM -0400 Joel Fernandes wrote: > > On Fri, May 22, 2020 at 02:59:05PM +0200, Peter Zijlstra wrote: > > [..] > > > > > It doens't allow tasks for form their own groups (by for example > > > > > setting > >

[PATCH] drm/kms: Optimize compute_crc(), blend()

2020-05-28 Thread Sidong Yang
Hi Daniel, I'm newbie in linux kernel and interested in drm module. Please check this patch and give some advice for me. I want to participate in developing kernel and community. Thanks, Sidong Optimize looping pixels in compute_crc() and blend(). Calculate src_offset in start of looping horizo

[PATCH v6 08/16] soc: mediatek: cmdq: add write_s function

2020-05-28 Thread Dennis YC Hsieh
add write_s function in cmdq helper functions which writes value contains in internal register to address with large dma access support. Signed-off-by: Dennis YC Hsieh --- drivers/soc/mediatek/mtk-cmdq-helper.c | 21 - include/linux/mailbox/mtk-cmdq-mailbox.h | 1 + includ

[PATCH v6 12/16] soc: mediatek: cmdq: add write_s_mask value function

2020-05-28 Thread Dennis YC Hsieh
add write_s_mask_value function in cmdq helper functions which writes a constant value to address with mask and large dma access support. Signed-off-by: Dennis YC Hsieh --- drivers/soc/mediatek/mtk-cmdq-helper.c | 21 + include/linux/soc/mediatek/mtk-cmdq.h | 15

[PATCH v6 06/16] soc: mediatek: cmdq: add address shift in jump

2020-05-28 Thread Dennis YC Hsieh
Add address shift when compose jump instruction to compatible with 35bit format. Signed-off-by: Dennis YC Hsieh --- drivers/soc/mediatek/mtk-cmdq-helper.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/soc/mediatek/mtk-cmdq-helper.c b/drivers/soc/mediatek/mtk-cmdq

[PATCH v6 16/16] soc: mediatek: cmdq: add set event function

2020-05-28 Thread Dennis YC Hsieh
Add set event function in cmdq helper functions to set specific event. Signed-off-by: Dennis YC Hsieh Reviewed-by: CK Hu --- drivers/soc/mediatek/mtk-cmdq-helper.c | 15 +++ include/linux/mailbox/mtk-cmdq-mailbox.h | 1 + include/linux/soc/mediatek/mtk-cmdq.h| 9 + 3

Re: mmotm 2020-05-13-20-30 uploaded (objtool warnings)

2020-05-28 Thread Josh Poimboeuf
On Thu, May 28, 2020 at 10:54:09AM -0500, Josh Poimboeuf wrote: > On Thu, May 14, 2020 at 08:32:22AM -0700, Randy Dunlap wrote: > > On 5/13/20 8:31 PM, Andrew Morton wrote: > > > The mm-of-the-moment snapshot 2020-05-13-20-30 has been uploaded to > > > > > >http://www.ozlabs.org/~akpm/mmotm/ >

[PATCH v6 00/16] support gce on mt6779 platform

2020-05-28 Thread Dennis YC Hsieh
This patch support gce on mt6779 platform. Change since v5: - spearate address shift code in client helper and mailbox controller - separate write_s/write_s_mask and write_s_value/write_s_mask_value so that client can decide use mask or not - fix typo in header Change since v4: - do not clear d

[PATCH v6 14/16] soc: mediatek: cmdq: add jump function

2020-05-28 Thread Dennis YC Hsieh
Add jump function so that client can jump to any address which contains instruction. Signed-off-by: Dennis YC Hsieh Reviewed-by: CK Hu --- drivers/soc/mediatek/mtk-cmdq-helper.c | 13 + include/linux/soc/mediatek/mtk-cmdq.h | 11 +++ 2 files changed, 24 insertions(+) diff

[PATCH v6 15/16] soc: mediatek: cmdq: add clear option in cmdq_pkt_wfe api

2020-05-28 Thread Dennis YC Hsieh
Add clear parameter to let client decide if event should be clear to 0 after GCE receive it. Signed-off-by: Dennis YC Hsieh Reviewed-by: CK Hu --- drivers/gpu/drm/mediatek/mtk_drm_crtc.c | 2 +- drivers/soc/mediatek/mtk-cmdq-helper.c | 5 +++-- include/linux/mailbox/mtk-cmdq-mailbox.h | 3 +-

[PATCH v6 02/16] mailbox: cmdq: variablize address shift in platform

2020-05-28 Thread Dennis YC Hsieh
Some gce hardware shift pc and end address in register to support large dram addressing. Implement gce address shift when write or read pc and end register. And add shift bit in platform definition. Signed-off-by: Dennis YC Hsieh --- drivers/mailbox/mtk-cmdq-mailbox.c | 61

[PATCH v6 03/16] mailbox: cmdq: support mt6779 gce platform definition

2020-05-28 Thread Dennis YC Hsieh
Add gce v4 hardware support with different thread number and shift. Signed-off-by: Dennis YC Hsieh Reviewed-by: CK Hu Reviewed-by: Matthias Brugger --- drivers/mailbox/mtk-cmdq-mailbox.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/mailbox/mtk-cmdq-mailbox.c b/drivers/mailbox

[PATCH v6 04/16] mailbox: mediatek: cmdq: clear task in channel before shutdown

2020-05-28 Thread Dennis YC Hsieh
Do success callback in channel when shutdown. For those task not finish, callback with error code thus client has chance to cleanup or reset. Signed-off-by: Dennis YC Hsieh Reviewed-by: CK Hu --- drivers/mailbox/mtk-cmdq-mailbox.c | 38 ++ 1 file changed, 38 insertio

[PATCH v6 10/16] soc: mediatek: cmdq: add read_s function

2020-05-28 Thread Dennis YC Hsieh
Add read_s function in cmdq helper functions which support read value from register or dma physical address into gce internal register. Signed-off-by: Dennis YC Hsieh Reviewed-by: CK Hu --- drivers/soc/mediatek/mtk-cmdq-helper.c | 15 +++ include/linux/mailbox/mtk-cmdq-mailbox.h |

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