Re: [PATCH v2] leds: pm8058: Silence pointer to integer size warning

2017-11-30 Thread Lee Jones
On Thu, 30 Nov 2017, Bjorn Andersson wrote: > The pointer returned by of_device_get_match_data() doesn't have the same > size as u32 on 64-bit architectures, causing a compile warning when > compile-testing the driver on such platform. > > Cast the return value of of_device_get_match_data() to un

Re: [PATCH] leds: pm8058: Make ledtype pointer sized type

2017-11-30 Thread Lee Jones
On Thu, 30 Nov 2017, Jacek Anaszewski wrote: > On 11/30/2017 09:31 AM, Lee Jones wrote: > > On Thu, 30 Nov 2017, Lee Jones wrote: > > > >> On Wed, 29 Nov 2017, Bjorn Andersson wrote: > >> > >>> The pointer returned by of_device_get_match_data() doesn't have the same > >>> size as u32 on 64-bit ar

Re: [PATCH v4 3/8] MIPS: Octeon: Add a global resource manager.

2017-11-30 Thread Philippe Ombredanne
Carlos, On Thu, Nov 30, 2017 at 11:53 PM, James Hogan wrote: > On Tue, Nov 28, 2017 at 04:55:35PM -0800, David Daney wrote: >> From: Carlos Munoz >> >> Add a global resource manager to manage tagged pointers within >> bootmem allocated memory. This is used by various functional >> blocks in the

Re: [PATCH RFC 2/2] arm64: allwinner: a64: Add Brava Keller initial support

2017-11-30 Thread Maxime Ripard
On Fri, Dec 01, 2017 at 12:12:14AM +0530, Jagan Teki wrote: > Brava Keller is A64 based IoT device, which support > - Allwinner A64 Cortex-A53 > - AXP803 PMIC > - 1GB DDR3 RAM > - 8GB eMMC > - Mali-400MP2 GPU > - AP6330 Wifi/BLE > - Camera OV5640 > - USB Host and OTG > > Signed-off-by: Jagan Teki

[PATCH v2 3/3] ARM: CMA: avoid double mapping to the CMA area if CONFIG_HIGHMEM = y

2017-11-30 Thread js1304
From: Joonsoo Kim CMA area is now managed by the separate zone, ZONE_MOVABLE, to fix many MM related problems. In this implementation, if CONFIG_HIGHMEM = y, then ZONE_MOVABLE is considered as HIGHMEM and the memory of the CMA area is also considered as HIGHMEM. That means that they are considere

[PATCH v2 1/3] mm/cma: manage the memory of the CMA area by using the ZONE_MOVABLE

2017-11-30 Thread js1304
From: Joonsoo Kim 0. History This patchset is the follow-up of the discussion about the "Introduce ZONE_CMA (v7)" [1]. Please reference it if more information is needed. 1. What does this patch do? This patch changes the management way for the memory of the CMA area in the MM subsystem. Curren

[PATCH v2 2/3] mm/cma: remove ALLOC_CMA

2017-11-30 Thread js1304
From: Joonsoo Kim Now, all reserved pages for CMA region are belong to the ZONE_MOVABLE and it only serves for a request with GFP_HIGHMEM && GFP_MOVABLE. Therefore, we don't need to maintain ALLOC_CMA at all. Reviewed-by: Aneesh Kumar K.V Acked-by: Vlastimil Babka Signed-off-by: Joonsoo Kim -

[PATCH v2 0/3] mm/cma: manage the memory of the CMA area by using the ZONE_MOVABLE

2017-11-30 Thread js1304
From: Joonsoo Kim v2 o previous failure in linux-next turned out that it's not the problem of this patchset. It was caused by the wrong assumption by specific architecture. lkml.kernel.org/r/20171114173719.ga28...@atomide.com o add missing cache flush to the patch "ARM: CMA: avoid double mappin

[PATCH v5 5/5] misc serdev: w2sg0004: add debugging code and Kconfig

2017-11-30 Thread H. Nikolaus Schaller
This allows to set CONFIG_W2SG0004_DEBUG which will make the driver report more activities and it will turn on the GPS module during boot while the driver assumes that it is off. This can be used to debug the correct functioning of the hardware. Therefore we add it as an option to the driver becaus

[PATCH v5 1/5] dt-bindings: define vendor prefix for Wi2Wi, Inc.

2017-11-30 Thread H. Nikolaus Schaller
Introduce vendor prefix for Wi2Wi, Inc. for W2SG00x4 GPS modules and W2CBW003 Bluetooth/WiFi combo (CSR/Marvell). Signed-off-by: H. Nikolaus Schaller Acked-by: Rob Herring --- Documentation/devicetree/bindings/vendor-prefixes.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation

[PATCH v5 3/5] misc serdev: Add w2sg0004 (gps receiver) power control driver

2017-11-30 Thread H. Nikolaus Schaller
Add driver for Wi2Wi W2SG0004/84 GPS module connected to some SoC UART. It uses serdev API hooks to monitor and forward the UART traffic to /dev/ttyGPSn and turn on/off the module. It also detects if the module is turned on (sends data) but should be off, e.g. if it was already turned on during b

[PATCH v5 4/5] DTS: gta04: add uart2 child node for w2sg00x4

2017-11-30 Thread H. Nikolaus Schaller
GTA04 has a W2SG0004/84 connected to UART2 of the OMAP3 processor. A GPIO can pulse the on/off toggle switch. The VSIM regulator is used to power on/off the LNA of an external active GPS antenna so that a driver can turn the LNA off if GPS is not needed to save battery energy. Signed-off-by: H. N

[PATCH v5 0/5] misc serdev: new serdev based driver for Wi2Wi w2sg00x4 GPS module

2017-11-30 Thread H. Nikolaus Schaller
Changes V5: * clarified to keep it in drivers/misc and not create a new group drivers/gps * fix formatting of new entry in omap3-gta04.dtsi (suggested by Tony Lindgren) * removed MODULE_ALIAS (suggested by Andrew F. Davis) * some more formatting, code&style fixes (suggested by Andrew F. Davis) * ap

[PATCH v5 2/5] dt-bindings: gps: add w2sg00x4 bindings documentation (GPS module with UART))

2017-11-30 Thread H. Nikolaus Schaller
add bindings documentation for Wi2Wi W2SG00x4 GPS module. Signed-off-by: H. Nikolaus Schaller Acked-by: Rob Herring --- .../devicetree/bindings/gps/wi2wi,w2sg0004.txt | 24 ++ 1 file changed, 24 insertions(+) create mode 100644 Documentation/devicetree/bindings/gps/wi2w

Re: [PATCH v4 2/5] soc: qcom: Introduce QMI helpers

2017-11-30 Thread Philippe Ombredanne
On Fri, Dec 1, 2017 at 6:35 AM, Bjorn Andersson wrote: > On Thu 30 Nov 00:18 PST 2017, Philippe Ombredanne wrote: > >> Bjorn, >> >> On Thu, Nov 30, 2017 at 2:16 AM, Bjorn Andersson >> wrote: >> [] >> > diff --git a/drivers/soc/qcom/qmi_interface.c >> > b/drivers/soc/qcom/qmi_interface.c >> > new

Re: [PATCH v3 1/4] omapdrm: panel: fix compatible vendor string for td028ttec1

2017-11-30 Thread H. Nikolaus Schaller
> Am 01.12.2017 um 02:57 schrieb Rob Herring : > > On Tue, Nov 28, 2017 at 04:48:54PM +0100, H. Nikolaus Schaller wrote: >> The vendor name was "toppoly" but other panels and the vendor list >> have defined it as "tpo". So let's fix it in driver and bindings. >> >> We keep the old definition in

[PATCH 1/1] timecounter: Make cyclecounter struct part of timecounter struct

2017-11-30 Thread Sagar Arun Kamble
There is no real need for the users of timecounters to define cyclecounter and timecounter variables separately. Since timecounter will always be based on cyclecounter, have cyclecounter struct as member of timecounter struct. Suggested-by: Chris Wilson Signed-off-by: Sagar Arun Kamble Cc: Chris

[PATCH v4 1/2] DTS: GTA04: improve panel compatibility string

2017-11-30 Thread H. Nikolaus Schaller
Official vendor string is now "tpo" and not "toppoly". Requires patch "omapdrm: panel: fix compatible vendor string for td028ttec1" so that the driver understands both. Signed-off-by: H. Nikolaus Schaller --- arch/arm/boot/dts/omap3-gta04.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(

Re: Creating cyclecounter and lock member in timecounter structure [ Was Re: [RFC 1/4] drm/i915/perf: Add support to correlate GPU timestamp with system time]

2017-11-30 Thread Sagar Arun Kamble
On 12/1/2017 2:33 AM, Saeed Mahameed wrote: On Mon, Nov 27, 2017 at 2:05 AM, Sagar Arun Kamble wrote: On 11/24/2017 7:01 PM, Thomas Gleixner wrote: On Fri, 24 Nov 2017, Sagar Arun Kamble wrote: On 11/24/2017 12:29 AM, Thomas Gleixner wrote: On Thu, 23 Nov 2017, Sagar Arun Kamble wrote: W

[PATCH v4 2/2] DTS: Pandora: fix panel compatibility string

2017-11-30 Thread H. Nikolaus Schaller
We can remove the unnecessary "omapdss," prefix because the omapdrm driver takes care of it when matching with the driver table. Signed-off-by: H. Nikolaus Schaller --- arch/arm/boot/dts/omap3-pandora-common.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/boot/d

[PATCH v4 0/2] Fixes for omapdrm on OpenPandora and GTA04

2017-11-30 Thread H. Nikolaus Schaller
Changes V4: * removed already accepted panel driver patches * reworded commit subject to clarify 2017-11-28 16:49:00: Changes V3: * stay compatible with old DTB files which still use "toppoly" (suggested by Tomi Valkeinen) * replaced MODULE_ALIAS entries by MODULE_DEVICE_TABLE (suggested by Andre

Re: [PATCH v3 4/4] DTS: Pandora: fix panel compatibility string

2017-11-30 Thread H. Nikolaus Schaller
> Am 30.11.2017 um 16:24 schrieb Tony Lindgren : > > * H. Nikolaus Schaller [171128 18:35]: >> Hi, >> >>> Am 28.11.2017 um 17:18 schrieb Tony Lindgren : >>> >>> * H. Nikolaus Schaller [171128 16:17]: Hi Tony, > Am 28.11.2017 um 17:04 schrieb Tony Lindgren : > > * H. Ni

Re: [PATCH 00/18] introduce a new tool, valid access checker

2017-11-30 Thread Joonsoo Kim
On Wed, Nov 29, 2017 at 10:27:00AM +0100, Dmitry Vyukov wrote: > On Tue, Nov 28, 2017 at 8:48 AM, wrote: > > From: Joonsoo Kim > > > > Hello, > > > > This patchset introduces a new tool, valid access checker. > > > > Vchecker is a dynamic memory error detector. It provides a new debug feature >

a racy access flag clearing warning when calling mmap system call

2017-11-30 Thread chenjiankang
Hi will I find a warning by a syzkaller test; When the mmap syscall is called to create a virtual memory, firstly it delete a old huge page mapping area; Before splitting the huge page, the pmd of a huge page is set up. But The PTE_AF is zreo belonging to the current pmd of huge

Re: [Intel-gfx] [RFC PATCH 3/6] drm/i915: Add HDCP framework + base implementation

2017-11-30 Thread Daniel Vetter
On Fri, Dec 01, 2017 at 12:53:31PM +0530, Ramalingam C wrote: > Sean, > > IMHO, it will good if we can have all generic hdcp1.4 authentication flow in > drm helpers and all interested display drivers to use them. > > This Design will make the extending of hdcp easy for other display drivers > bas

Re: [PATCH v4] f2fs: obsolete free nid list approach

2017-11-30 Thread Jaegeuk Kim
Hi Chao, This is really hard to review and risky a lot to apply it shortly. Do we have a strong reason we have to do this? The original design goal was to minimize allocation delay which is almost zero for now. Of course, I agreed that there'd be some trade-off though, we don't have a critical iss

Re: [RFC PATCH 5/6] drm/i915: Implement HDCP for HDMI

2017-11-30 Thread Ramalingam C
Sean, We might want to check the panel's HDCP capability? Agreed that majority of HDMI/DP panel's supports it, but there is a possibility that we might avoid authentication on non-hdcp panels. As per HDCP specification, check for valid bksv will serve the purpose. On Thursday 30 November 20

Re: [PATCH 1/2] x86/stacktrace: do not fail when regs on stack for ORC

2017-11-30 Thread Jiri Slaby
On 11/30/2017, 08:59 PM, Josh Poimboeuf wrote: > On Thu, Nov 30, 2017 at 01:57:10PM -0600, Josh Poimboeuf wrote: >> On Thu, Nov 30, 2017 at 09:03:24AM +0100, Jiri Slaby wrote: >>> save_stack_trace_reliable now returns "non reliable" when there are >>> kernel pt_regs on stack. This means an interrup

Re: [PATCH 1/2] f2fs: pass down write hints to block layer for bufferd write

2017-11-30 Thread Jaegeuk Kim
On 11/30, Chao Yu wrote: > On 2017/11/28 8:23, Hyunchul Lee wrote: > > From: Hyunchul Lee > > > > This implements which hint is passed down to block layer > > for datas from the specific segment type. > > > > segment type hints > > - > > C

Re: KASAN: stack-out-of-bounds Read in xfrm_state_find (3)

2017-11-30 Thread Steffen Klassert
On Wed, Nov 22, 2017 at 08:05:00AM -0800, syzbot wrote: > syzkaller has found reproducer for the following crash on > 0c86a6bd85ff0629cd2c5141027fc1c8bb6cde9c > git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next.git/master > compiler: gcc (GCC) 7.1.1 20170620 > .config is attached > Raw c

Re: [RFC PATCH 3/6] drm/i915: Add HDCP framework + base implementation

2017-11-30 Thread Ramalingam C
Sean, IMHO, it will good if we can have all generic hdcp1.4 authentication flow in drm helpers and all interested display drivers to use them. This Design will make the extending of hdcp easy for other display drivers based on DRM. We can have the required drm_hdcp_shim type of implementati

Re: [PATCH resend] mm/page_alloc: fix comment is __get_free_pages

2017-11-30 Thread Michal Hocko
On Thu 30-11-17 13:17:06, Andrew Morton wrote: > On Thu, 30 Nov 2017 07:53:35 +0100 Michal Hocko wrote: > > > > mm... So we have a caller which hopes to be getting highmem pages but > > > isn't. Caller then proceeds to pointlessly kmap the page and wonders > > > why it isn't getting as much mem

Re: [PATCH v2] staging: xgifb: remove macros with hidden variable

2017-11-30 Thread Dan Carpenter
On Thu, Nov 30, 2017 at 10:39:48AM -0500, Joshua Abraham wrote: > diff --git a/drivers/staging/xgifb/XGI_main_26.c > b/drivers/staging/xgifb/XGI_main_26.c > index 6feecc55d2bc..6de66eaad96b 100644 > --- a/drivers/staging/xgifb/XGI_main_26.c > +++ b/drivers/staging/xgifb/XGI_main_26.c > @@ -34,16 +

Re: [PATCH 1/3] vhost: fix skb leak in handle_rx()

2017-11-30 Thread Jason Wang
On 2017年12月01日 13:54, w...@redhat.com wrote: From: Wei Xu Matthew found a roughly 40% tcp throughput regression with commit c67df11f(vhost_net: try batch dequing from skb array) as discussed in the following thread: https://www.mail-archive.com/netdev@vger.kernel.org/msg187936.html Eventuall

Re: [PATCH 3/3] tap: free skb if flags error

2017-11-30 Thread Jason Wang
On 2017年12月01日 13:54, w...@redhat.com wrote: From: Wei Xu tap_recvmsg() supports accepting skb by msg_control after commit 3b4ba04acca8 ("tap: support receiving skb from msg_control"), the skb if presented should be freed within the function, otherwise it would be leaked. Signed-off-by: Wei

Re: [PATCH 2/3] tun: free skb in early errors

2017-11-30 Thread Jason Wang
On 2017年12月01日 13:54, w...@redhat.com wrote: From: Wei Xu tun_recvmsg() supports accepting skb by msg_control after commit ac77cfd4258f ("tun: support receiving skb through msg_control"), the skb if presented should be freed within the function, otherwise it would be leaked. Signed-off-by: W

[PATCH v2 1/2] drm/panel: support Innolux P097PFG panel

2017-11-30 Thread Lin Huang
Support Innolux P097PFG 9.7" 1536x2048 TFT LCD panel, it refactor Innolux P079ZCA panel driver, let it support multi panel, and add support P097PFG panel in this driver. Signed-off-by: Lin Huang --- Changes in v2: - change regulator property name to meet the panel datasheet drivers/gpu/drm/pan

[PATCH v2 2/2] dt-bindings: Add INNOLUX P097PFG panel bindings

2017-11-30 Thread Lin Huang
The Innolux P097PFG panel is 9.7" panel with 1536X2048 resolution, it reuse P079ZCA panel driver, so improve p079ZCA dt-binding to support P097PFG. Signed-off-by: Lin Huang --- .../devicetree/bindings/display/panel/innolux,p079zca.txt | 11 +-- 1 file changed, 9 insertions(+), 2 dele

Re: [PATCH] bus: simple-pm-bus: convert bool SIMPLE_PM_BUS to tristate

2017-11-30 Thread Simon Horman
On Thu, Nov 30, 2017 at 12:57:00PM +0100, Geert Uytterhoeven wrote: > From: Paul Gortmaker > > The Kconfig currently controlling compilation of this code is: > > config SIMPLE_PM_BUS > bool "Simple Power-Managed Bus Driver" > > ...meaning that it currently is not being built as a module

Re: [PATCH 1/4] MODSIGN: do not load mok when secure boot disabled

2017-11-30 Thread joeyli
Hi James, First, thank you for reviewing and comment! On Thu, Nov 30, 2017 at 07:51:03AM -0800, James Bottomley wrote: > On Wed, 2017-11-29 at 22:11 +0800, Lee, Chun-Yi wrote: > > The mok can not be trusted when the secure boot is disabled. Which > > means that the kernel embedded certificate is

blk-mq + bfq IO hangs after writing partition table

2017-11-30 Thread ivan
Hi, I think I am triggering a blk-mq + bfq bug that I can reproduce 100% of the time by using gdisk (1.0.1-1 in Debian stretch) to write a partition table to a USB flash drive. After it is triggered, IO hangs forever to that device and the machine cannot be shut down cleanly. I have reproduced t

Re: [PATCH v3 4/5] drm/rockchip: Add ROCKCHIP DW MIPI DSI controller driver

2017-11-30 Thread Nickey Yang
Hi Matthias, On 2017年11月29日 04:48, Matthias Kaehlcke wrote: El Tue, Nov 28, 2017 at 07:20:05PM +0800 Nickey Yang ha dit: Add the ROCKCHIP DSI controller driver that uses the Synopsys DesignWare MIPI DSI host controller bridge. v2: add err_pllref, remove unnecessary encoder.enable & disab

RE: [PATCH v3 7/9] KVM: x86: Implement Intel Processor Trace MSRs read/write

2017-11-30 Thread Kang, Luwei
> > + case MSR_IA32_RTIT_ADDR0_A ... MSR_IA32_RTIT_ADDR3_B: { > > + u32 eax, ebx, ecx, edx; > > + > > + cpuid_count(0x14, 1, &eax, &ebx, &ecx, &edx); > > Please cache the cpuid_count result, or do the cpuid_count after testing > vmx_pt_supported() (whi

[PATCH 1/4] arm: dts: imx28: Use phandles instead of unit addresses

2017-11-30 Thread venkataravi . e
From: Ravi Eluri Unit addresses for all peripherals of imx28 are defined in the corresponding dtsi file, use phandles instead of unit addresses to reference peripheral nodes in dts files. This makes the DT more robust and readable. Signed-off-by: Ravi Eluri Signed-off-by: Suniel Mahesh --- Not

[PATCH 4/4] arm: dts: imx28: Device tree cleanup

2017-11-30 Thread venkataravi . e
From: Ravi Eluri Cleaned up device tree. Signed-off-by: Ravi Eluri Signed-off-by: Suniel Mahesh --- Note: - This is the fourth patch of the four patch series. - Patch was compile tested and built(ARCH=arm, imx28) on linux-next (latest). - No build issues reported. - Please discard this chang

Re: [kernel-hardening] Re: [PATCH v5 next 5/5] net: modules: use request_module_cap() to load 'netdev-%s' modules

2017-11-30 Thread Daniel Micay
It was suggested that the feature would only be adopted in niches like Android and I pointed out that it's not really relevant to Android. It's a waste of time to try convincing me that it's useful elsewhere. I never said or implied that it wasn't. On Thu, 2017-11-30 at 09:50 +0100, Djalal Haroun

[PATCH 3/4] arm: dts: imx28: Rearrange nodes for better readability

2017-11-30 Thread venkataravi . e
From: Ravi Eluri Moved regulator, sound, leds, backlight nodes to the top of the device tree, cleaned up for better readability. Signed-off-by: Ravi Eluri Signed-off-by: Suniel Mahesh --- Note: - This is the third patch of the four patch series. - Patch was compile tested and built(ARCH=arm, i

[PATCH 2/4] arm: dts: imx28: Remove system bus unit addresses

2017-11-30 Thread venkataravi . e
From: Ravi Eluri Unit addresses for the system buses of imx28 are defined in the corresponding dtsi file. Any peripheral node on APBH, APBX and AHB busses can be accessed via phandle. Removed duplicate system bus unit address entries, this makes the DT more robust and readable. Signed-off-by: Ra

[PATCH 0/4] arm: dts: imx28: imx28-evk device tree cleanup

2017-11-30 Thread venkataravi . e
From: Ravi Eluri Removed lot of redundant device tree syntax from imx28-evk device tree to make it more robust and readable. Total four changesets and are described as follows: Changeset 1 removes unit addresses for all peripherals of imx28 in imx28-evk DT as they are already defined in the cor

[PATCH 1/6] x86/orc: Don't bail on stack overflow

2017-11-30 Thread Andy Lutomirski
If we overflow the stack into a guard page and then try to unwind it with ORC, it should work well: by construction, there can't be any meaningful data in the guard page because no writes to the guard page will have succeeded. This patch fixes a bug that unwinding from working correctly: if the st

[PATCH 3/6] Fixup "x86/asm: Remap the TSS into the cpu entry area"

2017-11-30 Thread Andy Lutomirski
Signed-off-by: Andy Lutomirski --- arch/x86/kvm/vmx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/x86/kvm/vmx.c b/arch/x86/kvm/vmx.c index 2abe0073b573..62ee4362e1c1 100644 --- a/arch/x86/kvm/vmx.c +++ b/arch/x86/kvm/vmx.c @@ -2291,7 +2291,7 @@ static void vmx_vcpu_lo

[PATCH 5/6] Fixup "x86/entry/64: Move the IST stacks into cpu_entry_area"

2017-11-30 Thread Andy Lutomirski
I'm not entirely certain, but I suspect this caused the last kbuild bot error. I wasn't able to reproduce it, but it seems plausble. Add to the commit log: The IST stacks are unlike the rest of cpu_entry_area: they're used even for entries from kernel mode. This means that they should be set up

[PATCH 2/6] Fixup "x86/asm: Fix assumptions that the HW TSS is at the beginning of cpu_tss"

2017-11-30 Thread Andy Lutomirski
Signed-off-by: Andy Lutomirski --- arch/x86/kvm/vmx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/x86/kvm/vmx.c b/arch/x86/kvm/vmx.c index a6f4f095f8f4..2abe0073b573 100644 --- a/arch/x86/kvm/vmx.c +++ b/arch/x86/kvm/vmx.c @@ -2291,7 +2291,7 @@ static void vmx_vcpu_lo

[PATCH 4/6] Unsuck "x86/entry/64: Create a percpu SYSCALL entry trampoline"

2017-11-30 Thread Andy Lutomirski
This fixes a huge performance regression. Please add to the changelog: This patch actually seems to be a small speedup. With this patch, SYSCALL touches an extra cache line and an extra virtual page, but the pipeline no longer stalls waiting for SWAPGS. It seems that, at least in a tight loop,

[PATCH 6/6] x86/entry/64: Make cpu_entry_area.tss read-only

2017-11-30 Thread Andy Lutomirski
The TSS is a fairly juicy target for exploits, and, now that the TSS is in the cpu_entry_area, it's no longer protected by kASLR. Make it read-only on x86_64. On x86_32, it can't be RO because it's written by the CPU during task switches, and we use a task gate for double faults. I'd also be ner

[PATCH 0/6] WIP.x86/mm fixes

2017-11-30 Thread Andy Lutomirski
This is a bit oddly formatted, since it's meant to by a set of changes to a tree, not a normal patch set. "x86/orc: Don't bail on stack overflow" is a fixed version of "x86/unwinder/orc: Don't bail on stack overflow". If you'd rather just manually patch it, change "regs->sp" to "state->sp". Bug

Re: [PATCH net-next 3/3] xfrm: Add ESN support for IPSec HW offload

2017-11-30 Thread Steffen Klassert
On Tue, Nov 28, 2017 at 11:49:30AM +0200, yoss...@mellanox.com wrote: > From: Yossef Efraim > > This patch adds ESN support to IPsec device offload. > Adding new xfrm device operation to synchronize device ESN. > > Signed-off-by: Yossef Efraim > --- > include/linux/netdevice.h | 1 + > includ

Re: [PATCH net-next 2/3] xfrm: Fix xfrm_dev_state_add to fail for unsupported HW SA option

2017-11-30 Thread Steffen Klassert
On Tue, Nov 28, 2017 at 11:49:29AM +0200, yoss...@mellanox.com wrote: > From: Yossef Efraim > > xfrm_dev_state_add function returns success for unsupported HW SA options. > Resulting the calling function to create SW SA without corrlating HW SA. > Desipte IPSec device offloading option was chosen

Re: [PATCH net-next 1/3] xfrm: Fix xfrm_replay_overflow_offload_esn

2017-11-30 Thread Steffen Klassert
On Tue, Nov 28, 2017 at 11:49:28AM +0200, yoss...@mellanox.com wrote: > From: Yossef Efraim > > In case of wrap around, replay_esn->oseq_hi is not updated > before it is tested for it's actual value, leading function > to fail with overflow indication and packets being dropped. > > This patch up

Re: [PATCH 0/4] pci-dra7xx: Fix legacy IRQ handling and errata handling

2017-11-30 Thread Vignesh R
On Friday 01 December 2017 11:43 AM, Vignesh R wrote: > This series contains two fixes: > 1. Make workaround for errata i870 applicable in Host mode as > well(previously it was enabled only for EP mode) as per errata > documentation: http://www.ti.com/lit/er/sprz429k/sprz429k.pdf > 2. Fix problem

[PATCH 1/4] pci: dwc: pci-dra7xx: Enable errata i870 for both EP and RC mode

2017-11-30 Thread Vignesh R
Errata i870 is applicable in both EP and RC mode. Therefore rename function dra7xx_pcie_ep_unaligned_memaccess(), that implements errata workaround, to dra7xx_pcie_unaligned_memaccess() and call it from a common place. So, that errata workaround is applied for both modes of operation. Reported-by:

Re: [PATCH V11 0/5] hash addresses printed with %p

2017-11-30 Thread Sergey Senozhatsky
On (11/30/17 19:26), Sergey Senozhatsky wrote: > On (11/30/17 10:23), David Laight wrote: > [..] > > > Maybe I'm being thick, but... if we're rendering these addresses > > > unusable by hashing them, why not just print something like > > > "" in their place? That loses the uniqueness thing but I

[PATCH v2 01/27] drm/sun4i: Fix format mask in DE2 driver

2017-11-30 Thread Jernej Skrabec
Format mask is one bit too short. Fix it. Fixes: 9d75b8c0b999 (drm/sun4i: add support for Allwinner DE2 mixers) Signed-off-by: Jernej Skrabec --- drivers/gpu/drm/sun4i/sun8i_mixer.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/sun4i/sun8i_mixer.h b/driver

[PATCH v2 03/27] drm/sun4i: Remove setting alpha mode in DE2 driver

2017-11-30 Thread Jernej Skrabec
Current code sets alpha mode to global alpha mode and global alpha value to 0xff which is totaly opaque. That is not needed for two reasons: - only one plane is active and thus it can be blended only with background, which is black, - it will hinder proper blending when more than one plane is supp

[PATCH 3/4] ARM: dts: dra7: Add DT property to allow unaligned mem access to PCIe RC

2017-11-30 Thread Vignesh R
Add ti,syscon-unaligned-access property to PCIe RC nodes in order to enable workaround for errata i870 in PCIe RC mode as well. Signed-off-by: Vignesh R --- arch/arm/boot/dts/dra7.dtsi | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm/boot/dts/dra7.dtsi b/arch/arm/boot/dts/dra7.dtsi

[PATCH v2 00/27] Improve DE2 support

2017-11-30 Thread Jernej Skrabec
Current DE2 driver is very basic and uses a lot of magic constants since there is no documentation and knowledge about it was limited at the time. With studying BSP source code, deeper knowledge was gained which allows to improve mainline driver considerably. At the beginning of this series, some

[PATCH v2 04/27] drm/sun4i: Fix debug message in DE2

2017-11-30 Thread Jernej Skrabec
Debug message would print "Enabling" even when disabling plane. Fix it. Fixes: 9d75b8c0b999 (drm/sun4i: add support for Allwinner DE2 mixers) Signed-off-by: Jernej Skrabec --- drivers/gpu/drm/sun4i/sun8i_mixer.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/

[PATCH v2 07/27] drm/sun4i: Set blending mode for all channels (DE2)

2017-11-30 Thread Jernej Skrabec
BSP driver always sets blend mode for all channels, no matter if they are really used or not. Do the same here. The exact meaning of the value is not exactly known, but BSP driver mentions "SRC OVER" and by digging through code some more info can be found. Signed-off-by: Jernej Skrabec --- driv

[PATCH 2/4] dt-bindings: PCI: dra7xx: Add bindings for unaligned access in host mode

2017-11-30 Thread Vignesh R
Update device tree binding documentation of TI's dra7xx PCI controller for enabling unaligned mem access as applicable not just in EP mode but in host mode as well. Signed-off-by: Vignesh R --- Documentation/devicetree/bindings/pci/ti-pci.txt | 5 + 1 file changed, 5 insertions(+) diff --gi

[PATCH 0/4] pci-dra7xx: Fix legacy IRQ handling and errata handling

2017-11-30 Thread Vignesh R
This series contains two fixes: 1. Make workaround for errata i870 applicable in Host mode as well(previously it was enabled only for EP mode) as per errata documentation: http://www.ti.com/lit/er/sprz429k/sprz429k.pdf 2. Fix problem with handling of legacy INTD interrupts. Tested on 66AK2G EVM an

[PATCH 4/4] PCI: dwc: pci-dra7xx: Fix legacy IRQ handling

2017-11-30 Thread Vignesh R
Legacy INTD IRQ handling is broken on dra7xx due to fact that driver uses hwirq in range of 1-4 for INTA, INTD whereas IRQ domain is of size 4 which is numbered 0-3. Therefore when INTD IRQ line is used with pci-dra7xx driver following warning is seen: WARNING: CPU: 0 PID: 1 at kernel/irq/i

[PATCH v2 09/27] drm/sun4i: Rework enabling plane in DE2 driver

2017-11-30 Thread Jernej Skrabec
If we want to support multiple planes in the future, code which enables pipe has to be moved to appropriate place and it must depend on channel id instead of being hardcoded. Side effect of that rework is definition of default Z position. For now, put first channel at the bottom, second above it a

[PATCH v2 05/27] drm/sun4i: Remove setting default values in DE2 driver

2017-11-30 Thread Jernej Skrabec
Premultiply and color key control registers are already set to zero by initialization code few lines above. Furthermore, it seems that colorkeying doesn't really work. It's not used in BSP driver and experiments with it all failed. Just remove the code. Signed-off-by: Jernej Skrabec --- drivers

[PATCH v2 16/27] drm/sun4i: Add multi plane support to DE2 driver

2017-11-30 Thread Jernej Skrabec
Support for multiple UI planes can now be easily enabled just by adding more planes with different index. For now, add immutable zpos property. Signed-off-by: Jernej Skrabec --- drivers/gpu/drm/sun4i/sun8i_layer.c | 38 + 1 file changed, 17 insertions(+), 21

[PATCH v2 11/27] drm/sun4i: Add constraints checking to DE2 driver

2017-11-30 Thread Jernej Skrabec
Since current DE2 driver doesn't know how to scale yet, add atomic check function which checks that. Nice side effect of that function is that populates clipped coordinates and checks visibility of the plane. That data will be used in the future. Signed-off-by: Jernej Skrabec --- drivers/gpu/dr

[PATCH v2 13/27] drm/sun4i: Move line width setting in DE2

2017-11-30 Thread Jernej Skrabec
Line width is a property of a framebuffer and it belongs to sun8i_mixer_update_layer_buffer(). This will became even more obvious when support for multi-plane formats will be added. Signed-off-by: Jernej Skrabec --- drivers/gpu/drm/sun4i/sun8i_mixer.c | 13 ++--- 1 file changed, 6 insert

[PATCH v2 15/27] drm/sun4i: Move interlace related code in DE2

2017-11-30 Thread Jernej Skrabec
There is no point having code which sets interlace mode of mixer in channel related function. Interlace mode will only change when CRTC state will change, so let's move it to the block which is executed only when primary plane state is changed. Signed-off-by: Jernej Skrabec --- drivers/gpu/drm/s

[PATCH v2 17/27] drm/sun4i: Add support for all HW supported DE2 RGB formats

2017-11-30 Thread Jernej Skrabec
Currently only a few RGB formats are supported by the DE2 driver. Add support for all formats supported by the HW. Signed-off-by: Jernej Skrabec --- drivers/gpu/drm/sun4i/sun8i_layer.c | 19 - drivers/gpu/drm/sun4i/sun8i_mixer.c | 134 drivers/gpu/drm/su

[PATCH v2 21/27] drm/sun4i: Add support for HW scaling to DE2

2017-11-30 Thread Jernej Skrabec
Scaling is currently supported only for RGB framebuffers Coefficients and algorithm which coefficients to select are taken from BSP driver. Signed-off-by: Jernej Skrabec --- drivers/gpu/drm/sun4i/Makefile | 3 +- drivers/gpu/drm/sun4i/sun8i_mixer.h | 4 - drivers/gpu/drm/sun4i/

[PATCH v2 19/27] drm/sun4i: Add support for DE2 VI planes

2017-11-30 Thread Jernej Skrabec
This commit adds basic support for VI planes. They are meant for video overlay and because of that they support YUV formats too. However, using YUV format is not straightforward, so only RGB formats are supported for now. Signed-off-by: Jernej Skrabec --- drivers/gpu/drm/sun4i/Makefile |

[PATCH v2 24/27] drm/sun4i: Add DE2 definitions for YUV formats

2017-11-30 Thread Jernej Skrabec
This commit expands translation of DRM YUV format to HW specific information. It doesn't do any functional changes. Signed-off-by: Jernej Skrabec --- drivers/gpu/drm/sun4i/sun8i_mixer.c| 136 + drivers/gpu/drm/sun4i/sun8i_mixer.h| 23 +- drivers/gpu/

[PATCH v2 26/27] drm/sun4i: Wire in DE2 YUV support

2017-11-30 Thread Jernej Skrabec
Now that we have all required bits, add support for YUV formats. DRM subsystem doesn't know YUV411 semi-planar format, so leave that out for now. Signed-off-by: Jernej Skrabec --- drivers/gpu/drm/sun4i/sun8i_vi_layer.c | 127 ++--- 1 file changed, 102 insertions(+),

[PATCH v2 25/27] drm/sun4i: Expand DE2 scaler lib with YUV support

2017-11-30 Thread Jernej Skrabec
Basic principle of operation when using YUV framebuffer is that chroma planes have to be upscaled to same size as luma. Because of that, expand DE2 scaler library to support that. BSP driver uses another set of FIR filter coefficients for YUV planes. Signed-off-by: Jernej Skrabec --- drivers/g

[PATCH v2 23/27] drm/sun4i: Add DE2 CSC library

2017-11-30 Thread Jernej Skrabec
DE2 have many CSC units - channel input CSC, channel output CSC and mixer output CSC and maybe more. Fortunately, they have all same register layout, only base offsets differs. Add support only for channel output CSC for now. Signed-off-by: Jernej Skrabec --- drivers/gpu/drm/sun4i/Makefile

[PATCH v2 27/27] [DO NOT MERGE]drm/sun4i: Change zpos of bottom VI plane

2017-11-30 Thread Jernej Skrabec
Change zpos of VI plane so it is above primary. Clearly this works only if mixer supports only one VI plane, but it is good enough for testing and developing. Proper solution with zpos property should be developed instead. Signed-off-by: Jernej Skrabec --- drivers/gpu/drm/sun4i/sun8i_mixer.c

[PATCH v2 18/27] drm/sun4i: Reorganize UI layer code in DE2

2017-11-30 Thread Jernej Skrabec
Till now, DE2 driver supported only UI planes. Before we add support for VI planes, lets split out UI layer specific code from common parts. This commit does the following: - renames sun8i_layer.c to sun8i_ui_layer.c - moves UI channel specific code to sun8i_ui_layer.c - moves common code from sun8

[PATCH v2 22/27] drm/sun4i: Add CCSC property to DE2 configuration

2017-11-30 Thread Jernej Skrabec
Base addresses of channel output CSC (CCSC) depends whether mixer in question is first or second and if it is second, if supports VEP or not. This new property will tell which set of base addresses to take. Signed-off-by: Jernej Skrabec --- drivers/gpu/drm/sun4i/sun8i_mixer.c | 1 + drivers/gpu/

[PATCH v2 20/27] drm/sun4i: Add scaler configuration to DE2 mixers

2017-11-30 Thread Jernej Skrabec
No all SoCs support scaling on all channels. For example, V3s support scaling only on VI channels. Because of that, add additional configuration bitmask which tells which channel support scaler. Signed-off-by: Jernej Skrabec --- drivers/gpu/drm/sun4i/sun8i_mixer.c | 1 + drivers/gpu/drm/sun4i/s

[PATCH v2 10/27] drm/sun4i: Start using layer id in DE2 driver

2017-11-30 Thread Jernej Skrabec
Till now, plane selection was hardcoded to first overlay in first UI channel and layer parameter is unused. Rename and add parameters to layer functions so they would represent HW more accurately and start using then. It turns out that overlays don't fit well in current DRM design, because they c

[PATCH v2 14/27] drm/sun4i: Move channel size related code in DE2

2017-11-30 Thread Jernej Skrabec
Channel size should be set every time plane is changed, not only when primary plane changes. Current code works only because only one (primary) plane is supported at the moment. Signed-off-by: Jernej Skrabec --- drivers/gpu/drm/sun4i/sun8i_mixer.c | 14 ++ 1 file changed, 6 insertion

[PATCH v2 12/27] drm/sun4i: Use values calculated by atomic check

2017-11-30 Thread Jernej Skrabec
Now that we have properly clipped coordinates in plane state structure, use them. This also fixes bug where source x and y were adjusted for negative value, but width and height weren't. It wasn't discovered because primary plane usually doesn't have negative coordinates. Signed-off-by: Jernej Sk

[PATCH v2 02/27] drm/sun4i: Rename DE2 RGB format macros

2017-11-30 Thread Jernej Skrabec
Current RGB formats macros are actually not specific to UI planes. Rename it to something more universal and introduce shift macro. Signed-off-by: Jernej Skrabec --- drivers/gpu/drm/sun4i/sun8i_mixer.c | 7 --- drivers/gpu/drm/sun4i/sun8i_mixer.h | 8 +--- 2 files changed, 9 insertions(+

[PATCH v2 08/27] drm/sun4i: Rename some macros in DE2 driver

2017-11-30 Thread Jernej Skrabec
Now that some knowledge of DE2 is gained, rename or add some macros to make code more readable. Max channel macro is removed, since it is not used and it is not clear if it has right value. Structures in BSP driver shows possibility of 5 channels maximum although there is no SoC with such configur

[PATCH v2 06/27] drm/sun4i: Explain color macro in DE2 driver

2017-11-30 Thread Jernej Skrabec
Color attribute have same format troughout the whole driver. Rename macro, add comment with simple explanation and remove redundant definitions. Signed-off-by: Jernej Skrabec --- drivers/gpu/drm/sun4i/sun8i_mixer.c | 8 +--- drivers/gpu/drm/sun4i/sun8i_mixer.h | 4 ++-- 2 files changed, 7 i

Re: [PATCH ipsec] xfrm: fix XFRMA_OUTPUT_MARK policy entry

2017-11-30 Thread Steffen Klassert
On Wed, Nov 29, 2017 at 06:23:56PM +0100, Michal Kubecek wrote: > This seems to be an obvious typo, NLA_U32 is type of the attribute, not its > (minimal) length. > > Fixes: 077fbac405bf ("net: xfrm: support setting an output mark.") > Signed-off-by: Michal Kubecek Patch applied, thanks Michal!

Re: [PATCH v3 14/19] x86/entry/64: Create a percpu SYSCALL entry trampoline

2017-11-30 Thread Andy Lutomirski
On Fri, Nov 24, 2017 at 3:39 AM, David Laight wrote: > From: Andy Lutomirski >> Sent: 24 November 2017 04:33 > ... >> + /* >> + * x86 lacks a near absolute jump, and we can't jump to the real >> + * entry text with a relative jump, so we fake it using retq. >> + */ >> + push

[PATCH net,stable v3] vhost: fix a few skb leaks

2017-11-30 Thread wexu
From: Wei Xu Matthew found a roughly 40% tcp throughput regression with commit c67df11f(vhost_net: try batch dequing from skb array) as discussed in the following thread: https://www.mail-archive.com/netdev@vger.kernel.org/msg187936.html This is v3. v3: - move freeing skb from vhost to tun/tap

[PATCH 2/3] tun: free skb in early errors

2017-11-30 Thread wexu
From: Wei Xu tun_recvmsg() supports accepting skb by msg_control after commit ac77cfd4258f ("tun: support receiving skb through msg_control"), the skb if presented should be freed within the function, otherwise it would be leaked. Signed-off-by: Wei Xu Reported-by: Matthew Rosato --- drivers/

[PATCH 1/3] vhost: fix skb leak in handle_rx()

2017-11-30 Thread wexu
From: Wei Xu Matthew found a roughly 40% tcp throughput regression with commit c67df11f(vhost_net: try batch dequing from skb array) as discussed in the following thread: https://www.mail-archive.com/netdev@vger.kernel.org/msg187936.html Eventually we figured out that it was a skb leak in handle

[PATCH 3/3] tap: free skb if flags error

2017-11-30 Thread wexu
From: Wei Xu tap_recvmsg() supports accepting skb by msg_control after commit 3b4ba04acca8 ("tap: support receiving skb from msg_control"), the skb if presented should be freed within the function, otherwise it would be leaked. Signed-off-by: Wei Xu Reported-by: Matthew Rosato --- drivers/net

  1   2   3   4   5   6   7   8   9   10   >