From: "Gérard Roudier" <groudier@free.fr>
To: Anton Blanchard <anton@samba.org>
Cc: <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH] small sym-2 fix
Date: Thu, 15 Nov 2001 17:27:38 +0100 (CET) [thread overview]
Message-ID: <20011115172204.B1589-100000@gerard> (raw)
In-Reply-To: <20011115153654.E22552@krispykreme>
On Thu, 15 Nov 2001, Anton Blanchard wrote:
>
> Hi,
>
> I tested the sym-2 driver on ppc64 and found that hcb_p can be > 1 page
> but __sym_malloc fails for allocations over 1 page. This means we
> die in sym_attach.
The driver should not need more than 4096 bytes for a single allocation.
If the ppc64 page size is smaller, your patch is ok, otherwise something
may have to be fixed, likely in the driver. I cannot access to kernel
source immediately but I will check what kind of page size ppc64 is using
asap.
> With this patch the sym-2 works on ppc64. BTW so far it looks solid :)
Great!
Thanks for your report.
Regards,
Gérard.
>
> Anton
>
> diff -urN 2.4.15-pre4/drivers/scsi/sym53c8xx_2/sym_glue.h linuxppc_2_4_devel_work/drivers/scsi/sym53c8xx_2/sym_glue.h
> --- 2.4.15-pre4/drivers/scsi/sym53c8xx_2/sym_glue.h Thu Nov 15 13:38:02 2001
> +++ linuxppc_2_4_devel_work/drivers/scsi/sym53c8xx_2/sym_glue.h Tue Nov 13 18:03:07 2001
> @@ -526,7 +526,7 @@
> * couple of things related to the memory allocator.
> */
> typedef u_long m_addr_t; /* Enough bits to represent any address */
> -#define SYM_MEM_PAGE_ORDER 0 /* 1 PAGE maximum */
> +#define SYM_MEM_PAGE_ORDER 1 /* 2 PAGE maximum */
> #define SYM_MEM_CLUSTER_SHIFT (PAGE_SHIFT+SYM_MEM_PAGE_ORDER)
> #ifdef MODULE
> #define SYM_MEM_FREE_UNUSED /* Free unused pages immediately */
>
>
next prev parent reply other threads:[~2001-11-15 19:13 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-11-15 4:36 Anton Blanchard
2001-11-15 10:19 ` David S. Miller
2001-11-15 11:35 ` Anton Blanchard
2001-11-15 11:41 ` David S. Miller
2001-11-15 12:17 ` Anton Blanchard
2001-11-15 16:27 ` Gérard Roudier [this message]
2001-11-15 19:46 ` Gérard Roudier
2001-11-15 22:44 ` David S. Miller
2001-11-20 6:02 ` Anton Blanchard
2001-11-20 17:26 ` Gérard Roudier
2001-11-21 2:19 ` Anton Blanchard
2001-11-21 17:19 ` Gérard Roudier
2001-11-22 5:19 ` Paul Mackerras
2001-11-21 3:49 ` David S. Miller
2001-11-15 22:39 ` David S. Miller
2001-11-15 20:41 ` Gérard Roudier
2001-11-15 19:26 ` David S. Miller
2001-11-15 18:07 ` Gérard Roudier
2001-11-15 21:22 ` Hugh Dickins
2001-11-15 20:22 ` Gérard Roudier
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=20011115172204.B1589-100000@gerard \
--to=groudier@free.fr \
--cc=anton@samba.org \
--cc=linux-kernel@vger.kernel.org \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®