[PATCH v9 4/5] iommu/arm-smmu: Add the device_link between masters and smmu

2018-03-13 Thread Vivek Gautam
From: Sricharan R Finally add the device link between the master device and smmu, so that the smmu gets runtime enabled/disabled only when the master needs it. This is done from add_device callback which gets called once when the master is added to the smmu. Signed-off-by: Sricharan R Signed-of

[PATCH v9 2/5] iommu/arm-smmu: Add pm_runtime/sleep ops

2018-03-13 Thread Vivek Gautam
From: Sricharan R The smmu needs to be functional only when the respective master's using it are active. The device_link feature helps to track such functional dependencies, so that the iommu gets powered when the master device enables itself using pm_runtime. So by adapting the smmu driver for r

[PATCH v9 1/5] driver core: Find an existing link between two devices

2018-03-13 Thread Vivek Gautam
The lists managing the device-links can be traversed to find the link between two devices. The device_link_add() APIs does traverse these lists to check if there's already a link setup between the two devices. So, add a new APIs, device_link_find(), to find an existing device link between two devic

Re: [PATCH v2 06/10] video: add support of STM32 MIPI DSI controller driver

2018-03-13 Thread Patrice CHOTARD
Hi yannick On 03/02/2018 04:44 PM, yannick fertre wrote: > Add the STM32 DSI controller driver that uses the Synopsys DesignWare > MIPI DSI host controller bridge. > > Signed-off-by: yannick fertre > --- > drivers/video/stm32/Kconfig | 10 + > drivers/video/stm32/Makefile| 1 + >

Re: [PATCH v2 4/6] ASoC: sun4i-i2s: Add multi-lane functionality

2018-03-13 Thread Code Kipper
On 13 March 2018 at 09:23, Maxime Ripard wrote: > On Tue, Mar 13, 2018 at 09:15:49AM +0100, Code Kipper wrote: >> On 13 March 2018 at 09:00, Maxime Ripard wrote: >> > On Mon, Mar 12, 2018 at 04:57:51PM +0100, codekip...@gmail.com wrote: >> >> From: Marcus Cooper >> >> >> >> The i2s block support

Re: [PATCH v2 07/10] video: add support of panel rm68200

2018-03-13 Thread Patrice CHOTARD
Hi yannick On 03/02/2018 04:44 PM, yannick fertre wrote: > Support for Raydium rm68200 720p dsi 2dl video mode panel. > > Signed-off-by: yannick fertre > --- > drivers/video/Kconfig | 8 + > drivers/video/Makefile | 1 + > drivers/video/raydium-rm68200.c | 329 > +

Re: [PATCHv2 2/2] zram: drop max_zpage_size and use zs_huge_class_size()

2018-03-13 Thread Minchan Kim
Hi Sergey, Sorry for being late. I love this patchset! Just a minor below. On Tue, Mar 06, 2018 at 04:06:39PM +0900, Sergey Senozhatsky wrote: > This patch removes ZRAM's enforced "huge object" value and uses > zsmalloc huge-class watermark instead, which makes more sense. > > TEST > - I used a

Re: [PATCH v3 05/11] clk: tegra: prepare dfll driver for PWM regulator

2018-03-13 Thread Peter De Schrijver
On Mon, Mar 12, 2018 at 11:08:51AM +, Jon Hunter wrote: > > On 12/03/18 09:14, Peter De Schrijver wrote: > > On Thu, Mar 08, 2018 at 10:50:06PM +, Jon Hunter wrote: > >> > >> On 06/02/18 16:34, Peter De Schrijver wrote: > >>> This patch prepares the dfll driver to work with PWM regulators.

Re: [PATCH 3/3] staging:iio:ad2s1210: Add write_raw to handle frequency

2018-03-13 Thread Dan Carpenter
On Mon, Mar 12, 2018 at 03:21:52PM -0300, Rodrigo Siqueira wrote: > The write interface of AD2S1210 utilizes IIO_DEVICE_ATTR, which violate > the official IIO ABI. This patch, add the write_raw function responsible > for handling the fclkin and fexcit channel; also it removes the use of > IIO_DEVIC

Re: [PATCH] scsi: eata: drop VLA in reorder()

2018-03-13 Thread Christoph Hellwig
On Mon, Mar 12, 2018 at 10:35:36PM -0400, Martin K. Petersen wrote: > No objections to Salvatore's patch but I have a slight affinity for > retiring unused code over patching it. So unless there are objections... Lets kill it. And the not DMA capable eata_pio driver with it for good riddance. >

[PATCH] ASoC: da7219: clkdev_drop usage depends on CONFIG_COMMON_CLK

2018-03-13 Thread Adam Thomson
Fixes: ASoC: da7219: Add common clock usage for providing DAI clks clkdev_drop usage in the codec remove function should be dependent on if CONFIG_COMMON_CLK is defined for the platform, otherwise it can cause build failures for platforms that do not support this. The clkdev_* functions are still

[PATCH] venus: vdec: fix format enumeration

2018-03-13 Thread Alexandre Courbot
find_format_by_index() stops enumerating formats as soon as the index matches, and returns NULL if venus_helper_check_codec() finds out that the format is not supported. This prevents formats to be properly enumerated if a non-supported format is present, as the enumeration will end with it. Fix t

Re: [PATCH 4/4] gpio: Remove VLA from stmpe driver

2018-03-13 Thread Phil Reid
On 10/03/2018 08:10, Laura Abbott wrote: The new challenge is to remove VLAs from the kernel (see https://lkml.org/lkml/2018/3/7/621) This patch replaces a VLA with an appropriate call to kmalloc_array. Signed-off-by: Laura Abbott --- drivers/gpio/gpio-stmpe.c | 7 ++- 1 file changed, 6

[PATCH v3 00/11] Add Kconfig unit tests

2018-03-13 Thread Masahiro Yamada
I am applying various cleanups to Kconfig these days. However, I fear regressions. I have been thinking of unit-tests. There are various cryptic parts in Kconfig and corner cases where it is difficult to notice breakage. If unit-tests cover those, I will be able to apply changes more confidentl

Re: [pci PATCH v5 3/4] ena: Migrate over to unmanaged SR-IOV support

2018-03-13 Thread David Woodhouse
On Tue, 2018-03-13 at 09:54 +0100, Christoph Hellwig wrote: > On Tue, Mar 13, 2018 at 08:45:19AM +, David Woodhouse wrote: > Because binding to pci-stub means that you'd now enable the simple > SR-IOV for any device bound to PCI stub.  Which often might be the wrong > thing. No, *using* it w

[PATCH v3 10/11] kconfig: tests: test if recursive dependencies are detected

2018-03-13 Thread Masahiro Yamada
Recursive dependency should be detected and warned. Test this. This indirectly tests the line number increments. Signed-off-by: Masahiro Yamada Reviewed-by: Ulf Magnusson --- Changes in v3: None Changes in v2: - Fix missing end quote - coding style clean-up based on PEP8, PEP257 scripts

Re: linux-next on thinkpad x60: full battery is indicated as battery error in mate

2018-03-13 Thread Rafael J. Wysocki
On Tue, Mar 13, 2018 at 1:51 AM, Ognjen Galić wrote: > On Tue, Mar 13, 2018 at 12:18:47AM +0100, Pavel Machek wrote: >> Hi! >> >> > >> > >> Fully charged >> > >> > >> battery shows as empty battery with red "x" in Mate desktop. After >> > >> > >> reboot to recent mainline problem goes away. Toolti

[PATCH v3 06/11] kconfig: tests: check unneeded "is not set" with unmet dependency

2018-03-13 Thread Masahiro Yamada
Commit cb67ab2cd2b8 ("kconfig: do not write choice values when their dependency becomes n") fixed a problem where "# CONFIG_... is not set" for choice values are wrongly written into the .config file when they are once visible, then become invisible later. Add a test for this naive case. Signed-o

[PATCH v3 09/11] kconfig: tests: test randconfig for choice in choice

2018-03-13 Thread Masahiro Yamada
Commit 3b9a19e08960 ("kconfig: loop as long as we changed some symbols in randconfig") fixed randconfig where a choice contains a sub-choice. Prior to that commit, the sub-choice values were not set. I am not sure whether this is an intended feature or just something people discovered works, but i

[PATCH v3 04/11] kconfig: tests: test automatic submenu creation

2018-03-13 Thread Masahiro Yamada
If a symbols has dependency on the preceding symbol, the menu entry should become the submenu of the preceding one, and displayed with deeper indentation. This is done by restructuring the menu tree in menu_finalize(). It is a bit complicated computation, so let's add a test case. Signed-off-by:

[PATCH v3 11/11] kconfig: tests: test if recursive inclusion is detected

2018-03-13 Thread Masahiro Yamada
If recursive inclusion is detected, it should fail with error messages. Test this. This also tests the line numbers in the error message, fixed by commit 5ae6fcc4bb82 ("kconfig: fix line number in recursive inclusion error message"). Signed-off-by: Masahiro Yamada Reviewed-by: Ulf Magnusson --

Re: Atheros 1525/QCA6174 BT issue

2018-03-13 Thread Marcel Holtmann
Hi Takashi, we've got a but report about the broken Atheros BT on the recent kernels: http://bugzilla.opensuse.org/show_bug.cgi?id=1082504 In short, btusb can't load the patch ar3k/AthrBT_0x0200.dfu, and this could be worked around by the

Re: linux-next on thinkpad x60: full battery is indicated as battery error in mate

2018-03-13 Thread Rafael J. Wysocki
On Tue, Mar 13, 2018 at 10:14 AM, Rafael J. Wysocki wrote: > On Tue, Mar 13, 2018 at 1:51 AM, Ognjen Galić wrote: >> On Tue, Mar 13, 2018 at 12:18:47AM +0100, Pavel Machek wrote: >>> Hi! >>> >>> > >> > >> Fully charged >>> > >> > >> battery shows as empty battery with red "x" in Mate desktop. Aft

[PATCH v3 01/11] kbuild: add PYTHON2 and PYTHON3 variables

2018-03-13 Thread Masahiro Yamada
The variable 'PYTHON' allows users to specify a proper executable name in case the default 'python' does not work. However, this does not address the case where both Python 2.x and 3.x scripts are used in one source tree. PEP 394 (https://www.python.org/dev/peps/pep-0394/) provides a convention f

[PATCH v3 03/11] kconfig: tests: add basic choice tests

2018-03-13 Thread Masahiro Yamada
The calculation of 'choice' is a bit complicated part in Kconfig. The behavior of 'y' choice is intuitive. If choice values are tristate, the choice can be 'm' where each value can be enabled independently. Also, if a choice is marked as 'optional', the whole choice can be invisible. Test basic

[PATCH v3 08/11] kconfig: tests: test defconfig when two choices interact

2018-03-13 Thread Masahiro Yamada
Commit fbe98bb9ed3d ("kconfig: Fix defconfig when one choice menu selects options that another choice menu depends on") fixed defconfig when two choices interact (i.e. calculating the visibility of a choice requires to calculate another choice). The test code in that commit log was based on the re

[PATCH v3 07/11] kconfig: tests: check visibility of tristate choice values in y choice

2018-03-13 Thread Masahiro Yamada
If tristate choice values depend on symbols set to 'm', they should be hidden when the choice containing them is changed from 'm' to 'y' (i.e. exclusive choice). This issue was fixed by commit fa64e5f6a35e ("kconfig/symbol.c: handle choice_values that depend on 'm' symbols"). Add a test case to a

[PATCH v3 05/11] kconfig: tests: test if new symbols in choice are asked

2018-03-13 Thread Masahiro Yamada
If new choice values are added with new dependency, and they become visible during user configuration, oldconfig should recognize them as (NEW), and ask the user for choice. This issue was fixed by commit 5d09598d488f ("kconfig: fix new choices being skipped upon config update"). This is a subtle

[PATCH v3 02/11] kconfig: tests: add framework for Kconfig unit testing

2018-03-13 Thread Masahiro Yamada
Many parts in Kconfig are so cryptic and need refactoring. However, its complexity prevents us from moving forward. There are several naive corner cases where it is difficult to notice breakage. If those are covered by unit tests, we will be able to touch the code with more confidence. Here is

Re: [PATCH 3/5] arm64: dts: allwinner: a64: add simplefb for A64 SoC

2018-03-13 Thread Harald Geyer
Maxime Ripard writes: > On Mon, Mar 12, 2018 at 04:10:48PM +, Harald Geyer wrote: >> The A64 SoC features two display pipelines, one has a LCD output, the >> other has a HDMI output. >> >> Add support for simplefb for the LCD output. Tested on Teres I. >> >> This patch was inspired by work of I

Re: [PATCH 4.13 28/43] SMB3: Validate negotiate request must always be signed

2018-03-13 Thread Greg Kroah-Hartman
On Sun, Mar 11, 2018 at 07:37:55PM -0700, Steve French wrote: > Just got a wireshark trace - this is a fairly trivial issue (missing > the validate negotiate must be signed patch) - I had some trouble > getting this version of the kernel running (unrelated issue) and on > systems with access to Win

Re: [PATCH V3 0/4] genirq/affinity: irq vector spread among online CPUs as far as possible

2018-03-13 Thread Rafael J. Wysocki
On Tue, Mar 13, 2018 at 4:11 AM, Dou Liyang wrote: > Hi Thomas, > > At 03/09/2018 11:08 PM, Thomas Gleixner wrote: > [...] >> >> >> I'm not sure if there is a clear indicator whether physcial hotplug is >> supported or not, but the ACPI folks (x86) and architecture maintainers > > +cc Rafael > >>

Re: [PATCH v8 13/13] [media] v4l: Document explicit synchronization behavior

2018-03-13 Thread jacopo mondi
Hi Gustavo, a very small comment below On Fri, Mar 09, 2018 at 02:49:20PM -0300, Gustavo Padovan wrote: > From: Gustavo Padovan > > Add section to VIDIOC_QBUF and VIDIOC_QUERY_BUF about it > > v6: - Close some gaps in the docs (Hans) > > v5: > - Remove V4L2_CAP_ORDERED > - Add doc

Re: [BUG] perf record: GROUP_DESC not supported in pipe mode

2018-03-13 Thread Jiri Olsa
On Mon, Mar 12, 2018 at 06:06:54PM -0700, Stephane Eranian wrote: > Hi, > > I ran into a problem trying to group events in perf record while in pipe mode. > If I do: > > > $ perf record --group -e '{cycles, instructions}' -o - | perf report > -i - --group > > I do not get the profiles grouped t

Re: [GIT PULL] CRIS: Drop support for the CRIS-port

2018-03-13 Thread Jesper Nilsson
On Mon, Mar 12, 2018 at 09:21:25PM +0100, Arnd Bergmann wrote: > On Sun, Mar 11, 2018 at 12:05 PM, Jesper Nilsson > wrote: > > Hi Arnd, > > > > As promised, pull the below tag for the removal of the CRIS-port. > > There are still a few references to the CRIS port left, and they > > can be grouped

Re: [PATCHv3 0/8] hw_breakpoint: Breakpoint modification fixes and new modify ioctl

2018-03-13 Thread Jiri Olsa
On Tue, Mar 13, 2018 at 07:37:47AM +0100, Ingo Molnar wrote: > > * Jiri Olsa wrote: > > > Jiri Olsa (7): > > hw_breakpoint: Pass bp_type directly as find_slot_idx argument > > hw_breakpoint: Pass bp_type argument to > > __reserve_bp_slot|__release_bp_slot > > hw_breakpoint: Ad

Re: [PATCH v3 09/11] cpufreq: tegra124-cpufreq: extend to support Tegra210

2018-03-13 Thread Peter De Schrijver
On Mon, Mar 12, 2018 at 10:14:17AM +, Jon Hunter wrote: > > On 09/03/18 08:14, Peter De Schrijver wrote: > > On Thu, Mar 08, 2018 at 11:25:04PM +, Jon Hunter wrote: > >> > >> On 06/02/18 16:34, Peter De Schrijver wrote: > >>> Tegra210 has a very similar CPU clocking scheme than Tegra124. S

Re: hwmon/sch5627: Use common error handling code in sch5627_probe()

2018-03-13 Thread SF Markus Elfring
>  1 file changed, 29 insertions(+), 31 deletions(-) > > So you are asking people to review 60 changed lines to save 2, A bit of object code reduction might become useful also in this case. > that alone should be the point where you stop yourself from > *even* sending this patch. I proposed ju

Re: [PATCH 2/3] drm/meson: Use drm_dev_put() instead of drm_dev_unref()

2018-03-13 Thread Neil Armstrong
On 12/03/2018 21:15, Christophe JAILLET wrote: > According to 'drivers/gpu/drm/drm_drv.c', 'drm_dev_unref()' is just a > compatibility alias for 'drm_dev_put()'. So use the latter instead. > > Signed-off-by: Christophe JAILLET > --- > drivers/gpu/drm/meson/meson_drv.c | 4 ++-- > 1 file changed,

Re: [PATCH V3 0/4] genirq/affinity: irq vector spread among online CPUs as far as possible

2018-03-13 Thread Rafael J. Wysocki
On Tue, Mar 13, 2018 at 9:39 AM, Artem Bityutskiy wrote: > On Tue, 2018-03-13 at 16:35 +0800, Ming Lei wrote: >> Then looks this issue need to fix by making possible CPU count >> accurate >> because there are other resources allocated according to >> num_possible_cpus(), >> such as percpu variable

Re: [PATCH 3/3] drm/meson: Fix some error handling paths in 'meson_drv_bind_master()'

2018-03-13 Thread Neil Armstrong
On 12/03/2018 21:15, Christophe JAILLET wrote: > If one of these functions fail, we whould free 'drm', as alreadry done in > the other error handling paths, below and above. > > Fixes: bbbe775ec5b5 ("drm: Add support for Amlogic Meson Graphic Controller") > Signed-off-by: Christophe JAILLET > ---

Re: [PATCH 1/3] drm/meson: Fix an un-handled error path in 'meson_drv_bind_master()'

2018-03-13 Thread Neil Armstrong
On 12/03/2018 21:15, Christophe JAILLET wrote: > 'drm_vblank_init()' can fail. So handle this (unlikely) error. > > Fixes: bbbe775ec5b5 ("drm: Add support for Amlogic Meson Graphic Controller") > Signed-off-by: Christophe JAILLET > --- > drivers/gpu/drm/meson/meson_drv.c | 5 - > 1 file chan

Re: [PATCH AUTOSEL for 4.14 065/110] led: core: Fix brightness setting when setting delay_off=0

2018-03-13 Thread Greg KH
On Mon, Mar 12, 2018 at 09:20:48PM +0100, Jacek Anaszewski wrote: > On 03/12/2018 04:45 PM, Matthias Schiffer wrote: > > On 03/12/2018 04:28 PM, Greg KH wrote: > >> On Mon, Mar 12, 2018 at 04:00:01PM +0100, Matthias Schiffer wrote: > >>> On 02/06/2018 09:44 PM, Jacek Anaszewski wrote: > On 02/

Re: [PATCH v3 04/11] perf vendor events: add support for pmu events vendor subdirectory

2018-03-13 Thread John Garry
On 12/03/2018 18:28, Arnaldo Carvalho de Melo wrote: Em Thu, Mar 08, 2018 at 06:58:29PM +0800, John Garry escreveu: index 1d02faf..7b9e210 100644 --- a/tools/perf/pmu-events/jevents.c @@ -739,25 +739,77 @@ static int get_maxfds(void) static FILE *eventsfp; static char *mapfile; +static int is

Re: [PATCH 2/2] misc: ocxl: use put_device() instead of device_unregister()

2018-03-13 Thread Frederic Barrat
Le 12/03/2018 à 12:36, Arvind Yadav a écrit : if device_register() returned an error! Always use put_device() to give up the reference initialized. Signed-off-by: Arvind Yadav --- OK, device_unregister() calls put_device() but also other actions that we can skip in this case. Acked-by: F

Re: [PATCH v9 1/5] driver core: Find an existing link between two devices

2018-03-13 Thread Rafael J. Wysocki
On Tuesday, March 13, 2018 9:55:30 AM CET Vivek Gautam wrote: > The lists managing the device-links can be traversed to > find the link between two devices. The device_link_add() APIs > does traverse these lists to check if there's already a link > setup between the two devices. > So, add a new API

Re: [PATCH 0/3] Fix some error handling paths in 'meson_drv_bind_master()'

2018-03-13 Thread Neil Armstrong
On 12/03/2018 21:15, Christophe JAILLET wrote: > Patch 1 and 3 are fixes. > Patch 2 is just a kind of clean-up noticed while patching this driver. > > If patch 2 is considered as useless, patch 3 can be applied on top of > patch 1, it does nor depend on the 2nd patch. > > Christophe JAILLET (3):

Re: [PATCH 0/4] VLA removal from the GPIO subsystem

2018-03-13 Thread Linus Walleij
On Sat, Mar 10, 2018 at 1:10 AM, Laura Abbott wrote: > For those who haven't seen it, there's an effort to remove VLAs from the > kernel so we can turn on -Wvla in the name of security. See > https://lkml.org/lkml/2018/3/7/621 for more details and discussion. OK I read up on it, I'm on board! Le

Re: [PATCH v2 7/8] [PATCH 7/8] drivers/hwmon: Add a generic PECI hwmon client driver

2018-03-13 Thread Stef van Os
Hi Jae, I tried version 1 and 2 of your PECI patch on our (AST2500 / Xeon E5 v4) system. The V1 patchset works as expected (reading back temperature 0 until PECI is up), but the hwmon driver probe fails with version 2. It communicates with the Xeon and assumes during kernel boot of the Aspeed

[PATCH] staging: wilc1000: destroy initialized mutex object

2018-03-13 Thread hariprasath . elango
From: HariPrasath Elango A mutex object that is initialized but not destroyed.This patch destroys the mutex object Signed-off-by: HariPrasath Elango --- drivers/staging/wilc1000/wilc_wfi_cfgoperations.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/staging/wilc1000/wilc_wfi_cfgop

Re: [PATCH v2 2/2] mfd: rk808: Add restart functionality

2018-03-13 Thread Daniel Schultz
Hi, I can add a DTS property to enable the PMIC restart functions? So this feature can be used if its desired. My problem with the CRU reset is a strange behaviour in the ROM code. During a reset from MMC1 (eMMC), the ROM tries to load the SPL from MMC0 (SD). Daniel On 03/13/2018 04:32 A

[PATCH] ACPI / PM: Reduce LPI constraints logging noise

2018-03-13 Thread Rafael J. Wysocki
From: Rafael J. Wysocki If a device referred to by ACPI LPI constrains (coming from function 1 of the Low Power S0 Idle _DSM interface) is not power-manageable via ACPI (no _PS0 method and no power resources), the code generating diagnostic information for the LPI constraints will print a message

Re: Re: Regarding slabinfo tool generating kernel crash

2018-03-13 Thread Michal Hocko
[Sorry for a late reply] On Thu 01-03-18 12:48:10, Gopi Sai Teja wrote: > Hi all, > > Please find the crash logs attached tested on 4.4.0-116-generic #140-Ubuntu. > How to reproduce: > > Boot the kernel with all slab debug flags enabled(red_zone, poison, > sanity_checks, store_user) > > and ru

Re: [PATCHv3 0/8] hw_breakpoint: Breakpoint modification fixes and new modify ioctl

2018-03-13 Thread Jiri Olsa
On Tue, Mar 13, 2018 at 10:28:01AM +0100, Jiri Olsa wrote: > On Tue, Mar 13, 2018 at 07:37:47AM +0100, Ingo Molnar wrote: > > > > * Jiri Olsa wrote: > > > > > Jiri Olsa (7): > > > hw_breakpoint: Pass bp_type directly as find_slot_idx argument > > > hw_breakpoint: Pass bp_type argumen

Re: [PATCH v3 09/11] cpufreq: tegra124-cpufreq: extend to support Tegra210

2018-03-13 Thread Peter De Schrijver
On Mon, Mar 12, 2018 at 12:15:22PM +, Jon Hunter wrote: > > On 06/02/18 16:34, Peter De Schrijver wrote: > > Tegra210 has a very similar CPU clocking scheme than Tegra124. So add > > support in this driver. Also allow for the case where the CPU voltage is > > controlled directly by the DFLL ra

linux-next: build failure after merge of the akpm-current tree

2018-03-13 Thread Stephen Rothwell
Hi Andrew, After merging the akpm-current tree, today's linux-next build (lots of configuations) failed like this: (from the i386 defconfig build) In file included from include/linux/memcontrol.h:29:0, from include/linux/swap.h:9, from include/linux/suspend.h:5,

Re: [PATCH v9 1/5] driver core: Find an existing link between two devices

2018-03-13 Thread Vivek Gautam
On Tue, Mar 13, 2018 at 3:10 PM, Rafael J. Wysocki wrote: > On Tuesday, March 13, 2018 9:55:30 AM CET Vivek Gautam wrote: >> The lists managing the device-links can be traversed to >> find the link between two devices. The device_link_add() APIs >> does traverse these lists to check if there's alr

Re: [PATCH 4.4 31/36] sctp: verify size of a new chunk in _sctp_make_chunk()

2018-03-13 Thread Greg Kroah-Hartman
On Tue, Mar 13, 2018 at 12:46:58AM +, Ben Hutchings wrote: > On Fri, 2018-03-09 at 16:18 -0800, Greg Kroah-Hartman wrote: > > 4.4-stable review patch.  If anyone has any objections, please let me know. > > > > -- > > > > From: Alexey Kodanev > > > > > > [ Upstream commit 07

[PATCH v4 2/2] kconfig: make unmet dependency warnings readable

2018-03-13 Thread Masahiro Yamada
Currently, the unmet dependency warnings end up with endlessly long expressions, most of which are false positives. Here is test code to demonstrate how it currently works. [Test Case] config DEP1 def_bool y config DEP2 bool "DEP2" config A bool "A"

Re: [PATCHv2] staging: wilc1000: use pre-defined macro is_broadcast_ether_addr

2018-03-13 Thread Greg Kroah-Hartman
On Tue, Mar 13, 2018 at 01:00:51PM +0530, Ajay Singh wrote: > > Reviewed-by: Ajay Singh > > On Mon, 12 Mar 2018 15:09:03 +0530 > wrote: > > > From: HariPrasath Elango > > > > Please avoid use of 'From' tag specially when there is only one > 'Signed-off-by' tag and its same. But the email cl

[PATCH v4 1/2] kconfig: warn unmet direct dependency of tristate symbols selected by y

2018-03-13 Thread Masahiro Yamada
Commit 246cf9c26bf1 ("kbuild: Warn on selecting symbols with unmet direct dependencies") forcibly promoted ->dir_dep.tri to yes from mod. So, the unmet direct dependencies of tristate symbols are not reported. [Test Case] config MODULES def_bool y option modules config A

RE: [PATCH 1/3] bus: fsl-mc: add restool userspace support

2018-03-13 Thread Ioana Ciornei
Hi, Comments inline. > > Adding kernel support for restool, a userspace tool for resource > > management, means exporting an ioctl capable device file representing > > the root resource container. > > This new functionality in the fsl-mc bus driver intends to provide > > restool an interface to

[PATCH V3] nvme-pci: assign separate irq vectors for adminq and ioq1

2018-03-13 Thread Jianchao Wang
Currently, adminq and ioq1 share the same irq vector which is set affinity to cpu0. If a system allows cpu0 to be offlined, the adminq will not be able work any more. To fix this, assign separate irq vectors for adminq and ioq1. Set .pre_vectors == 1 when allocate irq vectors, then assign the firs

Re: [PATCH v9 1/5] driver core: Find an existing link between two devices

2018-03-13 Thread Vivek Gautam
On Tue, Mar 13, 2018 at 2:25 PM, Vivek Gautam wrote: > The lists managing the device-links can be traversed to > find the link between two devices. The device_link_add() APIs > does traverse these lists to check if there's already a link > setup between the two devices. > So, add a new APIs, devic

RE: [PATCH 2/3] bus: fsl-mc: add root dprc rescan attribute

2018-03-13 Thread Ioana Ciornei
> > Introduce the rescan attribute as a device attribute to synchronize > > the fsl-mc bus objects and the MC firmware. > > > > To rescan the root dprc only, e.g. > > echo 1 > /sys/bus/fsl-mc/devices/dprc.1/rescan > > > > Signed-off-by: Ioana Ciornei > > --- > > drivers/bus/fsl-mc/dprc-driver.c

Re: [PATCH v1 0/4] perf annotate: Create a new '--tui-dump' option

2018-03-13 Thread Mason
On 13/03/2018 15:16, Jin Yao wrote: [snip] There seems to be something wonky about your system's clock? The Date field in your messages: Date: Tue, 13 Mar 2018 22:16:50 +0800 i.e. 14:16:50 GMT Yet it was actually processed at 06:20:35 GMT So it looks like your clock is 7h56 ahead of t

Re: [PATCH 2/5] arm64: dts: allwinner: a64: Add watchdog

2018-03-13 Thread Harald Geyer
Hi, André Przywara writes: > On 12/03/18 16:10, Harald Geyer wrote: > > Add a watchdog node for the A64, automatically enabled on all boards. > > Tested on Olimex Teres I. > > > > Signed-off-by: Harald Geyer > > --- > > arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi | 6 ++ > > 1 file change

Re: [PATCH 0/29] arm meltdown fix backporting review for lts 4.9

2018-03-13 Thread Greg KH
On Tue, Mar 06, 2018 at 09:31:29PM +, Mark Brown wrote: > On Tue, Mar 06, 2018 at 09:25:25AM -0800, Greg KH wrote: > > On Tue, Mar 06, 2018 at 02:26:34PM +, Mark Brown wrote: > > Really? Like what? Last I looked it's only about 300 or so patches. > > Something like less than .5% of the no

Re: [PATCH v3] kconfig: make unmet dependency warnings readable

2018-03-13 Thread Masahiro Yamada
2018-03-13 7:59 GMT+09:00 Eugeniu Rosca : > Hi Masahiro, > > Some "final polishing" review comments. Feel free to pick/drop them at > your will. > > On Sun, Mar 11, 2018 at 12:51:59AM +0900, Masahiro Yamada wrote: >> Currently, the unmet dependency warnings end up with endlessly long >> expressions

Re: [PATCH 0/29] arm meltdown fix backporting review for lts 4.9

2018-03-13 Thread Greg KH
On Wed, Mar 07, 2018 at 06:24:09PM +, Ard Biesheuvel wrote: > On 2 March 2018 at 16:54, Greg KH wrote: > > On Fri, Mar 02, 2018 at 05:14:50PM +0800, Alex Shi wrote: > >> > >> > >> On 03/01/2018 11:24 PM, Greg KH wrote: > >> > On Wed, Feb 28, 2018 at 11:56:22AM +0800, Alex Shi wrote: > >> >> Hi

Re: [PATCH v3 05/11] clk: tegra: prepare dfll driver for PWM regulator

2018-03-13 Thread Jon Hunter
On 13/03/18 09:03, Peter De Schrijver wrote: > On Mon, Mar 12, 2018 at 11:08:51AM +, Jon Hunter wrote: >> >> On 12/03/18 09:14, Peter De Schrijver wrote: >>> On Thu, Mar 08, 2018 at 10:50:06PM +, Jon Hunter wrote: On 06/02/18 16:34, Peter De Schrijver wrote: > This patch prep

[PATCH] drm/meson: Add support for DMT modes on HDMI

2018-03-13 Thread Neil Armstrong
This patch adds support for DMT display modes over HDMI. The modes timings configurations are from the Amlogic Vendor linux tree and tested over multiples monitors. Previously only a selected number of CEA modes were supported. Only these following modes are supported with these changes: - 640x480

[PATCH] staging: wilc1000: replace switch statement by simple if condition

2018-03-13 Thread hariprasath . elango
From: HariPrasath Elango In this case,there is only a single switch case statement.So replacing by a simple if condition. Signed-off-by: HariPrasath Elango --- drivers/staging/wilc1000/wilc_wfi_cfgoperations.c | 8 +--- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/drivers/s

Re: [PATCH 0/29] arm meltdown fix backporting review for lts 4.9

2018-03-13 Thread Ard Biesheuvel
On 13 March 2018 at 10:04, Greg KH wrote: > On Wed, Mar 07, 2018 at 06:24:09PM +, Ard Biesheuvel wrote: >> On 2 March 2018 at 16:54, Greg KH wrote: >> > On Fri, Mar 02, 2018 at 05:14:50PM +0800, Alex Shi wrote: >> >> >> >> >> >> On 03/01/2018 11:24 PM, Greg KH wrote: >> >> > On Wed, Feb 28, 2

Re: [PATCH 3/3] tracing: Rewrite filter logic to be simpler and faster

2018-03-13 Thread Jiri Olsa
On Mon, Mar 12, 2018 at 07:52:45PM -0400, Steven Rostedt wrote: > On Mon, 12 Mar 2018 19:54:14 +0100 > Jiri Olsa wrote: > > > On Mon, Mar 12, 2018 at 02:40:01PM -0400, Steven Rostedt wrote: > > > On Mon, 12 Mar 2018 16:10:17 +0100 > > > Jiri Olsa wrote: > > > > > > > got it crashed when clear

Re: [PATCH v9 1/5] driver core: Find an existing link between two devices

2018-03-13 Thread Tomasz Figa
Hi Vivek, Thanks for the patch. On Tue, Mar 13, 2018 at 5:55 PM, Vivek Gautam wrote: > The lists managing the device-links can be traversed to > find the link between two devices. The device_link_add() APIs > does traverse these lists to check if there's already a link > setup between the two de

Re: [PATCH ghak21 V2 3/4] audit: add refused symlink to audit_names

2018-03-13 Thread Richard Guy Briggs
On 2018-03-13 09:35, Steve Grubb wrote: > On Mon, 12 Mar 2018 11:52:56 -0400 > Richard Guy Briggs wrote: > > > On 2018-03-12 11:53, Paul Moore wrote: > > > On Mon, Mar 12, 2018 at 11:26 AM, Richard Guy Briggs > > > wrote: > > > > On 2018-03-12 11:12, Paul Moore wrote: > > > >> On Mon, Mar 12

Re: [PATCH v5 1/4] dt-bindings: firmware: Add bindings for ZynqMP firmware

2018-03-13 Thread Sudeep Holla
On 12/03/18 23:07, Jolly Shah wrote: > Hi Sudeep, Do you foresee using SMC/HVC for this firmware even on future platforms? If not, I suggest to keep the protocol part separate from the transport i.e. smc/hvc via ATF. It could be replaced with mailbox or some h/w mechani

[PATCH] ARM: dts: sun8i-h3: Add Mali node

2018-03-13 Thread Giulio Benetti
The H3 has an ARM Mali 400 GPU, so add binding to our DT. Signed-off-by: Giulio Benetti --- .../devicetree/bindings/gpu/arm,mali-utgard.txt| 1 + arch/arm/boot/dts/sun8i-h3.dtsi| 27 ++ 2 files changed, 28 insertions(+) diff --git a/Documentation/dev

Re: [PATCH] clk: mvebu: armada-38x: add support for missing clocks

2018-03-13 Thread Richard Genoud
On 08/03/2018 14:23, Gregory CLEMENT wrote: > Hi, > > On jeu., mars 08 2018, Gregory CLEMENT wrote: > >> Hi Richard, >> >> On jeu., mars 08 2018, Richard Genoud wrote: >> >>> Clearfog boards can come with a CPU clocked at 1600MHz (commercial) >>> or 1333MHz (industrial). >>> >>> They have

Re: [PATCH v3 09/11] cpufreq: tegra124-cpufreq: extend to support Tegra210

2018-03-13 Thread Jon Hunter
On 13/03/18 09:51, Peter De Schrijver wrote: > On Mon, Mar 12, 2018 at 12:15:22PM +, Jon Hunter wrote: >> >> On 06/02/18 16:34, Peter De Schrijver wrote: >>> Tegra210 has a very similar CPU clocking scheme than Tegra124. So add >>> support in this driver. Also allow for the case where the CPU

[RFC][PATCH] sched/wait_bit: Introduce wait_var_event()/wake_up_var()

2018-03-13 Thread Peter Zijlstra
On Sun, Mar 11, 2018 at 10:15:55AM -0700, Dan Williams wrote: > On Sun, Mar 11, 2018 at 4:27 AM, Peter Zijlstra wrote: > > On Fri, Mar 09, 2018 at 10:55:32PM -0800, Dan Williams wrote: > >> Add a generic facility for awaiting an atomic_t to reach a value of 1. > >> > >> Page reference counts typic

Re: [PATCH v16 0/9] LPC: legacy ISA I/O support

2018-03-13 Thread Rafael J. Wysocki
On Tue, Mar 6, 2018 at 5:22 PM, John Garry wrote: > > Based on this patch-set, all the I/O accesses to Hip06/Hip07 LPC > peripherals can > be supported without any changes on the existing ipmi-si driver. > > The whole patchset has been tested on Hip07 D05 board both using D

Re: Regression from efi: call get_event_log before ExitBootServices

2018-03-13 Thread Thiebaud Weksteen
On Tue, Mar 13, 2018 at 8:59 AM Ard Biesheuvel wrote: > On 13 March 2018 at 07:47, Hans de Goede wrote: > > Hi, > > > > > > On 12-03-18 20:55, Thiebaud Weksteen wrote: > >> > ... > >> > >> Hans, you said you configured the tablet to use the 32-bit version of grub > >> instead > >> of 64. Why's t

Re: [RFCv4,19/21] media: vim2m: add request support

2018-03-13 Thread Alexandre Courbot
On Fri, Mar 9, 2018 at 11:35 PM, Paul Kocialkowski wrote: > Hi, > > On Thu, 2018-03-08 at 22:48 +0900, Alexandre Courbot wrote: >> Hi Paul! >> >> Thanks a lot for taking the time to try this! I am also working on >> getting it to work with an actual driver, but you apparently found >> rough edges

Re: [PATCH v5 2/4] drivers: firmware: xilinx: Add ZynqMP firmware driver

2018-03-13 Thread Sudeep Holla
On 12/03/18 23:05, Jolly Shah wrote: > [...] >> >> OK, what are the types you are referring here ? or why PSCI is not >> sufficient ? >> How do you plan to use these APIs in Linux ? > > It supports system/subsystem restart as types. For example, only APU > restart, system restart, PS restart

Re: [PATCHv2 2/2] zram: drop max_zpage_size and use zs_huge_class_size()

2018-03-13 Thread Sergey Senozhatsky
Hello Minchan, On (03/13/18 18:02), Minchan Kim wrote: > Sorry for being late. > I love this patchset! Just a minor below. :) [..] > > + if (!huge_class_size) > > + huge_class_size = zs_huge_class_size(); > > If it is static, we can do this in zram_init? I believe it's more readable

Re: [PATCH 09/11] media: vsp1: Provide support for extended command pools

2018-03-13 Thread Kieran Bingham
Hi Jacopo, On 12/03/18 16:30, jacopo mondi wrote: > Hi Kieran, > just one small thing I noticed below... > > On Fri, Mar 09, 2018 at 10:04:07PM +, Kieran Bingham wrote: >> VSPD and VSP-DL devices can provide extended display lists supporting >> extended command display list objects. >> >>

Re: [PATCH v2] usb: core: introduce per-port over-current counters

2018-03-13 Thread Richard Leitner
Hi Greg, On 03/09/2018 06:19 PM, Greg KH wrote: >> diff --git a/Documentation/ABI/testing/sysfs-bus-usb >> b/Documentation/ABI/testing/sysfs-bus-usb >> index 0bd731cbb50c..27020293c85b 100644 >> --- a/Documentation/ABI/testing/sysfs-bus-usb >> +++ b/Documentation/ABI/testing/sysfs-bus-usb >> @@ -

[PATCH][next] lib: make function test_ubsan_misaligned_access static

2018-03-13 Thread Colin King
From: Colin Ian King The function test_ubsan_misaligned_access is local to the source and does not need to be in global scope, so make it static. Cleans up sparse warning: lib/test_ubsan.c:91:6: warning: symbol 'test_ubsan_misaligned_access' was not declared. Should it be static? Signed-off-by:

Re: Regression from efi: call get_event_log before ExitBootServices

2018-03-13 Thread Ard Biesheuvel
On 13 March 2018 at 10:23, Thiebaud Weksteen wrote: > On Tue, Mar 13, 2018 at 8:59 AM Ard Biesheuvel > wrote: > >> On 13 March 2018 at 07:47, Hans de Goede wrote: ... >> > Could the problem perhaps be that the new code for the TPM event-log is >> > missing some handling to deal with running on a

Re: [2/2] net/usb/ax88179_178a: Delete three unnecessary variables in ax88179_chk_eee()

2018-03-13 Thread Oliver Neukum
Am Dienstag, den 13.03.2018, 08:24 +0100 schrieb SF Markus Elfring: > > > > > > > > Use three values directly for a condition check without assigning them > > > to intermediate variables. > > > > Hi, > > > > what is the benefit of this? > > I proposed a small source code reduction. > > Other

Re: [PATCH] clk: mvebu: armada-38x: add support for missing clocks

2018-03-13 Thread Gregory CLEMENT
Hi Richard, On mar., mars 13 2018, Richard Genoud wrote: > On 08/03/2018 14:23, Gregory CLEMENT wrote: >> Hi, >> >> On jeu., mars 08 2018, Gregory CLEMENT wrote: >> >>> Hi Richard, >>> >>> On jeu., mars 08 2018, Richard Genoud wrote: >>> Clearfog boards can come with a CPU clocke

Re: [PATCH v9 1/5] driver core: Find an existing link between two devices

2018-03-13 Thread Vivek Gautam
Hi Tomasz, On Tue, Mar 13, 2018 at 3:45 PM, Tomasz Figa wrote: > Hi Vivek, > > Thanks for the patch. > > On Tue, Mar 13, 2018 at 5:55 PM, Vivek Gautam > wrote: >> The lists managing the device-links can be traversed to >> find the link between two devices. The device_link_add() APIs >> does trav

[PATCH v4] cpufreq: schedutil: rate limits for SCHED_DEADLINE

2018-03-13 Thread Claudio Scordino
When the SCHED_DEADLINE scheduling class increases the CPU utilization, we should not wait for the rate limit, otherwise we may miss some deadline. Tests using rt-app on Exynos5422 with up to 10 SCHED_DEADLINE tasks have shown reductions of even 10% of deadline misses with a negligible increase of

Re: [PATCH 00/11] RISC-V: Resolve the issue of loadable module on 64-bit

2018-03-13 Thread Zong Li
2018-03-13 16:35 GMT+08:00 Zong Li : > > These patches resolve the some issues of loadable module. > - symbol out of ranges > - unknown relocation types > > The reference of external variable and function symbols > cannot exceed 32-bit offset ranges in kernel module. > The module only can work

Re: [PATCH] drm/meson: Add support for DMT modes on HDMI

2018-03-13 Thread Jerome Brunet
On Tue, 2018-03-13 at 11:07 +0100, Neil Armstrong wrote: > This patch adds support for DMT display modes over HDMI. > The modes timings configurations are from the Amlogic Vendor linux tree > and tested over multiples monitors. > Previously only a selected number of CEA modes were supported. > > O

[PATCH v1 1/2] dt-bindings: usb: Update documentation for Qualcomm DWC3 driver

2018-03-13 Thread Manu Gautam
Existing documentation has lot of incorrect information as it was originally added for a driver that no longer exists. Signed-off-by: Manu Gautam --- .../devicetree/bindings/usb/qcom,dwc3.txt | 87 +++--- 1 file changed, 59 insertions(+), 28 deletions(-) diff --git a/Do

[PATCH v1 2/2] usb: dwc3: Add Qualcomm DWC3 glue driver

2018-03-13 Thread Manu Gautam
DWC3 controller on Qualcomm SOCs has a Qscratch wrapper. Some of its uses are described below resulting in need to have a separate glue driver instead of using dwc3-of-simple: - It exposes register interface to override vbus-override and lane0-pwr-present signals going to hardware. These mus

[PATCH 0/5 v2] Using the hash in MOKx to blacklist kernel module

2018-03-13 Thread Lee, Chun-Yi
This patch set is base on the efi-lock-down and keys-uefi branchs in David Howells's linux-fs git tree. https://git.kernel.org/pub/scm/linux/kernel/git/dhowells/linux-fs.git/log/?h=keys-uefi The main purpose is using the MOKx to blacklist kernel module. As the MOK (Machine Owner Key), MOKx i

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