[PATCH 08/28] video: fbdev: tridentfb: constify pci_device_id.

2017-07-20 Thread Arvind Yadav
pci_device_id are not supposed to change at runtime. All functions working with pci_device_id provided by work with const pci_device_id. So mark the non-const structs as const. File size before: textdata bss dec hex filename 132061232 40 14478388e video/fbdev/t

[PATCH 10/28] video: fbdev: via: constify pci_device_id.

2017-07-20 Thread Arvind Yadav
pci_device_id are not supposed to change at runtime. All functions working with pci_device_id provided by work with const pci_device_id. So mark the non-const structs as const. File size before: textdata bss dec hex filename 3856 968 12849521358 video/fbdev/v

Re: [alsa-devel] [PATCH v3] ASoC: sgtl5000: add avc support

2017-07-20 Thread Richard Leitner
On 07/20/2017 07:40 PM, Fabio Estevam wrote: Do you want to send that patch or should I? I have just sent the patch. Thanks!

[PATCH 14/28] video: fbdev: arkfb: constify pci_device_id.

2017-07-20 Thread Arvind Yadav
pci_device_id are not supposed to change at runtime. All functions working with pci_device_id provided by work with const pci_device_id. So mark the non-const structs as const. File size before: textdata bss dec hex filename 125111920 0 14431385f drivers/video

Re: [RFC] make onsemi-ncp6335d.c mainlined

2017-07-20 Thread Stephen Boyd
On 07/20, Jisheng Zhang wrote: > Hi all, > > I notice there's one regulator driver for NCP6335D in android-msm repo: > > https://android.googlesource.com/kernel/msm/+log/android-msm-dory-3.10-kitkat-wear/drivers/regulator/onsemi-ncp6335d.c > > Is there anyone want to make it mainlined? > You'r

[PATCH 13/28] video: fbdev: i810: constify pci_device_id.

2017-07-20 Thread Arvind Yadav
pci_device_id are not supposed to change at runtime. All functions working with pci_device_id provided by work with const pci_device_id. So mark the non-const structs as const. File size before: textdata bss dec hex filename 13132 520 56 13708358c video/fbdev/i

[PATCH 16/28] video: fbdev: vermilion: constify pci_device_id.

2017-07-20 Thread Arvind Yadav
pci_device_id are not supposed to change at runtime. All functions working with pci_device_id provided by work with const pci_device_id. So mark the non-const structs as const. File size before: textdata bss dec hex filename 7953 568 96861721a9 fbdev/vermili

[PATCH 18/28] video: fbdev: mb862xx: constify pci_device_id.

2017-07-20 Thread Arvind Yadav
pci_device_id are not supposed to change at runtime. All functions working with pci_device_id provided by work with const pci_device_id. So mark the non-const structs as const. File size before: textdata bss dec hex filename 73261320 0864621c6 fbdev/mb862xx

[PATCH 20/28] video: fbdev: sunxvr500: constify pci_device_id.

2017-07-20 Thread Arvind Yadav
pci_device_id are not supposed to change at runtime. All functions working with pci_device_id provided by work with const pci_device_id. So mark the non-const structs as const. File size before: textdata bss dec hex filename 170 488 0 658 292 drivers/video

[PATCH 22/28] video: fbdev: pm2fb: constify pci_device_id.

2017-07-20 Thread Arvind Yadav
pci_device_id are not supposed to change at runtime. All functions working with pci_device_id provided by work with const pci_device_id. So mark the non-const structs as const. File size before: textdata bss dec hex filename 11940 660 16 126163148 drivers/video

[PATCH 25/28] video: fbdev: s3fb: constify pci_device_id.

2017-07-20 Thread Arvind Yadav
pci_device_id are not supposed to change at runtime. All functions working with pci_device_id provided by work with const pci_device_id. So mark the non-const structs as const. File size before: textdata bss dec hex filename 209942440 8 234425b92 drivers/video

[PATCH 24/28] video: fbdev: neofb: constify pci_device_id.

2017-07-20 Thread Arvind Yadav
pci_device_id are not supposed to change at runtime. All functions working with pci_device_id provided by work with const pci_device_id. So mark the non-const structs as const. File size before: textdata bss dec hex filename 127661064 21 13851361b drivers/video

[PATCH 26/28] video: fbdev: pm3fb: constify pci_device_id.

2017-07-20 Thread Arvind Yadav
pci_device_id are not supposed to change at runtime. All functions working with pci_device_id provided by work with const pci_device_id. So mark the non-const structs as const. File size before: textdata bss dec hex filename 10332 596 16 109442ac0 drivers/video

[PATCH 27/28] video: fbdev: matroxfb: constify pci_device_id.

2017-07-20 Thread Arvind Yadav
pci_device_id are not supposed to change at runtime. All functions working with pci_device_id provided by work with const pci_device_id. So mark the non-const structs as const. File size before: textdata bss dec hex filename 198843036 96 2301659e8 fbdev/matrox/

[PATCH 23/28] video: fbdev: gxfb: constify pci_device_id.

2017-07-20 Thread Arvind Yadav
pci_device_id are not supposed to change at runtime. All functions working with pci_device_id provided by work with const pci_device_id. So mark the non-const structs as const. File size before: textdata bss dec hex filename 26431616 16427510b3 video/fbdev/g

[PATCH 28/28] video: fbdev: vt8623fb: constify pci_device_id.

2017-07-20 Thread Arvind Yadav
pci_device_id are not supposed to change at runtime. All functions working with pci_device_id provided by work with const pci_device_id. So mark the non-const structs as const. File size before: textdata bss dec hex filename 117901913 0 137033587 drivers/video

[PATCH 21/28] video: fbdev: imsttfb: constify pci_device_id.

2017-07-20 Thread Arvind Yadav
pci_device_id are not supposed to change at runtime. All functions working with pci_device_id provided by work with const pci_device_id. So mark the non-const structs as const. File size before: textdata bss dec hex filename 6736 856 075921da8 drivers/video

[PATCH 19/28] video: fbdev: tdfx: constify pci_device_id.

2017-07-20 Thread Arvind Yadav
pci_device_id are not supposed to change at runtime. All functions working with pci_device_id provided by work with const pci_device_id. So mark the non-const structs as const. File size before: textdata bss dec hex filename 84321456 16990426b0 drivers/video

[PATCH 17/28] video: fbdev: nvidia: constify pci_device_id.

2017-07-20 Thread Arvind Yadav
pci_device_id are not supposed to change at runtime. All functions working with pci_device_id provided by work with const pci_device_id. So mark the non-const structs as const. File size before: textdata bss dec hex filename 12149 768 36 129533299 video/fbdev/n

[PATCH 12/28] video: fbdev: riva: constify pci_device_id.

2017-07-20 Thread Arvind Yadav
pci_device_id are not supposed to change at runtime. All functions working with pci_device_id provided by work with const pci_device_id. So mark the non-const structs as const. File size before: textdata bss dec hex filename 132852080 3 153683c08 video/fbdev/r

[PATCH 15/28] video: fbdev: kyro: constify pci_device_id.

2017-07-20 Thread Arvind Yadav
pci_device_id are not supposed to change at runtime. All functions working with pci_device_id provided by work with const pci_device_id. So mark the non-const structs as const. File size before: textdata bss dec hex filename 31902704 245918171e video/fbdev/k

[PATCH 09/28] video: fbdev: skeletonfb: constify pci_device_id.

2017-07-20 Thread Arvind Yadav
pci_device_id are not supposed to change at runtime. All functions working with pci_device_id provided by work with const pci_device_id. So mark the non-const structs as const. Signed-off-by: Arvind Yadav --- drivers/video/fbdev/skeletonfb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)

[PATCH 11/28] video: fbdev: savage: constify pci_device_id.

2017-07-20 Thread Arvind Yadav
pci_device_id are not supposed to change at runtime. All functions working with pci_device_id provided by work with const pci_device_id. So mark the non-const structs as const. File size before: textdata bss dec hex filename 199161240 8 2116452ac fbdev/savage/

[PATCH 07/28] video: fbdev: pvr2fb: constify pci_device_id.

2017-07-20 Thread Arvind Yadav
pci_device_id are not supposed to change at runtime. All functions working with pci_device_id provided by work with const pci_device_id. So mark the non-const structs as const. File size before: textdata bss dec hex filename 51551312 406507196b drivers/video

Re: [alsa-devel] [PATCH v3] ASoC: sgtl5000: add avc support

2017-07-20 Thread Fabio Estevam
On Thu, Jul 20, 2017 at 2:38 PM, Richard Leitner wrote: > Thank you for spotting this! That works of course. > > I'm sorry, it seems I messed something up during copy/paste for my own > backport version of this patch. Seems like I tested and sent a different > version of the patch... That definit

[PATCH 01/28] video: fbdev: radeon: constify pci_device_id.

2017-07-20 Thread Arvind Yadav
pci_device_id are not supposed to change at runtime. All functions working with pci_device_id provided by work with const pci_device_id. So mark the non-const structs as const. File size before: textdata bss dec hex filename 197095024 32 2476560bd video/fbdev/a

Re: [alsa-devel] [PATCH v3] ASoC: sgtl5000: add avc support

2017-07-20 Thread Richard Leitner
On 07/20/2017 07:27 PM, Fabio Estevam wrote: Hi Richard, On Thu, Jul 20, 2017 at 2:25 PM, Richard Leitner wrote: Does this occur only on reboot or everytime the driver tries to read the AVC threshold (avc_get_threshold)? Are you able to set the AVC threshold (using amixer)? I am not even u

Re: [kernel-hardening] Re: [RFC PATCH 6/6] arm64: add VMAP_STACK and detect out-of-bounds SP

2017-07-20 Thread Ard Biesheuvel
On 20 July 2017 at 09:56, Ard Biesheuvel wrote: > On 20 July 2017 at 09:36, James Morse wrote: >> Hi Ard, >> >> On 20/07/17 06:35, Ard Biesheuvel wrote: >>> On 20 July 2017 at 00:32, Laura Abbott wrote: I didn't notice any performance impact but I also wasn't trying that hard. I did tr

Re: [alsa-devel] [PATCH v3] ASoC: sgtl5000: add avc support

2017-07-20 Thread Fabio Estevam
Hi Richard, On Thu, Jul 20, 2017 at 2:25 PM, Richard Leitner wrote: > Does this occur only on reboot or everytime the driver tries to read the AVC > threshold (avc_get_threshold)? > Are you able to set the AVC threshold (using amixer)? I am not even using the codec. I just run 'reboot' and the

Re: [GIT PULL] Audit fix for v4.13 (#1)

2017-07-20 Thread Linus Torvalds
On Thu, Jul 20, 2017 at 8:07 AM, Paul Moore wrote: > > git://git.infradead.org/users/pcmoore/audit stable-4.13 Pulled. However, I'm gently poking people towards please using signed tags - I prefer it even for kernel.org trees (and the security is pretty tight there), and I _require_ it for publ

[PATCH] powerpc/kernel: Avoid preemption check during iommu_range_alloc

2017-07-20 Thread Victor Aoqui
Replaced __this_cpu_read function call by raw_cpu_read in iommu_range_alloc function. Preemption doesn't need to be disabled since any CPU can safely use IOMMU pool. Signed-off-by: Victor Aoqui --- arch/powerpc/kernel/iommu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ar

Re: [alsa-devel] [PATCH v3] ASoC: sgtl5000: add avc support

2017-07-20 Thread Richard Leitner
Hi Fabio, thanks for the testing/reporting! On 07/20/2017 07:11 PM, Fabio Estevam wrote: Running linux-next-20170720 on a imx53-qsb I get the following issue: root@imx53qsb:~# reboot ... ALSA: Storing mixer settings... [ 20.031604] Unable to handle kernel paging request at virtual address

Re: [PATCH 00/15] HMM (Heterogeneous Memory Management) v24

2017-07-20 Thread Jerome Glisse
On Wed, Jul 19, 2017 at 07:48:08PM +0800, Yisheng Xie wrote: > Hi Jérôme > > On 2017/6/29 2:00, Jérôme Glisse wrote: > > > > Patchset is on top of git://git.cmpxchg.org/linux-mmotm.git so i > > test same kernel as kbuild system, git branch: > > > > https://cgit.freedesktop.org/~glisse/linux/log/

Re: [PATCH v6 0/2] x86: Implement fast refcount overflow protection

2017-07-20 Thread Kees Cook
On Thu, Jul 20, 2017 at 2:11 AM, Ingo Molnar wrote: > Could you please also create a tabulated quick-comparison of the three > variants, > of all key properties, about behavior, feature and tradeoff differences? > > Something like: > > !ARCH_HAS_REFCOUNT ARCH_

Re: [alsa-devel] [PATCH v3] ASoC: sgtl5000: add avc support

2017-07-20 Thread Fabio Estevam
n: > patch:145: CHECK: Alignment should match open parenthesis > patch:148: CHECK: Alignment should match open parenthesis > > Signed-off-by: Richard Leitner Running linux-next-20170720 on a imx53-qsb I get the following issue: root@imx53qsb:~# reboot Broadcast message from root@

RE: [PATCH 3/3] ghes_edac: add platform check to enable ghes_edac

2017-07-20 Thread Luck, Tony
> Or add that parameter to edac_core.ko and let it control which EDAC > driver gets loaded? Something like > > edac=ignore_ghes > > or so. And then the other EDAC drivers query it. Sure ... one central place is better than adding code to each driver. -Tony

Re: [PATCH v4 2/2] thermal: uniphier: add UniPhier thermal driver

2017-07-20 Thread Masahiro Yamada
2017-07-21 1:53 GMT+09:00 Masahiro Yamada : > 2017-07-21 1:08 GMT+09:00 Masahiro Yamada : >> 2017-07-07 10:54 GMT+09:00 Kunihiko Hayashi : >>> Add a thermal driver for on-chip PVT (Process, Voltage and Temperature) >>> monitoring unit implemented on UniPhier SoCs. This driver supports >>> temperatu

Re: [PATCH v3 04/15] selinux: Refactor to remove bprm_secureexec hook

2017-07-20 Thread Kees Cook
On Thu, Jul 20, 2017 at 6:42 AM, Paul Moore wrote: > Alternatively, if you've got a fairly recent git repo with all the > patches merged I can build a test kernel and give it a shot for you, > although fair warning it may take a day or two for me to get to it. Hurm, I think this will take quite a

Re: [PATCH 3/3] ghes_edac: add platform check to enable ghes_edac

2017-07-20 Thread Borislav Petkov
On Thu, Jul 20, 2017 at 04:55:59PM +, Luck, Tony wrote: > Add a module parameter to those edac drivers that can override the check > and let them load anyway. I'm not paranoid, I just assume that there is a > BIOS > out there that sets the OSC/WHEA bits, but isn't generating useful GHES logs.

Re: [PATCH] livepatch: add (un)patch hooks

2017-07-20 Thread Josh Poimboeuf
On Thu, Jul 20, 2017 at 05:50:04PM +0200, Petr Mladek wrote: > On Wed 2017-07-19 23:17:23, Josh Poimboeuf wrote: > > - patching otherwise unpatchable code (i.e., assembly) > > > > In many/most cases, it seems like stop_machine() would be very useful > > to avoid concurrency issues. > > I am

[PATCH v2] powerpc/mm: Implemented default_hugepagesz verification for powerpc

2017-07-20 Thread Victor Aoqui
Implemented default hugepage size verification (default_hugepagesz=) in order to allow allocation of defined number of pages (hugepages=) only for supported hugepage sizes. Signed-off-by: Victor Aoqui --- v2: - Renamed default_hugepage_setup_sz function to hugetlb_default_size_setup; - Added po

RE: [PATCH 3/3] ghes_edac: add platform check to enable ghes_edac

2017-07-20 Thread Luck, Tony
>> Yes, the following message is shown on HP systems. Please note that >> WHEA is a Windows-defined interface. > > Ok, so let's couple ghes_edac loading to that and see how far we could > go. I guess we should add checks for that to the major x86 EDAC drivers > to not load and this way ghes_edac w

Re: [PATCH] dmaengine: ioatdma: Fix error handling path in 'ioat_dma_self_test()'

2017-07-20 Thread Dave Jiang
On 07/20/2017 12:24 AM, walter harms wrote: > > > Am 20.07.2017 00:16, schrieb Christophe JAILLET: >> If the 'memcmp' fails, free allocated resources as done in all other >> error handling paths. >> >> Signed-off-by: Christophe JAILLET >> --- >> Please review carefully, this patch looks "too o

Re: [PATCH v4 2/2] thermal: uniphier: add UniPhier thermal driver

2017-07-20 Thread Masahiro Yamada
2017-07-21 1:08 GMT+09:00 Masahiro Yamada : > 2017-07-07 10:54 GMT+09:00 Kunihiko Hayashi : >> Add a thermal driver for on-chip PVT (Process, Voltage and Temperature) >> monitoring unit implemented on UniPhier SoCs. This driver supports >> temperature monitoring and alert function. >> >> Signed-off

Re: [PATCH net] rds: Make sure updates to cp_send_gen can be observed

2017-07-20 Thread Santosh Shilimkar
On 7/20/2017 3:28 AM, Håkon Bugge wrote: cp->cp_send_gen is treated as a normal variable, although it may be used by different threads. This is fixed by using {READ,WRITE}_ONCE when it is incremented and READ_ONCE when it is read outside the {acquire,release}_in_xmit protection. There is expli

Re: [PATCH RESEND v4] MAINTAINERS: fix lots of alphabetic ordering

2017-07-20 Thread Joe Perches
On Thu, 2017-07-20 at 20:54 +1000, Michael Ellerman wrote: > Joe Perches writes: > > > On Wed, 2017-07-19 at 21:24 -0700, Linus Torvalds wrote: > > > On Wed, Jul 19, 2017 at 6:05 PM, Joe Perches wrote: > > > > > > > > Just for ease of manipulation and not breaking the script much, > > > > I'd s

RE: [PATCH v4 00/27] Thunderbolt security levels and NVM firmware upgrade

2017-07-20 Thread Christian Kellner
Hi, Did you by chance boot with the dock "plugged in"? Or was this the result of plugging in after boot? Dock was plugged in after boot. I included another dmesg output, where I marked the time point that I plugged the device in. There is a known issue that Mika is tracking regarding some p

Re: [PATCH] drm/i915: Pass enum pipe to intel_set_pch_fifo_underrun_reporting()

2017-07-20 Thread Matthias Kaehlcke
On Thu, Jul 20, 2017 at 1:27 AM, Daniel Vetter wrote: > On Wed, Jul 19, 2017 at 10:39:28AM -0700, Matthias Kaehlcke wrote: >> Commit a21960339c8c ("drm/i915: Consistently use enum pipe for PCH >> transcoders") misses some pieces, due to a problem with the patch >> format, this patch adds the remai

Re: [PATCH 1/2] x86: fix norandmaps

2017-07-20 Thread Oleg Nesterov
ping ;) On 07/10, Oleg Nesterov wrote: > > Documentation/admin-guide/kernel-parameters.txt says: > > norandmaps Don't use address space randomization. Equivalent > to echo 0 > /proc/sys/kernel/randomize_va_space > > but it doesn't work because arch_rnd() which is used to ran

Re: [linux-next:master 1341/1811] cc1: error: unrecognized command line option "-mstack-alignment=8"

2017-07-20 Thread Matthias Kaehlcke
On Thu, Jul 20, 2017 at 1:29 AM, Ingo Molnar wrote: > > * kbuild test robot wrote: > >> tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git >> master >> head: c981f0b3fb08ee58aacb208fe7f45628af420bba >> commit: 79e6b917e69a34d45e83e72f1e9bb7487d5f5832 [1341/1811] x86/bu

[PATCH v3 3/3] nvme: wwid_show: strip trailing 0-bytes

2017-07-20 Thread Martin Wilck
Some broken targets (such as the current Linux target) pad model or serial fields with 0-bytes rather than spaces. The NVME spec disallows 0 bytes in "ASCII" fields. Thus strip trailing 0-bytes, too. Also make sure that we get no underflow for pathological input. Signed-off-by: Martin Wilck Revie

[PATCH v3 0/3] Improve readbility of NVME "wwid" attribute

2017-07-20 Thread Martin Wilck
With the current implementation, the default "fallback" WWID generation code (if no nguid, euid etc. are defined) for Linux NVME host and target results in the following WWID format: nvme.-3163653363666438366239656630386200-4c696e7578

[PATCH v3 2/3] nvmet: identify controller: improve standard compliance

2017-07-20 Thread Martin Wilck
The NVME standard mandates that the SN, MN, and FR fields of the Indentify Controller Data Structure be "ASCII strings". That means that they may not contain 0-bytes, not even string terminators. Signed-off-by: Martin Wilck --- drivers/nvme/target/admin-cmd.c | 13 ++--- 1 file changed,

[PATCH v3 1/3] string.h: add memcpy_and_pad()

2017-07-20 Thread Martin Wilck
This helper function is useful for the nvme subsystem, and maybe others. Signed-off-by: Martin Wilck --- include/linux/string.h | 30 ++ 1 file changed, 30 insertions(+) diff --git a/include/linux/string.h b/include/linux/string.h index a467e617eeb08..0bec4151b0eb9 1

Re: [lkp-robot] [platform/x86] bff589be59: kmsg.dell_wmi:Cannot_read_Dell_descriptor_buffer

2017-07-20 Thread Pali Rohár
On Thursday 20 July 2017 09:02:20 kernel test robot wrote: > commit: bff589be59c50924a9715951160578e570cba5c6 ("platform/x86: dell-wmi: > Convert to the WMI bus infrastructure") > https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git master > > caused below changes (please refer to atta

Re: [PATCH 6/7] fcntl: Don't use ambiguous SIG_POLL si_codes

2017-07-20 Thread Oleg Nesterov
On 07/18, Eric W. Biederman wrote: > > - BUG_ON((reason & __SI_MASK) != __SI_POLL); > + BUG_ON((reason < POLL_IN) || (reason > NSIGPOLL)); ^ looks obviously wrong? Say, POLL_IN is obviously

Re: mm, something wrong in page_lock_anon_vma_read()?

2017-07-20 Thread Andrea Arcangeli
On Thu, Jul 20, 2017 at 02:58:35PM +0200, Andrea Arcangeli wrote: > but if zap_pte in a fremap fails to drop the anon page that was under > memory migration/compaction the exact same thing will happen. Either ... except it is ok to clear a migration entry, it will be migration that will free the n

RE: [PATCH v4 00/27] Thunderbolt security levels and NVM firmware upgrade

2017-07-20 Thread Mario.Limonciello
> -Original Message- > From: Christian Kellner [mailto:ckell...@redhat.com] > Sent: Thursday, July 20, 2017 11:12 AM > To: Mika Westerberg > Cc: Andreas Noever ; Greg Kroah-Hartman > ; Michael Jamet ; > Yehezkel Bernat ; Lukas Wunner > ; Amir Levy ; Andy Lutomirski > ; Limonciello, Mario ;

[PATCH v1] staging: rts5208: Change fixed function names with "%s: ", __func__

2017-07-20 Thread Gaurav Pathak
staging: rts5208: Fix coding style issue caught by checkpatch.pl related to function name in debug print Signed-off-by: Gaurav Pathak --- drivers/staging/rts5208/ms.c| 5 +++-- drivers/staging/rts5208/rtsx.c | 4 ++-- drivers/staging/rts5208/rtsx_chip.c | 4 ++-- drivers/staging/

Re: [PATCH v4 00/27] Thunderbolt security levels and NVM firmware upgrade

2017-07-20 Thread Christian Kellner
Hi! > This is fourth version of the patch series adding support for Thunderbolt > security levels and NVM firmware upgrade. While prototyping the user-space bits for GNOME, I stumbled upon an oops on the Lenovo T470s (see below) when attaching a Dell TB16 thunderbolt 3 dock. As a result /sys/bus/

Re: [PATCH] documentation: Fix two-CPU control-dependency example

2017-07-20 Thread Paul E. McKenney
On Thu, Jul 20, 2017 at 09:55:31PM +0900, Akira Yokosawa wrote: > On 2017/07/20 14:47, Paul E. McKenney wrote: > > On Thu, Jul 20, 2017 at 09:31:41AM +0800, Boqun Feng wrote: > >> On Wed, Jul 19, 2017 at 02:56:02PM -0700, Paul E. McKenney wrote: > >>> On Thu, Jul 20, 2017 at 06:33:26AM +0900, Akira

Re: [PATCH v4 2/2] thermal: uniphier: add UniPhier thermal driver

2017-07-20 Thread Masahiro Yamada
2017-07-07 10:54 GMT+09:00 Kunihiko Hayashi : > Add a thermal driver for on-chip PVT (Process, Voltage and Temperature) > monitoring unit implemented on UniPhier SoCs. This driver supports > temperature monitoring and alert function. > > Signed-off-by: Kunihiko Hayashi Sparse reports several war

Re: [PATCH] net: ethernet: ti: cpsw: Push the request_irq function to the end of probe

2017-07-20 Thread Grygorii Strashko
On 07/20/2017 06:29 AM, Keerthy wrote: > Push the request_irq function to the end of probe so as > to ensure all the required fields are populated in the event > of an ISR getting executed right after requesting the irq. > > Currently while loading the crash kernel a crash was seen as > soon as

[PATCH] drm: Improve kerneldoc for drm_modeset_lock

2017-07-20 Thread Liviu Dudau
Explain better when the drm_modeset_acquire_ctx parameter can be skipped for drm_modeset_lock() call. Signed-off-by: Liviu Dudau Cc: Daniel Vetter --- drivers/gpu/drm/drm_modeset_lock.c | 12 ++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/drm_modeset

Re: [PATCH 02/12] ARM: ep93xx: use ARM_PATCH_PHYS_VIRT

2017-07-20 Thread Alexander Sverdlin
On Thu Jul 20 17:49:27 2017 Arnd Bergmann wrote: > Just like ARCH_MULTIPLATFORM, we want to use ARM_PATCH_PHYS_VIRT > when possible, but that fails for NOMMU or XIP_KERNEL configurations. > Using 'imply' instead of 'select' gets this right and only uses > the symbol when we don't have to hardcode

[PATCH v3] drm/i2c: tda998x: Fix lockdep warning about possible circular dependency

2017-07-20 Thread Liviu Dudau
When enabling lockdep debugging on Juno platform with HDLCD and TDA998x I get the following warning from the system: [ 25.990733] == [ 25.998637] WARNING: possible circular locking dependency detected [ 26.006531] 4.13.0-rc1-00284-g28c0a682

Re: [RFC PATCH v1 00/11] Create fast idle path for short idle periods

2017-07-20 Thread Paul E. McKenney
On Thu, Jul 20, 2017 at 04:19:40PM +0200, Peter Zijlstra wrote: > On Thu, Jul 20, 2017 at 05:50:54AM -0700, Paul E. McKenney wrote: > > > > > > static void cpuidle_idle_call() > > > { > > > rcu_idle_enter() > > > .. > > > rcu_idle_exit() > > > } > > > > > > I want > > > > > > static vo

[PATCH 2/2] platform/x86: alienware-wmi: fix format string overflow warning

2017-07-20 Thread Arnd Bergmann
gcc points out a possible format string overflow for a large value of 'zone': drivers/platform/x86/alienware-wmi.c: In function 'alienware_wmi_init': drivers/platform/x86/alienware-wmi.c:461:24: error: '%02X' directive writing between 2 and 8 bytes into a region of size 6 [-Werror=format-overflow

[PATCH 1/2] platform/x86: peaq-wmi: select INPUT_POLLDEV

2017-07-20 Thread Arnd Bergmann
The new driver fails to build without INPUT_POLLDEV drivers/platform/x86/peaq-wmi.o: In function `peaq_wmi_exit': peaq-wmi.c:(.exit.text+0x1c): undefined reference to `input_unregister_polled_device' drivers/platform/x86/peaq-wmi.o: In function `peaq_wmi_init': peaq-wmi.c:(.init.text+0x23): undef

Re: [PATCH 1/4] can: dev: Add support for limiting configured bitrate

2017-07-20 Thread Franklin S Cooper Jr
On 07/20/2017 04:52 AM, Sergei Shtylyov wrote: > Hello! > > On 7/20/2017 2:36 AM, Franklin S Cooper Jr wrote: > >> Various CAN or CAN-FD IP may be able to run at a faster rate than >> what the transceiver the CAN node is connected to. This can lead to >> unexpected errors. However, CAN transcei

Re: [PATCH v3 1/5] mm: add vm_insert_mixed_mkwrite()

2017-07-20 Thread Ross Zwisler
On Thu, Jul 20, 2017 at 11:26:16AM -0400, Vivek Goyal wrote: > On Wed, Jun 28, 2017 at 04:01:48PM -0600, Ross Zwisler wrote: > > To be able to use the common 4k zero page in DAX we need to have our PTE > > fault path look more like our PMD fault path where a PTE entry can be > > marked as dirty and

Re: [PATCH v2 6/7] x86: therm_throt: constify attribute_group structures.

2017-07-20 Thread Borislav Petkov
On Thu, Jul 20, 2017 at 05:00:37PM +0530, Arvind Yadav wrote: > attribute_group are not supposed to change at runtime. All functions > working with attribute_group provided by work with > const attribute_group. So mark the non-const structs as const. > > Signed-off-by: Arvind Yadav > --- > chang

Test of [PATCH 1/1] staging: pi433: fix problem with division in rf69_set_deviation

2017-07-20 Thread Marcus Wolf
Hi! Since I don't have an environment for m68k and I would appreciate not having to set it up, I would be very happy, if someone could give the patch, named in the subjext, a try on ARCH=m68k... Thanks, Marcus > Geert Uytterhoeven hat am 20. Juli 2017 um 14:27 > geschrieben: > > > Hi Dan, >

[PATCH 1/1] staging: pi433: fix problem with division in rf69_set_deviation

2017-07-20 Thread Marcus Wolf
Fixes problem with division in rf69_set_deviation Fixes: 874bcba65f9a ("staging: pi433: New driver") Signed-off-by: Marcus Wolf diff --git a/drivers/staging/pi433/rf69.c b/drivers/staging/pi433/rf69.c --- a/drivers/staging/pi433/rf69.c +++ b/drivers/staging/pi433/rf69.c @@ -221,7 +221,7 @@ int r

Re: [PATCH 1/4] can: dev: Add support for limiting configured bitrate

2017-07-20 Thread Franklin S Cooper Jr
Hi Oliver On 07/20/2017 02:43 AM, Oliver Hartkopp wrote: > Hi Franklin, > > On 07/20/2017 01:36 AM, Franklin S Cooper Jr wrote: > >> +#ifdef CONFIG_OF >> +void of_transceiver_is_fixed(struct net_device *dev) >> +{ > > (..) > >> +} >> +EXPORT_SYMBOL(of_transceiver_is_fixed); >> +#endif > > I'm

[PATCH 12/12] ARM: rpc: rename RAM_SIZE macro

2017-07-20 Thread Arnd Bergmann
The RAM_SIZE macro in mach/hardware.h conflicts with macros of the same name in multiple drivers, leading to annoying build warnings: In file included from drivers/net/ethernet/cirrus/cs89x0.c:79:0: drivers/net/ethernet/cirrus/cs89x0.h:324:0: error: "RAM_SIZE" redefined [-Werror] #define RAM_SIZ

[PATCH 10/12] [v2] ARM: s3c24xx: make H1940BT depend on RFKILL

2017-07-20 Thread Arnd Bergmann
Bluetooth is only supported when network support is part of the kernel, so it is a bit pointless to build the hi1940-bt support without networking. If we try anyway, we get a Kconfig warning: warning: (TOSA_BT && H1940BT) selects RFKILL which has unmet direct dependencies (NET) This turns the 's

[PATCH 11/12] ARM: omap1/ams-delta: warn about failed regulator enable

2017-07-20 Thread Arnd Bergmann
The modem pm handler in the ams-delta board uses regulator_enable() but does not check for a successful return code: board-ams-delta.c:521:3: error: ignoring return value of 'regulator_enable', declared with attribute warn_unused_result [-Werror=unused-result] It is not easy to propagate that re

[PATCH 08/12] ARM: sirf: mark sirfsoc_init_late as __maybe_unused

2017-07-20 Thread Arnd Bergmann
sirfsoc_init_late is called by each of the three individual SoC definitions, but in a randconfig build, we can encounter a situation where they are all disabled: arch/arm/mach-prima2/common.c:18:123: warning: 'sirfsoc_init_late' defined but not used [-Wunused-function] While that is not a useful

[PATCH 07/12] ARM: omap1: avoid unused variable warning

2017-07-20 Thread Arnd Bergmann
The osk_mistral_init() contains code that is only compiled when CONFIG_PM is set, but it uses a variable that is declared outside of the #ifdef: arch/arm/mach-omap1/board-osk.c: In function 'osk_mistral_init': arch/arm/mach-omap1/board-osk.c:513:7: warning: unused variable 'ret' [-Wunused-variabl

[PATCH 09/12] ARM: ixp4xx: use normal prototype for {read,write}s{b,w,l}

2017-07-20 Thread Arnd Bergmann
ixp4xx defines the arguments to its __indirect_writesb() and other functions as pointers to fixed-size data. This is not necessarily wrong, and it works most of the time, but it causes warnings in at least one driver: drivers/net/ethernet/smsc/smc91x.c: In function 'smc_rcv': drivers/net/ethernet/

[PATCH 06/12] ARM: omap2: mark unused functions as __maybe_unused

2017-07-20 Thread Arnd Bergmann
The omap_generic_init() and omap_hwmod_init_postsetup() functions are used in the initialization for all OMAP2+ SoC types, but in the extreme case that those are all disabled, we get a warning about unused code: arch/arm/mach-omap2/io.c:412:123: error: 'omap_hwmod_init_postsetup' defined but not

[PATCH 05/12] ARM: mmp: mark usb_dma_mask as __maybe_unused

2017-07-20 Thread Arnd Bergmann
This variable may be used by some devices that each have their on Kconfig symbol, or by none of them, and that causes a build warning: arch/arm/mach-mmp/devices.c:241:12: error: 'usb_dma_mask' defined but not used [-Werror=unused-variable] Marking it __maybe_unused avoids the warning. Signed-of

[PATCH 04/12] ARM: sa1100/pxa: fix MTD_XIP build

2017-07-20 Thread Arnd Bergmann
In commit 3169663ac5902 "ARM: sa11x0/pxa: convert OS timer registers to IOMEM", the definition of the OSCR macro was changed to be an __iomem pointer, but the same register is also used by the XIP code. This patch does the corresponding change here as well. On PXA, the IRQ register definitions wer

Re: [PATCH v2 3/3] nvme: wwid_show: strip trailing 0-bytes

2017-07-20 Thread Joe Perches
On Thu, 2017-07-20 at 17:27 +0200, Martin Wilck wrote: > Some broken targets (such as the current Linux target) pad > model or serial fields with 0-bytes rather than spaces. The > NVME spec disallows 0 bytes in "ASCII" fields. > Thus strip trailing 0-bytes, too. > > Signed-off-by: Martin Wilck >

[PATCH 03/12] ARM: normalize clk API for older platforms

2017-07-20 Thread Arnd Bergmann
Six ARM platforms still provide their own variant of the clk API rather than using the generic COMMON_CLK API. This generally works, but it causes some link errors with drivers using the clk_set_rate, clk_get_parent, clk_set_parent or clk_round_rate functions when a platform lacks those interfaces.

Re: [lkp-robot] [include/linux/string.h] 6974f0c455: kernel_BUG_at_lib/string.c

2017-07-20 Thread Masami Hiramatsu
On Wed, 19 Jul 2017 21:04:25 -0700 Linus Torvalds wrote: > Hmm. I wonder why the kernel test robot ends up having that annoying > line doubling for the dmesg. > > On Wed, Jul 19, 2017 at 6:42 PM, kernel test robot > wrote: > > > > FYI, we noticed the following commit: > > > > commit: 6974f0c455

[RCF PATCH] genirq/debugfs: Triggering of interrupts from userspace

2017-07-20 Thread Marc Zyngier
When developing new (and therefore buggy) interrupt related code, it can sometimes be useful to inject interrupts without having to rely on a device to actually generate them. This functionnality relies on the irqchip driver to expose a irq_set_irqchip_state(IRQCHIP_STATE_PENDING) callback. To us

RE: [PATCH 1/4] ACPI: Allow _DMA method in walk resources

2017-07-20 Thread Moore, Robert
Could you post this as a pull request on our github? https://github.com/acpica/acpica > -Original Message- > From: Moore, Robert > Sent: Thursday, July 20, 2017 8:49 AM > To: 'Lorenzo Pieralisi' ; linux- > a...@vger.kernel.org > Cc: linux-arm-ker...@lists.infradead.org; linux-kernel@vger.

Re: [PATCH v2 4/7] driver core: add devm_device_add_group() and friends

2017-07-20 Thread Dmitry Torokhov
On July 20, 2017 1:20:09 AM PDT, Greg Kroah-Hartman wrote: >On Thu, Jul 20, 2017 at 01:12:56AM -0700, Dmitry Torokhov wrote: >> On July 19, 2017 10:10:18 PM PDT, Greg Kroah-Hartman > wrote: >> >On Wed, Jul 19, 2017 at 05:24:33PM -0700, Dmitry Torokhov wrote: >> >> Many drivers create additional d

[PATCH 02/12] ARM: ep93xx: use ARM_PATCH_PHYS_VIRT

2017-07-20 Thread Arnd Bergmann
Just like ARCH_MULTIPLATFORM, we want to use ARM_PATCH_PHYS_VIRT when possible, but that fails for NOMMU or XIP_KERNEL configurations. Using 'imply' instead of 'select' gets this right and only uses the symbol when we don't have to hardcode the address anyway. Signed-off-by: Arnd Bergmann --- ar

Re: [PATCH] livepatch: add (un)patch hooks

2017-07-20 Thread Petr Mladek
On Wed 2017-07-19 23:17:23, Josh Poimboeuf wrote: > On Wed, Jul 19, 2017 at 03:49:52PM -0500, Josh Poimboeuf wrote: > > > I am sorry for the long mail. But I have really troubles to > > > understand and describe what can be done with these hooks > > > a safe way. > > > > > > It might help if you s

Re: [PATCH] [media] dvb_frontend: ensure that front end status is initialized

2017-07-20 Thread Shuah Khan
Hi Colin, On 07/20/2017 09:29 AM, Colin King wrote: > From: Colin Ian King > > The fe_status variable s is not initialized meaning it can have any > random garbage status. This could be problematic if fe->ops.tune is > false as s is not updated by the call to fe->ops.tune() and a > subsequent c

Re: [PATCH v2 1/2] livepatch: introduce shadow variable API

2017-07-20 Thread Joe Lawrence
On 07/20/2017 10:45 AM, Miroslav Benes wrote: > > + * > + * Note: allocates @new_size space for shadow variable data and copies > + * @new_size bytes from @new_data into the shadow varaible's own > @new_data > + * space. If @new_data is NULL, @new_size is still allocated, but

RE: [PATCH 1/4] ACPI: Allow _DMA method in walk resources

2017-07-20 Thread Moore, Robert
I think we can take this as-is into ACPICA. Bob > -Original Message- > From: Lorenzo Pieralisi [mailto:lorenzo.pieral...@arm.com] > Sent: Thursday, July 20, 2017 7:45 AM > To: linux-a...@vger.kernel.org > Cc: linux-arm-ker...@lists.infradead.org; linux-kernel@vger.kernel.org; > Lorenzo Pi

[PATCH 01/12] ARM: ixp4xx: fix ioport_unmap definition

2017-07-20 Thread Arnd Bergmann
An empty macro definition can cause unexpected behavior, in case of the ixp4xx ioport_unmap, we get two warnings: drivers/net/wireless/marvell/libertas/if_cs.c: In function 'if_cs_release': drivers/net/wireless/marvell/libertas/if_cs.c:826:3: error: suggest braces around empty body in an 'if' sta

Re: [PATCH 1/4] fs/dcache: Limit numbers of negative dentries

2017-07-20 Thread Waiman Long
On 07/20/2017 11:08 AM, Miklos Szeredi wrote: > On Thu, Jul 20, 2017 at 4:21 PM, Waiman Long wrote: >> On 07/20/2017 03:20 AM, Miklos Szeredi wrote: >>> On Wed, Jul 19, 2017 at 10:42 PM, Waiman Long wrote: >> @@ -603,7 +698,13 @@ static struct dentry *dentry_kill(struct dentry >> *dentry

Re: [Patch v5 12/12] Documention: v4l: Documentation for HEVC CIDs

2017-07-20 Thread Stanimir Varbanov
Hi, >>> + >>> +* - ``V4L2_MPEG_VIDEO_HEVC_PROFILE_MAIN`` >>> + - Main profile. >> >> MAIN10? >> > No just MAIN. I haven't because the MFC does not supported it? If so, I think we have to add MAIN10 for completeness and because other drivers could have support for it. -- regards, Stan

Re: [PATCH v4 1/5] powerpc: io.h: move iomap.h include so that it can use readq/writeq defs

2017-07-20 Thread Logan Gunthorpe
On 20/07/17 06:36 AM, Horia Geantă wrote: > include/asm-generic/iomap.h is included before > include/linux/io-64-nonatomic-lo-hi.h: > > include/linux/io.h -> arch/powerpc/include/asm/io.h -> > include/asm-generic/iomap.h > > Thus, the "extern" version of ioread64_lo_hi and friends will be used

Re: [PATCH] Revert "x86/uaccess: Add stack frame output operand in get_user() inline asm"

2017-07-20 Thread Andrey Ryabinin
2017-07-20 18:18 GMT+03:00 Josh Poimboeuf : > On Thu, Jul 20, 2017 at 01:01:39PM +0300, Andrey Ryabinin wrote: >> 2017-07-19 20:46 GMT+03:00 Josh Poimboeuf : >> >> > >> > After doing some testing, I don't think this approach is going to work >> > after all. In addition to forcing the stack frame,

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