)]}'
{"/COMMIT_MSG":[{"author":{"_account_id":1000021,"name":"Antonio Borneo","email":"borneo.antonio@gmail.com","username":"borneoa"},"change_message_id":"6a3f10b6ff93d6d137f848152271dac7a5f50c7f","unresolved":false,"context_lines":[{"line_number":7,"context_line":"Add remote bitbang write buffer."},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"Change 7dd323b26 reduced remote bitbang performance a lot. This change"},{"line_number":10,"context_line":"gets most of that performance back again, by reintroducing a write"},{"line_number":11,"context_line":"buffer."},{"line_number":12,"context_line":""},{"line_number":13,"context_line":"Signed-off-by: Tim Newsome \u003ctim@sifive.com\u003e"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":1,"id":"aedf27f1_f8612002","line":10,"updated":"2021-05-28 22:21:23.000000000","message":"\"gets most of that performance back\"!\nDo you mean even after this patch it\u0027s slower than before?","commit_id":"df5d2ecc1f268b5b2c17fcc05bbdf63c0e4c6a94"},{"author":{"_account_id":1000021,"name":"Antonio Borneo","email":"borneo.antonio@gmail.com","username":"borneoa"},"change_message_id":"7625d031d6df7b93bdebc3512f730a4f48795f32","unresolved":false,"context_lines":[{"line_number":7,"context_line":"Add remote bitbang write buffer."},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"Change 7dd323b26 reduced remote bitbang performance a lot. This change"},{"line_number":10,"context_line":"gets most of that performance back again, by reintroducing a write"},{"line_number":11,"context_line":"buffer."},{"line_number":12,"context_line":""},{"line_number":13,"context_line":"Signed-off-by: Tim Newsome \u003ctim@sifive.com\u003e"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":1,"id":"aedf27f1_fbb27a47","line":10,"in_reply_to":"aedf27f1_383fa8d5","updated":"2021-05-30 22:03:03.000000000","message":"Any idea why? 512 byte buffer is too small?\nCan you add these time info in the commit message, plus on which OS?","commit_id":"df5d2ecc1f268b5b2c17fcc05bbdf63c0e4c6a94"},{"author":{"_account_id":1001242,"name":"Tim Newsome","email":"tim@sifive.com","username":"timsifive"},"change_message_id":"c723e986a9218677cc89218b4d475e4990c5d601","unresolved":false,"context_lines":[{"line_number":7,"context_line":"Add remote bitbang write buffer."},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"Change 7dd323b26 reduced remote bitbang performance a lot. This change"},{"line_number":10,"context_line":"gets most of that performance back again, by reintroducing a write"},{"line_number":11,"context_line":"buffer."},{"line_number":12,"context_line":""},{"line_number":13,"context_line":"Signed-off-by: Tim Newsome \u003ctim@sifive.com\u003e"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":1,"id":"aedf27f1_383fa8d5","line":10,"in_reply_to":"aedf27f1_f8612002","updated":"2021-05-29 00:22:41.000000000","message":"Yes. Timings using riscv-tests/debug, DebugBreakpoint against spike64.\n\nBefore Windows support was added: 3.09s\nAfter Windows support was added: 12.67s\nAfter this change: 4.69s","commit_id":"df5d2ecc1f268b5b2c17fcc05bbdf63c0e4c6a94"},{"author":{"_account_id":1001667,"name":"Jan Matyas","email":"jan.matyas@codasip.com","username":"JanMatCodasip"},"change_message_id":"2cbffd49447b68700dc98f8b648b2cdcdd2abea9","unresolved":false,"context_lines":[{"line_number":7,"context_line":"Add remote bitbang write buffer."},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"Change 7dd323b26 reduced remote bitbang performance a lot. This change"},{"line_number":10,"context_line":"gets most of that performance back again, by reintroducing a write"},{"line_number":11,"context_line":"buffer."},{"line_number":12,"context_line":""},{"line_number":13,"context_line":"Signed-off-by: Tim Newsome \u003ctim@sifive.com\u003e"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":1,"id":"aedf27f1_7b868a6c","line":10,"in_reply_to":"aedf27f1_fbb27a47","updated":"2021-05-31 07:22:35.000000000","message":"As a note:\n\nFrom experience, getting to the root cause of this type of performance glitches is quite hard and time consuming. Also the behavior of the \"consumer\" (i.e. the remote bitbang server) will play its role here.\n\nI presume that Spike ISA simulator was used as the bitbang server for taking these measurements. Measuring and investigating the performance would get even more complicated when the bitbang server is part of a RTL simulation  (with software like Questa Advanced Simulator or Verilator).\n\nMy recommendation would be to:\n- document the performance improvement in the commit message\n- accept the changes \"as is\" as an incremental update, with the expectation that there is still some room for improvement, if someone is willing to invest (considerable?) time into that","commit_id":"df5d2ecc1f268b5b2c17fcc05bbdf63c0e4c6a94"}],"src/jtag/drivers/remote_bitbang.c":[{"author":{"_account_id":1000863,"name":"Tarek BOCHKATI","email":"tarek.bouchkati@gmail.com","username":"BouchkatiTarek"},"change_message_id":"6d65139e85caecf7ea81e9c37bfa231ec61bc70b","unresolved":false,"context_lines":[{"line_number":44,"context_line":"static unsigned remote_bitbang_recv_buf_start;"},{"line_number":45,"context_line":"static unsigned remote_bitbang_recv_buf_end;"},{"line_number":46,"context_line":""},{"line_number":47,"context_line":"static int remote_bitbang_buf_full(void)"},{"line_number":48,"context_line":"{"},{"line_number":49,"context_line":"\treturn remote_bitbang_recv_buf_end \u003d\u003d"},{"line_number":50,"context_line":"\t\t((remote_bitbang_recv_buf_start + sizeof(remote_bitbang_recv_buf) - 1) %"}],"source_content_type":"text/x-csrc","patch_set":1,"id":"aedf27f1_784e909d","line":47,"range":{"start_line":47,"start_character":7,"end_line":47,"end_character":10},"updated":"2021-05-28 21:12:01.000000000","message":"maybe this should have bool as returned type","commit_id":"df5d2ecc1f268b5b2c17fcc05bbdf63c0e4c6a94"},{"author":{"_account_id":1001242,"name":"Tim Newsome","email":"tim@sifive.com","username":"timsifive"},"change_message_id":"c723e986a9218677cc89218b4d475e4990c5d601","unresolved":false,"context_lines":[{"line_number":44,"context_line":"static unsigned remote_bitbang_recv_buf_start;"},{"line_number":45,"context_line":"static unsigned remote_bitbang_recv_buf_end;"},{"line_number":46,"context_line":""},{"line_number":47,"context_line":"static int remote_bitbang_buf_full(void)"},{"line_number":48,"context_line":"{"},{"line_number":49,"context_line":"\treturn remote_bitbang_recv_buf_end \u003d\u003d"},{"line_number":50,"context_line":"\t\t((remote_bitbang_recv_buf_start + sizeof(remote_bitbang_recv_buf) - 1) %"}],"source_content_type":"text/x-csrc","patch_set":1,"id":"aedf27f1_d858dc5b","line":47,"range":{"start_line":47,"start_character":7,"end_line":47,"end_character":10},"in_reply_to":"aedf27f1_784e909d","updated":"2021-05-29 00:22:41.000000000","message":"Done","commit_id":"df5d2ecc1f268b5b2c17fcc05bbdf63c0e4c6a94"},{"author":{"_account_id":1000863,"name":"Tarek BOCHKATI","email":"tarek.bouchkati@gmail.com","username":"BouchkatiTarek"},"change_message_id":"6d65139e85caecf7ea81e9c37bfa231ec61bc70b","unresolved":false,"context_lines":[{"line_number":112,"context_line":"\treturn ERROR_OK;"},{"line_number":113,"context_line":"}"},{"line_number":114,"context_line":""},{"line_number":115,"context_line":"static int remote_bitbang_queue(int c, bool flush)"},{"line_number":116,"context_line":"{"},{"line_number":117,"context_line":"\tremote_bitbang_send_buf[remote_bitbang_send_buf_used++] \u003d c;"},{"line_number":118,"context_line":"\tif (flush || remote_bitbang_send_buf_used \u003e\u003d ARRAY_SIZE(remote_bitbang_send_buf))"}],"source_content_type":"text/x-csrc","patch_set":1,"id":"aedf27f1_98533443","line":115,"range":{"start_line":115,"start_character":39,"end_line":115,"end_character":49},"updated":"2021-05-28 21:12:01.000000000","message":"beware this is my personal taste:\n\nwe could introduce an enumeration here to ease understanding the code, so the call could be stgh like this:\n  ..._queue(\u0027Q\u0027, ..._FLUSH);\n  ..._queue(\u0027R\u0027, ..._NO_FLUSH);","commit_id":"df5d2ecc1f268b5b2c17fcc05bbdf63c0e4c6a94"},{"author":{"_account_id":1001242,"name":"Tim Newsome","email":"tim@sifive.com","username":"timsifive"},"change_message_id":"c723e986a9218677cc89218b4d475e4990c5d601","unresolved":false,"context_lines":[{"line_number":112,"context_line":"\treturn ERROR_OK;"},{"line_number":113,"context_line":"}"},{"line_number":114,"context_line":""},{"line_number":115,"context_line":"static int remote_bitbang_queue(int c, bool flush)"},{"line_number":116,"context_line":"{"},{"line_number":117,"context_line":"\tremote_bitbang_send_buf[remote_bitbang_send_buf_used++] \u003d c;"},{"line_number":118,"context_line":"\tif (flush || remote_bitbang_send_buf_used \u003e\u003d ARRAY_SIZE(remote_bitbang_send_buf))"}],"source_content_type":"text/x-csrc","patch_set":1,"id":"aedf27f1_783530f3","line":115,"range":{"start_line":115,"start_character":39,"end_line":115,"end_character":49},"in_reply_to":"aedf27f1_185f4446","updated":"2021-05-29 00:22:41.000000000","message":"I like this version, but if there\u0027s consensus on what it should be I\u0027ll change it.","commit_id":"df5d2ecc1f268b5b2c17fcc05bbdf63c0e4c6a94"},{"author":{"_account_id":1000021,"name":"Antonio Borneo","email":"borneo.antonio@gmail.com","username":"borneoa"},"change_message_id":"c50f56e8e9d8e85cee111936eae33ad807db53e2","unresolved":false,"context_lines":[{"line_number":112,"context_line":"\treturn ERROR_OK;"},{"line_number":113,"context_line":"}"},{"line_number":114,"context_line":""},{"line_number":115,"context_line":"static int remote_bitbang_queue(int c, bool flush)"},{"line_number":116,"context_line":"{"},{"line_number":117,"context_line":"\tremote_bitbang_send_buf[remote_bitbang_send_buf_used++] \u003d c;"},{"line_number":118,"context_line":"\tif (flush || remote_bitbang_send_buf_used \u003e\u003d ARRAY_SIZE(remote_bitbang_send_buf))"}],"source_content_type":"text/x-csrc","patch_set":1,"id":"aedf27f1_bbbcf21b","line":115,"range":{"start_line":115,"start_character":39,"end_line":115,"end_character":49},"in_reply_to":"aedf27f1_5bae26e6","updated":"2021-05-30 22:04:09.000000000","message":"Oops, Tarek\u0027s proposal ... not Marc\u0027s","commit_id":"df5d2ecc1f268b5b2c17fcc05bbdf63c0e4c6a94"},{"author":{"_account_id":1000021,"name":"Antonio Borneo","email":"borneo.antonio@gmail.com","username":"borneoa"},"change_message_id":"7625d031d6df7b93bdebc3512f730a4f48795f32","unresolved":false,"context_lines":[{"line_number":112,"context_line":"\treturn ERROR_OK;"},{"line_number":113,"context_line":"}"},{"line_number":114,"context_line":""},{"line_number":115,"context_line":"static int remote_bitbang_queue(int c, bool flush)"},{"line_number":116,"context_line":"{"},{"line_number":117,"context_line":"\tremote_bitbang_send_buf[remote_bitbang_send_buf_used++] \u003d c;"},{"line_number":118,"context_line":"\tif (flush || remote_bitbang_send_buf_used \u003e\u003d ARRAY_SIZE(remote_bitbang_send_buf))"}],"source_content_type":"text/x-csrc","patch_set":1,"id":"aedf27f1_5bae26e6","line":115,"range":{"start_line":115,"start_character":39,"end_line":115,"end_character":49},"in_reply_to":"aedf27f1_783530f3","updated":"2021-05-30 22:03:03.000000000","message":"I proposed two other alternatives because I do not have a real preference. I only consider difficult to read\nremote_bitbang_queue(\u0027Q\u0027, true)\nbecause I have to remember what is \"true\" supposed to do.\nThe less invasive option is in Marc\u0027s proposal, it just adds an enum.","commit_id":"df5d2ecc1f268b5b2c17fcc05bbdf63c0e4c6a94"},{"author":{"_account_id":1000021,"name":"Antonio Borneo","email":"borneo.antonio@gmail.com","username":"borneoa"},"change_message_id":"6a3f10b6ff93d6d137f848152271dac7a5f50c7f","unresolved":false,"context_lines":[{"line_number":112,"context_line":"\treturn ERROR_OK;"},{"line_number":113,"context_line":"}"},{"line_number":114,"context_line":""},{"line_number":115,"context_line":"static int remote_bitbang_queue(int c, bool flush)"},{"line_number":116,"context_line":"{"},{"line_number":117,"context_line":"\tremote_bitbang_send_buf[remote_bitbang_send_buf_used++] \u003d c;"},{"line_number":118,"context_line":"\tif (flush || remote_bitbang_send_buf_used \u003e\u003d ARRAY_SIZE(remote_bitbang_send_buf))"}],"source_content_type":"text/x-csrc","patch_set":1,"id":"aedf27f1_185f4446","line":115,"range":{"start_line":115,"start_character":39,"end_line":115,"end_character":49},"in_reply_to":"aedf27f1_98533443","updated":"2021-05-28 22:21:23.000000000","message":"Or skip this flag and in the 3 places where we want to flush, call flush() explicitly.\nOr add a function remote_bitbang_queue_and_flush() that calls the two.","commit_id":"df5d2ecc1f268b5b2c17fcc05bbdf63c0e4c6a94"},{"author":{"_account_id":1001667,"name":"Jan Matyas","email":"jan.matyas@codasip.com","username":"JanMatCodasip"},"change_message_id":"23badf596aac88b7da0d52b95d886d305db168a0","unresolved":false,"context_lines":[{"line_number":116,"context_line":"\tNO_FLUSH,"},{"line_number":117,"context_line":"\tFLUSH_SEND_BUF"},{"line_number":118,"context_line":"} flush_bool_t;"},{"line_number":119,"context_line":"static int remote_bitbang_queue(int c, flush_bool_t flush)"},{"line_number":120,"context_line":"{"},{"line_number":121,"context_line":"\tremote_bitbang_send_buf[remote_bitbang_send_buf_used++] \u003d c;"},{"line_number":122,"context_line":"\tif (flush \u003d\u003d FLUSH_SEND_BUF ||"}],"source_content_type":"text/x-csrc","patch_set":3,"id":"aedf27f1_dbf1b6c9","line":119,"updated":"2021-06-02 05:41:34.000000000","message":"Just a little thing - a blank line could be added here.","commit_id":"d8a535b17e9853e22990e610298b44ff01486f0b"},{"author":{"_account_id":1001242,"name":"Tim Newsome","email":"tim@sifive.com","username":"timsifive"},"change_message_id":"947ee39bbb80ff09a26729df8aec2b701d6c07a1","unresolved":false,"context_lines":[{"line_number":116,"context_line":"\tNO_FLUSH,"},{"line_number":117,"context_line":"\tFLUSH_SEND_BUF"},{"line_number":118,"context_line":"} flush_bool_t;"},{"line_number":119,"context_line":"static int remote_bitbang_queue(int c, flush_bool_t flush)"},{"line_number":120,"context_line":"{"},{"line_number":121,"context_line":"\tremote_bitbang_send_buf[remote_bitbang_send_buf_used++] \u003d c;"},{"line_number":122,"context_line":"\tif (flush \u003d\u003d FLUSH_SEND_BUF ||"}],"source_content_type":"text/x-csrc","patch_set":3,"id":"aedf27f1_7b644a46","line":119,"in_reply_to":"aedf27f1_dbf1b6c9","updated":"2021-06-03 22:29:01.000000000","message":"Done","commit_id":"d8a535b17e9853e22990e610298b44ff01486f0b"}]}
