From patchwork Mon Oct 12 08:57:10 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christian Lamparter X-Patchwork-Id: 53079 Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id n9C956hX021321 for ; Mon, 12 Oct 2009 09:05:06 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755118AbZJLI56 (ORCPT ); Mon, 12 Oct 2009 04:57:58 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1755119AbZJLI55 (ORCPT ); Mon, 12 Oct 2009 04:57:57 -0400 Received: from mail-ew0-f208.google.com ([209.85.219.208]:45365 "EHLO mail-ew0-f208.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755117AbZJLI54 (ORCPT ); Mon, 12 Oct 2009 04:57:56 -0400 Received: by ewy4 with SMTP id 4so2278610ewy.37 for ; Mon, 12 Oct 2009 01:57:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:received:received:received:received:received :from:to:subject:date:user-agent:cc:references:in-reply-to :mime-version:content-type:message-id; bh=TGKARmn79whw7UuoAw8YMUE60Kfv9QvgF3LZtgiUJOc=; b=hZ5u8p1LSQoQy8FLX0Wz2K+976lehE9uGtonXdZk50OT0Q8K2uxg18wdek3zFsLAVi IMUYSg4wWjA/dRw82kPpnsFSCTk2q9uck5VRY0m69Lomcp/89c3YrZgaZ92JyWAcIiRg M+N/cbTBtOpmSczeEfRFWxk5ONV6hBeIO1jo4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=from:to:subject:date:user-agent:cc:references:in-reply-to :mime-version:content-type:message-id; b=v01JUax/ooY39jZIDs9EtNppJ3cfPm/DVwvnp9nny7tV+fcqKvx/zEwxlENCKqssSE UJ0Gc2GFtd3p30gyXZtK6BdqRA9SqmplG+8GgWxgMMDEBIPrxkLsBiUyPbTZ1pfvhLRQ fKW9JTRg7TpSN2KRc/iPJn3f+/hbC5lKyHqwo= Received: by 10.211.128.17 with SMTP id f17mr6816552ebn.69.1255337839831; Mon, 12 Oct 2009 01:57:19 -0700 (PDT) Received: from blech.mobile (nat-wh.rz.uni-karlsruhe.de [129.13.72.197]) by mx.google.com with ESMTPS id 7sm810606eyb.40.2009.10.12.01.57.18 (version=TLSv1/SSLv3 cipher=RC4-MD5); Mon, 12 Oct 2009 01:57:19 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by blech.mobile (Postfix) with ESMTP id F323B346436; Mon, 12 Oct 2009 10:57:14 +0200 (CEST) Received: from blech.mobile ([127.0.0.1]) by localhost (localhost [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id eXZYSn-9AFVu; Mon, 12 Oct 2009 10:57:11 +0200 (CEST) Received: from blech.mobile (localhost [127.0.0.1]) by blech.mobile (Postfix) with ESMTP id D719D3463E1; Mon, 12 Oct 2009 10:57:10 +0200 (CEST) From: Christian Lamparter To: Quintin Pitts Subject: Re: [RFC] p54pci: skb_over_panic, soft lockup, stall under flood Date: Mon, 12 Oct 2009 10:57:10 +0200 User-Agent: KMail/1.12.2 (Linux/2.6.32-rc3-wl; KDE/4.3.2; x86_64; ; ) Cc: Larry Finger , "linux-wireless" References: <4AD1EBA7.904@gmail.com> <4AD1FA5E.1010201@lwfinger.net> <4AD273B2.5000607@gmail.com> In-Reply-To: <4AD273B2.5000607@gmail.com> MIME-Version: 1.0 Message-Id: <200910121057.10381.chunkeey@googlemail.com> Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org diff --git a/drivers/net/wireless/p54/p54pci.c b/drivers/net/wireless/p54/p54pci.c index d348c26..c1b1bee 100644 --- a/drivers/net/wireless/p54/p54pci.c +++ b/drivers/net/wireless/p54/p54pci.c @@ -473,6 +473,7 @@ static int __devinit p54p_probe(struct pci_dev *pdev, struct ieee80211_hw *dev; unsigned long mem_addr, mem_len; int err; + u8 latency; err = pci_enable_device(pdev); if (err) { @@ -493,6 +494,12 @@ static int __devinit p54p_probe(struct pci_dev *pdev, goto err_disable_dev; } + pci_read_config_byte(pdev, PCI_LATENCY_TIMER, &latency); + if (latency < 64) { + dev_info(&pdev->dev, "set latency timer\n"); + pci_write_config_byte(pdev, PCI_LATENCY_TIMER, 80); + } + if (pci_set_dma_mask(pdev, DMA_BIT_MASK(32)) || pci_set_consistent_dma_mask(pdev, DMA_BIT_MASK(32))) { dev_err(&pdev->dev, "No suitable DMA available\n");