Re: [git pull] drm fixes for 5.3-rc6

2019-08-23 Thread pr-tracker-bot
The pull request you sent on Fri, 23 Aug 2019 12:07:12 +1000: > git://anongit.freedesktop.org/drm/drm tags/drm-fixes-2019-08-23 has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/1374a22e0641783a5fa25a18f23d9d7a91c38add Thank you! -- Deet-doot-dot, I am a bot. https://k

Re: [PATCH v2 7/8] drm/panfrost: Rework page table flushing and runtime PM interaction

2019-08-23 Thread Rob Herring
On Fri, Aug 23, 2019 at 11:16 AM Robin Murphy wrote: > > On 23/08/2019 16:57, Rob Herring wrote: > > On Fri, Aug 23, 2019 at 10:44 AM Robin Murphy wrote: > >> > >> On 23/08/2019 16:05, Steven Price wrote: > >>> On 23/08/2019 12:11, Robin Murphy wrote: > On 23/08/2019 03:12, Rob Herring wrote

Re: [PATCH v14 01/18] kunit: test: add KUnit test runner core

2019-08-23 Thread Brendan Higgins
On Fri, Aug 23, 2019 at 8:33 AM shuah wrote: > > Hi Brendan, > > On 8/20/19 5:20 PM, Brendan Higgins wrote: > > Add core facilities for defining unit tests; this provides a common way > > to define test cases, functions that execute code which is under test > > and determine whether the code under

Re: [PATCH v14 09/18] kunit: test: add support for test abort

2019-08-23 Thread Brendan Higgins
On Fri, Aug 23, 2019 at 8:36 AM shuah wrote: > > Hi Brendan, > > On 8/20/19 5:20 PM, Brendan Higgins wrote: > > Add support for aborting/bailing out of test cases, which is needed for > > implementing assertions. > > > > An assertion is like an expectation, but bails out of the test case > > early

Re: [PATCH v14 01/18] kunit: test: add KUnit test runner core

2019-08-23 Thread shuah
On 8/23/19 10:48 AM, Brendan Higgins wrote: On Fri, Aug 23, 2019 at 8:33 AM shuah wrote: Hi Brendan, On 8/20/19 5:20 PM, Brendan Higgins wrote: Add core facilities for defining unit tests; this provides a common way to define test cases, functions that execute code which is under test and de

Re: [PATCH v14 09/18] kunit: test: add support for test abort

2019-08-23 Thread shuah
On 8/23/19 10:56 AM, Brendan Higgins wrote: On Fri, Aug 23, 2019 at 8:36 AM shuah wrote: Hi Brendan, On 8/20/19 5:20 PM, Brendan Higgins wrote: Add support for aborting/bailing out of test cases, which is needed for implementing assertions. An assertion is like an expectation, but bails out

Re: [PATCH v14 01/18] kunit: test: add KUnit test runner core

2019-08-23 Thread Brendan Higgins
On Fri, Aug 23, 2019 at 10:05 AM shuah wrote: > > On 8/23/19 10:48 AM, Brendan Higgins wrote: > > On Fri, Aug 23, 2019 at 8:33 AM shuah wrote: > >> > >> Hi Brendan, > >> > >> On 8/20/19 5:20 PM, Brendan Higgins wrote: > >>> Add core facilities for defining unit tests; this provides a common way >

Re: [PATCH v14 09/18] kunit: test: add support for test abort

2019-08-23 Thread Brendan Higgins
On Fri, Aug 23, 2019 at 10:07 AM shuah wrote: > > On 8/23/19 10:56 AM, Brendan Higgins wrote: > > On Fri, Aug 23, 2019 at 8:36 AM shuah wrote: > >> > >> Hi Brendan, > >> > >> On 8/20/19 5:20 PM, Brendan Higgins wrote: > >>> Add support for aborting/bailing out of test cases, which is needed for >

Re: [PATCH v14 01/18] kunit: test: add KUnit test runner core

2019-08-23 Thread shuah
On 8/23/19 11:27 AM, Brendan Higgins wrote: On Fri, Aug 23, 2019 at 10:05 AM shuah wrote: On 8/23/19 10:48 AM, Brendan Higgins wrote: On Fri, Aug 23, 2019 at 8:33 AM shuah wrote: Hi Brendan, On 8/20/19 5:20 PM, Brendan Higgins wrote: Add core facilities for defining unit tests; this prov

Re: [PATCH v14 01/18] kunit: test: add KUnit test runner core

2019-08-23 Thread Brendan Higgins
On Fri, Aug 23, 2019 at 10:34 AM shuah wrote: > > On 8/23/19 11:27 AM, Brendan Higgins wrote: > > On Fri, Aug 23, 2019 at 10:05 AM shuah wrote: > >> > >> On 8/23/19 10:48 AM, Brendan Higgins wrote: > >>> On Fri, Aug 23, 2019 at 8:33 AM shuah wrote: > > Hi Brendan, > > On 8/20

Re: [PATCH v3] drm/panfrost: Add errata descriptions from kbase

2019-08-23 Thread Rob Herring
On Fri, Aug 23, 2019 at 10:52 AM Alyssa Rosenzweig wrote: > > While newer kbase include only the numbers of errata, older kbase > releases included one-line descriptions for each errata, which is useful > for those working on the driver. Import these descriptions. Most are > from kbase verbatim; a

Re: [PATCH v14 01/18] kunit: test: add KUnit test runner core

2019-08-23 Thread shuah
On 8/23/19 11:54 AM, Brendan Higgins wrote: On Fri, Aug 23, 2019 at 10:34 AM shuah wrote: On 8/23/19 11:27 AM, Brendan Higgins wrote: On Fri, Aug 23, 2019 at 10:05 AM shuah wrote: On 8/23/19 10:48 AM, Brendan Higgins wrote: On Fri, Aug 23, 2019 at 8:33 AM shuah wrote: Hi Brendan, On 8

Re: [PATCH] drm/drm_connector: add additional aspect ratio values

2019-08-23 Thread Harry Wentland
On 2019-08-22 5:50 p.m., Wayne Lin wrote: > For HDMI2.0 CTS item - HF1-35, it verifies if the source generates > video timing "64:27" video format correctly. > > eg: (vic-76) 1920x1080p@60Hz,24bpp > > This patch add on "64:27" and "256:135" to drm_aspect_ratio_enum_list. > Thereafter, one can spe

Re: [PATCH] drm/drm_connector: add additional aspect ratio values

2019-08-23 Thread Ville Syrjälä
On Thu, Aug 22, 2019 at 05:50:02PM -0400, Wayne Lin wrote: > For HDMI2.0 CTS item - HF1-35, it verifies if the source generates > video timing "64:27" video format correctly. > > eg: (vic-76) 1920x1080p@60Hz,24bpp > > This patch add on "64:27" and "256:135" to drm_aspect_ratio_enum_list. > Therea

Re: [PATCH 1/3] drm/vc4/vc4_hdmi: fill in connector info

2019-08-23 Thread Eric Anholt
Hans Verkuil writes: > From: Dariusz Marcinkiewicz > > Fill in the connector info, allowing userspace to associate > the CEC device with the drm connector. Acked-by: Eric Anholt signature.asc Description: PGP signature ___ dri-devel mailing list dr

Re: [PATCH] drm/syncobj: Add documentation for timeline syncobj

2019-08-23 Thread Jason Ekstrand
On Thu, Aug 22, 2019 at 5:28 PM Lionel Landwerlin < lionel.g.landwer...@intel.com> wrote: > On 22/08/2019 21:24, Jason Ekstrand wrote: > > On Thu, Aug 22, 2019 at 9:55 AM Lionel Landwerlin < > lionel.g.landwer...@intel.com> wrote: > >> We've added a set of new APIs to manipulate syncobjs holding t

Re: [PATCH v14 01/18] kunit: test: add KUnit test runner core

2019-08-23 Thread Brendan Higgins
On Fri, Aug 23, 2019 at 11:32 AM shuah wrote: > > On 8/23/19 11:54 AM, Brendan Higgins wrote: > > On Fri, Aug 23, 2019 at 10:34 AM shuah wrote: > >> > >> On 8/23/19 11:27 AM, Brendan Higgins wrote: > >>> On Fri, Aug 23, 2019 at 10:05 AM shuah wrote: > > On 8/23/19 10:48 AM, Brendan Hig

Re: [PATCH 3/3] drm/bridge/adv7511: enable CEC connector info

2019-08-23 Thread Laurent Pinchart
Hi Hans, Thank you for the patch. On Fri, Aug 23, 2019 at 01:24:27PM +0200, Hans Verkuil wrote: > Set the connector info to help userspace associate the CEC adapter > with the HDMI connector. > > This required that the cec initialization and unregistering the > CEC adapter takes place in the bri

Re: [PATCH 3/3] drm/bridge/adv7511: enable CEC connector info

2019-08-23 Thread Laurent Pinchart
(And CC'ing Andrzej Hajda and Neil Armstrong as the new DRM bridge maintainers, as well as Boris Brezillon, to make sure they're aware of the problem) I would really appreciate if we could delay merging this series and other similar changes until we find a proper solution. On Fri, Aug 23, 2019 at

Re: [PATCH v14 01/18] kunit: test: add KUnit test runner core

2019-08-23 Thread shuah
On 8/23/19 12:56 PM, Brendan Higgins wrote: On Fri, Aug 23, 2019 at 11:32 AM shuah wrote: On 8/23/19 11:54 AM, Brendan Higgins wrote: On Fri, Aug 23, 2019 at 10:34 AM shuah wrote: On 8/23/19 11:27 AM, Brendan Higgins wrote: On Fri, Aug 23, 2019 at 10:05 AM shuah wrote: On 8/23/19 10:48

Re: [PATCH v14 01/18] kunit: test: add KUnit test runner core

2019-08-23 Thread Brendan Higgins
On Fri, Aug 23, 2019 at 12:04 PM shuah wrote: > > On 8/23/19 12:56 PM, Brendan Higgins wrote: > > On Fri, Aug 23, 2019 at 11:32 AM shuah wrote: > >> > >> On 8/23/19 11:54 AM, Brendan Higgins wrote: > >>> On Fri, Aug 23, 2019 at 10:34 AM shuah wrote: > > On 8/23/19 11:27 AM, Brendan Hig

[PATCH v2 4/4] drm/bridge: panel: Infer connector type from panel by default

2019-08-23 Thread Laurent Pinchart
The drm panel bridge creates a connector using a connector type explicit passed by the display controller or bridge driver that instantiates the panel bridge. Now that drm_panel reports its connector type, we can use it to avoid passing an explicit (and often incorrect) connector type to drm_panel_

[PATCH v2 2/4] drm/panel: Initialise panel dev and funcs through drm_panel_init()

2019-08-23 Thread Laurent Pinchart
Instead of requiring all drivers to set the dev and funcs fields of drm_panel manually after calling drm_panel_init(), pass the data as arguments to the function. This simplifies the panel drivers, and will help future refactoring when adding new arguments to drm_panel_init(). The panel drivers ha

[PATCH v2 0/4] drm/panel: Extend panels to report their types

2019-08-23 Thread Laurent Pinchart
Hello, This series is the second version of a previously unnamed series that contained [PATCH 1/2] drm/panel: Add and fill drm_panel type field [PATCH 2/2] drm/bridge: panel: Use drm_panel.type instead of explicit connector_type The purpose of the change is to allow panels to report their type,

[PATCH v2 3/4] drm/panel: Add and fill drm_panel type field

2019-08-23 Thread Laurent Pinchart
Add a type field to the drm_panel structure to report the panel type, using DRM_MODE_CONNECTOR_* macros (the values that make sense are LVDS, eDP, DSI and DPI). This will be used to initialise the corresponding connector type. Update all panel drivers accordingly. The panel-simple driver only spec

[PATCH v2 1/4] drm/panel: Add missing drm_panel_init() in panel drivers

2019-08-23 Thread Laurent Pinchart
Panels must be initialised with drm_panel_init(). Add the missing function call in the panel-raspberrypi-touchscreen.c and panel-sitronix-st7789v.c drivers. Signed-off-by: Laurent Pinchart --- drivers/gpu/drm/panel/panel-raspberrypi-touchscreen.c | 1 + drivers/gpu/drm/panel/panel-sitronix-st778

Re: [PATCH] drm: Add LTTPR defines for DP 1.4

2019-08-23 Thread Siqueira, Rodrigo
Hi Harry, Thanks for your feedback, I'll prepare a V2. On 08/23, Wentland, Harry wrote: > On 2019-08-22 6:46 p.m., Siqueira, Rodrigo wrote: > > DP 1.4 specification defines Link Training Tunable PHY Repeater (LTTPR) > > which is required to add support for systems with Thunderbolt or other > > re

Re: [PATCH v14 01/18] kunit: test: add KUnit test runner core

2019-08-23 Thread shuah
On 8/23/19 1:20 PM, Brendan Higgins wrote: On Fri, Aug 23, 2019 at 12:04 PM shuah wrote: On 8/23/19 12:56 PM, Brendan Higgins wrote: On Fri, Aug 23, 2019 at 11:32 AM shuah wrote: On 8/23/19 11:54 AM, Brendan Higgins wrote: On Fri, Aug 23, 2019 at 10:34 AM shuah wrote: On 8/23/19 11:27

Re: [PATCH v2 1/2] drm/i915: Call dma_set_max_seg_size() in i915_ggtt_probe_hw()

2019-08-23 Thread Chris Wilson
Quoting Lyude Paul (2019-08-22 21:31:26) > Currently, we don't call dma_set_max_seg_size() for i915 because we > intentionally do not limit the segment length that the device supports. > However, this results in a warning being emitted if we try to map > anything larger than SZ_64K on a kernel with

Re: [PATCH v4 0/5] MST DSC support in drm-mst

2019-08-23 Thread Francis, David
Adding DSC functionality to drm_dp_mst_atomic_check() is a good idea. However, until amdgpu switches over to that system, I wouldn't be able to test those changes. Making that switch is on our TODO list, and it would fix a number of problems with our current MST implementation, but it's going to be

[pull] amdgpu drm-next-5.4

2019-08-23 Thread Alex Deucher
Hi Dave, Daniel, A few new bits for 5.4, mostly ongoing new asic support. This is pretty much it for 5.4. We have a few patches for display enablement of renoir which should be out next week (just wrapping up IP review). The following changes since commit e7f7287bf5f746d29f3607178851246a005dd39

[PATCH v5 3/5] drm/dp_mst: Add MST support to DP DPCD R/W functions

2019-08-23 Thread David Francis
Instead of having drm_dp_dpcd_read/write and drm_dp_mst_dpcd_read/write as entry points into the aux code, have drm_dp_dpcd_read/write handle both. This means that DRM drivers can make MST DPCD read/writes. v2: Fix spacing v3: Dump dpcd access on MST read/writes Reviewed-by: Lyude Paul Signed-o

[PATCH v5 0/5] DSC MST support in DRM

2019-08-23 Thread David Francis
Add necessary support for MST DSC. (Display Stream Compression over Multi-Stream Transport) v4: Split patchset and rebase onto drm-tip v5: Clean up formatting, make new quirk David Francis (5): drm/dp_mst: Add PBN calculation for DSC modes drm/dp_mst: Parse FEC capability on MST ports drm/d

[PATCH v5 1/5] drm/dp_mst: Add PBN calculation for DSC modes

2019-08-23 Thread David Francis
With DSC, bpp can be fractional in multiples of 1/16. Change drm_dp_calc_pbn_mode to reflect this, adding a new parameter bool dsc. When this parameter is true, treat the bpp parameter as having units not of bits per pixel, but 1/16 of a bit per pixel v2: Don't add separate function for this Cc:

[PATCH v5 2/5] drm/dp_mst: Parse FEC capability on MST ports

2019-08-23 Thread David Francis
As of DP1.4, ENUM_PATH_RESOURCES returns a bit indicating if FEC can be supported up to that point in the MST network. The bit is the first byte of the ENUM_PATH_RESOURCES ack reply, bottom-most bit (refer to section 2.11.9.4 of DP standard, v1.4) That value is needed for FEC and DSC support Sto

[PATCH v5 5/5] drm/dp_mst: Add helper for finding right aux to enable/query DSC

2019-08-23 Thread David Francis
Add drm_dp_mst_dsc_aux_for_port. To enable DSC, the DSC_ENABLED register might have to be written on the leaf port's DPCD, its parent's DPCD, or the MST manager's DPCD. This function finds the correct aux for the job. As part of this, add drm_dp_mst_is_virtual_dpcd. Virtual DPCD is a DP feature ne

[PATCH v5 4/5] drm/dp_mst: Fill branch->num_ports

2019-08-23 Thread David Francis
This field on drm_dp_mst_branch was never filled It is initialized to zero when the port is kzallocced. When a port is added to the list, increment num_ports, and when a port is removed from the list, decrement num_ports. v2: remember to decrement on port removal v3: don't explicitly init to 0 S

[PATCH v4] drm/i915: Call dma_set_max_seg_size() in i915_driver_hw_probe()

2019-08-23 Thread Lyude Paul
Currently, we don't call dma_set_max_seg_size() for i915 because we intentionally do not limit the segment length that the device supports. However, this results in a warning being emitted if we try to map anything larger than SZ_64K on a kernel with CONFIG_DMA_API_DEBUG_SG enabled: [7.751926]

[Bug 204181] NULL pointer dereference regression in amdgpu

2019-08-23 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=204181 Tom Seewald (tseew...@gmail.com) changed: What|Removed |Added CC||tseew...@gmail.com ---

Re: [PATCH v5 1/5] drm/dp_mst: Add PBN calculation for DSC modes

2019-08-23 Thread Lyude Paul
On Fri, 2019-08-23 at 16:28 -0400, David Francis wrote: > With DSC, bpp can be fractional in multiples of 1/16. > > Change drm_dp_calc_pbn_mode to reflect this, adding a new > parameter bool dsc. When this parameter is true, treat the > bpp parameter as having units not of bits per pixel, but > 1/

[PATCH] drm/ingenic: Hardcode panel type to DPI

2019-08-23 Thread Laurent Pinchart
The ingenic driver supports DPI panels only at the moment, so hardcode their type to DPI instead of Unknown. Signed-off-by: Laurent Pinchart --- Paul, as the driver has been merged in v5.3-rc1, this is a candidate for a v5.3 fix. Keeping the connector type as unknown could cause a userspace depen

[PATCH 1/2] mm/hmm: hmm_range_fault() NULL pointer bug

2019-08-23 Thread Ralph Campbell
Although hmm_range_fault() calls find_vma() to make sure that a vma exists before calling walk_page_range(), hmm_vma_walk_hole() can still be called with walk->vma == NULL if the start and end address are not contained within the vma range. hmm_range_fault() /* calls find_vma() but no range check

[PATCH 2/2] mm/hmm: hmm_range_fault() infinite loop

2019-08-23 Thread Ralph Campbell
Normally, callers to handle_mm_fault() are supposed to check the vma->vm_flags first. hmm_range_fault() checks for VM_READ but doesn't check for VM_WRITE if the caller requests a page to be faulted in with write permission (via the hmm_range.pfns[] value). If the vma is write protected, this can re

[PATCH 0/2] mm/hmm: two bug fixes for hmm_range_fault()

2019-08-23 Thread Ralph Campbell
I have been working on converting Jerome's hmm_dummy driver and self tests into a stand-alone set of tests to be included in tools/testing/selftests/vm and came across these two bug fixes in the process. The tests aren't quite ready to be posted as a patch. I'm posting the fixes now since I thought

[PATCH v8 2/5] dma-buf: heaps: Add heap helpers

2019-08-23 Thread John Stultz
Add generic helper dmabuf ops for dma heaps, so we can reduce the amount of duplicative code for the exported dmabufs. This code is an evolution of the Android ION implementation, so thanks to its original authors and maintainters: Rebecca Schultz Zavin, Colin Cross, Laura Abbott, and others! C

[PATCH v8 0/5] DMA-BUF Heaps (destaging ION)

2019-08-23 Thread John Stultz
Here is yet another pass at the dma-buf heaps patchset Andrew and I have been working on which tries to destage a fair chunk of ION functionality. The patchset implements per-heap devices which can be opened directly and then an ioctl is used to allocate a dmabuf from the heap. The interface is s

[PATCH v8 1/5] dma-buf: Add dma-buf heaps framework

2019-08-23 Thread John Stultz
From: "Andrew F. Davis" This framework allows a unified userspace interface for dma-buf exporters, allowing userland to allocate specific types of memory for use in dma-buf sharing. Each heap is given its own device node, which a user can allocate a dma-buf fd from using the DMA_HEAP_IOC_ALLOC.

[PATCH v8 3/5] dma-buf: heaps: Add system heap to dmabuf heaps

2019-08-23 Thread John Stultz
This patch adds system heap to the dma-buf heaps framework. This allows applications to get a page-allocator backed dma-buf for non-contiguous memory. This code is an evolution of the Android ION implementation, so thanks to its original authors and maintainters: Rebecca Schultz Zavin, Colin Cr

[PATCH v8 4/5] dma-buf: heaps: Add CMA heap to dmabuf heaps

2019-08-23 Thread John Stultz
This adds a CMA heap, which allows userspace to allocate a dma-buf of contiguous memory out of a CMA region. This code is an evolution of the Android ION implementation, so thanks to its original author and maintainters: Benjamin Gaignard, Laura Abbott, and others! Cc: Laura Abbott Cc: Benjami

[PATCH v8 5/5] kselftests: Add dma-heap test

2019-08-23 Thread John Stultz
Add very trivial allocation and import test for dma-heaps, utilizing the vgem driver as a test importer. A good chunk of this code taken from: tools/testing/selftests/android/ion/ionmap_test.c Originally by Laura Abbott Cc: Benjamin Gaignard Cc: Sumit Semwal Cc: Liam Mark Cc: Pratik Patel

[Bug 204611] amdgpu error scheduling IBs when waking from sleep

2019-08-23 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=204611 tones...@hotmail.com changed: What|Removed |Added Regression|No |Yes -- You are receiving this mai

Re: [PATCH v5 1/5] drm/dp_mst: Add PBN calculation for DSC modes

2019-08-23 Thread Manasi Navare
On Fri, Aug 23, 2019 at 04:28:05PM -0400, David Francis wrote: > With DSC, bpp can be fractional in multiples of 1/16. > > Change drm_dp_calc_pbn_mode to reflect this, adding a new > parameter bool dsc. When this parameter is true, treat the > bpp parameter as having units not of bits per pixel, b

[PATCH v15 01/18] kunit: test: add KUnit test runner core

2019-08-23 Thread Brendan Higgins
Add core facilities for defining unit tests; this provides a common way to define test cases, functions that execute code which is under test and determine whether the code under test behaves as expected; this also provides a way to group together related test cases in test suites (here we call the

[PATCH v15 00/18] kunit: introduce KUnit, the Linux kernel unit testing framework

2019-08-23 Thread Brendan Higgins
## TL;DR This revision addresses comments from Shuah by fixing a couple checkpatch warnings and fixing some comment readability issues. No API or major structual changes have been made since v13. ## Background This patch set proposes KUnit, a lightweight unit testing and mocking framework for th

[PATCH v15 05/18] kunit: test: add the concept of expectations

2019-08-23 Thread Brendan Higgins
Add support for expectations, which allow properties to be specified and then verified in tests. Signed-off-by: Brendan Higgins Reviewed-by: Greg Kroah-Hartman Reviewed-by: Logan Gunthorpe Reviewed-by: Stephen Boyd --- include/kunit/test.h | 836 +++ ku

[PATCH v15 02/18] kunit: test: add test resource management API

2019-08-23 Thread Brendan Higgins
Create a common API for test managed resources like memory and test objects. A lot of times a test will want to set up infrastructure to be used in test cases; this could be anything from just wanting to allocate some memory to setting up a driver stack; this defines facilities for creating "test r

[PATCH v15 06/18] kbuild: enable building KUnit

2019-08-23 Thread Brendan Higgins
KUnit is a new unit testing framework for the kernel and when used is built into the kernel as a part of it. Add KUnit to the root Kconfig and Makefile to allow it to be actually built. Signed-off-by: Brendan Higgins Acked-by: Masahiro Yamada Cc: Michal Marek Reviewed-by: Greg Kroah-Hartman Re

[PATCH v15 04/18] kunit: test: add assertion printing library

2019-08-23 Thread Brendan Higgins
Add `struct kunit_assert` and friends which provide a structured way to capture data from an expectation or an assertion (introduced later in the series) so that it may be printed out in the event of a failure. Signed-off-by: Brendan Higgins Reviewed-by: Stephen Boyd --- include/kunit/assert.h

[PATCH v15 03/18] kunit: test: add string_stream a std::stream like string builder

2019-08-23 Thread Brendan Higgins
A number of test features need to do pretty complicated string printing where it may not be possible to rely on a single preallocated string with parameters. So provide a library for constructing the string as you go similar to C++'s std::string. string_stream is really just a string builder, noth

[PATCH v15 08/18] objtool: add kunit_try_catch_throw to the noreturn list

2019-08-23 Thread Brendan Higgins
Fix the following warning seen on GCC 7.3: kunit/test-test.o: warning: objtool: kunit_test_unsuccessful_try() falls through to next function kunit_test_catch() kunit_try_catch_throw is a function added in the following patch in this series; it allows KUnit, a unit testing framework for the kern

[PATCH v15 18/18] MAINTAINERS: add proc sysctl KUnit test to PROC SYSCTL section

2019-08-23 Thread Brendan Higgins
Add entry for the new proc sysctl KUnit test to the PROC SYSCTL section, and add Iurii as a maintainer. Signed-off-by: Brendan Higgins Cc: Iurii Zaikin Reviewed-by: Greg Kroah-Hartman Reviewed-by: Logan Gunthorpe Acked-by: Luis Chamberlain --- MAINTAINERS | 2 ++ 1 file changed, 2 insertions

[PATCH v15 15/18] Documentation: kunit: add documentation for KUnit

2019-08-23 Thread Brendan Higgins
Add documentation for KUnit, the Linux kernel unit testing framework. - Add intro and usage guide for KUnit - Add API reference Signed-off-by: Felix Guo Signed-off-by: Brendan Higgins Cc: Jonathan Corbet Reviewed-by: Greg Kroah-Hartman Reviewed-by: Logan Gunthorpe Reviewed-by: Stephen Boyd -

[PATCH v15 11/18] kunit: test: add the concept of assertions

2019-08-23 Thread Brendan Higgins
Add support for assertions which are like expectations except the test terminates if the assertion is not satisfied. The idea with assertions is that you use them to state all the preconditions for your test. Logically speaking, these are the premises of the test case, so if a premise isn't true,

[PATCH v15 10/18] kunit: test: add tests for kunit test abort

2019-08-23 Thread Brendan Higgins
Add KUnit tests for the KUnit test abort mechanism (see preceding commit). Add tests both for general try catch mechanism as well as non-architecture specific mechanism. Signed-off-by: Brendan Higgins Reviewed-by: Greg Kroah-Hartman Reviewed-by: Logan Gunthorpe Reviewed-by: Stephen Boyd --- k

[PATCH v15 16/18] MAINTAINERS: add entry for KUnit the unit testing framework

2019-08-23 Thread Brendan Higgins
Add myself as maintainer of KUnit, the Linux kernel's unit testing framework. Signed-off-by: Brendan Higgins Reviewed-by: Greg Kroah-Hartman Reviewed-by: Logan Gunthorpe Reviewed-by: Stephen Boyd --- MAINTAINERS | 11 +++ 1 file changed, 11 insertions(+) diff --git a/MAINTAINERS b/MA

[PATCH v15 09/18] kunit: test: add support for test abort

2019-08-23 Thread Brendan Higgins
Add support for aborting/bailing out of test cases, which is needed for implementing assertions. An assertion is like an expectation, but bails out of the test case early if the assertion is not met. The idea with assertions is that you use them to state all the preconditions for your test. Logica

[PATCH v15 17/18] kernel/sysctl-test: Add null pointer test for sysctl.c:proc_dointvec()

2019-08-23 Thread Brendan Higgins
From: Iurii Zaikin KUnit tests for initialized data behavior of proc_dointvec that is explicitly checked in the code. Includes basic parsing tests including int min/max overflow. Signed-off-by: Iurii Zaikin Signed-off-by: Brendan Higgins Reviewed-by: Greg Kroah-Hartman Reviewed-by: Logan Gunt

[PATCH v15 12/18] kunit: test: add tests for KUnit managed resources

2019-08-23 Thread Brendan Higgins
From: Avinash Kondareddy Add unit tests for KUnit managed resources. KUnit managed resources (struct kunit_resource) are resources that are automatically cleaned up at the end of a KUnit test, similar to the concept of devm_* managed resources. Signed-off-by: Avinash Kondareddy Signed-off-by: B

[PATCH v15 13/18] kunit: tool: add Python wrappers for running KUnit tests

2019-08-23 Thread Brendan Higgins
From: Felix Guo The ultimate goal is to create minimal isolated test binaries; in the meantime we are using UML to provide the infrastructure to run tests, so define an abstract way to configure and run tests that allow us to change the context in which tests are built without affecting the user.

[PATCH v15 14/18] kunit: defconfig: add defconfigs for building KUnit tests

2019-08-23 Thread Brendan Higgins
Add defconfig for UML and a fragment that can be used to configure other architectures for building KUnit tests. Add option to kunit_tool to use a defconfig to create the kunitconfig. Signed-off-by: Brendan Higgins Reviewed-by: Greg Kroah-Hartman Reviewed-by: Logan Gunthorpe Reviewed-by: Stephe

[PATCH v15 07/18] kunit: test: add initial tests

2019-08-23 Thread Brendan Higgins
Add a test for string stream along with a simpler example. Signed-off-by: Brendan Higgins Reviewed-by: Greg Kroah-Hartman Reviewed-by: Logan Gunthorpe Reviewed-by: Stephen Boyd --- kunit/Kconfig | 21 + kunit/Makefile | 4 ++ kunit/example-test.c | 88 +

Re: next/master build: 218 builds: 4 failed, 214 passed, 10 errors, 786 warnings (next-20190823)

2019-08-23 Thread Stephen Rothwell
Hi all, On Fri, 23 Aug 2019 17:00:39 -0700 (PDT) "kernelci.org bot" wrote: > > 2drivers/gpu/drm/mediatek/mtk_drm_drv.c:291:8: error: implicit > declaration of function 'dma_set_max_seg_size'; did you mean > 'drm_rect_adjust_size'? [-Werror=implicit-function-declaration] > 2driv

Re: next/master build: 218 builds: 4 failed, 214 passed, 10 errors, 786 warnings (next-20190823)

2019-08-23 Thread Dave Airlie
On Sat, 24 Aug 2019 at 13:53, Stephen Rothwell wrote: > > Hi all, > > On Fri, 23 Aug 2019 17:00:39 -0700 (PDT) "kernelci.org bot" > wrote: > > > > 2drivers/gpu/drm/mediatek/mtk_drm_drv.c:291:8: error: implicit > > declaration of function 'dma_set_max_seg_size'; did you mean > > 'drm_re

Re: [LKP] [drm/mgag200] 90f479ae51: vm-scalability.median -18.8% regression

2019-08-23 Thread Feng Tang
Hi Thomas, On Thu, Aug 22, 2019 at 07:25:11PM +0200, Thomas Zimmermann wrote: > Hi > > I was traveling and could reply earlier. Sorry for taking so long. No problem! I guessed so :) > > Am 13.08.19 um 11:36 schrieb Feng Tang: > > Hi Thomas, > > > > On Mon, Aug 12, 2019 at 03:25:45PM +0800, F

[git pull] drm fixes for 5.3-rc6 (the second coming)

2019-08-23 Thread Dave Airlie
Hey Linus, Although the tree built for me fine on arm here, it appears either header cleanups in next or some kconfig combo it breaks, so this contains a fix to mediatek to include dma-mapping.h explicitly. There was also one nouveau fix that came in late that I was going to leave until next week

Re: next/master build: 218 builds: 4 failed, 214 passed, 10 errors, 786 warnings (next-20190823)

2019-08-23 Thread Stephen Rothwell
Hi Dave, On Sat, 24 Aug 2019 15:06:07 +1000 Dave Airlie wrote: > > I'll add the include anyways and send to Linus, Thanks. -- Cheers, Stephen Rothwell pgpY5ky1k5YC6.pgp Description: OpenPGP digital signature ___ dri-devel mailing list dri-devel@lis

<    1   2