linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
  • * 2.6.23-rc6-mm1 -- powerpc link failure
           [not found] <20070918011841.2381bd93.akpm@linux-foundation.org>
           [not found] ` <46EF96CC.1080807@linux.vnet.ibm.com>
    @ 2007-09-19  9:28 ` Andy Whitcroft
      2007-09-19 16:36   ` Segher Boessenkool
      2007-09-19 17:44   ` Sam Ravnborg
      2007-09-19  9:36 ` 2.6.23-rc6-mm1 -- powerpc pSeries_log_error panic in rtas_call/early_enable_eeh Andy Whitcroft
                       ` (3 subsequent siblings)
      5 siblings, 2 replies; 29+ messages in thread
    From: Andy Whitcroft @ 2007-09-19  9:28 UTC (permalink / raw)
      To: Andrew Morton; +Cc: linuxppc-dev, linux-kernel
    
    I am seeing this strange link error from a PowerMac G5 (powerpc):
    
      [...]
        KSYM    .tmp_kallsyms2.S
        AS      .tmp_kallsyms2.o
        LD      vmlinux.o
      ld: dynreloc miscount for fs/built-in.o, section .opd
      ld: can not edit opd Bad value
      make: *** [vmlinux.o] Error 1
    
    Compiler version below.
    
    root@elm3b19:~# gcc -v
    Using built-in specs.
    Target: powerpc-linux-gnu
    Configured with: ../src/configure -v
    --enable-languages=c,c++,java,f95,objc,ada,treelang --prefix=/usr
    --enable-shared --with-system-zlib --libexecdir=/usr/lib
    --without-included-gettext --enable-threads=posix --enable-nls
    --program-suffix=-4.0 --enable-__cxa_atexit --enable-clocale=gnu
    --enable-libstdcxx-debug --enable-java-awt=gtk-default
    --enable-gtk-cairo
    --with-java-home=/usr/lib/jvm/java-1.4.2-gcj-4.0-1.4.2.0/jre
    --enable-mpfr --disable-softfloat
    --enable-targets=powerpc-linux,powerpc64-linux --with-cpu=default32
    --disable-werror --enable-checking=release powerpc-linux-gnu
    Thread model: posix
    gcc version 4.0.3 (Ubuntu 4.0.3-1ubuntu5)
    
    -apw
    
    ^ permalink raw reply	[flat|nested] 29+ messages in thread
  • * 2.6.23-rc6-mm1 -- powerpc pSeries_log_error panic in rtas_call/early_enable_eeh
           [not found] <20070918011841.2381bd93.akpm@linux-foundation.org>
           [not found] ` <46EF96CC.1080807@linux.vnet.ibm.com>
      2007-09-19  9:28 ` 2.6.23-rc6-mm1 -- powerpc link failure Andy Whitcroft
    @ 2007-09-19  9:36 ` Andy Whitcroft
           [not found] ` <20070918174408.GC1804@skynet.ie>
                       ` (2 subsequent siblings)
      5 siblings, 0 replies; 29+ messages in thread
    From: Andy Whitcroft @ 2007-09-19  9:36 UTC (permalink / raw)
      To: Andrew Morton; +Cc: linuxppc-dev, linux-kernel
    
    Seeing the following panic booting an old powerpc LPAR:
    
    Unable to handle kernel paging request for data at address 0x00000000
    Faulting instruction address: 0xc000000000047b48
    cpu 0x0: Vector: 300 (Data Access) at [c0000000006a3750]
        pc: c000000000047b48: .pSeries_log_error+0x364/0x420
        lr: c000000000047acc: .pSeries_log_error+0x2e8/0x420
        sp: c0000000006a39d0
       msr: 8000000000001032
       dar: 0
     dsisr: 42000000
      current = 0xc0000000005acab0
      paca    = 0xc0000000005ad700
        pid   = 0, comm = swapper
    enter ? for help
    [c0000000006a3af0] c000000000021164 .rtas_call+0x200/0x250
    [c0000000006a3ba0] c000000000049d50 .early_enable_eeh+0x168/0x360
    [c0000000006a3c70] c00000000002f674 .traverse_pci_devices+0x8c/0x138
    [c0000000006a3d10] c000000000560ce8 .eeh_init+0x1a8/0x200
    [c0000000006a3db0] c00000000055fb70 .pSeries_setup_arch+0x128/0x234
    [c0000000006a3e40] c00000000054f830 .setup_arch+0x214/0x24c
    [c0000000006a3ee0] c000000000546a38 .start_kernel+0xd4/0x3e4
    [c0000000006a3f90] c00000000045adc4 .start_here_common+0x54/0x58
    0:mon>
    
    This machine is:
    
    # cat /proc/cpuinfo
    processor       : 0
    cpu             : POWER4+ (gq)
    clock           : 1703.965296MHz
    revision        : 19.0
    
    [...]
    machine         : CHRP IBM,7040-681
    
    -apw
    
    ^ permalink raw reply	[flat|nested] 29+ messages in thread
  • [parent not found: <20070918174408.GC1804@skynet.ie>]
  • * 2.6.23-rc6-mm1: Build failure on ppc64 drivers/ata/pata_scc.c
           [not found] <20070918011841.2381bd93.akpm@linux-foundation.org>
                       ` (3 preceding siblings ...)
           [not found] ` <20070918174408.GC1804@skynet.ie>
    @ 2007-09-20 13:13 ` Mel Gorman
      2007-09-20 14:09   ` Alan Cox
      2007-09-20 13:25 ` Build failure on ppc64 drivers/block/ps3disk.c Mel Gorman
      5 siblings, 1 reply; 29+ messages in thread
    From: Mel Gorman @ 2007-09-20 13:13 UTC (permalink / raw)
      To: Andrew Morton; +Cc: linux-ide, linux-kernel, jeff, linuxppc-dev
    
    PPC64 building allmodconfig fails to compile drivers/ata/pata_scc.c . It
    doesn't show up on other arches because this driver is specific to the
    architecture.
    
    drivers/ata/pata_scc.c: In function `scc_bmdma_status':
    drivers/ata/pata_scc.c:734: error: structure has no member named `active_tag'
    drivers/ata/pata_scc.c: In function `scc_pata_prereset':
    drivers/ata/pata_scc.c:866: warning: passing arg 1 of `ata_std_prereset' from incompatible pointer type
    drivers/ata/pata_scc.c: In function `scc_error_handler':
    drivers/ata/pata_scc.c:908: warning: passing arg 2 of `ata_bmdma_drive_eh' from incompatible pointer type
    drivers/ata/pata_scc.c:908: warning: passing arg 3 of `ata_bmdma_drive_eh' from incompatible pointer type
    drivers/ata/pata_scc.c:908: warning: passing arg 5 of `ata_bmdma_drive_eh' from incompatible pointer type
    make[2]: *** [drivers/ata/pata_scc.o] Error 1
    make[1]: *** [drivers/ata] Error 2
    make: *** [drivers] Error 2
    
    The problem seems to be in git-libata-all.patch but based on similar
    changes in this patch, the following patch should be the fix. 
    
    Signed-off-by: Mel Gorman <mel@csn.ul.ie>
    --- 
     drivers/ata/pata_scc.c |    2 +-
     1 file changed, 1 insertion(+), 1 deletion(-)
    
    diff -rup -X /usr/src/patchset-0.6/bin//dontdiff linux-2.6.23-rc6-mm1-025_fix_ppc64_kgdb/drivers/ata/pata_scc.c linux-2.6.23-rc6-mm1-030_fix_ppc64_sata/drivers/ata/pata_scc.c
    --- linux-2.6.23-rc6-mm1-025_fix_ppc64_kgdb/drivers/ata/pata_scc.c	2007-09-18 11:29:26.000000000 +0100
    +++ linux-2.6.23-rc6-mm1-030_fix_ppc64_sata/drivers/ata/pata_scc.c	2007-09-20 11:51:01.000000000 +0100
    @@ -731,7 +731,7 @@ static u8 scc_bmdma_status (struct ata_p
     	void __iomem *mmio = ap->ioaddr.bmdma_addr;
     	u8 host_stat = in_be32(mmio + SCC_DMA_STATUS);
     	u32 int_status = in_be32(mmio + SCC_DMA_INTST);
    -	struct ata_queued_cmd *qc = ata_qc_from_tag(ap, ap->active_tag);
    +	struct ata_queued_cmd *qc = ata_qc_from_tag(ap, ap->link.active_tag);
     	static int retry = 0;
     
     	/* return if IOS_SS is cleared */
    -- 
    Mel Gorman
    Part-time Phd Student                          Linux Technology Center
    University of Limerick                         IBM Dublin Software Lab
    
    ^ permalink raw reply	[flat|nested] 29+ messages in thread
  • * Build failure on ppc64 drivers/block/ps3disk.c
           [not found] <20070918011841.2381bd93.akpm@linux-foundation.org>
                       ` (4 preceding siblings ...)
      2007-09-20 13:13 ` 2.6.23-rc6-mm1: Build failure on ppc64 drivers/ata/pata_scc.c Mel Gorman
    @ 2007-09-20 13:25 ` Mel Gorman
      2007-09-20 13:32   ` Jens Axboe
      2007-09-20 13:37   ` 2.6.23-rc6-mm1: Build failures on ppc64_defconfig Satyam Sharma
      5 siblings, 2 replies; 29+ messages in thread
    From: Mel Gorman @ 2007-09-20 13:25 UTC (permalink / raw)
      To: Andrew Morton; +Cc: linuxppc-dev, linux-kernel, jens.axboe
    
    allmodconfig on ppc64 fails to build with the following error
    
    drivers/block/ps3disk.c: In function `ps3disk_probe':
    drivers/block/ps3disk.c:509: error: implicit declaration of function `blk_queue_issue_flush_fn'
    make[2]: *** [drivers/block/ps3disk.o] Error 1
    make[1]: *** [drivers/block] Error 2
    make: *** [drivers] Error 2
    
    The problem seems to be coming from git-block.patch. Jens, glancing through
    the patch, the function blk_queue_issue_flush_fn() seems to be have been
    made redundant. Based on that, this looks like the correct fix but it needs
    a review. Thanks
    
    Signed-off-by: Mel Gorman <mel@csn.ul.ie>
    --- 
     drivers/block/ps3disk.c |   21 ---------------------
     1 file changed, 21 deletions(-)
    
    diff -rup -X /usr/src/patchset-0.6/bin//dontdiff linux-2.6.23-rc6-mm1-030_fix_ppc64_sata/drivers/block/ps3disk.c linux-2.6.23-rc6-mm1-035_fix_ppc64_ps3disk/drivers/block/ps3disk.c
    --- linux-2.6.23-rc6-mm1-030_fix_ppc64_sata/drivers/block/ps3disk.c	2007-09-11 03:50:29.000000000 +0100
    +++ linux-2.6.23-rc6-mm1-035_fix_ppc64_ps3disk/drivers/block/ps3disk.c	2007-09-20 14:17:43.000000000 +0100
    @@ -414,26 +414,6 @@ static void ps3disk_prepare_flush(struct
     	req->cmd_type = REQ_TYPE_FLUSH;
     }
     
    -static int ps3disk_issue_flush(struct request_queue *q, struct gendisk *gendisk,
    -			       sector_t *sector)
    -{
    -	struct ps3_storage_device *dev = q->queuedata;
    -	struct request *req;
    -	int res;
    -
    -	dev_dbg(&dev->sbd.core, "%s:%u\n", __func__, __LINE__);
    -
    -	req = blk_get_request(q, WRITE, __GFP_WAIT);
    -	ps3disk_prepare_flush(q, req);
    -	res = blk_execute_rq(q, gendisk, req, 0);
    -	if (res)
    -		dev_err(&dev->sbd.core, "%s:%u: flush request failed %d\n",
    -			__func__, __LINE__, res);
    -	blk_put_request(req);
    -	return res;
    -}
    -
    -
     static unsigned long ps3disk_mask;
     
     static DEFINE_MUTEX(ps3disk_mask_mutex);
    @@ -506,7 +486,6 @@ static int __devinit ps3disk_probe(struc
     	blk_queue_dma_alignment(queue, dev->blk_size-1);
     	blk_queue_hardsect_size(queue, dev->blk_size);
     
    -	blk_queue_issue_flush_fn(queue, ps3disk_issue_flush);
     	blk_queue_ordered(queue, QUEUE_ORDERED_DRAIN_FLUSH,
     			  ps3disk_prepare_flush);
     
    
    -- 
    Mel Gorman
    Part-time Phd Student                          Linux Technology Center
    University of Limerick                         IBM Dublin Software Lab
    
    ^ permalink raw reply	[flat|nested] 29+ messages in thread

  • end of thread, other threads:[~2007-09-26  3:40 UTC | newest]
    
    Thread overview: 29+ messages (download: mbox.gz follow: Atom feed
    -- links below jump to the message on this page --
         [not found] <20070918011841.2381bd93.akpm@linux-foundation.org>
         [not found] ` <46EF96CC.1080807@linux.vnet.ibm.com>
    2007-09-18  9:34   ` 2.6.23-rc6-mm1 Andy Whitcroft
    2007-09-18 10:02     ` 2.6.23-rc6-mm1 Benjamin Herrenschmidt
    2007-09-18 12:07       ` 2.6.23-rc6-mm1 Kamalesh Babulal
    2007-09-18 16:53         ` 2.6.23-rc6-mm1 Andrew Morton
    2007-09-18 19:16         ` 2.6.23-rc6-mm1 Greg KH
    2007-09-18 21:35           ` 2.6.23-rc6-mm1 Benjamin Herrenschmidt
    2007-09-19  9:28 ` 2.6.23-rc6-mm1 -- powerpc link failure Andy Whitcroft
    2007-09-19 16:36   ` Segher Boessenkool
    2007-09-19 16:52     ` Andy Whitcroft
    2007-09-19 17:44   ` Sam Ravnborg
    2007-09-25 13:40     ` Andy Whitcroft
    2007-09-19  9:36 ` 2.6.23-rc6-mm1 -- powerpc pSeries_log_error panic in rtas_call/early_enable_eeh Andy Whitcroft
         [not found] ` <20070918174408.GC1804@skynet.ie>
    2007-09-19 16:29   ` 2.6.23-rc6-mm1: kgdb support on ppc64 utterly broken Mel Gorman
    2007-09-20 13:13 ` 2.6.23-rc6-mm1: Build failure on ppc64 drivers/ata/pata_scc.c Mel Gorman
    2007-09-20 14:09   ` Alan Cox
    2007-09-20 15:14     ` Mel Gorman
    2007-09-20 15:45     ` Kamalesh Babulal
    2007-09-20 15:49       ` Kamalesh Babulal
    2007-09-22  2:50     ` Satyam Sharma
    2007-09-24 11:01       ` Mel Gorman
    2007-09-26  3:39       ` Jeff Garzik
    2007-09-20 13:25 ` Build failure on ppc64 drivers/block/ps3disk.c Mel Gorman
    2007-09-20 13:32   ` Jens Axboe
    2007-09-20 13:37   ` 2.6.23-rc6-mm1: Build failures on ppc64_defconfig Satyam Sharma
    2007-09-22  6:50     ` Satyam Sharma
    2007-09-22  6:51     ` Satyam Sharma
    2007-09-22  6:54     ` Satyam Sharma
    2007-09-24 11:12       ` Mel Gorman
    2007-09-22  7:25     ` Satyam Sharma
    

    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).