Re: CLK_OF_DECLARE advice required

2017-06-02 Thread Stephen Boyd
On 06/01, Phil Elwell wrote: > On 01/06/2017 07:39, Stephen Boyd wrote: > > On 05/31, Phil Elwell wrote: > >> For my edification, can you pretend for a moment that the application was > >> a valid one and > >> answer any of my original questions?: > >> > >> 1. Should all system clock drivers use O

[PATCH] drivers: char: mem: Fix wraparound check to allow mappings up to the end

2017-06-02 Thread Julius Werner
A recent fix to /dev/mem prevents mappings from wrapping around the end of physical address space. However, the check was written in a way that also prevents a mapping reaching just up to the end of physical address space, which may be a valid use case (especially on 32-bit systems). This patch fix

Re: [PATCH V3 1/3] clk: add clk_bulk_get accessories

2017-06-02 Thread Stephen Boyd
On 05/19, Dong Aisheng wrote: > These helper function allows drivers to get several clk consumers in > one operation. If any of the clk cannot be acquired then any clks > that were got will be put before returning to the caller. > > This can relieve the driver owners' life who needs to handle many

Re: [PATCH] clk: meson-gxbb: Add const to some parent name arrays

2017-06-02 Thread Stephen Boyd
On 06/02, Stephen Boyd wrote: > These can be marked as const * const. > > Cc: Neil Armstrong > Cc: Jerome Brunet > Signed-off-by: Stephen Boyd > --- Applied to clk-next -- Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, a Linux Foundation Collaborative Project

Re: [PATCH V3 2/3] clk: add managed version of clk_bulk_get

2017-06-02 Thread Stephen Boyd
On 05/19, Dong Aisheng wrote: > This patch introduces the managed version of clk_bulk_get. > > Cc: Michael Turquette > Cc: Stephen Boyd > Cc: Russell King > Cc: Geert Uytterhoeven > Cc: "Rafael J. Wysocki" > Cc: Viresh Kumar > Cc: Mark Brown > Cc: Shawn Guo > Cc: Fabio Estevam > Cc: Sasch

Re: [PATCH V3 0/3] clk: introduce clk_bulk_get accessories

2017-06-02 Thread Stephen Boyd
On 05/19, Dong Aisheng wrote: > These helper function allows drivers to get several clk consumers in > one operation. If any of the clk cannot be acquired then any clks > that were got will be put before returning to the caller. > I've merged the first two into a stable branch and merged to clk-

Re: [PATCH] clk: bcm2835: Correct the prediv logic

2017-06-02 Thread Stephen Boyd
On 05/15, Eric Anholt wrote: > From: Phil Elwell > > If a clock has the prediv flag set, both the integer and fractional > parts must be scaled when calculating the resulting frequency. > > Signed-off-by: Phil Elwell > Signed-off-by: Eric Anholt > --- Applied to clk-next -- Qualcomm Innovat

[GIT PULL] Power management fixes for v4.12-rc4

2017-06-02 Thread Rafael J. Wysocki
Hi Linus, Please pull from the tag git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git \ pm-4.12-rc4 with top-most commit bb5710e72c217e5bbdf0969a2fd84f5f5ad7fc2b Merge branch 'pm-cpufreq' on top of commit 5ed02dbb497422bf225783f46e6eadd237d23d6b Linux 4.12-rc3 to receive p

Re: [PATCH] clk: Re-evaluate clock rate on min/max update

2017-06-02 Thread Stephen Boyd
On 06/02, Peter De Schrijver wrote: > On Thu, Jun 01, 2017 at 02:12:51AM -0700, Stephen Boyd wrote: > > On 04/13, Peter De Schrijver wrote: > > > On Wed, Apr 12, 2017 at 09:46:05AM -0700, Stephen Boyd wrote: > > > > On 03/21, Peter De Schrijver wrote: > > > > > > No. But I do rely on the rate sett

[PATCH] Staging: ccree: ssi_aead.h: Fixed a pointer declaration error.

2017-06-02 Thread srishti sharma
Fixed a pointer declaration error , the dereferencing operator was misplaced. Signed-off-by: srishti sharma --- drivers/staging/ccree/ssi_aead.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/staging/ccree/ssi_aead.h b/drivers/staging/ccree/ssi_aead.h index 654a1

Re: [PATCH v4 2/2] clk: bcm2835: Minimise clock jitter for PCM clock

2017-06-02 Thread Stephen Boyd
On 06/01, Phil Elwell wrote: > Fractional clock dividers generate accurate average frequencies but > with jitter, particularly when the integer divisor is small. > > Introduce a new metric of clock accuracy to penalise clocks with a good > average but worse jitter compared to clocks with an averag

Re: hexagon: Use raw_copy_to_user

2017-06-02 Thread Guenter Roeck
Hi Richard, On Fri, Jun 02, 2017 at 04:33:04PM -0500, Richard Kuo wrote: > On Fri, Jun 02, 2017 at 06:03:53AM -0700, Guenter Roeck wrote: > > ping > > > > On Tue, May 02, 2017 at 08:52:48PM -0700, Guenter Roeck wrote: > > > Commit ac4691fac8ad ("hexagon: switch to RAW_COPY_USER") replaced >

Re: [PATCH v4 1/2] clk: bcm2835: Limit PCM clock to OSC and PLLD_PER

2017-06-02 Thread Stephen Boyd
On 06/01, Phil Elwell wrote: > Restrict clock sources for the PCM peripheral to the oscillator and > PLLD_PER because other source may have varying rates or be switched off. > Prevent other sources from being selected by replacing their names in > the list of potential parents with dummy entries (e

[GIT PULL] ACPI fixes for v4.12-rc4

2017-06-02 Thread Rafael J. Wysocki
Hi Linus, Please pull from the tag git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git \ acpi-4.12-rc4 with top-most commit 60319130254084b337e02439d3b4ec301b6328bb Merge branches 'acpi-button', 'acpica' and 'acpi-sysfs' on top of commit 5ed02dbb497422bf225783f46e6eadd237d23d6

Re: [PATCH v3 3/5] clk: qcom: ipq8074: Add Global Clock Controller support

2017-06-02 Thread Stephen Boyd
On 06/01, Varadarajan Narayanan wrote: > From: Abhishek Sahu > > This patch adds support for the global clock controller found on > the IPQ8074 based devices. This includes UART, I2C, SPI etc. > > Signed-off-by: Abhishek Sahu > Signed-off-by: Varadarajan Narayanan > --- > .../devicetree/bindi

Re: [PATCH] Documentation: clock: address more for clock-cells property

2017-06-02 Thread Stephen Boyd
On 06/01, Chunyan Zhang wrote: > The value of property 'clock-cells' is not determined only by the number of > clock outputs in one clock node, it is actually determined by whether the > clock output in this node can be referenced directly without index. If > the output clock has to be referenced

Re: [PATCH 0/3] ACPI / sleep: Support power button wakeup from S2I on recent Dell laptops

2017-06-02 Thread Rafael J. Wysocki
On Friday, June 02, 2017 11:06:49 AM Tom Lanyon wrote: > On 2 June 2017 at 00:59, Rafael J. Wysocki wrote: > > > > Quoting from my cover letter: > > > > "After this series there still is a concern regarding the possible increase > > of > > power draw that may result from the processing of non-wak

Re: [PATCH] qla2xxx: remove writeq/readq function definitions

2017-06-02 Thread Bart Van Assche
On Fri, 2017-06-02 at 13:32 +0200, Corentin Labbe wrote: > Instead of rewriting write/readq, use linux/io-64-nonatomic-lo-hi.h which > already have them. Reviewed-by: Bart Van Assche

Re: [GIT PULL] /dev/random bug fixes for 4.12

2017-06-02 Thread Linus Torvalds
On Fri, Jun 2, 2017 at 2:30 PM, Theodore Ts'o wrote: > > Fix a race on architectures with prioritized interrupts (such as m68k) > which can causes crashes in drivers/char/random.c:get_reg(). I don't think this has anything to do with prioritized interrupts, just possibility of nesting (which can

[PATCH v3 27/28] ext4: xattr inode deduplication

2017-06-02 Thread Tahsin Erdogan
Ext4 now supports xattr values that are up to 64k in size (vfs limit). Large xattr values are stored in external inodes each one holding a single value. Once written the data blocks of these inodes are immutable. The real world use cases are expected to have a lot of value duplication such as inhe

Re: [PATCH 03/11] kernfs: add an API to get kernfs node from inode number

2017-06-02 Thread Shaohua Li
On Fri, Jun 02, 2017 at 03:03:45PM -0700, Eduardo Valentin wrote: > On Fri, Jun 02, 2017 at 02:53:56PM -0700, Shaohua Li wrote: > > From: Shaohua Li > > > > Add an API to get kernfs node from inode number. We will need this to > > implement exportfs operations. > > > > To make the API lock free,

Re: linux-next: build warnings after merge of the drm tree

2017-06-02 Thread Stephen Rothwell
Hi Eric, On Fri, 02 Jun 2017 14:05:14 -0700 Eric Anholt wrote: > > Not sure what's going on. I see your "yesterday" list present, and not > your "today" commit. I just refetched the drm-misc tree and received no changes. It is still as I said in the previous email. This tree is fetched from t

[PATCHv3 3/4] dt-bindings: i2c: Add Altera I2C Controller

2017-06-02 Thread thor . thayer
From: Thor Thayer Add the documentation to support the Altera synthesizable logic I2C Controller in FPGA. Signed-off-by: Thor Thayer --- v2 Change the subject to identify dt-bindings Add synthesizable logic to description. Change compatible string to "altr,softip-i2c" Make descript

[PATCHv3 2/4] MAINTAINERS: Add Altera I2C Controller Driver

2017-06-02 Thread thor . thayer
From: Thor Thayer Add maintainer for the Altera I2C Controller Driver. Signed-off-by: Thor Thayer --- v2&3 No change --- MAINTAINERS | 5 + 1 file changed, 5 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 9609ca6..86053d6 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -636,6 +

[PATCHv3 4/4] i2c: altera: Add Altera I2C Controller driver

2017-06-02 Thread thor . thayer
From: Thor Thayer Add driver support for the Altera I2C Controller. The I2C controller is soft IP for use in FPGAs. Signed-off-by: Thor Thayer --- v2 Remove altr, from fifo-size to agree with bindings. Change compatible string to "altr,softip-i2c" v3 Add version to compatible string "altr

[PATCHv3 0/4] Add Altera I2C Controller Driver

2017-06-02 Thread thor . thayer
From: Thor Thayer This patch seris add the Altera I2C Controller driver for use in FPGAs. Thor Thayer (4): ARM: dts: socfpga: Add Altera I2C Controller to CycloneV MAINTAINERS: Add Altera I2C Controller Driver dt-bindings: i2c: Add Altera I2C Controller i2c: altera: Add Altera I2C Contro

[PATCHv3 1/4] ARM: dts: socfpga: Add Altera I2C Controller to CycloneV

2017-06-02 Thread thor . thayer
From: Thor Thayer Add the Altera I2C Controller to the CycloneV SoCFPGA device tree. Signed-off-by: Thor Thayer --- v2 Remove altr, from fifo-size. Rename compatible string to "altr,softip-i2c" v3 Add version to commpatible string "altr,softip-i2c-v1.0" --- arch/arm/boot/dts/socfpga.dtsi

Re: [PATCH 6/7] RISC-V: arch/riscv/kernel

2017-06-02 Thread Palmer Dabbelt
On Tue, 23 May 2017 06:35:23 PDT (-0700), Arnd Bergmann wrote: >> +IRQCHIP_DECLARE(riscv, "riscv,cpu-intc", riscv_intc_init); > > Please move the majority of this file into drivers/irqchip as a > standalone driver. OK. https://github.com/riscv/riscv-linux/commit/549c7f5ef63d7be04c9cac7e332ef81

Re: get_random_bytes returns bad randomness before seeding is complete

2017-06-02 Thread Jason A. Donenfeld
Hi Ted, Based on the tone of your last email, before I respond to your individual points, I think it's worth noting that the intent of this thread is to get a sampling of opinions of the issue of get_random_bytes, so that I can write a patch that fixes this issue (or a series of issues) using some

[PATCH 1/5] xen/vcpu: Simplify xen_vcpu related code

2017-06-02 Thread Ankur Arora
Largely mechanical changes to aid unification of xen_vcpu_restore() logic for PV, PVH and PVHVM. xen_vcpu_setup(): the only change in logic is that clamp_max_cpus() is now handled inside the "if (!xen_have_vcpu_info_placement)" block. xen_vcpu_restore(): code movement from enlighten_pv.c to enlig

[PATCH 2/5] xen/pvh*: Support > 32 VCPUs at domain restore

2017-06-02 Thread Ankur Arora
When Xen restores a PVHVM or PVH guest, its shared_info only holds up to 32 CPUs. The hypercall VCPUOP_register_vcpu_info allows us to setup per-page areas for VCPUs. This means we can boot PVH* guests with more than 32 VCPUs. During restore the per-cpu structure is allocated freshly by the hypervi

[PATCH 4/5] xen/vcpu: Handle xen_vcpu_setup() failure in hotplug

2017-06-02 Thread Ankur Arora
The hypercall VCPUOP_register_vcpu_info can fail. This failure is handled by making per_cpu(xen_vcpu, cpu) point to its shared_info slot and those without one (cpu >= MAX_VIRT_CPUS) be NULL. For PVH/PVHVM, this is not enough, because we also need to pull these VCPUs out of circulation. Fix for PV

[PATCH 5/5] xen/vcpu: Handle xen_vcpu_setup() failure at boot

2017-06-02 Thread Ankur Arora
On PVH, PVHVM, at failure in the VCPUOP_register_vcpu_info hypercall we limit the number of cpus to to MAX_VIRT_CPUS. However, if this failure had occurred for a cpu beyond MAX_VIRT_CPUS, we continue to function with > MAX_VIRT_CPUS. This leads to problems at the next save/restore cycle when there

[PATCH 0/5] xen/pvh*: Support > 32 VCPUs at restore

2017-06-02 Thread Ankur Arora
This patch series fixes a bunch of issues in the xen_vcpu setup logic. Simplify xen_vcpu related code: code refactoring in advance of the rest of the patch series. Support > 32 VCPUs at restore: unify all vcpu restore logic in xen_vcpu_restore() and support > 32 VCPUs for PVH*. Remove vcpu info

[PATCH 3/5] xen/pv: Fix OOPS on restore for a PV, !SMP domain

2017-06-02 Thread Ankur Arora
If CONFIG_SMP is disabled, xen_setup_vcpu_info_placement() is called from xen_setup_shared_info(). This is fine as far as boot goes, but it means that we also call it in the restore path. This results in an OOPS because we assign to pv_mmu_ops.read_cr2 which is __ro_after_init. Also, though less p

Re: [kernel-hardening] Re: get_random_bytes returns bad randomness before seeding is complete

2017-06-02 Thread Sandy Harris
The only sensible & general solution for the initialisation problem that I have seen is John Denker's. http://www.av8n.com/computer/htm/secure-random.htm#sec-boot-image If I read that right, it would require only minor kernel changes & none to the API Ted & others are worrying about. It would be s

Re: [alsa-devel] [PATCH v3 11/17] pinctrl: madera: Add driver for Cirrus Logic Madera codecs

2017-06-02 Thread kbuild test robot
Hi Richard, [auto build test WARNING on next-20170601] [cannot apply to ljones-mfd/for-mfd-next asoc/for-next linus/master v4.9-rc8 v4.9-rc7 v4.9-rc6 v4.12-rc3] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci

Re: [PATCH] rpmsg: Release rpmsg devices in backends

2017-06-02 Thread Suman Anna
Hi Bjorn, On 06/02/2017 05:07 AM, Henri Roosen wrote: >> The rpmsg devices are allocated in the backends and as such must be >> freed there as well. >> >> Signed-off-by: Bjorn Andersson >> --- >> drivers/rpmsg/qcom_smd.c | 11 +++ >> drivers/rpmsg/virtio_rpmsg_bus.c | 9

Re: [PATCH-v2] target/iblock: Convert WRITE_SAME to blkdev_issue_zeroout

2017-06-02 Thread Martin K. Petersen
Nicholas, > The people who are actively using iblock_execute_write_same_direct() > are doing so in the context of ESX VAAI BlockZero, together with > EXTENDED_COPY and COMPARE_AND_WRITE primitives. > > In practice though I've not seen any users of IBLOCK WRITE_SAME for > anything other than VAAI

Re: linux-next: build warnings after merge of the drm tree

2017-06-02 Thread Eric Anholt
Stephen Rothwell writes: > Hi Eric, > > On Fri, 02 Jun 2017 14:05:14 -0700 Eric Anholt wrote: >> >> Not sure what's going on. I see your "yesterday" list present, and not >> your "today" commit. > > I just refetched the drm-misc tree and received no changes. It is > still as I said in the prev

Re: [PATCH 5/9] [media] s5p-jpeg: Add IOMMU support

2017-06-02 Thread Shuah Khan
On Fri, Jun 2, 2017 at 10:02 AM, Thierry Escande wrote: > From: Tony K Nadackal > > This patch adds support for IOMMU s5p-jpeg driver if the Exynos IOMMU > and ARM DMA IOMMU configurations are supported. The address space is > created with size limited to 256M and base address set to 0x2000.

Re: [GIT PULL v2] phy: for 4.12 -rc

2017-06-02 Thread Greg Kroah-Hartman
On Fri, Jun 02, 2017 at 03:40:03PM +0530, Kishon Vijay Abraham I wrote: > Hi Greg, > > Please find the updated pull request for 4.12 -rc below. > > It includes only a couple of fixes in phy-qcom-qmp driver. The grouping of phy > drivers to vendor specific directories will be sent for the next mer

Re: [PATCH] regmap: make LZO cache optional

2017-06-02 Thread Greg Kroah-Hartman
On Fri, Jun 02, 2017 at 03:15:37PM +0200, Jonas Gorski wrote: > Commit 2cbbb579bcbe3 ("regmap: Add the LZO cache support") added support > for LZO compression in regcache, but there were never any users added > afterwards. Since LZO support itself has its own size, it currently is > rather a deopti

Re: [PATCH 11/11] block: use standard blktrace API to output cgroup info for debug notes

2017-06-02 Thread kbuild test robot
Hi Shaohua, [auto build test ERROR on driver-core/driver-core-testing] [also build test ERROR on v4.12-rc3 next-20170602] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/commits/Shaohua-Li/kernfs

Re: Hang/soft lockup in d_invalidate with simultaneous calls

2017-06-02 Thread Al Viro
On Wed, May 17, 2017 at 02:58:11PM -0700, Khazhismel Kumykov wrote: > Once the dentry is on a shrink list would > it be unreachable anyways, Why would it be? Suppose e.g. shrink_dcache_parent() finds a dentry with zero refcount; to the shrink list it goes, right? Then, before we actually get ar

[PATCH] Staging: comedi: s626.c: fixed trailing */ style issue

2017-06-02 Thread Elias Carter
From: edcarter Fixed coding style issue where trailing */ in block comments were not on separate lines. Signed-off-by: Elias Carter --- drivers/staging/comedi/drivers/s626.c | 9 ++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/drivers/staging/comedi/drivers/s626.c b/dr

Re: [PATCH] amd-xgbe: use PAGE_ALLOC_COSTLY_ORDER in xgbe_map_rx_buffer

2017-06-02 Thread kbuild test robot
Hi Michal, [auto build test WARNING on net-next/master] [also build test WARNING on v4.12-rc3 next-20170602] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/commits/Michal-Hocko/amd-xgbe-use

Re: linux-next: build warnings after merge of the drm tree

2017-06-02 Thread Stephen Rothwell
Hi Eric, On Fri, 02 Jun 2017 17:45:10 -0700 Eric Anholt wrote: > > Stephen Rothwell writes: > > > On Fri, 02 Jun 2017 14:05:14 -0700 Eric Anholt wrote: > >> > >> Not sure what's going on. I see your "yesterday" list present, and not > >> your "today" commit. > > > > I just refetched the d

[PATCH v10 5/5] i2c: aspeed: added slave support for Aspeed I2C driver

2017-06-02 Thread Brendan Higgins
Added slave support for Aspeed I2C controller. Supports fourteen busses present in AST24XX and AST25XX BMC SoCs by Aspeed. Signed-off-by: Brendan Higgins --- Added in v6: - Pulled slave support out of initial driver commit into its own commit. - No longer arbitrarily restrict bus to be slave

[GIT PULL] MTD fixes for 4.12

2017-06-02 Thread Brian Norris
Hi Linus, The following changes since commit 08332893e37af6ae779367e78e444f8f9571511d: Linux 4.12-rc2 (2017-05-21 19:30:23 -0700) are available in the git repository at: git://git.infradead.org/linux-mtd.git tags/for-linus-20170602 for you to fetch changes up to

[PATCH v10 2/5] irqchip/aspeed-i2c-ic: Add I2C IRQ controller for Aspeed

2017-06-02 Thread Brendan Higgins
The Aspeed 24XX/25XX chips share a single hardware interrupt across 14 separate I2C busses. This adds a dummy irqchip which maps the single hardware interrupt to software interrupts for each of the busses. Signed-off-by: Brendan Higgins --- Added in v6: - Pulled "aspeed_i2c_controller" out into

[PATCH v10 1/5] irqchip/aspeed-i2c-ic: binding docs for Aspeed I2C Interrupt Controller

2017-06-02 Thread Brendan Higgins
Added device tree binding documentation for Aspeed I2C Interrupt Controller. Signed-off-by: Brendan Higgins Acked-by: Rob Herring --- Added in v6: - Pulled "aspeed_i2c_controller" out into a interrupt controller since that is what it actually does. Changes for v7: - None Changes for v8:

[PATCH v10 3/5] i2c: aspeed: added documentation for Aspeed I2C driver

2017-06-02 Thread Brendan Higgins
Added device tree binding documentation for Aspeed I2C busses. Signed-off-by: Brendan Higgins Acked-by: Rob Herring --- Changes for v2: - None Changes for v3: - Removed reference to "bus" device tree param Changes for v4: - None Changes for v5: - None Changes for v6: - Replaced the con

[PATCH v10 4/5] i2c: aspeed: added driver for Aspeed I2C

2017-06-02 Thread Brendan Higgins
Added initial master support for Aspeed I2C controller. Supports fourteen busses present in AST24XX and AST25XX BMC SoCs by Aspeed. Signed-off-by: Brendan Higgins --- Changes for v2: - Added single module_init (multiple was breaking some builds). Changes for v3: - Removed "bus" device tree pa

[PATCH v10 0/5] i2c: aspeed: added driver for Aspeed I2C

2017-06-02 Thread Brendan Higgins
Addressed comments from: - Marc in: http://www.spinics.net/lists/devicetree/msg179432.html - Ben in: http://www.spinics.net/lists/devicetree/msg179491.html Changes since previous update: - I2C irqchip: Unallocate resources on init failure - I2C driver: Added master_xfer_result field to str

Re: [PATCH v9 4/5] i2c: aspeed: added driver for Aspeed I2C

2017-06-02 Thread Brendan Higgins
On Fri, Jun 2, 2017 at 5:02 AM, Benjamin Herrenschmidt wrote: > On Fri, 2017-06-02 at 01:46 -0700, Brendan Higgins wrote: >> Added initial master support for Aspeed I2C controller. Supports >> fourteen busses present in AST24XX and AST25XX BMC SoCs by Aspeed. >> >> Signed-off-by: Brendan Higgins

Re: [PATCH 1/2] perf tools: Decompress kernel module when reading DSO data

2017-06-02 Thread Namhyung Kim
Hi Jiri, On Thu, Jun 1, 2017 at 8:29 PM, Jiri Olsa wrote: > On Thu, Jun 01, 2017 at 06:06:04PM +0900, Namhyung Kim wrote: > > SNIP > >> @@ -399,6 +438,7 @@ static int __open_dso(struct dso *dso, struct machine >> *machine) >> int fd; >> char *root_dir = (char *)""; >> char *nam

Re: [PATCH 1/2] perf tools: Decompress kernel module when reading DSO data

2017-06-02 Thread Namhyung Kim
On Thu, Jun 1, 2017 at 8:29 PM, Jiri Olsa wrote: > On Thu, Jun 01, 2017 at 06:06:04PM +0900, Namhyung Kim wrote: > > SNIP > >> - } >> - >> - unlink(tmpbuf); >> - >> -out: >> - free(m.ext); >> - return fd; >> -} >> - >> bool symsrc__possibly_runtime(struct symsrc *ss) >> { >>

kernel of next-20170602 call trace when run add_key02 in LTP

2017-06-02 Thread Bixuan Cui
Hi, Compile kernel (next-20170602) and run ltp, find: / # ./add_key02 tst_test.c:878: INFO: Timeout per run is 0h 05m 00s [ 341.183219] BUG: unable to handle kernel NULL pointer dereference at (null) [ 341.183850] IP: memset+0x10/0x20 [ 341.184550] *pdpt = 35441001 *pde

[PATCH] drm/pl111: Fix offset calculation for the primary plane.

2017-06-02 Thread Eric Anholt
If src_x/y were nonzero, we failed to shift them down by 16 to get the pixel offset. The recent CMA helper function gets it right. Signed-off-by: Eric Anholt Fixes: bed41005e617 ("drm/pl111: Initial drm/kms driver for pl111") Reported-by: Mircea Carausu --- drivers/gpu/drm/pl111/pl111_display.

Re: [PATCH 4/7] RISC-V: arch/riscv/include

2017-06-02 Thread Palmer Dabbelt
On Tue, 23 May 2017 14:23:50 PDT (-0700), b...@kernel.crashing.org wrote: > On Tue, 2017-05-23 at 14:55 +0200, Arnd Bergmann wrote: >> > + >> > +#include >> >> I would recommend providing your own {read,write}{b,w,l,q}{,_relaxed} >> helpers using inline assembly, to prevent the compiler for breaki

Re: [PATCH 11/11] block: use standard blktrace API to output cgroup info for debug notes

2017-06-02 Thread kbuild test robot
Hi Shaohua, [auto build test ERROR on driver-core/driver-core-testing] [also build test ERROR on v4.12-rc3 next-20170602] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/commits/Shaohua-Li/kernfs

[PATCH v2 3/3] perf test: Decompress kernel module before objdump

2017-06-02 Thread Namhyung Kim
If a kernel modules is compressed, it should be decompressed before running objdump to parse binary data correctly. This fixes a failure of object code reading test for me. Signed-off-by: Namhyung Kim --- tools/perf/tests/code-reading.c | 26 +- 1 file changed, 25 insert

[PATCH v2 1/3] perf tools: Introduce dso__decompress_kmodule_{fd,path}

2017-06-02 Thread Namhyung Kim
Move decompress_kmodule() to util/dso.c and split it to two functions returning fd and (decompressed) file path. Existing user only wants the fd version but the path version will be used soon. Signed-off-by: Namhyung Kim --- tools/perf/util/dso.c| 51

[PATCH v2 2/3] perf tools: Decompress kernel module when reading DSO data

2017-06-02 Thread Namhyung Kim
Currently perf decompresses kernel modules when loading symbol table but it missed to do it when reading raw data. Signed-off-by: Namhyung Kim --- tools/perf/util/dso.c | 16 +++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/tools/perf/util/dso.c b/tools/perf/util/ds

Re: [PATCH 1/7] lib: Add shared copies of some GCC library routines

2017-06-02 Thread Palmer Dabbelt
On Wed, 24 May 2017 01:52:13 PDT (-0700), matt.redfe...@imgtec.com wrote: > Hi Palmer > > > On 23/05/17 23:05, Palmer Dabbelt wrote: >> Many ports (m32r, microblaze, mips, parisc, score, and sparc) use >> functionally identical copies of various GCC library routine files, >> which came up as we wer

Re: [PATCH 4/7] mips: Use lib/{ashldi3,ashrdi3,cmpdi2,lshrdi3,ucmpdi2}.c

2017-06-02 Thread Palmer Dabbelt
On Wed, 24 May 2017 02:01:39 PDT (-0700), matt.redfe...@imgtec.com wrote: > Hi Palmer, > This patch doesn't quite match the subject, since it only removes the > mips specific implementation of __ucmpdi2. The following patch removes > all of the intrinsics that you added to lib/ from arch/mips/lib.

Re: [RFC PATCH 2/4] mm, tree wide: replace __GFP_REPEAT by __GFP_RETRY_MAYFAIL with more useful semantic

2017-06-02 Thread Wei Yang
Hi, Michal Just go through your patch. I have one question and one suggestion as below. One suggestion: This patch does two things to me: 1. Replace __GFP_REPEAT with __GFP_RETRY_MAYFAIL 2. Adjust the logic in page_alloc to provide the middle semantic My suggestion is to split these two task i

Re: [PATCH] mm/vmalloc: a slight change of compare target in __insert_vmap_area()

2017-06-02 Thread Wei Yang
On Fri, Jun 02, 2017 at 10:26:06AM +0800, zhong jiang wrote: >On 2017/6/2 9:45, Wei Yang wrote: >> On Fri, May 26, 2017 at 09:55:31AM +0800, zhong jiang wrote: >>> On 2017/5/26 9:36, Wei Yang wrote: On Thu, May 25, 2017 at 11:04:44AM +0800, zhong jiang wrote: > I hit the overlap issue, but

[PATCH RFC 0/3] get_random_bytes seed blocking

2017-06-02 Thread Jason A. Donenfeld
Per the other thread on this mailing list, here's an initial stab at what we discussed -- adding a blocking API for the RNG, and adding a default-on dmesg Kconfig value for when things go wrong. Let me know what you think of this general implementation strategy, and if you like it, I'll move forwa

[PATCH RFC 1/3] random: add synchronous API for the urandom pool

2017-06-02 Thread Jason A. Donenfeld
This enables users of get_random_{bytes,u32,u64,int,long} to wait until the pool is ready before using this function, in case they actually want to have reliable randomness. Signed-off-by: Jason A. Donenfeld --- drivers/char/random.c | 46 -- include/

[PATCH RFC 3/3] random: warn when kernel uses unseeded randomness

2017-06-02 Thread Jason A. Donenfeld
This enables an important dmesg notification about when drivers have used the crng without it being seeded first. Prior, these errors would occur silently, and so there hasn't been a great way of diagnosing these types of bugs for obscure setups. By adding this as a config option, we can leave it o

[PATCH RFC 2/3] random: add get_random_{bytes,u32,u64,int,long}_wait family

2017-06-02 Thread Jason A. Donenfeld
These functions are simple convience wrappers that call wait_for_random_bytes before calling the respective get_random_* function. Signed-off-by: Jason A. Donenfeld --- include/linux/random.h | 30 ++ 1 file changed, 30 insertions(+) diff --git a/include/linux/random

[PATCH] staging: rtl8192e: all lines in dot11d.h are less than 80 chars long

2017-06-02 Thread Konrad Malkowski
This patch fixes the checkpoint.pl warning: WARNING: line over 80 characters Signed-off-by: Konrad Malkowski --- drivers/staging/rtl8192e/dot11d.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/staging/rtl8192e/dot11d.h b/drivers/staging/rtl8192e/dot11d.h index

Re: security/keys: add CONFIG_KEYS_COMPAT to Kconfig

2017-06-02 Thread Eric Biggers
On Wed, Mar 29, 2017 at 12:20:02PM -0700, Eric Biggers wrote: > On Thu, 9 Feb 2017 22:11:38 +0100, Bilal Amarni wrote: > > CONFIG_KEYS_COMPAT is defined in arch-specific Kconfigs and is missing for > > several 64-bit architectures : arm64, mips, parisc, tile. > > > > At the moment and for those a

[RFC PATCH v3 05/11] [media] vimc: common: Add vimc_link_validate

2017-06-02 Thread Helen Koike
All links will be checked in the same way. Adding a helper function for that Signed-off-by: Helen Koike --- Changes in v3: [media] vimc: common: Add vimc_link_validate - this is a new patch in the series Changes in v2: None --- drivers/media/platform/vimc/vimc-capture.c | 78 +++---

[RFC PATCH v3 07/11] [media] vimc: cap: Support several image formats

2017-06-02 Thread Helen Koike
Allow user space to change the image format as the frame size, the pixel format, colorspace, quantization, field YCbCr encoding and the transfer function Signed-off-by: Helen Koike --- Changes in v3: [media] vimc: cap: Support several image formats - use *_DEFAULT macros for colorimetry

[RFC PATCH v3 11/11] [media] vimc: sca: Add scaler

2017-06-02 Thread Helen Koike
Implement scaler and integrated with the core Signed-off-by: Helen Koike --- Changes in v3: [media] vimc: sca: Add scaler - Declare frame_size as a local variable - s_stream(sd, 1): return 0 if stream is already enabled - s_stream(sd, 0): return 0 if stream is already di

[RFC PATCH v3 10/11] [media] vimc: deb: Add debayer filter

2017-06-02 Thread Helen Koike
Implement the debayer filter and integrate it with the core Signed-off-by: Helen Koike --- Changes in v3: [media] vimc: deb: Add debayer filter - Declare frame_size as a local variable - s_stream(sd, 1): return 0 if stream is already enabled - s_stream(sd, 0): return 0 i

[RFC PATCH v3 08/11] [media] vimc: Optimize frame generation through the pipe

2017-06-02 Thread Helen Koike
Add a parameter called vsen_tpg, if true then vimc will work as before: frames will be generated in the sensor nodes then propagated through the pipe and processed by each node until a capture node is reached. If vsen_tpg is false, then the frame is not generated by the sensor, but directly from th

[RFC PATCH v3 06/11] [media] vimc: sen: Support several image formats

2017-06-02 Thread Helen Koike
Allow user space to change the image format as the frame size, the media bus pixel format, colorspace, quantization, field YCbCr encoding and the transfer function Signed-off-by: Helen Koike --- Changes in v3: [media] vimc: sen: Support several image formats - remove support for V4L2_FI

[RFC PATCH v3 09/11] [media] vimc: Subdevices as modules

2017-06-02 Thread Helen Koike
Change the core structure for adding subdevices in the topology. Instead of calling the specific create function for each subdevice, inject a child platform_device with the driver's name. Each type of node in the topology (sensor, capture, debayer, scaler) will register a platform_driver with the c

[RFC PATCH v3 01/11] [media] vimc: sen: Integrate the tpg on the sensor

2017-06-02 Thread Helen Koike
Initialize the test pattern generator on the sensor Generate a colored bar image instead of a grey one Signed-off-by: Helen Koike --- Changes in v3: [media] vimc: sen: Integrate the tpg on the sensor - Declare frame_size as a local variable - Set tpg frame format before starting

[RFC PATCH v3 02/11] [media] vimc: Move common code from the core

2017-06-02 Thread Helen Koike
Remove helper functions from vimc-core and add it in vimc-common to clean up the core. Signed-off-by: Helen Koike --- Changes in v3: [media] vimc: Move common code from the core - This is a new patch in the series Changes in v2: None --- drivers/media/platform/vimc/Makefile

Re: Unify the various copies of libgcc into lib

2017-06-02 Thread Palmer Dabbelt
On Wed, 24 May 2017 02:21:22 PDT (-0700), ge...@linux-m68k.org wrote: > Hi Palmer, > > On Wed, May 24, 2017 at 12:05 AM, Palmer Dabbelt wrote: >> I'm in the process of submitting the RISC-V Linux port, and someone noticed >> that we were adding copies of some libgcc emulation routines that were th

Re: [media] vimc: API proposal, configuring the topology from user space

2017-06-02 Thread Helen Koike
ping On 2017-04-10 07:53 PM, Helen Koike wrote: Hi, Continuing the discussion about the API of the vimc driver, I made some changes based on the previous comments, please see below and let me know your opinion about it. Helen /*** Configfs considerations:

[RFC PATCH v3 03/11] [media] vimc: common: Add vimc_ent_sd_* helper

2017-06-02 Thread Helen Koike
As all the subdevices in the topology will be initialized in the same way, to avoid code repetition the vimc_ent_sd_{register, unregister} helper functions were created Signed-off-by: Helen Koike --- Changes in v3: [media] vimc: Add vimc_ent_sd_* helper functions - add it in vimc-common

[RFC PATCH v3 04/11] [media] vimc: common: Add vimc_pipeline_s_stream helper

2017-06-02 Thread Helen Koike
Move the vimc_cap_pipeline_s_stream from the vimc-cap.c to vimc-common.c as this core will be reused by other subdevices to activate the stream in their directly connected nodes Signed-off-by: Helen Koike --- Changes in v3: [media] vimc: Add vimc_pipeline_s_stream in the core - add it i

[PATCH] KVM: nVMX: Fix exception injection

2017-06-02 Thread Wanpeng Li
From: Wanpeng Li WARNING: CPU: 3 PID: 2840 at arch/x86/kvm/vmx.c:10966 nested_vmx_vmexit+0xdcd/0xde0 [kvm_intel] CPU: 3 PID: 2840 Comm: qemu-system-x86 Tainted: G OE 4.12.0-rc3+ #23 RIP: 0010:nested_vmx_vmexit+0xdcd/0xde0 [kvm_intel] Call Trace: ? kvm_check_async_pf_completion

Re: [PATCH 6/7] RISC-V: arch/riscv/kernel

2017-06-02 Thread Palmer Dabbelt
On Thu, 25 May 2017 10:05:05 PDT (-0700), pa...@ucw.cz wrote: >> +static void ci_leaf_init(struct cacheinfo *this_leaf, >> + struct device_node *node, >> + enum cache_type type, unsigned int level) >> +{ >> +this_leaf->of_node = node; >> +

[PATCH] perf/tracing/cpuhotplug: don't release cred_guard_mutex if not taken

2017-06-02 Thread Levin, Alexander (Sasha Levin)
From: Alexander Levin If we failed to acquire task's cred_guard_mutex we shouldn't proceed to release it in the error path. Fixes: a63fbed776c ("perf/tracing/cpuhotplug: Fix locking order") Signed-off-by: Alexander Levin --- kernel/events/core.c | 2 +- 1 file changed, 1 insertion(+), 1 deleti

Re: [PATCH RFC tip/core/rcu] Make SRCU be once again optional

2017-06-02 Thread Paul E. McKenney
On Fri, May 12, 2017 at 12:10:05PM -0700, Paul E. McKenney wrote: > On Fri, May 12, 2017 at 02:59:48PM -0400, Nicolas Pitre wrote: > > On Fri, 12 May 2017, Paul E. McKenney wrote: [ . . . ] > > No. "Available in mainline" is the name of the game for all I do. If it > > can't be made acceptable

[PATCH v4 net-next 1/3] perf, bpf: Add BPF support to all perf_event types

2017-06-02 Thread Alexei Starovoitov
Allow BPF_PROG_TYPE_PERF_EVENT program types to attach to all perf_event types, including HW_CACHE, RAW, and dynamic pmu events. Only tracepoint/kprobe events are treated differently which require BPF_PROG_TYPE_TRACEPOINT/BPF_PROG_TYPE_KPROBE program types accordingly. Also add support for reading

[PATCH v4 net-next 0/3] bpf: Add BPF support to all perf_event

2017-06-02 Thread Alexei Starovoitov
v3->v4: one more tweak to reject unsupported events at map update time as Peter suggested v2->v3: more refactoring to address Peter's feedback. Now all perf_events are attachable and readable v1->v2: address Peter's feedback. Refactor patch 1 to allow attaching bpf programs to all event types and

[PATCH v2 3/3] net/cxgb4: Use new PCI_DEV_FLAGS_NO_RELAXED_ORDERING flag

2017-06-02 Thread Ding Tianhong
From: Casey Leedom cxgb4 Ethernet driver now queries Root Complex Port to determine if it can send TLPs to it with the Relaxed Ordering Attribute set. Signed-off-by: Casey Leedom Signed-off-by: Ding Tianhong --- drivers/net/ethernet/chelsio/cxgb4/cxgb4.h | 1 + drivers/net/ethernet/chel

[PATCH v2 1/3] PCI: Add new PCIe Fabric End Node flag, PCI_DEV_FLAGS_NO_RELAXED_ORDERING

2017-06-02 Thread Ding Tianhong
From: Casey Leedom The new flag PCI_DEV_FLAGS_NO_RELAXED_ORDERING indicates that the Relaxed Ordering Attribute should not be used on Transaction Layer Packets destined for the PCIe End Node so flagged. Initially flagged this way are Intel E5-26xx Root Complex Ports which suffer from a Flow Cont

[PATCH v2 0/3] Add new PCI_DEV_FLAGS_NO_RELAXED_ORDERING flag

2017-06-02 Thread Ding Tianhong
Some devices have problems with Transaction Layer Packets with the Relaxed Ordering Attribute set. This patch set adds a new PCIe Device Flag, PCI_DEV_FLAGS_NO_RELAXED_ORDERING, a set of PCI Quirks to catch some known devices with Relaxed Ordering issues, and a use of this new flag by the cxgb4 dr

[PATCH v2 2/3] PCI: Enable PCIe Relaxed Ordering if supported

2017-06-02 Thread Ding Tianhong
The PCIe Device Control Register use the bit 4 to indicate that whether the device is permitted to enable relaxed ordering or not. But relaxed ordering is not safe for some platform which could only use strong write ordering, so devices are allowed (but not required) to enable relaxed ordering bit

[PATCH v4 net-next 2/3] samples/bpf: add tests for more perf event types

2017-06-02 Thread Alexei Starovoitov
From: Teng Qin $ trace_event tests attaching BPF program to HW_CPU_CYCLES, SW_CPU_CLOCK, HW_CACHE_L1D and other events. It runs 'dd' in the background while bpf program collects user and kernel stack trace on counter overflow. User space expects to see sys_read and sys_write in the kernel stack

[PATCH v4 net-next 3/3] bpf: update perf event helper functions documentation

2017-06-02 Thread Alexei Starovoitov
From: Teng Qin This commit updates documentation of the bpf_perf_event_output and bpf_perf_event_read helpers to match their implementation. Signed-off-by: Teng Qin Signed-off-by: Alexei Starovoitov --- include/uapi/linux/bpf.h | 11 +++ tools/include/uapi/linux/bpf.h | 11 +

<    3   4   5   6   7   8   9   >