Displaying 4 results from an estimated 4 matches for "dod_entries".
2020 Jul 27
0
[PATCH 1/4] drm: retrieve EDID via ACPI _DDC method
...nux/pci.h>
#include <drm/drm_displayid.h>
#include <drm/drm_drv.h>
@@ -2058,6 +2059,166 @@ struct edid *drm_get_edid_switcheroo(struct drm_connector *connector,
}
EXPORT_SYMBOL(drm_get_edid_switcheroo);
+#if defined(CONFIG_ACPI) && defined(CONFIG_PCI)
+static u64 *get_dod_entries(acpi_handle handle, int *count)
+{
+ acpi_status status;
+ struct acpi_buffer buf = { ACPI_ALLOCATE_BUFFER, NULL };
+ union acpi_object *dod;
+ int i;
+ u64 *ret = NULL;
+
+ *count = 0;
+
+ status = acpi_evaluate_object(handle, "_DOD", NULL, &buf);
+
+ if (ACPI_FAILURE(status))
+ ret...
2020 Jul 27
6
[PATCH 0/4] drm: add support for retrieving EDID via ACPI _DDC
Some notebook systems provide the EDID for the internal panel via the
_DDC method in ACPI, instead of or in addition to providing the EDID via
DDC on LVDS/eDP. Add a DRM helper to search for an ACP _DDC method under
the ACPI namespace for each VGA/3D controller, and return the first EDID
successfully retrieved via _DDC. Update the i915, nouveau, and radeon
DRM-KMS drivers to fall back to
2020 Aug 08
2
[PATCH 1/4] drm: retrieve EDID via ACPI _DDC method
...--- a/drivers/gpu/drm/drm_edid.c
> +++ b/drivers/gpu/drm/drm_edid.c
> @@ -34,6 +34,7 @@
> #include <linux/module.h>
> #include <linux/slab.h>
> #include <linux/vga_switcheroo.h>
> +#include <linux/pci.h>
Nit: Alphabetic ordering.
> +static u64 *get_dod_entries(acpi_handle handle, int *count)
> +{
> + acpi_status status;
> + struct acpi_buffer buf = { ACPI_ALLOCATE_BUFFER, NULL };
> + union acpi_object *dod;
> + int i;
> + u64 *ret = NULL;
Nits: Reverse christmas tree.
"ret" is a poor name, I'd suggest "entries"...
2020 Aug 12
0
[PATCH 1/4] drm: retrieve EDID via ACPI _DDC method
...ur feedback into my local tree, but
will wait for additional feedback from the individual DRM driver
maintainers before sending out a series v2.
On 8/8/20 5:11 PM, Lukas Wunner wrote:
> On Mon, Jul 27, 2020 at 03:53:54PM -0500, Daniel Dadap wrote:
>> + for (i = 0; i < num_dod_entries; i++) {
>> + if (adr == dod_entries[i]) {
>> + ret = do_acpi_ddc(child->handle);
>> +
>> + if (ret != NULL)
>> + goto done;
> I guess ideally we'd...