* Re: [RFC: 2.6 patch] ppc: remove APUS support [not found] <20070701202206.GO10869@stusta.de> @ 2007-07-01 22:55 ` Geert Uytterhoeven 2007-07-01 23:08 ` Adrian Bunk 0 siblings, 1 reply; 3+ messages in thread From: Geert Uytterhoeven @ 2007-07-01 22:55 UTC (permalink / raw) To: Adrian Bunk Cc: linux-m68k, linux-kernel, linuxppc-dev, Paul Mackerras, Kumar Gala, David Gibson On Sun, 1 Jul 2007, Adrian Bunk wrote: > Current status of APUS: > - arch/powerpc/: a patch to remove it is in powerpc.git > - arch/ppc/: marked BROKEN since 2 years > > This patch therefore removes the remaining parts of APUS support. > --- linux-2.6.22-rc6-mm1/include/asm-m68k/pgtable.h.old 2007-06-30 01:23:33.000000000 +0200 > +++ linux-2.6.22-rc6-mm1/include/asm-m68k/pgtable.h 2007-06-30 01:23:43.000000000 +0200 > @@ -107,8 +107,6 @@ extern void *empty_zero_page; > /* 64-bit machines, beware! SRB. */ > #define SIZEOF_PTR_LOG2 2 > > -#define mm_end_of_chunk(addr, len) 0 > - > extern void kernel_set_cachemode(void *addr, unsigned long size, int cmode); > > /* > --- linux-2.6.22-rc6-mm1/drivers/scsi/a2091.c.old 2007-06-30 01:23:53.000000000 +0200 > +++ linux-2.6.22-rc6-mm1/drivers/scsi/a2091.c 2007-06-30 01:24:08.000000000 +0200 > @@ -46,8 +46,7 @@ static int dma_setup(struct scsi_cmnd *c > struct Scsi_Host *instance = cmd->device->host; > > /* don't allow DMA if the physical address is bad */ > - if (addr & A2091_XFER_MASK || > - (!dir_in && mm_end_of_chunk (addr, cmd->SCp.this_residual))) > + if (addr & A2091_XFER_MASK) > { > HDATA(instance)->dma_bounce_len = (cmd->SCp.this_residual + 511) > & ~0x1ff; > --- linux-2.6.22-rc6-mm1/drivers/scsi/a3000.c.old 2007-06-30 01:24:17.000000000 +0200 > +++ linux-2.6.22-rc6-mm1/drivers/scsi/a3000.c 2007-06-30 01:24:26.000000000 +0200 > @@ -54,8 +54,7 @@ static int dma_setup(struct scsi_cmnd *c > * end of a physical memory chunk, then allocate a bounce > * buffer > */ > - if (addr & A3000_XFER_MASK || > - (!dir_in && mm_end_of_chunk (addr, cmd->SCp.this_residual))) > + if (addr & A3000_XFER_MASK) > { > HDATA(a3000_host)->dma_bounce_len = (cmd->SCp.this_residual + 511) > & ~0x1ff; > --- linux-2.6.22-rc6-mm1/drivers/scsi/gvp11.c.old 2007-06-30 01:24:35.000000000 +0200 > +++ linux-2.6.22-rc6-mm1/drivers/scsi/gvp11.c 2007-06-30 01:24:46.000000000 +0200 > @@ -54,8 +54,7 @@ static int dma_setup(struct scsi_cmnd *c > static int scsi_alloc_out_of_range = 0; > > /* use bounce buffer if the physical address is bad */ > - if (addr & HDATA(cmd->device->host)->dma_xfer_mask || > - (!dir_in && mm_end_of_chunk (addr, cmd->SCp.this_residual))) > + if (addr & HDATA(cmd->device->host)->dma_xfer_mask) > { > HDATA(cmd->device->host)->dma_bounce_len = (cmd->SCp.this_residual + 511) > & ~0x1ff; These seem to be completely unrelated to removing APUS support? Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds ^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [RFC: 2.6 patch] ppc: remove APUS support 2007-07-01 22:55 ` [RFC: 2.6 patch] ppc: remove APUS support Geert Uytterhoeven @ 2007-07-01 23:08 ` Adrian Bunk 2007-07-01 23:24 ` Geert Uytterhoeven 0 siblings, 1 reply; 3+ messages in thread From: Adrian Bunk @ 2007-07-01 23:08 UTC (permalink / raw) To: Geert Uytterhoeven Cc: linux-m68k, linux-kernel, linuxppc-dev, Paul Mackerras, Kumar Gala, David Gibson On Mon, Jul 02, 2007 at 12:55:36AM +0200, Geert Uytterhoeven wrote: > On Sun, 1 Jul 2007, Adrian Bunk wrote: > > Current status of APUS: > > - arch/powerpc/: a patch to remove it is in powerpc.git > > - arch/ppc/: marked BROKEN since 2 years > > > > This patch therefore removes the remaining parts of APUS support. > > > --- linux-2.6.22-rc6-mm1/include/asm-m68k/pgtable.h.old 2007-06-30 01:23:33.000000000 +0200 > > +++ linux-2.6.22-rc6-mm1/include/asm-m68k/pgtable.h 2007-06-30 01:23:43.000000000 +0200 > > @@ -107,8 +107,6 @@ extern void *empty_zero_page; > > /* 64-bit machines, beware! SRB. */ > > #define SIZEOF_PTR_LOG2 2 > > > > -#define mm_end_of_chunk(addr, len) 0 > > - > > extern void kernel_set_cachemode(void *addr, unsigned long size, int cmode); > > > > /* > > --- linux-2.6.22-rc6-mm1/drivers/scsi/a2091.c.old 2007-06-30 01:23:53.000000000 +0200 > > +++ linux-2.6.22-rc6-mm1/drivers/scsi/a2091.c 2007-06-30 01:24:08.000000000 +0200 > > @@ -46,8 +46,7 @@ static int dma_setup(struct scsi_cmnd *c > > struct Scsi_Host *instance = cmd->device->host; > > > > /* don't allow DMA if the physical address is bad */ > > - if (addr & A2091_XFER_MASK || > > - (!dir_in && mm_end_of_chunk (addr, cmd->SCp.this_residual))) > > + if (addr & A2091_XFER_MASK) > > { > > HDATA(instance)->dma_bounce_len = (cmd->SCp.this_residual + 511) > > & ~0x1ff; > > --- linux-2.6.22-rc6-mm1/drivers/scsi/a3000.c.old 2007-06-30 01:24:17.000000000 +0200 > > +++ linux-2.6.22-rc6-mm1/drivers/scsi/a3000.c 2007-06-30 01:24:26.000000000 +0200 > > @@ -54,8 +54,7 @@ static int dma_setup(struct scsi_cmnd *c > > * end of a physical memory chunk, then allocate a bounce > > * buffer > > */ > > - if (addr & A3000_XFER_MASK || > > - (!dir_in && mm_end_of_chunk (addr, cmd->SCp.this_residual))) > > + if (addr & A3000_XFER_MASK) > > { > > HDATA(a3000_host)->dma_bounce_len = (cmd->SCp.this_residual + 511) > > & ~0x1ff; > > --- linux-2.6.22-rc6-mm1/drivers/scsi/gvp11.c.old 2007-06-30 01:24:35.000000000 +0200 > > +++ linux-2.6.22-rc6-mm1/drivers/scsi/gvp11.c 2007-06-30 01:24:46.000000000 +0200 > > @@ -54,8 +54,7 @@ static int dma_setup(struct scsi_cmnd *c > > static int scsi_alloc_out_of_range = 0; > > > > /* use bounce buffer if the physical address is bad */ > > - if (addr & HDATA(cmd->device->host)->dma_xfer_mask || > > - (!dir_in && mm_end_of_chunk (addr, cmd->SCp.this_residual))) > > + if (addr & HDATA(cmd->device->host)->dma_xfer_mask) > > { > > HDATA(cmd->device->host)->dma_bounce_len = (cmd->SCp.this_residual + 511) > > & ~0x1ff; > > These seem to be completely unrelated to removing APUS support? For APUS mm_end_of_chunk() was an actual function, otherwise it was always 0. > Gr{oetje,eeting}s, > > Geert cu Adrian -- "Is there not promise of rain?" Ling Tan asked suddenly out of the darkness. There had been need of rain for many days. "Only a promise," Lao Er said. Pearl S. Buck - Dragon Seed ^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [RFC: 2.6 patch] ppc: remove APUS support 2007-07-01 23:08 ` Adrian Bunk @ 2007-07-01 23:24 ` Geert Uytterhoeven 0 siblings, 0 replies; 3+ messages in thread From: Geert Uytterhoeven @ 2007-07-01 23:24 UTC (permalink / raw) To: Adrian Bunk Cc: linux-m68k, linux-kernel, linuxppc-dev, Paul Mackerras, Kumar Gala, David Gibson On Mon, 2 Jul 2007, Adrian Bunk wrote: > On Mon, Jul 02, 2007 at 12:55:36AM +0200, Geert Uytterhoeven wrote: > > On Sun, 1 Jul 2007, Adrian Bunk wrote: > > > Current status of APUS: > > > - arch/powerpc/: a patch to remove it is in powerpc.git > > > - arch/ppc/: marked BROKEN since 2 years > > > > > > This patch therefore removes the remaining parts of APUS support. > > > > > --- linux-2.6.22-rc6-mm1/include/asm-m68k/pgtable.h.old 2007-06-30 01:23:33.000000000 +0200 > > > +++ linux-2.6.22-rc6-mm1/include/asm-m68k/pgtable.h 2007-06-30 01:23:43.000000000 +0200 > > > @@ -107,8 +107,6 @@ extern void *empty_zero_page; > > > /* 64-bit machines, beware! SRB. */ > > > #define SIZEOF_PTR_LOG2 2 > > > > > > -#define mm_end_of_chunk(addr, len) 0 > > > - > > > extern void kernel_set_cachemode(void *addr, unsigned long size, int cmode); > > > > > > /* > > > --- linux-2.6.22-rc6-mm1/drivers/scsi/a2091.c.old 2007-06-30 01:23:53.000000000 +0200 > > > +++ linux-2.6.22-rc6-mm1/drivers/scsi/a2091.c 2007-06-30 01:24:08.000000000 +0200 > > > @@ -46,8 +46,7 @@ static int dma_setup(struct scsi_cmnd *c > > > struct Scsi_Host *instance = cmd->device->host; > > > > > > /* don't allow DMA if the physical address is bad */ > > > - if (addr & A2091_XFER_MASK || > > > - (!dir_in && mm_end_of_chunk (addr, cmd->SCp.this_residual))) > > > + if (addr & A2091_XFER_MASK) > > > { > > > HDATA(instance)->dma_bounce_len = (cmd->SCp.this_residual + 511) > > > & ~0x1ff; > > > --- linux-2.6.22-rc6-mm1/drivers/scsi/a3000.c.old 2007-06-30 01:24:17.000000000 +0200 > > > +++ linux-2.6.22-rc6-mm1/drivers/scsi/a3000.c 2007-06-30 01:24:26.000000000 +0200 > > > @@ -54,8 +54,7 @@ static int dma_setup(struct scsi_cmnd *c > > > * end of a physical memory chunk, then allocate a bounce > > > * buffer > > > */ > > > - if (addr & A3000_XFER_MASK || > > > - (!dir_in && mm_end_of_chunk (addr, cmd->SCp.this_residual))) > > > + if (addr & A3000_XFER_MASK) > > > { > > > HDATA(a3000_host)->dma_bounce_len = (cmd->SCp.this_residual + 511) > > > & ~0x1ff; > > > --- linux-2.6.22-rc6-mm1/drivers/scsi/gvp11.c.old 2007-06-30 01:24:35.000000000 +0200 > > > +++ linux-2.6.22-rc6-mm1/drivers/scsi/gvp11.c 2007-06-30 01:24:46.000000000 +0200 > > > @@ -54,8 +54,7 @@ static int dma_setup(struct scsi_cmnd *c > > > static int scsi_alloc_out_of_range = 0; > > > > > > /* use bounce buffer if the physical address is bad */ > > > - if (addr & HDATA(cmd->device->host)->dma_xfer_mask || > > > - (!dir_in && mm_end_of_chunk (addr, cmd->SCp.this_residual))) > > > + if (addr & HDATA(cmd->device->host)->dma_xfer_mask) > > > { > > > HDATA(cmd->device->host)->dma_bounce_len = (cmd->SCp.this_residual + 511) > > > & ~0x1ff; > > > > These seem to be completely unrelated to removing APUS support? > > For APUS mm_end_of_chunk() was an actual function, otherwise it was > always 0. Oops, you're right. Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds ^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2007-07-02 5:25 UTC | newest] Thread overview: 3+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- [not found] <20070701202206.GO10869@stusta.de> 2007-07-01 22:55 ` [RFC: 2.6 patch] ppc: remove APUS support Geert Uytterhoeven 2007-07-01 23:08 ` Adrian Bunk 2007-07-01 23:24 ` Geert Uytterhoeven
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).