From owner-freebsd-current@FreeBSD.ORG Sun Feb 15 18:45:46 2015 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id DCEA6D40; Sun, 15 Feb 2015 18:45:45 +0000 (UTC) Received: from mail-qg0-x236.google.com (mail-qg0-x236.google.com [IPv6:2607:f8b0:400d:c04::236]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 917EF8F4; Sun, 15 Feb 2015 18:45:45 +0000 (UTC) Received: by mail-qg0-f54.google.com with SMTP id z60so20498675qgd.13; Sun, 15 Feb 2015 10:45:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=Qqu7D27pyCIAL99xLFmfy0VYXZhkR/wyvx6QPprZQmM=; b=dqS/SQTzRaI6q6WvuW9hmcmjqJNziEnO1dhYYSJO2omL8pY/t6hgTMg++20armNBOT 6s3GgzqrIdHKtD4S7lzKo2KEMxIGwd1iKryphujGQ3cqFH9hxSXzohiu2dJpy/fyiuJ6 n2mtpFiRLLIBKyUaDGzmChnso1/sKHhJuYEylg0zGeeEc2b+R5tN38SLjg+ZK8p+AfNc 7vNKrgDzIFPZgjAPrydWrylc1y1unMPfwqphJKdfZ0R95bF/8cK1Pd8ie1XX2hStnR/G EN3OoTggwa2LjSwwE6u0EzrDDeUVcAlj6tVWJVCuwSOnSBofOqqwWammlHjQfBb2nEPb Vkmg== MIME-Version: 1.0 X-Received: by 10.140.102.142 with SMTP id w14mr105902qge.88.1424025944654; Sun, 15 Feb 2015 10:45:44 -0800 (PST) Received: by 10.140.27.138 with HTTP; Sun, 15 Feb 2015 10:45:44 -0800 (PST) In-Reply-To: <20150215151141.GB34251@kib.kiev.ua> References: <20150215151141.GB34251@kib.kiev.ua> Date: Sun, 15 Feb 2015 19:45:44 +0100 Message-ID: Subject: Re: Suspend/resume on i915 stop working between r278348 and r278741. From: "Ranjan1018 ." <214748mv@gmail.com> To: Konstantin Belousov Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.18-1 Cc: Adrian Chadd , FreeBSD CURRENT X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 15 Feb 2015 18:45:46 -0000 2015-02-15 16:11 GMT+01:00 Konstantin Belousov : > On Sun, Feb 15, 2015 at 03:37:17PM +0100, Ranjan1018 . wrote: > > Hi, > > the bug was introduced in r278473. Suspend/resume works again if I > disable > > the x2APIC support with hw.x2apic_enable=0 in /boot/loader.conf, tested > in > > r278473 and r278741. > > So how it is related to i915 ? > > Sorry, just my guess. > Try the patch. > > diff --git a/sys/x86/x86/local_apic.c b/sys/x86/x86/local_apic.c > index 1809fa6..c8ea35e 100644 > --- a/sys/x86/x86/local_apic.c > +++ b/sys/x86/x86/local_apic.c > @@ -541,6 +541,9 @@ native_lapic_setup(int boot) > > saveintr = intr_disable(); > > + if (!boot && x2apic_mode) > + native_lapic_enable_x2apic(); > + > la = &lapics[lapic_id()]; > KASSERT(la->la_present, ("missing APIC structure")); > maxlvt = (lapic_read32(LAPIC_VERSION) & APIC_VER_MAXLVT) >> > MAXLVTSHIFT; > Unfortunately does not work for me. Tested with r278803. Regards, Maurizio