Re: [PATCH 3/6] dt-bindings: mtu3: add devicetree bindings

2016-05-12 Thread chunfeng yun
On Thu, 2016-05-12 at 22:09 -0500, Rob Herring wrote: > On Thu, May 12, 2016 at 9:00 PM, chunfeng yun > wrote: > > Hi, > > > > On Thu, 2016-05-12 at 19:02 -0400, Alan Cooper wrote: > >> On Thu, May 12, 2016 at 3:24 AM, chunfeng yun > >> wrote: > >> >> > + - mediatek,enable-manual-drd : supports

Re: [PATCH] cfg80211/nl80211: add wifi tx power mode switching support

2016-05-12 Thread Wei-Ning Huang
On Fri, May 13, 2016 at 6:02 AM, Arend van Spriel wrote: > On 12-05-16 11:34, Wei-Ning Huang wrote: >> On Thu, May 12, 2016 at 2:33 AM, Dan Williams wrote: >>> On Wed, 2016-05-11 at 13:03 +0800, Wei-Ning Huang wrote: On Fri, May 6, 2016 at 4:19 PM, Wei-Ning Huang wrote: > > On

Re: [tip:sched/core] sched/fair: Clean up scale confusion

2016-05-12 Thread Yuyang Du
On Thu, May 12, 2016 at 03:31:27AM -0700, tip-bot for Peter Zijlstra wrote: > Commit-ID: 1be0eb2a97d756fb7dd8c9baf372d81fa9699c09 > Gitweb: http://git.kernel.org/tip/1be0eb2a97d756fb7dd8c9baf372d81fa9699c09 > Author: Peter Zijlstra > AuthorDate: Fri, 6 May 2016 12:21:23 +0200 > Committer:

Re: [LKP] [lkp] [net] 9317bb6982: INFO: task cat-kmsg:893 blocked for more than 300 seconds.

2016-05-12 Thread Eric Dumazet
Oh right, sorry for the delay. On Thu, May 12, 2016 at 8:01 PM, Huang, Ying wrote: > "Huang, Ying" writes: > >> Eric Dumazet writes: >>> On Mon, May 9, 2016 at 6:26 PM, Huang, Ying >>> wrote: Hi, Eric, kernel test robot writes: > FYI, we noticed the following commit: >

Re: next: fuloong2e qemu boot failure due to 'MIPS: Loongson: AddLoongson-3A R2 basic support'

2016-05-12 Thread Guenter Roeck
On 04/19/2016 10:41 PM, Huacai Chen wrote: This is a kernel bug, I'll send a patch. Did you ever send a patch to fix this problem ? It is still broken in next-20160512. Guenter Huacai On Wed, Apr 20, 2016 at 12:43 PM, Guenter Roeck wrote: On 04/19/2016 08:37 PM, 陈华才 wrote: Hi,

[Patch v5 1/8] dt/bindings: firmware: Add Qualcomm SCM binding

2016-05-12 Thread Andy Gross
This patch adds the device tree support for the Qualcomm SCM firmware. Signed-off-by: Andy Gross --- .../devicetree/bindings/firmware/qcom,scm.txt | 28 ++ 1 file changed, 28 insertions(+) create mode 100644 Documentation/devicetree/bindings/firmware/qcom,scm.txt diff

[Patch v5 3/8] firmware: qcom: scm: Use atomic SCM for cold boot

2016-05-12 Thread Andy Gross
This patch changes the cold_set_boot_addr function to use atomic SCM calls. cold_set_boot_addr required adding qcom_scm_call_atomic2 to support the two arguments going to the smc call. Using atomic removes the need for memory allocation and instead places all arguments in registers. Signed-off-b

[Patch v5 7/8] dts: qcom: apq8084: Add SCM firmware node

2016-05-12 Thread Andy Gross
This patch adds the firmware node for the SCM Acked-by: Bjorn Andersson Signed-off-by: Andy Gross --- arch/arm/boot/dts/qcom-apq8084.dtsi | 8 1 file changed, 8 insertions(+) diff --git a/arch/arm/boot/dts/qcom-apq8084.dtsi b/arch/arm/boot/dts/qcom-apq8084.dtsi index a33a09f..7c2df06

[Patch v5 8/8] arm64: dts: msm8916: Add SCM firmware node

2016-05-12 Thread Andy Gross
This adds the devicetree node for the SCM firmware. Acked-by: Bjorn Andersson Signed-off-by: Andy Gross --- arch/arm64/boot/dts/qcom/msm8916.dtsi | 8 1 file changed, 8 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/msm8916.dtsi b/arch/arm64/boot/dts/qcom/msm8916.dtsi index 9681

[Patch v5 5/8] firmware: qcom: scm: Convert to streaming DMA APIS

2016-05-12 Thread Andy Gross
This patch converts the Qualcomm SCM driver to use the streaming DMA APIs for communication buffers. Signed-off-by: Andy Gross --- drivers/firmware/qcom_scm-32.c | 189 +++-- drivers/firmware/qcom_scm.c| 6 +- drivers/firmware/qcom_scm.h| 10 ++- 3

[Patch v5 4/8] firmware: qcom: scm: Generalize shared error map

2016-05-12 Thread Andy Gross
This patch moves the qcom_scm_remap_error function to the include file where can be used by both the 32 and 64 bit versions of the code. Reviewed-by: Stephen Boyd Acked-by: Bjorn Andersson Signed-off-by: Andy Gross Signed-off-by: Andy Gross --- drivers/firmware/qcom_scm-32.c | 17

[Patch v5 6/8] firmware: qcom: scm: Add support for ARM64 SoCs

2016-05-12 Thread Andy Gross
From: Kumar Gala Add an implementation of the SCM interface that works on ARM64 SoCs. This is used by things like determine if we have HDCP support or not on the system. Signed-off-by: Kumar Gala Signed-off-by: Andy Gross --- drivers/firmware/qcom_scm-32.c | 4 + drivers/firmware/qcom_scm-

[Patch v5 2/8] firmware: qcom: scm: Convert SCM to platform driver

2016-05-12 Thread Andy Gross
This patch converts the Qualcomm SCM firmware driver into a platform driver. Signed-off-by: Andy Gross --- drivers/firmware/qcom_scm.c | 165 +--- 1 file changed, 156 insertions(+), 9 deletions(-) diff --git a/drivers/firmware/qcom_scm.c b/drivers/firmwar

[Patch v5 0/8] Qualcomm SCM Rework

2016-05-12 Thread Andy Gross
The following set of patches does a bit of rework on the existing Qualcomm SCM firmware. The first couple of patches deals with turning the current SCM into a platform driver. The next couple are cleanups that make adding the 64 support a little easier. I added in a patch to convert the scm-32 t

[PATCH v3 1/2] Documentation: mfd: LP873X: Add information for the mfd and regulator drivers

2016-05-12 Thread Keerthy
Add information for the mfd and regulator drivers. Acked-by: Rob Herring Signed-off-by: Keerthy --- Changes in v3: * Changed the example node lable to pmic from lp8733. Documentation/devicetree/bindings/mfd/lp873x.txt | 55 1 file changed, 55 insertions(+) create

[PATCH v3 0/2] mfd: lp873x: Add lp873x PMIC support

2016-05-12 Thread Keerthy
The LP873X chip is a power management IC for Portable Navigation Systems and Tablet Computing devices. It contains the following components: - Regulators. - Configurable General Purpose Output Signals(GPO). PMIC interacts with the main processor through i2c. PMIC has couple of LDOs(

[PATCH v3 2/2] mfd: lp873x: Add lp873x PMIC support

2016-05-12 Thread Keerthy
The LP873X chip is a power management IC for Portable Navigation Systems and Tablet Computing devices. It contains the following components: - Regulators. - Configurable General Purpose Output Signals(GPO). PMIC interacts with the main processor through i2c. PMIC has couple of LDOs(

why the count nr_file_pages is not equal to nr_inactive_file + nr_active_file ?

2016-05-12 Thread Xishi Qiu
I find the count nr_file_pages is not equal to nr_inactive_file + nr_active_file. There are 8 cpus, 2 zones in my system. I think may be the pagevec trigger the problem, but PAGEVEC_SIZE is only 14. Does anyone know the reason? Thanks, Xishi Qiu root@hi3650:/ # cat /proc/vmstat nr_free_pages 5

Re: [RFC 2/3] drm/mediatek: add support for Mediatek SoC MT2701

2016-05-12 Thread CK Hu
Hi, YT: On Thu, 2016-05-12 at 19:49 +0800, yt.s...@mediatek.com wrote: > From: YT Shen > > This patch add support for the Mediatek MT2701 DISP subsystem. > There is only one OVL engine in MT2701, and we have shadow > register support here. > > Signed-off-by: YT Shen > --- > @@ -385,12 +422,16

Re: [PATCH 1/2] mmotm: mm-oom-rework-oom-detection-fix

2016-05-12 Thread Hillf Danton
> From: Michal Hocko > > watermark check should use classzone_idx rather than high_zoneidx > to check reserves against the correct (preferred) zone. > > Signed-off-by: Michal Hocko > --- Acked-by: Hillf Danton > mm/page_alloc.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > dif

Re: [PATCH RFT 1/2] phylib: add device reset GPIO support

2016-05-12 Thread Andrew Lunn
> >>+ gpiod = fwnode_get_named_gpiod(&child->fwnode, "reset-gpios"); > >>+ /* Deassert the reset signal */ > >>+ if (!IS_ERR(gpiod)) > >>+ gpiod_direction_output(gpiod, 0); > > > >This is wrong I think. You must only ignore -ENODEV, all other error > >At least -ENOSYS should al

Re: [PATCH 2/2] mm, oom: protect !costly allocations some more for !CONFIG_COMPACTION

2016-05-12 Thread Hillf Danton
> From: Michal Hocko > > Joonsoo has reported that he is able to trigger OOM for !costly high > order requests (heavy fork() workload close the OOM) with the new > oom detection rework. This is because we rely only on should_reclaim_retry > when the compaction is disabled and it only checks water

Re: [PATCH] driver: input :touchscreen : add Raydium I2C touch driver

2016-05-12 Thread Dmitry Torokhov
Hi Jeffrey, On Fri, Apr 29, 2016 at 05:45:13PM +0800, jeffrey.lin wrote: > Raydium I2C touch driver. > > Signed-off-by: jeffrey.lin I was looking at the driver and there were a few issues (buffer overflows, forgetting releasing firmware, general flow, etc), that I tried correcting in the attache

arm build failures in -next due to 'sched/core: Add switch_mm_irqs_off() and use it in the scheduler'

2016-05-12 Thread Guenter Roeck
Hi Andy, I see various arm build failures in -next. One example is spitz_defconfig. Bisect points to commit 'sched/core: Add switch_mm_irqs_off() and use it in the scheduler'. Reverting the commit fixes the problem. In file included from include/linux/mmu_context.h:4:0, from driv

RE: [PATCH v4 3/5] dmaengine: vdma: Add Support for Xilinx AXI Direct Memory Access Engine

2016-05-12 Thread Appana Durga Kedareswara Rao
Hi Paul, > > Nice Kedar! > > Is this getting applied? I would really like to see this get into the > mainline. This patch got applied to the dma-next branch... Here @ http://git.kernel.org/cgit/linux/kernel/git/vkoul/slave-dma.git/log/?h=next Thanks, Kedar.

Re: [PATCH 2/2] clk: rockchip: fix the rk3399 sdmmc sample shift

2016-05-12 Thread Doug Anderson
Shawn, On Thu, May 12, 2016 at 4:47 PM, Shawn Lin wrote: > 在 2016/5/13 7:10, Brian Norris 写道: >> >> On Thu, May 12, 2016 at 11:03:17AM -0700, Doug Anderson wrote: >>> >>> Just like every other Rockhip device, the MMC "_sample" clocks should >>> have a shift of 0, not a shift of 1. The rk3399 TRM

RE: [PATCH v8 1/2] Documentation: DT: dma: Add Xilinx zynqmp dma device tree binding documentation

2016-05-12 Thread Appana Durga Kedareswara Rao
Hi Lars, Thanks for the review... > > On 05/12/2016 02:29 PM, Kedareswara rao Appana wrote: > [...] > > +- xlnx,include-sg : Indicates the controller to operate in simple or > > + scatter gather dma mode > > This is also a software runtime configuration parameter.

Re: transparent huge pages breaks KVM on AMD.

2016-05-12 Thread Marc Haber
On Thu, May 12, 2016 at 11:42:16PM +0300, Kirill A. Shutemov wrote: > But I guess it should apply cleanly to v4.5. Or at least without major > conflicts. [11/511]mh@fan:~/linux/debug/linux$ curl 'http://marc.info/?l=linux-rdma&m=146307074800836&w=2' | patch -p1 % Total% Received % Xferd Av

Re: UBSAN: Undefined behaviour in drivers/scsi/aic7xxx/aic7xxx_core.c:2831:31

2016-05-12 Thread James Bottomley
On Thu, 2016-05-12 at 17:56 -0400, Ilia Mirkin wrote: > On Thu, May 12, 2016 at 4:08 PM, James Bottomley > wrote: > > On Thu, 2016-05-12 at 19:02 +0300, Meelis Roos wrote: > > > This is from a dual-AthlonMP 32-bit x86 system with onboard > > > Adaptec > > > SCSI > > > controller, once during bootu

Re: [tip:sched/core] sched/fair: Correct unit of load_above_capacity

2016-05-12 Thread Yuyang Du
On Thu, May 12, 2016 at 03:31:51AM -0700, tip-bot for Morten Rasmussen wrote: > Commit-ID: cfa10334318d8212d007da8c771187643c9cef35 > Gitweb: http://git.kernel.org/tip/cfa10334318d8212d007da8c771187643c9cef35 > Author: Morten Rasmussen > AuthorDate: Fri, 29 Apr 2016 20:32:40 +0100 > Commi

[PATCH V12 2/2] pinctrl: max77620: add pincontrol driver for MAX77620/MAX20024

2016-05-12 Thread Laxman Dewangan
MAXIM Semiconductor's PMIC, MAX77620/MAX20024 has 8 GPIO pins which also act as the special function in alternate mode. Also there is configuration like push-pull, open drain, FPS timing etc for these pins. Add pin control driver to configure these parameters through pin control APIs. Signed-off-

[PATCH V12 1/2] gpio: add DT binding doc for gpio of PMIC max77620/max20024

2016-05-12 Thread Laxman Dewangan
Maxim Semiconductor's PMIC MAX77620/MAX20024 has 8 GPIO pins which act as GPIO as well as special function mode. Add DT binding document to support these pins in GPIO mode via GPIO framework. Signed-off-by: Laxman Dewangan Acked-by: Rob Herring Acked-by: Linus Walleij --- This as part of the

[PATCH V12 2/2] gpio: max77620: add gpio driver for MAX77620/MAX20024

2016-05-12 Thread Laxman Dewangan
MAXIM Semiconductor's PMIC, MAX77620/MAX20024 has 8 GPIO pins. It also supports interrupts from these pins. Add GPIO driver for these pins to control via GPIO APIs. Signed-off-by: Laxman Dewangan Reviewed-by: Linus Walleij --- This as part of the max77620 series and mfd patch are already appli

[PATCH V12 1/2] pinctrl: add DT binding doc for pincontrol of PMIC max77620/max20024

2016-05-12 Thread Laxman Dewangan
Maxim Semiconductor's PMIC MAX77620/MAX20024 has 8 GPIO pins which act as GPIO as well as special function mode. Add DT binding document to configure pins in function mode as well as pin configuration parameters. Signed-off-by: Laxman Dewangan Acked-by: Rob Herring Acked-by: Linus Walleij ---

Re: [PATCH 5/5] vfio-pci: Allow to mmap MSI-X table if interrupt remapping is supported

2016-05-12 Thread Alex Williamson
On Fri, 13 May 2016 02:33:18 + "Tian, Kevin" wrote: > > From: Alex Williamson [mailto:alex.william...@redhat.com] > > Sent: Friday, May 13, 2016 1:48 AM > > > > On Thu, 12 May 2016 04:53:19 + > > "Tian, Kevin" wrote: > > > > > > From: Alex Williamson [mailto:alex.william...@redhat.co

[PATCH v2 0/4] ACPI 2.0: Enable TermList interpretion for table loading

2016-05-12 Thread Lv Zheng
MLC (module level code) is an ACPICA terminology describing the AML code out of any control method, currently only Type1Opcode (If/Else/While) wrapped MLC code blocks are executed by the AML interpreter after the table loading. But the issue which is fixed by this patchset is: Not only Type1Opco

[PATCH v2 1/4] ACPICA: Dispatcher: Fix an issue that the opregions created by the linked MLC were not tracked

2016-05-12 Thread Lv Zheng
Operation regions created by MLC were not tracked by acpi_check_address_range(), this patch fixes this issue. ACPICA BZ 1279. Fixed by Lv Zheng. Link: https://bugs.acpica.org/show_bug.cgi?id=1279 Signed-off-by: Lv Zheng --- drivers/acpi/acpica/dsopcode.c |6 ++ 1 file changed, 6 insertio

[PATCH v2 2/4] ACPICA: ACPI 2.0, Interpreter: Fix MLC issues by switching to new TermList grammar for table loading

2016-05-12 Thread Lv Zheng
The MLC (Module Level Code) is an ACPICA terminology describing the AML code out of any control method, its support is the main contention of the interpreter behavior during the table loading. The original implementation of MLC in ACPICA had several issues: 1. Out of any control method, besides of

[PATCH v2 3/4] ACPI 2.0 / AML: Enable correct ACPI subsystem initialization order for new table loading mode

2016-05-12 Thread Lv Zheng
This patch enables the following initialization order for the new table loading mode (which is enabled by setting acpi_gbl_parse_table_as_term_list to TRUE): 1. Install default region handlers (SystemMemory, SystemIo, PciConfig, EmbeddedControl via ECDT) without evaluating _REG; 2. Load th

Re: [GIT PULL 00/10] perf/urgent fixes

2016-05-12 Thread Ingo Molnar
the git repository at: > > git://git.kernel.org/pub/scm/linux/kernel/git/acme/linux.git > tags/perf-urgent-for-mingo-20160512 > > for you to fetch changes up to 42ef8a78c1f49f53f29f0f3a6f9a5bcbc653233e: > > perf stat: Fallback to user only counters when perf_event_paranoid

[PATCH v2 4/4] ACPI 2.0 / AML: Fix module level execution by correctly parsing table as TermList

2016-05-12 Thread Lv Zheng
This experiment follows de-facto standard behavior, parsing entire table as a single TermList, so that all module level executions are possible during the table loading. If regressions are found against the enabling of this experimental fix, this patch is the only one that should get bisected out.

linux-next: Tree for May 13

2016-05-12 Thread Stephen Rothwell
Hi all, Changes since 20160512: Dropped tree: rdma-leon (bad build and conflicts) The rdma-leon tree gained a build failure so I dropped it for today. The staging tree gained a build failure for which I applied a merge fix patch. The pinctrl tree lost its build failure. Non-merge commits

Re: [PATCH] sched/core: don't include asm/mmu_context from drivers

2016-05-12 Thread Andy Lutomirski
On Fri, Apr 29, 2016 at 6:42 AM, Steven Rostedt wrote: > On Fri, 29 Apr 2016 10:52:32 +0200 > Arnd Bergmann wrote: > >> This reverts the earlier fix attempt and works around the problem >> by including both linux/mmu_context.h and asm/mmu_context.h from >> kernel/sched/core.c. This is not a good

Re: next: fuloong2e qemu boot failure due to 'MIPS: Loongson: AddLoongson-3A R2 basic support'

2016-05-12 Thread Huacai Chen
gt; > Did you ever send a patch to fix this problem ? It is still broken in > next-20160512. > > Guenter > > >> Huacai >> >> On Wed, Apr 20, 2016 at 12:43 PM, Guenter Roeck >> wrote: >>> >>> On 04/19/2016 08:37 PM, 陈华才 wrote: >>>&

[PATCH] ixgbe: take online CPU number as MQ max limit when alloc_etherdev_mq()

2016-05-12 Thread Ethan Zhao
Allocating 64 Tx/Rx as default doesn't benefit perfomrnace when less CPUs were assigned. especially when DCB is enabled, so we should take num_online_cpus() as top limit, and aslo to make sure every TC has at least one queue, take the MAX_TRAFFIC_CLASS as bottom limit of queues number. Signed-off-

Re: SHA1-MB algorithm broken on latest kernel

2016-05-12 Thread Ingo Molnar
* Herbert Xu wrote: > On Thu, May 12, 2016 at 04:31:06PM -0700, Megha Dey wrote: > > Hi, > > > > When booting latest kernel with the CONFIG_CRYPTO_SHA1_MB enabled, I > > observe a panic. > > > > After having a quick look, on reverting the following patches, I am able > > to complete the boot

RE: [PATCH] usb: gadget: f_fs: report error if excess data received

2016-05-12 Thread Du, Changbin
> Hi, > > "Du, Changbin" writes: > >> right, and that was my point: if we copy more to userspace, then we have > >> a real big problem. > >> > > Yes, we drop the data because we userspace buffer is not enough this time. > > The problem here is that really can we just drop it silently? Maybe not.

[PATCH] rtc: add support for Maxim rtc max6916 v3.0

2016-05-12 Thread venkat . prashanth2498
From: venkat-prashanth #Change Log: from v2.0 to v3.0 - fixed the out-of-tree Makefile and suitably added the modifications in the Makefile - fixed the bad indented Kconfig file -used a d

Crypto Fixes for 4.6

2016-05-12 Thread Herbert Xu
Hi Linus: This push fixes a bug in the RSA self-test that may cause crashes on some architectures such as SPARC. Please pull from git://git.kernel.org/pub/scm/linux/kernel/git/herbert/crypto-2.6.git linus Herbert Xu (1): crypto: testmgr - Use kmalloc memory for RSA input crypto/testm

[PATCH 3/3] perf stat: Use cpu-clock event for cpu targets

2016-05-12 Thread Namhyung Kim
Currently perf stat always counts task-clock event by default. But it's somewhat confusing for system-wide targets (especially with 'sleep N' as the 'sleep' task just sleeps and doesn't use cputime). Changing to cpu-clock event instead for that case makes more sense IMHO. Signed-off-by: Namhyung

[PATCH 1/3] perf diff: Fix indentation of stalled backend cycle

2016-05-12 Thread Namhyung Kim
The commit 140aeadc1fb5 ("perf stat: Abstract stat metrics printing") changed way to print shadow metrics, but it missed to update the width of stalled backend cycles event to 7.2% like others. This resulted in misaligned output like below: Performance counter stats for 'pwd': 0.63831

[PATCH 2/3] perf stat: Update runtime using cpu-clock event

2016-05-12 Thread Namhyung Kim
Currently only task-clock event updates the runtime_nsec so it cannot show the metric when using cpu-clock events. However cpu clock works basically same as task-clock, so no need to not update the runtime IMHO. Before: # perf stat -a -e cpu-clock,context-switches,page-faults,cycles sleep 0.1

[PATCH] rtc: add support for Maxim rtc max6916 v3.0

2016-05-12 Thread venkat . prashanth2498
From: venkat-prashanth [PATCH] rtc: add support to maxim rtc max6916 #Change Log: from v2.0 to v3.0 - fixed the out-of-tree Makefile and suitably added the modifications in the Makefile -

Re: [BUG]Writeback Cgroup/Dirty Throttle: very small buffered write thoughput caused by writeback cgroup and dirty thottle

2016-05-12 Thread Miao Xie
on 2016/5/12 at 23:32, Tejun Heo wrote: On Thu, May 12, 2016 at 09:11:33AM +0800, Miao Xie wrote: My box has 48 cores and 188GB memory, but I set vm.dirty_background_bytes = 268435456 vm.dirty_bytes = 536870912 if I set vm.dirty_background_bytes and vm.dirty_bytes to be a large number(vm.dirty

[PATCH] rtc: add support for Maxim rtc max6916 v3.0

2016-05-12 Thread venkat . prashanth2498
From: venkat-prashanth This is a patch to add support for Maxim rtc max6916 Signed-off-by: Venkat Prashanth B U --- #Change Log: from v2.0 to v3.0 - fixed the out-of-tree Makefile and suitably added the modifications in the M

Re: [PATCH 4/7] [media] ir-rx51: add DT support to driver

2016-05-12 Thread Ivaylo Dimitrov
Hi, On 11.05.2016 17:14, Rob Herring wrote: On Tue, May 10, 2016 at 04:18:27AM +0200, Sebastian Reichel wrote: Hi, On Mon, May 09, 2016 at 04:07:35PM -0500, Rob Herring wrote: There's already a pwm-led binding that can be used. Though there may be missing consumer IR to LED subsystem support

Re: powerpc: Discard ffs() function and use builtin_ffs instead

2016-05-12 Thread Michael Ellerman
On Thu, 2016-12-05 at 15:32:22 UTC, Christophe Leroy wrote: > With the ffs() function as defined in arch/powerpc/include/asm/bitops.h > GCC will not optimise the code in case of constant parameter, as shown > by the small exemple below. > > int ffs_test(void) > { > return 4 << ffs(31); > } >

[RFC PATCH 1/1] acpi: processor_driver: register cooling device per package

2016-05-12 Thread Eduardo Valentin
The current throttling strategy is to apply cooling levels on all processors in a package. Therefore, if one cooling device is requested to cap the frequency, the same request is applied to all sibling processors in the same package. For this reason, this patch removes the redundant cooling device

[git pull] drm fixes

2016-05-12 Thread Dave Airlie
Hi Linus, A bunch of radeon displayport mode setting fixes, and some misc i915 fixes. There is one revert, the MST audio code in i915 was causing some oopses, so we've decided just to drop it until next kernel when we can fix it properly. Thanks, Dave. The following changes since commit 44549e8

[PATCH] objtool: allow building with older libelf

2016-05-12 Thread Jan Beulich
The switch to elf_getshdr{num,strndx} post-dates the oldest tool chain the kernel is supposed to be able to build with, so try to cope with such an environment. Signed-off-by: Jan Beulich --- tools/objtool/Makefile|4 tools/objtool/elf.h |5 + 2 files changed,

Re: [PATCH] zram: introduce per-device debug_stat sysfs node

2016-05-12 Thread Minchan Kim
On Fri, May 13, 2016 at 10:09:29AM +0900, Sergey Senozhatsky wrote: > Hello Minchan, > > On (05/13/16 08:41), Minchan Kim wrote: > [..] > > will fix and update, thanks! > > > > > @@ -719,6 +737,8 @@ compress_again: > > > zcomp_strm_release(zram->comp, zstrm); > > > zstrm = N

[PATCH] objtool: cope with pre-4.5 gcc (and non-gcc)

2016-05-12 Thread Jan Beulich
The kernel's unreachable() translates to __builtin_unreachable() only for gcc 4.5 and newer, and else expands to an infinite loop. Avoid "function has unreachable instruction" warnings for this case by inspecting the instructions immediately following the UD2. This cuts down the number of files get

Re: [PATCH v3] usb: dwc2: fix regression on big-endian PowerPC/ARM systems

2016-05-12 Thread John Youn
On 5/12/2016 1:56 PM, Arnd Bergmann wrote: > A patch that went into Linux-4.4 to fix big-endian mode on a Lantiq > MIPS system unfortunately broke big-endian operation on PowerPC > APM82181 as reported by Christian Lamparter, and likely other > systems. > > It actually introduced multiple issues:

Re: [PATCH 1/1] net: ethernet: Add SGMII support to dwmac-socfpga

2016-05-12 Thread Loh Tien Hock
Please disregard this patch. Wrong patch attached, I'll send a correct one in a short while. On Fri, May 13, 2016 at 2:27 PM, wrote: > From: Tien Hock Loh > > Adds SGMII support for dwmac-socfpga to enable the SGMII PHY when phy-mode > of the dwmac is set to sgmii. > > Signed-off-by: Tien Hock

RE: [PATCH] usb: gadget: f_fs: report error if excess data received

2016-05-12 Thread Felipe Balbi
Hi, "Du, Changbin" writes: >> "Du, Changbin" writes: >> >> right, and that was my point: if we copy more to userspace, then we have >> >> a real big problem. >> >> >> > Yes, we drop the data because we userspace buffer is not enough this time. >> > The problem here is that really can we just dr

Additional compiler barrier required in sched_preempt_enable_no_resched?

2016-05-12 Thread Vikram Mulukutla
Hi, I came across a piece of engineering code that looked like: preempt_disable(); /* --cut, lots of code-- */ preempt_enable_no_resched(); put_user() preempt_disable(); (If you wish to seriously question the usage of the preempt API in this manner, I unfortunately have no comment since I didn

[PATCH 1/1] net: ethernet: Add SGMII support to dwmac-socfpga

2016-05-12 Thread thloh
From: Tien Hock Loh Adds SGMII support for dwmac-socfpga to enable the SGMII PHY when phy-mode of the dwmac is set to sgmii. Signed-off-by: Tien Hock Loh --- .../net/ethernet/stmicro/stmmac/dwmac-socfpga.c| 340 - 1 file changed, 330 insertions(+), 10 deletions(-) diff

RE: [PATCH 5/5] vfio-pci: Allow to mmap MSI-X table if interrupt remapping is supported

2016-05-12 Thread Tian, Kevin
> From: Alex Williamson [mailto:alex.william...@redhat.com] > Sent: Friday, May 13, 2016 1:33 PM > > > > > > As argued previously in this thread, there's nothing special about a > > > DMA write to memory versus a DMA write to a special address that > > > triggers an MSI vector. If the device is DM

Re: powerpc: Discard ffs() function and use builtin_ffs instead

2016-05-12 Thread Christophe Leroy
Le 13/05/2016 à 08:16, Michael Ellerman a écrit : On Thu, 2016-12-05 at 15:32:22 UTC, Christophe Leroy wrote: With the ffs() function as defined in arch/powerpc/include/asm/bitops.h GCC will not optimise the code in case of constant parameter, as shown by the small exemple below. int ffs_test

Re: [PATCH] zram: introduce per-device debug_stat sysfs node

2016-05-12 Thread Sergey Senozhatsky
On (05/13/16 15:23), Minchan Kim wrote: [..] > @@ -737,12 +737,12 @@ static int zram_bvec_write(struct zram *zram, struct > bio_vec *bvec, u32 index, > zcomp_strm_release(zram->comp, zstrm); > zstrm = NULL; > > - atomic64_inc(&zram->stats.num_recompress);

Re: [PATCH 0/19] get rid of superfluous __GFP_REPEAT

2016-05-12 Thread Michal Hocko
On Thu 12-05-16 13:13:28, Andrew Morton wrote: > On Thu, 12 May 2016 18:53:11 +0200 Michal Hocko wrote: > > > Andrew, > > do you think this should go in in the next merge window or should I > > repost after rc1 is out? I do not mind one way or the other. I would > > obviously would like to get th

<    4   5   6   7   8   9