Re: [PATCH v12 2/7] x86, acpi, cpu-hotplug: Enable acpi to register all possible cpus at boot time.

2016-08-25 Thread Dou Liyang
Hi tglx, At 08/25/2016 04:35 PM, Dou Liyang wrote: arch/x86/kernel/apic/apic.c | 18 ++ 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/arch/x86/kernel/apic/apic.c b/arch/x86/kernel/apic/apic.c index cea4fc1..e5612a9 100644 --- a/arch/x86/kernel/apic/apic.c +++

Re: [PATCH RFC V3.5] leds: trigger: Introduce an USB port trigger

2016-08-25 Thread Jacek Anaszewski
On 08/25/2016 10:29 AM, Rafał Miłecki wrote: On 25 August 2016 at 10:03, Jacek Anaszewski wrote: On 08/24/2016 07:52 PM, Rafał Miłecki wrote: From: Rafał Miłecki This commit adds a new trigger responsible for turning on LED when USB device gets connected to the specified USB port. This can

Re: [PATCH v2 02/10] clk: qcom: Add support for alpha pll hwfsm ops

2016-08-25 Thread Rajendra Nayak
On 08/24/2016 11:43 AM, Stephen Boyd wrote: > On 08/11, Rajendra Nayak wrote: >> Add support to enable/disable the alpha pll using hwfsm > > Care to add some more description here about what's going on? Sure, I will add some details on what the additional hwfsm mode brings in to the alpha plls.

Re: [PATCH v2 10/10] clk: qcom: Fix .set_rate to handle alpha PLLs w/wo dynamic update

2016-08-25 Thread Rajendra Nayak
On 08/24/2016 11:56 AM, Stephen Boyd wrote: > On 08/11, Rajendra Nayak wrote: >> diff --git a/drivers/clk/qcom/clk-alpha-pll.c >> b/drivers/clk/qcom/clk-alpha-pll.c >> index 2184dc1..68c90f3 100644 >> --- a/drivers/clk/qcom/clk-alpha-pll.c >> +++ b/drivers/clk/qcom/clk-alpha-pll.c >> @@ -113,6

Re: wan-cosa: Use memdup_user() rather than duplicating its implementation

2016-08-25 Thread Jan Kasprzak
SF Markus Elfring wrote: : > What about the GFP_DMA attribute, which your patch deletes? : > The buffer in question has to be ISA DMA-able. : : Thanks for your constructive feedback. : : Would you be interested in using a variant of the function "memdup_…" : with which the corresponding

Re: [PATCH 2/4] firmware: qcom: scm: add iommu scm calls for pg table

2016-08-25 Thread Stanimir Varbanov
Hi Puja, On 08/24/2016 09:35 PM, Gupta, Puja wrote: > On 8/19/2016 8:53 AM, Stanimir Varbanov wrote: >> Those two scm calls are used to get the size of secure iommu >> page table and to pass physical memory address for this page >> table. The calls are used by remoteproc venus driver to load >>

Re: [PATCH v2 09/10] clk: qcom: Add .is_enabled ops for clk-alpha-pll

2016-08-25 Thread Rajendra Nayak
On 08/24/2016 11:58 AM, Stephen Boyd wrote: > On 08/11, Rajendra Nayak wrote: >> This would be useful in subsequent patches when the .set_rate operation >> would need to identify if the PLL is actually enabled >> >> Signed-off-by: Rajendra Nayak >> --- > > Hmmm I suspect I never implemented the

Re: [PATCH v2 07/10] clk: qcom: Add support to enable FSM mode for votable alpha PLLs

2016-08-25 Thread Rajendra Nayak
On 08/24/2016 12:01 PM, Stephen Boyd wrote: > On 08/11, Rajendra Nayak wrote: >> diff --git a/drivers/clk/qcom/common.c b/drivers/clk/qcom/common.c >> index f7c226a..6bf5abd 100644 >> --- a/drivers/clk/qcom/common.c >> +++ b/drivers/clk/qcom/common.c >> @@ -25,6 +25,14 @@ >> #include "reset.h"

Re: [PATCH v3] clocksource: sun4i: Clear interrupts after stopping timer in probe function

2016-08-25 Thread Daniel Lezcano
On 08/25/2016 08:26 AM, Chen-Yu Tsai wrote: > The bootloader (U-boot) sometimes uses this timer for various delays. > It uses it as a ongoing counter, and does comparisons on the current > counter value. The timer counter is never stopped. > > In some cases when the user interacts with the

Re: [PATCH v2] pwm: add pwm driver for HiSilicon BVT SOCs

2016-08-25 Thread Jian Yuan
On 2016/8/24 21:05, Thierry Reding wrote: > On Mon, Aug 22, 2016 at 03:50:13PM +0800, Jian Yuan wrote: >> From: yuanjian >> >> Add pwm driver for HiSilicon BVT SOCs > > pwm -> PWM, please. It'd be good to have more information here about > what the hardware can do, where to find it, etc. >

Re: [PATCH v2 00/10] clk: qcom: PLL updates

2016-08-25 Thread Rajendra Nayak
On 08/24/2016 11:47 AM, Stephen Boyd wrote: > On 08/11, Rajendra Nayak wrote: >> Hi, >> >> This series adds some additional support to the clk-alpha-pll and the >> clk-pll drivers in preperation to add the CPU clock driver support >> on msm8996 > > It would be nice to see the users of this new

[PATCH] x86/mce: Use kmalloc_array() in mce_chrdev_read()

2016-08-25 Thread SF Markus Elfring
From: Markus Elfring Date: Thu, 25 Aug 2016 11:00:05 +0200 * A multiplication for the size determination of a memory allocation indicated that an array data structure should be processed. Thus reuse the corresponding function "kmalloc_array". This issue was detected by using the

Re: [PATCH] UFS: Date Segment only need for WRITE DESCRIPTOR

2016-08-25 Thread kbuild test robot
ord what (public, well-known) commit your patch series was built on] [Check https://git-scm.com/docs/git-format-patch for more information] url: https://github.com/0day-ci/linux/commits/Zang-Leigang/UFS-Date-Segment-only-need-for-WRITE-DESCRIPTOR/20160825-165332 base: https://git.kernel.org/pub/

Re: [PATCH] usbnet: ax88179_178a: Add support for writing the EEPROM

2016-08-25 Thread Oliver Neukum
On Wed, 2016-08-24 at 16:40 +0200, Alban Bedel wrote: > On Wed, 24 Aug 2016 16:30:39 +0200 > Oliver Neukum wrote: > > > On Wed, 2016-08-24 at 15:52 +0200, Alban Bedel wrote: > > > + if (block != data) > > > + kfree(block); > > > > And if block == dta, what frees the

Re: linux-next: build warning after merge of the crypto tree

2016-08-25 Thread Martin Schwidefsky
On Thu, 25 Aug 2016 11:38:24 +1000 Stephen Rothwell wrote: > Hi Herbert, > > After merging the crypto tree, today's linux-next build (powerpc > ppc64_defconfig) produced this warning: > > crypto/xor.c: In function 'calibrate_xor_blocks': > crypto/xor.c:156:1: warning: label 'out' defined but

Re: [PATCH v2 04/10] clk: qcom: Add support for PLLs with alpha mode

2016-08-25 Thread Rajendra Nayak
On 08/24/2016 11:45 AM, Stephen Boyd wrote: > On 08/11, Rajendra Nayak wrote: >> Some PLLs can support an alpha mode, and a single alpha >> register (instead of registers to program the M/N values), >> the contents of which depend on the alpha mode selected. >> (They are either treated as two's

Re: [LKP] [lkp] [x86/hweight] 65ea11ec6a: will-it-scale.per_process_ops 9.3% improvement

2016-08-25 Thread Borislav Petkov
On Thu, Aug 18, 2016 at 06:11:39AM +0200, Borislav Petkov wrote: > So if there's no bug, alternatives should replace all "call > __sw_hweightXX" calls with POPCNT. So you shouldn't be even calling > these functions and hitting that path. > > Can you boot the kernel with "debug-alternative" and

Re: [PATCH 2/3] f2fs: schedule in between two continous batch discards

2016-08-25 Thread Chao Yu
Hi Jaegeuk, On 2016/8/24 0:53, Jaegeuk Kim wrote: > Hi Chao, > > On Sun, Aug 21, 2016 at 11:21:30PM +0800, Chao Yu wrote: >> From: Chao Yu >> >> In batch discard approach of fstrim will grab/release gc_mutex lock >> repeatly, it makes contention of the lock becoming more intensive. >> >> So

Re: [PATCH v12 0/7] Make cpuid <-> nodeid mapping persistent

2016-08-25 Thread Dou Liyang
Hi all, These patches are used to fixing the memory allocation failure. and it's fine from the ACPI perspective. I hope that RJ can apply them. Due to these patches are also related to x86 and mm, so, I need the ACKs from the x86 and mm maintainers. :) Thanks, Dou. At 08/25/2016 04:35 PM,

Re: [PATCH 5/6] f2fs: enable inline_dentry by default

2016-08-25 Thread Chao Yu
Hi Jaegeuk, On 2016/8/24 0:57, Jaegeuk Kim wrote: > Hi Chao, > > On Mon, Aug 22, 2016 at 09:49:13AM +0800, Chao Yu wrote: >> Hi Jaegeuk, >> >> On 2016/5/10 7:04, Jaegeuk Kim wrote: >>> On Mon, May 09, 2016 at 07:56:34PM +0800, Chao Yu wrote: Make inline_dentry as default mount option to

Re: [PATCH 1/2] f2fs: fix to preallocate block only aligned to 4K

2016-08-25 Thread Chao Yu
Hi Jaegeuk, On 2016/8/24 7:19, Jaegeuk Kim wrote: > Hi Chao, > > There is a bug when ki_pos = 1024, and iov_iter_count(from) = 1024 in > xfstests. > Could you check the below patch to fix your one? Oh, you're right, thanks for fixing it. :) Thanks, > > --- > fs/f2fs/data.c | 11 +--

Re: [PATCH v6 3/4 RESEND] SCT Write Same / DSM Trim

2016-08-25 Thread Tom Yan
On 25 August 2016 at 16:03, Shaun Tancheff wrote: > On Thu, Aug 25, 2016 at 2:01 AM, Tom Yan wrote: >> Really please just drop this patch. There is no rational reason for >> you to associate the maximum payload size to the logical sector size. > > Been over this many, many times now. It has to

Re: [PATCH v2 6/7] arm64: dts: exynos: Add dts file for Exynos5433-based TM2 board

2016-08-25 Thread kbuild test robot
Hi Chanwoo, [auto build test ERROR on robh/for-next] [also build test ERROR on v4.8-rc3 next-20160824] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] [Suggest to use git(>=2.9.0) format-patch --base= (or --base=auto for convenience) to record

Re: [PATCH 1/1] arm64/hugetlb: clear PG_dcache_clean if the page is dirty when munmap

2016-08-25 Thread Catalin Marinas
On Thu, Aug 25, 2016 at 09:42:26AM +0800, Leizhen (ThunderTown) wrote: > On 2016/8/24 18:30, Catalin Marinas wrote: > >> On 2016/7/8 21:54, Catalin Marinas wrote: > >>> 8< > >>> diff --git a/arch/arm64/mm/flush.c b/arch/arm64/mm/flush.c >

Re: [LKP] [lkp] [xfs] 68a9f5e700: aim7.jobs-per-min -13.6% regression

2016-08-25 Thread Mel Gorman
On Wed, Aug 24, 2016 at 08:40:37AM -0700, Huang, Ying wrote: > Mel Gorman writes: > > > On Wed, Aug 17, 2016 at 04:49:07PM +0100, Mel Gorman wrote: > >> > Yes, we could try to batch the locking like DaveC already suggested > >> > (ie we could move the locking to the caller, and then make > >> >

[PATCH v2] UFS: Date Segment only need for WRITE DESCRIPTOR

2016-08-25 Thread Zang Leigang
Some device may cause a compatibility issue while receiving a Query UPIU with Data Segment which does not expected. Signed-off-by: Zang Leigang --- drivers/scsi/ufs/ufshcd.c | 9 ++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/drivers/scsi/ufs/ufshcd.c

[RFC 00/10] Add Sunxi Cedrus Video Decoder Driver

2016-08-25 Thread Florent Revest
Hi, This series adds a v4l2 memory2memory decoder driver for Allwinner's VPU found in the A13 SoC. It follows the reverse engineering effort of the Cedrus [1] project. The VPU is able to decode a bunch of formats but currently only MPEG2 and a subset of MPEG4 are supported by the driver, more

[RFC 05/10] v4l: Add MPEG4 low-level decoder API control

2016-08-25 Thread Florent Revest
This control is to be used with the new low-level decoder API for MPEG4 to provide additional parameters for the hardware that cannot parse the input stream. Some fields are still missing for this structure to be complete. Signed-off-by: Florent Revest --- drivers/media/v4l2-core/v4l2-ctrls.c

[RFC 09/10] ARM: dts: sun5i: Use video-engine node

2016-08-25 Thread Florent Revest
Now that we have a driver matching "allwinner,sun5i-a13-video-engine" we can load it. The "video-engine" node depends on the new sunxi-ng's CCU clock and reset bindings. This patch also includes a ve_reserved DMA pool for videobuf2 buffer allocations in sunxi-cedrus. Signed-off-by: Florent

[RFC 04/10] v4l: Add MPEG2 low-level decoder API control

2016-08-25 Thread Florent Revest
This control is to be used with the new low-level decoder API for MPEG2 to provide additional parameters for the hardware that cannot parse the input stream. Signed-off-by: Florent Revest --- drivers/media/v4l2-core/v4l2-ctrls.c | 11 +++ drivers/media/v4l2-core/v4l2-ioctl.c | 1 +

[RFC 10/10] sunxi-cedrus: Add device tree binding document

2016-08-25 Thread Florent Revest
Device Tree bindings for the Allwinner's video engine Signed-off-by: Florent Revest --- .../devicetree/bindings/media/sunxi-cedrus.txt | 44 ++ 1 file changed, 44 insertions(+) create mode 100644 Documentation/devicetree/bindings/media/sunxi-cedrus.txt diff --git

[RFC 07/10] sunxi-cedrus: Add a MPEG 2 codec

2016-08-25 Thread Florent Revest
This patch introduces the support of MPEG2 video decoding to the sunxi-cedrus video decoder driver. Signed-off-by: Florent Revest --- drivers/media/platform/sunxi-cedrus/Makefile | 2 +- drivers/media/platform/sunxi-cedrus/sunxi_cedrus.c | 26 +++-

[RFC 03/10] v4l: Add sunxi Video Engine pixel format

2016-08-25 Thread Florent Revest
Add support for the allwinner's proprietary pixel format described in details here: http://linux-sunxi.org/File:Ve_tile_format_v1.pdf This format is similar to V4L2_PIX_FMT_NV12M but the planes are divided in tiles of 32x32px. Signed-off-by: Florent Revest --- include/uapi/linux/videodev2.h |

[RFC 08/10] sunxi-cedrus: Add a MPEG 4 codec

2016-08-25 Thread Florent Revest
This patch introduces the support of MPEG4 video decoding to the sunxi-cedrus video decoder driver. Signed-off-by: Florent Revest --- drivers/media/platform/sunxi-cedrus/Makefile | 3 +- drivers/media/platform/sunxi-cedrus/sunxi_cedrus.c | 15 +++

[RFC 01/10] clk: sunxi-ng: Add a couple of A13 clocks

2016-08-25 Thread Florent Revest
Add a new style driver for the clock control unit in Allwinner A13. Only AVS and VE are supported since they weren't provided until now and are needed for "sunxi-cedrus". Signed-off-by: Florent Revest --- .../devicetree/bindings/clock/sunxi-ccu.txt| 1 +

[RFC 02/10] v4l: Add private compound control type.

2016-08-25 Thread Florent Revest
From: Pawel Osciak V4L2_CTRL_TYPE_PRIVATE is to be used for private driver compound controls that use the "ptr" member of struct v4l2_ext_control. Signed-off-by: Pawel Osciak Signed-off-by: Jung Zhao Signed-off-by: Florent Revest --- drivers/media/v4l2-core/v4l2-ctrls.c | 4

[RFC 06/10] media: platform: Add Sunxi Cedrus decoder driver

2016-08-25 Thread Florent Revest
This patch adds a "sunxi-cedrus" v4l2 m2m decoder driver for Allwinner's Video Processing Unit. This VPU has a low-level interface which requires manual registers writing for frame headers. Hence, it depends on the Request API to synchronize buffers with controls. Most of the reverse engineering

[PATCH] x86/efi: Use kmalloc_array() in efi_call_phys_prolog()

2016-08-25 Thread SF Markus Elfring
From: Markus Elfring Date: Thu, 25 Aug 2016 11:34:03 +0200 * A multiplication for the size determination of a memory allocation indicated that an array data structure should be processed. Thus reuse the corresponding function "kmalloc_array". This issue was detected by using the

Re: [PATCH v8 00/11] power: act8945a_charger: Improvements

2016-08-25 Thread Mark Brown
On Thu, Aug 25, 2016 at 03:19:48PM +0800, Wenyou Yang wrote: > This patch series is to improve the implementation of act8945a-charger > driver, such as regard the act8945-charger as a sub-device, improve > the way to check the status, fix the power supply type property, > add the status change

[PATCH v3 3/3] firmware_class: Do not use fw_lock for fw_status protection

2016-08-25 Thread Daniel Wagner
From: Daniel Wagner fw_lock is to use to protect 'corner cases' inside firmware_class. It is not exactly clear what those corner cases are nor what it exactly protects. fw_status can be used without needing the fw_lock to protect its state transition and wake ups. fw_status is holds the state

[PATCH v3 0/3] firmware_class: encapsulate firmware loading status

2016-08-25 Thread Daniel Wagner
From: Daniel Wagner This version should address all comments from Luis. In the last patch the fw_lock dependency is dropped. This only works if we garantee not to race between the reader and the writer side in combination in going to sleep and waking up. So here that should now be a good

[PATCH v3 1/3] firmware_class: encapsulate firmware loading status

2016-08-25 Thread Daniel Wagner
From: Daniel Wagner The firmware user helper code tracks the current state of the loading process via unsigned long status and a complection in struct firmware_buf. We only need this for the usermode helper as such we can encapsulate all this data into its own data structure. Signed-off-by:

[PATCH v3 2/3] firmware_class: Drop bit ops in favor of simple state machine

2016-08-25 Thread Daniel Wagner
From: Daniel Wagner We track the state of the loading with bit ops. Since the state machine has only a couple of states and there are only a few simple state transition we can model this simplify. UNKNOWN -> LOADING -> DONE | ABORTED Signed-off-by: Daniel Wagner Cc: Ming Lei Cc:

[PATCH] Documentation: move oneshot trigger attributes documentation to ABI

2016-08-25 Thread Rafał Miłecki
From: Rafał Miłecki Documentation of sysfs interface should be in ABI in the first place. This moves relevant part of documentation and mentions where to look for it. Signed-off-by: Rafał Miłecki --- Documentation/ABI/testing/sysfs-class-led | 3 +-

Re: [PATCH] mmc: core: Add error message when switching fails in mmc_select_hs()

2016-08-25 Thread Ulf Hansson
On 24 August 2016 at 12:34, Jungseung Lee wrote: > The switch failure message in mmc_select_timing() had been removed > since that is invalid: commit 0400ed0a083a ("mmc: core: remove the > invalid message in mmc_select_timing") > > Now, in the case when mmc_select_hs() return error in

[PATCH] mfd: arizona: Add DT options for max_channels_clocked and PDM speaker config

2016-08-25 Thread Richard Fitzgerald
This patch adds DT settings for the max_channels_clocked, spk_fmt and spk_mute pdata. Signed-off-by: Richard Fitzgerald --- Documentation/devicetree/bindings/mfd/arizona.txt | 11 drivers/mfd/arizona-core.c| 31 +++ 2 files changed, 42

Re: what is the purpose of SLAB and SLUB (was: Re: [PATCH v3] mm/slab: Improve performance of gathering slabinfo) stats

2016-08-25 Thread Mel Gorman
On Wed, Aug 24, 2016 at 11:01:43PM -0500, Christoph Lameter wrote: > On Wed, 24 Aug 2016, Mel Gorman wrote: > > If/when I get back to the page allocator, the priority would be a bulk > > API for faster allocs of batches of order-0 pages instead of allocating > > a large page and splitting. > > >

Re: [RFC] rlimit exceed notification events

2016-08-25 Thread Yauheni Kaliuta
Hi, Jiri! > On Wed, 24 Aug 2016 13:24:28 +0200, Jiri Olsa wrote: > On Fri, Aug 19, 2016 at 05:41:20PM +0300, Yauheni Kaliuta wrote: >> >> At the moment there is no clear indication if a process exceeds resource >> limit. In some cases the problematic syscall can return a error, in some

Re: [LKP] [lkp] [x86/hweight] 65ea11ec6a: will-it-scale.per_process_ops 9.3% improvement

2016-08-25 Thread H. Peter Anvin
On August 25, 2016 2:22:14 AM PDT, Borislav Petkov wrote: >On Thu, Aug 18, 2016 at 06:11:39AM +0200, Borislav Petkov wrote: >> So if there's no bug, alternatives should replace all "call >> __sw_hweightXX" calls with POPCNT. So you shouldn't be even calling >> these functions and hitting that

Re: [PATCH] usbnet: ax88179_178a: Add support for writing the EEPROM

2016-08-25 Thread Alban Bedel
On Thu, 25 Aug 2016 11:16:36 +0200 Oliver Neukum wrote: > On Wed, 2016-08-24 at 16:40 +0200, Alban Bedel wrote: > > On Wed, 24 Aug 2016 16:30:39 +0200 > > Oliver Neukum wrote: > > > > > On Wed, 2016-08-24 at 15:52 +0200, Alban Bedel wrote: > > > > > + if (block != data) > > > > +

Re: MAINTAINERS without commits in the last 3 years

2016-08-25 Thread Tigran Aivazian
Hi Joe, I would suggest that those addresses which bounce should certainly be removed, but the rest should be left alone. Kind regards, Tigran PS. Joe, sorry if you received this message twice --- my first attempt to reply failed because gmail used html by default :) On 25 August 2016 at

Re: MAINTAINERS without commits in the last 3 years

2016-08-25 Thread Joe Perches
On Thu, 2016-08-25 at 11:00 +0100, Tigran Aivazian wrote: > I would suggest that those addresses which bounce should certainly be > removed, but the rest should be left alone. That's the plan. Here's the current bounce list: andrew.d.henr...@intel.com brucech...@via.com.tw

RE: [patch 2/2] i2c: mux: mellanox: add driver

2016-08-25 Thread Vadim Pasternak
> -Original Message- > From: Peter Rosin [mailto:p...@axentia.se] > Sent: Thursday, August 25, 2016 11:53 AM > To: Vadim Pasternak ; w...@the-dreams.de > Cc: linux-...@vger.kernel.org; linux-kernel@vger.kernel.org; j...@resnulli.us; > Michael Shych > Subject: Re: [patch 2/2] i2c: mux:

Re: MAINTAINERS without commits in the last 3 years

2016-08-25 Thread Mauro Carvalho Chehab
Hi Joe, Em Wed, 24 Aug 2016 16:33:45 -0700 Joe Perches escreveu: > Many email addresses in MAINTAINERS no longer work so many > sections in > MAINTAINERS could likely be considered either > obsolete or unmaintained. > > Marking these sections appropriately or simply removing the > sections

Re: [PATCH] usbnet: ax88179_178a: Add support for writing the EEPROM

2016-08-25 Thread Oliver Neukum
On Thu, 2016-08-25 at 12:07 +0200, Alban Bedel wrote: > On Thu, 25 Aug 2016 11:16:36 +0200 > Oliver Neukum wrote: > > > On Wed, 2016-08-24 at 16:40 +0200, Alban Bedel wrote: > > > On Wed, 24 Aug 2016 16:30:39 +0200 > > > Oliver Neukum wrote: > > > > > > > On Wed, 2016-08-24 at 15:52 +0200,

[PATCH] Input: elants_i2c - get product id on recovery mode for FW update

2016-08-25 Thread Johnny Chuang
This CL takes the responsibility for getting product/hardware id on recovery mode. It will fix firmware update script could not find correspond firmware file name on recovery mode. BTW, firmware must need to support reading product/hardware id on boot code. Signed-off-by: Johnny Chuang ---

Re: [PATCH v6 2/2] clocksource: add J-Core timer/clocksource driver

2016-08-25 Thread Arnd Bergmann
On Wednesday, August 24, 2016 11:57:08 PM CEST Arnd Bergmann wrote: > > I'm not familiar with those classifications, but from what I can tell, > > BE32 describes it correctly. I'll see if I can get someone to verify > > this. Is there a reason it's not widely used anymore? Perhaps > > something

Re: [alsa-devel] [RFC PATCH] mfd: arizona: Add gating of external MCLKn clocks

2016-08-25 Thread Sylwester Nawrocki
On 08/23/2016 06:28 PM, Charles Keepax wrote: > Apologies it seems I missed another version of this on the > mailing list, please do feel free to add me or the > patc...@opensource.wolfsonmicro.com list as a direct CC on > any patches using our CODECs, I am always more than happy to look > over

Re: [PATCH] arm64: Introduce execute-only page access permissions

2016-08-25 Thread Will Deacon
On Tue, Aug 16, 2016 at 05:18:24PM +0100, Catalin Marinas wrote: > On Mon, Aug 15, 2016 at 10:45:09AM -0700, Kees Cook wrote: > > On Mon, Aug 15, 2016 at 3:47 AM, Catalin Marinas > > wrote: > > > On Fri, Aug 12, 2016 at 11:23:03AM -0700, Kees Cook wrote: > > >> On Thu, Aug 11, 2016 at 10:44 AM,

Re: [PATCH 2/2] sdhci-of-arasan: Add quirk and device tree parameter to fake CD bit

2016-08-25 Thread Lars-Peter Clausen
On 08/25/2016 01:23 AM, Zach Brown wrote: > The sdhci controller on xilinx zynq devices will not function unless > the cd bit is provided. http://www.xilinx.com/support/answers/61064.html > In cases where it is impossible to provide the cd bit in hardware, > setting the controller to test mode and

[PATCH] ASoC: arizona: Wait for resume before enabling FLL

2016-08-25 Thread Richard Fitzgerald
When enabling an FLL use pm_runtime_get_sync() instead of pm_runtime_get() to ensure that all the register settings have been written out and the codec is powered-up before we write the enable bit. Signed-off-by: Richard Fitzgerald --- sound/soc/codecs/arizona.c | 2 +- 1 file changed, 1

[RFC v2 00/10] Landlock LSM: Unprivileged sandboxing

2016-08-25 Thread Mickaël Salaün
Hi, This series is a proof of concept to fill some missing part of seccomp as the ability to check syscall argument pointers or creating more dynamic security policies. The goal of this new stackable Linux Security Module (LSM) called Landlock is to allow any process, including unprivileged ones,

[RFC v2 09/10] landlock: Handle cgroups

2016-08-25 Thread Mickaël Salaün
Add an eBPF function bpf_landlock_cmp_cgroup_beneath(opt, map, map_op) to compare the current process cgroup with a cgroup handle, The handle can match the current cgroup if it is the same or a child. This allows to make conditional rules according to the current cgroup. A cgroup handle is a map

[RFC v2 04/10] seccomp: Split put_seccomp_filter() with put_seccomp()

2016-08-25 Thread Mickaël Salaün
The semantic is unchanged. This will be useful for the Landlock integration with seccomp (next commit). Signed-off-by: Mickaël Salaün Cc: Kees Cook Cc: Andy Lutomirski Cc: Will Drewry --- include/linux/seccomp.h | 5 +++-- kernel/fork.c | 2 +- kernel/seccomp.c| 18

[RFC v2 01/10] landlock: Add Kconfig

2016-08-25 Thread Mickaël Salaün
Initial Landlock Kconfig needed to split the Landlock eBPF and seccomp parts to ease the review. Signed-off-by: Mickaël Salaün Cc: James Morris Cc: Kees Cook Cc: Serge E. Hallyn --- security/Kconfig | 1 + security/landlock/Kconfig | 16 2 files changed, 17

[RFC v2 03/10] bpf,landlock: Add a new arraymap type to deal with (Landlock) handles

2016-08-25 Thread Mickaël Salaün
This new arraymap looks like a set and brings new properties: * strong typing of entries: the eBPF functions get the array type of elements instead of CONST_PTR_TO_MAP (e.g. CONST_PTR_TO_LANDLOCK_HANDLE_FS); * force sequential filling (i.e. replace or append-only update), which allow quick

[RFC v2 06/10] landlock: Add LSM hooks

2016-08-25 Thread Mickaël Salaün
Add LSM hooks which can be used by userland through Landlock (eBPF) programs. This programs are limited to a whitelist of functions (cf. next commit). The eBPF program context is depicted by the struct landlock_data (cf. include/uapi/linux/bpf.h): * hook: LSM hook ID (useful when using the same

[RFC v2 08/10] landlock: Handle file system comparisons

2016-08-25 Thread Mickaël Salaün
Add eBPF functions to compare file system access with a Landlock file system handle: * bpf_landlock_cmp_fs_prop_with_struct_file(prop, map, map_op, file) This function allows to compare the dentry, inode, device or mount point of the currently accessed file, with a reference handle. *

[RFC v2 10/10] samples/landlock: Add sandbox example

2016-08-25 Thread Mickaël Salaün
Add a basic sandbox tool to create a process isolated from some part of the system. This can depend of the current cgroup. Example: $ mkdir /sys/fs/cgroup/sandboxed $ ls /home user1 $ LANDLOCK_CGROUPS='/sys/fs/cgroup/sandboxed' \

[RFC v2 05/10] seccomp: Handle Landlock

2016-08-25 Thread Mickaël Salaün
A Landlock program can be triggered when a seccomp filter return RET_LANDLOCK. Moreover, it is possible to return a 16-bit cookie which will be readable by the Landlock programs. Only seccomp filters loaded from the same thread and before a Landlock program can trigger it. Multiple Landlock

[RFC v2 02/10] bpf: Move u64_to_ptr() to BPF headers and inline it

2016-08-25 Thread Mickaël Salaün
This helper will be useful for arraymap (next commit). Signed-off-by: Mickaël Salaün Cc: Alexei Starovoitov Cc: David S. Miller Cc: Daniel Borkmann --- include/linux/bpf.h | 6 ++ kernel/bpf/syscall.c | 6 -- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git

[RFC v2 07/10] landlock: Add errno check

2016-08-25 Thread Mickaël Salaün
Add a max errno value. This is not strictly needed but should improve reliability. Signed-off-by: Mickaël Salaün Cc: Arnd Bergmann Cc: Serge E. Hallyn Cc: James Morris Cc: Kees Cook --- include/uapi/asm-generic/errno-base.h | 1 + security/landlock/lsm.c | 6 +++--- 2 files

perf-4.8.0-rc3: Segmentation fault

2016-08-25 Thread Alexey Dobriyan
I profiled kernel allmodconfig build (don't ask) and perf tui reliably segfaults when trying to enter annotation mode for any of the individual functions. It segfaults immediately before even showing menu with choices. perf: Segmentation fault backtrace perf[0x5451fb]

Re: [RFC PATCH 2/4] perf-probe: Add offline output directory option

2016-08-25 Thread Masami Hiramatsu
On Wed, 24 Aug 2016 09:58:45 -0300 Arnaldo Carvalho de Melo wrote: > > Also please fix the OPT_STRING string, it should start with a capital > letter: > > --max-probes Set how many probe points can be found for a probe. > --no-inlines Don't search inlined functions >

Re: [PATCH 1/2] sdhci-of-arasan: Add quirk and device tree parameter to fake CD bit

2016-08-25 Thread Mark Rutland
On Wed, Aug 24, 2016 at 06:23:03PM -0500, Zach Brown wrote: > The sdhci controller on xilinx zynq devices will not function unless > the cd bit is provided. http://www.xilinx.com/support/answers/61064.html > In cases where it is impossible to provide the cd bit in hardware, > setting the

Re: [PATCH 01/10] reset: ath79: add driver Kconfig option

2016-08-25 Thread Philipp Zabel
Am Donnerstag, den 25.08.2016, 12:50 +0200 schrieb Arnd Bergmann: > On Thursday, August 25, 2016 6:31:48 PM CEST kbuild test robot wrote: > > > >drivers/reset/reset-ath79.c: In function 'ath79_reset_update': > > >> drivers/reset/reset-ath79.c:38:2: error: implicit declaration of > > >>

Re: [PATCH 01/10] reset: ath79: add driver Kconfig option

2016-08-25 Thread Arnd Bergmann
On Thursday, August 25, 2016 6:31:48 PM CEST kbuild test robot wrote: > >drivers/reset/reset-ath79.c: In function 'ath79_reset_update': > >> drivers/reset/reset-ath79.c:38:2: error: implicit declaration of function > >> 'readl' [-Werror=implicit-function-declaration] > >>

Re: [PATCH][v6] PM / hibernate: Print the possible panic reason when resuming with inconsistent e820 map

2016-08-25 Thread Chen Yu
On Wed, Aug 24, 2016 at 09:36:10AM +0800, joeyli wrote: > > > What's the progress of this patch? Looks already have experts review it. > > > Why this patch didn't accept? > > This patch is a little overkilled, and I have saved another simpler > > version to only check the md5 hash (as people

Re: [PATCH v2 2/5] firmware: annotate thou shalt not request fw on init or probe

2016-08-25 Thread Daniel Vetter
On Wed, Aug 24, 2016 at 10:39 PM, Luis R. Rodriguez wrote: > On Wed, Aug 24, 2016 at 08:55:55AM +0200, Daniel Vetter wrote: >> On Fri, Jun 17, 2016 at 12:54 AM, Luis R. Rodriguez >> wrote: >> > Thou shalt not make firmware calls early on init or probe. > > <-- snip --> > >> > There are 4

Re: [PATCH] reset: ath79: add missing include

2016-08-25 Thread Alban
On Wed, 24 Aug 2016 15:30:33 +0200 Philipp Zabel wrote: > The driver uses readl/writel, so it should include linux/io.h. > > Signed-off-by: Philipp Zabel Acked-by: Aban Bedel Alban pgpWhB62hJ1Ze.pgp Description: OpenPGP digital signature

[PATCH] acpi: fix ubsan warning

2016-08-25 Thread Mikulas Patocka
This patch fixes the following warning. The warning happens when using the Linux kernel 4.8-rc1 on kvm virtual machine, on Debian Jessie host. UBSAN: Undefined behaviour in drivers/acpi/acpica/dsutils.c:641:16 index

Re: [PATCH 01/10] reset: ath79: add driver Kconfig option

2016-08-25 Thread Alban
On Wed, 24 Aug 2016 15:28:53 +0200 Philipp Zabel wrote: > Visible only if COMPILE_TEST is enabled, this allows to include the > driver in build tests. > > Cc: Alban Bedel > Signed-off-by: Philipp Zabel Acked-by: Aban Bedel Alban pgpJ53OvyG2pP.pgp Description: OpenPGP digital signature

Re: [PATCH 3/4] dt-binding: remoteproc: venus rproc dt binding document

2016-08-25 Thread Stanimir Varbanov
Hi Bjorn, On 08/25/2016 03:05 AM, Bjorn Andersson wrote: > On Wed 24 Aug 08:36 PDT 2016, Stanimir Varbanov wrote: > >> Hi Rob, >> >> On 08/23/2016 08:32 PM, Rob Herring wrote: >>> On Fri, Aug 19, 2016 at 06:53:19PM +0300, Stanimir Varbanov wrote: Add devicetree binding document for Venus

Re: linux-next: build warning after merge of the crypto tree

2016-08-25 Thread Stephen Rothwell
Hi Herbert, On Thu, 25 Aug 2016 15:47:01 +0800 Herbert Xu wrote: > > I'm going to do something like this: > > ---8<--- > This patch fixes an unused label warning triggered when the macro > XOR_SELECT_TEMPLATE is not set. > > Fixes: 39457acda913 ("crypto: xor - skip speed test if the xor...")

Re: [RFC v2 07/10] landlock: Add errno check

2016-08-25 Thread Andy Lutomirski
On Thu, Aug 25, 2016 at 3:32 AM, Mickaël Salaün wrote: > Add a max errno value. > > This is not strictly needed but should improve reliability. > > Signed-off-by: Mickaël Salaün > Cc: Arnd Bergmann > Cc: Serge E. Hallyn > Cc: James Morris > Cc: Kees Cook > --- >

Re: [RFC v2 09/10] landlock: Handle cgroups

2016-08-25 Thread Andy Lutomirski
On Thu, Aug 25, 2016 at 3:32 AM, Mickaël Salaün wrote: > Add an eBPF function bpf_landlock_cmp_cgroup_beneath(opt, map, map_op) > to compare the current process cgroup with a cgroup handle, The handle > can match the current cgroup if it is the same or a child. This allows > to make conditional

Re: [RFC v2 08/10] landlock: Handle file system comparisons

2016-08-25 Thread Andy Lutomirski
On Thu, Aug 25, 2016 at 3:32 AM, Mickaël Salaün wrote: > Add eBPF functions to compare file system access with a Landlock file > system handle: > * bpf_landlock_cmp_fs_prop_with_struct_file(prop, map, map_op, file) > This function allows to compare the dentry, inode, device or mount > point

[PATCH 2/2] clk: gcc-msm8996: add missing pcie phy reset lines

2016-08-25 Thread Srinivas Kandagatla
This patch adds missing 2 PCIE common reset lines. Signed-off-by: Srinivas Kandagatla --- drivers/clk/qcom/gcc-msm8996.c | 2 ++ include/dt-bindings/clock/qcom,gcc-msm8996.h | 3 +++ 2 files changed, 5 insertions(+) diff --git a/drivers/clk/qcom/gcc-msm8996.c

[PATCH 1/2] clk: gcc-msm8996: Fix pcie 2 pipe register offset

2016-08-25 Thread Srinivas Kandagatla
This patch corrects the register offset for pcie2 pipe clock. Offset according to datasheet is 0x6e018 instead of 0x6e108. Signed-off-by: Srinivas Kandagatla --- drivers/clk/qcom/gcc-msm8996.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/clk/qcom/gcc-msm8996.c

Re: [PATCH 03/11] sched: Extend scheduler's asym packing

2016-08-25 Thread Morten Rasmussen
On Thu, Aug 18, 2016 at 03:36:44PM -0700, Srinivas Pandruvada wrote: > From: Tim Chen > > We generalize the scheduler's asym packing to provide an > ordering of the cpu beyond just the cpu number. This allows > the use of the ASYM_PACKING scheduler machinery to move > loads to prefered CPU in a

Re: [PATCH 01/10] reset: ath79: add driver Kconfig option

2016-08-25 Thread kbuild test robot
Hi Philipp, [auto build test ERROR on pza/reset/next] [also build test ERROR on v4.8-rc3 next-20160824] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] [Suggest to use git(>=2.9.0) format-patch --base= (or --base=auto for convenience) to record

Re: [RFC v2 00/10] Landlock LSM: Unprivileged sandboxing

2016-08-25 Thread Andy Lutomirski
On Thu, Aug 25, 2016 at 3:32 AM, Mickaël Salaün wrote: > Hi, > > This series is a proof of concept to fill some missing part of seccomp as the > ability to check syscall argument pointers or creating more dynamic security > policies. The goal of this new stackable Linux Security Module (LSM)

[PATCH] clk: qcom: select GDSC for msm8996 gcc and mmcc

2016-08-25 Thread Srinivas Kandagatla
This patch selects QCOM_GDSC Kconfig for msm8996 GCC and MMCC clock controllers, as these provide some of the gdscs on the SOC. Also selecting this config will make it align with other drivers which do the same. Signed-off-by: Srinivas Kandagatla --- drivers/clk/qcom/Kconfig | 2 ++ 1 file

[PATCH] i2c: qup: skip qup_i2c_suspend if the device is already runtime suspended

2016-08-25 Thread Sudeep Holla
If the i2c device is already runtime suspended, if qup_i2c_suspend is executed during suspend-to-idle or suspend-to-ram it will result in the following splat: WARNING: CPU: 3 PID: 1593 at drivers/clk/clk.c:476 clk_core_unprepare+0x80/0x90 Modules linked in: CPU: 3 PID: 1593 Comm: bash Tainted: G

Re: [PATCH] livepatch/module: make TAINT_LIVEPATCH module-specific

2016-08-25 Thread Rusty Russell
Jiri Kosina writes: > On Wed, 24 Aug 2016, Josh Poimboeuf wrote: > >> There's no reliable way to determine which module tainted the kernel >> with CONFIG_LIVEPATCH. For example, /sys/module//taint >> doesn't report it. Neither does the "mod -t" command in the crash tool. >> >> Make it crystal

[PATCH] xen/grant-table: Use kmalloc_array() in arch_gnttab_valloc()

2016-08-25 Thread SF Markus Elfring
From: Markus Elfring Date: Thu, 25 Aug 2016 13:23:06 +0200 * A multiplication for the size determination of a memory allocation indicated that an array data structure should be processed. Thus reuse the corresponding function "kmalloc_array". This issue was detected by using the

Re: [PATCH] x86/mce: Use kmalloc_array() in mce_chrdev_read()

2016-08-25 Thread Paolo Bonzini
On 25/08/2016 11:17, SF Markus Elfring wrote: > From: Markus Elfring > Date: Thu, 25 Aug 2016 11:00:05 +0200 > > * A multiplication for the size determination of a memory allocation > indicated that an array data structure should be processed. > Thus reuse the corresponding function

Re: [PATCH] x86/efi: Use kmalloc_array() in efi_call_phys_prolog()

2016-08-25 Thread Paolo Bonzini
On 25/08/2016 11:40, SF Markus Elfring wrote: > From: Markus Elfring > Date: Thu, 25 Aug 2016 11:34:03 +0200 > > * A multiplication for the size determination of a memory allocation > indicated that an array data structure should be processed. > Thus reuse the corresponding function

Re: [PATCH 1/1] arm64/hugetlb: clear PG_dcache_clean if the page is dirty when munmap

2016-08-25 Thread Leizhen (ThunderTown)
On 2016/8/25 17:30, Catalin Marinas wrote: > On Thu, Aug 25, 2016 at 09:42:26AM +0800, Leizhen (ThunderTown) wrote: >> On 2016/8/24 18:30, Catalin Marinas wrote: On 2016/7/8 21:54, Catalin Marinas wrote: > 8< > diff --git

[PATCH] hwrng: pasemi_rng.c: Migrate to managed API

2016-08-25 Thread PrasannaKumar Muralidharan
Use devm_ioremap and devm_hwrng_register instead of ioremap and hwrng_register. This removes unregistering and error handling code. This patch is not tested with hardware as I don't have access to it. Signed-off-by: PrasannaKumar Muralidharan --- drivers/char/hw_random/pasemi-rng.c | 26

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