All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jeff Garzik <jgarzik@mandrakesoft.com>
To: Tim Hockin <thockin@sun.com>
Cc: groudier@club-internet.fr,
	Linux Kernel Mailing List <linux-kernel@vger.kernel.org>,
	alan@redhat.com
Subject: Re: [PATCH] sym53c8xx timer and smp fixes
Date: Fri, 01 Jun 2001 04:13:11 -0400	[thread overview]
Message-ID: <3B174E97.60DAA03E@mandrakesoft.com> (raw)
In-Reply-To: <3B16EF26.2F44BE3F@sun.com>

Tim Hockin wrote:
>  spinlock_t sym53c8xx_lock = SPIN_LOCK_UNLOCKED;
> +spinlock_t sym53c8xx_host_lock = SPIN_LOCK_UNLOCKED;
>  #define        NCR_LOCK_DRIVER(flags)     spin_lock_irqsave(&sym53c8xx_lock, flags)
>  #define        NCR_UNLOCK_DRIVER(flags)   spin_unlock_irqrestore(&sym53c8xx_lock,flags)
> +#define        NCR_LOCK_HOSTS(flags)     spin_lock_irqsave(&sym53c8xx_host_lock, flags)
> +#define        NCR_UNLOCK_HOSTS(flags)   spin_unlock_irqrestore(&sym53c8xx_host_lock,flags)
> 
>  #define NCR_INIT_LOCK_NCB(np)      spin_lock_init(&np->smp_lock);
>  #define        NCR_LOCK_NCB(np, flags)    spin_lock_irqsave(&np->smp_lock, flags)
> @@ -650,6 +655,8 @@
> 
>  #define        NCR_LOCK_DRIVER(flags)     do { save_flags(flags); cli(); } while (0)
>  #define        NCR_UNLOCK_DRIVER(flags)   do { restore_flags(flags); } while (0)
> +#define        NCR_LOCK_HOSTS(flags)     do { save_flags(flags); cli(); } while (0)
> +#define        NCR_UNLOCK_HOSTS(flags)   do { restore_flags(flags); } while (0)
> 
>  #define        NCR_INIT_LOCK_NCB(np)      do { } while (0)
>  #define        NCR_LOCK_NCB(np, flags)    do { save_flags(flags); cli(); } while (0)
> @@ -695,7 +702,7 @@

so, this driver is mixed spinlocks and save/restore_flags?  Any chance
this can be converted to all spinlocks?

>  #ifdef SCSI_NCR_DYNAMIC_DMA_MAPPING
> -       if (pci_set_dma_mask(pdev, (dma_addr_t) (0xffffffffUL))) {
> +       if (!pci_dma_supported(pdev, (dma_addr_t) (0xffffffffUL))) {

totally wrong.  you are going backwards.

-- 
Jeff Garzik      | Disbelief, that's why you fail.
Building 1024    |
MandrakeSoft     |

  reply	other threads:[~2001-06-01  8:13 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-06-01  1:25 [PATCH] sym53c8xx timer and smp fixes Tim Hockin
2001-06-01  8:13 ` Jeff Garzik [this message]
2001-06-01 17:18   ` Gérard Roudier
2001-06-03 17:18 ` Gérard Roudier
  -- strict thread matches above, loose matches on Subject: below --
2001-06-01  9:54 Studierende der Universitaet des Saarlandes

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3B174E97.60DAA03E@mandrakesoft.com \
    --to=jgarzik@mandrakesoft.com \
    --cc=alan@redhat.com \
    --cc=groudier@club-internet.fr \
    --cc=linux-kernel@vger.kernel.org \
    --cc=thockin@sun.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.