[PATCH v2] Documentation: tee: Document TEE kernel interface

2020-06-04 Thread Sumit Garg
Update documentation with TEE bus infrastructure which provides an interface for kernel client drivers to communicate with corresponding Trusted Application. Signed-off-by: Sumit Garg --- Changes in v2: - Add TEE client driver example snippet. Documentation/tee.txt | 68 +++

[PATCH] regulator: mt6360: Add support for MT6360 regulator

2020-06-04 Thread Gene Chen
From: Gene Chen Add MT6360 regulator driver include 2-channel buck and 6-channel ldo Signed-off-by: Gene Chen base-commit: 098c4adf249c198519a4abebe482b1e6b8c50e47 --- drivers/regulator/Kconfig| 10 + drivers/regulator/Makefile | 1 + drivers/regulator/mt6360-regulator

linux-next: Tree for Jun 4

2020-06-04 Thread Stephen Rothwell
Hi all, News: The merge window has opened, so please do *not* add v5.9 material to your linux-next included branches until after v5.8-rc1 has been released. Changes since 20200603: Removed tree: sh Renamed tree: sh-rf to sh My fixes tree contains: 4cb4bfffe2c1 ("device_cgroup: Fix RCU list d

Re: [PATCH 06/12] xen-blkfront: add callbacks for PM suspend and hibernation]

2020-06-04 Thread Roger Pau Monné
Hello, On Wed, Jun 03, 2020 at 11:33:52PM +, Agarwal, Anchal wrote: > CAUTION: This email originated from outside of the organization. Do not > click links or open attachments unless you can confirm the sender and know > the content is safe. > > > > On Tue, May 19, 2020 at 11:27:50PM

Re: [PATCH v8 0/5] support reserving crashkernel above 4G on arm64 kdump

2020-06-04 Thread Will Deacon
On Thu, Jun 04, 2020 at 01:17:06AM +0530, Bhupesh Sharma wrote: > On Wed, Jun 3, 2020 at 9:03 PM John Donnelly > wrote: > > > On Jun 3, 2020, at 8:20 AM, chenzhou wrote: > > > On 2020/6/3 19:47, Prabhakar Kushwaha wrote: > > diff --git a/kernel/crash_core.c b/kernel/crash_core.c > > in

Re: [PATCH v3 2/2] checks: Improve i2c reg property checking

2020-06-04 Thread David Gibson
On Tue, Jun 02, 2020 at 11:28:05AM +0300, Andy Shevchenko wrote: > On Tue, Jun 2, 2020 at 11:03 AM Serge Semin > wrote: > > On Thu, May 28, 2020 at 06:26:50PM +0930, Joel Stanley wrote: > > ... > > > > +#define I2C_TEN_BIT_ADDRESS (1 << 31) > > > > As Andy neatly pointed out here: > > https://l

Re: [PATCH v6 5/5] drivers/tty/serial: add LiteUART driver

2020-06-04 Thread Mateusz Holenko
On Wed, May 27, 2020 at 6:27 PM Mateusz Holenko wrote: > > From: Filip Kokosinski > > This commit adds driver for the FPGA-based LiteUART serial controller > from LiteX SoC builder. > > The current implementation supports LiteUART configured > for 32 bit data width and 8 bit CSR bus width. > > It

Re: kernel/trace/blktrace.c:347:12: sparse: sparse: incorrect type in assignment (different address spaces)

2020-06-04 Thread Chaitanya Kulkarni
On 6/3/20 7:30 PM, Jens Axboe wrote: >> Can you please let me know how can we proceed with the series so that >> we can stop these emails ? > Which patch from Jan? I saw one, and it had issues. Then there's a second > one, which is ordered behind a series that's not in my tree and wasn't > queued f

Re: [PATCH 2/3] dt-bindings: display: bridge: Add documentation for LT9611

2020-06-04 Thread Vinod Koul
Hi Laurent, Sorry for late reply, I was out last week. On 28-05-20, 04:48, Laurent Pinchart wrote: > > + > > + interrupts: > > +maxItems: 1 > > +description: interrupt line for the chip > > I think you could drop the descriptions for the reg and interrupt > properties, they don't add mu

Re: [PATCH v6 2/2] arm64/crash_core: Export TCR_EL1.T1SZ in vmcoreinfo

2020-06-04 Thread Will Deacon
On Thu, Jun 04, 2020 at 02:04:58AM +0530, Bhupesh Sharma wrote: > On Wed, Jun 3, 2020 at 4:50 PM Kamlakant Patel wrote: > > > diff --git a/arch/arm64/kernel/crash_core.c > > > b/arch/arm64/kernel/crash_core.c > > > index 1f646b07e3e9..314391a156ee 100644 > > > --- a/arch/arm64/kernel/crash_core.c

[PATCH] compiler.h: Move instrumentation_begin()/end() into new header

2020-06-04 Thread Ingo Molnar
* Linus Torvalds wrote: > On Mon, Jun 1, 2020 at 6:08 AM Ingo Molnar wrote: > > > > include/linux/compiler.h| 53 +++ > > I have pulled this, but do we really want to add this to a header file > that is _so_ core that it gets included for basically every single

Re: [PATCH] x86/mm: use max memory block size with unaligned memory end

2020-06-04 Thread David Hildenbrand
On 04.06.20 05:54, Daniel Jordan wrote: > Some of our servers spend 14 out of the 21 seconds of kernel boot > initializing memory block sysfs directories and then creating symlinks > between them and the corresponding nodes. The slowness happens because > the machines get stuck with the smallest s

Re: [PATCH][next] ovl: fix null pointer dereference on null stack pointer on error return

2020-06-04 Thread Miklos Szeredi
On Wed, Jun 3, 2020 at 6:15 PM Colin Ian King wrote: > > On 03/06/2020 17:11, Amir Goldstein wrote: > > On Wed, Jun 3, 2020 at 6:46 PM Colin King wrote: > >> > >> From: Colin Ian King > >> > >> There are two error return paths where the call to path_put is > >> dereferencing the null pointer 'st

Re: [PATCH 3/3] drm/bridge: Introduce LT9611 DSI to HDMI bridge

2020-06-04 Thread Vinod Koul
Hi Laurent, On 28-05-20, 04:52, Laurent Pinchart wrote: > > +static int lt9611_bridge_attach(struct drm_bridge *bridge, > > + enum drm_bridge_attach_flags flags) > > +{ > > + struct lt9611 *lt9611 = bridge_to_lt9611(bridge); > > + int ret; > > + > > + dev_dbg(lt961

Re: Re: [RFC v2 7/9] mm/damon: Implement callbacks for physical memory monitoring

2020-06-04 Thread SeongJae Park
On Wed, 3 Jun 2020 18:09:21 +0200 David Hildenbrand wrote: > On 03.06.20 16:11, SeongJae Park wrote: > > From: SeongJae Park > > > > This commit implements the four callbacks (->init_target_regions, > > ->update_target_regions, ->prepare_access_check, and ->check_accesses) > > for the basic acc

Re: [PATCH 00/10] Remove uninitialized_var() macro

2020-06-04 Thread Sedat Dilek
On Thu, Jun 4, 2020 at 5:33 AM Nathan Chancellor wrote: > > On Wed, Jun 03, 2020 at 04:31:53PM -0700, Kees Cook wrote: > > Using uninitialized_var() is dangerous as it papers over real bugs[1] > > (or can in the future), and suppresses unrelated compiler warnings > > (e.g. "unused variable"). If t

Re: [PATCH 2/2] coresight: tmc: Add shutdown callback for TMC ETR/ETF

2020-06-04 Thread Sai Prakash Ranjan
Hi Mathieu, +Will On 2020-06-03 23:14, Mathieu Poirier wrote: On Wed, Jun 03, 2020 at 02:34:10PM +0100, Robin Murphy wrote: On 2020-06-03 14:22, Mike Leach wrote: > Hi Sai, > > On Wed, 3 Jun 2020 at 13:14, Sai Prakash Ranjan > wrote: > > > > Hi Mike, > > > > On 2020-06-03 16:57, Mike Leach wr

Re: [PATCH v2 0/6] seqlock: seqcount_t call sites bugfixes

2020-06-04 Thread Daniel Vetter
On Wed, Jun 03, 2020 at 04:49:43PM +0200, Ahmed S. Darwish wrote: > Hi, > > Since patch #7 and #8 from the series: > >[PATCH v1 00/25] seqlock: Extend seqcount API with associated locks > > https://lore.kernel.org/lkml/20200519214547.352050-1-a.darw...@linutronix.de > > are now pending o

[PATCH v9 06/18] media: platform: Delete the resetting hardware flow in the system PM ops

2020-06-04 Thread Xia Jiang
Delete the resetting hardware flow in suspend and resume function because that resetting operation will be done in device_run(). Signed-off-by: Xia Jiang --- v9: new patch --- check.txt | 13 + drivers/media/platform/mtk-jpeg/mtk_jpeg_core.c | 2

[PATCH v9 05/18] media: platform: Improve power on and power off flow

2020-06-04 Thread Xia Jiang
Call pm_runtime_get_sync() before starting a frame and then pm_runtime_put() after completing it. This can save power for the time between processing two frames. Signed-off-by: Xia Jiang --- v9: use pm_runtime_put() to replace pm_runtime_put_sync() --- .../media/platform/mtk-jpeg/mtk_jpeg_core.c

[PATCH v9 01/18] media: platform: Improve subscribe event flow for bug fixing

2020-06-04 Thread Xia Jiang
Let v4l2_ctrl_subscribe_event() do the job for other types except V4L2_EVENT_SOURCE_CHANGE. Reviewed-by: Tomasz Figa Signed-off-by: Xia Jiang --- v9: no changes --- drivers/media/platform/mtk-jpeg/mtk_jpeg_core.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/me

[PATCH v9 13/18] media: platform: Delete redundant code and add annotation for an enum

2020-06-04 Thread Xia Jiang
Delete unused member variables annotation. Delete unused variable definition. Delete redundant log print, because V4L2 debug logs already print it. Add annotation for enum mtk_jpeg_ctx_state. Signed-off-by: Xia Jiang --- v9: add annotation for enum mtk_jpeg_ctx_state --- drivers/media/platform/m

[PATCH v9 07/18] media: platform: Improve the implementation of the system PM ops

2020-06-04 Thread Xia Jiang
Add v4l2_m2m_suspend() function call in mtk_jpeg_suspend() to make sure that the current frame is processed completely before suspend. Add v4l2_m2m_resume() function call in mtk_jpeg_resume() to unblock the driver from scheduling next frame. Signed-off-by: Xia Jiang --- v9: use v4l2_m2m_suspend()

[PATCH v9 03/18] media: platform: Improve getting and requesting irq flow for bug fixing

2020-06-04 Thread Xia Jiang
Delete platform_get_resource operation for irq. Return actual value rather than EINVAL when fail to get and request irq. Reviewed-by: Tomasz Figa Signed-off-by: Xia Jiang --- v9: no changes --- drivers/media/platform/mtk-jpeg/mtk_jpeg_core.c | 7 ++- 1 file changed, 2 insertions(+), 5 delet

[PATCH v9 17/18] media: platform: Rename existing functions/defines/variables

2020-06-04 Thread Xia Jiang
Rename existing funcitons/defines/variables with a _dec prefix and without dec_ prefix to prepare for the addition of the jpeg encoder feature. Signed-off-by: Xia Jiang --- v9: new patch --- .../media/platform/mtk-jpeg/mtk_jpeg_core.c | 196 +- .../media/platform/mtk-jpeg/mtk_

RE: [PATCH] x86/speculation: Check whether speculation is force disabled

2020-06-04 Thread Tada, Kenta (Sony)
>It conflicts with your new code. We can have an argument on whether IB should >follow how SSB is being handled. Before that is settled, Thank you for the information. It conflicts but I think users who read the below document get confused. Documentation/userspace-api/spec_ctrl.rst. Especially,

[PATCH v9 11/18] media: platform: Use generic rounding helpers

2020-06-04 Thread Xia Jiang
Use clamp() to replace mtk_jpeg_bound_align_image() and round() to replace mtk_jpeg_align(). Reviewed-by: Tomasz Figa Signed-off-by: Xia Jiang --- v9: change the patch title description --- .../media/platform/mtk-jpeg/mtk_jpeg_core.c | 41 +-- drivers/media/platform/mtk-jpeg/m

[PATCH v9 18/18] media: platform: Add jpeg enc feature

2020-06-04 Thread Xia Jiang
Add mtk jpeg encode v4l2 driver based on jpeg decode, because that jpeg decode and encode have great similarities with function operation. Signed-off-by: Xia Jiang --- v9: add member variable(struct v4l2_rect) in out_q structure for storing the active crop information. move the renaming e

[PATCH v9 12/18] media: platform: Change MTK_JPEG_COMP_MAX macro definition location

2020-06-04 Thread Xia Jiang
Move MTK_JPEG_COMP_MAX definition to mtk_jpeg_core.h file, because it is used by mtk_jpeg_core.c file. Reviewed-by: Tomasz Figa Signed-off-by: Xia Jiang --- v9: no changes --- drivers/media/platform/mtk-jpeg/mtk_jpeg_core.h | 2 ++ drivers/media/platform/mtk-jpeg/mtk_jpeg_reg.h | 1 - 2 files

[PATCH v9 10/18] media: platform: Stylistic changes for improving code quality

2020-06-04 Thread Xia Jiang
Change register offset hex numerals from uppercase to lowercase. Change data type of max/min width/height from integer to unsigned integer. Signed-off-by: Xia Jiang --- v9: move changing data type of max/min width/height to this patch --- .../media/platform/mtk-jpeg/mtk_jpeg_core.h| 8 -

[PATCH v9 16/18] media: platform: Rename jpeg dec file name

2020-06-04 Thread Xia Jiang
Rename the files which are for decode feature. This is preparing path since the jpeg enc patch will be added later. Reviewed-by: Tomasz Figa Signed-off-by: Xia Jiang --- v9: no changes --- drivers/media/platform/mtk-jpeg/Makefile | 2 +- drivers/media/platform/mtk-jpeg/mtk_

[PATCH v9 09/18] media: platform: Delete zeroing the reserved fields

2020-06-04 Thread Xia Jiang
Delete zeroing the reserved fields because that the core already does it. Signed-off-by: Xia Jiang --- v9: new patch --- drivers/media/platform/mtk-jpeg/mtk_jpeg_core.c | 5 - 1 file changed, 5 deletions(-) diff --git a/drivers/media/platform/mtk-jpeg/mtk_jpeg_core.c b/drivers/media/platfo

Re: [PATCH v2] x86_64: fix jiffies ODR violation

2020-06-04 Thread Sedat Dilek
On Tue, Jun 2, 2020 at 9:31 PM 'Bob Haarman' via Clang Built Linux wrote: > > 'jiffies' and 'jiffies_64' are meant to alias (two different symbols > that share the same address). Most architectures make the symbols alias > to the same address via linker script assignment in their > arch//kernel/v

[PATCH v9 08/18] media: platform: Cancel the last frame handling flow

2020-06-04 Thread Xia Jiang
There is no need to queue an empty buffer for signaling a last frame, because all frames are separate from each other in JPEG. Signed-off-by: Xia Jiang --- v9: new patch --- .../media/platform/mtk-jpeg/mtk_jpeg_core.c | 21 +-- 1 file changed, 1 insertion(+), 20 deletions(-) d

[PATCH v9 14/18] media: dt-bindings: Add jpeg enc device tree node document

2020-06-04 Thread Xia Jiang
Add jpeg enc device tree node document. Reviewed-by: Rob Herring Signed-off-by: Xia Jiang --- v9: no changes --- .../bindings/media/mediatek-jpeg-encoder.txt | 37 +++ 1 file changed, 37 insertions(+) create mode 100644 Documentation/devicetree/bindings/media/mediatek-jpeg-en

[PATCH v9 02/18] media: platform: Improve queue set up flow for bug fixing

2020-06-04 Thread Xia Jiang
Add checking created buffer size follow in mtk_jpeg_queue_setup(). Reviewed-by: Tomasz Figa Signed-off-by: Xia Jiang --- v9: no changes --- drivers/media/platform/mtk-jpeg/mtk_jpeg_core.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a/drivers/media/platform/mtk-jpeg/mtk_jpeg_core.c

Re: [PATCH 2/3] dt-bindings: display: bridge: Add documentation for LT9611

2020-06-04 Thread Laurent Pinchart
Hi Vinod, On Thu, Jun 04, 2020 at 12:48:59PM +0530, Vinod Koul wrote: > Hi Laurent, > > Sorry for late reply, I was out last week. No worries. > On 28-05-20, 04:48, Laurent Pinchart wrote: > > > + > > > + interrupts: > > > +maxItems: 1 > > > +description: interrupt line for the chip >

Re: [PATCH] checkpatch: Avoid missing typo suggestions

2020-06-04 Thread Joe Perches
On Thu, 2020-06-04 at 09:55 +0300, Maxim Uvarov wrote: > On Thu, 4 Jun 2020 at 03:39, Joe Perches wrote: Hi Maxim. > > btw: My codespell dictionary file moved to > > /usr/lib/python3/dist-packages/codespell_lib/data/dictionary.txt > > > > and I had to use --codespell --codespellfile=(above) so

[PATCH v9 15/18] arm: dts: mt2701: Add jpeg enc device tree node

2020-06-04 Thread Xia Jiang
Add jpeg enc device tree node. Signed-off-by: Xia Jiang --- v9: add "mt2701" in the title description --- arch/arm/boot/dts/mt2701.dtsi | 13 + 1 file changed, 13 insertions(+) diff --git a/arch/arm/boot/dts/mt2701.dtsi b/arch/arm/boot/dts/mt2701.dtsi index 2c4ec82547ee..235bacc0e41

[PATCH v9 00/18] Add support for mt2701 JPEG ENC support

2020-06-04 Thread Xia Jiang
This patchset add support for mt2701 JPEG ENC support. This is the compliance test result for jpeg dec and enc. The JPEG dec log: v4l2-compliance -d /dev/video0

[PATCH v9 04/18] media: platform: Change the fixed device node number to unfixed value

2020-06-04 Thread Xia Jiang
The driver can be instantiated multiple times, e.g. for a decoder and an encoder. Moreover, other drivers could coexist on the same system. This makes the static video node number assignment pointless, so switch to automatic assignment instead. Signed-off-by: Xia Jiang --- v9: change the commit m

[PATCH] iommu: Don't attach deferred device in iommu_group_do_dma_attach

2020-06-04 Thread Jerry Snitselaar
Attaching a deferred device should be delayed until dma api is called. Cc: io...@lists.linux-foundation.org Suggested-by: Joerg Roedel Signed-off-by: Jerry Snitselaar --- If you already have thrown a patch together, then ignore this. Also feel free to swap out the signed-off-by with your's since

[PATCH v3 00/10] net: eth: altera: tse: Add PTP and mSGDMA prefetcher

2020-06-04 Thread Ooi, Joyce
From: Joyce Ooi This patch series cleans up the Altera TSE driver and adds support for the newer msgdma prefetcher as well as ptp support when using the msgdma prefetcher. v2: Rename altera_ptp to intel_fpga_tod, modify msgdma and sgdma tx_buffer functions to be of type netdev_tx_t, and mino

[PATCH v3 01/10] net: eth: altera: tse_start_xmit ignores tx_buffer call response

2020-06-04 Thread Ooi, Joyce
From: Dalon Westergreen The return from tx_buffer call in tse_start_xmit is inapropriately ignored. tse_buffer calls should return 0 for success or NETDEV_TX_BUSY. tse_start_xmit should return not report a successful transmit when the tse_buffer call returns an error condition. In addition to

[PATCH v3 02/10] net: eth: altera: set rx and tx ring size before init_dma call

2020-06-04 Thread Ooi, Joyce
From: Dalon Westergreen It is more appropriate to set the rx and tx ring size before calling the init function for the dma. Signed-off-by: Dalon Westergreen Signed-off-by: Joyce Ooi --- v2: no change v3: no change --- drivers/net/ethernet/altera/altera_tse_main.c | 6 -- 1 file changed, 4

[PATCH v3 07/10] net: eth: altera: change tx functions to type netdev_tx_t

2020-06-04 Thread Ooi, Joyce
From: Dalon Westergreen Modify all msgdma and sgdma tx_buffer functions to be of type netdev_tx_t, and also modify main tx function to be of netdev_tx_t type. Signed-off-by: Dalon Westergreen Signed-off-by: Joyce Ooi --- v2: this patch is added in patch version 2 v3: no change --- drivers/net

[PATCH v3 04/10] net: eth: altera: add optional function to start tx dma

2020-06-04 Thread Ooi, Joyce
From: Dalon Westergreen Allow for optional start up of tx dma if the start_txdma function is defined in altera_dmaops. Signed-off-by: Dalon Westergreen Signed-off-by: Joyce Ooi --- v2: no change v3: no change --- drivers/net/ethernet/altera/altera_tse.h | 1 + drivers/net/ethernet/altera

[PATCH v3 05/10] net: eth: altera: Move common functions to altera_utils

2020-06-04 Thread Ooi, Joyce
From: Dalon Westergreen Move request_and_map and other shared functions to altera_utils. This is the first step to moving common code out of tse specific code so that it can be shared with future altera ethernet ip. Signed-off-by: Dalon Westergreen Signed-off-by: Joyce Ooi --- v2: no change v3

[PATCH v3 06/10] net: eth: altera: Add missing identifier names to function declarations

2020-06-04 Thread Ooi, Joyce
From: Dalon Westergreen The sgdma and msgdma header files included function declarations without identifier names for pointers. Add appropriate identifier names. Signed-off-by: Dalon Westergreen Signed-off-by: Joyce Ooi --- v2: this patch is added in patch version 2 v3: no change --- drivers

[PATCH v3 03/10] net: eth: altera: fix altera_dmaops declaration

2020-06-04 Thread Ooi, Joyce
From: Dalon Westergreen The declaration of struct altera_dmaops does not have identifier names. Add identifier names to confrom with required coding styles. Signed-off-by: Dalon Westergreen Signed-off-by: Joyce Ooi --- v2: no change v3: no change --- drivers/net/ethernet/altera/altera_tse.h

[PATCH v3 08/10] net: eth: altera: add support for ptp and timestamping

2020-06-04 Thread Ooi, Joyce
From: Dalon Westergreen Add support for the ptp clock used with the tse, and update the driver to support timestamping when enabled. We also enable debugfs entries for the ptp clock to allow some user control and interaction with the ptp clock. Cc: Richard Cochran Signed-off-by: Dalon Westergr

[PATCH v3 10/10] net: eth: altera: update devicetree bindings documentation

2020-06-04 Thread Ooi, Joyce
From: Dalon Westergreen Update devicetree bindings documentation to include msgdma prefetcher and ptp bindings. Cc: Rob Herring Cc: devicet...@vger.kernel.org Signed-off-by: Dalon Westergreen Signed-off-by: Joyce Ooi --- v2: no change v3: no change --- .../devicetree/bindings/net/altera_tse.

[PATCH v3 09/10] net: eth: altera: add msgdma prefetcher

2020-06-04 Thread Ooi, Joyce
From: Dalon Westergreen Add support for the mSGDMA prefetcher. The prefetcher adds support for a linked list of descriptors in system memory. The prefetcher feeds these to the mSGDMA dispatcher. The prefetcher is configured to poll for the next descriptor in the list to be owned by hardware, t

Re: 回复: Re: [RFC PATCH 0/8] dax: Add a dax-rmap tree to support reflink

2020-06-04 Thread Ruan Shiyang
On 2020/4/28 下午2:43, Dave Chinner wrote: On Tue, Apr 28, 2020 at 06:09:47AM +, Ruan, Shiyang wrote: 在 2020/4/27 20:28:36, "Matthew Wilcox" 写道: On Mon, Apr 27, 2020 at 04:47:42PM +0800, Shiyang Ruan wrote: This patchset is a try to resolve the shared 'page cache' problem for fsdax

Re: [PATCH 3/3] drm/bridge: Introduce LT9611 DSI to HDMI bridge

2020-06-04 Thread Laurent Pinchart
Hi Vinod, On Thu, Jun 04, 2020 at 12:55:48PM +0530, Vinod Koul wrote: > On 28-05-20, 04:52, Laurent Pinchart wrote: > > > > +static int lt9611_bridge_attach(struct drm_bridge *bridge, > > > + enum drm_bridge_attach_flags flags) > > > +{ > > > + struct lt9611 *lt9611 = brid

Re: [PATCH] mailbox: mailbox-test: Fix a potential Oops on allocation failure

2020-06-04 Thread Lee Jones
On Wed, 03 Jun 2020, Dan Carpenter wrote: > The callers are expecting NULL on error so if we return an error pointer > it eventually results in an Oops. > > Fixes: 8ea4484d0c2b ("mailbox: Add generic mechanism for testing Mailbox > Controllers") > Signed-off-by: Dan Carpenter > --- > drivers/m

Thank you for your understanding, I wait for your response

2020-06-04 Thread George Olivia
With due respect, I am Mrs. George Olivia; I have decided to donate what I have to you / Motherless babies/Less privileged/Widows' because I am dying and diagnosed for cancer for about 2 years ago. I have been touched by God Almighty to donate from what I have inherited from my late husband to you

[PATCH] mm: Fix pud_alloc_track()

2020-06-04 Thread Joerg Roedel
From: Joerg Roedel The pud_alloc_track() needs to do different checks based on whether __ARCH_HAS_5LEVEL_HACK is defined, like it already does in pud_alloc(). Otherwise it causes boot failures on PowerPC. Provide the correct implementations for both possible settings of __ARCH_HAS_5LEVEL_HACK to

Re: linux-next: fix ups for clashes between akpm and powerpc trees

2020-06-04 Thread Stephen Rothwell
Hi all, On Thu, 4 Jun 2020 16:52:46 +1000 Stephen Rothwell wrote: > > diff --git a/arch/powerpc/include/asm/nohash/32/pgtable.h > b/arch/powerpc/include/asm/nohash/32/pgtable.h > index c188a6f64bcd..1927e1b653f2 100644 > --- a/arch/powerpc/include/asm/nohash/32/pgtable.h > +++ b/arch/powerpc/in

Re: [PATCH v11 2/2] drm/bridge: anx7625: Add anx7625 MIPI DSI/DPI to DP bridge driver

2020-06-04 Thread Xin Ji
On Mon, Jun 01, 2020 at 12:14:09PM +0800, Hsin-Yi Wang wrote: > On Fri, May 15, 2020 at 2:53 PM Xin Ji wrote: > > > + > > +static int anx7625_bridge_attach(struct drm_bridge *bridge) > > Latest drm_bridge api: > > int (*attach)(struct drm_bridge *bridge, > enum drm_bridge_attach_flags flag

[PATCH v12 0/2] Add initial support for slimport anx7625

2020-06-04 Thread Xin Ji
Hi all, The following series add support for the Slimport ANX7625 transmitter, a ultra-low power Full-HD 4K MIPI to DP transmitter designed for portable device. This is the v12 version, any mistakes, please let me know, I will fix it in the next series. Change history: v12: Fix comments from Hs

[PATCH v12 1/2] dt-bindings: drm/bridge: anx7625: MIPI to DP transmitter DT schema

2020-06-04 Thread Xin Ji
anx7625: MIPI to DP transmitter DT schema Signed-off-by: Xin Ji --- .../bindings/display/bridge/analogix,anx7625.yaml | 95 ++ 1 file changed, 95 insertions(+) create mode 100644 Documentation/devicetree/bindings/display/bridge/analogix,anx7625.yaml diff --git a/Document

Re: [PATCH v6 5/5] drivers/tty/serial: add LiteUART driver

2020-06-04 Thread Greg Kroah-Hartman
On Thu, Jun 04, 2020 at 09:16:25AM +0200, Mateusz Holenko wrote: > On Wed, May 27, 2020 at 6:27 PM Mateusz Holenko wrote: > > > > From: Filip Kokosinski > > > > This commit adds driver for the FPGA-based LiteUART serial controller > > from LiteX SoC builder. > > > > The current implementation sup

Re: [PATCH 01/10] x86/mm/numa: Remove uninitialized_var() usage

2020-06-04 Thread Thomas Gleixner
Kees Cook writes: > -#ifdef NODE_NOT_IN_PAGE_FLAGS > - pfn_align = node_map_pfn_alignment(); > - if (pfn_align && pfn_align < PAGES_PER_SECTION) { > - printk(KERN_WARNING "Node alignment %LuMB < min %LuMB, > rejecting NUMA config\n", > -PFN_PHYS(pfn_align)

[PATCH v12 2/2] drm/bridge: anx7625: Add anx7625 MIPI DSI/DPI to DP

2020-06-04 Thread Xin Ji
The ANX7625 is an ultra-low power 4K Mobile HD Transmitter designed for portable device. It converts MIPI DSI/DPI to DisplayPort 1.3 4K. Signed-off-by: Xin Ji --- drivers/gpu/drm/bridge/analogix/Kconfig |9 + drivers/gpu/drm/bridge/analogix/Makefile |1 + drivers/gpu/drm/bridge/analog

Re: [RFC PATCH] panic: fix deadlock in panic()

2020-06-04 Thread Sergey Senozhatsky
On (20/06/03 14:19), Cheng Jian wrote: > A deadlock caused by logbuf_lock occurs when panic: > > a) Panic CPU is running in non-NMI context > b) Panic CPU sends out shutdown IPI via NMI vector > c) One of the CPUs that we bring down via NMI vector holded logbuf_lock > d) P

[PATCH] iommu/mediatek: Use totalram_pages to setup enable_4GB

2020-06-04 Thread Miles Chen
To build this driver as a kernel module, we cannot use the unexported symbol "max_pfn" to setup enable_4GB. Use totalram_pages() instead to setup enable_4GB. Suggested-by: Mike Rapoport Signed-off-by: Miles Chen Cc: David Hildenbrand Cc: Yong Wu Cc: Chao Hao --- drivers/iommu/mtk_iommu.c |

Re: [PATCH 2/9] rcu: Fixup noinstr warnings

2020-06-04 Thread Peter Zijlstra
On Wed, Jun 03, 2020 at 08:34:09PM -0700, Paul E. McKenney wrote: > On Wed, Jun 03, 2020 at 07:13:20PM +0200, Peter Zijlstra wrote: > > On Wed, Jun 03, 2020 at 09:46:00AM -0700, Paul E. McKenney wrote: > > > > @@ -313,7 +313,7 @@ static __always_inline bool rcu_dynticks > > > > { > > > >

Re: [PATCH v6 10/12] mmap locking API: rename mmap_sem to mmap_lock

2020-06-04 Thread youling 257
i build linux next kernel have the kernel/sys.c error. 2020-06-04 13:57 GMT+08:00, Michel Lespinasse : > On Wed, Jun 3, 2020 at 9:35 PM youling 257 wrote: >> I have build error about kernel/sys.c, >> >> kernel/sys.c: In function ‘prctl_set_vma’: >> kernel/sys.c:2392:18: error: >> ‘struct mm_struc

Re: [PATCH v12 2/2] drm/bridge: anx7625: Add anx7625 MIPI DSI/DPI to DP

2020-06-04 Thread Laurent Pinchart
Hello Xin, Thank you for the patch. On Thu, Jun 04, 2020 at 03:58:05PM +0800, Xin Ji wrote: > The ANX7625 is an ultra-low power 4K Mobile HD Transmitter designed > for portable device. It converts MIPI DSI/DPI to DisplayPort 1.3 4K. > > Signed-off-by: Xin Ji > --- > drivers/gpu/drm/bridge/anal

Re: [git pull] drm for 5.8-rc1

2020-06-04 Thread Christian König
Am 03.06.20 um 22:13 schrieb Jason Gunthorpe: On Tue, Jun 02, 2020 at 04:06:32PM +1000, Dave Airlie wrote: Hi Linus, This is the main drm pull request for 5.8-rc1. Highlights: Core DRM had a lot of refactoring around managed drm resources to make drivers simpler. Intel Tigerlake support is on

[PATCH 15/18] drm/amdgpu: use dma-fence annotations for gpu reset code

2020-06-04 Thread Daniel Vetter
To improve coverage also annotate the gpu reset code itself, since that's called from other places than drm/scheduler (which is already annotated). Annotations nests, so this doesn't break anything, and allows easier testing. Cc: linux-me...@vger.kernel.org Cc: linaro-mm-...@lists.linaro.org Cc: l

[PATCH 06/18] drm/vblank: Annotate with dma-fence signalling section

2020-06-04 Thread Daniel Vetter
This is rather overkill since currently all drivers call this from hardirq (or at least timers). But maybe in the future we're going to have thread irq handlers and what not, doesn't hurt to be prepared. Plus this is an easy start for sprinkling these fence annotations into shared code. Cc: linux-

[PATCH 01/18] mm: Track mmu notifiers in fs_reclaim_acquire/release

2020-06-04 Thread Daniel Vetter
fs_reclaim_acquire/release nicely catch recursion issues when allocating GFP_KERNEL memory against shrinkers (which gpu drivers tend to use to keep the excessive caches in check). For mmu notifier recursions we do have lockdep annotations since 23b68395c7c7 ("mm/mmu_notifiers: add a lockdep map for

[PATCH 16/18] Revert "drm/amdgpu: add fbdev suspend/resume on gpu reset"

2020-06-04 Thread Daniel Vetter
This is one from the department of "maybe play lottery if you hit this, karma compensation might work". Or at least lockdep ftw! This reverts commit 565d1941557756a584ac357d945bc374d5fcd1d0. It's not quite as low-risk as the commit message claims, because this grabs console_lock, which might be h

[PATCH 18/18] drm/i915: Annotate dma_fence_work

2020-06-04 Thread Daniel Vetter
i915 does tons of allocations from this worker, which lockdep catches. Also generic infrastructure like this with big potential for how dma_fence or other cross driver contracts work, really should be reviewed on dri-devel. Implementing custom wheels for everything within the driver is a classic c

[PATCH 13/18] drm/amdgpu/dc: Stop dma_resv_lock inversion in commit_tail

2020-06-04 Thread Daniel Vetter
Trying to grab dma_resv_lock while in commit_tail before we've done all the code that leads to the eventual signalling of the vblank event (which can be a dma_fence) is deadlock-y. Don't do that. Here the solution is easy because just grabbing locks to read something races anyway. We don't need to

Re: [git pull] drm for 5.8-rc1

2020-06-04 Thread Christoph Hellwig
On Thu, Jun 04, 2020 at 10:10:21AM +0200, Christian König wrote: > Dave and Daniel explicitly said they want to have this and it is ok as long > as I open code it in the driver and keep it AMD internal. But it fundamentally is broken, and we've been through all the arguments why it is broken, and

[PATCH 17/18] drm/amdgpu: gpu recovery does full modesets

2020-06-04 Thread Daniel Vetter
... I think it's time to stop this little exercise. The lockdep splat, for the record: [ 132.583381] == [ 132.584091] WARNING: possible circular locking dependency detected [ 132.584775] 5.7.0-rc3+ #346 Tainted: GW [ 132.585461] ---

[PATCH 09/18] drm/scheduler: use dma-fence annotations in main thread

2020-06-04 Thread Daniel Vetter
If the scheduler rt thread gets stuck on a mutex that we're holding while waiting for gpu workloads to complete, we have a problem. Add dma-fence annotations so that lockdep can check this for us. I've tried to quite carefully review this, and I think it's at the right spot. But obviosly no exper

[PATCH 14/18] drm/scheduler: use dma-fence annotations in tdr work

2020-06-04 Thread Daniel Vetter
In the face of unpriviledged userspace being able to submit bogus gpu workloads the kernel needs gpu timeout and reset (tdr) to guarantee that dma_fences actually complete. Annotate this worker to make sure we don't have any accidental locking inversions or other problems lurking. Originally this

[PATCH 10/18] drm/amdgpu: use dma-fence annotations in cs_submit()

2020-06-04 Thread Daniel Vetter
This is a bit tricky, since ->notifier_lock is held while calling dma_fence_wait we must ensure that also the read side (i.e. dma_fence_begin_signalling) is on the same side. If we mix this up lockdep complaints, and that's again why we want to have these annotations. A nice side effect of this is

[PATCH 05/18] drm/vkms: Annotate vblank timer

2020-06-04 Thread Daniel Vetter
This is needed to signal the fences from page flips, annotate it accordingly. We need to annotate entire timer callback since if we get stuck anywhere in there, then the timer stops, and hence fences stop. Just annotating the top part that does the vblank handling isn't enough. Cc: linux-me...@vge

[PATCH 11/18] drm/amdgpu: s/GFP_KERNEL/GFP_ATOMIC in scheduler code

2020-06-04 Thread Daniel Vetter
My dma-fence lockdep annotations caught an inversion because we allocate memory where we really shouldn't: kmem_cache_alloc+0x2b/0x6d0 amdgpu_fence_emit+0x30/0x330 [amdgpu] amdgpu_ib_schedule+0x306/0x550 [amdgpu] amdgpu_job_run+0x10f/0x260 [amdgpu] drm_sched

[PATCH 08/18] drm/amdgpu: add dma-fence annotations to atomic commit path

2020-06-04 Thread Daniel Vetter
I need a canary in a ttm-based atomic driver to make sure the dma_fence_begin/end_signalling annotations actually work. Cc: linux-me...@vger.kernel.org Cc: linaro-mm-...@lists.linaro.org Cc: linux-r...@vger.kernel.org Cc: amd-...@lists.freedesktop.org Cc: intel-...@lists.freedesktop.org Cc: Chris

[PATCH 03/18] dma-fence: basic lockdep annotations

2020-06-04 Thread Daniel Vetter
Design is similar to the lockdep annotations for workers, but with some twists: - We use a read-lock for the execution/worker/completion side, so that this explicit annotation can be more liberally sprinkled around. With read locks lockdep isn't going to complain if the read-side isn't neste

[PATCH 07/18] drm/atomic-helper: Add dma-fence annotations

2020-06-04 Thread Daniel Vetter
This is a bit disappointing since we need to split the annotations over all the different parts. I was considering just leaking the critical section into the ->atomic_commit_tail callback of each driver. But that would mean we need to pass the fence_cookie into each driver (there's a total of 13 i

[PATCH 02/18] dma-buf: minor doc touch-ups

2020-06-04 Thread Daniel Vetter
Just some tiny edits: - fix link to struct dma_fence - give slightly more meaningful title - the polling here is about implicit fences, explicit fences (in sync_file or drm_syncobj) also have their own polling Signed-off-by: Daniel Vetter --- drivers/dma-buf/dma-buf.c | 6 +++--- 1 file chan

[PATCH 00/18] dma-fence lockdep annotations, round 2

2020-06-04 Thread Daniel Vetter
Hi all, Still very much early stuff, still very much looking for initial thoughts and maybe some ideas how this could all be rolled out across drivers. Full intro probably best from the RFC cover letter: https://lore.kernel.org/amd-gfx/20200512085944.222637-1-daniel.vet...@ffwll.ch/ Changes sin

[PATCH 04/18] dma-fence: prime lockdep annotations

2020-06-04 Thread Daniel Vetter
Two in one go: - it is allowed to call dma_fence_wait() while holding a dma_resv_lock(). This is fundamental to how eviction works with ttm, so required. - it is allowed to call dma_fence_wait() from memory reclaim contexts, specifically from shrinker callbacks (which i915 does), and from mm

[PATCH 12/18] drm/amdgpu: DC also loves to allocate stuff where it shouldn't

2020-06-04 Thread Daniel Vetter
Not going to bother with a complete&pretty commit message, just offending backtrace: kvmalloc_node+0x47/0x80 dc_create_state+0x1f/0x60 [amdgpu] dc_commit_state+0xcb/0x9b0 [amdgpu] amdgpu_dm_atomic_commit_tail+0xd31/0x2010 [amdgpu] commit_tail+0xa4/0x140 [drm

Re: [PATCH v6 10/12] mmap locking API: rename mmap_sem to mmap_lock

2020-06-04 Thread youling 257
2020-06-04 13:57 GMT+08:00, Michel Lespinasse : > On Wed, Jun 3, 2020 at 9:35 PM youling 257 wrote: >> I have build error about kernel/sys.c, >> >> kernel/sys.c: In function ‘prctl_set_vma’: >> kernel/sys.c:2392:18: error: >> ‘struct mm_struct’ has no member named ‘mmap_sem’; did you mean >> ‘mmap

RE: [PATCH V2 2/3] firmware: imx: add resource management api

2020-06-04 Thread Aisheng Dong
> From: Peng Fan > Sent: Wednesday, June 3, 2020 11:32 AM > > Add resource management API, when we have multiple partition running > together, resources not owned to current partition should not be used. > > Reviewed-by: Leonard Crestez > Signed-off-by: Peng Fan > --- > drivers/firmware/imx/M

Re: [PATCH] shmem, memcg: enable memcg aware shrinker

2020-06-04 Thread Greg Thelen
Yang Shi wrote: > On Sun, May 31, 2020 at 8:22 PM Greg Thelen wrote: >> >> Since v4.19 commit b0dedc49a2da ("mm/vmscan.c: iterate only over charged >> shrinkers during memcg shrink_slab()") a memcg aware shrinker is only >> called when the per-memcg per-node shrinker_map indicates that the >> sh

Re: [PATCH V2] mfd: sprd: Add wakeup capability for PMIC irq

2020-06-04 Thread Chunyan Zhang
Hi Lee, On Wed, 27 May 2020 at 14:21, Chunyan Zhang wrote: > > From: Baolin Wang > > When changing to use suspend-to-idle to save power, the PMIC irq can not > wakeup the system due to lack of wakeup capability, which will cause > the sub-irqs (such as power key) of the PMIC can not wake up the

Acer TravelMate 5735Z: atkbd serio0: Unknown key pressed (translated set 2, code 0x93 on isa0060/serio0)

2020-06-04 Thread Paul Menzel
Dear Linux folks, Using Debian Sid/unstable with Linux 5.6.14 on an (old) Acer TravelMate 5735Z, pressing the WIFI enable/disable function key works, and GNOME even shows the OSD notification. But Linux still logs this key as unknown. [ 1595.795162] atkbd serio0: Unknown key pressed (tr

Re: [PATCH] compiler.h: Move instrumentation_begin()/end() into new header

2020-06-04 Thread Ingo Molnar
* Ingo Molnar wrote: > > * Linus Torvalds wrote: > > > On Mon, Jun 1, 2020 at 6:08 AM Ingo Molnar wrote: > > > > > > include/linux/compiler.h| 53 +++ > > > > I have pulled this, but do we really want to add this to a header file > > that is _so_ core that i

Re: [PATCH] fbdev: geocode: Add the missed pci_disable_device() for gx1fb_map_video_memory()

2020-06-04 Thread Pekka Paalanen
On Wed, 3 Jun 2020 17:25:47 +0800 Chuhong Yuan wrote: > Although gx1fb_probe() has handled the failure of gx1fb_map_video_memory() > partly, it does not call pci_disable_device() as gx1fb_map_video_memory() > calls pci_enable_device(). > Add the missed function call to fix the bug. > > Fixes: 5

Re: linux-next: build failure after merge of the akpm tree

2020-06-04 Thread Stephen Rothwell
Hi all, On Thu, 4 Jun 2020 16:44:42 +1000 Stephen Rothwell wrote: > > Hi all, > > After merging the akpm tree, today's linux-next build (powerpc > allyesconfig) failed like this: > > arch/powerpc/mm/ptdump/ptdump.c: In function 'walk_pagetables': > arch/powerpc/mm/ptdump/ptdump.c:337:25: error

Re: [PATCH] iommu/mediatek: Use totalram_pages to setup enable_4GB

2020-06-04 Thread David Hildenbrand
On 04.06.20 10:01, Miles Chen wrote: > To build this driver as a kernel module, we cannot use > the unexported symbol "max_pfn" to setup enable_4GB. > > Use totalram_pages() instead to setup enable_4GB. > > Suggested-by: Mike Rapoport > Signed-off-by: Miles Chen > Cc: David Hildenbrand > Cc: Y

  1   2   3   4   5   6   7   8   9   10   >