Re: [PATCH V38 00/29] security: Add support for locking down the kernel

2019-08-10 Thread James Morris
On Wed, 7 Aug 2019, Matthew Garrett wrote: > Fixed an unused function parameter in patch 19, otherwise identical to > V37. Applied to git://git.kernel.org/pub/scm/linux/kernel/git/jmorris/linux-security.git next-lockdown and next-testing Please verify and test, as I had to make a few minor

Re: [PATCH v5 08/18] thermal: sun8i: support mod clocks

2019-08-10 Thread Vasily Khoruzhick
On Fri, Aug 9, 2019 at 10:31 PM Yangtao Li wrote: > > H3 has extra clock, so introduce something in ths_thermal_chip/ths_device > and adds the process of the clock. > > This is pre-work for supprt it. > > Signed-off-by: Yangtao Li > --- > drivers/thermal/sun8i_thermal.c | 17 - >

Re: [PATCH] RISC-V: Issue a local tlb flush if possible.

2019-08-10 Thread Andreas Schwab
On Aug 09 2019, Atish Patra wrote: > @@ -46,14 +47,38 @@ static inline void remote_sfence_vma(struct cpumask > *cmask, unsigned long start, >unsigned long size) > { > struct cpumask hmask; > + struct cpumask tmask; > + int cpuid =

Re: [PATCH 1/2] kbuild: stop compile-testing kernel headers by wildcard patterns

2019-08-10 Thread Sam Ravnborg
Hi Masahiro. On Mon, Jul 29, 2019 at 02:34:44AM +0900, Masahiro Yamada wrote: > This compile-test started from the strong belief that (almost) all > headers should be able to be compiled as a standalone unit, but this > requirement seems to be annoying. > > I believe it is nice to compile-test

Re: [PATCH 2/2] kbuild: detect missing header include guard

2019-08-10 Thread Sam Ravnborg
Hi Masahiro On Mon, Jul 29, 2019 at 02:34:45AM +0900, Masahiro Yamada wrote: > Our convention is to surround the whole of the header content with an > include guard. This avoids the same header being parsed over again in > case it is included multiple times. > > The include guard is missing in

Re: [PATCH] sh: kernel: hw_breakpoint: Fix missing break in switch statement

2019-08-10 Thread Geert Uytterhoeven
On Sat, Aug 10, 2019 at 6:59 AM Gustavo A. R. Silva wrote: > Add missing break statement in order to prevent the code from > erroneously falling through to case SH_BREAKPOINT_WRITE. > > Fixes: 09a072947791 ("sh: hw-breakpoints: Add preliminary support for SH-4A > UBC.") > Cc:

Re: [PATCH v2] sh: kernel: disassemble: Mark expected switch fall-throughs

2019-08-10 Thread Geert Uytterhoeven
On Sat, Aug 10, 2019 at 7:26 AM Gustavo A. R. Silva wrote: > Remove logically dead code and mark switch cases where we are expecting > to fall through. > > Fix the following warnings (Building: defconfig sh): > > arch/sh/kernel/disassemble.c:478:8: warning: this statement may fall > through

Re: [PATCH 1/3] soundwire: add debugfs support

2019-08-10 Thread Greg KH
On Fri, Aug 09, 2019 at 05:43:39PM -0500, Pierre-Louis Bossart wrote: > Add base debugfs mechanism for SoundWire bus by creating soundwire > root and master-N and slave-x hierarchy. > > Also add SDW Slave SCP, DP0 and DP-N register debug file. > > Registers not implemented will print as "XX" >

Re: [PATCH 3/3] soundwire: intel: add debugfs register dump

2019-08-10 Thread Greg KH
On Fri, Aug 09, 2019 at 05:43:41PM -0500, Pierre-Louis Bossart wrote: > @@ -885,6 +996,8 @@ static int intel_probe(struct platform_device *pdev) > goto err_dai; > } > > + intel_debugfs_init(sdw); See, make patch 1/3 work the same like this. It's much cleaner. thanks,

Re: [PATCH 2/3] soundwire: cadence_master: add debugfs register dump

2019-08-10 Thread Greg KH
On Fri, Aug 09, 2019 at 05:43:40PM -0500, Pierre-Louis Bossart wrote: > +/** > + * sdw_cdns_debugfs_init() - Cadence debugfs init > + * @cdns: Cadence instance > + * @root: debugfs root > + */ > +void sdw_cdns_debugfs_init(struct sdw_cdns *cdns, struct dentry *root) > +{ > +

Re: [PATCH 4.9 00/32] 4.9.189-stable review

2019-08-10 Thread Greg Kroah-Hartman
On Fri, Aug 09, 2019 at 04:07:14PM -0600, shuah wrote: > On 8/9/19 7:45 AM, Greg Kroah-Hartman wrote: > > This is the start of the stable review cycle for the 4.9.189 release. > > There are 32 patches in this series, all will be posted as a response > > to this one. If anyone has any issues with

Re: [PATCH 1/2] leds: Add flag to keep trigger always

2019-08-10 Thread Pavel Machek
On Fri 2019-08-09 17:52:46, Guru Das Srinagesh wrote: > From: Subbaraman Narayanamurthy > > Commit 0013b23d66a2768f5babbb0ea9f03ab067a990d8 ("leds: disable triggers > on brightness set") removes the trigger on an LED class device when > brightness is set to 0. However, there are some LED class

Re: [PATCH 09/16] sparc64: use the generic get_user_pages_fast code

2019-08-10 Thread Christoph Hellwig
There isn't really a way to use an arch-specific get_user_pages_fast in mainline, you'd need to revert the whole series. As a relatively quick workaround you can just remove the select HAVE_FAST_GUP if SPARC64 line from arch/sparc/Kconfig

Re: [Linux-kernel-mentees] [PATCH] PCI/IOV: Move sysfs SR-IOV functions to iov.c

2019-08-10 Thread Greg KH
On Fri, Aug 09, 2019 at 01:57:21PM -0600, Kelsey Skunberg wrote: > +static struct device_attribute sriov_totalvfs_attr = > __ATTR_RO(sriov_totalvfs); DEVICE_ATTR_RO() please. This is a device attribute, not a "raw" kobject attribute. > +static struct device_attribute sriov_numvfs_attr = > +

[PATCH v4 1/2] perf machine: Support arch's specific kernel start address

2019-08-10 Thread Leo Yan
machine__get_kernel_start() gives out the kernel start address; some architectures need to tweak the start address so that can reflect the kernel start address correctly. This is not only for x86_64 arch, but it is also required by other architectures, e.g. arm/arm64 needs to tweak the kernel

[PATCH v4 0/2] perf: arm/arm64: Improve completeness for kernel address space

2019-08-10 Thread Leo Yan
This patch set is to improve completeness for kernel address space for arm/arm64; it adds architecture specific tweaking for the kernel start address, thus can include the memory regions which are prior to '_stext' symbol. With this change, we can see the eBPF program can be parsed properly on

[PATCH] module: Fix load failure when CONFIG_STRICT_MODULE_RWX is diabled

2019-08-10 Thread zhe.he
From: He Zhe When loading modules with CONFIG_ARCH_HAS_STRICT_MODULE_RWX enabled and CONFIG_STRICT_MODULE_RWX disabled, the memory allocated for modules would not be page-aligned and cause the following BUG during frob_text. [ cut here ] kernel BUG at

[PATCH v4 2/2] perf machine: arm/arm64: Improve completeness for kernel address space

2019-08-10 Thread Leo Yan
Arm and arm64 architecture reserve some memory regions prior to the symbol '_stext' and these memory regions later will be used by device module and BPF jit. The current code misses to consider these memory regions thus any address in the regions will be taken as user space mode, but perf cannot

Re: [PATCH 00/16] ARM: remove ks8695 and w90x900 platforms

2019-08-10 Thread Greg Kroah-Hartman
On Fri, Aug 09, 2019 at 10:27:28PM +0200, Arnd Bergmann wrote: > As discussed previously, these two ARM platforms have no > known remaining users, let's remove them completely. > > Subsystem maintainers: feel free to take the driver removals > through your respective trees, they are all

Re: [PATCH] net: openvswitch: free vport unless register_netdevice() succeeds

2019-08-10 Thread Pravin Shelar
On Thu, Aug 8, 2019 at 8:55 PM Hillf Danton wrote: > > > syzbot found the following crash on: > > HEAD commit:1e78030e Merge tag 'mmc-v5.3-rc1' of git://git.kernel.org/.. > git tree: upstream > console output: https://syzkaller.appspot.com/x/log.txt?x=148d3d1a60 > kernel config:

Re: [PATCH v2] x86/boot: save fields explicitly, zero out everything else

2019-08-10 Thread Chris Clayton
On 31/07/2019 06:46, john.hubb...@gmail.com wrote: > From: John Hubbard > > Recent gcc compilers (gcc 9.1) generate warnings about an > out of bounds memset, if you trying memset across several fields > of a struct. This generated a couple of warnings on x86_64 builds. > > Fix this by

Re: [PATCH] media: vimc: add configfs API to configure the topology

2019-08-10 Thread Dafna Hirschfeld
Hi, I will continue working on this patch that Helen started. Regarding the requirements, if an entity is removed, should all the links related to it also be removed? Also, should it be possible to create a link with entities that do not exist? The reason to keep links between non existing

Re: [PATCH] ata: ahci: Lookup PCS register offset based on PCI device ID

2019-08-10 Thread Christoph Hellwig
On Thu, Aug 08, 2019 at 08:24:31PM +, Stephen Douthit wrote: > Intel moved the PCS register from 0x92 to 0x94 on Denverton for some > reason, so now we get to check the device ID before poking it on reset. And now you just match on the new IDs, which means we'll perpetually catch up on any

[PATCH 2/2] dt-bindings: regulator: act8865 regulator modes and suspend states

2019-08-10 Thread Raag Jadav
Add documentation for act8865 regulator modes and suspend states. Add active-semi,8865-regulator.h file for device tree binding constants for act8865 regulators. Signed-off-by: Raag Jadav --- .../bindings/regulator/act8865-regulator.txt | 27 +++--

[PATCH 0/2] act8865 regulator modes and suspend states

2019-08-10 Thread Raag Jadav
This series implements operating mode and suspend state support for act8865. Raag Jadav (2): regulator: act8865: operating mode and suspend state support dt-bindings: regulator: act8865 regulator modes and suspend states .../bindings/regulator/act8865-regulator.txt | 27 +++-

[PATCH 1/2] regulator: act8865: operating mode and suspend state support

2019-08-10 Thread Raag Jadav
Implement ->set_mode(), ->get_mode() and ->set_suspend_xx() hooks for act8865 with unlocked expert registers. Based on work done by Borris Brezillon on [1]. [1] https://www.spinics.net/lists/kernel/msg2942960.html Signed-off-by: Raag Jadav --- drivers/regulator/act8865-regulator.c | 160

can we use mandatory-y for non-uapi headers?

2019-08-10 Thread Christoph Hellwig
Hi Masahiro, what is the reason that the documentation says mandatory-y should only be used for uapi headers? If would also be very useful for normal asm-generic headers where most people use the generic version and we only have a few overrides. Two headers that immediately come to mind are

Re: [PATCH] ALSA: hda - Fix a memory leak bug

2019-08-10 Thread Takashi Iwai
On Sat, 10 Aug 2019 06:29:48 +0200, Wenwen Wang wrote: > > In snd_hda_parse_generic_codec(), 'spec' is allocated through kzalloc(). > Then, the pin widgets in 'codec' are parsed. However, if the parsing > process fails, 'spec' is not deallocated, leading to a memory leak. > > To fix the above

Re: [PATCH] pinctrl: aspeed: g6: Remove const specifier from aspeed_g6_sig_expr_set's ctx parameter

2019-08-10 Thread Linus Walleij
On Wed, Aug 7, 2019 at 2:32 AM Nathan Chancellor wrote: > clang errors: > > drivers/pinctrl/aspeed/pinctrl-aspeed-g6.c:2325:9: error: incompatible > pointer types initializing 'int (*)(struct aspeed_pinmux_data *, const > struct aspeed_sig_expr *, bool)' with an expression of type 'int (const >

[PATCH] ARM: module: Avoid W and X mappings at the beginning

2019-08-10 Thread zhe.he
From: He Zhe It is more secure to map module memory as not-execute at the beginning. Memory sections that need to be executable will be turned to executable later in complete_formation. This is a corresponding change for ARM to the following commit commit f2c65fb3221a ("x86/modules: Avoid

Re: [PATCH] vhost: do not reference a file that does not exist

2019-08-10 Thread Christoph Hellwig
On Wed, Aug 07, 2019 at 05:52:55PM -0700, egran...@chromium.org wrote: > From: Enrico Granata > > lguest was removed from the mainline kernel in late 2017. > > Signed-off-by: Enrico Granata But this particular file even has an override in the script looking for dead references, which together

Re: [patch V2 0/7] fs: Substitute bit-spinlocks for PREEMPT_RT and debugging

2019-08-10 Thread Christoph Hellwig
On Thu, Aug 08, 2019 at 09:54:03AM +0200, Thomas Gleixner wrote: > > I know. But the problem here is that normally PG_locked is used together > > with wait_on_page_bit_*, but this one instances uses the bit spinlock > > helpers. This is the equivalent of calling spin_lock on a struct mutex > >

Re: [PATCH v6 31/57] pci: Remove dev_err() usage after platform_get_irq()

2019-08-10 Thread Linus Walleij
On Tue, Jul 30, 2019 at 8:19 PM Stephen Boyd wrote: > We don't need dev_err() messages when platform_get_irq() fails now that > platform_get_irq() prints an error message itself when something goes > wrong. Let's remove these prints with a simple semantic patch. (...) > While we're here, remove

Re: [PATCH 12/16] mtd: rawnand: remove w90x900 driver

2019-08-10 Thread Boris Brezillon
On Fri, 9 Aug 2019 22:27:40 +0200 Arnd Bergmann wrote: > The ARM w90x900 platform is getting removed, so this driver is obsolete. > > Signed-off-by: Arnd Bergmann One less driver to convert to ->exec_op(), Yay! Reviewed-by: Boris Brezillon > --- > drivers/mtd/nand/raw/Kconfig |

Re: general protection fault in tls_write_space

2019-08-10 Thread syzbot
syzbot has found a reproducer for the following crash on: HEAD commit:ca497fb6 taprio: remove unused variable 'entry_list_policy' git tree: net-next console output: https://syzkaller.appspot.com/x/log.txt?x=109f380260 kernel config:

Re: [PATCH v4 0/7] Allwinner H6 SPDIF support

2019-08-10 Thread Clément Péron
Hi, Sorry, I just discovered that the ASoC patches have been merged into the broonie and linus tree in 5.3. I'm still quite new in the sending of patches to the Kernel but souldn't be a ack or a mail sent to warn the sender when the series are accepted? Should 5/6/7 patches be picked by Sunxi

Greetings

2019-08-10 Thread Ann Hester
How are you? I hope you are well. My name is Ann Leigh, please reply back to confirm your email address so I can tell you my reason for contacting you.

[GIT PULL] pin control fixes for v5.3

2019-08-10 Thread Linus Walleij
Hi Linus, here are some pin control fixes for the v5.3 development. I should have sent earlier, vacation interfered. Thus there is a syntax fix I would normally not put in as fix at this point in this set, but I think it is no big deal. Please pull it in! Yours, Linus Walleij The following

Re: [PATCH 03/16] gpio: remove ks8695 driver

2019-08-10 Thread Linus Walleij
On Fri, Aug 9, 2019 at 10:28 PM Arnd Bergmann wrote: > The platform is getting removed, so there are no remaining > users of this driver. > > Signed-off-by: Arnd Bergmann Patch applied. Thanks for cleaning out this old cruft. Yours, Linus Walleij

Re: [PATCH] mm/z3fold.c: Fix race between migration and destruction

2019-08-10 Thread Vitaly Wool
Hi Henry, Den fre 9 aug. 2019 6:46 emHenry Burns skrev: > > In z3fold_destroy_pool() we call destroy_workqueue(>compact_wq). > However, we have no guarantee that migration isn't happening in the > background at that time. > > Migration directly calls queue_work_on(pool->compact_wq), if

Re: [PATCH v3] Revert "powerpc: slightly improve cache helpers"

2019-08-10 Thread Michael Ellerman
Nick Desaulniers writes: > This reverts commit 6c5875843b87c3adea2beade9d1b8b3d4523900a. > > Work around Clang bug preventing ppc32 from booting. > > Link: https://bugs.llvm.org/show_bug.cgi?id=42762 > Link: https://github.com/ClangBuiltLinux/linux/issues/593 > Debugged-by: Nathan Chancellor >

Re: [PATCH v1 2/4] mm/memory_hotplug: Handle unaligned start and nr_pages in online_pages_blocks()

2019-08-10 Thread David Hildenbrand
On 09.08.19 23:46, Andrew Morton wrote: > On Fri, 9 Aug 2019 14:56:59 +0200 David Hildenbrand wrote: > >> Take care of nr_pages not being a power of two and start not being >> properly aligned. Essentially, what walk_system_ram_range() could provide >> to us. get_order() will round-up in case

Re: [PATCH] RISC-V: Issue a local tlb flush if possible.

2019-08-10 Thread Atish Patra
On 8/9/19, 6:43 PM, "Atish Patra" wrote: In RISC-V, tlb flush happens via SBI which is expensive. If the target cpumask contains a local hartid, some cost can be saved by issuing a local tlb flush as we do that in OpenSBI anyways. Signed-off-by: Atish Patra ---

Re: [PATCH v8 7/7] powerpc: add machine check safe copy_to_user

2019-08-10 Thread Michael Ellerman
Santosh Sivaraj writes: > Use memcpy_mcsafe() implementation to define copy_to_user_mcsafe() > > Signed-off-by: Santosh Sivaraj > --- > arch/powerpc/Kconfig | 1 + > arch/powerpc/include/asm/uaccess.h | 14 ++ > 2 files changed, 15 insertions(+) > > diff --git

Re: About threaded interrupt handler CPU affinity

2019-08-10 Thread Ming Lei
On Tue, Jul 23, 2019 at 1:40 AM John Garry wrote: > > On 22/07/2019 16:34, Thomas Gleixner wrote: > > John, > > > > Hi Thomas, > > > On Mon, 22 Jul 2019, John Garry wrote: > >> On 22/07/2019 15:41, Marc Zyngier wrote: > >>> On 22/07/2019 15:14, John Garry wrote: > I have a question on commit

[PATCH RFC v2] ubi: ubi_wl_get_peb: Increase the number of attempts while getting PEB

2019-08-10 Thread Zhihao Cheng
Running stress test io_paral (A pressure ubi test in mtd-utils) on an UBI device with fewer PEBs (fastmap enabled) may cause ENOSPC errors and make UBI device read-only, but there are still free PEBs on the UBI device. This problem can be easily reproduced by performing the following steps on a

[PATCH] dt-bindings: Add vendor prefix for Inspur Corporation

2019-08-10 Thread John Wang
Signed-off-by: John Wang --- Documentation/devicetree/bindings/vendor-prefixes.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Documentation/devicetree/bindings/vendor-prefixes.yaml b/Documentation/devicetree/bindings/vendor-prefixes.yaml index 33a65a45e319..cc07237b8b89 100644 ---

[PATCH v2 2/2] hwmon: pmbus: Add Inspur Power System power supply driver

2019-08-10 Thread John Wang
Add the driver to monitor Inspur Power System power supplies with hwmon over pmbus. This driver adds sysfs attributes for additional power supply data, including vendor, model, part_number, serial number, firmware revision, hardware revision, and psu mode(active/standby). Signed-off-by: John

Re: [PATCH] fanotify, inotify, dnotify, security: add security hook for fs notifications

2019-08-10 Thread Amir Goldstein
> > > Other than Casey's comments, and ACK, I'm not seeing much commentary > > > on this patch so FS and LSM folks consider this your last chance - if > > > I don't hear any objections by the end of this week I'll plan on > > > merging this into selinux/next next week. > > > > Please consider it

[GIT PULL] Please pull powerpc/linux.git powerpc-5.3-4 tag

2019-08-10 Thread Michael Ellerman
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Hi Linus, Please pull another powerpc fix for 5.3: The following changes since commit d7e23b887f67178c4f840781be7a6aa6aeb52ab1: powerpc/kasan: fix early boot failure on PPC32 (2019-07-31 22:02:52 +1000) are available in the git repository at:

Re: [PATCH] PCI: pciehp: Avoid returning prematurely from sysfs requests

2019-08-10 Thread Lukas Wunner
On Fri, Aug 09, 2019 at 10:28:15PM +0200, Lukas Wunner wrote: > On Fri, Aug 09, 2019 at 01:32:16PM -0600, Keith Busch wrote: > > On Fri, Aug 09, 2019 at 12:28:43PM +0200, Lukas Wunner wrote: > > > A sysfs request to enable or disable a PCIe hotplug slot should not > > > return before it has been

Re: [PATCH 1/2] Fix a NULL-ptr-deref bug in ath6kl_usb_alloc_urb_from_pipe

2019-08-10 Thread Greg KH
On Sat, Aug 03, 2019 at 08:29:04PM -0400, Hui Peng wrote: > The `ar_usb` field of `ath6kl_usb_pipe_usb_pipe` objects > are initialized to point to the containing `ath6kl_usb` object > according to endpoint descriptors read from the device side, as shown > below in

Re: [PATCH 4.9 00/32] 4.9.189-stable review

2019-08-10 Thread Greg Kroah-Hartman
On Fri, Aug 09, 2019 at 02:59:11PM -0500, Daniel Díaz wrote: > Hello! > > On 8/9/19 8:45 AM, Greg Kroah-Hartman wrote: > > This is the start of the stable review cycle for the 4.9.189 release. > > There are 32 patches in this series, all will be posted as a response > > to this one. If anyone

Re: [PATCH v2] PCI: rpaphp: Avoid a sometimes-uninitialized warning

2019-08-10 Thread Michael Ellerman
On Mon, 2019-06-03 at 22:11:58 UTC, Nathan Chancellor wrote: > When building with -Wsometimes-uninitialized, clang warns: > > drivers/pci/hotplug/rpaphp_core.c:243:14: warning: variable 'fndit' is > used uninitialized whenever 'for' loop exits because its condition is > false

Re: [PATCH 1/2] powerpc/xive: Use GFP_KERNEL instead of GFP_ATOMIC in 'xive_irq_bitmap_add()'

2019-08-10 Thread Michael Ellerman
On Thu, 2019-08-01 at 08:32:31 UTC, Christophe JAILLET wrote: > There is no need to use GFP_ATOMIC here. GFP_KERNEL should be enough. > GFP_KERNEL is also already used for another allocation just a few lines > below. > > Signed-off-by: Christophe JAILLET > Reviewed-by: Cédric Le Goater >

Re: [PATCH v2] powerpc/32: activate ARCH_HAS_PMEM_API and ARCH_HAS_UACCESS_FLUSHCACHE

2019-08-10 Thread Michael Ellerman
On Wed, 2019-07-31 at 06:31:41 UTC, Christophe Leroy wrote: > PPC32 also have flush_dcache_range() so it can also support > ARCH_HAS_PMEM_API and ARCH_HAS_UACCESS_FLUSHCACHE without changes. > > Signed-off-by: Christophe Leroy Applied to powerpc next, thanks.

Re: [PATCH 1/1] pseries/hotplug-memory.c: Replace nested ifs by switch-case

2019-08-10 Thread Michael Ellerman
On Thu, 2019-08-01 at 22:52:51 UTC, Leonardo Bras wrote: > I noticed these nested ifs can be easily replaced by switch-cases, > which can improve readability. > > Signed-off-by: Leonardo Bras > Reviewed-by: David Hildenbrand Series applied to powerpc next, thanks.

[PATCH] net: nps_enet: Fix function names in doc comments

2019-08-10 Thread Jonathan Neuschäfer
Adjust the function names in two doc comments to match the corresponding functions. Signed-off-by: Jonathan Neuschäfer --- drivers/net/ethernet/ezchip/nps_enet.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/ethernet/ezchip/nps_enet.h

Kernel 5.3.x, 5.2.2+: VMware player suspend on 64/32 bit guests

2019-08-10 Thread Woody Suwalski
Moving the thread to LKML, as suggested by Thomas... -- Forwarded message - From: Woody Suwalski Date: Thu, Aug 1, 2019 at 3:45 PM Subject: Intermittent suspend on 5.3 / 5.2 To: Rafael J. Wysocki Hi Rafał, I know that you are investigating some issues between these 2

[PATCH] PM: suspend: Fix platform_suspend_prepare_noirq()

2019-08-10 Thread Rafael J. Wysocki
From: Rafael J. Wysocki After commit ac9eafbe930a ("ACPI: PM: s2idle: Execute LPS0 _DSM functions with suspended devices"), a NULL pointer may be dereferenced if suspend-to-idle is attempted on a platform without "traditional" suspend support due to invalid fall-through in

Re: [PATCH 4.19 36/45] net/mlx5: Fix modify_cq_in alignment

2019-08-10 Thread Pavel Machek
Hi! > From: Edward Srouji > > [ Upstream commit 7a32f2962c56d9d8a836b4469855caeee8766bd4 ] > > Fix modify_cq_in alignment to match the device specification. > After this fix the 'cq_umem_valid' field will be in the right > offset. Is it neccessary for v4.19 stable? The cq_umem_valid field is

[GIT PULL] TTY/Serial fixes for 5.3-rc4

2019-08-10 Thread Greg KH
The following changes since commit 609488bc979f99f805f34e9a32c1e3b71179d10b: Linux 5.3-rc2 (2019-07-28 12:47:02 -0700) are available in the Git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/tty.git tags/tty-5.3-rc4 for you to fetch changes up to

[GIT PULL] Staging/IIO driver fixes for 5.3-rc4

2019-08-10 Thread Greg KH
The following changes since commit 5f9e832c137075045d15cd6899ab0505cfb2ca4b: Linus 5.3-rc1 (2019-07-21 14:05:38 -0700) are available in the Git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging.git tags/staging-5.3-rc4 for you to fetch changes up to

[GIT PULL] Driver core patches for 5.3-rc4

2019-08-10 Thread Greg KH
The following changes since commit 5f9e832c137075045d15cd6899ab0505cfb2ca4b: Linus 5.3-rc1 (2019-07-21 14:05:38 -0700) are available in the Git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core.git tags/driver-core-5.3-rc4 for you to fetch changes up to

[GIT PULL] Char/Misc driver fixes for 5.3-rc4

2019-08-10 Thread Greg KH
The following changes since commit 609488bc979f99f805f34e9a32c1e3b71179d10b: Linux 5.3-rc2 (2019-07-28 12:47:02 -0700) are available in the Git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/char-misc.git tags/char-misc-5.3-rc4 for you to fetch changes up to

Add SPDX kernel tree to linux-next

2019-08-10 Thread Greg KH
Hi, I realized that I've been sending patches to Linus from my "SPDX" kernel tree for a few releases now, and it's not included in linux-next, which is not good. So, could you please add the kernel tree / branch at: git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/spdx.git spdx-linus

Linux Kernel Code of Conduct Committee: September 2018 to July 2019 report

2019-08-10 Thread Greg KH
Linux Kernel Code of Conduct Committee: September 2018 to July 2019 report In the period of September 15, 2018 through July 31, 2019, the Committee received the following reports: - Inappropriate language in the kernel source: 1 - Insulting behavior in email: 3 The result of the

Re: [PATCH V2 05/10] ACPI: cpufreq: Switch to QoS requests instead of cpufreq notifier

2019-08-10 Thread Rafael J. Wysocki
On Fri, Aug 9, 2019 at 4:33 AM Viresh Kumar wrote: > > On 06-08-19, 14:17, Viresh Kumar wrote: > > On 06-08-19, 10:01, Rafael J. Wysocki wrote: > > > Yes, it does, thanks! > > > > > > [No need to resend, I'll take it from this message.] > > > > Forgot to write CPU in caps in print messages,

[PATCH 1/2] mmc: jz4740: Code cleanup

2019-08-10 Thread Paul Cercueil
Fix wrong code indentation which made the code hard to read, and fix return with value in void function. Signed-off-by: Paul Cercueil --- drivers/mmc/host/jz4740_mmc.c | 14 +++--- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/drivers/mmc/host/jz4740_mmc.c

[PATCH 2/2] mmc: jz4740: Drop dependency on arch header

2019-08-10 Thread Paul Cercueil
We don't need to set the 'slave_id' anymore - that field is never read by the DMA driver. Signed-off-by: Paul Cercueil --- drivers/mmc/host/jz4740_mmc.c | 4 1 file changed, 4 deletions(-) diff --git a/drivers/mmc/host/jz4740_mmc.c b/drivers/mmc/host/jz4740_mmc.c index

Re: [PATCH V2 04/10] cpufreq: powerpc_cbe: Switch to QoS requests instead of cpufreq notifier

2019-08-10 Thread Rafael J. Wysocki
On Fri, Aug 9, 2019 at 4:34 AM Viresh Kumar wrote: > > On 23-07-19, 11:44, Viresh Kumar wrote: > > The cpufreq core now takes the min/max frequency constraints via QoS > > requests and the CPUFREQ_ADJUST notifier shall get removed later on. > > > > Switch over to using the QoS request for maximum

Re: [PATCH net-next v2 2/9] net: macsec: move some definitions in a dedicated header

2019-08-10 Thread Igor Russkikh
Hi Antoine, Overall good looking patchset, great! > +/** > + * struct macsec_tx_sa - transmit secure association > + * @active: > + * @next_pn: packet number to use for the next packet > + * @lock: protects next_pn manipulations > + * @key: key structure > + * @stats: per-SA stats > + */ >

[PATCH 1/2] habanalabs: fix endianness handling for internal QMAN submission

2019-08-10 Thread Oded Gabbay
The PQs of internal H/W queues (QMANs) can be located in different memory areas for different ASICs. Therefore, when writing PQEs, we need to use the correct function according to the location of the PQ. e.g. if the PQ is located in the device's memory (SRAM or DRAM), we need to use memcpy_toio()

[PATCH 2/2] habanalabs: fix device IRQ unmasking for BE host

2019-08-10 Thread Oded Gabbay
From: Ben Segal When unmasking IRQs inside the ASIC, the driver passes an array of all the IRQ to unmask. The ASIC's CPU is working in LE so when running in a BE host, the driver needs to do the proper endianness swapping when preparing this array. In addition, this patch also fixes the

Re: Let's talk about the elephant in the room - the Linux kernel's inability to gracefully handle low memory pressure

2019-08-10 Thread ndrw
On 09/08/2019 11:50, Michal Hocko wrote: We try to protect low amount of cache. Have a look at get_scan_count function. But the exact amount of the cache to be protected is really hard to know wihtout a crystal ball or understanding of the workload. The kernel doesn't have neither of the two.

Re: [PATCH] clk: ingenic: Use CLK_OF_DECLARE_DRIVER macro

2019-08-10 Thread Paul Cercueil
Le jeu. 8 août 2019 à 6:23, Stephen Boyd a écrit : Quoting Paul Cercueil (2019-07-16 10:08:00) By using CLK_OF_DECLARE_DRIVER instead of the CLK_OF_DECLARE macro, we allow the driver to probe also as a platform driver. While this driver does not have code to probe as a platform driver,

[PATCH v2] clk: ingenic: Use CLK_OF_DECLARE_DRIVER macro

2019-08-10 Thread Paul Cercueil
By using CLK_OF_DECLARE_DRIVER instead of the CLK_OF_DECLARE macro, we allow the driver to probe also as a platform driver. While this driver does not have code to probe as a platform driver, this is still useful for probing children devices in the case where the device node is compatible with

[PATCH] habanalabs: print to kernel log when reset is finished

2019-08-10 Thread Oded Gabbay
Now that we don't print the queue testing messages, we need to print when the reset is finished so whoever looks at the kernel log will know the reset process was finished successfully and the driver is not stuck. Signed-off-by: Oded Gabbay --- drivers/misc/habanalabs/device.c | 2 ++ 1 file

[PATCH 2/2] habanalabs: replace __le32_to_cpu with le32_to_cpu

2019-08-10 Thread Oded Gabbay
In some files the driver uses __le32_to_cpu while in other it uses le32_to_cpu. Replace all __le32_to_cpu instances with le32_to_cpu for consistency. Signed-off-by: Oded Gabbay --- drivers/misc/habanalabs/habanalabs_ioctl.c | 2 +- drivers/misc/habanalabs/hw_queue.c | 2 +-

[PATCH 1/2] habanalabs: replace __cpu_to_le32/64 with cpu_to_le32/64

2019-08-10 Thread Oded Gabbay
In some files the code use __cpu_to_le32/64 while in other it use cpu_to_le32/64. Replace all __cpu_to_le32/64 instances with cpu_to_le32/64 for consistency. Signed-off-by: Oded Gabbay --- drivers/misc/habanalabs/debugfs.c | 12 ++-- drivers/misc/habanalabs/hw_queue.c | 8

Re: [PATCH] sh: kernel: hw_breakpoint: Fix missing break in switch statement

2019-08-10 Thread Guenter Roeck
On Fri, Aug 09, 2019 at 11:59:44PM -0500, Gustavo A. R. Silva wrote: > Add missing break statement in order to prevent the code from > erroneously falling through to case SH_BREAKPOINT_WRITE. > > Fixes: 09a072947791 ("sh: hw-breakpoints: Add preliminary support for SH-4A > UBC.") > Cc:

Re: [PATCH] habanalabs: print to kernel log when reset is finished

2019-08-10 Thread Greg KH
On Sat, Aug 10, 2019 at 03:38:08PM +0300, Oded Gabbay wrote: > Now that we don't print the queue testing messages, we need to print when > the reset is finished so whoever looks at the kernel log will know the > reset process was finished successfully and the driver is not stuck. > >

Re: [PATCH v2] sh: kernel: disassemble: Mark expected switch fall-throughs

2019-08-10 Thread Guenter Roeck
On Sat, Aug 10, 2019 at 12:24:42AM -0500, Gustavo A. R. Silva wrote: > Remove logically dead code and mark switch cases where we are expecting > to fall through. > > Fix the following warnings (Building: defconfig sh): > > arch/sh/kernel/disassemble.c:478:8: warning: this statement may fall >

Re: [PATCH] x86/umwait: Fix error handling in umwait_init()

2019-08-10 Thread Thomas Gleixner
On Sat, 10 Aug 2019, Thomas Gleixner wrote: > On Fri, 9 Aug 2019, Fenghua Yu wrote: > > +/* > > + * The CPU hotplug callback sets the control MSR to the original control > > + * value. > > + */ > > +static int umwait_cpu_offline(unsigned int cpu) > > +{ > > + /* > > +* This code is protected

Re: [v4 2/6] media: platform: dwc: Add MIPI CSI-2 controller driver

2019-08-10 Thread Andy Shevchenko
On Fri, Aug 9, 2019 at 5:38 PM Sakari Ailus wrote: > On Tue, Jun 11, 2019 at 09:20:51PM +0200, Luis Oliveira wrote: > > Add the Synopsys MIPI CSI-2 controller driver. This > > controller driver is divided in platform functions and core functions. > > This way it serves as platform for future

Re: [PATCH v2 1/2] serial: 8250_pci: Add support for Sunix serial boards

2019-08-10 Thread Andy Shevchenko
On Fri, Aug 9, 2019 at 10:05 PM Kai-Heng Feng wrote: > > Add support to Sunix serial boards with up to 16 ports. > > Sunix board need its own setup callback instead of using Timedia's, to > properly support more than 4 ports. > Can you, please, split out the Sunix quirk driver to a separate

Re: [PATCH net-next v2 6/9] net: macsec: hardware offloading infrastructure

2019-08-10 Thread Igor Russkikh
On 08.08.2019 17:05, Antoine Tenart wrote: > The Rx and TX handlers are modified to take in account the special case > were the MACsec transformation happens in the hardware, whether in a PHY > or in a MAC, as the packets seen by the networking stack on both the Don't you think we may eventually

Re: [PATCH v4 8/9] MIPS: SGI-IP27: fix readb/writeb addressing

2019-08-10 Thread Andy Shevchenko
On Fri, Aug 9, 2019 at 1:34 PM Thomas Bogendoerfer wrote: > > Our chosen byte swapping, which is what firmware already uses, is to > do readl/writel by normal lw/sw intructions (data invariance). This > also means we need to mangle addresses for u8 and u16 accesses. The > mangling for 16bit has

Re: checkpatch.pl should suggest __section

2019-08-10 Thread Miguel Ojeda
On Sat, Aug 10, 2019 at 12:21 AM Nick Desaulniers wrote: > > Hi Joe, > While debugging: > https://github.com/ClangBuiltLinux/linux/issues/619 > we found a bunch of places where __section is not used but could be, > and uses a string literal when it probably should not be. > > Just a thought that

memory leak in blkdev_direct_IO

2019-08-10 Thread syzbot
Hello, syzbot found the following crash on: HEAD commit:0eb0ce0a Merge tag 'spi-fix-v5.3-rc3' of git://git.kernel... git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=10cc073a60 kernel config: https://syzkaller.appspot.com/x/.config?x=39113f5c48aea971

AWARD,

2019-08-10 Thread Yasuf Ahmed
Coca Cola Award, Your email account have emerged as one of the lucky winner for $3.5,000.000.00USD which you're to contact below person to enable him process the transfer to you through ATM card transfer. For more Inquiries Contact; Name: Rev. Pastor David Obed Country: Burkina Faso Email:

Re: [PATCH 1/3] media: vimc: move private defines to a common header

2019-08-10 Thread Laurent Pinchart
Hi Shuah, Thank you for the patch. On Fri, Aug 09, 2019 at 03:45:41PM -0600, Shuah Khan wrote: > In preparation for collapsing the component driver structure into > a monolith, move private device structure defines to a new common > header file. Apart from the vimc_device structure, this

Re: [RFC PATCH v3 00/16] Core scheduling v3

2019-08-10 Thread Aaron Lu
On Thu, Aug 08, 2019 at 02:42:57PM -0700, Tim Chen wrote: > On 8/8/19 10:27 AM, Tim Chen wrote: > > On 8/7/19 11:47 PM, Aaron Lu wrote: > >> On Tue, Aug 06, 2019 at 02:19:57PM -0700, Tim Chen wrote: > >>> +void account_core_idletime(struct task_struct *p, u64 exec) > >>> +{ > >>> + const struct

Re: [RFC PATCH v3 00/16] Core scheduling v3

2019-08-10 Thread Aaron Lu
On Thu, Aug 08, 2019 at 09:39:45AM -0700, Tim Chen wrote: > On 8/8/19 5:55 AM, Aaron Lu wrote: > > On Mon, Aug 05, 2019 at 08:55:28AM -0700, Tim Chen wrote: > >> On 8/2/19 8:37 AM, Julien Desfossez wrote: > >>> We tested both Aaron's and Tim's patches and here are our results. > > > > > diff

[PATCH] staging: iio: accel: adis16240: Improve readability on write_raw function

2019-08-10 Thread Rodrigo
From: Rodrigo Carvalho Improve readability by using GENMASK macro, changing switch statement by if statement and removing unnecessary local variables. Signed-off-by: Rodrigo Ribeiro Carvalho --- drivers/staging/iio/accel/adis16240.c | 16 +++- 1 file changed, 7 insertions(+), 9

Re: [PATCH] fanotify, inotify, dnotify, security: add security hook for fs notifications

2019-08-10 Thread Paul Moore
On August 10, 2019 6:05:27 AM Amir Goldstein wrote: Other than Casey's comments, and ACK, I'm not seeing much commentary on this patch so FS and LSM folks consider this your last chance - if I don't hear any objections by the end of this week I'll plan on merging this into

Re: [Bug 201517] New: pcieport 0000:00:03.1: AER: Corrected error received: 0000:00:00.0

2019-08-10 Thread Mikhail Gavrilov
On Tue, 4 Dec 2018 at 04:36, Bjorn Helgaas wrote: > > [Forwarding this to linux-pci since nobody really monitors the bugzilla] > > Possibly the same issue reported here: > > https://bugzilla.kernel.org/show_bug.cgi?id=109691 > https://bugzilla.kernel.org/show_bug.cgi?id=111601 >

Re: [PATCH] habanalabs: print to kernel log when reset is finished

2019-08-10 Thread Oded Gabbay
On Sat, Aug 10, 2019 at 3:53 PM Greg KH wrote: > > On Sat, Aug 10, 2019 at 03:38:08PM +0300, Oded Gabbay wrote: > > Now that we don't print the queue testing messages, we need to print when > > the reset is finished so whoever looks at the kernel log will know the > > reset process was finished

[PATCH 2/2] mfd: rave-sp: Add support for firmware update

2019-08-10 Thread Fabio Estevam
From: Andrey Smirnov Add support for updating application firmware of RAVE SP devices. It adds two sysfs entries: * update_fw- used to initiate firmware update * update_fw_status - used to keep track of firmware update progress Firmware update process

[PATCH 1/2] mfd: rave-sp: Bump command timeout to 5 seconds

2019-08-10 Thread Fabio Estevam
From: Andrey Smirnov Command to erase application firmware on RAVE SP takes longer than one second (it takes ~3s). Bump command timeout duration to 5 seconds in order to avoid bogus timeouts. Cc: Fixes: 538ee27290fa ("mfd: Add driver for RAVE Supervisory Processor") Signed-off-by: Andrey

  1   2   3   4   >