On Sun, Feb 11, 2018 at 12:47 AM, Peter Humphrey <[email protected]> wrote:
>
> [drm:dce_v11_0_afmt_setmode] *ERROR* Couldn't read SADs: 0
> [...]
> traps: plugin-containe[6833] general protection ip:7f0a2e1711b1 
> sp:7fff6f64dc30 error:0 in ld-2.25.so[7f0a2e15c000+23000]
>
> What is a SAD (other than a seasonal affective disorder)? That library comes
> from glibc, of which I've had 5 versions or revisions in that time

Never heard of it neither. Digging into the kernel source gives

static void radeon_audio_write_sad_regs(struct drm_encoder *encoder)
{
           struct drm_connector *connector = radeon_get_connector_for_encoder$
           struct radeon_encoder *radeon_encoder = to_radeon_encoder(encoder);
           struct cea_sad *sads;
           int sad_count;

           if (!connector)
                   return;

           sad_count = drm_edid_to_sad(radeon_connector_edid(connector), &sad$
           if (sad_count <= 0) {
                   DRM_ERROR("Couldn't read SADs: %d\n", sad_count);
                   return;
           }
           BUG_ON(!sads);

           if (radeon_encoder->audio && radeon_encoder->audio->write_sad_regs)
                   radeon_encoder->audio->write_sad_regs(encoder, sads, sad_c$

        kfree(sads);
}


in theses files

drivers/gpu/drm/radeon/radeon_audio.c
drivers/gpu/drm/amd/amdgpu/dce_v6_0.c
drivers/gpu/drm/amd/amdgpu/dce_v10_0.c
drivers/gpu/drm/amd/amdgpu/dce_v11_0.c
drivers/gpu/drm/amd/amdgpu/dce_v8_0.c

which ``drm_edid_to_sad‘’ is defined in drivers/gpu/drm/drm_edid.c.
Comments read

/**
 * drm_edid_to_sad - extracts SADs from EDID
 * @edid: EDID to parse
 * @sads: pointer that will be set to the extracted SADs
 *
 * Looks for CEA EDID block and extracts SADs (Short Audio Descriptors) fr$
 *
 * Note: The returned pointer needs to be freed using kfree().
 *
 * Return: The number of found SADs or negative number on error.
 */

Considering the term ``EDID'' and some audio related words, I think
it's reading some info from your monitor.

-- 
Silence is golden.

Reply via email to