2.6.x libata updates
PATCH 1/1 2.6.x libata updates
Please pull from 'upstream-linus' branch of master.kernel.org:/pub/scm/linux/kernel/git/jgarzik/libata-dev.git
to obtain misc fixes and cleanups, and to merge
the ATA passthru (SMART support) feature.
drivers/scsi/libata-core.c | 18 - drivers/scsi/libata-scsi.c | 790 ++++++++++++++++++++++++++++++++++++-------- drivers/scsi/libata.h | 3 drivers/scsi/pdc_adma.c | 28 - drivers/scsi/sata_promise.c | 4 drivers/scsi/sata_qstor.c | 2 drivers/scsi/sata_sil24.c | 35 + drivers/scsi/sata_svw.c | 22 - drivers/scsi/sata_vsc.c | 20 - include/scsi/scsi.h | 3 10 files changed, 740 insertions(+), 185 deletions(-)
Al Viro:
sata_sil24 iomem annotations and fixes
Douglas Gilbert:
[libata scsi] MODE SELECT, strengthen mode sense
Ed Kear:
libata: add support for Promise SATA 300 TX2plus PDC40775
Jeff Garzik:
[libata] ATA passthru (arbitrary ATA command execution)
libata: Update 'passthru' branch for latest libata [libata passthru] add (DRIVER_SENSE << 24) to all check-conditions [libata passthru] update ATAPI completion for new error handling [libata pdc_adma] minor fixes and cleanups
[libata sata_promise] add pci id
[libata] ensure ->tf_read() hook reads Status and Error registers
Jeff Raubitschek:
[libata passthru] fix leak on error
Randy Dunlap:
libata-core cleanups (updated)
drivers/scsi/libata-core.c +9 -9
@@ -370,6 +370,8 @@ static void ata_tf_read_pio(struct ata_p {struct ata_ioports *ioaddr = &ap->ioaddr; + tf->command =ata_check_status (ap); + tf->feature =ata_chk_err (ap); tf->nsect =inb (ioaddr->nsect_addr); tf->lbal =inb (ioaddr->lbal_addr); tf->lbam =inb (ioaddr->lbam_addr);
@@ -402,6 +404,8 @@ static void ata_tf_read_mmio(struct ata_ {struct ata_ioports *ioaddr = &ap->ioaddr; + tf->command =ata_check_status (ap); + tf->feature =ata_chk_err (ap); tf->nsect =readb ((void __iomem *)ioaddr->nsect_addr); tf->lbal =readb ((void __iomem *)ioaddr->lbal_addr); tf->lbam =readb ((void __iomem *)ioaddr->lbam_addr);
@@ -4254,11 +4258,10 @@ int ata_device_add(const struct ata_probDPRINTK ("ENTER\n" );/* alloc a container for our list of ATA ports (buses) */ - host_set =kmalloc (sizeof (struct ata_host_set ) + + host_set =kzalloc (sizeof (struct ata_host_set ) + (ent->n_ports *sizeof (void *)),GFP_KERNEL );if (!host_set)return 0 ; -memset (host_set,0 ,sizeof (struct ata_host_set ) + (ent->n_ports *sizeof (void *)));spin_lock_init (&host_set->lock); host_set->dev = dev;
@@ -4298,10 +4301,8 @@ int ata_device_add(const struct ata_prob count++; } -if (!count) { -kfree (host_set); -return 0 ; - } +if (!count) + goto err_free_ret;/* obtain irq, that is shared between channels */ if (request_irq(ent->irq, ent->port_ops->irq_handler, ent->irq_flags,
@@ -4359,6 +4360,7 @@ err_out:ata_host_remove (host_set->ports[i],1 );scsi_host_put (host_set->ports[i]->host); } +err_free_ret:kfree (host_set);VPRINTK ("EXIT, returning 0\n" );return 0 ;
@@ -4468,15 +4470,13 @@ ata_probe_ent_alloc(struct device *dev, {struct ata_probe_ent *probe_ent; - probe_ent =kmalloc (sizeof (*probe_ent),GFP_KERNEL ); + probe_ent =kzalloc (sizeof (*probe_ent),GFP_KERNEL );if (!probe_ent) { printk(KERN_ERR DRV_NAME "(%s): out of memory\n", kobject_name(&(dev->kobj)));return NULL ; } -memset (probe_ent,0 ,sizeof (*probe_ent)); -INIT_LIST_HEAD (&probe_ent->node); probe_ent->dev = dev;
drivers/scsi/libata-scsi.c +658 -132
949 lines not on this page · raw message
drivers/scsi/libata.h +2 -1
@@ -50,13 +50,14 @@ extern void ata_dev_select(struct ata_po unsigned int wait, unsigned int can_sleep);extern void ata_tf_to_host_nolock (struct ata_port *ap,const struct ata_taskfile *tf);extern void swap_buf_le16 (u16 *buf,unsigned int buf_words); +extern int ata_task_ioctl (struct scsi_device *scsidev,void __user *arg); +extern int ata_cmd_ioctl (struct scsi_device *scsidev,void __user *arg);/* libata-scsi.c */ extern void atapi_request_sense (struct ata_port *ap,struct ata_device *dev,struct scsi_cmnd *cmd);extern void ata_scsi_scan_host (struct ata_port *ap); -extern void ata_to_sense_error (struct ata_queued_cmd *qc,u8 drv_stat);extern int ata_scsi_error (struct Scsi_Host *host);extern unsigned int ata_scsiop_inq_std (struct ata_scsi_args *args,u8 *rbuf,unsigned int buflen);
drivers/scsi/pdc_adma.c +14 -14
@@ -46,7 +46,7 @@#include <linux/libata.h> #define DRV_NAME "pdc_adma" -#define DRV_VERSION "0.01" +#define DRV_VERSION "0.03"/* macro to calculate base address for ATA regs */ #define ADMA_ATA_REGS (base,port_no) ((base) + ((port_no) * 0x40))
@@ -79,7 +79,6 @@ enum { aNIEN = (1 <<8 ),/* irq mask: 1==masked */ aGO = (1 <<7 ),/* packet trigger ("Go!") */ aRSTADM = (1 <<5 ),/* ADMA logic reset */ - aRSTA = (1 <<2 ),/* ATA hard reset */ aPIOMD4 = 0x0003, /* PIO mode 4 *//* ADMA_STATUS register bits */
@@ -452,24 +451,25 @@ static inline unsigned int adma_intr_pktstruct adma_port_priv *pp;struct ata_queued_cmd *qc;void __iomem *chan =ADMA_REGS (mmio_base, port_no); -u8 drv_stat, status =readb (chan +ADMA_STATUS ); +u8 drv_stat =0 , status =readb (chan +ADMA_STATUS );if (status ==0 )continue ; handled =1 ;adma_enter_reg_mode (ap); -if ((ap->flags &ATA_FLAG_PORT_DISABLED )) +if (ap->flags & (ATA_FLAG_PORT_DISABLED |ATA_FLAG_NOINTR ))continue ; pp = ap->private_data;if (!pp || pp->state != adma_state_pkt)continue ; qc =ata_qc_from_tag (ap, ap->active_tag); - drv_stat =0 ; -if ((status & (aPERR | aPSD | aUIRQ))) - drv_stat =ATA_ERR ; -else if (pp->pkt[0 ] != cDONE) - drv_stat =ATA_ERR ; -ata_qc_complete (qc, drv_stat); +if (qc && (!(qc->tf.ctl &ATA_NIEN ))) { +if ((status & (aPERR | aPSD | aUIRQ))) + drv_stat =ATA_ERR ; +else if (pp->pkt[0 ] != cDONE) + drv_stat =ATA_ERR ; +ata_qc_complete (qc, drv_stat); + } }return handled; }
@@ -490,7 +490,7 @@ static inline unsigned int adma_intr_mmiif (qc && (!(qc->tf.ctl &ATA_NIEN ))) {/* check main status, clearing INTRQ */ -u8 status =ata_chk_status (ap); +u8 status =ata_check_status (ap);if ((status &ATA_BUSY ))continue ; DPRINTK("ata%u: protocol %d (dev_stat 0x%X)\n",
@@ -561,15 +561,15 @@ static int adma_port_start(struct ata_poif ((pp->pkt_dma &7 ) !=0 ) {printk ("bad alignment for pp->pkt_dma: %08x\n" , (u32 )pp->pkt_dma); - goto err_out_kfree2; +dma_free_coherent (dev,ADMA_PKT_BYTES , + pp->pkt, pp->pkt_dma); + goto err_out_kfree; }memset (pp->pkt,0 ,ADMA_PKT_BYTES ); ap->private_data = pp;adma_reinit_engine (ap);return 0 ; -err_out_kfree2: -kfree (pp); err_out_kfree:kfree (pp); err_out:
drivers/scsi/sata_promise.c +4 -0
@@ -195,6 +195,8 @@ static struct ata_port_info pdc_port_infstatic struct pci_device_id pdc_ata_pci_tbl[] = { {PCI_VENDOR_ID_PROMISE ,0x3371 ,PCI_ANY_ID ,PCI_ANY_ID ,0 ,0 , board_2037x }, + {PCI_VENDOR_ID_PROMISE ,0x3570 ,PCI_ANY_ID ,PCI_ANY_ID ,0 ,0 , + board_2037x }, {PCI_VENDOR_ID_PROMISE ,0x3571 ,PCI_ANY_ID ,PCI_ANY_ID ,0 ,0 , board_2037x }, {PCI_VENDOR_ID_PROMISE ,0x3373 ,PCI_ANY_ID ,PCI_ANY_ID ,0 ,0 ,
@@ -207,6 +209,8 @@ static struct pci_device_id pdc_ata_pci_ board_2037x }, {PCI_VENDOR_ID_PROMISE ,0x3d75 ,PCI_ANY_ID ,PCI_ANY_ID ,0 ,0 , board_2037x }, + { PCI_VENDOR_ID_PROMISE, 0x3d73, PCI_ANY_ID, PCI_ANY_ID, 0, 0, + board_2037x }, { PCI_VENDOR_ID_PROMISE, 0x3318, PCI_ANY_ID, PCI_ANY_ID, 0, 0, board_20319 },
drivers/scsi/sata_qstor.c +1 -1
@@ -433,7 +433,7 @@ static inline unsigned int qs_intr_mmio(if (qc && (!(qc->tf.ctl &ATA_NIEN ))) {/* check main status, clearing INTRQ */ -u8 status =ata_chk_status (ap); +u8 status =ata_check_status (ap);if ((status &ATA_BUSY ))continue ; DPRINTK("ata%u: protocol %d (dev_stat 0x%X)\n",
drivers/scsi/sata_sil24.c +19 -16
@@ -220,8 +220,8 @@ struct sil24_port_priv {/* ap->host_set->private_data */ struct sil24_host_priv { -void *host_base;/* global controller control (128 bytes @BAR0) */ -void *port_base;/* port registers (4 * 8192 bytes @BAR2) */ +void __iomem *host_base;/* global controller control (128 bytes @BAR0) */ +void __iomem *port_base;/* port registers (4 * 8192 bytes @BAR2) */ };static u8 sil24_check_status (struct ata_port *ap);
@@ -349,10 +349,12 @@ static struct ata_port_info sil24_port_istatic inline void sil24_update_tf (struct ata_port *ap) {struct sil24_port_priv *pp = ap->private_data; -void *port = (void *)ap->ioaddr.cmd_addr; -struct sil24_prb *prb = port; +void __iomem *port = (void __iomem *)ap->ioaddr.cmd_addr; +struct sil24_prb __iomem *prb = port; +u8 fis[6 *4 ]; -ata_tf_from_fis (prb->fis, &pp->tf); +memcpy_fromio (fis, prb->fis,6 *4 ); +ata_tf_from_fis (fis, &pp->tf); }static u8 sil24_check_status (struct ata_port *ap)
@@ -376,9 +378,9 @@ static int sil24_scr_map[] = {static u32 sil24_scr_read (struct ata_port *ap,unsigned sc_reg) { -void *scr_addr = (void *)ap->ioaddr.scr_addr; +void __iomem *scr_addr = (void __iomem *)ap->ioaddr.scr_addr;if (sc_reg <ARRAY_SIZE (sil24_scr_map)) { -void *addr; +void __iomem *addr; addr = scr_addr + sil24_scr_map[sc_reg] *4 ;return readl (scr_addr + sil24_scr_map[sc_reg] *4 ); }
@@ -387,9 +389,9 @@ static u32 sil24_scr_read(struct ata_porstatic void sil24_scr_write (struct ata_port *ap,unsigned sc_reg,u32 val) { -void *scr_addr = (void *)ap->ioaddr.scr_addr; +void __iomem *scr_addr = (void __iomem *)ap->ioaddr.scr_addr;if (sc_reg <ARRAY_SIZE (sil24_scr_map)) { -void *addr; +void __iomem *addr; addr = scr_addr + sil24_scr_map[sc_reg] *4 ;writel (val, scr_addr + sil24_scr_map[sc_reg] *4 ); }
@@ -454,7 +456,7 @@ static void sil24_qc_prep(struct ata_questatic int sil24_qc_issue (struct ata_queued_cmd *qc) {struct ata_port *ap = qc->ap; -void *port = (void *)ap->ioaddr.cmd_addr; +void __iomem *port = (void __iomem *)ap->ioaddr.cmd_addr;struct sil24_port_priv *pp = ap->private_data;dma_addr_t paddr = pp->cmd_block_dma + qc->tag *sizeof (*pp->cmd_block);
@@ -467,7 +469,7 @@ static void sil24_irq_clear(struct ata_p/* unused */ } -static int __sil24_reset_controller (void *port) +static int __sil24_reset_controller (void __iomem *port) {int cnt;u32 tmp;
@@ -493,7 +495,7 @@ static void sil24_reset_controller(struc { printk(KERN_NOTICE DRV_NAME " ata%u: resetting controller...\n", ap->id); -if (__sil24_reset_controller ((void *)ap->ioaddr.cmd_addr)) +if (__sil24_reset_controller ((void __iomem *)ap->ioaddr.cmd_addr)) printk(KERN_ERR DRV_NAME" ata%u: failed to reset controller\n" , ap->id); }
@@ -527,7 +529,7 @@ static void sil24_error_intr(struct ata_ {struct ata_queued_cmd *qc =ata_qc_from_tag (ap, ap->active_tag);struct sil24_port_priv *pp = ap->private_data; -void *port = (void *)ap->ioaddr.cmd_addr; +void __iomem *port = (void __iomem *)ap->ioaddr.cmd_addr;u32 irq_stat, cmd_err, sstatus, serror; irq_stat =readl (port +PORT_IRQ_STAT );
@@ -574,7 +576,7 @@ static void sil24_error_intr(struct ata_static inline void sil24_host_intr (struct ata_port *ap) {struct ata_queued_cmd *qc =ata_qc_from_tag (ap, ap->active_tag); -void *port = (void *)ap->ioaddr.cmd_addr; +void __iomem *port = (void __iomem *)ap->ioaddr.cmd_addr;u32 slot_stat; slot_stat =readl (port +PORT_SLOT_STAT );
@@ -689,7 +691,8 @@ static int sil24_init_one(struct pci_devstruct ata_port_info *pinfo = &sil24_port_info[board_id];struct ata_probe_ent *probe_ent =NULL ;struct sil24_host_priv *hpriv =NULL ; -void *host_base =NULL , *port_base =NULL ; +void __iomem *host_base =NULL ; +void __iomem *port_base =NULL ;int i, rc;if (!printed_version++)
@@ -771,7 +774,7 @@ static int sil24_init_one(struct pci_devwritel (0 , host_base +HOST_CTRL );for (i =0 ; i < probe_ent->n_ports; i++) { -void *port = port_base + i *PORT_REGS_SIZE ; +void __iomem *port = port_base + i *PORT_REGS_SIZE ;unsigned long portu = (unsigned long )port;u32 tmp;int cnt;
drivers/scsi/sata_svw.c +16 -6
@@ -84,6 +84,8 @@/* Port stride */ #define K2_SATA_PORT_OFFSET 0x100 +static u8 k2_stat_check_status (struct ata_port *ap); +static u32 k2_sata_scr_read (struct ata_port *ap,unsigned int sc_reg) {
@@ -136,16 +138,24 @@ static void k2_sata_tf_load(struct ata_pstatic void k2_sata_tf_read (struct ata_port *ap,struct ata_taskfile *tf) {struct ata_ioports *ioaddr = &ap->ioaddr; -u16 nsect, lbal, lbam, lbah; +u16 nsect, lbal, lbam, lbah, feature; - nsect = tf->nsect =readw (ioaddr->nsect_addr); - lbal = tf->lbal =readw (ioaddr->lbal_addr); - lbam = tf->lbam =readw (ioaddr->lbam_addr); - lbah = tf->lbah =readw (ioaddr->lbah_addr); + tf->command =k2_stat_check_status (ap); tf->device =readw (ioaddr->device_addr); + feature =readw (ioaddr->error_addr); + nsect =readw (ioaddr->nsect_addr); + lbal =readw (ioaddr->lbal_addr); + lbam =readw (ioaddr->lbam_addr); + lbah =readw (ioaddr->lbah_addr); + + tf->feature = feature; + tf->nsect = nsect; + tf->lbal = lbal; + tf->lbam = lbam; + tf->lbah = lbah;if (tf->flags &ATA_TFLAG_LBA48 ) { - tf->hob_feature =readw (ioaddr->error_addr) >>8 ; + tf->hob_feature = feature >>8 ; tf->hob_nsect = nsect >>8 ; tf->hob_lbal = lbal >>8 ; tf->hob_lbam = lbam >>8 ;
drivers/scsi/sata_vsc.c +14 -6
@@ -153,16 +153,24 @@ static void vsc_sata_tf_load(struct ata_static void vsc_sata_tf_read (struct ata_port *ap,struct ata_taskfile *tf) {struct ata_ioports *ioaddr = &ap->ioaddr; -u16 nsect, lbal, lbam, lbah; +u16 nsect, lbal, lbam, lbah, feature; - nsect = tf->nsect =readw (ioaddr->nsect_addr); - lbal = tf->lbal =readw (ioaddr->lbal_addr); - lbam = tf->lbam =readw (ioaddr->lbam_addr); - lbah = tf->lbah =readw (ioaddr->lbah_addr); + tf->command =ata_check_status (ap); tf->device =readw (ioaddr->device_addr); + feature =readw (ioaddr->error_addr); + nsect =readw (ioaddr->nsect_addr); + lbal =readw (ioaddr->lbal_addr); + lbam =readw (ioaddr->lbam_addr); + lbah =readw (ioaddr->lbah_addr); + + tf->feature = feature; + tf->nsect = nsect; + tf->lbal = lbal; + tf->lbam = lbam; + tf->lbah = lbah;if (tf->flags &ATA_TFLAG_LBA48 ) { - tf->hob_feature =readb (ioaddr->error_addr); + tf->hob_feature = feature >>8 ; tf->hob_nsect = nsect >>8 ; tf->hob_lbal = lbal >>8 ; tf->hob_lbam = lbam >>8 ;
include/scsi/scsi.h +3 -0
@@ -116,6 +116,9 @@ extern const char *const scsi_device_typ/* values for service action in */ #define SAI_READ_CAPACITY_16 0x10 +/* Values for T10/04-262r7 */ +#define ATA_16 0x85/* 16-byte pass-thru */ +#define ATA_12 0xa1/* 12-byte pass-thru */ /* * SCSI Architecture Model (SAM) Status codes. Taken from SAM-3 draft
Quoted 6 lines · Jeff Garzik
Please pull from 'upstream-linus' branch of
master.kernel.org:/pub/scm/linux/kernel/git/jgarzik/libata-dev.gitto obtain misc fixes and cleanups, and to merge
the ATA passthru (SMART support) feature.
Are you sure this doesn't propagate Max Kellermann's "2.6.14-rc4-mm1 and
later: second ata_piix controller is invisible" regression?
He did confirm that git-libata-all.patch caused it.
Quoted 5 lines · Andrew Morton
Quoted 3 lines · Jeff Garzik
Please pull from 'upstream-linus' branch of master.kernel.org:/pub/scm/linux/kernel/git/jgarzik/libata-dev.git
Quoted 8 lines
Quoted 2 lines
to obtain misc fixes and cleanups, and to merge
the ATA passthru (SMART support) feature.Are you sure this doesn't propagate Max Kellermann's "2.6.14-rc4-mm1 and
later: secondata_piixcontroller is invisible" regression?He did confirm that git-libata-all.patch caused it.
Highly doubtful.
Even so, it's easy, to I'll ask him to test 2.6.14, 2.6.14-git1, and (tonight's upcoming) 2.6.14-git2 (with my latest pull included) to see if anything breaks.
I think it's some of Alan's changes that aren't yet merged upstream, though I could be wrong.
Jeff
Quoted 4 lines · Jeff Garzik
Even so, it's easy, to I'll ask him to test 2.6.14, 2.6.14-git1, and (tonight's upcoming) 2.6.14-git2 (with my latest pull included) to see if anything breaks.
Side note: one of the downsides of the new "merge lots of stuff early in the development series" approach is that the first few daily snapshots end up being _huge_.
So the -git1 and -git2 patches are/will be very big indeed.
For example, patch-2.6.14-git1 literally ended up being a megabyte compressed. Right now my diff to 2.6.14 (after just two days) is 1.6MB compressed.
Admittedly, some of it is due to things like the MIPS merge, but the point I'm trying to make is that it makes the daily snapshot diffs a lot less useful to people who try to figure out where something broke.
Now, I've gotten several positive comments on how easy "git bisect" is to use, and I've used it myself, but this is the first time that patch users _really_ become very much second-class citizens, and you can't necessarily always do useful things with just the tar-trees and patches. That's sad, and possibly a really big downside.
Don't get me wrong - I personally think that the new merge policy is a clear improvement, but it does have this downside.
Linus
Quoted 8 lines · Linus Torvalds
Now, I've gotten several positive comments on how easy "git bisect" is to use, and I've used it myself, but this is the first time that patch users _really_ become very much second-class citizens, and you can't necessarily always do useful things with just the tar-trees and patches. That's sad, and possibly a really big downside.
Don't get me wrong - I personally think that the new merge policy is a clear improvement, but it does have this downside.
Well... All it takes is extra patches when incremental gets too large; e.g. have a script pick idle interval close to splitting the thing in half until parts get less than <size>. The question is, how much extra load would that create? Another problem is that a lot of intermediates will not build, but that is just as true for -git<n> snapshots ;-/
Quoted 1 line · Linus Torvalds
Side note: one of the downsides of the new "merge lots of stuff early in the development series" approach is that the first few daily snapshots end up being _huge_.
Yeah. Back when I did the BK snapshots, I would occasionally do a middle-of-the-day snapshot if there were a ton of incoming merges in a 24-hour span.
If this "huge -git1" becomes a real problem, we could always
* give you a manual "do snapshot" button
* ask the maintainers to spread out their submits across multiple days, as I am doing now
* sell you on capping the daily push-to-kernel.org limit. merge stuff into "day1", "day2", etc. branches when the main branch "fills up" for the day.
None of these are terribly painful, but none are terribly appealing either.
Jeff
Quoted 5 lines · Linus Torvalds
Now, I've gotten several positive comments on how easy "git bisect" is to use, and I've used it myself, but this is the first time that patch users _really_ become very much second-class citizens, and you can't necessarily always do useful things with just the tar-trees and patches. That's sad, and possibly a really big downside.
Since GIT is real free software that even purists may use without fear, this downside is certainly not as critical as it was in the BK days.
The fact is: tar and patches simply do not scale anymore.
Nicolas
Quoted 3 lines · Nicolas Pitre
Since GIT is real free software that even purists may use without fear, this downside is certainly not as critical as it was in the BK days.
I don't think that's the problem.
It's the learning curve. I don't think git is that hard to use (certainly not if you just follow somebody elses tree and occasionally do a "git bisect"), but git _is_ different. And if you're not a developer, or even if you are, and you're just somebody who has alway sjust used CVS, then something like "patch" is simply to understand what it's doing, with basically no abstractions anywhere.
Compared to tar-files + patches, git has a _lot_ of abstract things going on that you have to get used to before you aren't intimidated by it.
And the thing is, the most important bug-reports often come from people who aren't necessarily developers - because they are the ones that see a bug that none of the developers saw.. So making it easy for people like that to test a few different versions is probably important.
Linus
Quoted 5 lines · Linus Torvalds
Quoted 3 lines · Nicolas Pitre
Since GIT is real free software that even purists may use without fear, this downside is certainly not as critical as it was in the BK days.
Quoted 8 lines
I don't think that's the problem.
It's the learning curve. I don't think git is that hard to use (certainly not if you just follow somebody elses tree and occasionally do a "git bisect"), but git _is_ different. And if you're not a developer, or even if you are, and you're just somebody who has alway sjust used CVS, then something like "patch" is simply to understand what it's doing, with basically no abstractions anywhere.
Agreed.
Quoted 2 lines
Compared to tar-files + patches, git has a _lot_ of abstract things going on that you have to get used to before you aren't intimidated by it.
Maybe gitweb could be extended to provide any arbitrary patch with a front-end to git-bisect...
Nicolas
Quoted 13 lines · Linus Torvalds
Quoted 4 lines · Jeff Garzik
Even so, it's easy, to I'll ask him to test 2.6.14, 2.6.14-git1, and (tonight's upcoming) 2.6.14-git2 (with my latest pull included) to see if anything breaks.
Side note: one of the downsides of the new "merge lots of stuff early in the development series" approach is that the first few daily snapshots end up being _huge_.
Quoted 6 lines
So the -git1 and -git2 patches are/will be very big indeed.
For example, patch-2.6.14-git1 literally ended up being a megabyte compressed. Right now my diff to 2.6.14 (after just two days) is 1.6MB compressed.
However there's usually little overlap between the subsystems trees - with a net update, a USB update, a SCSI update and an ia64 update it's usually pretty obvious which one caused a particular regression.
And given that the size of each individual subsystem update is unaltered, it doesn't really matter whether or not they all came on the same day.
The individual -mm-only patches tend to be more scattered around the tree, which is why I send them as batches of 100-200 every couple of days: to get a bit of separation in the -git snapshots. This hasn't actually proven to be very useful, though.
Quoted 4 lines · Andrew Morton
However there's usually little overlap between the subsystems trees - with a net update, a USB update, a SCSI update and an ia64 update it's usually pretty obvious which one caused a particular regression.
Yes, that's true, but the subsystem trees themselves now tend to have more time to grow, and tend to be merged more int one go.
Which is all intentional, of course - the whole _point_ of the new thing is that they should be in your tree and tested and then merged into my tree during a short "merge window" for further testing.
But it means that updates that used to "tricke in" to my kernel now tend to be more of a "big merge", making the daily snapshot less effective.
So when we get a "uhhuh, networking failed between daily snapshot X and X+1" we now more often have a single biger merge of networking stuff that was just waiting for the merge window to open..
Quoted 4 lines
The individual -mm-only patches tend to be more scattered around the tree, which is why I send them as batches of 100-200 every couple of days: to get a bit of separation in the -git snapshots. This hasn't actually proven to be very useful, though.
One issue is of course that a lot of people doing reports don't actually even test the daily snapshots.
Some bug reporters do, and I'm very grateful, and they are wonderful people. Others do after some prodding, and yet others will never bother to try a couple of different kernels at all ;/
So the snapshot separation doesn't always necessarily help, even when it's there.
Linus
Perhaps the script that creates the -git1 etc. nightly snapshots could peek at how many commits were included since the previous snapshot ... if it is above some threshhold, then it could run "git bisect" to create a -git0.5 (recursing if needed to make -git0.25 etc.)
-Tony
Quoted 9 lines · Linus Torvalds
Quoted 4 lines · Jeff Garzik
Even so, it's easy, to I'll ask him to test 2.6.14, 2.6.14-git1, and (tonight's upcoming) 2.6.14-git2 (with my latest pull included) to see if anything breaks.
Side note: one of the downsides of the new "merge lots of stuff early in the development series" approach is that the first few daily snapshots end up being _huge_.
How about doing it in several stages at the beginning? I.e., have -git1 after one set of patches (pulling in from somebody, etc), and so on?
Signature · 4 lines
Dr. Horst H. von Brand User #22616 counter.li.org Departamento de Informatica Fono: +56 32 654431 Universidad Tecnica Federico Santa Maria +56 32 654239 Casilla 110-V, Valparaiso, Chile Fax: +56 32 797513
Quoted 8 lines · Linus Torvalds
Now, I've gotten several positive comments on how easy "git bisect" is to use, and I've used it myself, but this is the first time that patch users _really_ become very much second-class citizens, and you can't necessarily always do useful things with just the tar-trees and patches. That's sad, and possibly a really big downside.
Don't get me wrong - I personally think that the new merge policy is a clear improvement, but it does have this downside.
One possible solution:
Rather than making the patch a simple diff of the trees, make the patch a cat of the individual patches/commits (preferably with descriptions) that got applied, in the order they got applied.
This makes the patch bigger, but it also means that bisect can be done with vi, simply by truncating the file at the last interesting patch and applying the truncated version to a clean tree. Since patch applies hunks in order and sifts out hunks from description already...
Is this a viable option?
Rob
Quoted 11 lines · Rob Landley
Rather than making the patch a simple diff of the trees, make the patch a cat of the individual patches/commits (preferably with descriptions) that got applied, in the order they got applied.
This makes the patch bigger, but it also means that bisect can be done with vi, simply by truncating the file at the last interesting patch and applying the truncated version to a clean tree. Since patch applies hunks in order and sifts out hunks from description already...
Is this a viable option?
No.
There is no "ordering" in a distributed environment. We have things happening in parallel, adn you can't really linearize the patches.
The closest you can get is "git bisect", which does the right thing.
Linus
Quoted 10 lines · Linus Torvalds
Quoted 1 line
Is this a viable option?
No.
There is no "ordering" in a distributed environment. We have things happening in parallel, adn you can't really linearize the patches.
The closest you can get is "git bisect", which does the right thing.
Linus
I know there isn't an absolute or stable ordering, but can't a temporary ordering be exported?
I was under the impression that the bk->cvs gateway squashed changes into a sort of order, way back when. Admittedly this order wasn't stable, and new changes perturbed the whole list. But just for debugging purposes with a "patch vs last -rc"?
Rob
Quoted 3 lines · Rob Landley
I know there isn't an absolute or stable ordering, but can't a temporary ordering be exported?
Not generally, no. And definitely not easily.
Quoted 2 lines
I was under the impression that the
bk->cvsgateway squashed changes into a sort of order, way back when.
I have to say that the bk->cvs gateway is actually a very impressive linearization, and I don't even know how it did it. But even that one wasn't perfect - occasionally it ended up with big patches for merges.
Using "git bisect" to generate successive bisections (and then building up a linearization patch from that) would work, but it would result in some _really_ strange things: it would basically have one patch do one thing, then the next patch might _undo_ that, and do another, and then the third patch would re-do it and do them both together.
And that's really sometimes the best linearization you can do. But that's just too strange and confusing, I think. And the patches would be horribly inefficient.
At that point I'd rather teach people to use "git bisect" natively. It wouldn't be any less confusing than the patches ;)
Linus
Quoted 3 lines · Linus Torvalds
Using "git bisect" to generate successive bisections (and then building up a linearization patch from that) would work, but it would result in some _really_ strange things:
Which is fine for a debugging tool.
It sounds like any git user could make one of these patches now, and put them up each time you cut a release. (Hmmm, is this likely to be scriptable, or does it require poking at the git source? Coming up to speed on git is a to-do item for me. It has its own _vocabulary_, not exactly a trivial time expenditure to understand what's going on for those of us who never got around to using bitkeeper...)
Quoted 7 lines
it would basically have one patch do one thing,
then the next patch might _undo_ that, and do another, and then the third patch would re-do it and do them both together.And that's really sometimes the best linearization you can do. But that's just too strange and confusing, I think. And the patches would be horribly inefficient.
"Horribly inefficient" seems pretty standard for a debugging tool. Dwarf2 bloats executables by a factor of 10 or more. If it's a big issue, perhaps kernel.org could offer both "rc1-rc2.patch" (the "simple diff between trees" version) and "rc1-rc2-bisect.patch" (the "ugly granular debugging" version).
Also, the patch description in the bisect version could easily include a URL to an online git diff viewer (can http://www.kernel.org/git do this?) in case people want to see what it did, since the patch for artificially linearized changes can easily be unintelligible, ala:
The human readable version of this patch is at:
http://www.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commitdiff;h=3e6716e748609a3a899e8d670e42832921bd45bc
Quoted 2 lines
At that point I'd rather teach people to use "git bisect" natively. It wouldn't be any less confusing than the patches ;)
The problem with teaching people to use "git bisect" is you have people who aren't kernel developers who have a bug, and want to help track down the bug, and you're telling them "Ok, to debug this you need to install git, use it to check out the linux-kernel repository, then..."
I suspect even the best-intentioned dilettantes seldom make it to "then". Telling them to binary search through a downloadable text file on the marker "===newpatch===" or some such sounds like a much easier sell. It doesn't even need a shell script:
grep -n MARKER bisect.patch | less
(pick a line number)
head -n linenumber bisect.patch > test.patch
If that's not it, revert test.patch and then try again. Tell us the first line number that failed, which is the end of the patch we want...
Hmmm... The logical place to put the URL to gitweb is at the _end_ of the patch, attached to the marker. So that's what they see in the grep, and the last thing they test when they cut at that line with head -n...
Quoted 1 line
Linus
Rob
Quoted 10 lines · Rob Landley
grep -n MARKER bisect.patch | less
(pick a line number)
head -n linenumber bisect.patch > test.patchIf that's not it, revert test.patch and then try again. Tell us the first line number that failed, which is the end of the patch we want...
Hmmm... The logical place to put the URL to gitweb is at the _end_ of the patch, attached to the marker. So that's what they see in the grep, and the last thing they test when they cut at that line with head -n...
Well, do people realize that 'git bisect' is *not* a textual half-way between, but rather is computed every time you feed new "the patch you told me to test last time was good/bad" information? I do not think statically generating a huge text and telling the user to apply up to halfway and bisect by hand would not work -- it would be quite different from what git bisect would give you.
I think public webserver based bisect service David Lang suggests might work. The interaction with it would start by the end user somehow giving it the last known-working commit ID (A) (pick from gitweb shortlog, perhaps) and a commit ID newer than that that broke things (B) (again, pick from gitweb shortlog). Then the service runs bisect on the server side, spit out a diff against (A). The end user applies the patch, try it, and then come back and tell if it worked or not,... Since we are talking about the kernel development, I think the cycle might involve rebooting the machine; so you would probably need two machines (one guinea-pig machine to reboot, another to keep the browser open so that your state can be kept somehow).
Quoted 21 lines · Junio C Hamano
Quoted 10 lines · Rob Landley
grep -n MARKER bisect.patch | less
(pick a line number)
head -n linenumber bisect.patch > test.patchIf that's not it, revert test.patch and then try again. Tell us the first line number that failed, which is the end of the patch we want...
Hmmm... The logical place to put the URL to gitweb is at the _end_ of the patch, attached to the marker. So that's what they see in the grep, and the last thing they test when they cut at that line with head -n...
Well, do people realize that 'git bisect' is *not* a textual half-way between, but rather is computed every time you feed new "the patch you told me to test last time was good/bad" information? I do not think statically generating a huge text and telling the user to apply up to halfway and bisect by hand would not work -- it would be quite different from what git bisect would give you.
Quoted 12 lines
I think public webserver based bisect service David Lang suggests might work. The interaction with it would start by the end user somehow giving it the last known-working commit ID (A) (pick from gitweb shortlog, perhaps) and a commit ID newer than that that broke things (B) (again, pick from gitweb shortlog). Then the service runs bisect on the server side, spit out a diff against (A). The end user applies the patch, try it, and then come back and tell if it worked or not,... Since we are talking about the kernel development, I think the cycle might involve rebooting the machine; so you would probably need two machines (one guinea-pig machine to reboot, another to keep the browser open so that your state can be kept somehow).
given the time required to compile a kernel and reboot you can't plan to keep the info server side (browser connections will time out well before this finishes)
instead this will require saving something on the client and passing it back to the server.
offhand I'd say that it would end up working something like this.
1. go to the website and pick starting good/bad points
2. the server will give you a tgz (bzip is significantly more load on the server) that contains the patch and a status file.
3. apply the patch to the starting tree (in theory it may be a smaller patch to either tree, but it's easier to explain if one is picked all the time so initially it should be the working tree). compile the tree and test
4. go back to the website, upload the status file and indicate sucess or failure
5. goto 2
the file would basicly save and report what git bisect would normally store in environment variables.
the server will have to do some sanity checking on the good and bad points it's given (for security reasons if nothing else)
potentially it should suggest checking an officially tagged release that's between the good and bad points. this may actually slow testing slightly (if you know it worked on 2.6.7 and failed on 2.6.12 you would probably be the most efficiant if you start bisecting directly, but it's far easier for others to understand things if you test 2.6.10 and other tagged releases first)
I also suspect that a log of what people are testing would be intereating to people as well (if you see a bunch of people bisecting in the same area it's an indication that more attention needs to be paied to that area)
David Lang
Signature · 2 lines
There are two ways of constructing a software design. One way is to make it so simple that there are obviously no deficiencies. And the other way is to make it so complicated that there are no obvious deficiencies. -- C.A.R. Hoare
Quoted 50 lines · David Lang
Quoted 21 lines · Junio C Hamano
Quoted 10 lines · Rob Landley
grep -n MARKER bisect.patch | less
(pick a line number)
head -n linenumber bisect.patch > test.patchIf that's not it, revert test.patch and then try again. Tell us the first line number that failed, which is the end of the patch we want...
Hmmm... The logical place to put the URL to gitweb is at the _end_ of the patch, attached to the marker. So that's what they see in the grep, and the last thing they test when they cut at that line with head -n...
Well, do people realize that 'git bisect' is *not* a textual half-way between, but rather is computed every time you feed new "the patch you told me to test last time was good/bad" information? I do not think statically generating a huge text and telling the user to apply up to halfway and bisect by hand would not work -- it would be quite different from what git bisect would give you.
Quoted 12 lines
I think public webserver based bisect service David Lang suggests might work. The interaction with it would start by the end user somehow giving it the last known-working commit ID (A) (pick from gitweb shortlog, perhaps) and a commit ID newer than that that broke things (B) (again, pick from gitweb shortlog). Then the service runs bisect on the server side, spit out a diff against (A). The end user applies the patch, try it, and then come back and tell if it worked or not,... Since we are talking about the kernel development, I think the cycle might involve rebooting the machine; so you would probably need two machines (one guinea-pig machine to reboot, another to keep the browser open so that your state can be kept somehow).
given the time required to compile a kernel and reboot you can't plan to keep the info server side (browser connections will time out well before this finishes)
instead this will require saving something on the client and passing it back to the server.
offhand I'd say that it would end up working something like this.
1. go to the website and pick starting good/bad points
2. the server will give you a tgz (bzip is significantly more load on the server) that contains the patch and a status file.
3. apply the patch to the starting tree (in theory it may be a smaller patch to either tree, but it's easier to explain if one is picked all the time so initially it should be the working tree). compile the tree and test
4. go back to the website, upload the status file and indicate sucess or failure
5. goto 2the file would basicly save and report what git bisect would normally store in environment variables.
Quoted 7 lines
the server will have to do some sanity checking on the good and bad points it's given (for security reasons if nothing else)
potentially it should suggest checking an officially tagged release that's between the good and bad points. this may actually slow testing slightly (if you know it worked on 2.6.7 and failed on 2.6.12 you would probably be the most efficiant if you start bisecting directly, but it's far easier for others to understand things if you test 2.6.10 and other tagged releases first)
I also suspect that a log of what people are testing would be intereating to people as well (if you see a bunch of people bisecting in the same area it's an indication that more attention needs to be paied to that area)
David Lang
an alternate approach that would be a little cleaner would be to use a cookie to store the bisect state info so that it is just a patch that's downloaded (although this does limit someone to bisecting one thing at a time, I think that's not an unreasonable limitation)
David Lang
Signature · 2 lines
There are two ways of constructing a software design. One way is to make it so simple that there are obviously no deficiencies. And the other way is to make it so complicated that there are no obvious deficiencies. -- C.A.R. Hoare
Quoted 6 lines · David Lang
given the time required to compile a kernel and reboot you can't plan to keep the info server side (browser connections will time out well before this finishes)
instead this will require saving something on the client and passing it back to the server.
I was thinking about doing thatn in hidden input fields and passing form back and forth. After all what real git bisect keeps locally are one bad commit ID and bunch of good commit IDs.
Quoted 6 lines · Junio C Hamano
Quoted 4 lines · David Lang
given the time required to compile a kernel and reboot you can't plan to keep the info server side (browser connections will time out well before this finishes)
Quoted 7 lines
Quoted 2 lines
instead this will require saving something on the client and passing it back to the server.
I was thinking about doing thatn in hidden input fields and passing form back and forth. After all what real git bisect keeps locally are one bad commit ID and bunch of good commit IDs.
if it's kept in a file or cookie then it can survive a reboot and other distractions (remember that this process can take days if the problem doesn't show up at boot). a cookie can hold a couple K worth of data, a file has no size limit.
it would also be a good idea if the web page could give an estimate estimate of how many additional tests may end up being required.
David Lang
Signature · 2 lines
There are two ways of constructing a software design. One way is to make it so simple that there are obviously no deficiencies. And the other way is to make it so complicated that there are no obvious deficiencies. -- C.A.R. Hoare
Quoted 9 lines · David Lang
Quoted 4 lines
I was thinking about doing thatn in hidden input fields and passing form back and forth. After all what real git bisect keeps locally are one bad commit ID and bunch of good commit IDs.
if it's kept in a file or cookie then it can survive a reboot and other distractions (remember that this process can take days if the problem doesn't show up at boot). a cookie can hold a couple K worth of data, a file has no size limit.
Actually, lots of Linux browsers these days treats all cookies as session cookies for security reasons. So surviving a reboot still isn't guaranteed. But it's possible.
You can also have 'em bookmark a URL...
Quoted 2 lines
it would also be a good idea if the web page could give an estimate estimate of how many additional tests may end up being required.
Bisect already says how many commits are left in the pool, so roughly log(2) of that...
Quoted 1 line
David Lang
Rob
Quoted 11 lines · Rob Landley
Quoted 9 lines · David Lang
Quoted 4 lines
I was thinking about doing thatn in hidden input fields and passing form back and forth. After all what real git bisect keeps locally are one bad commit ID and bunch of good commit IDs.
if it's kept in a file or cookie then it can survive a reboot and other distractions (remember that this process can take days if the problem doesn't show up at boot). a cookie can hold a couple K worth of data, a file has no size limit.
Quoted 5 lines
Actually, lots of Linux browsers these days treats all cookies as session cookies for security reasons. So surviving a reboot still isn't guaranteed. But it's possible.
You can also have 'em bookmark a URL...
Trac has a 'Session ID' key that stores something like a cookie, except that it's serverside. Something halfway a cookie and an actual login. The user can write down the session ID or just assign its own, and the re-enter the session ID and all things are restored to the settings he had chosen. Something like this, maybe?
Signature · 4 lines
Giuseppe "Oblomov" Bilotta "I'm never quite so stupid as when I'm being smart" --Linus van Pelt
Quoted 8 lines · Giuseppe Bilotta
Quoted 6 lines · Rob Landley
Quoted 5 lines · David Lang
Quoted 4 lines
I was thinking about doing thatn in hidden input fields and passing form back and forth. After all what real git bisect keeps locally are one bad commit ID and bunch of good commit IDs.
Quoted 8 lines
Quoted 8 lines
Quoted 4 lines
if it's kept in a file or cookie then it can survive a reboot and other distractions (remember that this process can take days if the problem doesn't show up at boot). a cookie can hold a couple K worth of data, a file has no size limit.
Actually, lots of Linux browsers these days treats all cookies as session cookies for security reasons. So surviving a reboot still isn't guaranteed. But it's possible.
I haven't seen a browser that does this (it would break a lot of sites), I have seen the option when you go to accept a cookie to accept it for this session only, so a note to the user to allow the cookie to persist may be enough, or we can just go the tarball route and the file that gets saved and uploaded would be enough.
what browser have you seen this default bahavior on?
Quoted 7 lines
Quoted 1 line
You can also have 'em bookmark a URL...
Trac has a 'Session ID' key that stores something like a cookie, except that it's serverside. Something halfway a cookie and an actual login. The user can write down the session ID or just assign its own, and the re-enter the session ID and all things are restored to the settings he had chosen. Something like this, maybe?
saving the state on the server means that you have to deal with (or somehow eliminate) collisions between different users, it means that you need to have the server-side data time out and get garbage collected, and in general adds significant complexity to the project.
David Lang
Signature · 2 lines
There are two ways of constructing a software design. One way is to make it so simple that there are obviously no deficiencies. And the other way is to make it so complicated that there are no obvious deficiencies. -- C.A.R. Hoare
Quoted 8 lines · David Lang
Quoted 5 lines · Giuseppe Bilotta
Trac has a 'Session ID' key that stores something like a cookie, except that it's serverside. Something halfway a cookie and an actual login. The user can write down the session ID or just assign its own, and the re-enter the session ID and all things are restored to the settings he had chosen. Something like this, maybe?
Quoted 4 lines
saving the state on the server means that you have to deal with (or somehow eliminate) collisions between different users, it means that you need to have the server-side data time out and get garbage collected, and in general adds significant complexity to the project.
Well, I honestly don't have the slightest idea about this is handled internally by Trac, but it seemed to be that something like this would fit the needs, more or less. Of course it may need to be tuned for the specific purpose ...
Signature · 9 lines
Giuseppe "Oblomov" Bilotta
"E la storia dell'umanità, babbo?"
"Ma niente: prima si fanno delle cazzate,
poi si studia che cazzate si sono fatte"
(Altan)
("And what about the history of the human race, dad?"
"Oh, nothing special: first they make some foolish things,
then you study what foolish things have been made")Quoted 2 lines · Linus Torvalds
Using "git bisect" to generate successive bisections (and then building up a linearization patch from that) would work,
I don't suppose I could make puppy eyes at somebody _else_ to bang on git a bit and try to come up with a proof-of-concept patch? (Say 2.6.14-rc5-bisect.patch?)
I just downloaded the git source snapshot to find out it won't compile without openssl headers. (Thanks, ubuntu, for stripping out every darn development header and making them separate things you have to hunt down and install individually, even though the box actually _has_ whatever darn library it's complaining about and really couldn't _function_ without it. Sigh.)
Rob
(kynaptic --install-the-development-headers-for-all-installed-packages-already)
Quoted 2 lines · Linus Torvalds
I have to say that the
bk->cvsgateway is actually a very impressive linearization, and I don't even know how it did it.
That's easy -- it found the longest path from A to B and generated patches between each step.
Looking at the latest tree with gitk, I'd guess that the previous rate of roughly 50% is no longer achievable; linearizing would aggregate some large chunks of patch-series and subtree merges (no surprise there).
Signature · 5 lines
Matthias Urlichs | {M:U} IT Design @ m-u-it.de | [email protected]
Disclaimer: The quote was selected randomly. Really. | http://smurf.noris.de
- -
Automobile, n.:
A four-wheeled vehicle that runs up hills and down pedestrians.Quoted 6 lines · Linus Torvalds
Quoted 1 line
Is this a viable option?
No.
There is no "ordering" in a distributed environment. We have things happening in parallel, adn you can't really linearize the patches.
To clarify my thinking:
It doesn't matter what the ordering is, as long as A) the patches are separated somehow, B) the resulting kernel from applying any initial subset (patches 1-X in the series) has some reasonable chance to build and work.
Any arbitrary order is theoretically fine for (A). Alphabetical by msgid or sha1sum. Or the order they appear in the changelog.
It's (B) that's the tricky bit, but not an insoluble problem. "The order Linux imported them into his tree" might give that.
Quoted 1 line
The closest you can get is "git bisect", which does the right thing.
Ok, so we've already got an order, whatever order git bisect puts them in. (It doesn't have to be stable between releases, just a snapshot in time of a set of individual patches which, cumulatively applied,would have the same effect as the big rc1->rc2 diffs we've been getting.)
It doesn't sound like it would be _too_ hard to abuse the "git bisect" mechanism to work out each possible bisection point between -rc1 and -rc1, and if that can be done why can't it spit out the individual patches (with descriptions) and cat them together?
Why wouldn't this work?
Quoted 1 line
Linus
Rob
Quoted 28 lines · On Sun, 30 Oct 2005 17:59:39 -0600 Rob Landley wrote:
Quoted 6 lines · Linus Torvalds
Quoted 1 line
Is this a viable option?
No.
There is no "ordering" in a distributed environment. We have things happening in parallel, adn you can't really linearize the patches.
To clarify my thinking:
It doesn't matter what the ordering is, as long as A) the patches are separated somehow, B) the resulting kernel from applying any initial subset (patches 1-X in the series) has some reasonable chance to build and work.
Any arbitrary order is theoretically fine for (A). Alphabetical by msgid or sha1sum. Or the order they appear in the changelog.
It's (B) that's the tricky bit, but not an insoluble problem. "The order Linux imported them into his tree" might give that.
Quoted 1 line
The closest you can get is "git bisect", which does the right thing.
Ok, so we've already got an order, whatever order git bisect puts them in. (It doesn't have to be stable between releases, just a snapshot in time of a set of individual patches which, cumulatively applied,would have the same effect as the big
rc1->rc2diffs we've been getting.)
Quoted 6 lines
It doesn't sound like it would be _too_ hard to abuse the "git bisect" mechanism to work out each possible bisection point between -rc1 and -rc1, and if that can be done why can't it spit out the individual patches (with descriptions) and cat them together?
Why wouldn't this work?
Why isn't there a linus.git ordering? that can be made to work.
---
~Randy
Hi!
Quoted 13 lines
Quoted 3 lines
Even so, it's easy, to I'll ask him to test 2.6.14, 2.6.14-git1, and (tonight's upcoming) 2.6.14-git2 (with my latest pull included) to see if anything breaks.
Side note: one of the downsides of the new "merge lots of stuff early in the development series" approach is that the first few daily snapshots end up being _huge_.
So the -git1 and -git2 patches are/will be very big indeed.
For example, patch-2.6.14-git1 literally ended up being a megabyte compressed. Right now my diff to 2.6.14 (after just two days) is 1.6MB compressed.
...
Quoted 8 lines
Now, I've gotten several positive comments on how easy "git bisect" is to use, and I've used it myself, but this is the first time that patch users _really_ become very much second-class citizens, and you can't necessarily always do useful things with just the tar-trees and patches. That's sad, and possibly a really big downside.
Don't get me wrong - I personally think that the new merge policy is a clear improvement, but it does have this downside.
Well, git bisect helps a bit, but does not really cut it. If changes are merged slowly enough, you usually don't need to go through history; you know it is broken, you know it worked yesterday, and diff is small enough...
Pavel
Signature · 1 line
64 bytes from 195.113.31.123: icmp_seq=28 ttl=51 time=448769.1 ms
Quoted 26 lines · Linus Torvalds
Quoted 4 lines · Jeff Garzik
Even so, it's easy, to I'll ask him to test 2.6.14, 2.6.14-git1, and (tonight's upcoming) 2.6.14-git2 (with my latest pull included) to see if anything breaks.
Side note: one of the downsides of the new "merge lots of stuff early in the development series" approach is that the first few daily snapshots end up being _huge_.
So the -git1 and -git2 patches are/will be very big indeed.
For example, patch-2.6.14-git1 literally ended up being a megabyte compressed. Right now my diff to 2.6.14 (after just two days) is 1.6MB compressed.
Admittedly, some of it is due to things like the MIPS merge, but the point I'm trying to make is that it makes the daily snapshot diffs a lot less useful to people who try to figure out where something broke.
Now, I've gotten several positive comments on how easy "git bisect" is to use, and I've used it myself, but this is the first time that patch users _really_ become very much second-class citizens, and you can't necessarily always do useful things with just the tar-trees and patches. That's sad, and possibly a really big downside.
Quoted 4 lines
Don't get me wrong - I personally think that the new merge policy is a clear improvement, but it does have this downside.
Linus
how about setting up something on a webserver (ideally kernel.org) to do the git bisect and output patches against the daily snapshots.
if a lot of people used it the load would be an issue, but if it's only used by a relativly few people tracking down bugs it's probably worth it.
David Lang
Signature · 2 lines
There are two ways of constructing a software design. One way is to make it so simple that there are obviously no deficiencies. And the other way is to make it so complicated that there are no obvious deficiencies. -- C.A.R. Hoare