Re: [PATCH 4/9] mmc: sdhci-sprd: Implement the get_max_timeout_count() interface

2019-06-03 Thread Adrian Hunter
On 20/05/19 1:11 PM, Baolin Wang wrote: > Implement the get_max_timeout_count() interface to set the Spredtrum SD > host controller actual maximum timeout count. > > Signed-off-by: Baolin Wang Seems surprising that there isn't a custom ->set_timeout() as well. Nevertheless: Acked-by: Adrian

Re: [PATCH 1/2] powerpc/lib: fix redundant inclusion of quad.o

2019-06-03 Thread Michael Ellerman
On Mon, 2019-05-13 at 10:00:14 UTC, Christophe Leroy wrote: > quad.o is only for PPC64, and already included in obj64-y, > so it doesn't have to be in obj-y > > Fixes: 31bfdb036f12 ("powerpc: Use instruction emulation infrastructure to > handle alignment faults") > Signed-off-by: Christophe

Re: [PATCH -next] powerpc/book3s64: Make some symbols static

2019-06-03 Thread Michael Ellerman
On Sat, 2019-05-04 at 10:24:27 UTC, YueHaibing wrote: > Fix sparse warnings: > > arch/powerpc/mm/book3s64/radix_pgtable.c:326:13: warning: symbol > 'radix_init_pgtable' was not declared. Should it be static? > arch/powerpc/mm/book3s64/hash_native.c:48:1: warning: symbol > 'native_tlbie_lock'

Re: [PATCH] dlpar: Fix a missing-check bug in dlpar_parse_cc_property()

2019-06-03 Thread Michael Ellerman
On Sun, 2019-05-26 at 02:42:40 UTC, Gen Zhang wrote: > In dlpar_parse_cc_property(), 'prop->name' is allocated by kstrdup(). > kstrdup() may return NULL, so it should be checked and handle error. > And prop should be freed if 'prop->name' is NULL. > > Signed-off-by: Gen Zhang > Acked-by: Nathan

Re: [PATCH -next] misc: ocxl: Make ocxl_remove static

2019-06-03 Thread Michael Ellerman
On Sat, 2019-05-04 at 10:27:20 UTC, YueHaibing wrote: > Fix sparse warning: > > drivers/misc/ocxl/pci.c:44:6: warning: > symbol 'ocxl_remove' was not declared. Should it be static? > > Reported-by: Hulk Robot > Signed-off-by: YueHaibing > Acked-by: Andrew Donnellan Applied to powerpc next,

Re: [PATCH V7 1/2] soc: imx: Add SCU SoC info driver support

2019-06-03 Thread Shawn Guo
On Fri, May 24, 2019 at 01:52:36AM +, Anson Huang wrote: > Add i.MX SCU SoC info driver to support i.MX8QXP SoC, introduce > driver dependency into Kconfig as CONFIG_IMX_SCU must be > selected to support i.MX SCU SoC driver, also need to use > platform driver model to make sure IMX_SCU driver

Re: [PATCH] powerpc/powernv/npu: Fix reference leak

2019-06-03 Thread Michael Ellerman
On Fri, 2019-04-19 at 15:34:13 UTC, Greg Kurz wrote: > Since 902bdc57451c, get_pci_dev() calls pci_get_domain_bus_and_slot(). This > has the effect of incrementing the reference count of the PCI device, as > explained in drivers/pci/search.c: > > * Given a PCI domain, bus, and slot/function

Re: [PATCH v11 2/2] usb: xhci: Add Clear_TT_Buffer

2019-06-03 Thread Mathias Nyman
On 3.6.2019 13.53, Jim Lin wrote: USB 2.0 specification chapter 11.17.5 says "as part of endpoint halt processing for full-/low-speed endpoints connected via a TT, the host software must use the Clear_TT_Buffer request to the TT to ensure that the buffer is not in the busy state". In our case,

Re: [PATCH v7 1/2] mfd: cros_ec: Register cros_ec_lid_angle driver when presented

2019-06-03 Thread Lee Jones
On Fri, 17 May 2019, Gwendal Grignou wrote: > Register driver when EC indicates has precise lid angle calculation code > running. > Fix incorrect extra resource allocation in cros_ec_sensors_register(). > > Signed-off-by: Gwendal Grignou > --- > Changes in v7: > - Split patch in two: This is

Re: [PATCH v9 12/16] sched/core: uclamp: Extend CPU's cgroup controller

2019-06-03 Thread Patrick Bellasi
On 31-May 08:35, Tejun Heo wrote: > Hello, Patrick. > > On Wed, May 15, 2019 at 10:44:55AM +0100, Patrick Bellasi wrote: [...] > For proportions (as opposed to weights), we use percentage rational > numbers - e.g. 38.44 for 38.44%. I have parser and doc update commits > pending. I'll put them

Re: [RFC 2/6] ipv4: add lockdep condition to fix for_each_entry

2019-06-03 Thread Joel Fernandes
On Mon, Jun 3, 2019 at 2:42 AM Pavel Machek wrote: > > On Sun 2019-06-02 08:24:35, Joel Fernandes wrote: > > On Sun, Jun 2, 2019 at 8:20 AM Joel Fernandes > > wrote: > > > > > > On Sun, Jun 2, 2019 at 3:00 AM Pavel Machek wrote: > > > > > > > > On Sat 2019-06-01 18:27:34, Joel Fernandes

Re: [PATCH RESEND] arm64: defconfig: Enable CONFIG_QORIQ_THERMAL

2019-06-03 Thread Shawn Guo
On Fri, May 24, 2019 at 12:40:37AM +, Anson Huang wrote: > i.MX8MQ needs CONFIG_QORIQ_THERMAL for thermal support. > > Signed-off-by: Anson Huang Applied, thanks.

Re: [PATCH v9 12/16] sched/core: uclamp: Extend CPU's cgroup controller

2019-06-03 Thread Patrick Bellasi
On 31-May 08:35, Tejun Heo wrote: [...] > > These attributes: > > > > a) are available only for non-root nodes, both on default and legacy > >hierarchies, while system wide clamps are defined by a generic > >interface which does not depends on cgroups. This system wide > >interface

Re: [PATCH] m68k: io: Fix io{read,write}{16,32}be() for Coldfire peripherals

2019-06-03 Thread Angelo Dureghello
Hi Greg (and all), couldn't seen any follow up on this patch. I tested it and at least for mcf5441x it works properly and solves all issues. Do you think it may be accepted as an initial fix ? Regards, Angelo On Mon, Apr 29, 2019 at 10:19:37AM +0200, Geert Uytterhoeven wrote: > The generic

[PATCH net-next v3] hinic: add LRO support

2019-06-03 Thread Xue Chaojing
This patch adds LRO support for the HiNIC driver. Signed-off-by: Xue Chaojing --- .../net/ethernet/huawei/hinic/hinic_hw_dev.c | 2 + .../net/ethernet/huawei/hinic/hinic_hw_dev.h | 8 +- .../net/ethernet/huawei/hinic/hinic_hw_io.c | 58 +

Re: [PATCH v9 12/16] sched/core: uclamp: Extend CPU's cgroup controller

2019-06-03 Thread Patrick Bellasi
On 31-May 08:35, Tejun Heo wrote: > Hello, Patrick. Hi Tejun! > On Wed, May 15, 2019 at 10:44:55AM +0100, Patrick Bellasi wrote: > > Extend the CPU controller with a couple of new attributes util.{min,max} > > which allows to enforce utilization boosting and capping for all the > > tasks in a

Re: [PATCH 7/7] media: cedrus: Improve H264 memory efficiency

2019-06-03 Thread Maxime Ripard
On Thu, May 30, 2019 at 11:15:16PM +0200, Jernej Skrabec wrote: > H264 decoder driver preallocated pretty big worst case mv col buffer > pool. It turns out that pool is most of the time much bigger than it > needs to be. > > Solution implemented here is to allocate memory only if capture buffer >

Re: [PATCH v11 0/2] usb: xhci: Add Clear_TT_Buffer

2019-06-03 Thread Greg KH
On Mon, Jun 03, 2019 at 06:53:42PM +0800, Jim Lin wrote: > USB 2.0 specification chapter 11.17.5 says "as part of endpoint halt > processing for full-/low-speed endpoints connected via a TT, the host > software must use the Clear_TT_Buffer request to the TT to ensure > that the buffer is not in

Re: [PATCH 3/9] mmc: sdhci-sprd: Add optional gate clock support

2019-06-03 Thread Adrian Hunter
On 20/05/19 1:11 PM, Baolin Wang wrote: > For the Spreadtrum SC9860 platform, we should enable another gate clock > '2x_enable' to make the SD host controller work well. > > Signed-off-by: Baolin Wang Acked-by: Adrian Hunter > --- > drivers/mmc/host/sdhci-sprd.c | 35

[PATCH 2/3] drivers/staging/rtl8192u: Remove comment-out code

2019-06-03 Thread Christian Müller
From: Felix Trommer Remove the majority of all commented-out code. Commented out code, that was adressed by a comment itself is not removed. The code that we left in as comments was mostly due to the "pseudo-code"-like nature of the code that helped to clarify certain functionalities.

[PATCH 3/3] drivers/staging/rtl8192u: Fix of checkpatch-errors

2019-06-03 Thread Christian Müller
Fix issues that lead to multiple checkpatch warnings and errors, most of them regarding formatting of code and comments. Comments that contain only commented out code are removed as well. Signed-off-by: Felix Trommer Signed-off-by: Christian Müller ---

[PATCH 0/3] Fixing style errors in staging/drivers/rtl8192u

2019-06-03 Thread Christian Müller
This series of patches fixes various style errors in the rtl8192u staging driver. These fixes contain reformatting of code comments, changing of indentations, cleaning up commented out code within the source-code and fixes for individual errors indicated by the checkpatch tool. Christian Müller

Re: [PATCH] staging: rtl8712: Remove function alloc_network

2019-06-03 Thread Greg KH
On Fri, May 31, 2019 at 02:31:41AM +0530, Nishka Dasgupta wrote: > Remove function alloc_network as it does nothing except call > _r8712_alloc_network. Further, to maintain consistency with > the names of other functions, rename _r8712_alloc_network as > r8712_alloc_network. > Also change the

Re: [PATCH] staging: rtl8712: Change _SUCCESS/_FAIL to 0/-ENOMEM

2019-06-03 Thread Greg KH
On Fri, May 31, 2019 at 02:36:38AM +0530, Nishka Dasgupta wrote: > Change return values _SUCCESS and _FAIL to 0 and -ENOMEM respectively, > to match the convention in the drivers (and also because the return > value of this changed function is never checked anyway). > Change return type of the

Re: [PATCH 6/7] media: cedrus: Add infra for extra buffers connected to capture buffers

2019-06-03 Thread Maxime Ripard
Hi, On Thu, May 30, 2019 at 11:15:15PM +0200, Jernej Skrabec wrote: > H264 and HEVC engines need additional buffers for each capture buffer. > H264 engine has this currently solved by allocating fixed size pool, > which is not ideal. Most of the time pool size is much bigger than it > needs to

Re: [PATCH] staging: rtl8712: Replace function r8712_free_network_queue

2019-06-03 Thread Greg KH
On Fri, May 31, 2019 at 02:27:55AM +0530, Nishka Dasgupta wrote: > Remove function r8712_free_network_queue as it does nothing except call > _free_network_queue. > Rename _free_network_queue to r8712_free_network_queue (and change its > type to static) for continued use of the original

Re: [PATCH 2/2] ARM: dts: Add support for 96Boards Meerkat96 board

2019-06-03 Thread Shawn Guo
On Wed, May 22, 2019 at 06:45:50PM +0530, Manivannan Sadhasivam wrote: > Add devicetree support for 96Boards Meerkat96 board from Novtech. This > board is one of the Consumer Edition boards of the 96Boards family based > on i.MX7D SoC. Following are the currently supported features of the > board:

Re: [PATCH 5/5] staging: kpc2000: kpc_spi: use devm_* API to manage mapped I/O space

2019-06-03 Thread Greg Kroah-Hartman
On Sun, Jun 02, 2019 at 03:58:37PM +, Geordan Neukum wrote: > The kpc_spi driver does not unmap its I/O space upon error cases in the > probe() function or upon remove(). Make the driver clean up after itself > more maintainably by migrating to using the managed resource API. > >

Re: [PATCH] media: cxusb-analog: Use ARRAY_SIZE for cxusub_medion_pin_config

2019-06-03 Thread Hans Verkuil
Hi Maciej, Thank you for the patch, but I posted a fix for this earlier already: https://patchwork.linuxtv.org/patch/56441/ I'll drop this patch in favor of the one above. Apologies for not CC-ing you on my patch, I should have done that. Regards, Hans On 6/1/19 12:37 AM, Maciej S.

Re: [PATCH 4/7] media: cedrus: Remove dst_bufs from context

2019-06-03 Thread Maxime Ripard
On Thu, May 30, 2019 at 11:15:13PM +0200, Jernej Skrabec wrote: > This array is just duplicated capture buffer queue. Remove it and adjust > code to look into capture buffer queue instead. > > Signed-off-by: Jernej Skrabec Acked-by: Maxime Ripard Maxime -- Maxime Ripard, Bootlin Embedded

Re: [PATCH v3 1/2] gpio: Add support for hierarchical IRQ domains

2019-06-03 Thread Thierry Reding
On Mon, Jun 03, 2019 at 12:58:02PM +0200, Linus Walleij wrote: > On Mon, Jun 3, 2019 at 9:53 AM Thierry Reding > wrote: > > Me > > > > Please drop this. The default .to_irq() should be good for everyone. > > > Also patch 2/2 now contains a identical copy of the gpiolib > > > .to_irq() which I

Re: [External] Re: linux kernel page allocation failure and tuning of page cache

2019-06-03 Thread Matthew Wilcox
On Mon, Jun 03, 2019 at 05:30:57AM +, Nagal, Amit UTC CCS wrote: > > [ 776.174308] Mem-Info: > > [ 776.176650] active_anon:2037 inactive_anon:23 isolated_anon:0 [ > > 776.176650] active_file:2636 inactive_file:7391 isolated_file:32 [ > > 776.176650] unevictable:0

Re: [PATCH 1/9] mmc: sdhci-sprd: Check the enable clock's return value correctly

2019-06-03 Thread Adrian Hunter
On 20/05/19 1:11 PM, Baolin Wang wrote: > Missed to check the enable clock's return value, fix it. > > Signed-off-by: Baolin Wang Acked-by: Adrian Hunter > --- > drivers/mmc/host/sdhci-sprd.c |2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git

Re: [PATCH v2] kernel/module: Fix mem leak in module_add_modinfo_attrs

2019-06-03 Thread Miroslav Benes
On Thu, 30 May 2019, YueHaibing wrote: > In module_add_modinfo_attrs if sysfs_create_file > fails, we forget to free allocated modinfo_attrs > and roll back the sysfs files. > > Fixes: 03e88ae1b13d ("[PATCH] fix module sysfs files reference counting") > Signed-off-by: YueHaibing > --- > v2:

Re: [PATCH] Improve code style in drivers/staging/rts5208

2019-06-03 Thread Greg KH
On Mon, Jun 03, 2019 at 01:43:50PM +0200, Tobias Nießen wrote: > These changes to sd.c and xd.c slightly improve the code style and > reduce the overall line length. > > Signed-off-by: Tobias Nießen > Signed-off-by: Sabrina Gaube > --- > drivers/staging/rts5208/sd.c | 23

Re: [PATCH v5 3/3] arm64: dts: meson: Add minimal support for Odroid-N2

2019-06-03 Thread Anand Moon
Hi Niel, On Mon, 3 Jun 2019 at 14:41, Neil Armstrong wrote: > > This patch adds basic support for : > - Amlogic G12B, which is very similar to G12A > - The HardKernel Odroid-N2 based on the S922X SoC > > The Amlogic G12B SoC is very similar with the G12A SoC, sharing > most of the features and

Re: [PATCH 02/10] arm64: dts: meson-gxm-khadas-vim2: fix Bluetooth support

2019-06-03 Thread Christian Hewitt
On 3 Jun 2019, at 12:57 pm, Neil Armstrong wrote: > > On 29/05/2019 20:08, Martin Blumenstingl wrote: >> On Wed, May 29, 2019 at 12:25 PM Neil Armstrong >> wrote: >>> >>> On 27/05/2019 20:36, Martin Blumenstingl wrote: On Mon, May 27, 2019 at 3:22 PM Neil Armstrong wrote: >

Re: [PATCH 3/7] media: cedrus: Fix decoding for some H264 videos

2019-06-03 Thread Maxime Ripard
Hi, On Thu, May 30, 2019 at 11:15:12PM +0200, Jernej Skrabec wrote: > It seems that for some H264 videos at least one bitstream parsing > trigger must be called in order to be decoded correctly. There is no > explanation why this helps, but it was observed that two sample videos > with this fix

[PATCH v2] sched/fair: Cleanup definition of NOHZ blocked load functions

2019-06-03 Thread Valentin Schneider
cfs_rq_has_blocked() and others_have_blocked() are only used within update_blocked_averages(). The !CONFIG_FAIR_GROUP_SCHED version of the latter calls them within a #define CONFIG_NO_HZ_COMMON block, whereas the CONFIG_FAIR_GROUP_SCHED one calls them unconditionnally. As reported by Qian, the

Re: [PATCH] media: davinci: vpif_capture: fix memory leak in vpif_probe()

2019-06-03 Thread Hans Verkuil
On 5/29/19 3:09 PM, Young Xiao wrote: > If vpif_probe() fails on vpif_probe_complete(), then memory > allocated at initialize_vpif() for global vpif_obj.dev[i] > become unreleased. > > The patch adds deallocation of vpif_obj.dev[i] on the error path. > > Signed-off-by: Young Xiao

RE: [PATCH net-next v5 0/5] net: stmmac: enable EHL SGMI

2019-06-03 Thread Jose Abreu
From: Voon Weifeng > This patch-set is to enable Ethernet controller > (DW Ethernet QoS and DW Ethernet PCS) with SGMII interface in Elkhart Lake. > The DW Ethernet PCS is the Physical Coding Sublayer that is between Ethernet > MAC and PHY and uses MDIO Clause-45 as Communication. This series

Re: [PATCH] perf: Fix oops when kthread execs user process

2019-06-03 Thread Peter Zijlstra
On Fri, May 31, 2019 at 04:37:03PM +0100, Will Deacon wrote: > On Thu, May 30, 2019 at 03:57:36PM +0530, Ravi Bangoria wrote: > > On 5/30/19 2:08 PM, Ravi Bangoria wrote: > > >> --- a/kernel/events/core.c > > >> +++ b/kernel/events/core.c > > >> @@ -5923,7 +5923,7 @@ static void

[PATCH] Improve code style in drivers/staging/rts5208

2019-06-03 Thread Tobias Nießen
These changes to sd.c and xd.c slightly improve the code style and reduce the overall line length. Signed-off-by: Tobias Nießen Signed-off-by: Sabrina Gaube --- drivers/staging/rts5208/sd.c | 23 +++ drivers/staging/rts5208/xd.c | 8 2 files changed, 15

Re: [PATCH 2/7] media: cedrus: Fix H264 default reference index count

2019-06-03 Thread Maxime Ripard
On Thu, May 30, 2019 at 11:15:11PM +0200, Jernej Skrabec wrote: > Reference index count in VE_H264_PPS reg should come from PPS control. > However, this is not really important because reference index count is > in our case always overridden by that from slice header. > > Cc: nico...@ndufresne.ca

Re: [PATCH] kbuild: use more portable 'command -v' for cc-cross-prefix

2019-06-03 Thread Masahiro Yamada
On Mon, Jun 3, 2019 at 8:16 PM David Laight wrote: > > From: Masahiro Yamada > > Sent: 03 June 2019 11:49 > > > > To print the pathname that will be used by shell in the current > > environment, 'command -v' is a standardized way. [1] > > > > 'which' is also often used in scripting, but it is not

Re: [PATCH] media: stm32-dcmi: fix irq = 0 case

2019-06-03 Thread Hans Verkuil
On 5/31/19 11:18 AM, Fabien Dessenne wrote: > Manage the irq = 0 case, where we shall return an error. > > Fixes: b5b5a27bee58 ("media: stm32-dcmi: return appropriate error codes > during probe") > Signed-off-by: Fabien Dessenne > --- > drivers/media/platform/stm32/stm32-dcmi.c | 2 +- > 1

Re: [PATCH HACK RFC] cpu: Prevent late-arriving interrupts from disrupting offline

2019-06-03 Thread Mark Rutland
On Mon, Jun 03, 2019 at 10:38:48AM +0200, Peter Zijlstra wrote: > On Sat, Jun 01, 2019 at 06:12:53PM -0700, Paul E. McKenney wrote: > > Scheduling-clock interrupts can arrive late in the CPU-offline process, > > after idle entry and the subsequent call to cpuhp_report_idle_dead(). > > Once

RE: [v2, PATCH 3/4] net: stmmac: modify default value of tx-frames

2019-06-03 Thread Jose Abreu
From: Biao Huang > the default value of tx-frames is 25, it's too late when > passing tstamp to stack, then the ptp4l will fail: > > ptp4l -i eth0 -f gPTP.cfg -m > ptp4l: selected /dev/ptp0 as PTP clock > ptp4l: port 1: INITIALIZING to LISTENING on INITIALIZE > ptp4l: port 0: INITIALIZING to

WARNING in ar5523_submit_rx_cmd/usb_submit_urb

2019-06-03 Thread syzbot
Hello, syzbot found the following crash on: HEAD commit:69bbe8c7 usb-fuzzer: main usb gadget fuzzer driver git tree: https://github.com/google/kasan.git usb-fuzzer console output: https://syzkaller.appspot.com/x/log.txt?x=15d280f2a0 kernel config:

KASAN: use-after-free Write in v4l2_prio_close

2019-06-03 Thread syzbot
Hello, syzbot found the following crash on: HEAD commit:69bbe8c7 usb-fuzzer: main usb gadget fuzzer driver git tree: https://github.com/google/kasan.git usb-fuzzer console output: https://syzkaller.appspot.com/x/log.txt?x=142ef636a0 kernel config:

KASAN: use-after-free Read in device_del

2019-06-03 Thread syzbot
Hello, syzbot found the following crash on: HEAD commit:69bbe8c7 usb-fuzzer: main usb gadget fuzzer driver git tree: https://github.com/google/kasan.git usb-fuzzer console output: https://syzkaller.appspot.com/x/log.txt?x=1684d87ca0 kernel config:

Re: [PATCH -next] pwm: pca9685: Remove set but not used variable 'pwm'

2019-06-03 Thread Mika Westerberg
On Sun, Jun 02, 2019 at 10:18:15AM -0400, Sven Van Asbroeck wrote: > On Sat, Jun 1, 2019 at 12:05 PM Uwe Kleine-König > wrote: > > > > I didn't look into the driver to try to understand that, but the > > definitely needs a comment to explain for the next person to think they > > can do a cleanup

Re: [PATCH] kbuild: use more portable 'command -v' for cc-cross-prefix

2019-06-03 Thread Masahiro Yamada
Hi David, On Mon, Jun 3, 2019 at 8:14 PM David Laight wrote: > > From: Masahiro Yamada > > Sent: 03 June 2019 11:49 > > > > To print the pathname that will be used by shell in the current > > environment, 'command -v' is a standardized way. [1] > > > > 'which' is also often used in scripting,

Re: [PATCH 1/7] media: cedrus: Disable engine after each slice decoding

2019-06-03 Thread Maxime Ripard
Hi, On Thu, May 30, 2019 at 11:15:10PM +0200, Jernej Skrabec wrote: > libvdpau-sunxi always disables engine after each decoded slice. > Do same in Cedrus driver. > > Presumably this also lowers power consumption which is always nice. > > Signed-off-by: Jernej Skrabec Is it fixing anything

Re: [RFC][PATCH 01/14 v2] function_graph: Convert ret_stack to a series of longs

2019-06-03 Thread Masami Hiramatsu
On Fri, 24 May 2019 08:05:53 -0400 Steven Rostedt wrote: > > > > > +#define SHADOW_STACK_SIZE (PAGE_SIZE) > > > > Do we really need that big a shadow stack? > > Well, this is a sticky point. I allow up to 16 users at a time > (although I can't imagine more than 5, but you never know), and

[PATCHv4 1/2] media: docs-rst: Document memory-to-memory video decoder interface

2019-06-03 Thread Hans Verkuil
From: Tomasz Figa Due to complexity of the video decoding process, the V4L2 drivers of stateful decoder hardware require specific sequences of V4L2 API calls to be followed. These include capability enumeration, initialization, decoding, seek, pause, dynamic resolution change, drain and end of

[PATCHv4 0/2] Document memory-to-memory video codec interfaces

2019-06-03 Thread Hans Verkuil
Since Thomasz was very busy with other things, I've taken over this patch series. This v4 includes his draft changes and additional changes from me. This series attempts to add the documentation of what was discussed during Media Workshops at LinuxCon Europe 2012 in Barcelona and then later

[PATCHv4 2/2] media: docs-rst: Document memory-to-memory video encoder interface

2019-06-03 Thread Hans Verkuil
From: Tomasz Figa Due to complexity of the video encoding process, the V4L2 drivers of stateful encoder hardware require specific sequences of V4L2 API calls to be followed. These include capability enumeration, initialization, encoding, encode parameters change, drain and reset. Specifics of

Re: [PATCH] sched/fair: Cleanup definition of NOHZ blocked load functions

2019-06-03 Thread Peter Zijlstra
On Mon, Jun 03, 2019 at 11:22:40AM +0100, Valentin Schneider wrote: > On 03/06/2019 10:38, Peter Zijlstra wrote: > [...] > > > > I'm thinking the below can go on top to further clean up? > > > > Yep, that's even better indeed! Want me to resend with that extra diff? Yes please, I didn't even

RE: [PATCH] kbuild: use more portable 'command -v' for cc-cross-prefix

2019-06-03 Thread David Laight
From: Masahiro Yamada > Sent: 03 June 2019 11:49 > > To print the pathname that will be used by shell in the current > environment, 'command -v' is a standardized way. [1] > > 'which' is also often used in scripting, but it is not portable. All uses of 'which' should be expunged. It is a bourne

Re: [PATCH] phy: rockchip-dp: Avoid power leak by leaving the PHY power on

2019-06-03 Thread Kishon Vijay Abraham I
Hi, On 20/05/19 1:34 PM, Caesar Wang wrote: > Hi Doug, > > For now,  nobody of rockchip is responsible for this driver. > Cc: Nickey, Zain, Hjc > > > On 5/8/19 7:48 AM, Douglas Anderson wrote: >> While testing a newer kernel on rk3288-based Chromebooks I found that >> the power draw in suspend

Re: [PATCH v5 3/3] thermal: cpu_cooling: Migrate to using the EM framework

2019-06-03 Thread Quentin Perret
On Saturday 01 Jun 2019 at 12:37:06 (+0200), Daniel Lezcano wrote: > On 30/05/2019 11:20, Quentin Perret wrote: > > The newly introduced Energy Model framework manages power cost tables in > > a generic way. Moreover, it supports several types of models since the > > tables can come from DT or

[PATCH] habanalabs: Fix virtual address access via debugfs for 2MB pages

2019-06-03 Thread Tomer Tayar
The debugfs interface for accessing DRAM virtual addresses currently uses the 12 LSBs of a virtual address as an offset. However, it should use the 20 LSBs in case the device MMU page size is 2MB instead of 4KB. This patch fixes the offset calculation to be based on the page size. Signed-off-by:

Re: [PATCH] perf: Fix oops when kthread execs user process

2019-06-03 Thread Will Deacon
On Fri, May 31, 2019 at 04:37:15PM +0100, Will Deacon wrote: > Oh, nice! I think this happens because Power doesn't actually initialise > the regs after a kthread execs() until late in start_thread(). But the plot > thickens somewhat, since current_pt_regs() is different to > task_pt_regs(current)

Re: [PATCH RESEND] clk: imx: imx8mm: correct audio_pll2_clk to audio_pll2_out

2019-06-03 Thread Shawn Guo
On Fri, May 31, 2019 at 03:56:38PM +0800, peng@nxp.com wrote: > From: Peng Fan > > There is no audio_pll2_clk registered, it should be audio_pll2_out. > > Cc: > Fixes: ba5625c3e27 ("clk: imx: Add clock driver support for imx8mm") > Signed-off-by: Peng Fan Applied, thanks.

Re: [PATCH 1/2] pci: shpchp: Correct usage of 'return'

2019-06-03 Thread Mika Westerberg
On Sun, Jun 02, 2019 at 05:38:01PM +0200, Emanuel Bennici wrote: > Replace 'return(1)' with 'return 1' because return is not a function. > > Signed-off-by: Emanuel Bennici Reviewed-by: Mika Westerberg

Re: [PATCH v3 0/8] NVIDIA Tegra clocksource driver improvements

2019-06-03 Thread Dmitry Osipenko
03.06.2019 10:17, Peter De Schrijver пишет: > On Fri, May 31, 2019 at 03:33:41PM +0300, Dmitry Osipenko wrote: >> 31.05.2019 11:26, Peter De Schrijver пишет: >>> On Fri, May 24, 2019 at 06:32:45PM +0300, Dmitry Osipenko wrote: Hello, This series primarily unifies the driver code

[PATCH] hp_accel: Add support for HP ProBook 450 G0.

2019-06-03 Thread Colin Sindle
HP ProBook 450 G0 needs a non-standard mapping (x_inverted). Signed-off-by: Colin Sindle --- drivers/platform/x86/hp_accel.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/platform/x86/hp_accel.c b/drivers/platform/x86/hp_accel.c index f61b8a176e20..7a2747455237 100644 ---

RE: [PATCH] kbuild: use more portable 'command -v' for cc-cross-prefix

2019-06-03 Thread David Laight
From: Masahiro Yamada > Sent: 03 June 2019 11:49 > > To print the pathname that will be used by shell in the current > environment, 'command -v' is a standardized way. [1] > > 'which' is also often used in scripting, but it is not portable. > > When I worked on commit bd55f96fa9fc ("kbuild:

Re: [PATCH] of/device: add blacklist for iommu dma_ops

2019-06-03 Thread Vivek Gautam
On Mon, Jun 3, 2019 at 4:14 PM Rob Clark wrote: > > On Mon, Jun 3, 2019 at 12:57 AM Vivek Gautam > wrote: > > > > > > > > On 6/3/2019 11:50 AM, Tomasz Figa wrote: > > > On Mon, Jun 3, 2019 at 4:40 AM Rob Clark wrote: > > >> On Fri, May 10, 2019 at 7:35 AM Rob Clark wrote: > > >>> On Tue, Dec

Re: [PATCH v3 2/5] vsock/virtio: fix locking for fwd_cnt and buf_alloc

2019-06-03 Thread Stefano Garzarella
On Sun, Jun 02, 2019 at 06:03:34PM -0700, David Miller wrote: > From: Stefano Garzarella > Date: Fri, 31 May 2019 15:39:51 +0200 > > > @@ -434,7 +434,9 @@ void virtio_transport_set_buffer_size(struct vsock_sock > > *vsk, u64 val) > > if (val > vvs->buf_size_max) > >

Re: [PATCH 0/2] arm64: smp: Include smp_plat.h from smp.h

2019-06-03 Thread Marc Zyngier
On 31/05/2019 00:34, Russell King - ARM Linux admin wrote: > On Thu, May 30, 2019 at 04:20:37PM -0700, Florian Fainelli wrote: >> On 5/30/19 4:17 PM, Russell King - ARM Linux admin wrote: >>> On Thu, May 30, 2019 at 04:14:28PM -0700, Florian Fainelli wrote: On 5/30/19 4:05 PM, Florian

RE: [PATCH] kbuild: use more portable 'command -v' for cc-cross-prefix

2019-06-03 Thread Alexey Brodkin
Hi Masahiro-san, > -Original Message- > From: linux-snps-arc On Behalf > Of Masahiro Yamada > Sent: Monday, June 3, 2019 1:49 PM > To: linux-kbu...@vger.kernel.org > Cc: Michal Marek ; Vineet Gupta > ; Alexey Brodkin > ; linux-kernel@vger.kernel.org; linux-stable > ; Masahiro > Yamada

[PATCH modules 2/2] ARM: module: recognize unwind exit sections

2019-06-03 Thread Matthias Schiffer
In addition to the prefix ".exit", ".ARM.extab.exit" and ".ARM.exidx.exit" must be recognizes as exit sections as well. Otherwise, loading modules can fail without CONFIG_MODULE_UNLOAD depending on the memory layout, when relocations for the unwind sections refer to the .exit.text section:

[PATCH modules 1/2] module: allow arch overrides for .exit section names

2019-06-03 Thread Matthias Schiffer
Some archs like ARM store unwind information for .exit.text in sections with unusual names. As this unwind information refers to .exit.text, it must not be loaded when .exit.text is not loaded (when CONFIG_MODULE_UNLOAD is unset); otherwise, loading a module can fail due to relocation failures.

[PATCH modules 0/2] Fix handling of exit unwinding sections (on ARM)

2019-06-03 Thread Matthias Schiffer
For some time (050d18d1c651 "ARM: 8650/1: module: handle negative R_ARM_PREL31 addends correctly", v4.11+), building a kernel without CONFIG_MODULE_UNLOAD would lead to module loads failing on ARM systems with certain memory layouts, with messages like: imx_sdma: section 16 reloc 0 sym '':

Re: [PATCH] arm64: dts: ulcb-kf: Add support for TI WL1837

2019-06-03 Thread Simon Horman
On Fri, May 31, 2019 at 03:49:55PM +0200, Eugeniu Rosca wrote: > Hi Simon, > > On Fri, May 31, 2019 at 11:37:02AM +0200, Simon Horman wrote: > > Hi Spyridon, > > > > please respond to Geert's review below and > > if appropriate provide an incremental patch. > > > > Thanks in advance, > > Simon

Re: [PATCH v3 1/2] gpio: Add support for hierarchical IRQ domains

2019-06-03 Thread Linus Walleij
On Mon, Jun 3, 2019 at 9:53 AM Thierry Reding wrote: > Me > > Please drop this. The default .to_irq() should be good for everyone. > > Also patch 2/2 now contains a identical copy of the gpiolib > > .to_irq() which I suspect you indended to drop, actually. > > It's not actually identical to the

Re: [PATCH v2] kernel/module: Fix mem leak in module_add_modinfo_attrs

2019-06-03 Thread Jessica Yu
+++ YueHaibing [30/05/19 21:43 +0800]: In module_add_modinfo_attrs if sysfs_create_file fails, we forget to free allocated modinfo_attrs and roll back the sysfs files. Fixes: 03e88ae1b13d ("[PATCH] fix module sysfs files reference counting") Signed-off-by: YueHaibing --- v2: free from '--i'

[PATCH v11 1/2] usb: Add devaddr in struct usb_device

2019-06-03 Thread Jim Lin
The Clear_TT_Buffer request sent to the hub includes the address of the LS/FS child device in wValue field. usb_hub_clear_tt_buffer() uses udev->devnum to set the address wValue. This won't work for devices connected to xHC. For other host controllers udev->devnum is the same as the address of

[PATCH v11 2/2] usb: xhci: Add Clear_TT_Buffer

2019-06-03 Thread Jim Lin
USB 2.0 specification chapter 11.17.5 says "as part of endpoint halt processing for full-/low-speed endpoints connected via a TT, the host software must use the Clear_TT_Buffer request to the TT to ensure that the buffer is not in the busy state". In our case, a full-speed speaker (ConferenceCam)

[PATCH v11 0/2] usb: xhci: Add Clear_TT_Buffer

2019-06-03 Thread Jim Lin
USB 2.0 specification chapter 11.17.5 says "as part of endpoint halt processing for full-/low-speed endpoints connected via a TT, the host software must use the Clear_TT_Buffer request to the TT to ensure that the buffer is not in the busy state". In our case, a full-speed speaker (ConferenceCam)

Re: [PATCH] mm: kasan: mark file report so ftrace doesn't trace it

2019-06-03 Thread Dmitry Vyukov
On Mon, Jun 3, 2019 at 11:11 AM Anders Roxell wrote: > > __kasan_report() triggers ftrace and the preempt_count() in ftrace > causes a call to __asan_load4(), breaking the circular dependency by > making report as no trace for ftrace. > > Signed-off-by: Anders Roxell > --- > mm/kasan/Makefile |

[PATCH] kbuild: use more portable 'command -v' for cc-cross-prefix

2019-06-03 Thread Masahiro Yamada
To print the pathname that will be used by shell in the current environment, 'command -v' is a standardized way. [1] 'which' is also often used in scripting, but it is not portable. When I worked on commit bd55f96fa9fc ("kbuild: refactor cc-cross-prefix implementation"), I was eager to use

RE: [External] Re: linux kernel page allocation failure and tuning of page cache

2019-06-03 Thread Nagal, Amit UTC CCS
-Original Message- From: Nagal, Amit UTC CCS Sent: Monday, June 3, 2019 11:08 AM To: 'Matthew Wilcox' Cc: linux-kernel@vger.kernel.org; linux...@kvack.org; CHAWLA, RITU UTC CCS ; net...@vger.kernel.org; Netter, Christian M UTC CCS Subject: RE: [External] Re: linux kernel page

Re: [PATCH] arm: fix using smp_processor_id() in preemptible context

2019-06-03 Thread Marc Zyngier
On 27/05/2019 10:39, Yongliang Gao wrote: > harden_branch_predictor() call smp_processor_id() in preemptible > context, this would cause a bug messages. > > The bug messages is as follows: > BUG: using smp_processor_id() in preemptible [] code: > syz-executor0/17992 > caller is

Re: [PATCH] sched/fair: Cleanup definition of NOHZ blocked load functions

2019-06-03 Thread Valentin Schneider
On 03/06/2019 10:38, Peter Zijlstra wrote: [...] > > I'm thinking the below can go on top to further clean up? > Yep, that's even better indeed! Want me to resend with that extra diff? [...]

Re: [PATCH v4 26/30] coresight: Use platform agnostic names

2019-06-03 Thread Suzuki K Poulose
Hi Mike, On 29/05/2019 10:32, Mike Leach wrote: Hi, Why am I not seeing references to coresight-cpu-debug in here? In other places in this patchset CPU debug has been changed, but there appears to be no platform agnostic name here, nor any ACPI type name either. Is cpu-debug remaining device

Re: [PATCH] PCI: PM: Avoid resuming devices in D3hot during system suspend

2019-06-03 Thread Rafael J. Wysocki
On Friday, May 31, 2019 11:16:48 PM CEST Bjorn Helgaas wrote: > On Fri, May 31, 2019 at 11:49:30AM +0200, Rafael J. Wysocki wrote: > > From: Rafael J. Wysocki > > > > The current code resumes devices in D3hot during system suspend if > > the target power state for them is D3cold, but that is not

Re: [PATCH v4 17/30] coresight: Make device to CPU mapping generic

2019-06-03 Thread Mike Leach
Hi, On Wed, 22 May 2019 at 11:37, Suzuki K Poulose wrote: > > The CoreSight components ETM and CPU-Debug are always associated > with CPUs. Replace the of_coresight_get_cpu() with a platform > agnostic helper, in preparation to add ACPI support. > > Reviewed-by: Mathieu Poirier > Signed-off-by:

Re: [PATCH 2/2] PCI: Create device link for NVIDIA GPU

2019-06-03 Thread Lukas Wunner
On Mon, Jun 03, 2019 at 01:30:51PM +0530, Abhishek Sahu wrote: > On 6/1/2019 2:09 AM, Bjorn Helgaas wrote: > > > If there *is* spec language that allows dependencies like this, please > > include the citation in your commit log. > > The PCIe specification treats each function separately but GPU

Re: [PATCH v2 00/17] net: introduce Qualcomm IPA driver

2019-06-03 Thread Arnd Bergmann
On Sat, Jun 1, 2019 at 1:59 AM Subash Abhinov Kasiviswanathan wrote: > On 2019-05-31 17:33, Bjorn Andersson wrote: > > On Fri 31 May 13:47 PDT 2019, Alex Elder wrote: > >> On 5/31/19 2:19 PM, Arnd Bergmann wrote: > > But any such changes would either be years into the future or for > > specific

[PATCH 0/4] arm64: dts: meson-g12a: mmc updates

2019-06-03 Thread Neil Armstrong
This patchset : - adds the SDIO controller node using the dram-access-quirk - adds SDCard, eMMC & SDIO support to X96 - Add SDIO support to SEI510 Guillaume La Roque (1): arm64: dts: meson-g12a-x96-max: add support for sdcard and emmc Jerome Brunet (1): arm64: dts: meson: g12a: add SDIO

[PATCH 3/4] arm64: dts: meson-g12a-x96-max: Enable Wifi SDIO Module

2019-06-03 Thread Neil Armstrong
The X96 Max embeds an AP6398S SDIO module, let's add the corresponding SDIO, PWM clock and mmc-pwrseq nodes. Signed-off-by: Neil Armstrong --- .../boot/dts/amlogic/meson-g12a-x96-max.dts | 48 +++ 1 file changed, 48 insertions(+) diff --git

[PATCH 4/4] arm64: dts: meson-g12a-sei510: Enable Wifi SDIO module

2019-06-03 Thread Neil Armstrong
The SEI510 embeds an AP6398S SDIO module, let's add the corresponding SDIO, PWM clock and mmc-pwrseq nodes. Signed-off-by: Neil Armstrong --- .../boot/dts/amlogic/meson-g12a-sei510.dts| 48 +++ 1 file changed, 48 insertions(+) diff --git

[PATCH 2/4] arm64: dts: meson-g12a-x96-max: add support for sdcard and emmc

2019-06-03 Thread Neil Armstrong
From: Guillaume La Roque Add nodes to support SDCard and onboard eMMC on the X96 Max. Signed-off-by: Guillaume La Roque Signed-off-by: Neil Armstrong --- .../boot/dts/amlogic/meson-g12a-x96-max.dts | 40 +++ 1 file changed, 40 insertions(+) diff --git

[PATCH 1/4] arm64: dts: meson: g12a: add SDIO controller

2019-06-03 Thread Neil Armstrong
From: Jerome Brunet The Amlogic G12A SDIO Controller has a bug preventing direct DDR access, add the port A (SDIO) pinctrl and controller nodes and mark this specific controller with the amlogic,dram-access-quirk property. Signed-off-by: Jerome Brunet Signed-off-by: Neil Armstrong ---

Re: [PATCH v4] x86/power: Fix 'nosmt' vs. hibernation triple fault during resume

2019-06-03 Thread Rafael J. Wysocki
On Friday, May 31, 2019 6:19:52 PM CEST Josh Poimboeuf wrote: > On Fri, May 31, 2019 at 05:41:18PM +0200, Jiri Kosina wrote: > > On Fri, 31 May 2019, Josh Poimboeuf wrote: > > > > > The only question I'd have is if we have data on the power savings > > > difference between hlt and mwait. mwait

Re: [PATCH v2 net-next 02/10] net: dsa: Add teardown callback for drivers

2019-06-03 Thread Vladimir Oltean
On Mon, 3 Jun 2019 at 04:07, Andrew Lunn wrote: > > On Mon, Jun 03, 2019 at 12:39:18AM +0300, Vladimir Oltean wrote: > > This is helpful for e.g. draining per-driver (not per-port) tagger > > queues. > > > > Signed-off-by: Vladimir Oltean > > --- > > Changes in v2: > > > > Patch is new. > > > >

Re: [PATCH v3 06/13] epoll: introduce helpers for adding/removing events to uring

2019-06-03 Thread Roman Penyaev
On 2019-06-03 11:09, Peter Zijlstra wrote: On Fri, May 31, 2019 at 08:58:19PM +0200, Roman Penyaev wrote: On 2019-05-31 18:51, Peter Zijlstra wrote: > But like you show, it can be done. It also makes the thing wait-free, as > opposed to merely lockless. You think it's better? I did not

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