1. 10 Mar, 2005 40 commits
    • Alasdair G. Kergon's avatar
      [PATCH] device-mapper: Some multipath fn renames · c140b4a0
      Alasdair G. Kergon authored
      Rename ctr to create etc.
      Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
      c140b4a0
    • Alasdair G. Kergon's avatar
      [PATCH] device-mapper: Some code/formatting cleanups · 7250613f
      Alasdair G. Kergon authored
      Some multipath code/formatting cleanups
      Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
      7250613f
    • Alasdair G. Kergon's avatar
      [PATCH] device-mapper: tag multipath exports GPL · 32ff840b
      Alasdair G. Kergon authored
      Tag multipath exports GPL.
      Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
      32ff840b
    • Alasdair G. Kergon's avatar
      [PATCH] device-mapper: multipath hardware handler for EMC · 797c85d8
      Alasdair G. Kergon authored
      Outline Hardware Handler for EMC CLARiiON AX/CX-series.
      Signed-Off-By: default avatarAlasdair G Kergon <agk@redhat.com>
      From: Lars Marowsky-Bree <lmb@suse.de>
      Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
      797c85d8
    • Alasdair G. Kergon's avatar
      [PATCH] device-mapper: multipath hardware handler · 593c9deb
      Alasdair G. Kergon authored
      Each multipath instance can use a Hardware Handler with hooks for the
      particular hardware you're using.
      
      This patch provides the hw_handler infrastructure.
      
      So far 3 hooks are available:
      
        A status function invoked by device-mapper table and status requests.
      
        An initialisation function called when a Priority Group is selected for
        use but before any I/O is sent to it.  This function should return straight
        away, and I/O is queued until dm_pg_init_complete() is called indicating
        whether or not the initialisation was successful.  The are three error
        flags, any or all of which may be set: MP_FAIL_PATH, MP_BYPASS_PG,
        MP_ERROR_IO.
      
        An error handler which gets the opportunity to decode any error that a bio
        generated.  Patches are pending to make scsi error details available for
        dm_scsi_err_handler() to decode.
      Signed-Off-By: default avatarAlasdair G Kergon <agk@redhat.com>
      Signed-off-by: default avatarAdrian Bunk <bunk@stusta.de>
      Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
      593c9deb
    • Alasdair G. Kergon's avatar
      [PATCH] device-mapper: multipath round-robin path selector. · aa9384a4
      Alasdair G. Kergon authored
      A very basic path selector: round-robin.
      
      It uses in turn each path that has not been disabled.
      
      By default, it instructs core multipath to use each path it supplies for 1000
      bios, but a different repeat_count can be set against any path to provide
      primitive load-balancing across unequal paths.
      Signed-Off-By: default avatarAlasdair G Kergon <agk@redhat.com>
      Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
      aa9384a4
    • Alasdair G. Kergon's avatar
      [PATCH] device-mapper: multipath · 8f494a80
      Alasdair G. Kergon authored
      The core device-mapper multipath and path-selector code.
      
      Paths are grouped into an ordered list of Priority Groups.  Each Priority
      Group has a Path Selector which chooses which of the Priority Group's paths is
      to be used for each bio e.g.  according to some load-balancing algorithm.  If
      a bio generates an error, the path that it used gets disabled and an
      alternative path is tried.  If all the paths in a Priority Group fail, another
      Priority Group is selected.
      
      There are management commands fail_path and reinstate_path.  A path tester
      (currently implemented in userspace) is responsible for monitoring paths that
      have failed and reinstating them should they come back.
      
      Other management commands can be use to switch immediately to a specified
      Priority Group or to disable a particular Priority Group so it will only be
      tried after there are no more left.
      
      As a last resort there is an option to 'queue_if_no_path' which queues I/O if
      all paths have failed e.g.  temporarily during a firmware update or if the
      userspace daemon is slow reinstating paths.
      
      The userspace multipath tools are available at:
        http://christophe.varoqui.free.fr/
      macroflux.png is a diagram of the current architecture.
      
      From: Alasdair G Kergon <agk@redhat.com>
      
        Don't requeue I/O repeatedly if there are no paths left and the device is
        in the process of being suspended, or else the suspend can never complete.
      Reported-By: default avatar"goggin, edward" <egoggin@emc.com>
      Signed-Off-By: default avatarAlasdair G Kergon <agk@redhat.com>
      Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
      8f494a80
    • Alasdair G. Kergon's avatar
      [PATCH] device-mapper: Export map_info · 0296e494
      Alasdair G. Kergon authored
      Export map_info (part of bio->bi_private) for targets like multipath to use
      for storing context.
      Signed-Off-By: default avatarAlasdair G Kergon <agk@redhat.com>
      Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
      0296e494
    • Alasdair G. Kergon's avatar
      [PATCH] device-mapper: Record & restore bio state. · d6d16564
      Alasdair G. Kergon authored
      Simple functions to record and restore bio state so we can resubmit a bio
      that returned an error.
      
      DM multipath (following shortly) uses this.
      
      This patch has it private to device-mapper: is it any use elsewhere?
      Signed-Off-By: default avatarAlasdair G Kergon <agk@redhat.com>
      Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
      d6d16564
    • Lars Marowsky-Bree's avatar
      [PATCH] device-mapper: Store name directly against device · 8dd5239b
      Lars Marowsky-Bree authored
      Add a name field to struct dm_dev so we don't have to use format_dev_t()
      all over the place for informative error messages.
      Signed-Off-By: default avatarAlasdair G Kergon <agk@redhat.com>
      Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
      8dd5239b
    • Randy Dunlap's avatar
      [PATCH] tdfxfb: eliminate bad section references · a8caca4d
      Randy Dunlap authored
      Fix tdfxfb section references:
        convert __initdata to __devinitdata.
      
      Error: ./drivers/video/tdfxfb.o .text refers to 0000000000000e6f R_X86_64_PC32     .init.data+0xfffffffffffffffc
      Error: ./drivers/video/tdfxfb.o .text refers to 0000000000000fea R_X86_64_32S      .init.data+0x00000000000000c0
      Error: ./drivers/video/tdfxfb.o .text refers to 0000000000001006 R_X86_64_32S      .init.data+0x00000000000000c0
      Error: ./drivers/video/tdfxfb.o .text refers to 0000000000001022 R_X86_64_32S      .init.data+0x00000000000000c0
      Error: ./drivers/video/tdfxfb.o .text refers to 000000000000103c R_X86_64_PC32     .init.data+0x00000000000000f4
      Error: ./drivers/video/tdfxfb.o .text refers to 0000000000001067 R_X86_64_PC32     .init.data+0x00000000000000f4
      Error: ./drivers/video/tdfxfb.o .text refers to 000000000000106f R_X86_64_PC32     .init.data+0x00000000000000fc
      Error: ./drivers/video/tdfxfb.o .text refers to 0000000000001084 R_X86_64_32S      .init.data+0x00000000000000c0
      Error: ./drivers/video/tdfxfb.o .text refers to 00000000000010f1 R_X86_64_PC32     .init.data+0x00000000000000cc
      Error: ./drivers/video/tdfxfb.o .text refers to 00000000000011b8 R_X86_64_PC32     .init.data+0x00000000000000d4
      Error: ./drivers/video/tdfxfb.o .text refers to 00000000000011c1 R_X86_64_32S      .init.data+0x00000000000000c0
      Error: ./drivers/video/tdfxfb.o .text refers to 000000000000122b R_X86_64_PC32     .init.data+0x00000000000000d4
      Error: ./drivers/video/tdfxfb.o .text refers to 0000000000001232 R_X86_64_PC32     .init.data+0x00000000000000cc
      Error: ./drivers/video/tdfxfb.o .text refers to 000000000000124a R_X86_64_32S      .init.data+0x00000000000000c0
      Error: ./drivers/video/tdfxfb.o .text refers to 0000000000001320 R_X86_64_PC32     .init.data+0x00000000000000d4
      Error: ./drivers/video/tdfxfb.o .text refers to 0000000000001327 R_X86_64_32S      .init.data+0x00000000000000c0
      Error: ./drivers/video/tdfxfb.o .text refers to 000000000000134c R_X86_64_32S      .init.data+0x00000000000000c0
      Error: ./drivers/video/tdfxfb.o .text refers to 000000000000136a R_X86_64_PC32     .init.data+0x00000000000000e6
      Error: ./drivers/video/tdfxfb.o .text refers to 000000000000137d R_X86_64_PC32     .init.data+0x00000000000000e8
      Error: ./drivers/video/tdfxfb.o .text refers to 00000000000013b1 R_X86_64_PC32     .init.data+0xfffffffffffffffc
      Error: ./drivers/video/tdfxfb.o .text refers to 00000000000013c5 R_X86_64_PC32     .init.data+0xfffffffffffffffc
      Error: ./drivers/video/tdfxfb.o .text refers to 00000000000013e4 R_X86_64_32S      .init.data+0x0000000000000020
      Signed-off-by: default avatarRandy Dunlap <rddunlap@osdl.org>
      Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
      a8caca4d
    • Randy Dunlap's avatar
      [PATCH] sis: eliminate bad section references · d1e14918
      Randy Dunlap authored
      Fix sis section reference:
        change 2 __init functions to be __devinit.
      
      Error: ./drivers/video/sis/sis_main.o .text refers to 0000000000000b5b R_X86_64_PC32     .init.text+0xfffffffffffffffc
      Signed-off-by: default avatarRandy Dunlap <rddunlap@osdl.org>
      Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
      d1e14918
    • Randy Dunlap's avatar
      [PATCH] riva: eliminate bad section references · c9edfd0e
      Randy Dunlap authored
      Fix riva sections references:
        change __initdata to __devinitdata.
      
      Error: ./drivers/video/riva/fbdev.o .text refers to 0000000000001e64 R_X86_64_32S      .init.data+0x0000000000000020
      Error: ./drivers/video/riva/fbdev.o .text refers to 0000000000001e6f R_X86_64_PC32     .init.data+0x0000000000000004
      Error: ./drivers/video/riva/fbdev.o .text refers to 0000000000001e7c R_X86_64_PC32     .init.data+0x0000000000000003
      Error: ./drivers/video/riva/fbdev.o .text refers to 0000000000001e93 R_X86_64_PC32     .init.data
      Error: ./drivers/video/riva/fbdev.o .text refers to 0000000000001ec6 R_X86_64_PC32     .init.data+0x000000000000005c
      Error: ./drivers/video/riva/fbdev.o .text refers to 0000000000001ef2 R_X86_64_PC32     .init.data+0x0000000000000034
      Error: ./drivers/video/riva/fbdev.o .text refers to 0000000000001f38 R_X86_64_PC32     .init.data+0x000000000000005c
      Error: ./drivers/video/riva/fbdev.o .text refers to 0000000000001f41 R_X86_64_PC32     .init.data+0x0000000000000054
      Error: ./drivers/video/riva/fbdev.o .text refers to 0000000000001f4f R_X86_64_PC32     .init.data+0x000000000000002c
      Error: ./drivers/video/riva/fbdev.o .text refers to 0000000000001f94 R_X86_64_PC32     .init.data+0x000000000000002c
      Error: ./drivers/video/riva/fbdev.o .text refers to 000000000000201a R_X86_64_PC32     .init.data+0x0000000000000034
      Error: ./drivers/video/riva/fbdev.o .text refers to 0000000000002035 R_X86_64_PC32     .init.data+0x0000000000000034
      Error: ./drivers/video/riva/fbdev.o .text refers to 000000000000203c R_X86_64_PC32     .init.data+0x000000000000002c
      Error: ./drivers/video/riva/fbdev.o .text refers to 000000000000206b R_X86_64_PC32     .init.data+0xfffffffffffffffb
      Error: ./drivers/video/riva/fbdev.o .text refers to 0000000000002074 R_X86_64_PC32     .init.data+0x0000000000000034
      Error: ./drivers/video/riva/fbdev.o .text refers to 000000000000207b R_X86_64_PC32     .init.data+0x000000000000002c
      Error: ./drivers/video/riva/fbdev.o .text refers to 00000000000020e7 R_X86_64_32S      .init.data+0x0000000000000020
      Error: ./drivers/video/riva/fbdev.o .text refers to 00000000000021cb R_X86_64_32S      .init.data+0x0000000000000080
      Error: ./drivers/video/riva/fbdev.o .text refers to 000000000000220f R_X86_64_PC32     .init.data+0x000000000000011c
      Error: ./drivers/video/riva/fbdev.o .text refers to 000000000000228e R_X86_64_32S      .init.data+0x0000000000000080
      Error: ./drivers/video/riva/fbdev.o .text refers to 00000000000022ea R_X86_64_PC32     .init.data+0x0000000000000007
      Signed-off-by: default avatarRandy Dunlap <rddunlap@osdl.org>
      Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
      c9edfd0e
    • Andrew Morton's avatar
      [PATCH] fbdev-cleanups-in-driver-video warning fixes · f16f7766
      Andrew Morton authored
      drivers/video/cyber2000fb.c:95: warning: `default_font_storage' defined but not used
      drivers/video/radeonfb.c:661: warning: `mode_option' defined but not used
      Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
      f16f7766
    • Randy Dunlap's avatar
      [PATCH] radeonfb: eliminate bad section references · 6b4dff24
      Randy Dunlap authored
      Fix radeonfb section references by changing __initdata
        to __devinitdata.
      
      Error: ./drivers/video/radeonfb.o .text refers to 0000000000002037 R_X86_64_PC32     .init.data+0x0000000000000003
      Error: ./drivers/video/radeonfb.o .text refers to 0000000000002491 R_X86_64_PC32     .init.data
      Error: ./drivers/video/radeonfb.o .text refers to 0000000000002870 R_X86_64_PC32     .init.data+0x000000000000000c
      Error: ./drivers/video/radeonfb.o .text refers to 0000000000002a21 R_X86_64_PC32     .init.data+0xfffffffffffffffb
      Signed-off-by: default avatarRandy Dunlap <rddunlap@osdl.org>
      Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
      6b4dff24
    • Randy Dunlap's avatar
      [PATCH] pm2fb: eliminate bad section references · 4d6c317c
      Randy Dunlap authored
      Fix pm2fb section references by changing referenced
        __initdata to __devinitdata.
      
      Error: ./drivers/video/pm2fb.o .text refers to 0000000000000ad4 R_X86_64_PC32     .init.data+0x0000000000000007
      Error: ./drivers/video/pm2fb.o .text refers to 0000000000000afc R_X86_64_PC32     .init.data+0x0000000000000003
      Error: ./drivers/video/pm2fb.o .text refers to 000000000000147e R_X86_64_PC32     .init.data+0x00000000000000bc
      Error: ./drivers/video/pm2fb.o .text refers to 0000000000001491 R_X86_64_PC32     .init.data+0x00000000000000c2
      Error: ./drivers/video/pm2fb.o .text refers to 000000000000149a R_X86_64_PC32     .init.data+0x00000000000000bc
      Error: ./drivers/video/pm2fb.o .text refers to 00000000000014aa R_X86_64_32S      .init.data+0x00000000000000c0
      Error: ./drivers/video/pm2fb.o .text refers to 00000000000014e0 R_X86_64_PC32     .init.data+0x00000000000000f8
      Error: ./drivers/video/pm2fb.o .text refers to 00000000000014eb R_X86_64_PC32     .init.data+0x00000000000000f4
      Error: ./drivers/video/pm2fb.o .text refers to 000000000000150e R_X86_64_PC32     .init.data+0x00000000000000fc
      Error: ./drivers/video/pm2fb.o .text refers to 0000000000001515 R_X86_64_PC32     .init.data+0x00000000000000f4
      Error: ./drivers/video/pm2fb.o .text refers to 000000000000152d R_X86_64_32S      .init.data+0x00000000000000c0
      Error: ./drivers/video/pm2fb.o .text refers to 00000000000015ce R_X86_64_PC32     .init.data+0x00000000000000cc
      Error: ./drivers/video/pm2fb.o .text refers to 00000000000015d7 R_X86_64_PC32     .init.data+0x00000000000000d4
      Error: ./drivers/video/pm2fb.o .text refers to 00000000000015fa R_X86_64_PC32     .init.data+0x00000000000000d4
      Error: ./drivers/video/pm2fb.o .text refers to 0000000000001601 R_X86_64_PC32     .init.data+0x00000000000000cc
      Error: ./drivers/video/pm2fb.o .text refers to 0000000000001644 R_X86_64_32S      .init.data+0x00000000000000c0
      Error: ./drivers/video/pm2fb.o .text refers to 0000000000001674 R_X86_64_PC32     .init.data+0xfffffffffffffffc
      Error: ./drivers/video/pm2fb.o .text refers to 000000000000168e R_X86_64_PC32     .init.data+0xfffffffffffffffc
      Error: ./drivers/video/pm2fb.o .text refers to 00000000000016af R_X86_64_32S      .init.data+0x0000000000000020
      Error: ./drivers/video/pm2fb.o .text refers to 0000000000001724 R_X86_64_PC32     .init.data+0x00000000000000d4
      Error: ./drivers/video/pm2fb.o .text refers to 000000000000172b R_X86_64_PC32     .init.data+0x00000000000000cc
      Error: ./drivers/video/pm2fb.o .text refers to 0000000000001746 R_X86_64_PC32     .init.data+0x00000000000000fc
      Error: ./drivers/video/pm2fb.o .text refers to 000000000000174d R_X86_64_PC32     .init.data+0x00000000000000f4
      Signed-off-by: default avatarRandy Dunlap <rddunlap@osdl.org>
      Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
      4d6c317c
    • Randy Dunlap's avatar
      [PATCH] neofb: eliminate bad section references · ded4b3e6
      Randy Dunlap authored
      Fix neofb section reference to __initdata: make it __devinitdata.
      
      Error: ./drivers/video/neofb.o .text refers to 0000000000001fb4 R_X86_64_PC32     .init.data+0xfffffffffffffffc
      Signed-off-by: default avatarRandy Dunlap <rddunlap@osdl.org>
      Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
      ded4b3e6
    • Randy Dunlap's avatar
      [PATCH] kyro: eliminate bad section references · 5b5e490c
      Randy Dunlap authored
      Fix kyro sections references by changing __initdata
        to __devinitdata.
      
      Error: ./drivers/video/kyro/fbdev.o .text refers to 0000000000000692 R_X86_64_PC32     .init.data+0x000000000000090c
      Error: ./drivers/video/kyro/fbdev.o .text refers to 00000000000006c2 R_X86_64_PC32     .init.data+0x0000000000000914
      Error: ./drivers/video/kyro/fbdev.o .text refers to 00000000000006d1 R_X86_64_PC32     .init.data+0x0000000000000934
      Error: ./drivers/video/kyro/fbdev.o .text refers to 0000000000000709 R_X86_64_PC32     .init.data+0x0000000000000934
      Error: ./drivers/video/kyro/fbdev.o .text refers to 0000000000000711 R_X86_64_PC32     .init.data+0x000000000000093c
      Error: ./drivers/video/kyro/fbdev.o .text refers to 0000000000000727 R_X86_64_PC32     .init.data+0x000000000000090c
      Error: ./drivers/video/kyro/fbdev.o .text refers to 000000000000072d R_X86_64_PC32     .init.data+0x0000000000000914
      Error: ./drivers/video/kyro/fbdev.o .text refers to 000000000000073f R_X86_64_PC32     .init.data+0x00000000000008eb
      Error: ./drivers/video/kyro/fbdev.o .text refers to 0000000000000748 R_X86_64_PC32     .init.data+0x0000000000000914
      Error: ./drivers/video/kyro/fbdev.o .text refers to 000000000000075b R_X86_64_PC32     .init.data+0x000000000000090c
      Error: ./drivers/video/kyro/fbdev.o .text refers to 0000000000000778 R_X86_64_32S      .init.data+0x0000000000000900
      Error: ./drivers/video/kyro/fbdev.o .text refers to 000000000000077e R_X86_64_PC32     .init.data+0x00000000000008e7
      Error: ./drivers/video/kyro/fbdev.o .text refers to 0000000000000793 R_X86_64_PC32     .init.data+0x0000000000000926
      Error: ./drivers/video/kyro/fbdev.o .text refers to 000000000000079b R_X86_64_PC32     .init.data+0x00000000000008e3
      Error: ./drivers/video/kyro/fbdev.o .text refers to 00000000000007a6 R_X86_64_PC32     .init.data+0x0000000000000928
      Error: ./drivers/video/kyro/fbdev.o .text refers to 00000000000007f1 R_X86_64_PC32     .init.data+0x00000000000008dc
      Error: ./drivers/video/kyro/fbdev.o .text refers to 00000000000007f8 R_X86_64_32S      .init.data+0x0000000000000420
      Error: ./drivers/video/kyro/fbdev.o .text refers to 0000000000000805 R_X86_64_32S      .init.data+0x00000000000000a0
      Error: ./drivers/video/kyro/fbdev.o .text refers to 0000000000000834 R_X86_64_32S      .init.data
      Signed-off-by: default avatarRandy Dunlap <rddunlap@osdl.org>
      Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
      5b5e490c
    • Randy Dunlap's avatar
      [PATCH] imsttfb: eliminate bad section references · a76f26e9
      Randy Dunlap authored
      Fix imsttfb section references:  change __initdata to __devinitdata
        and __init to __devinit.
      
      Error: ./drivers/video/imsttfb.o .text refers to 000000000000103b R_X86_64_32S      .init.data+0x0000000000000040
      Error: ./drivers/video/imsttfb.o .text refers to 0000000000001049 R_X86_64_32S      .init.data+0x0000000000000041
      Error: ./drivers/video/imsttfb.o .text refers to 0000000000001064 R_X86_64_32S      .init.data
      Error: ./drivers/video/imsttfb.o .text refers to 0000000000001071 R_X86_64_32S      .init.data+0x0000000000000001
      Signed-off-by: default avatarRandy Dunlap <rddunlap@osdl.org>
      Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
      a76f26e9
    • Randy Dunlap's avatar
      [PATCH] atyfb: eliminate bad section references · 335d6502
      Randy Dunlap authored
      Fix atyfb references to __initdata from .text code sections
        by changing __initdata to __devinitdata.
      
      Error: ./drivers/video/aty/atyfb_base.o .text refers to 0000000000002416 R_X86_64_32S      .init.data+0x00000000000004a0
      Error: ./drivers/video/aty/atyfb_base.o .text refers to 0000000000002514 R_X86_64_32S      .init.data
      Error: ./drivers/video/aty/atyfb_base.o .text refers to 000000000000253e R_X86_64_32S      .init.data+0x0000000000000060
      Error: ./drivers/video/aty/atyfb_base.o .text refers to 00000000000026c4 R_X86_64_32S      .init.data+0x00000000000004a0
      Error: ./drivers/video/aty/atyfb_base.o .text refers to 00000000000026e7 R_X86_64_32S      .init.data+0x0000000000000070
      Error: ./drivers/video/aty/atyfb_base.o .text refers to 00000000000026ee R_X86_64_32S      .init.data+0x0000000000000068
      Error: ./drivers/video/aty/atyfb_base.o .text refers to 00000000000026fa R_X86_64_32S      .init.data+0x0000000000000074
      Error: ./drivers/video/aty/atyfb_base.o .text refers to 0000000000002706 R_X86_64_32S      .init.data+0x0000000000000078
      Error: ./drivers/video/aty/atyfb_base.o .text refers to 0000000000002712 R_X86_64_32S      .init.data+0x000000000000007c
      Error: ./drivers/video/aty/atyfb_base.o .text refers to 0000000000002afb R_X86_64_32S      .init.data+0x0000000000000560
      Error: ./drivers/video/aty/atyfb_base.o .text refers to 0000000000002baa R_X86_64_32S      .init.data+0x00000000000004c0
      Signed-off-by: default avatarRandy Dunlap <rddunlap@osdl.org>
      Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
      335d6502
    • Randy Dunlap's avatar
      [PATCH] asiliantfb: eliminate bad section references · f657f4f7
      Randy Dunlap authored
      asiliantfb refers to __initdata that should be __devinitdata
        and calls __init functions that should be __devinit;
      
      Error: ./drivers/video/asiliantfb.o .text refers to 00000000000006ee R_X86_64_32S      .init.data+0x00000000000000a0
      Error: ./drivers/video/asiliantfb.o .text refers to 0000000000000711 R_X86_64_32S      .init.data
      Signed-off-by: default avatarRandy Dunlap <rddunlap@osdl.org>
      Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
      f657f4f7
    • Benjamin Herrenschmidt's avatar
      [PATCH] radeonfb: PLL access workaround · 3a5a6a4a
      Benjamin Herrenschmidt authored
      So you remember all those weird lockups at boot that happened in late
      2.6.11-rc with radeonfb.  I posted a "workaround" which just moved code
      around a bit and it appeared to work.  I finally got some real infos about
      the problem from ATI, and it seems my "workaround" is not very safe and
      there are other potential issues realted to HW bugs when accessing the PLL
      registers.
      
      This patch implements all of these workarounds (and puts back the code
      where it was before my previous fix).  
      Signed-off-by: default avatarBenjamin Herrenschmidt <benh@kernel.crashing.org>
      Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
      3a5a6a4a
    • Antonino Daplas's avatar
      [PATCH] fbdev: Cleanups in driver/video · 64c823b4
      Antonino Daplas authored
      This patch contains cleanups including the following:
      - make needlessly global code static
      - remove the needlessly #ifdef MODULE from several module_exit
      - remove or #if 0 the following unused global functions:
        - fbmon.c: fb_create_modedb
        - fbmon.c: fb_get_monitor_limits
        - nvidia/nv_i2c.c: nvidia_delete_i2c_busses
        - nvidia/nv_setup.c: NVEnablePalette
        - nvidia/nv_setup.c: NVReadDacMask
      - remove the following unneeded EXPORT_SYMBOL's:
        - fbmon.c: fb_create_modedb
        - fbmon.c: fb_get_monitor_limits
        - hgafb.c: hgafb_setup
      Signed-off-by: default avatarAdrian Bunk <bunk@stusta.de>
      Signed-off-by: default avatarAntonino Daplas <adaplas@pol.net>
      Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
      64c823b4
    • Antonino Daplas's avatar
      [PATCH] savagefb: Make savagefb one module · 948592ca
      Antonino Daplas authored
      #if defined(CONFIG_FB_SAVAGE_ACCEL)
      
        doesn't work with FB_SAVAGE_ACCEL=m, and
      
      #if defined(CONFIG_FB_SAVAGE_ACCEL) || defined(CONFIG_FB_SAVAGE_ACCEL_MODULE)
      
        would break with FB_SAVAGE=y and FB_SAVAGE_ACCEL=m.
      
      Rename savagefb.c to savagefb_driver.c.
      Signed-off-by: default avatarAdrian Bunk <bunk@stusta.de>
      Signed-off-by: default avatarAntonino Daplas <adaplas@pol.net>
      Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
      948592ca
    • Jon Smirl's avatar
      [PATCH] fbdev: Allow core fb to be built as a module · 06b051b9
      Jon Smirl authored
      Allow the framebuffer core to be built as a module to ease debugging.
      Signed-off-by: default avatarAntonino Daplas <adaplas@pol.net>
      Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
      06b051b9
    • James Simmons's avatar
      [PATCH] fbdev: Generic drawing function cleanups 2 · bd7ff3fa
      James Simmons authored
      Replaced LONG_MASK, SHIFT_PER_LONG, BYTES_PER_LONG with dynamic variables. 
      This will allow drivers in the future to control how much data to read/write
      from the framebuffer.
      Signed-off-by: default avatarAntonino Daplas <adaplas@pol.net>
      Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
      bd7ff3fa
    • Antonino Daplas's avatar
      [PATCH] nvidiafb: Some chipsets need a buffer pitch divisible by 64 · 285311b3
      Antonino Daplas authored
      The Geforce2 cards crashes at 800x600-8, but not at 640x480 or 1024x768.
      Changing the xres_virtual to be divisible by 64 fixes the problem.
      Signed-off-by: default avatarAntonino Daplas <adaplas@pol.net>
      Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
      285311b3
    • Antonino Daplas's avatar
      [PATCH] nvidiafb: Fix i2c error handling · 71992da3
      Antonino Daplas authored
      Fixed error handling in rivafb-i2c.c if bus registration fails.
      Signed-off-by: default avatarAntonino Daplas <adaplas@pol.net>
      Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
      71992da3
    • Antonino Daplas's avatar
      [PATCH] rivafb: Fix i2c error handling · 71b2cdc4
      Antonino Daplas authored
      Fixed error handling in rivafb-i2c.c if bus registration fails.
      Signed-off-by: default avatarAntonino Daplas <adaplas@pol.net>
      Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
      71b2cdc4
    • Antonino Daplas's avatar
      [PATCH] fbcon: Cursor fixes · 20067d73
      Antonino Daplas authored
      From Jiri Benc:
      
      we found several bugs in framebuffer console code in recent kernels.
      
      1. The escape sequence '\033[?25l' does not work (should disable cursor).
      
      2. When scrolling console using Shift-PgUp with cursor in the upper half
         part of the screen, cursor position is not updated.
      
      3. If cursor is placed at some character and console is scrolled using
         Shift-PgUp, that character remains on the screen.
      Signed-off-by: default avatarAntonino Daplas <adaplas@pol.net>
      Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
      20067d73
    • Antonino Daplas's avatar
      [PATCH] fbdev: Capture modelist change event · bbfda4e4
      Antonino Daplas authored
      Add capability to change private modelist.  It checks if the entries in the
      new modelist are acceptable, and if not, trimmed from the modelist.
      
      Also added a new event, FB_EVENT_NEW_MODELIST, sent by fbmem, and captured by
      fbcon to resize all consoles, if need be.
      
      Requires minor changes to new functions, ie, fb_get_color_depth().
      Signed-off-by: default avatarAntonino Daplas <adaplas@pol.net>
      Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
      bbfda4e4
    • Jon Smirl's avatar
      [PATCH] fbdev: Add mode changing via sysfs · 8c91d5e9
      Jon Smirl authored
      This is a first pass at adding two new sysfs attributes to
      /sys/class/graphics/fb0 for setting modes.  There are two attributes: modes
      which contains a list of valid modes, and mode which is the current mode.  To
      switch modes echo one of the entries from the modes list to the mode
      attribute.
      
      The D,V,S on the modes represents Detailed, Vesa, Standard from the DDC info.
      
      modes is root writable.  It can also be used to set the list of modes.  For
      example a /etc file could add modes that are not in the monitor's DDC.
      
      mode is user writable.  PAM would set ownership of mode at user login time.
      This provides a safe way for a user to set the mode without being root.  You
      can only set the mode to one of the modes on the list.
      Signed-off-by: default avatarAntonino Daplas <adaplas@pol.net>
      Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
      8c91d5e9
    • Benjamin Herrenschmidt's avatar
      [PATCH] ppc32: uninorth-agp suspend support · 8f719499
      Benjamin Herrenschmidt authored
      This patch adds suspend/resume support to the Apple UniNorth AGP bridge to
      make sure AGP is properly disabled when the machine goes to sleep.  Without
      this, the r300 based laptops will fail to wakeup from sleep when using the
      new experimental r300 DRI driver.  It should also improve reliablility in
      general with other chips.
      
      Unfortunately, uninorth-agp is just a "sibling" of the video chip on the
      PCI bus, and thus ends up beeing called either before the video chip
      suspend routine, or after, depending on the HW layout or other random
      things.
      
      To make sure the device side of AGP is always disabled first and that we
      never touch the device after having put it into D2 state (which can be
      deadly), I also need the separate patch to radeonfb and aty128fb which will
      make them disabled their own side if not already done by the bridge driver.
      Signed-off-by: default avatarBenjamin Herrenschmidt <benh@kernel.crashing.org>
      Signed-off-by: default avatarPaul Mackerras <paulus@samba.org>
      Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
      8f719499
    • Benjamin Herrenschmidt's avatar
      [PATCH] aty128fb: Disable AGP on suspend · 58a40ef7
      Benjamin Herrenschmidt authored
      This patch improves reliability of suspend/resume by making sure AGP is
      disabled on the Rage 128 chip before putting it into a suspend state.  It
      works in conjunction with the uninorth-agp suspend patch, but should be
      harmless on machines with a different AGP bridge.
      Signed-off-by: default avatarBenjamin Herrenschmidt <benh@kernel.crashing.org>
      Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
      58a40ef7
    • Benjamin Herrenschmidt's avatar
      [PATCH] radeonfb: Disable AGP on suspend · cd616dd9
      Benjamin Herrenschmidt authored
      This patch improves reliability of suspend/resume by making sure AGP is
      disabled on the radeon chip before putting it into a suspend state.  It
      works in conjunction with the uninorth-agp suspend patch, but should be
      harmless on machines with a different AGP bridge.
      Signed-off-by: default avatarBenjamin Herrenschmidt <benh@kernel.crashing.org>
      Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
      cd616dd9
    • Antonino Daplas's avatar
      [PATCH] fbdev: Generic drawing function cleanups · 7ae26b93
      Antonino Daplas authored
        From Ulrich Eckhardt:
      
         * removed trailing whitespace
         * use helper function for common bitwise operations
         * fixed several cases where either the wrong mask was used for bitops
           or the mask was computed falsely, messing up <32 BPP support
         * added self-tests for bitcpy_rev() algorithm in module-init function
         * no need to use explicitly sized integers in some cases
         * added a few comments where things weren't obvious to me
      
        I tested these changes on an Au1100 based board, using the patches to its
        framebuffer code that were posted here by Christian Pellegrin[1]. I had this
        code working both on a 16BPP color LCD and a 4BPP monochrome one.
      Signed-off-by: default avatarAntonino Daplas <adaplas@pol.net>
      Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
      7ae26b93
    • Antonino Daplas's avatar
      [PATCH] nvidiafb: Add update framebuffer driver for nVidia chipsets · 8e0de75e
      Antonino Daplas authored
      Because nVidia keeps pumping out new graphics chipsets, it is becoming
      harder to add support for these with the old rivafb code.  Currently, rivafb
      can properly support NV_ARCH_20 chipsets and older.
      
      Instead of rewriting rivafb to support the latest chipsets, I've decided to
      write a new driver, called nvidiafb.  The aim is to closely follow Xorg
      development.
      
      Currently, this driver is based on the most recent CVS Xorg nv driver. Main
      
        - console acceleration for all chipsets
        - uses DMA instead of PIO
        - better LCD/digital output support
        - better monitor detection
        - support for Riva128 will be dropped as it cannot do DMA, rivafb
          will remain as the driver for this chipset
      
      It should work with Xorg/XFree86 nv driver, but as with rivafb, is not
      compatible with the proprietary nvidia driver.
      
      Once the code becomes stable, rivafb code will be trimmed to only support the
      Riva128 and perhaps some of the older chipsets.  The code has been tested on
      several nVidia graphics card on x86 and x86_64.  I'm still waiting for
      feedback from Guido Guenther regarding ppc.
      
      This need not go to mainline immediately, as I would prefer the code to
      receive rigorous testing in the mm tree.
      Signed-off-by: default avatarAntonino Daplas <adaplas@pol.net>
      Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
      8e0de75e
    • Antonino Daplas's avatar
      [PATCH] geodefb: Add Geode framebuffer driver · 3dcf6506
      Antonino Daplas authored
        Attached is a patch (against 2.6.10) for a framebuffer driver for the
        Geode family of processors.  It does not use AMD's horrible Durango API.
         It is, however, rather feature incomplete at the moment.
      
                * Only Geode GX1 (with CS5530 companion chip) is supported.
                * Tested resolutions: 640x480 to 1280x1024.
                * Supported bit depths: 8 bit palette, 16 bit RGB 5-6-5.
                * CRT output only.
                * No accelerated features.
                * Compression is not enabled.
                * flat panel support (panel=<x>x<y> option). (Only one 640x480 panel
                  has been tested though.)
                * blank function for display blanking/powersaving.
                * crt=<n> option to enable/disable the CRT output.
      
      From: Alexey Dobriyan <adobriyan@mail.ru>
      
      Fix
      
      drivers/video/geode/display_gx1.c: error: `loops_per_jiffy' undeclared (first use in this function)
      drivers/video/geode/video_cs5530.c: error: `loops_per_jiffy' undeclared (first use in this function)
      Signed-off-by: default avatarDavid Vrabel <dvrabel@arcom.com>
      Signed-off-by: default avatarAntonino Daplas <adaplas@pol.net>
      Signed-off-by: default avatarAlexey Dobriyan <adobriyan@mail.ru>
      Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
      3dcf6506
    • David Vrabel's avatar
      [PATCH] fbdev: Kbuild cleanups · 5eeb19bd
      David Vrabel authored
      This set of two patches add new options (FB_CFB_IMAGEBLIT, FB_CFB_FILLRECT,
      FB_CFB_COPYAREA, FB_SOFT_CURSOR) to the framebuffer Kconfig to enable
      building the generic software cfbfillrect, cfbcopyarea, cfbimageblt and
      softcursor objects.  This cuts out a lot of stuff from the Makefile and
      allows drivers in their own directory to be more self-contained.
      Signed-off-by: default avatarAntonino Daplas <adaplas@pol.net>
      Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
      5eeb19bd
    • Antonino Daplas's avatar
      [PATCH] fbdev: Logo code fixes · 3c71ab5c
      Antonino Daplas authored
        This patch fixes a few bugs with the low level logo code.
      
        1. Allow DEC Alpha machines to draw the DEC logo
        2. Cleanup the logo directory on a make clean
        3. Some makefile cleanups.
      
        I have tested on my local machines. I like to be able to create the C
        files from the logos for only the ones we want to compile but I haven't
        figured out how to do that. That can wait. Please apply.
      Signed-off-by: default avatarJames Simmons <jsimmons@www.infradead.org>
      Signed-off-by: default avatarAntonino Daplas <adaplas@pol.net>
      Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
      3c71ab5c