[PATCH] sparc64: simplify reduce_memory() function

2019-02-12 Thread Mike Rapoport
The reduce_memory() function clampls the available memory to a limit defined by the "mem=" command line parameter. It takes into account the amount of already reserved memory and excludes it from the limit calculations. Rather than traverse memblocks and remove them by hand, use

Re: [RESEND PATCH v2 29/33] ARM: davinci: cp-intc: use readl/writel_relaxed()

2019-02-12 Thread Bartosz Golaszewski
pon., 11 lut 2019 o 14:08 Marc Zyngier napisał(a): > > On 11/02/2019 12:26, Bartosz Golaszewski wrote: > > From: Bartosz Golaszewski > > > > Raplace all calls to __raw_readl() & __raw_writel() with readl_relaxed() > > and writel_relaxed() respectively. It's safe to do as there's no > >

Re: [PATCH 2/2] PCI: imx6: Add code to request/control "pcie_aux" clock for i.MX8MQ

2019-02-12 Thread Lucas Stach
Am Montag, den 11.02.2019, 17:51 -0800 schrieb Andrey Smirnov: > PCIe IP block has additional clock, "pcie_aux", that needs to be > controlled by the driver. Add code to support that. > > Signed-off-by: Andrey Smirnov > Cc: Bjorn Helgaas > Cc: Fabio Estevam > Cc: Chris Healy > Cc: Lucas Stach

Re: [PATCH v6 11/22] clk: sunxi-ng: a64: Add minimum rate for PLL_MIPI

2019-02-12 Thread Jagan Teki
On Tue, Feb 12, 2019 at 3:00 PM Maxime Ripard wrote: > > On Mon, Feb 11, 2019 at 07:37:57PM +0530, Jagan Teki wrote: > > Hi Maxime, > > > > On Fri, Feb 1, 2019 at 8:01 PM Maxime Ripard > > wrote: > > > > > > On Tue, Jan 29, 2019 at 11:01:31PM +0530, Jagan Teki wrote: > > > > On Tue, Jan 29,

Re: [PATCH v8 2/8] mfd: bd70528: Support ROHM bd70528 PMIC - core

2019-02-12 Thread Matti Vaittinen
Thanks Again Lee, On Tue, Feb 12, 2019 at 09:17:23AM +, Lee Jones wrote: > On Fri, 08 Feb 2019, Matti Vaittinen wrote: > > > > I think an exported function with comments would be better. > > So do you mean you would prefer exported function over the pointer from > Yes please. Call-back

Re: [PATCH 4.20 018/352] ath9k: dynack: use authentication messages for late ack

2019-02-12 Thread Koen Vandeputte
On 11.02.19 18:02, Greg Kroah-Hartman wrote: Dear Greg, No idea if this is the proper location to report this or if I should inform stable@vger.. , but: This backport alone is useless without backporting following 2 commits below also, unless the 2 wifi devices using dynack start off at

Re: [PATCH V2 2/2] cpufreq: dt: Implement online/offline() callbacks

2019-02-12 Thread Rafael J. Wysocki
On Tue, Feb 12, 2019 at 8:07 AM Viresh Kumar wrote: > > Implement the light-weight tear down and bring up helpers to reduce the > amount of work to do on CPU offline/online operation. > > Signed-off-by: Viresh Kumar > --- > drivers/cpufreq/cpufreq-dt.c | 17 + > 1 file changed,

Re: [RFC PATCH] clk: sunxi-ng: sun4i: Use CLK_SET_RATE_PARENT for mmc2 clock

2019-02-12 Thread Priit Laes
On Mon, Feb 11, 2019 at 04:34:02PM +0100, Maxime Ripard wrote: > On Mon, Feb 11, 2019 at 02:35:52PM +, Priit Laes wrote: > > On Wed, Feb 06, 2019 at 04:52:27PM +0100, Maxime Ripard wrote: > > > Hi, > > > > > > On Wed, Feb 06, 2019 at 10:03:09AM +, Priit Laes wrote: > > > > > > I'm

Re: [PATCH v7 00/23] drm/sun4i: Allwinner A64 MIPI-DSI support

2019-02-12 Thread Jagan Teki
On Fri, Feb 1, 2019 at 9:12 PM Jagan Teki wrote: > > Here is next version changes for Allwinner A64 MIPI-DSI support > > This series grouped the changes like previous version[1] with different > sets to support three different panels types that can fit into the DSI > controller. > > set:1, for

Re: [PATCH 08/10] platform/x86: intel_pmc_core: Add ICL platform support

2019-02-12 Thread Anshuman Gupta
On Fri, Feb 01, 2019 at 01:02:32PM +0530, Rajneesh Bhardwaj wrote: > Icelake can resue most of the CNL PCH IPs as they are mostly similar. > This patch enables the PMC Core driver for ICL family. > > It also addresses few other minor issues like upper case conversions and > some tab alignments. >

Re: [PATCH] livepatch: Enforce reliable stack trace as config dependency

2019-02-12 Thread Petr Mladek
On Mon 2019-02-11 08:08:13, Josh Poimboeuf wrote: > Anyway, I'm not sure about this approach. This patch makes the s390 > livepatch code no longer compilable, turning it into completely dead > code. So if something changes in the s390 code which causes it to stop > compiling, nobody will notice.

Re: [PATCH 4.20 018/352] ath9k: dynack: use authentication messages for late ack

2019-02-12 Thread Greg Kroah-Hartman
On Tue, Feb 12, 2019 at 10:40:14AM +0100, Koen Vandeputte wrote: > > On 11.02.19 18:02, Greg Kroah-Hartman wrote: > > > > > > Dear Greg, > > > > > > No idea if this is the proper location to report this or if I should > > > inform > > > stable@vger.. , but: > > > > > > This backport alone is

[PATCH] apparmor: fix build error undefined reference to zlib_*

2019-02-12 Thread Anders Roxell
With commit 876dd866c084 ("apparmor: Initial implementation of raw policy blob compression") and SECURITY_APPARMOR is set to '=y' ZLIB_DEFLATE must be enabled as well for the linker to see the symbols. aarch64-linux-gnu-ld: security/apparmor/policy_unpack.o: in function `deflate_compress':

Re: [PATCH V2 2/2] cpufreq: dt: Implement online/offline() callbacks

2019-02-12 Thread Viresh Kumar
On 12-02-19, 10:43, Rafael J. Wysocki wrote: > On Tue, Feb 12, 2019 at 8:07 AM Viresh Kumar wrote: > > > > Implement the light-weight tear down and bring up helpers to reduce the > > amount of work to do on CPU offline/online operation. > > > > Signed-off-by: Viresh Kumar > > --- > >

[PATCH 1/2] dt-bindings: pwm: hibvt: Add hi3559v100 support

2019-02-12 Thread Mathieu Othacehe
Add support for hi3559v100-shub-pwm and hisilicon,hi3559v100-pwm platforms. Signed-off-by: Mathieu Othacehe --- Documentation/devicetree/bindings/pwm/pwm-hibvt.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Documentation/devicetree/bindings/pwm/pwm-hibvt.txt

[PATCH 2/2] pwm: hibvt: Add hi3559v100 support

2019-02-12 Thread Mathieu Othacehe
Add support for hi3559v100-shub-pwm and hisilicon,hi3559v100-pwm platforms. They require a special quirk: pwm has to be enabled again to force duty_cycle refresh. Signed-off-by: Mathieu Othacehe --- drivers/pwm/pwm-hibvt.c | 26 +++--- 1 file changed, 23 insertions(+), 3

Re: [PATCH v9 2/3] x86,/proc/pid/status: Add AVX-512 usage elapsed time

2019-02-12 Thread Li, Aubrey
On 2019/2/12 17:14, Li, Aubrey wrote: > On 2019/2/12 16:22, Thomas Gleixner wrote: >> On Tue, 12 Feb 2019, Aubrey Li wrote: >>> diff --git a/arch/x86/include/asm/processor.h >>> b/arch/x86/include/asm/processor.h >>> index d53c54b842da..60ee932070fe 100644 >>> ---

[PATCH] drm/msm/a6xx: Add support for an interconnect path

2019-02-12 Thread Georgi Djakov
From: Jordan Crouse Try to get the interconnect path for the GPU and vote for the maximum bandwidth to support all frequencies. This is needed for performance. Later we will want to scale the bandwidth based on the frequency to also optimize for power but that will require some device tree

[PATCH 2/2] mm: be more verbose about zonelist initialization

2019-02-12 Thread Michal Hocko
From: Michal Hocko We have seen several bugs where zonelists have not been initialized properly and it is not really straightforward to track those bugs down. One way to help a bit at least is to dump zonelists of each node when they are (re)initialized. Signed-off-by: Michal Hocko ---

[PATCH 1/2] x86, numa: always initialize all possible nodes

2019-02-12 Thread Michal Hocko
From: Michal Hocko Pingfan Liu has reported the following splat [5.772742] BUG: unable to handle kernel paging request at 2088 [5.773618] PGD 0 P4D 0 [5.773618] Oops: [#1] SMP NOPTI [5.773618] CPU: 2 PID: 1 Comm: swapper/0 Not tainted 4.20.0-rc1+ #3 [

[PATCH 0/2] x86, numa: always initialize all possible nodes

2019-02-12 Thread Michal Hocko
Hi, this has been posted as an RFC previously [1]. There didn't seem to be any objections so I am reposting this for inclusion. I have added a debugging patch which prints the zonelist setup for each numa node for an easier debugging of a broken zonelist setup. [1]

Re: [PATCH v4 05/10] mfd: max77650: new core mfd driver

2019-02-12 Thread Lee Jones
On Tue, 12 Feb 2019, Bartosz Golaszewski wrote: > wt., 12 lut 2019 o 09:36 Lee Jones napisał(a): > > > > On Tue, 05 Feb 2019, Bartosz Golaszewski wrote: > > > > > From: Bartosz Golaszewski > > > > > > Add the core mfd driver for max77650 PMIC. We define five sub-devices > > > for which the

Re: [PATCH 4/7] thermal: mediatek: add thermal controller offset

2019-02-12 Thread Michael Kao
On Tue, 2019-02-05 at 16:53 -0800, Eduardo Valentin wrote: > On Fri, Feb 01, 2019 at 03:38:10PM +0800, michael@mediatek.com wrote: > > From: Michael Kao > > > > One thermal controller can read four sensors at most, > > so we need to add controller_offset for the project with > > more than

Re: [PATCH 1/3] dt-bindings: imx-ocotp: Add i.MX8MQ compatible

2019-02-12 Thread Abel Vesa
On 19-02-11 17:50:09, Lucas Stach wrote: > Add compatible for i.MX8MQ and add both i.MX7D/S and i.M8MQ > to the description. > > Signed-off-by: Lucas Stach > --- > Documentation/devicetree/bindings/nvmem/imx-ocotp.txt | 4 +++- > 1 file changed, 3 insertions(+), 1 deletion(-) > > diff --git

Hello, Good Day Dear, Kindly please confirm is you. Regard Rufus

2019-02-12 Thread Rufus Limbaga

Re: [PATCH v2 3/9] irq/irq_sim: provide irq_sim_fire_type()

2019-02-12 Thread Uwe Kleine-König
On Tue, Feb 12, 2019 at 10:19:20AM +0100, Bartosz Golaszewski wrote: > wt., 12 lut 2019 o 10:10 Marc Zyngier napisał(a): > > > > On 29/01/2019 08:44, Bartosz Golaszewski wrote: > > > From: Bartosz Golaszewski > > > > > > Provide a more specialized variant of irq_sim_fire() that allows to > > >

Re: [PATCH] qcom: spmi-gpio: Fix boundary conditions IRQ domain translate

2019-02-12 Thread Brian Masney
On Mon, Feb 11, 2019 at 07:52:05PM -0800, Bjorn Andersson wrote: > GPIOs on the SPMI PMIC are numbered 1..ngpio, so the boundary check in > pmic_gpio_domain_translate() is off by one, correct this. > > Fixes: ca69e2d165eb ("qcom: spmi-gpio: add support for hierarchical IRQ chip") > Signed-off-by:

[PATCH 1/2] ima: fix build error redeclaration of enumerator

2019-02-12 Thread Anders Roxell
Commit a893ea15d764 ("tpm: move tpm_chip definition to include/linux/tpm.h") introduced a build error when both ima and efi is enabled. What happens is that both headers (ima.h and efi.h) defines the same 'NONE' constant, and it broke when they started getting included from the same file. In file

[PATCH 2/2] efi: fix build error redeclaration of enumerator

2019-02-12 Thread Anders Roxell
Commit a893ea15d764 ("tpm: move tpm_chip definition to include/linux/tpm.h") introduced a build error when both ima and efi is enabled. What happens is that both headers (ima.h and efi.h) defines the same 'NONE' constant, and it broke when they started getting included from the same file. In file

Re: [PATCH 2/2] efi: fix build error redeclaration of enumerator

2019-02-12 Thread Ard Biesheuvel
On Tue, 12 Feb 2019 at 11:09, Anders Roxell wrote: > > Commit a893ea15d764 ("tpm: move tpm_chip definition to > include/linux/tpm.h") introduced a build error when both ima and efi is > enabled. What happens is that both headers (ima.h and efi.h) defines the > same 'NONE' constant, and it broke

Re: [PATCH v4 05/10] mfd: max77650: new core mfd driver

2019-02-12 Thread Bartosz Golaszewski
wt., 12 lut 2019 o 10:55 Lee Jones napisał(a): > > On Tue, 12 Feb 2019, Bartosz Golaszewski wrote: > > > wt., 12 lut 2019 o 09:36 Lee Jones napisał(a): > > > > > > On Tue, 05 Feb 2019, Bartosz Golaszewski wrote: > > > > > > > From: Bartosz Golaszewski > > > > > > > > Add the core mfd driver for

Re: [PATCH 4.9 000/137] 4.9.156-stable review

2019-02-12 Thread Jon Hunter
On 11/02/2019 14:18, Greg Kroah-Hartman wrote: > This is the start of the stable review cycle for the 4.9.156 release. > There are 137 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

Re: [PATCH -mm -V7] mm, swap: fix race between swapoff and some swap operations

2019-02-12 Thread Andrea Parri
> Alternative implementation could be replacing disable preemption with > rcu_read_lock_sched and stop_machine() with synchronize_sched(). JFYI, starting with v4.20-rc1, synchronize_rcu{,expedited}() also wait for preempt-disable sections (the intent seems to retire the RCU-sched update-side

Re: [PATCH v2 3/9] irq/irq_sim: provide irq_sim_fire_type()

2019-02-12 Thread Bartosz Golaszewski
wt., 12 lut 2019 o 11:06 Uwe Kleine-König napisał(a): > > On Tue, Feb 12, 2019 at 10:19:20AM +0100, Bartosz Golaszewski wrote: > > wt., 12 lut 2019 o 10:10 Marc Zyngier napisał(a): > > > > > > On 29/01/2019 08:44, Bartosz Golaszewski wrote: > > > > From: Bartosz Golaszewski > > > > > > > >

Re: [PATCH] drm/msm/a6xx: Add support for an interconnect path

2019-02-12 Thread Greg KH
On Tue, Feb 12, 2019 at 11:52:38AM +0200, Georgi Djakov wrote: > From: Jordan Crouse > > Try to get the interconnect path for the GPU and vote for the maximum > bandwidth to support all frequencies. This is needed for performance. > Later we will want to scale the bandwidth based on the

Re: [PATCH v4 1/4] gpu: ipu-v3: ipu-ic: Rename yuv2rgb encoding matrices

2019-02-12 Thread Philipp Zabel
Hi Steve, On Mon, 2019-02-11 at 10:24 -0800, Steve Longerbeam wrote: [...] > Looking more closely at these coefficients now, I see you are right, > they are the BT.601 YUV full-range coefficients (Y range 0 to 1, U and V > range -0.5 to 0.5). Well, not even that -- the coefficients are not >

Re: [PATCH 08/10] platform/x86: intel_pmc_core: Add ICL platform support

2019-02-12 Thread Andy Shevchenko
On Tue, Feb 12, 2019 at 11:46 AM Anshuman Gupta wrote: > On Fri, Feb 01, 2019 at 01:02:32PM +0530, Rajneesh Bhardwaj wrote: > > Icelake can resue most of the CNL PCH IPs as they are mostly similar. > > This patch enables the PMC Core driver for ICL family. > > > > It also addresses few other

Re: [PATCH v4 05/10] mfd: max77650: new core mfd driver

2019-02-12 Thread Lee Jones
On Tue, 12 Feb 2019, Bartosz Golaszewski wrote: > wt., 12 lut 2019 o 10:55 Lee Jones napisał(a): > > > > On Tue, 12 Feb 2019, Bartosz Golaszewski wrote: > > > > > wt., 12 lut 2019 o 09:36 Lee Jones napisał(a): > > > > > > > > On Tue, 05 Feb 2019, Bartosz Golaszewski wrote: > > > > > > > > >

Re: [PATCH 2/2] efi: fix build error redeclaration of enumerator

2019-02-12 Thread Andy Shevchenko
On Tue, Feb 12, 2019 at 12:16 PM Ard Biesheuvel wrote: > On Tue, 12 Feb 2019 at 11:09, Anders Roxell wrote: > > > > Commit a893ea15d764 ("tpm: move tpm_chip definition to > > include/linux/tpm.h") introduced a build error when both ima and efi is > > enabled. What happens is that both headers

Re: [PATCH 0/2] x86, numa: always initialize all possible nodes

2019-02-12 Thread Mike Rapoport
On Tue, Feb 12, 2019 at 10:53:41AM +0100, Michal Hocko wrote: > Hi, > this has been posted as an RFC previously [1]. There didn't seem to be > any objections so I am reposting this for inclusion. I have added a > debugging patch which prints the zonelist setup for each numa node > for an easier

Re: [PATCH 4.14 000/205] 4.14.99-stable review

2019-02-12 Thread Jon Hunter
On 11/02/2019 14:16, Greg Kroah-Hartman wrote: > This is the start of the stable review cycle for the 4.14.99 release. > There are 205 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

Re: [PATCH 1/2] ima: fix build error redeclaration of enumerator

2019-02-12 Thread Andy Shevchenko
On Tue, Feb 12, 2019 at 12:15 PM Anders Roxell wrote: > > Commit a893ea15d764 ("tpm: move tpm_chip definition to > include/linux/tpm.h") introduced a build error when both ima and efi is > enabled. What happens is that both headers (ima.h and efi.h) defines the > same 'NONE' constant, and it

[PATCH] proc, oom: do not report alien mms when setting oom_score_adj

2019-02-12 Thread Michal Hocko
From: Michal Hocko Tetsuo has reported that creating a thousands of processes sharing MM without SIGHAND (aka alien threads) and setting /proc//oom_score_adj will swamp the kernel log and takes ages [1] to finish. This is especially worrisome that all that printing is done under RCU lock and

Re: [PATCH 1/2] ima: fix build error redeclaration of enumerator

2019-02-12 Thread Andy Shevchenko
On Tue, Feb 12, 2019 at 12:21 PM Andy Shevchenko wrote: > > On Tue, Feb 12, 2019 at 12:15 PM Anders Roxell > wrote: > > > > Commit a893ea15d764 ("tpm: move tpm_chip definition to > > include/linux/tpm.h") introduced a build error when both ima and efi is > > enabled. What happens is that both

Re: [PATCH v2 6/6] RISC-V: Implement keepinitrd kernel parameter

2019-02-12 Thread Anup Patel
On Tue, Feb 12, 2019 at 12:38 PM Christoph Hellwig wrote: > > On Sat, Jan 19, 2019 at 01:28:59PM +, Anup Patel wrote: > > This patch implements keepinitrd kernel parameter. By default, > > keepinitrd=1 but users can pass "keepinitrd=0" to free-up > > initrd memory at boot-time in

Re: [PATCH v3 1/2] media: uapi: Add H264 low-level decoder API compound controls.

2019-02-12 Thread Maxime Ripard
On Mon, Feb 11, 2019 at 02:12:25PM -0300, Ezequiel Garcia wrote: > On Mon, 2019-02-11 at 15:39 +0100, Maxime Ripard wrote: > > > > diff --git a/include/uapi/linux/videodev2.h b/include/uapi/linux/videodev2.h > > index d6eed479c3a6..6fc955926bdb 100644 > > --- a/include/uapi/linux/videodev2.h > >

Re: [PATCH v4 05/10] mfd: max77650: new core mfd driver

2019-02-12 Thread Bartosz Golaszewski
wt., 12 lut 2019 o 11:18 Lee Jones napisał(a): > > On Tue, 12 Feb 2019, Bartosz Golaszewski wrote: > > > wt., 12 lut 2019 o 10:55 Lee Jones napisał(a): > > > > > > * The declaration of a superfluous struct > > > * 100 lines of additional/avoidable code > > > * Hacky hoop jumping trying to

Re: [PATCH 09/10] platform/x86: intel_pmc_core: Add Package cstates residency info

2019-02-12 Thread Andy Shevchenko
On Mon, Feb 11, 2019 at 8:32 PM Bhardwaj, Rajneesh wrote: > On 11-Feb-19 10:11 PM, Anshuman Gupta wrote: > > On Fri, Feb 01, 2019 at 01:02:33PM +0530, Rajneesh Bhardwaj wrote: > >> This patch introduces a new debugfs entry to read current Package > >> cstate residency counters. A similar variant

Re: [PATCH V2 2/2] cpufreq: dt: Implement online/offline() callbacks

2019-02-12 Thread Rafael J. Wysocki
On Tue, Feb 12, 2019 at 10:49 AM Viresh Kumar wrote: > > On 12-02-19, 10:43, Rafael J. Wysocki wrote: > > On Tue, Feb 12, 2019 at 8:07 AM Viresh Kumar > > wrote: > > > > > > Implement the light-weight tear down and bring up helpers to reduce the > > > amount of work to do on CPU offline/online

Re: [PATCH v7 05/28] x86/asm/entry: annotate THUNKs

2019-02-12 Thread Jiri Slaby
On 09. 02. 19, 12:25, Borislav Petkov wrote: >> @@ -57,7 +56,7 @@ >> #if defined(CONFIG_TRACE_IRQFLAGS) \ >> || defined(CONFIG_DEBUG_LOCK_ALLOC) \ >> || defined(CONFIG_PREEMPT) >> -.L_restore: >> +SYM_CODE_START_LOCAL_NOALIGN(.L_restore) >> popq %r11 >> popq %r10 >> popq %r9 >>

Re: [PATCH v2 3/9] irq/irq_sim: provide irq_sim_fire_type()

2019-02-12 Thread Marc Zyngier
On 12/02/2019 09:19, Bartosz Golaszewski wrote: > wt., 12 lut 2019 o 10:10 Marc Zyngier napisał(a): >> >> On 29/01/2019 08:44, Bartosz Golaszewski wrote: >>> From: Bartosz Golaszewski >>> >>> Provide a more specialized variant of irq_sim_fire() that allows to >>> specify the type of the fired

Re: X450LCP lost abillity to turn the screen off

2019-02-12 Thread Andy Shevchenko
On Tue, Feb 12, 2019 at 4:31 AM Marcos Paulo de Souza wrote: > On 2/11/19 5:14 PM, João Paulo Rechi Vita wrote: > > Hello Marcos, > > On Sun, Feb 10, 2019 at 5:05 PM Marcos Paulo de Souza > > wrote: > > You can check what is being sent by the kernel with evtest, and what > > is being sent by X

Re: [PATCH] usb: typec: tcpm: Export partner Source Capabilities

2019-02-12 Thread Kyle Tso
On Thu, Jan 31, 2019 at 3:02 PM Greg KH wrote: > > On Thu, Jan 31, 2019 at 11:54:11AM +0800, Kyle Tso wrote: > > Provide a function to get the partner Source Capabilities. > > > > Signed-off-by: Kyle Tso > > --- > > drivers/usb/typec/tcpm/tcpm.c | 23 +++ > >

Re: [PATCH] usb: typec: tcpm: Export partner Source Capabilities

2019-02-12 Thread Kyle Tso
On Fri, Feb 1, 2019 at 2:22 AM Guenter Roeck wrote: > > On Thu, Jan 31, 2019 at 08:02:38AM +0100, Greg KH wrote: > > On Thu, Jan 31, 2019 at 11:54:11AM +0800, Kyle Tso wrote: > > > Provide a function to get the partner Source Capabilities. > > > > > > Signed-off-by: Kyle Tso > > > --- > > >

Re: [PATCH 09/10] platform/x86: intel_pmc_core: Add Package cstates residency info

2019-02-12 Thread Bhardwaj, Rajneesh
On 12-Feb-19 3:55 PM, Andy Shevchenko wrote: On Mon, Feb 11, 2019 at 8:32 PM Bhardwaj, Rajneesh wrote: On 11-Feb-19 10:11 PM, Anshuman Gupta wrote: On Fri, Feb 01, 2019 at 01:02:33PM +0530, Rajneesh Bhardwaj wrote: This patch introduces a new debugfs entry to read current Package cstate

Re: [PATCH] PCI: pciehp: Do not turn off slot if presence comes up after link

2019-02-12 Thread Lukas Wunner
On Tue, Feb 12, 2019 at 09:30:31AM +0100, Lukas Wunner wrote: > Instead of modifying the logic in pciehp_handle_presence_or_link_change(), > you could amend pcie_wait_for_link() to poll PDS until it's set, in > addition to DLLLA. The rationale would be that although the link is up, > the

Re: [PATCH v2 6/6] RISC-V: Implement keepinitrd kernel parameter

2019-02-12 Thread Andreas Schwab
On Feb 12 2019, Anup Patel wrote: > So in case of initrd we might not want to free-up the RAM but > we can certainly free-up in case of initramfs. But the default should be keepinitrd=0, shoudn't it? Andreas. -- Andreas Schwab, SUSE Labs, sch...@suse.de GPG Key fingerprint = 0196 BAD8 1CE9

Re: [PATCH v2 3/9] irq/irq_sim: provide irq_sim_fire_type()

2019-02-12 Thread Bartosz Golaszewski
wt., 12 lut 2019 o 11:27 Marc Zyngier napisał(a): > > On 12/02/2019 09:19, Bartosz Golaszewski wrote: > > wt., 12 lut 2019 o 10:10 Marc Zyngier napisał(a): > >> > >> On 29/01/2019 08:44, Bartosz Golaszewski wrote: > >>> From: Bartosz Golaszewski > >>> > >>> Provide a more specialized variant of

[PATCH v3 16/37] ARM: davinci: aintc: use the new irqchip config structure in dm* SoCs

2019-02-12 Thread Bartosz Golaszewski
From: Bartosz Golaszewski Add the new-style config structures for dm* SoCs. They will be used once we make the aintc driver stop using davinci_soc_info. Signed-off-by: Bartosz Golaszewski --- arch/arm/mach-davinci/dm355.c | 11 +++ arch/arm/mach-davinci/dm365.c | 11 +++

[PATCH v3 19/37] ARM: davinci: aintc: request memory region before remapping it

2019-02-12 Thread Bartosz Golaszewski
From: Bartosz Golaszewski Add a missing call to request_mem_region() before calling ioremap() to make sure the region is not being used by anyone else. Signed-off-by: Bartosz Golaszewski --- arch/arm/mach-davinci/irq.c | 9 + 1 file changed, 9 insertions(+) diff --git

[PATCH v3 02/37] ARM: davinci: remove intc_host_map from davinci_soc_info struct

2019-02-12 Thread Bartosz Golaszewski
From: Bartosz Golaszewski The intc_host_map field in struct davinci_soc_info is not used by any board. Remove it as part of the interrupt support cleanup. Signed-off-by: Bartosz Golaszewski Reviewed-by: David Lechner --- arch/arm/mach-davinci/cp_intc.c | 5 -

[PATCH v3 14/37] ARM: davinci: aintc: use readl/writel_relaxed()

2019-02-12 Thread Bartosz Golaszewski
From: Bartosz Golaszewski Raplace all calls to __raw_readl() & __raw_writel() with readl_relaxed() and writel_relaxed() respectively. It's safe to do as there's no endianness conversion being done in the code. Signed-off-by: Bartosz Golaszewski --- arch/arm/mach-davinci/irq.c | 2 +- 1 file

[PATCH v3 23/37] ARM: davinci: cp-intc: remove cp_intc.h

2019-02-12 Thread Bartosz Golaszewski
From: Bartosz Golaszewski There's no need to have a local header for cp-intc. Move the only declaration for a public function to common.h. Move all register offsets into the driver source file and drop all unused defines. Make cp_intc_of_init() static. Signed-off-by: Bartosz Golaszewski

[PATCH v3 06/37] ARM: davinci: pull davinci_intc_base into the respective intc drivers

2019-02-12 Thread Bartosz Golaszewski
From: Bartosz Golaszewski davinci_intc_base is defined globally in common.c. Define separate local variables for the aintc and cp-intc drivers and remove the global one. Signed-off-by: Bartosz Golaszewski Reviewed-by: David Lechner --- arch/arm/mach-davinci/common.c | 2 --

[PATCH v3 01/37] input: davinci_keyscan: remove unnecessary includes

2019-02-12 Thread Bartosz Golaszewski
From: Bartosz Golaszewski The mach/ and asm/ includes are not needed in davinci_keyscan, but they will cause build problems once we make mach/irqs.h a private header for mach-davinci. Remove all unused header includes. Signed-off-by: Bartosz Golaszewski ---

[PATCH v3 00/37] ARM: davinci: modernize the irq support

2019-02-12 Thread Bartosz Golaszewski
From: Bartosz Golaszewski This series ports the davinci platform to using SPARSE_IRQ, cleans up the irqchip drivers and moves them over to drivers/irqchip. The series can be logically split into five parts. The first patch preemptively fixes a problem in an input driver that would have caused

[PATCH v3 10/37] ARM: davinci: aintc: drop GPL license boilerplate

2019-02-12 Thread Bartosz Golaszewski
From: Bartosz Golaszewski Replace the GPLv2 or later license boilerplate with an SPDX identifier. Signed-off-by: Bartosz Golaszewski --- arch/arm/mach-davinci/irq.c | 26 ++ 1 file changed, 6 insertions(+), 20 deletions(-) diff --git a/arch/arm/mach-davinci/irq.c

[PATCH v3 28/37] ARM: davinci: cp-intc: convert all hex numbers to lowercase

2019-02-12 Thread Bartosz Golaszewski
From: Bartosz Golaszewski Use lowercase letters in hexadecimal numbers in the cp-intc driver as is done in most of the kernel code base. Signed-off-by: Bartosz Golaszewski Reviewed-by: David Lechner --- arch/arm/mach-davinci/cp_intc.c | 8 1 file changed, 4 insertions(+), 4

[PATCH v3 35/37] ARM: davinci: cp-intc: remove redundant comments

2019-02-12 Thread Bartosz Golaszewski
From: Bartosz Golaszewski We don't need comments explaining what functions with obvious names do. Signed-off-by: Bartosz Golaszewski Reviewed-by: David Lechner --- arch/arm/mach-davinci/cp_intc.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/arch/arm/mach-davinci/cp_intc.c

[PATCH v3 27/37] ARM: davinci: cp-intc: use a common prefix for all symbols

2019-02-12 Thread Bartosz Golaszewski
From: Bartosz Golaszewski In preparation for moving the driver to drivers/irqchip do some cleanup: use a common prefix for all symbols. Signed-off-by: Bartosz Golaszewski Reviewed-by: David Lechner --- arch/arm/mach-davinci/cp_intc.c | 144 ++--

[PATCH v3 37/37] ARM: davinci: remove intc related fields from davinci_soc_info

2019-02-12 Thread Bartosz Golaszewski
From: Bartosz Golaszewski The fields related to the two davinci interrupt controllers are no longer used. Remove them. Signed-off-by: Bartosz Golaszewski --- arch/arm/mach-davinci/da830.c | 98 -- arch/arm/mach-davinci/da850.c | 108

[PATCH v3 24/37] ARM: davinci: cp-intc: add a wrapper around cp_intc_init()

2019-02-12 Thread Bartosz Golaszewski
From: Bartosz Golaszewski We're going to extend the cp_intc_init() function with a config structure so we can drop the intc-related fields from davinci_soc_info. Once we do it, we won't be able to use this routine directly as the init_irq callback. Wrap the calls in additional helpers that

[PATCH v3 26/37] ARM: davinci: cp-intc: add the new config structures for da8xx SoCs

2019-02-12 Thread Bartosz Golaszewski
From: Bartosz Golaszewski Add the new-style config structures for da8xx SoCs. They will be used once we make the cp-intc driver stop using davinci_soc_info. Signed-off-by: Bartosz Golaszewski --- arch/arm/mach-davinci/da830.c | 10 ++ arch/arm/mach-davinci/da850.c | 10 ++ 2

[PATCH v3 29/37] ARM: davinci: cp-intc: use the new-style config structure

2019-02-12 Thread Bartosz Golaszewski
From: Bartosz Golaszewski Modify the cp-intc driver to take all its configuration from the new config structure. Stop referencing davinci_soc_info in any way. Move the declaration for davinci_cp_intc_init() to irq-davinci-cp-intc.h and make it take the new config structure as parameter. Convert

[PATCH v3 30/37] ARM: davinci: cp-intc: request the memory region before remapping it

2019-02-12 Thread Bartosz Golaszewski
From: Bartosz Golaszewski Add a missing call to request_mem_region() before calling ioremap() to make sure it's not been requested by another user. Signed-off-by: Bartosz Golaszewski --- arch/arm/mach-davinci/cp_intc.c | 9 + 1 file changed, 9 insertions(+) diff --git

[PATCH v3 33/37] ARM: davinci: cp-intc: use readl/writel_relaxed()

2019-02-12 Thread Bartosz Golaszewski
From: Bartosz Golaszewski Raplace all calls to __raw_readl() & __raw_writel() with readl_relaxed() and writel_relaxed() respectively. It's safe to do as there's no endianness conversion being done in the code. Signed-off-by: Bartosz Golaszewski --- arch/arm/mach-davinci/cp_intc.c | 4 ++-- 1

[PATCH v3 36/37] irqchip: davinci-cp-intc: move the driver to drivers/irqchip

2019-02-12 Thread Bartosz Golaszewski
From: Bartosz Golaszewski The cp-intc driver has now been cleaned up. Move it to drivers/irqchip where it belongs. Signed-off-by: Bartosz Golaszewski Reviewed-by: David Lechner --- arch/arm/mach-davinci/Kconfig | 8 ++-- arch/arm/mach-davinci/Makefile

[PATCH v3 32/37] ARM: davinci: cp-intc: unify error handling

2019-02-12 Thread Bartosz Golaszewski
From: Bartosz Golaszewski Use WARN_ON() on eny error in cp-intc initialization and drop all custom error messages. Signed-off-by: Bartosz Golaszewski Reviewed-by: David Lechner --- arch/arm/mach-davinci/cp_intc.c | 11 +++ 1 file changed, 7 insertions(+), 4 deletions(-) diff --git

[PATCH v3 34/37] ARM: davinci: cp-intc: drop GPL license boilerplate

2019-02-12 Thread Bartosz Golaszewski
From: Bartosz Golaszewski Replace the GPLv2 license boilerplate with an SPDX identifier and add myself as a second author. Signed-off-by: Bartosz Golaszewski --- arch/arm/mach-davinci/cp_intc.c | 18 -- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git

[PATCH v3 31/37] ARM: davinci: cp-intc: improve coding style

2019-02-12 Thread Bartosz Golaszewski
From: Bartosz Golaszewski Drop tabs from variable initialization. Arrange variables in reverse christmas-tree order. Add a newline before a return. Signed-off-by: Bartosz Golaszewski --- arch/arm/mach-davinci/cp_intc.c | 13 +++-- 1 file changed, 7 insertions(+), 6 deletions(-) diff

[PATCH v3 25/37] irqchip: davinci-cp-intc: add a new config structure

2019-02-12 Thread Bartosz Golaszewski
From: Bartosz Golaszewski Add a config structure that will be used by cp-intc-based platforms. It contains the register range resource and the number of interrupts. Signed-off-by: Bartosz Golaszewski --- include/linux/irqchip/irq-davinci-cp-intc.h | 23 + 1 file changed,

[PATCH v3 22/37] irqchip: davinci-aintc: move the driver to drivers/irqchip

2019-02-12 Thread Bartosz Golaszewski
From: Bartosz Golaszewski The aintc driver has now been cleaned up. Move it to drivers/irqchip where it belongs. There's no device-tree support for any dm* board so there's no IRQCHIP_OF_DECLARE() - there's only the exported init function called from machine code. Signed-off-by: Bartosz

[PATCH v3 15/37] irqchip: davinci-aintc: add a new config structure

2019-02-12 Thread Bartosz Golaszewski
From: Bartosz Golaszewski Add a config structure that will be used by aintc-based platforms. It contains the register range resource, number of interrupts and a list of priorities. Signed-off-by: Bartosz Golaszewski --- include/linux/irqchip/irq-davinci-aintc.h | 25 +++ 1

[PATCH v3 20/37] ARM: davinci: aintc: move timer-specific irq_set_handler() out of irq.c

2019-02-12 Thread Bartosz Golaszewski
From: Bartosz Golaszewski I've been unable to figure out exactly why, but it seems that the IRQ_TINT1_TINT34 interrupt for timer 1 needs to be handled as a level irq, not edge like all others. Let's move the handler setup out of the aintc driver where it's lived since the beginning and into the

[PATCH v3 18/37] ARM: davinci: aintc: unify error handling

2019-02-12 Thread Bartosz Golaszewski
From: Bartosz Golaszewski Instead of dumping stack traces, just print a specific error message in aintc driver. Signed-off-by: Bartosz Golaszewski --- arch/arm/mach-davinci/irq.c | 18 ++ 1 file changed, 14 insertions(+), 4 deletions(-) diff --git

[PATCH v3 21/37] ARM: davinci: aintc: remove unnecessary includes

2019-02-12 Thread Bartosz Golaszewski
From: Bartosz Golaszewski These includes are no longer required. Remove them. Signed-off-by: Bartosz Golaszewski Reviewed-by: David Lechner --- arch/arm/mach-davinci/irq.c | 4 1 file changed, 4 deletions(-) diff --git a/arch/arm/mach-davinci/irq.c b/arch/arm/mach-davinci/irq.c index

[PATCH v3 08/37] ARM: davinci: select SPARSE_IRQ

2019-02-12 Thread Bartosz Golaszewski
From: Bartosz Golaszewski Everything is in place now for SPARSE_IRQ. Select it and set DAVINCI_INTC_START to NR_IRQS. We now need to include mach/irqs.h in a couple places as it is no longer indirectly included after selecting SPARSE_IRQ. Signed-off-by: Bartosz Golaszewski Reviewed-by: David

[PATCH v3 07/37] ARM: davinci: wrap HW interrupt numbers with a macro

2019-02-12 Thread Bartosz Golaszewski
From: Bartosz Golaszewski Once we select SPARSE_IRQ, the interrupt numbers defined in mach/irqs.h will only signify the hardware interrupt offsets, not the interrupt numbers seen by linux. Introduce a wrapper macro that translates the hwirq number to virtual numbers. For now it's just a dummy.

[PATCH v3 11/37] ARM: davinci: aintc: wrap davinci_irq_init() with a helper

2019-02-12 Thread Bartosz Golaszewski
From: Bartosz Golaszewski We're going to extend the davinci_irq_init() function with a config structure so we can drop the intc-related fields from davinci_soc_info. Once we do it, we won't be able to use this routine directly as the init_irq callback. Wrap the calls in additional helpers that

[PATCH v3 13/37] ARM: davinci: aintc: drop the 00 prefix from register offsets

2019-02-12 Thread Bartosz Golaszewski
From: Bartosz Golaszewski Since no offset goes past 0xff - let's drop the 00 prefix for better readability. While we're at it: convert all hex numbers to lower-case. Signed-off-by: Bartosz Golaszewski Reviewed-by: David Lechner --- arch/arm/mach-davinci/irq.c | 22 +++--- 1

[PATCH v3 12/37] ARM: davinci: aintc: use a common prefix for symbols in the driver

2019-02-12 Thread Bartosz Golaszewski
From: Bartosz Golaszewski In preparation for moving the driver to drivers/irqchip do some cleanup: use a common prefix for all symbols. Signed-off-by: Bartosz Golaszewski Reviewed-by: David Lechner --- arch/arm/mach-davinci/dm355.c | 2 +- arch/arm/mach-davinci/dm365.c

[PATCH v3 17/37] ARM: davinci: aintc: use the new config structure

2019-02-12 Thread Bartosz Golaszewski
From: Bartosz Golaszewski Modify the aintc driver to take all its configuration from the new config structure. Stop referencing davinci_soc_info in any way. Move the declaration for davinci_aintc_init() to irq-davinci-aintc.h and make it take the new config structure as parameter. Convert all

RE: [PATCH v2 6/9] usb: roles: Find the muxes by also matching against the device node

2019-02-12 Thread Jun Li
Hi > -Original Message- > From: Heikki Krogerus > Sent: 2019年2月12日 16:51 > To: Jun Li > Cc: Greg Kroah-Hartman ; Andy Shevchenko > ; Chen Yu ; Hans de > Goede ; linux-...@vger.kernel.org; > linux-kernel@vger.kernel.org > Subject: Re: [PATCH v2 6/9] usb: roles: Find the muxes by also

[PATCH v3 09/37] ARM: davinci: make irqs.h a local header

2019-02-12 Thread Bartosz Golaszewski
From: Bartosz Golaszewski The existence of irqs.h in mach-davinci/include/mach only makes sense without SPARSE_IRQ as it's then expected to define NR_IRQS and is included from asm/irq.h. As we now support SPARSE_IRQ, this header can be moved to mach-davinci and used as the source of HW interrupt

[PATCH v3 05/37] ARM: davinci: remove davinci_intc_type

2019-02-12 Thread Bartosz Golaszewski
From: Bartosz Golaszewski We now use the generic ARM irq handler on davinci. There are no more users that check davinci_intc_type. Remove the variable and all its references. Signed-off-by: Bartosz Golaszewski Reviewed-by: David Lechner --- arch/arm/mach-davinci/common.c | 1 -

[PATCH v3 04/37] ARM: davinci: select GENERIC_IRQ_MULTI_HANDLER

2019-02-12 Thread Bartosz Golaszewski
From: Bartosz Golaszewski In order to support SPARSE_IRQ we first need to make davinci use the generic irq handler for ARM. Translate the legacy assembly to C and put the irq handlers into their respective drivers (aintc and cp-intc). Signed-off-by: Bartosz Golaszewski --- arch/arm/Kconfig

[PATCH v3 03/37] ARM: davinci: aintc: use irq domain

2019-02-12 Thread Bartosz Golaszewski
From: Bartosz Golaszewski We need to create an irq domain if we want to select SPARSE_IRQ. The cp-intc driver already supports it, but aintc doesn't. Use the helpers provided by the generic irq chip abstraction. Signed-off-by: Bartosz Golaszewski --- arch/arm/mach-davinci/irq.c | 35

Re: [PATCH 09/10] platform/x86: intel_pmc_core: Add Package cstates residency info

2019-02-12 Thread Andy Shevchenko
On Tue, Feb 12, 2019 at 12:34 PM Bhardwaj, Rajneesh wrote: > On 12-Feb-19 3:55 PM, Andy Shevchenko wrote: > > On Mon, Feb 11, 2019 at 8:32 PM Bhardwaj, Rajneesh > > wrote: > >> On 11-Feb-19 10:11 PM, Anshuman Gupta wrote: > >>> On Fri, Feb 01, 2019 at 01:02:33PM +0530, Rajneesh Bhardwaj wrote:

Re: [PATCH 2/2] arm64: io: Hook up __io_par() for inX() ordering

2019-02-12 Thread Geert Uytterhoeven
Hi Will, On Mon, Feb 11, 2019 at 9:34 PM Will Deacon wrote: > Ensure that inX() provides the same ordering guarantees as readX() > by hooking up __io_par() so that it maps directly to __iormb(). > > Reported-by: Andrew Murray > Signed-off-by: Will Deacon Thanks for your patch! > ---

Re: [linux-sunxi] [PATCH v3 2/2] media: cedrus: Add H264 decoding support

2019-02-12 Thread Maxime Ripard
Hi, On Mon, Feb 11, 2019 at 08:21:31PM +0100, Jernej Škrabec wrote: > > + reg = 0; > > + /* > > +* FIXME: This bit tells the video engine to use the default > > +* quantization matrices. This will obviously need to be > > +* changed to support the profiles supporting custom > > +

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