[Bug 49351] vga_switcheroo results in black screen (bisected)

bugzilla-daemon at bugzilla.kernel.org bugzilla-daemon at bugzilla.kernel.org
Tue Oct 23 08:44:39 PDT 2012


https://bugzilla.kernel.org/show_bug.cgi?id=49351





--- Comment #8 from Igor Murzov <e-mail at date.by>  2012-10-23 15:44:39 ---
Created an attachment (id=84451)
 --> (https://bugzilla.kernel.org/attachment.cgi?id=84451)
dmesg output for v3.7.0-rc2+ 

This dmesg output was produced with following changes:

----------------------------------------------
static int radeon_atpx_verify_interface(struct radeon_atpx *atpx)
{
        union acpi_object *info;
        struct atpx_verify_interface output;
        size_t size;
        int err = 0;
printk("*\n");
        info = radeon_atpx_call(atpx->handle, ATPX_FUNCTION_VERIFY_INTERFACE,
NULL);
        if (!info)
                return -EIO;
printk("**\n");
        memset(&output, 0, sizeof(output));

        size = *(u16 *) info->buffer.pointer;
        if (size < 8) {
                printk("ATPX buffer is too small: %zu\n", size);
                err = -EINVAL;
                goto out;
        }
printk("***\n");
        size = min(sizeof(output), size);

        memcpy(&output, info->buffer.pointer, size);

        /* TODO: check version? */
        printk("ATPX version %u\n", output.version);
printk("****\n");
        radeon_atpx_parse_functions(&atpx->functions, output.function_bits);

out:
        kfree(info);
        return err;
}
----------------------------------------------

And there is only one asterisk in the log:
----------------------------------------------
[   11.199661] vga_switcheroo: enabled
[   11.199747] *
----------------------------------------------

So it is clear that some error is encountered in radeon_atpx_call(atpx->handle,
ATPX_FUNCTION_VERIFY_INTERFACE, NULL);  That explains why there is no "ATPX
function mask" message in the log.

-- 
Configure bugmail: https://bugzilla.kernel.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching the assignee of the bug.


More information about the dri-devel mailing list