Re: [PATCH v2 03/16] powerpc/watchpoint: Introduce function to get nr watchpoints dynamically

2020-04-01 Thread Christophe Leroy
Le 01/04/2020 à 08:50, Ravi Bangoria a écrit : On 4/1/20 11:59 AM, Christophe Leroy wrote: Le 01/04/2020 à 08:12, Ravi Bangoria a écrit : So far we had only one watchpoint, so we have hardcoded HBP_NUM to 1. But future Power architecture is introducing 2nd DAWR and thus kernel should be

Re: [PATCH v2 03/16] powerpc/watchpoint: Introduce function to get nr watchpoints dynamically

2020-04-01 Thread Ravi Bangoria
On 4/1/20 11:59 AM, Christophe Leroy wrote: Le 01/04/2020 à 08:12, Ravi Bangoria a écrit : So far we had only one watchpoint, so we have hardcoded HBP_NUM to 1. But future Power architecture is introducing 2nd DAWR and thus kernel should be able to dynamically find actual number of watchpoi

Re: [PATCH v2 03/16] powerpc/watchpoint: Introduce function to get nr watchpoints dynamically

2020-03-31 Thread Christophe Leroy
Le 01/04/2020 à 08:12, Ravi Bangoria a écrit : So far we had only one watchpoint, so we have hardcoded HBP_NUM to 1. But future Power architecture is introducing 2nd DAWR and thus kernel should be able to dynamically find actual number of watchpoints supported by hw it's running on. Introduce

[PATCH v2 03/16] powerpc/watchpoint: Introduce function to get nr watchpoints dynamically

2020-03-31 Thread Ravi Bangoria
So far we had only one watchpoint, so we have hardcoded HBP_NUM to 1. But future Power architecture is introducing 2nd DAWR and thus kernel should be able to dynamically find actual number of watchpoints supported by hw it's running on. Introduce function for the same. Also convert HBP_NUM macro to