Re: [PATCH v2] loop: drop caches if offset or block_size are changed

2018-12-18 Thread Jens Axboe
On 12/17/18 12:42 PM, Jaegeuk Kim wrote: > If we don't drop caches used in old offset or block_size, we can get old data > from new offset/block_size, which gives unexpected data to user. > > For example, Martijn found a loopback bug in the below scenario. > 1) LOOP_SET_FD loads first two pages on

Re: [PATCH v2] dt-bindings: serial: sh-sci: Document r8a774c0 bindings

2018-12-18 Thread Rob Herring
On Tue, 18 Dec 2018 12:03:10 +, Fabrizio Castro wrote: > RZ/G2E (R8A774C0) SoC also has the R-Car Gen3 compatible SCIF and > HSCIF ports, so document the SoC specific bindings. > > Signed-off-by: Fabrizio Castro > Reviewed-by: Geert Uytterhoeven > Reviewed-by: Simon Horman > --- > v1->v2: >

[PATCH] ALSA: emu10k1: Fix potential Spectre v1 vulnerabilities

2018-12-18 Thread Gustavo A. R. Silva
ipcm->substream is indirectly controlled by user-space, hence leading to a potential exploitation of the Spectre variant 1 vulnerability. This issue was detected with the help of Smatch: sound/pci/emu10k1/emufx.c:1031 snd_emu10k1_ipcm_poke() warn: potential spectre issue 'emu->fx8010.pcm' [r] (l

Re: [GIT PULL] SCSI fixes for 4.20-rc7

2018-12-18 Thread pr-tracker-bot
The pull request you sent on Tue, 18 Dec 2018 07:57:14 -0800: > git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi.git scsi-fixes has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/ddfbab46539f2d37a9e9d357b054486b51f7dc27 Thank you! -- Deet-doot-dot, I am a bot. ht

Re: [PATCH 6/6] psi: introduce psi monitor

2018-12-18 Thread Suren Baghdasaryan
Current design supports only whole percentages and if userspace needs more granularity then it has to use usecs. I agree that usecs cover % usecase and "threshold * win / 100" is simple enough for userspace to calculate. I'm fine with changing to usecs only. On Tue, Dec 18, 2018 at 9:30 AM Johanne

[PATCH v9 0/4] Media Device Allocator API

2018-12-18 Thread shuah
From: Shuah Khan Media Device Allocator API to allows multiple drivers share a media device. This API solves a very common use-case for media devices where one physical device (an USB stick) provides both audio and video. When such media device exposes a standard USB Audio class, a proprietary Vi

[PATCH v9 4/4] sound/usb: Use Media Controller API to share media resources

2018-12-18 Thread shuah
From: Shuah Khan Media Device Allocator API to allows multiple drivers share a media device. This API solves a very common use-case for media devices where one physical device (an USB stick) provides both audio and video. When such media device exposes a standard USB Audio class, a proprietary Vi

Re: [RFC][PATCH 0/3] arm64 relaxed ABI

2018-12-18 Thread Catalin Marinas
On Tue, Dec 18, 2018 at 04:03:38PM +0100, Andrey Konovalov wrote: > On Wed, Dec 12, 2018 at 4:02 PM Catalin Marinas > wrote: > > The summary of our internal discussions (mostly between kernel > > developers) is that we can't properly describe a user ABI that covers > > future syscalls or syscall

[PATCH v9 3/4] media: media.h: Enable ALSA MEDIA_INTF_T* interface types

2018-12-18 Thread shuah
From: Shuah Khan Move PCM_CAPTURE, PCM_PLAYBACK, and CONTROL ALSA MEDIA_INTF_T* interface types back into __KERNEL__ scope to get ready for adding ALSA support for these to the media controller. Signed-off-by: Shuah Khan --- include/uapi/linux/media.h | 25 +++-- 1 file cha

[PATCH v9 2/4] media: change au0828 to use Media Device Allocator API

2018-12-18 Thread shuah
From: Shuah Khan Media Device Allocator API to allows multiple drivers share a media device. This API solves a very common use-case for media devices where one physical device (an USB stick) provides both audio and video. When such media device exposes a standard USB Audio class, a proprietary Vi

[PATCH v9 1/4] media: Media Device Allocator API

2018-12-18 Thread shuah
From: Shuah Khan Media Device Allocator API to allows multiple drivers share a media device. This API solves a very common use-case for media devices where one physical device (an USB stick) provides both audio and video. When such media device exposes a standard USB Audio class, a proprietary Vi

Re: [PATCH v5 2/8] lib/test_bitmap.c: Add for_each_set_clump8 test cases

2018-12-18 Thread kbuild test robot
Hi William, I love your patch! Yet something to improve: [auto build test ERROR on gpio/for-next] [also build test ERROR on v4.20-rc7 next-20181218] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux

Re: [RFC v3 2/3] dt-bindings: sdm845-pinctrl: add wakeup interrupt parent for GPIO

2018-12-18 Thread Lina Iyer
On Mon, Dec 03 2018 at 16:48 -0700, Stephen Boyd wrote: Quoting Lina Iyer (2018-11-30 10:33:17) On Thu, Nov 29 2018 at 14:45 -0700, Lina Iyer wrote: >On Wed, Nov 28 2018 at 17:25 -0700, Bjorn Andersson wrote: >>On Wed 28 Nov 09:39 PST 2018, Lina Iyer wrote: >> >>>On Tue, Nov 27 2018 at 14:45 -07

[PATCH] arm64: dts: qcom: msm8998-mtp: Increase load on l21 for sdcard

2018-12-18 Thread Jeffrey Hugo
l21 is used as sdcard vmmc, and needs the load increased to prevent voltage drop issues with some sdcards. This addresses -84 errors seen during sdcard init with SDR104 cards. Signed-off-by: Jeffrey Hugo --- arch/arm64/boot/dts/qcom/msm8998-mtp.dtsi | 2 ++ 1 file changed, 2 insertions(+) diff

Re: [PATCH v4 2/2] trace nvme submit queue status

2018-12-18 Thread Keith Busch
On Tue, Dec 18, 2018 at 06:47:50PM +0100, h...@lst.de wrote: > On Tue, Dec 18, 2018 at 10:26:46AM -0700, Keith Busch wrote: > > No need for a space after the %s. __print_disk_name already appends a > > space if there's a disk name, and we don't want the extra space if there > > isn't one. Also, eve

Re: [PATCH V2 00/10] unify the interface of the proportional-share policy in blkio/io

2018-12-18 Thread Paolo Valente
> Il giorno 18 dic 2018, alle ore 18:22, Paolo Valente > ha scritto: > > > >> Il giorno 18 dic 2018, alle ore 17:41, Tejun Heo ha >> scritto: >> >> Hello, Paolo. >> >> On Tue, Dec 18, 2018 at 08:48:10AM +0100, Paolo Valente wrote: >>> If Tejun cannot see any solution to his concern, the

Re: [PATCH v3 3/3] PCI: imx6: Add support for i.MX8MQ

2018-12-18 Thread Leonard Crestez
On 12/18/2018 5:15 PM, Rob Herring wrote: > On Mon, Dec 17, 2018 at 08:07:02PM -0800, Andrey Smirnov wrote: >> Add code needed to support i.MX8MQ variant. >> >> Signed-off-by: Andrey Smirnov >> Reviewed-by: Lucas Stach >> --- a/Documentation/devicetree/bindings/pci/fsl,imx6q-pcie.txt >> +++ b/Do

Re: [PATCH v1 03/13] powerpc/mm/32s: rework mmu_mapin_ram()

2018-12-18 Thread Christophe Leroy
Le 18/12/2018 à 18:04, Jonathan Neuschäfer a écrit : On Tue, Dec 18, 2018 at 04:04:42PM +0100, Christophe Leroy wrote: Stupid of me. In fact at the time being, BATS cover both RO and RW data areas, so it can definitly not be mapped with PAGE_KERNEL_ROX. In fact, as I have CONFIG_BDI_SWITCH in m

Re: [PATCH v3 3/3] PCI: imx6: Add support for i.MX8MQ

2018-12-18 Thread Andrey Smirnov
On Tue, Dec 18, 2018 at 1:34 AM Leonard Crestez wrote: > > On Mon, 2018-12-17 at 20:07 -0800, Andrey Smirnov wrote: > > Add code needed to support i.MX8MQ variant. > > > static void imx6_pcie_init_phy(struct imx6_pcie *imx6_pcie) > > { > > + > > + > Remove empty lines? > Sure, will do. > > +

Re: [PATCH net] net: phy: Fix the issue that netif always links up after resuming

2018-12-18 Thread Heiner Kallweit
On 18.12.2018 08:57, Kunihiko Hayashi wrote: > Even though the link is down before entering hibernation, > there is an issue that the network interface always links up after resuming > from hibernation. > > If the link is still down before enabling the network interface, > and after resuming from

[PATCH v1] clk: qcom: gcc: Use active only source for CPUSS clocks

2018-12-18 Thread Taniya Das
The clocks of the CPUSS such as "gcc_cpuss_ahb_clk_src" is a CRITICAL clock and needs to vote on the active only source of XO, so as to keep the vote as long as CPUSS is active. Similar rbcpr_clk_src is also has the same requirement. Signed-off-by: Taniya Das --- drivers/clk/qcom/gcc-sdm845.c |

Re: [RESEND PATCH v5 4/6] coresight: Use PMU driver configuration for sink selection

2018-12-18 Thread Mathieu Poirier
Hi Alex, On Tue, 18 Dec 2018 at 08:21, Alexander Shishkin wrote: > > Suzuki K Poulose writes: > > >> +/* > >> + * The HW mapping of a component is unique. If the value we've been > >> + * given matches the component's start address, then we must have > >> found > >> + * the dev

Re: A weird problem of Realtek r8168 after resume from S3

2018-12-18 Thread Heiner Kallweit
On 18.12.2018 14:25, Chris Chiu wrote: > On Tue, Dec 18, 2018 at 3:08 AM Heiner Kallweit wrote: >> >> On 17.12.2018 14:25, Chris Chiu wrote: >>> On Fri, Dec 14, 2018 at 3:37 PM Heiner Kallweit >>> wrote: On 14.12.2018 04:33, Chris Chiu wrote: > On Thu, Dec 13, 2018 at 10:20 AM Chri

[PATCH] x86/mce: Restore MCE injector's module name

2018-12-18 Thread Borislav Petkov
Aaand one more fix ontop... Yeah, renames are nasty. :-\ --- From: Borislav Petkov It was mce-inject.ko but it turned into inject.ko since the containing source file got renamed. Restore it. Cc: Tony Luck Signed-off-by: Borislav Petkov --- arch/x86/kernel/cpu/mce/Makefile | 4 +++- 1 file ch

Re: [PATCH v3 0/9] Regenerate arm64 defconfig for current kernel

2018-12-18 Thread Olof Johansson
On Tue, Dec 18, 2018 at 7:28 AM Arnd Bergmann wrote: > > On Fri, Dec 14, 2018 at 4:44 PM Marc Gonzalez wrote: > > > > On 13/12/2018 07:51, Olof Johansson wrote: > > > > > I've applied the patches from the series that were still needed. When > > > re-running savedefconfig as part of patch 1, sever

Re: [Xen-devel][PATCH v2 2/3] drm/xen-front: Use Xen common shared buffer implementation

2018-12-18 Thread Boris Ostrovsky
On 12/18/18 11:15 AM, Noralf Trønnes wrote: > > Den 30.11.2018 08.42, skrev Oleksandr Andrushchenko: >> From: Oleksandr Andrushchenko >> >> Use page directory based shared buffer implementation >> now available as common code for Xen frontend drivers. >> >> Remove flushing of shared buffer on page

[PATCH v2 13/17] staging: rtl8188eu: change order of declarations to improve readability

2018-12-18 Thread Michael Straube
Change the order of array declarations in rtw_mlme_ext.c to improve readability. Signed-off-by: Michael Straube --- drivers/staging/rtl8188eu/core/rtw_mlme_ext.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/rtl8188eu/core/rtw_mlme_ext.c b/drivers/staging/r

[PATCH v2 02/17] staging: rtl8188eu: replace tabs with spaces in rtw_mlme_ext.c

2018-12-18 Thread Michael Straube
Replace tabs with spaces where appropriate. Signed-off-by: Michael Straube --- drivers/staging/rtl8188eu/core/rtw_mlme_ext.c | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/staging/rtl8188eu/core/rtw_mlme_ext.c b/drivers/staging/rtl8188eu/core/rtw_mlme_e

[PATCH v2 17/17] staging: rtl8188eu: cleanup brace coding style issues

2018-12-18 Thread Michael Straube
Cleanup brace coding style issues reported by checkpatch. ERROR: space required before the open brace '{' WARNING: braces {} are not necessary for single statement blocks CHECK: Unbalanced braces around else statement Signed-off-by: Michael Straube --- drivers/staging/rtl8188eu/core/rtw_cmd.c

[PATCH v2 08/17] staging: rtl8188eu: remove unused arrays WFD_OUI and WMM_INFO_OUI

2018-12-18 Thread Michael Straube
The arrays WFD_OUI and WMM_INFO_OUI are not used anywhere, so remove them. Signed-off-by: Michael Straube --- drivers/staging/rtl8188eu/core/rtw_mlme_ext.c| 2 -- drivers/staging/rtl8188eu/include/rtw_mlme_ext.h | 2 -- 2 files changed, 4 deletions(-) diff --git a/drivers/staging/rtl8188eu/

[PATCH v2 16/17] staging: rtl8188eu: add spaces around '&' in rtw_mlme_ext.c

2018-12-18 Thread Michael Straube
Add spaces around '&' to follow kernel coding style. Reported by checkpatch. Signed-off-by: Michael Straube --- drivers/staging/rtl8188eu/core/rtw_mlme_ext.c | 90 +-- 1 file changed, 45 insertions(+), 45 deletions(-) diff --git a/drivers/staging/rtl8188eu/core/rtw_mlme_ext.c b

[PATCH v2 15/17] staging: rtl8188eu: change return type of is_basicrate() to bool

2018-12-18 Thread Michael Straube
The function is_basicrate() returns true or false, so change the return type from int to bool. Signed-off-by: Michael Straube --- drivers/staging/rtl8188eu/core/rtw_wlan_util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/rtl8188eu/core/rtw_wlan_util.c b/d

[PATCH v2 12/17] staging: rtl8188eu: make some arrays static in rtw_mlme_ext.c

2018-12-18 Thread Michael Straube
Make some arrays that are only used in rtw_mlme_ext.c static and remove the corresponding extern declarations from rtw_mlme_ext.h. Signed-off-by: Michael Straube --- drivers/staging/rtl8188eu/core/rtw_mlme_ext.c| 6 +++--- drivers/staging/rtl8188eu/include/rtw_mlme_ext.h | 5 - 2 files c

[PATCH v2 07/17] staging: rtl8188eu: remove unnecessary parentheses in rtw_mlme_ext.c

2018-12-18 Thread Michael Straube
Remove unnecessary parentheses, most of them reported by checkpatch. Signed-off-by: Michael Straube --- drivers/staging/rtl8188eu/core/rtw_mlme_ext.c | 322 +- 1 file changed, 161 insertions(+), 161 deletions(-) diff --git a/drivers/staging/rtl8188eu/core/rtw_mlme_ext.c b/drive

[PATCH v2 14/17] staging: rtl8188eu: simplify null array initializations

2018-12-18 Thread Michael Straube
Simplfy initialization of null arrays to improve readability and save some lines. Signed-off-by: Michael Straube --- drivers/staging/rtl8188eu/core/rtw_mlme_ext.c | 4 ++-- drivers/staging/rtl8188eu/core/rtw_xmit.c | 6 ++ 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/dr

[PATCH v2 10/17] staging: rtl8188eu: convert unsigned char arrays to u8

2018-12-18 Thread Michael Straube
Change the type of some arrays from unsigned char to u8. Signed-off-by: Michael Straube --- drivers/staging/rtl8188eu/core/rtw_mlme_ext.c | 16 +++--- .../staging/rtl8188eu/core/rtw_wlan_util.c| 22 +-- drivers/staging/rtl8188eu/include/rtw_mlme.h | 6 ++--- .../sta

[PATCH v2 06/17] staging: rtl8188eu: remove unnecessary comments in rtw_mlme_ext.c

2018-12-18 Thread Michael Straube
Remove comments from 'endif's where the corresponding 'if' is just a few lines above to improve readability. Signed-off-by: Michael Straube --- drivers/staging/rtl8188eu/core/rtw_mlme_ext.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/staging/rtl8188eu/core

[PATCH v2 05/17] staging: rtl8188eu: add blank line after declarations

2018-12-18 Thread Michael Straube
Add a missing blank line after declarations in rtw_mlme_ext.c. Signed-off-by: Michael Straube --- drivers/staging/rtl8188eu/core/rtw_mlme_ext.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/staging/rtl8188eu/core/rtw_mlme_ext.c b/drivers/staging/rtl8188eu/core/rtw_mlme_ext.c index

[PATCH v2 03/17] staging: rtl8188eu: remove commented declarations in rtw_mlme_ext.c

2018-12-18 Thread Michael Straube
Remove unused/commented declarations. Signed-off-by: Michael Straube --- drivers/staging/rtl8188eu/core/rtw_mlme_ext.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/staging/rtl8188eu/core/rtw_mlme_ext.c b/drivers/staging/rtl8188eu/core/rtw_mlme_ext.c index 8c566180d808..f2eb6363

[PATCH v2 01/17] staging: rtl8188eu: cleanup declarations in rtw_mlme_ext.c

2018-12-18 Thread Michael Straube
Replace tabs with spaces and/or remove spaces in declarations. Signed-off-by: Michael Straube --- v1 -> v2 one logical thing per patch replace some more tabs with spaces remove some more comments drivers/staging/rtl8188eu/core/rtw_mlme_ext.c | 482 +- 1 file changed, 241 inserti

[PATCH v2 04/17] staging: rtl8188eu: remove blank lines between declarations

2018-12-18 Thread Michael Straube
Remove blank lines between declarations in rtw_mlme_ext.c. Signed-off-by: Michael Straube --- drivers/staging/rtl8188eu/core/rtw_mlme_ext.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/staging/rtl8188eu/core/rtw_mlme_ext.c b/drivers/staging/rtl8188eu/core/rtw_mlme_ext.c index f2

[PATCH v2 11/17] staging: rtl8188eu: constify some arrays

2018-12-18 Thread Michael Straube
The values of these arrays in rtw_mlme_ext.c and rtw_wlan_util.c are never changed, so make them const. Signed-off-by: Michael Straube --- drivers/staging/rtl8188eu/core/rtw_mlme_ext.c | 14 +- .../staging/rtl8188eu/core/rtw_wlan_util.c| 26 +-- drivers/staging/rtl818

[PATCH v2 09/17] staging: rtl8188eu: remove redundant declaration in rtw_mlme_ext.c

2018-12-18 Thread Michael Straube
The array REALTEK_96B_IE is already declared in rtw_mlme.h, so remove the declaration in rtw_mlme_ext.c. Signed-off-by: Michael Straube --- drivers/staging/rtl8188eu/core/rtw_mlme_ext.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/staging/rtl8188eu/core/rtw_mlme_ext.c b/drivers/

[PATCH v2] ima: define ima_post_create_tmpfile() hook and add missing call

2018-12-18 Thread Mimi Zohar
If tmpfiles can be made persistent, then newly created tmpfiles need to be treated like any other new files in policy. This patch indicates which newly created tmpfiles are in policy, causing the file hash to be calculated on __fput(). Reported-by: Ignaz Forster Signed-off-by: Mimi Zohar --- Ch

Re: [Xen-devel][PATCH v2 2/3] drm/xen-front: Use Xen common shared buffer implementation

2018-12-18 Thread Oleksandr Andrushchenko
On 12/18/18 20:31, Boris Ostrovsky wrote: On 12/18/18 11:15 AM, Noralf Trønnes wrote: Den 30.11.2018 08.42, skrev Oleksandr Andrushchenko: From: Oleksandr Andrushchenko Use page directory based shared buffer implementation now available as common code for Xen frontend drivers. Remove flush

Re: [PATCH v5 5/6] net: maclorawan: Implement maclorawan class module

2018-12-18 Thread Andreas Färber
Am 18.12.18 um 15:27 schrieb Jian-Hong Pan: >> Sun, Dec 16, 2018 at 11:18:59AM CET, starni...@g.ncu.edu.tw wrote: >>> LoRaWAN defined by LoRa Alliance(TM) is the MAC layer over LoRa devices. >>> >>> This patch implements part of Class A end-devices SoftMAC defined in >>> LoRaWAN(TM) Specification V

Re: The linux devs can rescind their license grant. - Analysis published?

2018-12-18 Thread visionsofalice
Has the analysis been published yet? I have been away on an artistic sabbatical, but I don't see it in the inbox using searches, this was the last mail I received on the subject. On 2018-10-26 18:31, Eben Moglen wrote: On Friday, 26 October 2018, visionsofal...@redchan.it wrote: You are co

Re: [PATCH v17 18/23] platform/x86: Intel SGX driver

2018-12-18 Thread Sean Christopherson
On Tue, Dec 18, 2018 at 07:44:18AM -0800, Sean Christopherson wrote: > On Mon, Dec 17, 2018 at 08:59:54PM -0800, Andy Lutomirski wrote: > > On Mon, Dec 17, 2018 at 2:20 PM Sean Christopherson > > wrote: > > > > > > > > My brain is still sorting out the details, but I generally like the idea > > >

[v1] drm/msm/dpu: Remove unused enum and comment from dpu mdss

2018-12-18 Thread Jayant Shekhar
Remove enum dpu_iommu_domain from dpu mdss as its unused. Remove unnecessary comment for variable which is already removed. Signed-off-by: Jayant Shekhar --- drivers/gpu/drm/msm/disp/dpu1/dpu_hw_mdss.h | 7 --- 1 file changed, 7 deletions(-) diff --git a/drivers/gpu/drm/msm/disp/dpu1/dpu_h

[PATCH 1/2] ARC: show_regs: avoid page allocator

2018-12-18 Thread Vineet Gupta
Use on-stack smaller buffers instead of dynamic pages. The motivation for this change was to address lockdep splat when signal handling code calls show_regs (with preemption disabled) and ARC show_regs calls into sleepable page allocator. | potentially unexpected fatal signal 11. | BUG: sleeping

[PATCH v2] sched/wake_q: Reduce reference counting for special users

2018-12-18 Thread Davidlohr Bueso
Some users, specifically futexes and rwsems, required fixes that allowed the callers to be safe when wakeups occur before they are expected by wake_up_q(). Such scenarios also play games and rely on reference counting, and until now were pivoting on wake_q doing it. With the wake_q_add() call bein

[PATCH 0/2] ARC show_regs fixes

2018-12-18 Thread Vineet Gupta
Vineet Gupta (2): ARC: show_regs: avoid page allocator ARC: show_regs: fix lockdep splat for good arch/arc/kernel/troubleshoot.c | 26 +++--- 1 file changed, 15 insertions(+), 11 deletions(-) -- 2.7.4

[PATCH 2/2] ARC: show_regs: fix lockdep splat for good

2018-12-18 Thread Vineet Gupta
signal handling core calls ARCH show_regs() with preemption disabled which causes __might_sleep functions such as mmput leading to lockdep splat. Workaround by re-enabling preemption temporarily. This may not be as bad as it sounds since the preemption disabling itself was introduced for a supres

Re: [LKP] [lkp-robot] [brd] 316ba5736c: aim7.jobs-per-min -11.2% regression

2018-12-18 Thread Jens Axboe
On 12/18/18 2:11 AM, kemi wrote: > Hi, All > Do we have special reason to keep this patch (316ba5736c9:brd: Mark as > non-rotational). > which leads to a performance regression when BRD is used as a disk on btrfs. I really suspect that this is a btrfs issue, as this is just flagging what is pre

Re: [PATCH v2 2/2] of: __of_detach_node() - remove node from phandle cache

2018-12-18 Thread Frank Rowand
On 12/17/18 2:52 AM, Michael Ellerman wrote: > Hi Frank, > > frowand.l...@gmail.com writes: >> From: Frank Rowand >> >> Non-overlay dynamic devicetree node removal may leave the node in >> the phandle cache. Subsequent calls to of_find_node_by_phandle() >> will incorrectly find the stale entry.

Re: [PATCH] drm/i915: Disable -Wuninitialized for intel_breadcrumbs.o

2018-12-18 Thread Nathan Chancellor
On Tue, Dec 18, 2018 at 11:53:06AM +, Chris Wilson wrote: > Quoting Nick Desaulniers (2018-10-25 23:20:58) > > On Thu, Oct 25, 2018 at 12:36 PM Nathan Chancellor > > wrote: > > > > > > This warning is disabled by default in scripts/Makefile.extrawarn when > > > W= is not provided but this Make

Re: [PATCH v5 3/5] mm: Shuffle initial free memory to improve memory-side-cache utilization

2018-12-18 Thread Dan Williams
On Tue, Dec 18, 2018 at 1:11 AM Mike Rapoport wrote: > > On Mon, Dec 17, 2018 at 11:56:36AM -0800, Dan Williams wrote: > > On Sun, Dec 16, 2018 at 4:43 AM Mike Rapoport wrote: > > > > > > On Fri, Dec 14, 2018 at 05:48:46PM -0800, Dan Williams wrote: > > > > Randomization of the page allocator imp

Re: [PATCH v12 2/2] cpufreq: qcom-hw: Add support for QCOM cpufreq HW driver

2018-12-18 Thread Stephen Boyd
Quoting Viresh Kumar (2018-12-17 21:45:45) > Hi Stephen, > > On 13-12-18, 02:12, Stephen Boyd wrote: > > Quoting Viresh Kumar (2018-12-13 02:05:06) > > > On 13-12-18, 01:58, Stephen Boyd wrote: > > > > BTW, Viresh, I see a lockdep splat when cpufreq_init returns an error > > > > upon bringing the

Re: [PATCH v2] sched/wake_q: Reduce reference counting for special users

2018-12-18 Thread Waiman Long
On 12/18/2018 01:54 PM, Davidlohr Bueso wrote: > Some users, specifically futexes and rwsems, required fixes > that allowed the callers to be safe when wakeups occur before > they are expected by wake_up_q(). Such scenarios also play > games and rely on reference counting, and until now were > pivo

Re: The linux devs can rescind their license grant.

2018-12-18 Thread visionsofalice
Your new explanation was refuted 5 hours after it was published. --- Yes they can, greg. The GPL v2, is a bare license. It is not a contract. It lacks consideration between the licensee and the grantor. (IE: They didn't pay you, Greg, a thing. YOU, Greg, simply have chosen to bestow a benef

Re: [PATCH 6/6] psi: introduce psi monitor

2018-12-18 Thread Joel Fernandes
On Tue, Dec 18, 2018 at 9:58 AM 'Suren Baghdasaryan' via kernel-team wrote: > > Current design supports only whole percentages and if userspace needs > more granularity then it has to use usecs. > I agree that usecs cover % usecase and "threshold * win / 100" is > simple enough for userspace to ca

[PATCH V1 2/2] mmc: tegra: SDMMC pads auto-calibration

2018-12-18 Thread Sowjanya Komatineni
Programs initial drive code offsets which will be used by auto calibration process. Programs fixed drive strengths for SDMMC pads when auto cal timeouts. Fixed settings are based on Pre-SI analysis of the pad design. Signed-off-by: Sowjanya Komatineni --- drivers/mmc/host/sdhci-tegra.c | 112 ++

[PATCH V1 1/2] arm64: dts: tegra210: Add SDMMC Auto-cal settings

2018-12-18 Thread Sowjanya Komatineni
Add SDMMC initial pad offsets used by auto calibration process. Add SDMMC fixed drive strengths used when calibration timeouts. Fixed drive strengths are based on Pre SI Analysis of the pads. Signed-off-by: Sowjanya Komatineni --- arch/arm64/boot/dts/nvidia/tegra186.dtsi | 2 ++ arch/arm64/boo

Re: [PATCH] drm/xen-front: Make shmem backed display buffer coherent

2018-12-18 Thread Noralf Trønnes
Den 27.11.2018 11.32, skrev Oleksandr Andrushchenko: From: Oleksandr Andrushchenko When GEM backing storage is allocated with drm_gem_get_pages the backing pages may be cached, thus making it possible that the backend sees only partial content of the buffer which may lead to screen artifacts.

Re: [PATCH v2] ima: define ima_post_create_tmpfile() hook and add missing call

2018-12-18 Thread Ignaz Forster
Am 18.12.18 um 19:47 schrieb Mimi Zohar: If tmpfiles can be made persistent, then newly created tmpfiles need to be treated like any other new files in policy. This patch indicates which newly created tmpfiles are in policy, causing the file hash to be calculated on __fput(). Reported-by: Ignaz

Re: [PATCH v2 03/19] mailbox: bcm2835: Use device-managed registration API

2018-12-18 Thread Eric Anholt
Thierry Reding writes: > From: Thierry Reding > > Get rid of some boilerplate driver removal code by using the newly added > device-managed registration API. > > Cc: Eric Anholt Reviewed-by: Eric Anholt signature.asc Description: PGP signature

Re: [v4] PCI: imx: make msi work without CONFIG_PCIEPORTBUS=y

2018-12-18 Thread kbuild test robot
Hi Richard, I love your patch! Yet something to improve: [auto build test ERROR on pci/next] [also build test ERROR on v4.20-rc7 next-20181218] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/commits

Re: [PATCH V2 7/9] x86/alternative: Batch of patch operations

2018-12-18 Thread Daniel Bristot de Oliveira
On 12/18/18 6:31 PM, Steven Rostedt wrote: > On Tue, 18 Dec 2018 17:46:36 +0100 > Daniel Bristot de Oliveira wrote: > >> +void text_poke_bp_batch(struct text_to_poke *tp, unsigned int nr_entries) >> +{ >> +unsigned int i; >> +unsigned char int3 = 0xcc; >> +int patched_all_but_first =

Re: [RFC PATCH 1/2] mm: swap: check if swap backing device is congested or not

2018-12-18 Thread Tim Chen
On 12/17/18 10:52 PM, Yang Shi wrote: > > diff --git a/mm/swap_state.c b/mm/swap_state.c > index fd2f21e..7cc3c29 100644 > --- a/mm/swap_state.c > +++ b/mm/swap_state.c > @@ -538,11 +538,15 @@ struct page *swap_cluster_readahead(swp_entry_t entry, > gfp_t gfp_mask, > bool do_poll = true, p

Re: [PATCH v2] sched/wake_q: Reduce reference counting for special users

2018-12-18 Thread Davidlohr Bueso
Are you missing some text here? Nah this was a leftover, I was just removing it in v3. Thanks. 8<--- [PATCH v3] sched/wake_q: Reduce reference counting for special users Some users, specifically futexes and rwsems, required fixe

Re: [PATCH] clk: imx: add CLK_GET_RATE_NOCACHE flag for i.MX8M composite clock

2018-12-18 Thread Stephen Boyd
Quoting Lucas Stach (2018-12-18 06:02:28) > Am Dienstag, den 18.12.2018, 13:53 + schrieb Anson Huang: > [...] > > > > > > > Regarding about the over head, yes, the change in common composite > > > > clock register has too many over head for other clocks, what if I > > > > ONLY have dram core c

Re: [PATCH] kbuild, x86: revert macros in extended asm workarounds

2018-12-18 Thread Nadav Amit
> On Dec 17, 2018, at 1:16 AM, Sedat Dilek wrote: > > On Thu, Dec 13, 2018 at 10:19 AM Masahiro Yamada > wrote: >> Revert the following commits: >> >> - 5bdcd510c2ac9efaf55c4cbd8d46421d8e2320cd >> ("x86/jump-labels: Macrofy inline assembly code to work around GCC inlining >> bugs") >> >> - d

Re: [PATCH V2 9/9] jump_label: Batch up if arch supports it

2018-12-18 Thread Daniel Bristot de Oliveira
On 12/18/18 6:35 PM, Steven Rostedt wrote: > On Tue, 18 Dec 2018 17:46:38 +0100 > Daniel Bristot de Oliveira wrote: > > > I'd say add this file first, before x86 supports it. That way it's easy > for you to test if this file is correct for other archs that do not > support it. > > When x86 supp

[PATCH v3 0/2] of: phandle_cache, fix refcounts, remove stale entry

2018-12-18 Thread frowand . list
From: Frank Rowand Non-overlay dynamic devicetree node removal may leave the node in the phandle cache. Subsequent calls to of_find_node_by_phandle() will incorrectly find the stale entry. This bug exposed the foloowing phandle cache refcount bug. The refcount of phandle_cache entries is not i

Re: [PATCH v2] sched/wake_q: Reduce reference counting for special users

2018-12-18 Thread Davidlohr Bueso
On Tue, 18 Dec 2018, Davidlohr Bueso wrote: +void wake_q_add_safe(struct wake_q_head *head, struct task_struct *task) +{ + if (!__wake_q_add(head, task)) + get_task_struct(task); *sigh* and this should be put().

[PATCH v3 2/2] of: __of_detach_node() - remove node from phandle cache

2018-12-18 Thread frowand . list
From: Frank Rowand Non-overlay dynamic devicetree node removal may leave the node in the phandle cache. Subsequent calls to of_find_node_by_phandle() will incorrectly find the stale entry. Remove the node from the cache. Add paranoia checks in of_find_node_by_phandle() as a second level of def

[PATCH v3 1/2] of: of_node_get()/of_node_put() nodes held in phandle cache

2018-12-18 Thread frowand . list
From: Frank Rowand The phandle cache contains struct device_node pointers. The refcount of the pointers was not incremented while in the cache, allowing use after free error after kfree() of the node. Add the proper increment and decrement of the use count. Fixes: 0b3ce78e90fc ("of: cache phan

Re: [PATCH v3 00/12] x86, kbuild: revert macrofying inline assembly code

2018-12-18 Thread Nadav Amit
> On Dec 17, 2018, at 8:03 AM, Masahiro Yamada > wrote: > > This series reverts the in-kernel workarounds for inlining issues. > > The commit description of 77b0bf55bc67 mentioned > "We also hope that GCC will eventually get fixed,..." > > Now, GCC provides a solution. > > https://na01.safeli

Re: [PATCH] drm/i915: Disable -Wuninitialized for intel_breadcrumbs.o

2018-12-18 Thread Nick Desaulniers
On Tue, Dec 18, 2018 at 11:01 AM Nathan Chancellor wrote: > On Tue, Dec 18, 2018 at 11:53:06AM +, Chris Wilson wrote: > > The other false-positive clang-6 gave was for local_clock_us(). > > Presumably that one is fixed? > > With this patch, I can build i915 using defconfig and allyesconfig > w

Re: [PATCH v3 1/2] of: of_node_get()/of_node_put() nodes held in phandle cache

2018-12-18 Thread Frank Rowand
On 12/18/18 11:40 AM, frowand.l...@gmail.com wrote: > From: Frank Rowand > > The phandle cache contains struct device_node pointers. The refcount > of the pointers was not incremented while in the cache, allowing use > after free error after kfree() of the node. Add the proper increment > and d

Re: [PATCH v3 2/2] of: __of_detach_node() - remove node from phandle cache

2018-12-18 Thread Frank Rowand
On 12/18/18 11:40 AM, frowand.l...@gmail.com wrote: > From: Frank Rowand > > Non-overlay dynamic devicetree node removal may leave the node in > the phandle cache. Subsequent calls to of_find_node_by_phandle() > will incorrectly find the stale entry. Remove the node from the > cache. > > Add p

Re: dm: give req_size precisely given by user

2018-12-18 Thread Mike Snitzer
On Tue, Dec 18 2018 at 12:45pm -0500, Jens Axboe wrote: > On 12/18/18 10:25 AM, Jaegeuk Kim wrote: > > This patch makes dm be aware of io_pages to assign sane req_size for reads. > > Reviewed-by: Jens Axboe > I've applied this, see: https://git.kernel.org/pub/scm/linux/kernel/git/device-mappe

Re: [RFC/RFT 08/10] i2c: exynos5: use core helper to mark adapter suspended

2018-12-18 Thread Wolfram Sang
> Tested-by: Marek Szyprowski Thanks for testing! > Similar warning was already there ('HS-I2C is not initialized' message, > without backtrace) during system suspend/resume. It looks that cpu freq > is resumed too early, before any device drivers, but this is not an > issue for this patchset.

[PATCH v4] sched/wake_q: Reduce reference counting for special users

2018-12-18 Thread Davidlohr Bueso
Some users, specifically futexes and rwsems, required fixes that allowed the callers to be safe when wakeups occur before they are expected by wake_up_q(). Such scenarios also play games and rely on reference counting, and until now were pivoting on wake_q doing it. With the wake_q_add() call bein

Re: [PATCH v2] VSOCK: Send reset control packet when socket is partially bound

2018-12-18 Thread David Miller
From: Jorgen Hansen Date: Tue, 18 Dec 2018 00:34:06 -0800 > If a server side socket is bound to an address, but not in the listening > state yet, incoming connection requests should receive a reset control > packet in response. However, the function used to send the reset > silently drops the res

Re: [PATCH net-next 00/12] net: hns3: code optimizations & bugfixes for HNS3 driver

2018-12-18 Thread David Miller
From: Peng Li Date: Tue, 18 Dec 2018 19:37:47 +0800 > This patchset includes bugfixes and code optimizations for the HNS3 > ethernet controller driver Series applied, thanks.

Re: [PATCH v2 2/2] of: __of_detach_node() - remove node from phandle cache

2018-12-18 Thread Rob Herring
On Tue, Dec 18, 2018 at 12:57 PM Frank Rowand wrote: > > On 12/17/18 2:52 AM, Michael Ellerman wrote: > > Hi Frank, > > > > frowand.l...@gmail.com writes: > >> From: Frank Rowand > >> > >> Non-overlay dynamic devicetree node removal may leave the node in > >> the phandle cache. Subsequent calls

[PATCH] pinctrl: ocelot: add MSCC Jaguar2 support

2018-12-18 Thread Alexandre Belloni
Jaguar2 has the same register layout as Ocelot but it has 64 pins, meaning that there are 2 registers instead of one. Signed-off-by: Alexandre Belloni --- .../bindings/pinctrl/mscc,ocelot-pinctrl.txt | 3 +- drivers/pinctrl/Kconfig | 4 +- drivers/pinctrl/pinctrl-ocelo

Re: [PATCH v2 2/2] of: __of_detach_node() - remove node from phandle cache

2018-12-18 Thread Frank Rowand
On 12/18/18 12:01 PM, Rob Herring wrote: > On Tue, Dec 18, 2018 at 12:57 PM Frank Rowand wrote: >> >> On 12/17/18 2:52 AM, Michael Ellerman wrote: >>> Hi Frank, >>> >>> frowand.l...@gmail.com writes: From: Frank Rowand Non-overlay dynamic devicetree node removal may leave the node

[GIT PULL 1/2] ARM: dts: exynos: Second round for v4.21

2018-12-18 Thread Krzysztof Kozlowski
Hi, On top of previous pull request. Best regards, Krzysztof The following changes since commit 57b13b8b34002ce8f1d822ea05f0a84e5bc3a64a: ARM: dts: exynos: remove display-port node from Arndale (2018-12-06 19:47:15 +0100) are available in the Git repository at: https://git.kernel.org/pu

[GIT PULL 2/2] arm64: dts: exynos: Second round for v4.21

2018-12-18 Thread Krzysztof Kozlowski
Hi, On top of previous pull request. Best regards, Krzysztof The following changes since commit 9deffb5ee78e41e2a5d6c448874a24caec6467d0: arm64: dts: exynos: Add all CPUs in cooling maps (2018-11-18 15:18:42 +0100) are available in the Git repository at: https://git.kernel.org/pub/scm/li

Re: [PATCH v3 7/9] arm64: defconfig: Enable FSL_MC_BUS and FSL_MC_DPIO

2018-12-18 Thread Stefan Wahren
,hash}_desc > > B->A > --- > caam{alg,hash}_desc need caam_imx, caam_little_end: > caam{hash,alg}_desc.c > --> desc_constr.h (included for descriptors generation functions) > --> regs.h (included fo

[PATCH] sysfs: Disable lockdep for driver bind/unbind files

2018-12-18 Thread Daniel Vetter
This is the much more correct fix for my earlier attempt at: https://lkml.org/lkml/2018/12/10/118 Short recap: - There's not actually a locking issue, it's just lockdep being a bit too eager to complain about a possible deadlock. - Contrary to what I claimed the real problem is recursion on

Re: [RFC/RFT 00/10] i2c: move handling of suspended adapters to the core

2018-12-18 Thread Wolfram Sang
Hans, all, > > ... this. I don't know what these flags do (and reading SMART in there > > gives me more a 'uh-oh' feeling) > > On x86 the lines between runtime suspend and system-suspend are blurring > with technologies like "connected standby" and in general devices moving > to suspend2idle as s

Re: WIP Droid 4 voice calls, GNSS & PM with a TS 27.010 serdev driver

2018-12-18 Thread Pavel Machek
Hi! > > # commit0c1bc81ba976bcd480d6e3c3009a28589f8427c0 (patch) > > # mfd: motmdm: Add Motorola TS 27.010 serdev driver for devices like droid4 > > > > Oh, that is a lot of fun. Especially state machine for parsing modem > > responses. I wonder how well it is going to work when modem is

Re: [PATCH 4.19 00/44] 4.19.11-stable review

2018-12-18 Thread shuah
On 12/18/18 9:39 AM, Greg Kroah-Hartman wrote: This is the start of the stable review cycle for the 4.19.11 release. There are 44 patches in this series, all will be posted as a response to this one. If anyone has any issues with these being applied, please let me know. Responses should be made

Re: [PATCH v5 4/7] cgroup: cgroup v2 freezer

2018-12-18 Thread Roman Gushchin
On Tue, Dec 18, 2018 at 06:12:30PM +0100, Oleg Nesterov wrote: > On 12/18, Roman Gushchin wrote: > > > > On Wed, Dec 12, 2018 at 06:49:02PM +0100, Oleg Nesterov wrote: > > > > > and btw what about suspend? try_to_freeze_tasks() will obviously > > > > > fail > > > > > if there is a ->frozen thr

[PATCH v2] iio: chemical: sps30: add support for self cleaning

2018-12-18 Thread Tomasz Duszynski
Self cleaning is especially useful in cases where sensor undergoes frequent power on/off cycles. In such scenarios it is recommended to turn self cleaning at least once per week in order to maintain reliable measurements. Self cleaning is activated by writing 1 to a dedicated attribute. Internal f

Re: A weird problem of Realtek r8168 after resume from S3

2018-12-18 Thread Heiner Kallweit
On 18.12.2018 14:25, Chris Chiu wrote: > On Tue, Dec 18, 2018 at 3:08 AM Heiner Kallweit wrote: >> >> On 17.12.2018 14:25, Chris Chiu wrote: >>> On Fri, Dec 14, 2018 at 3:37 PM Heiner Kallweit >>> wrote: On 14.12.2018 04:33, Chris Chiu wrote: > On Thu, Dec 13, 2018 at 10:20 AM Chri

Re: [PATCH 6/6] psi: introduce psi monitor

2018-12-18 Thread Suren Baghdasaryan
On Tue, Dec 18, 2018 at 11:18 AM Joel Fernandes wrote: > > On Tue, Dec 18, 2018 at 9:58 AM 'Suren Baghdasaryan' via kernel-team > wrote: > > > > Current design supports only whole percentages and if userspace needs > > more granularity then it has to use usecs. > > I agree that usecs cover % usec

<    3   4   5   6   7   8   9   10   11   12   >