linux-next: build failure after merge of the tip tree

2020-08-02 Thread Stephen Rothwell
Hi all, After merging the tip tree, today's linux-next build (x86_64 allmodconfig) failed like this: ERROR: modpost: "sched_setscheduler" [drivers/gpu/drm/drm.ko] undefined! Caused by commit 616d91b68cd5 ("sched: Remove sched_setscheduler*() EXPORTs") interacting with commit 5e6c2b4f9161

[PATCH v4 18/23] device-dax: Add dis-contiguous resource support

2020-08-02 Thread Dan Williams
Break the requirement that device-dax instances are physically contiguous. With this constraint removed it allows fragmented available capacity to be fully allocated. This capability is useful to mitigate the "noisy neighbor" problem with memory-side-cache management for virtual machines, or any

[PATCH v4 14/23] drivers/base: Make device_find_child_by_name() compatible with sysfs inputs

2020-08-02 Thread Dan Williams
Use sysfs_streq() in device_find_child_by_name() to allow it to use a sysfs input string that might contain a trailing newline. The other "device by name" interfaces, {bus,driver,class}_find_device_by_name(), already account for sysfs strings. Cc: "Rafael J. Wysocki" Reviewed-by: Greg

[PATCH v4 22/23] dax/hmem: Introduce dax_hmem.region_idle parameter

2020-08-02 Thread Dan Williams
From: Joao Martins Introduce a new module parameter for dax_hmem which initializes all region devices as free, rather than allocating a pagemap for the region by default. All hmem devices created with dax_hmem.region_idle=1 will have full available size for creating dynamic dax devices.

[PATCH v4 16/23] mm/memremap_pages: Convert to 'struct range'

2020-08-02 Thread Dan Williams
The 'struct resource' in 'struct dev_pagemap' is only used for holding resource span information. The other fields, 'name', 'flags', 'desc', 'parent', 'sibling', and 'child' are all unused wasted space. This is in preparation for introducing a multi-range extension of devm_memremap_pages(). The

[PATCH v4 21/23] device-dax: Add an 'align' attribute

2020-08-02 Thread Dan Williams
From: Joao Martins Introduce a device align attribute. While doing so, rename the region align attribute to be more explicitly named as so, but keep it named as @align to retain the API for tools like daxctl. Changes on align may not always be valid, when say certain mappings were created with

[PATCH v4 15/23] device-dax: Add resize support

2020-08-02 Thread Dan Williams
Make the device-dax 'size' attribute writable to allow capacity to be split between multiple instances in a region. The intended consumers of this capability are users that want to split a scarce memory resource between device-dax and System-RAM access, or users that want to have multiple security

[PATCH v4 20/23] device-dax: Make align a per-device property

2020-08-02 Thread Dan Williams
From: Joao Martins Introduce @align to struct dev_dax. When creating a new device, we still initialize to the default dax_region @align. Child devices belonging to a region may wish to keep a different alignment property instead of a global region-defined one. Signed-off-by: Joao Martins

[PATCH v4 23/23] device-dax: Add a range mapping allocation attribute

2020-08-02 Thread Dan Williams
From: Joao Martins Add a sysfs attribute which denotes a range from the dax region to be allocated. It's an write only @mapping sysfs attribute in the format of '-' to allocate a range. @start and @end use hexadecimal values and the @pgoff is implicitly ordered wrt to previous writes to @mapping

[PATCH v4 19/23] device-dax: Introduce 'mapping' devices

2020-08-02 Thread Dan Williams
In support of interrogating the physical address layout of a device with dis-contiguous ranges, introduce a sysfs directory with 'start', 'end', and 'page_offset' attributes. The alternative is trying to parse /proc/iomem, and that file will not reflect the extent layout until the device is

[PATCH v4 17/23] mm/memremap_pages: Support multiple ranges per invocation

2020-08-02 Thread Dan Williams
In support of device-dax growing the ability to front physically dis-contiguous ranges of memory, update devm_memremap_pages() to track multiple ranges with a single reference counter and devm instance. Cc: Paul Mackerras Cc: Michael Ellerman Cc: Benjamin Herrenschmidt Cc: Dan Williams Cc:

[PATCH v4 10/23] device-dax: Make pgmap optional for instance creation

2020-08-02 Thread Dan Williams
The passed in dev_pagemap is only required in the pmem case as the libnvdimm core may have reserved a vmem_altmap for dev_memremap_pages() to place the memmap in pmem directly. In the hmem case there is no agent reserving an altmap so it can all be handled by a core internal default. Pass the

[PATCH v4 13/23] device-dax: Introduce 'seed' devices

2020-08-02 Thread Dan Williams
Add a seed device concept for dynamic dax regions to be able to split the region amongst multiple sub-instances. The seed device, similar to libnvdimm seed devices, is a device that starts with zero capacity allocated and unbound to a driver. In contrast to libnvdimm seed devices explicit 'create'

[PATCH v4 05/23] resource: Report parent to walk_iomem_res_desc() callback

2020-08-02 Thread Dan Williams
In support of detecting whether a resource might have been been claimed, report the parent to the walk_iomem_res_desc() callback. For example, the ACPI HMAT parser publishes "hmem" platform devices per target range. However, if the HMAT is disabled / missing a fallback driver can attach devices to

[PATCH v4 11/23] device-dax: Kill dax_kmem_res

2020-08-02 Thread Dan Williams
Several related issues around this unneeded attribute: - The dax_kmem_res property allows the kmem driver to stash the adjusted resource range that was used for the hotplug operation, but that can be recalculated from the original base range. - kmem is using an open coded release_resource()

[PATCH v4 08/23] device-dax: Drop the dax_region.pfn_flags attribute

2020-08-02 Thread Dan Williams
All callers specify the same flags to alloc_dax_region(), so there is no need to allow for anything other than PFN_DEV|PFN_MAP, or carry a ->pfn_flags around on the region. Device-dax instances are always page backed. Cc: Vishal Verma Signed-off-by: Dan Williams --- drivers/dax/bus.c |

[PATCH v4 12/23] device-dax: Add an allocation interface for device-dax instances

2020-08-02 Thread Dan Williams
In preparation for a facility that enables dax regions to be sub-divided, introduce infrastructure to track and allocate region capacity. The new dax_region/available_size attribute is only enabled for volatile hmem devices, not pmem devices that are defined by nvdimm namespace boundaries. This

[PATCH v4 07/23] ACPI: HMAT: Attach a device for each soft-reserved range

2020-08-02 Thread Dan Williams
The hmem enabling in commit 'cf8741ac57ed ("ACPI: NUMA: HMAT: Register "soft reserved" memory as an "hmem" device")' only registered ranges to the hmem driver for each soft-reservation that also appeared in the HMAT. While this is meant to encourage platform firmware to "do the right thing" and

[PATCH v4 04/23] ACPI: HMAT: Refactor hmat_register_target_device to hmem_register_device

2020-08-02 Thread Dan Williams
In preparation for exposing "Soft Reserved" memory ranges without an HMAT, move the hmem device registration to its own compilation unit and make the implementation generic. The generic implementation drops usage acpi_map_pxm_to_online_node() that was translating ACPI proximity domain values and

[PATCH v4 09/23] device-dax: Move instance creation parameters to 'struct dev_dax_data'

2020-08-02 Thread Dan Williams
In preparation for adding more parameters to instance creation, move existing parameters to a new struct. Cc: Vishal Verma Signed-off-by: Dan Williams --- drivers/dax/bus.c | 14 +++--- drivers/dax/bus.h | 16 drivers/dax/hmem/hmem.c |8 +++-

[PATCH v4 06/23] mm/memory_hotplug: Introduce default phys_to_target_node() implementation

2020-08-02 Thread Dan Williams
In preparation to set a fallback value for dev_dax->target_node, introduce generic fallback helpers for phys_to_target_node() A generic implementation based on node-data or memblock was proposed, but as noted by Mike: "Here again, I would prefer to add a weak default for

[PATCH v4 00/23] device-dax: Support sub-dividing soft-reserved ranges

2020-08-02 Thread Dan Williams
Changes since v3 [1]: - Update x86 boot options documentation for 'nohmat' (Randy) - Fixup a handful of kbuild robot reports, the most significant being moving usage of PUD_SIZE and PMD_SIZE under #ifdef CONFIG_TRANSPARENT_HUGEPAGE protection. [1]:

[PATCH v4 02/23] x86/numa: Add 'nohmat' option

2020-08-02 Thread Dan Williams
Disable parsing of the HMAT for debug, to workaround broken platform instances, or cases where it is otherwise not wanted. Cc: x...@kernel.org Cc: "Rafael J. Wysocki" Cc: Dave Hansen Cc: Andy Lutomirski Cc: Peter Zijlstra Cc: Thomas Gleixner Cc: Ingo Molnar Cc: Borislav Petkov Cc: "H.

[PATCH v4 03/23] efi/fake_mem: Arrange for a resource entry per efi_fake_mem instance

2020-08-02 Thread Dan Williams
In preparation for attaching a platform device per iomem resource teach the efi_fake_mem code to create an e820 entry per instance. Similar to E820_TYPE_PRAM, bypass merging resource when the e820 map is sanitized. Cc: Thomas Gleixner Cc: Ingo Molnar Cc: Borislav Petkov Cc: "H. Peter Anvin"

[PATCH v4 01/23] x86/numa: Cleanup configuration dependent command-line options

2020-08-02 Thread Dan Williams
In preparation for adding a new numa= option clean up the existing ones to avoid ifdefs in numa_setup(), and provide feedback when the option is numa=fake= option is invalid due to kernel config. The same does not need to be done for numa=noacpi, since the capability is already hard disabled at

[PATCH v5 5/5] drm/i915: Enable scaling filter for plane and CRTC

2020-08-02 Thread Pankaj Bharadiya
GEN >= 10 hardware supports the programmable scaler filter. Attach scaling filter property for CRTC and plane for GEN >= 10 hardwares and program scaler filter based on the selected filter type. changes since v3: * None changes since v2: * Use updated functions * Add ps_ctrl var to contain the

[PATCH v5 4/5] drm/i915/display: Add Nearest-neighbor based integer scaling support

2020-08-02 Thread Pankaj Bharadiya
Integer scaling (IS) is a nearest-neighbor upscaling technique that simply scales up the existing pixels by an integer (i.e., whole number) multiplier.Nearest-neighbor (NN) interpolation works by filling in the missing color values in the upscaled image with that of the coordinate-mapped nearest

[PATCH v5 1/5] drm: Introduce plane and CRTC scaling filter properties

2020-08-02 Thread Pankaj Bharadiya
Introduce per-plane and per-CRTC scaling filter properties to allow userspace to select the driver's default scaling filter or Nearest-neighbor(NN) filter for upscaling operations on CRTC and plane. Drivers can set up this property for a plane by calling drm_plane_create_scaling_filter() and for

[PATCH v5 3/5] drm/i915: Introduce scaling filter related registers and bit fields.

2020-08-02 Thread Pankaj Bharadiya
Introduce scaler registers and bit fields needed to configure the scaling filter in prgrammed mode and configure scaling filter coefficients. changes since v3: * None changes since v2: * Change macro names to CNL_* and use +(set)*8 instead of adding another trip through _PICK_EVEN (Ville).

[PATCH v5 2/5] drm/drm-kms.rst: Add plane and CRTC scaling filter property documentation

2020-08-02 Thread Pankaj Bharadiya
Add documentation for newly introduced KMS plane and CRTC scaling filter properties. changes since v3: * None changes since v1: * None changes since RFC: * Add separate documentation for plane and CRTC. Signed-off-by: Pankaj Bharadiya --- Documentation/gpu/drm-kms.rst | 12 1 file

[PATCH v5 0/5] Introduce drm scaling filter property

2020-08-02 Thread Pankaj Bharadiya
Earlier, I kept this series on hold since we wanted to have a reference userspace implementation in place. Now, Sameer has implemented Integer scaling in Kodi Retro gaming framework which demonstrate how Integer scaling gives distinctive look to pixel art games when played on higher resolution

Re: Re: [PATCH v2 1/5] drm/mediatek: config component output by device node port

2020-08-02 Thread Chun-Kuang Hu
Hi, Frank: Frank Wunderlich 於 2020年8月2日 週日 下午4:06寫道: > > > Gesendet: Sonntag, 02. August 2020 um 02:03 Uhr > > Von: "Chun-Kuang Hu" > > An: "Frank Wunderlich" > > Cc: "Chun-Kuang Hu" , "Philipp Zabel" > > , "David Airlie" , "linux-kernel" > > , "DRI Development" > > , "moderated

Re: [PATCH v2 2/5] drm/mediatek: fix boot up for 720 and 480 but 1080

2020-08-02 Thread Chun-Kuang Hu
Hi, Frank: Frank Wunderlich 於 2020年8月2日 週日 下午12:44寫道: > > Hi, > > Am 2. August 2020 02:08:44 MESZ schrieb Chun-Kuang Hu > : > >Hi, Frank: > >> - disable tmds on phy on mt2701 > >> - support other resolutions like 1280x1024 > > > >If this patch does two things, it should be broken into two

Re: [PATCH v1 21/22] drm/omap: display: Backlight update

2020-08-02 Thread Sebastian Reichel
Hi, On Sun, Aug 02, 2020 at 04:32:07PM +0200, Sam Ravnborg wrote: > On Sun, Aug 02, 2020 at 04:26:05PM +0200, Sebastian Reichel wrote: > > On Sun, Aug 02, 2020 at 01:06:35PM +0200, Sam Ravnborg wrote: > > > - Introduce backlight_{enable/disable) > > > - Use get/set methods for

Re: [PATCH v5 06/16] pwm: lpss: Use pwm_lpss_apply() when restoring state on resume

2020-08-02 Thread Hans de Goede
Hi, On 7/29/20 10:12 AM, Andy Shevchenko wrote: On Tue, Jul 28, 2020 at 09:55:22PM +0200, Hans de Goede wrote: On 7/28/20 8:57 PM, Andy Shevchenko wrote: On Fri, Jul 17, 2020 at 03:37:43PM +0200, Hans de Goede wrote: ... Maybe I'm too picky, but I would go even further and split apply to

Re: [RFC PATCH 00/17] Drop uses of pci_read_config_*() return value

2020-08-02 Thread Borislav Petkov
On Sun, Aug 02, 2020 at 02:14:06PM -0500, Bjorn Helgaas wrote: > Wait, I'm not convinced yet. I know that if a PCI read fails, you > normally get ~0 data because the host bridge fabricates it to complete > the CPU load. > > But what guarantees that a PCI config register cannot contain ~0? Well,

Re: [PATCH 2/5] fbdev/core: Export framebuffer read and write code as cfb_ function

2020-08-02 Thread Sam Ravnborg
On Fri, Jul 31, 2020 at 11:20:33AM +0200, dan...@ffwll.ch wrote: > On Wed, Jul 29, 2020 at 06:36:03PM +0200, Sam Ravnborg wrote: > > Hi Daniel. > > > > On Wed, Jul 29, 2020 at 03:53:28PM +0200, dan...@ffwll.ch wrote: > > > On Wed, Jul 29, 2020 at 03:41:45PM +0200, Thomas Zimmermann wrote: > > > >

Re: [PATCH v5 00/16] acpi/pwm/i915: Convert pwm-crc and i915 driver's PWM code to use the atomic PWM API

2020-08-02 Thread Hans de Goede
Hi, On 8/2/20 1:25 PM, Andy Shevchenko wrote: On Sat, Aug 01, 2020 at 04:38:16PM +0200, Hans de Goede wrote: On 7/29/20 12:54 PM, Andy Shevchenko wrote: On Fri, Jul 17, 2020 at 03:37:37PM +0200, Hans de Goede wrote: ... One comment to consider, though. There are three channels in that PWM

Re: [RFC PATCH 00/17] Drop uses of pci_read_config_*() return value

2020-08-02 Thread Bjorn Helgaas
On Sun, Aug 02, 2020 at 08:46:48PM +0200, Borislav Petkov wrote: > On Sun, Aug 02, 2020 at 07:28:00PM +0200, Saheed Bolarinwa wrote: > > Because the value ~0 has a meaning to some drivers and only > > No, ~0 means that the PCI read failed. For *every* PCI device I know. Wait, I'm not convinced

Re: [RFC PATCH 00/17] Drop uses of pci_read_config_*() return value

2020-08-02 Thread Borislav Petkov
On Sun, Aug 02, 2020 at 07:28:00PM +0200, Saheed Bolarinwa wrote: > Because the value ~0 has a meaning to some drivers and only No, ~0 means that the PCI read failed. For *every* PCI device I know. Here's me reading from 0xf0 offset of my hostbridge: # setpci -s 00:00.0 0xf0.l 0100 That

[PATCH] drm/nouveau: Drop mutex_lock_nested for atomic

2020-08-02 Thread Daniel Vetter
Purely conjecture, but I think the original locking inversion with the legacy page flip code between flipping and ttm's bo move function shoudn't exist anymore with atomic: With atomic the bo pinning and actual modeset commit is completely separated in the code patsh. This annotation was

Re: [PATCH V2] drm: Remove unnecessary drm_panel_attach and drm_panel_detach

2020-08-02 Thread Sam Ravnborg
Hi Joe. On Sun, Aug 02, 2020 at 09:43:59AM -0700, Joe Perches wrote: > These functions are now empty and no longer > useful so remove the functions and their uses. > > Signed-off-by: Joe Perches > --- > > > > It's too tedious to break apart into multiple patches. > > > Done with coccinelle and

[PATCH V2] drm: Remove unnecessary drm_panel_attach and drm_panel_detach

2020-08-02 Thread Joe Perches
These functions are now empty and no longer useful so remove the functions and their uses. Signed-off-by: Joe Perches --- > > It's too tedious to break apart into multiple patches. > > Done with coccinelle and typing. > > > > Compiled allyesconfig x86-64 only. V2: Removed 3 additional lines

Re: [PATCH v4] drm/kmb: Add support for KeemBay Display

2020-08-02 Thread Sam Ravnborg
Hi Anitha. On Thu, Jul 30, 2020 at 01:44:44PM -0700, Anitha Chrisanthus wrote: > This is a basic KMS atomic modesetting display driver for KeemBay family of > SOCs. Driver has no 2D or 3D graphics.It calls into the ADV bridge > driver at the connector level. > > Single CRTC with LCD

Re: [RFC PATCH 00/17] Drop uses of pci_read_config_*() return value

2020-08-02 Thread Tom Rix
On 8/1/20 5:56 AM, Borislav Petkov wrote: > On Sat, Aug 01, 2020 at 01:24:29PM +0200, Saheed O. Bolarinwa wrote: >> The return value of pci_read_config_*() may not indicate a device error. >> However, the value read by these functions is more likely to indicate >> this kind of error. This

Re: [PATCH v1 16/22] drm/bridge: parade-ps8622: Backlight update

2020-08-02 Thread Sam Ravnborg
On Sun, Aug 02, 2020 at 01:06:30PM +0200, Sam Ravnborg wrote: > - Use blacklight_get_brightness() helper > - Use devm_ variant to register backlight device and drop explicit > unregister > - Use macro for initialization > > Signed-off-by: Sam Ravnborg > Cc: Andrzej Hajda > Cc: Neil Armstrong

Re: [PATCH v1 21/22] drm/omap: display: Backlight update

2020-08-02 Thread Sam Ravnborg
Hi Sebastian. On Sun, Aug 02, 2020 at 04:26:05PM +0200, Sebastian Reichel wrote: > Hi, > > On Sun, Aug 02, 2020 at 01:06:35PM +0200, Sam Ravnborg wrote: > > - Introduce backlight_{enable/disable) > > - Use get/set methods for backlight_properties > > - Drop redundant get_brightness()

Re: [PATCH v1 21/22] drm/omap: display: Backlight update

2020-08-02 Thread Sebastian Reichel
Hi, On Sun, Aug 02, 2020 at 01:06:35PM +0200, Sam Ravnborg wrote: > - Introduce backlight_{enable/disable) > - Use get/set methods for backlight_properties > - Drop redundant get_brightness() implementation > The default implementation return the current brightness value > - Use macro for

Re: [PATCH v1 16/22] drm/bridge: parade-ps8622: Backlight update

2020-08-02 Thread kernel test robot
, kindly drop us a note. And when submitting patch, we suggest to use '--base' as documented in https://git-scm.com/docs/git-format-patch] url: https://github.com/0day-ci/linux/commits/Sam-Ravnborg/backlight-add-init-macros-and-accessors/20200802-190940 base:for-backlight-next config: x86_64

Re: [PATCH v1 17/22] drm/tilcdc: Backlight update

2020-08-02 Thread kernel test robot
/20200802-190940 base:for-backlight-next config: arm-randconfig-r016-20200802 (attached as .config) compiler: arm-linux-gnueabi-gcc (GCC) 9.3.0 reproduce (this is a W=1 build): wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x

Re: [Intel-gfx] [PATCH] drm/i915: Fix wrong return value

2020-08-02 Thread Andi Shyti
> > > diff --git a/drivers/gpu/drm/i915/i915_active.c > > > b/drivers/gpu/drm/i915/i915_active.c > > > index d960d0be5bd2..cc017e3cc9c5 100644 > > > --- a/drivers/gpu/drm/i915/i915_active.c > > > +++ b/drivers/gpu/drm/i915/i915_active.c > > > @@ -758,7 +758,7 @@ int

[Bug 207383] [Regression] 5.7 amdgpu/polaris11 gpf: amdgpu_atomic_commit_tail

2020-08-02 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=207383 --- Comment #114 from Jeremy Kescher (jer...@kescher.at) --- (In reply to Duncan from comment #108) > (In reply to Paul Menzel from comment #107) > > Everyone seeing this, it’d be great, if you tested > > > > [PATCH] drm/amd/display: Clear

Re: [Intel-gfx] [PATCH] drm/i915: Fix wrong return value

2020-08-02 Thread Chris Wilson
Quoting Andi Shyti (2020-08-02 12:40:44) > Hi Tianjia, > > > diff --git a/drivers/gpu/drm/i915/i915_active.c > > b/drivers/gpu/drm/i915/i915_active.c > > index d960d0be5bd2..cc017e3cc9c5 100644 > > --- a/drivers/gpu/drm/i915/i915_active.c > > +++ b/drivers/gpu/drm/i915/i915_active.c > > @@

Re: [PATCH] drm/i915: Fix wrong return value

2020-08-02 Thread Andi Shyti
Hi Tianjia, > diff --git a/drivers/gpu/drm/i915/i915_active.c > b/drivers/gpu/drm/i915/i915_active.c > index d960d0be5bd2..cc017e3cc9c5 100644 > --- a/drivers/gpu/drm/i915/i915_active.c > +++ b/drivers/gpu/drm/i915/i915_active.c > @@ -758,7 +758,7 @@ int

[PATCH v1 10/22] drm/panel: raydium-rm67191: Backlight update

2020-08-02 Thread Sam Ravnborg
- Replace direct access to backlight_properties with backlight_get_brightness(). - Use macro for initialization Signed-off-by: Sam Ravnborg Cc: Robert Chiras Cc: Thierry Reding Cc: Sam Ravnborg --- drivers/gpu/drm/panel/panel-raydium-rm67191.c | 11 +++ 1 file changed, 3

[PATCH v1 16/22] drm/bridge: parade-ps8622: Backlight update

2020-08-02 Thread Sam Ravnborg
- Use blacklight_get_brightness() helper - Use devm_ variant to register backlight device and drop explicit unregister - Use macro for initialization Signed-off-by: Sam Ravnborg Cc: Andrzej Hajda Cc: Neil Armstrong Cc: Laurent Pinchart Cc: Jonas Karlman Cc: Jernej Skrabec ---

[PATCH v1 15/22] drm/panel: sony-acx565akm: Backlight update

2020-08-02 Thread Sam Ravnborg
- Use backlight_get_brightness() helper - Use backlight_is_blank() helper - Use macro for initialization - Drop direct access to backlight properties - Use the devm_ variant for registering backlight device, and drop all explicit unregistering of the backlight device. Signed-off-by: Sam

[PATCH v1 05/22] drm/gma500: Backlight support

2020-08-02 Thread Sam Ravnborg
The backlight support is updated to utilise newly added macros and functions thus simplifying the code. - Introduced backlight_set_brightness() that can be called with a NULL backlight_device - backlight_update_status() can be called with a NULL backlight_device. Benefit from this by removing

[PATCH v1 11/22] drm/panel: samsung-s6e63m0: Backlight update

2020-08-02 Thread Sam Ravnborg
- Use drm_panel backlight support - Use macro for backlight initialization Signed-off-by: Sam Ravnborg Cc: Paweł Chmiel Cc: Thierry Reding Cc: Sam Ravnborg --- drivers/gpu/drm/panel/panel-samsung-s6e63m0.c | 25 +++ 1 file changed, 9 insertions(+), 16 deletions(-) diff --git

[PATCH v1 21/22] drm/omap: display: Backlight update

2020-08-02 Thread Sam Ravnborg
- Introduce backlight_{enable/disable) - Use get/set methods for backlight_properties - Drop redundant get_brightness() implementation The default implementation return the current brightness value - Use macro for backlight initialization Signed-off-by: Sam Ravnborg Cc: Tomi Valkeinen Cc:

[PATCH v1 18/22] drm/radeon: Backlight update

2020-08-02 Thread Sam Ravnborg
- Use macros for initialization - Replace direct access to backlight_properties with get and set operations Signed-off-by: Sam Ravnborg Cc: Alex Deucher Cc: Christian König Cc: amd-...@lists.freedesktop.org --- drivers/gpu/drm/radeon/atombios_encoders.c| 23 ++-

[PATCH v1 17/22] drm/tilcdc: Backlight update

2020-08-02 Thread Sam Ravnborg
Avoid using direct access to backlight_properties by introducing set methods for power. Dropped extra check as both set methods and backlight_update_status() both accepts a NULL backlight device. Signed-off-by: Sam Ravnborg Cc: Rob Clark Cc: Ezequiel Garcia Cc: Jyri Sarha Cc: Tomi Valkeinen

[PATCH v1 09/22] drm/panel: orisetech-otm8009a: Backlight update

2020-08-02 Thread Sam Ravnborg
- Replace direct access to backlight_properties with backlight_get_brightness(). - Use brightness and not power to determine if backlight is off - Use the devm_ variant for registering backlight device, and drop all explicit unregistering of the backlight device. Signed-off-by: Sam Ravnborg

[PATCH v1 08/22] drm/panel: novatek-nt35510: Backlight update

2020-08-02 Thread Sam Ravnborg
- Replace direct access to backlight_properties with backlight_get_brightness(). - Drop debug printout - Use macro for initialization Signed-off-by: Sam Ravnborg Cc: Linus Walleij Cc: Thierry Reding Cc: Sam Ravnborg --- drivers/gpu/drm/panel/panel-novatek-nt35510.c | 9 +++-- 1 file

[PATCH v1 01/22] backlight: Silently fail backlight_update_status() if no device

2020-08-02 Thread Sam Ravnborg
backlight_update_status() may be called from code that does not have any valid backlight device. To avoid ifdeffery and too much conditionals silently fail if the backlight_device is NULL. Signed-off-by: Sam Ravnborg Cc: Lee Jones Cc: Daniel Thompson Cc: Jingoo Han ---

[PATCH v1 07/22] drm/panel: jdi-lt070me05000: Backlight update

2020-08-02 Thread Sam Ravnborg
Update backlight to use macro for initialization and the backlight_get_brightness() operation to simply the update operation. Moved init of backlight device so it comes after drm_panel_init(). This is the order that is required by drm_panel. Signed-off-by: Sam Ravnborg Cc: Vinay Simha BN Cc:

[PATCH v1 20/22] drm/i915: Backlight update

2020-08-02 Thread Sam Ravnborg
Update backlight implementation to utilize newly added backlight functionality. - Use macros for initialization - Replace direct access to backlight_properties with get and set operations - Dropped extra checks as some methods accepts a NULL backlight device. One side-effect of these changes

[PATCH v1 22/22] drm/shmobile: Backlight update

2020-08-02 Thread Sam Ravnborg
- Use get/set methods for backlight_properties - Use macro for backlight initialization Signed-off-by: Sam Ravnborg Cc: Laurent Pinchart Cc: Kieran Bingham Cc: linux-renesas-...@vger.kernel.org --- .../gpu/drm/shmobile/shmob_drm_backlight.c| 20 --- 1 file changed, 8

[PATCH v1 02/22] backlight: Add DECLARE_* macro for device registration

2020-08-02 Thread Sam Ravnborg
Device registration almost always uses a struct backlight_properties variable to pass config info. Make it simpler and less error prone by the introduction of a number of macros. There is one macro for each type of backlight {firmware, platform, raw}. All members in struct backlight_properties

[PATCH v1 06/22] drm/panel: asus-z00t-tm5p5-n35596: Backlight update

2020-08-02 Thread Sam Ravnborg
Update backlight to use macro for initialization and the backlight_get_brightness() operation to simply the update operation. Signed-off-by: Sam Ravnborg Cc: Konrad Dybcio Cc: Thierry Reding Cc: Sam Ravnborg --- .../gpu/drm/panel/panel-asus-z00t-tm5p5-n35596.c | 15 +++ 1 file

[PATCH v1 19/22] drm/amdgpu/atom: Backlight update

2020-08-02 Thread Sam Ravnborg
- Use macros for initialization - Replace direct access to backlight_properties with get and set operations Signed-off-by: Sam Ravnborg Cc: Alex Deucher Cc: Christian König Cc: amd-...@lists.freedesktop.org Cc: Sam Ravnborg --- drivers/gpu/drm/amd/amdgpu/atombios_encoders.c | 15

[PATCH v1 14/22] drm/panel: sony-acx424akp: Backlight update

2020-08-02 Thread Sam Ravnborg
- Use get method to read brightness - Use drm_panel support for backlight - This drops enable/disable operations as they are no longer needed. The enable/disable operations had some backlight related comments that are no longer valid. The only correct way to enable/disable backlight

[PATCH v1 12/22] drm/panel: samsung-s6e63j0x03: Backlight update

2020-08-02 Thread Sam Ravnborg
- Use backlight support from drm_panel. This shifts this driver away from manually handling of power state. - Add helper function for registering backlight, like other samsung panel drivers do. - Use devm_ for backlight register thus benefit from automatic unregistering. Drop all explicit

[PATCH v1 13/22] drm/panel: samsung-s6e3ha2: Backlight update

2020-08-02 Thread Sam Ravnborg
- Use backlight support from drm_panel. This shifts this driver away from manually handling of power state. - Add helper function for registering backlight, like other samsung panel drivers do. - Use devm_ for backlight register thus benefit from automatic unregistering. Drop all explicit

[PATCH v1 03/22] backlight: Add get/set operations for brightness/power properties

2020-08-02 Thread Sam Ravnborg
Add get and set operations to incapsualte access to backlight properties. One easy win is that the get/set operatiosn can be used when backlight is not included in the configuration, resulting in simpler code with less ifdef's and thus more readable code. The set/get methods hides some of the

[PATCH v1 04/22] backlight: gpio: Use DECLARE_BACKLIGHT_INIT_RAW and get/setters

2020-08-02 Thread Sam Ravnborg
Introduce use of DECLARE_BACKLIGHT_INIT_RAW when registering the backlight. This makes the device registration a little simpler. Use get/set operations for power thus avoid the use of the rather confusion power states. Signed-off-by: Sam Ravnborg Cc: Lee Jones Cc: Daniel Thompson Cc: Jingoo

[RFC PATCH v1 0/22] backlight: add init macros and accessors

2020-08-02 Thread Sam Ravnborg
The backlight drivers uses several different patterns when registering a backlight: - Register backlight and assign properties later - Define a local backlight_properties variable and use memset - Define a const backlight_properties and assign relevant properties On top of this there was

Re: [PATCH] drm: Remove unnecessary drm_panel_attach and drm_panel_detach

2020-08-02 Thread Sam Ravnborg
Hi Joe. On Sun, Aug 02, 2020 at 01:00:11AM -0700, Joe Perches wrote: > These functions are now empty and no longer > useful so remove the functions and their uses. > > Signed-off-by: Joe Perches > --- > > It's too tedious to break apart into multiple patches. > Done with coccinelle and typing.

[PATCH] drm: Remove unnecessary drm_panel_attach and drm_panel_detach

2020-08-02 Thread Joe Perches
These functions are now empty and no longer useful so remove the functions and their uses. Signed-off-by: Joe Perches --- It's too tedious to break apart into multiple patches. Done with coccinelle and typing. Compiled allyesconfig x86-64 only.

Re: [PATCH 3/3] drm/panel: simple: Add Chefree CH101OLHLWH-002 panel

2020-08-02 Thread Sam Ravnborg
Hi Marek. On Tue, Jul 28, 2020 at 10:12:42PM +0200, Marek Vasut wrote: > Add support for the Chefree CH101OLHLWH-002 10.1" (1280x800) > color TFT LCD panel, connected over LVDS. > > Timings are taken from the datasheet version P0.5. > > Signed-off-by: Marek Vasut > To:

Re: [PATCH] drm/panel: remove return value of function drm_panel_add

2020-08-02 Thread Sam Ravnborg
Hi Bernard. On Sat, Aug 01, 2020 at 08:02:13PM +0800, Bernard Zhao wrote: > The function "int drm_panel_add(struct drm_panel *panel)" > always returns 0, this return value is meaningless. > Also, there is no need to check return value which calls > "drm_panel_add and", error branch code will

Re: [PATCH v2 0/3] Fix Kconfig dependency issue with DMAENGINES selection

2020-08-02 Thread Vinod Koul
On 31-07-20, 23:42, Laurent Pinchart wrote: > Hi Vinod, > > On Fri, Jul 31, 2020 at 10:17:44PM +0530, Vinod Koul wrote: > > On 31-07-20, 18:24, Laurent Pinchart wrote: > > > Hello, > > > > > > This small series fixes a Kconfig dependency issue with the recently > > > merged Xilixn DPSUB DRM/KMS