[PATCH] drm/sun4i: tcon: Add dithering support for RGB565/RGB666 LCD panels

2017-10-17 Thread Jonathan Liu
Dithering is supported on TCON channel 0 which is used for LCD panels. Signed-off-by: Jonathan Liu --- drivers/gpu/drm/sun4i/sun4i_tcon.c | 37 + drivers/gpu/drm/sun4i/sun4i_tcon.h | 18 +- 2 files changed, 54 insertions(+), 1 deletion(-) diff

Re: [PATCH 2/4] arm64: prevent instrumentation of LL/SC atomics

2017-10-17 Thread Mark Rutland
On Tue, Oct 17, 2017 at 11:58:58AM +0100, Will Deacon wrote: > On Tue, Oct 17, 2017 at 11:54:54AM +0100, Mark Rutland wrote: > > On Tue, Oct 17, 2017 at 11:03:15AM +0100, Will Deacon wrote: > > > On Mon, Oct 16, 2017 at 02:24:38PM +0100, Mark Rutland wrote: > > > > While we build the LL/SC atomics

Re: [PATCH] clk: tegra30: make tegra_clk_pll_params __ro_after_init

2017-10-17 Thread Thierry Reding
On Tue, Oct 03, 2017 at 01:42:08AM +0530, Bhumika Goyal wrote: > These structures are only passed to the functions tegra_clk_register_pll, > tegra_clk_register_pll{e/u} or tegra_periph_clk_init during the init > phase. These functions modify the structures only during the init phase > and after tha

Re: [PATCH 1/2] mm, thp: introduce dedicated transparent huge page allocation interfaces

2017-10-17 Thread Kirill A. Shutemov
On Mon, Oct 16, 2017 at 05:19:16PM +0800, changbin...@intel.com wrote: > @@ -501,6 +501,45 @@ void prep_transhuge_page(struct page *page) > set_compound_page_dtor(page, TRANSHUGE_PAGE_DTOR); > } > > +struct page *alloc_transhuge_page_vma(gfp_t gfp_mask, > + struct vm_area_struc

[PATCH] mm: page_vma_mapped: ensure pmd is loaded with READ_ONCE outside of lock

2017-10-17 Thread Will Deacon
[Commit a7b100953aa33a5bbdc3e5e7f2241b9c0704606e upstream] Loading the pmd without holding the pmd_lock exposes us to races with concurrent updaters of the page tables but, worse still, it also allows the compiler to cache the pmd value in a register and reuse it later on, even if we've performed

Re: [PATCH] net: export netdev_txq_to_tc to allow sch_mqprio to compile as module

2017-10-17 Thread Eric Dumazet
On Tue, Oct 17, 2017 at 3:10 AM, Henrik Austad wrote: > In commit 32302902ff09 ("mqprio: Reserve last 32 classid values for HW > traffic classes and misc IDs") sch_mqprio started using netdev_txq_to_tc > to find the correct tc instead of dev->tc_to_txq[] > > However, when mqprio is compiled as a m

Re: [PATCH -mm] mm, pagemap: Fix soft dirty marking for PMD migration entry

2017-10-17 Thread Kirill A. Shutemov
On Tue, Oct 17, 2017 at 04:18:18PM +0800, Huang, Ying wrote: > From: Huang Ying > > Now, when the page table is walked in the implementation of > /proc//pagemap, pmd_soft_dirty() is used for both the PMD huge > page map and the PMD migration entries. That is wrong, > pmd_swp_soft_dirty() should

Re: [PATCH 2/2] mm: rename page dtor functions to {compound,huge,transhuge}_page__dtor

2017-10-17 Thread Kirill A. Shutemov
On Tue, Oct 17, 2017 at 12:22:03PM +0200, Michal Hocko wrote: > On Mon 16-10-17 17:19:17, changbin...@intel.com wrote: > > From: Changbin Du > > > > The current name free_{huge,transhuge}_page are paired with > > alloc_{huge,transhuge}_page functions, but the actual page free > > function is stil

Re: [PATCH v2 1/2] dmaengine: pl330: fix descriptor allocation fail

2017-10-17 Thread Marek Szyprowski
Hi Alexander, It took me a while to test this patch, I've been busy with other stuff... On 2017-10-04 13:37, Alexander Kochetkov wrote: If two concurrent threads call pl330_get_desc() when DMAC descriptor pool is empty it is possible that allocation for one of threads will fail with message: k

Re: [PATCH] mm/rmap: remove redundant variable cend

2017-10-17 Thread Kirill A. Shutemov
On Wed, Oct 11, 2017 at 06:49:42PM +0100, Colin King wrote: > From: Colin Ian King > > Variable cend is set but never read, hence it is redundant and can be > removed. > > Cleans up clang build warning: Value stored to 'cend' is never read > > Fixes: 369ea8242c0f ("mm/rmap: update to new mmu_no

Re: [PATCH v2 2/2] !!! FOR TESTING ONLY !!! dmaengine: pl330: add verbose message and set NR_DEFAULT_DESC to 1

2017-10-17 Thread Marek Szyprowski
Hi Alexander, On 2017-10-04 13:37, Alexander Kochetkov wrote: Commit add verbose output to pl330 showing what changes introduced by commit 1/2 from series work as expected. You should see similar output running modified kernel: The patch tested on rk3188 radxdarock. Could someone else test it o

[PATCH v7 1/2] crypto: s5p-sss: change spaces into tabs in defines

2017-10-17 Thread Kamil Konieczny
change spaces into tabs in defines Signed-off-by: Kamil Konieczny --- drivers/crypto/s5p-sss.c | 190 +++ 1 file changed, 95 insertions(+), 95 deletions(-) diff --git a/drivers/crypto/s5p-sss.c b/drivers/crypto/s5p-sss.c index 7ac657f46d15..dfae1865c3

[PATCH v7 2/2] crypto: s5p-sss: Add HASH support for Exynos

2017-10-17 Thread Kamil Konieczny
Add support for MD5, SHA1, SHA256 hash algorithms for Exynos HW. It uses the crypto framework asynchronous hash api. It is based on omap-sham.c driver. S5P has some HW differencies and is not implemented. Modifications in s5p-sss: - Add hash supporting structures and functions. - Modify irq hand

Re: [PATCH 04/11] Define the virtual space of KASan's shadow region

2017-10-17 Thread Liuwenliang (Lamb)
On 10/17/2017 12:40 AM, Abbott Liu wrote: > Ard Biesheuvel [ard.biesheu...@linaro.org] wrote >This is unnecessary: > >ldr r1, =TASK_SIZE > >will be converted to a mov instruction by the assembler if the value of >TASK_SIZE fits its 12-bit immediate field. > >So please remove the whole #ifdef, and

Re: [PATCH v6] PCI: quirks: update Cavium ThunderX ACS quirk implementation

2017-10-17 Thread Vadim Lomovtsev
On Mon, Oct 16, 2017 at 04:23:20PM -0500, Bjorn Helgaas wrote: Hi Bjorn, > [+cc David, Manish] > > Please use a subject line that tells more about what's going on. > "Update quirk" doesn't really convey any useful information. > Something like "Apply Cavium ThunderX ACS quirk only to Root Ports".

[PATCH v7 0/2] crypto: s5p-sss: Add HASH support for Exynos

2017-10-17 Thread Kamil Konieczny
First patch cleans up spaces in defines, second adds HASH support for Exynos. Changes: version 7: - fix ifdef into if(IS_ENABLED()) as suggested by Krzysztof Kozlowski version 6: - fixes suggested by Vladimir Zapolskiy: change HASH_OP enum into bool, fix comments, change int into unsigned int i

Re: linux-next: manual merge of the net-next tree with the net tree

2017-10-17 Thread Sergei Shtylyov
Hello! On 10/16/2017 12:36 PM, Mark Brown wrote: Today's linux-next merge of the net-next tree got a conflict in: drivers/net/dsa/mv88e6060.c between commit: 3efc93c2bc243 ("net: dsa: mv88e6060: fix switch MAC address") from the net tree and commit: 56c3ff9bf23e1 ("net: dsa: mv88e

Re: [PATCH] mm/page_alloc: make sure __rmqueue() etc. always inline

2017-10-17 Thread Vlastimil Babka
On 10/13/2017 08:31 AM, Aaron Lu wrote: > __rmqueue(), __rmqueue_fallback(), __rmqueue_smallest() and > __rmqueue_cma_fallback() are all in page allocator's hot path and > better be finished as soon as possible. One way to make them faster > is by making them inline. But as Andrew Morton and Andi K

Re: [PATCH 6/8] video: fbdev: au1200fb: Remove some dead code

2017-10-17 Thread Dan Carpenter
On Mon, Oct 16, 2017 at 09:04:52PM +0200, Christophe JAILLET wrote: > There is no need to shut gcc up. It should not complain. > Axe 'fbdev', it is never used in this function. > > Signed-off-by: Christophe JAILLET > --- > drivers/video/fbdev/au1200fb.c | 6 -- > 1 file changed, 6 deletions(

Re: [PATCH v2 4/4] watchdog: aspeed: Move init to arch_initcall

2017-10-17 Thread Andrew Jeffery
On Wed, 2017-09-20 at 15:43 +0930, Joel Stanley wrote: > > On Wed, Sep 20, 2017 at 3:00 PM, Andrew Jeffery wrote: > > Probing at device_initcall time lead to perverse cases where the > > watchdog was probed after, say, I2C devices, which then leaves a > > potentially running watchdog at the mercy

Re: [PATCH 2/4] arm64: prevent instrumentation of LL/SC atomics

2017-10-17 Thread Will Deacon
On Tue, Oct 17, 2017 at 12:10:33PM +0100, Mark Rutland wrote: > On Tue, Oct 17, 2017 at 11:58:58AM +0100, Will Deacon wrote: > > On Tue, Oct 17, 2017 at 11:54:54AM +0100, Mark Rutland wrote: > > > On Tue, Oct 17, 2017 at 11:03:15AM +0100, Will Deacon wrote: > > > > On Mon, Oct 16, 2017 at 02:24:38P

Re: [bug report & help] arm64: ltp testcase "migrate_pages01" failed

2017-10-17 Thread Tan Xiaojun
On 2017/10/17 17:23, Will Deacon wrote: > On Tue, Oct 17, 2017 at 10:58:53AM +0800, Tan Xiaojun wrote: >> I'm not sure if this is the problem on arm64 numa. What do you think ? >> By the way, this testcase can be successful in any case on x86. > > To be honest, this isn't a particularly helpful bu

Re: [PATCH 3/4] ARM64: dts: meson-gx: grow reset controller memory zone

2017-10-17 Thread Neil Armstrong
On 17/10/2017 10:29, Neil Armstrong wrote: > Now the Amlogic Meson GX SoCs datasheet documents all the Reset registers, > grow the memory in the node to allow usage of the level registers. > > Signed-off-by: Neil Armstrong > --- > arch/arm64/boot/dts/amlogic/meson-gx.dtsi | 2 +- > 1 file change

Re: [PATCH v12 01/11] mm: deferred_init_memmap improvements

2017-10-17 Thread Michal Hocko
On Fri 13-10-17 13:32:04, Pavel Tatashin wrote: > deferred_init_memmap() is called when struct pages are initialized later > in boot by slave CPUs. This patch simplifies and optimizes this function, > and also fixes a couple issues (described below). > > The main change is that now we are iteratin

Re: [PATCH 1/2] mm: drop migrate type checks from has_unmovable_pages

2017-10-17 Thread Michael Ellerman
Michal Hocko writes: > From: Michal Hocko > > Michael has noticed that the memory offline tries to migrate kernel code > pages when doing > echo 0 > /sys/devices/system/memory/memory0/online > > The current implementation will fail the operation after several failed > page migration attempts bu

Re: [PATCH for-next 3/4] RDMA/hns: Update the IRRL table chunk size in hip08

2017-10-17 Thread Wei Hu (Xavier)
On 2017/10/1 13:40, Leon Romanovsky wrote: On Sat, Sep 30, 2017 at 05:29:00PM +0800, Wei Hu (Xavier) wrote: As the increase of the IRRL specification in hip08, the IRRL table chunk size needs to be updated. This patch updates the IRRL table chunk size to 256k for hip08. Signed-off-by: Wei Hu

[PATCH v3] usb: wusbcore: Use put_unaligned_le32

2017-10-17 Thread Himanshu Jha
Use put_unaligned_le32 rather than using byte ordering function and memcpy which makes code clear. Also, add the header file where it is declared. Done using Coccinelle and semantic patch used is : @ rule1 @ identifier tmp; expression ptr,x; type T; @@ - tmp = cpu_to_le32(x); <+... when != tm

Re: [PATCH 3/4] reset: tegra: check BPMP response return code

2017-10-17 Thread Thierry Reding
On Tue, Oct 17, 2017 at 12:52:17PM +0200, Philipp Zabel wrote: > Hi Thierry, > > On Tue, 2017-10-17 at 12:40 +0200, Thierry Reding wrote: > > On Thu, Sep 07, 2017 at 12:31:03PM +0300, Timo Alho wrote: > > > Add checks for return code in BPMP response message. > > > > > > Signed-off-by: Timo Alho

Re: [PATCH v2] usb: wusbcore: Use put_unaligned_le32

2017-10-17 Thread Himanshu Jha
On Tue, Oct 17, 2017 at 11:51:14AM +0200, Greg KH wrote: > On Fri, Oct 06, 2017 at 08:38:07PM +0530, Himanshu Jha wrote: > > Use put_unaligned_le32 rather than using byte ordering function and > > memcpy which makes code clear. > > Also, add the header file where it is declared. > > > > Done using

Re: [PATCH v2 2/3] irqchip: Add Realtek RTD1295 mux driver

2017-10-17 Thread Andreas Färber
Am 11.10.2017 um 19:35 schrieb Marc Zyngier: > On 28/08/17 11:53, Andreas Färber wrote: >> This irq mux driver is derived from the RTD1295 vendor DT and assumes a >> linear mapping between intr_en and intr_status registers. >> Code for RTD119x indicates this may not always be the case (i2c_3). >> >

Re: [PATCH 15/23] drm/sun4i: Add LVDS support

2017-10-17 Thread Chen-Yu Tsai
On Tue, Oct 17, 2017 at 5:06 PM, Maxime Ripard wrote: > The TCON supports the LVDS interface to output to a panel or a bridge. > Let's add support for it. > > Signed-off-by: Maxime Ripard > --- > drivers/gpu/drm/sun4i/Makefile | 1 +- > drivers/gpu/drm/sun4i/sun4i_lvds.c | 183

Re: [PATCH 0/4] char-TPM: Adjustments for ten function implementations

2017-10-17 Thread Mimi Zohar
Hi Julia, On Tue, 2017-10-17 at 12:11 +0200, Julia Lawall wrote: > > On Tue, 17 Oct 2017, Dan Carpenter wrote: > > > On Tue, Oct 17, 2017 at 10:56:42AM +0200, Julia Lawall wrote: > > > > > > > > > On Tue, 17 Oct 2017, Dan Carpenter wrote: > > > > > > > On Mon, Oct 16, 2017 at 09:35:12PM +0300, J

Re: [PATCH 04/11] Define the virtual space of KASan's shadow region

2017-10-17 Thread Ard Biesheuvel
On 17 October 2017 at 12:27, Liuwenliang (Lamb) wrote: > On 10/17/2017 12:40 AM, Abbott Liu wrote: >> Ard Biesheuvel [ard.biesheu...@linaro.org] wrote >>This is unnecessary: >> >>ldr r1, =TASK_SIZE >> >>will be converted to a mov instruction by the assembler if the value of >>TASK_SIZE fits its 1

[PATCH] ALSA: au88x0: remove redundant assignment of variable i

2017-10-17 Thread Colin King
From: Colin Ian King The assignment to variable i is redundant as it is never read because it is updated a little later on. Remove this assignment. Cleans up clang warning: Value stored to 'i' is never read Signed-off-by: Colin Ian King --- sound/pci/au88x0/au88x0_core.c | 2 +- 1 file changed

Re: [PATCH] dmaengine: rcar-dmac: use DMATCRB when xxx_TO_MEM direction

2017-10-17 Thread Laurent Pinchart
Hi Morimoto-san, On Tuesday, 17 October 2017 03:18:49 EEST Kuninori Morimoto wrote: > Hi > > > Thank you for your explanation. > > My 1st patch focused to "transfer completed" count (= TCRB) for all case. > > In any case, "completed" information should be used. > > But in MEM_TO_DEV case, I thoug

Re: [PATCH v9 00/20] simplify crypto wait for async op

2017-10-17 Thread Gilad Ben-Yossef
On Sun, Oct 15, 2017 at 6:38 PM, Herbert Xu wrote: > > On Sun, Oct 15, 2017 at 10:19:45AM +0100, Gilad Ben-Yossef wrote: > > > > Changes from v8: > > - Remove the translation of EAGAIN return code to the > > previous return code of EBUSY for the user space > > interface of algif as no one seem

Re: [Part1 PATCH v6 16/17] X86/KVM: Decrypt shared per-cpu variables when SEV is active

2017-10-17 Thread Brijesh Singh
On 10/17/17 3:20 AM, Borislav Petkov wrote: > On Mon, Oct 16, 2017 at 08:43:15PM -0500, Brijesh Singh wrote: >> Actually, I worked to enable the kvmclock support before the >> kvm-stealtime, eoi and apf_reason. The kvmclock uses memblock_alloc() to >> allocate the shared memory and since the memb

Re: [PATCH V8 4/5] libsas: Align SMP req/resp to dma_get_cache_alignment()

2017-10-17 Thread Marek Szyprowski
Hi Huacai, On 2017-10-17 10:05, Huacai Chen wrote: In non-coherent DMA mode, kernel uses cache flushing operations to maintain I/O coherency, so libsas's SMP request/response should be aligned to ARCH_DMA_MINALIGN. Otherwise, If a DMA buffer and a kernel structure share a same cache line, and if

Re: [PATCH 18/23] arm: dts: sun8i: a83t: Enable the PWM

2017-10-17 Thread Chen-Yu Tsai
On Tue, Oct 17, 2017 at 5:06 PM, Maxime Ripard wrote: > The A83T has the same PWM block than the H3. Add it to our DT. > > Signed-off-by: Maxime Ripard Reviewed-by: Chen-Yu Tsai

RE: [PATCH 3/4] char/tpm: Improve a size determination in nine functions

2017-10-17 Thread Alexander.Steffen
> > Replace the specification of data structures by pointer dereferences > > as the parameter for the operator "sizeof" to make the corresponding > > size > > determination a bit safer according to the Linux coding style > > convention. > > > This patch does one style in favor of the other. I ac

Re: [PATCH 2/2] mm: rename page dtor functions to {compound,huge,transhuge}_page__dtor

2017-10-17 Thread Michal Hocko
On Tue 17-10-17 14:22:14, Kirill A. Shutemov wrote: > On Tue, Oct 17, 2017 at 12:22:03PM +0200, Michal Hocko wrote: > > On Mon 16-10-17 17:19:17, changbin...@intel.com wrote: > > > From: Changbin Du > > > > > > The current name free_{huge,transhuge}_page are paired with > > > alloc_{huge,transhug

Re: [PATCH v4 1/3] livepatch: use lists to manage patches, objects and functions

2017-10-17 Thread Miroslav Benes
> diff --git a/kernel/livepatch/core.c b/kernel/livepatch/core.c > index b9628e4..b7f77be 100644 > --- a/kernel/livepatch/core.c > +++ b/kernel/livepatch/core.c > @@ -608,6 +608,7 @@ static int klp_init_func(struct klp_object *obj, struct > klp_func *func) > INIT_LIST_HEAD(&func->stack_node

Re: [PATCH v2 0/2] staging: atomisp: memory allocation cleanups

2017-10-17 Thread Sakari Ailus
Hi Aishwarya, On Sat, Oct 14, 2017 at 07:24:00PM +0530, Aishwarya Pant wrote: > Patch series performs minor code cleanups using coccinelle to simplify memory > allocation tests and remove redundant OOM log messages. > > Changes in v2: > Rebase and re-send patches > > Aishwarya Pant (2): > stag

Re: [PATCH v2] usb: wusbcore: Use put_unaligned_le32

2017-10-17 Thread Greg KH
On Tue, Oct 17, 2017 at 05:20:29PM +0530, Himanshu Jha wrote: > On Tue, Oct 17, 2017 at 11:51:14AM +0200, Greg KH wrote: > > On Fri, Oct 06, 2017 at 08:38:07PM +0530, Himanshu Jha wrote: > > > Use put_unaligned_le32 rather than using byte ordering function and > > > memcpy which makes code clear. >

[PATCH] netfilter: ip6_tables: remove redundant assignment to e

2017-10-17 Thread Colin King
From: Colin Ian King The assignment to variable e is redundant since the same assignment occurs just a few lines later, hence it can be removed. Cleans up clang warning: warning: Value stored to 'e' is never read Signed-off-by: Colin Ian King --- net/ipv6/netfilter/ip6_tables.c | 1 - 1 file

Re: [PATCH 1/2] mm: drop migrate type checks from has_unmovable_pages

2017-10-17 Thread Michal Hocko
On Tue 17-10-17 22:41:08, Michael Ellerman wrote: > Michal Hocko writes: > > > From: Michal Hocko > > > > Michael has noticed that the memory offline tries to migrate kernel code > > pages when doing > > echo 0 > /sys/devices/system/memory/memory0/online > > > > The current implementation will

Re: [PATCH] xhci: Set DMA parameters appropriately

2017-10-17 Thread Marek Szyprowski
Hi Robin, On 2017-10-13 12:48, Robin Murphy wrote: On 13/10/17 09:15, Marek Szyprowski wrote: On 2017-10-11 15:56, Robin Murphy wrote: xHCI requires that data buffers do not cross 64KB boundaries (and are thus at most 64KB long as well) - whilst xhci_queue_{bulk,isoc}_tx() already split their

Re: [PATCH RESEND] perf record: Fix documentation for a disused option '-l'

2017-10-17 Thread Arnaldo Carvalho de Melo
Em Sat, Oct 14, 2017 at 12:10:12AM +0900, Taeung Song escreveu: > perf-record had a '-l' option that mean "scale counter values" > very long time ago, but it currently belong to perf-stat as '-c'. > So remove it. I found this problem in the below case. Applied, - Arnaldo > $ perf record -e

[PATCH -next] iommu/ipmmu-vmsa: Fix return value check in ipmmu_find_group_dma()

2017-10-17 Thread Wei Yongjun
In case of error, the function iommu_group_get() returns NULL pointer not ERR_PTR(). The IS_ERR() test in the return value check should be replaced with NULL test. Fixes: 3ae47292024f ("iommu/ipmmu-vmsa: Add new IOMMU_DOMAIN_DMA ops") Signed-off-by: Wei Yongjun --- drivers/iommu/ipmmu-vmsa.c | 2

Re: [PATCH 1/9] drm/panel: simple: add a macro for defining display modes in a simpler and less error prone way

2017-10-17 Thread Thierry Reding
On Wed, Oct 11, 2017 at 01:23:33PM +0200, Lothar Waßmann wrote: > Create a macro that eases the definition of display mode parameters by > accecpting the parameters: > freq, hactive, hfront-porch, hsynclen, hback-porch, > vactive, vfront-porch, vsynclen, vback-porch, vrefresh > that can be usually

Re: [PATCH 21/23] arm: dts: sun8i: a711: Add regulator support

2017-10-17 Thread Chen-Yu Tsai
On Tue, Oct 17, 2017 at 5:06 PM, Maxime Ripard wrote: No description? > Signed-off-by: Maxime Ripard > --- > arch/arm/boot/dts/sun8i-a83t-tbs-a711.dts | 163 +-- > 1 file changed, 154 insertions(+), 9 deletions(-) > > diff --git a/arch/arm/boot/dts/sun8i-a83t-tbs-a711.dts

Re: [PATCH 2/9] drm/panel: simple: simplify display_mode definitions by using macro

2017-10-17 Thread Thierry Reding
On Wed, Oct 11, 2017 at 01:23:34PM +0200, Lothar Waßmann wrote: > Use the newly defined macro to generate the display_mode data entries > for all panels. This reduces the code size significantly and makes the > code more readable. > > Signed-off-by: Lothar Waßmann > --- > drivers/gpu/drm/panel/p

[PATCH -next] nullb: fix error return code in null_init()

2017-10-17 Thread Wei Yongjun
Fix to return error code -ENOMEM from the null_alloc_dev() error handling case instead of 0, as done elsewhere in this function. Fixes: 2984c8684f96 ("nullb: factor disk parameters") Signed-off-by: Wei Yongjun --- drivers/block/null_blk.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)

[PATCH 0/3] PowerPC-OPAL: Adjustments for some function implementations

2017-10-17 Thread SF Markus Elfring
From: Markus Elfring Date: Tue, 17 Oct 2017 13:45:54 +0200 Three update suggestions were taken into account from static source code analysis. Markus Elfring (3): Delete ten error messages for a failed memory allocation Improve 12 size determinations Fix a typo in a comment line of two file

[PATCH 1/3] powerpc-opal: Delete ten error messages for a failed memory allocation

2017-10-17 Thread SF Markus Elfring
From: Markus Elfring Date: Tue, 17 Oct 2017 12:21:40 +0200 Omit extra messages for a memory allocation failure in these functions. This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elfring --- arch/powerpc/platforms/powernv/opal-async.c| 2 -- arch/power

Re: [PATCH 3/9] drm/panel: simple: make it possible to override LCD bus format

2017-10-17 Thread Thierry Reding
On Wed, Oct 11, 2017 at 01:23:35PM +0200, Lothar Waßmann wrote: > The baseboards for the Ka-Ro electronics series of i.MX modules > use a 24bit LCD interface, no matter what LCD bus width the SoC on the > module provides and what the LCD panel expects. LCDs with 6bit per color > will ignore the 2 L

[PATCH 2/3] powerpc-opal: Improve 12 size determinations

2017-10-17 Thread SF Markus Elfring
From: Markus Elfring Date: Tue, 17 Oct 2017 13:20:19 +0200 Replace the specification of data types by variable references as the parameter for the operator "sizeof" to make the corresponding size determination a bit safer according to the Linux coding style convention. Signed-off-by: Markus Elfr

Re: [PATCH 0/9] Intel Processor Trace virtulization enabling

2017-10-17 Thread Paolo Bonzini
On 16/10/2017 14:09, Luwei Kang wrote: > 2. Enabling use of EPT to redirect PT output. > — This enables the VMM to elect to virtualize the PT output buffer using > EPT. In this mode, the CPU will treat PT output addresses as Guest Physical > Addresses (GPAs) and translate them using EPT. This

Re: [PATCH 1/9] drm/panel: simple: add a macro for defining display modes in a simpler and less error prone way

2017-10-17 Thread Lothar Waßmann
Hi, On Tue, 17 Oct 2017 14:08:18 +0200 Thierry Reding wrote: > On Wed, Oct 11, 2017 at 01:23:33PM +0200, Lothar Waßmann wrote: > > Create a macro that eases the definition of display mode parameters by > > accecpting the parameters: > > freq, hactive, hfront-porch, hsynclen, hback-porch, > > vacti

Re: [PATCH] tty: metag_da: Convert timers to use timer_setup()

2017-10-17 Thread James Hogan
On Mon, Oct 16, 2017 at 04:28:36PM -0700, Kees Cook wrote: > In preparation for unconditionally passing the struct timer_list pointer to > all timer callbacks, switch to using the new timer_setup() and from_timer() > to pass the timer pointer explicitly. > > Cc: James Hogan > Cc: Greg Kroah-Hartm

Re: [PATCH 4/9] drm/panel: simple: add support for overriding the pixel clock polarity

2017-10-17 Thread Thierry Reding
On Wed, Oct 11, 2017 at 01:23:36PM +0200, Lothar Waßmann wrote: > The Ka-Ro electronics MB7 baseboard has an on-board LCD->LVDS > converter that requires a fixed pixelclk polarity, no matter what the > panel's display_mode specifies. Add an option to override the pixelclk > polarity defined in the

[PATCH 3/3] powerpc-opal: Fix a typo in a comment line of two file headers

2017-10-17 Thread SF Markus Elfring
From: Markus Elfring Date: Tue, 17 Oct 2017 13:31:42 +0200 Fix a word in these descriptions. Signed-off-by: Markus Elfring --- arch/powerpc/platforms/powernv/opal-hmi.c | 2 +- arch/powerpc/platforms/powernv/opal-memory-errors.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-

Re: [PATCH] ALSA: au88x0: remove redundant assignment of variable i

2017-10-17 Thread Takashi Iwai
On Tue, 17 Oct 2017 13:53:21 +0200, Colin King wrote: > > From: Colin Ian King > > The assignment to variable i is redundant as it is never read > because it is updated a little later on. Remove this assignment. > Cleans up clang warning: Value stored to 'i' is never read > > Signed-off-by: Col

Re: [PATCH 23/23] arm: dts: sun8i: a711: Enable the LCD

2017-10-17 Thread Chen-Yu Tsai
On Tue, Oct 17, 2017 at 5:06 PM, Maxime Ripard wrote: > The A711 has 1024x600 LVDS panel, with a PWM-based backlight. Add it to our > DT. > > Signed-off-by: Maxime Ripard Reviewed-by: Chen-Yu Tsai Though I think tcon0 could be enabled by default all the time.

Re: [PATCH 00/23] drm/sun4i: Add A83t LVDS support

2017-10-17 Thread Chen-Yu Tsai
On Tue, Oct 17, 2017 at 5:06 PM, Maxime Ripard wrote: > Hi, > > Here is an attempt at supporting the LVDS output in our DRM driver. This > has been tested on the A83T (with DE2), but since everything is basically > in the TCON, it should also be usable on the older SoCs with minor > modifications.

Re: [PATCH 12/23] drm/sun4i: sun8i: properly support UI channels

2017-10-17 Thread icenowy
在 2017-10-17 17:06,Maxime Ripard 写道: The current code has the wrong macro to get the registers offsets of the UI-registers, with an off-by-0x1000 error. It works so far by accident, since the UI channel used everywhere else is the number of VI planes, which has always been 1 so far, and the o

[PATCH 04/10] drm/sun4i: Add support for A10 display pipeline components

2017-10-17 Thread Chen-Yu Tsai
The A10 display pipeline has 2 frontends, 2 backends, and 2 TCONs. This patch adds support (or a compatible string in the frontend's case) for these components. The TCONs support directly outputting to CPU/RGB/LVDS LCD panels, or it can output to HDMI via an on-chip HDMI controller, or CVBS/YPbPr/

[PATCH 05/10] drm/sun4i: Add support for A20 display pipeline components

2017-10-17 Thread Chen-Yu Tsai
From: Jonathan Liu The A20 display pipeline has 2 frontends, 2 backends, and 2 TCONs. This patch adds support (or a compatible string in the frontend's case) for these components. The TCONs support directly outputting to CPU/RGB/LVDS LCD panels, or it can output to HDMI via an on-chip HDMI contr

[PATCH] ALSA: emu10k1: remove redundant assignment to tmp

2017-10-17 Thread Colin King
From: Colin Ian King The assignment to variable tmp is redundant as the value is never read and a new value is assigned to tmp in the following for-loop, so remove the assignment. Cleans up clang warning: Value stored to 'tmp' is never read Signed-off-by: Colin Ian King --- sound/pci/emu10k1/e

[PATCH 01/10] drm/sun4i: backend: Support output muxing

2017-10-17 Thread Chen-Yu Tsai
The backend has a mux to select the destination of the data to output to. It can select the TCON or the frontends. On the A20, it includes an option to output to the second TCON. This is not documented in the user manual, but the vendor kernel uses it nevertheless, so the second backend outputs to

[PATCH 03/10] drm/sun4i: hdmi: Support HDMI controller on A10

2017-10-17 Thread Chen-Yu Tsai
The HDMI controller in the A10 SoC is the same as the one currently supported in the A10s. It has slightly different setup parameters. Since these parameters are not thoroughly understood, we add support for this variant by copying these parameters verbatim. Signed-off-by: Chen-Yu Tsai --- .../b

[PATCH 02/10] drm/sun4i: tcon: Add support for A10 TCON

2017-10-17 Thread Chen-Yu Tsai
From: Jonathan Liu The A10 has two TCONs that are similar to the ones found on other SoCs. Like the A31, TCON0 has a register used to mux the TCON outputs to the downstream encoders. The bit fields are slightly different. Signed-off-by: Jonathan Liu [w...@csie.org: Reworked for A10 and fixed up

[PATCH 10/10] ARM: dts: sun7i: Enable HDMI support on some A20 devices

2017-10-17 Thread Chen-Yu Tsai
All the A20 devices I own have standard HDMI connectors wired to the dedicated HDMI pins on the SoC: - Bananapi M1+ - Cubieboard 2 - Cubietruck - Lamobo R1 (or Bananapi R1) Development boards from Olimex also have standard HDMI connectors. Schematics for them are publicly available. Enabl

[PATCH 08/10] ARM: dts: sun4i: Enable HDMI support on some A10 devices

2017-10-17 Thread Chen-Yu Tsai
Various A10-based development boards have standard HDMI connectors wired to the dedicated HDMI pins on the SoC. Enable the display pipeline and HDMI output on boards I have or have access to schematics: - Cubieboard - Olimex A10-OLinuXino-LIME Signed-off-by: Chen-Yu Tsai --- Can someone co

[PATCH 07/10] ARM: dts: sun4i: Add device nodes for display pipelines

2017-10-17 Thread Chen-Yu Tsai
The A10 has two interconnected display pipelines, much like the A31, but without the DRCs between the backend and TCONs. Add all the device nodes for them, including the downstream HDMI controller that we already support. Signed-off-by: Chen-Yu Tsai --- arch/arm/boot/dts/sun4i-a10.dtsi | 306 ++

[PATCH 09/10] ARM: dts: sun7i: Add device nodes for display pipelines

2017-10-17 Thread Chen-Yu Tsai
From: Jonathan Liu The A20 has two interconnected display pipelines, mirroring the A10. Add all the device nodes for them, including the downstream HDMI controller that we already support. Signed-off-by: Jonathan Liu [w...@csie.org: Squashed in HDMI and provided commit message] Signed-off-by:

[PATCH 00/10] drm/sunxi: Display pipeline and HDMI output on A10/A20

2017-10-17 Thread Chen-Yu Tsai
Hi everyone, This series adds display support for Allwinner A10/A20 SoCs to the sun4i-drm driver. The core display pipeline components and HDMI are covered. LCD panel RGB output should also be available, but I do not have devices to test this on. Jonathan had HDMI working on the A20, along with L

Re: [PATCH] spi: fix bogus SPI bus number

2017-10-17 Thread Lucas Stach
Am Dienstag, den 17.10.2017, 12:44 +0200 schrieb Arnd Bergmann: > lkft found a boot time regression on the Hikey board that has no > aliases entry for spi buses. of_alias_get_highest_id() here > returns -ENODEV, which is then used as the initial number for the > IDR allocation, and that in turn tri

[PATCH 06/10] clk: sunxi-ng: sun4i: Export video PLLs

2017-10-17 Thread Chen-Yu Tsai
From: Jonathan Liu The video PLLs are used directly by the HDMI controller. Export them so that we can use them in our DT node. Signed-off-by: Jonathan Liu Signed-off-by: Chen-Yu Tsai --- drivers/clk/sunxi-ng/ccu-sun4i-a10.h | 4 ++-- include/dt-bindings/clock/sun4i-a10-ccu.h | 2 ++ 2 f

Re: [PATCH 4/9] drm/panel: simple: add support for overriding the pixel clock polarity

2017-10-17 Thread Lothar Waßmann
Hi, On Tue, 17 Oct 2017 14:14:22 +0200 Thierry Reding wrote: > On Wed, Oct 11, 2017 at 01:23:36PM +0200, Lothar Waßmann wrote: > > The Ka-Ro electronics MB7 baseboard has an on-board LCD->LVDS > > converter that requires a fixed pixelclk polarity, no matter what the > > panel's display_mode specif

Re: [PATCH] spi: fix bogus SPI bus number

2017-10-17 Thread Mark Brown
On Tue, Oct 17, 2017 at 12:44:50PM +0200, Arnd Bergmann wrote: > lkft found a boot time regression on the Hikey board that has no > aliases entry for spi buses. of_alias_get_highest_id() here > returns -ENODEV, which is then used as the initial number for the > IDR allocation, and that in turn trig

Re: [PATCH 1/2] fs, elf: drop MAP_FIXED usage from elf_map

2017-10-17 Thread Baoquan He
Hi Michal, Earlier I posted a patchset to clean up these in a different way, but patches sent to your below mail address are all rejected. : host mail.kerne.org[104.131.33.237] said: 454 4.1.1 : Recipient address rejected: User unknown in virtual mailbox table (in reply to RCPT TO command

Re: [PATCH 0/4] char-TPM: Adjustments for ten function implementations

2017-10-17 Thread Michael Ellerman
Dan Carpenter writes: > On Tue, Oct 17, 2017 at 10:56:42AM +0200, Julia Lawall wrote: >> >> >> On Tue, 17 Oct 2017, Dan Carpenter wrote: >> >> > On Mon, Oct 16, 2017 at 09:35:12PM +0300, Jarkko Sakkinen wrote: >> > > >> > > A minor complaint: all commits are missing "Fixes:" tag. >> > > >> > >

[PATCH 0/2] [media] davinci: make function arguments and structures const

2017-10-17 Thread Bhumika Goyal
Make some function arguments as const. After this changes make ccdc_hw_device structures as const. Bhumika Goyal (2): [media] davinci: make function arguments const [media] davinci: make ccdc_hw_device structures const drivers/media/platform/davinci/ccdc_hw_device.h | 4 ++-- drivers/media/p

[PATCH 1/2] [media] davinci: make function arguments const

2017-10-17 Thread Bhumika Goyal
Make the function arguments of functions vpfe_{register/unregister}_ccdc_device const as the pointer dev does not modify the fields of the structure it points to. Also, declare the variable ccdc_dev const as it points to the same structure as dev but it does not modify the fields as well. Signed

[PATCH 2/2] [media] davinci: make ccdc_hw_device structures const

2017-10-17 Thread Bhumika Goyal
Make these structures const as they are only getting passed to the functions vpfe_{register/unregister}_ccdc_device having the argument as const. Structures found using Coccinelle and changes done by hand. Signed-off-by: Bhumika Goyal --- drivers/media/platform/davinci/dm355_ccdc.c | 2 +- dri

Re: [PATCH v2 1/1] arm: topology: remove cpu_efficiency

2017-10-17 Thread Vincent Guittot
Hi Dietmar, On 12 October 2017 at 16:00, Dietmar Eggemann wrote: > Remove the 'cpu_efficiency/clock-frequency dt property' based solution > to set cpu capacity which was only working for Cortex-A15/A7 arm > big.LITTLE systems. > > I.e. the 'capacity-dmips-mhz' based solution is now the only one.

Re: [patch 2/3] PCI/MSI: Set MSI_FLAG_MUST_REACTIVATE in core code

2017-10-17 Thread Thomas Gleixner
On Tue, 17 Oct 2017, Thomas Gleixner wrote: > If interrupt reservation mode is enabled then the PCI/MSI interrupts must > be reactivated after early activation. > > Make sure that all callers of pci_msi_create_irq_domain() have the > MSI_FLAG_MUST_REACTIVATE set when reservation mode is enabled.

Re: [PATCH 02/25] thermal/drivers/hisi: Remove the multiple sensors support

2017-10-17 Thread Daniel Lezcano
On 17/10/2017 05:54, Eduardo Valentin wrote: > On Tue, Oct 10, 2017 at 08:02:27PM +0200, Daniel Lezcano wrote: >> By essence, the tsensor does not really support multiple sensor at the same >> time. It allows to set a sensor and use it to get the temperature, another >> sensor could be switched but

Re: [PATCH 16/23] drm/sun4i: Add A83T support

2017-10-17 Thread icenowy
在 2017-10-17 17:06,Maxime Ripard 写道: Add support for the A83T display pipeline. Signed-off-by: Maxime Ripard --- Documentation/devicetree/bindings/display/sunxi/sun4i-drm.txt | 3 +++ drivers/gpu/drm/sun4i/sun4i_drv.c | 2 ++ drivers/gpu/drm/sun4i/sun4i_tcon.c

Re: [PATCH] powerpc/watchdog: Convert timers to use timer_setup()

2017-10-17 Thread Michael Ellerman
Nicholas Piggin writes: > On Mon, 16 Oct 2017 16:47:10 -0700 > Kees Cook wrote: > >> In preparation for unconditionally passing the struct timer_list pointer to >> all timer callbacks, switch to using the new timer_setup() and from_timer() >> to pass the timer pointer explicitly. >> >> Cc: Benj

Re: RFC(v2): Audit Kernel Container IDs

2017-10-17 Thread Simo Sorce
On Mon, 2017-10-16 at 21:42 -0400, Steve Grubb wrote: > On Monday, October 16, 2017 8:33:40 PM EDT Richard Guy Briggs wrote: > > There is such a thing, but the kernel doesn't know about it > > yet.  This same situation exists for loginuid and sessionid which > > are userspace concepts that the ker

Re: [PATCH -mm] mm, pagemap: Fix soft dirty marking for PMD migration entry

2017-10-17 Thread Zi Yan
Huang, Ying wrote: > "Kirill A. Shutemov" writes: > >> On Tue, Oct 17, 2017 at 04:18:18PM +0800, Huang, Ying wrote: >>> From: Huang Ying >>> >>> Now, when the page table is walked in the implementation of >>> /proc//pagemap, pmd_soft_dirty() is used for both the PMD huge >>> page map and the P

Re: [PATCH v5 2/2] staging: ion: create one device entry per heap

2017-10-17 Thread Benjamin Gaignard
2017-10-17 0:09 GMT+02:00 Laura Abbott : > On 10/10/2017 02:11 AM, Mark Brown wrote: >> On Mon, Oct 09, 2017 at 05:10:37PM -0700, Laura Abbott wrote: >>> On 10/09/2017 03:08 PM, Mark Brown wrote: On Mon, Oct 09, 2017 at 02:25:47PM -0700, Laura Abbott wrote: >> > Anyway, to move this forwar

Re: [RFC PATCH v4 7/8] pwm: Add dummy pwmchip for orphan pwms

2017-10-17 Thread Thierry Reding
On Tue, Oct 17, 2017 at 06:16:23PM +0800, Jeffy Chen wrote: > When the pwm driver is unbound while the pwm is still requested, the > pwm core would not actually remove the pwmchip(return -EBUSY instead). > > So it would hold some references to the invalid resources(e.g. pwmchip). > > And the cust

Re: [PATCH 3/9] drm/panel: simple: make it possible to override LCD bus format

2017-10-17 Thread Lothar Waßmann
Hi, On Tue, 17 Oct 2017 14:12:40 +0200 Thierry Reding wrote: > On Wed, Oct 11, 2017 at 01:23:35PM +0200, Lothar Waßmann wrote: > > The baseboards for the Ka-Ro electronics series of i.MX modules > > use a 24bit LCD interface, no matter what LCD bus width the SoC on the > > module provides and what

Re: 【BUG】The kernel start fail when enable CONFIG_ARM64_LSE_ATOMICS and KCOV_INSTRUMENT_ALL

2017-10-17 Thread Bixuan Cui
> This is a known issue [1,2] that's being worked on at the moment. > > The problem is that the out-of-line LL/SC atomics are built with a > special ABI, but KCOV inserts calls to other code that does not follow > this ABI, resulting in register corruption. > > When I saw this happen, this result

Re: [PATCH 4/9] drm/panel: simple: add support for overriding the pixel clock polarity

2017-10-17 Thread Thierry Reding
On Tue, Oct 17, 2017 at 02:25:07PM +0200, Lothar Waßmann wrote: > Hi, > > On Tue, 17 Oct 2017 14:14:22 +0200 Thierry Reding wrote: > > On Wed, Oct 11, 2017 at 01:23:36PM +0200, Lothar Waßmann wrote: > > > The Ka-Ro electronics MB7 baseboard has an on-board LCD->LVDS > > > converter that requires a

[PATCH v3 2/5] irqchip: Add Realtek RTD1295 mux driver

2017-10-17 Thread Andreas Färber
This irq mux driver implements the RTD1295 SoC's non-linear mapping between status and enable bits. Based in part on QNAP's arch/arm/mach-rtk119x/rtk_irq_mux.c and Synology's drivers/irqchip/irq-rtk.c code. Signed-off-by: Andreas Färber --- v2 -> v3: * Adopted spin_lock_irq{save,restore}() (Ma

Re: stable-rc build: 9 warnings 0 failures (stable-rc/v3.18.75-20-g4ffe554)

2017-10-17 Thread Arnd Bergmann
On Tue, Oct 17, 2017 at 12:22 PM, Olof's autobuilder wrote: > Warnings: > > 9 sound/usb/mixer.c:2161:27: warning: passing argument 1 of > 'snd_usb_mixer_disconnect' from incompatible pointer type > [-Wincompatible-pointer-types] This broke after backporting 124751d5e63c ("ALSA: usb-audio:

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