All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Vladimir 'φ-coder/phcoder' Serbinenko" <phcoder@gmail.com>
To: The development of GNU GRUB <grub-devel@gnu.org>
Subject: Re: [Patch] [bug #26237] multiple problems with usb devices
Date: Fri, 02 Apr 2010 22:46:51 +0200	[thread overview]
Message-ID: <4BB657BB.60801@gmail.com> (raw)
In-Reply-To: <1268605383.2839.26.camel@homenes1>

[-- Attachment #1: Type: text/plain, Size: 4355 bytes --]

Aleš Nesrsta wrote:
> Hello,
>
> according to e-mail from Vladimir Serbinenko I am sending patch related
> to (mostly) OHCI problem (bug #26237).
> Workaround related to grub_memalign problem is removed from patch
> because Vladimir Serbinenko wrotes that it will be corrected.
>   
First of all big thanks for debugging this important aspect. And sorry
for being busy lately.

-  GRUB_OHCI_REG_RHUBA = 18,
-  GRUB_OHCI_REG_RHUBPORT = 21
+  GRUB_OHCI_REG_FRAME_REMAINING,
+  GRUB_OHCI_REG_FRAME_NUMBER,
+  GRUB_OHCI_REG_PERIODIC_START,
+  GRUB_OHCI_REG_LS_TRESHOLD,
+  GRUB_OHCI_REG_RHUB_DESC_A,

Please avoid register renaming unless original ones are misnomers. If
they are I would prefer renaming to be a separate patch.

-  grub_ohci_td_t td_list;
+  grub_ohci_td_t td_list ;
This change is spurious

+   * So we should:
+   * - allow WritebackDoneHead interrupt (WDH) by proper setting of last TD
+   *   token - it is done above in transaction settings
+   * - detect setting of WDH bit in HcInterruptStatus register
+   * - compare HccaDoneHead value with address of last-1 TD. If it is not
+   *   equal, check ED for halt and if not so, reset WDH bit and wait again
+   *   - but it should not happen - debug it!
Are the comments from you or any part copied from spec. We need no copy from spec as spec is available anyway and sentences copied from it may cause copyright problems
+/* Self commenting... */
Such comments should be removed, but an empty line at this point would be nice
+  err_sense = grub_scsi_request_sense (scsi);
+  /* err_sense is ignored for now and Request Sense Data also... */
When you ignore an error you need to clean grub_errno.
Sth like
if (!err)
  grub_errno = GRUB_ERR_NONE;
     grub_scsi_cmd_inquiry = 0x12,
+    grub_scsi_cmd_test_unit_ready = 0x00,
Please keep this list sorted.
-#define GRUB_USB_FEATURE_ENDP_HALT	0x01
-#define GRUB_USB_FEATURE_DEV_REMOTE_WU	0x02
-#define GRUB_USB_FEATURE_TEST_MODE	0x04
+#define GRUB_USB_FEATURE_ENDP_HALT	0x00
+#define GRUB_USB_FEATURE_DEV_REMOTE_WU	0x01
Why do you need to change these constants? Were they wrong?
Tomorrow I'll test your patch on both UHCI and OHCI.

+#define GRUB_USB_FEATURE_TEST_MODE	0x02
     grub_scsi_cmd_read_capacity = 0x25,
+

> Patch was done by:
>
> diff -urB  grub2-1.98~experimental.20100120 grub2-1.98~my_patched.20100312 > grub2-1.98~my_patched.20100312.patch
>
> As I shortly read the patch file, there sometimes remains some few
> things which can be optimized - sorry, it is mostly the rest from
> debugging experiments (even I make cleaning of code today)...
>
> Ales
>
>   
>> Od: Vladimir Serbinenko <INVALID.NOREPLY@gnu.org>
>> Komu: Oliver Henshaw <yoho_ahoy@hotmail.com>, Vladimir Serbinenko
>> <phcoder@gmail.com>, Ales Nesrsta <starous@volny.cz>, bug-grub@gnu.org
>> Předmět: [bug #26237] multiple problems with usb devices
>> Datum: Sat, 13 Mar 2010 22:08:44 +0000
>>
>> Update of bug #26237 (project grub):
>>
>>                  Release:                    None => Bazaar - trunk         
>>
>>     _______________________________________________________
>>
>> Follow-up Comment #6:
>>
>> Hello. I found out the problem with grub_memalign. I'll apply the patch
>> tomorrow. Some of the fixes can go directly in while other require
>> investigation and perhaps even copyright assignment. Can you remove all
>> gratuituous changes (like commenting out dprintfs, adding commented out code
>> and change register names) and send patch in unified format (-u option in
>> diff) to grub-devel@gnu.org? Porting code from linux is appropriate only if
>> license is compatible and porting was approved by maintainer. Are perhaps
>> interested in coding EHCI?
>>
>>     _______________________________________________________
>>
>> Reply to this item at:
>>
>>   <http://savannah.gnu.org/bugs/?26237>
>>
>> _______________________________________________
>>   Message sent via/by Savannah
>>   http://savannah.gnu.org/
>>
>>
>>     
>> ------------------------------------------------------------------------
>>
>> _______________________________________________
>> Grub-devel mailing list
>> Grub-devel@gnu.org
>> http://lists.gnu.org/mailman/listinfo/grub-devel


-- 
Regards
Vladimir 'φ-coder/phcoder' Serbinenko



[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 293 bytes --]

  reply	other threads:[~2010-04-02 20:47 UTC|newest]

Thread overview: 41+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-03-14 22:23 [Patch] [bug #26237] multiple problems with usb devices Aleš Nesrsta
2010-04-02 20:46 ` Vladimir 'φ-coder/phcoder' Serbinenko [this message]
2010-04-07 19:49   ` Aleš Nesrsta
2010-04-07 20:39     ` Vladimir 'φ-coder/phcoder' Serbinenko
2010-04-08 21:27       ` Aleš Nesrsta
2010-04-16 16:39         ` Vladimir 'φ-coder/phcoder' Serbinenko
2010-04-20 20:14           ` Aleš Nesrsta
2010-04-24 19:50             ` Vladimir 'φ-coder/phcoder' Serbinenko
2010-04-28  8:20               ` Aleš Nesrsta
2010-05-09 13:50                 ` Vladimir 'φ-coder/phcoder' Serbinenko
2010-05-21 23:46             ` Aleš Nesrsta
2010-05-22  1:20               ` Grégoire Sutre
2010-05-22  9:35               ` Colin Watson
2010-05-22 23:13               ` Vladimir 'φ-coder/phcoder' Serbinenko
2010-05-23 10:27                 ` Aleš Nesrsta
2010-05-23 14:41                   ` Vladimir 'φ-coder/phcoder' Serbinenko
2010-05-23 17:42                     ` Aleš Nesrsta
2010-05-23 18:40                       ` Thomas Schmitt
2010-05-23 17:51                     ` [Patch] [bug #26237] " Vladimir 'φ-coder/phcoder' Serbinenko
2010-05-23 14:44                   ` Vladimir 'φ-coder/phcoder' Serbinenko
2010-05-23 17:16                     ` Aleš Nesrsta
2010-05-23 19:35                       ` Vladimir 'φ-coder/phcoder' Serbinenko
2010-05-23 20:41                         ` seth.goldberg
2010-05-25 18:58                         ` Aleš Nesrsta
2010-05-30 16:51                           ` Aleš Nesrsta
2010-05-30 22:26                             ` Vladimir 'φ-coder/phcoder' Serbinenko
2010-05-31  4:16                               ` Seth Goldberg
2010-05-31 12:23                               ` Vladimir 'φ-coder/phcoder' Serbinenko
2010-05-31 21:54                                 ` Aleš Nesrsta
2010-06-01  0:18                                   ` [RFT] " Vladimir 'φ-coder/phcoder' Serbinenko
2010-06-01 21:14                                     ` Aleš Nesrsta
2010-06-02  0:27                                       ` Vladimir 'φ-coder/phcoder' Serbinenko
2010-06-02  3:02                                         ` Vladimir 'φ-coder/phcoder' Serbinenko
2010-06-02 19:39                                           ` Aleš Nesrsta
2010-06-02 20:14                                             ` Vladimir 'φ-coder/phcoder' Serbinenko
2010-06-03 11:47                                               ` Aleš Nesrsta
2010-06-12 17:05                                               ` [RFT] Re: [Patch] [bug #26237] multiple problems with usb devices - faster OHCI Aleš Nesrsta
2010-06-12 18:59                                                 ` Aleš Nesrsta
2010-06-13 17:47                                               ` [RFT] Re: [Patch] [bug #26237] multiple problems with usb devices Aleš Nesrsta
2010-06-21 20:24                                                 ` Aleš Nesrsta
2010-06-25 18:10                                                   ` Vladimir 'φ-coder/phcoder' Serbinenko

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4BB657BB.60801@gmail.com \
    --to=phcoder@gmail.com \
    --cc=grub-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.