Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S964910AbWLTGuj (ORCPT ); Wed, 20 Dec 2006 01:50:39 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S964924AbWLTGuj (ORCPT ); Wed, 20 Dec 2006 01:50:39 -0500 Received: from ug-out-1314.google.com ([66.249.92.169]:60575 "EHLO ug-out-1314.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S964910AbWLTGui (ORCPT ); Wed, 20 Dec 2006 01:50:38 -0500 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:sender:to:subject:cc:in-reply-to:mime-version:content-type:references:x-google-sender-auth; b=sqr0samiDO5VQ1jHw/UjYO3lw3AsnncOvYV5IlfBB1aLKrJo7pEuMj0MswBsKl5tSZNpaC2dokaZNx00OGeLZ0s53tSkmjRvNCQMfTYyUjzIU3KjTPsFQnRLveu/BEMyAFFWp46Uiy8kexbBZG76lKnCQ9qjgTTWgcZta0AyPMU= Message-ID: <86802c440612192250l50805d40h71baa7ce6f99a3e5@mail.gmail.com> Date: Tue, 19 Dec 2006 22:50:33 -0800 From: "Yinghai Lu" To: "Eric W. Biederman" Subject: Re: IO-APIC + timer doesn't work Cc: "Tobias Diedrich" , "Linus Torvalds" , "Linux Kernel Mailing List" , "Andi Kleen" , "Andrew Morton" In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_24623_27247511.1166597433766" References: <20061216225338.GA2616@melchior.yamamaya.is-a-geek.org> <20061216230605.GA2789@melchior.yamamaya.is-a-geek.org> <20061217145714.GA2987@melchior.yamamaya.is-a-geek.org> <20061218152333.GA2400@melchior.yamamaya.is-a-geek.org> <86802c440612190000k7eb5e68et9c0a776ef85b5177@mail.gmail.com> X-Google-Sender-Auth: 5507d94efe309e37 Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 9557 Lines: 139 ------=_Part_24623_27247511.1166597433766 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline On 12/19/06, Eric W. Biederman wrote: > So the pin2 case should be tested right after the pin1 case as we do > currently. On most new boards that will be a complete noop. > > But it is better than our current blind guess at using ExtINT mode. > > I figure after we try what the BIOS has told us about and that > has failed we should first try the common irq 0 apic mappings, > and then try the common ExtINT mappings. Please check if this one is ok. ------=_Part_24623_27247511.1166597433766 Content-Type: text/x-patch; name=timers_12192006.patch; charset=ANSI_X3.4-1968 Content-Transfer-Encoding: base64 X-Attachment-Id: f_evxdxfjk Content-Disposition: attachment; filename="timers_12192006.patch" W1BBVENIXSB4ODZfNjQ6IGNoZWNrX3RpbWVyIHdpdGggaW8gYXBpYyBzZXR1cCBiZWZvcmUgdHJ5 X2FwaWNfcGluCgphZGQgaW8gYXBpYyBzZXR1cCBiZWZvcmUgdHJ5X2FwaWNfcGluCgpjYzogQW5k aSBLbGVlbiA8YWtAc3VzZS5kZT4KY2M6IEVyaWMgVy4gQmllZGVybWFuIDxlYmllZGVybUB4bWlz c2lvbi5jb20+ClNpZ25lZC1vZmYtYnk6IFlpbmdoYWkgTHUgPHlpbmdoYWkubHVAYW1kLmNvbT4K CmRpZmYgLS1naXQgYS9hcmNoL3g4Nl82NC9rZXJuZWwvaW9fYXBpYy5jIGIvYXJjaC94ODZfNjQv a2VybmVsL2lvX2FwaWMuYwppbmRleCAyYTFkY2Q1Li42ZDA5ZmMwIDEwMDY0NAotLS0gYS9hcmNo L3g4Nl82NC9rZXJuZWwvaW9fYXBpYy5jCisrKyBiL2FyY2gveDg2XzY0L2tlcm5lbC9pb19hcGlj LmMKQEAgLTI3MywxMCArMjczLDE3IEBAIHN0YXRpYyB2b2lkIGFkZF9waW5fdG9faXJxKHVuc2ln bmVkIGludCBpcnEsIGludCBhcGljLCBpbnQgcGluKQogCXN0cnVjdCBpcnFfcGluX2xpc3QgKmVu dHJ5ID0gaXJxXzJfcGluICsga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leHQpIAorCQkJZW50 cnkgPSBpcnFfMl9waW4gKyBlbnRyeS0+bmV4dDsKKwl9CisKK30KKwogCiAjZGVmaW5lIERPX0FD VElPTihuYW1lLFIsQUNUSU9OLCBGSU5BTCkJCQkJCVwKIAkJCQkJCQkJCVwKQEAgLTM2Nyw2ICsz OTIsMzQgQEAgc3RhdGljIGludCBmaW5kX2lycV9lbnRyeShpbnQgYXBpYywgaW50IHBpbiwgaW50 IHR5cGUpCiAJcmV0dXJuIC0xOwogfQogCitzdGF0aWMgaW50IGFkZF9pcnFfZW50cnkoaW50IHR5 cGUsIGludCBpcnFmbGFnLCBpbnQgYnVzLCBpbnQgaXJxLCBpbnQgYXBpYywgaW50IHBpbikKK3sK KyAgICAgICAgc3RydWN0IG1wY19jb25maWdfaW50c3JjIGludHNyYzsKKwlpbnQgaWR4OworCisg ICAgICAgIGludHNyYy5tcGNfdHlwZSA9IE1QX0lOVFNSQzsKKyAgICAgICAgaW50c3JjLm1wY19p cnFmbGFnID0gaXJxZmxhZzsgLyogY29uZm9ybWluZyAqLworICAgICAgICBpbnRzcmMubXBjX3Ny Y2J1cyA9IGJ1czsKKyAgICAgICAgaW50c3JjLm1wY19kc3RhcGljID0gKGFwaWMgIT0gLTEpID8g bXBfaW9hcGljc1thcGljXS5tcGNfYXBpY2lkOiBNUF9BUElDX0FMTDsKKworICAgICAgICBpbnRz cmMubXBjX2lycXR5cGUgPSB0eXBlOworCisgICAgICAgIGludHNyYy5tcGNfc3JjYnVzaXJxID0g aXJxOworICAgICAgICBpbnRzcmMubXBjX2RzdGlycSA9IHBpbjsKKworICAgICAgICBtcF9pcnFz IFttcF9pcnFfZW50cmllc10gPSBpbnRzcmM7CisgICAgICAgIERwcmludGsoIkludDogdHlwZSAl ZCwgcG9sICVkLCB0cmlnICVkLCBidXMgJWQsIgorICAgICAgICAgICAgICAgICIgSVJRICUwMngs IEFQSUMgSUQgJXgsIEFQSUMgSU5UICUwMnhcbiIsCisgICAgICAgICAgICAgICAgICAgICAgICBp bnRzcmMubXBjX2lycXR5cGUsIGludHNyYy5tcGNfaXJxZmxhZyAmIDMsCisgICAgICAgICAgICAg ICAgICAgICAgICAoaW50c3JjLm1wY19pcnFmbGFnID4+IDIpICYgMywgaW50c3JjLm1wY19zcmNi dXMsCisgICAgICAgICAgICAgICAgICAgICAgICBpbnRzcmMubXBjX3NyY2J1c2lycSwgaW50c3Jj Lm1wY19kc3RhcGljLCBpbnRzcmMubXBjX2RzdGlycSk7CisgICAgICAgIGlkeCA9IG1wX2lycV9l bnRyaWVzOworCWlmICgrK21wX2lycV9lbnRyaWVzID49IE1BWF9JUlFfU09VUkNFUykKKyAgICAg ICAgICAgICAgICBwYW5pYygiTWF4ICMgb2YgaXJxIHNvdXJjZXMgZXhjZWVkZWQhIVxuIik7CisJ cmV0dXJuIGlkeDsKKworfQorCiAvKgogICogRmluZCB0aGUgcGluIHRvIHdoaWNoIElSUVtpcnFd IChJU0EpIGlzIGNvbm5lY3RlZAogICovCkBAIC0xNTcwLDYgKzE2NTgsMjIgQEAgc3RhdGljIGlu bGluZSB2b2lkIHVubG9ja19FeHRJTlRfbG9naWModm9pZCkKICAqIGZhbmF0aWNhbGx5IG9uIGhp cyB0cnVseSBidWdneSBib2FyZC4KICAqLwogCitzdGF0aWMgdm9pZCBzZXRfdHJ5X2FwaWNfcGlu KGludCBhcGljLCBpbnQgcGluLCBpbnQgdHlwZSkKK3sKKwlpbnQgaWR4OworCWludCBpcnEgPSAw OworCWludCBidXMgPSAwOyAvKiBNUF9JU0FfQlVTICovCisJaW50IGlycWZsYWcgPSA1OyAvKiBN UF9JUlFfVFJJR0dFUl9FREdFfE1QX0lSUV9QT0xBUklUWV9ISUdIICovCisKKwlpZHggPSBmaW5k X2lycV9lbnRyeShhcGljLHBpbix0eXBlKTsKKworCWlmIChpZHggPT0gLTEpIAorCQlpZHggPSBh ZGRfaXJxX2VudHJ5KHR5cGUsIGlycWZsYWcsIGJ1cywgaXJxLCBhcGljLCBwaW4pO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YzIsIHBpbjIpOworCQll bmFibGVfODI1OUFfaXJxKDApOwogCQlpZiAodHJ5X2FwaWNfcGluKGFwaWMyLHBpbjIsIjgyNTlB IGJyb2FkY2FzdCBFeHRJTlQgZnJvbSBCSU9TIikpCiAJCQlyZXR1cm47CisJCWNsZWFyX0lPX0FQ SUNfcGluKGFwaWMyLCBwaW4yKTsKKwkJcmVtb3ZlX3Bpbl90b19pcnEoMCwgYXBpYzIsIHBpbjIp OworCX0KKworCS8qIEFsd2F5cyB0cnkgcGluMCBhbmQgcGluMiBvbiBBUElDIDAgdG8gaGFuZGxl IGJ1Z2d5IHRpbWVyIG92ZXJyaWRlcworCSAgIG9uIE52aWRpYSBib2FyZHMgKi8KKwlmb3IgKGkg PSAwOyBpIDw9IDI7IGkgKz0gMikgCisJaWYgKCEoYXBpYzEgPT0gMCAmJiBwaW4xID09IGkpKSB7 CisJCS8qIHNldF90cnlfYXBpY19waW4gd2lsbCBjYWxsIGRpc2FibGVfODI1OUFfaXJxICovCisJ CXNldF90cnlfYXBpY19waW4oMCwgaSwgbXBfSU5UKTsgCisJCXVubWFza19JT19BUElDX2lycSgw KTsKKwkJaWYgKHRyeV9hcGljX3BpbigwLCBpLCAiZmFsbGJhY2sgd2l0aCA4MjU5IElSUTAgZGlz YWJsZWQiKSkKKwkJCXJldHVybjsKKworCQljbGVhcl9JT19BUElDX3BpbigwLCBpKTsKKwkJcmVt b3ZlX3Bpbl90b19pcnEoMCwgMCwgaSk7CiAJfQogCiAJLyogVHJpZWQgYWxsIHBvc3NpYmlsaXRp ZXMgdG8gZ28gdGhyb3VnaCB0aGUgSU8tQVBJQy4gTm93IGNvbWUgdGhlCg== ------=_Part_24623_27247511.1166597433766-- - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/