misc/179482: [ath] Fix AR9462 external LNA configuration

2013-06-11 Thread adrian chadd

>Number: 179482
>Category:   misc
>Synopsis:   [ath] Fix AR9462 external LNA configuration
>Confidential:   no
>Severity:   non-critical
>Priority:   low
>Responsible:freebsd-bugs
>State:  open
>Quarter:
>Keywords:   
>Date-Required:
>Class:  sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Jun 11 09:50:01 UTC 2013
>Closed-Date:
>Last-Modified:
>Originator: adrian chadd
>Release:
>Organization:
>Environment:
>Description:
This ath9k patch needs porting to freebsd's qca_main HAL.

It unfortunately isn't in the upstream HAL yet; it's in a development branch.

https://patchwork.kernel.org/patch/2696121/

===

diff --git a/drivers/net/wireless/ath/ath9k/ar9003_eeprom.c 
b/drivers/net/wireless/ath/ath9k/ar9003_eeprom.c
index e6b92ff..25b8bbb 100644
--- a/drivers/net/wireless/ath/ath9k/ar9003_eeprom.c
+++ b/drivers/net/wireless/ath/ath9k/ar9003_eeprom.c
@@ -3563,14 +3563,18 @@  static void ar9003_hw_ant_ctrl_apply(struct ath_hw 
*ah, bool is2ghz)
 {
struct ath9k_hw_capabilities *pCap = &ah->caps;
int chain;
-   u32 regval;
+   u32 regval, value;
static const u32 switch_chain_reg[AR9300_MAX_CHAINS] = {
AR_PHY_SWITCH_CHAIN_0,
AR_PHY_SWITCH_CHAIN_1,
AR_PHY_SWITCH_CHAIN_2,
};
 
-   u32 value = ar9003_hw_ant_ctrl_common_get(ah, is2ghz);
+   if (AR_SREV_9485(ah) && (ar9003_hw_get_rx_gain_idx(ah) == 0))
+   ath9k_hw_cfg_output(ah, AR9300_EXT_LNA_CTL_GPIO_AR9485,
+   AR_GPIO_OUTPUT_MUX_AS_PCIE_ATTENTION_LED);
+
+   value = ar9003_hw_ant_ctrl_common_get(ah, is2ghz);
 
if (AR_SREV_9462(ah) || AR_SREV_9565(ah)) {
REG_RMW_FIELD(ah, AR_PHY_SWITCH_COM,
diff --git a/drivers/net/wireless/ath/ath9k/ar9003_phy.h 
b/drivers/net/wireless/ath/ath9k/ar9003_phy.h
index e717741..5013c73 100644
--- a/drivers/net/wireless/ath/ath9k/ar9003_phy.h
+++ b/drivers/net/wireless/ath/ath9k/ar9003_phy.h
@@ -351,6 +351,8 @@ 
 
 #define AR_PHY_CCA_NOM_VAL_9330_2GHZ  -118
 
+#define AR9300_EXT_LNA_CTL_GPIO_AR9485 9
+
 /*
  * AGC Field Definitions
  */

>How-To-Repeat:

>Fix:


>Release-Note:
>Audit-Trail:
>Unformatted:
___
freebsd-bugs@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-bugs
To unsubscribe, send any mail to "freebsd-bugs-unsubscr...@freebsd.org"


misc/179488: wrong encoding of error messages in tcsh

2013-06-11 Thread Dmitry Cheshkov

>Number: 179488
>Category:   misc
>Synopsis:   wrong encoding of error messages in tcsh
>Confidential:   no
>Severity:   non-critical
>Priority:   low
>Responsible:freebsd-bugs
>State:  open
>Quarter:
>Keywords:   
>Date-Required:
>Class:  sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Jun 11 13:40:00 UTC 2013
>Closed-Date:
>Last-Modified:
>Originator: Dmitry Cheshkov
>Release:8.4-STABLE, amd64, r251566
>Organization:
GPI RAS, Moscow, Russia
>Environment:
FreeBSD namik 8.4-STABLE FreeBSD 8.4-STABLE #0 r251566: Sun Jun  9 17:46:47 MSK 
2013 dima@newlure:/usr/obj/usr/src/sys/GENERIC  amd64

>Description:
TCSH error messages appear in wrong encoding (looks like in ru_RU.UTF-8) when 
LANG variable is set to ru_RU.KOI8-R and displays as unreadable strings:

namik 17:23:10 ~ > unsetenv LANG
namik 17:25:24 ~ > slkdfskasd
slkdfskasd: Command not found.
namik 17:25:26 ~ > setenv LANG ru_RU.KOI8-R
namik 17:25:39 ~ > dsfdsf
dsfdsf: Ðоманда не найдена.
namik 17:25:41 ~ > 1;2c

at the same time 'ls -l' gives normal localized output

namik 17:32:07 ~ > ls -l
total 343238
-rw-r--r--   1 dima dima  1472  4 янв  2006 
B12H12F_scan.gjf
-rw-r--r--   1 dima dima   290 12 июн  2006 CeF.in
lrwxr-xr-x   1 root dima18 28 май 17:59 Jobs@ 
-> /usr/data/g03/J

With best regards,
Dmitry Cheshkov
>How-To-Repeat:

>Fix:


>Release-Note:
>Audit-Trail:
>Unformatted:
___
freebsd-bugs@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-bugs
To unsubscribe, send any mail to "freebsd-bugs-unsubscr...@freebsd.org"

Re: bin/113239: [patch] atrun(8) loses jobs due to race condition

2013-06-11 Thread ghelmer
Synopsis: [patch] atrun(8) loses jobs due to race condition

State-Changed-From-To: open->closed
State-Changed-By: ghelmer
State-Changed-When: Tue Jun 11 13:46:50 CDT 2013
State-Changed-Why: 
Thanks for testing -- committed in rev 251625.

http://www.freebsd.org/cgi/query-pr.cgi?pr=113239
___
freebsd-bugs@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-bugs
To unsubscribe, send any mail to "freebsd-bugs-unsubscr...@freebsd.org"


Re: bin/113239: commit references a PR

2013-06-11 Thread dfilter service
The following reply was made to PR bin/113239; it has been noted by GNATS.

From: dfil...@freebsd.org (dfilter service)
To: bug-follo...@freebsd.org
Cc:  
Subject: Re: bin/113239: commit references a PR
Date: Tue, 11 Jun 2013 18:43:54 + (UTC)

 Author: ghelmer
 Date: Tue Jun 11 18:43:27 2013
 New Revision: 251625
 URL: http://svnweb.freebsd.org/changeset/base/251625
 
 Log:
   Prevent races running the queue by serializing access to the
   queue directory.
   
   PR:  bin/113239
 
 Modified:
   head/libexec/atrun/atrun.c
 
 Modified: head/libexec/atrun/atrun.c
 ==
 --- head/libexec/atrun/atrun.c Tue Jun 11 18:43:25 2013(r251624)
 +++ head/libexec/atrun/atrun.c Tue Jun 11 18:43:27 2013(r251625)
 @@ -31,6 +31,7 @@ static const char rcsid[] =
  /* System Headers */
  
  #include 
 +#include 
  #include 
  #include 
  #ifdef __FreeBSD__
 @@ -521,6 +522,9 @@ main(int argc, char *argv[])
  if ((spool = opendir(".")) == NULL)
perr("cannot read %s", ATJOB_DIR);
  
 +if (flock(dirfd(spool), LOCK_EX) == -1)
 +  perr("cannot lock %s", ATJOB_DIR);
 +
  now = time(NULL);
  run_batch = 0;
  batch_uid = (uid_t) -1;
 ___
 svn-src-...@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/svn-src-all
 To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"
 
___
freebsd-bugs@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-bugs
To unsubscribe, send any mail to "freebsd-bugs-unsubscr...@freebsd.org"


Re: bin/178463: [patch] Remove cpp usage from calendar(1)

2013-06-11 Thread Baptiste Daroussin
The following reply was made to PR bin/178463; it has been noted by GNATS.

From: Baptiste Daroussin 
To: bug-follo...@freebsd.org, d...@db.net
Cc:  
Subject: Re: bin/178463: [patch] Remove cpp usage from calendar(1)
Date: Tue, 11 Jun 2013 21:03:36 +0200

 --001a11c1bb2a138ae204dee58f5c
 Content-Type: text/plain; charset=ISO-8859-1
 
 Netbsd is working on tradcpp, I have been working with them to use it in
 ports for imake so that it works properly with or without gcpp.
 
 I plan to import it in base so that calendar(1) could directly use it.
 
 regards,
 Bapt
 
 --001a11c1bb2a138ae204dee58f5c
 Content-Type: text/html; charset=ISO-8859-1
 
 Netbsd is working on tradcpp, I have been working 
with them to use it in ports for imake so that it works properly with or 
without gcpp.I plan to import it in base so that calendar(1) 
could directly use it.
 
 regards,Bapt
 
 --001a11c1bb2a138ae204dee58f5c--
___
freebsd-bugs@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-bugs
To unsubscribe, send any mail to "freebsd-bugs-unsubscr...@freebsd.org"