Page MenuHomeFreeBSD
Feed Advanced Search

Jun 27 2015

grembo added a comment to D2894: Update phabricator to the latest version.

To wrap this up (as there has been some confusion):

Jun 27 2015, 10:21 AM

Jun 26 2015

grembo added a comment to D2894: Update phabricator to the latest version.

@eadler no need to apologize, thanks for your effort.

Jun 26 2015, 3:22 PM
grembo abandoned D2894: Update phabricator to the latest version.

Updated to versions a of 20150626, therefore this review is obsolete now => Abandon Revision.

Jun 26 2015, 10:17 AM
grembo committed rP390625: Update devel/arcanist, devel/libphutil, devel/phabricator to 20150626..
Update devel/arcanist, devel/libphutil, devel/phabricator to 20150626.
Jun 26 2015, 10:12 AM
grembo added a comment to D2894: Update phabricator to the latest version.

@koobs thanks, I'm building new versions of those packages right now, I'll test them and commit shortly.

Jun 26 2015, 9:47 AM
grembo added a comment to D2894: Update phabricator to the latest version.

I'm more than happy to pass those ports on to you @mat or phabric-admin, please make sure you update and test devel/phabrictor though (as phabric-admin@ runs a heavily customized version of phabricator).

Jun 26 2015, 9:29 AM
grembo updated subscribers of D2894: Update phabricator to the latest version.

@mat this won't build as long as devel/libphutil/distinfo is broken (see my comment above). Accept Revision shouldn't have an "if it works" comment in it, but mean that some actual review happened (well, AFAIK).

Jun 26 2015, 8:42 AM

Jun 25 2015

grembo added a comment to D2894: Update phabricator to the latest version.

After fixing libphutil/distinfo this installed fine. I rolled it out at work yesterday and so far it seems to work ok.

Jun 25 2015, 8:38 AM
grembo committed rS284803: Protect smbus ioctls in ig4 driver using a shared lock..
Protect smbus ioctls in ig4 driver using a shared lock.
Jun 25 2015, 7:53 AM
grembo closed D2744: Protect smbus ioctls in ig4 driver using a shared lock by committing rS284803: Protect smbus ioctls in ig4 driver using a shared lock..
Jun 25 2015, 7:53 AM
grembo updated the diff for D2744: Protect smbus ioctls in ig4 driver using a shared lock.

Add extra newline to comply to style(9), change PZERO to 0 in mtx_sleep

Jun 25 2015, 7:47 AM

Jun 24 2015

grembo added inline comments to D2894: Update phabricator to the latest version.
Jun 24 2015, 3:55 PM
grembo requested changes to D2894: Update phabricator to the latest version.

Please fix distinfo of arcanist and test building all three ports.
(I'll install and test those versions @work to see if they are ok otherwise)

Jun 24 2015, 3:48 PM

Jun 22 2015

grembo committed rP390307: Fix for newer versions of behyve (-S was removed)..
Fix for newer versions of behyve (-S was removed).
Jun 22 2015, 6:13 PM
grembo added a comment to D2744: Protect smbus ioctls in ig4 driver using a shared lock.
Jun 22 2015, 8:55 AM
grembo updated the diff for D2744: Protect smbus ioctls in ig4 driver using a shared lock.

Add extra newline to comply to style(9), change PZERO to 0 in
mtx_sleep as suggestedi. Tested the change it works fine.

Jun 22 2015, 8:54 AM
grembo updated the diff for D2744: Protect smbus ioctls in ig4 driver using a shared lock.

Next iteration.

Jun 22 2015, 8:04 AM

Jun 21 2015

grembo updated the diff for D2744: Protect smbus ioctls in ig4 driver using a shared lock.

Same as before, but this time with the actual change: Add comment
to clarify locking semantics.

Jun 21 2015, 8:45 PM
grembo updated the diff for D2744: Protect smbus ioctls in ig4 driver using a shared lock.

Add comment that aims to clarify locking semantics.

Jun 21 2015, 8:41 PM

Jun 15 2015

grembo updated subscribers of D2811: New driver for intersil I2C ISL29018 Digital Ambient Light Sensor.

Feedback I received from @wblock by email:

Jun 15 2015, 10:59 AM

Jun 14 2015

grembo updated D2811: New driver for intersil I2C ISL29018 Digital Ambient Light Sensor.
Jun 14 2015, 11:47 AM
grembo retitled D2811: New driver for intersil I2C ISL29018 Digital Ambient Light Sensor from to New driver for intersil I2C ISL29018 Digital Ambient Light Sensor.
Jun 14 2015, 11:40 AM
grembo added a comment to D2744: Protect smbus ioctls in ig4 driver using a shared lock.
In D2744#53895, @grembo wrote:
In D2744#53837, @kib wrote:
In D2744#53712, @grembo wrote:

I think that clarification of the mutex/io_lock semantic is required as the first step.

call_lock protects a series of calls to the controller (set_controller/slave/wait_status) that form an ioctl so they won't interleave, while io_lock is used to coordinate the interrupt handler with other I/O to the controller, especially wait_status.

That far I can understand myself from reading the code. What I cannot get from the code alone, without using some kind of mind-reading low-tech solution, is what is the intent for the bounds of transactions manipulating the hardware state. E.g., why is it fine to allow the interrupt handler to intervene while waiting for i/o completion:

Why do you think this wouldn't be the case?

what hw state should be re-acquired after the sleep ? Does the interrupt handler need exclusion with the top half of the driver, if needed, why ? ... etc

Which sleep are you referring to (mtx_sleep in wait_status maybe)? Why would a hardware state need to be reacquired? And where does the "top half of the driver" end?

Jun 14 2015, 9:24 AM
grembo added a comment to D2744: Protect smbus ioctls in ig4 driver using a shared lock.
In D2744#53837, @kib wrote:
In D2744#53712, @grembo wrote:

I think that clarification of the mutex/io_lock semantic is required as the first step.

call_lock protects a series of calls to the controller (set_controller/slave/wait_status) that form an ioctl so they won't interleave, while io_lock is used to coordinate the interrupt handler with other I/O to the controller, especially wait_status.

That far I can understand myself from reading the code. What I cannot get from the code alone, without using some kind of mind-reading low-tech solution, is what is the intent for the bounds of transactions manipulating the hardware state. E.g., why is it fine to allow the interrupt handler to intervene while waiting for i/o completion:

Jun 14 2015, 5:52 AM

Jun 13 2015

grembo added a comment to D2744: Protect smbus ioctls in ig4 driver using a shared lock.

I think that clarification of the mutex/io_lock semantic is required as the first step.

call_lock protects a series of calls to the controller (set_controller/slave/wait_status) that form an ioctl so they won't interleave, while io_lock is used to coordinate the interrupt handler with other I/O to the controller, especially wait_status.

Jun 13 2015, 11:58 AM
grembo updated the diff for D2744: Protect smbus ioctls in ig4 driver using a shared lock.

Remove locks in callback and simplify unsupported smb_quick call.

Jun 13 2015, 11:47 AM

Jun 6 2015

grembo retitled D2744: Protect smbus ioctls in ig4 driver using a shared lock from to Protect smbus ioctls in ig4 driver using a shared lock.
Jun 6 2015, 10:53 PM

Jun 5 2015

grembo accepted D2732: Update phabricator port.

Are there any specific features or is this "only" about staying current/compatibility like you stated in the summary section?

Jun 5 2015, 2:30 AM

May 30 2015

grembo committed rS283766: ig4 - Intel fourth gen integrated I2C SMBus driver..
ig4 - Intel fourth gen integrated I2C SMBus driver.
May 30 2015, 12:17 PM
grembo closed D2372: ig4 - Intel fourth gen integrated I2C SMBus driver. by committing rS283766: ig4 - Intel fourth gen integrated I2C SMBus driver..
May 30 2015, 12:17 PM

May 14 2015

grembo added a comment to D2372: ig4 - Intel fourth gen integrated I2C SMBus driver..

@jhb & @adrian: Do you think this is acceptable now?

May 14 2015, 11:50 AM

May 6 2015

grembo added inline comments to D2372: ig4 - Intel fourth gen integrated I2C SMBus driver..
May 6 2015, 7:21 PM
grembo added inline comments to D2372: ig4 - Intel fourth gen integrated I2C SMBus driver..
May 6 2015, 7:17 PM
grembo updated the diff for D2372: ig4 - Intel fourth gen integrated I2C SMBus driver..

Make calling bus_generic_detach dependent on device_is_attached(dev)

May 6 2015, 6:14 PM
grembo added inline comments to D2372: ig4 - Intel fourth gen integrated I2C SMBus driver..
May 6 2015, 6:11 PM

May 3 2015

grembo updated the diff for D2372: ig4 - Intel fourth gen integrated I2C SMBus driver..

Next iteration based on code review.

May 3 2015, 6:51 PM
grembo added a comment to D2372: ig4 - Intel fourth gen integrated I2C SMBus driver..

Next iteration follows soon.

May 3 2015, 6:48 PM

May 1 2015

grembo committed rP385155: Fix build on HEAD after SMBus change (r281985/r282256)..
Fix build on HEAD after SMBus change (r281985/r282256).
May 1 2015, 10:40 PM
grembo committed rP385152: Fix build on HEAD after SMBus change (r281985/r282256)..
Fix build on HEAD after SMBus change (r281985/r282256).
May 1 2015, 9:56 PM
grembo committed rP385148: Fix build on HEAD after SMBus change (r281985/r282256)..
Fix build on HEAD after SMBus change (r281985/r282256).
May 1 2015, 9:14 PM
grembo committed rP385147: Fix build on HEAD after SMBus change (r281985/r282256)..
Fix build on HEAD after SMBus change (r281985/r282256).
May 1 2015, 8:41 PM
grembo committed rP385107: sysutils/bsdhwmon: update to 20150429.
sysutils/bsdhwmon: update to 20150429
May 1 2015, 11:54 AM

Apr 29 2015

grembo committed rD46626: Document __FreeBSD_version 1100071.
Document __FreeBSD_version 1100071
Apr 29 2015, 10:56 PM
grembo committed rS282256: Bump __FreeBSD_version for smb(4) changes in r281985.
Bump __FreeBSD_version for smb(4) changes in r281985
Apr 29 2015, 10:50 PM
grembo closed D2398: Bump __FreeBSD_version for smb(4) changes by committing rS282256: Bump __FreeBSD_version for smb(4) changes in r281985.
Apr 29 2015, 10:50 PM
grembo updated D2398: Bump __FreeBSD_version for smb(4) changes.
Apr 29 2015, 6:16 PM
grembo retitled D2398: Bump __FreeBSD_version for smb(4) changes from to Bump __FreeBSD_version for smb(4) changes.
Apr 29 2015, 10:59 AM

Apr 27 2015

grembo added inline comments to D2372: ig4 - Intel fourth gen integrated I2C SMBus driver..
Apr 27 2015, 9:52 PM
grembo updated the diff for D2372: ig4 - Intel fourth gen integrated I2C SMBus driver..

Further man page improvements as suggested by @wblock

Apr 27 2015, 9:52 PM
grembo added a comment to D2372: ig4 - Intel fourth gen integrated I2C SMBus driver..

@jhb This shouldn't interfere with I2C in KMS.
@jhb In terms of licensing, are there any best practices? Like if you port one feature from another BSD to FreeBSD (like a patch to the keyboard driver, maybe a few lines of code), will this affect the the license of the original file? When porting something completely new (like in this case), at which point should the porter be mentioned in the header - you clearly don't want to blame the original author for porting and/or system specific bugs. Something like:

Apr 27 2015, 5:17 PM
grembo updated the diff for D2372: ig4 - Intel fourth gen integrated I2C SMBus driver..

Man page changes as suggested by @wblock.

Apr 27 2015, 8:46 AM
grembo added a comment to D2372: ig4 - Intel fourth gen integrated I2C SMBus driver..

Will send a new revision with man page changes shortly (is there a better workflow? It always seems odd to comment on changes here and then create another arc revision).

Apr 27 2015, 8:46 AM
grembo updated the test plan for D2372: ig4 - Intel fourth gen integrated I2C SMBus driver..
Apr 27 2015, 8:11 AM

Apr 26 2015

grembo retitled D2372: ig4 - Intel fourth gen integrated I2C SMBus driver. from to ig4 - Intel fourth gen integrated I2C SMBus driver..
Apr 26 2015, 2:15 PM
grembo committed rS282020: Improve smb(4) man page..
Improve smb(4) man page.
Apr 26 2015, 12:24 PM
grembo closed D2368: Improve smb(4) man page by committing rS282020: Improve smb(4) man page..
Apr 26 2015, 12:24 PM

Apr 25 2015

grembo added a comment to D2368: Improve smb(4) man page.
Apr 25 2015, 9:01 PM
grembo added inline comments to D2368: Improve smb(4) man page.
Apr 25 2015, 9:01 PM
grembo updated the diff for D2368: Improve smb(4) man page.

These data is -> This data is

Apr 25 2015, 9:01 PM
grembo retitled D2368: Improve smb(4) man page from to Improve smb(4) man page.
Apr 25 2015, 4:56 PM
grembo added a comment to D1955: Expand the SMBUS API to add a smbus_trans() function..

Set all ending man page changes to closed for new review request.

Apr 25 2015, 4:31 PM
grembo committed rS281985: Expand SMBUS API to add smbus_trans() function..
Expand SMBUS API to add smbus_trans() function.
Apr 25 2015, 4:15 PM
grembo closed D1955: Expand the SMBUS API to add a smbus_trans() function. by committing rS281985: Expand SMBUS API to add smbus_trans() function..
Apr 25 2015, 4:15 PM

Apr 23 2015

grembo added a comment to D1955: Expand the SMBUS API to add a smbus_trans() function..

@adrian & @jhb: Could you both accept the revision (only changes since last accept were to the man page), so I can commit it. Thanks.

Apr 23 2015, 5:27 PM
grembo updated the diff for D1955: Expand the SMBUS API to add a smbus_trans() function..

Changes to man page like discussed with @wblock, for the remaining changes
to the man page I'll open a new code review request once this one has been
committed.

Apr 23 2015, 1:21 PM
grembo added a comment to D1955: Expand the SMBUS API to add a smbus_trans() function..
Apr 23 2015, 1:16 PM

Apr 13 2015

grembo closed D2171: Add OPENSSLRPATH to MAKE_ENV.

Closed by commit rP383964 (authored by @grembo).

Apr 13 2015, 9:47 PM
grembo added a comment to D1955: Expand the SMBUS API to add a smbus_trans() function..

@wblock Added you as a reviewer for man page changes. The code should be good enough at this point.

Apr 13 2015, 8:39 PM
grembo added a reviewer for D1955: Expand the SMBUS API to add a smbus_trans() function.: wblock.
Apr 13 2015, 8:36 PM
grembo updated the diff for D1955: Expand the SMBUS API to add a smbus_trans() function..

Put output of successful probes under bootverbose (nomatch isn't
not worth the effort and could be added at a later point in time).

Apr 13 2015, 8:35 PM

Apr 4 2015

grembo updated the diff for D1955: Expand the SMBUS API to add a smbus_trans() function..

Same as before, but pass all changed files to arcanist.

Apr 4 2015, 3:00 PM
grembo updated the diff for D1955: Expand the SMBUS API to add a smbus_trans() function..

Use bus_generic_probe instead of device_add_child like suggested
by @jhb, works, thank you.

Apr 4 2015, 2:57 PM

Mar 28 2015

grembo retitled D2171: Add OPENSSLRPATH to MAKE_ENV from to Add OPENSSLRPATH to MAKE_ENV.
Mar 28 2015, 10:39 PM

Mar 27 2015

grembo updated the diff for D1955: Expand the SMBUS API to add a smbus_trans() function..

Improvements as suggested by @jhb. This works now, thanks a lot for the
insight.

Mar 27 2015, 1:54 PM

Mar 23 2015

grembo added a comment to D1955: Expand the SMBUS API to add a smbus_trans() function..

@jhb and @imp:

Mar 23 2015, 12:36 AM

Mar 21 2015

grembo updated the diff for D1955: Expand the SMBUS API to add a smbus_trans() function..

Changes as suggested by @imp

Mar 21 2015, 12:41 PM
grembo added a comment to D1955: Expand the SMBUS API to add a smbus_trans() function..

@imp Did a couple of more changes, please check the next iteration that I'll submit shortly.

Mar 21 2015, 12:40 PM
grembo updated the diff for D1955: Expand the SMBUS API to add a smbus_trans() function..

Changes like discussed:

  • Remove enum smbus_child_ivars, turn SMBUS_IVAR_ADDR into enum
  • Add __BUS_ACCESSOR to address which returns int (can return -1)
  • Change code structure of smbus_read_ivar and make it set set response to -1 in case no addr is set
Mar 21 2015, 11:49 AM
grembo added a comment to D1955: Expand the SMBUS API to add a smbus_trans() function..

I sent an email to arch, let's see if there is any additional feedback. I'll submit a new version with the changes from the inline comments soon.

Mar 21 2015, 11:45 AM

Mar 7 2015

grembo updated the diff for D1955: Expand the SMBUS API to add a smbus_trans() function..

Changes like discussed inline (various style fixes and optimization,
new man page, new calls like print_child, location_str etc.).

Mar 7 2015, 2:53 PM
grembo added a comment to D1955: Expand the SMBUS API to add a smbus_trans() function..

@jhb Thanks for your detailed review, please see replies for details.

Mar 7 2015, 2:08 PM

Mar 1 2015

grembo updated the diff for D1955: Expand the SMBUS API to add a smbus_trans() function..

Replace magic numbers with #defined values as requested.

Mar 1 2015, 8:15 PM

Feb 23 2015

grembo retitled D1955: Expand the SMBUS API to add a smbus_trans() function. from to Expand the SMBUS API to add a smbus_trans() function..
Feb 23 2015, 11:37 PM
grembo closed D1741: Improve memory detection in biosmem.c.

Closed by commit rS279222 (authored by @grembo).

Feb 23 2015, 10:59 PM

Feb 22 2015

grembo added a comment to D1741: Improve memory detection in biosmem.c.

Is there anything else I could do to move this forward?

Feb 22 2015, 2:33 AM

Feb 15 2015

grembo updated the diff for D1741: Improve memory detection in biosmem.c.

Removed 32MiB check from code like suggested (reverted comment changes).

Feb 15 2015, 8:22 PM

Feb 14 2015

grembo closed D1802: Port keyboard driver changes from DragonFly to allow using keyboard on Chromebook.

Closed by commit rS278787 (authored by @grembo).

Feb 14 2015, 10:12 PM

Feb 11 2015

grembo added inline comments to D1741: Improve memory detection in biosmem.c.
Feb 11 2015, 6:25 PM
grembo updated the diff for D1741: Improve memory detection in biosmem.c.

Changes like requested, I will add a few more inline comments.

Feb 11 2015, 6:20 PM
grembo closed D1822: Install dom.cpp in devel/gsoap lib path (like stdsoap2.c[pp]).

Closed by commit rP378836 (authored by @grembo).

Feb 11 2015, 1:15 PM
grembo updated the diff for D1822: Install dom.cpp in devel/gsoap lib path (like stdsoap2.c[pp]).

Added symlink from dom.cpp to dom.c for symmetry reasons

Feb 11 2015, 12:41 PM
grembo retitled D1822: Install dom.cpp in devel/gsoap lib path (like stdsoap2.c[pp]) from to Install dom.cpp in devel/gsoap lib path (like stdsoap2.c[pp]).
Feb 11 2015, 10:42 AM

Feb 10 2015

grembo closed D1821: Add xo_finish() to w.c in case it's invoked as uptime.

Closed by commit rS278541 (authored by @grembo).

Feb 10 2015, 10:24 PM
grembo requested review of D1741: Improve memory detection in biosmem.c.

@adrian acknowledged this revision (thanks), but he also pointed out, that he thinks this needs more testing before committing. I tried to get some attention on freebsd-current, but this isn't a very interesting topic for people to test, so even though it's been only a few days, I don't think this will result in sufficient testing.

Feb 10 2015, 9:53 PM
grembo added a comment to D1802: Port keyboard driver changes from DragonFly to allow using keyboard on Chromebook.

I like the idea of structuring quirks in a more uniform way, but since we have those in many different places (drm2, USB, CAM, ACPI) I think this should be approached in a separate effort.

Feb 10 2015, 9:40 PM
grembo updated the diff for D1821: Add xo_finish() to w.c in case it's invoked as uptime.

Add newline to match style

Feb 10 2015, 9:35 PM
grembo retitled D1821: Add xo_finish() to w.c in case it's invoked as uptime from to Add xo_finish() to w.c in case it's invoked as uptime.
Feb 10 2015, 9:32 PM

Feb 9 2015

grembo updated the diff for D1802: Port keyboard driver changes from DragonFly to allow using keyboard on Chromebook.

New approach, reverted to the original version and added changes based
on quirks.

Feb 9 2015, 4:41 AM
grembo added a comment to D1802: Port keyboard driver changes from DragonFly to allow using keyboard on Chromebook.
Feb 9 2015, 2:52 AM

Feb 8 2015

grembo added inline comments to D1802: Port keyboard driver changes from DragonFly to allow using keyboard on Chromebook.
Feb 8 2015, 11:09 PM