ACPI-PMIC + i915: Add support for PMIC MIPI sequences
Subsystems (6)
cover ACPI-PMIC + i915: Add support for PMIC MIPI sequences
Hi All,
This series is the result of me debugging and fixing the LCD panel not lighting up on some CHT devices when they are booted with an external monitor connected and the GOP only initializes the external monitor, leaving the LCD uninitialized.
This is caused by the lack of support for executing PMIC MIPI sequences in drivers/gpu/drm/i915/intel_dsi_vbt.c. Specifically the VBT on these devices uses a PMIC MIPI sequence to toggle a GPIO on the PMIC.
Besides fixing the LCD panel not working at all when an external monitor is used, this should also save some power when the panel is off.
This series touches some files under drivers/acpi/pmic as well as some i915 code. Since the code under drivers/acpi/pmic does not change that often, I believe it would be best to merge this entire series through intel-drm-next-queued, with acks from the ACPI maintainers.
Regards,
Hans
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
PATCH 1/3 ACPI / PMIC: Add support for executing PMIC MIPI sequence elements
DSI LCD panels describe an initialization sequence in the Video BIOS Tables using so called MIPI sequences. One possible element in these sequences is a PMIC specific element of 15 bytes.
Although this is not really an ACPI opregion, the ACPI opregion code is the closest thing we have. We need to have support for these PMIC specific MIPI sequence elements somwhere. Since we already instantiate a special platform device for Intel PMICs for the ACPI PMIC OpRegion handler to bind to, with PMIC specific implementations of the OpRegion, the handling of MIPI sequence PMIC elements fits very well in the ACPI PMIC OpRegion code.
This commit adds a new intel_soc_pmic_exec_mipi_pmic_seq_element() function, which is to be backed by a PMIC specific exec_mipi_pmic_seq_element callback. This function will be called by the i915 code to execture MIPI sequence PMIC elements.
--- drivers/acpi/pmic/intel_pmic.c | 25 +++++++++++++++++++++++++ drivers/acpi/pmic/intel_pmic.h | 1 + include/linux/mfd/intel_soc_pmic.h | 2 ++ 3 files changed, 28 insertions(+)
drivers/acpi/pmic/intel_pmic.c +25 -0
@@ -15,6 +15,7 @@#include <linux/export.h> #include <linux/acpi.h> +#include <linux/mfd/intel_soc_pmic.h> #include <linux/regmap.h> #include <acpi/acpi_lpat.h> #include "intel_pmic.h"
@@ -36,6 +37,8 @@ struct intel_pmic_opregion {struct intel_pmic_regs_handler_ctx ctx; }; +static struct intel_pmic_opregion *intel_pmic_opregion; +static int pmic_get_reg_bit (int address,struct pmic_table *table,int count,int *reg,int *bit) {
@@ -304,6 +307,7 @@ int intel_pmic_install_opregion_handler(struct device *dev, acpi_handle handle, } opregion->data = d; + intel_pmic_opregion = opregion;return 0 ; out_remove_thermal_handler:
@@ -319,3 +323,24 @@ int intel_pmic_install_opregion_handler(struct device *dev, acpi_handle handle,return ret; }EXPORT_SYMBOL_GPL (intel_pmic_install_opregion_handler); + +void intel_soc_pmic_exec_mipi_pmic_seq_element (const u8 *data) +{ +struct intel_pmic_opregion_data *d; + +if (!intel_pmic_opregion) { +pr_warn ("%s: No PMIC registered\n" , __func__); +return ; + } + + d = intel_pmic_opregion->data; +if (!d->exec_mipi_pmic_seq_element) { +pr_warn ("%s: Not implemented\n" , __func__); +return ; + } + +mutex_lock (&intel_pmic_opregion->lock); + d->exec_mipi_pmic_seq_element (intel_pmic_opregion->regmap, data); +mutex_unlock (&intel_pmic_opregion->lock); +} +EXPORT_SYMBOL_GPL (intel_soc_pmic_exec_mipi_pmic_seq_element);
drivers/acpi/pmic/intel_pmic.h +1 -0
@@ -15,6 +15,7 @@ struct intel_pmic_opregion_data {int (*update_aux)(struct regmap *r,int reg,int raw_temp);int (*get_policy)(struct regmap *r,int reg,int bit,u64 *value);int (*update_policy)(struct regmap *r,int reg,int bit,int enable); +void (*exec_mipi_pmic_seq_element)(struct regmap *r,const u8 *data);struct pmic_table *power_table;int power_table_count;struct pmic_table *thermal_table;
include/linux/mfd/intel_soc_pmic.h +2 -0
@@ -26,4 +26,6 @@ struct intel_soc_pmic { struct device *dev; }; +void intel_soc_pmic_exec_mipi_pmic_seq_element (const u8 *data); +#endif /* __INTEL_SOC_PMIC_H__ */
Signature · 6 lines
2.19.2 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
PATCH 2/3 ACPI / PMIC: Implement exec_mipi_pmic_seq_element for CHT Whiskey Cove PMIC
In reply to Hans de GoedeImplement the exec_mipi_pmic_seq_element callback for the CHT Whiskey Cove PMIC.
On some CHT devices this fixes the LCD panel not lighting up when it was not initialized by the GOP, because an external monitor was plugged in and the GOP initialized only the external monitor.
--- drivers/acpi/pmic/intel_pmic_chtwc.c | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+)
drivers/acpi/pmic/intel_pmic_chtwc.c +23 -0
@@ -12,6 +12,7 @@#include <linux/mfd/intel_soc_pmic.h> #include <linux/platform_device.h> #include <linux/regmap.h> +#include <asm/unaligned.h> #include "intel_pmic.h" #define CHT_WC_V1P05A_CTRL 0x6e3b
@@ -231,6 +232,27 @@ static int intel_cht_wc_pmic_update_power(struct regmap *regmap, int reg,return regmap_update_bits (regmap, reg, bitmask, on ?1 :0 ); } +static void intel_cht_wc_exec_mipi_pmic_seq_element (struct regmap *regmap, +const u8 *data) +{ +u16 i2c_client_address, reg_address, address; +u32 value, mask; + + i2c_client_address =get_unaligned_be16 (data); + reg_address =get_unaligned_be16 (data +2 ); + value =get_unaligned_be32 (data +4 ); + mask =get_unaligned_be32 (data +8 ); + +if ((i2c_client_address &0xff00 ) || (reg_address &0xff00 )) { +pr_warn ("%s warning addresses too big client 0x%x reg 0x%x\n" , + __func__, i2c_client_address, reg_address); +return ; + } + + address = (i2c_client_address <<8 ) | reg_address; +regmap_update_bits (regmap, address, mask, value); +} +/* * The thermal table and ops are empty, we do not support the Thermal opregion * (DPTF) due to lacking documentation.
@@ -238,6 +260,7 @@ static int intel_cht_wc_pmic_update_power(struct regmap *regmap, int reg,static struct intel_pmic_opregion_data intel_cht_wc_pmic_opregion_data = { .get_power = intel_cht_wc_pmic_get_power, .update_power = intel_cht_wc_pmic_update_power, + .exec_mipi_pmic_seq_element = intel_cht_wc_exec_mipi_pmic_seq_element, .power_table = power_table, .power_table_count =ARRAY_SIZE (power_table), };
Signature · 6 lines
2.19.2 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
PATCH 3/3 drm/i915/intel_dsi_vbt: Add support for PMIC mipi sequences
In reply to Hans de GoedeAdd support for PMIC mipi sequences using the new intel_soc_pmic_exec_mipi_pmic_seq_element function.
--- drivers/gpu/drm/i915/intel_dsi_vbt.c | 5 +++++ 1 file changed, 5 insertions(+)
drivers/gpu/drm/i915/intel_dsi_vbt.c +5 -0
@@ -29,6 +29,7 @@#include <drm/drm_edid.h> #include <drm/i915_drm.h> #include <linux/gpio/consumer.h> +#include <linux/mfd/intel_soc_pmic.h> #include <linux/slab.h> #include <video/mipi_display.h> #include <asm/intel-mid.h>
@@ -371,7 +372,11 @@ static const u8 *mipi_exec_spi(struct intel_dsi *intel_dsi, const u8 *data)static const u8 *mipi_exec_pmic (struct intel_dsi *intel_dsi,const u8 *data) { +#ifdef CONFIG_PMIC_OPREGION +intel_soc_pmic_exec_mipi_pmic_seq_element (data); +#else DRM_DEBUG_KMS ("Skipping PMIC element execution\n" ); +#endif return data +15 ; }
Signature · 6 lines
2.19.2 _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
Re: [PATCH 2/3] ACPI / PMIC: Implement exec_mipi_pmic_seq_element for CHT Whiskey Cove PMIC
In reply to Hans de GoedeQuoted 28 lines · Hans de Goede
Implement the
exec_mipi_pmic_seq_elementcallback for the CHT Whiskey Cove PMIC.On some CHT devices this fixes the LCD panel not lighting up when it was not initialized by the GOP, because an external monitor was plugged in and the GOP initialized only the external monitor.
Signed-off-by Hans de Goede <[email protected]>--- drivers/acpi/pmic/intel_pmic_chtwc.c | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+)drivers/acpi/pmic/intel_pmic_chtwc.c +1
-0@@ -12,6 +12,7 @@#include <linux/mfd/intel_soc_pmic.h> #include <linux/platform_device.h> #include <linux/regmap.h> +#include <asm/unaligned.h> #include "intel_pmic.h" #define CHT_WC_V1P05A_CTRL 0x6e3b@@ -231,6 +232,27 @@ static int intel_cht_wc_pmic_update_power(struct regmap *regmap, int reg,return regmap_update_bits (regmap, reg, bitmask, on ?1 :0 ); }
drivers/acpi/pmic/intel_pmic_chtwc.c static int intel_cht_wc_pmic_update_power(struct regmap *regmap, int reg, · line 244
Quoted 10 lines
drivers/acpi/pmic/intel_pmic_chtwc.c +10
-0+static void intel_cht_wc_exec_mipi_pmic_seq_element (struct regmap *regmap, +const u8 *data) +{ +u16 i2c_client_address, reg_address, address; +u32 value, mask; + + i2c_client_address =get_unaligned_be16 (data); + reg_address =get_unaligned_be16 (data +2 ); + value =get_unaligned_be32 (data +4 ); + mask =get_unaligned_be32 (data +8 );
This doesn't match the docs:
"Byte0 – PMIC Flag
Bits 7:0 = Reserved for future use
Byte2,1 – PMIC Slave Address
Bits 15:0 = Slave address for PMIC access
Each slave can address 256byte register space in general
Bytes 6,5,4,3 – DWORD 0
Bits 31:0 = PMIC Register Address
Bytes 10,9,8,7 – DWORD 1
Bits 31:0 = PMIC Register Data
Bytes 14,13,12,11 – DWORD 2
Bits 31:0 = PMIC Register DataMask"
Though I wouldn't be entirely surprised if the docs are simply wrong. There is at least one bug in the docs where it claims the size to be 14 bytes. Another place in the docs says 15 bytes. I'll need to file a bug for that at least.
Quoted 24 lines
drivers/acpi/pmic/intel_pmic_chtwc.c +12
-0+ +if ((i2c_client_address &0xff00 ) || (reg_address &0xff00 )) { +pr_warn ("%s warning addresses too big client 0x%x reg 0x%x\n" , + __func__, i2c_client_address, reg_address); +return ; + } + + address = (i2c_client_address <<8 ) | reg_address; +regmap_update_bits (regmap, address, mask, value); +} +/* * The thermal table and ops are empty, we do not support the Thermal opregion * (DPTF) due to lacking documentation. @@ -238,6 +260,7 @@ static int intel_cht_wc_pmic_update_power(struct regmap *regmap, int reg,static struct intel_pmic_opregion_data intel_cht_wc_pmic_opregion_data = { .get_power = intel_cht_wc_pmic_get_power, .update_power = intel_cht_wc_pmic_update_power, + .exec_mipi_pmic_seq_element = intel_cht_wc_exec_mipi_pmic_seq_element, .power_table = power_table, .power_table_count =ARRAY_SIZE (power_table), };Signature · 1 line
2.19.2
Signature · 6 lines
Ville Syrjälä Intel _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Patchwork
CI✓ Fi.CI.BAT: success for ACPI-PMIC + i915: Add support for PMIC MIPI sequences
In reply to Hans de Goede== Series Details ==
== Series Details ==
Series: ACPI-PMIC + i915: Add support for PMIC MIPI sequences
URL : https://patchwork.freedesktop.org/series/53594/
State : success
== Summary ==
CI Bug Log - changes from CI_DRM_5267 -> Patchwork_11025
====================================================
Summary
-------
**SUCCESS**
No regressions found.
External URL: https://patchwork.freedesktop.org/api/1.0/series/53594/revisions/1/mbox/
Known issues
------------
Here are the changes found in Patchwork_11025 that come from known issues:
### IGT changes ###
#### Issues hit ####
* igt@i915_selftest@live_contexts:
- fi-bsw-kefka: PASS -> DMESG-FAIL [fdo#108626]
* {igt@runner@aborted}:
- {fi-icl-u3}: NOTRUN -> FAIL [fdo#108866]
- {fi-icl-y}: NOTRUN -> FAIL [fdo#108070]
#### Warnings ####
* igt@i915_selftest@live_contexts:
- {fi-icl-u3}: DMESG-FAIL [fdo#108569] -> INCOMPLETE [fdo#108315]
{name}: This element is suppressed. This means it is ignored when computing
the status of the difference (SUCCESS, WARNING, or FAILURE).
[fdo#108070]: https://bugs.freedesktop.org/show_bug.cgi?id=108070
[fdo#108315]: https://bugs.freedesktop.org/show_bug.cgi?id=108315
[fdo#108569]: https://bugs.freedesktop.org/show_bug.cgi?id=108569
[fdo#108626]: https://bugs.freedesktop.org/show_bug.cgi?id=108626
[fdo#108866]: https://bugs.freedesktop.org/show_bug.cgi?id=108866
Participating hosts (49 -> 45)
------------------------------
Additional (1): fi-icl-y
Missing (5): fi-ilk-m540 fi-hsw-4200u fi-byt-squawks fi-bsw-cyan fi-ctg-p8600
Build changes
-------------
* Linux: CI_DRM_5267 -> Patchwork_11025
CI_DRM_5267: 680d161b3cf77a94e05dfdedcdeed4f38e4b7fd8 @ git://anongit.freedesktop.org/gfx-ci/linux
IGT_4743: edb2db2cf2b6665d7ba3fa9117263302f6307a4f @ git://anongit.freedesktop.org/xorg/app/intel-gpu-tools
Patchwork_11025: 069ab7eb308298f19c1f008d4c7e9d70c4001d61 @ git://anongit.freedesktop.org/gfx-ci/linux
== Linux commits ==
069ab7eb3082 drm/i915/intel_dsi_vbt: Add support for PMIC mipi sequences 4ae5f23cfdb6 ACPI / PMIC: Implement exec_mipi_pmic_seq_element for CHT Whiskey Cove PMIC cbc57114716d ACPI / PMIC: Add support for executing PMIC MIPI sequence elements
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_11025/
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Patchwork
CI✓ Fi.CI.IGT: success for ACPI-PMIC + i915: Add support for PMIC MIPI sequences
In reply to Hans de Goede== Series Details ==
== Series Details ==
Series: ACPI-PMIC + i915: Add support for PMIC MIPI sequences
URL : https://patchwork.freedesktop.org/series/53594/
State : success
== Summary ==
CI Bug Log - changes from CI_DRM_5267_full -> Patchwork_11025_full
====================================================
Summary
-------
**SUCCESS**
No regressions found.
Known issues
------------
Here are the changes found in Patchwork_11025_full that come from known issues:
### IGT changes ###
#### Issues hit ####
* igt@gem_exec_schedule@pi-ringfull-bsd:
- shard-skl: NOTRUN -> FAIL [fdo#103158]
* igt@i915_suspend@debugfs-reader:
- shard-skl: PASS -> INCOMPLETE [fdo#104108] / [fdo#107773]
* igt@kms_available_modes_crc@available_mode_test_crc:
- shard-skl: NOTRUN -> FAIL [fdo#106641]
* igt@kms_busy@extended-modeset-hang-newfb-render-a:
- shard-apl: NOTRUN -> DMESG-WARN [fdo#107956]
* igt@kms_busy@extended-modeset-hang-newfb-with-reset-render-c:
- {shard-iclb}: NOTRUN -> DMESG-WARN [fdo#107956]
* igt@kms_busy@extended-pageflip-hang-newfb-render-b:
- shard-apl: PASS -> DMESG-WARN [fdo#107956]
* igt@kms_busy@extended-pageflip-modeset-hang-oldfb-render-a:
- shard-hsw: PASS -> DMESG-WARN [fdo#107956]
* igt@kms_busy@extended-pageflip-modeset-hang-oldfb-render-b:
- shard-skl: NOTRUN -> DMESG-WARN [fdo#107956]
* igt@kms_chv_cursor_fail@pipe-c-128x128-left-edge:
- shard-skl: NOTRUN -> FAIL [fdo#104671]
* igt@kms_cursor_crc@cursor-128x128-onscreen:
- shard-skl: NOTRUN -> FAIL [fdo#103232]
* igt@kms_cursor_crc@cursor-128x128-sliding:
- shard-apl: PASS -> FAIL [fdo#103232] +1
* igt@kms_cursor_crc@cursor-256x256-dpms:
- shard-glk: PASS -> FAIL [fdo#103232]
* igt@kms_cursor_crc@cursor-256x256-random:
- {shard-iclb}: NOTRUN -> FAIL [fdo#103232] +1
* igt@kms_draw_crc@draw-method-rgb565-mmap-wc-ytiled:
- shard-skl: PASS -> FAIL [fdo#103184]
* igt@kms_draw_crc@draw-method-xrgb8888-mmap-wc-ytiled:
- shard-skl: NOTRUN -> FAIL [fdo#103184]
* igt@kms_draw_crc@draw-method-xrgb8888-pwrite-untiled:
- shard-skl: PASS -> FAIL [fdo#108472]
* igt@kms_frontbuffer_tracking@fbc-1p-primscrn-spr-indfb-draw-render:
- shard-glk: PASS -> FAIL [fdo#103167] +1
* igt@kms_frontbuffer_tracking@fbc-rgb101010-draw-pwrite:
- shard-skl: PASS -> FAIL [fdo#103167] / [fdo#105682]
* igt@kms_frontbuffer_tracking@fbcpsr-1p-offscren-pri-shrfb-draw-mmap-cpu:
- shard-skl: NOTRUN -> FAIL [fdo#103167] +2
* igt@kms_frontbuffer_tracking@psr-1p-offscren-pri-indfb-draw-render:
- shard-skl: PASS -> FAIL [fdo#103167] +2
* igt@kms_frontbuffer_tracking@psr-1p-offscren-pri-shrfb-draw-mmap-wc:
- {shard-iclb}: PASS -> DMESG-WARN [fdo#107724] / [fdo#108336] +1
* igt@kms_frontbuffer_tracking@psr-1p-primscrn-spr-indfb-draw-mmap-wc:
- {shard-iclb}: PASS -> FAIL [fdo#103167] +1
* igt@kms_plane@pixel-format-pipe-a-planes:
- shard-skl: NOTRUN -> FAIL [fdo#103166]
* {igt@kms_plane@pixel-format-pipe-c-planes-source-clamping}:
- shard-skl: NOTRUN -> DMESG-WARN [fdo#106885]
* igt@kms_plane@plane-panning-bottom-right-suspend-pipe-a-planes:
- shard-skl: NOTRUN -> INCOMPLETE [fdo#104108]
* igt@kms_plane_alpha_blend@pipe-a-constant-alpha-max:
- shard-skl: NOTRUN -> FAIL [fdo#108145] +3
* igt@kms_plane_alpha_blend@pipe-a-coverage-7efc:
- shard-skl: PASS -> FAIL [fdo#107815] / [fdo#108145]
* igt@kms_plane_alpha_blend@pipe-c-alpha-7efc:
- shard-skl: NOTRUN -> FAIL [fdo#107815] / [fdo#108145]
* igt@kms_plane_alpha_blend@pipe-c-alpha-basic:
- shard-apl: NOTRUN -> FAIL [fdo#108145]
* igt@kms_plane_alpha_blend@pipe-c-coverage-7efc:
- shard-skl: PASS -> FAIL [fdo#107815]
* igt@kms_plane_multiple@atomic-pipe-a-tiling-y:
- {shard-iclb}: PASS -> FAIL [fdo#103166] +2
* igt@kms_plane_multiple@atomic-pipe-a-tiling-yf:
- shard-glk: PASS -> FAIL [fdo#103166]
* igt@kms_plane_scaling@pipe-b-scaler-with-rotation:
- {shard-iclb}: PASS -> DMESG-WARN [fdo#107724] +3
* igt@kms_properties@connector-properties-atomic:
- shard-skl: NOTRUN -> FAIL [fdo#108642]
* igt@kms_rmfb@rmfb-ioctl:
- {shard-iclb}: NOTRUN -> DMESG-WARN [fdo#107724]
* {igt@kms_rotation_crc@multiplane-rotation-cropping-top}:
- {shard-iclb}: PASS -> DMESG-FAIL [fdo#107724]
- shard-glk: PASS -> DMESG-WARN [fdo#105763] / [fdo#106538]
* igt@kms_setmode@basic:
- {shard-iclb}: NOTRUN -> FAIL [fdo#99912]
* igt@pm_backlight@fade_with_dpms:
- {shard-iclb}: PASS -> INCOMPLETE [fdo#107820]
* igt@pm_rpm@debugfs-read:
- shard-skl: PASS -> INCOMPLETE [fdo#107807]
* igt@pm_rpm@legacy-planes-dpms:
- {shard-iclb}: PASS -> INCOMPLETE [fdo#108840]
* igt@pm_rpm@modeset-non-lpsp-stress:
- {shard-iclb}: SKIP -> INCOMPLETE [fdo#108840]
* igt@pm_rps@waitboost:
- {shard-iclb}: NOTRUN -> FAIL [fdo#102250] / [fdo#108059]
#### Possible fixes ####
* igt@gem_exec_nop@signal-all:
- shard-apl: INCOMPLETE [fdo#103927] -> PASS
* igt@kms_busy@basic-modeset-a:
- shard-apl: DMESG-WARN [fdo#103558] / [fdo#105602] -> PASS +8
* igt@kms_busy@extended-pageflip-modeset-hang-oldfb-render-a:
- shard-apl: DMESG-WARN [fdo#107956] -> PASS
* igt@kms_busy@extended-pageflip-modeset-hang-oldfb-render-c:
- shard-glk: DMESG-WARN [fdo#107956] -> PASS
* igt@kms_chv_cursor_fail@pipe-b-256x256-bottom-edge:
- shard-skl: FAIL [fdo#104671] -> PASS
* igt@kms_cursor_crc@cursor-128x128-random:
- shard-glk: FAIL [fdo#103232] -> PASS
* igt@kms_cursor_crc@cursor-128x128-suspend:
- shard-skl: INCOMPLETE [fdo#104108] -> PASS
* igt@kms_cursor_legacy@2x-long-cursor-vs-flip-atomic:
- shard-hsw: FAIL [fdo#105767] -> PASS
* igt@kms_flip@flip-vs-expired-vblank-interruptible:
- shard-skl: FAIL [fdo#105363] -> PASS
* igt@kms_frontbuffer_tracking@fbc-2p-primscrn-spr-indfb-move:
- shard-glk: FAIL [fdo#103167] -> PASS
* igt@kms_frontbuffer_tracking@fbcpsr-stridechange:
- {shard-iclb}: FAIL [fdo#105683] -> PASS
* igt@kms_frontbuffer_tracking@psr-1p-primscrn-spr-indfb-move:
- {shard-iclb}: FAIL [fdo#103167] -> PASS +4
* igt@kms_plane@pixel-format-pipe-c-planes:
- shard-glk: FAIL [fdo#103166] -> PASS
* {igt@kms_plane@pixel-format-pipe-c-planes-source-clamping}:
- shard-apl: FAIL [fdo#108948] -> PASS
* igt@kms_plane_alpha_blend@pipe-a-alpha-opaque-fb:
- shard-apl: FAIL [fdo#108145] -> PASS
* igt@kms_plane_alpha_blend@pipe-b-coverage-7efc:
- shard-skl: FAIL [fdo#107815] -> PASS
* igt@kms_plane_multiple@atomic-pipe-a-tiling-y:
- shard-apl: FAIL [fdo#103166] -> PASS
* igt@kms_rmfb@close-fd:
- {shard-iclb}: DMESG-WARN [fdo#107724] -> PASS
* igt@kms_vblank@pipe-b-ts-continuation-suspend:
- shard-hsw: FAIL [fdo#104894] -> PASS
* igt@perf@blocking:
- shard-hsw: FAIL [fdo#102252] -> PASS
* igt@pm_rpm@basic-pci-d3-state:
- shard-skl: INCOMPLETE [fdo#107807] -> PASS
* igt@pm_rpm@legacy-planes:
- {shard-iclb}: DMESG-WARN [fdo#108654] -> PASS
* igt@pm_rpm@universal-planes:
- {shard-iclb}: INCOMPLETE [fdo#108840] -> PASS
#### Warnings ####
* igt@i915_suspend@shrink:
- shard-snb: DMESG-WARN [fdo#108784] -> INCOMPLETE [fdo#105411] / [fdo#106886]
* igt@kms_frontbuffer_tracking@fbc-1p-primscrn-spr-indfb-draw-render:
- {shard-iclb}: FAIL [fdo#103167] -> DMESG-FAIL [fdo#107724]
* igt@kms_plane_multiple@atomic-pipe-a-tiling-yf:
- {shard-iclb}: FAIL [fdo#103166] -> DMESG-WARN [fdo#107724] / [fdo#108336]
* igt@kms_vblank@pipe-b-ts-continuation-dpms-suspend:
- {shard-iclb}: INCOMPLETE [fdo#107713] -> DMESG-WARN [fdo#107724]
{name}: This element is suppressed. This means it is ignored when computing
the status of the difference (SUCCESS, WARNING, or FAILURE).
[fdo#102250]: https://bugs.freedesktop.org/show_bug.cgi?id=102250
[fdo#102252]: https://bugs.freedesktop.org/show_bug.cgi?id=102252
[fdo#103158]: https://bugs.freedesktop.org/show_bug.cgi?id=103158
[fdo#103166]: https://bugs.freedesktop.org/show_bug.cgi?id=103166
[fdo#103167]: https://bugs.freedesktop.org/show_bug.cgi?id=103167
[fdo#103184]: https://bugs.freedesktop.org/show_bug.cgi?id=103184
[fdo#103232]: https://bugs.freedesktop.org/show_bug.cgi?id=103232
[fdo#103558]: https://bugs.freedesktop.org/show_bug.cgi?id=103558
[fdo#103927]: https://bugs.freedesktop.org/show_bug.cgi?id=103927
[fdo#104108]: https://bugs.freedesktop.org/show_bug.cgi?id=104108
[fdo#104671]: https://bugs.freedesktop.org/show_bug.cgi?id=104671
[fdo#104894]: https://bugs.freedesktop.org/show_bug.cgi?id=104894
[fdo#105363]: https://bugs.freedesktop.org/show_bug.cgi?id=105363
[fdo#105411]: https://bugs.freedesktop.org/show_bug.cgi?id=105411
[fdo#105602]: https://bugs.freedesktop.org/show_bug.cgi?id=105602
[fdo#105682]: https://bugs.freedesktop.org/show_bug.cgi?id=105682
[fdo#105683]: https://bugs.freedesktop.org/show_bug.cgi?id=105683
[fdo#105763]: https://bugs.freedesktop.org/show_bug.cgi?id=105763
[fdo#105767]: https://bugs.freedesktop.org/show_bug.cgi?id=105767
[fdo#106538]: https://bugs.freedesktop.org/show_bug.cgi?id=106538
[fdo#106641]: https://bugs.freedesktop.org/show_bug.cgi?id=106641
[fdo#106885]: https://bugs.freedesktop.org/show_bug.cgi?id=106885
[fdo#106886]: https://bugs.freedesktop.org/show_bug.cgi?id=106886
[fdo#107713]: https://bugs.freedesktop.org/show_bug.cgi?id=107713
[fdo#107724]: https://bugs.freedesktop.org/show_bug.cgi?id=107724
[fdo#107773]: https://bugs.freedesktop.org/show_bug.cgi?id=107773
[fdo#107807]: https://bugs.freedesktop.org/show_bug.cgi?id=107807
[fdo#107815]: https://bugs.freedesktop.org/show_bug.cgi?id=107815
[fdo#107820]: https://bugs.freedesktop.org/show_bug.cgi?id=107820
[fdo#107956]: https://bugs.freedesktop.org/show_bug.cgi?id=107956
[fdo#108059]: https://bugs.freedesktop.org/show_bug.cgi?id=108059
[fdo#108145]: https://bugs.freedesktop.org/show_bug.cgi?id=108145
[fdo#108336]: https://bugs.freedesktop.org/show_bug.cgi?id=108336
[fdo#108472]: https://bugs.freedesktop.org/show_bug.cgi?id=108472
[fdo#108642]: https://bugs.freedesktop.org/show_bug.cgi?id=108642
[fdo#108654]: https://bugs.freedesktop.org/show_bug.cgi?id=108654
[fdo#108784]: https://bugs.freedesktop.org/show_bug.cgi?id=108784
[fdo#108840]: https://bugs.freedesktop.org/show_bug.cgi?id=108840
[fdo#108948]: https://bugs.freedesktop.org/show_bug.cgi?id=108948
[fdo#99912]: https://bugs.freedesktop.org/show_bug.cgi?id=99912
Participating hosts (7 -> 7)
------------------------------
No changes in participating hosts
Build changes
-------------
* Linux: CI_DRM_5267 -> Patchwork_11025
CI_DRM_5267: 680d161b3cf77a94e05dfdedcdeed4f38e4b7fd8 @ git://anongit.freedesktop.org/gfx-ci/linux
IGT_4743: edb2db2cf2b6665d7ba3fa9117263302f6307a4f @ git://anongit.freedesktop.org/xorg/app/intel-gpu-tools
Patchwork_11025: 069ab7eb308298f19c1f008d4c7e9d70c4001d61 @ git://anongit.freedesktop.org/gfx-ci/linux
piglit_4509: fdc5a4ca11124ab8413c7988896eec4c97336694 @ git://anongit.freedesktop.org/piglit
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_11025/
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Re: [PATCH 2/3] ACPI / PMIC: Implement exec_mipi_pmic_seq_element for CHT Whiskey Cove PMIC
In reply to Ville SyrjäläHi Ville,
Thank you for the review.
Quoted 29 lines · Ville Syrjälä
Quoted 28 lines · Hans de Goede
Implement the
exec_mipi_pmic_seq_elementcallback for the CHT Whiskey Cove PMIC.On some CHT devices this fixes the LCD panel not lighting up when it was not initialized by the GOP, because an external monitor was plugged in and the GOP initialized only the external monitor.
Signed-off-by Hans de Goede <[email protected]>--- drivers/acpi/pmic/intel_pmic_chtwc.c | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+)drivers/acpi/pmic/intel_pmic_chtwc.c +1
-0@@ -12,6 +12,7 @@#include <linux/mfd/intel_soc_pmic.h> #include <linux/platform_device.h> #include <linux/regmap.h> +#include <asm/unaligned.h> #include "intel_pmic.h" #define CHT_WC_V1P05A_CTRL 0x6e3b@@ -231,6 +232,27 @@ static int intel_cht_wc_pmic_update_power(struct regmap *regmap, int reg,return regmap_update_bits (regmap, reg, bitmask, on ?1 :0 ); }
Quoted 12 lines
drivers/acpi/pmic/intel_pmic_chtwc.c static int intel_cht_wc_pmic_update_power(struct regmap *regmap, int reg, · line 244
Quoted 10 lines
drivers/acpi/pmic/intel_pmic_chtwc.c +10
-0+static void intel_cht_wc_exec_mipi_pmic_seq_element (struct regmap *regmap, +const u8 *data) +{ +u16 i2c_client_address, reg_address, address; +u32 value, mask; + + i2c_client_address =get_unaligned_be16 (data); + reg_address =get_unaligned_be16 (data +2 ); + value =get_unaligned_be32 (data +4 ); + mask =get_unaligned_be32 (data +8 );This doesn't match the docs:
Well I didn't have access to the docs, I just looked at the data and interpreted that, the first byte being reserved for future use tripped me up.
Quoted 10 lines
"Byte0 – PMIC Flag
Bits 7:0 = Reserved for future useByte2,1 – PMIC Slave Address
Bits 15:0 = Slave address for PMIC access
Each slave can address 256byte register space in generalBytes 6,5,4,3 – DWORD 0
Bits 31:0 = PMIC Register Address
Quoted 8 lines
Bytes 10,9,8,7 – DWORD 1
Bits 31:0 = PMIC Register DataBytes 14,13,12,11 – DWORD 2
Bits 31:0 = PMIC Register DataMask"Though I wouldn't be entirely surprised if the docs are simply wrong.
I think the docs are probably right, of the 2 sequences I'm seeing the OFF sequence has more 00 bytes, so the ON sequence is the most interesting, this is:
00 6e 00 3c 00 00 00 01 00 00 00 01 00 00 00
With my (big endian) interpretation that gives:
PMIC Slave Address 00 6e PMIC Register Address 00 3c PMIC Register Data 00 00 00 01 PMIC Register Mask 00 00 00 01
With the docs slightly shifted (little endian) interpretation that gives:
Reserverd 00 PMIC Slave Address 00 6e PMIC Register Address 00 00 00 3c PMIC Register Data 00 00 00 01 PMIC Register Mask 00 00 00 01
So the 2 interpretation agree for the data which I'm actually seeing used and the docs interpretation actually consumes all bytes.
I'll prepare a v2 of this patch-set using the docs interpretation of the bytes.
Regards,
Hans
Quoted 17 lines
Quoted 17 lines
drivers/acpi/pmic/intel_pmic_chtwc.c +11
-0+ +if ((i2c_client_address &0xff00 ) || (reg_address &0xff00 )) { +pr_warn ("%s warning addresses too big client 0x%x reg 0x%x\n" , + __func__, i2c_client_address, reg_address); +return ; + } + + address = (i2c_client_address <<8 ) | reg_address; +regmap_update_bits (regmap, address, mask, value); +} +/* * The thermal table and ops are empty, we do not support the Thermal opregion * (DPTF) due to lacking documentation. @@ -238,6 +260,7 @@ static int intel_cht_wc_pmic_update_power(struct regmap *regmap, int reg,static struct intel_pmic_opregion_data intel_cht_wc_pmic_opregion_data = {
Quoted 9 lines
Quoted 8 lines
drivers/acpi/pmic/intel_pmic_chtwc.c +1
-0.get_power = intel_cht_wc_pmic_get_power, .update_power = intel_cht_wc_pmic_update_power, + .exec_mipi_pmic_seq_element = intel_cht_wc_exec_mipi_pmic_seq_element, .power_table = power_table, .power_table_count = ARRAY_SIZE(power_table), };Signature · 1 line
2.19.2
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel